@kangtae49/just-layout 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -4439,10 +4439,10 @@ let As = class {
4439
4439
  openWinMenu = ({ justId: n, nodeName: a }) => {
4440
4440
  const i = n.viewId, s = this.getWinIds({ viewId: i });
4441
4441
  if (s.length === 0)
4442
- console.log("openWinMenu1", s, n), this.openWinByNodeName({ justId: n, nodeName: a });
4442
+ this.openWinByNodeName({ justId: n, nodeName: a });
4443
4443
  else {
4444
4444
  const u = s.toSorted((l, c) => (l.dupId ?? "") <= (c.dupId ?? "") ? -1 : 1).at(-1);
4445
- u && (console.log("openWinMenu2", s, u), this.openWinByNodeName({ justId: u, nodeName: a }));
4445
+ u && this.openWinByNodeName({ justId: u, nodeName: a });
4446
4446
  }
4447
4447
  };
4448
4448
  fullScreenWin = (n, a, i = !1) => {
@@ -9158,7 +9158,6 @@ var $x = {
9158
9158
  icon: [384, 512, [8964], "f107", "M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]
9159
9159
  };
9160
9160
  const Hx = Qt(({ layoutId: n, justId: a, winInfo: i, menuProps: s, toggleMenu: u, anchorPoint: l }) => {
9161
- console.log("TabTitle justId", a);
9162
9161
  const c = Xt(n), p = c.getTabTitleTooltip(a), g = (w) => {
9163
9162
  c.removeWin({
9164
9163
  justId: w
@@ -9885,13 +9884,13 @@ const _s = /* @__PURE__ */ ma(lA), cA = 1e3 / 30, dA = Qt(({ node: n, containerR
9885
9884
  }, []), Ge(() => {
9886
9885
  const p = () => {
9887
9886
  }, g = async (y) => {
9888
- y.key === "Escape" ? (console.log("esc"), l.setFullScreenLayoutByBranch(null)) : y.key === "F11" && (console.log("F11"), l.fullScreenLayout !== null && l.setFullScreenLayoutByBranch(null)), y.altKey && (y.key === "ArrowRight" ? c.layout !== null ? c.activeNextWin() : l.activeNextWin() : y.key === "ArrowLeft" && (c.layout !== null ? c.activePrevWin() : l.activePrevWin()));
9887
+ (y.key === "Escape" || y.key === "F11" && l.fullScreenLayout !== null) && l.setFullScreenLayoutByBranch(null), y.altKey && (y.key === "ArrowRight" ? c.layout !== null ? c.activeNextWin() : l.activeNextWin() : y.key === "ArrowLeft" && (c.layout !== null ? c.activePrevWin() : l.activePrevWin()));
9889
9888
  };
9890
9889
  return window.addEventListener("keydown", g), document.addEventListener("fullscreenchange", p), () => {
9891
9890
  window.removeEventListener("keydown", g), document.removeEventListener("fullscreenchange", p);
9892
9891
  };
9893
9892
  }, []), Ge(() => {
9894
- console.log("useEffect justLayoutStore.fullScreenLayout", l.fullScreenLayout), c.setLayout(l.fullScreenLayout), l.lastActiveId && c.activeWin({ justId: l.lastActiveId });
9893
+ c.setLayout(l.fullScreenLayout), l.lastActiveId && c.activeWin({ justId: l.lastActiveId });
9895
9894
  }, [l.fullScreenLayout]), Ge(() => {
9896
9895
  c.setFullScreenHideTitle(l.fullScreenHideTitle);
9897
9896
  }, [l.fullScreenHideTitle]), /* @__PURE__ */ Ke("div", { className: Ct(
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(ce,Qt){typeof exports=="object"&&typeof module<"u"?Qt(exports,require("inversify"),require("mobx"),require("react"),require("inversify-react"),require("react/jsx-runtime"),require("react-dnd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","inversify","mobx","react","inversify-react","react/jsx-runtime","react-dnd","react-dom"],Qt):(ce=typeof globalThis<"u"?globalThis:ce||self,Qt(ce.JustLayout={},ce.inversify,ce.mobx,ce.React,ce.inversifyReact,ce.jsxRuntime,ce.ReactDnd,ce.ReactDOM))})(this,(function(ce,Qt,cr,M,hh,U,Qr,dr){"use strict";function Zs(a){return JSON.stringify(ya(a))}function ya(a){return Array.isArray(a)?a.map(ya):a&&typeof a=="object"?Object.fromEntries(Object.entries(a).sort((i,n)=>i[0].localeCompare(n[0])).map(([i,n])=>[i,ya(n)])):a}const kt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hr={exports:{}};var ph=hr.exports,Qs;function vh(){return Qs||(Qs=1,(function(a,i){(function(){var n,s="4.17.23",u=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",y=500,w="__lodash_placeholder__",_=1,O=2,E=4,x=1,A=2,I=1,k=2,W=4,R=8,Z=16,$=32,de=64,C=128,L=256,q=512,ne=30,Y="...",ee=800,J=16,We=1,Ye=2,Je=3,Et=1/0,Ue=9007199254740991,Mo=17976931348623157e292,At=NaN,nt=4294967295,Ei=nt-1,Ai=nt>>>1,Tr=[["ary",C],["bind",I],["bindKey",k],["curry",R],["curryRight",Z],["flip",q],["partial",$],["partialRight",de],["rearg",L]],zt="[object Arguments]",_n="[object Array]",Or="[object AsyncFunction]",wn="[object Boolean]",an="[object Date]",Cr="[object DOMException]",qn="[object Error]",jn="[object Function]",Ii="[object GeneratorFunction]",Te="[object Map]",on="[object Number]",Ti="[object Null]",rt="[object Object]",ze="[object Promise]",Gn="[object Proxy]",Oe="[object RegExp]",Ke="[object Set]",sn="[object String]",Be="[object Symbol]",ko="[object Undefined]",Sn="[object WeakMap]",Do="[object WeakSet]",xn="[object ArrayBuffer]",He="[object DataView]",Yn="[object Float32Array]",Nr="[object Float64Array]",En="[object Int8Array]",An="[object Int16Array]",Lr="[object Int32Array]",Pr="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Fr="[object Uint16Array]",Mr="[object Uint32Array]",Oi=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xe=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,Ee=RegExp(Xe.source),Kn=RegExp(it.source),Wo=/<%-([\s\S]+?)%>/g,Bo=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,Ro=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$o=/^\w*$/,Ci=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,Uo=RegExp(kr.source),Ht=/^\s+/,Dr=/\s/,Wr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xn=/\{\n\/\* \[wrapped with (.+)\] \*/,w0=/,? & /,S0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,x0=/[()=,{}\[\]\/\s]/,E0=/\\(\\)?/g,A0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ul=/\w*$/,I0=/^[-+]0x[0-9a-f]+$/i,T0=/^0b[01]+$/i,O0=/^\[object .+?Constructor\]$/,C0=/^0o[0-7]+$/i,N0=/^(?:0|[1-9]\d*)$/,L0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ni=/($^)/,P0=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",F0="\\u0300-\\u036f",M0="\\ufe20-\\ufe2f",k0="\\u20d0-\\u20ff",zl=F0+M0+k0,Hl="\\u2700-\\u27bf",ql="a-z\\xdf-\\xf6\\xf8-\\xff",D0="\\xac\\xb1\\xd7\\xf7",W0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",B0="\\u2000-\\u206f",R0=" \\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",jl="A-Z\\xc0-\\xd6\\xd8-\\xde",Gl="\\ufe0e\\ufe0f",Yl=D0+W0+B0+R0,zo="['’]",$0="["+Li+"]",Jl="["+Yl+"]",Pi="["+zl+"]",Kl="\\d+",U0="["+Hl+"]",Xl="["+ql+"]",Vl="[^"+Li+Yl+Kl+Hl+ql+jl+"]",Ho="\\ud83c[\\udffb-\\udfff]",z0="(?:"+Pi+"|"+Ho+")",Zl="[^"+Li+"]",qo="(?:\\ud83c[\\udde6-\\uddff]){2}",jo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+jl+"]",Ql="\\u200d",ec="(?:"+Xl+"|"+Vl+")",H0="(?:"+Vn+"|"+Vl+")",tc="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",nc="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",rc=z0+"?",ic="["+Gl+"]?",q0="(?:"+Ql+"(?:"+[Zl,qo,jo].join("|")+")"+ic+rc+")*",j0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=ic+rc+q0,Y0="(?:"+[U0,qo,jo].join("|")+")"+ac,J0="(?:"+[Zl+Pi+"?",Pi,qo,jo,$0].join("|")+")",K0=RegExp(zo,"g"),X0=RegExp(Pi,"g"),Go=RegExp(Ho+"(?="+Ho+")|"+J0+ac,"g"),V0=RegExp([Vn+"?"+Xl+"+"+tc+"(?="+[Jl,Vn,"$"].join("|")+")",H0+"+"+nc+"(?="+[Jl,Vn+ec,"$"].join("|")+")",Vn+"?"+ec+"+"+tc,Vn+"+"+nc,G0,j0,Kl,Y0].join("|"),"g"),Z0=RegExp("["+Ql+Li+zl+Gl+"]"),Q0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ey=["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"],ty=-1,_e={};_e[Yn]=_e[Nr]=_e[En]=_e[An]=_e[Lr]=_e[Pr]=_e[Jn]=_e[Fr]=_e[Mr]=!0,_e[zt]=_e[_n]=_e[xn]=_e[wn]=_e[He]=_e[an]=_e[qn]=_e[jn]=_e[Te]=_e[on]=_e[rt]=_e[Oe]=_e[Ke]=_e[sn]=_e[Sn]=!1;var ye={};ye[zt]=ye[_n]=ye[xn]=ye[He]=ye[wn]=ye[an]=ye[Yn]=ye[Nr]=ye[En]=ye[An]=ye[Lr]=ye[Te]=ye[on]=ye[rt]=ye[Oe]=ye[Ke]=ye[sn]=ye[Be]=ye[Pr]=ye[Jn]=ye[Fr]=ye[Mr]=!0,ye[qn]=ye[jn]=ye[Sn]=!1;var ny={À:"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"},ry={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},iy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oy=parseFloat,sy=parseInt,oc=typeof en=="object"&&en&&en.Object===Object&&en,uy=typeof self=="object"&&self&&self.Object===Object&&self,ke=oc||uy||Function("return this")(),Yo=i&&!i.nodeType&&i,Tn=Yo&&!0&&a&&!a.nodeType&&a,sc=Tn&&Tn.exports===Yo,Jo=sc&&oc.process,dt=(function(){try{var b=Tn&&Tn.require&&Tn.require("util").types;return b||Jo&&Jo.binding&&Jo.binding("util")}catch{}})(),uc=dt&&dt.isArrayBuffer,fc=dt&&dt.isDate,lc=dt&&dt.isMap,cc=dt&&dt.isRegExp,dc=dt&&dt.isSet,hc=dt&&dt.isTypedArray;function at(b,N,T){switch(T.length){case 0:return b.call(N);case 1:return b.call(N,T[0]);case 2:return b.call(N,T[0],T[1]);case 3:return b.call(N,T[0],T[1],T[2])}return b.apply(N,T)}function fy(b,N,T,H){for(var Q=-1,he=b==null?0:b.length;++Q<he;){var Ne=b[Q];N(H,Ne,T(Ne),b)}return H}function ht(b,N){for(var T=-1,H=b==null?0:b.length;++T<H&&N(b[T],T,b)!==!1;);return b}function ly(b,N){for(var T=b==null?0:b.length;T--&&N(b[T],T,b)!==!1;);return b}function pc(b,N){for(var T=-1,H=b==null?0:b.length;++T<H;)if(!N(b[T],T,b))return!1;return!0}function un(b,N){for(var T=-1,H=b==null?0:b.length,Q=0,he=[];++T<H;){var Ne=b[T];N(Ne,T,b)&&(he[Q++]=Ne)}return he}function Fi(b,N){var T=b==null?0:b.length;return!!T&&Zn(b,N,0)>-1}function Ko(b,N,T){for(var H=-1,Q=b==null?0:b.length;++H<Q;)if(T(N,b[H]))return!0;return!1}function we(b,N){for(var T=-1,H=b==null?0:b.length,Q=Array(H);++T<H;)Q[T]=N(b[T],T,b);return Q}function fn(b,N){for(var T=-1,H=N.length,Q=b.length;++T<H;)b[Q+T]=N[T];return b}function Xo(b,N,T,H){var Q=-1,he=b==null?0:b.length;for(H&&he&&(T=b[++Q]);++Q<he;)T=N(T,b[Q],Q,b);return T}function cy(b,N,T,H){var Q=b==null?0:b.length;for(H&&Q&&(T=b[--Q]);Q--;)T=N(T,b[Q],Q,b);return T}function Vo(b,N){for(var T=-1,H=b==null?0:b.length;++T<H;)if(N(b[T],T,b))return!0;return!1}var dy=Zo("length");function hy(b){return b.split("")}function py(b){return b.match(S0)||[]}function vc(b,N,T){var H;return T(b,function(Q,he,Ne){if(N(Q,he,Ne))return H=he,!1}),H}function Mi(b,N,T,H){for(var Q=b.length,he=T+(H?1:-1);H?he--:++he<Q;)if(N(b[he],he,b))return he;return-1}function Zn(b,N,T){return N===N?Iy(b,N,T):Mi(b,gc,T)}function vy(b,N,T,H){for(var Q=T-1,he=b.length;++Q<he;)if(H(b[Q],N))return Q;return-1}function gc(b){return b!==b}function mc(b,N){var T=b==null?0:b.length;return T?es(b,N)/T:At}function Zo(b){return function(N){return N==null?n:N[b]}}function Qo(b){return function(N){return b==null?n:b[N]}}function yc(b,N,T,H,Q){return Q(b,function(he,Ne,me){T=H?(H=!1,he):N(T,he,Ne,me)}),T}function gy(b,N){var T=b.length;for(b.sort(N);T--;)b[T]=b[T].value;return b}function es(b,N){for(var T,H=-1,Q=b.length;++H<Q;){var he=N(b[H]);he!==n&&(T=T===n?he:T+he)}return T}function ts(b,N){for(var T=-1,H=Array(b);++T<b;)H[T]=N(T);return H}function my(b,N){return we(N,function(T){return[T,b[T]]})}function bc(b){return b&&b.slice(0,xc(b)+1).replace(Ht,"")}function ot(b){return function(N){return b(N)}}function ns(b,N){return we(N,function(T){return b[T]})}function Br(b,N){return b.has(N)}function _c(b,N){for(var T=-1,H=b.length;++T<H&&Zn(N,b[T],0)>-1;);return T}function wc(b,N){for(var T=b.length;T--&&Zn(N,b[T],0)>-1;);return T}function yy(b,N){for(var T=b.length,H=0;T--;)b[T]===N&&++H;return H}var by=Qo(ny),_y=Qo(ry);function wy(b){return"\\"+ay[b]}function Sy(b,N){return b==null?n:b[N]}function Qn(b){return Z0.test(b)}function xy(b){return Q0.test(b)}function Ey(b){for(var N,T=[];!(N=b.next()).done;)T.push(N.value);return T}function rs(b){var N=-1,T=Array(b.size);return b.forEach(function(H,Q){T[++N]=[Q,H]}),T}function Sc(b,N){return function(T){return b(N(T))}}function ln(b,N){for(var T=-1,H=b.length,Q=0,he=[];++T<H;){var Ne=b[T];(Ne===N||Ne===w)&&(b[T]=w,he[Q++]=T)}return he}function ki(b){var N=-1,T=Array(b.size);return b.forEach(function(H){T[++N]=H}),T}function Ay(b){var N=-1,T=Array(b.size);return b.forEach(function(H){T[++N]=[H,H]}),T}function Iy(b,N,T){for(var H=T-1,Q=b.length;++H<Q;)if(b[H]===N)return H;return-1}function Ty(b,N,T){for(var H=T+1;H--;)if(b[H]===N)return H;return H}function er(b){return Qn(b)?Cy(b):dy(b)}function It(b){return Qn(b)?Ny(b):hy(b)}function xc(b){for(var N=b.length;N--&&Dr.test(b.charAt(N)););return N}var Oy=Qo(iy);function Cy(b){for(var N=Go.lastIndex=0;Go.test(b);)++N;return N}function Ny(b){return b.match(Go)||[]}function Ly(b){return b.match(V0)||[]}var Py=(function b(N){N=N==null?ke:tr.defaults(ke.Object(),N,tr.pick(ke,ey));var T=N.Array,H=N.Date,Q=N.Error,he=N.Function,Ne=N.Math,me=N.Object,is=N.RegExp,Fy=N.String,pt=N.TypeError,Di=T.prototype,My=he.prototype,nr=me.prototype,Wi=N["__core-js_shared__"],Bi=My.toString,pe=nr.hasOwnProperty,ky=0,Ec=(function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ri=nr.toString,Dy=Bi.call(me),Wy=ke._,By=is("^"+Bi.call(pe).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$i=sc?N.Buffer:n,cn=N.Symbol,Ui=N.Uint8Array,Ac=$i?$i.allocUnsafe:n,zi=Sc(me.getPrototypeOf,me),Ic=me.create,Tc=nr.propertyIsEnumerable,Hi=Di.splice,Oc=cn?cn.isConcatSpreadable:n,Rr=cn?cn.iterator:n,On=cn?cn.toStringTag:n,qi=(function(){try{var e=Fn(me,"defineProperty");return e({},"",{}),e}catch{}})(),Ry=N.clearTimeout!==ke.clearTimeout&&N.clearTimeout,$y=H&&H.now!==ke.Date.now&&H.now,Uy=N.setTimeout!==ke.setTimeout&&N.setTimeout,ji=Ne.ceil,Gi=Ne.floor,as=me.getOwnPropertySymbols,zy=$i?$i.isBuffer:n,Cc=N.isFinite,Hy=Di.join,qy=Sc(me.keys,me),Le=Ne.max,Re=Ne.min,jy=H.now,Gy=N.parseInt,Nc=Ne.random,Yy=Di.reverse,os=Fn(N,"DataView"),$r=Fn(N,"Map"),ss=Fn(N,"Promise"),rr=Fn(N,"Set"),Ur=Fn(N,"WeakMap"),zr=Fn(me,"create"),Yi=Ur&&new Ur,ir={},Jy=Mn(os),Ky=Mn($r),Xy=Mn(ss),Vy=Mn(rr),Zy=Mn(Ur),Ji=cn?cn.prototype:n,Hr=Ji?Ji.valueOf:n,Lc=Ji?Ji.toString:n;function d(e){if(xe(e)&&!te(e)&&!(e instanceof ue)){if(e instanceof vt)return e;if(pe.call(e,"__wrapped__"))return Pd(e)}return new vt(e)}var ar=(function(){function e(){}return function(t){if(!Se(t))return{};if(Ic)return Ic(t);e.prototype=t;var r=new e;return e.prototype=n,r}})();function Ki(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}d.templateSettings={escape:Wo,evaluate:Bo,interpolate:In,variable:"",imports:{_:d}},d.prototype=Ki.prototype,d.prototype.constructor=d,vt.prototype=ar(Ki.prototype),vt.prototype.constructor=vt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nt,this.__views__=[]}function Qy(){var e=new ue(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e}function e1(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function t1(){var e=this.__wrapped__.value(),t=this.__dir__,r=te(e),o=t<0,l=r?e.length:0,h=hb(0,l,this.__views__),v=h.start,m=h.end,S=m-v,P=o?m:v-1,F=this.__iteratees__,D=F.length,z=0,j=Re(S,this.__takeCount__);if(!r||!o&&l==S&&j==S)return td(e,this.__actions__);var X=[];e:for(;S--&&z<j;){P+=t;for(var ae=-1,V=e[P];++ae<D;){var se=F[ae],le=se.iteratee,ft=se.type,Ge=le(V);if(ft==Ye)V=Ge;else if(!Ge){if(ft==We)continue e;break e}}X[z++]=V}return X}ue.prototype=ar(Ki.prototype),ue.prototype.constructor=ue;function Cn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function n1(){this.__data__=zr?zr(null):{},this.size=0}function r1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function i1(e){var t=this.__data__;if(zr){var r=t[e];return r===g?n:r}return pe.call(t,e)?t[e]:n}function a1(e){var t=this.__data__;return zr?t[e]!==n:pe.call(t,e)}function o1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zr&&t===n?g:t,this}Cn.prototype.clear=n1,Cn.prototype.delete=r1,Cn.prototype.get=i1,Cn.prototype.has=a1,Cn.prototype.set=o1;function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function s1(){this.__data__=[],this.size=0}function u1(e){var t=this.__data__,r=Xi(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Hi.call(t,r,1),--this.size,!0}function f1(e){var t=this.__data__,r=Xi(t,e);return r<0?n:t[r][1]}function l1(e){return Xi(this.__data__,e)>-1}function c1(e,t){var r=this.__data__,o=Xi(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}qt.prototype.clear=s1,qt.prototype.delete=u1,qt.prototype.get=f1,qt.prototype.has=l1,qt.prototype.set=c1;function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function d1(){this.size=0,this.__data__={hash:new Cn,map:new($r||qt),string:new Cn}}function h1(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t}function p1(e){return ua(this,e).get(e)}function v1(e){return ua(this,e).has(e)}function g1(e,t){var r=ua(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}jt.prototype.clear=d1,jt.prototype.delete=h1,jt.prototype.get=p1,jt.prototype.has=v1,jt.prototype.set=g1;function Nn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new jt;++t<r;)this.add(e[t])}function m1(e){return this.__data__.set(e,g),this}function y1(e){return this.__data__.has(e)}Nn.prototype.add=Nn.prototype.push=m1,Nn.prototype.has=y1;function Tt(e){var t=this.__data__=new qt(e);this.size=t.size}function b1(){this.__data__=new qt,this.size=0}function _1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function w1(e){return this.__data__.get(e)}function S1(e){return this.__data__.has(e)}function x1(e,t){var r=this.__data__;if(r instanceof qt){var o=r.__data__;if(!$r||o.length<u-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new jt(o)}return r.set(e,t),this.size=r.size,this}Tt.prototype.clear=b1,Tt.prototype.delete=_1,Tt.prototype.get=w1,Tt.prototype.has=S1,Tt.prototype.set=x1;function Pc(e,t){var r=te(e),o=!r&&kn(e),l=!r&&!o&&gn(e),h=!r&&!o&&!l&&fr(e),v=r||o||l||h,m=v?ts(e.length,Fy):[],S=m.length;for(var P in e)(t||pe.call(e,P))&&!(v&&(P=="length"||l&&(P=="offset"||P=="parent")||h&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Kt(P,S)))&&m.push(P);return m}function Fc(e){var t=e.length;return t?e[ys(0,t-1)]:n}function E1(e,t){return fa(Ve(e),Ln(t,0,e.length))}function A1(e){return fa(Ve(e))}function us(e,t,r){(r!==n&&!Ot(e[t],r)||r===n&&!(t in e))&&Gt(e,t,r)}function qr(e,t,r){var o=e[t];(!(pe.call(e,t)&&Ot(o,r))||r===n&&!(t in e))&&Gt(e,t,r)}function Xi(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function I1(e,t,r,o){return dn(e,function(l,h,v){t(o,l,r(l),v)}),o}function Mc(e,t){return e&&Ft(t,Fe(t),e)}function T1(e,t){return e&&Ft(t,Qe(t),e)}function Gt(e,t,r){t=="__proto__"&&qi?qi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function fs(e,t){for(var r=-1,o=t.length,l=T(o),h=e==null;++r<o;)l[r]=h?n:Hs(e,t[r]);return l}function Ln(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function gt(e,t,r,o,l,h){var v,m=t&_,S=t&O,P=t&E;if(r&&(v=l?r(e,o,l,h):r(e)),v!==n)return v;if(!Se(e))return e;var F=te(e);if(F){if(v=vb(e),!m)return Ve(e,v)}else{var D=$e(e),z=D==jn||D==Ii;if(gn(e))return id(e,m);if(D==rt||D==zt||z&&!l){if(v=S||z?{}:xd(e),!m)return S?ib(e,T1(v,e)):rb(e,Mc(v,e))}else{if(!ye[D])return l?e:{};v=gb(e,D,m)}}h||(h=new Tt);var j=h.get(e);if(j)return j;h.set(e,v),Zd(e)?e.forEach(function(V){v.add(gt(V,t,r,V,e,h))}):Xd(e)&&e.forEach(function(V,se){v.set(se,gt(V,t,r,se,e,h))});var X=P?S?Cs:Os:S?Qe:Fe,ae=F?n:X(e);return ht(ae||e,function(V,se){ae&&(se=V,V=e[se]),qr(v,se,gt(V,t,r,se,e,h))}),v}function O1(e){var t=Fe(e);return function(r){return kc(r,e,t)}}function kc(e,t,r){var o=r.length;if(e==null)return!o;for(e=me(e);o--;){var l=r[o],h=t[l],v=e[l];if(v===n&&!(l in e)||!h(v))return!1}return!0}function Dc(e,t,r){if(typeof e!="function")throw new pt(c);return Vr(function(){e.apply(n,r)},t)}function jr(e,t,r,o){var l=-1,h=Fi,v=!0,m=e.length,S=[],P=t.length;if(!m)return S;r&&(t=we(t,ot(r))),o?(h=Ko,v=!1):t.length>=u&&(h=Br,v=!1,t=new Nn(t));e:for(;++l<m;){var F=e[l],D=r==null?F:r(F);if(F=o||F!==0?F:0,v&&D===D){for(var z=P;z--;)if(t[z]===D)continue e;S.push(F)}else h(t,D,o)||S.push(F)}return S}var dn=fd(Pt),Wc=fd(cs,!0);function C1(e,t){var r=!0;return dn(e,function(o,l,h){return r=!!t(o,l,h),r}),r}function Vi(e,t,r){for(var o=-1,l=e.length;++o<l;){var h=e[o],v=t(h);if(v!=null&&(m===n?v===v&&!ut(v):r(v,m)))var m=v,S=h}return S}function N1(e,t,r,o){var l=e.length;for(r=ie(r),r<0&&(r=-r>l?0:l+r),o=o===n||o>l?l:ie(o),o<0&&(o+=l),o=r>o?0:eh(o);r<o;)e[r++]=t;return e}function Bc(e,t){var r=[];return dn(e,function(o,l,h){t(o,l,h)&&r.push(o)}),r}function De(e,t,r,o,l){var h=-1,v=e.length;for(r||(r=yb),l||(l=[]);++h<v;){var m=e[h];t>0&&r(m)?t>1?De(m,t-1,r,o,l):fn(l,m):o||(l[l.length]=m)}return l}var ls=ld(),Rc=ld(!0);function Pt(e,t){return e&&ls(e,t,Fe)}function cs(e,t){return e&&Rc(e,t,Fe)}function Zi(e,t){return un(t,function(r){return Xt(e[r])})}function Pn(e,t){t=pn(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Mt(t[r++])];return r&&r==o?e:n}function $c(e,t,r){var o=t(e);return te(e)?o:fn(o,r(e))}function qe(e){return e==null?e===n?ko:Ti:On&&On in me(e)?db(e):Ab(e)}function ds(e,t){return e>t}function L1(e,t){return e!=null&&pe.call(e,t)}function P1(e,t){return e!=null&&t in me(e)}function F1(e,t,r){return e>=Re(t,r)&&e<Le(t,r)}function hs(e,t,r){for(var o=r?Ko:Fi,l=e[0].length,h=e.length,v=h,m=T(h),S=1/0,P=[];v--;){var F=e[v];v&&t&&(F=we(F,ot(t))),S=Re(F.length,S),m[v]=!r&&(t||l>=120&&F.length>=120)?new Nn(v&&F):n}F=e[0];var D=-1,z=m[0];e:for(;++D<l&&P.length<S;){var j=F[D],X=t?t(j):j;if(j=r||j!==0?j:0,!(z?Br(z,X):o(P,X,r))){for(v=h;--v;){var ae=m[v];if(!(ae?Br(ae,X):o(e[v],X,r)))continue e}z&&z.push(X),P.push(j)}}return P}function M1(e,t,r,o){return Pt(e,function(l,h,v){t(o,r(l),h,v)}),o}function Gr(e,t,r){t=pn(t,e),e=Td(e,t);var o=e==null?e:e[Mt(yt(t))];return o==null?n:at(o,e,r)}function Uc(e){return xe(e)&&qe(e)==zt}function k1(e){return xe(e)&&qe(e)==xn}function D1(e){return xe(e)&&qe(e)==an}function Yr(e,t,r,o,l){return e===t?!0:e==null||t==null||!xe(e)&&!xe(t)?e!==e&&t!==t:W1(e,t,r,o,Yr,l)}function W1(e,t,r,o,l,h){var v=te(e),m=te(t),S=v?_n:$e(e),P=m?_n:$e(t);S=S==zt?rt:S,P=P==zt?rt:P;var F=S==rt,D=P==rt,z=S==P;if(z&&gn(e)){if(!gn(t))return!1;v=!0,F=!1}if(z&&!F)return h||(h=new Tt),v||fr(e)?_d(e,t,r,o,l,h):lb(e,t,S,r,o,l,h);if(!(r&x)){var j=F&&pe.call(e,"__wrapped__"),X=D&&pe.call(t,"__wrapped__");if(j||X){var ae=j?e.value():e,V=X?t.value():t;return h||(h=new Tt),l(ae,V,r,o,h)}}return z?(h||(h=new Tt),cb(e,t,r,o,l,h)):!1}function B1(e){return xe(e)&&$e(e)==Te}function ps(e,t,r,o){var l=r.length,h=l,v=!o;if(e==null)return!h;for(e=me(e);l--;){var m=r[l];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<h;){m=r[l];var S=m[0],P=e[S],F=m[1];if(v&&m[2]){if(P===n&&!(S in e))return!1}else{var D=new Tt;if(o)var z=o(P,F,S,e,t,D);if(!(z===n?Yr(F,P,x|A,o,D):z))return!1}}return!0}function zc(e){if(!Se(e)||_b(e))return!1;var t=Xt(e)?By:O0;return t.test(Mn(e))}function R1(e){return xe(e)&&qe(e)==Oe}function $1(e){return xe(e)&&$e(e)==Ke}function U1(e){return xe(e)&&va(e.length)&&!!_e[qe(e)]}function Hc(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?te(e)?Gc(e[0],e[1]):jc(e):ch(e)}function vs(e){if(!Xr(e))return qy(e);var t=[];for(var r in me(e))pe.call(e,r)&&r!="constructor"&&t.push(r);return t}function z1(e){if(!Se(e))return Eb(e);var t=Xr(e),r=[];for(var o in e)o=="constructor"&&(t||!pe.call(e,o))||r.push(o);return r}function gs(e,t){return e<t}function qc(e,t){var r=-1,o=Ze(e)?T(e.length):[];return dn(e,function(l,h,v){o[++r]=t(l,h,v)}),o}function jc(e){var t=Ls(e);return t.length==1&&t[0][2]?Ad(t[0][0],t[0][1]):function(r){return r===e||ps(r,e,t)}}function Gc(e,t){return Fs(e)&&Ed(t)?Ad(Mt(e),t):function(r){var o=Hs(r,e);return o===n&&o===t?qs(r,e):Yr(t,o,x|A)}}function Qi(e,t,r,o,l){e!==t&&ls(t,function(h,v){if(l||(l=new Tt),Se(h))H1(e,t,v,r,Qi,o,l);else{var m=o?o(ks(e,v),h,v+"",e,t,l):n;m===n&&(m=h),us(e,v,m)}},Qe)}function H1(e,t,r,o,l,h,v){var m=ks(e,r),S=ks(t,r),P=v.get(S);if(P){us(e,r,P);return}var F=h?h(m,S,r+"",e,t,v):n,D=F===n;if(D){var z=te(S),j=!z&&gn(S),X=!z&&!j&&fr(S);F=S,z||j||X?te(m)?F=m:Ae(m)?F=Ve(m):j?(D=!1,F=id(S,!0)):X?(D=!1,F=ad(S,!0)):F=[]:Zr(S)||kn(S)?(F=m,kn(m)?F=th(m):(!Se(m)||Xt(m))&&(F=xd(S))):D=!1}D&&(v.set(S,F),l(F,S,o,h,v),v.delete(S)),us(e,r,F)}function Yc(e,t){var r=e.length;if(r)return t+=t<0?r:0,Kt(t,r)?e[t]:n}function Jc(e,t,r){t.length?t=we(t,function(h){return te(h)?function(v){return Pn(v,h.length===1?h[0]:h)}:h}):t=[et];var o=-1;t=we(t,ot(K()));var l=qc(e,function(h,v,m){var S=we(t,function(P){return P(h)});return{criteria:S,index:++o,value:h}});return gy(l,function(h,v){return nb(h,v,r)})}function q1(e,t){return Kc(e,t,function(r,o){return qs(e,o)})}function Kc(e,t,r){for(var o=-1,l=t.length,h={};++o<l;){var v=t[o],m=Pn(e,v);r(m,v)&&Jr(h,pn(v,e),m)}return h}function j1(e){return function(t){return Pn(t,e)}}function ms(e,t,r,o){var l=o?vy:Zn,h=-1,v=t.length,m=e;for(e===t&&(t=Ve(t)),r&&(m=we(e,ot(r)));++h<v;)for(var S=0,P=t[h],F=r?r(P):P;(S=l(m,F,S,o))>-1;)m!==e&&Hi.call(m,S,1),Hi.call(e,S,1);return e}function Xc(e,t){for(var r=e?t.length:0,o=r-1;r--;){var l=t[r];if(r==o||l!==h){var h=l;Kt(l)?Hi.call(e,l,1):ws(e,l)}}return e}function ys(e,t){return e+Gi(Nc()*(t-e+1))}function G1(e,t,r,o){for(var l=-1,h=Le(ji((t-e)/(r||1)),0),v=T(h);h--;)v[o?h:++l]=e,e+=r;return v}function bs(e,t){var r="";if(!e||t<1||t>Ue)return r;do t%2&&(r+=e),t=Gi(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return Ds(Id(e,t,et),e+"")}function Y1(e){return Fc(lr(e))}function J1(e,t){var r=lr(e);return fa(r,Ln(t,0,r.length))}function Jr(e,t,r,o){if(!Se(e))return e;t=pn(t,e);for(var l=-1,h=t.length,v=h-1,m=e;m!=null&&++l<h;){var S=Mt(t[l]),P=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(l!=v){var F=m[S];P=o?o(F,S,m):n,P===n&&(P=Se(F)?F:Kt(t[l+1])?[]:{})}qr(m,S,P),m=m[S]}return e}var Vc=Yi?function(e,t){return Yi.set(e,t),e}:et,K1=qi?function(e,t){return qi(e,"toString",{configurable:!0,enumerable:!1,value:Gs(t),writable:!0})}:et;function X1(e){return fa(lr(e))}function mt(e,t,r){var o=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var h=T(l);++o<l;)h[o]=e[o+t];return h}function V1(e,t){var r;return dn(e,function(o,l,h){return r=t(o,l,h),!r}),!!r}function ea(e,t,r){var o=0,l=e==null?o:e.length;if(typeof t=="number"&&t===t&&l<=Ai){for(;o<l;){var h=o+l>>>1,v=e[h];v!==null&&!ut(v)&&(r?v<=t:v<t)?o=h+1:l=h}return l}return _s(e,t,et,r)}function _s(e,t,r,o){var l=0,h=e==null?0:e.length;if(h===0)return 0;t=r(t);for(var v=t!==t,m=t===null,S=ut(t),P=t===n;l<h;){var F=Gi((l+h)/2),D=r(e[F]),z=D!==n,j=D===null,X=D===D,ae=ut(D);if(v)var V=o||X;else P?V=X&&(o||z):m?V=X&&z&&(o||!j):S?V=X&&z&&!j&&(o||!ae):j||ae?V=!1:V=o?D<=t:D<t;V?l=F+1:h=F}return Re(h,Ei)}function Zc(e,t){for(var r=-1,o=e.length,l=0,h=[];++r<o;){var v=e[r],m=t?t(v):v;if(!r||!Ot(m,S)){var S=m;h[l++]=v===0?0:v}}return h}function Qc(e){return typeof e=="number"?e:ut(e)?At:+e}function st(e){if(typeof e=="string")return e;if(te(e))return we(e,st)+"";if(ut(e))return Lc?Lc.call(e):"";var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function hn(e,t,r){var o=-1,l=Fi,h=e.length,v=!0,m=[],S=m;if(r)v=!1,l=Ko;else if(h>=u){var P=t?null:ub(e);if(P)return ki(P);v=!1,l=Br,S=new Nn}else S=t?[]:m;e:for(;++o<h;){var F=e[o],D=t?t(F):F;if(F=r||F!==0?F:0,v&&D===D){for(var z=S.length;z--;)if(S[z]===D)continue e;t&&S.push(D),m.push(F)}else l(S,D,r)||(S!==m&&S.push(D),m.push(F))}return m}function ws(e,t){t=pn(t,e);var r=-1,o=t.length;if(!o)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++r<o;){var h=t[r];if(typeof h=="string"){if(h==="__proto__"&&!pe.call(e,"__proto__"))return!1;if(h==="constructor"&&r+1<o&&typeof t[r+1]=="string"&&t[r+1]==="prototype"){if(l&&r===0)continue;return!1}}}var v=Td(e,t);return v==null||delete v[Mt(yt(t))]}function ed(e,t,r,o){return Jr(e,t,r(Pn(e,t)),o)}function ta(e,t,r,o){for(var l=e.length,h=o?l:-1;(o?h--:++h<l)&&t(e[h],h,e););return r?mt(e,o?0:h,o?h+1:l):mt(e,o?h+1:0,o?l:h)}function td(e,t){var r=e;return r instanceof ue&&(r=r.value()),Xo(t,function(o,l){return l.func.apply(l.thisArg,fn([o],l.args))},r)}function Ss(e,t,r){var o=e.length;if(o<2)return o?hn(e[0]):[];for(var l=-1,h=T(o);++l<o;)for(var v=e[l],m=-1;++m<o;)m!=l&&(h[l]=jr(h[l]||v,e[m],t,r));return hn(De(h,1),t,r)}function nd(e,t,r){for(var o=-1,l=e.length,h=t.length,v={};++o<l;){var m=o<h?t[o]:n;r(v,e[o],m)}return v}function xs(e){return Ae(e)?e:[]}function Es(e){return typeof e=="function"?e:et}function pn(e,t){return te(e)?e:Fs(e,t)?[e]:Ld(ve(e))}var Z1=oe;function vn(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:mt(e,t,r)}var rd=Ry||function(e){return ke.clearTimeout(e)};function id(e,t){if(t)return e.slice();var r=e.length,o=Ac?Ac(r):new e.constructor(r);return e.copy(o),o}function As(e){var t=new e.constructor(e.byteLength);return new Ui(t).set(new Ui(e)),t}function Q1(e,t){var r=t?As(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function eb(e){var t=new e.constructor(e.source,Ul.exec(e));return t.lastIndex=e.lastIndex,t}function tb(e){return Hr?me(Hr.call(e)):{}}function ad(e,t){var r=t?As(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function od(e,t){if(e!==t){var r=e!==n,o=e===null,l=e===e,h=ut(e),v=t!==n,m=t===null,S=t===t,P=ut(t);if(!m&&!P&&!h&&e>t||h&&v&&S&&!m&&!P||o&&v&&S||!r&&S||!l)return 1;if(!o&&!h&&!P&&e<t||P&&r&&l&&!o&&!h||m&&r&&l||!v&&l||!S)return-1}return 0}function nb(e,t,r){for(var o=-1,l=e.criteria,h=t.criteria,v=l.length,m=r.length;++o<v;){var S=od(l[o],h[o]);if(S){if(o>=m)return S;var P=r[o];return S*(P=="desc"?-1:1)}}return e.index-t.index}function sd(e,t,r,o){for(var l=-1,h=e.length,v=r.length,m=-1,S=t.length,P=Le(h-v,0),F=T(S+P),D=!o;++m<S;)F[m]=t[m];for(;++l<v;)(D||l<h)&&(F[r[l]]=e[l]);for(;P--;)F[m++]=e[l++];return F}function ud(e,t,r,o){for(var l=-1,h=e.length,v=-1,m=r.length,S=-1,P=t.length,F=Le(h-m,0),D=T(F+P),z=!o;++l<F;)D[l]=e[l];for(var j=l;++S<P;)D[j+S]=t[S];for(;++v<m;)(z||l<h)&&(D[j+r[v]]=e[l++]);return D}function Ve(e,t){var r=-1,o=e.length;for(t||(t=T(o));++r<o;)t[r]=e[r];return t}function Ft(e,t,r,o){var l=!r;r||(r={});for(var h=-1,v=t.length;++h<v;){var m=t[h],S=o?o(r[m],e[m],m,r,e):n;S===n&&(S=e[m]),l?Gt(r,m,S):qr(r,m,S)}return r}function rb(e,t){return Ft(e,Ps(e),t)}function ib(e,t){return Ft(e,wd(e),t)}function na(e,t){return function(r,o){var l=te(r)?fy:I1,h=t?t():{};return l(r,e,K(o,2),h)}}function or(e){return oe(function(t,r){var o=-1,l=r.length,h=l>1?r[l-1]:n,v=l>2?r[2]:n;for(h=e.length>3&&typeof h=="function"?(l--,h):n,v&&je(r[0],r[1],v)&&(h=l<3?n:h,l=1),t=me(t);++o<l;){var m=r[o];m&&e(t,m,o,h)}return t})}function fd(e,t){return function(r,o){if(r==null)return r;if(!Ze(r))return e(r,o);for(var l=r.length,h=t?l:-1,v=me(r);(t?h--:++h<l)&&o(v[h],h,v)!==!1;);return r}}function ld(e){return function(t,r,o){for(var l=-1,h=me(t),v=o(t),m=v.length;m--;){var S=v[e?m:++l];if(r(h[S],S,h)===!1)break}return t}}function ab(e,t,r){var o=t&I,l=Kr(e);function h(){var v=this&&this!==ke&&this instanceof h?l:e;return v.apply(o?r:this,arguments)}return h}function cd(e){return function(t){t=ve(t);var r=Qn(t)?It(t):n,o=r?r[0]:t.charAt(0),l=r?vn(r,1).join(""):t.slice(1);return o[e]()+l}}function sr(e){return function(t){return Xo(fh(uh(t).replace(K0,"")),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 r=ar(e.prototype),o=e.apply(r,t);return Se(o)?o:r}}function ob(e,t,r){var o=Kr(e);function l(){for(var h=arguments.length,v=T(h),m=h,S=ur(l);m--;)v[m]=arguments[m];var P=h<3&&v[0]!==S&&v[h-1]!==S?[]:ln(v,S);if(h-=P.length,h<r)return gd(e,t,ra,l.placeholder,n,v,P,n,n,r-h);var F=this&&this!==ke&&this instanceof l?o:e;return at(F,this,v)}return l}function dd(e){return function(t,r,o){var l=me(t);if(!Ze(t)){var h=K(r,3);t=Fe(t),r=function(m){return h(l[m],m,l)}}var v=e(t,r,o);return v>-1?l[h?t[v]:v]:n}}function hd(e){return Jt(function(t){var r=t.length,o=r,l=vt.prototype.thru;for(e&&t.reverse();o--;){var h=t[o];if(typeof h!="function")throw new pt(c);if(l&&!v&&sa(h)=="wrapper")var v=new vt([],!0)}for(o=v?o:r;++o<r;){h=t[o];var m=sa(h),S=m=="wrapper"?Ns(h):n;S&&Ms(S[0])&&S[1]==(C|R|$|L)&&!S[4].length&&S[9]==1?v=v[sa(S[0])].apply(v,S[3]):v=h.length==1&&Ms(h)?v[m]():v.thru(h)}return function(){var P=arguments,F=P[0];if(v&&P.length==1&&te(F))return v.plant(F).value();for(var D=0,z=r?t[D].apply(this,P):F;++D<r;)z=t[D].call(this,z);return z}})}function ra(e,t,r,o,l,h,v,m,S,P){var F=t&C,D=t&I,z=t&k,j=t&(R|Z),X=t&q,ae=z?n:Kr(e);function V(){for(var se=arguments.length,le=T(se),ft=se;ft--;)le[ft]=arguments[ft];if(j)var Ge=ur(V),lt=yy(le,Ge);if(o&&(le=sd(le,o,l,j)),h&&(le=ud(le,h,v,j)),se-=lt,j&&se<P){var Ie=ln(le,Ge);return gd(e,t,ra,V.placeholder,r,le,Ie,m,S,P-se)}var Ct=D?r:this,Zt=z?Ct[e]:e;return se=le.length,m?le=Ib(le,m):X&&se>1&&le.reverse(),F&&S<se&&(le.length=S),this&&this!==ke&&this instanceof V&&(Zt=ae||Kr(Zt)),Zt.apply(Ct,le)}return V}function pd(e,t){return function(r,o){return M1(r,e,t(o),{})}}function ia(e,t){return function(r,o){var l;if(r===n&&o===n)return t;if(r!==n&&(l=r),o!==n){if(l===n)return o;typeof r=="string"||typeof o=="string"?(r=st(r),o=st(o)):(r=Qc(r),o=Qc(o)),l=e(r,o)}return l}}function Is(e){return Jt(function(t){return t=we(t,ot(K())),oe(function(r){var o=this;return e(t,function(l){return at(l,o,r)})})})}function aa(e,t){t=t===n?" ":st(t);var r=t.length;if(r<2)return r?bs(t,e):t;var o=bs(t,ji(e/er(t)));return Qn(t)?vn(It(o),0,e).join(""):o.slice(0,e)}function sb(e,t,r,o){var l=t&I,h=Kr(e);function v(){for(var m=-1,S=arguments.length,P=-1,F=o.length,D=T(F+S),z=this&&this!==ke&&this instanceof v?h:e;++P<F;)D[P]=o[P];for(;S--;)D[P++]=arguments[++m];return at(z,l?r:this,D)}return v}function vd(e){return function(t,r,o){return o&&typeof o!="number"&&je(t,r,o)&&(r=o=n),t=Vt(t),r===n?(r=t,t=0):r=Vt(r),o=o===n?t<r?1:-1:Vt(o),G1(t,r,o,e)}}function oa(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=bt(t),r=bt(r)),e(t,r)}}function gd(e,t,r,o,l,h,v,m,S,P){var F=t&R,D=F?v:n,z=F?n:v,j=F?h:n,X=F?n:h;t|=F?$:de,t&=~(F?de:$),t&W||(t&=-4);var ae=[e,t,l,j,D,X,z,m,S,P],V=r.apply(n,ae);return Ms(e)&&Od(V,ae),V.placeholder=o,Cd(V,e,t)}function Ts(e){var t=Ne[e];return function(r,o){if(r=bt(r),o=o==null?0:Re(ie(o),292),o&&Cc(r)){var l=(ve(r)+"e").split("e"),h=t(l[0]+"e"+(+l[1]+o));return l=(ve(h)+"e").split("e"),+(l[0]+"e"+(+l[1]-o))}return t(r)}}var ub=rr&&1/ki(new rr([,-0]))[1]==Et?function(e){return new rr(e)}:Ks;function md(e){return function(t){var r=$e(t);return r==Te?rs(t):r==Ke?Ay(t):my(t,e(t))}}function Yt(e,t,r,o,l,h,v,m){var S=t&k;if(!S&&typeof e!="function")throw new pt(c);var P=o?o.length:0;if(P||(t&=-97,o=l=n),v=v===n?v:Le(ie(v),0),m=m===n?m:ie(m),P-=l?l.length:0,t&de){var F=o,D=l;o=l=n}var z=S?n:Ns(e),j=[e,t,r,o,l,F,D,h,v,m];if(z&&xb(j,z),e=j[0],t=j[1],r=j[2],o=j[3],l=j[4],m=j[9]=j[9]===n?S?0:e.length:Le(j[9]-P,0),!m&&t&(R|Z)&&(t&=-25),!t||t==I)var X=ab(e,t,r);else t==R||t==Z?X=ob(e,t,m):(t==$||t==(I|$))&&!l.length?X=sb(e,t,r,o):X=ra.apply(n,j);var ae=z?Vc:Od;return Cd(ae(X,j),e,t)}function yd(e,t,r,o){return e===n||Ot(e,nr[r])&&!pe.call(o,r)?t:e}function bd(e,t,r,o,l,h){return Se(e)&&Se(t)&&(h.set(t,e),Qi(e,t,n,bd,h),h.delete(t)),e}function fb(e){return Zr(e)?n:e}function _d(e,t,r,o,l,h){var v=r&x,m=e.length,S=t.length;if(m!=S&&!(v&&S>m))return!1;var P=h.get(e),F=h.get(t);if(P&&F)return P==t&&F==e;var D=-1,z=!0,j=r&A?new Nn:n;for(h.set(e,t),h.set(t,e);++D<m;){var X=e[D],ae=t[D];if(o)var V=v?o(ae,X,D,t,e,h):o(X,ae,D,e,t,h);if(V!==n){if(V)continue;z=!1;break}if(j){if(!Vo(t,function(se,le){if(!Br(j,le)&&(X===se||l(X,se,r,o,h)))return j.push(le)})){z=!1;break}}else if(!(X===ae||l(X,ae,r,o,h))){z=!1;break}}return h.delete(e),h.delete(t),z}function lb(e,t,r,o,l,h,v){switch(r){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xn:return!(e.byteLength!=t.byteLength||!h(new Ui(e),new Ui(t)));case wn:case an:case on:return Ot(+e,+t);case qn:return e.name==t.name&&e.message==t.message;case Oe:case sn:return e==t+"";case Te:var m=rs;case Ke:var S=o&x;if(m||(m=ki),e.size!=t.size&&!S)return!1;var P=v.get(e);if(P)return P==t;o|=A,v.set(e,t);var F=_d(m(e),m(t),o,l,h,v);return v.delete(e),F;case Be:if(Hr)return Hr.call(e)==Hr.call(t)}return!1}function cb(e,t,r,o,l,h){var v=r&x,m=Os(e),S=m.length,P=Os(t),F=P.length;if(S!=F&&!v)return!1;for(var D=S;D--;){var z=m[D];if(!(v?z in t:pe.call(t,z)))return!1}var j=h.get(e),X=h.get(t);if(j&&X)return j==t&&X==e;var ae=!0;h.set(e,t),h.set(t,e);for(var V=v;++D<S;){z=m[D];var se=e[z],le=t[z];if(o)var ft=v?o(le,se,z,t,e,h):o(se,le,z,e,t,h);if(!(ft===n?se===le||l(se,le,r,o,h):ft)){ae=!1;break}V||(V=z=="constructor")}if(ae&&!V){var Ge=e.constructor,lt=t.constructor;Ge!=lt&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof lt=="function"&&lt instanceof lt)&&(ae=!1)}return h.delete(e),h.delete(t),ae}function Jt(e){return Ds(Id(e,n,kd),e+"")}function Os(e){return $c(e,Fe,Ps)}function Cs(e){return $c(e,Qe,wd)}var Ns=Yi?function(e){return Yi.get(e)}:Ks;function sa(e){for(var t=e.name+"",r=ir[t],o=pe.call(ir,t)?r.length:0;o--;){var l=r[o],h=l.func;if(h==null||h==e)return l.name}return t}function ur(e){var t=pe.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Ys;return e=e===Ys?Hc:e,arguments.length?e(arguments[0],arguments[1]):e}function ua(e,t){var r=e.__data__;return bb(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ls(e){for(var t=Fe(e),r=t.length;r--;){var o=t[r],l=e[o];t[r]=[o,l,Ed(l)]}return t}function Fn(e,t){var r=Sy(e,t);return zc(r)?r:n}function db(e){var t=pe.call(e,On),r=e[On];try{e[On]=n;var o=!0}catch{}var l=Ri.call(e);return o&&(t?e[On]=r:delete e[On]),l}var Ps=as?function(e){return e==null?[]:(e=me(e),un(as(e),function(t){return Tc.call(e,t)}))}:Xs,wd=as?function(e){for(var t=[];e;)fn(t,Ps(e)),e=zi(e);return t}:Xs,$e=qe;(os&&$e(new os(new ArrayBuffer(1)))!=He||$r&&$e(new $r)!=Te||ss&&$e(ss.resolve())!=ze||rr&&$e(new rr)!=Ke||Ur&&$e(new Ur)!=Sn)&&($e=function(e){var t=qe(e),r=t==rt?e.constructor:n,o=r?Mn(r):"";if(o)switch(o){case Jy:return He;case Ky:return Te;case Xy:return ze;case Vy:return Ke;case Zy:return Sn}return t});function hb(e,t,r){for(var o=-1,l=r.length;++o<l;){var h=r[o],v=h.size;switch(h.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=Re(t,e+v);break;case"takeRight":e=Le(e,t-v);break}}return{start:e,end:t}}function pb(e){var t=e.match(Xn);return t?t[1].split(w0):[]}function Sd(e,t,r){t=pn(t,e);for(var o=-1,l=t.length,h=!1;++o<l;){var v=Mt(t[o]);if(!(h=e!=null&&r(e,v)))break;e=e[v]}return h||++o!=l?h:(l=e==null?0:e.length,!!l&&va(l)&&Kt(v,l)&&(te(e)||kn(e)))}function vb(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function xd(e){return typeof e.constructor=="function"&&!Xr(e)?ar(zi(e)):{}}function gb(e,t,r){var o=e.constructor;switch(t){case xn:return As(e);case wn:case an:return new o(+e);case He:return Q1(e,r);case Yn:case Nr:case En:case An:case Lr:case Pr:case Jn:case Fr:case Mr:return ad(e,r);case Te:return new o;case on:case sn:return new o(e);case Oe:return eb(e);case Ke:return new o;case Be:return tb(e)}}function mb(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Wr,`{
1
+ (function(ce,Qt){typeof exports=="object"&&typeof module<"u"?Qt(exports,require("inversify"),require("mobx"),require("react"),require("inversify-react"),require("react/jsx-runtime"),require("react-dnd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","inversify","mobx","react","inversify-react","react/jsx-runtime","react-dnd","react-dom"],Qt):(ce=typeof globalThis<"u"?globalThis:ce||self,Qt(ce.JustLayout={},ce.inversify,ce.mobx,ce.React,ce.inversifyReact,ce.jsxRuntime,ce.ReactDnd,ce.ReactDOM))})(this,(function(ce,Qt,cr,k,hh,U,Qr,dr){"use strict";function Zs(a){return JSON.stringify(ya(a))}function ya(a){return Array.isArray(a)?a.map(ya):a&&typeof a=="object"?Object.fromEntries(Object.entries(a).sort((i,n)=>i[0].localeCompare(n[0])).map(([i,n])=>[i,ya(n)])):a}const Mt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hr={exports:{}};var ph=hr.exports,Qs;function vh(){return Qs||(Qs=1,(function(a,i){(function(){var n,s="4.17.23",u=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",y=500,w="__lodash_placeholder__",_=1,O=2,E=4,x=1,A=2,I=1,M=2,W=4,R=8,Z=16,$=32,de=64,C=128,L=256,q=512,ne=30,Y="...",ee=800,J=16,We=1,Ye=2,Je=3,Et=1/0,Ue=9007199254740991,ko=17976931348623157e292,At=NaN,nt=4294967295,Ei=nt-1,Ai=nt>>>1,Tr=[["ary",C],["bind",I],["bindKey",M],["curry",R],["curryRight",Z],["flip",q],["partial",$],["partialRight",de],["rearg",L]],zt="[object Arguments]",_n="[object Array]",Or="[object AsyncFunction]",wn="[object Boolean]",an="[object Date]",Cr="[object DOMException]",qn="[object Error]",jn="[object Function]",Ii="[object GeneratorFunction]",Te="[object Map]",on="[object Number]",Ti="[object Null]",rt="[object Object]",ze="[object Promise]",Gn="[object Proxy]",Oe="[object RegExp]",Ke="[object Set]",sn="[object String]",Be="[object Symbol]",Mo="[object Undefined]",Sn="[object WeakMap]",Do="[object WeakSet]",xn="[object ArrayBuffer]",He="[object DataView]",Yn="[object Float32Array]",Nr="[object Float64Array]",En="[object Int8Array]",An="[object Int16Array]",Lr="[object Int32Array]",Pr="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Fr="[object Uint16Array]",kr="[object Uint32Array]",Oi=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xe=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,Ee=RegExp(Xe.source),Kn=RegExp(it.source),Wo=/<%-([\s\S]+?)%>/g,Bo=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,Ro=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$o=/^\w*$/,Ci=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mr=/[\\^$.*+?()[\]{}|]/g,Uo=RegExp(Mr.source),Ht=/^\s+/,Dr=/\s/,Wr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xn=/\{\n\/\* \[wrapped with (.+)\] \*/,w0=/,? & /,S0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,x0=/[()=,{}\[\]\/\s]/,E0=/\\(\\)?/g,A0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ul=/\w*$/,I0=/^[-+]0x[0-9a-f]+$/i,T0=/^0b[01]+$/i,O0=/^\[object .+?Constructor\]$/,C0=/^0o[0-7]+$/i,N0=/^(?:0|[1-9]\d*)$/,L0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ni=/($^)/,P0=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",F0="\\u0300-\\u036f",k0="\\ufe20-\\ufe2f",M0="\\u20d0-\\u20ff",zl=F0+k0+M0,Hl="\\u2700-\\u27bf",ql="a-z\\xdf-\\xf6\\xf8-\\xff",D0="\\xac\\xb1\\xd7\\xf7",W0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",B0="\\u2000-\\u206f",R0=" \\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",jl="A-Z\\xc0-\\xd6\\xd8-\\xde",Gl="\\ufe0e\\ufe0f",Yl=D0+W0+B0+R0,zo="['’]",$0="["+Li+"]",Jl="["+Yl+"]",Pi="["+zl+"]",Kl="\\d+",U0="["+Hl+"]",Xl="["+ql+"]",Vl="[^"+Li+Yl+Kl+Hl+ql+jl+"]",Ho="\\ud83c[\\udffb-\\udfff]",z0="(?:"+Pi+"|"+Ho+")",Zl="[^"+Li+"]",qo="(?:\\ud83c[\\udde6-\\uddff]){2}",jo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+jl+"]",Ql="\\u200d",ec="(?:"+Xl+"|"+Vl+")",H0="(?:"+Vn+"|"+Vl+")",tc="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",nc="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",rc=z0+"?",ic="["+Gl+"]?",q0="(?:"+Ql+"(?:"+[Zl,qo,jo].join("|")+")"+ic+rc+")*",j0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=ic+rc+q0,Y0="(?:"+[U0,qo,jo].join("|")+")"+ac,J0="(?:"+[Zl+Pi+"?",Pi,qo,jo,$0].join("|")+")",K0=RegExp(zo,"g"),X0=RegExp(Pi,"g"),Go=RegExp(Ho+"(?="+Ho+")|"+J0+ac,"g"),V0=RegExp([Vn+"?"+Xl+"+"+tc+"(?="+[Jl,Vn,"$"].join("|")+")",H0+"+"+nc+"(?="+[Jl,Vn+ec,"$"].join("|")+")",Vn+"?"+ec+"+"+tc,Vn+"+"+nc,G0,j0,Kl,Y0].join("|"),"g"),Z0=RegExp("["+Ql+Li+zl+Gl+"]"),Q0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ey=["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"],ty=-1,_e={};_e[Yn]=_e[Nr]=_e[En]=_e[An]=_e[Lr]=_e[Pr]=_e[Jn]=_e[Fr]=_e[kr]=!0,_e[zt]=_e[_n]=_e[xn]=_e[wn]=_e[He]=_e[an]=_e[qn]=_e[jn]=_e[Te]=_e[on]=_e[rt]=_e[Oe]=_e[Ke]=_e[sn]=_e[Sn]=!1;var ye={};ye[zt]=ye[_n]=ye[xn]=ye[He]=ye[wn]=ye[an]=ye[Yn]=ye[Nr]=ye[En]=ye[An]=ye[Lr]=ye[Te]=ye[on]=ye[rt]=ye[Oe]=ye[Ke]=ye[sn]=ye[Be]=ye[Pr]=ye[Jn]=ye[Fr]=ye[kr]=!0,ye[qn]=ye[jn]=ye[Sn]=!1;var ny={À:"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"},ry={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},iy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oy=parseFloat,sy=parseInt,oc=typeof en=="object"&&en&&en.Object===Object&&en,uy=typeof self=="object"&&self&&self.Object===Object&&self,Me=oc||uy||Function("return this")(),Yo=i&&!i.nodeType&&i,Tn=Yo&&!0&&a&&!a.nodeType&&a,sc=Tn&&Tn.exports===Yo,Jo=sc&&oc.process,dt=(function(){try{var b=Tn&&Tn.require&&Tn.require("util").types;return b||Jo&&Jo.binding&&Jo.binding("util")}catch{}})(),uc=dt&&dt.isArrayBuffer,fc=dt&&dt.isDate,lc=dt&&dt.isMap,cc=dt&&dt.isRegExp,dc=dt&&dt.isSet,hc=dt&&dt.isTypedArray;function at(b,N,T){switch(T.length){case 0:return b.call(N);case 1:return b.call(N,T[0]);case 2:return b.call(N,T[0],T[1]);case 3:return b.call(N,T[0],T[1],T[2])}return b.apply(N,T)}function fy(b,N,T,H){for(var Q=-1,he=b==null?0:b.length;++Q<he;){var Ne=b[Q];N(H,Ne,T(Ne),b)}return H}function ht(b,N){for(var T=-1,H=b==null?0:b.length;++T<H&&N(b[T],T,b)!==!1;);return b}function ly(b,N){for(var T=b==null?0:b.length;T--&&N(b[T],T,b)!==!1;);return b}function pc(b,N){for(var T=-1,H=b==null?0:b.length;++T<H;)if(!N(b[T],T,b))return!1;return!0}function un(b,N){for(var T=-1,H=b==null?0:b.length,Q=0,he=[];++T<H;){var Ne=b[T];N(Ne,T,b)&&(he[Q++]=Ne)}return he}function Fi(b,N){var T=b==null?0:b.length;return!!T&&Zn(b,N,0)>-1}function Ko(b,N,T){for(var H=-1,Q=b==null?0:b.length;++H<Q;)if(T(N,b[H]))return!0;return!1}function we(b,N){for(var T=-1,H=b==null?0:b.length,Q=Array(H);++T<H;)Q[T]=N(b[T],T,b);return Q}function fn(b,N){for(var T=-1,H=N.length,Q=b.length;++T<H;)b[Q+T]=N[T];return b}function Xo(b,N,T,H){var Q=-1,he=b==null?0:b.length;for(H&&he&&(T=b[++Q]);++Q<he;)T=N(T,b[Q],Q,b);return T}function cy(b,N,T,H){var Q=b==null?0:b.length;for(H&&Q&&(T=b[--Q]);Q--;)T=N(T,b[Q],Q,b);return T}function Vo(b,N){for(var T=-1,H=b==null?0:b.length;++T<H;)if(N(b[T],T,b))return!0;return!1}var dy=Zo("length");function hy(b){return b.split("")}function py(b){return b.match(S0)||[]}function vc(b,N,T){var H;return T(b,function(Q,he,Ne){if(N(Q,he,Ne))return H=he,!1}),H}function ki(b,N,T,H){for(var Q=b.length,he=T+(H?1:-1);H?he--:++he<Q;)if(N(b[he],he,b))return he;return-1}function Zn(b,N,T){return N===N?Iy(b,N,T):ki(b,gc,T)}function vy(b,N,T,H){for(var Q=T-1,he=b.length;++Q<he;)if(H(b[Q],N))return Q;return-1}function gc(b){return b!==b}function mc(b,N){var T=b==null?0:b.length;return T?es(b,N)/T:At}function Zo(b){return function(N){return N==null?n:N[b]}}function Qo(b){return function(N){return b==null?n:b[N]}}function yc(b,N,T,H,Q){return Q(b,function(he,Ne,me){T=H?(H=!1,he):N(T,he,Ne,me)}),T}function gy(b,N){var T=b.length;for(b.sort(N);T--;)b[T]=b[T].value;return b}function es(b,N){for(var T,H=-1,Q=b.length;++H<Q;){var he=N(b[H]);he!==n&&(T=T===n?he:T+he)}return T}function ts(b,N){for(var T=-1,H=Array(b);++T<b;)H[T]=N(T);return H}function my(b,N){return we(N,function(T){return[T,b[T]]})}function bc(b){return b&&b.slice(0,xc(b)+1).replace(Ht,"")}function ot(b){return function(N){return b(N)}}function ns(b,N){return we(N,function(T){return b[T]})}function Br(b,N){return b.has(N)}function _c(b,N){for(var T=-1,H=b.length;++T<H&&Zn(N,b[T],0)>-1;);return T}function wc(b,N){for(var T=b.length;T--&&Zn(N,b[T],0)>-1;);return T}function yy(b,N){for(var T=b.length,H=0;T--;)b[T]===N&&++H;return H}var by=Qo(ny),_y=Qo(ry);function wy(b){return"\\"+ay[b]}function Sy(b,N){return b==null?n:b[N]}function Qn(b){return Z0.test(b)}function xy(b){return Q0.test(b)}function Ey(b){for(var N,T=[];!(N=b.next()).done;)T.push(N.value);return T}function rs(b){var N=-1,T=Array(b.size);return b.forEach(function(H,Q){T[++N]=[Q,H]}),T}function Sc(b,N){return function(T){return b(N(T))}}function ln(b,N){for(var T=-1,H=b.length,Q=0,he=[];++T<H;){var Ne=b[T];(Ne===N||Ne===w)&&(b[T]=w,he[Q++]=T)}return he}function Mi(b){var N=-1,T=Array(b.size);return b.forEach(function(H){T[++N]=H}),T}function Ay(b){var N=-1,T=Array(b.size);return b.forEach(function(H){T[++N]=[H,H]}),T}function Iy(b,N,T){for(var H=T-1,Q=b.length;++H<Q;)if(b[H]===N)return H;return-1}function Ty(b,N,T){for(var H=T+1;H--;)if(b[H]===N)return H;return H}function er(b){return Qn(b)?Cy(b):dy(b)}function It(b){return Qn(b)?Ny(b):hy(b)}function xc(b){for(var N=b.length;N--&&Dr.test(b.charAt(N)););return N}var Oy=Qo(iy);function Cy(b){for(var N=Go.lastIndex=0;Go.test(b);)++N;return N}function Ny(b){return b.match(Go)||[]}function Ly(b){return b.match(V0)||[]}var Py=(function b(N){N=N==null?Me:tr.defaults(Me.Object(),N,tr.pick(Me,ey));var T=N.Array,H=N.Date,Q=N.Error,he=N.Function,Ne=N.Math,me=N.Object,is=N.RegExp,Fy=N.String,pt=N.TypeError,Di=T.prototype,ky=he.prototype,nr=me.prototype,Wi=N["__core-js_shared__"],Bi=ky.toString,pe=nr.hasOwnProperty,My=0,Ec=(function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ri=nr.toString,Dy=Bi.call(me),Wy=Me._,By=is("^"+Bi.call(pe).replace(Mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$i=sc?N.Buffer:n,cn=N.Symbol,Ui=N.Uint8Array,Ac=$i?$i.allocUnsafe:n,zi=Sc(me.getPrototypeOf,me),Ic=me.create,Tc=nr.propertyIsEnumerable,Hi=Di.splice,Oc=cn?cn.isConcatSpreadable:n,Rr=cn?cn.iterator:n,On=cn?cn.toStringTag:n,qi=(function(){try{var e=Fn(me,"defineProperty");return e({},"",{}),e}catch{}})(),Ry=N.clearTimeout!==Me.clearTimeout&&N.clearTimeout,$y=H&&H.now!==Me.Date.now&&H.now,Uy=N.setTimeout!==Me.setTimeout&&N.setTimeout,ji=Ne.ceil,Gi=Ne.floor,as=me.getOwnPropertySymbols,zy=$i?$i.isBuffer:n,Cc=N.isFinite,Hy=Di.join,qy=Sc(me.keys,me),Le=Ne.max,Re=Ne.min,jy=H.now,Gy=N.parseInt,Nc=Ne.random,Yy=Di.reverse,os=Fn(N,"DataView"),$r=Fn(N,"Map"),ss=Fn(N,"Promise"),rr=Fn(N,"Set"),Ur=Fn(N,"WeakMap"),zr=Fn(me,"create"),Yi=Ur&&new Ur,ir={},Jy=kn(os),Ky=kn($r),Xy=kn(ss),Vy=kn(rr),Zy=kn(Ur),Ji=cn?cn.prototype:n,Hr=Ji?Ji.valueOf:n,Lc=Ji?Ji.toString:n;function d(e){if(xe(e)&&!te(e)&&!(e instanceof ue)){if(e instanceof vt)return e;if(pe.call(e,"__wrapped__"))return Pd(e)}return new vt(e)}var ar=(function(){function e(){}return function(t){if(!Se(t))return{};if(Ic)return Ic(t);e.prototype=t;var r=new e;return e.prototype=n,r}})();function Ki(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}d.templateSettings={escape:Wo,evaluate:Bo,interpolate:In,variable:"",imports:{_:d}},d.prototype=Ki.prototype,d.prototype.constructor=d,vt.prototype=ar(Ki.prototype),vt.prototype.constructor=vt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nt,this.__views__=[]}function Qy(){var e=new ue(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e}function e1(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function t1(){var e=this.__wrapped__.value(),t=this.__dir__,r=te(e),o=t<0,l=r?e.length:0,h=hb(0,l,this.__views__),v=h.start,m=h.end,S=m-v,P=o?m:v-1,F=this.__iteratees__,D=F.length,z=0,j=Re(S,this.__takeCount__);if(!r||!o&&l==S&&j==S)return td(e,this.__actions__);var X=[];e:for(;S--&&z<j;){P+=t;for(var ae=-1,V=e[P];++ae<D;){var se=F[ae],le=se.iteratee,ft=se.type,Ge=le(V);if(ft==Ye)V=Ge;else if(!Ge){if(ft==We)continue e;break e}}X[z++]=V}return X}ue.prototype=ar(Ki.prototype),ue.prototype.constructor=ue;function Cn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function n1(){this.__data__=zr?zr(null):{},this.size=0}function r1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function i1(e){var t=this.__data__;if(zr){var r=t[e];return r===g?n:r}return pe.call(t,e)?t[e]:n}function a1(e){var t=this.__data__;return zr?t[e]!==n:pe.call(t,e)}function o1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zr&&t===n?g:t,this}Cn.prototype.clear=n1,Cn.prototype.delete=r1,Cn.prototype.get=i1,Cn.prototype.has=a1,Cn.prototype.set=o1;function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function s1(){this.__data__=[],this.size=0}function u1(e){var t=this.__data__,r=Xi(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Hi.call(t,r,1),--this.size,!0}function f1(e){var t=this.__data__,r=Xi(t,e);return r<0?n:t[r][1]}function l1(e){return Xi(this.__data__,e)>-1}function c1(e,t){var r=this.__data__,o=Xi(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}qt.prototype.clear=s1,qt.prototype.delete=u1,qt.prototype.get=f1,qt.prototype.has=l1,qt.prototype.set=c1;function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function d1(){this.size=0,this.__data__={hash:new Cn,map:new($r||qt),string:new Cn}}function h1(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t}function p1(e){return ua(this,e).get(e)}function v1(e){return ua(this,e).has(e)}function g1(e,t){var r=ua(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}jt.prototype.clear=d1,jt.prototype.delete=h1,jt.prototype.get=p1,jt.prototype.has=v1,jt.prototype.set=g1;function Nn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new jt;++t<r;)this.add(e[t])}function m1(e){return this.__data__.set(e,g),this}function y1(e){return this.__data__.has(e)}Nn.prototype.add=Nn.prototype.push=m1,Nn.prototype.has=y1;function Tt(e){var t=this.__data__=new qt(e);this.size=t.size}function b1(){this.__data__=new qt,this.size=0}function _1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function w1(e){return this.__data__.get(e)}function S1(e){return this.__data__.has(e)}function x1(e,t){var r=this.__data__;if(r instanceof qt){var o=r.__data__;if(!$r||o.length<u-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new jt(o)}return r.set(e,t),this.size=r.size,this}Tt.prototype.clear=b1,Tt.prototype.delete=_1,Tt.prototype.get=w1,Tt.prototype.has=S1,Tt.prototype.set=x1;function Pc(e,t){var r=te(e),o=!r&&Mn(e),l=!r&&!o&&gn(e),h=!r&&!o&&!l&&fr(e),v=r||o||l||h,m=v?ts(e.length,Fy):[],S=m.length;for(var P in e)(t||pe.call(e,P))&&!(v&&(P=="length"||l&&(P=="offset"||P=="parent")||h&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Kt(P,S)))&&m.push(P);return m}function Fc(e){var t=e.length;return t?e[ys(0,t-1)]:n}function E1(e,t){return fa(Ve(e),Ln(t,0,e.length))}function A1(e){return fa(Ve(e))}function us(e,t,r){(r!==n&&!Ot(e[t],r)||r===n&&!(t in e))&&Gt(e,t,r)}function qr(e,t,r){var o=e[t];(!(pe.call(e,t)&&Ot(o,r))||r===n&&!(t in e))&&Gt(e,t,r)}function Xi(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function I1(e,t,r,o){return dn(e,function(l,h,v){t(o,l,r(l),v)}),o}function kc(e,t){return e&&Ft(t,Fe(t),e)}function T1(e,t){return e&&Ft(t,Qe(t),e)}function Gt(e,t,r){t=="__proto__"&&qi?qi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function fs(e,t){for(var r=-1,o=t.length,l=T(o),h=e==null;++r<o;)l[r]=h?n:Hs(e,t[r]);return l}function Ln(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function gt(e,t,r,o,l,h){var v,m=t&_,S=t&O,P=t&E;if(r&&(v=l?r(e,o,l,h):r(e)),v!==n)return v;if(!Se(e))return e;var F=te(e);if(F){if(v=vb(e),!m)return Ve(e,v)}else{var D=$e(e),z=D==jn||D==Ii;if(gn(e))return id(e,m);if(D==rt||D==zt||z&&!l){if(v=S||z?{}:xd(e),!m)return S?ib(e,T1(v,e)):rb(e,kc(v,e))}else{if(!ye[D])return l?e:{};v=gb(e,D,m)}}h||(h=new Tt);var j=h.get(e);if(j)return j;h.set(e,v),Zd(e)?e.forEach(function(V){v.add(gt(V,t,r,V,e,h))}):Xd(e)&&e.forEach(function(V,se){v.set(se,gt(V,t,r,se,e,h))});var X=P?S?Cs:Os:S?Qe:Fe,ae=F?n:X(e);return ht(ae||e,function(V,se){ae&&(se=V,V=e[se]),qr(v,se,gt(V,t,r,se,e,h))}),v}function O1(e){var t=Fe(e);return function(r){return Mc(r,e,t)}}function Mc(e,t,r){var o=r.length;if(e==null)return!o;for(e=me(e);o--;){var l=r[o],h=t[l],v=e[l];if(v===n&&!(l in e)||!h(v))return!1}return!0}function Dc(e,t,r){if(typeof e!="function")throw new pt(c);return Vr(function(){e.apply(n,r)},t)}function jr(e,t,r,o){var l=-1,h=Fi,v=!0,m=e.length,S=[],P=t.length;if(!m)return S;r&&(t=we(t,ot(r))),o?(h=Ko,v=!1):t.length>=u&&(h=Br,v=!1,t=new Nn(t));e:for(;++l<m;){var F=e[l],D=r==null?F:r(F);if(F=o||F!==0?F:0,v&&D===D){for(var z=P;z--;)if(t[z]===D)continue e;S.push(F)}else h(t,D,o)||S.push(F)}return S}var dn=fd(Pt),Wc=fd(cs,!0);function C1(e,t){var r=!0;return dn(e,function(o,l,h){return r=!!t(o,l,h),r}),r}function Vi(e,t,r){for(var o=-1,l=e.length;++o<l;){var h=e[o],v=t(h);if(v!=null&&(m===n?v===v&&!ut(v):r(v,m)))var m=v,S=h}return S}function N1(e,t,r,o){var l=e.length;for(r=ie(r),r<0&&(r=-r>l?0:l+r),o=o===n||o>l?l:ie(o),o<0&&(o+=l),o=r>o?0:eh(o);r<o;)e[r++]=t;return e}function Bc(e,t){var r=[];return dn(e,function(o,l,h){t(o,l,h)&&r.push(o)}),r}function De(e,t,r,o,l){var h=-1,v=e.length;for(r||(r=yb),l||(l=[]);++h<v;){var m=e[h];t>0&&r(m)?t>1?De(m,t-1,r,o,l):fn(l,m):o||(l[l.length]=m)}return l}var ls=ld(),Rc=ld(!0);function Pt(e,t){return e&&ls(e,t,Fe)}function cs(e,t){return e&&Rc(e,t,Fe)}function Zi(e,t){return un(t,function(r){return Xt(e[r])})}function Pn(e,t){t=pn(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[kt(t[r++])];return r&&r==o?e:n}function $c(e,t,r){var o=t(e);return te(e)?o:fn(o,r(e))}function qe(e){return e==null?e===n?Mo:Ti:On&&On in me(e)?db(e):Ab(e)}function ds(e,t){return e>t}function L1(e,t){return e!=null&&pe.call(e,t)}function P1(e,t){return e!=null&&t in me(e)}function F1(e,t,r){return e>=Re(t,r)&&e<Le(t,r)}function hs(e,t,r){for(var o=r?Ko:Fi,l=e[0].length,h=e.length,v=h,m=T(h),S=1/0,P=[];v--;){var F=e[v];v&&t&&(F=we(F,ot(t))),S=Re(F.length,S),m[v]=!r&&(t||l>=120&&F.length>=120)?new Nn(v&&F):n}F=e[0];var D=-1,z=m[0];e:for(;++D<l&&P.length<S;){var j=F[D],X=t?t(j):j;if(j=r||j!==0?j:0,!(z?Br(z,X):o(P,X,r))){for(v=h;--v;){var ae=m[v];if(!(ae?Br(ae,X):o(e[v],X,r)))continue e}z&&z.push(X),P.push(j)}}return P}function k1(e,t,r,o){return Pt(e,function(l,h,v){t(o,r(l),h,v)}),o}function Gr(e,t,r){t=pn(t,e),e=Td(e,t);var o=e==null?e:e[kt(yt(t))];return o==null?n:at(o,e,r)}function Uc(e){return xe(e)&&qe(e)==zt}function M1(e){return xe(e)&&qe(e)==xn}function D1(e){return xe(e)&&qe(e)==an}function Yr(e,t,r,o,l){return e===t?!0:e==null||t==null||!xe(e)&&!xe(t)?e!==e&&t!==t:W1(e,t,r,o,Yr,l)}function W1(e,t,r,o,l,h){var v=te(e),m=te(t),S=v?_n:$e(e),P=m?_n:$e(t);S=S==zt?rt:S,P=P==zt?rt:P;var F=S==rt,D=P==rt,z=S==P;if(z&&gn(e)){if(!gn(t))return!1;v=!0,F=!1}if(z&&!F)return h||(h=new Tt),v||fr(e)?_d(e,t,r,o,l,h):lb(e,t,S,r,o,l,h);if(!(r&x)){var j=F&&pe.call(e,"__wrapped__"),X=D&&pe.call(t,"__wrapped__");if(j||X){var ae=j?e.value():e,V=X?t.value():t;return h||(h=new Tt),l(ae,V,r,o,h)}}return z?(h||(h=new Tt),cb(e,t,r,o,l,h)):!1}function B1(e){return xe(e)&&$e(e)==Te}function ps(e,t,r,o){var l=r.length,h=l,v=!o;if(e==null)return!h;for(e=me(e);l--;){var m=r[l];if(v&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<h;){m=r[l];var S=m[0],P=e[S],F=m[1];if(v&&m[2]){if(P===n&&!(S in e))return!1}else{var D=new Tt;if(o)var z=o(P,F,S,e,t,D);if(!(z===n?Yr(F,P,x|A,o,D):z))return!1}}return!0}function zc(e){if(!Se(e)||_b(e))return!1;var t=Xt(e)?By:O0;return t.test(kn(e))}function R1(e){return xe(e)&&qe(e)==Oe}function $1(e){return xe(e)&&$e(e)==Ke}function U1(e){return xe(e)&&va(e.length)&&!!_e[qe(e)]}function Hc(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?te(e)?Gc(e[0],e[1]):jc(e):ch(e)}function vs(e){if(!Xr(e))return qy(e);var t=[];for(var r in me(e))pe.call(e,r)&&r!="constructor"&&t.push(r);return t}function z1(e){if(!Se(e))return Eb(e);var t=Xr(e),r=[];for(var o in e)o=="constructor"&&(t||!pe.call(e,o))||r.push(o);return r}function gs(e,t){return e<t}function qc(e,t){var r=-1,o=Ze(e)?T(e.length):[];return dn(e,function(l,h,v){o[++r]=t(l,h,v)}),o}function jc(e){var t=Ls(e);return t.length==1&&t[0][2]?Ad(t[0][0],t[0][1]):function(r){return r===e||ps(r,e,t)}}function Gc(e,t){return Fs(e)&&Ed(t)?Ad(kt(e),t):function(r){var o=Hs(r,e);return o===n&&o===t?qs(r,e):Yr(t,o,x|A)}}function Qi(e,t,r,o,l){e!==t&&ls(t,function(h,v){if(l||(l=new Tt),Se(h))H1(e,t,v,r,Qi,o,l);else{var m=o?o(Ms(e,v),h,v+"",e,t,l):n;m===n&&(m=h),us(e,v,m)}},Qe)}function H1(e,t,r,o,l,h,v){var m=Ms(e,r),S=Ms(t,r),P=v.get(S);if(P){us(e,r,P);return}var F=h?h(m,S,r+"",e,t,v):n,D=F===n;if(D){var z=te(S),j=!z&&gn(S),X=!z&&!j&&fr(S);F=S,z||j||X?te(m)?F=m:Ae(m)?F=Ve(m):j?(D=!1,F=id(S,!0)):X?(D=!1,F=ad(S,!0)):F=[]:Zr(S)||Mn(S)?(F=m,Mn(m)?F=th(m):(!Se(m)||Xt(m))&&(F=xd(S))):D=!1}D&&(v.set(S,F),l(F,S,o,h,v),v.delete(S)),us(e,r,F)}function Yc(e,t){var r=e.length;if(r)return t+=t<0?r:0,Kt(t,r)?e[t]:n}function Jc(e,t,r){t.length?t=we(t,function(h){return te(h)?function(v){return Pn(v,h.length===1?h[0]:h)}:h}):t=[et];var o=-1;t=we(t,ot(K()));var l=qc(e,function(h,v,m){var S=we(t,function(P){return P(h)});return{criteria:S,index:++o,value:h}});return gy(l,function(h,v){return nb(h,v,r)})}function q1(e,t){return Kc(e,t,function(r,o){return qs(e,o)})}function Kc(e,t,r){for(var o=-1,l=t.length,h={};++o<l;){var v=t[o],m=Pn(e,v);r(m,v)&&Jr(h,pn(v,e),m)}return h}function j1(e){return function(t){return Pn(t,e)}}function ms(e,t,r,o){var l=o?vy:Zn,h=-1,v=t.length,m=e;for(e===t&&(t=Ve(t)),r&&(m=we(e,ot(r)));++h<v;)for(var S=0,P=t[h],F=r?r(P):P;(S=l(m,F,S,o))>-1;)m!==e&&Hi.call(m,S,1),Hi.call(e,S,1);return e}function Xc(e,t){for(var r=e?t.length:0,o=r-1;r--;){var l=t[r];if(r==o||l!==h){var h=l;Kt(l)?Hi.call(e,l,1):ws(e,l)}}return e}function ys(e,t){return e+Gi(Nc()*(t-e+1))}function G1(e,t,r,o){for(var l=-1,h=Le(ji((t-e)/(r||1)),0),v=T(h);h--;)v[o?h:++l]=e,e+=r;return v}function bs(e,t){var r="";if(!e||t<1||t>Ue)return r;do t%2&&(r+=e),t=Gi(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return Ds(Id(e,t,et),e+"")}function Y1(e){return Fc(lr(e))}function J1(e,t){var r=lr(e);return fa(r,Ln(t,0,r.length))}function Jr(e,t,r,o){if(!Se(e))return e;t=pn(t,e);for(var l=-1,h=t.length,v=h-1,m=e;m!=null&&++l<h;){var S=kt(t[l]),P=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(l!=v){var F=m[S];P=o?o(F,S,m):n,P===n&&(P=Se(F)?F:Kt(t[l+1])?[]:{})}qr(m,S,P),m=m[S]}return e}var Vc=Yi?function(e,t){return Yi.set(e,t),e}:et,K1=qi?function(e,t){return qi(e,"toString",{configurable:!0,enumerable:!1,value:Gs(t),writable:!0})}:et;function X1(e){return fa(lr(e))}function mt(e,t,r){var o=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var h=T(l);++o<l;)h[o]=e[o+t];return h}function V1(e,t){var r;return dn(e,function(o,l,h){return r=t(o,l,h),!r}),!!r}function ea(e,t,r){var o=0,l=e==null?o:e.length;if(typeof t=="number"&&t===t&&l<=Ai){for(;o<l;){var h=o+l>>>1,v=e[h];v!==null&&!ut(v)&&(r?v<=t:v<t)?o=h+1:l=h}return l}return _s(e,t,et,r)}function _s(e,t,r,o){var l=0,h=e==null?0:e.length;if(h===0)return 0;t=r(t);for(var v=t!==t,m=t===null,S=ut(t),P=t===n;l<h;){var F=Gi((l+h)/2),D=r(e[F]),z=D!==n,j=D===null,X=D===D,ae=ut(D);if(v)var V=o||X;else P?V=X&&(o||z):m?V=X&&z&&(o||!j):S?V=X&&z&&!j&&(o||!ae):j||ae?V=!1:V=o?D<=t:D<t;V?l=F+1:h=F}return Re(h,Ei)}function Zc(e,t){for(var r=-1,o=e.length,l=0,h=[];++r<o;){var v=e[r],m=t?t(v):v;if(!r||!Ot(m,S)){var S=m;h[l++]=v===0?0:v}}return h}function Qc(e){return typeof e=="number"?e:ut(e)?At:+e}function st(e){if(typeof e=="string")return e;if(te(e))return we(e,st)+"";if(ut(e))return Lc?Lc.call(e):"";var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function hn(e,t,r){var o=-1,l=Fi,h=e.length,v=!0,m=[],S=m;if(r)v=!1,l=Ko;else if(h>=u){var P=t?null:ub(e);if(P)return Mi(P);v=!1,l=Br,S=new Nn}else S=t?[]:m;e:for(;++o<h;){var F=e[o],D=t?t(F):F;if(F=r||F!==0?F:0,v&&D===D){for(var z=S.length;z--;)if(S[z]===D)continue e;t&&S.push(D),m.push(F)}else l(S,D,r)||(S!==m&&S.push(D),m.push(F))}return m}function ws(e,t){t=pn(t,e);var r=-1,o=t.length;if(!o)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++r<o;){var h=t[r];if(typeof h=="string"){if(h==="__proto__"&&!pe.call(e,"__proto__"))return!1;if(h==="constructor"&&r+1<o&&typeof t[r+1]=="string"&&t[r+1]==="prototype"){if(l&&r===0)continue;return!1}}}var v=Td(e,t);return v==null||delete v[kt(yt(t))]}function ed(e,t,r,o){return Jr(e,t,r(Pn(e,t)),o)}function ta(e,t,r,o){for(var l=e.length,h=o?l:-1;(o?h--:++h<l)&&t(e[h],h,e););return r?mt(e,o?0:h,o?h+1:l):mt(e,o?h+1:0,o?l:h)}function td(e,t){var r=e;return r instanceof ue&&(r=r.value()),Xo(t,function(o,l){return l.func.apply(l.thisArg,fn([o],l.args))},r)}function Ss(e,t,r){var o=e.length;if(o<2)return o?hn(e[0]):[];for(var l=-1,h=T(o);++l<o;)for(var v=e[l],m=-1;++m<o;)m!=l&&(h[l]=jr(h[l]||v,e[m],t,r));return hn(De(h,1),t,r)}function nd(e,t,r){for(var o=-1,l=e.length,h=t.length,v={};++o<l;){var m=o<h?t[o]:n;r(v,e[o],m)}return v}function xs(e){return Ae(e)?e:[]}function Es(e){return typeof e=="function"?e:et}function pn(e,t){return te(e)?e:Fs(e,t)?[e]:Ld(ve(e))}var Z1=oe;function vn(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:mt(e,t,r)}var rd=Ry||function(e){return Me.clearTimeout(e)};function id(e,t){if(t)return e.slice();var r=e.length,o=Ac?Ac(r):new e.constructor(r);return e.copy(o),o}function As(e){var t=new e.constructor(e.byteLength);return new Ui(t).set(new Ui(e)),t}function Q1(e,t){var r=t?As(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function eb(e){var t=new e.constructor(e.source,Ul.exec(e));return t.lastIndex=e.lastIndex,t}function tb(e){return Hr?me(Hr.call(e)):{}}function ad(e,t){var r=t?As(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function od(e,t){if(e!==t){var r=e!==n,o=e===null,l=e===e,h=ut(e),v=t!==n,m=t===null,S=t===t,P=ut(t);if(!m&&!P&&!h&&e>t||h&&v&&S&&!m&&!P||o&&v&&S||!r&&S||!l)return 1;if(!o&&!h&&!P&&e<t||P&&r&&l&&!o&&!h||m&&r&&l||!v&&l||!S)return-1}return 0}function nb(e,t,r){for(var o=-1,l=e.criteria,h=t.criteria,v=l.length,m=r.length;++o<v;){var S=od(l[o],h[o]);if(S){if(o>=m)return S;var P=r[o];return S*(P=="desc"?-1:1)}}return e.index-t.index}function sd(e,t,r,o){for(var l=-1,h=e.length,v=r.length,m=-1,S=t.length,P=Le(h-v,0),F=T(S+P),D=!o;++m<S;)F[m]=t[m];for(;++l<v;)(D||l<h)&&(F[r[l]]=e[l]);for(;P--;)F[m++]=e[l++];return F}function ud(e,t,r,o){for(var l=-1,h=e.length,v=-1,m=r.length,S=-1,P=t.length,F=Le(h-m,0),D=T(F+P),z=!o;++l<F;)D[l]=e[l];for(var j=l;++S<P;)D[j+S]=t[S];for(;++v<m;)(z||l<h)&&(D[j+r[v]]=e[l++]);return D}function Ve(e,t){var r=-1,o=e.length;for(t||(t=T(o));++r<o;)t[r]=e[r];return t}function Ft(e,t,r,o){var l=!r;r||(r={});for(var h=-1,v=t.length;++h<v;){var m=t[h],S=o?o(r[m],e[m],m,r,e):n;S===n&&(S=e[m]),l?Gt(r,m,S):qr(r,m,S)}return r}function rb(e,t){return Ft(e,Ps(e),t)}function ib(e,t){return Ft(e,wd(e),t)}function na(e,t){return function(r,o){var l=te(r)?fy:I1,h=t?t():{};return l(r,e,K(o,2),h)}}function or(e){return oe(function(t,r){var o=-1,l=r.length,h=l>1?r[l-1]:n,v=l>2?r[2]:n;for(h=e.length>3&&typeof h=="function"?(l--,h):n,v&&je(r[0],r[1],v)&&(h=l<3?n:h,l=1),t=me(t);++o<l;){var m=r[o];m&&e(t,m,o,h)}return t})}function fd(e,t){return function(r,o){if(r==null)return r;if(!Ze(r))return e(r,o);for(var l=r.length,h=t?l:-1,v=me(r);(t?h--:++h<l)&&o(v[h],h,v)!==!1;);return r}}function ld(e){return function(t,r,o){for(var l=-1,h=me(t),v=o(t),m=v.length;m--;){var S=v[e?m:++l];if(r(h[S],S,h)===!1)break}return t}}function ab(e,t,r){var o=t&I,l=Kr(e);function h(){var v=this&&this!==Me&&this instanceof h?l:e;return v.apply(o?r:this,arguments)}return h}function cd(e){return function(t){t=ve(t);var r=Qn(t)?It(t):n,o=r?r[0]:t.charAt(0),l=r?vn(r,1).join(""):t.slice(1);return o[e]()+l}}function sr(e){return function(t){return Xo(fh(uh(t).replace(K0,"")),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 r=ar(e.prototype),o=e.apply(r,t);return Se(o)?o:r}}function ob(e,t,r){var o=Kr(e);function l(){for(var h=arguments.length,v=T(h),m=h,S=ur(l);m--;)v[m]=arguments[m];var P=h<3&&v[0]!==S&&v[h-1]!==S?[]:ln(v,S);if(h-=P.length,h<r)return gd(e,t,ra,l.placeholder,n,v,P,n,n,r-h);var F=this&&this!==Me&&this instanceof l?o:e;return at(F,this,v)}return l}function dd(e){return function(t,r,o){var l=me(t);if(!Ze(t)){var h=K(r,3);t=Fe(t),r=function(m){return h(l[m],m,l)}}var v=e(t,r,o);return v>-1?l[h?t[v]:v]:n}}function hd(e){return Jt(function(t){var r=t.length,o=r,l=vt.prototype.thru;for(e&&t.reverse();o--;){var h=t[o];if(typeof h!="function")throw new pt(c);if(l&&!v&&sa(h)=="wrapper")var v=new vt([],!0)}for(o=v?o:r;++o<r;){h=t[o];var m=sa(h),S=m=="wrapper"?Ns(h):n;S&&ks(S[0])&&S[1]==(C|R|$|L)&&!S[4].length&&S[9]==1?v=v[sa(S[0])].apply(v,S[3]):v=h.length==1&&ks(h)?v[m]():v.thru(h)}return function(){var P=arguments,F=P[0];if(v&&P.length==1&&te(F))return v.plant(F).value();for(var D=0,z=r?t[D].apply(this,P):F;++D<r;)z=t[D].call(this,z);return z}})}function ra(e,t,r,o,l,h,v,m,S,P){var F=t&C,D=t&I,z=t&M,j=t&(R|Z),X=t&q,ae=z?n:Kr(e);function V(){for(var se=arguments.length,le=T(se),ft=se;ft--;)le[ft]=arguments[ft];if(j)var Ge=ur(V),lt=yy(le,Ge);if(o&&(le=sd(le,o,l,j)),h&&(le=ud(le,h,v,j)),se-=lt,j&&se<P){var Ie=ln(le,Ge);return gd(e,t,ra,V.placeholder,r,le,Ie,m,S,P-se)}var Ct=D?r:this,Zt=z?Ct[e]:e;return se=le.length,m?le=Ib(le,m):X&&se>1&&le.reverse(),F&&S<se&&(le.length=S),this&&this!==Me&&this instanceof V&&(Zt=ae||Kr(Zt)),Zt.apply(Ct,le)}return V}function pd(e,t){return function(r,o){return k1(r,e,t(o),{})}}function ia(e,t){return function(r,o){var l;if(r===n&&o===n)return t;if(r!==n&&(l=r),o!==n){if(l===n)return o;typeof r=="string"||typeof o=="string"?(r=st(r),o=st(o)):(r=Qc(r),o=Qc(o)),l=e(r,o)}return l}}function Is(e){return Jt(function(t){return t=we(t,ot(K())),oe(function(r){var o=this;return e(t,function(l){return at(l,o,r)})})})}function aa(e,t){t=t===n?" ":st(t);var r=t.length;if(r<2)return r?bs(t,e):t;var o=bs(t,ji(e/er(t)));return Qn(t)?vn(It(o),0,e).join(""):o.slice(0,e)}function sb(e,t,r,o){var l=t&I,h=Kr(e);function v(){for(var m=-1,S=arguments.length,P=-1,F=o.length,D=T(F+S),z=this&&this!==Me&&this instanceof v?h:e;++P<F;)D[P]=o[P];for(;S--;)D[P++]=arguments[++m];return at(z,l?r:this,D)}return v}function vd(e){return function(t,r,o){return o&&typeof o!="number"&&je(t,r,o)&&(r=o=n),t=Vt(t),r===n?(r=t,t=0):r=Vt(r),o=o===n?t<r?1:-1:Vt(o),G1(t,r,o,e)}}function oa(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=bt(t),r=bt(r)),e(t,r)}}function gd(e,t,r,o,l,h,v,m,S,P){var F=t&R,D=F?v:n,z=F?n:v,j=F?h:n,X=F?n:h;t|=F?$:de,t&=~(F?de:$),t&W||(t&=-4);var ae=[e,t,l,j,D,X,z,m,S,P],V=r.apply(n,ae);return ks(e)&&Od(V,ae),V.placeholder=o,Cd(V,e,t)}function Ts(e){var t=Ne[e];return function(r,o){if(r=bt(r),o=o==null?0:Re(ie(o),292),o&&Cc(r)){var l=(ve(r)+"e").split("e"),h=t(l[0]+"e"+(+l[1]+o));return l=(ve(h)+"e").split("e"),+(l[0]+"e"+(+l[1]-o))}return t(r)}}var ub=rr&&1/Mi(new rr([,-0]))[1]==Et?function(e){return new rr(e)}:Ks;function md(e){return function(t){var r=$e(t);return r==Te?rs(t):r==Ke?Ay(t):my(t,e(t))}}function Yt(e,t,r,o,l,h,v,m){var S=t&M;if(!S&&typeof e!="function")throw new pt(c);var P=o?o.length:0;if(P||(t&=-97,o=l=n),v=v===n?v:Le(ie(v),0),m=m===n?m:ie(m),P-=l?l.length:0,t&de){var F=o,D=l;o=l=n}var z=S?n:Ns(e),j=[e,t,r,o,l,F,D,h,v,m];if(z&&xb(j,z),e=j[0],t=j[1],r=j[2],o=j[3],l=j[4],m=j[9]=j[9]===n?S?0:e.length:Le(j[9]-P,0),!m&&t&(R|Z)&&(t&=-25),!t||t==I)var X=ab(e,t,r);else t==R||t==Z?X=ob(e,t,m):(t==$||t==(I|$))&&!l.length?X=sb(e,t,r,o):X=ra.apply(n,j);var ae=z?Vc:Od;return Cd(ae(X,j),e,t)}function yd(e,t,r,o){return e===n||Ot(e,nr[r])&&!pe.call(o,r)?t:e}function bd(e,t,r,o,l,h){return Se(e)&&Se(t)&&(h.set(t,e),Qi(e,t,n,bd,h),h.delete(t)),e}function fb(e){return Zr(e)?n:e}function _d(e,t,r,o,l,h){var v=r&x,m=e.length,S=t.length;if(m!=S&&!(v&&S>m))return!1;var P=h.get(e),F=h.get(t);if(P&&F)return P==t&&F==e;var D=-1,z=!0,j=r&A?new Nn:n;for(h.set(e,t),h.set(t,e);++D<m;){var X=e[D],ae=t[D];if(o)var V=v?o(ae,X,D,t,e,h):o(X,ae,D,e,t,h);if(V!==n){if(V)continue;z=!1;break}if(j){if(!Vo(t,function(se,le){if(!Br(j,le)&&(X===se||l(X,se,r,o,h)))return j.push(le)})){z=!1;break}}else if(!(X===ae||l(X,ae,r,o,h))){z=!1;break}}return h.delete(e),h.delete(t),z}function lb(e,t,r,o,l,h,v){switch(r){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xn:return!(e.byteLength!=t.byteLength||!h(new Ui(e),new Ui(t)));case wn:case an:case on:return Ot(+e,+t);case qn:return e.name==t.name&&e.message==t.message;case Oe:case sn:return e==t+"";case Te:var m=rs;case Ke:var S=o&x;if(m||(m=Mi),e.size!=t.size&&!S)return!1;var P=v.get(e);if(P)return P==t;o|=A,v.set(e,t);var F=_d(m(e),m(t),o,l,h,v);return v.delete(e),F;case Be:if(Hr)return Hr.call(e)==Hr.call(t)}return!1}function cb(e,t,r,o,l,h){var v=r&x,m=Os(e),S=m.length,P=Os(t),F=P.length;if(S!=F&&!v)return!1;for(var D=S;D--;){var z=m[D];if(!(v?z in t:pe.call(t,z)))return!1}var j=h.get(e),X=h.get(t);if(j&&X)return j==t&&X==e;var ae=!0;h.set(e,t),h.set(t,e);for(var V=v;++D<S;){z=m[D];var se=e[z],le=t[z];if(o)var ft=v?o(le,se,z,t,e,h):o(se,le,z,e,t,h);if(!(ft===n?se===le||l(se,le,r,o,h):ft)){ae=!1;break}V||(V=z=="constructor")}if(ae&&!V){var Ge=e.constructor,lt=t.constructor;Ge!=lt&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof lt=="function"&&lt instanceof lt)&&(ae=!1)}return h.delete(e),h.delete(t),ae}function Jt(e){return Ds(Id(e,n,Md),e+"")}function Os(e){return $c(e,Fe,Ps)}function Cs(e){return $c(e,Qe,wd)}var Ns=Yi?function(e){return Yi.get(e)}:Ks;function sa(e){for(var t=e.name+"",r=ir[t],o=pe.call(ir,t)?r.length:0;o--;){var l=r[o],h=l.func;if(h==null||h==e)return l.name}return t}function ur(e){var t=pe.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Ys;return e=e===Ys?Hc:e,arguments.length?e(arguments[0],arguments[1]):e}function ua(e,t){var r=e.__data__;return bb(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ls(e){for(var t=Fe(e),r=t.length;r--;){var o=t[r],l=e[o];t[r]=[o,l,Ed(l)]}return t}function Fn(e,t){var r=Sy(e,t);return zc(r)?r:n}function db(e){var t=pe.call(e,On),r=e[On];try{e[On]=n;var o=!0}catch{}var l=Ri.call(e);return o&&(t?e[On]=r:delete e[On]),l}var Ps=as?function(e){return e==null?[]:(e=me(e),un(as(e),function(t){return Tc.call(e,t)}))}:Xs,wd=as?function(e){for(var t=[];e;)fn(t,Ps(e)),e=zi(e);return t}:Xs,$e=qe;(os&&$e(new os(new ArrayBuffer(1)))!=He||$r&&$e(new $r)!=Te||ss&&$e(ss.resolve())!=ze||rr&&$e(new rr)!=Ke||Ur&&$e(new Ur)!=Sn)&&($e=function(e){var t=qe(e),r=t==rt?e.constructor:n,o=r?kn(r):"";if(o)switch(o){case Jy:return He;case Ky:return Te;case Xy:return ze;case Vy:return Ke;case Zy:return Sn}return t});function hb(e,t,r){for(var o=-1,l=r.length;++o<l;){var h=r[o],v=h.size;switch(h.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=Re(t,e+v);break;case"takeRight":e=Le(e,t-v);break}}return{start:e,end:t}}function pb(e){var t=e.match(Xn);return t?t[1].split(w0):[]}function Sd(e,t,r){t=pn(t,e);for(var o=-1,l=t.length,h=!1;++o<l;){var v=kt(t[o]);if(!(h=e!=null&&r(e,v)))break;e=e[v]}return h||++o!=l?h:(l=e==null?0:e.length,!!l&&va(l)&&Kt(v,l)&&(te(e)||Mn(e)))}function vb(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function xd(e){return typeof e.constructor=="function"&&!Xr(e)?ar(zi(e)):{}}function gb(e,t,r){var o=e.constructor;switch(t){case xn:return As(e);case wn:case an:return new o(+e);case He:return Q1(e,r);case Yn:case Nr:case En:case An:case Lr:case Pr:case Jn:case Fr:case kr:return ad(e,r);case Te:return new o;case on:case sn:return new o(e);case Oe:return eb(e);case Ke:return new o;case Be:return tb(e)}}function mb(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Wr,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function yb(e){return te(e)||kn(e)||!!(Oc&&e&&e[Oc])}function Kt(e,t){var r=typeof e;return t=t??Ue,!!t&&(r=="number"||r!="symbol"&&N0.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,r){if(!Se(r))return!1;var o=typeof t;return(o=="number"?Ze(r)&&Kt(t,r.length):o=="string"&&t in r)?Ot(r[t],e):!1}function Fs(e,t){if(te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:$o.test(e)||!Ro.test(e)||t!=null&&e in me(t)}function bb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ms(e){var t=sa(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var o=Ns(r);return!!o&&e===o[0]}function _b(e){return!!Ec&&Ec in e}var wb=Wi?Xt:Vs;function Xr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nr;return e===r}function Ed(e){return e===e&&!Se(e)}function Ad(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in me(r))}}function Sb(e){var t=ha(e,function(o){return r.size===y&&r.clear(),o}),r=t.cache;return t}function xb(e,t){var r=e[1],o=t[1],l=r|o,h=l<(I|k|C),v=o==C&&r==R||o==C&&r==L&&e[7].length<=t[8]||o==(C|L)&&t[7].length<=t[8]&&r==R;if(!(h||v))return e;o&I&&(e[2]=t[2],l|=r&I?0:W);var m=t[3];if(m){var S=e[3];e[3]=S?sd(S,m,t[4]):m,e[4]=S?ln(e[3],w):t[4]}return m=t[5],m&&(S=e[5],e[5]=S?ud(S,m,t[6]):m,e[6]=S?ln(e[5],w):t[6]),m=t[7],m&&(e[7]=m),o&C&&(e[8]=e[8]==null?t[8]:Re(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Eb(e){var t=[];if(e!=null)for(var r in me(e))t.push(r);return t}function Ab(e){return Ri.call(e)}function Id(e,t,r){return t=Le(t===n?e.length-1:t,0),function(){for(var o=arguments,l=-1,h=Le(o.length-t,0),v=T(h);++l<h;)v[l]=o[t+l];l=-1;for(var m=T(t+1);++l<t;)m[l]=o[l];return m[t]=r(v),at(e,this,m)}}function Td(e,t){return t.length<2?e:Pn(e,mt(t,0,-1))}function Ib(e,t){for(var r=e.length,o=Re(t.length,r),l=Ve(e);o--;){var h=t[o];e[o]=Kt(h,r)?l[h]:n}return e}function ks(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Od=Nd(Vc),Vr=Uy||function(e,t){return ke.setTimeout(e,t)},Ds=Nd(K1);function Cd(e,t,r){var o=t+"";return Ds(e,mb(o,Tb(pb(o),r)))}function Nd(e){var t=0,r=0;return function(){var o=jy(),l=J-(o-r);if(r=o,l>0){if(++t>=ee)return arguments[0]}else t=0;return e.apply(n,arguments)}}function fa(e,t){var r=-1,o=e.length,l=o-1;for(t=t===n?o:t;++r<t;){var h=ys(r,l),v=e[h];e[h]=e[r],e[r]=v}return e.length=t,e}var Ld=Sb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ci,function(r,o,l,h){t.push(l?h.replace(E0,"$1"):o||r)}),t});function Mt(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function Mn(e){if(e!=null){try{return Bi.call(e)}catch{}try{return e+""}catch{}}return""}function Tb(e,t){return ht(Tr,function(r){var o="_."+r[0];t&r[1]&&!Fi(e,o)&&e.push(o)}),e.sort()}function Pd(e){if(e instanceof ue)return e.clone();var t=new vt(e.__wrapped__,e.__chain__);return t.__actions__=Ve(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ob(e,t,r){(r?je(e,t,r):t===n)?t=1:t=Le(ie(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var l=0,h=0,v=T(ji(o/t));l<o;)v[h++]=mt(e,l,l+=t);return v}function Cb(e){for(var t=-1,r=e==null?0:e.length,o=0,l=[];++t<r;){var h=e[t];h&&(l[o++]=h)}return l}function Nb(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return fn(te(r)?Ve(r):[r],De(t,1))}var Lb=oe(function(e,t){return Ae(e)?jr(e,De(t,1,Ae,!0)):[]}),Pb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?jr(e,De(t,1,Ae,!0),K(r,2)):[]}),Fb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?jr(e,De(t,1,Ae,!0),n,r):[]});function Mb(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),mt(e,t<0?0:t,o)):[]}function kb(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),t=o-t,mt(e,0,t<0?0:t)):[]}function Db(e,t){return e&&e.length?ta(e,K(t,3),!0,!0):[]}function Wb(e,t){return e&&e.length?ta(e,K(t,3),!0):[]}function Bb(e,t,r,o){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&je(e,t,r)&&(r=0,o=l),N1(e,t,r,o)):[]}function Fd(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(o+l,0)),Mi(e,K(t,3),l)}function Md(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=o-1;return r!==n&&(l=ie(r),l=r<0?Le(o+l,0):Re(l,o-1)),Mi(e,K(t,3),l,!0)}function kd(e){var t=e==null?0:e.length;return t?De(e,1):[]}function Rb(e){var t=e==null?0:e.length;return t?De(e,Et):[]}function $b(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:ie(t),De(e,t)):[]}function Ub(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var l=e[t];o[l[0]]=l[1]}return o}function Dd(e){return e&&e.length?e[0]:n}function zb(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(o+l,0)),Zn(e,t,l)}function Hb(e){var t=e==null?0:e.length;return t?mt(e,0,-1):[]}var qb=oe(function(e){var t=we(e,xs);return t.length&&t[0]===e[0]?hs(t):[]}),jb=oe(function(e){var t=yt(e),r=we(e,xs);return t===yt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?hs(r,K(t,2)):[]}),Gb=oe(function(e){var t=yt(e),r=we(e,xs);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?hs(r,n,t):[]});function Yb(e,t){return e==null?"":Hy.call(e,t)}function yt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Jb(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=o;return r!==n&&(l=ie(r),l=l<0?Le(o+l,0):Re(l,o-1)),t===t?Ty(e,t,l):Mi(e,gc,l,!0)}function Kb(e,t){return e&&e.length?Yc(e,ie(t)):n}var Xb=oe(Wd);function Wd(e,t){return e&&e.length&&t&&t.length?ms(e,t):e}function Vb(e,t,r){return e&&e.length&&t&&t.length?ms(e,t,K(r,2)):e}function Zb(e,t,r){return e&&e.length&&t&&t.length?ms(e,t,n,r):e}var Qb=Jt(function(e,t){var r=e==null?0:e.length,o=fs(e,t);return Xc(e,we(t,function(l){return Kt(l,r)?+l:l}).sort(od)),o});function e_(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,l=[],h=e.length;for(t=K(t,3);++o<h;){var v=e[o];t(v,o,e)&&(r.push(v),l.push(o))}return Xc(e,l),r}function Ws(e){return e==null?e:Yy.call(e)}function t_(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&je(e,t,r)?(t=0,r=o):(t=t==null?0:ie(t),r=r===n?o:ie(r)),mt(e,t,r)):[]}function n_(e,t){return ea(e,t)}function r_(e,t,r){return _s(e,t,K(r,2))}function i_(e,t){var r=e==null?0:e.length;if(r){var o=ea(e,t);if(o<r&&Ot(e[o],t))return o}return-1}function a_(e,t){return ea(e,t,!0)}function o_(e,t,r){return _s(e,t,K(r,2),!0)}function s_(e,t){var r=e==null?0:e.length;if(r){var o=ea(e,t,!0)-1;if(Ot(e[o],t))return o}return-1}function u_(e){return e&&e.length?Zc(e):[]}function f_(e,t){return e&&e.length?Zc(e,K(t,2)):[]}function l_(e){var t=e==null?0:e.length;return t?mt(e,1,t):[]}function c_(e,t,r){return e&&e.length?(t=r||t===n?1:ie(t),mt(e,0,t<0?0:t)):[]}function d_(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),t=o-t,mt(e,t<0?0:t,o)):[]}function h_(e,t){return e&&e.length?ta(e,K(t,3),!1,!0):[]}function p_(e,t){return e&&e.length?ta(e,K(t,3)):[]}var v_=oe(function(e){return hn(De(e,1,Ae,!0))}),g_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),hn(De(e,1,Ae,!0),K(t,2))}),m_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,hn(De(e,1,Ae,!0),n,t)});function y_(e){return e&&e.length?hn(e):[]}function b_(e,t){return e&&e.length?hn(e,K(t,2)):[]}function __(e,t){return t=typeof t=="function"?t:n,e&&e.length?hn(e,n,t):[]}function Bs(e){if(!(e&&e.length))return[];var t=0;return e=un(e,function(r){if(Ae(r))return t=Le(r.length,t),!0}),ts(t,function(r){return we(e,Zo(r))})}function Bd(e,t){if(!(e&&e.length))return[];var r=Bs(e);return t==null?r:we(r,function(o){return at(t,n,o)})}var w_=oe(function(e,t){return Ae(e)?jr(e,t):[]}),S_=oe(function(e){return Ss(un(e,Ae))}),x_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),Ss(un(e,Ae),K(t,2))}),E_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,Ss(un(e,Ae),n,t)}),A_=oe(Bs);function I_(e,t){return nd(e||[],t||[],qr)}function T_(e,t){return nd(e||[],t||[],Jr)}var O_=oe(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,Bd(e,r)});function Rd(e){var t=d(e);return t.__chain__=!0,t}function C_(e,t){return t(e),e}function la(e,t){return t(e)}var N_=Jt(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,l=function(h){return fs(h,e)};return t>1||this.__actions__.length||!(o instanceof ue)||!Kt(r)?this.thru(l):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:la,args:[l],thisArg:n}),new vt(o,this.__chain__).thru(function(h){return t&&!h.length&&h.push(n),h}))});function L_(){return Rd(this)}function P_(){return new vt(this.value(),this.__chain__)}function F_(){this.__values__===n&&(this.__values__=Qd(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function M_(){return this}function k_(e){for(var t,r=this;r instanceof Ki;){var o=Pd(r);o.__index__=0,o.__values__=n,t?l.__wrapped__=o:t=o;var l=o;r=r.__wrapped__}return l.__wrapped__=e,t}function D_(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:la,args:[Ws],thisArg:n}),new vt(t,this.__chain__)}return this.thru(Ws)}function W_(){return td(this.__wrapped__,this.__actions__)}var B_=na(function(e,t,r){pe.call(e,r)?++e[r]:Gt(e,r,1)});function R_(e,t,r){var o=te(e)?pc:C1;return r&&je(e,t,r)&&(t=n),o(e,K(t,3))}function $_(e,t){var r=te(e)?un:Bc;return r(e,K(t,3))}var U_=dd(Fd),z_=dd(Md);function H_(e,t){return De(ca(e,t),1)}function q_(e,t){return De(ca(e,t),Et)}function j_(e,t,r){return r=r===n?1:ie(r),De(ca(e,t),r)}function $d(e,t){var r=te(e)?ht:dn;return r(e,K(t,3))}function Ud(e,t){var r=te(e)?ly:Wc;return r(e,K(t,3))}var G_=na(function(e,t,r){pe.call(e,r)?e[r].push(t):Gt(e,r,[t])});function Y_(e,t,r,o){e=Ze(e)?e:lr(e),r=r&&!o?ie(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),ga(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Zn(e,t,r)>-1}var J_=oe(function(e,t,r){var o=-1,l=typeof t=="function",h=Ze(e)?T(e.length):[];return dn(e,function(v){h[++o]=l?at(t,v,r):Gr(v,t,r)}),h}),K_=na(function(e,t,r){Gt(e,r,t)});function ca(e,t){var r=te(e)?we:qc;return r(e,K(t,3))}function X_(e,t,r,o){return e==null?[]:(te(t)||(t=t==null?[]:[t]),r=o?n:r,te(r)||(r=r==null?[]:[r]),Jc(e,t,r))}var V_=na(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Z_(e,t,r){var o=te(e)?Xo:yc,l=arguments.length<3;return o(e,K(t,4),r,l,dn)}function Q_(e,t,r){var o=te(e)?cy:yc,l=arguments.length<3;return o(e,K(t,4),r,l,Wc)}function ew(e,t){var r=te(e)?un:Bc;return r(e,pa(K(t,3)))}function tw(e){var t=te(e)?Fc:Y1;return t(e)}function nw(e,t,r){(r?je(e,t,r):t===n)?t=1:t=ie(t);var o=te(e)?E1:J1;return o(e,t)}function rw(e){var t=te(e)?A1:X1;return t(e)}function iw(e){if(e==null)return 0;if(Ze(e))return ga(e)?er(e):e.length;var t=$e(e);return t==Te||t==Ke?e.size:vs(e).length}function aw(e,t,r){var o=te(e)?Vo:V1;return r&&je(e,t,r)&&(t=n),o(e,K(t,3))}var ow=oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&je(e,t[0],t[1])?t=[]:r>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),Jc(e,De(t,1),[])}),da=$y||function(){return ke.Date.now()};function sw(e,t){if(typeof t!="function")throw new pt(c);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function zd(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Yt(e,C,n,n,n,n,t)}function Hd(e,t){var r;if(typeof t!="function")throw new pt(c);return e=ie(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Rs=oe(function(e,t,r){var o=I;if(r.length){var l=ln(r,ur(Rs));o|=$}return Yt(e,o,t,r,l)}),qd=oe(function(e,t,r){var o=I|k;if(r.length){var l=ln(r,ur(qd));o|=$}return Yt(t,o,e,r,l)});function jd(e,t,r){t=r?n:t;var o=Yt(e,R,n,n,n,n,n,t);return o.placeholder=jd.placeholder,o}function Gd(e,t,r){t=r?n:t;var o=Yt(e,Z,n,n,n,n,n,t);return o.placeholder=Gd.placeholder,o}function Yd(e,t,r){var o,l,h,v,m,S,P=0,F=!1,D=!1,z=!0;if(typeof e!="function")throw new pt(c);t=bt(t)||0,Se(r)&&(F=!!r.leading,D="maxWait"in r,h=D?Le(bt(r.maxWait)||0,t):h,z="trailing"in r?!!r.trailing:z);function j(Ie){var Ct=o,Zt=l;return o=l=n,P=Ie,v=e.apply(Zt,Ct),v}function X(Ie){return P=Ie,m=Vr(se,t),F?j(Ie):v}function ae(Ie){var Ct=Ie-S,Zt=Ie-P,dh=t-Ct;return D?Re(dh,h-Zt):dh}function V(Ie){var Ct=Ie-S,Zt=Ie-P;return S===n||Ct>=t||Ct<0||D&&Zt>=h}function se(){var Ie=da();if(V(Ie))return le(Ie);m=Vr(se,ae(Ie))}function le(Ie){return m=n,z&&o?j(Ie):(o=l=n,v)}function ft(){m!==n&&rd(m),P=0,o=S=l=m=n}function Ge(){return m===n?v:le(da())}function lt(){var Ie=da(),Ct=V(Ie);if(o=arguments,l=this,S=Ie,Ct){if(m===n)return X(S);if(D)return rd(m),m=Vr(se,t),j(S)}return m===n&&(m=Vr(se,t)),v}return lt.cancel=ft,lt.flush=Ge,lt}var uw=oe(function(e,t){return Dc(e,1,t)}),fw=oe(function(e,t,r){return Dc(e,bt(t)||0,r)});function lw(e){return Yt(e,q)}function ha(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pt(c);var r=function(){var o=arguments,l=t?t.apply(this,o):o[0],h=r.cache;if(h.has(l))return h.get(l);var v=e.apply(this,o);return r.cache=h.set(l,v)||h,v};return r.cache=new(ha.Cache||jt),r}ha.Cache=jt;function pa(e){if(typeof e!="function")throw new pt(c);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 cw(e){return Hd(2,e)}var dw=Z1(function(e,t){t=t.length==1&&te(t[0])?we(t[0],ot(K())):we(De(t,1),ot(K()));var r=t.length;return oe(function(o){for(var l=-1,h=Re(o.length,r);++l<h;)o[l]=t[l].call(this,o[l]);return at(e,this,o)})}),$s=oe(function(e,t){var r=ln(t,ur($s));return Yt(e,$,n,t,r)}),Jd=oe(function(e,t){var r=ln(t,ur(Jd));return Yt(e,de,n,t,r)}),hw=Jt(function(e,t){return Yt(e,L,n,n,n,t)});function pw(e,t){if(typeof e!="function")throw new pt(c);return t=t===n?t:ie(t),oe(e,t)}function vw(e,t){if(typeof e!="function")throw new pt(c);return t=t==null?0:Le(ie(t),0),oe(function(r){var o=r[t],l=vn(r,0,t);return o&&fn(l,o),at(e,this,l)})}function gw(e,t,r){var o=!0,l=!0;if(typeof e!="function")throw new pt(c);return Se(r)&&(o="leading"in r?!!r.leading:o,l="trailing"in r?!!r.trailing:l),Yd(e,t,{leading:o,maxWait:t,trailing:l})}function mw(e){return zd(e,1)}function yw(e,t){return $s(Es(t),e)}function bw(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function _w(e){return gt(e,E)}function ww(e,t){return t=typeof t=="function"?t:n,gt(e,E,t)}function Sw(e){return gt(e,_|E)}function xw(e,t){return t=typeof t=="function"?t:n,gt(e,_|E,t)}function Ew(e,t){return t==null||kc(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Aw=oa(ds),Iw=oa(function(e,t){return e>=t}),kn=Uc((function(){return arguments})())?Uc:function(e){return xe(e)&&pe.call(e,"callee")&&!Tc.call(e,"callee")},te=T.isArray,Tw=uc?ot(uc):k1;function Ze(e){return e!=null&&va(e.length)&&!Xt(e)}function Ae(e){return xe(e)&&Ze(e)}function Ow(e){return e===!0||e===!1||xe(e)&&qe(e)==wn}var gn=zy||Vs,Cw=fc?ot(fc):D1;function Nw(e){return xe(e)&&e.nodeType===1&&!Zr(e)}function Lw(e){if(e==null)return!0;if(Ze(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||gn(e)||fr(e)||kn(e)))return!e.length;var t=$e(e);if(t==Te||t==Ke)return!e.size;if(Xr(e))return!vs(e).length;for(var r in e)if(pe.call(e,r))return!1;return!0}function Pw(e,t){return Yr(e,t)}function Fw(e,t,r){r=typeof r=="function"?r:n;var o=r?r(e,t):n;return o===n?Yr(e,t,n,r):!!o}function Us(e){if(!xe(e))return!1;var t=qe(e);return t==qn||t==Cr||typeof e.message=="string"&&typeof e.name=="string"&&!Zr(e)}function Mw(e){return typeof e=="number"&&Cc(e)}function Xt(e){if(!Se(e))return!1;var t=qe(e);return t==jn||t==Ii||t==Or||t==Gn}function Kd(e){return typeof e=="number"&&e==ie(e)}function va(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xe(e){return e!=null&&typeof e=="object"}var Xd=lc?ot(lc):B1;function kw(e,t){return e===t||ps(e,t,Ls(t))}function Dw(e,t,r){return r=typeof r=="function"?r:n,ps(e,t,Ls(t),r)}function Ww(e){return Vd(e)&&e!=+e}function Bw(e){if(wb(e))throw new Q(f);return zc(e)}function Rw(e){return e===null}function $w(e){return e==null}function Vd(e){return typeof e=="number"||xe(e)&&qe(e)==on}function Zr(e){if(!xe(e)||qe(e)!=rt)return!1;var t=zi(e);if(t===null)return!0;var r=pe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Bi.call(r)==Dy}var zs=cc?ot(cc):R1;function Uw(e){return Kd(e)&&e>=-Ue&&e<=Ue}var Zd=dc?ot(dc):$1;function ga(e){return typeof e=="string"||!te(e)&&xe(e)&&qe(e)==sn}function ut(e){return typeof e=="symbol"||xe(e)&&qe(e)==Be}var fr=hc?ot(hc):U1;function zw(e){return e===n}function Hw(e){return xe(e)&&$e(e)==Sn}function qw(e){return xe(e)&&qe(e)==Do}var jw=oa(gs),Gw=oa(function(e,t){return e<=t});function Qd(e){if(!e)return[];if(Ze(e))return ga(e)?It(e):Ve(e);if(Rr&&e[Rr])return Ey(e[Rr]());var t=$e(e),r=t==Te?rs:t==Ke?ki:lr;return r(e)}function Vt(e){if(!e)return e===0?e:0;if(e=bt(e),e===Et||e===-Et){var t=e<0?-1:1;return t*Mo}return e===e?e:0}function ie(e){var t=Vt(e),r=t%1;return t===t?r?t-r:t:0}function eh(e){return e?Ln(ie(e),0,nt):0}function bt(e){if(typeof e=="number")return e;if(ut(e))return At;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bc(e);var r=T0.test(e);return r||C0.test(e)?sy(e.slice(2),r?2:8):I0.test(e)?At:+e}function th(e){return Ft(e,Qe(e))}function Yw(e){return e?Ln(ie(e),-Ue,Ue):e===0?e:0}function ve(e){return e==null?"":st(e)}var Jw=or(function(e,t){if(Xr(t)||Ze(t)){Ft(t,Fe(t),e);return}for(var r in t)pe.call(t,r)&&qr(e,r,t[r])}),nh=or(function(e,t){Ft(t,Qe(t),e)}),ma=or(function(e,t,r,o){Ft(t,Qe(t),e,o)}),Kw=or(function(e,t,r,o){Ft(t,Fe(t),e,o)}),Xw=Jt(fs);function Vw(e,t){var r=ar(e);return t==null?r:Mc(r,t)}var Zw=oe(function(e,t){e=me(e);var r=-1,o=t.length,l=o>2?t[2]:n;for(l&&je(t[0],t[1],l)&&(o=1);++r<o;)for(var h=t[r],v=Qe(h),m=-1,S=v.length;++m<S;){var P=v[m],F=e[P];(F===n||Ot(F,nr[P])&&!pe.call(e,P))&&(e[P]=h[P])}return e}),Qw=oe(function(e){return e.push(n,bd),at(rh,n,e)});function eS(e,t){return vc(e,K(t,3),Pt)}function tS(e,t){return vc(e,K(t,3),cs)}function nS(e,t){return e==null?e:ls(e,K(t,3),Qe)}function rS(e,t){return e==null?e:Rc(e,K(t,3),Qe)}function iS(e,t){return e&&Pt(e,K(t,3))}function aS(e,t){return e&&cs(e,K(t,3))}function oS(e){return e==null?[]:Zi(e,Fe(e))}function sS(e){return e==null?[]:Zi(e,Qe(e))}function Hs(e,t,r){var o=e==null?n:Pn(e,t);return o===n?r:o}function uS(e,t){return e!=null&&Sd(e,t,L1)}function qs(e,t){return e!=null&&Sd(e,t,P1)}var fS=pd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Ri.call(t)),e[t]=r},Gs(et)),lS=pd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Ri.call(t)),pe.call(e,t)?e[t].push(r):e[t]=[r]},K),cS=oe(Gr);function Fe(e){return Ze(e)?Pc(e):vs(e)}function Qe(e){return Ze(e)?Pc(e,!0):z1(e)}function dS(e,t){var r={};return t=K(t,3),Pt(e,function(o,l,h){Gt(r,t(o,l,h),o)}),r}function hS(e,t){var r={};return t=K(t,3),Pt(e,function(o,l,h){Gt(r,l,t(o,l,h))}),r}var pS=or(function(e,t,r){Qi(e,t,r)}),rh=or(function(e,t,r,o){Qi(e,t,r,o)}),vS=Jt(function(e,t){var r={};if(e==null)return r;var o=!1;t=we(t,function(h){return h=pn(h,e),o||(o=h.length>1),h}),Ft(e,Cs(e),r),o&&(r=gt(r,_|O|E,fb));for(var l=t.length;l--;)ws(r,t[l]);return r});function gS(e,t){return ih(e,pa(K(t)))}var mS=Jt(function(e,t){return e==null?{}:q1(e,t)});function ih(e,t){if(e==null)return{};var r=we(Cs(e),function(o){return[o]});return t=K(t),Kc(e,r,function(o,l){return t(o,l[0])})}function yS(e,t,r){t=pn(t,e);var o=-1,l=t.length;for(l||(l=1,e=n);++o<l;){var h=e==null?n:e[Mt(t[o])];h===n&&(o=l,h=r),e=Xt(h)?h.call(e):h}return e}function bS(e,t,r){return e==null?e:Jr(e,t,r)}function _S(e,t,r,o){return o=typeof o=="function"?o:n,e==null?e:Jr(e,t,r,o)}var ah=md(Fe),oh=md(Qe);function wS(e,t,r){var o=te(e),l=o||gn(e)||fr(e);if(t=K(t,4),r==null){var h=e&&e.constructor;l?r=o?new h:[]:Se(e)?r=Xt(h)?ar(zi(e)):{}:r={}}return(l?ht:Pt)(e,function(v,m,S){return t(r,v,m,S)}),r}function SS(e,t){return e==null?!0:ws(e,t)}function xS(e,t,r){return e==null?e:ed(e,t,Es(r))}function ES(e,t,r,o){return o=typeof o=="function"?o:n,e==null?e:ed(e,t,Es(r),o)}function lr(e){return e==null?[]:ns(e,Fe(e))}function AS(e){return e==null?[]:ns(e,Qe(e))}function IS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=bt(r),r=r===r?r:0),t!==n&&(t=bt(t),t=t===t?t:0),Ln(bt(e),t,r)}function TS(e,t,r){return t=Vt(t),r===n?(r=t,t=0):r=Vt(r),e=bt(e),F1(e,t,r)}function OS(e,t,r){if(r&&typeof r!="boolean"&&je(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Vt(e),t===n?(t=e,e=0):t=Vt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var l=Nc();return Re(e+l*(t-e+oy("1e-"+((l+"").length-1))),t)}return ys(e,t)}var CS=sr(function(e,t,r){return t=t.toLowerCase(),e+(r?sh(t):t)});function sh(e){return js(ve(e).toLowerCase())}function uh(e){return e=ve(e),e&&e.replace(L0,by).replace(X0,"")}function NS(e,t,r){e=ve(e),t=st(t);var o=e.length;r=r===n?o:Ln(ie(r),0,o);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function LS(e){return e=ve(e),e&&Kn.test(e)?e.replace(it,_y):e}function PS(e){return e=ve(e),e&&Uo.test(e)?e.replace(kr,"\\$&"):e}var FS=sr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),MS=sr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),kS=cd("toLowerCase");function DS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;if(!t||o>=t)return e;var l=(t-o)/2;return aa(Gi(l),r)+e+aa(ji(l),r)}function WS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;return t&&o<t?e+aa(t-o,r):e}function BS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;return t&&o<t?aa(t-o,r)+e:e}function RS(e,t,r){return r||t==null?t=0:t&&(t=+t),Gy(ve(e).replace(Ht,""),t||0)}function $S(e,t,r){return(r?je(e,t,r):t===n)?t=1:t=ie(t),bs(ve(e),t)}function US(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var zS=sr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function HS(e,t,r){return r&&typeof r!="number"&&je(e,t,r)&&(t=r=n),r=r===n?nt:r>>>0,r?(e=ve(e),e&&(typeof t=="string"||t!=null&&!zs(t))&&(t=st(t),!t&&Qn(e))?vn(It(e),0,r):e.split(t,r)):[]}var qS=sr(function(e,t,r){return e+(r?" ":"")+js(t)});function jS(e,t,r){return e=ve(e),r=r==null?0:Ln(ie(r),0,e.length),t=st(t),e.slice(r,r+t.length)==t}function GS(e,t,r){var o=d.templateSettings;r&&je(e,t,r)&&(t=n),e=ve(e),t=ma({},t,o,yd);var l=ma({},t.imports,o.imports,yd),h=Fe(l),v=ns(l,h),m,S,P=0,F=t.interpolate||Ni,D="__p += '",z=is((t.escape||Ni).source+"|"+F.source+"|"+(F===In?A0:Ni).source+"|"+(t.evaluate||Ni).source+"|$","g"),j="//# sourceURL="+(pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ty+"]")+`
3
+ `)}function yb(e){return te(e)||Mn(e)||!!(Oc&&e&&e[Oc])}function Kt(e,t){var r=typeof e;return t=t??Ue,!!t&&(r=="number"||r!="symbol"&&N0.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,r){if(!Se(r))return!1;var o=typeof t;return(o=="number"?Ze(r)&&Kt(t,r.length):o=="string"&&t in r)?Ot(r[t],e):!1}function Fs(e,t){if(te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:$o.test(e)||!Ro.test(e)||t!=null&&e in me(t)}function bb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ks(e){var t=sa(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var o=Ns(r);return!!o&&e===o[0]}function _b(e){return!!Ec&&Ec in e}var wb=Wi?Xt:Vs;function Xr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nr;return e===r}function Ed(e){return e===e&&!Se(e)}function Ad(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in me(r))}}function Sb(e){var t=ha(e,function(o){return r.size===y&&r.clear(),o}),r=t.cache;return t}function xb(e,t){var r=e[1],o=t[1],l=r|o,h=l<(I|M|C),v=o==C&&r==R||o==C&&r==L&&e[7].length<=t[8]||o==(C|L)&&t[7].length<=t[8]&&r==R;if(!(h||v))return e;o&I&&(e[2]=t[2],l|=r&I?0:W);var m=t[3];if(m){var S=e[3];e[3]=S?sd(S,m,t[4]):m,e[4]=S?ln(e[3],w):t[4]}return m=t[5],m&&(S=e[5],e[5]=S?ud(S,m,t[6]):m,e[6]=S?ln(e[5],w):t[6]),m=t[7],m&&(e[7]=m),o&C&&(e[8]=e[8]==null?t[8]:Re(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Eb(e){var t=[];if(e!=null)for(var r in me(e))t.push(r);return t}function Ab(e){return Ri.call(e)}function Id(e,t,r){return t=Le(t===n?e.length-1:t,0),function(){for(var o=arguments,l=-1,h=Le(o.length-t,0),v=T(h);++l<h;)v[l]=o[t+l];l=-1;for(var m=T(t+1);++l<t;)m[l]=o[l];return m[t]=r(v),at(e,this,m)}}function Td(e,t){return t.length<2?e:Pn(e,mt(t,0,-1))}function Ib(e,t){for(var r=e.length,o=Re(t.length,r),l=Ve(e);o--;){var h=t[o];e[o]=Kt(h,r)?l[h]:n}return e}function Ms(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Od=Nd(Vc),Vr=Uy||function(e,t){return Me.setTimeout(e,t)},Ds=Nd(K1);function Cd(e,t,r){var o=t+"";return Ds(e,mb(o,Tb(pb(o),r)))}function Nd(e){var t=0,r=0;return function(){var o=jy(),l=J-(o-r);if(r=o,l>0){if(++t>=ee)return arguments[0]}else t=0;return e.apply(n,arguments)}}function fa(e,t){var r=-1,o=e.length,l=o-1;for(t=t===n?o:t;++r<t;){var h=ys(r,l),v=e[h];e[h]=e[r],e[r]=v}return e.length=t,e}var Ld=Sb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ci,function(r,o,l,h){t.push(l?h.replace(E0,"$1"):o||r)}),t});function kt(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function kn(e){if(e!=null){try{return Bi.call(e)}catch{}try{return e+""}catch{}}return""}function Tb(e,t){return ht(Tr,function(r){var o="_."+r[0];t&r[1]&&!Fi(e,o)&&e.push(o)}),e.sort()}function Pd(e){if(e instanceof ue)return e.clone();var t=new vt(e.__wrapped__,e.__chain__);return t.__actions__=Ve(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ob(e,t,r){(r?je(e,t,r):t===n)?t=1:t=Le(ie(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var l=0,h=0,v=T(ji(o/t));l<o;)v[h++]=mt(e,l,l+=t);return v}function Cb(e){for(var t=-1,r=e==null?0:e.length,o=0,l=[];++t<r;){var h=e[t];h&&(l[o++]=h)}return l}function Nb(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return fn(te(r)?Ve(r):[r],De(t,1))}var Lb=oe(function(e,t){return Ae(e)?jr(e,De(t,1,Ae,!0)):[]}),Pb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?jr(e,De(t,1,Ae,!0),K(r,2)):[]}),Fb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?jr(e,De(t,1,Ae,!0),n,r):[]});function kb(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),mt(e,t<0?0:t,o)):[]}function Mb(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),t=o-t,mt(e,0,t<0?0:t)):[]}function Db(e,t){return e&&e.length?ta(e,K(t,3),!0,!0):[]}function Wb(e,t){return e&&e.length?ta(e,K(t,3),!0):[]}function Bb(e,t,r,o){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&je(e,t,r)&&(r=0,o=l),N1(e,t,r,o)):[]}function Fd(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(o+l,0)),ki(e,K(t,3),l)}function kd(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=o-1;return r!==n&&(l=ie(r),l=r<0?Le(o+l,0):Re(l,o-1)),ki(e,K(t,3),l,!0)}function Md(e){var t=e==null?0:e.length;return t?De(e,1):[]}function Rb(e){var t=e==null?0:e.length;return t?De(e,Et):[]}function $b(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:ie(t),De(e,t)):[]}function Ub(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var l=e[t];o[l[0]]=l[1]}return o}function Dd(e){return e&&e.length?e[0]:n}function zb(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(o+l,0)),Zn(e,t,l)}function Hb(e){var t=e==null?0:e.length;return t?mt(e,0,-1):[]}var qb=oe(function(e){var t=we(e,xs);return t.length&&t[0]===e[0]?hs(t):[]}),jb=oe(function(e){var t=yt(e),r=we(e,xs);return t===yt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?hs(r,K(t,2)):[]}),Gb=oe(function(e){var t=yt(e),r=we(e,xs);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?hs(r,n,t):[]});function Yb(e,t){return e==null?"":Hy.call(e,t)}function yt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Jb(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var l=o;return r!==n&&(l=ie(r),l=l<0?Le(o+l,0):Re(l,o-1)),t===t?Ty(e,t,l):ki(e,gc,l,!0)}function Kb(e,t){return e&&e.length?Yc(e,ie(t)):n}var Xb=oe(Wd);function Wd(e,t){return e&&e.length&&t&&t.length?ms(e,t):e}function Vb(e,t,r){return e&&e.length&&t&&t.length?ms(e,t,K(r,2)):e}function Zb(e,t,r){return e&&e.length&&t&&t.length?ms(e,t,n,r):e}var Qb=Jt(function(e,t){var r=e==null?0:e.length,o=fs(e,t);return Xc(e,we(t,function(l){return Kt(l,r)?+l:l}).sort(od)),o});function e_(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,l=[],h=e.length;for(t=K(t,3);++o<h;){var v=e[o];t(v,o,e)&&(r.push(v),l.push(o))}return Xc(e,l),r}function Ws(e){return e==null?e:Yy.call(e)}function t_(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&je(e,t,r)?(t=0,r=o):(t=t==null?0:ie(t),r=r===n?o:ie(r)),mt(e,t,r)):[]}function n_(e,t){return ea(e,t)}function r_(e,t,r){return _s(e,t,K(r,2))}function i_(e,t){var r=e==null?0:e.length;if(r){var o=ea(e,t);if(o<r&&Ot(e[o],t))return o}return-1}function a_(e,t){return ea(e,t,!0)}function o_(e,t,r){return _s(e,t,K(r,2),!0)}function s_(e,t){var r=e==null?0:e.length;if(r){var o=ea(e,t,!0)-1;if(Ot(e[o],t))return o}return-1}function u_(e){return e&&e.length?Zc(e):[]}function f_(e,t){return e&&e.length?Zc(e,K(t,2)):[]}function l_(e){var t=e==null?0:e.length;return t?mt(e,1,t):[]}function c_(e,t,r){return e&&e.length?(t=r||t===n?1:ie(t),mt(e,0,t<0?0:t)):[]}function d_(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===n?1:ie(t),t=o-t,mt(e,t<0?0:t,o)):[]}function h_(e,t){return e&&e.length?ta(e,K(t,3),!1,!0):[]}function p_(e,t){return e&&e.length?ta(e,K(t,3)):[]}var v_=oe(function(e){return hn(De(e,1,Ae,!0))}),g_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),hn(De(e,1,Ae,!0),K(t,2))}),m_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,hn(De(e,1,Ae,!0),n,t)});function y_(e){return e&&e.length?hn(e):[]}function b_(e,t){return e&&e.length?hn(e,K(t,2)):[]}function __(e,t){return t=typeof t=="function"?t:n,e&&e.length?hn(e,n,t):[]}function Bs(e){if(!(e&&e.length))return[];var t=0;return e=un(e,function(r){if(Ae(r))return t=Le(r.length,t),!0}),ts(t,function(r){return we(e,Zo(r))})}function Bd(e,t){if(!(e&&e.length))return[];var r=Bs(e);return t==null?r:we(r,function(o){return at(t,n,o)})}var w_=oe(function(e,t){return Ae(e)?jr(e,t):[]}),S_=oe(function(e){return Ss(un(e,Ae))}),x_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),Ss(un(e,Ae),K(t,2))}),E_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,Ss(un(e,Ae),n,t)}),A_=oe(Bs);function I_(e,t){return nd(e||[],t||[],qr)}function T_(e,t){return nd(e||[],t||[],Jr)}var O_=oe(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,Bd(e,r)});function Rd(e){var t=d(e);return t.__chain__=!0,t}function C_(e,t){return t(e),e}function la(e,t){return t(e)}var N_=Jt(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,l=function(h){return fs(h,e)};return t>1||this.__actions__.length||!(o instanceof ue)||!Kt(r)?this.thru(l):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:la,args:[l],thisArg:n}),new vt(o,this.__chain__).thru(function(h){return t&&!h.length&&h.push(n),h}))});function L_(){return Rd(this)}function P_(){return new vt(this.value(),this.__chain__)}function F_(){this.__values__===n&&(this.__values__=Qd(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function k_(){return this}function M_(e){for(var t,r=this;r instanceof Ki;){var o=Pd(r);o.__index__=0,o.__values__=n,t?l.__wrapped__=o:t=o;var l=o;r=r.__wrapped__}return l.__wrapped__=e,t}function D_(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:la,args:[Ws],thisArg:n}),new vt(t,this.__chain__)}return this.thru(Ws)}function W_(){return td(this.__wrapped__,this.__actions__)}var B_=na(function(e,t,r){pe.call(e,r)?++e[r]:Gt(e,r,1)});function R_(e,t,r){var o=te(e)?pc:C1;return r&&je(e,t,r)&&(t=n),o(e,K(t,3))}function $_(e,t){var r=te(e)?un:Bc;return r(e,K(t,3))}var U_=dd(Fd),z_=dd(kd);function H_(e,t){return De(ca(e,t),1)}function q_(e,t){return De(ca(e,t),Et)}function j_(e,t,r){return r=r===n?1:ie(r),De(ca(e,t),r)}function $d(e,t){var r=te(e)?ht:dn;return r(e,K(t,3))}function Ud(e,t){var r=te(e)?ly:Wc;return r(e,K(t,3))}var G_=na(function(e,t,r){pe.call(e,r)?e[r].push(t):Gt(e,r,[t])});function Y_(e,t,r,o){e=Ze(e)?e:lr(e),r=r&&!o?ie(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),ga(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Zn(e,t,r)>-1}var J_=oe(function(e,t,r){var o=-1,l=typeof t=="function",h=Ze(e)?T(e.length):[];return dn(e,function(v){h[++o]=l?at(t,v,r):Gr(v,t,r)}),h}),K_=na(function(e,t,r){Gt(e,r,t)});function ca(e,t){var r=te(e)?we:qc;return r(e,K(t,3))}function X_(e,t,r,o){return e==null?[]:(te(t)||(t=t==null?[]:[t]),r=o?n:r,te(r)||(r=r==null?[]:[r]),Jc(e,t,r))}var V_=na(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Z_(e,t,r){var o=te(e)?Xo:yc,l=arguments.length<3;return o(e,K(t,4),r,l,dn)}function Q_(e,t,r){var o=te(e)?cy:yc,l=arguments.length<3;return o(e,K(t,4),r,l,Wc)}function ew(e,t){var r=te(e)?un:Bc;return r(e,pa(K(t,3)))}function tw(e){var t=te(e)?Fc:Y1;return t(e)}function nw(e,t,r){(r?je(e,t,r):t===n)?t=1:t=ie(t);var o=te(e)?E1:J1;return o(e,t)}function rw(e){var t=te(e)?A1:X1;return t(e)}function iw(e){if(e==null)return 0;if(Ze(e))return ga(e)?er(e):e.length;var t=$e(e);return t==Te||t==Ke?e.size:vs(e).length}function aw(e,t,r){var o=te(e)?Vo:V1;return r&&je(e,t,r)&&(t=n),o(e,K(t,3))}var ow=oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&je(e,t[0],t[1])?t=[]:r>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),Jc(e,De(t,1),[])}),da=$y||function(){return Me.Date.now()};function sw(e,t){if(typeof t!="function")throw new pt(c);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function zd(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Yt(e,C,n,n,n,n,t)}function Hd(e,t){var r;if(typeof t!="function")throw new pt(c);return e=ie(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Rs=oe(function(e,t,r){var o=I;if(r.length){var l=ln(r,ur(Rs));o|=$}return Yt(e,o,t,r,l)}),qd=oe(function(e,t,r){var o=I|M;if(r.length){var l=ln(r,ur(qd));o|=$}return Yt(t,o,e,r,l)});function jd(e,t,r){t=r?n:t;var o=Yt(e,R,n,n,n,n,n,t);return o.placeholder=jd.placeholder,o}function Gd(e,t,r){t=r?n:t;var o=Yt(e,Z,n,n,n,n,n,t);return o.placeholder=Gd.placeholder,o}function Yd(e,t,r){var o,l,h,v,m,S,P=0,F=!1,D=!1,z=!0;if(typeof e!="function")throw new pt(c);t=bt(t)||0,Se(r)&&(F=!!r.leading,D="maxWait"in r,h=D?Le(bt(r.maxWait)||0,t):h,z="trailing"in r?!!r.trailing:z);function j(Ie){var Ct=o,Zt=l;return o=l=n,P=Ie,v=e.apply(Zt,Ct),v}function X(Ie){return P=Ie,m=Vr(se,t),F?j(Ie):v}function ae(Ie){var Ct=Ie-S,Zt=Ie-P,dh=t-Ct;return D?Re(dh,h-Zt):dh}function V(Ie){var Ct=Ie-S,Zt=Ie-P;return S===n||Ct>=t||Ct<0||D&&Zt>=h}function se(){var Ie=da();if(V(Ie))return le(Ie);m=Vr(se,ae(Ie))}function le(Ie){return m=n,z&&o?j(Ie):(o=l=n,v)}function ft(){m!==n&&rd(m),P=0,o=S=l=m=n}function Ge(){return m===n?v:le(da())}function lt(){var Ie=da(),Ct=V(Ie);if(o=arguments,l=this,S=Ie,Ct){if(m===n)return X(S);if(D)return rd(m),m=Vr(se,t),j(S)}return m===n&&(m=Vr(se,t)),v}return lt.cancel=ft,lt.flush=Ge,lt}var uw=oe(function(e,t){return Dc(e,1,t)}),fw=oe(function(e,t,r){return Dc(e,bt(t)||0,r)});function lw(e){return Yt(e,q)}function ha(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pt(c);var r=function(){var o=arguments,l=t?t.apply(this,o):o[0],h=r.cache;if(h.has(l))return h.get(l);var v=e.apply(this,o);return r.cache=h.set(l,v)||h,v};return r.cache=new(ha.Cache||jt),r}ha.Cache=jt;function pa(e){if(typeof e!="function")throw new pt(c);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 cw(e){return Hd(2,e)}var dw=Z1(function(e,t){t=t.length==1&&te(t[0])?we(t[0],ot(K())):we(De(t,1),ot(K()));var r=t.length;return oe(function(o){for(var l=-1,h=Re(o.length,r);++l<h;)o[l]=t[l].call(this,o[l]);return at(e,this,o)})}),$s=oe(function(e,t){var r=ln(t,ur($s));return Yt(e,$,n,t,r)}),Jd=oe(function(e,t){var r=ln(t,ur(Jd));return Yt(e,de,n,t,r)}),hw=Jt(function(e,t){return Yt(e,L,n,n,n,t)});function pw(e,t){if(typeof e!="function")throw new pt(c);return t=t===n?t:ie(t),oe(e,t)}function vw(e,t){if(typeof e!="function")throw new pt(c);return t=t==null?0:Le(ie(t),0),oe(function(r){var o=r[t],l=vn(r,0,t);return o&&fn(l,o),at(e,this,l)})}function gw(e,t,r){var o=!0,l=!0;if(typeof e!="function")throw new pt(c);return Se(r)&&(o="leading"in r?!!r.leading:o,l="trailing"in r?!!r.trailing:l),Yd(e,t,{leading:o,maxWait:t,trailing:l})}function mw(e){return zd(e,1)}function yw(e,t){return $s(Es(t),e)}function bw(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function _w(e){return gt(e,E)}function ww(e,t){return t=typeof t=="function"?t:n,gt(e,E,t)}function Sw(e){return gt(e,_|E)}function xw(e,t){return t=typeof t=="function"?t:n,gt(e,_|E,t)}function Ew(e,t){return t==null||Mc(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Aw=oa(ds),Iw=oa(function(e,t){return e>=t}),Mn=Uc((function(){return arguments})())?Uc:function(e){return xe(e)&&pe.call(e,"callee")&&!Tc.call(e,"callee")},te=T.isArray,Tw=uc?ot(uc):M1;function Ze(e){return e!=null&&va(e.length)&&!Xt(e)}function Ae(e){return xe(e)&&Ze(e)}function Ow(e){return e===!0||e===!1||xe(e)&&qe(e)==wn}var gn=zy||Vs,Cw=fc?ot(fc):D1;function Nw(e){return xe(e)&&e.nodeType===1&&!Zr(e)}function Lw(e){if(e==null)return!0;if(Ze(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||gn(e)||fr(e)||Mn(e)))return!e.length;var t=$e(e);if(t==Te||t==Ke)return!e.size;if(Xr(e))return!vs(e).length;for(var r in e)if(pe.call(e,r))return!1;return!0}function Pw(e,t){return Yr(e,t)}function Fw(e,t,r){r=typeof r=="function"?r:n;var o=r?r(e,t):n;return o===n?Yr(e,t,n,r):!!o}function Us(e){if(!xe(e))return!1;var t=qe(e);return t==qn||t==Cr||typeof e.message=="string"&&typeof e.name=="string"&&!Zr(e)}function kw(e){return typeof e=="number"&&Cc(e)}function Xt(e){if(!Se(e))return!1;var t=qe(e);return t==jn||t==Ii||t==Or||t==Gn}function Kd(e){return typeof e=="number"&&e==ie(e)}function va(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xe(e){return e!=null&&typeof e=="object"}var Xd=lc?ot(lc):B1;function Mw(e,t){return e===t||ps(e,t,Ls(t))}function Dw(e,t,r){return r=typeof r=="function"?r:n,ps(e,t,Ls(t),r)}function Ww(e){return Vd(e)&&e!=+e}function Bw(e){if(wb(e))throw new Q(f);return zc(e)}function Rw(e){return e===null}function $w(e){return e==null}function Vd(e){return typeof e=="number"||xe(e)&&qe(e)==on}function Zr(e){if(!xe(e)||qe(e)!=rt)return!1;var t=zi(e);if(t===null)return!0;var r=pe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Bi.call(r)==Dy}var zs=cc?ot(cc):R1;function Uw(e){return Kd(e)&&e>=-Ue&&e<=Ue}var Zd=dc?ot(dc):$1;function ga(e){return typeof e=="string"||!te(e)&&xe(e)&&qe(e)==sn}function ut(e){return typeof e=="symbol"||xe(e)&&qe(e)==Be}var fr=hc?ot(hc):U1;function zw(e){return e===n}function Hw(e){return xe(e)&&$e(e)==Sn}function qw(e){return xe(e)&&qe(e)==Do}var jw=oa(gs),Gw=oa(function(e,t){return e<=t});function Qd(e){if(!e)return[];if(Ze(e))return ga(e)?It(e):Ve(e);if(Rr&&e[Rr])return Ey(e[Rr]());var t=$e(e),r=t==Te?rs:t==Ke?Mi:lr;return r(e)}function Vt(e){if(!e)return e===0?e:0;if(e=bt(e),e===Et||e===-Et){var t=e<0?-1:1;return t*ko}return e===e?e:0}function ie(e){var t=Vt(e),r=t%1;return t===t?r?t-r:t:0}function eh(e){return e?Ln(ie(e),0,nt):0}function bt(e){if(typeof e=="number")return e;if(ut(e))return At;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bc(e);var r=T0.test(e);return r||C0.test(e)?sy(e.slice(2),r?2:8):I0.test(e)?At:+e}function th(e){return Ft(e,Qe(e))}function Yw(e){return e?Ln(ie(e),-Ue,Ue):e===0?e:0}function ve(e){return e==null?"":st(e)}var Jw=or(function(e,t){if(Xr(t)||Ze(t)){Ft(t,Fe(t),e);return}for(var r in t)pe.call(t,r)&&qr(e,r,t[r])}),nh=or(function(e,t){Ft(t,Qe(t),e)}),ma=or(function(e,t,r,o){Ft(t,Qe(t),e,o)}),Kw=or(function(e,t,r,o){Ft(t,Fe(t),e,o)}),Xw=Jt(fs);function Vw(e,t){var r=ar(e);return t==null?r:kc(r,t)}var Zw=oe(function(e,t){e=me(e);var r=-1,o=t.length,l=o>2?t[2]:n;for(l&&je(t[0],t[1],l)&&(o=1);++r<o;)for(var h=t[r],v=Qe(h),m=-1,S=v.length;++m<S;){var P=v[m],F=e[P];(F===n||Ot(F,nr[P])&&!pe.call(e,P))&&(e[P]=h[P])}return e}),Qw=oe(function(e){return e.push(n,bd),at(rh,n,e)});function eS(e,t){return vc(e,K(t,3),Pt)}function tS(e,t){return vc(e,K(t,3),cs)}function nS(e,t){return e==null?e:ls(e,K(t,3),Qe)}function rS(e,t){return e==null?e:Rc(e,K(t,3),Qe)}function iS(e,t){return e&&Pt(e,K(t,3))}function aS(e,t){return e&&cs(e,K(t,3))}function oS(e){return e==null?[]:Zi(e,Fe(e))}function sS(e){return e==null?[]:Zi(e,Qe(e))}function Hs(e,t,r){var o=e==null?n:Pn(e,t);return o===n?r:o}function uS(e,t){return e!=null&&Sd(e,t,L1)}function qs(e,t){return e!=null&&Sd(e,t,P1)}var fS=pd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Ri.call(t)),e[t]=r},Gs(et)),lS=pd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Ri.call(t)),pe.call(e,t)?e[t].push(r):e[t]=[r]},K),cS=oe(Gr);function Fe(e){return Ze(e)?Pc(e):vs(e)}function Qe(e){return Ze(e)?Pc(e,!0):z1(e)}function dS(e,t){var r={};return t=K(t,3),Pt(e,function(o,l,h){Gt(r,t(o,l,h),o)}),r}function hS(e,t){var r={};return t=K(t,3),Pt(e,function(o,l,h){Gt(r,l,t(o,l,h))}),r}var pS=or(function(e,t,r){Qi(e,t,r)}),rh=or(function(e,t,r,o){Qi(e,t,r,o)}),vS=Jt(function(e,t){var r={};if(e==null)return r;var o=!1;t=we(t,function(h){return h=pn(h,e),o||(o=h.length>1),h}),Ft(e,Cs(e),r),o&&(r=gt(r,_|O|E,fb));for(var l=t.length;l--;)ws(r,t[l]);return r});function gS(e,t){return ih(e,pa(K(t)))}var mS=Jt(function(e,t){return e==null?{}:q1(e,t)});function ih(e,t){if(e==null)return{};var r=we(Cs(e),function(o){return[o]});return t=K(t),Kc(e,r,function(o,l){return t(o,l[0])})}function yS(e,t,r){t=pn(t,e);var o=-1,l=t.length;for(l||(l=1,e=n);++o<l;){var h=e==null?n:e[kt(t[o])];h===n&&(o=l,h=r),e=Xt(h)?h.call(e):h}return e}function bS(e,t,r){return e==null?e:Jr(e,t,r)}function _S(e,t,r,o){return o=typeof o=="function"?o:n,e==null?e:Jr(e,t,r,o)}var ah=md(Fe),oh=md(Qe);function wS(e,t,r){var o=te(e),l=o||gn(e)||fr(e);if(t=K(t,4),r==null){var h=e&&e.constructor;l?r=o?new h:[]:Se(e)?r=Xt(h)?ar(zi(e)):{}:r={}}return(l?ht:Pt)(e,function(v,m,S){return t(r,v,m,S)}),r}function SS(e,t){return e==null?!0:ws(e,t)}function xS(e,t,r){return e==null?e:ed(e,t,Es(r))}function ES(e,t,r,o){return o=typeof o=="function"?o:n,e==null?e:ed(e,t,Es(r),o)}function lr(e){return e==null?[]:ns(e,Fe(e))}function AS(e){return e==null?[]:ns(e,Qe(e))}function IS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=bt(r),r=r===r?r:0),t!==n&&(t=bt(t),t=t===t?t:0),Ln(bt(e),t,r)}function TS(e,t,r){return t=Vt(t),r===n?(r=t,t=0):r=Vt(r),e=bt(e),F1(e,t,r)}function OS(e,t,r){if(r&&typeof r!="boolean"&&je(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Vt(e),t===n?(t=e,e=0):t=Vt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var l=Nc();return Re(e+l*(t-e+oy("1e-"+((l+"").length-1))),t)}return ys(e,t)}var CS=sr(function(e,t,r){return t=t.toLowerCase(),e+(r?sh(t):t)});function sh(e){return js(ve(e).toLowerCase())}function uh(e){return e=ve(e),e&&e.replace(L0,by).replace(X0,"")}function NS(e,t,r){e=ve(e),t=st(t);var o=e.length;r=r===n?o:Ln(ie(r),0,o);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function LS(e){return e=ve(e),e&&Kn.test(e)?e.replace(it,_y):e}function PS(e){return e=ve(e),e&&Uo.test(e)?e.replace(Mr,"\\$&"):e}var FS=sr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),kS=sr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),MS=cd("toLowerCase");function DS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;if(!t||o>=t)return e;var l=(t-o)/2;return aa(Gi(l),r)+e+aa(ji(l),r)}function WS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;return t&&o<t?e+aa(t-o,r):e}function BS(e,t,r){e=ve(e),t=ie(t);var o=t?er(e):0;return t&&o<t?aa(t-o,r)+e:e}function RS(e,t,r){return r||t==null?t=0:t&&(t=+t),Gy(ve(e).replace(Ht,""),t||0)}function $S(e,t,r){return(r?je(e,t,r):t===n)?t=1:t=ie(t),bs(ve(e),t)}function US(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var zS=sr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function HS(e,t,r){return r&&typeof r!="number"&&je(e,t,r)&&(t=r=n),r=r===n?nt:r>>>0,r?(e=ve(e),e&&(typeof t=="string"||t!=null&&!zs(t))&&(t=st(t),!t&&Qn(e))?vn(It(e),0,r):e.split(t,r)):[]}var qS=sr(function(e,t,r){return e+(r?" ":"")+js(t)});function jS(e,t,r){return e=ve(e),r=r==null?0:Ln(ie(r),0,e.length),t=st(t),e.slice(r,r+t.length)==t}function GS(e,t,r){var o=d.templateSettings;r&&je(e,t,r)&&(t=n),e=ve(e),t=ma({},t,o,yd);var l=ma({},t.imports,o.imports,yd),h=Fe(l),v=ns(l,h),m,S,P=0,F=t.interpolate||Ni,D="__p += '",z=is((t.escape||Ni).source+"|"+F.source+"|"+(F===In?A0:Ni).source+"|"+(t.evaluate||Ni).source+"|$","g"),j="//# sourceURL="+(pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ty+"]")+`
4
4
  `;e.replace(z,function(V,se,le,ft,Ge,lt){return le||(le=ft),D+=e.slice(P,lt).replace(P0,wy),se&&(m=!0,D+=`' +
5
5
  __e(`+se+`) +
6
6
  '`),Ge&&(S=!0,D+=`';
@@ -17,10 +17,10 @@ __p += '`),le&&(D+=`' +
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+D+`return __p
20
- }`;var ae=lh(function(){return he(h,j+"return "+D).apply(n,v)});if(ae.source=D,Us(ae))throw ae;return ae}function YS(e){return ve(e).toLowerCase()}function JS(e){return ve(e).toUpperCase()}function KS(e,t,r){if(e=ve(e),e&&(r||t===n))return bc(e);if(!e||!(t=st(t)))return e;var o=It(e),l=It(t),h=_c(o,l),v=wc(o,l)+1;return vn(o,h,v).join("")}function XS(e,t,r){if(e=ve(e),e&&(r||t===n))return e.slice(0,xc(e)+1);if(!e||!(t=st(t)))return e;var o=It(e),l=wc(o,It(t))+1;return vn(o,0,l).join("")}function VS(e,t,r){if(e=ve(e),e&&(r||t===n))return e.replace(Ht,"");if(!e||!(t=st(t)))return e;var o=It(e),l=_c(o,It(t));return vn(o,l).join("")}function ZS(e,t){var r=ne,o=Y;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?ie(t.length):r,o="omission"in t?st(t.omission):o}e=ve(e);var h=e.length;if(Qn(e)){var v=It(e);h=v.length}if(r>=h)return e;var m=r-er(o);if(m<1)return o;var S=v?vn(v,0,m).join(""):e.slice(0,m);if(l===n)return S+o;if(v&&(m+=S.length-m),zs(l)){if(e.slice(m).search(l)){var P,F=S;for(l.global||(l=is(l.source,ve(Ul.exec(l))+"g")),l.lastIndex=0;P=l.exec(F);)var D=P.index;S=S.slice(0,D===n?m:D)}}else if(e.indexOf(st(l),m)!=m){var z=S.lastIndexOf(l);z>-1&&(S=S.slice(0,z))}return S+o}function QS(e){return e=ve(e),e&&Ee.test(e)?e.replace(Xe,Oy):e}var ex=sr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),js=cd("toUpperCase");function fh(e,t,r){return e=ve(e),t=r?n:t,t===n?xy(e)?Ly(e):py(e):e.match(t)||[]}var lh=oe(function(e,t){try{return at(e,n,t)}catch(r){return Us(r)?r:new Q(r)}}),tx=Jt(function(e,t){return ht(t,function(r){r=Mt(r),Gt(e,r,Rs(e[r],e))}),e});function nx(e){var t=e==null?0:e.length,r=K();return e=t?we(e,function(o){if(typeof o[1]!="function")throw new pt(c);return[r(o[0]),o[1]]}):[],oe(function(o){for(var l=-1;++l<t;){var h=e[l];if(at(h[0],this,o))return at(h[1],this,o)}})}function rx(e){return O1(gt(e,_))}function Gs(e){return function(){return e}}function ix(e,t){return e==null||e!==e?t:e}var ax=hd(),ox=hd(!0);function et(e){return e}function Ys(e){return Hc(typeof e=="function"?e:gt(e,_))}function sx(e){return jc(gt(e,_))}function ux(e,t){return Gc(e,gt(t,_))}var fx=oe(function(e,t){return function(r){return Gr(r,e,t)}}),lx=oe(function(e,t){return function(r){return Gr(e,r,t)}});function Js(e,t,r){var o=Fe(t),l=Zi(t,o);r==null&&!(Se(t)&&(l.length||!o.length))&&(r=t,t=e,e=this,l=Zi(t,Fe(t)));var h=!(Se(r)&&"chain"in r)||!!r.chain,v=Xt(e);return ht(l,function(m){var S=t[m];e[m]=S,v&&(e.prototype[m]=function(){var P=this.__chain__;if(h||P){var F=e(this.__wrapped__),D=F.__actions__=Ve(this.__actions__);return D.push({func:S,args:arguments,thisArg:e}),F.__chain__=P,F}return S.apply(e,fn([this.value()],arguments))})}),e}function cx(){return ke._===this&&(ke._=Wy),this}function Ks(){}function dx(e){return e=ie(e),oe(function(t){return Yc(t,e)})}var hx=Is(we),px=Is(pc),vx=Is(Vo);function ch(e){return Fs(e)?Zo(Mt(e)):j1(e)}function gx(e){return function(t){return e==null?n:Pn(e,t)}}var mx=vd(),yx=vd(!0);function Xs(){return[]}function Vs(){return!1}function bx(){return{}}function _x(){return""}function wx(){return!0}function Sx(e,t){if(e=ie(e),e<1||e>Ue)return[];var r=nt,o=Re(e,nt);t=K(t),e-=nt;for(var l=ts(o,t);++r<e;)t(r);return l}function xx(e){return te(e)?we(e,Mt):ut(e)?[e]:Ve(Ld(ve(e)))}function Ex(e){var t=++ky;return ve(e)+t}var Ax=ia(function(e,t){return e+t},0),Ix=Ts("ceil"),Tx=ia(function(e,t){return e/t},1),Ox=Ts("floor");function Cx(e){return e&&e.length?Vi(e,et,ds):n}function Nx(e,t){return e&&e.length?Vi(e,K(t,2),ds):n}function Lx(e){return mc(e,et)}function Px(e,t){return mc(e,K(t,2))}function Fx(e){return e&&e.length?Vi(e,et,gs):n}function Mx(e,t){return e&&e.length?Vi(e,K(t,2),gs):n}var kx=ia(function(e,t){return e*t},1),Dx=Ts("round"),Wx=ia(function(e,t){return e-t},0);function Bx(e){return e&&e.length?es(e,et):0}function Rx(e,t){return e&&e.length?es(e,K(t,2)):0}return d.after=sw,d.ary=zd,d.assign=Jw,d.assignIn=nh,d.assignInWith=ma,d.assignWith=Kw,d.at=Xw,d.before=Hd,d.bind=Rs,d.bindAll=tx,d.bindKey=qd,d.castArray=bw,d.chain=Rd,d.chunk=Ob,d.compact=Cb,d.concat=Nb,d.cond=nx,d.conforms=rx,d.constant=Gs,d.countBy=B_,d.create=Vw,d.curry=jd,d.curryRight=Gd,d.debounce=Yd,d.defaults=Zw,d.defaultsDeep=Qw,d.defer=uw,d.delay=fw,d.difference=Lb,d.differenceBy=Pb,d.differenceWith=Fb,d.drop=Mb,d.dropRight=kb,d.dropRightWhile=Db,d.dropWhile=Wb,d.fill=Bb,d.filter=$_,d.flatMap=H_,d.flatMapDeep=q_,d.flatMapDepth=j_,d.flatten=kd,d.flattenDeep=Rb,d.flattenDepth=$b,d.flip=lw,d.flow=ax,d.flowRight=ox,d.fromPairs=Ub,d.functions=oS,d.functionsIn=sS,d.groupBy=G_,d.initial=Hb,d.intersection=qb,d.intersectionBy=jb,d.intersectionWith=Gb,d.invert=fS,d.invertBy=lS,d.invokeMap=J_,d.iteratee=Ys,d.keyBy=K_,d.keys=Fe,d.keysIn=Qe,d.map=ca,d.mapKeys=dS,d.mapValues=hS,d.matches=sx,d.matchesProperty=ux,d.memoize=ha,d.merge=pS,d.mergeWith=rh,d.method=fx,d.methodOf=lx,d.mixin=Js,d.negate=pa,d.nthArg=dx,d.omit=vS,d.omitBy=gS,d.once=cw,d.orderBy=X_,d.over=hx,d.overArgs=dw,d.overEvery=px,d.overSome=vx,d.partial=$s,d.partialRight=Jd,d.partition=V_,d.pick=mS,d.pickBy=ih,d.property=ch,d.propertyOf=gx,d.pull=Xb,d.pullAll=Wd,d.pullAllBy=Vb,d.pullAllWith=Zb,d.pullAt=Qb,d.range=mx,d.rangeRight=yx,d.rearg=hw,d.reject=ew,d.remove=e_,d.rest=pw,d.reverse=Ws,d.sampleSize=nw,d.set=bS,d.setWith=_S,d.shuffle=rw,d.slice=t_,d.sortBy=ow,d.sortedUniq=u_,d.sortedUniqBy=f_,d.split=HS,d.spread=vw,d.tail=l_,d.take=c_,d.takeRight=d_,d.takeRightWhile=h_,d.takeWhile=p_,d.tap=C_,d.throttle=gw,d.thru=la,d.toArray=Qd,d.toPairs=ah,d.toPairsIn=oh,d.toPath=xx,d.toPlainObject=th,d.transform=wS,d.unary=mw,d.union=v_,d.unionBy=g_,d.unionWith=m_,d.uniq=y_,d.uniqBy=b_,d.uniqWith=__,d.unset=SS,d.unzip=Bs,d.unzipWith=Bd,d.update=xS,d.updateWith=ES,d.values=lr,d.valuesIn=AS,d.without=w_,d.words=fh,d.wrap=yw,d.xor=S_,d.xorBy=x_,d.xorWith=E_,d.zip=A_,d.zipObject=I_,d.zipObjectDeep=T_,d.zipWith=O_,d.entries=ah,d.entriesIn=oh,d.extend=nh,d.extendWith=ma,Js(d,d),d.add=Ax,d.attempt=lh,d.camelCase=CS,d.capitalize=sh,d.ceil=Ix,d.clamp=IS,d.clone=_w,d.cloneDeep=Sw,d.cloneDeepWith=xw,d.cloneWith=ww,d.conformsTo=Ew,d.deburr=uh,d.defaultTo=ix,d.divide=Tx,d.endsWith=NS,d.eq=Ot,d.escape=LS,d.escapeRegExp=PS,d.every=R_,d.find=U_,d.findIndex=Fd,d.findKey=eS,d.findLast=z_,d.findLastIndex=Md,d.findLastKey=tS,d.floor=Ox,d.forEach=$d,d.forEachRight=Ud,d.forIn=nS,d.forInRight=rS,d.forOwn=iS,d.forOwnRight=aS,d.get=Hs,d.gt=Aw,d.gte=Iw,d.has=uS,d.hasIn=qs,d.head=Dd,d.identity=et,d.includes=Y_,d.indexOf=zb,d.inRange=TS,d.invoke=cS,d.isArguments=kn,d.isArray=te,d.isArrayBuffer=Tw,d.isArrayLike=Ze,d.isArrayLikeObject=Ae,d.isBoolean=Ow,d.isBuffer=gn,d.isDate=Cw,d.isElement=Nw,d.isEmpty=Lw,d.isEqual=Pw,d.isEqualWith=Fw,d.isError=Us,d.isFinite=Mw,d.isFunction=Xt,d.isInteger=Kd,d.isLength=va,d.isMap=Xd,d.isMatch=kw,d.isMatchWith=Dw,d.isNaN=Ww,d.isNative=Bw,d.isNil=$w,d.isNull=Rw,d.isNumber=Vd,d.isObject=Se,d.isObjectLike=xe,d.isPlainObject=Zr,d.isRegExp=zs,d.isSafeInteger=Uw,d.isSet=Zd,d.isString=ga,d.isSymbol=ut,d.isTypedArray=fr,d.isUndefined=zw,d.isWeakMap=Hw,d.isWeakSet=qw,d.join=Yb,d.kebabCase=FS,d.last=yt,d.lastIndexOf=Jb,d.lowerCase=MS,d.lowerFirst=kS,d.lt=jw,d.lte=Gw,d.max=Cx,d.maxBy=Nx,d.mean=Lx,d.meanBy=Px,d.min=Fx,d.minBy=Mx,d.stubArray=Xs,d.stubFalse=Vs,d.stubObject=bx,d.stubString=_x,d.stubTrue=wx,d.multiply=kx,d.nth=Kb,d.noConflict=cx,d.noop=Ks,d.now=da,d.pad=DS,d.padEnd=WS,d.padStart=BS,d.parseInt=RS,d.random=OS,d.reduce=Z_,d.reduceRight=Q_,d.repeat=$S,d.replace=US,d.result=yS,d.round=Dx,d.runInContext=b,d.sample=tw,d.size=iw,d.snakeCase=zS,d.some=aw,d.sortedIndex=n_,d.sortedIndexBy=r_,d.sortedIndexOf=i_,d.sortedLastIndex=a_,d.sortedLastIndexBy=o_,d.sortedLastIndexOf=s_,d.startCase=qS,d.startsWith=jS,d.subtract=Wx,d.sum=Bx,d.sumBy=Rx,d.template=GS,d.times=Sx,d.toFinite=Vt,d.toInteger=ie,d.toLength=eh,d.toLower=YS,d.toNumber=bt,d.toSafeInteger=Yw,d.toString=ve,d.toUpper=JS,d.trim=KS,d.trimEnd=XS,d.trimStart=VS,d.truncate=ZS,d.unescape=QS,d.uniqueId=Ex,d.upperCase=ex,d.upperFirst=js,d.each=$d,d.eachRight=Ud,d.first=Dd,Js(d,(function(){var e={};return Pt(d,function(t,r){pe.call(d.prototype,r)||(e[r]=t)}),e})(),{chain:!1}),d.VERSION=s,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ht(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===n?1:Le(ie(r),0);var o=this.__filtered__&&!t?new ue(this):this.clone();return o.__filtered__?o.__takeCount__=Re(r,o.__takeCount__):o.__views__.push({size:Re(r,nt),type:e+(o.__dir__<0?"Right":"")}),o},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==We||r==Je;ue.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:K(l,3),type:r}),h.__filtered__=h.__filtered__||o,h}}),ht(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),ht(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(et)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=oe(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Gr(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(pa(K(e)))},ue.prototype.slice=function(e,t){e=ie(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=ie(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(nt)},Pt(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),l=d[o?"take"+(t=="last"?"Right":""):t],h=o||/^find/.test(t);l&&(d.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,S=v instanceof ue,P=m[0],F=S||te(v),D=function(se){var le=l.apply(d,fn([se],m));return o&&z?le[0]:le};F&&r&&typeof P=="function"&&P.length!=1&&(S=F=!1);var z=this.__chain__,j=!!this.__actions__.length,X=h&&!z,ae=S&&!j;if(!h&&F){v=ae?v:new ue(this);var V=e.apply(v,m);return V.__actions__.push({func:la,args:[D],thisArg:n}),new vt(V,z)}return X&&ae?e.apply(this,m):(V=this.thru(D),X?o?V.value()[0]:V.value():V)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=Di[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(o&&!this.__chain__){var h=this.value();return t.apply(te(h)?h:[],l)}return this[r](function(v){return t.apply(te(v)?v:[],l)})}}),Pt(ue.prototype,function(e,t){var r=d[t];if(r){var o=r.name+"";pe.call(ir,o)||(ir[o]=[]),ir[o].push({name:t,func:r})}}),ir[ra(n,k).name]=[{name:"wrapper",func:n}],ue.prototype.clone=Qy,ue.prototype.reverse=e1,ue.prototype.value=t1,d.prototype.at=N_,d.prototype.chain=L_,d.prototype.commit=P_,d.prototype.next=F_,d.prototype.plant=k_,d.prototype.reverse=D_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=W_,d.prototype.first=d.prototype.head,Rr&&(d.prototype[Rr]=M_),d}),tr=Py();Tn?((Tn.exports=tr)._=tr,Yo._=tr):ke._=tr}).call(ph)})(hr,hr.exports)),hr.exports}var Dn=vh();class ge{static toString(i){const n=Zs(i);if(n==null)throw new Error("buildWinId: stringify error");return n}static getParamString(i,n){return i.params?.[n]?.toString()}static getParam(i,n){return i.params?.[n]}static isEquals(i,n){return Dn.isEqual(i,n)}static indexOf(i,n){return i.map(ge.toString).indexOf(ge.toString(n))}static includes(i,n){return i.map(ge.toString).includes(ge.toString(n))}static withoutDup(i){const{params:n,viewId:s,title:u}=i;return{params:n,viewId:s,title:u}}static replaceDup(i){const{params:n,viewId:s,title:u}=i;return{params:n,viewId:s,title:u,dupId:`${new Date().getTime()}`}}}var ti={exports:{}},eu;function gh(){return eu||(eu=1,(function(a,i){Object.defineProperty(i,"__esModule",{value:!0});function n(C){return typeof C=="object"&&!("toString"in C)?Object.prototype.toString.call(C).slice(8,-1):C}var s=typeof process=="object"&&process.env.NODE_ENV==="production";function u(C,L){if(!C)throw s?new Error("Invariant failed"):new Error(L())}i.invariant=u;var f=Object.prototype.hasOwnProperty,c=Array.prototype.splice,p=Object.prototype.toString;function g(C){return p.call(C).slice(8,-1)}var y=Object.assign||(function(C,L){return w(L).forEach(function(q){f.call(L,q)&&(C[q]=L[q])}),C}),w=typeof Object.getOwnPropertySymbols=="function"?function(C){return Object.keys(C).concat(Object.getOwnPropertySymbols(C))}:function(C){return Object.keys(C)};function _(C){return Array.isArray(C)?y(C.constructor(C.length),C):g(C)==="Map"?new Map(C):g(C)==="Set"?new Set(C):C&&typeof C=="object"?y(Object.create(Object.getPrototypeOf(C)),C):C}var O=(function(){function C(){this.commands=y({},E),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(L,q){return L===q},this.update.newContext=function(){return new C().update}}return Object.defineProperty(C.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(L){this.update.isEquals=L},enumerable:!0,configurable:!0}),C.prototype.extend=function(L,q){this.commands[L]=q},C.prototype.update=function(L,q){var ne=this,Y=typeof q=="function"?{$apply:q}:q;Array.isArray(L)&&Array.isArray(Y)||u(!Array.isArray(Y),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),u(typeof Y=="object"&&Y!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(ne.commands).join(", ")+".")});var ee=L;return w(Y).forEach(function(J){if(f.call(ne.commands,J)){var We=L===ee;ee=ne.commands[J](Y[J],ee,Y,L),We&&ne.isEquals(ee,L)&&(ee=L)}else{var Ye=g(L)==="Map"?ne.update(L.get(J),Y[J]):ne.update(L[J],Y[J]),Je=g(ee)==="Map"?ee.get(J):ee[J];(!ne.isEquals(Ye,Je)||typeof Ye>"u"&&!f.call(L,J))&&(ee===L&&(ee=_(L)),g(ee)==="Map"?ee.set(J,Ye):ee[J]=Ye)}}),ee},C})();i.Context=O;var E={$push:function(C,L,q){return A(L,q,"$push"),C.length?L.concat(C):L},$unshift:function(C,L,q){return A(L,q,"$unshift"),C.length?C.concat(L):L},$splice:function(C,L,q,ne){return k(L,q),C.forEach(function(Y){W(Y),L===ne&&Y.length&&(L=_(ne)),c.apply(L,Y)}),L},$set:function(C,L,q){return Z(q),C},$toggle:function(C,L){I(C,"$toggle");var q=C.length?_(L):L;return C.forEach(function(ne){q[ne]=!L[ne]}),q},$unset:function(C,L,q,ne){return I(C,"$unset"),C.forEach(function(Y){Object.hasOwnProperty.call(L,Y)&&(L===ne&&(L=_(ne)),delete L[Y])}),L},$add:function(C,L,q,ne){return de(L,"$add"),I(C,"$add"),g(L)==="Map"?C.forEach(function(Y){var ee=Y[0],J=Y[1];L===ne&&L.get(ee)!==J&&(L=_(ne)),L.set(ee,J)}):C.forEach(function(Y){L===ne&&!L.has(Y)&&(L=_(ne)),L.add(Y)}),L},$remove:function(C,L,q,ne){return de(L,"$remove"),I(C,"$remove"),C.forEach(function(Y){L===ne&&L.has(Y)&&(L=_(ne)),L.delete(Y)}),L},$merge:function(C,L,q,ne){return $(L,C),w(C).forEach(function(Y){C[Y]!==L[Y]&&(L===ne&&(L=_(ne)),L[Y]=C[Y])}),L},$apply:function(C,L){return R(C),C(L)}},x=new O;i.isEquals=x.update.isEquals,i.extend=x.extend,i.default=x.update,i.default.default=a.exports=y(i.default,i);function A(C,L,q){u(Array.isArray(C),function(){return"update(): expected target of "+n(q)+" to be an array; got "+n(C)+"."}),I(L[q],q)}function I(C,L){u(Array.isArray(C),function(){return"update(): expected spec of "+n(L)+" to be an array; got "+n(C)+". Did you forget to wrap your parameter in an array?"})}function k(C,L){u(Array.isArray(C),function(){return"Expected $splice target to be an array; got "+n(C)}),W(L.$splice)}function W(C){u(Array.isArray(C),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(C)+". Did you forget to wrap your parameters in an array?"})}function R(C){u(typeof C=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(C)+"."})}function Z(C){u(Object.keys(C).length===1,function(){return"Cannot have more than one key in an object with $set"})}function $(C,L){u(L&&typeof L=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(L)}),u(C&&typeof C=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(C)})}function de(C,L){var q=g(C);u(q==="Map"||q==="Set",function(){return"update(): "+n(L)+" expects a target of type Set or Map; got "+n(q)})}})(ti,ti.exports)),ti.exports}var mh=gh();const yh=ei(mh);var bh=Object.getOwnPropertyDescriptor,_h=(a,i,n,s)=>{for(var u=s>1?void 0:s?bh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u};ce.JustLayoutService=class{insertWinIdToStack=(i,n)=>{if(i==null)return i;const s=this.getNodeByBranch(i,n.branch);if(s.type!=="stack")return i;const f=s.tabs,c=n.index>=0?Dn.clamp(n.index,0,f.length):f.length;return this.updateNodeOfBranch(i,n.branch,{$set:{...s,type:"stack",tabs:[...f.slice(0,c),n.justId,...f.slice(c)],active:n.justId}})};insertWinIdToSplit=(i,n)=>{if(i==null)return i;const s=this.getNodeByBranch(i,n.branch),u=n.pos==="first"?"second":"first";return this.updateNodeOfBranch(i,n.branch,{$set:{type:"split-percentage",direction:n.direction,[u]:{...s,name:void 0},[n.pos]:{type:"stack",tabs:[n.justId],active:n.justId,name:void 0},size:n.size??50,dndAccept:s.dndAccept,name:s.name,hideTitle:s.hideTitle}})};removeWinId=(i,n)=>{if(i==null)return null;const s=this.getNodeByWinId(i,n);if(s?.type!=="stack")return i;const u=s.active?ge.indexOf(s.tabs,s.active):0,f=s.tabs.filter(p=>!ge.isEquals(p,n));let c;return s.active!==null&&ge.includes(f,s.active)?c=s.active:c=f.length>0&&s.active!==null?f[Dn.clamp(u-1,0,f.length-1)]:null,this.updateNodeOfWinId(i,n,{$set:{...s,tabs:f,active:c}})};removeAllTabs=(i,n)=>{if(i==null)return null;const s=this.getNodeByBranch(i,n);return!s||s.type!=="stack"?i:this.updateNodeOfBranch(i,n,{$set:{...s,tabs:[],active:null}})};activeWinId=(i,n)=>{if(i==null)return null;const s=this.getNodeByWinId(i,n);return s==null?i:this.updateNodeOfWinId(i,n,{$set:{...s,active:n}})};getActiveWinIds=i=>{const n=(s,u)=>{if(s===null)return u;if(s.type==="stack")return s.active!==null?[...u,s.active]:u;{const f=n(s.first,u);return n(s.second,f)}};return n(i,[])};removeEmpty=i=>{if(i==null)return i;const n=this.findEmptyBranch(i,null,[]);if(n===null)return i;if(n.length===0)return null;const s=n[n.length-1],u=n.slice(0,-1),f=s==="first"?"second":"first",c=this.getNodeByBranch(i,u),p=this.getNodeByBranch(i,[...u,f]);return this.updateNodeOfBranch(i,u,{$set:{...p,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(i,n,s)=>{if(i===null)return null;if(i.type==="stack"){const u=n!=null&&n.type!="stack"&&(!!n.first.name||!!n.second.name);if(i.tabs.length===0&&!u)return s}else{const u=this.findEmptyBranch(i.first,i,[...s,"first"]);if(u!=null)return u;const f=this.findEmptyBranch(i.second,i,[...s,"second"]);if(f!=null)return f}return null};moveWinIdToStack=(i,n)=>{const s=this.removeWinId(i,n.justId);return this.insertWinIdToStack(s,n)};moveWinIdToSplit=(i,n)=>{const s=this.removeWinId(i,n.justId);return this.insertWinIdToSplit(s,n)};getBranch=(i,n,s)=>{if(i===null)return null;if(i.type==="stack")return ge.includes(i.tabs,n)?s:null;{const u=this.getBranch(i.first,n,[...s,"first"]);if(u!=null)return u;const f=this.getBranch(i.second,n,[...s,"second"]);return f??null}};getBranchByWinId=(i,n)=>this.getBranch(i,n,[]);getNodeInfoByNodeName=(i,n,s)=>{if(i===null)return null;if(i.name==n)return{node:i,branch:[...s]};if(i.type!="stack"){const u=this.getNodeInfoByNodeName(i.first,n,[...s,"first"]);if(u!=null)return u;const f=this.getNodeInfoByNodeName(i.second,n,[...s,"second"]);if(f!=null)return f}return null};getTabNodeInfoByNodeName=(i,n,s)=>{if(i===null)return null;const u=this.getNodeInfoByNodeName(i,n,s);if(u==null)return null;if(u.node.type==="stack")return u;{const f=this.getTabNodeInfo(u.node,[]);if(f!=null)return{node:f.node,branch:[...u.branch,...f.branch]}}return null};getNodeByWinId=(i,n)=>{if(i===null)return null;if(i.type==="stack")return ge.includes(i.tabs,n)?i:null;{const s=this.getNodeByWinId(i.first,n);if(s!=null)return s;const u=this.getNodeByWinId(i.second,n);return u??null}};getTabBranch=(i,n)=>{if(i===null)return null;if(i.type==="stack")return n;{let s;i.type==="split-pixels"?s=i.primary==="first"?"second":"first":s=i.direction==="row"?"second":"first";const u=this.getTabBranch(i[s],[...n,s]);if(u!=null)return u}return null};getTabNodeInfo=(i,n)=>{if(i===null)return null;if(i.type==="stack")return{node:i,branch:n};{let s;i.type==="split-pixels"?s=i.primary==="first"?"second":"first":s=i.direction==="row"?"second":"first";const u=this.getTabNodeInfo(i[s],[...n,s]);if(u!=null)return u}return null};addTabWin=(i,n,s,u)=>{if(i===null)return null;const f=this.getNodeByBranch(i,n);if(f.type!=="stack")return i;const c=u<0?f.tabs.length:Dn.clamp(u,0,f.tabs.length);return this.updateNodeOfBranch(i,n,{$merge:{tabs:[...f.tabs.slice(0,c),s,...f.tabs.slice(c)],active:s}})};queryWinIdsByViewId=(i,n,s)=>{if(i===null)return s;if(i.type==="stack")return[...s,...i.tabs.filter(u=>u.viewId===n)];{const u=this.queryWinIdsByViewId(i.first,n,s);return this.queryWinIdsByViewId(i.second,n,[...s,...u])}};queryWinIdsByStack=(i,n)=>{if(i===null)return[];const s=this.getNodeByBranch(i,n);return s.type!=="stack"?[]:s.tabs};getNodeByBranch=(i,n)=>n.reduce((s,u)=>s?.[u],i);updateNodeOfBranch=(i,n,s)=>{const u=this.buildSpecFromUpdateSpec(n,s);return this.updateNode(i,u)};updateNodeOfWinId=(i,n,s)=>{const u=this.getBranchByWinId(i,n);if(u==null)return i;const f=this.buildSpecFromUpdateSpec(u,s);return this.updateNode(i,f)};hasWinId=(i,n)=>this.getNodeByWinId(i,n)!=null;updateNode=(i,n)=>i==null?null:yh(i,n);buildSpecFromUpdateSpec=(i,n)=>i.length>0?Dn.set({},i,n):n;getNodeAtBranch=(i,n)=>n.length>0?Dn.get(i,n,null):i;getBranchRightTop=i=>{if(i==null)return[];let n=i;const s=[];for(;n.type!=="stack";)n.direction==="row"?(s.push("second"),n=n.second):n.direction==="column"&&(s.push("first"),n=n.first);return s};updateSplitSize=(i,n,s)=>{const u=this.buildSpecFromUpdateSpec(n,{$merge:{size:s}});return this.updateNode(i,u)}},ce.JustLayoutService=_h([Qt.injectable()],ce.JustLayoutService);var wh=Object.getOwnPropertyDescriptor,Sh=(a,i,n,s)=>{for(var u=s>1?void 0:s?wh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u},xh=(a,i)=>(n,s)=>i(n,s,a);ce.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(i){this.service=i,cr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=i=>{this.layout=i};setTabTitle=(i,n)=>{this.tabTitleMap.set(ge.toString(i),n)};getTabTitle=i=>this.tabTitleMap.get(ge.toString(i));setTabTitleTooltip=(i,n)=>{this.tabTitleTooltipMap.set(ge.toString(i),n)};getTabTitleTooltip=i=>this.tabTitleTooltipMap.get(ge.toString(i));setFullScreenLayoutByBranch=i=>{i===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,i)};setFullScreenHideTitle=i=>{this.fullScreenHideTitle=i};addTab=i=>{const n=this.service.getTabBranch(this.layout,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=i=>{const n=this.service.getTabNodeInfoByNodeName(this.layout,i.nodeName,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n.branch,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=i=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);cloneTab=i=>{const n=this.service.getBranchByWinId(this.layout,i.justId);if(n==null)return;const s=this.service.getNodeAtBranch(this.layout,n);let u=0;s?.type==="stack"&&s.active!=null&&(u=ge.indexOf(s.tabs,i.justId)+1),this.layout=this.service.addTabWin(this.layout,n,i.cloneJustId,u),this.lastActiveId=i.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=i=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,i.justId))};removeAllTabs=i=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,i.branch))};activeWin=i=>{this.layout=this.service.activeWinId(this.layout,i.justId),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(ge.indexOf(n.tabs,i)-1+n.tabs.length)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};activeNextWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(ge.indexOf(n.tabs,i)+1)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};updateResize=i=>{this.layout=this.service.updateSplitSize(this.layout,i.branch,i.size)};moveWin=i=>{i.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,i)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,i)),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};toggleWin=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s==null||s.node.type!=="split-pixels")return;const u=s.node.primaryHide!==!0,f=!u||s.node.size<10?s.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:f,primaryHide:u}}),p=this.service.updateNode(n,c);p!=null&&this.setLayout(p)};showWin=({nodeName:i,show:n})=>{const s=this.layout,u=this.service.getNodeInfoByNodeName(s,i,[]);if(u!=null&&u.node.type==="split-pixels"&&n===(u.node.size===0)){const f=n?u.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(u.branch,{$merge:{size:f}}),p=this.service.updateNode(s,c);if(p==null)return;this.setLayout(p)}};getSizeByNodeName=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s!=null)return s.node.type==="split-pixels"||s.node.type==="split-percentage"?s.node.size:null};getBranchByJustId=({justId:i})=>{const n=this.layout;return this.service.getBranchByWinId(n,i)};isPrimaryHide=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s!=null)return s.node.type==="split-pixels"?s.node.primaryHide:null};openWin=({justId:i})=>{this.service.hasWinId(this.layout??null,i)?this.activeWin({justId:i}):this.addTab({justId:i})};openWinByNodeName=({justId:i,nodeName:n})=>{this.service.hasWinId(this.layout??null,i)?this.activeWin({justId:i}):this.addTabByNodeName({justId:i,nodeName:n})};getWinIds=({viewId:i})=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);getWinIdsByBranch=({branch:i})=>this.service.queryWinIdsByStack(this.layout??null,i);getNodeAtBranch=({branch:i})=>this.service.getNodeAtBranch(this.layout??null,i);openWinMenu=({justId:i,nodeName:n})=>{const s=i.viewId,u=this.getWinIds({viewId:s});if(u.length===0)console.log("openWinMenu1",u,i),this.openWinByNodeName({justId:i,nodeName:n});else{const f=u.toSorted((c,p)=>(c.dupId??"")<=(p.dupId??"")?-1:1).at(-1);f&&(console.log("openWinMenu2",u,f),this.openWinByNodeName({justId:f,nodeName:n}))}};fullScreenWin=(i,n,s=!1)=>{n?this.setLayout(null):(this.setFullScreenLayoutByBranch(i),this.setFullScreenHideTitle(s))}},ce.JustLayoutStore=Sh([Qt.injectable(),xh(0,Qt.inject(kt.JustLayoutService))],ce.JustLayoutStore);const Eh=new Qt.ContainerModule(({bind:a})=>{a(kt.JustLayoutService).to(ce.JustLayoutService).inSingletonScope(),a(kt.JustLayoutStore).to(ce.JustLayoutStore).inTransientScope(),a(kt.JustLayoutStoreCacheMap).toConstantValue(new Map),a(kt.JustLayoutFactory).toFactory(i=>{const n=i.get(kt.JustLayoutStoreCacheMap);return s=>{if(!n.has(s)){const u=i.get(kt.JustLayoutStore);n.set(s,u)}return n.get(s)}})}),Nt=a=>{const i=hh.useInjection(kt.JustLayoutFactory),[n]=M.useState(()=>i(a));return n};var ba={exports:{}};var tu;function Ah(){return tu||(tu=1,(function(a){(function(){var i={}.hasOwnProperty;function n(){for(var f="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(f=u(f,s(p)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return n.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var c="";for(var p in f)i.call(f,p)&&f[p]&&(c=u(c,p));return c}function u(f,c){return c?f?f+" "+c:f+c:f}a.exports?(n.default=n,a.exports=n):window.classNames=n})()})(ba)),ba.exports}var Ih=Ah();const _t=ei(Ih),nu=a=>!!a&&a[0]==="o",ru=dr.unstable_batchedUpdates,pr=(a,i)=>a===!0||!!(a&&a[i]),ct=(a,i)=>typeof a=="function"?a(i):a,Th="_szhsinMenu",Oh=a=>a[Th],ni=(a,i)=>(i&&Object.keys(i).forEach(n=>{const s=a[n],u=i[n];typeof u=="function"&&s?a[n]=(...f)=>{u(...f),s(...f)}:a[n]=u}),a),Ch=a=>{if(typeof a!="string")return{top:0,right:0,bottom:0,left:0};const i=a.trim().split(/\s+/,4).map(parseFloat),n=isNaN(i[0])?0:i[0],s=isNaN(i[1])?n:i[1];return{top:n,right:s,bottom:isNaN(i[2])?n:i[2],left:isNaN(i[3])?s:i[3]}},_a=a=>{for(;a;){if(a=a.parentNode,!a||a===document.body||!a.parentNode)return;const{overflow:i,overflowX:n,overflowY:s}=getComputedStyle(a);if(/auto|scroll|overlay|hidden/.test(i+s+n))return a}};function iu(a,i){return{"aria-disabled":a||void 0,tabIndex:i?0:-1}}function au(a,i){for(let n=0;n<a.length;n++)if(a[n]===i)return n;return-1}const ri=({block:a,element:i,modifiers:n,className:s})=>M.useMemo(()=>{const u=i?`${a}__${i}`:a;let f=u;n&&Object.keys(n).forEach(p=>{const g=n[p];g&&(f+=` ${u}--${g===!0?p:`${p}-${g}`}`)});let c=typeof s=="function"?s(n):s;return typeof c=="string"&&(c=c.trim(),c&&(f+=` ${c}`)),f},[a,i,n,s]),Nh="szh-menu-container",ii="szh-menu",Lh="arrow",Ph="item",ou=M.createContext(),su=M.createContext({}),uu=M.createContext({}),fu=M.createContext({}),Fh=M.createContext({}),wa=M.createContext({}),wt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ce=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),vr=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),gr=Object.freeze({FIRST:"first",LAST:"last"}),Mh=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),lu="absolute",kh="none",Dh="menuitem",Sa={preventScroll:!0},Wh=({className:a,containerRef:i,containerProps:n,children:s,isOpen:u,theming:f,transition:c,onClose:p})=>{const g=pr(c,"item"),y=({key:_})=>{_===wt.ESC&&ct(p,{key:_,reason:vr.CANCEL})},w=_=>{u&&!_.currentTarget.contains(_.relatedTarget)&&ct(p,{reason:vr.BLUR})};return U.jsx("div",{...ni({onKeyDown:y,onBlur:w},n),className:ri({block:Nh,modifiers:M.useMemo(()=>({theme:f,itemTransition:g}),[f,g]),className:a}),style:{position:"absolute",...n?.style},ref:i,children:s})},Bh=()=>{let a,i=0;return{toggle:n=>{n?i++:i--,i=Math.max(i,0)},on:(n,s,u)=>{i?a||(a=setTimeout(()=>{a=0,s()},n)):u?.()},off:()=>{a&&(clearTimeout(a),a=0)}}},Rh=a=>{const[i,n]=M.useState(),u=M.useRef({items:[],hoverIndex:-1,sorted:!1}).current,f=M.useCallback((p,g)=>{const{items:y}=u;if(!p)u.items=[];else if(g)y.push(p);else{const w=y.indexOf(p);w>-1&&(y.splice(w,1),p.contains(document.activeElement)&&(a.current.focus(Sa),n()))}u.hoverIndex=-1,u.sorted=!1},[u,a]),c=M.useCallback((p,g,y)=>{const{items:w,hoverIndex:_}=u,O=()=>{if(u.sorted)return;const A=a.current.querySelectorAll(".szh-menu__item");w.sort((I,k)=>au(A,I)-au(A,k)),u.sorted=!0};let E=-1,x;switch(p){case Ce.RESET:break;case Ce.SET:x=g;break;case Ce.UNSET:x=A=>A===g?void 0:A;break;case Ce.FIRST:O(),E=0,x=w[E];break;case Ce.LAST:O(),E=w.length-1,x=w[E];break;case Ce.SET_INDEX:O(),E=y,x=w[E];break;case Ce.INCREASE:O(),E=_,E<0&&(E=w.indexOf(g)),E++,E>=w.length&&(E=0),x=w[E];break;case Ce.DECREASE:O(),E=_,E<0&&(E=w.indexOf(g)),E--,E<0&&(E=w.length-1),x=w[E];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${p}`)}x||(E=-1),n(x),u.hoverIndex=E},[a,u]);return{hoverItem:i,dispatch:c,updateItems:f}},cu=(a,i)=>Math.round(a)===i?a:i,$h=a=>{const i=a.getBoundingClientRect();return i.width=cu(i.width,a.offsetWidth),i.height=cu(i.height,a.offsetHeight),i},Uh=(a,i,n,s)=>{const u=$h(i),f=a.getBoundingClientRect(),c=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),p=Ch(s),g=x=>x+f.left-c.left-p.left,y=x=>x+f.left+u.width-c.right+p.right,w=x=>x+f.top-c.top-p.top,_=x=>x+f.top+u.height-c.bottom+p.bottom;return{menuRect:u,containerRect:f,getLeftOverflow:g,getRightOverflow:y,getTopOverflow:w,getBottomOverflow:_,confineHorizontally:x=>{let A=g(x);if(A<0)x-=A;else{const I=y(x);I>0&&(x-=I,A=g(x),A<0&&(x-=A))}return x},confineVertically:x=>{let A=w(x);if(A<0)x-=A;else{const I=_(x);I>0&&(x-=I,A=w(x),A<0&&(x-=A))}return x}}},zh=({arrowRef:a,menuY:i,anchorRect:n,containerRect:s,menuRect:u})=>{let f=n.top-s.top-i+n.height/2;const c=a.current.offsetHeight*1.25;return f=Math.max(c,f),f=Math.min(f,u.height-c),f},Hh=({anchorRect:a,containerRect:i,menuRect:n,placeLeftorRightY:s,placeLeftX:u,placeRightX:f,getLeftOverflow:c,getRightOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:w,arrow:_,direction:O,position:E})=>{let x=O,A=s;E!=="initial"&&(A=y(A),E==="anchor"&&(A=Math.min(A,a.bottom-i.top),A=Math.max(A,a.top-i.top-n.height)));let I,k,W;return x==="left"?(I=u,E!=="initial"&&(k=c(I),k<0&&(W=p(f),(W<=0||-k>W)&&(I=f,x="right")))):(I=f,E!=="initial"&&(W=p(I),W>0&&(k=c(u),(k>=0||-k<W)&&(I=u,x="left")))),E==="auto"&&(I=g(I)),{arrowY:_?zh({menuY:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:I,y:A,computedDirection:x}},qh=({arrowRef:a,menuX:i,anchorRect:n,containerRect:s,menuRect:u})=>{let f=n.left-s.left-i+n.width/2;const c=a.current.offsetWidth*1.25;return f=Math.max(c,f),f=Math.min(f,u.width-c),f},jh=({anchorRect:a,containerRect:i,menuRect:n,placeToporBottomX:s,placeTopY:u,placeBottomY:f,getTopOverflow:c,getBottomOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:w,arrow:_,direction:O,position:E})=>{let x=O==="top"?"top":"bottom",A=s;E!=="initial"&&(A=g(A),E==="anchor"&&(A=Math.min(A,a.right-i.left),A=Math.max(A,a.left-i.left-n.width)));let I,k,W;return x==="top"?(I=u,E!=="initial"&&(k=c(I),k<0&&(W=p(f),(W<=0||-k>W)&&(I=f,x="bottom")))):(I=f,E!=="initial"&&(W=p(I),W>0&&(k=c(u),(k>=0||-k<W)&&(I=u,x="top")))),E==="auto"&&(I=y(I)),{arrowX:_?qh({menuX:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:A,y:I,computedDirection:x}},Gh=({arrow:a,align:i,direction:n,gap:s,shift:u,position:f,anchorRect:c,arrowRef:p,positionHelpers:g})=>{const{menuRect:y,containerRect:w}=g,_=n==="left"||n==="right";let O=_?s:u,E=_?u:s;if(a){const $=p.current;_?O+=$.offsetWidth:E+=$.offsetHeight}const x=c.left-w.left-y.width-O,A=c.right-w.left+O,I=c.top-w.top-y.height-E,k=c.bottom-w.top+E;let W,R;i==="end"?(W=c.right-w.left-y.width,R=c.bottom-w.top-y.height):i==="center"?(W=c.left-w.left-(y.width-c.width)/2,R=c.top-w.top-(y.height-c.height)/2):(W=c.left-w.left,R=c.top-w.top),W+=O,R+=E;const Z={...g,anchorRect:c,placeLeftX:x,placeRightX:A,placeLeftorRightY:R,placeTopY:I,placeBottomY:k,placeToporBottomX:W,arrowRef:p,arrow:a,direction:n,position:f};switch(n){case"left":case"right":return Hh(Z);default:return jh(Z)}},ai=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect;function du(a,i){typeof a=="function"?a(i):a.current=i}const xa=(a,i)=>M.useMemo(()=>a?i?n=>{du(a,n),du(i,n)}:a:i,[a,i]),hu=-9999,Yh=({ariaLabel:a,menuClassName:i,menuStyle:n,arrow:s,arrowProps:u={},anchorPoint:f,anchorRef:c,containerRef:p,containerProps:g,externalRef:y,parentScrollingRef:w,align:_="start",direction:O="bottom",position:E="auto",overflow:x="visible",setDownOverflow:A,repositionFlag:I,captureFocus:k=!0,state:W,endTransition:R,isDisabled:Z,menuItemFocus:$,gap:de=0,shift:C=0,children:L,onClose:q,focusProps:ne,...Y})=>{const[ee,J]=M.useState({x:hu,y:hu}),[We,Ye]=M.useState({}),[Je,Et]=M.useState(),[Ue,Mo]=M.useState(O),[At]=M.useState(Bh),[nt,Ei]=M.useReducer(fe=>fe+1,1),{transition:Ai,boundingBoxRef:Tr,boundingBoxPadding:zt,rootMenuRef:_n,rootAnchorRef:Or,scrollNodesRef:wn,reposition:an,viewScroll:Cr,submenuCloseDelay:qn}=M.useContext(wa),{submenuCtx:jn,reposSubmenu:Ii=I}=M.useContext(uu),Te=M.useRef(),on=M.useRef(),Ti=M.useRef(!1),{hoverItem:rt,dispatch:ze,updateItems:Gn}=Rh(Te),Oe=nu(W),Ke=pr(Ai,"open"),sn=pr(Ai,"close"),Be=wn.current,ko=fe=>{switch(fe.key){case wt.HOME:ze(Ce.FIRST);break;case wt.END:ze(Ce.LAST);break;case wt.UP:ze(Ce.DECREASE,rt);break;case wt.DOWN:ze(Ce.INCREASE,rt);break;case wt.SPACE:fe.target&&fe.target.className.indexOf(ii)!==-1&&fe.preventDefault();return;default:return}fe.preventDefault(),fe.stopPropagation()},Sn=()=>{W==="closing"&&Et(),ct(R)},Do=fe=>{fe.stopPropagation(),At.on(qn,()=>{ze(Ce.RESET),Te.current.focus(Sa)})},xn=fe=>{fe.target===fe.currentTarget&&At.off()},He=M.useCallback(fe=>{const Pe=Te.current,Xe=p.current;if(!Pe||!Xe)return;const it=c?c.current?.getBoundingClientRect():f?{left:f.x,right:f.x,top:f.y,bottom:f.y,width:0,height:0}:null;if(!it){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}Be.menu||(Be.menu=(Tr?Tr.current:_a(_n.current))||window);const Ee=Uh(Xe,Pe,Be.menu,zt);let{arrowX:Kn,arrowY:Wo,x:Bo,y:In,computedDirection:Ro}=Gh({arrow:s,align:_,direction:O,gap:de,shift:C,position:E,anchorRect:it,arrowRef:on,positionHelpers:Ee});const{menuRect:$o}=Ee,Ci=$o.height;if(!fe&&x!=="visible"){const{getTopOverflow:kr,getBottomOverflow:Uo}=Ee;let Ht,Dr;const Wr=Uo(In);if(Wr>0)Ht=Ci-Wr,Dr=Wr;else{const Xn=kr(In);Xn<0&&(Ht=Ci+Xn,Dr=0-Xn,Ht>=0&&(In-=Xn))}Ht>=0&&Et({height:Ht,overflowAmt:Dr})}s&&Ye({x:Kn,y:Wo}),J({x:Bo,y:In}),Mo(Ro)},[s,_,zt,O,de,C,E,x,f,c,p,Tr,_n,Be]);ai(()=>{Oe&&(He(),Ti.current&&Ei()),Ti.current=Oe},[Oe,He,Ii]),ai(()=>{Je&&!A&&(Te.current.scrollTop=0)},[Je,A]),ai(()=>Gn,[Gn]),M.useEffect(()=>{let{menu:fe}=Be;if(!Oe||!fe)return;if(fe=fe.addEventListener?fe:window,!Be.anchors){Be.anchors=[];let Ee=_a(Or&&Or.current);for(;Ee&&Ee!==fe;)Be.anchors.push(Ee),Ee=_a(Ee)}let Pe=Cr;if(Be.anchors.length&&Pe==="initial"&&(Pe="auto"),Pe==="initial")return;const Xe=()=>{Pe==="auto"?ru(()=>He(!0)):ct(q,{reason:vr.SCROLL})},it=Be.anchors.concat(Cr!=="initial"?fe:[]);return it.forEach(Ee=>Ee.addEventListener("scroll",Xe)),()=>it.forEach(Ee=>Ee.removeEventListener("scroll",Xe))},[Or,Be,Oe,q,Cr,He]);const Yn=!!Je&&Je.overflowAmt>0;M.useEffect(()=>{if(Yn||!Oe||!w)return;const fe=()=>ru(He),Pe=w.current;return Pe.addEventListener("scroll",fe),()=>Pe.removeEventListener("scroll",fe)},[Oe,Yn,w,He]),M.useEffect(()=>{if(!Oe||typeof ResizeObserver!="function"||an==="initial")return;const fe=[],Pe=new ResizeObserver(Ee=>Ee.forEach(({target:Kn})=>{fe.indexOf(Kn)<0?fe.push(Kn):dr.flushSync(()=>{He(),Ei()})})),Xe={box:"border-box"};Pe.observe(Te.current,Xe);const it=c?.current;return it&&Pe.observe(it,Xe),()=>Pe.disconnect()},[Oe,an,c,He]),M.useEffect(()=>{if(!Oe){ze(Ce.RESET),sn||Et();return}const{position:fe,alwaysUpdate:Pe}=$||{},Xe=()=>{fe===gr.FIRST?ze(Ce.FIRST):fe===gr.LAST?ze(Ce.LAST):fe>=-1&&ze(Ce.SET_INDEX,void 0,fe)};if(Pe)Xe();else if(k){const it=setTimeout(()=>{const Ee=Te.current;Ee&&!Ee.contains(document.activeElement)&&(Ee.focus(Sa),Xe())},Ke?170:100);return()=>clearTimeout(it)}},[Oe,Ke,sn,k,$,ze]);const Nr=M.useMemo(()=>({isParentOpen:Oe,submenuCtx:At,dispatch:ze,updateItems:Gn}),[Oe,At,ze,Gn]);let En,An;Je&&(A?An=Je.overflowAmt:En=Je.height);const Lr=M.useMemo(()=>({reposSubmenu:nt,submenuCtx:At,overflow:x,overflowAmt:An,parentMenuRef:Te,parentDir:Ue}),[nt,At,x,An,Ue]),Pr=En>=0?{maxHeight:En,overflow:x}:void 0,Jn=M.useMemo(()=>({state:W,align:_,dir:Ue}),[W,_,Ue]),Fr=M.useMemo(()=>({dir:Ue}),[Ue]),Mr=ri({block:ii,element:Lh,modifiers:Fr,className:u.className}),Oi=U.jsxs("ul",{role:"menu","aria-label":a,...iu(Z),...ni({onPointerEnter:jn?.off,onPointerMove:Do,onPointerLeave:xn,onKeyDown:ko,onAnimationEnd:Sn},Y),ref:xa(y,Te),className:ri({block:ii,modifiers:Jn,className:i}),style:{...n,...Pr,margin:0,display:W==="closed"?"none":void 0,position:lu,left:ee.x,top:ee.y},children:[s&&U.jsx("li",{"aria-hidden":!0,...u,className:Mr,style:{display:"block",position:lu,left:We.x,top:We.y,...u.style},ref:on}),U.jsx(uu.Provider,{value:Lr,children:U.jsx(su.Provider,{value:Nr,children:U.jsx(ou.Provider,{value:rt,children:ct(L,Jn)})})})]});return g?U.jsx(Wh,{...g,isOpen:Oe,children:Oi}):Oi},pu=M.forwardRef(function({"aria-label":i,className:n,containerProps:s,initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,reposition:w="auto",submenuOpenDelay:_=300,submenuCloseDelay:O=150,viewScroll:E="initial",portal:x,theming:A,onItemClick:I,...k},W){const R=M.useRef(null),Z=M.useRef({}),{anchorRef:$,state:de,onClose:C}=k,L=M.useMemo(()=>({initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,rootMenuRef:R,rootAnchorRef:$,scrollNodesRef:Z,reposition:w,viewScroll:E,submenuOpenDelay:_,submenuCloseDelay:O}),[u,f,c,p,$,g,y,w,E,_,O]),q=M.useMemo(()=>({handleClick(Y,ee){Y.stopPropagation||ct(I,Y);let J=Y.keepOpen;J===void 0&&(J=ee&&Y.key===wt.SPACE),J||ct(C,{value:Y.value,key:Y.key,reason:vr.CLICK})},handleClose(Y){ct(C,{key:Y,reason:vr.CLICK})}}),[I,C]);if(!de)return null;const ne=U.jsx(wa.Provider,{value:L,children:U.jsx(fu.Provider,{value:q,children:U.jsx(Yh,{...k,ariaLabel:i||"Menu",externalRef:W,containerRef:R,containerProps:{className:n,containerRef:R,containerProps:s,theming:A,transition:c,onClose:C}})})});return x===!0&&typeof document<"u"?dr.createPortal(ne,document.body):x?x.target?dr.createPortal(ne,x.target):x.stablePosition?null:ne:ne}),Ea=0,Aa=1,oi=2,si=3,ui=4,Jh=5,vu=6,Kh=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],gu=a=>({_s:a,status:Kh[a],isEnter:a<si,isMounted:a!==vu,isResolved:a===oi||a>ui}),Ia=a=>a?vu:Jh,Xh=(a,i)=>{switch(a){case Aa:case Ea:return oi;case ui:case si:return Ia(i)}},Vh=a=>typeof a=="object"?[a.enter,a.exit]:[a,a],Ta=setTimeout,Zh=(a,i)=>Ta(()=>{isNaN(document.body.offsetTop)||a(i+1)},0),mu=(a,i,n,s,u)=>{clearTimeout(s.current);const f=gu(a);i(f),n.current=f,u&&u({current:f})},Qh=({enter:a=!0,exit:i=!0,preEnter:n,preExit:s,timeout:u,initialEntered:f,mountOnEnter:c,unmountOnExit:p,onStateChange:g}={})=>{const[y,w]=M.useState(()=>gu(f?oi:Ia(c))),_=M.useRef(y),O=M.useRef(0),[E,x]=Vh(u),A=M.useCallback(()=>{const I=Xh(_.current._s,p);I&&mu(I,w,_,O,g)},[g,p]);return[y,M.useCallback(I=>{const k=R=>{switch(mu(R,w,_,O,g),R){case Aa:E>=0&&(O.current=Ta(A,E));break;case ui:x>=0&&(O.current=Ta(A,x));break;case Ea:case si:O.current=Zh(k,R);break}},W=_.current.isEnter;typeof I!="boolean"&&(I=!W),I?!W&&k(a?n?Ea:Aa:oi):W&&k(i?s?si:ui:Ia(p))},[A,g,a,i,n,s,E,x,p]),A]},yu=({initialOpen:a,initialMounted:i,unmountOnClose:n,transition:s,transitionTimeout:u=500,onMenuChange:f}={})=>{const c=pr(s,"open"),p=pr(s,"close"),[{status:g},y,w]=Qh({initialEntered:a,mountOnEnter:!i,unmountOnExit:n,timeout:u,enter:c,exit:p,onStateChange:M.useCallback(({current:{isEnter:_,isResolved:O}})=>{!f||_&&c&&O||!_&&p&&O||f({open:_})},[f,c,p])});return[{state:Mh[g],endTransition:w},y]},ep=a=>{const[i,n]=yu(a),[s,u]=M.useState(),f=(c,p)=>{u({position:c,alwaysUpdate:p}),n(!0)};return[{menuItemFocus:s,...i},n,f]},tp=(a,i)=>{if(process.env.NODE_ENV!=="production"&&typeof i!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=M.useState({});return{onMouseDown:()=>{n.v=a&&a!=="closed"},onClick:s=>n.v?n.v=!1:i(!0,s)}},np=parseInt(M.version)<19,bu=M.forwardRef(function({"aria-label":i,captureFocus:n,initialOpen:s,menuButton:u,instanceRef:f,onMenuChange:c,...p},g){const[y,w,_]=ep({...p,onMenuChange:c}),{state:O}=y,E=nu(O),x=M.useRef(null),A=tp(O,($,de)=>_(de.detail?void 0:gr.FIRST)),I=M.useCallback($=>{w(!1),$.key&&x.current.focus()},[w]),k=$=>{switch($.key){case wt.UP:_(gr.LAST);break;case wt.DOWN:_(gr.FIRST);break;default:return}$.preventDefault()},W=ct(u,{open:E});if(!W||!W.type)throw new Error("Menu requires a menuButton prop.");const R={...ni({onKeyDown:k,...A},W.props),ref:xa(np?W.ref:W.props.ref,x)};Oh(W.type)==="MenuButton"&&(R.isOpen=E);const Z=M.cloneElement(W,R);return M.useImperativeHandle(f,()=>({openMenu:_,closeMenu:()=>w(!1)})),U.jsxs(M.Fragment,{children:[Z,U.jsx(pu,{...p,...y,"aria-label":i||(typeof W.props.children=="string"?W.props.children:"Menu"),anchorRef:x,ref:g,onClose:I})]})}),rp=(a,i)=>{const n=M.memo(i),s=M.forwardRef((u,f)=>{const c=M.useRef(null);return U.jsx(n,{...u,itemRef:c,externalRef:f,isHovering:M.useContext(ou)===c.current})});return s.displayName=`WithHovering(${a})`,s},ip=a=>{const[i,n]=M.useState(!1);return M.useEffect(()=>{!a&&n(!1)},[a]),[i,()=>!i&&n(!0),()=>n(!1)]},ap=(a,i,n)=>{ai(()=>{if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${i.current.outerHTML}`);if(a)return;const s=i.current;return n(s,!0),()=>{n(s)}},[a,i,n])},op=(a,i,n,s)=>{const[u,f,c]=ip(n),{submenuCloseDelay:p}=M.useContext(wa),{isParentOpen:g,submenuCtx:y,dispatch:w,updateItems:_}=M.useContext(su),O=()=>{!n&&!s&&w(Ce.SET,a.current)},E=()=>{!s&&w(Ce.UNSET,a.current)},x=k=>{n&&!k.currentTarget.contains(k.relatedTarget)&&E()},A=k=>{s||(k.stopPropagation(),f(),y.on(p,O,O))},I=(k,W)=>{c(),y.off(),!W&&E()};return ap(s,a,_),M.useEffect(()=>{n&&g&&i.current&&i.current.focus()},[i,n,g]),{mouseOver:u,setHover:O,onBlur:x,onPointerMove:A,onPointerLeave:I}},fi=rp("MenuItem",function({className:i,value:n,href:s,type:u,checked:f,disabled:c,children:p,onClick:g,isHovering:y,itemRef:w,externalRef:_,...O}){const E=!!c,{mouseOver:x,setHover:A,...I}=op(w,w,y,E),k=M.useContext(fu),W=M.useContext(Fh),R=u==="radio",Z=u==="checkbox",$=!!s&&!E&&!R&&!Z,de=R?W.value===n:Z?!!f:!1,C=ee=>{if(E){ee.stopPropagation(),ee.preventDefault();return}const J={value:n,syntheticEvent:ee};ee.key!==void 0&&(J.key=ee.key),Z&&(J.checked=!de),R&&(J.name=W.name),ct(g,J),R&&ct(W.onRadioChange,J),k.handleClick(J,Z||R)},L=ee=>{if(y)switch(ee.key){case wt.ENTER:ee.preventDefault();case wt.SPACE:$?w.current.click():C(ee)}},q=M.useMemo(()=>({type:u,disabled:E,hover:x||y,checked:de,anchor:$}),[u,E,x,y,de,$]),ne=ni({...I,onPointerDown:A,onKeyDown:L,onClick:C},O),Y={role:R?"menuitemradio":Z?"menuitemcheckbox":Dh,"aria-checked":R||Z?de:void 0,...iu(E,y),...ne,ref:xa(_,w),className:ri({block:ii,element:Ph,modifiers:q,className:i}),children:M.useMemo(()=>ct(p,q),[p,q])};return $?U.jsx("li",{role:kh,children:U.jsx("a",{href:s,...Y})}):U.jsx("li",{...Y})});if(!M.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!cr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function sp(a){a()}function up(a){a||(a=sp,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),cr.configure({reactionScheduler:a})}function fp(a){return cr.getDependencyTree(a)}var lp=1e4,cp=1e4,dp=(function(){function a(i){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(s){s===void 0&&(s=lp),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var u=Date.now();n.registrations.forEach(function(f,c){u-f.registeredAt>=s&&(n.finalize(f.value),n.registrations.delete(c))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(a.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,n,s){this.registrations.set(s,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(a.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(i){this.registrations.delete(i)}}),Object.defineProperty(a.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,cp))}}),a})(),hp=typeof FinalizationRegistry<"u"?FinalizationRegistry:dp,Oa=new hp(function(a){var i;(i=a.reaction)===null||i===void 0||i.dispose(),a.reaction=null}),li={exports:{}},Ca={};var _u;function pp(){if(_u)return Ca;_u=1;var a=M;function i(_,O){return _===O&&(_!==0||1/_===1/O)||_!==_&&O!==O}var n=typeof Object.is=="function"?Object.is:i,s=a.useState,u=a.useEffect,f=a.useLayoutEffect,c=a.useDebugValue;function p(_,O){var E=O(),x=s({inst:{value:E,getSnapshot:O}}),A=x[0].inst,I=x[1];return f(function(){A.value=E,A.getSnapshot=O,g(A)&&I({inst:A})},[_,E,O]),u(function(){return g(A)&&I({inst:A}),_(function(){g(A)&&I({inst:A})})},[_]),c(E),E}function g(_){var O=_.getSnapshot;_=_.value;try{var E=O();return!n(_,E)}catch{return!0}}function y(_,O){return O()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Ca.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:w,Ca}var Na={};var wu;function vp(){return wu||(wu=1,process.env.NODE_ENV!=="production"&&(function(){function a(E,x){return E===x&&(E!==0||1/E===1/x)||E!==E&&x!==x}function i(E,x){w||u.startTransition===void 0||(w=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=x();if(!_){var I=x();f(A,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),_=!0)}I=c({inst:{value:A,getSnapshot:x}});var k=I[0].inst,W=I[1];return g(function(){k.value=A,k.getSnapshot=x,n(k)&&W({inst:k})},[E,A,x]),p(function(){return n(k)&&W({inst:k}),E(function(){n(k)&&W({inst:k})})},[E]),y(A),A}function n(E){var x=E.getSnapshot;E=E.value;try{var A=x();return!f(E,A)}catch{return!0}}function s(E,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=M,f=typeof Object.is=="function"?Object.is:a,c=u.useState,p=u.useEffect,g=u.useLayoutEffect,y=u.useDebugValue,w=!1,_=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:i;Na.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Na}var Su;function gp(){return Su||(Su=1,process.env.NODE_ENV==="production"?li.exports=pp():li.exports=vp()),li.exports}var mp=gp();function xu(a){a.reaction=new cr.Reaction("observer".concat(a.name),function(){var i;a.stateVersion=Symbol(),(i=a.onStoreChange)===null||i===void 0||i.call(a)})}function yp(a,i){i===void 0&&(i="observed");var n=M.useRef(null);if(!n.current){var s={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(p){return Oa.unregister(s),s.onStoreChange=p,s.reaction||(xu(s),s.stateVersion=Symbol()),function(){var g;s.onStoreChange=null,(g=s.reaction)===null||g===void 0||g.dispose(),s.reaction=null}},getSnapshot:function(){return s.stateVersion}};n.current=s}var u=n.current;u.reaction||(xu(u),Oa.register(n,u,u)),M.useDebugValue(u.reaction,fp),mp.useSyncExternalStore(u.subscribe,u.getSnapshot,u.getSnapshot);var f,c;if(u.reaction.track(function(){try{f=a()}catch(p){c=p}}),c)throw c;return f}var La,Pa,bp=!0,Eu=!0,Au=typeof Symbol=="function"&&Symbol.for,_p=(Pa=(La=Object.getOwnPropertyDescriptor(function(){},"name"))===null||La===void 0?void 0:La.configurable)!==null&&Pa!==void 0?Pa:!1,Iu=Au?Symbol.for("react.forward_ref"):typeof M.forwardRef=="function"&&M.forwardRef(function(a){return null}).$$typeof,Tu=Au?Symbol.for("react.memo"):typeof M.memo=="function"&&M.memo(function(a){return null}).$$typeof;function Dt(a,i){var n;if(process.env.NODE_ENV,Tu&&a.$$typeof===Tu)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var s=(n=void 0)!==null&&n!==void 0?n:!1,u=a,f=a.displayName||a.name;if(Iu&&a.$$typeof===Iu&&(s=!0,u=a.render,typeof u!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(p,g){return yp(function(){return u(p,g)},f)};return c.displayName=a.displayName,_p&&Object.defineProperty(c,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(c.contextTypes=a.contextTypes,process.env.NODE_ENV!=="production"&&Eu&&(Eu=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),s&&(c=M.forwardRef(c)),c=M.memo(c),Sp(a,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var p,g;throw new Error("[mobx-react-lite] `".concat(this.displayName||((p=this.type)===null||p===void 0?void 0:p.displayName)||((g=this.type)===null||g===void 0?void 0:g.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var wp={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Sp(a,i){Object.keys(a).forEach(function(n){wp[n]||Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(a,n))})}process.env.NODE_ENV;var Fa;up(dr.unstable_batchedUpdates),Fa=Oa.finalizeAllImmediately;function Ma(a,i){(i==null||i>a.length)&&(i=a.length);for(var n=0,s=Array(i);n<i;n++)s[n]=a[n];return s}function xp(a){if(Array.isArray(a))return a}function Ep(a){if(Array.isArray(a))return Ma(a)}function Ap(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function Ip(a,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,Cu(s.key),s)}}function Tp(a,i,n){return i&&Ip(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function ci(a,i){var n=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!n){if(Array.isArray(a)||(n=ka(a))||i){n&&(a=n);var s=0,u=function(){};return{s:u,n:function(){return s>=a.length?{done:!0}:{done:!1,value:a[s++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
20
+ }`;var ae=lh(function(){return he(h,j+"return "+D).apply(n,v)});if(ae.source=D,Us(ae))throw ae;return ae}function YS(e){return ve(e).toLowerCase()}function JS(e){return ve(e).toUpperCase()}function KS(e,t,r){if(e=ve(e),e&&(r||t===n))return bc(e);if(!e||!(t=st(t)))return e;var o=It(e),l=It(t),h=_c(o,l),v=wc(o,l)+1;return vn(o,h,v).join("")}function XS(e,t,r){if(e=ve(e),e&&(r||t===n))return e.slice(0,xc(e)+1);if(!e||!(t=st(t)))return e;var o=It(e),l=wc(o,It(t))+1;return vn(o,0,l).join("")}function VS(e,t,r){if(e=ve(e),e&&(r||t===n))return e.replace(Ht,"");if(!e||!(t=st(t)))return e;var o=It(e),l=_c(o,It(t));return vn(o,l).join("")}function ZS(e,t){var r=ne,o=Y;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?ie(t.length):r,o="omission"in t?st(t.omission):o}e=ve(e);var h=e.length;if(Qn(e)){var v=It(e);h=v.length}if(r>=h)return e;var m=r-er(o);if(m<1)return o;var S=v?vn(v,0,m).join(""):e.slice(0,m);if(l===n)return S+o;if(v&&(m+=S.length-m),zs(l)){if(e.slice(m).search(l)){var P,F=S;for(l.global||(l=is(l.source,ve(Ul.exec(l))+"g")),l.lastIndex=0;P=l.exec(F);)var D=P.index;S=S.slice(0,D===n?m:D)}}else if(e.indexOf(st(l),m)!=m){var z=S.lastIndexOf(l);z>-1&&(S=S.slice(0,z))}return S+o}function QS(e){return e=ve(e),e&&Ee.test(e)?e.replace(Xe,Oy):e}var ex=sr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),js=cd("toUpperCase");function fh(e,t,r){return e=ve(e),t=r?n:t,t===n?xy(e)?Ly(e):py(e):e.match(t)||[]}var lh=oe(function(e,t){try{return at(e,n,t)}catch(r){return Us(r)?r:new Q(r)}}),tx=Jt(function(e,t){return ht(t,function(r){r=kt(r),Gt(e,r,Rs(e[r],e))}),e});function nx(e){var t=e==null?0:e.length,r=K();return e=t?we(e,function(o){if(typeof o[1]!="function")throw new pt(c);return[r(o[0]),o[1]]}):[],oe(function(o){for(var l=-1;++l<t;){var h=e[l];if(at(h[0],this,o))return at(h[1],this,o)}})}function rx(e){return O1(gt(e,_))}function Gs(e){return function(){return e}}function ix(e,t){return e==null||e!==e?t:e}var ax=hd(),ox=hd(!0);function et(e){return e}function Ys(e){return Hc(typeof e=="function"?e:gt(e,_))}function sx(e){return jc(gt(e,_))}function ux(e,t){return Gc(e,gt(t,_))}var fx=oe(function(e,t){return function(r){return Gr(r,e,t)}}),lx=oe(function(e,t){return function(r){return Gr(e,r,t)}});function Js(e,t,r){var o=Fe(t),l=Zi(t,o);r==null&&!(Se(t)&&(l.length||!o.length))&&(r=t,t=e,e=this,l=Zi(t,Fe(t)));var h=!(Se(r)&&"chain"in r)||!!r.chain,v=Xt(e);return ht(l,function(m){var S=t[m];e[m]=S,v&&(e.prototype[m]=function(){var P=this.__chain__;if(h||P){var F=e(this.__wrapped__),D=F.__actions__=Ve(this.__actions__);return D.push({func:S,args:arguments,thisArg:e}),F.__chain__=P,F}return S.apply(e,fn([this.value()],arguments))})}),e}function cx(){return Me._===this&&(Me._=Wy),this}function Ks(){}function dx(e){return e=ie(e),oe(function(t){return Yc(t,e)})}var hx=Is(we),px=Is(pc),vx=Is(Vo);function ch(e){return Fs(e)?Zo(kt(e)):j1(e)}function gx(e){return function(t){return e==null?n:Pn(e,t)}}var mx=vd(),yx=vd(!0);function Xs(){return[]}function Vs(){return!1}function bx(){return{}}function _x(){return""}function wx(){return!0}function Sx(e,t){if(e=ie(e),e<1||e>Ue)return[];var r=nt,o=Re(e,nt);t=K(t),e-=nt;for(var l=ts(o,t);++r<e;)t(r);return l}function xx(e){return te(e)?we(e,kt):ut(e)?[e]:Ve(Ld(ve(e)))}function Ex(e){var t=++My;return ve(e)+t}var Ax=ia(function(e,t){return e+t},0),Ix=Ts("ceil"),Tx=ia(function(e,t){return e/t},1),Ox=Ts("floor");function Cx(e){return e&&e.length?Vi(e,et,ds):n}function Nx(e,t){return e&&e.length?Vi(e,K(t,2),ds):n}function Lx(e){return mc(e,et)}function Px(e,t){return mc(e,K(t,2))}function Fx(e){return e&&e.length?Vi(e,et,gs):n}function kx(e,t){return e&&e.length?Vi(e,K(t,2),gs):n}var Mx=ia(function(e,t){return e*t},1),Dx=Ts("round"),Wx=ia(function(e,t){return e-t},0);function Bx(e){return e&&e.length?es(e,et):0}function Rx(e,t){return e&&e.length?es(e,K(t,2)):0}return d.after=sw,d.ary=zd,d.assign=Jw,d.assignIn=nh,d.assignInWith=ma,d.assignWith=Kw,d.at=Xw,d.before=Hd,d.bind=Rs,d.bindAll=tx,d.bindKey=qd,d.castArray=bw,d.chain=Rd,d.chunk=Ob,d.compact=Cb,d.concat=Nb,d.cond=nx,d.conforms=rx,d.constant=Gs,d.countBy=B_,d.create=Vw,d.curry=jd,d.curryRight=Gd,d.debounce=Yd,d.defaults=Zw,d.defaultsDeep=Qw,d.defer=uw,d.delay=fw,d.difference=Lb,d.differenceBy=Pb,d.differenceWith=Fb,d.drop=kb,d.dropRight=Mb,d.dropRightWhile=Db,d.dropWhile=Wb,d.fill=Bb,d.filter=$_,d.flatMap=H_,d.flatMapDeep=q_,d.flatMapDepth=j_,d.flatten=Md,d.flattenDeep=Rb,d.flattenDepth=$b,d.flip=lw,d.flow=ax,d.flowRight=ox,d.fromPairs=Ub,d.functions=oS,d.functionsIn=sS,d.groupBy=G_,d.initial=Hb,d.intersection=qb,d.intersectionBy=jb,d.intersectionWith=Gb,d.invert=fS,d.invertBy=lS,d.invokeMap=J_,d.iteratee=Ys,d.keyBy=K_,d.keys=Fe,d.keysIn=Qe,d.map=ca,d.mapKeys=dS,d.mapValues=hS,d.matches=sx,d.matchesProperty=ux,d.memoize=ha,d.merge=pS,d.mergeWith=rh,d.method=fx,d.methodOf=lx,d.mixin=Js,d.negate=pa,d.nthArg=dx,d.omit=vS,d.omitBy=gS,d.once=cw,d.orderBy=X_,d.over=hx,d.overArgs=dw,d.overEvery=px,d.overSome=vx,d.partial=$s,d.partialRight=Jd,d.partition=V_,d.pick=mS,d.pickBy=ih,d.property=ch,d.propertyOf=gx,d.pull=Xb,d.pullAll=Wd,d.pullAllBy=Vb,d.pullAllWith=Zb,d.pullAt=Qb,d.range=mx,d.rangeRight=yx,d.rearg=hw,d.reject=ew,d.remove=e_,d.rest=pw,d.reverse=Ws,d.sampleSize=nw,d.set=bS,d.setWith=_S,d.shuffle=rw,d.slice=t_,d.sortBy=ow,d.sortedUniq=u_,d.sortedUniqBy=f_,d.split=HS,d.spread=vw,d.tail=l_,d.take=c_,d.takeRight=d_,d.takeRightWhile=h_,d.takeWhile=p_,d.tap=C_,d.throttle=gw,d.thru=la,d.toArray=Qd,d.toPairs=ah,d.toPairsIn=oh,d.toPath=xx,d.toPlainObject=th,d.transform=wS,d.unary=mw,d.union=v_,d.unionBy=g_,d.unionWith=m_,d.uniq=y_,d.uniqBy=b_,d.uniqWith=__,d.unset=SS,d.unzip=Bs,d.unzipWith=Bd,d.update=xS,d.updateWith=ES,d.values=lr,d.valuesIn=AS,d.without=w_,d.words=fh,d.wrap=yw,d.xor=S_,d.xorBy=x_,d.xorWith=E_,d.zip=A_,d.zipObject=I_,d.zipObjectDeep=T_,d.zipWith=O_,d.entries=ah,d.entriesIn=oh,d.extend=nh,d.extendWith=ma,Js(d,d),d.add=Ax,d.attempt=lh,d.camelCase=CS,d.capitalize=sh,d.ceil=Ix,d.clamp=IS,d.clone=_w,d.cloneDeep=Sw,d.cloneDeepWith=xw,d.cloneWith=ww,d.conformsTo=Ew,d.deburr=uh,d.defaultTo=ix,d.divide=Tx,d.endsWith=NS,d.eq=Ot,d.escape=LS,d.escapeRegExp=PS,d.every=R_,d.find=U_,d.findIndex=Fd,d.findKey=eS,d.findLast=z_,d.findLastIndex=kd,d.findLastKey=tS,d.floor=Ox,d.forEach=$d,d.forEachRight=Ud,d.forIn=nS,d.forInRight=rS,d.forOwn=iS,d.forOwnRight=aS,d.get=Hs,d.gt=Aw,d.gte=Iw,d.has=uS,d.hasIn=qs,d.head=Dd,d.identity=et,d.includes=Y_,d.indexOf=zb,d.inRange=TS,d.invoke=cS,d.isArguments=Mn,d.isArray=te,d.isArrayBuffer=Tw,d.isArrayLike=Ze,d.isArrayLikeObject=Ae,d.isBoolean=Ow,d.isBuffer=gn,d.isDate=Cw,d.isElement=Nw,d.isEmpty=Lw,d.isEqual=Pw,d.isEqualWith=Fw,d.isError=Us,d.isFinite=kw,d.isFunction=Xt,d.isInteger=Kd,d.isLength=va,d.isMap=Xd,d.isMatch=Mw,d.isMatchWith=Dw,d.isNaN=Ww,d.isNative=Bw,d.isNil=$w,d.isNull=Rw,d.isNumber=Vd,d.isObject=Se,d.isObjectLike=xe,d.isPlainObject=Zr,d.isRegExp=zs,d.isSafeInteger=Uw,d.isSet=Zd,d.isString=ga,d.isSymbol=ut,d.isTypedArray=fr,d.isUndefined=zw,d.isWeakMap=Hw,d.isWeakSet=qw,d.join=Yb,d.kebabCase=FS,d.last=yt,d.lastIndexOf=Jb,d.lowerCase=kS,d.lowerFirst=MS,d.lt=jw,d.lte=Gw,d.max=Cx,d.maxBy=Nx,d.mean=Lx,d.meanBy=Px,d.min=Fx,d.minBy=kx,d.stubArray=Xs,d.stubFalse=Vs,d.stubObject=bx,d.stubString=_x,d.stubTrue=wx,d.multiply=Mx,d.nth=Kb,d.noConflict=cx,d.noop=Ks,d.now=da,d.pad=DS,d.padEnd=WS,d.padStart=BS,d.parseInt=RS,d.random=OS,d.reduce=Z_,d.reduceRight=Q_,d.repeat=$S,d.replace=US,d.result=yS,d.round=Dx,d.runInContext=b,d.sample=tw,d.size=iw,d.snakeCase=zS,d.some=aw,d.sortedIndex=n_,d.sortedIndexBy=r_,d.sortedIndexOf=i_,d.sortedLastIndex=a_,d.sortedLastIndexBy=o_,d.sortedLastIndexOf=s_,d.startCase=qS,d.startsWith=jS,d.subtract=Wx,d.sum=Bx,d.sumBy=Rx,d.template=GS,d.times=Sx,d.toFinite=Vt,d.toInteger=ie,d.toLength=eh,d.toLower=YS,d.toNumber=bt,d.toSafeInteger=Yw,d.toString=ve,d.toUpper=JS,d.trim=KS,d.trimEnd=XS,d.trimStart=VS,d.truncate=ZS,d.unescape=QS,d.uniqueId=Ex,d.upperCase=ex,d.upperFirst=js,d.each=$d,d.eachRight=Ud,d.first=Dd,Js(d,(function(){var e={};return Pt(d,function(t,r){pe.call(d.prototype,r)||(e[r]=t)}),e})(),{chain:!1}),d.VERSION=s,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ht(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===n?1:Le(ie(r),0);var o=this.__filtered__&&!t?new ue(this):this.clone();return o.__filtered__?o.__takeCount__=Re(r,o.__takeCount__):o.__views__.push({size:Re(r,nt),type:e+(o.__dir__<0?"Right":"")}),o},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==We||r==Je;ue.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:K(l,3),type:r}),h.__filtered__=h.__filtered__||o,h}}),ht(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),ht(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(et)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=oe(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Gr(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(pa(K(e)))},ue.prototype.slice=function(e,t){e=ie(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=ie(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(nt)},Pt(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),l=d[o?"take"+(t=="last"?"Right":""):t],h=o||/^find/.test(t);l&&(d.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,S=v instanceof ue,P=m[0],F=S||te(v),D=function(se){var le=l.apply(d,fn([se],m));return o&&z?le[0]:le};F&&r&&typeof P=="function"&&P.length!=1&&(S=F=!1);var z=this.__chain__,j=!!this.__actions__.length,X=h&&!z,ae=S&&!j;if(!h&&F){v=ae?v:new ue(this);var V=e.apply(v,m);return V.__actions__.push({func:la,args:[D],thisArg:n}),new vt(V,z)}return X&&ae?e.apply(this,m):(V=this.thru(D),X?o?V.value()[0]:V.value():V)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=Di[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(o&&!this.__chain__){var h=this.value();return t.apply(te(h)?h:[],l)}return this[r](function(v){return t.apply(te(v)?v:[],l)})}}),Pt(ue.prototype,function(e,t){var r=d[t];if(r){var o=r.name+"";pe.call(ir,o)||(ir[o]=[]),ir[o].push({name:t,func:r})}}),ir[ra(n,M).name]=[{name:"wrapper",func:n}],ue.prototype.clone=Qy,ue.prototype.reverse=e1,ue.prototype.value=t1,d.prototype.at=N_,d.prototype.chain=L_,d.prototype.commit=P_,d.prototype.next=F_,d.prototype.plant=M_,d.prototype.reverse=D_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=W_,d.prototype.first=d.prototype.head,Rr&&(d.prototype[Rr]=k_),d}),tr=Py();Tn?((Tn.exports=tr)._=tr,Yo._=tr):Me._=tr}).call(ph)})(hr,hr.exports)),hr.exports}var Dn=vh();class ge{static toString(i){const n=Zs(i);if(n==null)throw new Error("buildWinId: stringify error");return n}static getParamString(i,n){return i.params?.[n]?.toString()}static getParam(i,n){return i.params?.[n]}static isEquals(i,n){return Dn.isEqual(i,n)}static indexOf(i,n){return i.map(ge.toString).indexOf(ge.toString(n))}static includes(i,n){return i.map(ge.toString).includes(ge.toString(n))}static withoutDup(i){const{params:n,viewId:s,title:u}=i;return{params:n,viewId:s,title:u}}static replaceDup(i){const{params:n,viewId:s,title:u}=i;return{params:n,viewId:s,title:u,dupId:`${new Date().getTime()}`}}}var ti={exports:{}},eu;function gh(){return eu||(eu=1,(function(a,i){Object.defineProperty(i,"__esModule",{value:!0});function n(C){return typeof C=="object"&&!("toString"in C)?Object.prototype.toString.call(C).slice(8,-1):C}var s=typeof process=="object"&&process.env.NODE_ENV==="production";function u(C,L){if(!C)throw s?new Error("Invariant failed"):new Error(L())}i.invariant=u;var f=Object.prototype.hasOwnProperty,c=Array.prototype.splice,p=Object.prototype.toString;function g(C){return p.call(C).slice(8,-1)}var y=Object.assign||(function(C,L){return w(L).forEach(function(q){f.call(L,q)&&(C[q]=L[q])}),C}),w=typeof Object.getOwnPropertySymbols=="function"?function(C){return Object.keys(C).concat(Object.getOwnPropertySymbols(C))}:function(C){return Object.keys(C)};function _(C){return Array.isArray(C)?y(C.constructor(C.length),C):g(C)==="Map"?new Map(C):g(C)==="Set"?new Set(C):C&&typeof C=="object"?y(Object.create(Object.getPrototypeOf(C)),C):C}var O=(function(){function C(){this.commands=y({},E),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(L,q){return L===q},this.update.newContext=function(){return new C().update}}return Object.defineProperty(C.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(L){this.update.isEquals=L},enumerable:!0,configurable:!0}),C.prototype.extend=function(L,q){this.commands[L]=q},C.prototype.update=function(L,q){var ne=this,Y=typeof q=="function"?{$apply:q}:q;Array.isArray(L)&&Array.isArray(Y)||u(!Array.isArray(Y),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),u(typeof Y=="object"&&Y!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(ne.commands).join(", ")+".")});var ee=L;return w(Y).forEach(function(J){if(f.call(ne.commands,J)){var We=L===ee;ee=ne.commands[J](Y[J],ee,Y,L),We&&ne.isEquals(ee,L)&&(ee=L)}else{var Ye=g(L)==="Map"?ne.update(L.get(J),Y[J]):ne.update(L[J],Y[J]),Je=g(ee)==="Map"?ee.get(J):ee[J];(!ne.isEquals(Ye,Je)||typeof Ye>"u"&&!f.call(L,J))&&(ee===L&&(ee=_(L)),g(ee)==="Map"?ee.set(J,Ye):ee[J]=Ye)}}),ee},C})();i.Context=O;var E={$push:function(C,L,q){return A(L,q,"$push"),C.length?L.concat(C):L},$unshift:function(C,L,q){return A(L,q,"$unshift"),C.length?C.concat(L):L},$splice:function(C,L,q,ne){return M(L,q),C.forEach(function(Y){W(Y),L===ne&&Y.length&&(L=_(ne)),c.apply(L,Y)}),L},$set:function(C,L,q){return Z(q),C},$toggle:function(C,L){I(C,"$toggle");var q=C.length?_(L):L;return C.forEach(function(ne){q[ne]=!L[ne]}),q},$unset:function(C,L,q,ne){return I(C,"$unset"),C.forEach(function(Y){Object.hasOwnProperty.call(L,Y)&&(L===ne&&(L=_(ne)),delete L[Y])}),L},$add:function(C,L,q,ne){return de(L,"$add"),I(C,"$add"),g(L)==="Map"?C.forEach(function(Y){var ee=Y[0],J=Y[1];L===ne&&L.get(ee)!==J&&(L=_(ne)),L.set(ee,J)}):C.forEach(function(Y){L===ne&&!L.has(Y)&&(L=_(ne)),L.add(Y)}),L},$remove:function(C,L,q,ne){return de(L,"$remove"),I(C,"$remove"),C.forEach(function(Y){L===ne&&L.has(Y)&&(L=_(ne)),L.delete(Y)}),L},$merge:function(C,L,q,ne){return $(L,C),w(C).forEach(function(Y){C[Y]!==L[Y]&&(L===ne&&(L=_(ne)),L[Y]=C[Y])}),L},$apply:function(C,L){return R(C),C(L)}},x=new O;i.isEquals=x.update.isEquals,i.extend=x.extend,i.default=x.update,i.default.default=a.exports=y(i.default,i);function A(C,L,q){u(Array.isArray(C),function(){return"update(): expected target of "+n(q)+" to be an array; got "+n(C)+"."}),I(L[q],q)}function I(C,L){u(Array.isArray(C),function(){return"update(): expected spec of "+n(L)+" to be an array; got "+n(C)+". Did you forget to wrap your parameter in an array?"})}function M(C,L){u(Array.isArray(C),function(){return"Expected $splice target to be an array; got "+n(C)}),W(L.$splice)}function W(C){u(Array.isArray(C),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(C)+". Did you forget to wrap your parameters in an array?"})}function R(C){u(typeof C=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(C)+"."})}function Z(C){u(Object.keys(C).length===1,function(){return"Cannot have more than one key in an object with $set"})}function $(C,L){u(L&&typeof L=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(L)}),u(C&&typeof C=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(C)})}function de(C,L){var q=g(C);u(q==="Map"||q==="Set",function(){return"update(): "+n(L)+" expects a target of type Set or Map; got "+n(q)})}})(ti,ti.exports)),ti.exports}var mh=gh();const yh=ei(mh);var bh=Object.getOwnPropertyDescriptor,_h=(a,i,n,s)=>{for(var u=s>1?void 0:s?bh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u};ce.JustLayoutService=class{insertWinIdToStack=(i,n)=>{if(i==null)return i;const s=this.getNodeByBranch(i,n.branch);if(s.type!=="stack")return i;const f=s.tabs,c=n.index>=0?Dn.clamp(n.index,0,f.length):f.length;return this.updateNodeOfBranch(i,n.branch,{$set:{...s,type:"stack",tabs:[...f.slice(0,c),n.justId,...f.slice(c)],active:n.justId}})};insertWinIdToSplit=(i,n)=>{if(i==null)return i;const s=this.getNodeByBranch(i,n.branch),u=n.pos==="first"?"second":"first";return this.updateNodeOfBranch(i,n.branch,{$set:{type:"split-percentage",direction:n.direction,[u]:{...s,name:void 0},[n.pos]:{type:"stack",tabs:[n.justId],active:n.justId,name:void 0},size:n.size??50,dndAccept:s.dndAccept,name:s.name,hideTitle:s.hideTitle}})};removeWinId=(i,n)=>{if(i==null)return null;const s=this.getNodeByWinId(i,n);if(s?.type!=="stack")return i;const u=s.active?ge.indexOf(s.tabs,s.active):0,f=s.tabs.filter(p=>!ge.isEquals(p,n));let c;return s.active!==null&&ge.includes(f,s.active)?c=s.active:c=f.length>0&&s.active!==null?f[Dn.clamp(u-1,0,f.length-1)]:null,this.updateNodeOfWinId(i,n,{$set:{...s,tabs:f,active:c}})};removeAllTabs=(i,n)=>{if(i==null)return null;const s=this.getNodeByBranch(i,n);return!s||s.type!=="stack"?i:this.updateNodeOfBranch(i,n,{$set:{...s,tabs:[],active:null}})};activeWinId=(i,n)=>{if(i==null)return null;const s=this.getNodeByWinId(i,n);return s==null?i:this.updateNodeOfWinId(i,n,{$set:{...s,active:n}})};getActiveWinIds=i=>{const n=(s,u)=>{if(s===null)return u;if(s.type==="stack")return s.active!==null?[...u,s.active]:u;{const f=n(s.first,u);return n(s.second,f)}};return n(i,[])};removeEmpty=i=>{if(i==null)return i;const n=this.findEmptyBranch(i,null,[]);if(n===null)return i;if(n.length===0)return null;const s=n[n.length-1],u=n.slice(0,-1),f=s==="first"?"second":"first",c=this.getNodeByBranch(i,u),p=this.getNodeByBranch(i,[...u,f]);return this.updateNodeOfBranch(i,u,{$set:{...p,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(i,n,s)=>{if(i===null)return null;if(i.type==="stack"){const u=n!=null&&n.type!="stack"&&(!!n.first.name||!!n.second.name);if(i.tabs.length===0&&!u)return s}else{const u=this.findEmptyBranch(i.first,i,[...s,"first"]);if(u!=null)return u;const f=this.findEmptyBranch(i.second,i,[...s,"second"]);if(f!=null)return f}return null};moveWinIdToStack=(i,n)=>{const s=this.removeWinId(i,n.justId);return this.insertWinIdToStack(s,n)};moveWinIdToSplit=(i,n)=>{const s=this.removeWinId(i,n.justId);return this.insertWinIdToSplit(s,n)};getBranch=(i,n,s)=>{if(i===null)return null;if(i.type==="stack")return ge.includes(i.tabs,n)?s:null;{const u=this.getBranch(i.first,n,[...s,"first"]);if(u!=null)return u;const f=this.getBranch(i.second,n,[...s,"second"]);return f??null}};getBranchByWinId=(i,n)=>this.getBranch(i,n,[]);getNodeInfoByNodeName=(i,n,s)=>{if(i===null)return null;if(i.name==n)return{node:i,branch:[...s]};if(i.type!="stack"){const u=this.getNodeInfoByNodeName(i.first,n,[...s,"first"]);if(u!=null)return u;const f=this.getNodeInfoByNodeName(i.second,n,[...s,"second"]);if(f!=null)return f}return null};getTabNodeInfoByNodeName=(i,n,s)=>{if(i===null)return null;const u=this.getNodeInfoByNodeName(i,n,s);if(u==null)return null;if(u.node.type==="stack")return u;{const f=this.getTabNodeInfo(u.node,[]);if(f!=null)return{node:f.node,branch:[...u.branch,...f.branch]}}return null};getNodeByWinId=(i,n)=>{if(i===null)return null;if(i.type==="stack")return ge.includes(i.tabs,n)?i:null;{const s=this.getNodeByWinId(i.first,n);if(s!=null)return s;const u=this.getNodeByWinId(i.second,n);return u??null}};getTabBranch=(i,n)=>{if(i===null)return null;if(i.type==="stack")return n;{let s;i.type==="split-pixels"?s=i.primary==="first"?"second":"first":s=i.direction==="row"?"second":"first";const u=this.getTabBranch(i[s],[...n,s]);if(u!=null)return u}return null};getTabNodeInfo=(i,n)=>{if(i===null)return null;if(i.type==="stack")return{node:i,branch:n};{let s;i.type==="split-pixels"?s=i.primary==="first"?"second":"first":s=i.direction==="row"?"second":"first";const u=this.getTabNodeInfo(i[s],[...n,s]);if(u!=null)return u}return null};addTabWin=(i,n,s,u)=>{if(i===null)return null;const f=this.getNodeByBranch(i,n);if(f.type!=="stack")return i;const c=u<0?f.tabs.length:Dn.clamp(u,0,f.tabs.length);return this.updateNodeOfBranch(i,n,{$merge:{tabs:[...f.tabs.slice(0,c),s,...f.tabs.slice(c)],active:s}})};queryWinIdsByViewId=(i,n,s)=>{if(i===null)return s;if(i.type==="stack")return[...s,...i.tabs.filter(u=>u.viewId===n)];{const u=this.queryWinIdsByViewId(i.first,n,s);return this.queryWinIdsByViewId(i.second,n,[...s,...u])}};queryWinIdsByStack=(i,n)=>{if(i===null)return[];const s=this.getNodeByBranch(i,n);return s.type!=="stack"?[]:s.tabs};getNodeByBranch=(i,n)=>n.reduce((s,u)=>s?.[u],i);updateNodeOfBranch=(i,n,s)=>{const u=this.buildSpecFromUpdateSpec(n,s);return this.updateNode(i,u)};updateNodeOfWinId=(i,n,s)=>{const u=this.getBranchByWinId(i,n);if(u==null)return i;const f=this.buildSpecFromUpdateSpec(u,s);return this.updateNode(i,f)};hasWinId=(i,n)=>this.getNodeByWinId(i,n)!=null;updateNode=(i,n)=>i==null?null:yh(i,n);buildSpecFromUpdateSpec=(i,n)=>i.length>0?Dn.set({},i,n):n;getNodeAtBranch=(i,n)=>n.length>0?Dn.get(i,n,null):i;getBranchRightTop=i=>{if(i==null)return[];let n=i;const s=[];for(;n.type!=="stack";)n.direction==="row"?(s.push("second"),n=n.second):n.direction==="column"&&(s.push("first"),n=n.first);return s};updateSplitSize=(i,n,s)=>{const u=this.buildSpecFromUpdateSpec(n,{$merge:{size:s}});return this.updateNode(i,u)}},ce.JustLayoutService=_h([Qt.injectable()],ce.JustLayoutService);var wh=Object.getOwnPropertyDescriptor,Sh=(a,i,n,s)=>{for(var u=s>1?void 0:s?wh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u},xh=(a,i)=>(n,s)=>i(n,s,a);ce.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(i){this.service=i,cr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=i=>{this.layout=i};setTabTitle=(i,n)=>{this.tabTitleMap.set(ge.toString(i),n)};getTabTitle=i=>this.tabTitleMap.get(ge.toString(i));setTabTitleTooltip=(i,n)=>{this.tabTitleTooltipMap.set(ge.toString(i),n)};getTabTitleTooltip=i=>this.tabTitleTooltipMap.get(ge.toString(i));setFullScreenLayoutByBranch=i=>{i===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,i)};setFullScreenHideTitle=i=>{this.fullScreenHideTitle=i};addTab=i=>{const n=this.service.getTabBranch(this.layout,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=i=>{const n=this.service.getTabNodeInfoByNodeName(this.layout,i.nodeName,[]);n!=null&&(this.service.hasWinId(this.layout,i.justId)?this.layout=this.service.activeWinId(this.layout,i.justId):this.layout=this.service.addTabWin(this.layout,n.branch,i.justId,-1),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=i=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);cloneTab=i=>{const n=this.service.getBranchByWinId(this.layout,i.justId);if(n==null)return;const s=this.service.getNodeAtBranch(this.layout,n);let u=0;s?.type==="stack"&&s.active!=null&&(u=ge.indexOf(s.tabs,i.justId)+1),this.layout=this.service.addTabWin(this.layout,n,i.cloneJustId,u),this.lastActiveId=i.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=i=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,i.justId))};removeAllTabs=i=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,i.branch))};activeWin=i=>{this.layout=this.service.activeWinId(this.layout,i.justId),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(ge.indexOf(n.tabs,i)-1+n.tabs.length)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};activeNextWin=()=>{const i=this.lastActiveId;if(i==null)return;const n=this.service.getNodeByWinId(this.layout,i);if(n?.type!=="stack"||n.tabs.length===0)return;const u=(ge.indexOf(n.tabs,i)+1)%n.tabs.length,f=n.tabs[u];this.activeWin({justId:f})};updateResize=i=>{this.layout=this.service.updateSplitSize(this.layout,i.branch,i.size)};moveWin=i=>{i.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,i)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,i)),this.lastActiveId=i.justId,this.lastActiveTm=new Date().getTime()};toggleWin=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s==null||s.node.type!=="split-pixels")return;const u=s.node.primaryHide!==!0,f=!u||s.node.size<10?s.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:f,primaryHide:u}}),p=this.service.updateNode(n,c);p!=null&&this.setLayout(p)};showWin=({nodeName:i,show:n})=>{const s=this.layout,u=this.service.getNodeInfoByNodeName(s,i,[]);if(u!=null&&u.node.type==="split-pixels"&&n===(u.node.size===0)){const f=n?u.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(u.branch,{$merge:{size:f}}),p=this.service.updateNode(s,c);if(p==null)return;this.setLayout(p)}};getSizeByNodeName=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s!=null)return s.node.type==="split-pixels"||s.node.type==="split-percentage"?s.node.size:null};getBranchByJustId=({justId:i})=>{const n=this.layout;return this.service.getBranchByWinId(n,i)};isPrimaryHide=({nodeName:i})=>{const n=this.layout,s=this.service.getNodeInfoByNodeName(n,i,[]);if(s!=null)return s.node.type==="split-pixels"?s.node.primaryHide:null};openWin=({justId:i})=>{this.service.hasWinId(this.layout??null,i)?this.activeWin({justId:i}):this.addTab({justId:i})};openWinByNodeName=({justId:i,nodeName:n})=>{this.service.hasWinId(this.layout??null,i)?this.activeWin({justId:i}):this.addTabByNodeName({justId:i,nodeName:n})};getWinIds=({viewId:i})=>this.service.queryWinIdsByViewId(this.layout??null,i,[]);getWinIdsByBranch=({branch:i})=>this.service.queryWinIdsByStack(this.layout??null,i);getNodeAtBranch=({branch:i})=>this.service.getNodeAtBranch(this.layout??null,i);openWinMenu=({justId:i,nodeName:n})=>{const s=i.viewId,u=this.getWinIds({viewId:s});if(u.length===0)this.openWinByNodeName({justId:i,nodeName:n});else{const f=u.toSorted((c,p)=>(c.dupId??"")<=(p.dupId??"")?-1:1).at(-1);f&&this.openWinByNodeName({justId:f,nodeName:n})}};fullScreenWin=(i,n,s=!1)=>{n?this.setLayout(null):(this.setFullScreenLayoutByBranch(i),this.setFullScreenHideTitle(s))}},ce.JustLayoutStore=Sh([Qt.injectable(),xh(0,Qt.inject(Mt.JustLayoutService))],ce.JustLayoutStore);const Eh=new Qt.ContainerModule(({bind:a})=>{a(Mt.JustLayoutService).to(ce.JustLayoutService).inSingletonScope(),a(Mt.JustLayoutStore).to(ce.JustLayoutStore).inTransientScope(),a(Mt.JustLayoutStoreCacheMap).toConstantValue(new Map),a(Mt.JustLayoutFactory).toFactory(i=>{const n=i.get(Mt.JustLayoutStoreCacheMap);return s=>{if(!n.has(s)){const u=i.get(Mt.JustLayoutStore);n.set(s,u)}return n.get(s)}})}),Nt=a=>{const i=hh.useInjection(Mt.JustLayoutFactory),[n]=k.useState(()=>i(a));return n};var ba={exports:{}};var tu;function Ah(){return tu||(tu=1,(function(a){(function(){var i={}.hasOwnProperty;function n(){for(var f="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(f=u(f,s(p)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return n.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var c="";for(var p in f)i.call(f,p)&&f[p]&&(c=u(c,p));return c}function u(f,c){return c?f?f+" "+c:f+c:f}a.exports?(n.default=n,a.exports=n):window.classNames=n})()})(ba)),ba.exports}var Ih=Ah();const _t=ei(Ih),nu=a=>!!a&&a[0]==="o",ru=dr.unstable_batchedUpdates,pr=(a,i)=>a===!0||!!(a&&a[i]),ct=(a,i)=>typeof a=="function"?a(i):a,Th="_szhsinMenu",Oh=a=>a[Th],ni=(a,i)=>(i&&Object.keys(i).forEach(n=>{const s=a[n],u=i[n];typeof u=="function"&&s?a[n]=(...f)=>{u(...f),s(...f)}:a[n]=u}),a),Ch=a=>{if(typeof a!="string")return{top:0,right:0,bottom:0,left:0};const i=a.trim().split(/\s+/,4).map(parseFloat),n=isNaN(i[0])?0:i[0],s=isNaN(i[1])?n:i[1];return{top:n,right:s,bottom:isNaN(i[2])?n:i[2],left:isNaN(i[3])?s:i[3]}},_a=a=>{for(;a;){if(a=a.parentNode,!a||a===document.body||!a.parentNode)return;const{overflow:i,overflowX:n,overflowY:s}=getComputedStyle(a);if(/auto|scroll|overlay|hidden/.test(i+s+n))return a}};function iu(a,i){return{"aria-disabled":a||void 0,tabIndex:i?0:-1}}function au(a,i){for(let n=0;n<a.length;n++)if(a[n]===i)return n;return-1}const ri=({block:a,element:i,modifiers:n,className:s})=>k.useMemo(()=>{const u=i?`${a}__${i}`:a;let f=u;n&&Object.keys(n).forEach(p=>{const g=n[p];g&&(f+=` ${u}--${g===!0?p:`${p}-${g}`}`)});let c=typeof s=="function"?s(n):s;return typeof c=="string"&&(c=c.trim(),c&&(f+=` ${c}`)),f},[a,i,n,s]),Nh="szh-menu-container",ii="szh-menu",Lh="arrow",Ph="item",ou=k.createContext(),su=k.createContext({}),uu=k.createContext({}),fu=k.createContext({}),Fh=k.createContext({}),wa=k.createContext({}),wt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ce=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),vr=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),gr=Object.freeze({FIRST:"first",LAST:"last"}),kh=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),lu="absolute",Mh="none",Dh="menuitem",Sa={preventScroll:!0},Wh=({className:a,containerRef:i,containerProps:n,children:s,isOpen:u,theming:f,transition:c,onClose:p})=>{const g=pr(c,"item"),y=({key:_})=>{_===wt.ESC&&ct(p,{key:_,reason:vr.CANCEL})},w=_=>{u&&!_.currentTarget.contains(_.relatedTarget)&&ct(p,{reason:vr.BLUR})};return U.jsx("div",{...ni({onKeyDown:y,onBlur:w},n),className:ri({block:Nh,modifiers:k.useMemo(()=>({theme:f,itemTransition:g}),[f,g]),className:a}),style:{position:"absolute",...n?.style},ref:i,children:s})},Bh=()=>{let a,i=0;return{toggle:n=>{n?i++:i--,i=Math.max(i,0)},on:(n,s,u)=>{i?a||(a=setTimeout(()=>{a=0,s()},n)):u?.()},off:()=>{a&&(clearTimeout(a),a=0)}}},Rh=a=>{const[i,n]=k.useState(),u=k.useRef({items:[],hoverIndex:-1,sorted:!1}).current,f=k.useCallback((p,g)=>{const{items:y}=u;if(!p)u.items=[];else if(g)y.push(p);else{const w=y.indexOf(p);w>-1&&(y.splice(w,1),p.contains(document.activeElement)&&(a.current.focus(Sa),n()))}u.hoverIndex=-1,u.sorted=!1},[u,a]),c=k.useCallback((p,g,y)=>{const{items:w,hoverIndex:_}=u,O=()=>{if(u.sorted)return;const A=a.current.querySelectorAll(".szh-menu__item");w.sort((I,M)=>au(A,I)-au(A,M)),u.sorted=!0};let E=-1,x;switch(p){case Ce.RESET:break;case Ce.SET:x=g;break;case Ce.UNSET:x=A=>A===g?void 0:A;break;case Ce.FIRST:O(),E=0,x=w[E];break;case Ce.LAST:O(),E=w.length-1,x=w[E];break;case Ce.SET_INDEX:O(),E=y,x=w[E];break;case Ce.INCREASE:O(),E=_,E<0&&(E=w.indexOf(g)),E++,E>=w.length&&(E=0),x=w[E];break;case Ce.DECREASE:O(),E=_,E<0&&(E=w.indexOf(g)),E--,E<0&&(E=w.length-1),x=w[E];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${p}`)}x||(E=-1),n(x),u.hoverIndex=E},[a,u]);return{hoverItem:i,dispatch:c,updateItems:f}},cu=(a,i)=>Math.round(a)===i?a:i,$h=a=>{const i=a.getBoundingClientRect();return i.width=cu(i.width,a.offsetWidth),i.height=cu(i.height,a.offsetHeight),i},Uh=(a,i,n,s)=>{const u=$h(i),f=a.getBoundingClientRect(),c=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),p=Ch(s),g=x=>x+f.left-c.left-p.left,y=x=>x+f.left+u.width-c.right+p.right,w=x=>x+f.top-c.top-p.top,_=x=>x+f.top+u.height-c.bottom+p.bottom;return{menuRect:u,containerRect:f,getLeftOverflow:g,getRightOverflow:y,getTopOverflow:w,getBottomOverflow:_,confineHorizontally:x=>{let A=g(x);if(A<0)x-=A;else{const I=y(x);I>0&&(x-=I,A=g(x),A<0&&(x-=A))}return x},confineVertically:x=>{let A=w(x);if(A<0)x-=A;else{const I=_(x);I>0&&(x-=I,A=w(x),A<0&&(x-=A))}return x}}},zh=({arrowRef:a,menuY:i,anchorRect:n,containerRect:s,menuRect:u})=>{let f=n.top-s.top-i+n.height/2;const c=a.current.offsetHeight*1.25;return f=Math.max(c,f),f=Math.min(f,u.height-c),f},Hh=({anchorRect:a,containerRect:i,menuRect:n,placeLeftorRightY:s,placeLeftX:u,placeRightX:f,getLeftOverflow:c,getRightOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:w,arrow:_,direction:O,position:E})=>{let x=O,A=s;E!=="initial"&&(A=y(A),E==="anchor"&&(A=Math.min(A,a.bottom-i.top),A=Math.max(A,a.top-i.top-n.height)));let I,M,W;return x==="left"?(I=u,E!=="initial"&&(M=c(I),M<0&&(W=p(f),(W<=0||-M>W)&&(I=f,x="right")))):(I=f,E!=="initial"&&(W=p(I),W>0&&(M=c(u),(M>=0||-M<W)&&(I=u,x="left")))),E==="auto"&&(I=g(I)),{arrowY:_?zh({menuY:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:I,y:A,computedDirection:x}},qh=({arrowRef:a,menuX:i,anchorRect:n,containerRect:s,menuRect:u})=>{let f=n.left-s.left-i+n.width/2;const c=a.current.offsetWidth*1.25;return f=Math.max(c,f),f=Math.min(f,u.width-c),f},jh=({anchorRect:a,containerRect:i,menuRect:n,placeToporBottomX:s,placeTopY:u,placeBottomY:f,getTopOverflow:c,getBottomOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:w,arrow:_,direction:O,position:E})=>{let x=O==="top"?"top":"bottom",A=s;E!=="initial"&&(A=g(A),E==="anchor"&&(A=Math.min(A,a.right-i.left),A=Math.max(A,a.left-i.left-n.width)));let I,M,W;return x==="top"?(I=u,E!=="initial"&&(M=c(I),M<0&&(W=p(f),(W<=0||-M>W)&&(I=f,x="bottom")))):(I=f,E!=="initial"&&(W=p(I),W>0&&(M=c(u),(M>=0||-M<W)&&(I=u,x="top")))),E==="auto"&&(I=y(I)),{arrowX:_?qh({menuX:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:A,y:I,computedDirection:x}},Gh=({arrow:a,align:i,direction:n,gap:s,shift:u,position:f,anchorRect:c,arrowRef:p,positionHelpers:g})=>{const{menuRect:y,containerRect:w}=g,_=n==="left"||n==="right";let O=_?s:u,E=_?u:s;if(a){const $=p.current;_?O+=$.offsetWidth:E+=$.offsetHeight}const x=c.left-w.left-y.width-O,A=c.right-w.left+O,I=c.top-w.top-y.height-E,M=c.bottom-w.top+E;let W,R;i==="end"?(W=c.right-w.left-y.width,R=c.bottom-w.top-y.height):i==="center"?(W=c.left-w.left-(y.width-c.width)/2,R=c.top-w.top-(y.height-c.height)/2):(W=c.left-w.left,R=c.top-w.top),W+=O,R+=E;const Z={...g,anchorRect:c,placeLeftX:x,placeRightX:A,placeLeftorRightY:R,placeTopY:I,placeBottomY:M,placeToporBottomX:W,arrowRef:p,arrow:a,direction:n,position:f};switch(n){case"left":case"right":return Hh(Z);default:return jh(Z)}},ai=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?k.useLayoutEffect:k.useEffect;function du(a,i){typeof a=="function"?a(i):a.current=i}const xa=(a,i)=>k.useMemo(()=>a?i?n=>{du(a,n),du(i,n)}:a:i,[a,i]),hu=-9999,Yh=({ariaLabel:a,menuClassName:i,menuStyle:n,arrow:s,arrowProps:u={},anchorPoint:f,anchorRef:c,containerRef:p,containerProps:g,externalRef:y,parentScrollingRef:w,align:_="start",direction:O="bottom",position:E="auto",overflow:x="visible",setDownOverflow:A,repositionFlag:I,captureFocus:M=!0,state:W,endTransition:R,isDisabled:Z,menuItemFocus:$,gap:de=0,shift:C=0,children:L,onClose:q,focusProps:ne,...Y})=>{const[ee,J]=k.useState({x:hu,y:hu}),[We,Ye]=k.useState({}),[Je,Et]=k.useState(),[Ue,ko]=k.useState(O),[At]=k.useState(Bh),[nt,Ei]=k.useReducer(fe=>fe+1,1),{transition:Ai,boundingBoxRef:Tr,boundingBoxPadding:zt,rootMenuRef:_n,rootAnchorRef:Or,scrollNodesRef:wn,reposition:an,viewScroll:Cr,submenuCloseDelay:qn}=k.useContext(wa),{submenuCtx:jn,reposSubmenu:Ii=I}=k.useContext(uu),Te=k.useRef(),on=k.useRef(),Ti=k.useRef(!1),{hoverItem:rt,dispatch:ze,updateItems:Gn}=Rh(Te),Oe=nu(W),Ke=pr(Ai,"open"),sn=pr(Ai,"close"),Be=wn.current,Mo=fe=>{switch(fe.key){case wt.HOME:ze(Ce.FIRST);break;case wt.END:ze(Ce.LAST);break;case wt.UP:ze(Ce.DECREASE,rt);break;case wt.DOWN:ze(Ce.INCREASE,rt);break;case wt.SPACE:fe.target&&fe.target.className.indexOf(ii)!==-1&&fe.preventDefault();return;default:return}fe.preventDefault(),fe.stopPropagation()},Sn=()=>{W==="closing"&&Et(),ct(R)},Do=fe=>{fe.stopPropagation(),At.on(qn,()=>{ze(Ce.RESET),Te.current.focus(Sa)})},xn=fe=>{fe.target===fe.currentTarget&&At.off()},He=k.useCallback(fe=>{const Pe=Te.current,Xe=p.current;if(!Pe||!Xe)return;const it=c?c.current?.getBoundingClientRect():f?{left:f.x,right:f.x,top:f.y,bottom:f.y,width:0,height:0}:null;if(!it){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}Be.menu||(Be.menu=(Tr?Tr.current:_a(_n.current))||window);const Ee=Uh(Xe,Pe,Be.menu,zt);let{arrowX:Kn,arrowY:Wo,x:Bo,y:In,computedDirection:Ro}=Gh({arrow:s,align:_,direction:O,gap:de,shift:C,position:E,anchorRect:it,arrowRef:on,positionHelpers:Ee});const{menuRect:$o}=Ee,Ci=$o.height;if(!fe&&x!=="visible"){const{getTopOverflow:Mr,getBottomOverflow:Uo}=Ee;let Ht,Dr;const Wr=Uo(In);if(Wr>0)Ht=Ci-Wr,Dr=Wr;else{const Xn=Mr(In);Xn<0&&(Ht=Ci+Xn,Dr=0-Xn,Ht>=0&&(In-=Xn))}Ht>=0&&Et({height:Ht,overflowAmt:Dr})}s&&Ye({x:Kn,y:Wo}),J({x:Bo,y:In}),ko(Ro)},[s,_,zt,O,de,C,E,x,f,c,p,Tr,_n,Be]);ai(()=>{Oe&&(He(),Ti.current&&Ei()),Ti.current=Oe},[Oe,He,Ii]),ai(()=>{Je&&!A&&(Te.current.scrollTop=0)},[Je,A]),ai(()=>Gn,[Gn]),k.useEffect(()=>{let{menu:fe}=Be;if(!Oe||!fe)return;if(fe=fe.addEventListener?fe:window,!Be.anchors){Be.anchors=[];let Ee=_a(Or&&Or.current);for(;Ee&&Ee!==fe;)Be.anchors.push(Ee),Ee=_a(Ee)}let Pe=Cr;if(Be.anchors.length&&Pe==="initial"&&(Pe="auto"),Pe==="initial")return;const Xe=()=>{Pe==="auto"?ru(()=>He(!0)):ct(q,{reason:vr.SCROLL})},it=Be.anchors.concat(Cr!=="initial"?fe:[]);return it.forEach(Ee=>Ee.addEventListener("scroll",Xe)),()=>it.forEach(Ee=>Ee.removeEventListener("scroll",Xe))},[Or,Be,Oe,q,Cr,He]);const Yn=!!Je&&Je.overflowAmt>0;k.useEffect(()=>{if(Yn||!Oe||!w)return;const fe=()=>ru(He),Pe=w.current;return Pe.addEventListener("scroll",fe),()=>Pe.removeEventListener("scroll",fe)},[Oe,Yn,w,He]),k.useEffect(()=>{if(!Oe||typeof ResizeObserver!="function"||an==="initial")return;const fe=[],Pe=new ResizeObserver(Ee=>Ee.forEach(({target:Kn})=>{fe.indexOf(Kn)<0?fe.push(Kn):dr.flushSync(()=>{He(),Ei()})})),Xe={box:"border-box"};Pe.observe(Te.current,Xe);const it=c?.current;return it&&Pe.observe(it,Xe),()=>Pe.disconnect()},[Oe,an,c,He]),k.useEffect(()=>{if(!Oe){ze(Ce.RESET),sn||Et();return}const{position:fe,alwaysUpdate:Pe}=$||{},Xe=()=>{fe===gr.FIRST?ze(Ce.FIRST):fe===gr.LAST?ze(Ce.LAST):fe>=-1&&ze(Ce.SET_INDEX,void 0,fe)};if(Pe)Xe();else if(M){const it=setTimeout(()=>{const Ee=Te.current;Ee&&!Ee.contains(document.activeElement)&&(Ee.focus(Sa),Xe())},Ke?170:100);return()=>clearTimeout(it)}},[Oe,Ke,sn,M,$,ze]);const Nr=k.useMemo(()=>({isParentOpen:Oe,submenuCtx:At,dispatch:ze,updateItems:Gn}),[Oe,At,ze,Gn]);let En,An;Je&&(A?An=Je.overflowAmt:En=Je.height);const Lr=k.useMemo(()=>({reposSubmenu:nt,submenuCtx:At,overflow:x,overflowAmt:An,parentMenuRef:Te,parentDir:Ue}),[nt,At,x,An,Ue]),Pr=En>=0?{maxHeight:En,overflow:x}:void 0,Jn=k.useMemo(()=>({state:W,align:_,dir:Ue}),[W,_,Ue]),Fr=k.useMemo(()=>({dir:Ue}),[Ue]),kr=ri({block:ii,element:Lh,modifiers:Fr,className:u.className}),Oi=U.jsxs("ul",{role:"menu","aria-label":a,...iu(Z),...ni({onPointerEnter:jn?.off,onPointerMove:Do,onPointerLeave:xn,onKeyDown:Mo,onAnimationEnd:Sn},Y),ref:xa(y,Te),className:ri({block:ii,modifiers:Jn,className:i}),style:{...n,...Pr,margin:0,display:W==="closed"?"none":void 0,position:lu,left:ee.x,top:ee.y},children:[s&&U.jsx("li",{"aria-hidden":!0,...u,className:kr,style:{display:"block",position:lu,left:We.x,top:We.y,...u.style},ref:on}),U.jsx(uu.Provider,{value:Lr,children:U.jsx(su.Provider,{value:Nr,children:U.jsx(ou.Provider,{value:rt,children:ct(L,Jn)})})})]});return g?U.jsx(Wh,{...g,isOpen:Oe,children:Oi}):Oi},pu=k.forwardRef(function({"aria-label":i,className:n,containerProps:s,initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,reposition:w="auto",submenuOpenDelay:_=300,submenuCloseDelay:O=150,viewScroll:E="initial",portal:x,theming:A,onItemClick:I,...M},W){const R=k.useRef(null),Z=k.useRef({}),{anchorRef:$,state:de,onClose:C}=M,L=k.useMemo(()=>({initialMounted:u,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:g,boundingBoxPadding:y,rootMenuRef:R,rootAnchorRef:$,scrollNodesRef:Z,reposition:w,viewScroll:E,submenuOpenDelay:_,submenuCloseDelay:O}),[u,f,c,p,$,g,y,w,E,_,O]),q=k.useMemo(()=>({handleClick(Y,ee){Y.stopPropagation||ct(I,Y);let J=Y.keepOpen;J===void 0&&(J=ee&&Y.key===wt.SPACE),J||ct(C,{value:Y.value,key:Y.key,reason:vr.CLICK})},handleClose(Y){ct(C,{key:Y,reason:vr.CLICK})}}),[I,C]);if(!de)return null;const ne=U.jsx(wa.Provider,{value:L,children:U.jsx(fu.Provider,{value:q,children:U.jsx(Yh,{...M,ariaLabel:i||"Menu",externalRef:W,containerRef:R,containerProps:{className:n,containerRef:R,containerProps:s,theming:A,transition:c,onClose:C}})})});return x===!0&&typeof document<"u"?dr.createPortal(ne,document.body):x?x.target?dr.createPortal(ne,x.target):x.stablePosition?null:ne:ne}),Ea=0,Aa=1,oi=2,si=3,ui=4,Jh=5,vu=6,Kh=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],gu=a=>({_s:a,status:Kh[a],isEnter:a<si,isMounted:a!==vu,isResolved:a===oi||a>ui}),Ia=a=>a?vu:Jh,Xh=(a,i)=>{switch(a){case Aa:case Ea:return oi;case ui:case si:return Ia(i)}},Vh=a=>typeof a=="object"?[a.enter,a.exit]:[a,a],Ta=setTimeout,Zh=(a,i)=>Ta(()=>{isNaN(document.body.offsetTop)||a(i+1)},0),mu=(a,i,n,s,u)=>{clearTimeout(s.current);const f=gu(a);i(f),n.current=f,u&&u({current:f})},Qh=({enter:a=!0,exit:i=!0,preEnter:n,preExit:s,timeout:u,initialEntered:f,mountOnEnter:c,unmountOnExit:p,onStateChange:g}={})=>{const[y,w]=k.useState(()=>gu(f?oi:Ia(c))),_=k.useRef(y),O=k.useRef(0),[E,x]=Vh(u),A=k.useCallback(()=>{const I=Xh(_.current._s,p);I&&mu(I,w,_,O,g)},[g,p]);return[y,k.useCallback(I=>{const M=R=>{switch(mu(R,w,_,O,g),R){case Aa:E>=0&&(O.current=Ta(A,E));break;case ui:x>=0&&(O.current=Ta(A,x));break;case Ea:case si:O.current=Zh(M,R);break}},W=_.current.isEnter;typeof I!="boolean"&&(I=!W),I?!W&&M(a?n?Ea:Aa:oi):W&&M(i?s?si:ui:Ia(p))},[A,g,a,i,n,s,E,x,p]),A]},yu=({initialOpen:a,initialMounted:i,unmountOnClose:n,transition:s,transitionTimeout:u=500,onMenuChange:f}={})=>{const c=pr(s,"open"),p=pr(s,"close"),[{status:g},y,w]=Qh({initialEntered:a,mountOnEnter:!i,unmountOnExit:n,timeout:u,enter:c,exit:p,onStateChange:k.useCallback(({current:{isEnter:_,isResolved:O}})=>{!f||_&&c&&O||!_&&p&&O||f({open:_})},[f,c,p])});return[{state:kh[g],endTransition:w},y]},ep=a=>{const[i,n]=yu(a),[s,u]=k.useState(),f=(c,p)=>{u({position:c,alwaysUpdate:p}),n(!0)};return[{menuItemFocus:s,...i},n,f]},tp=(a,i)=>{if(process.env.NODE_ENV!=="production"&&typeof i!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=k.useState({});return{onMouseDown:()=>{n.v=a&&a!=="closed"},onClick:s=>n.v?n.v=!1:i(!0,s)}},np=parseInt(k.version)<19,bu=k.forwardRef(function({"aria-label":i,captureFocus:n,initialOpen:s,menuButton:u,instanceRef:f,onMenuChange:c,...p},g){const[y,w,_]=ep({...p,onMenuChange:c}),{state:O}=y,E=nu(O),x=k.useRef(null),A=tp(O,($,de)=>_(de.detail?void 0:gr.FIRST)),I=k.useCallback($=>{w(!1),$.key&&x.current.focus()},[w]),M=$=>{switch($.key){case wt.UP:_(gr.LAST);break;case wt.DOWN:_(gr.FIRST);break;default:return}$.preventDefault()},W=ct(u,{open:E});if(!W||!W.type)throw new Error("Menu requires a menuButton prop.");const R={...ni({onKeyDown:M,...A},W.props),ref:xa(np?W.ref:W.props.ref,x)};Oh(W.type)==="MenuButton"&&(R.isOpen=E);const Z=k.cloneElement(W,R);return k.useImperativeHandle(f,()=>({openMenu:_,closeMenu:()=>w(!1)})),U.jsxs(k.Fragment,{children:[Z,U.jsx(pu,{...p,...y,"aria-label":i||(typeof W.props.children=="string"?W.props.children:"Menu"),anchorRef:x,ref:g,onClose:I})]})}),rp=(a,i)=>{const n=k.memo(i),s=k.forwardRef((u,f)=>{const c=k.useRef(null);return U.jsx(n,{...u,itemRef:c,externalRef:f,isHovering:k.useContext(ou)===c.current})});return s.displayName=`WithHovering(${a})`,s},ip=a=>{const[i,n]=k.useState(!1);return k.useEffect(()=>{!a&&n(!1)},[a]),[i,()=>!i&&n(!0),()=>n(!1)]},ap=(a,i,n)=>{ai(()=>{if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${i.current.outerHTML}`);if(a)return;const s=i.current;return n(s,!0),()=>{n(s)}},[a,i,n])},op=(a,i,n,s)=>{const[u,f,c]=ip(n),{submenuCloseDelay:p}=k.useContext(wa),{isParentOpen:g,submenuCtx:y,dispatch:w,updateItems:_}=k.useContext(su),O=()=>{!n&&!s&&w(Ce.SET,a.current)},E=()=>{!s&&w(Ce.UNSET,a.current)},x=M=>{n&&!M.currentTarget.contains(M.relatedTarget)&&E()},A=M=>{s||(M.stopPropagation(),f(),y.on(p,O,O))},I=(M,W)=>{c(),y.off(),!W&&E()};return ap(s,a,_),k.useEffect(()=>{n&&g&&i.current&&i.current.focus()},[i,n,g]),{mouseOver:u,setHover:O,onBlur:x,onPointerMove:A,onPointerLeave:I}},fi=rp("MenuItem",function({className:i,value:n,href:s,type:u,checked:f,disabled:c,children:p,onClick:g,isHovering:y,itemRef:w,externalRef:_,...O}){const E=!!c,{mouseOver:x,setHover:A,...I}=op(w,w,y,E),M=k.useContext(fu),W=k.useContext(Fh),R=u==="radio",Z=u==="checkbox",$=!!s&&!E&&!R&&!Z,de=R?W.value===n:Z?!!f:!1,C=ee=>{if(E){ee.stopPropagation(),ee.preventDefault();return}const J={value:n,syntheticEvent:ee};ee.key!==void 0&&(J.key=ee.key),Z&&(J.checked=!de),R&&(J.name=W.name),ct(g,J),R&&ct(W.onRadioChange,J),M.handleClick(J,Z||R)},L=ee=>{if(y)switch(ee.key){case wt.ENTER:ee.preventDefault();case wt.SPACE:$?w.current.click():C(ee)}},q=k.useMemo(()=>({type:u,disabled:E,hover:x||y,checked:de,anchor:$}),[u,E,x,y,de,$]),ne=ni({...I,onPointerDown:A,onKeyDown:L,onClick:C},O),Y={role:R?"menuitemradio":Z?"menuitemcheckbox":Dh,"aria-checked":R||Z?de:void 0,...iu(E,y),...ne,ref:xa(_,w),className:ri({block:ii,element:Ph,modifiers:q,className:i}),children:k.useMemo(()=>ct(p,q),[p,q])};return $?U.jsx("li",{role:Mh,children:U.jsx("a",{href:s,...Y})}):U.jsx("li",{...Y})});if(!k.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!cr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function sp(a){a()}function up(a){a||(a=sp,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),cr.configure({reactionScheduler:a})}function fp(a){return cr.getDependencyTree(a)}var lp=1e4,cp=1e4,dp=(function(){function a(i){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(s){s===void 0&&(s=lp),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var u=Date.now();n.registrations.forEach(function(f,c){u-f.registeredAt>=s&&(n.finalize(f.value),n.registrations.delete(c))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(a.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,n,s){this.registrations.set(s,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(a.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(i){this.registrations.delete(i)}}),Object.defineProperty(a.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,cp))}}),a})(),hp=typeof FinalizationRegistry<"u"?FinalizationRegistry:dp,Oa=new hp(function(a){var i;(i=a.reaction)===null||i===void 0||i.dispose(),a.reaction=null}),li={exports:{}},Ca={};var _u;function pp(){if(_u)return Ca;_u=1;var a=k;function i(_,O){return _===O&&(_!==0||1/_===1/O)||_!==_&&O!==O}var n=typeof Object.is=="function"?Object.is:i,s=a.useState,u=a.useEffect,f=a.useLayoutEffect,c=a.useDebugValue;function p(_,O){var E=O(),x=s({inst:{value:E,getSnapshot:O}}),A=x[0].inst,I=x[1];return f(function(){A.value=E,A.getSnapshot=O,g(A)&&I({inst:A})},[_,E,O]),u(function(){return g(A)&&I({inst:A}),_(function(){g(A)&&I({inst:A})})},[_]),c(E),E}function g(_){var O=_.getSnapshot;_=_.value;try{var E=O();return!n(_,E)}catch{return!0}}function y(_,O){return O()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Ca.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:w,Ca}var Na={};var wu;function vp(){return wu||(wu=1,process.env.NODE_ENV!=="production"&&(function(){function a(E,x){return E===x&&(E!==0||1/E===1/x)||E!==E&&x!==x}function i(E,x){w||u.startTransition===void 0||(w=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var A=x();if(!_){var I=x();f(A,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),_=!0)}I=c({inst:{value:A,getSnapshot:x}});var M=I[0].inst,W=I[1];return g(function(){M.value=A,M.getSnapshot=x,n(M)&&W({inst:M})},[E,A,x]),p(function(){return n(M)&&W({inst:M}),E(function(){n(M)&&W({inst:M})})},[E]),y(A),A}function n(E){var x=E.getSnapshot;E=E.value;try{var A=x();return!f(E,A)}catch{return!0}}function s(E,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=k,f=typeof Object.is=="function"?Object.is:a,c=u.useState,p=u.useEffect,g=u.useLayoutEffect,y=u.useDebugValue,w=!1,_=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:i;Na.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Na}var Su;function gp(){return Su||(Su=1,process.env.NODE_ENV==="production"?li.exports=pp():li.exports=vp()),li.exports}var mp=gp();function xu(a){a.reaction=new cr.Reaction("observer".concat(a.name),function(){var i;a.stateVersion=Symbol(),(i=a.onStoreChange)===null||i===void 0||i.call(a)})}function yp(a,i){i===void 0&&(i="observed");var n=k.useRef(null);if(!n.current){var s={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(p){return Oa.unregister(s),s.onStoreChange=p,s.reaction||(xu(s),s.stateVersion=Symbol()),function(){var g;s.onStoreChange=null,(g=s.reaction)===null||g===void 0||g.dispose(),s.reaction=null}},getSnapshot:function(){return s.stateVersion}};n.current=s}var u=n.current;u.reaction||(xu(u),Oa.register(n,u,u)),k.useDebugValue(u.reaction,fp),mp.useSyncExternalStore(u.subscribe,u.getSnapshot,u.getSnapshot);var f,c;if(u.reaction.track(function(){try{f=a()}catch(p){c=p}}),c)throw c;return f}var La,Pa,bp=!0,Eu=!0,Au=typeof Symbol=="function"&&Symbol.for,_p=(Pa=(La=Object.getOwnPropertyDescriptor(function(){},"name"))===null||La===void 0?void 0:La.configurable)!==null&&Pa!==void 0?Pa:!1,Iu=Au?Symbol.for("react.forward_ref"):typeof k.forwardRef=="function"&&k.forwardRef(function(a){return null}).$$typeof,Tu=Au?Symbol.for("react.memo"):typeof k.memo=="function"&&k.memo(function(a){return null}).$$typeof;function Dt(a,i){var n;if(process.env.NODE_ENV,Tu&&a.$$typeof===Tu)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var s=(n=void 0)!==null&&n!==void 0?n:!1,u=a,f=a.displayName||a.name;if(Iu&&a.$$typeof===Iu&&(s=!0,u=a.render,typeof u!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(p,g){return yp(function(){return u(p,g)},f)};return c.displayName=a.displayName,_p&&Object.defineProperty(c,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(c.contextTypes=a.contextTypes,process.env.NODE_ENV!=="production"&&Eu&&(Eu=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),s&&(c=k.forwardRef(c)),c=k.memo(c),Sp(a,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var p,g;throw new Error("[mobx-react-lite] `".concat(this.displayName||((p=this.type)===null||p===void 0?void 0:p.displayName)||((g=this.type)===null||g===void 0?void 0:g.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var wp={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Sp(a,i){Object.keys(a).forEach(function(n){wp[n]||Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(a,n))})}process.env.NODE_ENV;var Fa;up(dr.unstable_batchedUpdates),Fa=Oa.finalizeAllImmediately;function ka(a,i){(i==null||i>a.length)&&(i=a.length);for(var n=0,s=Array(i);n<i;n++)s[n]=a[n];return s}function xp(a){if(Array.isArray(a))return a}function Ep(a){if(Array.isArray(a))return ka(a)}function Ap(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function Ip(a,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,Cu(s.key),s)}}function Tp(a,i,n){return i&&Ip(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function ci(a,i){var n=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!n){if(Array.isArray(a)||(n=Ma(a))||i){n&&(a=n);var s=0,u=function(){};return{s:u,n:function(){return s>=a.length?{done:!0}:{done:!1,value:a[s++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
21
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,c=!0,p=!1;return{s:function(){n=n.call(a)},n:function(){var g=n.next();return c=g.done,g},e:function(g){p=!0,f=g},f:function(){try{c||n.return==null||n.return()}finally{if(p)throw f}}}}function re(a,i,n){return(i=Cu(i))in a?Object.defineProperty(a,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[i]=n,a}function Op(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Cp(a,i){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var s,u,f,c,p=[],g=!0,y=!1;try{if(f=(n=n.call(a)).next,i===0){if(Object(n)!==n)return;g=!1}else for(;!(g=(s=f.call(n)).done)&&(p.push(s.value),p.length!==i);g=!0);}catch(w){y=!0,u=w}finally{try{if(!g&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(y)throw u}}return p}}function Np(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
22
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ou(a,i){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),n.push.apply(n,s)}return n}function B(a){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?Ou(Object(n),!0).forEach(function(s){re(a,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(n,s))})}return a}function di(a,i){return xp(a)||Cp(a,i)||ka(a,i)||Np()}function St(a){return Ep(a)||Op(a)||ka(a)||Lp()}function Pp(a,i){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var s=n.call(a,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Cu(a){var i=Pp(a,"string");return typeof i=="symbol"?i:i+""}function hi(a){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},hi(a)}function ka(a,i){if(a){if(typeof a=="string")return Ma(a,i);var n={}.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(a,i):void 0}}var Nu=function(){},Da={},Lu={},Pu=null,Fu={mark:Nu,measure:Nu};try{typeof window<"u"&&(Da=window),typeof document<"u"&&(Lu=document),typeof MutationObserver<"u"&&(Pu=MutationObserver),typeof performance<"u"&&(Fu=performance)}catch{}var Fp=Da.navigator||{},Mu=Fp.userAgent,ku=Mu===void 0?"":Mu,tn=Da,be=Lu,Du=Pu,pi=Fu;tn.document;var Wt=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",Wu=~ku.indexOf("MSIE")||~ku.indexOf("Trident/"),Wa,Mp=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,kp=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Bu={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Dp={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ru=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Me="classic",mr="duotone",$u="sharp",Uu="sharp-duotone",zu="chisel",Hu="etch",qu="jelly",ju="jelly-duo",Gu="jelly-fill",Yu="notdog",Ju="notdog-duo",Ku="slab",Xu="slab-press",Vu="thumbprint",Zu="utility",Qu="utility-duo",ef="utility-fill",tf="whiteboard",Wp="Classic",Bp="Duotone",Rp="Sharp",$p="Sharp Duotone",Up="Chisel",zp="Etch",Hp="Jelly",qp="Jelly Duo",jp="Jelly Fill",Gp="Notdog",Yp="Notdog Duo",Jp="Slab",Kp="Slab Press",Xp="Thumbprint",Vp="Utility",Zp="Utility Duo",Qp="Utility Fill",ev="Whiteboard",nf=[Me,mr,$u,Uu,zu,Hu,qu,ju,Gu,Yu,Ju,Ku,Xu,Vu,Zu,Qu,ef,tf];Wa={},re(re(re(re(re(re(re(re(re(re(Wa,Me,Wp),mr,Bp),$u,Rp),Uu,$p),zu,Up),Hu,zp),qu,Hp),ju,qp),Gu,jp),Yu,Gp),re(re(re(re(re(re(re(re(Wa,Ju,Yp),Ku,Jp),Xu,Kp),Vu,Xp),Zu,Vp),Qu,Zp),ef,Qp),tf,ev);var tv={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},nv={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},rv=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),iv={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},rf=["fak","fa-kit","fakd","fa-kit-duotone"],af={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},av=["kit"],ov="kit",sv="kit-duotone",uv="Kit",fv="Kit Duotone";re(re({},ov,uv),sv,fv);var lv={kit:{"fa-kit":"fak"}},cv={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},dv={kit:{fak:"fa-kit"}},of={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ba,vi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},hv=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],pv="classic",vv="duotone",gv="sharp",mv="sharp-duotone",yv="chisel",bv="etch",_v="jelly",wv="jelly-duo",Sv="jelly-fill",xv="notdog",Ev="notdog-duo",Av="slab",Iv="slab-press",Tv="thumbprint",Ov="utility",Cv="utility-duo",Nv="utility-fill",Lv="whiteboard",Pv="Classic",Fv="Duotone",Mv="Sharp",kv="Sharp Duotone",Dv="Chisel",Wv="Etch",Bv="Jelly",Rv="Jelly Duo",$v="Jelly Fill",Uv="Notdog",zv="Notdog Duo",Hv="Slab",qv="Slab Press",jv="Thumbprint",Gv="Utility",Yv="Utility Duo",Jv="Utility Fill",Kv="Whiteboard";Ba={},re(re(re(re(re(re(re(re(re(re(Ba,pv,Pv),vv,Fv),gv,Mv),mv,kv),yv,Dv),bv,Wv),_v,Bv),wv,Rv),Sv,$v),xv,Uv),re(re(re(re(re(re(re(re(Ba,Ev,zv),Av,Hv),Iv,qv),Tv,jv),Ov,Gv),Cv,Yv),Nv,Jv),Lv,Kv);var Xv="kit",Vv="kit-duotone",Zv="Kit",Qv="Kit Duotone";re(re({},Xv,Zv),Vv,Qv);var eg={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},tg={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Ra={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},ng=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],sf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(hv,ng),rg=["solid","regular","light","thin","duotone","brands","semibold"],uf=[1,2,3,4,5,6,7,8,9,10],ig=uf.concat([11,12,13,14,15,16,17,18,19,20]),ag=["aw","fw","pull-left","pull-right"],og=[].concat(St(Object.keys(tg)),rg,ag,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",vi.GROUP,vi.SWAP_OPACITY,vi.PRIMARY,vi.SECONDARY]).concat(uf.map(function(a){return"".concat(a,"x")})).concat(ig.map(function(a){return"w-".concat(a)})),sg={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Bt="___FONT_AWESOME___",$a=16,ff="fa",lf="svg-inline--fa",mn="data-fa-i2svg",Ua="data-fa-pseudo-element",ug="data-fa-pseudo-element-pending",za="data-prefix",Ha="data-icon",cf="fontawesome-i2svg",fg="async",lg=["HTML","HEAD","STYLE","SCRIPT"],df=["::before","::after",":before",":after"],hf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function yr(a){return new Proxy(a,{get:function(n,s){return s in n?n[s]:n[Me]}})}var pf=B({},Bu);pf[Me]=B(B(B(B({},{"fa-duotone":"duotone"}),Bu[Me]),af.kit),af["kit-duotone"]);var cg=yr(pf),qa=B({},iv);qa[Me]=B(B(B(B({},{duotone:"fad"}),qa[Me]),of.kit),of["kit-duotone"]);var vf=yr(qa),ja=B({},Ra);ja[Me]=B(B({},ja[Me]),dv.kit);var Ga=yr(ja),Ya=B({},eg);Ya[Me]=B(B({},Ya[Me]),lv.kit),yr(Ya);var dg=Mp,gf="fa-layers-text",hg=kp,pg=B({},tv);yr(pg);var vg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ja=Dp,gg=[].concat(St(av),St(og)),br=tn.FontAwesomeConfig||{};function mg(a){var i=be.querySelector("script["+a+"]");if(i)return i.getAttribute(a)}function yg(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(be&&typeof be.querySelector=="function"){var bg=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];bg.forEach(function(a){var i=di(a,2),n=i[0],s=i[1],u=yg(mg(n));u!=null&&(br[s]=u)})}var mf={styleDefault:"solid",familyDefault:Me,cssPrefix:ff,replacementClass:lf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};br.familyPrefix&&(br.cssPrefix=br.familyPrefix);var Wn=B(B({},mf),br);Wn.autoReplaceSvg||(Wn.observeMutations=!1);var G={};Object.keys(mf).forEach(function(a){Object.defineProperty(G,a,{enumerable:!0,set:function(n){Wn[a]=n,_r.forEach(function(s){return s(G)})},get:function(){return Wn[a]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(i){Wn.cssPrefix=i,_r.forEach(function(n){return n(G)})},get:function(){return Wn.cssPrefix}}),tn.FontAwesomeConfig=G;var _r=[];function _g(a){return _r.push(a),function(){_r.splice(_r.indexOf(a),1)}}var Bn=$a,Lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function wg(a){if(!(!a||!Wt)){var i=be.createElement("style");i.setAttribute("type","text/css"),i.innerHTML=a;for(var n=be.head.childNodes,s=null,u=n.length-1;u>-1;u--){var f=n[u],c=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(s=f)}return be.head.insertBefore(i,s),a}}var Sg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yf(){for(var a=12,i="";a-- >0;)i+=Sg[Math.random()*62|0];return i}function Rn(a){for(var i=[],n=(a||[]).length>>>0;n--;)i[n]=a[n];return i}function Ka(a){return a.classList?Rn(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(i){return i})}function bf(a){return"".concat(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xg(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,'="').concat(bf(a[n]),'" ')},"").trim()}function gi(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,": ").concat(a[n].trim(),";")},"")}function Xa(a){return a.size!==Lt.size||a.x!==Lt.x||a.y!==Lt.y||a.rotate!==Lt.rotate||a.flipX||a.flipY}function Eg(a){var i=a.transform,n=a.containerWidth,s=a.iconWidth,u={transform:"translate(".concat(n/2," 256)")},f="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(f," ").concat(c," ").concat(p)},y={transform:"translate(".concat(s/2*-1," -256)")};return{outer:u,inner:g,path:y}}function Ag(a){var i=a.transform,n=a.width,s=n===void 0?$a:n,u=a.height,f=u===void 0?$a:u,c="";return Wu?c+="translate(".concat(i.x/Bn-s/2,"em, ").concat(i.y/Bn-f/2,"em) "):c+="translate(calc(-50% + ".concat(i.x/Bn,"em), calc(-50% + ").concat(i.y/Bn,"em)) "),c+="scale(".concat(i.size/Bn*(i.flipX?-1:1),", ").concat(i.size/Bn*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var Ig=`:root, :host {
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ou(a,i){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),n.push.apply(n,s)}return n}function B(a){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?Ou(Object(n),!0).forEach(function(s){re(a,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(n,s))})}return a}function di(a,i){return xp(a)||Cp(a,i)||Ma(a,i)||Np()}function St(a){return Ep(a)||Op(a)||Ma(a)||Lp()}function Pp(a,i){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var s=n.call(a,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Cu(a){var i=Pp(a,"string");return typeof i=="symbol"?i:i+""}function hi(a){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},hi(a)}function Ma(a,i){if(a){if(typeof a=="string")return ka(a,i);var n={}.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(a,i):void 0}}var Nu=function(){},Da={},Lu={},Pu=null,Fu={mark:Nu,measure:Nu};try{typeof window<"u"&&(Da=window),typeof document<"u"&&(Lu=document),typeof MutationObserver<"u"&&(Pu=MutationObserver),typeof performance<"u"&&(Fu=performance)}catch{}var Fp=Da.navigator||{},ku=Fp.userAgent,Mu=ku===void 0?"":ku,tn=Da,be=Lu,Du=Pu,pi=Fu;tn.document;var Wt=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",Wu=~Mu.indexOf("MSIE")||~Mu.indexOf("Trident/"),Wa,kp=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Mp=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Bu={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Dp={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ru=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],ke="classic",mr="duotone",$u="sharp",Uu="sharp-duotone",zu="chisel",Hu="etch",qu="jelly",ju="jelly-duo",Gu="jelly-fill",Yu="notdog",Ju="notdog-duo",Ku="slab",Xu="slab-press",Vu="thumbprint",Zu="utility",Qu="utility-duo",ef="utility-fill",tf="whiteboard",Wp="Classic",Bp="Duotone",Rp="Sharp",$p="Sharp Duotone",Up="Chisel",zp="Etch",Hp="Jelly",qp="Jelly Duo",jp="Jelly Fill",Gp="Notdog",Yp="Notdog Duo",Jp="Slab",Kp="Slab Press",Xp="Thumbprint",Vp="Utility",Zp="Utility Duo",Qp="Utility Fill",ev="Whiteboard",nf=[ke,mr,$u,Uu,zu,Hu,qu,ju,Gu,Yu,Ju,Ku,Xu,Vu,Zu,Qu,ef,tf];Wa={},re(re(re(re(re(re(re(re(re(re(Wa,ke,Wp),mr,Bp),$u,Rp),Uu,$p),zu,Up),Hu,zp),qu,Hp),ju,qp),Gu,jp),Yu,Gp),re(re(re(re(re(re(re(re(Wa,Ju,Yp),Ku,Jp),Xu,Kp),Vu,Xp),Zu,Vp),Qu,Zp),ef,Qp),tf,ev);var tv={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},nv={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},rv=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),iv={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},rf=["fak","fa-kit","fakd","fa-kit-duotone"],af={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},av=["kit"],ov="kit",sv="kit-duotone",uv="Kit",fv="Kit Duotone";re(re({},ov,uv),sv,fv);var lv={kit:{"fa-kit":"fak"}},cv={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},dv={kit:{fak:"fa-kit"}},of={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ba,vi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},hv=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],pv="classic",vv="duotone",gv="sharp",mv="sharp-duotone",yv="chisel",bv="etch",_v="jelly",wv="jelly-duo",Sv="jelly-fill",xv="notdog",Ev="notdog-duo",Av="slab",Iv="slab-press",Tv="thumbprint",Ov="utility",Cv="utility-duo",Nv="utility-fill",Lv="whiteboard",Pv="Classic",Fv="Duotone",kv="Sharp",Mv="Sharp Duotone",Dv="Chisel",Wv="Etch",Bv="Jelly",Rv="Jelly Duo",$v="Jelly Fill",Uv="Notdog",zv="Notdog Duo",Hv="Slab",qv="Slab Press",jv="Thumbprint",Gv="Utility",Yv="Utility Duo",Jv="Utility Fill",Kv="Whiteboard";Ba={},re(re(re(re(re(re(re(re(re(re(Ba,pv,Pv),vv,Fv),gv,kv),mv,Mv),yv,Dv),bv,Wv),_v,Bv),wv,Rv),Sv,$v),xv,Uv),re(re(re(re(re(re(re(re(Ba,Ev,zv),Av,Hv),Iv,qv),Tv,jv),Ov,Gv),Cv,Yv),Nv,Jv),Lv,Kv);var Xv="kit",Vv="kit-duotone",Zv="Kit",Qv="Kit Duotone";re(re({},Xv,Zv),Vv,Qv);var eg={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},tg={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},Ra={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},ng=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],sf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(hv,ng),rg=["solid","regular","light","thin","duotone","brands","semibold"],uf=[1,2,3,4,5,6,7,8,9,10],ig=uf.concat([11,12,13,14,15,16,17,18,19,20]),ag=["aw","fw","pull-left","pull-right"],og=[].concat(St(Object.keys(tg)),rg,ag,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",vi.GROUP,vi.SWAP_OPACITY,vi.PRIMARY,vi.SECONDARY]).concat(uf.map(function(a){return"".concat(a,"x")})).concat(ig.map(function(a){return"w-".concat(a)})),sg={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Bt="___FONT_AWESOME___",$a=16,ff="fa",lf="svg-inline--fa",mn="data-fa-i2svg",Ua="data-fa-pseudo-element",ug="data-fa-pseudo-element-pending",za="data-prefix",Ha="data-icon",cf="fontawesome-i2svg",fg="async",lg=["HTML","HEAD","STYLE","SCRIPT"],df=["::before","::after",":before",":after"],hf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function yr(a){return new Proxy(a,{get:function(n,s){return s in n?n[s]:n[ke]}})}var pf=B({},Bu);pf[ke]=B(B(B(B({},{"fa-duotone":"duotone"}),Bu[ke]),af.kit),af["kit-duotone"]);var cg=yr(pf),qa=B({},iv);qa[ke]=B(B(B(B({},{duotone:"fad"}),qa[ke]),of.kit),of["kit-duotone"]);var vf=yr(qa),ja=B({},Ra);ja[ke]=B(B({},ja[ke]),dv.kit);var Ga=yr(ja),Ya=B({},eg);Ya[ke]=B(B({},Ya[ke]),lv.kit),yr(Ya);var dg=kp,gf="fa-layers-text",hg=Mp,pg=B({},tv);yr(pg);var vg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ja=Dp,gg=[].concat(St(av),St(og)),br=tn.FontAwesomeConfig||{};function mg(a){var i=be.querySelector("script["+a+"]");if(i)return i.getAttribute(a)}function yg(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(be&&typeof be.querySelector=="function"){var bg=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];bg.forEach(function(a){var i=di(a,2),n=i[0],s=i[1],u=yg(mg(n));u!=null&&(br[s]=u)})}var mf={styleDefault:"solid",familyDefault:ke,cssPrefix:ff,replacementClass:lf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};br.familyPrefix&&(br.cssPrefix=br.familyPrefix);var Wn=B(B({},mf),br);Wn.autoReplaceSvg||(Wn.observeMutations=!1);var G={};Object.keys(mf).forEach(function(a){Object.defineProperty(G,a,{enumerable:!0,set:function(n){Wn[a]=n,_r.forEach(function(s){return s(G)})},get:function(){return Wn[a]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(i){Wn.cssPrefix=i,_r.forEach(function(n){return n(G)})},get:function(){return Wn.cssPrefix}}),tn.FontAwesomeConfig=G;var _r=[];function _g(a){return _r.push(a),function(){_r.splice(_r.indexOf(a),1)}}var Bn=$a,Lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function wg(a){if(!(!a||!Wt)){var i=be.createElement("style");i.setAttribute("type","text/css"),i.innerHTML=a;for(var n=be.head.childNodes,s=null,u=n.length-1;u>-1;u--){var f=n[u],c=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(s=f)}return be.head.insertBefore(i,s),a}}var Sg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yf(){for(var a=12,i="";a-- >0;)i+=Sg[Math.random()*62|0];return i}function Rn(a){for(var i=[],n=(a||[]).length>>>0;n--;)i[n]=a[n];return i}function Ka(a){return a.classList?Rn(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(i){return i})}function bf(a){return"".concat(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xg(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,'="').concat(bf(a[n]),'" ')},"").trim()}function gi(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,": ").concat(a[n].trim(),";")},"")}function Xa(a){return a.size!==Lt.size||a.x!==Lt.x||a.y!==Lt.y||a.rotate!==Lt.rotate||a.flipX||a.flipY}function Eg(a){var i=a.transform,n=a.containerWidth,s=a.iconWidth,u={transform:"translate(".concat(n/2," 256)")},f="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(f," ").concat(c," ").concat(p)},y={transform:"translate(".concat(s/2*-1," -256)")};return{outer:u,inner:g,path:y}}function Ag(a){var i=a.transform,n=a.width,s=n===void 0?$a:n,u=a.height,f=u===void 0?$a:u,c="";return Wu?c+="translate(".concat(i.x/Bn-s/2,"em, ").concat(i.y/Bn-f/2,"em) "):c+="translate(calc(-50% + ".concat(i.x/Bn,"em), calc(-50% + ").concat(i.y/Bn,"em)) "),c+="scale(".concat(i.size/Bn*(i.flipX?-1:1),", ").concat(i.size/Bn*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var Ig=`:root, :host {
24
24
  --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
25
25
  --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
26
26
  --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
@@ -570,7 +570,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
570
570
  margin: auto;
571
571
  position: absolute;
572
572
  z-index: var(--fa-stack-z-index, auto);
573
- }`;function _f(){var a=ff,i=lf,n=G.cssPrefix,s=G.replacementClass,u=Ig;if(n!==a||s!==i){var f=new RegExp("\\.".concat(a,"\\-"),"g"),c=new RegExp("\\--".concat(a,"\\-"),"g"),p=new RegExp("\\.".concat(i),"g");u=u.replace(f,".".concat(n,"-")).replace(c,"--".concat(n,"-")).replace(p,".".concat(s))}return u}var wf=!1;function Va(){G.autoAddCss&&!wf&&(wg(_f()),wf=!0)}var Tg={mixout:function(){return{dom:{css:_f,insertCss:Va}}},hooks:function(){return{beforeDOMElementCreation:function(){Va()},beforeI2svg:function(){Va()}}}},Rt=tn||{};Rt[Bt]||(Rt[Bt]={}),Rt[Bt].styles||(Rt[Bt].styles={}),Rt[Bt].hooks||(Rt[Bt].hooks={}),Rt[Bt].shims||(Rt[Bt].shims=[]);var xt=Rt[Bt],Sf=[],xf=function(){be.removeEventListener("DOMContentLoaded",xf),mi=1,Sf.map(function(i){return i()})},mi=!1;Wt&&(mi=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),mi||be.addEventListener("DOMContentLoaded",xf));function Og(a){Wt&&(mi?setTimeout(a,0):Sf.push(a))}function wr(a){var i=a.tag,n=a.attributes,s=n===void 0?{}:n,u=a.children,f=u===void 0?[]:u;return typeof a=="string"?bf(a):"<".concat(i," ").concat(xg(s),">").concat(f.map(wr).join(""),"</").concat(i,">")}function Ef(a,i,n){if(a&&a[i]&&a[i][n])return{prefix:i,iconName:n,icon:a[i][n]}}var Za=function(i,n,s,u){var f=Object.keys(i),c=f.length,p=n,g,y,w;for(s===void 0?(g=1,w=i[f[0]]):(g=0,w=s);g<c;g++)y=f[g],w=p(w,i[y],y,i);return w};function Af(a){return St(a).length!==1?null:a.codePointAt(0).toString(16)}function If(a){return Object.keys(a).reduce(function(i,n){var s=a[n],u=!!s.icon;return u?i[s.iconName]=s.icon:i[n]=s,i},{})}function Qa(a,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n.skipHooks,u=s===void 0?!1:s,f=If(i);typeof xt.hooks.addPack=="function"&&!u?xt.hooks.addPack(a,If(i)):xt.styles[a]=B(B({},xt.styles[a]||{}),f),a==="fas"&&Qa("fa",i)}var Sr=xt.styles,Cg=xt.shims,Tf=Object.keys(Ga),Ng=Tf.reduce(function(a,i){return a[i]=Object.keys(Ga[i]),a},{}),eo=null,Of={},Cf={},Nf={},Lf={},Pf={};function Lg(a){return~gg.indexOf(a)}function Pg(a,i){var n=i.split("-"),s=n[0],u=n.slice(1).join("-");return s===a&&u!==""&&!Lg(u)?u:null}var Ff=function(){var i=function(f){return Za(Sr,function(c,p,g){return c[g]=Za(p,f,{}),c},{})};Of=i(function(u,f,c){if(f[3]&&(u[f[3]]=c),f[2]){var p=f[2].filter(function(g){return typeof g=="number"});p.forEach(function(g){u[g.toString(16)]=c})}return u}),Cf=i(function(u,f,c){if(u[c]=c,f[2]){var p=f[2].filter(function(g){return typeof g=="string"});p.forEach(function(g){u[g]=c})}return u}),Pf=i(function(u,f,c){var p=f[2];return u[c]=c,p.forEach(function(g){u[g]=c}),u});var n="far"in Sr||G.autoFetchSvg,s=Za(Cg,function(u,f){var c=f[0],p=f[1],g=f[2];return p==="far"&&!n&&(p="fas"),typeof c=="string"&&(u.names[c]={prefix:p,iconName:g}),typeof c=="number"&&(u.unicodes[c.toString(16)]={prefix:p,iconName:g}),u},{names:{},unicodes:{}});Nf=s.names,Lf=s.unicodes,eo=yi(G.styleDefault,{family:G.familyDefault})};_g(function(a){eo=yi(a.styleDefault,{family:G.familyDefault})}),Ff();function to(a,i){return(Of[a]||{})[i]}function Fg(a,i){return(Cf[a]||{})[i]}function yn(a,i){return(Pf[a]||{})[i]}function Mf(a){return Nf[a]||{prefix:null,iconName:null}}function Mg(a){var i=Lf[a],n=to("fas",a);return i||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function nn(){return eo}var kf=function(){return{prefix:null,iconName:null,rest:[]}};function kg(a){var i=Me,n=Tf.reduce(function(s,u){return s[u]="".concat(G.cssPrefix,"-").concat(u),s},{});return nf.forEach(function(s){(a.includes(n[s])||a.some(function(u){return Ng[s].includes(u)}))&&(i=s)}),i}function yi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.family,s=n===void 0?Me:n,u=cg[s][a];if(s===mr&&!a)return"fad";var f=vf[s][a]||vf[s][u],c=a in xt.styles?a:null,p=f||c||null;return p}function Dg(a){var i=[],n=null;return a.forEach(function(s){var u=Pg(G.cssPrefix,s);u?n=u:s&&i.push(s)}),{iconName:n,rest:i}}function Df(a){return a.sort().filter(function(i,n,s){return s.indexOf(i)===n})}var Wf=sf.concat(rf);function bi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.skipLookups,s=n===void 0?!1:n,u=null,f=Df(a.filter(function(E){return Wf.includes(E)})),c=Df(a.filter(function(E){return!Wf.includes(E)})),p=f.filter(function(E){return u=E,!Ru.includes(E)}),g=di(p,1),y=g[0],w=y===void 0?null:y,_=kg(f),O=B(B({},Dg(c)),{},{prefix:yi(w,{family:_})});return B(B(B({},O),$g({values:a,family:_,styles:Sr,config:G,canonical:O,givenPrefix:u})),Wg(s,u,O))}function Wg(a,i,n){var s=n.prefix,u=n.iconName;if(a||!s||!u)return{prefix:s,iconName:u};var f=i==="fa"?Mf(u):{},c=yn(s,u);return u=f.iconName||c||u,s=f.prefix||s,s==="far"&&!Sr.far&&Sr.fas&&!G.autoFetchSvg&&(s="fas"),{prefix:s,iconName:u}}var Bg=nf.filter(function(a){return a!==Me||a!==mr}),Rg=Object.keys(Ra).filter(function(a){return a!==Me}).map(function(a){return Object.keys(Ra[a])}).flat();function $g(a){var i=a.values,n=a.family,s=a.canonical,u=a.givenPrefix,f=u===void 0?"":u,c=a.styles,p=c===void 0?{}:c,g=a.config,y=g===void 0?{}:g,w=n===mr,_=i.includes("fa-duotone")||i.includes("fad"),O=y.familyDefault==="duotone",E=s.prefix==="fad"||s.prefix==="fa-duotone";if(!w&&(_||O||E)&&(s.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(s.prefix="fab"),!s.prefix&&Bg.includes(n)){var x=Object.keys(p).find(function(I){return Rg.includes(I)});if(x||y.autoFetchSvg){var A=rv.get(n).defaultShortPrefixId;s.prefix=A,s.iconName=yn(s.prefix,s.iconName)||s.iconName}}return(s.prefix==="fa"||f==="fa")&&(s.prefix=nn()||"fas"),s}var Ug=(function(){function a(){Ap(this,a),this.definitions={}}return Tp(a,[{key:"add",value:function(){for(var n=this,s=arguments.length,u=new Array(s),f=0;f<s;f++)u[f]=arguments[f];var c=u.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(p){n.definitions[p]=B(B({},n.definitions[p]||{}),c[p]),Qa(p,c[p]);var g=Ga[Me][p];g&&Qa(g,c[p]),Ff()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,s){var u=s.prefix&&s.iconName&&s.icon?{0:s}:s;return Object.keys(u).map(function(f){var c=u[f],p=c.prefix,g=c.iconName,y=c.icon,w=y[2];n[p]||(n[p]={}),w.length>0&&w.forEach(function(_){typeof _=="string"&&(n[p][_]=y)}),n[p][g]=y}),n}}])})(),Bf=[],$n={},Un={},zg=Object.keys(Un);function Hg(a,i){var n=i.mixoutsTo;return Bf=a,$n={},Object.keys(Un).forEach(function(s){zg.indexOf(s)===-1&&delete Un[s]}),Bf.forEach(function(s){var u=s.mixout?s.mixout():{};if(Object.keys(u).forEach(function(c){typeof u[c]=="function"&&(n[c]=u[c]),hi(u[c])==="object"&&Object.keys(u[c]).forEach(function(p){n[c]||(n[c]={}),n[c][p]=u[c][p]})}),s.hooks){var f=s.hooks();Object.keys(f).forEach(function(c){$n[c]||($n[c]=[]),$n[c].push(f[c])})}s.provides&&s.provides(Un)}),n}function no(a,i){for(var n=arguments.length,s=new Array(n>2?n-2:0),u=2;u<n;u++)s[u-2]=arguments[u];var f=$n[a]||[];return f.forEach(function(c){i=c.apply(null,[i].concat(s))}),i}function bn(a){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];var u=$n[a]||[];u.forEach(function(f){f.apply(null,n)})}function rn(){var a=arguments[0],i=Array.prototype.slice.call(arguments,1);return Un[a]?Un[a].apply(null,i):void 0}function ro(a){a.prefix==="fa"&&(a.prefix="fas");var i=a.iconName,n=a.prefix||nn();if(i)return i=yn(n,i)||i,Ef(Rf.definitions,n,i)||Ef(xt.styles,n,i)}var Rf=new Ug,qg=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,bn("noAuto")},jg={i2svg:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt?(bn("beforeI2svg",i),rn("pseudoElements2svg",i),rn("i2svg",i)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,Og(function(){Yg({autoReplaceSvgRoot:n}),bn("watch",i)})}},Gg={icon:function(i){if(i===null)return null;if(hi(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:yn(i.prefix,i.iconName)||i.iconName};if(Array.isArray(i)&&i.length===2){var n=i[1].indexOf("fa-")===0?i[1].slice(3):i[1],s=yi(i[0]);return{prefix:s,iconName:yn(s,n)||n}}if(typeof i=="string"&&(i.indexOf("".concat(G.cssPrefix,"-"))>-1||i.match(dg))){var u=bi(i.split(" "),{skipLookups:!0});return{prefix:u.prefix||nn(),iconName:yn(u.prefix,u.iconName)||u.iconName}}if(typeof i=="string"){var f=nn();return{prefix:f,iconName:yn(f,i)||i}}}},tt={noAuto:qg,config:G,dom:jg,parse:Gg,library:Rf,findIconDefinition:ro,toHtml:wr},Yg=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot,s=n===void 0?be:n;(Object.keys(xt.styles).length>0||G.autoFetchSvg)&&Wt&&G.autoReplaceSvg&&tt.dom.i2svg({node:s})};function _i(a,i){return Object.defineProperty(a,"abstract",{get:i}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(s){return wr(s)})}}),Object.defineProperty(a,"node",{get:function(){if(Wt){var s=be.createElement("div");return s.innerHTML=a.html,s.children}}}),a}function Jg(a){var i=a.children,n=a.main,s=a.mask,u=a.attributes,f=a.styles,c=a.transform;if(Xa(c)&&n.found&&!s.found){var p=n.width,g=n.height,y={x:p/g/2,y:.5};u.style=gi(B(B({},f),{},{"transform-origin":"".concat(y.x+c.x/16,"em ").concat(y.y+c.y/16,"em")}))}return[{tag:"svg",attributes:u,children:i}]}function Kg(a){var i=a.prefix,n=a.iconName,s=a.children,u=a.attributes,f=a.symbol,c=f===!0?"".concat(i,"-").concat(G.cssPrefix,"-").concat(n):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:B(B({},u),{},{id:c}),children:s}]}]}function Xg(a){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(n){return n in a})}function io(a){var i=a.icons,n=i.main,s=i.mask,u=a.prefix,f=a.iconName,c=a.transform,p=a.symbol,g=a.maskId,y=a.extra,w=a.watchable,_=w===void 0?!1:w,O=s.found?s:n,E=O.width,x=O.height,A=[G.replacementClass,f?"".concat(G.cssPrefix,"-").concat(f):""].filter(function($){return y.classes.indexOf($)===-1}).filter(function($){return $!==""||!!$}).concat(y.classes).join(" "),I={children:[],attributes:B(B({},y.attributes),{},{"data-prefix":u,"data-icon":f,class:A,role:y.attributes.role||"img",viewBox:"0 0 ".concat(E," ").concat(x)})};!Xg(y.attributes)&&!y.attributes["aria-hidden"]&&(I.attributes["aria-hidden"]="true"),_&&(I.attributes[mn]="");var k=B(B({},I),{},{prefix:u,iconName:f,main:n,mask:s,maskId:g,transform:c,symbol:p,styles:B({},y.styles)}),W=s.found&&n.found?rn("generateAbstractMask",k)||{children:[],attributes:{}}:rn("generateAbstractIcon",k)||{children:[],attributes:{}},R=W.children,Z=W.attributes;return k.children=R,k.attributes=Z,p?Kg(k):Jg(k)}function $f(a){var i=a.content,n=a.width,s=a.height,u=a.transform,f=a.extra,c=a.watchable,p=c===void 0?!1:c,g=B(B({},f.attributes),{},{class:f.classes.join(" ")});p&&(g[mn]="");var y=B({},f.styles);Xa(u)&&(y.transform=Ag({transform:u,width:n,height:s}),y["-webkit-transform"]=y.transform);var w=gi(y);w.length>0&&(g.style=w);var _=[];return _.push({tag:"span",attributes:g,children:[i]}),_}function Vg(a){var i=a.content,n=a.extra,s=B(B({},n.attributes),{},{class:n.classes.join(" ")}),u=gi(n.styles);u.length>0&&(s.style=u);var f=[];return f.push({tag:"span",attributes:s,children:[i]}),f}var ao=xt.styles;function oo(a){var i=a[0],n=a[1],s=a.slice(4),u=di(s,1),f=u[0],c=null;return Array.isArray(f)?c={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.SECONDARY),fill:"currentColor",d:f[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.PRIMARY),fill:"currentColor",d:f[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:f}},{found:!0,width:i,height:n,icon:c}}var Zg={found:!1,width:512,height:512};function Qg(a,i){!hf&&!G.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(i,'" is missing.'))}function so(a,i){var n=i;return i==="fa"&&G.styleDefault!==null&&(i=nn()),new Promise(function(s,u){if(n==="fa"){var f=Mf(a)||{};a=f.iconName||a,i=f.prefix||i}if(a&&i&&ao[i]&&ao[i][a]){var c=ao[i][a];return s(oo(c))}Qg(a,i),s(B(B({},Zg),{},{icon:G.showMissingIcons&&a?rn("missingIconAbstract")||{}:{}}))})}var Uf=function(){},uo=G.measurePerformance&&pi&&pi.mark&&pi.measure?pi:{mark:Uf,measure:Uf},xr='FA "7.1.0"',em=function(i){return uo.mark("".concat(xr," ").concat(i," begins")),function(){return zf(i)}},zf=function(i){uo.mark("".concat(xr," ").concat(i," ends")),uo.measure("".concat(xr," ").concat(i),"".concat(xr," ").concat(i," begins"),"".concat(xr," ").concat(i," ends"))},fo={begin:em,end:zf},wi=function(){};function Hf(a){var i=a.getAttribute?a.getAttribute(mn):null;return typeof i=="string"}function tm(a){var i=a.getAttribute?a.getAttribute(za):null,n=a.getAttribute?a.getAttribute(Ha):null;return i&&n}function nm(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(G.replacementClass)}function rm(){if(G.autoReplaceSvg===!0)return Si.replace;var a=Si[G.autoReplaceSvg];return a||Si.replace}function im(a){return be.createElementNS("http://www.w3.org/2000/svg",a)}function am(a){return be.createElement(a)}function qf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ceFn,s=n===void 0?a.tag==="svg"?im:am:n;if(typeof a=="string")return be.createTextNode(a);var u=s(a.tag);Object.keys(a.attributes||[]).forEach(function(c){u.setAttribute(c,a.attributes[c])});var f=a.children||[];return f.forEach(function(c){u.appendChild(qf(c,{ceFn:s}))}),u}function om(a){var i=" ".concat(a.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Si={replace:function(i){var n=i[0];if(n.parentNode)if(i[1].forEach(function(u){n.parentNode.insertBefore(qf(u),n)}),n.getAttribute(mn)===null&&G.keepOriginalSource){var s=be.createComment(om(n));n.parentNode.replaceChild(s,n)}else n.remove()},nest:function(i){var n=i[0],s=i[1];if(~Ka(n).indexOf(G.replacementClass))return Si.replace(i);var u=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete s[0].attributes.id,s[0].attributes.class){var f=s[0].attributes.class.split(" ").reduce(function(p,g){return g===G.replacementClass||g.match(u)?p.toSvg.push(g):p.toNode.push(g),p},{toNode:[],toSvg:[]});s[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}var c=s.map(function(p){return wr(p)}).join(`
574
- `);n.setAttribute(mn,""),n.innerHTML=c}};function jf(a){a()}function Gf(a,i){var n=typeof i=="function"?i:wi;if(a.length===0)n();else{var s=jf;G.mutateApproach===fg&&(s=tn.requestAnimationFrame||jf),s(function(){var u=rm(),f=fo.begin("mutate");a.map(u),f(),n()})}}var lo=!1;function Yf(){lo=!0}function co(){lo=!1}var xi=null;function Jf(a){if(Du&&G.observeMutations){var i=a.treeCallback,n=i===void 0?wi:i,s=a.nodeCallback,u=s===void 0?wi:s,f=a.pseudoElementsCallback,c=f===void 0?wi:f,p=a.observeMutationsRoot,g=p===void 0?be:p;xi=new Du(function(y){if(!lo){var w=nn();Rn(y).forEach(function(_){if(_.type==="childList"&&_.addedNodes.length>0&&!Hf(_.addedNodes[0])&&(G.searchPseudoElements&&c(_.target),n(_.target)),_.type==="attributes"&&_.target.parentNode&&G.searchPseudoElements&&c([_.target],!0),_.type==="attributes"&&Hf(_.target)&&~vg.indexOf(_.attributeName))if(_.attributeName==="class"&&tm(_.target)){var O=bi(Ka(_.target)),E=O.prefix,x=O.iconName;_.target.setAttribute(za,E||w),x&&_.target.setAttribute(Ha,x)}else nm(_.target)&&u(_.target)})}}),Wt&&xi.observe(g,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function sm(){xi&&xi.disconnect()}function um(a){var i=a.getAttribute("style"),n=[];return i&&(n=i.split(";").reduce(function(s,u){var f=u.split(":"),c=f[0],p=f.slice(1);return c&&p.length>0&&(s[c]=p.join(":").trim()),s},{})),n}function fm(a){var i=a.getAttribute("data-prefix"),n=a.getAttribute("data-icon"),s=a.innerText!==void 0?a.innerText.trim():"",u=bi(Ka(a));return u.prefix||(u.prefix=nn()),i&&n&&(u.prefix=i,u.iconName=n),u.iconName&&u.prefix||(u.prefix&&s.length>0&&(u.iconName=Fg(u.prefix,a.innerText)||to(u.prefix,Af(a.innerText))),!u.iconName&&G.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(u.iconName=a.firstChild.data)),u}function lm(a){var i=Rn(a.attributes).reduce(function(n,s){return n.name!=="class"&&n.name!=="style"&&(n[s.name]=s.value),n},{});return i}function cm(){return{iconName:null,prefix:null,transform:Lt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Kf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fm(a),s=n.iconName,u=n.prefix,f=n.rest,c=lm(a),p=no("parseNodeAttributes",{},a),g=i.styleParser?um(a):[];return B({iconName:s,prefix:u,transform:Lt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:f,styles:g,attributes:c}},p)}var dm=xt.styles;function Xf(a){var i=G.autoReplaceSvg==="nest"?Kf(a,{styleParser:!1}):Kf(a);return~i.extra.classes.indexOf(gf)?rn("generateLayersText",a,i):rn("generateSvgReplacementMutation",a,i)}function hm(){return[].concat(St(rf),St(sf))}function Vf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wt)return Promise.resolve();var n=be.documentElement.classList,s=function(_){return n.add("".concat(cf,"-").concat(_))},u=function(_){return n.remove("".concat(cf,"-").concat(_))},f=G.autoFetchSvg?hm():Ru.concat(Object.keys(dm));f.includes("fa")||f.push("fa");var c=[".".concat(gf,":not([").concat(mn,"])")].concat(f.map(function(w){return".".concat(w,":not([").concat(mn,"])")})).join(", ");if(c.length===0)return Promise.resolve();var p=[];try{p=Rn(a.querySelectorAll(c))}catch{}if(p.length>0)s("pending"),u("complete");else return Promise.resolve();var g=fo.begin("onTree"),y=p.reduce(function(w,_){try{var O=Xf(_);O&&w.push(O)}catch(E){hf||E.name==="MissingIcon"&&console.error(E)}return w},[]);return new Promise(function(w,_){Promise.all(y).then(function(O){Gf(O,function(){s("active"),s("complete"),u("pending"),typeof i=="function"&&i(),g(),w()})}).catch(function(O){g(),_(O)})})}function pm(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Xf(a).then(function(n){n&&Gf([n],i)})}function vm(a){return function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=(i||{}).icon?i:ro(i||{}),u=n.mask;return u&&(u=(u||{}).icon?u:ro(u||{})),a(s,B(B({},n),{},{mask:u}))}}var gm=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.transform,u=s===void 0?Lt:s,f=n.symbol,c=f===void 0?!1:f,p=n.mask,g=p===void 0?null:p,y=n.maskId,w=y===void 0?null:y,_=n.classes,O=_===void 0?[]:_,E=n.attributes,x=E===void 0?{}:E,A=n.styles,I=A===void 0?{}:A;if(i){var k=i.prefix,W=i.iconName,R=i.icon;return _i(B({type:"icon"},i),function(){return bn("beforeDOMElementCreation",{iconDefinition:i,params:n}),io({icons:{main:oo(R),mask:g?oo(g.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:W,transform:B(B({},Lt),u),symbol:c,maskId:w,extra:{attributes:x,styles:I,classes:O}})})}},mm={mixout:function(){return{icon:vm(gm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Vf,n.nodeCallback=pm,n}}},provides:function(i){i.i2svg=function(n){var s=n.node,u=s===void 0?be:s,f=n.callback,c=f===void 0?function(){}:f;return Vf(u,c)},i.generateSvgReplacementMutation=function(n,s){var u=s.iconName,f=s.prefix,c=s.transform,p=s.symbol,g=s.mask,y=s.maskId,w=s.extra;return new Promise(function(_,O){Promise.all([so(u,f),g.iconName?so(g.iconName,g.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(E){var x=di(E,2),A=x[0],I=x[1];_([n,io({icons:{main:A,mask:I},prefix:f,iconName:u,transform:c,symbol:p,maskId:y,extra:w,watchable:!0})])}).catch(O)})},i.generateAbstractIcon=function(n){var s=n.children,u=n.attributes,f=n.main,c=n.transform,p=n.styles,g=gi(p);g.length>0&&(u.style=g);var y;return Xa(c)&&(y=rn("generateAbstractTransformGrouping",{main:f,transform:c,containerWidth:f.width,iconWidth:f.width})),s.push(y||f.icon),{children:s,attributes:u}}}},ym={mixout:function(){return{layer:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.classes,f=u===void 0?[]:u;return _i({type:"layer"},function(){bn("beforeDOMElementCreation",{assembler:n,params:s});var c=[];return n(function(p){Array.isArray(p)?p.map(function(g){c=c.concat(g.abstract)}):c=c.concat(p.abstract)}),[{tag:"span",attributes:{class:["".concat(G.cssPrefix,"-layers")].concat(St(f)).join(" ")},children:c}]})}}}},bm={mixout:function(){return{counter:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.title;var u=s.classes,f=u===void 0?[]:u,c=s.attributes,p=c===void 0?{}:c,g=s.styles,y=g===void 0?{}:g;return _i({type:"counter",content:n},function(){return bn("beforeDOMElementCreation",{content:n,params:s}),Vg({content:n.toString(),extra:{attributes:p,styles:y,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(St(f))}})})}}}},_m={mixout:function(){return{text:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.transform,f=u===void 0?Lt:u,c=s.classes,p=c===void 0?[]:c,g=s.attributes,y=g===void 0?{}:g,w=s.styles,_=w===void 0?{}:w;return _i({type:"text",content:n},function(){return bn("beforeDOMElementCreation",{content:n,params:s}),$f({content:n,transform:B(B({},Lt),f),extra:{attributes:y,styles:_,classes:["".concat(G.cssPrefix,"-layers-text")].concat(St(p))}})})}}},provides:function(i){i.generateLayersText=function(n,s){var u=s.transform,f=s.extra,c=null,p=null;if(Wu){var g=parseInt(getComputedStyle(n).fontSize,10),y=n.getBoundingClientRect();c=y.width/g,p=y.height/g}return Promise.resolve([n,$f({content:n.innerHTML,width:c,height:p,transform:u,extra:f,watchable:!0})])}}},Zf=new RegExp('"',"ug"),Qf=[1105920,1112319],el=B(B(B(B({},{FontAwesome:{normal:"fas",400:"fas"}}),nv),sg),cv),ho=Object.keys(el).reduce(function(a,i){return a[i.toLowerCase()]=el[i],a},{}),wm=Object.keys(ho).reduce(function(a,i){var n=ho[i];return a[i]=n[900]||St(Object.entries(n))[0][1],a},{});function Sm(a){var i=a.replace(Zf,"");return Af(St(i)[0]||"")}function xm(a){var i=a.getPropertyValue("font-feature-settings").includes("ss01"),n=a.getPropertyValue("content"),s=n.replace(Zf,""),u=s.codePointAt(0),f=u>=Qf[0]&&u<=Qf[1],c=s.length===2?s[0]===s[1]:!1;return f||c||i}function Em(a,i){var n=a.replace(/^['"]|['"]$/g,"").toLowerCase(),s=parseInt(i),u=isNaN(s)?"normal":s;return(ho[n]||{})[u]||wm[n]}function tl(a,i){var n="".concat(ug).concat(i.replace(":","-"));return new Promise(function(s,u){if(a.getAttribute(n)!==null)return s();var f=Rn(a.children),c=f.filter(function(de){return de.getAttribute(Ua)===i})[0],p=tn.getComputedStyle(a,i),g=p.getPropertyValue("font-family"),y=g.match(hg),w=p.getPropertyValue("font-weight"),_=p.getPropertyValue("content");if(c&&!y)return a.removeChild(c),s();if(y&&_!=="none"&&_!==""){var O=p.getPropertyValue("content"),E=Em(g,w),x=Sm(O),A=y[0].startsWith("FontAwesome"),I=xm(p),k=to(E,x),W=k;if(A){var R=Mg(x);R.iconName&&R.prefix&&(k=R.iconName,E=R.prefix)}if(k&&!I&&(!c||c.getAttribute(za)!==E||c.getAttribute(Ha)!==W)){a.setAttribute(n,W),c&&a.removeChild(c);var Z=cm(),$=Z.extra;$.attributes[Ua]=i,so(k,E).then(function(de){var C=io(B(B({},Z),{},{icons:{main:de,mask:kf()},prefix:E,iconName:W,extra:$,watchable:!0})),L=be.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?a.insertBefore(L,a.firstChild):a.appendChild(L),L.outerHTML=C.map(function(q){return wr(q)}).join(`
573
+ }`;function _f(){var a=ff,i=lf,n=G.cssPrefix,s=G.replacementClass,u=Ig;if(n!==a||s!==i){var f=new RegExp("\\.".concat(a,"\\-"),"g"),c=new RegExp("\\--".concat(a,"\\-"),"g"),p=new RegExp("\\.".concat(i),"g");u=u.replace(f,".".concat(n,"-")).replace(c,"--".concat(n,"-")).replace(p,".".concat(s))}return u}var wf=!1;function Va(){G.autoAddCss&&!wf&&(wg(_f()),wf=!0)}var Tg={mixout:function(){return{dom:{css:_f,insertCss:Va}}},hooks:function(){return{beforeDOMElementCreation:function(){Va()},beforeI2svg:function(){Va()}}}},Rt=tn||{};Rt[Bt]||(Rt[Bt]={}),Rt[Bt].styles||(Rt[Bt].styles={}),Rt[Bt].hooks||(Rt[Bt].hooks={}),Rt[Bt].shims||(Rt[Bt].shims=[]);var xt=Rt[Bt],Sf=[],xf=function(){be.removeEventListener("DOMContentLoaded",xf),mi=1,Sf.map(function(i){return i()})},mi=!1;Wt&&(mi=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),mi||be.addEventListener("DOMContentLoaded",xf));function Og(a){Wt&&(mi?setTimeout(a,0):Sf.push(a))}function wr(a){var i=a.tag,n=a.attributes,s=n===void 0?{}:n,u=a.children,f=u===void 0?[]:u;return typeof a=="string"?bf(a):"<".concat(i," ").concat(xg(s),">").concat(f.map(wr).join(""),"</").concat(i,">")}function Ef(a,i,n){if(a&&a[i]&&a[i][n])return{prefix:i,iconName:n,icon:a[i][n]}}var Za=function(i,n,s,u){var f=Object.keys(i),c=f.length,p=n,g,y,w;for(s===void 0?(g=1,w=i[f[0]]):(g=0,w=s);g<c;g++)y=f[g],w=p(w,i[y],y,i);return w};function Af(a){return St(a).length!==1?null:a.codePointAt(0).toString(16)}function If(a){return Object.keys(a).reduce(function(i,n){var s=a[n],u=!!s.icon;return u?i[s.iconName]=s.icon:i[n]=s,i},{})}function Qa(a,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n.skipHooks,u=s===void 0?!1:s,f=If(i);typeof xt.hooks.addPack=="function"&&!u?xt.hooks.addPack(a,If(i)):xt.styles[a]=B(B({},xt.styles[a]||{}),f),a==="fas"&&Qa("fa",i)}var Sr=xt.styles,Cg=xt.shims,Tf=Object.keys(Ga),Ng=Tf.reduce(function(a,i){return a[i]=Object.keys(Ga[i]),a},{}),eo=null,Of={},Cf={},Nf={},Lf={},Pf={};function Lg(a){return~gg.indexOf(a)}function Pg(a,i){var n=i.split("-"),s=n[0],u=n.slice(1).join("-");return s===a&&u!==""&&!Lg(u)?u:null}var Ff=function(){var i=function(f){return Za(Sr,function(c,p,g){return c[g]=Za(p,f,{}),c},{})};Of=i(function(u,f,c){if(f[3]&&(u[f[3]]=c),f[2]){var p=f[2].filter(function(g){return typeof g=="number"});p.forEach(function(g){u[g.toString(16)]=c})}return u}),Cf=i(function(u,f,c){if(u[c]=c,f[2]){var p=f[2].filter(function(g){return typeof g=="string"});p.forEach(function(g){u[g]=c})}return u}),Pf=i(function(u,f,c){var p=f[2];return u[c]=c,p.forEach(function(g){u[g]=c}),u});var n="far"in Sr||G.autoFetchSvg,s=Za(Cg,function(u,f){var c=f[0],p=f[1],g=f[2];return p==="far"&&!n&&(p="fas"),typeof c=="string"&&(u.names[c]={prefix:p,iconName:g}),typeof c=="number"&&(u.unicodes[c.toString(16)]={prefix:p,iconName:g}),u},{names:{},unicodes:{}});Nf=s.names,Lf=s.unicodes,eo=yi(G.styleDefault,{family:G.familyDefault})};_g(function(a){eo=yi(a.styleDefault,{family:G.familyDefault})}),Ff();function to(a,i){return(Of[a]||{})[i]}function Fg(a,i){return(Cf[a]||{})[i]}function yn(a,i){return(Pf[a]||{})[i]}function kf(a){return Nf[a]||{prefix:null,iconName:null}}function kg(a){var i=Lf[a],n=to("fas",a);return i||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function nn(){return eo}var Mf=function(){return{prefix:null,iconName:null,rest:[]}};function Mg(a){var i=ke,n=Tf.reduce(function(s,u){return s[u]="".concat(G.cssPrefix,"-").concat(u),s},{});return nf.forEach(function(s){(a.includes(n[s])||a.some(function(u){return Ng[s].includes(u)}))&&(i=s)}),i}function yi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.family,s=n===void 0?ke:n,u=cg[s][a];if(s===mr&&!a)return"fad";var f=vf[s][a]||vf[s][u],c=a in xt.styles?a:null,p=f||c||null;return p}function Dg(a){var i=[],n=null;return a.forEach(function(s){var u=Pg(G.cssPrefix,s);u?n=u:s&&i.push(s)}),{iconName:n,rest:i}}function Df(a){return a.sort().filter(function(i,n,s){return s.indexOf(i)===n})}var Wf=sf.concat(rf);function bi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.skipLookups,s=n===void 0?!1:n,u=null,f=Df(a.filter(function(E){return Wf.includes(E)})),c=Df(a.filter(function(E){return!Wf.includes(E)})),p=f.filter(function(E){return u=E,!Ru.includes(E)}),g=di(p,1),y=g[0],w=y===void 0?null:y,_=Mg(f),O=B(B({},Dg(c)),{},{prefix:yi(w,{family:_})});return B(B(B({},O),$g({values:a,family:_,styles:Sr,config:G,canonical:O,givenPrefix:u})),Wg(s,u,O))}function Wg(a,i,n){var s=n.prefix,u=n.iconName;if(a||!s||!u)return{prefix:s,iconName:u};var f=i==="fa"?kf(u):{},c=yn(s,u);return u=f.iconName||c||u,s=f.prefix||s,s==="far"&&!Sr.far&&Sr.fas&&!G.autoFetchSvg&&(s="fas"),{prefix:s,iconName:u}}var Bg=nf.filter(function(a){return a!==ke||a!==mr}),Rg=Object.keys(Ra).filter(function(a){return a!==ke}).map(function(a){return Object.keys(Ra[a])}).flat();function $g(a){var i=a.values,n=a.family,s=a.canonical,u=a.givenPrefix,f=u===void 0?"":u,c=a.styles,p=c===void 0?{}:c,g=a.config,y=g===void 0?{}:g,w=n===mr,_=i.includes("fa-duotone")||i.includes("fad"),O=y.familyDefault==="duotone",E=s.prefix==="fad"||s.prefix==="fa-duotone";if(!w&&(_||O||E)&&(s.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(s.prefix="fab"),!s.prefix&&Bg.includes(n)){var x=Object.keys(p).find(function(I){return Rg.includes(I)});if(x||y.autoFetchSvg){var A=rv.get(n).defaultShortPrefixId;s.prefix=A,s.iconName=yn(s.prefix,s.iconName)||s.iconName}}return(s.prefix==="fa"||f==="fa")&&(s.prefix=nn()||"fas"),s}var Ug=(function(){function a(){Ap(this,a),this.definitions={}}return Tp(a,[{key:"add",value:function(){for(var n=this,s=arguments.length,u=new Array(s),f=0;f<s;f++)u[f]=arguments[f];var c=u.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(p){n.definitions[p]=B(B({},n.definitions[p]||{}),c[p]),Qa(p,c[p]);var g=Ga[ke][p];g&&Qa(g,c[p]),Ff()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,s){var u=s.prefix&&s.iconName&&s.icon?{0:s}:s;return Object.keys(u).map(function(f){var c=u[f],p=c.prefix,g=c.iconName,y=c.icon,w=y[2];n[p]||(n[p]={}),w.length>0&&w.forEach(function(_){typeof _=="string"&&(n[p][_]=y)}),n[p][g]=y}),n}}])})(),Bf=[],$n={},Un={},zg=Object.keys(Un);function Hg(a,i){var n=i.mixoutsTo;return Bf=a,$n={},Object.keys(Un).forEach(function(s){zg.indexOf(s)===-1&&delete Un[s]}),Bf.forEach(function(s){var u=s.mixout?s.mixout():{};if(Object.keys(u).forEach(function(c){typeof u[c]=="function"&&(n[c]=u[c]),hi(u[c])==="object"&&Object.keys(u[c]).forEach(function(p){n[c]||(n[c]={}),n[c][p]=u[c][p]})}),s.hooks){var f=s.hooks();Object.keys(f).forEach(function(c){$n[c]||($n[c]=[]),$n[c].push(f[c])})}s.provides&&s.provides(Un)}),n}function no(a,i){for(var n=arguments.length,s=new Array(n>2?n-2:0),u=2;u<n;u++)s[u-2]=arguments[u];var f=$n[a]||[];return f.forEach(function(c){i=c.apply(null,[i].concat(s))}),i}function bn(a){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];var u=$n[a]||[];u.forEach(function(f){f.apply(null,n)})}function rn(){var a=arguments[0],i=Array.prototype.slice.call(arguments,1);return Un[a]?Un[a].apply(null,i):void 0}function ro(a){a.prefix==="fa"&&(a.prefix="fas");var i=a.iconName,n=a.prefix||nn();if(i)return i=yn(n,i)||i,Ef(Rf.definitions,n,i)||Ef(xt.styles,n,i)}var Rf=new Ug,qg=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,bn("noAuto")},jg={i2svg:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt?(bn("beforeI2svg",i),rn("pseudoElements2svg",i),rn("i2svg",i)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,Og(function(){Yg({autoReplaceSvgRoot:n}),bn("watch",i)})}},Gg={icon:function(i){if(i===null)return null;if(hi(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:yn(i.prefix,i.iconName)||i.iconName};if(Array.isArray(i)&&i.length===2){var n=i[1].indexOf("fa-")===0?i[1].slice(3):i[1],s=yi(i[0]);return{prefix:s,iconName:yn(s,n)||n}}if(typeof i=="string"&&(i.indexOf("".concat(G.cssPrefix,"-"))>-1||i.match(dg))){var u=bi(i.split(" "),{skipLookups:!0});return{prefix:u.prefix||nn(),iconName:yn(u.prefix,u.iconName)||u.iconName}}if(typeof i=="string"){var f=nn();return{prefix:f,iconName:yn(f,i)||i}}}},tt={noAuto:qg,config:G,dom:jg,parse:Gg,library:Rf,findIconDefinition:ro,toHtml:wr},Yg=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot,s=n===void 0?be:n;(Object.keys(xt.styles).length>0||G.autoFetchSvg)&&Wt&&G.autoReplaceSvg&&tt.dom.i2svg({node:s})};function _i(a,i){return Object.defineProperty(a,"abstract",{get:i}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(s){return wr(s)})}}),Object.defineProperty(a,"node",{get:function(){if(Wt){var s=be.createElement("div");return s.innerHTML=a.html,s.children}}}),a}function Jg(a){var i=a.children,n=a.main,s=a.mask,u=a.attributes,f=a.styles,c=a.transform;if(Xa(c)&&n.found&&!s.found){var p=n.width,g=n.height,y={x:p/g/2,y:.5};u.style=gi(B(B({},f),{},{"transform-origin":"".concat(y.x+c.x/16,"em ").concat(y.y+c.y/16,"em")}))}return[{tag:"svg",attributes:u,children:i}]}function Kg(a){var i=a.prefix,n=a.iconName,s=a.children,u=a.attributes,f=a.symbol,c=f===!0?"".concat(i,"-").concat(G.cssPrefix,"-").concat(n):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:B(B({},u),{},{id:c}),children:s}]}]}function Xg(a){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(n){return n in a})}function io(a){var i=a.icons,n=i.main,s=i.mask,u=a.prefix,f=a.iconName,c=a.transform,p=a.symbol,g=a.maskId,y=a.extra,w=a.watchable,_=w===void 0?!1:w,O=s.found?s:n,E=O.width,x=O.height,A=[G.replacementClass,f?"".concat(G.cssPrefix,"-").concat(f):""].filter(function($){return y.classes.indexOf($)===-1}).filter(function($){return $!==""||!!$}).concat(y.classes).join(" "),I={children:[],attributes:B(B({},y.attributes),{},{"data-prefix":u,"data-icon":f,class:A,role:y.attributes.role||"img",viewBox:"0 0 ".concat(E," ").concat(x)})};!Xg(y.attributes)&&!y.attributes["aria-hidden"]&&(I.attributes["aria-hidden"]="true"),_&&(I.attributes[mn]="");var M=B(B({},I),{},{prefix:u,iconName:f,main:n,mask:s,maskId:g,transform:c,symbol:p,styles:B({},y.styles)}),W=s.found&&n.found?rn("generateAbstractMask",M)||{children:[],attributes:{}}:rn("generateAbstractIcon",M)||{children:[],attributes:{}},R=W.children,Z=W.attributes;return M.children=R,M.attributes=Z,p?Kg(M):Jg(M)}function $f(a){var i=a.content,n=a.width,s=a.height,u=a.transform,f=a.extra,c=a.watchable,p=c===void 0?!1:c,g=B(B({},f.attributes),{},{class:f.classes.join(" ")});p&&(g[mn]="");var y=B({},f.styles);Xa(u)&&(y.transform=Ag({transform:u,width:n,height:s}),y["-webkit-transform"]=y.transform);var w=gi(y);w.length>0&&(g.style=w);var _=[];return _.push({tag:"span",attributes:g,children:[i]}),_}function Vg(a){var i=a.content,n=a.extra,s=B(B({},n.attributes),{},{class:n.classes.join(" ")}),u=gi(n.styles);u.length>0&&(s.style=u);var f=[];return f.push({tag:"span",attributes:s,children:[i]}),f}var ao=xt.styles;function oo(a){var i=a[0],n=a[1],s=a.slice(4),u=di(s,1),f=u[0],c=null;return Array.isArray(f)?c={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.SECONDARY),fill:"currentColor",d:f[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(Ja.PRIMARY),fill:"currentColor",d:f[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:f}},{found:!0,width:i,height:n,icon:c}}var Zg={found:!1,width:512,height:512};function Qg(a,i){!hf&&!G.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(i,'" is missing.'))}function so(a,i){var n=i;return i==="fa"&&G.styleDefault!==null&&(i=nn()),new Promise(function(s,u){if(n==="fa"){var f=kf(a)||{};a=f.iconName||a,i=f.prefix||i}if(a&&i&&ao[i]&&ao[i][a]){var c=ao[i][a];return s(oo(c))}Qg(a,i),s(B(B({},Zg),{},{icon:G.showMissingIcons&&a?rn("missingIconAbstract")||{}:{}}))})}var Uf=function(){},uo=G.measurePerformance&&pi&&pi.mark&&pi.measure?pi:{mark:Uf,measure:Uf},xr='FA "7.1.0"',em=function(i){return uo.mark("".concat(xr," ").concat(i," begins")),function(){return zf(i)}},zf=function(i){uo.mark("".concat(xr," ").concat(i," ends")),uo.measure("".concat(xr," ").concat(i),"".concat(xr," ").concat(i," begins"),"".concat(xr," ").concat(i," ends"))},fo={begin:em,end:zf},wi=function(){};function Hf(a){var i=a.getAttribute?a.getAttribute(mn):null;return typeof i=="string"}function tm(a){var i=a.getAttribute?a.getAttribute(za):null,n=a.getAttribute?a.getAttribute(Ha):null;return i&&n}function nm(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(G.replacementClass)}function rm(){if(G.autoReplaceSvg===!0)return Si.replace;var a=Si[G.autoReplaceSvg];return a||Si.replace}function im(a){return be.createElementNS("http://www.w3.org/2000/svg",a)}function am(a){return be.createElement(a)}function qf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ceFn,s=n===void 0?a.tag==="svg"?im:am:n;if(typeof a=="string")return be.createTextNode(a);var u=s(a.tag);Object.keys(a.attributes||[]).forEach(function(c){u.setAttribute(c,a.attributes[c])});var f=a.children||[];return f.forEach(function(c){u.appendChild(qf(c,{ceFn:s}))}),u}function om(a){var i=" ".concat(a.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Si={replace:function(i){var n=i[0];if(n.parentNode)if(i[1].forEach(function(u){n.parentNode.insertBefore(qf(u),n)}),n.getAttribute(mn)===null&&G.keepOriginalSource){var s=be.createComment(om(n));n.parentNode.replaceChild(s,n)}else n.remove()},nest:function(i){var n=i[0],s=i[1];if(~Ka(n).indexOf(G.replacementClass))return Si.replace(i);var u=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete s[0].attributes.id,s[0].attributes.class){var f=s[0].attributes.class.split(" ").reduce(function(p,g){return g===G.replacementClass||g.match(u)?p.toSvg.push(g):p.toNode.push(g),p},{toNode:[],toSvg:[]});s[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}var c=s.map(function(p){return wr(p)}).join(`
574
+ `);n.setAttribute(mn,""),n.innerHTML=c}};function jf(a){a()}function Gf(a,i){var n=typeof i=="function"?i:wi;if(a.length===0)n();else{var s=jf;G.mutateApproach===fg&&(s=tn.requestAnimationFrame||jf),s(function(){var u=rm(),f=fo.begin("mutate");a.map(u),f(),n()})}}var lo=!1;function Yf(){lo=!0}function co(){lo=!1}var xi=null;function Jf(a){if(Du&&G.observeMutations){var i=a.treeCallback,n=i===void 0?wi:i,s=a.nodeCallback,u=s===void 0?wi:s,f=a.pseudoElementsCallback,c=f===void 0?wi:f,p=a.observeMutationsRoot,g=p===void 0?be:p;xi=new Du(function(y){if(!lo){var w=nn();Rn(y).forEach(function(_){if(_.type==="childList"&&_.addedNodes.length>0&&!Hf(_.addedNodes[0])&&(G.searchPseudoElements&&c(_.target),n(_.target)),_.type==="attributes"&&_.target.parentNode&&G.searchPseudoElements&&c([_.target],!0),_.type==="attributes"&&Hf(_.target)&&~vg.indexOf(_.attributeName))if(_.attributeName==="class"&&tm(_.target)){var O=bi(Ka(_.target)),E=O.prefix,x=O.iconName;_.target.setAttribute(za,E||w),x&&_.target.setAttribute(Ha,x)}else nm(_.target)&&u(_.target)})}}),Wt&&xi.observe(g,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function sm(){xi&&xi.disconnect()}function um(a){var i=a.getAttribute("style"),n=[];return i&&(n=i.split(";").reduce(function(s,u){var f=u.split(":"),c=f[0],p=f.slice(1);return c&&p.length>0&&(s[c]=p.join(":").trim()),s},{})),n}function fm(a){var i=a.getAttribute("data-prefix"),n=a.getAttribute("data-icon"),s=a.innerText!==void 0?a.innerText.trim():"",u=bi(Ka(a));return u.prefix||(u.prefix=nn()),i&&n&&(u.prefix=i,u.iconName=n),u.iconName&&u.prefix||(u.prefix&&s.length>0&&(u.iconName=Fg(u.prefix,a.innerText)||to(u.prefix,Af(a.innerText))),!u.iconName&&G.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(u.iconName=a.firstChild.data)),u}function lm(a){var i=Rn(a.attributes).reduce(function(n,s){return n.name!=="class"&&n.name!=="style"&&(n[s.name]=s.value),n},{});return i}function cm(){return{iconName:null,prefix:null,transform:Lt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Kf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fm(a),s=n.iconName,u=n.prefix,f=n.rest,c=lm(a),p=no("parseNodeAttributes",{},a),g=i.styleParser?um(a):[];return B({iconName:s,prefix:u,transform:Lt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:f,styles:g,attributes:c}},p)}var dm=xt.styles;function Xf(a){var i=G.autoReplaceSvg==="nest"?Kf(a,{styleParser:!1}):Kf(a);return~i.extra.classes.indexOf(gf)?rn("generateLayersText",a,i):rn("generateSvgReplacementMutation",a,i)}function hm(){return[].concat(St(rf),St(sf))}function Vf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wt)return Promise.resolve();var n=be.documentElement.classList,s=function(_){return n.add("".concat(cf,"-").concat(_))},u=function(_){return n.remove("".concat(cf,"-").concat(_))},f=G.autoFetchSvg?hm():Ru.concat(Object.keys(dm));f.includes("fa")||f.push("fa");var c=[".".concat(gf,":not([").concat(mn,"])")].concat(f.map(function(w){return".".concat(w,":not([").concat(mn,"])")})).join(", ");if(c.length===0)return Promise.resolve();var p=[];try{p=Rn(a.querySelectorAll(c))}catch{}if(p.length>0)s("pending"),u("complete");else return Promise.resolve();var g=fo.begin("onTree"),y=p.reduce(function(w,_){try{var O=Xf(_);O&&w.push(O)}catch(E){hf||E.name==="MissingIcon"&&console.error(E)}return w},[]);return new Promise(function(w,_){Promise.all(y).then(function(O){Gf(O,function(){s("active"),s("complete"),u("pending"),typeof i=="function"&&i(),g(),w()})}).catch(function(O){g(),_(O)})})}function pm(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Xf(a).then(function(n){n&&Gf([n],i)})}function vm(a){return function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=(i||{}).icon?i:ro(i||{}),u=n.mask;return u&&(u=(u||{}).icon?u:ro(u||{})),a(s,B(B({},n),{},{mask:u}))}}var gm=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.transform,u=s===void 0?Lt:s,f=n.symbol,c=f===void 0?!1:f,p=n.mask,g=p===void 0?null:p,y=n.maskId,w=y===void 0?null:y,_=n.classes,O=_===void 0?[]:_,E=n.attributes,x=E===void 0?{}:E,A=n.styles,I=A===void 0?{}:A;if(i){var M=i.prefix,W=i.iconName,R=i.icon;return _i(B({type:"icon"},i),function(){return bn("beforeDOMElementCreation",{iconDefinition:i,params:n}),io({icons:{main:oo(R),mask:g?oo(g.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:W,transform:B(B({},Lt),u),symbol:c,maskId:w,extra:{attributes:x,styles:I,classes:O}})})}},mm={mixout:function(){return{icon:vm(gm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Vf,n.nodeCallback=pm,n}}},provides:function(i){i.i2svg=function(n){var s=n.node,u=s===void 0?be:s,f=n.callback,c=f===void 0?function(){}:f;return Vf(u,c)},i.generateSvgReplacementMutation=function(n,s){var u=s.iconName,f=s.prefix,c=s.transform,p=s.symbol,g=s.mask,y=s.maskId,w=s.extra;return new Promise(function(_,O){Promise.all([so(u,f),g.iconName?so(g.iconName,g.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(E){var x=di(E,2),A=x[0],I=x[1];_([n,io({icons:{main:A,mask:I},prefix:f,iconName:u,transform:c,symbol:p,maskId:y,extra:w,watchable:!0})])}).catch(O)})},i.generateAbstractIcon=function(n){var s=n.children,u=n.attributes,f=n.main,c=n.transform,p=n.styles,g=gi(p);g.length>0&&(u.style=g);var y;return Xa(c)&&(y=rn("generateAbstractTransformGrouping",{main:f,transform:c,containerWidth:f.width,iconWidth:f.width})),s.push(y||f.icon),{children:s,attributes:u}}}},ym={mixout:function(){return{layer:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.classes,f=u===void 0?[]:u;return _i({type:"layer"},function(){bn("beforeDOMElementCreation",{assembler:n,params:s});var c=[];return n(function(p){Array.isArray(p)?p.map(function(g){c=c.concat(g.abstract)}):c=c.concat(p.abstract)}),[{tag:"span",attributes:{class:["".concat(G.cssPrefix,"-layers")].concat(St(f)).join(" ")},children:c}]})}}}},bm={mixout:function(){return{counter:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.title;var u=s.classes,f=u===void 0?[]:u,c=s.attributes,p=c===void 0?{}:c,g=s.styles,y=g===void 0?{}:g;return _i({type:"counter",content:n},function(){return bn("beforeDOMElementCreation",{content:n,params:s}),Vg({content:n.toString(),extra:{attributes:p,styles:y,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(St(f))}})})}}}},_m={mixout:function(){return{text:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.transform,f=u===void 0?Lt:u,c=s.classes,p=c===void 0?[]:c,g=s.attributes,y=g===void 0?{}:g,w=s.styles,_=w===void 0?{}:w;return _i({type:"text",content:n},function(){return bn("beforeDOMElementCreation",{content:n,params:s}),$f({content:n,transform:B(B({},Lt),f),extra:{attributes:y,styles:_,classes:["".concat(G.cssPrefix,"-layers-text")].concat(St(p))}})})}}},provides:function(i){i.generateLayersText=function(n,s){var u=s.transform,f=s.extra,c=null,p=null;if(Wu){var g=parseInt(getComputedStyle(n).fontSize,10),y=n.getBoundingClientRect();c=y.width/g,p=y.height/g}return Promise.resolve([n,$f({content:n.innerHTML,width:c,height:p,transform:u,extra:f,watchable:!0})])}}},Zf=new RegExp('"',"ug"),Qf=[1105920,1112319],el=B(B(B(B({},{FontAwesome:{normal:"fas",400:"fas"}}),nv),sg),cv),ho=Object.keys(el).reduce(function(a,i){return a[i.toLowerCase()]=el[i],a},{}),wm=Object.keys(ho).reduce(function(a,i){var n=ho[i];return a[i]=n[900]||St(Object.entries(n))[0][1],a},{});function Sm(a){var i=a.replace(Zf,"");return Af(St(i)[0]||"")}function xm(a){var i=a.getPropertyValue("font-feature-settings").includes("ss01"),n=a.getPropertyValue("content"),s=n.replace(Zf,""),u=s.codePointAt(0),f=u>=Qf[0]&&u<=Qf[1],c=s.length===2?s[0]===s[1]:!1;return f||c||i}function Em(a,i){var n=a.replace(/^['"]|['"]$/g,"").toLowerCase(),s=parseInt(i),u=isNaN(s)?"normal":s;return(ho[n]||{})[u]||wm[n]}function tl(a,i){var n="".concat(ug).concat(i.replace(":","-"));return new Promise(function(s,u){if(a.getAttribute(n)!==null)return s();var f=Rn(a.children),c=f.filter(function(de){return de.getAttribute(Ua)===i})[0],p=tn.getComputedStyle(a,i),g=p.getPropertyValue("font-family"),y=g.match(hg),w=p.getPropertyValue("font-weight"),_=p.getPropertyValue("content");if(c&&!y)return a.removeChild(c),s();if(y&&_!=="none"&&_!==""){var O=p.getPropertyValue("content"),E=Em(g,w),x=Sm(O),A=y[0].startsWith("FontAwesome"),I=xm(p),M=to(E,x),W=M;if(A){var R=kg(x);R.iconName&&R.prefix&&(M=R.iconName,E=R.prefix)}if(M&&!I&&(!c||c.getAttribute(za)!==E||c.getAttribute(Ha)!==W)){a.setAttribute(n,W),c&&a.removeChild(c);var Z=cm(),$=Z.extra;$.attributes[Ua]=i,so(M,E).then(function(de){var C=io(B(B({},Z),{},{icons:{main:de,mask:Mf()},prefix:E,iconName:W,extra:$,watchable:!0})),L=be.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?a.insertBefore(L,a.firstChild):a.appendChild(L),L.outerHTML=C.map(function(q){return wr(q)}).join(`
575
575
  `),a.removeAttribute(n),s()}).catch(u)}else s()}else s()})}function Am(a){return Promise.all([tl(a,"::before"),tl(a,"::after")])}function Im(a){return a.parentNode!==document.head&&!~lg.indexOf(a.tagName.toUpperCase())&&!a.getAttribute(Ua)&&(!a.parentNode||a.parentNode.tagName!=="svg")}var Tm=function(i){return!!i&&df.some(function(n){return i.includes(n)})},Om=function(i){if(!i)return[];var n=new Set,s=i.split(/,(?![^()]*\))/).map(function(g){return g.trim()});s=s.flatMap(function(g){return g.includes("(")?g:g.split(",").map(function(y){return y.trim()})});var u=ci(s),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;if(Tm(c)){var p=df.reduce(function(g,y){return g.replace(y,"")},c);p!==""&&p!=="*"&&n.add(p)}}}catch(g){u.e(g)}finally{u.f()}return n};function nl(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wt){var n;if(i)n=a;else if(G.searchPseudoElementsFullScan)n=a.querySelectorAll("*");else{var s=new Set,u=ci(document.styleSheets),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;try{var p=ci(c.cssRules),g;try{for(p.s();!(g=p.n()).done;){var y=g.value,w=Om(y.selectorText),_=ci(w),O;try{for(_.s();!(O=_.n()).done;){var E=O.value;s.add(E)}}catch(A){_.e(A)}finally{_.f()}}}catch(A){p.e(A)}finally{p.f()}}catch(A){G.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(c.href," (").concat(A.message,`)
576
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(A){u.e(A)}finally{u.f()}if(!s.size)return;var x=Array.from(s).join(", ");try{n=a.querySelectorAll(x)}catch{}}return new Promise(function(A,I){var k=Rn(n).filter(Im).map(Am),W=fo.begin("searchPseudoElements");Yf(),Promise.all(k).then(function(){W(),co(),A()}).catch(function(){W(),co(),I()})})}}var Cm={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=nl,n}}},provides:function(i){i.pseudoElements2svg=function(n){var s=n.node,u=s===void 0?be:s;G.searchPseudoElements&&nl(u)}}},rl=!1,Nm={mixout:function(){return{dom:{unwatch:function(){Yf(),rl=!0}}}},hooks:function(){return{bootstrap:function(){Jf(no("mutationObserverCallbacks",{}))},noAuto:function(){sm()},watch:function(n){var s=n.observeMutationsRoot;rl?co():Jf(no("mutationObserverCallbacks",{observeMutationsRoot:s}))}}}},il=function(i){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(s,u){var f=u.toLowerCase().split("-"),c=f[0],p=f.slice(1).join("-");if(c&&p==="h")return s.flipX=!0,s;if(c&&p==="v")return s.flipY=!0,s;if(p=parseFloat(p),isNaN(p))return s;switch(c){case"grow":s.size=s.size+p;break;case"shrink":s.size=s.size-p;break;case"left":s.x=s.x-p;break;case"right":s.x=s.x+p;break;case"up":s.y=s.y-p;break;case"down":s.y=s.y+p;break;case"rotate":s.rotate=s.rotate+p;break}return s},n)},Lm={mixout:function(){return{parse:{transform:function(n){return il(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-transform");return u&&(n.transform=il(u)),n}}},provides:function(i){i.generateAbstractTransformGrouping=function(n){var s=n.main,u=n.transform,f=n.containerWidth,c=n.iconWidth,p={transform:"translate(".concat(f/2," 256)")},g="translate(".concat(u.x*32,", ").concat(u.y*32,") "),y="scale(".concat(u.size/16*(u.flipX?-1:1),", ").concat(u.size/16*(u.flipY?-1:1),") "),w="rotate(".concat(u.rotate," 0 0)"),_={transform:"".concat(g," ").concat(y," ").concat(w)},O={transform:"translate(".concat(c/2*-1," -256)")},E={outer:p,inner:_,path:O};return{tag:"g",attributes:B({},E.outer),children:[{tag:"g",attributes:B({},E.inner),children:[{tag:s.icon.tag,children:s.icon.children,attributes:B(B({},s.icon.attributes),E.path)}]}]}}}},po={x:0,y:0,width:"100%",height:"100%"};function al(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.attributes&&(a.attributes.fill||i)&&(a.attributes.fill="black"),a}function Pm(a){return a.tag==="g"?a.children:[a]}var Fm={hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-mask"),f=u?bi(u.split(" ").map(function(c){return c.trim()})):kf();return f.prefix||(f.prefix=nn()),n.mask=f,n.maskId=s.getAttribute("data-fa-mask-id"),n}}},provides:function(i){i.generateAbstractMask=function(n){var s=n.children,u=n.attributes,f=n.main,c=n.mask,p=n.maskId,g=n.transform,y=f.width,w=f.icon,_=c.width,O=c.icon,E=Eg({transform:g,containerWidth:_,iconWidth:y}),x={tag:"rect",attributes:B(B({},po),{},{fill:"white"})},A=w.children?{children:w.children.map(al)}:{},I={tag:"g",attributes:B({},E.inner),children:[al(B({tag:w.tag,attributes:B(B({},w.attributes),E.path)},A))]},k={tag:"g",attributes:B({},E.outer),children:[I]},W="mask-".concat(p||yf()),R="clip-".concat(p||yf()),Z={tag:"mask",attributes:B(B({},po),{},{id:W,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,k]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:Pm(O)},Z]};return s.push($,{tag:"rect",attributes:B({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(W,")")},po)}),{children:s,attributes:u}}}},Mm={provides:function(i){var n=!1;tn.matchMedia&&(n=tn.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var s=[],u={fill:"currentColor"},f={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};s.push({tag:"path",attributes:B(B({},u),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=B(B({},f),{},{attributeName:"opacity"}),p={tag:"circle",attributes:B(B({},u),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||p.children.push({tag:"animate",attributes:B(B({},f),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:B(B({},c),{},{values:"1;0;1;1;0;1;"})}),s.push(p),s.push({tag:"path",attributes:B(B({},u),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:B(B({},c),{},{values:"1;0;0;0;0;1;"})}]}),n||s.push({tag:"path",attributes:B(B({},u),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:B(B({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:s}}}},km={hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-symbol"),f=u===null?!1:u===""?!0:u;return n.symbol=f,n}}}},Dm=[Tg,mm,ym,bm,_m,Cm,Nm,Lm,Fm,Mm,km];Hg(Dm,{mixoutsTo:tt}),tt.noAuto;var Er=tt.config;tt.library,tt.dom;var ol=tt.parse;tt.findIconDefinition,tt.toHtml;var Wm=tt.icon;tt.layer,tt.text,tt.counter;function Bm(a){return a=a-0,a===a}function sl(a){return Bm(a)?a:(a=a.replace(/[_-]+(.)?/g,(i,n)=>n?n.toUpperCase():""),a.charAt(0).toLowerCase()+a.slice(1))}function Rm(a){return a.charAt(0).toUpperCase()+a.slice(1)}var zn=new Map,$m=1e3;function Um(a){if(zn.has(a))return zn.get(a);const i={};let n=0;const s=a.length;for(;n<s;){const u=a.indexOf(";",n),f=u===-1?s:u,c=a.slice(n,f).trim();if(c){const p=c.indexOf(":");if(p>0){const g=c.slice(0,p).trim(),y=c.slice(p+1).trim();if(g&&y){const w=sl(g);i[w.startsWith("webkit")?Rm(w):w]=y}}}n=f+1}if(zn.size===$m){const u=zn.keys().next().value;u&&zn.delete(u)}return zn.set(a,i),i}function ul(a,i,n={}){if(typeof i=="string")return i;const s=(i.children||[]).map(w=>ul(a,w)),u=i.attributes||{},f={};for(const[w,_]of Object.entries(u))switch(!0){case w==="class":{f.className=_;break}case w==="style":{f.style=Um(String(_));break}case w.startsWith("aria-"):case w.startsWith("data-"):{f[w.toLowerCase()]=_;break}default:f[sl(w)]=_}const{style:c,role:p,"aria-label":g,...y}=n;return c&&(f.style=f.style?{...f.style,...c}:c),p&&(f.role=p),g&&(f["aria-label"]=g,f["aria-hidden"]="false"),a(i.tag,{...y,...f},...s)}var zm=ul.bind(null,M.createElement),fl=(a,i)=>{const n=M.useId();return a||(i?n:void 0)},Hm=class{constructor(a="react-fontawesome"){this.enabled=!1;let i=!1;try{i=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=a,this.enabled=i}log(...a){this.enabled&&console.log(`[${this.scope}]`,...a)}warn(...a){this.enabled&&console.warn(`[${this.scope}]`,...a)}error(...a){this.enabled&&console.error(`[${this.scope}]`,...a)}};typeof process<"u"&&process.env.FA_VERSION;var qm="searchPseudoElementsFullScan"in Er?"7.0.0":"6.0.0",jm=Number.parseInt(qm)>=7,Ar="fa",$t={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},Gm={left:"fa-pull-left",right:"fa-pull-right"},Ym={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Jm={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Ut={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function Km(a){const i=Er.cssPrefix||Er.familyPrefix||Ar;return i===Ar?a:a.replace(new RegExp(String.raw`(?<=^|\s)${Ar}-`,"g"),`${i}-`)}function Xm(a){const{beat:i,fade:n,beatFade:s,bounce:u,shake:f,spin:c,spinPulse:p,spinReverse:g,pulse:y,fixedWidth:w,inverse:_,border:O,flip:E,size:x,rotation:A,pull:I,swapOpacity:k,rotateBy:W,widthAuto:R,className:Z}=a,$=[];return Z&&$.push(...Z.split(" ")),i&&$.push($t.beat),n&&$.push($t.fade),s&&$.push($t.beatFade),u&&$.push($t.bounce),f&&$.push($t.shake),c&&$.push($t.spin),g&&$.push($t.spinReverse),p&&$.push($t.spinPulse),y&&$.push($t.pulse),w&&$.push(Ut.fixedWidth),_&&$.push(Ut.inverse),O&&$.push(Ut.border),E===!0&&$.push(Ut.flip),(E==="horizontal"||E==="both")&&$.push(Ut.flipHorizontal),(E==="vertical"||E==="both")&&$.push(Ut.flipVertical),x!=null&&$.push(Jm[x]),A!=null&&A!==0&&$.push(Ym[A]),I!=null&&$.push(Gm[I]),k&&$.push(Ut.swapOpacity),jm?(W&&$.push(Ut.rotateBy),R&&$.push(Ut.widthAuto),(Er.cssPrefix||Er.familyPrefix||Ar)===Ar?$:$.map(Km)):$}var Vm=a=>typeof a=="object"&&"icon"in a&&!!a.icon;function ll(a){if(a)return Vm(a)?a:ol.icon(a)}function Zm(a){return Object.keys(a)}var cl=new Hm("FontAwesomeIcon"),dl={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Qm=new Set(Object.keys(dl)),Hn=M.forwardRef((a,i)=>{const n={...dl,...a},{icon:s,mask:u,symbol:f,title:c,titleId:p,maskId:g,transform:y}=n,w=fl(g,!!u),_=fl(p,!!c),O=ll(s);if(!O)return cl.error("Icon lookup is undefined",s),null;const E=Xm(n),x=typeof y=="string"?ol.transform(y):y,A=ll(u),I=Wm(O,{...E.length>0&&{classes:E},...x&&{transform:x},...A&&{mask:A},symbol:f,title:c,titleId:_,maskId:w});if(!I)return cl.error("Could not find icon",O),null;const{abstract:k}=I,W={ref:i};for(const R of Zm(n))Qm.has(R)||(W[R]=n[R]);return zm(k[0],W)});Hn.displayName="FontAwesomeIcon";var e0={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},t0={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},hl={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},n0={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};const pl=Dt(({layoutId:a,justId:i,winInfo:n,menuProps:s,toggleMenu:u,anchorPoint:f})=>{console.log("TabTitle justId",i);const c=Nt(a),p=c.getTabTitleTooltip(i),g=w=>{c.removeWin({justId:w})},y=(w,_)=>{c.activeWin({justId:_})};return U.jsxs(U.Fragment,{children:[U.jsx("div",{className:"just-icon",onClick:w=>y(w,i),title:p,children:n.getTabIcon(i,a)}),U.jsx("div",{className:"just-title",onClick:w=>y(w,i),title:p,children:c.getTabTitle(i)??i.title}),U.jsx("div",{className:"just-icon just-close",onClick:()=>g(i),children:U.jsx(Hn,{icon:hl})}),U.jsx(pu,{state:s.state,endTransition:s.endTransition,anchorPoint:f,onClose:()=>u(!1),children:U.jsxs(fi,{onClick:()=>g(i),children:[U.jsx("div",{className:"just-icon"}),U.jsx("div",{className:"just-title",children:"Close"}),U.jsx("div",{className:"just-icon"})]})})]})}),vl=Dt(a=>{const{layoutId:i,isFullScreenView:n,dndAccept:s,winInfo:u,justBranch:f,justId:c,justStack:p,rect:g}=a,y=M.useRef(null),[w,_]=yu(),[O,E]=M.useState({x:0,y:0}),x=Nt(i),[{isDragging:A},I]=Qr.useDrag({type:c.viewId,item:{justBranch:f,justId:c,index:-1},collect:R=>({isDragging:R.isDragging()})}),[,k]=Qr.useDrop({accept:s,collect(R){return{handlerId:R.getHandlerId()}},hover(R,Z){if(!y.current||c===R.justId)return;const $=y.current.getBoundingClientRect(),de=Z.getClientOffset(),C=($.right-$.left)/2,L=de.x-$.left,q=R.justId,ne=c,Y=p.tabs.filter(J=>!ge.isEquals(J,q));let ee=ge.indexOf(Y,ne);L>C&&(ee+=1),R.pos="stack",R.index=ee}});M.useEffect(()=>{if(ge.isEquals(c,x.lastActiveId??null)){if(y.current==null||g==null)return;const R=y.current.getBoundingClientRect();(g.left>R.left||g.right<R.right)&&y.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[x.lastActiveTm]),M.useLayoutEffect(()=>{y.current&&I(k(y))},[k,I]);const W=M.useCallback(R=>{R.preventDefault(),E({x:R.clientX,y:R.clientY}),_(!0)},[_]);return U.jsx("div",{className:_t("just-draggable-title","just-title-menus",{dragging:A,"just-active":ge.isEquals(p.active,c),"last-active":ge.isEquals(x.lastActiveId,c)}),ref:y,onContextMenu:W,children:u.getTabTitle?u.getTabTitle({justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u,menuProps:w,toggleMenu:_,anchorPoint:O}):U.jsx(pl,{justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u,menuProps:w,toggleMenu:_,anchorPoint:O})})}),gl=Dt(({layoutId:a,justBranch:i,isFullScreenView:n})=>{const s=Nt(a),u=()=>{s.removeAllTabs({branch:i})},f=(c=!1)=>{s.fullScreenWin(i,n,c)};return U.jsxs(U.Fragment,{children:[U.jsxs(fi,{className:"just-menu-item",onClick:()=>u(),children:[U.jsx("div",{className:"just-icon"}),U.jsx("div",{className:"just-title",children:"Close All"}),U.jsx("div",{className:"just-icon"})]}),U.jsxs(fi,{className:"just-menu-item",onClick:()=>f(!0),children:[U.jsx("div",{className:"just-icon",children:U.jsx(Hn,{icon:e0})}),U.jsx("div",{className:"just-title",children:n?"F11":"Full"}),U.jsx("div",{className:"just-icon"})]})]})}),ml=Dt(({layoutId:a,isFullScreenView:i,dndAccept:n,justBranch:s,justStack:u,getWinInfo:f,getTabMenu:c})=>{const p=M.useRef(null),[g,y]=M.useState(null),w=Nt(a),_=I=>{w.removeWin({justId:I})},O=I=>{w.activeWin({justId:I})},E=(I,k)=>{w.moveWin({pos:"stack",justId:k.justId,branch:s,index:k.index??-1})},[{isOver:x},A]=Qr.useDrop(()=>({accept:n,collect:I=>({isOver:I.isOver()}),drop(I,k){E(k.getItemType(),k.getItem())},hover(I,k){p.current&&(I.index=-1)}}),[u]);return M.useLayoutEffect(()=>{p.current&&A(p)},[A]),M.useEffect(()=>{if(p.current===null)return;function I(){if(p.current===null)return;const W=p.current.getBoundingClientRect()??null;y(W)}I();const k=new ResizeObserver(I);return k.observe(p.current),window.addEventListener("scroll",I,!0),()=>{k.disconnect(),window.removeEventListener("scroll",I,!0)}},[]),U.jsxs("div",{className:_t("just-win-title"),tabIndex:1,children:[U.jsx("div",{className:_t("just-title-list",{"is-over":x}),ref:p,children:u.tabs.map(I=>U.jsx(vl,{layoutId:a,isFullScreenView:i,dndAccept:n,rect:g,justId:I,justBranch:s,justStack:u,winInfo:f(I)},[...s,ge.toString(I)].join(",")))}),U.jsxs("div",{className:"just-title-menus",children:[U.jsx(bu,{menuButton:U.jsx("div",{className:"just-title-menu",children:U.jsx(Hn,{icon:n0})}),children:u.tabs.map(I=>U.jsxs(fi,{className:_t("just-menu-item",{active:ge.isEquals(u.active,I)}),children:[U.jsx("div",{className:"just-icon",onClick:()=>O(I),children:f(I).getTabIcon(I,a)}),U.jsx("div",{className:"just-title",onClick:()=>O(I),children:w.getTabTitle(I)??I.title}),U.jsx("div",{className:"just-icon just-close",onClick:k=>{k.stopPropagation(),_(I)},children:U.jsx(Hn,{icon:hl})})]},ge.toString(I)))}),U.jsx(bu,{menuButton:U.jsx("div",{className:"just-title-menu",children:U.jsx(Hn,{icon:t0})}),children:c?c(a,s,u,i):U.jsx(gl,{layoutId:a,justBranch:s,justStack:u,isFullScreenView:i})})]})]})}),yl=Dt(a=>{const i=M.useRef(null),{layoutId:n,dndAccept:s,getWinInfo:u,justBranch:f,justStack:c}=a,[p,g]=M.useState(null),y=Nt(n),w=(E,x)=>{x.pos&&(x.pos==="stack"?y.moveWin({pos:x.pos,justId:x.justId,branch:f,index:x.index??-1}):y.moveWin({pos:x.pos,justId:x.justId,branch:f,direction:x.direction??"row"}))},[{isOver:_},O]=Qr.useDrop(()=>({accept:s,collect:E=>({isOver:E.isOver()}),drop(E,x){i.current&&w(x.getItemType(),x.getItem())},hover(E,x){if(!i.current)return;const A=i.current.getBoundingClientRect(),I=x.getClientOffset(),k=(A.right-A.left)/2,W=(A.bottom-A.top)/2,R=I.x-A.left,Z=I.y-A.top,$=R-k,de=Z-W,C=Math.abs($*100/k),L=Math.abs(de*100/W);if(C<60&&L<60){E.pos="stack";const q={top:A.top,left:A.left,width:A.width,height:A.height};g(q)}else{const q=C>L?"row":"column",Y=Math.sign(q==="row"?$:de)>0?"second":"first";E.direction=q,E.pos=Y;const ee={top:Y==="second"&&q==="column"?A.top+A.height/2:A.top,left:Y==="second"&&q==="row"?A.left+A.width/2:A.left,width:q==="row"?A.width/2:A.width,height:q==="column"?A.height/2:A.height};g(ee)}}}),[c]);return M.useLayoutEffect(()=>{i.current&&O(i)},[O]),U.jsxs("div",{className:_t("just-win-body",{isOver:_,"last-active":ge.isEquals(c.active,y.lastActiveId)}),ref:i,children:[c.tabs.map(E=>U.jsx(M.Activity,{mode:ge.isEquals(c.active,E)?"visible":"hidden",children:u(E).getView(E,n)},ge.toString(E))),_&&p!=null&&U.jsx("div",{className:"just-overlay",style:{top:p.top,left:p.left,width:`${p.width}px`,height:`${p.height}px`}})]})}),bl=Dt(({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p})=>{const g=Nt(a),y=g.fullScreenHideTitle,w=n!==!0,_=()=>{f.active&&g.activeWin({justId:f.active})};return U.jsxs("div",{className:"just-win",onFocusCapture:_,tabIndex:1,children:[w&&!y&&U.jsx(ml,{layoutId:a,isFullScreenView:i,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p}),U.jsx(yl,{layoutId:a,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c})]})});var vo,_l;function go(){if(_l)return vo;_l=1;function a(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}return vo=a,vo}var mo,wl;function r0(){if(wl)return mo;wl=1;var a=typeof en=="object"&&en&&en.Object===Object&&en;return mo=a,mo}var yo,Sl;function xl(){if(Sl)return yo;Sl=1;var a=r0(),i=typeof self=="object"&&self&&self.Object===Object&&self,n=a||i||Function("return this")();return yo=n,yo}var bo,El;function i0(){if(El)return bo;El=1;var a=xl(),i=function(){return a.Date.now()};return bo=i,bo}var _o,Al;function a0(){if(Al)return _o;Al=1;var a=/\s/;function i(n){for(var s=n.length;s--&&a.test(n.charAt(s)););return s}return _o=i,_o}var wo,Il;function o0(){if(Il)return wo;Il=1;var a=a0(),i=/^\s+/;function n(s){return s&&s.slice(0,a(s)+1).replace(i,"")}return wo=n,wo}var So,Tl;function Ol(){if(Tl)return So;Tl=1;var a=xl(),i=a.Symbol;return So=i,So}var xo,Cl;function s0(){if(Cl)return xo;Cl=1;var a=Ol(),i=Object.prototype,n=i.hasOwnProperty,s=i.toString,u=a?a.toStringTag:void 0;function f(c){var p=n.call(c,u),g=c[u];try{c[u]=void 0;var y=!0}catch{}var w=s.call(c);return y&&(p?c[u]=g:delete c[u]),w}return xo=f,xo}var Eo,Nl;function u0(){if(Nl)return Eo;Nl=1;var a=Object.prototype,i=a.toString;function n(s){return i.call(s)}return Eo=n,Eo}var Ao,Ll;function f0(){if(Ll)return Ao;Ll=1;var a=Ol(),i=s0(),n=u0(),s="[object Null]",u="[object Undefined]",f=a?a.toStringTag:void 0;function c(p){return p==null?p===void 0?u:s:f&&f in Object(p)?i(p):n(p)}return Ao=c,Ao}var Io,Pl;function l0(){if(Pl)return Io;Pl=1;function a(i){return i!=null&&typeof i=="object"}return Io=a,Io}var To,Fl;function c0(){if(Fl)return To;Fl=1;var a=f0(),i=l0(),n="[object Symbol]";function s(u){return typeof u=="symbol"||i(u)&&a(u)==n}return To=s,To}var Oo,Ml;function kl(){if(Ml)return Oo;Ml=1;var a=o0(),i=go(),n=c0(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;function g(y){if(typeof y=="number")return y;if(n(y))return s;if(i(y)){var w=typeof y.valueOf=="function"?y.valueOf():y;y=i(w)?w+"":w}if(typeof y!="string")return y===0?y:+y;y=a(y);var _=f.test(y);return _||c.test(y)?p(y.slice(2),_?2:8):u.test(y)?s:+y}return Oo=g,Oo}var Co,Dl;function d0(){if(Dl)return Co;Dl=1;var a=go(),i=i0(),n=kl(),s="Expected a function",u=Math.max,f=Math.min;function c(p,g,y){var w,_,O,E,x,A,I=0,k=!1,W=!1,R=!0;if(typeof p!="function")throw new TypeError(s);g=n(g)||0,a(y)&&(k=!!y.leading,W="maxWait"in y,O=W?u(n(y.maxWait)||0,g):O,R="trailing"in y?!!y.trailing:R);function Z(J){var We=w,Ye=_;return w=_=void 0,I=J,E=p.apply(Ye,We),E}function $(J){return I=J,x=setTimeout(L,g),k?Z(J):E}function de(J){var We=J-A,Ye=J-I,Je=g-We;return W?f(Je,O-Ye):Je}function C(J){var We=J-A,Ye=J-I;return A===void 0||We>=g||We<0||W&&Ye>=O}function L(){var J=i();if(C(J))return q(J);x=setTimeout(L,de(J))}function q(J){return x=void 0,R&&w?Z(J):(w=_=void 0,E)}function ne(){x!==void 0&&clearTimeout(x),I=0,w=A=_=x=void 0}function Y(){return x===void 0?E:q(i())}function ee(){var J=i(),We=C(J);if(w=arguments,_=this,A=J,We){if(x===void 0)return $(A);if(W)return clearTimeout(x),x=setTimeout(L,g),Z(A)}return x===void 0&&(x=setTimeout(L,g)),E}return ee.cancel=ne,ee.flush=Y,ee}return Co=c,Co}var No,Wl;function h0(){if(Wl)return No;Wl=1;var a=d0(),i=go(),n="Expected a function";function s(u,f,c){var p=!0,g=!0;if(typeof u!="function")throw new TypeError(n);return i(c)&&(p="leading"in c?!!c.leading:p,g="trailing"in c?!!c.trailing:g),a(u,f,{leading:p,maxWait:f,trailing:g})}return No=s,No}var p0=h0();const v0=ei(p0);var Lo,Bl;function g0(){if(Bl)return Lo;Bl=1;function a(i,n,s){return i===i&&(s!==void 0&&(i=i<=s?i:s),n!==void 0&&(i=i>=n?i:n)),i}return Lo=a,Lo}var Po,Rl;function m0(){if(Rl)return Po;Rl=1;var a=g0(),i=kl();function n(s,u,f){return f===void 0&&(f=u,u=void 0),f!==void 0&&(f=i(f),f=f===f?f:0),u!==void 0&&(u=i(u),u=u===u?u:0),a(i(s),u,f)}return Po=n,Po}var y0=m0();const Fo=ei(y0),b0=1e3/30,$l=Dt(({node:a,containerRef:i,onChange:n,onRelease:s})=>{const u=M.useRef(null),[f,c]=M.useState(!1),p=()=>{f||(u.current.ownerDocument.addEventListener("mousemove",_,!0),u.current.ownerDocument.addEventListener("mouseup",w,!0),c(!0))},g=()=>{u.current&&(u.current.ownerDocument.removeEventListener("mousemove",_,!0),u.current.ownerDocument.removeEventListener("mouseup",w,!0),c(!1))},y=x=>{x.button===0&&(x.preventDefault(),p())},w=x=>{if(g(),!i)return;const A=O(x,a,i);A!==null&&s(A)},_=x=>{x.preventDefault(),i&&E(x,a,i)},O=(x,A,I)=>{if(I.current==null)return null;const k=I.current.getBoundingClientRect(),W=A.direction==="row"?x.clientX:x.clientY,R=A.direction==="row"?k.left:k.top,Z=A.direction==="row"?k.width:k.height,$=Fo(W-R,0,Z),de=Fo(Z-$,0,Z),C=Fo($*100/Z,0,100);return A.type==="split-percentage"?{type:A.type,size:C}:A.type==="split-pixels"?A.primary==="first"?{type:"split-pixels",primary:"first",size:$}:{type:"split-pixels",primary:"second",size:de}:null},E=v0((x,A,I)=>{if(I.current==null)return null;const k=O(x,A,I);k!==null&&n(k)},b0);return M.useEffect(()=>{}),U.jsx("div",{ref:u,className:_t("just-splitter"),onMouseDown:y})}),Ir=Dt(({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:s,node:u,justBranch:f,getWinInfo:c,getTabMenu:p})=>{const g=M.useRef(null),y=Nt(a),w=({size:O})=>{y.updateResize({branch:f,size:O})},_=(O,E)=>O.type==="split-percentage"&&E==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&E===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return U.jsxs("div",{ref:g,className:_t("just-node"),children:[u?.type==="stack"&&U.jsx(bl,{hideTitle:u.hideTitle??n,layoutId:a,isFullScreenView:i,dndAccept:u.dndAccept??s,justStack:u,justBranch:f,getWinInfo:c,getTabMenu:p}),(u?.type==="split-percentage"||u?.type==="split-pixels")&&U.jsxs("div",{className:_t(u.type,{"just-column":u.direction==="column","just-row":u.direction==="row"}),children:[U.jsx(M.Activity,{mode:u.type==="split-pixels"&&u.primary==="first"&&u.primaryHide===!0?"hidden":"visible",children:U.jsx("div",{className:_t("just-first",{"just-primary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first","just-secondary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first")}),style:_(u,"first"),children:U.jsx(Ir,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??s,node:u.first,justBranch:[...f,"first"],getWinInfo:c,getTabMenu:p})})}),!(u.type==="split-pixels"&&(u.noSplitter===!0||u.primaryHide===!0))&&U.jsx($l,{layoutId:a,node:u,justBranch:f,containerRef:g,onChange:w,onRelease:w}),U.jsx(M.Activity,{mode:u.type==="split-pixels"&&u.primary==="second"&&u.primaryHide===!0?"hidden":"visible",children:U.jsx("div",{className:_t("just-second",{"just-primary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"),"just-secondary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"}),style:_(u,"second"),children:U.jsx(Ir,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??s,node:u.second,justBranch:[...f,"second"],getWinInfo:c,getTabMenu:p})})})]},`JustNode-${f.join(",")}`)]})}),_0=Dt(({layoutId:a,getWinInfo:i,getTabMenu:n,initialValue:s})=>{const u=`${a}_FULLSCREEN`,f=Nt(a),c=Nt(u);return M.useEffect(()=>{c.layout===null&&(f.setFullScreenLayoutByBranch(null),f.setFullScreenHideTitle(!1))},[c.layout]),M.useEffect(()=>{f.setLayout(s),f.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),M.useEffect(()=>{const p=()=>{},g=async y=>{y.key==="Escape"?(console.log("esc"),f.setFullScreenLayoutByBranch(null)):y.key==="F11"&&(console.log("F11"),f.fullScreenLayout!==null&&f.setFullScreenLayoutByBranch(null)),y.altKey&&(y.key==="ArrowRight"?c.layout!==null?c.activeNextWin():f.activeNextWin():y.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():f.activePrevWin()))};return window.addEventListener("keydown",g),document.addEventListener("fullscreenchange",p),()=>{window.removeEventListener("keydown",g),document.removeEventListener("fullscreenchange",p)}},[]),M.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",f.fullScreenLayout),c.setLayout(f.fullScreenLayout),f.lastActiveId&&c.activeWin({justId:f.lastActiveId})},[f.fullScreenLayout]),M.useEffect(()=>{c.setFullScreenHideTitle(f.fullScreenHideTitle)},[f.fullScreenHideTitle]),U.jsxs("div",{className:_t("just-layout"),children:[f.fullScreenLayout===null&&U.jsx(Ir,{layoutId:a,isFullScreenView:!1,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:i,getTabMenu:n}),f.fullScreenLayout!==null&&U.jsx(Ir,{layoutId:u,isFullScreenView:!0,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:i,getTabMenu:n})]})});ce.JUST_LAYOUT_TYPES=kt,ce.JustDraggableTitle=vl,ce.JustLayoutView=_0,ce.JustNodeView=Ir,ce.JustSplitter=$l,ce.JustTabMenu=gl,ce.JustTabTitle=pl,ce.JustUtil=ge,ce.JustWinBodyView=yl,ce.JustWinTitleView=ml,ce.JustWinView=bl,ce.justLayoutModule=Eh,ce.stableStringify=Zs,ce.useJustLayoutStore=Nt,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
576
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(A){u.e(A)}finally{u.f()}if(!s.size)return;var x=Array.from(s).join(", ");try{n=a.querySelectorAll(x)}catch{}}return new Promise(function(A,I){var M=Rn(n).filter(Im).map(Am),W=fo.begin("searchPseudoElements");Yf(),Promise.all(M).then(function(){W(),co(),A()}).catch(function(){W(),co(),I()})})}}var Cm={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=nl,n}}},provides:function(i){i.pseudoElements2svg=function(n){var s=n.node,u=s===void 0?be:s;G.searchPseudoElements&&nl(u)}}},rl=!1,Nm={mixout:function(){return{dom:{unwatch:function(){Yf(),rl=!0}}}},hooks:function(){return{bootstrap:function(){Jf(no("mutationObserverCallbacks",{}))},noAuto:function(){sm()},watch:function(n){var s=n.observeMutationsRoot;rl?co():Jf(no("mutationObserverCallbacks",{observeMutationsRoot:s}))}}}},il=function(i){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(s,u){var f=u.toLowerCase().split("-"),c=f[0],p=f.slice(1).join("-");if(c&&p==="h")return s.flipX=!0,s;if(c&&p==="v")return s.flipY=!0,s;if(p=parseFloat(p),isNaN(p))return s;switch(c){case"grow":s.size=s.size+p;break;case"shrink":s.size=s.size-p;break;case"left":s.x=s.x-p;break;case"right":s.x=s.x+p;break;case"up":s.y=s.y-p;break;case"down":s.y=s.y+p;break;case"rotate":s.rotate=s.rotate+p;break}return s},n)},Lm={mixout:function(){return{parse:{transform:function(n){return il(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-transform");return u&&(n.transform=il(u)),n}}},provides:function(i){i.generateAbstractTransformGrouping=function(n){var s=n.main,u=n.transform,f=n.containerWidth,c=n.iconWidth,p={transform:"translate(".concat(f/2," 256)")},g="translate(".concat(u.x*32,", ").concat(u.y*32,") "),y="scale(".concat(u.size/16*(u.flipX?-1:1),", ").concat(u.size/16*(u.flipY?-1:1),") "),w="rotate(".concat(u.rotate," 0 0)"),_={transform:"".concat(g," ").concat(y," ").concat(w)},O={transform:"translate(".concat(c/2*-1," -256)")},E={outer:p,inner:_,path:O};return{tag:"g",attributes:B({},E.outer),children:[{tag:"g",attributes:B({},E.inner),children:[{tag:s.icon.tag,children:s.icon.children,attributes:B(B({},s.icon.attributes),E.path)}]}]}}}},po={x:0,y:0,width:"100%",height:"100%"};function al(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.attributes&&(a.attributes.fill||i)&&(a.attributes.fill="black"),a}function Pm(a){return a.tag==="g"?a.children:[a]}var Fm={hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-mask"),f=u?bi(u.split(" ").map(function(c){return c.trim()})):Mf();return f.prefix||(f.prefix=nn()),n.mask=f,n.maskId=s.getAttribute("data-fa-mask-id"),n}}},provides:function(i){i.generateAbstractMask=function(n){var s=n.children,u=n.attributes,f=n.main,c=n.mask,p=n.maskId,g=n.transform,y=f.width,w=f.icon,_=c.width,O=c.icon,E=Eg({transform:g,containerWidth:_,iconWidth:y}),x={tag:"rect",attributes:B(B({},po),{},{fill:"white"})},A=w.children?{children:w.children.map(al)}:{},I={tag:"g",attributes:B({},E.inner),children:[al(B({tag:w.tag,attributes:B(B({},w.attributes),E.path)},A))]},M={tag:"g",attributes:B({},E.outer),children:[I]},W="mask-".concat(p||yf()),R="clip-".concat(p||yf()),Z={tag:"mask",attributes:B(B({},po),{},{id:W,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,M]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:Pm(O)},Z]};return s.push($,{tag:"rect",attributes:B({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(W,")")},po)}),{children:s,attributes:u}}}},km={provides:function(i){var n=!1;tn.matchMedia&&(n=tn.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var s=[],u={fill:"currentColor"},f={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};s.push({tag:"path",attributes:B(B({},u),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=B(B({},f),{},{attributeName:"opacity"}),p={tag:"circle",attributes:B(B({},u),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||p.children.push({tag:"animate",attributes:B(B({},f),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:B(B({},c),{},{values:"1;0;1;1;0;1;"})}),s.push(p),s.push({tag:"path",attributes:B(B({},u),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:B(B({},c),{},{values:"1;0;0;0;0;1;"})}]}),n||s.push({tag:"path",attributes:B(B({},u),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:B(B({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:s}}}},Mm={hooks:function(){return{parseNodeAttributes:function(n,s){var u=s.getAttribute("data-fa-symbol"),f=u===null?!1:u===""?!0:u;return n.symbol=f,n}}}},Dm=[Tg,mm,ym,bm,_m,Cm,Nm,Lm,Fm,km,Mm];Hg(Dm,{mixoutsTo:tt}),tt.noAuto;var Er=tt.config;tt.library,tt.dom;var ol=tt.parse;tt.findIconDefinition,tt.toHtml;var Wm=tt.icon;tt.layer,tt.text,tt.counter;function Bm(a){return a=a-0,a===a}function sl(a){return Bm(a)?a:(a=a.replace(/[_-]+(.)?/g,(i,n)=>n?n.toUpperCase():""),a.charAt(0).toLowerCase()+a.slice(1))}function Rm(a){return a.charAt(0).toUpperCase()+a.slice(1)}var zn=new Map,$m=1e3;function Um(a){if(zn.has(a))return zn.get(a);const i={};let n=0;const s=a.length;for(;n<s;){const u=a.indexOf(";",n),f=u===-1?s:u,c=a.slice(n,f).trim();if(c){const p=c.indexOf(":");if(p>0){const g=c.slice(0,p).trim(),y=c.slice(p+1).trim();if(g&&y){const w=sl(g);i[w.startsWith("webkit")?Rm(w):w]=y}}}n=f+1}if(zn.size===$m){const u=zn.keys().next().value;u&&zn.delete(u)}return zn.set(a,i),i}function ul(a,i,n={}){if(typeof i=="string")return i;const s=(i.children||[]).map(w=>ul(a,w)),u=i.attributes||{},f={};for(const[w,_]of Object.entries(u))switch(!0){case w==="class":{f.className=_;break}case w==="style":{f.style=Um(String(_));break}case w.startsWith("aria-"):case w.startsWith("data-"):{f[w.toLowerCase()]=_;break}default:f[sl(w)]=_}const{style:c,role:p,"aria-label":g,...y}=n;return c&&(f.style=f.style?{...f.style,...c}:c),p&&(f.role=p),g&&(f["aria-label"]=g,f["aria-hidden"]="false"),a(i.tag,{...y,...f},...s)}var zm=ul.bind(null,k.createElement),fl=(a,i)=>{const n=k.useId();return a||(i?n:void 0)},Hm=class{constructor(a="react-fontawesome"){this.enabled=!1;let i=!1;try{i=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=a,this.enabled=i}log(...a){this.enabled&&console.log(`[${this.scope}]`,...a)}warn(...a){this.enabled&&console.warn(`[${this.scope}]`,...a)}error(...a){this.enabled&&console.error(`[${this.scope}]`,...a)}};typeof process<"u"&&process.env.FA_VERSION;var qm="searchPseudoElementsFullScan"in Er?"7.0.0":"6.0.0",jm=Number.parseInt(qm)>=7,Ar="fa",$t={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},Gm={left:"fa-pull-left",right:"fa-pull-right"},Ym={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Jm={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Ut={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function Km(a){const i=Er.cssPrefix||Er.familyPrefix||Ar;return i===Ar?a:a.replace(new RegExp(String.raw`(?<=^|\s)${Ar}-`,"g"),`${i}-`)}function Xm(a){const{beat:i,fade:n,beatFade:s,bounce:u,shake:f,spin:c,spinPulse:p,spinReverse:g,pulse:y,fixedWidth:w,inverse:_,border:O,flip:E,size:x,rotation:A,pull:I,swapOpacity:M,rotateBy:W,widthAuto:R,className:Z}=a,$=[];return Z&&$.push(...Z.split(" ")),i&&$.push($t.beat),n&&$.push($t.fade),s&&$.push($t.beatFade),u&&$.push($t.bounce),f&&$.push($t.shake),c&&$.push($t.spin),g&&$.push($t.spinReverse),p&&$.push($t.spinPulse),y&&$.push($t.pulse),w&&$.push(Ut.fixedWidth),_&&$.push(Ut.inverse),O&&$.push(Ut.border),E===!0&&$.push(Ut.flip),(E==="horizontal"||E==="both")&&$.push(Ut.flipHorizontal),(E==="vertical"||E==="both")&&$.push(Ut.flipVertical),x!=null&&$.push(Jm[x]),A!=null&&A!==0&&$.push(Ym[A]),I!=null&&$.push(Gm[I]),M&&$.push(Ut.swapOpacity),jm?(W&&$.push(Ut.rotateBy),R&&$.push(Ut.widthAuto),(Er.cssPrefix||Er.familyPrefix||Ar)===Ar?$:$.map(Km)):$}var Vm=a=>typeof a=="object"&&"icon"in a&&!!a.icon;function ll(a){if(a)return Vm(a)?a:ol.icon(a)}function Zm(a){return Object.keys(a)}var cl=new Hm("FontAwesomeIcon"),dl={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Qm=new Set(Object.keys(dl)),Hn=k.forwardRef((a,i)=>{const n={...dl,...a},{icon:s,mask:u,symbol:f,title:c,titleId:p,maskId:g,transform:y}=n,w=fl(g,!!u),_=fl(p,!!c),O=ll(s);if(!O)return cl.error("Icon lookup is undefined",s),null;const E=Xm(n),x=typeof y=="string"?ol.transform(y):y,A=ll(u),I=Wm(O,{...E.length>0&&{classes:E},...x&&{transform:x},...A&&{mask:A},symbol:f,title:c,titleId:_,maskId:w});if(!I)return cl.error("Could not find icon",O),null;const{abstract:M}=I,W={ref:i};for(const R of Zm(n))Qm.has(R)||(W[R]=n[R]);return zm(M[0],W)});Hn.displayName="FontAwesomeIcon";var e0={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},t0={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},hl={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},n0={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};const pl=Dt(({layoutId:a,justId:i,winInfo:n,menuProps:s,toggleMenu:u,anchorPoint:f})=>{const c=Nt(a),p=c.getTabTitleTooltip(i),g=w=>{c.removeWin({justId:w})},y=(w,_)=>{c.activeWin({justId:_})};return U.jsxs(U.Fragment,{children:[U.jsx("div",{className:"just-icon",onClick:w=>y(w,i),title:p,children:n.getTabIcon(i,a)}),U.jsx("div",{className:"just-title",onClick:w=>y(w,i),title:p,children:c.getTabTitle(i)??i.title}),U.jsx("div",{className:"just-icon just-close",onClick:()=>g(i),children:U.jsx(Hn,{icon:hl})}),U.jsx(pu,{state:s.state,endTransition:s.endTransition,anchorPoint:f,onClose:()=>u(!1),children:U.jsxs(fi,{onClick:()=>g(i),children:[U.jsx("div",{className:"just-icon"}),U.jsx("div",{className:"just-title",children:"Close"}),U.jsx("div",{className:"just-icon"})]})})]})}),vl=Dt(a=>{const{layoutId:i,isFullScreenView:n,dndAccept:s,winInfo:u,justBranch:f,justId:c,justStack:p,rect:g}=a,y=k.useRef(null),[w,_]=yu(),[O,E]=k.useState({x:0,y:0}),x=Nt(i),[{isDragging:A},I]=Qr.useDrag({type:c.viewId,item:{justBranch:f,justId:c,index:-1},collect:R=>({isDragging:R.isDragging()})}),[,M]=Qr.useDrop({accept:s,collect(R){return{handlerId:R.getHandlerId()}},hover(R,Z){if(!y.current||c===R.justId)return;const $=y.current.getBoundingClientRect(),de=Z.getClientOffset(),C=($.right-$.left)/2,L=de.x-$.left,q=R.justId,ne=c,Y=p.tabs.filter(J=>!ge.isEquals(J,q));let ee=ge.indexOf(Y,ne);L>C&&(ee+=1),R.pos="stack",R.index=ee}});k.useEffect(()=>{if(ge.isEquals(c,x.lastActiveId??null)){if(y.current==null||g==null)return;const R=y.current.getBoundingClientRect();(g.left>R.left||g.right<R.right)&&y.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[x.lastActiveTm]),k.useLayoutEffect(()=>{y.current&&I(M(y))},[M,I]);const W=k.useCallback(R=>{R.preventDefault(),E({x:R.clientX,y:R.clientY}),_(!0)},[_]);return U.jsx("div",{className:_t("just-draggable-title","just-title-menus",{dragging:A,"just-active":ge.isEquals(p.active,c),"last-active":ge.isEquals(x.lastActiveId,c)}),ref:y,onContextMenu:W,children:u.getTabTitle?u.getTabTitle({justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u,menuProps:w,toggleMenu:_,anchorPoint:O}):U.jsx(pl,{justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u,menuProps:w,toggleMenu:_,anchorPoint:O})})}),gl=Dt(({layoutId:a,justBranch:i,isFullScreenView:n})=>{const s=Nt(a),u=()=>{s.removeAllTabs({branch:i})},f=(c=!1)=>{s.fullScreenWin(i,n,c)};return U.jsxs(U.Fragment,{children:[U.jsxs(fi,{className:"just-menu-item",onClick:()=>u(),children:[U.jsx("div",{className:"just-icon"}),U.jsx("div",{className:"just-title",children:"Close All"}),U.jsx("div",{className:"just-icon"})]}),U.jsxs(fi,{className:"just-menu-item",onClick:()=>f(!0),children:[U.jsx("div",{className:"just-icon",children:U.jsx(Hn,{icon:e0})}),U.jsx("div",{className:"just-title",children:n?"F11":"Full"}),U.jsx("div",{className:"just-icon"})]})]})}),ml=Dt(({layoutId:a,isFullScreenView:i,dndAccept:n,justBranch:s,justStack:u,getWinInfo:f,getTabMenu:c})=>{const p=k.useRef(null),[g,y]=k.useState(null),w=Nt(a),_=I=>{w.removeWin({justId:I})},O=I=>{w.activeWin({justId:I})},E=(I,M)=>{w.moveWin({pos:"stack",justId:M.justId,branch:s,index:M.index??-1})},[{isOver:x},A]=Qr.useDrop(()=>({accept:n,collect:I=>({isOver:I.isOver()}),drop(I,M){E(M.getItemType(),M.getItem())},hover(I,M){p.current&&(I.index=-1)}}),[u]);return k.useLayoutEffect(()=>{p.current&&A(p)},[A]),k.useEffect(()=>{if(p.current===null)return;function I(){if(p.current===null)return;const W=p.current.getBoundingClientRect()??null;y(W)}I();const M=new ResizeObserver(I);return M.observe(p.current),window.addEventListener("scroll",I,!0),()=>{M.disconnect(),window.removeEventListener("scroll",I,!0)}},[]),U.jsxs("div",{className:_t("just-win-title"),tabIndex:1,children:[U.jsx("div",{className:_t("just-title-list",{"is-over":x}),ref:p,children:u.tabs.map(I=>U.jsx(vl,{layoutId:a,isFullScreenView:i,dndAccept:n,rect:g,justId:I,justBranch:s,justStack:u,winInfo:f(I)},[...s,ge.toString(I)].join(",")))}),U.jsxs("div",{className:"just-title-menus",children:[U.jsx(bu,{menuButton:U.jsx("div",{className:"just-title-menu",children:U.jsx(Hn,{icon:n0})}),children:u.tabs.map(I=>U.jsxs(fi,{className:_t("just-menu-item",{active:ge.isEquals(u.active,I)}),children:[U.jsx("div",{className:"just-icon",onClick:()=>O(I),children:f(I).getTabIcon(I,a)}),U.jsx("div",{className:"just-title",onClick:()=>O(I),children:w.getTabTitle(I)??I.title}),U.jsx("div",{className:"just-icon just-close",onClick:M=>{M.stopPropagation(),_(I)},children:U.jsx(Hn,{icon:hl})})]},ge.toString(I)))}),U.jsx(bu,{menuButton:U.jsx("div",{className:"just-title-menu",children:U.jsx(Hn,{icon:t0})}),children:c?c(a,s,u,i):U.jsx(gl,{layoutId:a,justBranch:s,justStack:u,isFullScreenView:i})})]})]})}),yl=Dt(a=>{const i=k.useRef(null),{layoutId:n,dndAccept:s,getWinInfo:u,justBranch:f,justStack:c}=a,[p,g]=k.useState(null),y=Nt(n),w=(E,x)=>{x.pos&&(x.pos==="stack"?y.moveWin({pos:x.pos,justId:x.justId,branch:f,index:x.index??-1}):y.moveWin({pos:x.pos,justId:x.justId,branch:f,direction:x.direction??"row"}))},[{isOver:_},O]=Qr.useDrop(()=>({accept:s,collect:E=>({isOver:E.isOver()}),drop(E,x){i.current&&w(x.getItemType(),x.getItem())},hover(E,x){if(!i.current)return;const A=i.current.getBoundingClientRect(),I=x.getClientOffset(),M=(A.right-A.left)/2,W=(A.bottom-A.top)/2,R=I.x-A.left,Z=I.y-A.top,$=R-M,de=Z-W,C=Math.abs($*100/M),L=Math.abs(de*100/W);if(C<60&&L<60){E.pos="stack";const q={top:A.top,left:A.left,width:A.width,height:A.height};g(q)}else{const q=C>L?"row":"column",Y=Math.sign(q==="row"?$:de)>0?"second":"first";E.direction=q,E.pos=Y;const ee={top:Y==="second"&&q==="column"?A.top+A.height/2:A.top,left:Y==="second"&&q==="row"?A.left+A.width/2:A.left,width:q==="row"?A.width/2:A.width,height:q==="column"?A.height/2:A.height};g(ee)}}}),[c]);return k.useLayoutEffect(()=>{i.current&&O(i)},[O]),U.jsxs("div",{className:_t("just-win-body",{isOver:_,"last-active":ge.isEquals(c.active,y.lastActiveId)}),ref:i,children:[c.tabs.map(E=>U.jsx(k.Activity,{mode:ge.isEquals(c.active,E)?"visible":"hidden",children:u(E).getView(E,n)},ge.toString(E))),_&&p!=null&&U.jsx("div",{className:"just-overlay",style:{top:p.top,left:p.left,width:`${p.width}px`,height:`${p.height}px`}})]})}),bl=Dt(({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p})=>{const g=Nt(a),y=g.fullScreenHideTitle,w=n!==!0,_=()=>{f.active&&g.activeWin({justId:f.active})};return U.jsxs("div",{className:"just-win",onFocusCapture:_,tabIndex:1,children:[w&&!y&&U.jsx(ml,{layoutId:a,isFullScreenView:i,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p}),U.jsx(yl,{layoutId:a,dndAccept:s,justBranch:u,justStack:f,getWinInfo:c})]})});var vo,_l;function go(){if(_l)return vo;_l=1;function a(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}return vo=a,vo}var mo,wl;function r0(){if(wl)return mo;wl=1;var a=typeof en=="object"&&en&&en.Object===Object&&en;return mo=a,mo}var yo,Sl;function xl(){if(Sl)return yo;Sl=1;var a=r0(),i=typeof self=="object"&&self&&self.Object===Object&&self,n=a||i||Function("return this")();return yo=n,yo}var bo,El;function i0(){if(El)return bo;El=1;var a=xl(),i=function(){return a.Date.now()};return bo=i,bo}var _o,Al;function a0(){if(Al)return _o;Al=1;var a=/\s/;function i(n){for(var s=n.length;s--&&a.test(n.charAt(s)););return s}return _o=i,_o}var wo,Il;function o0(){if(Il)return wo;Il=1;var a=a0(),i=/^\s+/;function n(s){return s&&s.slice(0,a(s)+1).replace(i,"")}return wo=n,wo}var So,Tl;function Ol(){if(Tl)return So;Tl=1;var a=xl(),i=a.Symbol;return So=i,So}var xo,Cl;function s0(){if(Cl)return xo;Cl=1;var a=Ol(),i=Object.prototype,n=i.hasOwnProperty,s=i.toString,u=a?a.toStringTag:void 0;function f(c){var p=n.call(c,u),g=c[u];try{c[u]=void 0;var y=!0}catch{}var w=s.call(c);return y&&(p?c[u]=g:delete c[u]),w}return xo=f,xo}var Eo,Nl;function u0(){if(Nl)return Eo;Nl=1;var a=Object.prototype,i=a.toString;function n(s){return i.call(s)}return Eo=n,Eo}var Ao,Ll;function f0(){if(Ll)return Ao;Ll=1;var a=Ol(),i=s0(),n=u0(),s="[object Null]",u="[object Undefined]",f=a?a.toStringTag:void 0;function c(p){return p==null?p===void 0?u:s:f&&f in Object(p)?i(p):n(p)}return Ao=c,Ao}var Io,Pl;function l0(){if(Pl)return Io;Pl=1;function a(i){return i!=null&&typeof i=="object"}return Io=a,Io}var To,Fl;function c0(){if(Fl)return To;Fl=1;var a=f0(),i=l0(),n="[object Symbol]";function s(u){return typeof u=="symbol"||i(u)&&a(u)==n}return To=s,To}var Oo,kl;function Ml(){if(kl)return Oo;kl=1;var a=o0(),i=go(),n=c0(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;function g(y){if(typeof y=="number")return y;if(n(y))return s;if(i(y)){var w=typeof y.valueOf=="function"?y.valueOf():y;y=i(w)?w+"":w}if(typeof y!="string")return y===0?y:+y;y=a(y);var _=f.test(y);return _||c.test(y)?p(y.slice(2),_?2:8):u.test(y)?s:+y}return Oo=g,Oo}var Co,Dl;function d0(){if(Dl)return Co;Dl=1;var a=go(),i=i0(),n=Ml(),s="Expected a function",u=Math.max,f=Math.min;function c(p,g,y){var w,_,O,E,x,A,I=0,M=!1,W=!1,R=!0;if(typeof p!="function")throw new TypeError(s);g=n(g)||0,a(y)&&(M=!!y.leading,W="maxWait"in y,O=W?u(n(y.maxWait)||0,g):O,R="trailing"in y?!!y.trailing:R);function Z(J){var We=w,Ye=_;return w=_=void 0,I=J,E=p.apply(Ye,We),E}function $(J){return I=J,x=setTimeout(L,g),M?Z(J):E}function de(J){var We=J-A,Ye=J-I,Je=g-We;return W?f(Je,O-Ye):Je}function C(J){var We=J-A,Ye=J-I;return A===void 0||We>=g||We<0||W&&Ye>=O}function L(){var J=i();if(C(J))return q(J);x=setTimeout(L,de(J))}function q(J){return x=void 0,R&&w?Z(J):(w=_=void 0,E)}function ne(){x!==void 0&&clearTimeout(x),I=0,w=A=_=x=void 0}function Y(){return x===void 0?E:q(i())}function ee(){var J=i(),We=C(J);if(w=arguments,_=this,A=J,We){if(x===void 0)return $(A);if(W)return clearTimeout(x),x=setTimeout(L,g),Z(A)}return x===void 0&&(x=setTimeout(L,g)),E}return ee.cancel=ne,ee.flush=Y,ee}return Co=c,Co}var No,Wl;function h0(){if(Wl)return No;Wl=1;var a=d0(),i=go(),n="Expected a function";function s(u,f,c){var p=!0,g=!0;if(typeof u!="function")throw new TypeError(n);return i(c)&&(p="leading"in c?!!c.leading:p,g="trailing"in c?!!c.trailing:g),a(u,f,{leading:p,maxWait:f,trailing:g})}return No=s,No}var p0=h0();const v0=ei(p0);var Lo,Bl;function g0(){if(Bl)return Lo;Bl=1;function a(i,n,s){return i===i&&(s!==void 0&&(i=i<=s?i:s),n!==void 0&&(i=i>=n?i:n)),i}return Lo=a,Lo}var Po,Rl;function m0(){if(Rl)return Po;Rl=1;var a=g0(),i=Ml();function n(s,u,f){return f===void 0&&(f=u,u=void 0),f!==void 0&&(f=i(f),f=f===f?f:0),u!==void 0&&(u=i(u),u=u===u?u:0),a(i(s),u,f)}return Po=n,Po}var y0=m0();const Fo=ei(y0),b0=1e3/30,$l=Dt(({node:a,containerRef:i,onChange:n,onRelease:s})=>{const u=k.useRef(null),[f,c]=k.useState(!1),p=()=>{f||(u.current.ownerDocument.addEventListener("mousemove",_,!0),u.current.ownerDocument.addEventListener("mouseup",w,!0),c(!0))},g=()=>{u.current&&(u.current.ownerDocument.removeEventListener("mousemove",_,!0),u.current.ownerDocument.removeEventListener("mouseup",w,!0),c(!1))},y=x=>{x.button===0&&(x.preventDefault(),p())},w=x=>{if(g(),!i)return;const A=O(x,a,i);A!==null&&s(A)},_=x=>{x.preventDefault(),i&&E(x,a,i)},O=(x,A,I)=>{if(I.current==null)return null;const M=I.current.getBoundingClientRect(),W=A.direction==="row"?x.clientX:x.clientY,R=A.direction==="row"?M.left:M.top,Z=A.direction==="row"?M.width:M.height,$=Fo(W-R,0,Z),de=Fo(Z-$,0,Z),C=Fo($*100/Z,0,100);return A.type==="split-percentage"?{type:A.type,size:C}:A.type==="split-pixels"?A.primary==="first"?{type:"split-pixels",primary:"first",size:$}:{type:"split-pixels",primary:"second",size:de}:null},E=v0((x,A,I)=>{if(I.current==null)return null;const M=O(x,A,I);M!==null&&n(M)},b0);return k.useEffect(()=>{}),U.jsx("div",{ref:u,className:_t("just-splitter"),onMouseDown:y})}),Ir=Dt(({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:s,node:u,justBranch:f,getWinInfo:c,getTabMenu:p})=>{const g=k.useRef(null),y=Nt(a),w=({size:O})=>{y.updateResize({branch:f,size:O})},_=(O,E)=>O.type==="split-percentage"&&E==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&E===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return U.jsxs("div",{ref:g,className:_t("just-node"),children:[u?.type==="stack"&&U.jsx(bl,{hideTitle:u.hideTitle??n,layoutId:a,isFullScreenView:i,dndAccept:u.dndAccept??s,justStack:u,justBranch:f,getWinInfo:c,getTabMenu:p}),(u?.type==="split-percentage"||u?.type==="split-pixels")&&U.jsxs("div",{className:_t(u.type,{"just-column":u.direction==="column","just-row":u.direction==="row"}),children:[U.jsx(k.Activity,{mode:u.type==="split-pixels"&&u.primary==="first"&&u.primaryHide===!0?"hidden":"visible",children:U.jsx("div",{className:_t("just-first",{"just-primary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first","just-secondary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first")}),style:_(u,"first"),children:U.jsx(Ir,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??s,node:u.first,justBranch:[...f,"first"],getWinInfo:c,getTabMenu:p})})}),!(u.type==="split-pixels"&&(u.noSplitter===!0||u.primaryHide===!0))&&U.jsx($l,{layoutId:a,node:u,justBranch:f,containerRef:g,onChange:w,onRelease:w}),U.jsx(k.Activity,{mode:u.type==="split-pixels"&&u.primary==="second"&&u.primaryHide===!0?"hidden":"visible",children:U.jsx("div",{className:_t("just-second",{"just-primary":!(u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"),"just-secondary":u.type==="split-percentage"||u.type==="split-pixels"&&u.primary==="first"}),style:_(u,"second"),children:U.jsx(Ir,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??s,node:u.second,justBranch:[...f,"second"],getWinInfo:c,getTabMenu:p})})})]},`JustNode-${f.join(",")}`)]})}),_0=Dt(({layoutId:a,getWinInfo:i,getTabMenu:n,initialValue:s})=>{const u=`${a}_FULLSCREEN`,f=Nt(a),c=Nt(u);return k.useEffect(()=>{c.layout===null&&(f.setFullScreenLayoutByBranch(null),f.setFullScreenHideTitle(!1))},[c.layout]),k.useEffect(()=>{f.setLayout(s),f.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),k.useEffect(()=>{const p=()=>{},g=async y=>{(y.key==="Escape"||y.key==="F11"&&f.fullScreenLayout!==null)&&f.setFullScreenLayoutByBranch(null),y.altKey&&(y.key==="ArrowRight"?c.layout!==null?c.activeNextWin():f.activeNextWin():y.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():f.activePrevWin()))};return window.addEventListener("keydown",g),document.addEventListener("fullscreenchange",p),()=>{window.removeEventListener("keydown",g),document.removeEventListener("fullscreenchange",p)}},[]),k.useEffect(()=>{c.setLayout(f.fullScreenLayout),f.lastActiveId&&c.activeWin({justId:f.lastActiveId})},[f.fullScreenLayout]),k.useEffect(()=>{c.setFullScreenHideTitle(f.fullScreenHideTitle)},[f.fullScreenHideTitle]),U.jsxs("div",{className:_t("just-layout"),children:[f.fullScreenLayout===null&&U.jsx(Ir,{layoutId:a,isFullScreenView:!1,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:i,getTabMenu:n}),f.fullScreenLayout!==null&&U.jsx(Ir,{layoutId:u,isFullScreenView:!0,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:i,getTabMenu:n})]})});ce.JUST_LAYOUT_TYPES=Mt,ce.JustDraggableTitle=vl,ce.JustLayoutView=_0,ce.JustNodeView=Ir,ce.JustSplitter=$l,ce.JustTabMenu=gl,ce.JustTabTitle=pl,ce.JustUtil=ge,ce.JustWinBodyView=yl,ce.JustWinTitleView=ml,ce.JustWinView=bl,ce.justLayoutModule=Eh,ce.stableStringify=Zs,ce.useJustLayoutStore=Nt,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kangtae49/just-layout",
3
3
  "private": false,
4
- "version": "0.0.21",
4
+ "version": "0.0.22",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"