@kangtae49/just-layout 0.0.18 → 0.0.20

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.umd.js CHANGED
@@ -1,26 +1,26 @@
1
- (function(de,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("inversify"),require("mobx"),require("inversify-react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","inversify","mobx","inversify-react","react/jsx-runtime","react-dom"],O):(de=typeof globalThis<"u"?globalThis:de||self,O(de.JustLayout={},de.React,de.inversify,de.mobx,de.inversifyReact,de.jsxRuntime,de.ReactDOM))})(this,(function(de,O,ti,hr,Oh,$,pr){"use strict";function fu(a){return JSON.stringify(ba(a))}function ba(a){return Array.isArray(a)?a.map(ba):a&&typeof a=="object"?Object.fromEntries(Object.entries(a).sort((r,n)=>r[0].localeCompare(n[0])).map(([r,n])=>[r,ba(n)])):a}const Ft={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var vr={exports:{}};var Ch=vr.exports,lu;function Nh(){return lu||(lu=1,(function(a,r){(function(){var n,o="4.17.23",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",y=500,w="__lodash_placeholder__",S=1,C=2,x=4,I=1,T=2,E=1,L=2,W=4,z=8,Z=16,R=32,ce=64,N=128,D=256,q=512,ee=30,Y="...",ie=800,K=16,We=1,Ye=2,Je=3,It=1/0,Ue=9007199254740991,jo=17976931348623157e292,Tt=NaN,nt=4294967295,Ti=nt-1,Ei=nt>>>1,Cr=[["ary",N],["bind",E],["bindKey",L],["curry",z],["curryRight",Z],["flip",q],["partial",R],["partialRight",ce],["rearg",D]],zt="[object Arguments]",Sn="[object Array]",Nr="[object AsyncFunction]",_n="[object Boolean]",an="[object Date]",Pr="[object DOMException]",Gn="[object Error]",Yn="[object Function]",Ai="[object GeneratorFunction]",Ae="[object Map]",on="[object Number]",Oi="[object Null]",rt="[object Object]",ze="[object Promise]",Jn="[object Proxy]",Oe="[object RegExp]",Ke="[object Set]",sn="[object String]",Be="[object Symbol]",Go="[object Undefined]",xn="[object WeakMap]",Yo="[object WeakSet]",In="[object ArrayBuffer]",He="[object DataView]",Kn="[object Float32Array]",Lr="[object Float64Array]",Tn="[object Int8Array]",En="[object Int16Array]",Dr="[object Int32Array]",Mr="[object Uint8Array]",Vn="[object Uint8ClampedArray]",Fr="[object Uint16Array]",kr="[object Uint32Array]",Ci=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,Le=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,Ie=RegExp(Ve.source),Xn=RegExp(it.source),Jo=/<%-([\s\S]+?)%>/g,Ko=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,Vo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xo=/^\w*$/,Ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wr=/[\\^$.*+?()[\]{}|]/g,Zo=RegExp(Wr.source),Ht=/^\s+/,Br=/\s/,Rr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zn=/\{\n\/\* \[wrapped with (.+)\] \*/,_y=/,? & /,xy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Iy=/[()=,{}\[\]\/\s]/,Ty=/\\(\\)?/g,Ey=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nc=/\w*$/,Ay=/^[-+]0x[0-9a-f]+$/i,Oy=/^0b[01]+$/i,Cy=/^\[object .+?Constructor\]$/,Ny=/^0o[0-7]+$/i,Py=/^(?:0|[1-9]\d*)$/,Ly=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pi=/($^)/,Dy=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",My="\\u0300-\\u036f",Fy="\\ufe20-\\ufe2f",ky="\\u20d0-\\u20ff",rc=My+Fy+ky,ic="\\u2700-\\u27bf",ac="a-z\\xdf-\\xf6\\xf8-\\xff",Wy="\\xac\\xb1\\xd7\\xf7",By="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ry="\\u2000-\\u206f",$y=" \\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",oc="A-Z\\xc0-\\xd6\\xd8-\\xde",sc="\\ufe0e\\ufe0f",uc=Wy+By+Ry+$y,Qo="['’]",Uy="["+Li+"]",fc="["+uc+"]",Di="["+rc+"]",lc="\\d+",zy="["+ic+"]",cc="["+ac+"]",dc="[^"+Li+uc+lc+ic+ac+oc+"]",es="\\ud83c[\\udffb-\\udfff]",Hy="(?:"+Di+"|"+es+")",hc="[^"+Li+"]",ts="(?:\\ud83c[\\udde6-\\uddff]){2}",ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Qn="["+oc+"]",pc="\\u200d",gc="(?:"+cc+"|"+dc+")",qy="(?:"+Qn+"|"+dc+")",vc="(?:"+Qo+"(?:d|ll|m|re|s|t|ve))?",mc="(?:"+Qo+"(?:D|LL|M|RE|S|T|VE))?",yc=Hy+"?",bc="["+sc+"]?",jy="(?:"+pc+"(?:"+[hc,ts,ns].join("|")+")"+bc+yc+")*",Gy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wc=bc+yc+jy,Jy="(?:"+[zy,ts,ns].join("|")+")"+wc,Ky="(?:"+[hc+Di+"?",Di,ts,ns,Uy].join("|")+")",Vy=RegExp(Qo,"g"),Xy=RegExp(Di,"g"),rs=RegExp(es+"(?="+es+")|"+Ky+wc,"g"),Zy=RegExp([Qn+"?"+cc+"+"+vc+"(?="+[fc,Qn,"$"].join("|")+")",qy+"+"+mc+"(?="+[fc,Qn+gc,"$"].join("|")+")",Qn+"?"+gc+"+"+vc,Qn+"+"+mc,Yy,Gy,lc,Jy].join("|"),"g"),Qy=RegExp("["+pc+Li+rc+sc+"]"),e1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,t1=["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"],n1=-1,we={};we[Kn]=we[Lr]=we[Tn]=we[En]=we[Dr]=we[Mr]=we[Vn]=we[Fr]=we[kr]=!0,we[zt]=we[Sn]=we[In]=we[_n]=we[He]=we[an]=we[Gn]=we[Yn]=we[Ae]=we[on]=we[rt]=we[Oe]=we[Ke]=we[sn]=we[xn]=!1;var ye={};ye[zt]=ye[Sn]=ye[In]=ye[He]=ye[_n]=ye[an]=ye[Kn]=ye[Lr]=ye[Tn]=ye[En]=ye[Dr]=ye[Ae]=ye[on]=ye[rt]=ye[Oe]=ye[Ke]=ye[sn]=ye[Be]=ye[Mr]=ye[Vn]=ye[Fr]=ye[kr]=!0,ye[Gn]=ye[Yn]=ye[xn]=!1;var r1={À:"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"},i1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},o1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},s1=parseFloat,u1=parseInt,Sc=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,f1=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Sc||f1||Function("return this")(),is=r&&!r.nodeType&&r,On=is&&!0&&a&&!a.nodeType&&a,_c=On&&On.exports===is,as=_c&&Sc.process,dt=(function(){try{var b=On&&On.require&&On.require("util").types;return b||as&&as.binding&&as.binding("util")}catch{}})(),xc=dt&&dt.isArrayBuffer,Ic=dt&&dt.isDate,Tc=dt&&dt.isMap,Ec=dt&&dt.isRegExp,Ac=dt&&dt.isSet,Oc=dt&&dt.isTypedArray;function at(b,P,A){switch(A.length){case 0:return b.call(P);case 1:return b.call(P,A[0]);case 2:return b.call(P,A[0],A[1]);case 3:return b.call(P,A[0],A[1],A[2])}return b.apply(P,A)}function l1(b,P,A,H){for(var Q=-1,pe=b==null?0:b.length;++Q<pe;){var Ne=b[Q];P(H,Ne,A(Ne),b)}return H}function ht(b,P){for(var A=-1,H=b==null?0:b.length;++A<H&&P(b[A],A,b)!==!1;);return b}function c1(b,P){for(var A=b==null?0:b.length;A--&&P(b[A],A,b)!==!1;);return b}function Cc(b,P){for(var A=-1,H=b==null?0:b.length;++A<H;)if(!P(b[A],A,b))return!1;return!0}function un(b,P){for(var A=-1,H=b==null?0:b.length,Q=0,pe=[];++A<H;){var Ne=b[A];P(Ne,A,b)&&(pe[Q++]=Ne)}return pe}function Mi(b,P){var A=b==null?0:b.length;return!!A&&er(b,P,0)>-1}function os(b,P,A){for(var H=-1,Q=b==null?0:b.length;++H<Q;)if(A(P,b[H]))return!0;return!1}function Se(b,P){for(var A=-1,H=b==null?0:b.length,Q=Array(H);++A<H;)Q[A]=P(b[A],A,b);return Q}function fn(b,P){for(var A=-1,H=P.length,Q=b.length;++A<H;)b[Q+A]=P[A];return b}function ss(b,P,A,H){var Q=-1,pe=b==null?0:b.length;for(H&&pe&&(A=b[++Q]);++Q<pe;)A=P(A,b[Q],Q,b);return A}function d1(b,P,A,H){var Q=b==null?0:b.length;for(H&&Q&&(A=b[--Q]);Q--;)A=P(A,b[Q],Q,b);return A}function us(b,P){for(var A=-1,H=b==null?0:b.length;++A<H;)if(P(b[A],A,b))return!0;return!1}var h1=fs("length");function p1(b){return b.split("")}function g1(b){return b.match(xy)||[]}function Nc(b,P,A){var H;return A(b,function(Q,pe,Ne){if(P(Q,pe,Ne))return H=pe,!1}),H}function Fi(b,P,A,H){for(var Q=b.length,pe=A+(H?1:-1);H?pe--:++pe<Q;)if(P(b[pe],pe,b))return pe;return-1}function er(b,P,A){return P===P?A1(b,P,A):Fi(b,Pc,A)}function v1(b,P,A,H){for(var Q=A-1,pe=b.length;++Q<pe;)if(H(b[Q],P))return Q;return-1}function Pc(b){return b!==b}function Lc(b,P){var A=b==null?0:b.length;return A?cs(b,P)/A:Tt}function fs(b){return function(P){return P==null?n:P[b]}}function ls(b){return function(P){return b==null?n:b[P]}}function Dc(b,P,A,H,Q){return Q(b,function(pe,Ne,me){A=H?(H=!1,pe):P(A,pe,Ne,me)}),A}function m1(b,P){var A=b.length;for(b.sort(P);A--;)b[A]=b[A].value;return b}function cs(b,P){for(var A,H=-1,Q=b.length;++H<Q;){var pe=P(b[H]);pe!==n&&(A=A===n?pe:A+pe)}return A}function ds(b,P){for(var A=-1,H=Array(b);++A<b;)H[A]=P(A);return H}function y1(b,P){return Se(P,function(A){return[A,b[A]]})}function Mc(b){return b&&b.slice(0,Bc(b)+1).replace(Ht,"")}function ot(b){return function(P){return b(P)}}function hs(b,P){return Se(P,function(A){return b[A]})}function $r(b,P){return b.has(P)}function Fc(b,P){for(var A=-1,H=b.length;++A<H&&er(P,b[A],0)>-1;);return A}function kc(b,P){for(var A=b.length;A--&&er(P,b[A],0)>-1;);return A}function b1(b,P){for(var A=b.length,H=0;A--;)b[A]===P&&++H;return H}var w1=ls(r1),S1=ls(i1);function _1(b){return"\\"+o1[b]}function x1(b,P){return b==null?n:b[P]}function tr(b){return Qy.test(b)}function I1(b){return e1.test(b)}function T1(b){for(var P,A=[];!(P=b.next()).done;)A.push(P.value);return A}function ps(b){var P=-1,A=Array(b.size);return b.forEach(function(H,Q){A[++P]=[Q,H]}),A}function Wc(b,P){return function(A){return b(P(A))}}function ln(b,P){for(var A=-1,H=b.length,Q=0,pe=[];++A<H;){var Ne=b[A];(Ne===P||Ne===w)&&(b[A]=w,pe[Q++]=A)}return pe}function ki(b){var P=-1,A=Array(b.size);return b.forEach(function(H){A[++P]=H}),A}function E1(b){var P=-1,A=Array(b.size);return b.forEach(function(H){A[++P]=[H,H]}),A}function A1(b,P,A){for(var H=A-1,Q=b.length;++H<Q;)if(b[H]===P)return H;return-1}function O1(b,P,A){for(var H=A+1;H--;)if(b[H]===P)return H;return H}function nr(b){return tr(b)?N1(b):h1(b)}function Et(b){return tr(b)?P1(b):p1(b)}function Bc(b){for(var P=b.length;P--&&Br.test(b.charAt(P)););return P}var C1=ls(a1);function N1(b){for(var P=rs.lastIndex=0;rs.test(b);)++P;return P}function P1(b){return b.match(rs)||[]}function L1(b){return b.match(Zy)||[]}var D1=(function b(P){P=P==null?Fe:rr.defaults(Fe.Object(),P,rr.pick(Fe,t1));var A=P.Array,H=P.Date,Q=P.Error,pe=P.Function,Ne=P.Math,me=P.Object,gs=P.RegExp,M1=P.String,pt=P.TypeError,Wi=A.prototype,F1=pe.prototype,ir=me.prototype,Bi=P["__core-js_shared__"],Ri=F1.toString,ge=ir.hasOwnProperty,k1=0,Rc=(function(){var e=/[^.]+$/.exec(Bi&&Bi.keys&&Bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),$i=ir.toString,W1=Ri.call(me),B1=Fe._,R1=gs("^"+Ri.call(ge).replace(Wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ui=_c?P.Buffer:n,cn=P.Symbol,zi=P.Uint8Array,$c=Ui?Ui.allocUnsafe:n,Hi=Wc(me.getPrototypeOf,me),Uc=me.create,zc=ir.propertyIsEnumerable,qi=Wi.splice,Hc=cn?cn.isConcatSpreadable:n,Ur=cn?cn.iterator:n,Cn=cn?cn.toStringTag:n,ji=(function(){try{var e=Mn(me,"defineProperty");return e({},"",{}),e}catch{}})(),$1=P.clearTimeout!==Fe.clearTimeout&&P.clearTimeout,U1=H&&H.now!==Fe.Date.now&&H.now,z1=P.setTimeout!==Fe.setTimeout&&P.setTimeout,Gi=Ne.ceil,Yi=Ne.floor,vs=me.getOwnPropertySymbols,H1=Ui?Ui.isBuffer:n,qc=P.isFinite,q1=Wi.join,j1=Wc(me.keys,me),Pe=Ne.max,Re=Ne.min,G1=H.now,Y1=P.parseInt,jc=Ne.random,J1=Wi.reverse,ms=Mn(P,"DataView"),zr=Mn(P,"Map"),ys=Mn(P,"Promise"),ar=Mn(P,"Set"),Hr=Mn(P,"WeakMap"),qr=Mn(me,"create"),Ji=Hr&&new Hr,or={},K1=Fn(ms),V1=Fn(zr),X1=Fn(ys),Z1=Fn(ar),Q1=Fn(Hr),Ki=cn?cn.prototype:n,jr=Ki?Ki.valueOf:n,Gc=Ki?Ki.toString:n;function d(e){if(xe(e)&&!te(e)&&!(e instanceof ue)){if(e instanceof gt)return e;if(ge.call(e,"__wrapped__"))return Yd(e)}return new gt(e)}var sr=(function(){function e(){}return function(t){if(!_e(t))return{};if(Uc)return Uc(t);e.prototype=t;var i=new e;return e.prototype=n,i}})();function Vi(){}function gt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}d.templateSettings={escape:Jo,evaluate:Ko,interpolate:An,variable:"",imports:{_:d}},d.prototype=Vi.prototype,d.prototype.constructor=d,gt.prototype=sr(Vi.prototype),gt.prototype.constructor=gt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nt,this.__views__=[]}function eb(){var e=new ue(this.__wrapped__);return e.__actions__=Xe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Xe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Xe(this.__views__),e}function tb(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function nb(){var e=this.__wrapped__.value(),t=this.__dir__,i=te(e),u=t<0,l=i?e.length:0,h=pw(0,l,this.__views__),g=h.start,m=h.end,_=m-g,M=u?m:g-1,F=this.__iteratees__,k=F.length,U=0,j=Re(_,this.__takeCount__);if(!i||!u&&l==_&&j==_)return vd(e,this.__actions__);var V=[];e:for(;_--&&U<j;){M+=t;for(var ae=-1,X=e[M];++ae<k;){var se=F[ae],le=se.iteratee,ft=se.type,Ge=le(X);if(ft==Ye)X=Ge;else if(!Ge){if(ft==We)continue e;break e}}V[U++]=X}return V}ue.prototype=sr(Vi.prototype),ue.prototype.constructor=ue;function Nn(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var u=e[t];this.set(u[0],u[1])}}function rb(){this.__data__=qr?qr(null):{},this.size=0}function ib(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function ab(e){var t=this.__data__;if(qr){var i=t[e];return i===v?n:i}return ge.call(t,e)?t[e]:n}function ob(e){var t=this.__data__;return qr?t[e]!==n:ge.call(t,e)}function sb(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=qr&&t===n?v:t,this}Nn.prototype.clear=rb,Nn.prototype.delete=ib,Nn.prototype.get=ab,Nn.prototype.has=ob,Nn.prototype.set=sb;function qt(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var u=e[t];this.set(u[0],u[1])}}function ub(){this.__data__=[],this.size=0}function fb(e){var t=this.__data__,i=Xi(t,e);if(i<0)return!1;var u=t.length-1;return i==u?t.pop():qi.call(t,i,1),--this.size,!0}function lb(e){var t=this.__data__,i=Xi(t,e);return i<0?n:t[i][1]}function cb(e){return Xi(this.__data__,e)>-1}function db(e,t){var i=this.__data__,u=Xi(i,e);return u<0?(++this.size,i.push([e,t])):i[u][1]=t,this}qt.prototype.clear=ub,qt.prototype.delete=fb,qt.prototype.get=lb,qt.prototype.has=cb,qt.prototype.set=db;function jt(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var u=e[t];this.set(u[0],u[1])}}function hb(){this.size=0,this.__data__={hash:new Nn,map:new(zr||qt),string:new Nn}}function pb(e){var t=fa(this,e).delete(e);return this.size-=t?1:0,t}function gb(e){return fa(this,e).get(e)}function vb(e){return fa(this,e).has(e)}function mb(e,t){var i=fa(this,e),u=i.size;return i.set(e,t),this.size+=i.size==u?0:1,this}jt.prototype.clear=hb,jt.prototype.delete=pb,jt.prototype.get=gb,jt.prototype.has=vb,jt.prototype.set=mb;function Pn(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new jt;++t<i;)this.add(e[t])}function yb(e){return this.__data__.set(e,v),this}function bb(e){return this.__data__.has(e)}Pn.prototype.add=Pn.prototype.push=yb,Pn.prototype.has=bb;function At(e){var t=this.__data__=new qt(e);this.size=t.size}function wb(){this.__data__=new qt,this.size=0}function Sb(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function _b(e){return this.__data__.get(e)}function xb(e){return this.__data__.has(e)}function Ib(e,t){var i=this.__data__;if(i instanceof qt){var u=i.__data__;if(!zr||u.length<s-1)return u.push([e,t]),this.size=++i.size,this;i=this.__data__=new jt(u)}return i.set(e,t),this.size=i.size,this}At.prototype.clear=wb,At.prototype.delete=Sb,At.prototype.get=_b,At.prototype.has=xb,At.prototype.set=Ib;function Yc(e,t){var i=te(e),u=!i&&kn(e),l=!i&&!u&&vn(e),h=!i&&!u&&!l&&cr(e),g=i||u||l||h,m=g?ds(e.length,M1):[],_=m.length;for(var M in e)(t||ge.call(e,M))&&!(g&&(M=="length"||l&&(M=="offset"||M=="parent")||h&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Kt(M,_)))&&m.push(M);return m}function Jc(e){var t=e.length;return t?e[Cs(0,t-1)]:n}function Tb(e,t){return la(Xe(e),Ln(t,0,e.length))}function Eb(e){return la(Xe(e))}function bs(e,t,i){(i!==n&&!Ot(e[t],i)||i===n&&!(t in e))&&Gt(e,t,i)}function Gr(e,t,i){var u=e[t];(!(ge.call(e,t)&&Ot(u,i))||i===n&&!(t in e))&&Gt(e,t,i)}function Xi(e,t){for(var i=e.length;i--;)if(Ot(e[i][0],t))return i;return-1}function Ab(e,t,i,u){return dn(e,function(l,h,g){t(u,l,i(l),g)}),u}function Kc(e,t){return e&&Dt(t,De(t),e)}function Ob(e,t){return e&&Dt(t,Qe(t),e)}function Gt(e,t,i){t=="__proto__"&&ji?ji(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function ws(e,t){for(var i=-1,u=t.length,l=A(u),h=e==null;++i<u;)l[i]=h?n:eu(e,t[i]);return l}function Ln(e,t,i){return e===e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function vt(e,t,i,u,l,h){var g,m=t&S,_=t&C,M=t&x;if(i&&(g=l?i(e,u,l,h):i(e)),g!==n)return g;if(!_e(e))return e;var F=te(e);if(F){if(g=vw(e),!m)return Xe(e,g)}else{var k=$e(e),U=k==Yn||k==Ai;if(vn(e))return bd(e,m);if(k==rt||k==zt||U&&!l){if(g=_||U?{}:Bd(e),!m)return _?aw(e,Ob(g,e)):iw(e,Kc(g,e))}else{if(!ye[k])return l?e:{};g=mw(e,k,m)}}h||(h=new At);var j=h.get(e);if(j)return j;h.set(e,g),hh(e)?e.forEach(function(X){g.add(vt(X,t,i,X,e,h))}):ch(e)&&e.forEach(function(X,se){g.set(se,vt(X,t,i,se,e,h))});var V=M?_?$s:Rs:_?Qe:De,ae=F?n:V(e);return ht(ae||e,function(X,se){ae&&(se=X,X=e[se]),Gr(g,se,vt(X,t,i,se,e,h))}),g}function Cb(e){var t=De(e);return function(i){return Vc(i,e,t)}}function Vc(e,t,i){var u=i.length;if(e==null)return!u;for(e=me(e);u--;){var l=i[u],h=t[l],g=e[l];if(g===n&&!(l in e)||!h(g))return!1}return!0}function Xc(e,t,i){if(typeof e!="function")throw new pt(c);return Qr(function(){e.apply(n,i)},t)}function Yr(e,t,i,u){var l=-1,h=Mi,g=!0,m=e.length,_=[],M=t.length;if(!m)return _;i&&(t=Se(t,ot(i))),u?(h=os,g=!1):t.length>=s&&(h=$r,g=!1,t=new Pn(t));e:for(;++l<m;){var F=e[l],k=i==null?F:i(F);if(F=u||F!==0?F:0,g&&k===k){for(var U=M;U--;)if(t[U]===k)continue e;_.push(F)}else h(t,k,u)||_.push(F)}return _}var dn=Id(Lt),Zc=Id(_s,!0);function Nb(e,t){var i=!0;return dn(e,function(u,l,h){return i=!!t(u,l,h),i}),i}function Zi(e,t,i){for(var u=-1,l=e.length;++u<l;){var h=e[u],g=t(h);if(g!=null&&(m===n?g===g&&!ut(g):i(g,m)))var m=g,_=h}return _}function Pb(e,t,i,u){var l=e.length;for(i=re(i),i<0&&(i=-i>l?0:l+i),u=u===n||u>l?l:re(u),u<0&&(u+=l),u=i>u?0:gh(u);i<u;)e[i++]=t;return e}function Qc(e,t){var i=[];return dn(e,function(u,l,h){t(u,l,h)&&i.push(u)}),i}function ke(e,t,i,u,l){var h=-1,g=e.length;for(i||(i=bw),l||(l=[]);++h<g;){var m=e[h];t>0&&i(m)?t>1?ke(m,t-1,i,u,l):fn(l,m):u||(l[l.length]=m)}return l}var Ss=Td(),ed=Td(!0);function Lt(e,t){return e&&Ss(e,t,De)}function _s(e,t){return e&&ed(e,t,De)}function Qi(e,t){return un(t,function(i){return Vt(e[i])})}function Dn(e,t){t=pn(t,e);for(var i=0,u=t.length;e!=null&&i<u;)e=e[Mt(t[i++])];return i&&i==u?e:n}function td(e,t,i){var u=t(e);return te(e)?u:fn(u,i(e))}function qe(e){return e==null?e===n?Go:Oi:Cn&&Cn in me(e)?hw(e):Ew(e)}function xs(e,t){return e>t}function Lb(e,t){return e!=null&&ge.call(e,t)}function Db(e,t){return e!=null&&t in me(e)}function Mb(e,t,i){return e>=Re(t,i)&&e<Pe(t,i)}function Is(e,t,i){for(var u=i?os:Mi,l=e[0].length,h=e.length,g=h,m=A(h),_=1/0,M=[];g--;){var F=e[g];g&&t&&(F=Se(F,ot(t))),_=Re(F.length,_),m[g]=!i&&(t||l>=120&&F.length>=120)?new Pn(g&&F):n}F=e[0];var k=-1,U=m[0];e:for(;++k<l&&M.length<_;){var j=F[k],V=t?t(j):j;if(j=i||j!==0?j:0,!(U?$r(U,V):u(M,V,i))){for(g=h;--g;){var ae=m[g];if(!(ae?$r(ae,V):u(e[g],V,i)))continue e}U&&U.push(V),M.push(j)}}return M}function Fb(e,t,i,u){return Lt(e,function(l,h,g){t(u,i(l),h,g)}),u}function Jr(e,t,i){t=pn(t,e),e=zd(e,t);var u=e==null?e:e[Mt(yt(t))];return u==null?n:at(u,e,i)}function nd(e){return xe(e)&&qe(e)==zt}function kb(e){return xe(e)&&qe(e)==In}function Wb(e){return xe(e)&&qe(e)==an}function Kr(e,t,i,u,l){return e===t?!0:e==null||t==null||!xe(e)&&!xe(t)?e!==e&&t!==t:Bb(e,t,i,u,Kr,l)}function Bb(e,t,i,u,l,h){var g=te(e),m=te(t),_=g?Sn:$e(e),M=m?Sn:$e(t);_=_==zt?rt:_,M=M==zt?rt:M;var F=_==rt,k=M==rt,U=_==M;if(U&&vn(e)){if(!vn(t))return!1;g=!0,F=!1}if(U&&!F)return h||(h=new At),g||cr(e)?Fd(e,t,i,u,l,h):cw(e,t,_,i,u,l,h);if(!(i&I)){var j=F&&ge.call(e,"__wrapped__"),V=k&&ge.call(t,"__wrapped__");if(j||V){var ae=j?e.value():e,X=V?t.value():t;return h||(h=new At),l(ae,X,i,u,h)}}return U?(h||(h=new At),dw(e,t,i,u,l,h)):!1}function Rb(e){return xe(e)&&$e(e)==Ae}function Ts(e,t,i,u){var l=i.length,h=l,g=!u;if(e==null)return!h;for(e=me(e);l--;){var m=i[l];if(g&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++l<h;){m=i[l];var _=m[0],M=e[_],F=m[1];if(g&&m[2]){if(M===n&&!(_ in e))return!1}else{var k=new At;if(u)var U=u(M,F,_,e,t,k);if(!(U===n?Kr(F,M,I|T,u,k):U))return!1}}return!0}function rd(e){if(!_e(e)||Sw(e))return!1;var t=Vt(e)?R1:Cy;return t.test(Fn(e))}function $b(e){return xe(e)&&qe(e)==Oe}function Ub(e){return xe(e)&&$e(e)==Ke}function zb(e){return xe(e)&&va(e.length)&&!!we[qe(e)]}function id(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?te(e)?sd(e[0],e[1]):od(e):Eh(e)}function Es(e){if(!Zr(e))return j1(e);var t=[];for(var i in me(e))ge.call(e,i)&&i!="constructor"&&t.push(i);return t}function Hb(e){if(!_e(e))return Tw(e);var t=Zr(e),i=[];for(var u in e)u=="constructor"&&(t||!ge.call(e,u))||i.push(u);return i}function As(e,t){return e<t}function ad(e,t){var i=-1,u=Ze(e)?A(e.length):[];return dn(e,function(l,h,g){u[++i]=t(l,h,g)}),u}function od(e){var t=zs(e);return t.length==1&&t[0][2]?$d(t[0][0],t[0][1]):function(i){return i===e||Ts(i,e,t)}}function sd(e,t){return qs(e)&&Rd(t)?$d(Mt(e),t):function(i){var u=eu(i,e);return u===n&&u===t?tu(i,e):Kr(t,u,I|T)}}function ea(e,t,i,u,l){e!==t&&Ss(t,function(h,g){if(l||(l=new At),_e(h))qb(e,t,g,i,ea,u,l);else{var m=u?u(Gs(e,g),h,g+"",e,t,l):n;m===n&&(m=h),bs(e,g,m)}},Qe)}function qb(e,t,i,u,l,h,g){var m=Gs(e,i),_=Gs(t,i),M=g.get(_);if(M){bs(e,i,M);return}var F=h?h(m,_,i+"",e,t,g):n,k=F===n;if(k){var U=te(_),j=!U&&vn(_),V=!U&&!j&&cr(_);F=_,U||j||V?te(m)?F=m:Te(m)?F=Xe(m):j?(k=!1,F=bd(_,!0)):V?(k=!1,F=wd(_,!0)):F=[]:ei(_)||kn(_)?(F=m,kn(m)?F=vh(m):(!_e(m)||Vt(m))&&(F=Bd(_))):k=!1}k&&(g.set(_,F),l(F,_,u,h,g),g.delete(_)),bs(e,i,F)}function ud(e,t){var i=e.length;if(i)return t+=t<0?i:0,Kt(t,i)?e[t]:n}function fd(e,t,i){t.length?t=Se(t,function(h){return te(h)?function(g){return Dn(g,h.length===1?h[0]:h)}:h}):t=[et];var u=-1;t=Se(t,ot(J()));var l=ad(e,function(h,g,m){var _=Se(t,function(M){return M(h)});return{criteria:_,index:++u,value:h}});return m1(l,function(h,g){return rw(h,g,i)})}function jb(e,t){return ld(e,t,function(i,u){return tu(e,u)})}function ld(e,t,i){for(var u=-1,l=t.length,h={};++u<l;){var g=t[u],m=Dn(e,g);i(m,g)&&Vr(h,pn(g,e),m)}return h}function Gb(e){return function(t){return Dn(t,e)}}function Os(e,t,i,u){var l=u?v1:er,h=-1,g=t.length,m=e;for(e===t&&(t=Xe(t)),i&&(m=Se(e,ot(i)));++h<g;)for(var _=0,M=t[h],F=i?i(M):M;(_=l(m,F,_,u))>-1;)m!==e&&qi.call(m,_,1),qi.call(e,_,1);return e}function cd(e,t){for(var i=e?t.length:0,u=i-1;i--;){var l=t[i];if(i==u||l!==h){var h=l;Kt(l)?qi.call(e,l,1):Ls(e,l)}}return e}function Cs(e,t){return e+Yi(jc()*(t-e+1))}function Yb(e,t,i,u){for(var l=-1,h=Pe(Gi((t-e)/(i||1)),0),g=A(h);h--;)g[u?h:++l]=e,e+=i;return g}function Ns(e,t){var i="";if(!e||t<1||t>Ue)return i;do t%2&&(i+=e),t=Yi(t/2),t&&(e+=e);while(t);return i}function oe(e,t){return Ys(Ud(e,t,et),e+"")}function Jb(e){return Jc(dr(e))}function Kb(e,t){var i=dr(e);return la(i,Ln(t,0,i.length))}function Vr(e,t,i,u){if(!_e(e))return e;t=pn(t,e);for(var l=-1,h=t.length,g=h-1,m=e;m!=null&&++l<h;){var _=Mt(t[l]),M=i;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(l!=g){var F=m[_];M=u?u(F,_,m):n,M===n&&(M=_e(F)?F:Kt(t[l+1])?[]:{})}Gr(m,_,M),m=m[_]}return e}var dd=Ji?function(e,t){return Ji.set(e,t),e}:et,Vb=ji?function(e,t){return ji(e,"toString",{configurable:!0,enumerable:!1,value:ru(t),writable:!0})}:et;function Xb(e){return la(dr(e))}function mt(e,t,i){var u=-1,l=e.length;t<0&&(t=-t>l?0:l+t),i=i>l?l:i,i<0&&(i+=l),l=t>i?0:i-t>>>0,t>>>=0;for(var h=A(l);++u<l;)h[u]=e[u+t];return h}function Zb(e,t){var i;return dn(e,function(u,l,h){return i=t(u,l,h),!i}),!!i}function ta(e,t,i){var u=0,l=e==null?u:e.length;if(typeof t=="number"&&t===t&&l<=Ei){for(;u<l;){var h=u+l>>>1,g=e[h];g!==null&&!ut(g)&&(i?g<=t:g<t)?u=h+1:l=h}return l}return Ps(e,t,et,i)}function Ps(e,t,i,u){var l=0,h=e==null?0:e.length;if(h===0)return 0;t=i(t);for(var g=t!==t,m=t===null,_=ut(t),M=t===n;l<h;){var F=Yi((l+h)/2),k=i(e[F]),U=k!==n,j=k===null,V=k===k,ae=ut(k);if(g)var X=u||V;else M?X=V&&(u||U):m?X=V&&U&&(u||!j):_?X=V&&U&&!j&&(u||!ae):j||ae?X=!1:X=u?k<=t:k<t;X?l=F+1:h=F}return Re(h,Ti)}function hd(e,t){for(var i=-1,u=e.length,l=0,h=[];++i<u;){var g=e[i],m=t?t(g):g;if(!i||!Ot(m,_)){var _=m;h[l++]=g===0?0:g}}return h}function pd(e){return typeof e=="number"?e:ut(e)?Tt:+e}function st(e){if(typeof e=="string")return e;if(te(e))return Se(e,st)+"";if(ut(e))return Gc?Gc.call(e):"";var t=e+"";return t=="0"&&1/e==-It?"-0":t}function hn(e,t,i){var u=-1,l=Mi,h=e.length,g=!0,m=[],_=m;if(i)g=!1,l=os;else if(h>=s){var M=t?null:fw(e);if(M)return ki(M);g=!1,l=$r,_=new Pn}else _=t?[]:m;e:for(;++u<h;){var F=e[u],k=t?t(F):F;if(F=i||F!==0?F:0,g&&k===k){for(var U=_.length;U--;)if(_[U]===k)continue e;t&&_.push(k),m.push(F)}else l(_,k,i)||(_!==m&&_.push(k),m.push(F))}return m}function Ls(e,t){t=pn(t,e);var i=-1,u=t.length;if(!u)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++i<u;){var h=t[i];if(typeof h=="string"){if(h==="__proto__"&&!ge.call(e,"__proto__"))return!1;if(h==="constructor"&&i+1<u&&typeof t[i+1]=="string"&&t[i+1]==="prototype"){if(l&&i===0)continue;return!1}}}var g=zd(e,t);return g==null||delete g[Mt(yt(t))]}function gd(e,t,i,u){return Vr(e,t,i(Dn(e,t)),u)}function na(e,t,i,u){for(var l=e.length,h=u?l:-1;(u?h--:++h<l)&&t(e[h],h,e););return i?mt(e,u?0:h,u?h+1:l):mt(e,u?h+1:0,u?l:h)}function vd(e,t){var i=e;return i instanceof ue&&(i=i.value()),ss(t,function(u,l){return l.func.apply(l.thisArg,fn([u],l.args))},i)}function Ds(e,t,i){var u=e.length;if(u<2)return u?hn(e[0]):[];for(var l=-1,h=A(u);++l<u;)for(var g=e[l],m=-1;++m<u;)m!=l&&(h[l]=Yr(h[l]||g,e[m],t,i));return hn(ke(h,1),t,i)}function md(e,t,i){for(var u=-1,l=e.length,h=t.length,g={};++u<l;){var m=u<h?t[u]:n;i(g,e[u],m)}return g}function Ms(e){return Te(e)?e:[]}function Fs(e){return typeof e=="function"?e:et}function pn(e,t){return te(e)?e:qs(e,t)?[e]:Gd(ve(e))}var Qb=oe;function gn(e,t,i){var u=e.length;return i=i===n?u:i,!t&&i>=u?e:mt(e,t,i)}var yd=$1||function(e){return Fe.clearTimeout(e)};function bd(e,t){if(t)return e.slice();var i=e.length,u=$c?$c(i):new e.constructor(i);return e.copy(u),u}function ks(e){var t=new e.constructor(e.byteLength);return new zi(t).set(new zi(e)),t}function ew(e,t){var i=t?ks(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function tw(e){var t=new e.constructor(e.source,nc.exec(e));return t.lastIndex=e.lastIndex,t}function nw(e){return jr?me(jr.call(e)):{}}function wd(e,t){var i=t?ks(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Sd(e,t){if(e!==t){var i=e!==n,u=e===null,l=e===e,h=ut(e),g=t!==n,m=t===null,_=t===t,M=ut(t);if(!m&&!M&&!h&&e>t||h&&g&&_&&!m&&!M||u&&g&&_||!i&&_||!l)return 1;if(!u&&!h&&!M&&e<t||M&&i&&l&&!u&&!h||m&&i&&l||!g&&l||!_)return-1}return 0}function rw(e,t,i){for(var u=-1,l=e.criteria,h=t.criteria,g=l.length,m=i.length;++u<g;){var _=Sd(l[u],h[u]);if(_){if(u>=m)return _;var M=i[u];return _*(M=="desc"?-1:1)}}return e.index-t.index}function _d(e,t,i,u){for(var l=-1,h=e.length,g=i.length,m=-1,_=t.length,M=Pe(h-g,0),F=A(_+M),k=!u;++m<_;)F[m]=t[m];for(;++l<g;)(k||l<h)&&(F[i[l]]=e[l]);for(;M--;)F[m++]=e[l++];return F}function xd(e,t,i,u){for(var l=-1,h=e.length,g=-1,m=i.length,_=-1,M=t.length,F=Pe(h-m,0),k=A(F+M),U=!u;++l<F;)k[l]=e[l];for(var j=l;++_<M;)k[j+_]=t[_];for(;++g<m;)(U||l<h)&&(k[j+i[g]]=e[l++]);return k}function Xe(e,t){var i=-1,u=e.length;for(t||(t=A(u));++i<u;)t[i]=e[i];return t}function Dt(e,t,i,u){var l=!i;i||(i={});for(var h=-1,g=t.length;++h<g;){var m=t[h],_=u?u(i[m],e[m],m,i,e):n;_===n&&(_=e[m]),l?Gt(i,m,_):Gr(i,m,_)}return i}function iw(e,t){return Dt(e,Hs(e),t)}function aw(e,t){return Dt(e,kd(e),t)}function ra(e,t){return function(i,u){var l=te(i)?l1:Ab,h=t?t():{};return l(i,e,J(u,2),h)}}function ur(e){return oe(function(t,i){var u=-1,l=i.length,h=l>1?i[l-1]:n,g=l>2?i[2]:n;for(h=e.length>3&&typeof h=="function"?(l--,h):n,g&&je(i[0],i[1],g)&&(h=l<3?n:h,l=1),t=me(t);++u<l;){var m=i[u];m&&e(t,m,u,h)}return t})}function Id(e,t){return function(i,u){if(i==null)return i;if(!Ze(i))return e(i,u);for(var l=i.length,h=t?l:-1,g=me(i);(t?h--:++h<l)&&u(g[h],h,g)!==!1;);return i}}function Td(e){return function(t,i,u){for(var l=-1,h=me(t),g=u(t),m=g.length;m--;){var _=g[e?m:++l];if(i(h[_],_,h)===!1)break}return t}}function ow(e,t,i){var u=t&E,l=Xr(e);function h(){var g=this&&this!==Fe&&this instanceof h?l:e;return g.apply(u?i:this,arguments)}return h}function Ed(e){return function(t){t=ve(t);var i=tr(t)?Et(t):n,u=i?i[0]:t.charAt(0),l=i?gn(i,1).join(""):t.slice(1);return u[e]()+l}}function fr(e){return function(t){return ss(Ih(xh(t).replace(Vy,"")),e,"")}}function Xr(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 i=sr(e.prototype),u=e.apply(i,t);return _e(u)?u:i}}function sw(e,t,i){var u=Xr(e);function l(){for(var h=arguments.length,g=A(h),m=h,_=lr(l);m--;)g[m]=arguments[m];var M=h<3&&g[0]!==_&&g[h-1]!==_?[]:ln(g,_);if(h-=M.length,h<i)return Pd(e,t,ia,l.placeholder,n,g,M,n,n,i-h);var F=this&&this!==Fe&&this instanceof l?u:e;return at(F,this,g)}return l}function Ad(e){return function(t,i,u){var l=me(t);if(!Ze(t)){var h=J(i,3);t=De(t),i=function(m){return h(l[m],m,l)}}var g=e(t,i,u);return g>-1?l[h?t[g]:g]:n}}function Od(e){return Jt(function(t){var i=t.length,u=i,l=gt.prototype.thru;for(e&&t.reverse();u--;){var h=t[u];if(typeof h!="function")throw new pt(c);if(l&&!g&&ua(h)=="wrapper")var g=new gt([],!0)}for(u=g?u:i;++u<i;){h=t[u];var m=ua(h),_=m=="wrapper"?Us(h):n;_&&js(_[0])&&_[1]==(N|z|R|D)&&!_[4].length&&_[9]==1?g=g[ua(_[0])].apply(g,_[3]):g=h.length==1&&js(h)?g[m]():g.thru(h)}return function(){var M=arguments,F=M[0];if(g&&M.length==1&&te(F))return g.plant(F).value();for(var k=0,U=i?t[k].apply(this,M):F;++k<i;)U=t[k].call(this,U);return U}})}function ia(e,t,i,u,l,h,g,m,_,M){var F=t&N,k=t&E,U=t&L,j=t&(z|Z),V=t&q,ae=U?n:Xr(e);function X(){for(var se=arguments.length,le=A(se),ft=se;ft--;)le[ft]=arguments[ft];if(j)var Ge=lr(X),lt=b1(le,Ge);if(u&&(le=_d(le,u,l,j)),h&&(le=xd(le,h,g,j)),se-=lt,j&&se<M){var Ee=ln(le,Ge);return Pd(e,t,ia,X.placeholder,i,le,Ee,m,_,M-se)}var Ct=k?i:this,Zt=U?Ct[e]:e;return se=le.length,m?le=Aw(le,m):V&&se>1&&le.reverse(),F&&_<se&&(le.length=_),this&&this!==Fe&&this instanceof X&&(Zt=ae||Xr(Zt)),Zt.apply(Ct,le)}return X}function Cd(e,t){return function(i,u){return Fb(i,e,t(u),{})}}function aa(e,t){return function(i,u){var l;if(i===n&&u===n)return t;if(i!==n&&(l=i),u!==n){if(l===n)return u;typeof i=="string"||typeof u=="string"?(i=st(i),u=st(u)):(i=pd(i),u=pd(u)),l=e(i,u)}return l}}function Ws(e){return Jt(function(t){return t=Se(t,ot(J())),oe(function(i){var u=this;return e(t,function(l){return at(l,u,i)})})})}function oa(e,t){t=t===n?" ":st(t);var i=t.length;if(i<2)return i?Ns(t,e):t;var u=Ns(t,Gi(e/nr(t)));return tr(t)?gn(Et(u),0,e).join(""):u.slice(0,e)}function uw(e,t,i,u){var l=t&E,h=Xr(e);function g(){for(var m=-1,_=arguments.length,M=-1,F=u.length,k=A(F+_),U=this&&this!==Fe&&this instanceof g?h:e;++M<F;)k[M]=u[M];for(;_--;)k[M++]=arguments[++m];return at(U,l?i:this,k)}return g}function Nd(e){return function(t,i,u){return u&&typeof u!="number"&&je(t,i,u)&&(i=u=n),t=Xt(t),i===n?(i=t,t=0):i=Xt(i),u=u===n?t<i?1:-1:Xt(u),Yb(t,i,u,e)}}function sa(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=bt(t),i=bt(i)),e(t,i)}}function Pd(e,t,i,u,l,h,g,m,_,M){var F=t&z,k=F?g:n,U=F?n:g,j=F?h:n,V=F?n:h;t|=F?R:ce,t&=~(F?ce:R),t&W||(t&=-4);var ae=[e,t,l,j,k,V,U,m,_,M],X=i.apply(n,ae);return js(e)&&Hd(X,ae),X.placeholder=u,qd(X,e,t)}function Bs(e){var t=Ne[e];return function(i,u){if(i=bt(i),u=u==null?0:Re(re(u),292),u&&qc(i)){var l=(ve(i)+"e").split("e"),h=t(l[0]+"e"+(+l[1]+u));return l=(ve(h)+"e").split("e"),+(l[0]+"e"+(+l[1]-u))}return t(i)}}var fw=ar&&1/ki(new ar([,-0]))[1]==It?function(e){return new ar(e)}:ou;function Ld(e){return function(t){var i=$e(t);return i==Ae?ps(t):i==Ke?E1(t):y1(t,e(t))}}function Yt(e,t,i,u,l,h,g,m){var _=t&L;if(!_&&typeof e!="function")throw new pt(c);var M=u?u.length:0;if(M||(t&=-97,u=l=n),g=g===n?g:Pe(re(g),0),m=m===n?m:re(m),M-=l?l.length:0,t&ce){var F=u,k=l;u=l=n}var U=_?n:Us(e),j=[e,t,i,u,l,F,k,h,g,m];if(U&&Iw(j,U),e=j[0],t=j[1],i=j[2],u=j[3],l=j[4],m=j[9]=j[9]===n?_?0:e.length:Pe(j[9]-M,0),!m&&t&(z|Z)&&(t&=-25),!t||t==E)var V=ow(e,t,i);else t==z||t==Z?V=sw(e,t,m):(t==R||t==(E|R))&&!l.length?V=uw(e,t,i,u):V=ia.apply(n,j);var ae=U?dd:Hd;return qd(ae(V,j),e,t)}function Dd(e,t,i,u){return e===n||Ot(e,ir[i])&&!ge.call(u,i)?t:e}function Md(e,t,i,u,l,h){return _e(e)&&_e(t)&&(h.set(t,e),ea(e,t,n,Md,h),h.delete(t)),e}function lw(e){return ei(e)?n:e}function Fd(e,t,i,u,l,h){var g=i&I,m=e.length,_=t.length;if(m!=_&&!(g&&_>m))return!1;var M=h.get(e),F=h.get(t);if(M&&F)return M==t&&F==e;var k=-1,U=!0,j=i&T?new Pn:n;for(h.set(e,t),h.set(t,e);++k<m;){var V=e[k],ae=t[k];if(u)var X=g?u(ae,V,k,t,e,h):u(V,ae,k,e,t,h);if(X!==n){if(X)continue;U=!1;break}if(j){if(!us(t,function(se,le){if(!$r(j,le)&&(V===se||l(V,se,i,u,h)))return j.push(le)})){U=!1;break}}else if(!(V===ae||l(V,ae,i,u,h))){U=!1;break}}return h.delete(e),h.delete(t),U}function cw(e,t,i,u,l,h,g){switch(i){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case In:return!(e.byteLength!=t.byteLength||!h(new zi(e),new zi(t)));case _n:case an:case on:return Ot(+e,+t);case Gn:return e.name==t.name&&e.message==t.message;case Oe:case sn:return e==t+"";case Ae:var m=ps;case Ke:var _=u&I;if(m||(m=ki),e.size!=t.size&&!_)return!1;var M=g.get(e);if(M)return M==t;u|=T,g.set(e,t);var F=Fd(m(e),m(t),u,l,h,g);return g.delete(e),F;case Be:if(jr)return jr.call(e)==jr.call(t)}return!1}function dw(e,t,i,u,l,h){var g=i&I,m=Rs(e),_=m.length,M=Rs(t),F=M.length;if(_!=F&&!g)return!1;for(var k=_;k--;){var U=m[k];if(!(g?U in t:ge.call(t,U)))return!1}var j=h.get(e),V=h.get(t);if(j&&V)return j==t&&V==e;var ae=!0;h.set(e,t),h.set(t,e);for(var X=g;++k<_;){U=m[k];var se=e[U],le=t[U];if(u)var ft=g?u(le,se,U,t,e,h):u(se,le,U,e,t,h);if(!(ft===n?se===le||l(se,le,i,u,h):ft)){ae=!1;break}X||(X=U=="constructor")}if(ae&&!X){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 Ys(Ud(e,n,Vd),e+"")}function Rs(e){return td(e,De,Hs)}function $s(e){return td(e,Qe,kd)}var Us=Ji?function(e){return Ji.get(e)}:ou;function ua(e){for(var t=e.name+"",i=or[t],u=ge.call(or,t)?i.length:0;u--;){var l=i[u],h=l.func;if(h==null||h==e)return l.name}return t}function lr(e){var t=ge.call(d,"placeholder")?d:e;return t.placeholder}function J(){var e=d.iteratee||iu;return e=e===iu?id:e,arguments.length?e(arguments[0],arguments[1]):e}function fa(e,t){var i=e.__data__;return ww(t)?i[typeof t=="string"?"string":"hash"]:i.map}function zs(e){for(var t=De(e),i=t.length;i--;){var u=t[i],l=e[u];t[i]=[u,l,Rd(l)]}return t}function Mn(e,t){var i=x1(e,t);return rd(i)?i:n}function hw(e){var t=ge.call(e,Cn),i=e[Cn];try{e[Cn]=n;var u=!0}catch{}var l=$i.call(e);return u&&(t?e[Cn]=i:delete e[Cn]),l}var Hs=vs?function(e){return e==null?[]:(e=me(e),un(vs(e),function(t){return zc.call(e,t)}))}:su,kd=vs?function(e){for(var t=[];e;)fn(t,Hs(e)),e=Hi(e);return t}:su,$e=qe;(ms&&$e(new ms(new ArrayBuffer(1)))!=He||zr&&$e(new zr)!=Ae||ys&&$e(ys.resolve())!=ze||ar&&$e(new ar)!=Ke||Hr&&$e(new Hr)!=xn)&&($e=function(e){var t=qe(e),i=t==rt?e.constructor:n,u=i?Fn(i):"";if(u)switch(u){case K1:return He;case V1:return Ae;case X1:return ze;case Z1:return Ke;case Q1:return xn}return t});function pw(e,t,i){for(var u=-1,l=i.length;++u<l;){var h=i[u],g=h.size;switch(h.type){case"drop":e+=g;break;case"dropRight":t-=g;break;case"take":t=Re(t,e+g);break;case"takeRight":e=Pe(e,t-g);break}}return{start:e,end:t}}function gw(e){var t=e.match(Zn);return t?t[1].split(_y):[]}function Wd(e,t,i){t=pn(t,e);for(var u=-1,l=t.length,h=!1;++u<l;){var g=Mt(t[u]);if(!(h=e!=null&&i(e,g)))break;e=e[g]}return h||++u!=l?h:(l=e==null?0:e.length,!!l&&va(l)&&Kt(g,l)&&(te(e)||kn(e)))}function vw(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&ge.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Bd(e){return typeof e.constructor=="function"&&!Zr(e)?sr(Hi(e)):{}}function mw(e,t,i){var u=e.constructor;switch(t){case In:return ks(e);case _n:case an:return new u(+e);case He:return ew(e,i);case Kn:case Lr:case Tn:case En:case Dr:case Mr:case Vn:case Fr:case kr:return wd(e,i);case Ae:return new u;case on:case sn:return new u(e);case Oe:return tw(e);case Ke:return new u;case Be:return nw(e)}}function yw(e,t){var i=t.length;if(!i)return e;var u=i-1;return t[u]=(i>1?"& ":"")+t[u],t=t.join(i>2?", ":" "),e.replace(Rr,`{
1
+ (function(ce,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("inversify"),require("mobx"),require("inversify-react"),require("react/jsx-runtime"),require("react-dnd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","inversify","mobx","inversify-react","react/jsx-runtime","react-dnd","react-dom"],M):(ce=typeof globalThis<"u"?globalThis:ce||self,M(ce.JustLayout={},ce.React,ce.inversify,ce.mobx,ce.inversifyReact,ce.jsxRuntime,ce.ReactDnd,ce.ReactDOM))})(this,(function(ce,M,Vr,lr,ph,z,Zr,cr){"use strict";function Qs(a){return JSON.stringify(ma(a))}function ma(a){return Array.isArray(a)?a.map(ma):a&&typeof a=="object"?Object.fromEntries(Object.entries(a).sort((i,n)=>i[0].localeCompare(n[0])).map(([i,n])=>[i,ma(n)])):a}const kt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var dr={exports:{}};var vh=dr.exports,eu;function gh(){return eu||(eu=1,(function(a,i){(function(){var n,o="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,T=1,k=2,W=4,R=8,Z=16,$=32,de=64,C=128,L=256,q=512,ne=30,J="...",ee=800,Y=16,We=1,Je=2,Ye=3,Et=1/0,ze=9007199254740991,ko=17976931348623157e292,At=NaN,nt=4294967295,xi=nt-1,Ei=nt>>>1,Ar=[["ary",C],["bind",T],["bindKey",k],["curry",R],["curryRight",Z],["flip",q],["partial",$],["partialRight",de],["rearg",L]],Ut="[object Arguments]",bn="[object Array]",Tr="[object AsyncFunction]",_n="[object Boolean]",rn="[object Date]",Ir="[object DOMException]",Hn="[object Error]",qn="[object Function]",Ai="[object GeneratorFunction]",Ie="[object Map]",an="[object Number]",Ti="[object Null]",rt="[object Object]",Ue="[object Promise]",jn="[object Proxy]",Oe="[object RegExp]",Ke="[object Set]",on="[object String]",Be="[object Symbol]",Do="[object Undefined]",wn="[object WeakMap]",Wo="[object WeakSet]",Sn="[object ArrayBuffer]",He="[object DataView]",Gn="[object Float32Array]",Or="[object Float64Array]",xn="[object Int8Array]",En="[object Int16Array]",Cr="[object Int32Array]",Nr="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Lr="[object Uint16Array]",Pr="[object Uint32Array]",Ii=/\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),Yn=RegExp(it.source),Bo=/<%-([\s\S]+?)%>/g,Ro=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,$o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zo=/^\w*$/,Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/[\\^$.*+?()[\]{}|]/g,Uo=RegExp(Fr.source),Ht=/^\s+/,Mr=/\s/,kr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kn=/\{\n\/\* \[wrapped with (.+)\] \*/,N0=/,? & /,L0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,P0=/[()=,{}\[\]\/\s]/,F0=/\\(\\)?/g,M0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ul=/\w*$/,k0=/^[-+]0x[0-9a-f]+$/i,D0=/^0b[01]+$/i,W0=/^\[object .+?Constructor\]$/,B0=/^0o[0-7]+$/i,R0=/^(?:0|[1-9]\d*)$/,$0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ci=/($^)/,z0=/['\n\r\u2028\u2029\\]/g,Ni="\\ud800-\\udfff",U0="\\u0300-\\u036f",H0="\\ufe20-\\ufe2f",q0="\\u20d0-\\u20ff",Hl=U0+H0+q0,ql="\\u2700-\\u27bf",jl="a-z\\xdf-\\xf6\\xf8-\\xff",j0="\\xac\\xb1\\xd7\\xf7",G0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",J0="\\u2000-\\u206f",Y0=" \\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",Gl="A-Z\\xc0-\\xd6\\xd8-\\xde",Jl="\\ufe0e\\ufe0f",Yl=j0+G0+J0+Y0,Ho="['’]",K0="["+Ni+"]",Kl="["+Yl+"]",Li="["+Hl+"]",Xl="\\d+",X0="["+ql+"]",Vl="["+jl+"]",Zl="[^"+Ni+Yl+Xl+ql+jl+Gl+"]",qo="\\ud83c[\\udffb-\\udfff]",V0="(?:"+Li+"|"+qo+")",Ql="[^"+Ni+"]",jo="(?:\\ud83c[\\udde6-\\uddff]){2}",Go="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+Gl+"]",ec="\\u200d",tc="(?:"+Vl+"|"+Zl+")",Z0="(?:"+Xn+"|"+Zl+")",nc="(?:"+Ho+"(?:d|ll|m|re|s|t|ve))?",rc="(?:"+Ho+"(?:D|LL|M|RE|S|T|VE))?",ic=V0+"?",ac="["+Jl+"]?",Q0="(?:"+ec+"(?:"+[Ql,jo,Go].join("|")+")"+ac+ic+")*",ey="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ty="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oc=ac+ic+Q0,ny="(?:"+[X0,jo,Go].join("|")+")"+oc,ry="(?:"+[Ql+Li+"?",Li,jo,Go,K0].join("|")+")",iy=RegExp(Ho,"g"),ay=RegExp(Li,"g"),Jo=RegExp(qo+"(?="+qo+")|"+ry+oc,"g"),oy=RegExp([Xn+"?"+Vl+"+"+nc+"(?="+[Kl,Xn,"$"].join("|")+")",Z0+"+"+rc+"(?="+[Kl,Xn+tc,"$"].join("|")+")",Xn+"?"+tc+"+"+nc,Xn+"+"+rc,ty,ey,Xl,ny].join("|"),"g"),sy=RegExp("["+ec+Ni+Hl+Jl+"]"),uy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fy=["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"],ly=-1,_e={};_e[Gn]=_e[Or]=_e[xn]=_e[En]=_e[Cr]=_e[Nr]=_e[Jn]=_e[Lr]=_e[Pr]=!0,_e[Ut]=_e[bn]=_e[Sn]=_e[_n]=_e[He]=_e[rn]=_e[Hn]=_e[qn]=_e[Ie]=_e[an]=_e[rt]=_e[Oe]=_e[Ke]=_e[on]=_e[wn]=!1;var ye={};ye[Ut]=ye[bn]=ye[Sn]=ye[He]=ye[_n]=ye[rn]=ye[Gn]=ye[Or]=ye[xn]=ye[En]=ye[Cr]=ye[Ie]=ye[an]=ye[rt]=ye[Oe]=ye[Ke]=ye[on]=ye[Be]=ye[Nr]=ye[Jn]=ye[Lr]=ye[Pr]=!0,ye[Hn]=ye[qn]=ye[wn]=!1;var cy={À:"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"},dy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},py={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vy=parseFloat,gy=parseInt,sc=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,my=typeof self=="object"&&self&&self.Object===Object&&self,ke=sc||my||Function("return this")(),Yo=i&&!i.nodeType&&i,Tn=Yo&&!0&&a&&!a.nodeType&&a,uc=Tn&&Tn.exports===Yo,Ko=uc&&sc.process,dt=(function(){try{var b=Tn&&Tn.require&&Tn.require("util").types;return b||Ko&&Ko.binding&&Ko.binding("util")}catch{}})(),fc=dt&&dt.isArrayBuffer,lc=dt&&dt.isDate,cc=dt&&dt.isMap,dc=dt&&dt.isRegExp,hc=dt&&dt.isSet,pc=dt&&dt.isTypedArray;function at(b,N,I){switch(I.length){case 0:return b.call(N);case 1:return b.call(N,I[0]);case 2:return b.call(N,I[0],I[1]);case 3:return b.call(N,I[0],I[1],I[2])}return b.apply(N,I)}function yy(b,N,I,H){for(var Q=-1,pe=b==null?0:b.length;++Q<pe;){var Ne=b[Q];N(H,Ne,I(Ne),b)}return H}function ht(b,N){for(var I=-1,H=b==null?0:b.length;++I<H&&N(b[I],I,b)!==!1;);return b}function by(b,N){for(var I=b==null?0:b.length;I--&&N(b[I],I,b)!==!1;);return b}function vc(b,N){for(var I=-1,H=b==null?0:b.length;++I<H;)if(!N(b[I],I,b))return!1;return!0}function sn(b,N){for(var I=-1,H=b==null?0:b.length,Q=0,pe=[];++I<H;){var Ne=b[I];N(Ne,I,b)&&(pe[Q++]=Ne)}return pe}function Pi(b,N){var I=b==null?0:b.length;return!!I&&Vn(b,N,0)>-1}function Xo(b,N,I){for(var H=-1,Q=b==null?0:b.length;++H<Q;)if(I(N,b[H]))return!0;return!1}function we(b,N){for(var I=-1,H=b==null?0:b.length,Q=Array(H);++I<H;)Q[I]=N(b[I],I,b);return Q}function un(b,N){for(var I=-1,H=N.length,Q=b.length;++I<H;)b[Q+I]=N[I];return b}function Vo(b,N,I,H){var Q=-1,pe=b==null?0:b.length;for(H&&pe&&(I=b[++Q]);++Q<pe;)I=N(I,b[Q],Q,b);return I}function _y(b,N,I,H){var Q=b==null?0:b.length;for(H&&Q&&(I=b[--Q]);Q--;)I=N(I,b[Q],Q,b);return I}function Zo(b,N){for(var I=-1,H=b==null?0:b.length;++I<H;)if(N(b[I],I,b))return!0;return!1}var wy=Qo("length");function Sy(b){return b.split("")}function xy(b){return b.match(L0)||[]}function gc(b,N,I){var H;return I(b,function(Q,pe,Ne){if(N(Q,pe,Ne))return H=pe,!1}),H}function Fi(b,N,I,H){for(var Q=b.length,pe=I+(H?1:-1);H?pe--:++pe<Q;)if(N(b[pe],pe,b))return pe;return-1}function Vn(b,N,I){return N===N?ky(b,N,I):Fi(b,mc,I)}function Ey(b,N,I,H){for(var Q=I-1,pe=b.length;++Q<pe;)if(H(b[Q],N))return Q;return-1}function mc(b){return b!==b}function yc(b,N){var I=b==null?0:b.length;return I?ts(b,N)/I:At}function Qo(b){return function(N){return N==null?n:N[b]}}function es(b){return function(N){return b==null?n:b[N]}}function bc(b,N,I,H,Q){return Q(b,function(pe,Ne,me){I=H?(H=!1,pe):N(I,pe,Ne,me)}),I}function Ay(b,N){var I=b.length;for(b.sort(N);I--;)b[I]=b[I].value;return b}function ts(b,N){for(var I,H=-1,Q=b.length;++H<Q;){var pe=N(b[H]);pe!==n&&(I=I===n?pe:I+pe)}return I}function ns(b,N){for(var I=-1,H=Array(b);++I<b;)H[I]=N(I);return H}function Ty(b,N){return we(N,function(I){return[I,b[I]]})}function _c(b){return b&&b.slice(0,Ec(b)+1).replace(Ht,"")}function ot(b){return function(N){return b(N)}}function rs(b,N){return we(N,function(I){return b[I]})}function Dr(b,N){return b.has(N)}function wc(b,N){for(var I=-1,H=b.length;++I<H&&Vn(N,b[I],0)>-1;);return I}function Sc(b,N){for(var I=b.length;I--&&Vn(N,b[I],0)>-1;);return I}function Iy(b,N){for(var I=b.length,H=0;I--;)b[I]===N&&++H;return H}var Oy=es(cy),Cy=es(dy);function Ny(b){return"\\"+py[b]}function Ly(b,N){return b==null?n:b[N]}function Zn(b){return sy.test(b)}function Py(b){return uy.test(b)}function Fy(b){for(var N,I=[];!(N=b.next()).done;)I.push(N.value);return I}function is(b){var N=-1,I=Array(b.size);return b.forEach(function(H,Q){I[++N]=[Q,H]}),I}function xc(b,N){return function(I){return b(N(I))}}function fn(b,N){for(var I=-1,H=b.length,Q=0,pe=[];++I<H;){var Ne=b[I];(Ne===N||Ne===w)&&(b[I]=w,pe[Q++]=I)}return pe}function Mi(b){var N=-1,I=Array(b.size);return b.forEach(function(H){I[++N]=H}),I}function My(b){var N=-1,I=Array(b.size);return b.forEach(function(H){I[++N]=[H,H]}),I}function ky(b,N,I){for(var H=I-1,Q=b.length;++H<Q;)if(b[H]===N)return H;return-1}function Dy(b,N,I){for(var H=I+1;H--;)if(b[H]===N)return H;return H}function Qn(b){return Zn(b)?By(b):wy(b)}function Tt(b){return Zn(b)?Ry(b):Sy(b)}function Ec(b){for(var N=b.length;N--&&Mr.test(b.charAt(N)););return N}var Wy=es(hy);function By(b){for(var N=Jo.lastIndex=0;Jo.test(b);)++N;return N}function Ry(b){return b.match(Jo)||[]}function $y(b){return b.match(oy)||[]}var zy=(function b(N){N=N==null?ke:er.defaults(ke.Object(),N,er.pick(ke,fy));var I=N.Array,H=N.Date,Q=N.Error,pe=N.Function,Ne=N.Math,me=N.Object,as=N.RegExp,Uy=N.String,pt=N.TypeError,ki=I.prototype,Hy=pe.prototype,tr=me.prototype,Di=N["__core-js_shared__"],Wi=Hy.toString,ve=tr.hasOwnProperty,qy=0,Ac=(function(){var e=/[^.]+$/.exec(Di&&Di.keys&&Di.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Bi=tr.toString,jy=Wi.call(me),Gy=ke._,Jy=as("^"+Wi.call(ve).replace(Fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=uc?N.Buffer:n,ln=N.Symbol,$i=N.Uint8Array,Tc=Ri?Ri.allocUnsafe:n,zi=xc(me.getPrototypeOf,me),Ic=me.create,Oc=tr.propertyIsEnumerable,Ui=ki.splice,Cc=ln?ln.isConcatSpreadable:n,Wr=ln?ln.iterator:n,In=ln?ln.toStringTag:n,Hi=(function(){try{var e=Pn(me,"defineProperty");return e({},"",{}),e}catch{}})(),Yy=N.clearTimeout!==ke.clearTimeout&&N.clearTimeout,Ky=H&&H.now!==ke.Date.now&&H.now,Xy=N.setTimeout!==ke.setTimeout&&N.setTimeout,qi=Ne.ceil,ji=Ne.floor,os=me.getOwnPropertySymbols,Vy=Ri?Ri.isBuffer:n,Nc=N.isFinite,Zy=ki.join,Qy=xc(me.keys,me),Le=Ne.max,Re=Ne.min,e1=H.now,t1=N.parseInt,Lc=Ne.random,n1=ki.reverse,ss=Pn(N,"DataView"),Br=Pn(N,"Map"),us=Pn(N,"Promise"),nr=Pn(N,"Set"),Rr=Pn(N,"WeakMap"),$r=Pn(me,"create"),Gi=Rr&&new Rr,rr={},r1=Fn(ss),i1=Fn(Br),a1=Fn(us),o1=Fn(nr),s1=Fn(Rr),Ji=ln?ln.prototype:n,zr=Ji?Ji.valueOf:n,Pc=Ji?Ji.toString:n;function d(e){if(xe(e)&&!te(e)&&!(e instanceof ue)){if(e instanceof vt)return e;if(ve.call(e,"__wrapped__"))return Fd(e)}return new vt(e)}var ir=(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 Yi(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}d.templateSettings={escape:Bo,evaluate:Ro,interpolate:An,variable:"",imports:{_:d}},d.prototype=Yi.prototype,d.prototype.constructor=d,vt.prototype=ir(Yi.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 u1(){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 f1(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function l1(){var e=this.__wrapped__.value(),t=this.__dir__,r=te(e),s=t<0,l=r?e.length:0,h=Sb(0,l,this.__views__),v=h.start,m=h.end,S=m-v,P=s?m:v-1,F=this.__iteratees__,D=F.length,U=0,j=Re(S,this.__takeCount__);if(!r||!s&&l==S&&j==S)return nd(e,this.__actions__);var X=[];e:for(;S--&&U<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==Je)V=Ge;else if(!Ge){if(ft==We)continue e;break e}}X[U++]=V}return X}ue.prototype=ir(Yi.prototype),ue.prototype.constructor=ue;function On(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function c1(){this.__data__=$r?$r(null):{},this.size=0}function d1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function h1(e){var t=this.__data__;if($r){var r=t[e];return r===g?n:r}return ve.call(t,e)?t[e]:n}function p1(e){var t=this.__data__;return $r?t[e]!==n:ve.call(t,e)}function v1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$r&&t===n?g:t,this}On.prototype.clear=c1,On.prototype.delete=d1,On.prototype.get=h1,On.prototype.has=p1,On.prototype.set=v1;function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function g1(){this.__data__=[],this.size=0}function m1(e){var t=this.__data__,r=Ki(t,e);if(r<0)return!1;var s=t.length-1;return r==s?t.pop():Ui.call(t,r,1),--this.size,!0}function y1(e){var t=this.__data__,r=Ki(t,e);return r<0?n:t[r][1]}function b1(e){return Ki(this.__data__,e)>-1}function _1(e,t){var r=this.__data__,s=Ki(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}qt.prototype.clear=g1,qt.prototype.delete=m1,qt.prototype.get=y1,qt.prototype.has=b1,qt.prototype.set=_1;function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function w1(){this.size=0,this.__data__={hash:new On,map:new(Br||qt),string:new On}}function S1(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t}function x1(e){return sa(this,e).get(e)}function E1(e){return sa(this,e).has(e)}function A1(e,t){var r=sa(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}jt.prototype.clear=w1,jt.prototype.delete=S1,jt.prototype.get=x1,jt.prototype.has=E1,jt.prototype.set=A1;function Cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new jt;++t<r;)this.add(e[t])}function T1(e){return this.__data__.set(e,g),this}function I1(e){return this.__data__.has(e)}Cn.prototype.add=Cn.prototype.push=T1,Cn.prototype.has=I1;function It(e){var t=this.__data__=new qt(e);this.size=t.size}function O1(){this.__data__=new qt,this.size=0}function C1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N1(e){return this.__data__.get(e)}function L1(e){return this.__data__.has(e)}function P1(e,t){var r=this.__data__;if(r instanceof qt){var s=r.__data__;if(!Br||s.length<u-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new jt(s)}return r.set(e,t),this.size=r.size,this}It.prototype.clear=O1,It.prototype.delete=C1,It.prototype.get=N1,It.prototype.has=L1,It.prototype.set=P1;function Fc(e,t){var r=te(e),s=!r&&Mn(e),l=!r&&!s&&vn(e),h=!r&&!s&&!l&&ur(e),v=r||s||l||h,m=v?ns(e.length,Uy):[],S=m.length;for(var P in e)(t||ve.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 Mc(e){var t=e.length;return t?e[bs(0,t-1)]:n}function F1(e,t){return ua(Ve(e),Nn(t,0,e.length))}function M1(e){return ua(Ve(e))}function fs(e,t,r){(r!==n&&!Ot(e[t],r)||r===n&&!(t in e))&&Gt(e,t,r)}function Ur(e,t,r){var s=e[t];(!(ve.call(e,t)&&Ot(s,r))||r===n&&!(t in e))&&Gt(e,t,r)}function Ki(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function k1(e,t,r,s){return cn(e,function(l,h,v){t(s,l,r(l),v)}),s}function kc(e,t){return e&&Ft(t,Fe(t),e)}function D1(e,t){return e&&Ft(t,Qe(t),e)}function Gt(e,t,r){t=="__proto__"&&Hi?Hi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ls(e,t){for(var r=-1,s=t.length,l=I(s),h=e==null;++r<s;)l[r]=h?n:qs(e,t[r]);return l}function Nn(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,s,l,h){var v,m=t&_,S=t&O,P=t&E;if(r&&(v=l?r(e,s,l,h):r(e)),v!==n)return v;if(!Se(e))return e;var F=te(e);if(F){if(v=Eb(e),!m)return Ve(e,v)}else{var D=$e(e),U=D==qn||D==Ai;if(vn(e))return ad(e,m);if(D==rt||D==Ut||U&&!l){if(v=S||U?{}:Ed(e),!m)return S?hb(e,D1(v,e)):db(e,kc(v,e))}else{if(!ye[D])return l?e:{};v=Ab(e,D,m)}}h||(h=new It);var j=h.get(e);if(j)return j;h.set(e,v),Qd(e)?e.forEach(function(V){v.add(gt(V,t,r,V,e,h))}):Vd(e)&&e.forEach(function(V,se){v.set(se,gt(V,t,r,se,e,h))});var X=P?S?Ns:Cs:S?Qe:Fe,ae=F?n:X(e);return ht(ae||e,function(V,se){ae&&(se=V,V=e[se]),Ur(v,se,gt(V,t,r,se,e,h))}),v}function W1(e){var t=Fe(e);return function(r){return Dc(r,e,t)}}function Dc(e,t,r){var s=r.length;if(e==null)return!s;for(e=me(e);s--;){var l=r[s],h=t[l],v=e[l];if(v===n&&!(l in e)||!h(v))return!1}return!0}function Wc(e,t,r){if(typeof e!="function")throw new pt(c);return Kr(function(){e.apply(n,r)},t)}function Hr(e,t,r,s){var l=-1,h=Pi,v=!0,m=e.length,S=[],P=t.length;if(!m)return S;r&&(t=we(t,ot(r))),s?(h=Xo,v=!1):t.length>=u&&(h=Dr,v=!1,t=new Cn(t));e:for(;++l<m;){var F=e[l],D=r==null?F:r(F);if(F=s||F!==0?F:0,v&&D===D){for(var U=P;U--;)if(t[U]===D)continue e;S.push(F)}else h(t,D,s)||S.push(F)}return S}var cn=ld(Pt),Bc=ld(ds,!0);function B1(e,t){var r=!0;return cn(e,function(s,l,h){return r=!!t(s,l,h),r}),r}function Xi(e,t,r){for(var s=-1,l=e.length;++s<l;){var h=e[s],v=t(h);if(v!=null&&(m===n?v===v&&!ut(v):r(v,m)))var m=v,S=h}return S}function R1(e,t,r,s){var l=e.length;for(r=ie(r),r<0&&(r=-r>l?0:l+r),s=s===n||s>l?l:ie(s),s<0&&(s+=l),s=r>s?0:th(s);r<s;)e[r++]=t;return e}function Rc(e,t){var r=[];return cn(e,function(s,l,h){t(s,l,h)&&r.push(s)}),r}function De(e,t,r,s,l){var h=-1,v=e.length;for(r||(r=Ib),l||(l=[]);++h<v;){var m=e[h];t>0&&r(m)?t>1?De(m,t-1,r,s,l):un(l,m):s||(l[l.length]=m)}return l}var cs=cd(),$c=cd(!0);function Pt(e,t){return e&&cs(e,t,Fe)}function ds(e,t){return e&&$c(e,t,Fe)}function Vi(e,t){return sn(t,function(r){return Xt(e[r])})}function Ln(e,t){t=hn(t,e);for(var r=0,s=t.length;e!=null&&r<s;)e=e[Mt(t[r++])];return r&&r==s?e:n}function zc(e,t,r){var s=t(e);return te(e)?s:un(s,r(e))}function qe(e){return e==null?e===n?Do:Ti:In&&In in me(e)?wb(e):Mb(e)}function hs(e,t){return e>t}function $1(e,t){return e!=null&&ve.call(e,t)}function z1(e,t){return e!=null&&t in me(e)}function U1(e,t,r){return e>=Re(t,r)&&e<Le(t,r)}function ps(e,t,r){for(var s=r?Xo:Pi,l=e[0].length,h=e.length,v=h,m=I(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 Cn(v&&F):n}F=e[0];var D=-1,U=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,!(U?Dr(U,X):s(P,X,r))){for(v=h;--v;){var ae=m[v];if(!(ae?Dr(ae,X):s(e[v],X,r)))continue e}U&&U.push(X),P.push(j)}}return P}function H1(e,t,r,s){return Pt(e,function(l,h,v){t(s,r(l),h,v)}),s}function qr(e,t,r){t=hn(t,e),e=Od(e,t);var s=e==null?e:e[Mt(yt(t))];return s==null?n:at(s,e,r)}function Uc(e){return xe(e)&&qe(e)==Ut}function q1(e){return xe(e)&&qe(e)==Sn}function j1(e){return xe(e)&&qe(e)==rn}function jr(e,t,r,s,l){return e===t?!0:e==null||t==null||!xe(e)&&!xe(t)?e!==e&&t!==t:G1(e,t,r,s,jr,l)}function G1(e,t,r,s,l,h){var v=te(e),m=te(t),S=v?bn:$e(e),P=m?bn:$e(t);S=S==Ut?rt:S,P=P==Ut?rt:P;var F=S==rt,D=P==rt,U=S==P;if(U&&vn(e)){if(!vn(t))return!1;v=!0,F=!1}if(U&&!F)return h||(h=new It),v||ur(e)?wd(e,t,r,s,l,h):bb(e,t,S,r,s,l,h);if(!(r&x)){var j=F&&ve.call(e,"__wrapped__"),X=D&&ve.call(t,"__wrapped__");if(j||X){var ae=j?e.value():e,V=X?t.value():t;return h||(h=new It),l(ae,V,r,s,h)}}return U?(h||(h=new It),_b(e,t,r,s,l,h)):!1}function J1(e){return xe(e)&&$e(e)==Ie}function vs(e,t,r,s){var l=r.length,h=l,v=!s;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 It;if(s)var U=s(P,F,S,e,t,D);if(!(U===n?jr(F,P,x|A,s,D):U))return!1}}return!0}function Hc(e){if(!Se(e)||Cb(e))return!1;var t=Xt(e)?Jy:W0;return t.test(Fn(e))}function Y1(e){return xe(e)&&qe(e)==Oe}function K1(e){return xe(e)&&$e(e)==Ke}function X1(e){return xe(e)&&pa(e.length)&&!!_e[qe(e)]}function qc(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?te(e)?Jc(e[0],e[1]):Gc(e):dh(e)}function gs(e){if(!Yr(e))return Qy(e);var t=[];for(var r in me(e))ve.call(e,r)&&r!="constructor"&&t.push(r);return t}function V1(e){if(!Se(e))return Fb(e);var t=Yr(e),r=[];for(var s in e)s=="constructor"&&(t||!ve.call(e,s))||r.push(s);return r}function ms(e,t){return e<t}function jc(e,t){var r=-1,s=Ze(e)?I(e.length):[];return cn(e,function(l,h,v){s[++r]=t(l,h,v)}),s}function Gc(e){var t=Ps(e);return t.length==1&&t[0][2]?Td(t[0][0],t[0][1]):function(r){return r===e||vs(r,e,t)}}function Jc(e,t){return Ms(e)&&Ad(t)?Td(Mt(e),t):function(r){var s=qs(r,e);return s===n&&s===t?js(r,e):jr(t,s,x|A)}}function Zi(e,t,r,s,l){e!==t&&cs(t,function(h,v){if(l||(l=new It),Se(h))Z1(e,t,v,r,Zi,s,l);else{var m=s?s(Ds(e,v),h,v+"",e,t,l):n;m===n&&(m=h),fs(e,v,m)}},Qe)}function Z1(e,t,r,s,l,h,v){var m=Ds(e,r),S=Ds(t,r),P=v.get(S);if(P){fs(e,r,P);return}var F=h?h(m,S,r+"",e,t,v):n,D=F===n;if(D){var U=te(S),j=!U&&vn(S),X=!U&&!j&&ur(S);F=S,U||j||X?te(m)?F=m:Ae(m)?F=Ve(m):j?(D=!1,F=ad(S,!0)):X?(D=!1,F=od(S,!0)):F=[]:Xr(S)||Mn(S)?(F=m,Mn(m)?F=nh(m):(!Se(m)||Xt(m))&&(F=Ed(S))):D=!1}D&&(v.set(S,F),l(F,S,s,h,v),v.delete(S)),fs(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 Kc(e,t,r){t.length?t=we(t,function(h){return te(h)?function(v){return Ln(v,h.length===1?h[0]:h)}:h}):t=[et];var s=-1;t=we(t,ot(K()));var l=jc(e,function(h,v,m){var S=we(t,function(P){return P(h)});return{criteria:S,index:++s,value:h}});return Ay(l,function(h,v){return cb(h,v,r)})}function Q1(e,t){return Xc(e,t,function(r,s){return js(e,s)})}function Xc(e,t,r){for(var s=-1,l=t.length,h={};++s<l;){var v=t[s],m=Ln(e,v);r(m,v)&&Gr(h,hn(v,e),m)}return h}function eb(e){return function(t){return Ln(t,e)}}function ys(e,t,r,s){var l=s?Ey:Vn,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,s))>-1;)m!==e&&Ui.call(m,S,1),Ui.call(e,S,1);return e}function Vc(e,t){for(var r=e?t.length:0,s=r-1;r--;){var l=t[r];if(r==s||l!==h){var h=l;Kt(l)?Ui.call(e,l,1):Ss(e,l)}}return e}function bs(e,t){return e+ji(Lc()*(t-e+1))}function tb(e,t,r,s){for(var l=-1,h=Le(qi((t-e)/(r||1)),0),v=I(h);h--;)v[s?h:++l]=e,e+=r;return v}function _s(e,t){var r="";if(!e||t<1||t>ze)return r;do t%2&&(r+=e),t=ji(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return Ws(Id(e,t,et),e+"")}function nb(e){return Mc(fr(e))}function rb(e,t){var r=fr(e);return ua(r,Nn(t,0,r.length))}function Gr(e,t,r,s){if(!Se(e))return e;t=hn(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=s?s(F,S,m):n,P===n&&(P=Se(F)?F:Kt(t[l+1])?[]:{})}Ur(m,S,P),m=m[S]}return e}var Zc=Gi?function(e,t){return Gi.set(e,t),e}:et,ib=Hi?function(e,t){return Hi(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:et;function ab(e){return ua(fr(e))}function mt(e,t,r){var s=-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=I(l);++s<l;)h[s]=e[s+t];return h}function ob(e,t){var r;return cn(e,function(s,l,h){return r=t(s,l,h),!r}),!!r}function Qi(e,t,r){var s=0,l=e==null?s:e.length;if(typeof t=="number"&&t===t&&l<=Ei){for(;s<l;){var h=s+l>>>1,v=e[h];v!==null&&!ut(v)&&(r?v<=t:v<t)?s=h+1:l=h}return l}return ws(e,t,et,r)}function ws(e,t,r,s){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=ji((l+h)/2),D=r(e[F]),U=D!==n,j=D===null,X=D===D,ae=ut(D);if(v)var V=s||X;else P?V=X&&(s||U):m?V=X&&U&&(s||!j):S?V=X&&U&&!j&&(s||!ae):j||ae?V=!1:V=s?D<=t:D<t;V?l=F+1:h=F}return Re(h,xi)}function Qc(e,t){for(var r=-1,s=e.length,l=0,h=[];++r<s;){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 ed(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 Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-Et?"-0":t}function dn(e,t,r){var s=-1,l=Pi,h=e.length,v=!0,m=[],S=m;if(r)v=!1,l=Xo;else if(h>=u){var P=t?null:mb(e);if(P)return Mi(P);v=!1,l=Dr,S=new Cn}else S=t?[]:m;e:for(;++s<h;){var F=e[s],D=t?t(F):F;if(F=r||F!==0?F:0,v&&D===D){for(var U=S.length;U--;)if(S[U]===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 Ss(e,t){t=hn(t,e);var r=-1,s=t.length;if(!s)return!0;for(var l=e==null||typeof e!="object"&&typeof e!="function";++r<s;){var h=t[r];if(typeof h=="string"){if(h==="__proto__"&&!ve.call(e,"__proto__"))return!1;if(h==="constructor"&&r+1<s&&typeof t[r+1]=="string"&&t[r+1]==="prototype"){if(l&&r===0)continue;return!1}}}var v=Od(e,t);return v==null||delete v[Mt(yt(t))]}function td(e,t,r,s){return Gr(e,t,r(Ln(e,t)),s)}function ea(e,t,r,s){for(var l=e.length,h=s?l:-1;(s?h--:++h<l)&&t(e[h],h,e););return r?mt(e,s?0:h,s?h+1:l):mt(e,s?h+1:0,s?l:h)}function nd(e,t){var r=e;return r instanceof ue&&(r=r.value()),Vo(t,function(s,l){return l.func.apply(l.thisArg,un([s],l.args))},r)}function xs(e,t,r){var s=e.length;if(s<2)return s?dn(e[0]):[];for(var l=-1,h=I(s);++l<s;)for(var v=e[l],m=-1;++m<s;)m!=l&&(h[l]=Hr(h[l]||v,e[m],t,r));return dn(De(h,1),t,r)}function rd(e,t,r){for(var s=-1,l=e.length,h=t.length,v={};++s<l;){var m=s<h?t[s]:n;r(v,e[s],m)}return v}function Es(e){return Ae(e)?e:[]}function As(e){return typeof e=="function"?e:et}function hn(e,t){return te(e)?e:Ms(e,t)?[e]:Pd(ge(e))}var sb=oe;function pn(e,t,r){var s=e.length;return r=r===n?s:r,!t&&r>=s?e:mt(e,t,r)}var id=Yy||function(e){return ke.clearTimeout(e)};function ad(e,t){if(t)return e.slice();var r=e.length,s=Tc?Tc(r):new e.constructor(r);return e.copy(s),s}function Ts(e){var t=new e.constructor(e.byteLength);return new $i(t).set(new $i(e)),t}function ub(e,t){var r=t?Ts(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function fb(e){var t=new e.constructor(e.source,Ul.exec(e));return t.lastIndex=e.lastIndex,t}function lb(e){return zr?me(zr.call(e)):{}}function od(e,t){var r=t?Ts(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function sd(e,t){if(e!==t){var r=e!==n,s=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||s&&v&&S||!r&&S||!l)return 1;if(!s&&!h&&!P&&e<t||P&&r&&l&&!s&&!h||m&&r&&l||!v&&l||!S)return-1}return 0}function cb(e,t,r){for(var s=-1,l=e.criteria,h=t.criteria,v=l.length,m=r.length;++s<v;){var S=sd(l[s],h[s]);if(S){if(s>=m)return S;var P=r[s];return S*(P=="desc"?-1:1)}}return e.index-t.index}function ud(e,t,r,s){for(var l=-1,h=e.length,v=r.length,m=-1,S=t.length,P=Le(h-v,0),F=I(S+P),D=!s;++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 fd(e,t,r,s){for(var l=-1,h=e.length,v=-1,m=r.length,S=-1,P=t.length,F=Le(h-m,0),D=I(F+P),U=!s;++l<F;)D[l]=e[l];for(var j=l;++S<P;)D[j+S]=t[S];for(;++v<m;)(U||l<h)&&(D[j+r[v]]=e[l++]);return D}function Ve(e,t){var r=-1,s=e.length;for(t||(t=I(s));++r<s;)t[r]=e[r];return t}function Ft(e,t,r,s){var l=!r;r||(r={});for(var h=-1,v=t.length;++h<v;){var m=t[h],S=s?s(r[m],e[m],m,r,e):n;S===n&&(S=e[m]),l?Gt(r,m,S):Ur(r,m,S)}return r}function db(e,t){return Ft(e,Fs(e),t)}function hb(e,t){return Ft(e,Sd(e),t)}function ta(e,t){return function(r,s){var l=te(r)?yy:k1,h=t?t():{};return l(r,e,K(s,2),h)}}function ar(e){return oe(function(t,r){var s=-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);++s<l;){var m=r[s];m&&e(t,m,s,h)}return t})}function ld(e,t){return function(r,s){if(r==null)return r;if(!Ze(r))return e(r,s);for(var l=r.length,h=t?l:-1,v=me(r);(t?h--:++h<l)&&s(v[h],h,v)!==!1;);return r}}function cd(e){return function(t,r,s){for(var l=-1,h=me(t),v=s(t),m=v.length;m--;){var S=v[e?m:++l];if(r(h[S],S,h)===!1)break}return t}}function pb(e,t,r){var s=t&T,l=Jr(e);function h(){var v=this&&this!==ke&&this instanceof h?l:e;return v.apply(s?r:this,arguments)}return h}function dd(e){return function(t){t=ge(t);var r=Zn(t)?Tt(t):n,s=r?r[0]:t.charAt(0),l=r?pn(r,1).join(""):t.slice(1);return s[e]()+l}}function or(e){return function(t){return Vo(lh(fh(t).replace(iy,"")),e,"")}}function Jr(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=ir(e.prototype),s=e.apply(r,t);return Se(s)?s:r}}function vb(e,t,r){var s=Jr(e);function l(){for(var h=arguments.length,v=I(h),m=h,S=sr(l);m--;)v[m]=arguments[m];var P=h<3&&v[0]!==S&&v[h-1]!==S?[]:fn(v,S);if(h-=P.length,h<r)return md(e,t,na,l.placeholder,n,v,P,n,n,r-h);var F=this&&this!==ke&&this instanceof l?s:e;return at(F,this,v)}return l}function hd(e){return function(t,r,s){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,s);return v>-1?l[h?t[v]:v]:n}}function pd(e){return Yt(function(t){var r=t.length,s=r,l=vt.prototype.thru;for(e&&t.reverse();s--;){var h=t[s];if(typeof h!="function")throw new pt(c);if(l&&!v&&oa(h)=="wrapper")var v=new vt([],!0)}for(s=v?s:r;++s<r;){h=t[s];var m=oa(h),S=m=="wrapper"?Ls(h):n;S&&ks(S[0])&&S[1]==(C|R|$|L)&&!S[4].length&&S[9]==1?v=v[oa(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,U=r?t[D].apply(this,P):F;++D<r;)U=t[D].call(this,U);return U}})}function na(e,t,r,s,l,h,v,m,S,P){var F=t&C,D=t&T,U=t&k,j=t&(R|Z),X=t&q,ae=U?n:Jr(e);function V(){for(var se=arguments.length,le=I(se),ft=se;ft--;)le[ft]=arguments[ft];if(j)var Ge=sr(V),lt=Iy(le,Ge);if(s&&(le=ud(le,s,l,j)),h&&(le=fd(le,h,v,j)),se-=lt,j&&se<P){var Te=fn(le,Ge);return md(e,t,na,V.placeholder,r,le,Te,m,S,P-se)}var Ct=D?r:this,Zt=U?Ct[e]:e;return se=le.length,m?le=kb(le,m):X&&se>1&&le.reverse(),F&&S<se&&(le.length=S),this&&this!==ke&&this instanceof V&&(Zt=ae||Jr(Zt)),Zt.apply(Ct,le)}return V}function vd(e,t){return function(r,s){return H1(r,e,t(s),{})}}function ra(e,t){return function(r,s){var l;if(r===n&&s===n)return t;if(r!==n&&(l=r),s!==n){if(l===n)return s;typeof r=="string"||typeof s=="string"?(r=st(r),s=st(s)):(r=ed(r),s=ed(s)),l=e(r,s)}return l}}function Is(e){return Yt(function(t){return t=we(t,ot(K())),oe(function(r){var s=this;return e(t,function(l){return at(l,s,r)})})})}function ia(e,t){t=t===n?" ":st(t);var r=t.length;if(r<2)return r?_s(t,e):t;var s=_s(t,qi(e/Qn(t)));return Zn(t)?pn(Tt(s),0,e).join(""):s.slice(0,e)}function gb(e,t,r,s){var l=t&T,h=Jr(e);function v(){for(var m=-1,S=arguments.length,P=-1,F=s.length,D=I(F+S),U=this&&this!==ke&&this instanceof v?h:e;++P<F;)D[P]=s[P];for(;S--;)D[P++]=arguments[++m];return at(U,l?r:this,D)}return v}function gd(e){return function(t,r,s){return s&&typeof s!="number"&&je(t,r,s)&&(r=s=n),t=Vt(t),r===n?(r=t,t=0):r=Vt(r),s=s===n?t<r?1:-1:Vt(s),tb(t,r,s,e)}}function aa(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=bt(t),r=bt(r)),e(t,r)}}function md(e,t,r,s,l,h,v,m,S,P){var F=t&R,D=F?v:n,U=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,U,m,S,P],V=r.apply(n,ae);return ks(e)&&Cd(V,ae),V.placeholder=s,Nd(V,e,t)}function Os(e){var t=Ne[e];return function(r,s){if(r=bt(r),s=s==null?0:Re(ie(s),292),s&&Nc(r)){var l=(ge(r)+"e").split("e"),h=t(l[0]+"e"+(+l[1]+s));return l=(ge(h)+"e").split("e"),+(l[0]+"e"+(+l[1]-s))}return t(r)}}var mb=nr&&1/Mi(new nr([,-0]))[1]==Et?function(e){return new nr(e)}:Xs;function yd(e){return function(t){var r=$e(t);return r==Ie?is(t):r==Ke?My(t):Ty(t,e(t))}}function Jt(e,t,r,s,l,h,v,m){var S=t&k;if(!S&&typeof e!="function")throw new pt(c);var P=s?s.length:0;if(P||(t&=-97,s=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=s,D=l;s=l=n}var U=S?n:Ls(e),j=[e,t,r,s,l,F,D,h,v,m];if(U&&Pb(j,U),e=j[0],t=j[1],r=j[2],s=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==T)var X=pb(e,t,r);else t==R||t==Z?X=vb(e,t,m):(t==$||t==(T|$))&&!l.length?X=gb(e,t,r,s):X=na.apply(n,j);var ae=U?Zc:Cd;return Nd(ae(X,j),e,t)}function bd(e,t,r,s){return e===n||Ot(e,tr[r])&&!ve.call(s,r)?t:e}function _d(e,t,r,s,l,h){return Se(e)&&Se(t)&&(h.set(t,e),Zi(e,t,n,_d,h),h.delete(t)),e}function yb(e){return Xr(e)?n:e}function wd(e,t,r,s,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,U=!0,j=r&A?new Cn:n;for(h.set(e,t),h.set(t,e);++D<m;){var X=e[D],ae=t[D];if(s)var V=v?s(ae,X,D,t,e,h):s(X,ae,D,e,t,h);if(V!==n){if(V)continue;U=!1;break}if(j){if(!Zo(t,function(se,le){if(!Dr(j,le)&&(X===se||l(X,se,r,s,h)))return j.push(le)})){U=!1;break}}else if(!(X===ae||l(X,ae,r,s,h))){U=!1;break}}return h.delete(e),h.delete(t),U}function bb(e,t,r,s,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 Sn:return!(e.byteLength!=t.byteLength||!h(new $i(e),new $i(t)));case _n:case rn:case an:return Ot(+e,+t);case Hn:return e.name==t.name&&e.message==t.message;case Oe:case on:return e==t+"";case Ie:var m=is;case Ke:var S=s&x;if(m||(m=Mi),e.size!=t.size&&!S)return!1;var P=v.get(e);if(P)return P==t;s|=A,v.set(e,t);var F=wd(m(e),m(t),s,l,h,v);return v.delete(e),F;case Be:if(zr)return zr.call(e)==zr.call(t)}return!1}function _b(e,t,r,s,l,h){var v=r&x,m=Cs(e),S=m.length,P=Cs(t),F=P.length;if(S!=F&&!v)return!1;for(var D=S;D--;){var U=m[D];if(!(v?U in t:ve.call(t,U)))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;){U=m[D];var se=e[U],le=t[U];if(s)var ft=v?s(le,se,U,t,e,h):s(se,le,U,e,t,h);if(!(ft===n?se===le||l(se,le,r,s,h):ft)){ae=!1;break}V||(V=U=="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 Yt(e){return Ws(Id(e,n,Dd),e+"")}function Cs(e){return zc(e,Fe,Fs)}function Ns(e){return zc(e,Qe,Sd)}var Ls=Gi?function(e){return Gi.get(e)}:Xs;function oa(e){for(var t=e.name+"",r=rr[t],s=ve.call(rr,t)?r.length:0;s--;){var l=r[s],h=l.func;if(h==null||h==e)return l.name}return t}function sr(e){var t=ve.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Ys;return e=e===Ys?qc:e,arguments.length?e(arguments[0],arguments[1]):e}function sa(e,t){var r=e.__data__;return Ob(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ps(e){for(var t=Fe(e),r=t.length;r--;){var s=t[r],l=e[s];t[r]=[s,l,Ad(l)]}return t}function Pn(e,t){var r=Ly(e,t);return Hc(r)?r:n}function wb(e){var t=ve.call(e,In),r=e[In];try{e[In]=n;var s=!0}catch{}var l=Bi.call(e);return s&&(t?e[In]=r:delete e[In]),l}var Fs=os?function(e){return e==null?[]:(e=me(e),sn(os(e),function(t){return Oc.call(e,t)}))}:Vs,Sd=os?function(e){for(var t=[];e;)un(t,Fs(e)),e=zi(e);return t}:Vs,$e=qe;(ss&&$e(new ss(new ArrayBuffer(1)))!=He||Br&&$e(new Br)!=Ie||us&&$e(us.resolve())!=Ue||nr&&$e(new nr)!=Ke||Rr&&$e(new Rr)!=wn)&&($e=function(e){var t=qe(e),r=t==rt?e.constructor:n,s=r?Fn(r):"";if(s)switch(s){case r1:return He;case i1:return Ie;case a1:return Ue;case o1:return Ke;case s1:return wn}return t});function Sb(e,t,r){for(var s=-1,l=r.length;++s<l;){var h=r[s],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 xb(e){var t=e.match(Kn);return t?t[1].split(N0):[]}function xd(e,t,r){t=hn(t,e);for(var s=-1,l=t.length,h=!1;++s<l;){var v=Mt(t[s]);if(!(h=e!=null&&r(e,v)))break;e=e[v]}return h||++s!=l?h:(l=e==null?0:e.length,!!l&&pa(l)&&Kt(v,l)&&(te(e)||Mn(e)))}function Eb(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Ed(e){return typeof e.constructor=="function"&&!Yr(e)?ir(zi(e)):{}}function Ab(e,t,r){var s=e.constructor;switch(t){case Sn:return Ts(e);case _n:case rn:return new s(+e);case He:return ub(e,r);case Gn:case Or:case xn:case En:case Cr:case Nr:case Jn:case Lr:case Pr:return od(e,r);case Ie:return new s;case an:case on:return new s(e);case Oe:return fb(e);case Ke:return new s;case Be:return lb(e)}}function Tb(e,t){var r=t.length;if(!r)return e;var s=r-1;return t[s]=(r>1?"& ":"")+t[s],t=t.join(r>2?", ":" "),e.replace(kr,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function bw(e){return te(e)||kn(e)||!!(Hc&&e&&e[Hc])}function Kt(e,t){var i=typeof e;return t=t??Ue,!!t&&(i=="number"||i!="symbol"&&Py.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,i){if(!_e(i))return!1;var u=typeof t;return(u=="number"?Ze(i)&&Kt(t,i.length):u=="string"&&t in i)?Ot(i[t],e):!1}function qs(e,t){if(te(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||ut(e)?!0:Xo.test(e)||!Vo.test(e)||t!=null&&e in me(t)}function ww(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e){var t=ua(e),i=d[t];if(typeof i!="function"||!(t in ue.prototype))return!1;if(e===i)return!0;var u=Us(i);return!!u&&e===u[0]}function Sw(e){return!!Rc&&Rc in e}var _w=Bi?Vt:uu;function Zr(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||ir;return e===i}function Rd(e){return e===e&&!_e(e)}function $d(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==n||e in me(i))}}function xw(e){var t=pa(e,function(u){return i.size===y&&i.clear(),u}),i=t.cache;return t}function Iw(e,t){var i=e[1],u=t[1],l=i|u,h=l<(E|L|N),g=u==N&&i==z||u==N&&i==D&&e[7].length<=t[8]||u==(N|D)&&t[7].length<=t[8]&&i==z;if(!(h||g))return e;u&E&&(e[2]=t[2],l|=i&E?0:W);var m=t[3];if(m){var _=e[3];e[3]=_?_d(_,m,t[4]):m,e[4]=_?ln(e[3],w):t[4]}return m=t[5],m&&(_=e[5],e[5]=_?xd(_,m,t[6]):m,e[6]=_?ln(e[5],w):t[6]),m=t[7],m&&(e[7]=m),u&N&&(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 Tw(e){var t=[];if(e!=null)for(var i in me(e))t.push(i);return t}function Ew(e){return $i.call(e)}function Ud(e,t,i){return t=Pe(t===n?e.length-1:t,0),function(){for(var u=arguments,l=-1,h=Pe(u.length-t,0),g=A(h);++l<h;)g[l]=u[t+l];l=-1;for(var m=A(t+1);++l<t;)m[l]=u[l];return m[t]=i(g),at(e,this,m)}}function zd(e,t){return t.length<2?e:Dn(e,mt(t,0,-1))}function Aw(e,t){for(var i=e.length,u=Re(t.length,i),l=Xe(e);u--;){var h=t[u];e[u]=Kt(h,i)?l[h]:n}return e}function Gs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Hd=jd(dd),Qr=z1||function(e,t){return Fe.setTimeout(e,t)},Ys=jd(Vb);function qd(e,t,i){var u=t+"";return Ys(e,yw(u,Ow(gw(u),i)))}function jd(e){var t=0,i=0;return function(){var u=G1(),l=K-(u-i);if(i=u,l>0){if(++t>=ie)return arguments[0]}else t=0;return e.apply(n,arguments)}}function la(e,t){var i=-1,u=e.length,l=u-1;for(t=t===n?u:t;++i<t;){var h=Cs(i,l),g=e[h];e[h]=e[i],e[i]=g}return e.length=t,e}var Gd=xw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ni,function(i,u,l,h){t.push(l?h.replace(Ty,"$1"):u||i)}),t});function Mt(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-It?"-0":t}function Fn(e){if(e!=null){try{return Ri.call(e)}catch{}try{return e+""}catch{}}return""}function Ow(e,t){return ht(Cr,function(i){var u="_."+i[0];t&i[1]&&!Mi(e,u)&&e.push(u)}),e.sort()}function Yd(e){if(e instanceof ue)return e.clone();var t=new gt(e.__wrapped__,e.__chain__);return t.__actions__=Xe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Cw(e,t,i){(i?je(e,t,i):t===n)?t=1:t=Pe(re(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var l=0,h=0,g=A(Gi(u/t));l<u;)g[h++]=mt(e,l,l+=t);return g}function Nw(e){for(var t=-1,i=e==null?0:e.length,u=0,l=[];++t<i;){var h=e[t];h&&(l[u++]=h)}return l}function Pw(){var e=arguments.length;if(!e)return[];for(var t=A(e-1),i=arguments[0],u=e;u--;)t[u-1]=arguments[u];return fn(te(i)?Xe(i):[i],ke(t,1))}var Lw=oe(function(e,t){return Te(e)?Yr(e,ke(t,1,Te,!0)):[]}),Dw=oe(function(e,t){var i=yt(t);return Te(i)&&(i=n),Te(e)?Yr(e,ke(t,1,Te,!0),J(i,2)):[]}),Mw=oe(function(e,t){var i=yt(t);return Te(i)&&(i=n),Te(e)?Yr(e,ke(t,1,Te,!0),n,i):[]});function Fw(e,t,i){var u=e==null?0:e.length;return u?(t=i||t===n?1:re(t),mt(e,t<0?0:t,u)):[]}function kw(e,t,i){var u=e==null?0:e.length;return u?(t=i||t===n?1:re(t),t=u-t,mt(e,0,t<0?0:t)):[]}function Ww(e,t){return e&&e.length?na(e,J(t,3),!0,!0):[]}function Bw(e,t){return e&&e.length?na(e,J(t,3),!0):[]}function Rw(e,t,i,u){var l=e==null?0:e.length;return l?(i&&typeof i!="number"&&je(e,t,i)&&(i=0,u=l),Pb(e,t,i,u)):[]}function Jd(e,t,i){var u=e==null?0:e.length;if(!u)return-1;var l=i==null?0:re(i);return l<0&&(l=Pe(u+l,0)),Fi(e,J(t,3),l)}function Kd(e,t,i){var u=e==null?0:e.length;if(!u)return-1;var l=u-1;return i!==n&&(l=re(i),l=i<0?Pe(u+l,0):Re(l,u-1)),Fi(e,J(t,3),l,!0)}function Vd(e){var t=e==null?0:e.length;return t?ke(e,1):[]}function $w(e){var t=e==null?0:e.length;return t?ke(e,It):[]}function Uw(e,t){var i=e==null?0:e.length;return i?(t=t===n?1:re(t),ke(e,t)):[]}function zw(e){for(var t=-1,i=e==null?0:e.length,u={};++t<i;){var l=e[t];u[l[0]]=l[1]}return u}function Xd(e){return e&&e.length?e[0]:n}function Hw(e,t,i){var u=e==null?0:e.length;if(!u)return-1;var l=i==null?0:re(i);return l<0&&(l=Pe(u+l,0)),er(e,t,l)}function qw(e){var t=e==null?0:e.length;return t?mt(e,0,-1):[]}var jw=oe(function(e){var t=Se(e,Ms);return t.length&&t[0]===e[0]?Is(t):[]}),Gw=oe(function(e){var t=yt(e),i=Se(e,Ms);return t===yt(i)?t=n:i.pop(),i.length&&i[0]===e[0]?Is(i,J(t,2)):[]}),Yw=oe(function(e){var t=yt(e),i=Se(e,Ms);return t=typeof t=="function"?t:n,t&&i.pop(),i.length&&i[0]===e[0]?Is(i,n,t):[]});function Jw(e,t){return e==null?"":q1.call(e,t)}function yt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Kw(e,t,i){var u=e==null?0:e.length;if(!u)return-1;var l=u;return i!==n&&(l=re(i),l=l<0?Pe(u+l,0):Re(l,u-1)),t===t?O1(e,t,l):Fi(e,Pc,l,!0)}function Vw(e,t){return e&&e.length?ud(e,re(t)):n}var Xw=oe(Zd);function Zd(e,t){return e&&e.length&&t&&t.length?Os(e,t):e}function Zw(e,t,i){return e&&e.length&&t&&t.length?Os(e,t,J(i,2)):e}function Qw(e,t,i){return e&&e.length&&t&&t.length?Os(e,t,n,i):e}var eS=Jt(function(e,t){var i=e==null?0:e.length,u=ws(e,t);return cd(e,Se(t,function(l){return Kt(l,i)?+l:l}).sort(Sd)),u});function tS(e,t){var i=[];if(!(e&&e.length))return i;var u=-1,l=[],h=e.length;for(t=J(t,3);++u<h;){var g=e[u];t(g,u,e)&&(i.push(g),l.push(u))}return cd(e,l),i}function Js(e){return e==null?e:J1.call(e)}function nS(e,t,i){var u=e==null?0:e.length;return u?(i&&typeof i!="number"&&je(e,t,i)?(t=0,i=u):(t=t==null?0:re(t),i=i===n?u:re(i)),mt(e,t,i)):[]}function rS(e,t){return ta(e,t)}function iS(e,t,i){return Ps(e,t,J(i,2))}function aS(e,t){var i=e==null?0:e.length;if(i){var u=ta(e,t);if(u<i&&Ot(e[u],t))return u}return-1}function oS(e,t){return ta(e,t,!0)}function sS(e,t,i){return Ps(e,t,J(i,2),!0)}function uS(e,t){var i=e==null?0:e.length;if(i){var u=ta(e,t,!0)-1;if(Ot(e[u],t))return u}return-1}function fS(e){return e&&e.length?hd(e):[]}function lS(e,t){return e&&e.length?hd(e,J(t,2)):[]}function cS(e){var t=e==null?0:e.length;return t?mt(e,1,t):[]}function dS(e,t,i){return e&&e.length?(t=i||t===n?1:re(t),mt(e,0,t<0?0:t)):[]}function hS(e,t,i){var u=e==null?0:e.length;return u?(t=i||t===n?1:re(t),t=u-t,mt(e,t<0?0:t,u)):[]}function pS(e,t){return e&&e.length?na(e,J(t,3),!1,!0):[]}function gS(e,t){return e&&e.length?na(e,J(t,3)):[]}var vS=oe(function(e){return hn(ke(e,1,Te,!0))}),mS=oe(function(e){var t=yt(e);return Te(t)&&(t=n),hn(ke(e,1,Te,!0),J(t,2))}),yS=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,hn(ke(e,1,Te,!0),n,t)});function bS(e){return e&&e.length?hn(e):[]}function wS(e,t){return e&&e.length?hn(e,J(t,2)):[]}function SS(e,t){return t=typeof t=="function"?t:n,e&&e.length?hn(e,n,t):[]}function Ks(e){if(!(e&&e.length))return[];var t=0;return e=un(e,function(i){if(Te(i))return t=Pe(i.length,t),!0}),ds(t,function(i){return Se(e,fs(i))})}function Qd(e,t){if(!(e&&e.length))return[];var i=Ks(e);return t==null?i:Se(i,function(u){return at(t,n,u)})}var _S=oe(function(e,t){return Te(e)?Yr(e,t):[]}),xS=oe(function(e){return Ds(un(e,Te))}),IS=oe(function(e){var t=yt(e);return Te(t)&&(t=n),Ds(un(e,Te),J(t,2))}),TS=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,Ds(un(e,Te),n,t)}),ES=oe(Ks);function AS(e,t){return md(e||[],t||[],Gr)}function OS(e,t){return md(e||[],t||[],Vr)}var CS=oe(function(e){var t=e.length,i=t>1?e[t-1]:n;return i=typeof i=="function"?(e.pop(),i):n,Qd(e,i)});function eh(e){var t=d(e);return t.__chain__=!0,t}function NS(e,t){return t(e),e}function ca(e,t){return t(e)}var PS=Jt(function(e){var t=e.length,i=t?e[0]:0,u=this.__wrapped__,l=function(h){return ws(h,e)};return t>1||this.__actions__.length||!(u instanceof ue)||!Kt(i)?this.thru(l):(u=u.slice(i,+i+(t?1:0)),u.__actions__.push({func:ca,args:[l],thisArg:n}),new gt(u,this.__chain__).thru(function(h){return t&&!h.length&&h.push(n),h}))});function LS(){return eh(this)}function DS(){return new gt(this.value(),this.__chain__)}function MS(){this.__values__===n&&(this.__values__=ph(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function FS(){return this}function kS(e){for(var t,i=this;i instanceof Vi;){var u=Yd(i);u.__index__=0,u.__values__=n,t?l.__wrapped__=u:t=u;var l=u;i=i.__wrapped__}return l.__wrapped__=e,t}function WS(){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:ca,args:[Js],thisArg:n}),new gt(t,this.__chain__)}return this.thru(Js)}function BS(){return vd(this.__wrapped__,this.__actions__)}var RS=ra(function(e,t,i){ge.call(e,i)?++e[i]:Gt(e,i,1)});function $S(e,t,i){var u=te(e)?Cc:Nb;return i&&je(e,t,i)&&(t=n),u(e,J(t,3))}function US(e,t){var i=te(e)?un:Qc;return i(e,J(t,3))}var zS=Ad(Jd),HS=Ad(Kd);function qS(e,t){return ke(da(e,t),1)}function jS(e,t){return ke(da(e,t),It)}function GS(e,t,i){return i=i===n?1:re(i),ke(da(e,t),i)}function th(e,t){var i=te(e)?ht:dn;return i(e,J(t,3))}function nh(e,t){var i=te(e)?c1:Zc;return i(e,J(t,3))}var YS=ra(function(e,t,i){ge.call(e,i)?e[i].push(t):Gt(e,i,[t])});function JS(e,t,i,u){e=Ze(e)?e:dr(e),i=i&&!u?re(i):0;var l=e.length;return i<0&&(i=Pe(l+i,0)),ma(e)?i<=l&&e.indexOf(t,i)>-1:!!l&&er(e,t,i)>-1}var KS=oe(function(e,t,i){var u=-1,l=typeof t=="function",h=Ze(e)?A(e.length):[];return dn(e,function(g){h[++u]=l?at(t,g,i):Jr(g,t,i)}),h}),VS=ra(function(e,t,i){Gt(e,i,t)});function da(e,t){var i=te(e)?Se:ad;return i(e,J(t,3))}function XS(e,t,i,u){return e==null?[]:(te(t)||(t=t==null?[]:[t]),i=u?n:i,te(i)||(i=i==null?[]:[i]),fd(e,t,i))}var ZS=ra(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function QS(e,t,i){var u=te(e)?ss:Dc,l=arguments.length<3;return u(e,J(t,4),i,l,dn)}function e_(e,t,i){var u=te(e)?d1:Dc,l=arguments.length<3;return u(e,J(t,4),i,l,Zc)}function t_(e,t){var i=te(e)?un:Qc;return i(e,ga(J(t,3)))}function n_(e){var t=te(e)?Jc:Jb;return t(e)}function r_(e,t,i){(i?je(e,t,i):t===n)?t=1:t=re(t);var u=te(e)?Tb:Kb;return u(e,t)}function i_(e){var t=te(e)?Eb:Xb;return t(e)}function a_(e){if(e==null)return 0;if(Ze(e))return ma(e)?nr(e):e.length;var t=$e(e);return t==Ae||t==Ke?e.size:Es(e).length}function o_(e,t,i){var u=te(e)?us:Zb;return i&&je(e,t,i)&&(t=n),u(e,J(t,3))}var s_=oe(function(e,t){if(e==null)return[];var i=t.length;return i>1&&je(e,t[0],t[1])?t=[]:i>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),fd(e,ke(t,1),[])}),ha=U1||function(){return Fe.Date.now()};function u_(e,t){if(typeof t!="function")throw new pt(c);return e=re(e),function(){if(--e<1)return t.apply(this,arguments)}}function rh(e,t,i){return t=i?n:t,t=e&&t==null?e.length:t,Yt(e,N,n,n,n,n,t)}function ih(e,t){var i;if(typeof t!="function")throw new pt(c);return e=re(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Vs=oe(function(e,t,i){var u=E;if(i.length){var l=ln(i,lr(Vs));u|=R}return Yt(e,u,t,i,l)}),ah=oe(function(e,t,i){var u=E|L;if(i.length){var l=ln(i,lr(ah));u|=R}return Yt(t,u,e,i,l)});function oh(e,t,i){t=i?n:t;var u=Yt(e,z,n,n,n,n,n,t);return u.placeholder=oh.placeholder,u}function sh(e,t,i){t=i?n:t;var u=Yt(e,Z,n,n,n,n,n,t);return u.placeholder=sh.placeholder,u}function uh(e,t,i){var u,l,h,g,m,_,M=0,F=!1,k=!1,U=!0;if(typeof e!="function")throw new pt(c);t=bt(t)||0,_e(i)&&(F=!!i.leading,k="maxWait"in i,h=k?Pe(bt(i.maxWait)||0,t):h,U="trailing"in i?!!i.trailing:U);function j(Ee){var Ct=u,Zt=l;return u=l=n,M=Ee,g=e.apply(Zt,Ct),g}function V(Ee){return M=Ee,m=Qr(se,t),F?j(Ee):g}function ae(Ee){var Ct=Ee-_,Zt=Ee-M,Ah=t-Ct;return k?Re(Ah,h-Zt):Ah}function X(Ee){var Ct=Ee-_,Zt=Ee-M;return _===n||Ct>=t||Ct<0||k&&Zt>=h}function se(){var Ee=ha();if(X(Ee))return le(Ee);m=Qr(se,ae(Ee))}function le(Ee){return m=n,U&&u?j(Ee):(u=l=n,g)}function ft(){m!==n&&yd(m),M=0,u=_=l=m=n}function Ge(){return m===n?g:le(ha())}function lt(){var Ee=ha(),Ct=X(Ee);if(u=arguments,l=this,_=Ee,Ct){if(m===n)return V(_);if(k)return yd(m),m=Qr(se,t),j(_)}return m===n&&(m=Qr(se,t)),g}return lt.cancel=ft,lt.flush=Ge,lt}var f_=oe(function(e,t){return Xc(e,1,t)}),l_=oe(function(e,t,i){return Xc(e,bt(t)||0,i)});function c_(e){return Yt(e,q)}function pa(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pt(c);var i=function(){var u=arguments,l=t?t.apply(this,u):u[0],h=i.cache;if(h.has(l))return h.get(l);var g=e.apply(this,u);return i.cache=h.set(l,g)||h,g};return i.cache=new(pa.Cache||jt),i}pa.Cache=jt;function ga(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 d_(e){return ih(2,e)}var h_=Qb(function(e,t){t=t.length==1&&te(t[0])?Se(t[0],ot(J())):Se(ke(t,1),ot(J()));var i=t.length;return oe(function(u){for(var l=-1,h=Re(u.length,i);++l<h;)u[l]=t[l].call(this,u[l]);return at(e,this,u)})}),Xs=oe(function(e,t){var i=ln(t,lr(Xs));return Yt(e,R,n,t,i)}),fh=oe(function(e,t){var i=ln(t,lr(fh));return Yt(e,ce,n,t,i)}),p_=Jt(function(e,t){return Yt(e,D,n,n,n,t)});function g_(e,t){if(typeof e!="function")throw new pt(c);return t=t===n?t:re(t),oe(e,t)}function v_(e,t){if(typeof e!="function")throw new pt(c);return t=t==null?0:Pe(re(t),0),oe(function(i){var u=i[t],l=gn(i,0,t);return u&&fn(l,u),at(e,this,l)})}function m_(e,t,i){var u=!0,l=!0;if(typeof e!="function")throw new pt(c);return _e(i)&&(u="leading"in i?!!i.leading:u,l="trailing"in i?!!i.trailing:l),uh(e,t,{leading:u,maxWait:t,trailing:l})}function y_(e){return rh(e,1)}function b_(e,t){return Xs(Fs(t),e)}function w_(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function S_(e){return vt(e,x)}function __(e,t){return t=typeof t=="function"?t:n,vt(e,x,t)}function x_(e){return vt(e,S|x)}function I_(e,t){return t=typeof t=="function"?t:n,vt(e,S|x,t)}function T_(e,t){return t==null||Vc(e,t,De(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var E_=sa(xs),A_=sa(function(e,t){return e>=t}),kn=nd((function(){return arguments})())?nd:function(e){return xe(e)&&ge.call(e,"callee")&&!zc.call(e,"callee")},te=A.isArray,O_=xc?ot(xc):kb;function Ze(e){return e!=null&&va(e.length)&&!Vt(e)}function Te(e){return xe(e)&&Ze(e)}function C_(e){return e===!0||e===!1||xe(e)&&qe(e)==_n}var vn=H1||uu,N_=Ic?ot(Ic):Wb;function P_(e){return xe(e)&&e.nodeType===1&&!ei(e)}function L_(e){if(e==null)return!0;if(Ze(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||cr(e)||kn(e)))return!e.length;var t=$e(e);if(t==Ae||t==Ke)return!e.size;if(Zr(e))return!Es(e).length;for(var i in e)if(ge.call(e,i))return!1;return!0}function D_(e,t){return Kr(e,t)}function M_(e,t,i){i=typeof i=="function"?i:n;var u=i?i(e,t):n;return u===n?Kr(e,t,n,i):!!u}function Zs(e){if(!xe(e))return!1;var t=qe(e);return t==Gn||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!ei(e)}function F_(e){return typeof e=="number"&&qc(e)}function Vt(e){if(!_e(e))return!1;var t=qe(e);return t==Yn||t==Ai||t==Nr||t==Jn}function lh(e){return typeof e=="number"&&e==re(e)}function va(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ue}function _e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xe(e){return e!=null&&typeof e=="object"}var ch=Tc?ot(Tc):Rb;function k_(e,t){return e===t||Ts(e,t,zs(t))}function W_(e,t,i){return i=typeof i=="function"?i:n,Ts(e,t,zs(t),i)}function B_(e){return dh(e)&&e!=+e}function R_(e){if(_w(e))throw new Q(f);return rd(e)}function $_(e){return e===null}function U_(e){return e==null}function dh(e){return typeof e=="number"||xe(e)&&qe(e)==on}function ei(e){if(!xe(e)||qe(e)!=rt)return!1;var t=Hi(e);if(t===null)return!0;var i=ge.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Ri.call(i)==W1}var Qs=Ec?ot(Ec):$b;function z_(e){return lh(e)&&e>=-Ue&&e<=Ue}var hh=Ac?ot(Ac):Ub;function ma(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 cr=Oc?ot(Oc):zb;function H_(e){return e===n}function q_(e){return xe(e)&&$e(e)==xn}function j_(e){return xe(e)&&qe(e)==Yo}var G_=sa(As),Y_=sa(function(e,t){return e<=t});function ph(e){if(!e)return[];if(Ze(e))return ma(e)?Et(e):Xe(e);if(Ur&&e[Ur])return T1(e[Ur]());var t=$e(e),i=t==Ae?ps:t==Ke?ki:dr;return i(e)}function Xt(e){if(!e)return e===0?e:0;if(e=bt(e),e===It||e===-It){var t=e<0?-1:1;return t*jo}return e===e?e:0}function re(e){var t=Xt(e),i=t%1;return t===t?i?t-i:t:0}function gh(e){return e?Ln(re(e),0,nt):0}function bt(e){if(typeof e=="number")return e;if(ut(e))return Tt;if(_e(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_e(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mc(e);var i=Oy.test(e);return i||Ny.test(e)?u1(e.slice(2),i?2:8):Ay.test(e)?Tt:+e}function vh(e){return Dt(e,Qe(e))}function J_(e){return e?Ln(re(e),-Ue,Ue):e===0?e:0}function ve(e){return e==null?"":st(e)}var K_=ur(function(e,t){if(Zr(t)||Ze(t)){Dt(t,De(t),e);return}for(var i in t)ge.call(t,i)&&Gr(e,i,t[i])}),mh=ur(function(e,t){Dt(t,Qe(t),e)}),ya=ur(function(e,t,i,u){Dt(t,Qe(t),e,u)}),V_=ur(function(e,t,i,u){Dt(t,De(t),e,u)}),X_=Jt(ws);function Z_(e,t){var i=sr(e);return t==null?i:Kc(i,t)}var Q_=oe(function(e,t){e=me(e);var i=-1,u=t.length,l=u>2?t[2]:n;for(l&&je(t[0],t[1],l)&&(u=1);++i<u;)for(var h=t[i],g=Qe(h),m=-1,_=g.length;++m<_;){var M=g[m],F=e[M];(F===n||Ot(F,ir[M])&&!ge.call(e,M))&&(e[M]=h[M])}return e}),ex=oe(function(e){return e.push(n,Md),at(yh,n,e)});function tx(e,t){return Nc(e,J(t,3),Lt)}function nx(e,t){return Nc(e,J(t,3),_s)}function rx(e,t){return e==null?e:Ss(e,J(t,3),Qe)}function ix(e,t){return e==null?e:ed(e,J(t,3),Qe)}function ax(e,t){return e&&Lt(e,J(t,3))}function ox(e,t){return e&&_s(e,J(t,3))}function sx(e){return e==null?[]:Qi(e,De(e))}function ux(e){return e==null?[]:Qi(e,Qe(e))}function eu(e,t,i){var u=e==null?n:Dn(e,t);return u===n?i:u}function fx(e,t){return e!=null&&Wd(e,t,Lb)}function tu(e,t){return e!=null&&Wd(e,t,Db)}var lx=Cd(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),e[t]=i},ru(et)),cx=Cd(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),ge.call(e,t)?e[t].push(i):e[t]=[i]},J),dx=oe(Jr);function De(e){return Ze(e)?Yc(e):Es(e)}function Qe(e){return Ze(e)?Yc(e,!0):Hb(e)}function hx(e,t){var i={};return t=J(t,3),Lt(e,function(u,l,h){Gt(i,t(u,l,h),u)}),i}function px(e,t){var i={};return t=J(t,3),Lt(e,function(u,l,h){Gt(i,l,t(u,l,h))}),i}var gx=ur(function(e,t,i){ea(e,t,i)}),yh=ur(function(e,t,i,u){ea(e,t,i,u)}),vx=Jt(function(e,t){var i={};if(e==null)return i;var u=!1;t=Se(t,function(h){return h=pn(h,e),u||(u=h.length>1),h}),Dt(e,$s(e),i),u&&(i=vt(i,S|C|x,lw));for(var l=t.length;l--;)Ls(i,t[l]);return i});function mx(e,t){return bh(e,ga(J(t)))}var yx=Jt(function(e,t){return e==null?{}:jb(e,t)});function bh(e,t){if(e==null)return{};var i=Se($s(e),function(u){return[u]});return t=J(t),ld(e,i,function(u,l){return t(u,l[0])})}function bx(e,t,i){t=pn(t,e);var u=-1,l=t.length;for(l||(l=1,e=n);++u<l;){var h=e==null?n:e[Mt(t[u])];h===n&&(u=l,h=i),e=Vt(h)?h.call(e):h}return e}function wx(e,t,i){return e==null?e:Vr(e,t,i)}function Sx(e,t,i,u){return u=typeof u=="function"?u:n,e==null?e:Vr(e,t,i,u)}var wh=Ld(De),Sh=Ld(Qe);function _x(e,t,i){var u=te(e),l=u||vn(e)||cr(e);if(t=J(t,4),i==null){var h=e&&e.constructor;l?i=u?new h:[]:_e(e)?i=Vt(h)?sr(Hi(e)):{}:i={}}return(l?ht:Lt)(e,function(g,m,_){return t(i,g,m,_)}),i}function xx(e,t){return e==null?!0:Ls(e,t)}function Ix(e,t,i){return e==null?e:gd(e,t,Fs(i))}function Tx(e,t,i,u){return u=typeof u=="function"?u:n,e==null?e:gd(e,t,Fs(i),u)}function dr(e){return e==null?[]:hs(e,De(e))}function Ex(e){return e==null?[]:hs(e,Qe(e))}function Ax(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=bt(i),i=i===i?i:0),t!==n&&(t=bt(t),t=t===t?t:0),Ln(bt(e),t,i)}function Ox(e,t,i){return t=Xt(t),i===n?(i=t,t=0):i=Xt(i),e=bt(e),Mb(e,t,i)}function Cx(e,t,i){if(i&&typeof i!="boolean"&&je(e,t,i)&&(t=i=n),i===n&&(typeof t=="boolean"?(i=t,t=n):typeof e=="boolean"&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Xt(e),t===n?(t=e,e=0):t=Xt(t)),e>t){var u=e;e=t,t=u}if(i||e%1||t%1){var l=jc();return Re(e+l*(t-e+s1("1e-"+((l+"").length-1))),t)}return Cs(e,t)}var Nx=fr(function(e,t,i){return t=t.toLowerCase(),e+(i?_h(t):t)});function _h(e){return nu(ve(e).toLowerCase())}function xh(e){return e=ve(e),e&&e.replace(Ly,w1).replace(Xy,"")}function Px(e,t,i){e=ve(e),t=st(t);var u=e.length;i=i===n?u:Ln(re(i),0,u);var l=i;return i-=t.length,i>=0&&e.slice(i,l)==t}function Lx(e){return e=ve(e),e&&Xn.test(e)?e.replace(it,S1):e}function Dx(e){return e=ve(e),e&&Zo.test(e)?e.replace(Wr,"\\$&"):e}var Mx=fr(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Fx=fr(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),kx=Ed("toLowerCase");function Wx(e,t,i){e=ve(e),t=re(t);var u=t?nr(e):0;if(!t||u>=t)return e;var l=(t-u)/2;return oa(Yi(l),i)+e+oa(Gi(l),i)}function Bx(e,t,i){e=ve(e),t=re(t);var u=t?nr(e):0;return t&&u<t?e+oa(t-u,i):e}function Rx(e,t,i){e=ve(e),t=re(t);var u=t?nr(e):0;return t&&u<t?oa(t-u,i)+e:e}function $x(e,t,i){return i||t==null?t=0:t&&(t=+t),Y1(ve(e).replace(Ht,""),t||0)}function Ux(e,t,i){return(i?je(e,t,i):t===n)?t=1:t=re(t),Ns(ve(e),t)}function zx(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Hx=fr(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function qx(e,t,i){return i&&typeof i!="number"&&je(e,t,i)&&(t=i=n),i=i===n?nt:i>>>0,i?(e=ve(e),e&&(typeof t=="string"||t!=null&&!Qs(t))&&(t=st(t),!t&&tr(e))?gn(Et(e),0,i):e.split(t,i)):[]}var jx=fr(function(e,t,i){return e+(i?" ":"")+nu(t)});function Gx(e,t,i){return e=ve(e),i=i==null?0:Ln(re(i),0,e.length),t=st(t),e.slice(i,i+t.length)==t}function Yx(e,t,i){var u=d.templateSettings;i&&je(e,t,i)&&(t=n),e=ve(e),t=ya({},t,u,Dd);var l=ya({},t.imports,u.imports,Dd),h=De(l),g=hs(l,h),m,_,M=0,F=t.interpolate||Pi,k="__p += '",U=gs((t.escape||Pi).source+"|"+F.source+"|"+(F===An?Ey:Pi).source+"|"+(t.evaluate||Pi).source+"|$","g"),j="//# sourceURL="+(ge.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++n1+"]")+`
4
- `;e.replace(U,function(X,se,le,ft,Ge,lt){return le||(le=ft),k+=e.slice(M,lt).replace(Dy,_1),se&&(m=!0,k+=`' +
3
+ `)}function Ib(e){return te(e)||Mn(e)||!!(Cc&&e&&e[Cc])}function Kt(e,t){var r=typeof e;return t=t??ze,!!t&&(r=="number"||r!="symbol"&&R0.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,r){if(!Se(r))return!1;var s=typeof t;return(s=="number"?Ze(r)&&Kt(t,r.length):s=="string"&&t in r)?Ot(r[t],e):!1}function Ms(e,t){if(te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:zo.test(e)||!$o.test(e)||t!=null&&e in me(t)}function Ob(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ks(e){var t=oa(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var s=Ls(r);return!!s&&e===s[0]}function Cb(e){return!!Ac&&Ac in e}var Nb=Di?Xt:Zs;function Yr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tr;return e===r}function Ad(e){return e===e&&!Se(e)}function Td(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in me(r))}}function Lb(e){var t=da(e,function(s){return r.size===y&&r.clear(),s}),r=t.cache;return t}function Pb(e,t){var r=e[1],s=t[1],l=r|s,h=l<(T|k|C),v=s==C&&r==R||s==C&&r==L&&e[7].length<=t[8]||s==(C|L)&&t[7].length<=t[8]&&r==R;if(!(h||v))return e;s&T&&(e[2]=t[2],l|=r&T?0:W);var m=t[3];if(m){var S=e[3];e[3]=S?ud(S,m,t[4]):m,e[4]=S?fn(e[3],w):t[4]}return m=t[5],m&&(S=e[5],e[5]=S?fd(S,m,t[6]):m,e[6]=S?fn(e[5],w):t[6]),m=t[7],m&&(e[7]=m),s&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 Fb(e){var t=[];if(e!=null)for(var r in me(e))t.push(r);return t}function Mb(e){return Bi.call(e)}function Id(e,t,r){return t=Le(t===n?e.length-1:t,0),function(){for(var s=arguments,l=-1,h=Le(s.length-t,0),v=I(h);++l<h;)v[l]=s[t+l];l=-1;for(var m=I(t+1);++l<t;)m[l]=s[l];return m[t]=r(v),at(e,this,m)}}function Od(e,t){return t.length<2?e:Ln(e,mt(t,0,-1))}function kb(e,t){for(var r=e.length,s=Re(t.length,r),l=Ve(e);s--;){var h=t[s];e[s]=Kt(h,r)?l[h]:n}return e}function Ds(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Cd=Ld(Zc),Kr=Xy||function(e,t){return ke.setTimeout(e,t)},Ws=Ld(ib);function Nd(e,t,r){var s=t+"";return Ws(e,Tb(s,Db(xb(s),r)))}function Ld(e){var t=0,r=0;return function(){var s=e1(),l=Y-(s-r);if(r=s,l>0){if(++t>=ee)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ua(e,t){var r=-1,s=e.length,l=s-1;for(t=t===n?s:t;++r<t;){var h=bs(r,l),v=e[h];e[h]=e[r],e[r]=v}return e.length=t,e}var Pd=Lb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Oi,function(r,s,l,h){t.push(l?h.replace(F0,"$1"):s||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 Fn(e){if(e!=null){try{return Wi.call(e)}catch{}try{return e+""}catch{}}return""}function Db(e,t){return ht(Ar,function(r){var s="_."+r[0];t&r[1]&&!Pi(e,s)&&e.push(s)}),e.sort()}function Fd(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 Wb(e,t,r){(r?je(e,t,r):t===n)?t=1:t=Le(ie(t),0);var s=e==null?0:e.length;if(!s||t<1)return[];for(var l=0,h=0,v=I(qi(s/t));l<s;)v[h++]=mt(e,l,l+=t);return v}function Bb(e){for(var t=-1,r=e==null?0:e.length,s=0,l=[];++t<r;){var h=e[t];h&&(l[s++]=h)}return l}function Rb(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],s=e;s--;)t[s-1]=arguments[s];return un(te(r)?Ve(r):[r],De(t,1))}var $b=oe(function(e,t){return Ae(e)?Hr(e,De(t,1,Ae,!0)):[]}),zb=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?Hr(e,De(t,1,Ae,!0),K(r,2)):[]}),Ub=oe(function(e,t){var r=yt(t);return Ae(r)&&(r=n),Ae(e)?Hr(e,De(t,1,Ae,!0),n,r):[]});function Hb(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:ie(t),mt(e,t<0?0:t,s)):[]}function qb(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:ie(t),t=s-t,mt(e,0,t<0?0:t)):[]}function jb(e,t){return e&&e.length?ea(e,K(t,3),!0,!0):[]}function Gb(e,t){return e&&e.length?ea(e,K(t,3),!0):[]}function Jb(e,t,r,s){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&je(e,t,r)&&(r=0,s=l),R1(e,t,r,s)):[]}function Md(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(s+l,0)),Fi(e,K(t,3),l)}function kd(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=s-1;return r!==n&&(l=ie(r),l=r<0?Le(s+l,0):Re(l,s-1)),Fi(e,K(t,3),l,!0)}function Dd(e){var t=e==null?0:e.length;return t?De(e,1):[]}function Yb(e){var t=e==null?0:e.length;return t?De(e,Et):[]}function Kb(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:ie(t),De(e,t)):[]}function Xb(e){for(var t=-1,r=e==null?0:e.length,s={};++t<r;){var l=e[t];s[l[0]]=l[1]}return s}function Wd(e){return e&&e.length?e[0]:n}function Vb(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=r==null?0:ie(r);return l<0&&(l=Le(s+l,0)),Vn(e,t,l)}function Zb(e){var t=e==null?0:e.length;return t?mt(e,0,-1):[]}var Qb=oe(function(e){var t=we(e,Es);return t.length&&t[0]===e[0]?ps(t):[]}),e_=oe(function(e){var t=yt(e),r=we(e,Es);return t===yt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ps(r,K(t,2)):[]}),t_=oe(function(e){var t=yt(e),r=we(e,Es);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ps(r,n,t):[]});function n_(e,t){return e==null?"":Zy.call(e,t)}function yt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function r_(e,t,r){var s=e==null?0:e.length;if(!s)return-1;var l=s;return r!==n&&(l=ie(r),l=l<0?Le(s+l,0):Re(l,s-1)),t===t?Dy(e,t,l):Fi(e,mc,l,!0)}function i_(e,t){return e&&e.length?Yc(e,ie(t)):n}var a_=oe(Bd);function Bd(e,t){return e&&e.length&&t&&t.length?ys(e,t):e}function o_(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,K(r,2)):e}function s_(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,n,r):e}var u_=Yt(function(e,t){var r=e==null?0:e.length,s=ls(e,t);return Vc(e,we(t,function(l){return Kt(l,r)?+l:l}).sort(sd)),s});function f_(e,t){var r=[];if(!(e&&e.length))return r;var s=-1,l=[],h=e.length;for(t=K(t,3);++s<h;){var v=e[s];t(v,s,e)&&(r.push(v),l.push(s))}return Vc(e,l),r}function Bs(e){return e==null?e:n1.call(e)}function l_(e,t,r){var s=e==null?0:e.length;return s?(r&&typeof r!="number"&&je(e,t,r)?(t=0,r=s):(t=t==null?0:ie(t),r=r===n?s:ie(r)),mt(e,t,r)):[]}function c_(e,t){return Qi(e,t)}function d_(e,t,r){return ws(e,t,K(r,2))}function h_(e,t){var r=e==null?0:e.length;if(r){var s=Qi(e,t);if(s<r&&Ot(e[s],t))return s}return-1}function p_(e,t){return Qi(e,t,!0)}function v_(e,t,r){return ws(e,t,K(r,2),!0)}function g_(e,t){var r=e==null?0:e.length;if(r){var s=Qi(e,t,!0)-1;if(Ot(e[s],t))return s}return-1}function m_(e){return e&&e.length?Qc(e):[]}function y_(e,t){return e&&e.length?Qc(e,K(t,2)):[]}function b_(e){var t=e==null?0:e.length;return t?mt(e,1,t):[]}function __(e,t,r){return e&&e.length?(t=r||t===n?1:ie(t),mt(e,0,t<0?0:t)):[]}function w_(e,t,r){var s=e==null?0:e.length;return s?(t=r||t===n?1:ie(t),t=s-t,mt(e,t<0?0:t,s)):[]}function S_(e,t){return e&&e.length?ea(e,K(t,3),!1,!0):[]}function x_(e,t){return e&&e.length?ea(e,K(t,3)):[]}var E_=oe(function(e){return dn(De(e,1,Ae,!0))}),A_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),dn(De(e,1,Ae,!0),K(t,2))}),T_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,dn(De(e,1,Ae,!0),n,t)});function I_(e){return e&&e.length?dn(e):[]}function O_(e,t){return e&&e.length?dn(e,K(t,2)):[]}function C_(e,t){return t=typeof t=="function"?t:n,e&&e.length?dn(e,n,t):[]}function Rs(e){if(!(e&&e.length))return[];var t=0;return e=sn(e,function(r){if(Ae(r))return t=Le(r.length,t),!0}),ns(t,function(r){return we(e,Qo(r))})}function Rd(e,t){if(!(e&&e.length))return[];var r=Rs(e);return t==null?r:we(r,function(s){return at(t,n,s)})}var N_=oe(function(e,t){return Ae(e)?Hr(e,t):[]}),L_=oe(function(e){return xs(sn(e,Ae))}),P_=oe(function(e){var t=yt(e);return Ae(t)&&(t=n),xs(sn(e,Ae),K(t,2))}),F_=oe(function(e){var t=yt(e);return t=typeof t=="function"?t:n,xs(sn(e,Ae),n,t)}),M_=oe(Rs);function k_(e,t){return rd(e||[],t||[],Ur)}function D_(e,t){return rd(e||[],t||[],Gr)}var W_=oe(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,Rd(e,r)});function $d(e){var t=d(e);return t.__chain__=!0,t}function B_(e,t){return t(e),e}function fa(e,t){return t(e)}var R_=Yt(function(e){var t=e.length,r=t?e[0]:0,s=this.__wrapped__,l=function(h){return ls(h,e)};return t>1||this.__actions__.length||!(s instanceof ue)||!Kt(r)?this.thru(l):(s=s.slice(r,+r+(t?1:0)),s.__actions__.push({func:fa,args:[l],thisArg:n}),new vt(s,this.__chain__).thru(function(h){return t&&!h.length&&h.push(n),h}))});function $_(){return $d(this)}function z_(){return new vt(this.value(),this.__chain__)}function U_(){this.__values__===n&&(this.__values__=eh(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function H_(){return this}function q_(e){for(var t,r=this;r instanceof Yi;){var s=Fd(r);s.__index__=0,s.__values__=n,t?l.__wrapped__=s:t=s;var l=s;r=r.__wrapped__}return l.__wrapped__=e,t}function j_(){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:fa,args:[Bs],thisArg:n}),new vt(t,this.__chain__)}return this.thru(Bs)}function G_(){return nd(this.__wrapped__,this.__actions__)}var J_=ta(function(e,t,r){ve.call(e,r)?++e[r]:Gt(e,r,1)});function Y_(e,t,r){var s=te(e)?vc:B1;return r&&je(e,t,r)&&(t=n),s(e,K(t,3))}function K_(e,t){var r=te(e)?sn:Rc;return r(e,K(t,3))}var X_=hd(Md),V_=hd(kd);function Z_(e,t){return De(la(e,t),1)}function Q_(e,t){return De(la(e,t),Et)}function ew(e,t,r){return r=r===n?1:ie(r),De(la(e,t),r)}function zd(e,t){var r=te(e)?ht:cn;return r(e,K(t,3))}function Ud(e,t){var r=te(e)?by:Bc;return r(e,K(t,3))}var tw=ta(function(e,t,r){ve.call(e,r)?e[r].push(t):Gt(e,r,[t])});function nw(e,t,r,s){e=Ze(e)?e:fr(e),r=r&&!s?ie(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),va(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Vn(e,t,r)>-1}var rw=oe(function(e,t,r){var s=-1,l=typeof t=="function",h=Ze(e)?I(e.length):[];return cn(e,function(v){h[++s]=l?at(t,v,r):qr(v,t,r)}),h}),iw=ta(function(e,t,r){Gt(e,r,t)});function la(e,t){var r=te(e)?we:jc;return r(e,K(t,3))}function aw(e,t,r,s){return e==null?[]:(te(t)||(t=t==null?[]:[t]),r=s?n:r,te(r)||(r=r==null?[]:[r]),Kc(e,t,r))}var ow=ta(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function sw(e,t,r){var s=te(e)?Vo:bc,l=arguments.length<3;return s(e,K(t,4),r,l,cn)}function uw(e,t,r){var s=te(e)?_y:bc,l=arguments.length<3;return s(e,K(t,4),r,l,Bc)}function fw(e,t){var r=te(e)?sn:Rc;return r(e,ha(K(t,3)))}function lw(e){var t=te(e)?Mc:nb;return t(e)}function cw(e,t,r){(r?je(e,t,r):t===n)?t=1:t=ie(t);var s=te(e)?F1:rb;return s(e,t)}function dw(e){var t=te(e)?M1:ab;return t(e)}function hw(e){if(e==null)return 0;if(Ze(e))return va(e)?Qn(e):e.length;var t=$e(e);return t==Ie||t==Ke?e.size:gs(e).length}function pw(e,t,r){var s=te(e)?Zo:ob;return r&&je(e,t,r)&&(t=n),s(e,K(t,3))}var vw=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]]),Kc(e,De(t,1),[])}),ca=Ky||function(){return ke.Date.now()};function gw(e,t){if(typeof t!="function")throw new pt(c);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hd(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Jt(e,C,n,n,n,n,t)}function qd(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 $s=oe(function(e,t,r){var s=T;if(r.length){var l=fn(r,sr($s));s|=$}return Jt(e,s,t,r,l)}),jd=oe(function(e,t,r){var s=T|k;if(r.length){var l=fn(r,sr(jd));s|=$}return Jt(t,s,e,r,l)});function Gd(e,t,r){t=r?n:t;var s=Jt(e,R,n,n,n,n,n,t);return s.placeholder=Gd.placeholder,s}function Jd(e,t,r){t=r?n:t;var s=Jt(e,Z,n,n,n,n,n,t);return s.placeholder=Jd.placeholder,s}function Yd(e,t,r){var s,l,h,v,m,S,P=0,F=!1,D=!1,U=!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,U="trailing"in r?!!r.trailing:U);function j(Te){var Ct=s,Zt=l;return s=l=n,P=Te,v=e.apply(Zt,Ct),v}function X(Te){return P=Te,m=Kr(se,t),F?j(Te):v}function ae(Te){var Ct=Te-S,Zt=Te-P,hh=t-Ct;return D?Re(hh,h-Zt):hh}function V(Te){var Ct=Te-S,Zt=Te-P;return S===n||Ct>=t||Ct<0||D&&Zt>=h}function se(){var Te=ca();if(V(Te))return le(Te);m=Kr(se,ae(Te))}function le(Te){return m=n,U&&s?j(Te):(s=l=n,v)}function ft(){m!==n&&id(m),P=0,s=S=l=m=n}function Ge(){return m===n?v:le(ca())}function lt(){var Te=ca(),Ct=V(Te);if(s=arguments,l=this,S=Te,Ct){if(m===n)return X(S);if(D)return id(m),m=Kr(se,t),j(S)}return m===n&&(m=Kr(se,t)),v}return lt.cancel=ft,lt.flush=Ge,lt}var mw=oe(function(e,t){return Wc(e,1,t)}),yw=oe(function(e,t,r){return Wc(e,bt(t)||0,r)});function bw(e){return Jt(e,q)}function da(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pt(c);var r=function(){var s=arguments,l=t?t.apply(this,s):s[0],h=r.cache;if(h.has(l))return h.get(l);var v=e.apply(this,s);return r.cache=h.set(l,v)||h,v};return r.cache=new(da.Cache||jt),r}da.Cache=jt;function ha(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 _w(e){return qd(2,e)}var ww=sb(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(s){for(var l=-1,h=Re(s.length,r);++l<h;)s[l]=t[l].call(this,s[l]);return at(e,this,s)})}),zs=oe(function(e,t){var r=fn(t,sr(zs));return Jt(e,$,n,t,r)}),Kd=oe(function(e,t){var r=fn(t,sr(Kd));return Jt(e,de,n,t,r)}),Sw=Yt(function(e,t){return Jt(e,L,n,n,n,t)});function xw(e,t){if(typeof e!="function")throw new pt(c);return t=t===n?t:ie(t),oe(e,t)}function Ew(e,t){if(typeof e!="function")throw new pt(c);return t=t==null?0:Le(ie(t),0),oe(function(r){var s=r[t],l=pn(r,0,t);return s&&un(l,s),at(e,this,l)})}function Aw(e,t,r){var s=!0,l=!0;if(typeof e!="function")throw new pt(c);return Se(r)&&(s="leading"in r?!!r.leading:s,l="trailing"in r?!!r.trailing:l),Yd(e,t,{leading:s,maxWait:t,trailing:l})}function Tw(e){return Hd(e,1)}function Iw(e,t){return zs(As(t),e)}function Ow(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function Cw(e){return gt(e,E)}function Nw(e,t){return t=typeof t=="function"?t:n,gt(e,E,t)}function Lw(e){return gt(e,_|E)}function Pw(e,t){return t=typeof t=="function"?t:n,gt(e,_|E,t)}function Fw(e,t){return t==null||Dc(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Mw=aa(hs),kw=aa(function(e,t){return e>=t}),Mn=Uc((function(){return arguments})())?Uc:function(e){return xe(e)&&ve.call(e,"callee")&&!Oc.call(e,"callee")},te=I.isArray,Dw=fc?ot(fc):q1;function Ze(e){return e!=null&&pa(e.length)&&!Xt(e)}function Ae(e){return xe(e)&&Ze(e)}function Ww(e){return e===!0||e===!1||xe(e)&&qe(e)==_n}var vn=Vy||Zs,Bw=lc?ot(lc):j1;function Rw(e){return xe(e)&&e.nodeType===1&&!Xr(e)}function $w(e){if(e==null)return!0;if(Ze(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||vn(e)||ur(e)||Mn(e)))return!e.length;var t=$e(e);if(t==Ie||t==Ke)return!e.size;if(Yr(e))return!gs(e).length;for(var r in e)if(ve.call(e,r))return!1;return!0}function zw(e,t){return jr(e,t)}function Uw(e,t,r){r=typeof r=="function"?r:n;var s=r?r(e,t):n;return s===n?jr(e,t,n,r):!!s}function Us(e){if(!xe(e))return!1;var t=qe(e);return t==Hn||t==Ir||typeof e.message=="string"&&typeof e.name=="string"&&!Xr(e)}function Hw(e){return typeof e=="number"&&Nc(e)}function Xt(e){if(!Se(e))return!1;var t=qe(e);return t==qn||t==Ai||t==Tr||t==jn}function Xd(e){return typeof e=="number"&&e==ie(e)}function pa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ze}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function xe(e){return e!=null&&typeof e=="object"}var Vd=cc?ot(cc):J1;function qw(e,t){return e===t||vs(e,t,Ps(t))}function jw(e,t,r){return r=typeof r=="function"?r:n,vs(e,t,Ps(t),r)}function Gw(e){return Zd(e)&&e!=+e}function Jw(e){if(Nb(e))throw new Q(f);return Hc(e)}function Yw(e){return e===null}function Kw(e){return e==null}function Zd(e){return typeof e=="number"||xe(e)&&qe(e)==an}function Xr(e){if(!xe(e)||qe(e)!=rt)return!1;var t=zi(e);if(t===null)return!0;var r=ve.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Wi.call(r)==jy}var Hs=dc?ot(dc):Y1;function Xw(e){return Xd(e)&&e>=-ze&&e<=ze}var Qd=hc?ot(hc):K1;function va(e){return typeof e=="string"||!te(e)&&xe(e)&&qe(e)==on}function ut(e){return typeof e=="symbol"||xe(e)&&qe(e)==Be}var ur=pc?ot(pc):X1;function Vw(e){return e===n}function Zw(e){return xe(e)&&$e(e)==wn}function Qw(e){return xe(e)&&qe(e)==Wo}var eS=aa(ms),tS=aa(function(e,t){return e<=t});function eh(e){if(!e)return[];if(Ze(e))return va(e)?Tt(e):Ve(e);if(Wr&&e[Wr])return Fy(e[Wr]());var t=$e(e),r=t==Ie?is:t==Ke?Mi:fr;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 th(e){return e?Nn(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=_c(e);var r=D0.test(e);return r||B0.test(e)?gy(e.slice(2),r?2:8):k0.test(e)?At:+e}function nh(e){return Ft(e,Qe(e))}function nS(e){return e?Nn(ie(e),-ze,ze):e===0?e:0}function ge(e){return e==null?"":st(e)}var rS=ar(function(e,t){if(Yr(t)||Ze(t)){Ft(t,Fe(t),e);return}for(var r in t)ve.call(t,r)&&Ur(e,r,t[r])}),rh=ar(function(e,t){Ft(t,Qe(t),e)}),ga=ar(function(e,t,r,s){Ft(t,Qe(t),e,s)}),iS=ar(function(e,t,r,s){Ft(t,Fe(t),e,s)}),aS=Yt(ls);function oS(e,t){var r=ir(e);return t==null?r:kc(r,t)}var sS=oe(function(e,t){e=me(e);var r=-1,s=t.length,l=s>2?t[2]:n;for(l&&je(t[0],t[1],l)&&(s=1);++r<s;)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,tr[P])&&!ve.call(e,P))&&(e[P]=h[P])}return e}),uS=oe(function(e){return e.push(n,_d),at(ih,n,e)});function fS(e,t){return gc(e,K(t,3),Pt)}function lS(e,t){return gc(e,K(t,3),ds)}function cS(e,t){return e==null?e:cs(e,K(t,3),Qe)}function dS(e,t){return e==null?e:$c(e,K(t,3),Qe)}function hS(e,t){return e&&Pt(e,K(t,3))}function pS(e,t){return e&&ds(e,K(t,3))}function vS(e){return e==null?[]:Vi(e,Fe(e))}function gS(e){return e==null?[]:Vi(e,Qe(e))}function qs(e,t,r){var s=e==null?n:Ln(e,t);return s===n?r:s}function mS(e,t){return e!=null&&xd(e,t,$1)}function js(e,t){return e!=null&&xd(e,t,z1)}var yS=vd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Bi.call(t)),e[t]=r},Js(et)),bS=vd(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Bi.call(t)),ve.call(e,t)?e[t].push(r):e[t]=[r]},K),_S=oe(qr);function Fe(e){return Ze(e)?Fc(e):gs(e)}function Qe(e){return Ze(e)?Fc(e,!0):V1(e)}function wS(e,t){var r={};return t=K(t,3),Pt(e,function(s,l,h){Gt(r,t(s,l,h),s)}),r}function SS(e,t){var r={};return t=K(t,3),Pt(e,function(s,l,h){Gt(r,l,t(s,l,h))}),r}var xS=ar(function(e,t,r){Zi(e,t,r)}),ih=ar(function(e,t,r,s){Zi(e,t,r,s)}),ES=Yt(function(e,t){var r={};if(e==null)return r;var s=!1;t=we(t,function(h){return h=hn(h,e),s||(s=h.length>1),h}),Ft(e,Ns(e),r),s&&(r=gt(r,_|O|E,yb));for(var l=t.length;l--;)Ss(r,t[l]);return r});function AS(e,t){return ah(e,ha(K(t)))}var TS=Yt(function(e,t){return e==null?{}:Q1(e,t)});function ah(e,t){if(e==null)return{};var r=we(Ns(e),function(s){return[s]});return t=K(t),Xc(e,r,function(s,l){return t(s,l[0])})}function IS(e,t,r){t=hn(t,e);var s=-1,l=t.length;for(l||(l=1,e=n);++s<l;){var h=e==null?n:e[Mt(t[s])];h===n&&(s=l,h=r),e=Xt(h)?h.call(e):h}return e}function OS(e,t,r){return e==null?e:Gr(e,t,r)}function CS(e,t,r,s){return s=typeof s=="function"?s:n,e==null?e:Gr(e,t,r,s)}var oh=yd(Fe),sh=yd(Qe);function NS(e,t,r){var s=te(e),l=s||vn(e)||ur(e);if(t=K(t,4),r==null){var h=e&&e.constructor;l?r=s?new h:[]:Se(e)?r=Xt(h)?ir(zi(e)):{}:r={}}return(l?ht:Pt)(e,function(v,m,S){return t(r,v,m,S)}),r}function LS(e,t){return e==null?!0:Ss(e,t)}function PS(e,t,r){return e==null?e:td(e,t,As(r))}function FS(e,t,r,s){return s=typeof s=="function"?s:n,e==null?e:td(e,t,As(r),s)}function fr(e){return e==null?[]:rs(e,Fe(e))}function MS(e){return e==null?[]:rs(e,Qe(e))}function kS(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),Nn(bt(e),t,r)}function DS(e,t,r){return t=Vt(t),r===n?(r=t,t=0):r=Vt(r),e=bt(e),U1(e,t,r)}function WS(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 s=e;e=t,t=s}if(r||e%1||t%1){var l=Lc();return Re(e+l*(t-e+vy("1e-"+((l+"").length-1))),t)}return bs(e,t)}var BS=or(function(e,t,r){return t=t.toLowerCase(),e+(r?uh(t):t)});function uh(e){return Gs(ge(e).toLowerCase())}function fh(e){return e=ge(e),e&&e.replace($0,Oy).replace(ay,"")}function RS(e,t,r){e=ge(e),t=st(t);var s=e.length;r=r===n?s:Nn(ie(r),0,s);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function $S(e){return e=ge(e),e&&Yn.test(e)?e.replace(it,Cy):e}function zS(e){return e=ge(e),e&&Uo.test(e)?e.replace(Fr,"\\$&"):e}var US=or(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),HS=or(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),qS=dd("toLowerCase");function jS(e,t,r){e=ge(e),t=ie(t);var s=t?Qn(e):0;if(!t||s>=t)return e;var l=(t-s)/2;return ia(ji(l),r)+e+ia(qi(l),r)}function GS(e,t,r){e=ge(e),t=ie(t);var s=t?Qn(e):0;return t&&s<t?e+ia(t-s,r):e}function JS(e,t,r){e=ge(e),t=ie(t);var s=t?Qn(e):0;return t&&s<t?ia(t-s,r)+e:e}function YS(e,t,r){return r||t==null?t=0:t&&(t=+t),t1(ge(e).replace(Ht,""),t||0)}function KS(e,t,r){return(r?je(e,t,r):t===n)?t=1:t=ie(t),_s(ge(e),t)}function XS(){var e=arguments,t=ge(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var VS=or(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function ZS(e,t,r){return r&&typeof r!="number"&&je(e,t,r)&&(t=r=n),r=r===n?nt:r>>>0,r?(e=ge(e),e&&(typeof t=="string"||t!=null&&!Hs(t))&&(t=st(t),!t&&Zn(e))?pn(Tt(e),0,r):e.split(t,r)):[]}var QS=or(function(e,t,r){return e+(r?" ":"")+Gs(t)});function ex(e,t,r){return e=ge(e),r=r==null?0:Nn(ie(r),0,e.length),t=st(t),e.slice(r,r+t.length)==t}function tx(e,t,r){var s=d.templateSettings;r&&je(e,t,r)&&(t=n),e=ge(e),t=ga({},t,s,bd);var l=ga({},t.imports,s.imports,bd),h=Fe(l),v=rs(l,h),m,S,P=0,F=t.interpolate||Ci,D="__p += '",U=as((t.escape||Ci).source+"|"+F.source+"|"+(F===An?M0:Ci).source+"|"+(t.evaluate||Ci).source+"|$","g"),j="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ly+"]")+`
4
+ `;e.replace(U,function(V,se,le,ft,Ge,lt){return le||(le=ft),D+=e.slice(P,lt).replace(z0,Ny),se&&(m=!0,D+=`' +
5
5
  __e(`+se+`) +
6
- '`),Ge&&(_=!0,k+=`';
6
+ '`),Ge&&(S=!0,D+=`';
7
7
  `+Ge+`;
8
- __p += '`),le&&(k+=`' +
8
+ __p += '`),le&&(D+=`' +
9
9
  ((__t = (`+le+`)) == null ? '' : __t) +
10
- '`),M=lt+X.length,X}),k+=`';
11
- `;var V=ge.call(t,"variable")&&t.variable;if(!V)k=`with (obj) {
12
- `+k+`
10
+ '`),P=lt+V.length,V}),D+=`';
11
+ `;var X=ve.call(t,"variable")&&t.variable;if(!X)D=`with (obj) {
12
+ `+D+`
13
13
  }
14
- `;else if(Iy.test(V))throw new Q(p);k=(_?k.replace(Ci,""):k).replace(fe,"$1").replace(Le,"$1;"),k="function("+(V||"obj")+`) {
15
- `+(V?"":`obj || (obj = {});
16
- `)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
14
+ `;else if(P0.test(X))throw new Q(p);D=(S?D.replace(Ii,""):D).replace(fe,"$1").replace(Pe,"$1;"),D="function("+(X||"obj")+`) {
15
+ `+(X?"":`obj || (obj = {});
16
+ `)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
- `)+k+`return __p
20
- }`;var ae=Th(function(){return pe(h,j+"return "+k).apply(n,g)});if(ae.source=k,Zs(ae))throw ae;return ae}function Jx(e){return ve(e).toLowerCase()}function Kx(e){return ve(e).toUpperCase()}function Vx(e,t,i){if(e=ve(e),e&&(i||t===n))return Mc(e);if(!e||!(t=st(t)))return e;var u=Et(e),l=Et(t),h=Fc(u,l),g=kc(u,l)+1;return gn(u,h,g).join("")}function Xx(e,t,i){if(e=ve(e),e&&(i||t===n))return e.slice(0,Bc(e)+1);if(!e||!(t=st(t)))return e;var u=Et(e),l=kc(u,Et(t))+1;return gn(u,0,l).join("")}function Zx(e,t,i){if(e=ve(e),e&&(i||t===n))return e.replace(Ht,"");if(!e||!(t=st(t)))return e;var u=Et(e),l=Fc(u,Et(t));return gn(u,l).join("")}function Qx(e,t){var i=ee,u=Y;if(_e(t)){var l="separator"in t?t.separator:l;i="length"in t?re(t.length):i,u="omission"in t?st(t.omission):u}e=ve(e);var h=e.length;if(tr(e)){var g=Et(e);h=g.length}if(i>=h)return e;var m=i-nr(u);if(m<1)return u;var _=g?gn(g,0,m).join(""):e.slice(0,m);if(l===n)return _+u;if(g&&(m+=_.length-m),Qs(l)){if(e.slice(m).search(l)){var M,F=_;for(l.global||(l=gs(l.source,ve(nc.exec(l))+"g")),l.lastIndex=0;M=l.exec(F);)var k=M.index;_=_.slice(0,k===n?m:k)}}else if(e.indexOf(st(l),m)!=m){var U=_.lastIndexOf(l);U>-1&&(_=_.slice(0,U))}return _+u}function eI(e){return e=ve(e),e&&Ie.test(e)?e.replace(Ve,C1):e}var tI=fr(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),nu=Ed("toUpperCase");function Ih(e,t,i){return e=ve(e),t=i?n:t,t===n?I1(e)?L1(e):g1(e):e.match(t)||[]}var Th=oe(function(e,t){try{return at(e,n,t)}catch(i){return Zs(i)?i:new Q(i)}}),nI=Jt(function(e,t){return ht(t,function(i){i=Mt(i),Gt(e,i,Vs(e[i],e))}),e});function rI(e){var t=e==null?0:e.length,i=J();return e=t?Se(e,function(u){if(typeof u[1]!="function")throw new pt(c);return[i(u[0]),u[1]]}):[],oe(function(u){for(var l=-1;++l<t;){var h=e[l];if(at(h[0],this,u))return at(h[1],this,u)}})}function iI(e){return Cb(vt(e,S))}function ru(e){return function(){return e}}function aI(e,t){return e==null||e!==e?t:e}var oI=Od(),sI=Od(!0);function et(e){return e}function iu(e){return id(typeof e=="function"?e:vt(e,S))}function uI(e){return od(vt(e,S))}function fI(e,t){return sd(e,vt(t,S))}var lI=oe(function(e,t){return function(i){return Jr(i,e,t)}}),cI=oe(function(e,t){return function(i){return Jr(e,i,t)}});function au(e,t,i){var u=De(t),l=Qi(t,u);i==null&&!(_e(t)&&(l.length||!u.length))&&(i=t,t=e,e=this,l=Qi(t,De(t)));var h=!(_e(i)&&"chain"in i)||!!i.chain,g=Vt(e);return ht(l,function(m){var _=t[m];e[m]=_,g&&(e.prototype[m]=function(){var M=this.__chain__;if(h||M){var F=e(this.__wrapped__),k=F.__actions__=Xe(this.__actions__);return k.push({func:_,args:arguments,thisArg:e}),F.__chain__=M,F}return _.apply(e,fn([this.value()],arguments))})}),e}function dI(){return Fe._===this&&(Fe._=B1),this}function ou(){}function hI(e){return e=re(e),oe(function(t){return ud(t,e)})}var pI=Ws(Se),gI=Ws(Cc),vI=Ws(us);function Eh(e){return qs(e)?fs(Mt(e)):Gb(e)}function mI(e){return function(t){return e==null?n:Dn(e,t)}}var yI=Nd(),bI=Nd(!0);function su(){return[]}function uu(){return!1}function wI(){return{}}function SI(){return""}function _I(){return!0}function xI(e,t){if(e=re(e),e<1||e>Ue)return[];var i=nt,u=Re(e,nt);t=J(t),e-=nt;for(var l=ds(u,t);++i<e;)t(i);return l}function II(e){return te(e)?Se(e,Mt):ut(e)?[e]:Xe(Gd(ve(e)))}function TI(e){var t=++k1;return ve(e)+t}var EI=aa(function(e,t){return e+t},0),AI=Bs("ceil"),OI=aa(function(e,t){return e/t},1),CI=Bs("floor");function NI(e){return e&&e.length?Zi(e,et,xs):n}function PI(e,t){return e&&e.length?Zi(e,J(t,2),xs):n}function LI(e){return Lc(e,et)}function DI(e,t){return Lc(e,J(t,2))}function MI(e){return e&&e.length?Zi(e,et,As):n}function FI(e,t){return e&&e.length?Zi(e,J(t,2),As):n}var kI=aa(function(e,t){return e*t},1),WI=Bs("round"),BI=aa(function(e,t){return e-t},0);function RI(e){return e&&e.length?cs(e,et):0}function $I(e,t){return e&&e.length?cs(e,J(t,2)):0}return d.after=u_,d.ary=rh,d.assign=K_,d.assignIn=mh,d.assignInWith=ya,d.assignWith=V_,d.at=X_,d.before=ih,d.bind=Vs,d.bindAll=nI,d.bindKey=ah,d.castArray=w_,d.chain=eh,d.chunk=Cw,d.compact=Nw,d.concat=Pw,d.cond=rI,d.conforms=iI,d.constant=ru,d.countBy=RS,d.create=Z_,d.curry=oh,d.curryRight=sh,d.debounce=uh,d.defaults=Q_,d.defaultsDeep=ex,d.defer=f_,d.delay=l_,d.difference=Lw,d.differenceBy=Dw,d.differenceWith=Mw,d.drop=Fw,d.dropRight=kw,d.dropRightWhile=Ww,d.dropWhile=Bw,d.fill=Rw,d.filter=US,d.flatMap=qS,d.flatMapDeep=jS,d.flatMapDepth=GS,d.flatten=Vd,d.flattenDeep=$w,d.flattenDepth=Uw,d.flip=c_,d.flow=oI,d.flowRight=sI,d.fromPairs=zw,d.functions=sx,d.functionsIn=ux,d.groupBy=YS,d.initial=qw,d.intersection=jw,d.intersectionBy=Gw,d.intersectionWith=Yw,d.invert=lx,d.invertBy=cx,d.invokeMap=KS,d.iteratee=iu,d.keyBy=VS,d.keys=De,d.keysIn=Qe,d.map=da,d.mapKeys=hx,d.mapValues=px,d.matches=uI,d.matchesProperty=fI,d.memoize=pa,d.merge=gx,d.mergeWith=yh,d.method=lI,d.methodOf=cI,d.mixin=au,d.negate=ga,d.nthArg=hI,d.omit=vx,d.omitBy=mx,d.once=d_,d.orderBy=XS,d.over=pI,d.overArgs=h_,d.overEvery=gI,d.overSome=vI,d.partial=Xs,d.partialRight=fh,d.partition=ZS,d.pick=yx,d.pickBy=bh,d.property=Eh,d.propertyOf=mI,d.pull=Xw,d.pullAll=Zd,d.pullAllBy=Zw,d.pullAllWith=Qw,d.pullAt=eS,d.range=yI,d.rangeRight=bI,d.rearg=p_,d.reject=t_,d.remove=tS,d.rest=g_,d.reverse=Js,d.sampleSize=r_,d.set=wx,d.setWith=Sx,d.shuffle=i_,d.slice=nS,d.sortBy=s_,d.sortedUniq=fS,d.sortedUniqBy=lS,d.split=qx,d.spread=v_,d.tail=cS,d.take=dS,d.takeRight=hS,d.takeRightWhile=pS,d.takeWhile=gS,d.tap=NS,d.throttle=m_,d.thru=ca,d.toArray=ph,d.toPairs=wh,d.toPairsIn=Sh,d.toPath=II,d.toPlainObject=vh,d.transform=_x,d.unary=y_,d.union=vS,d.unionBy=mS,d.unionWith=yS,d.uniq=bS,d.uniqBy=wS,d.uniqWith=SS,d.unset=xx,d.unzip=Ks,d.unzipWith=Qd,d.update=Ix,d.updateWith=Tx,d.values=dr,d.valuesIn=Ex,d.without=_S,d.words=Ih,d.wrap=b_,d.xor=xS,d.xorBy=IS,d.xorWith=TS,d.zip=ES,d.zipObject=AS,d.zipObjectDeep=OS,d.zipWith=CS,d.entries=wh,d.entriesIn=Sh,d.extend=mh,d.extendWith=ya,au(d,d),d.add=EI,d.attempt=Th,d.camelCase=Nx,d.capitalize=_h,d.ceil=AI,d.clamp=Ax,d.clone=S_,d.cloneDeep=x_,d.cloneDeepWith=I_,d.cloneWith=__,d.conformsTo=T_,d.deburr=xh,d.defaultTo=aI,d.divide=OI,d.endsWith=Px,d.eq=Ot,d.escape=Lx,d.escapeRegExp=Dx,d.every=$S,d.find=zS,d.findIndex=Jd,d.findKey=tx,d.findLast=HS,d.findLastIndex=Kd,d.findLastKey=nx,d.floor=CI,d.forEach=th,d.forEachRight=nh,d.forIn=rx,d.forInRight=ix,d.forOwn=ax,d.forOwnRight=ox,d.get=eu,d.gt=E_,d.gte=A_,d.has=fx,d.hasIn=tu,d.head=Xd,d.identity=et,d.includes=JS,d.indexOf=Hw,d.inRange=Ox,d.invoke=dx,d.isArguments=kn,d.isArray=te,d.isArrayBuffer=O_,d.isArrayLike=Ze,d.isArrayLikeObject=Te,d.isBoolean=C_,d.isBuffer=vn,d.isDate=N_,d.isElement=P_,d.isEmpty=L_,d.isEqual=D_,d.isEqualWith=M_,d.isError=Zs,d.isFinite=F_,d.isFunction=Vt,d.isInteger=lh,d.isLength=va,d.isMap=ch,d.isMatch=k_,d.isMatchWith=W_,d.isNaN=B_,d.isNative=R_,d.isNil=U_,d.isNull=$_,d.isNumber=dh,d.isObject=_e,d.isObjectLike=xe,d.isPlainObject=ei,d.isRegExp=Qs,d.isSafeInteger=z_,d.isSet=hh,d.isString=ma,d.isSymbol=ut,d.isTypedArray=cr,d.isUndefined=H_,d.isWeakMap=q_,d.isWeakSet=j_,d.join=Jw,d.kebabCase=Mx,d.last=yt,d.lastIndexOf=Kw,d.lowerCase=Fx,d.lowerFirst=kx,d.lt=G_,d.lte=Y_,d.max=NI,d.maxBy=PI,d.mean=LI,d.meanBy=DI,d.min=MI,d.minBy=FI,d.stubArray=su,d.stubFalse=uu,d.stubObject=wI,d.stubString=SI,d.stubTrue=_I,d.multiply=kI,d.nth=Vw,d.noConflict=dI,d.noop=ou,d.now=ha,d.pad=Wx,d.padEnd=Bx,d.padStart=Rx,d.parseInt=$x,d.random=Cx,d.reduce=QS,d.reduceRight=e_,d.repeat=Ux,d.replace=zx,d.result=bx,d.round=WI,d.runInContext=b,d.sample=n_,d.size=a_,d.snakeCase=Hx,d.some=o_,d.sortedIndex=rS,d.sortedIndexBy=iS,d.sortedIndexOf=aS,d.sortedLastIndex=oS,d.sortedLastIndexBy=sS,d.sortedLastIndexOf=uS,d.startCase=jx,d.startsWith=Gx,d.subtract=BI,d.sum=RI,d.sumBy=$I,d.template=Yx,d.times=xI,d.toFinite=Xt,d.toInteger=re,d.toLength=gh,d.toLower=Jx,d.toNumber=bt,d.toSafeInteger=J_,d.toString=ve,d.toUpper=Kx,d.trim=Vx,d.trimEnd=Xx,d.trimStart=Zx,d.truncate=Qx,d.unescape=eI,d.uniqueId=TI,d.upperCase=tI,d.upperFirst=nu,d.each=th,d.eachRight=nh,d.first=Xd,au(d,(function(){var e={};return Lt(d,function(t,i){ge.call(d.prototype,i)||(e[i]=t)}),e})(),{chain:!1}),d.VERSION=o,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ht(["drop","take"],function(e,t){ue.prototype[e]=function(i){i=i===n?1:Pe(re(i),0);var u=this.__filtered__&&!t?new ue(this):this.clone();return u.__filtered__?u.__takeCount__=Re(i,u.__takeCount__):u.__views__.push({size:Re(i,nt),type:e+(u.__dir__<0?"Right":"")}),u},ue.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var i=t+1,u=i==We||i==Je;ue.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:J(l,3),type:i}),h.__filtered__=h.__filtered__||u,h}}),ht(["head","last"],function(e,t){var i="take"+(t?"Right":"");ue.prototype[e]=function(){return this[i](1).value()[0]}}),ht(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[i](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(i){return Jr(i,e,t)})}),ue.prototype.reject=function(e){return this.filter(ga(J(e)))},ue.prototype.slice=function(e,t){e=re(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ue(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(t=re(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(nt)},Lt(ue.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=d[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);l&&(d.prototype[t]=function(){var g=this.__wrapped__,m=u?[1]:arguments,_=g instanceof ue,M=m[0],F=_||te(g),k=function(se){var le=l.apply(d,fn([se],m));return u&&U?le[0]:le};F&&i&&typeof M=="function"&&M.length!=1&&(_=F=!1);var U=this.__chain__,j=!!this.__actions__.length,V=h&&!U,ae=_&&!j;if(!h&&F){g=ae?g:new ue(this);var X=e.apply(g,m);return X.__actions__.push({func:ca,args:[k],thisArg:n}),new gt(X,U)}return V&&ae?e.apply(this,m):(X=this.thru(k),V?u?X.value()[0]:X.value():X)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=Wi[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(te(h)?h:[],l)}return this[i](function(g){return t.apply(te(g)?g:[],l)})}}),Lt(ue.prototype,function(e,t){var i=d[t];if(i){var u=i.name+"";ge.call(or,u)||(or[u]=[]),or[u].push({name:t,func:i})}}),or[ia(n,L).name]=[{name:"wrapper",func:n}],ue.prototype.clone=eb,ue.prototype.reverse=tb,ue.prototype.value=nb,d.prototype.at=PS,d.prototype.chain=LS,d.prototype.commit=DS,d.prototype.next=MS,d.prototype.plant=kS,d.prototype.reverse=WS,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=BS,d.prototype.first=d.prototype.head,Ur&&(d.prototype[Ur]=FS),d}),rr=D1();On?((On.exports=rr)._=rr,is._=rr):Fe._=rr}).call(Ch)})(vr,vr.exports)),vr.exports}var Wn=Nh();class he{static toString(r){const n=fu(r);if(n==null)throw new Error("buildWinId: stringify error");return n}static getParamString(r,n){return r.params?.[n]?.toString()}static getParam(r,n){return r.params?.[n]}static isEquals(r,n){return Wn.isEqual(r,n)}static indexOf(r,n){return r.map(he.toString).indexOf(he.toString(n))}static includes(r,n){return r.map(he.toString).includes(he.toString(n))}static withoutDup(r){const{params:n,viewId:o,title:s}=r;return{params:n,viewId:o,title:s}}static replaceDup(r){const{params:n,viewId:o,title:s}=r;return{params:n,viewId:o,title:s,dupId:`${new Date().getTime()}`}}}var ni={exports:{}},cu;function Ph(){return cu||(cu=1,(function(a,r){Object.defineProperty(r,"__esModule",{value:!0});function n(N){return typeof N=="object"&&!("toString"in N)?Object.prototype.toString.call(N).slice(8,-1):N}var o=typeof process=="object"&&process.env.NODE_ENV==="production";function s(N,D){if(!N)throw o?new Error("Invariant failed"):new Error(D())}r.invariant=s;var f=Object.prototype.hasOwnProperty,c=Array.prototype.splice,p=Object.prototype.toString;function v(N){return p.call(N).slice(8,-1)}var y=Object.assign||(function(N,D){return w(D).forEach(function(q){f.call(D,q)&&(N[q]=D[q])}),N}),w=typeof Object.getOwnPropertySymbols=="function"?function(N){return Object.keys(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.keys(N)};function S(N){return Array.isArray(N)?y(N.constructor(N.length),N):v(N)==="Map"?new Map(N):v(N)==="Set"?new Set(N):N&&typeof N=="object"?y(Object.create(Object.getPrototypeOf(N)),N):N}var C=(function(){function N(){this.commands=y({},x),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(D,q){return D===q},this.update.newContext=function(){return new N().update}}return Object.defineProperty(N.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(D){this.update.isEquals=D},enumerable:!0,configurable:!0}),N.prototype.extend=function(D,q){this.commands[D]=q},N.prototype.update=function(D,q){var ee=this,Y=typeof q=="function"?{$apply:q}:q;Array.isArray(D)&&Array.isArray(Y)||s(!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."}),s(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(ee.commands).join(", ")+".")});var ie=D;return w(Y).forEach(function(K){if(f.call(ee.commands,K)){var We=D===ie;ie=ee.commands[K](Y[K],ie,Y,D),We&&ee.isEquals(ie,D)&&(ie=D)}else{var Ye=v(D)==="Map"?ee.update(D.get(K),Y[K]):ee.update(D[K],Y[K]),Je=v(ie)==="Map"?ie.get(K):ie[K];(!ee.isEquals(Ye,Je)||typeof Ye>"u"&&!f.call(D,K))&&(ie===D&&(ie=S(D)),v(ie)==="Map"?ie.set(K,Ye):ie[K]=Ye)}}),ie},N})();r.Context=C;var x={$push:function(N,D,q){return T(D,q,"$push"),N.length?D.concat(N):D},$unshift:function(N,D,q){return T(D,q,"$unshift"),N.length?N.concat(D):D},$splice:function(N,D,q,ee){return L(D,q),N.forEach(function(Y){W(Y),D===ee&&Y.length&&(D=S(ee)),c.apply(D,Y)}),D},$set:function(N,D,q){return Z(q),N},$toggle:function(N,D){E(N,"$toggle");var q=N.length?S(D):D;return N.forEach(function(ee){q[ee]=!D[ee]}),q},$unset:function(N,D,q,ee){return E(N,"$unset"),N.forEach(function(Y){Object.hasOwnProperty.call(D,Y)&&(D===ee&&(D=S(ee)),delete D[Y])}),D},$add:function(N,D,q,ee){return ce(D,"$add"),E(N,"$add"),v(D)==="Map"?N.forEach(function(Y){var ie=Y[0],K=Y[1];D===ee&&D.get(ie)!==K&&(D=S(ee)),D.set(ie,K)}):N.forEach(function(Y){D===ee&&!D.has(Y)&&(D=S(ee)),D.add(Y)}),D},$remove:function(N,D,q,ee){return ce(D,"$remove"),E(N,"$remove"),N.forEach(function(Y){D===ee&&D.has(Y)&&(D=S(ee)),D.delete(Y)}),D},$merge:function(N,D,q,ee){return R(D,N),w(N).forEach(function(Y){N[Y]!==D[Y]&&(D===ee&&(D=S(ee)),D[Y]=N[Y])}),D},$apply:function(N,D){return z(N),N(D)}},I=new C;r.isEquals=I.update.isEquals,r.extend=I.extend,r.default=I.update,r.default.default=a.exports=y(r.default,r);function T(N,D,q){s(Array.isArray(N),function(){return"update(): expected target of "+n(q)+" to be an array; got "+n(N)+"."}),E(D[q],q)}function E(N,D){s(Array.isArray(N),function(){return"update(): expected spec of "+n(D)+" to be an array; got "+n(N)+". Did you forget to wrap your parameter in an array?"})}function L(N,D){s(Array.isArray(N),function(){return"Expected $splice target to be an array; got "+n(N)}),W(D.$splice)}function W(N){s(Array.isArray(N),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(N)+". Did you forget to wrap your parameters in an array?"})}function z(N){s(typeof N=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(N)+"."})}function Z(N){s(Object.keys(N).length===1,function(){return"Cannot have more than one key in an object with $set"})}function R(N,D){s(D&&typeof D=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(D)}),s(N&&typeof N=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(N)})}function ce(N,D){var q=v(N);s(q==="Map"||q==="Set",function(){return"update(): "+n(D)+" expects a target of type Set or Map; got "+n(q)})}})(ni,ni.exports)),ni.exports}var Lh=Ph();const Dh=gr(Lh);var Mh=Object.getOwnPropertyDescriptor,Fh=(a,r,n,o)=>{for(var s=o>1?void 0:o?Mh(r,n):r,f=a.length-1,c;f>=0;f--)(c=a[f])&&(s=c(s)||s);return s};de.JustLayoutService=class{insertWinIdToStack=(r,n)=>{if(r==null)return r;const o=this.getNodeByBranch(r,n.branch);if(o.type!=="stack")return r;const f=o.tabs,c=n.index>=0?Wn.clamp(n.index,0,f.length):f.length;return this.updateNodeOfBranch(r,n.branch,{$set:{...o,type:"stack",tabs:[...f.slice(0,c),n.justId,...f.slice(c)],active:n.justId}})};insertWinIdToSplit=(r,n)=>{if(r==null)return r;const o=this.getNodeByBranch(r,n.branch),s=n.pos==="first"?"second":"first";return this.updateNodeOfBranch(r,n.branch,{$set:{type:"split-percentage",direction:n.direction,[s]:{...o,name:void 0},[n.pos]:{type:"stack",tabs:[n.justId],active:n.justId,name:void 0},size:n.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(r,n)=>{if(r==null)return null;const o=this.getNodeByWinId(r,n);if(o?.type!=="stack")return r;const s=o.active?he.indexOf(o.tabs,o.active):0,f=o.tabs.filter(p=>!he.isEquals(p,n));let c;return o.active!==null&&he.includes(f,o.active)?c=o.active:c=f.length>0&&o.active!==null?f[Wn.clamp(s-1,0,f.length-1)]:null,this.updateNodeOfWinId(r,n,{$set:{...o,tabs:f,active:c}})};removeAllTabs=(r,n)=>{if(r==null)return null;const o=this.getNodeByBranch(r,n);return o==null||o.type!=="stack"?r:this.updateNodeOfBranch(r,n,{$set:{...o,tabs:[],active:null}})};activeWinId=(r,n)=>{if(r==null)return null;const o=this.getNodeByWinId(r,n);return o==null?r:this.updateNodeOfWinId(r,n,{$set:{...o,active:n}})};getActiveWinIds=r=>{const n=(o,s)=>{if(o===null)return s;if(o.type==="stack")return o.active!==null?[...s,o.active]:s;{const f=n(o.first,s);return n(o.second,f)}};return n(r,[])};removeEmpty=r=>{if(r==null)return r;const n=this.findEmptyBranch(r,null,[]);if(n===null)return r;if(n.length===0)return null;const o=n[n.length-1],s=n.slice(0,-1),f=o==="first"?"second":"first",c=this.getNodeByBranch(r,s),p=this.getNodeByBranch(r,[...s,f]);return this.updateNodeOfBranch(r,s,{$set:{...p,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(r,n,o)=>{if(r===null)return null;if(r.type==="stack"){const s=n!=null&&n.type!="stack"&&(!!n.first.name||!!n.second.name);if(r.tabs.length===0&&!s)return o}else{const s=this.findEmptyBranch(r.first,r,[...o,"first"]);if(s!=null)return s;const f=this.findEmptyBranch(r.second,r,[...o,"second"]);if(f!=null)return f}return null};moveWinIdToStack=(r,n)=>{const o=this.removeWinId(r,n.justId);return this.insertWinIdToStack(o,n)};moveWinIdToSplit=(r,n)=>{const o=this.removeWinId(r,n.justId);return this.insertWinIdToSplit(o,n)};getBranch=(r,n,o)=>{if(r===null)return null;if(r.type==="stack")return he.includes(r.tabs,n)?o:null;{const s=this.getBranch(r.first,n,[...o,"first"]);if(s!=null)return s;const f=this.getBranch(r.second,n,[...o,"second"]);return f??null}};getBranchByWinId=(r,n)=>this.getBranch(r,n,[]);getNodeInfoByNodeName=(r,n,o)=>{if(r===null)return null;if(r.name==n)return{node:r,branch:[...o]};if(r.type!="stack"){const s=this.getNodeInfoByNodeName(r.first,n,[...o,"first"]);if(s!=null)return s;const f=this.getNodeInfoByNodeName(r.second,n,[...o,"second"]);if(f!=null)return f}return null};getTabNodeInfoByNodeName=(r,n,o)=>{if(r===null)return null;const s=this.getNodeInfoByNodeName(r,n,o);if(s==null)return null;if(s.node.type==="stack")return s;{const f=this.getTabNodeInfo(s.node,[]);if(f!=null)return{node:f.node,branch:[...s.branch,...f.branch]}}return null};getNodeByWinId=(r,n)=>{if(r===null)return null;if(r.type==="stack")return he.includes(r.tabs,n)?(console.log("includes ok:",r.tabs,n),r):(console.log("includes nok:",r.tabs,n),null);{const o=this.getNodeByWinId(r.first,n);if(o!=null)return o;const s=this.getNodeByWinId(r.second,n);return s??null}};getTabBranch=(r,n)=>{if(r===null)return null;if(r.type==="stack")return n;{let o;r.type==="split-pixels"?o=r.primary==="first"?"second":"first":o=r.direction==="row"?"second":"first";const s=this.getTabBranch(r[o],[...n,o]);if(s!=null)return s}return null};getTabNodeInfo=(r,n)=>{if(r===null)return null;if(r.type==="stack")return{node:r,branch:n};{let o;r.type==="split-pixels"?o=r.primary==="first"?"second":"first":o=r.direction==="row"?"second":"first";const s=this.getTabNodeInfo(r[o],[...n,o]);if(s!=null)return s}return null};addTabWin=(r,n,o,s)=>{if(r===null)return null;const f=this.getNodeByBranch(r,n);if(f.type!=="stack")return r;const c=s<0?f.tabs.length:Wn.clamp(s,0,f.tabs.length);return this.updateNodeOfBranch(r,n,{$merge:{tabs:[...f.tabs.slice(0,c),o,...f.tabs.slice(c)],active:o}})};queryWinIdsByViewId=(r,n,o)=>{if(r===null)return o;if(r.type==="stack")return[...o,...r.tabs.filter(s=>s.viewId===n)];{const s=this.queryWinIdsByViewId(r.first,n,o);return this.queryWinIdsByViewId(r.second,n,[...o,...s])}};queryDupWinIdsByWinId=(r,n,o)=>{if(r===null)return o;if(r.type==="stack"){const s=he.withoutDup(n),f=r.tabs.filter(c=>{const p=he.withoutDup(c);return he.isEquals(s,p)});return[...o,...f]}else{const s=this.queryDupWinIdsByWinId(r.first,n,o);return this.queryDupWinIdsByWinId(r.second,n,[...o,...s])}};queryWinIdsByStack=(r,n)=>{if(r===null)return[];const o=this.getNodeByBranch(r,n);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(r,n)=>n.reduce((o,s)=>o?.[s],r);updateNodeOfBranch=(r,n,o)=>{const s=this.buildSpecFromUpdateSpec(n,o);return this.updateNode(r,s)};updateNodeOfWinId=(r,n,o)=>{const s=this.getBranchByWinId(r,n);if(s==null)return r;const f=this.buildSpecFromUpdateSpec(s,o);return this.updateNode(r,f)};hasWinId=(r,n)=>this.getNodeByWinId(r,n)!=null;updateNode=(r,n)=>r==null?null:Dh(r,n);buildSpecFromUpdateSpec=(r,n)=>r.length>0?Wn.set({},r,n):n;getNodeAtBranch=(r,n)=>n.length>0?Wn.get(r,n,null):r;getBranchRightTop=r=>{if(r==null)return[];let n=r;const o=[];for(;n.type!=="stack";)n.direction==="row"?(o.push("second"),n=n.second):n.direction==="column"&&(o.push("first"),n=n.first);return o};updateSplitSize=(r,n,o)=>{const s=this.buildSpecFromUpdateSpec(n,{$merge:{size:o}});return this.updateNode(r,s)}},de.JustLayoutService=Fh([ti.injectable()],de.JustLayoutService);var kh=Object.getOwnPropertyDescriptor,Wh=(a,r,n,o)=>{for(var s=o>1?void 0:o?kh(r,n):r,f=a.length-1,c;f>=0;f--)(c=a[f])&&(s=c(s)||s);return s},Bh=(a,r)=>(n,o)=>r(n,o,a);de.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(r){this.service=r,hr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=r=>{this.layout=r};setTabTitle=(r,n)=>{this.tabTitleMap.set(he.toString(r),n)};getTabTitle=r=>this.tabTitleMap.get(he.toString(r));setTabTitleTooltip=(r,n)=>{this.tabTitleTooltipMap.set(he.toString(r),n)};getTabTitleTooltip=r=>this.tabTitleTooltipMap.get(he.toString(r));setFullScreenLayoutByBranch=r=>{r===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,r)};setFullScreenHideTitle=r=>{this.fullScreenHideTitle=r};addTab=r=>{const n=this.service.getTabBranch(this.layout,[]);n!=null&&(this.service.hasWinId(this.layout,r.justId)?this.layout=this.service.activeWinId(this.layout,r.justId):this.layout=this.service.addTabWin(this.layout,n,r.justId,-1),this.lastActiveId=r.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=r=>{const n=this.service.getTabNodeInfoByNodeName(this.layout,r.nodeName,[]);n!=null&&(this.service.hasWinId(this.layout,r.justId)?this.layout=this.service.activeWinId(this.layout,r.justId):this.layout=this.service.addTabWin(this.layout,n.branch,r.justId,-1),this.lastActiveId=r.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=r=>this.service.queryWinIdsByViewId(this.layout??null,r,[]);cloneTab=r=>{const n=this.service.getBranchByWinId(this.layout,r.justId);if(n==null)return;const o=this.service.getNodeAtBranch(this.layout,n);let s=0;o?.type==="stack"&&o.active!=null&&(s=he.indexOf(o.tabs,r.justId)+1),this.layout=this.service.addTabWin(this.layout,n,r.cloneJustId,s),this.lastActiveId=r.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=r=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,r.justId))};removeAllTabs=r=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,r.branch))};activeWin=r=>{this.layout=this.service.activeWinId(this.layout,r.justId),this.lastActiveId=r.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const r=this.lastActiveId;if(r==null)return;const n=this.service.getNodeByWinId(this.layout,r);if(n?.type!=="stack"||n.tabs.length===0)return;const s=(he.indexOf(n.tabs,r)-1+n.tabs.length)%n.tabs.length,f=n.tabs[s];this.activeWin({justId:f})};activeNextWin=()=>{const r=this.lastActiveId;if(r==null)return;const n=this.service.getNodeByWinId(this.layout,r);if(n?.type!=="stack"||n.tabs.length===0)return;const s=(he.indexOf(n.tabs,r)+1)%n.tabs.length,f=n.tabs[s];this.activeWin({justId:f})};updateResize=r=>{this.layout=this.service.updateSplitSize(this.layout,r.branch,r.size)};moveWin=r=>{r.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,r)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,r)),this.lastActiveId=r.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const r=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:r})};toggleWin=({nodeName:r})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,r,[]);if(o==null||o.node.type!=="split-pixels")return;const s=o.node.primaryHide!==!0,f=!s||o.node.size<10?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:f,primaryHide:s}}),p=this.service.updateNode(n,c);p!=null&&this.setLayout(p)};showWin=({nodeName:r,show:n})=>{const o=this.layout,s=this.service.getNodeInfoByNodeName(o,r,[]);if(s!=null&&s.node.type==="split-pixels"&&n===(s.node.size===0)){const f=n?s.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:f}}),p=this.service.updateNode(o,c);if(p==null)return;this.setLayout(p)}};getSizeByNodeName=({nodeName:r})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,r,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:r})=>{const n=this.layout;return this.service.getBranchByWinId(n,r)};isPrimaryHide=({nodeName:r})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,r,[]);if(o!=null)return o.node.type==="split-pixels"?o.node.primaryHide:null};openWin=({justId:r})=>{this.service.hasWinId(this.layout??null,r)?this.activeWin({justId:r}):this.addTab({justId:r})};openWinByNodeName=({justId:r,nodeName:n})=>{this.service.hasWinId(this.layout??null,r)?(console.log("hasWinId",r),this.activeWin({justId:r})):(console.log("addTabByNodeName",r),this.addTabByNodeName({justId:r,nodeName:n}))};getWinIds=({viewId:r})=>this.service.queryWinIdsByViewId(this.layout??null,r,[]);getDupWinIds=({justId:r})=>this.service.queryDupWinIdsByWinId(this.layout??null,r,[]);getWinIdsByBranch=({branch:r})=>this.service.queryWinIdsByStack(this.layout??null,r);getNodeAtBranch=({branch:r})=>this.service.getNodeAtBranch(this.layout??null,r);openWinMenu=({justId:r,nodeName:n})=>{const o=r.viewId,s=this.getWinIds({viewId:o});if(s.length===0)console.log("openWinMenu1",s,r),this.openWinByNodeName({justId:r,nodeName:n});else{const f=s.toSorted((c,p)=>(c.dupId??"")<=(p.dupId??"")?-1:1).at(-1);f&&(console.log("openWinMenu2",s,f),this.openWinByNodeName({justId:f,nodeName:n}))}};fullScreenWin=async(r,n,o=!1)=>{n?this.setLayout(null):(this.setFullScreenLayoutByBranch(r),this.setFullScreenHideTitle(o))}},de.JustLayoutStore=Wh([ti.injectable(),Bh(0,ti.inject(Ft.JustLayoutService))],de.JustLayoutStore);const Rh=new ti.ContainerModule(({bind:a})=>{a(Ft.JustLayoutService).to(de.JustLayoutService).inSingletonScope(),a(Ft.JustLayoutStore).to(de.JustLayoutStore).inTransientScope(),a(Ft.JustLayoutStoreCacheMap).toConstantValue(new Map),a(Ft.JustLayoutFactory).toFactory(r=>{const n=r.get(Ft.JustLayoutStoreCacheMap);return o=>{if(!n.has(o)){const s=r.get(Ft.JustLayoutStore);n.set(o,s)}return n.get(o)}})}),Nt=a=>{const r=Oh.useInjection(Ft.JustLayoutFactory),[n]=O.useState(()=>r(a));return n},$h=O.createContext({dragDropManager:void 0});function en(a,r,...n){if(Uh()&&r===void 0)throw new Error("invariant requires an error message argument");if(!a){let o;if(r===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let s=0;o=new Error(r.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function Uh(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var wa,du;function zh(){return du||(du=1,wa=function a(r,n){if(r===n)return!0;if(r&&n&&typeof r=="object"&&typeof n=="object"){if(r.constructor!==n.constructor)return!1;var o,s,f;if(Array.isArray(r)){if(o=r.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!a(r[s],n[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===n.source&&r.flags===n.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===n.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===n.toString();if(f=Object.keys(r),o=f.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,f[s]))return!1;for(s=o;s--!==0;){var c=f[s];if(!a(r[c],n[c]))return!1}return!0}return r!==r&&n!==n}),wa}var Hh=zh();const qh=gr(Hh),mn=typeof window<"u"?O.useLayoutEffect:O.useEffect;function jh(a,r,n){const[o,s]=O.useState(()=>r(a)),f=O.useCallback(()=>{const c=r(a);qh(o,c)||(s(c),n&&n())},[o,a,n]);return mn(f),[o,f]}function Gh(a,r,n){const[o,s]=jh(a,r,n);return mn(function(){const c=a.getHandlerId();if(c!=null)return a.subscribeToStateChange(s,{handlerIds:[c]})},[a,s]),o}function hu(a,r,n){return Gh(r,a||(()=>({})),()=>n.reconnect())}function pu(a,r){const n=[...r||[]];return r==null&&typeof a!="function"&&n.push(a),O.useMemo(()=>typeof a=="function"?a():a,n)}function Yh(a){return O.useMemo(()=>a.hooks.dragSource(),[a])}function Jh(a){return O.useMemo(()=>a.hooks.dragPreview(),[a])}let Sa=!1,_a=!1;class Kh{receiveHandlerId(r){this.sourceId=r}getHandlerId(){return this.sourceId}canDrag(){en(!Sa,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Sa=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Sa=!1}}isDragging(){if(!this.sourceId)return!1;en(!_a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{_a=!1}}subscribeToStateChange(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}isDraggingSource(r){return this.internalMonitor.isDraggingSource(r)}isOverTarget(r,n){return this.internalMonitor.isOverTarget(r,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(r){return this.internalMonitor.subscribeToOffsetChange(r)}canDragSource(r){return this.internalMonitor.canDragSource(r)}canDropOnTarget(r){return this.internalMonitor.canDropOnTarget(r)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(r){this.sourceId=null,this.internalMonitor=r.getMonitor()}}let xa=!1;class Vh{receiveHandlerId(r){this.targetId=r}getHandlerId(){return this.targetId}subscribeToStateChange(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}canDrop(){if(!this.targetId)return!1;en(!xa,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return xa=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{xa=!1}}isOver(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(r){this.targetId=null,this.internalMonitor=r.getMonitor()}}function Xh(a,r,n){const o=n.getRegistry(),s=o.addTarget(a,r);return[s,()=>o.removeTarget(s)]}function Zh(a,r,n){const o=n.getRegistry(),s=o.addSource(a,r);return[s,()=>o.removeSource(s)]}function Ia(a,r,n,o){let s;if(s!==void 0)return!!s;if(a===r)return!0;if(typeof a!="object"||!a||typeof r!="object"||!r)return!1;const f=Object.keys(a),c=Object.keys(r);if(f.length!==c.length)return!1;const p=Object.prototype.hasOwnProperty.bind(r);for(let v=0;v<f.length;v++){const y=f[v];if(!p(y))return!1;const w=a[y],S=r[y];if(s=void 0,s===!1||s===void 0&&w!==S)return!1}return!0}function Ta(a){return a!==null&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Qh(a){if(typeof a.type=="string")return;const r=a.type.displayName||a.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${r} into a <div>, or turn it into a drag source or a drop target itself.`)}function ep(a){return(r=null,n=null)=>{if(!O.isValidElement(r)){const f=r;return a(f,n),f}const o=r;return Qh(o),tp(o,n?f=>a(f,n):a)}}function gu(a){const r={};return Object.keys(a).forEach(n=>{const o=a[n];if(n.endsWith("Ref"))r[n]=a[n];else{const s=ep(o);r[n]=()=>s}}),r}function vu(a,r){typeof a=="function"?a(r):a.current=r}function tp(a,r){const n=a.ref;return en(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?O.cloneElement(a,{ref:o=>{vu(n,o),vu(r,o)}}):O.cloneElement(a,{ref:r})}class np{receiveHandlerId(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(r){this.dragSourceOptionsInternal=r}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(r){this.dragPreviewOptionsInternal=r}reconnect(){const r=this.reconnectDragSource();this.reconnectDragPreview(r)}reconnectDragSource(){const r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?r?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions)),n):(this.lastConnectedDragSource=r,n):n}reconnectDragPreview(r=!1){const n=this.dragPreview,o=r||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ia(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ia(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(r){this.hooks=gu({dragSource:(n,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,Ta(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,Ta(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=r}}class rp{get connectTarget(){return this.dropTarget}reconnect(){const r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(r){this.dropTargetOptionsInternal=r}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ia(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(r){this.hooks=gu({dropTarget:(n,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,Ta(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=r}}function Bn(){const{dragDropManager:a}=O.useContext($h);return en(a!=null,"Expected drag drop context"),a}function ip(a,r){const n=Bn(),o=O.useMemo(()=>new np(n.getBackend()),[n]);return mn(()=>(o.dragSourceOptions=a||null,o.reconnect(),()=>o.disconnectDragSource()),[o,a]),mn(()=>(o.dragPreviewOptions=r||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,r]),o}function ap(){const a=Bn();return O.useMemo(()=>new Kh(a),[a])}class op{beginDrag(){const r=this.spec,n=this.monitor;let o=null;return typeof r.item=="object"?o=r.item:typeof r.item=="function"?o=r.item(n):o={},o??null}canDrag(){const r=this.spec,n=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(n):!0}isDragging(r,n){const o=this.spec,s=this.monitor,{isDragging:f}=o;return f?f(s):n===r.getSourceId()}endDrag(){const r=this.spec,n=this.monitor,o=this.connector,{end:s}=r;s&&s(n.getItem(),n),o.reconnect()}constructor(r,n,o){this.spec=r,this.monitor=n,this.connector=o}}function sp(a,r,n){const o=O.useMemo(()=>new op(a,r,n),[r,n]);return O.useEffect(()=>{o.spec=a},[a]),o}function up(a){return O.useMemo(()=>{const r=a.type;return en(r!=null,"spec.type must be defined"),r},[a])}function fp(a,r,n){const o=Bn(),s=sp(a,r,n),f=up(a);mn(function(){if(f!=null){const[p,v]=Zh(f,s,o);return r.receiveHandlerId(p),n.receiveHandlerId(p),v}},[o,r,n,s,f])}function lp(a,r){const n=pu(a,r);en(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=ap(),s=ip(n.options,n.previewOptions);return fp(n,o,s),[hu(n.collect,o,s),Yh(s),Jh(s)]}function cp(a){return O.useMemo(()=>a.hooks.dropTarget(),[a])}function dp(a){const r=Bn(),n=O.useMemo(()=>new rp(r.getBackend()),[r]);return mn(()=>(n.dropTargetOptions=a||null,n.reconnect(),()=>n.disconnectDropTarget()),[a]),n}function hp(){const a=Bn();return O.useMemo(()=>new Vh(a),[a])}function pp(a){const{accept:r}=a;return O.useMemo(()=>(en(a.accept!=null,"accept must be defined"),Array.isArray(r)?r:[r]),[r])}class gp{canDrop(){const r=this.spec,n=this.monitor;return r.canDrop?r.canDrop(n.getItem(),n):!0}hover(){const r=this.spec,n=this.monitor;r.hover&&r.hover(n.getItem(),n)}drop(){const r=this.spec,n=this.monitor;if(r.drop)return r.drop(n.getItem(),n)}constructor(r,n){this.spec=r,this.monitor=n}}function vp(a,r){const n=O.useMemo(()=>new gp(a,r),[r]);return O.useEffect(()=>{n.spec=a},[a]),n}function mp(a,r,n){const o=Bn(),s=vp(a,r),f=pp(a);mn(function(){const[p,v]=Xh(f,s,o);return r.receiveHandlerId(p),n.receiveHandlerId(p),v},[o,r,s,n,f.map(c=>c.toString()).join("|")])}function Ea(a,r){const n=pu(a,r),o=hp(),s=dp(n.options);return mp(n,o,s),[hu(n.collect,o,s),cp(s)]}var Aa={exports:{}};var mu;function yp(){return mu||(mu=1,(function(a){(function(){var r={}.hasOwnProperty;function n(){for(var f="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(f=s(f,o(p)))}return f}function o(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)r.call(f,p)&&f[p]&&(c=s(c,p));return c}function s(f,c){return c?f?f+" "+c:f+c:f}a.exports?(n.default=n,a.exports=n):window.classNames=n})()})(Aa)),Aa.exports}var bp=yp();const wt=gr(bp),yu=a=>!!a&&a[0]==="o",bu=pr.unstable_batchedUpdates,mr=(a,r)=>a===!0||!!(a&&a[r]),ct=(a,r)=>typeof a=="function"?a(r):a,wp="_szhsinMenu",Sp=a=>a[wp],ri=(a,r)=>(r&&Object.keys(r).forEach(n=>{const o=a[n],s=r[n];typeof s=="function"&&o?a[n]=(...f)=>{s(...f),o(...f)}:a[n]=s}),a),_p=a=>{if(typeof a!="string")return{top:0,right:0,bottom:0,left:0};const r=a.trim().split(/\s+/,4).map(parseFloat),n=isNaN(r[0])?0:r[0],o=isNaN(r[1])?n:r[1];return{top:n,right:o,bottom:isNaN(r[2])?n:r[2],left:isNaN(r[3])?o:r[3]}},Oa=a=>{for(;a;){if(a=a.parentNode,!a||a===document.body||!a.parentNode)return;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(a);if(/auto|scroll|overlay|hidden/.test(r+o+n))return a}};function wu(a,r){return{"aria-disabled":a||void 0,tabIndex:r?0:-1}}function Su(a,r){for(let n=0;n<a.length;n++)if(a[n]===r)return n;return-1}const ii=({block:a,element:r,modifiers:n,className:o})=>O.useMemo(()=>{const s=r?`${a}__${r}`:a;let f=s;n&&Object.keys(n).forEach(p=>{const v=n[p];v&&(f+=` ${s}--${v===!0?p:`${p}-${v}`}`)});let c=typeof o=="function"?o(n):o;return typeof c=="string"&&(c=c.trim(),c&&(f+=` ${c}`)),f},[a,r,n,o]),xp="szh-menu-container",ai="szh-menu",Ip="arrow",Tp="item",_u=O.createContext(),xu=O.createContext({}),Iu=O.createContext({}),Tu=O.createContext({}),Ep=O.createContext({}),Ca=O.createContext({}),St=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}),yr=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),br=Object.freeze({FIRST:"first",LAST:"last"}),Ap=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Eu="absolute",Op="none",Cp="menuitem",Na={preventScroll:!0},Np=({className:a,containerRef:r,containerProps:n,children:o,isOpen:s,theming:f,transition:c,onClose:p})=>{const v=mr(c,"item"),y=({key:S})=>{S===St.ESC&&ct(p,{key:S,reason:yr.CANCEL})},w=S=>{s&&!S.currentTarget.contains(S.relatedTarget)&&ct(p,{reason:yr.BLUR})};return $.jsx("div",{...ri({onKeyDown:y,onBlur:w},n),className:ii({block:xp,modifiers:O.useMemo(()=>({theme:f,itemTransition:v}),[f,v]),className:a}),style:{position:"absolute",...n?.style},ref:r,children:o})},Pp=()=>{let a,r=0;return{toggle:n=>{n?r++:r--,r=Math.max(r,0)},on:(n,o,s)=>{r?a||(a=setTimeout(()=>{a=0,o()},n)):s?.()},off:()=>{a&&(clearTimeout(a),a=0)}}},Lp=a=>{const[r,n]=O.useState(),s=O.useRef({items:[],hoverIndex:-1,sorted:!1}).current,f=O.useCallback((p,v)=>{const{items:y}=s;if(!p)s.items=[];else if(v)y.push(p);else{const w=y.indexOf(p);w>-1&&(y.splice(w,1),p.contains(document.activeElement)&&(a.current.focus(Na),n()))}s.hoverIndex=-1,s.sorted=!1},[s,a]),c=O.useCallback((p,v,y)=>{const{items:w,hoverIndex:S}=s,C=()=>{if(s.sorted)return;const T=a.current.querySelectorAll(".szh-menu__item");w.sort((E,L)=>Su(T,E)-Su(T,L)),s.sorted=!0};let x=-1,I;switch(p){case Ce.RESET:break;case Ce.SET:I=v;break;case Ce.UNSET:I=T=>T===v?void 0:T;break;case Ce.FIRST:C(),x=0,I=w[x];break;case Ce.LAST:C(),x=w.length-1,I=w[x];break;case Ce.SET_INDEX:C(),x=y,I=w[x];break;case Ce.INCREASE:C(),x=S,x<0&&(x=w.indexOf(v)),x++,x>=w.length&&(x=0),I=w[x];break;case Ce.DECREASE:C(),x=S,x<0&&(x=w.indexOf(v)),x--,x<0&&(x=w.length-1),I=w[x];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${p}`)}I||(x=-1),n(I),s.hoverIndex=x},[a,s]);return{hoverItem:r,dispatch:c,updateItems:f}},Au=(a,r)=>Math.round(a)===r?a:r,Dp=a=>{const r=a.getBoundingClientRect();return r.width=Au(r.width,a.offsetWidth),r.height=Au(r.height,a.offsetHeight),r},Mp=(a,r,n,o)=>{const s=Dp(r),f=a.getBoundingClientRect(),c=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),p=_p(o),v=I=>I+f.left-c.left-p.left,y=I=>I+f.left+s.width-c.right+p.right,w=I=>I+f.top-c.top-p.top,S=I=>I+f.top+s.height-c.bottom+p.bottom;return{menuRect:s,containerRect:f,getLeftOverflow:v,getRightOverflow:y,getTopOverflow:w,getBottomOverflow:S,confineHorizontally:I=>{let T=v(I);if(T<0)I-=T;else{const E=y(I);E>0&&(I-=E,T=v(I),T<0&&(I-=T))}return I},confineVertically:I=>{let T=w(I);if(T<0)I-=T;else{const E=S(I);E>0&&(I-=E,T=w(I),T<0&&(I-=T))}return I}}},Fp=({arrowRef:a,menuY:r,anchorRect:n,containerRect:o,menuRect:s})=>{let f=n.top-o.top-r+n.height/2;const c=a.current.offsetHeight*1.25;return f=Math.max(c,f),f=Math.min(f,s.height-c),f},kp=({anchorRect:a,containerRect:r,menuRect:n,placeLeftorRightY:o,placeLeftX:s,placeRightX:f,getLeftOverflow:c,getRightOverflow:p,confineHorizontally:v,confineVertically:y,arrowRef:w,arrow:S,direction:C,position:x})=>{let I=C,T=o;x!=="initial"&&(T=y(T),x==="anchor"&&(T=Math.min(T,a.bottom-r.top),T=Math.max(T,a.top-r.top-n.height)));let E,L,W;return I==="left"?(E=s,x!=="initial"&&(L=c(E),L<0&&(W=p(f),(W<=0||-L>W)&&(E=f,I="right")))):(E=f,x!=="initial"&&(W=p(E),W>0&&(L=c(s),(L>=0||-L<W)&&(E=s,I="left")))),x==="auto"&&(E=v(E)),{arrowY:S?Fp({menuY:T,arrowRef:w,anchorRect:a,containerRect:r,menuRect:n}):void 0,x:E,y:T,computedDirection:I}},Wp=({arrowRef:a,menuX:r,anchorRect:n,containerRect:o,menuRect:s})=>{let f=n.left-o.left-r+n.width/2;const c=a.current.offsetWidth*1.25;return f=Math.max(c,f),f=Math.min(f,s.width-c),f},Bp=({anchorRect:a,containerRect:r,menuRect:n,placeToporBottomX:o,placeTopY:s,placeBottomY:f,getTopOverflow:c,getBottomOverflow:p,confineHorizontally:v,confineVertically:y,arrowRef:w,arrow:S,direction:C,position:x})=>{let I=C==="top"?"top":"bottom",T=o;x!=="initial"&&(T=v(T),x==="anchor"&&(T=Math.min(T,a.right-r.left),T=Math.max(T,a.left-r.left-n.width)));let E,L,W;return I==="top"?(E=s,x!=="initial"&&(L=c(E),L<0&&(W=p(f),(W<=0||-L>W)&&(E=f,I="bottom")))):(E=f,x!=="initial"&&(W=p(E),W>0&&(L=c(s),(L>=0||-L<W)&&(E=s,I="top")))),x==="auto"&&(E=y(E)),{arrowX:S?Wp({menuX:T,arrowRef:w,anchorRect:a,containerRect:r,menuRect:n}):void 0,x:T,y:E,computedDirection:I}},Rp=({arrow:a,align:r,direction:n,gap:o,shift:s,position:f,anchorRect:c,arrowRef:p,positionHelpers:v})=>{const{menuRect:y,containerRect:w}=v,S=n==="left"||n==="right";let C=S?o:s,x=S?s:o;if(a){const R=p.current;S?C+=R.offsetWidth:x+=R.offsetHeight}const I=c.left-w.left-y.width-C,T=c.right-w.left+C,E=c.top-w.top-y.height-x,L=c.bottom-w.top+x;let W,z;r==="end"?(W=c.right-w.left-y.width,z=c.bottom-w.top-y.height):r==="center"?(W=c.left-w.left-(y.width-c.width)/2,z=c.top-w.top-(y.height-c.height)/2):(W=c.left-w.left,z=c.top-w.top),W+=C,z+=x;const Z={...v,anchorRect:c,placeLeftX:I,placeRightX:T,placeLeftorRightY:z,placeTopY:E,placeBottomY:L,placeToporBottomX:W,arrowRef:p,arrow:a,direction:n,position:f};switch(n){case"left":case"right":return kp(Z);default:return Bp(Z)}},oi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?O.useLayoutEffect:O.useEffect;function Ou(a,r){typeof a=="function"?a(r):a.current=r}const Pa=(a,r)=>O.useMemo(()=>a?r?n=>{Ou(a,n),Ou(r,n)}:a:r,[a,r]),Cu=-9999,$p=({ariaLabel:a,menuClassName:r,menuStyle:n,arrow:o,arrowProps:s={},anchorPoint:f,anchorRef:c,containerRef:p,containerProps:v,externalRef:y,parentScrollingRef:w,align:S="start",direction:C="bottom",position:x="auto",overflow:I="visible",setDownOverflow:T,repositionFlag:E,captureFocus:L=!0,state:W,endTransition:z,isDisabled:Z,menuItemFocus:R,gap:ce=0,shift:N=0,children:D,onClose:q,focusProps:ee,...Y})=>{const[ie,K]=O.useState({x:Cu,y:Cu}),[We,Ye]=O.useState({}),[Je,It]=O.useState(),[Ue,jo]=O.useState(C),[Tt]=O.useState(Pp),[nt,Ti]=O.useReducer(fe=>fe+1,1),{transition:Ei,boundingBoxRef:Cr,boundingBoxPadding:zt,rootMenuRef:Sn,rootAnchorRef:Nr,scrollNodesRef:_n,reposition:an,viewScroll:Pr,submenuCloseDelay:Gn}=O.useContext(Ca),{submenuCtx:Yn,reposSubmenu:Ai=E}=O.useContext(Iu),Ae=O.useRef(),on=O.useRef(),Oi=O.useRef(!1),{hoverItem:rt,dispatch:ze,updateItems:Jn}=Lp(Ae),Oe=yu(W),Ke=mr(Ei,"open"),sn=mr(Ei,"close"),Be=_n.current,Go=fe=>{switch(fe.key){case St.HOME:ze(Ce.FIRST);break;case St.END:ze(Ce.LAST);break;case St.UP:ze(Ce.DECREASE,rt);break;case St.DOWN:ze(Ce.INCREASE,rt);break;case St.SPACE:fe.target&&fe.target.className.indexOf(ai)!==-1&&fe.preventDefault();return;default:return}fe.preventDefault(),fe.stopPropagation()},xn=()=>{W==="closing"&&It(),ct(z)},Yo=fe=>{fe.stopPropagation(),Tt.on(Gn,()=>{ze(Ce.RESET),Ae.current.focus(Na)})},In=fe=>{fe.target===fe.currentTarget&&Tt.off()},He=O.useCallback(fe=>{const Le=Ae.current,Ve=p.current;if(!Le||!Ve)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=(Cr?Cr.current:Oa(Sn.current))||window);const Ie=Mp(Ve,Le,Be.menu,zt);let{arrowX:Xn,arrowY:Jo,x:Ko,y:An,computedDirection:Vo}=Rp({arrow:o,align:S,direction:C,gap:ce,shift:N,position:x,anchorRect:it,arrowRef:on,positionHelpers:Ie});const{menuRect:Xo}=Ie,Ni=Xo.height;if(!fe&&I!=="visible"){const{getTopOverflow:Wr,getBottomOverflow:Zo}=Ie;let Ht,Br;const Rr=Zo(An);if(Rr>0)Ht=Ni-Rr,Br=Rr;else{const Zn=Wr(An);Zn<0&&(Ht=Ni+Zn,Br=0-Zn,Ht>=0&&(An-=Zn))}Ht>=0&&It({height:Ht,overflowAmt:Br})}o&&Ye({x:Xn,y:Jo}),K({x:Ko,y:An}),jo(Vo)},[o,S,zt,C,ce,N,x,I,f,c,p,Cr,Sn,Be]);oi(()=>{Oe&&(He(),Oi.current&&Ti()),Oi.current=Oe},[Oe,He,Ai]),oi(()=>{Je&&!T&&(Ae.current.scrollTop=0)},[Je,T]),oi(()=>Jn,[Jn]),O.useEffect(()=>{let{menu:fe}=Be;if(!Oe||!fe)return;if(fe=fe.addEventListener?fe:window,!Be.anchors){Be.anchors=[];let Ie=Oa(Nr&&Nr.current);for(;Ie&&Ie!==fe;)Be.anchors.push(Ie),Ie=Oa(Ie)}let Le=Pr;if(Be.anchors.length&&Le==="initial"&&(Le="auto"),Le==="initial")return;const Ve=()=>{Le==="auto"?bu(()=>He(!0)):ct(q,{reason:yr.SCROLL})},it=Be.anchors.concat(Pr!=="initial"?fe:[]);return it.forEach(Ie=>Ie.addEventListener("scroll",Ve)),()=>it.forEach(Ie=>Ie.removeEventListener("scroll",Ve))},[Nr,Be,Oe,q,Pr,He]);const Kn=!!Je&&Je.overflowAmt>0;O.useEffect(()=>{if(Kn||!Oe||!w)return;const fe=()=>bu(He),Le=w.current;return Le.addEventListener("scroll",fe),()=>Le.removeEventListener("scroll",fe)},[Oe,Kn,w,He]),O.useEffect(()=>{if(!Oe||typeof ResizeObserver!="function"||an==="initial")return;const fe=[],Le=new ResizeObserver(Ie=>Ie.forEach(({target:Xn})=>{fe.indexOf(Xn)<0?fe.push(Xn):pr.flushSync(()=>{He(),Ti()})})),Ve={box:"border-box"};Le.observe(Ae.current,Ve);const it=c?.current;return it&&Le.observe(it,Ve),()=>Le.disconnect()},[Oe,an,c,He]),O.useEffect(()=>{if(!Oe){ze(Ce.RESET),sn||It();return}const{position:fe,alwaysUpdate:Le}=R||{},Ve=()=>{fe===br.FIRST?ze(Ce.FIRST):fe===br.LAST?ze(Ce.LAST):fe>=-1&&ze(Ce.SET_INDEX,void 0,fe)};if(Le)Ve();else if(L){const it=setTimeout(()=>{const Ie=Ae.current;Ie&&!Ie.contains(document.activeElement)&&(Ie.focus(Na),Ve())},Ke?170:100);return()=>clearTimeout(it)}},[Oe,Ke,sn,L,R,ze]);const Lr=O.useMemo(()=>({isParentOpen:Oe,submenuCtx:Tt,dispatch:ze,updateItems:Jn}),[Oe,Tt,ze,Jn]);let Tn,En;Je&&(T?En=Je.overflowAmt:Tn=Je.height);const Dr=O.useMemo(()=>({reposSubmenu:nt,submenuCtx:Tt,overflow:I,overflowAmt:En,parentMenuRef:Ae,parentDir:Ue}),[nt,Tt,I,En,Ue]),Mr=Tn>=0?{maxHeight:Tn,overflow:I}:void 0,Vn=O.useMemo(()=>({state:W,align:S,dir:Ue}),[W,S,Ue]),Fr=O.useMemo(()=>({dir:Ue}),[Ue]),kr=ii({block:ai,element:Ip,modifiers:Fr,className:s.className}),Ci=$.jsxs("ul",{role:"menu","aria-label":a,...wu(Z),...ri({onPointerEnter:Yn?.off,onPointerMove:Yo,onPointerLeave:In,onKeyDown:Go,onAnimationEnd:xn},Y),ref:Pa(y,Ae),className:ii({block:ai,modifiers:Vn,className:r}),style:{...n,...Mr,margin:0,display:W==="closed"?"none":void 0,position:Eu,left:ie.x,top:ie.y},children:[o&&$.jsx("li",{"aria-hidden":!0,...s,className:kr,style:{display:"block",position:Eu,left:We.x,top:We.y,...s.style},ref:on}),$.jsx(Iu.Provider,{value:Dr,children:$.jsx(xu.Provider,{value:Lr,children:$.jsx(_u.Provider,{value:rt,children:ct(D,Vn)})})})]});return v?$.jsx(Np,{...v,isOpen:Oe,children:Ci}):Ci},Nu=O.forwardRef(function({"aria-label":r,className:n,containerProps:o,initialMounted:s,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:v,boundingBoxPadding:y,reposition:w="auto",submenuOpenDelay:S=300,submenuCloseDelay:C=150,viewScroll:x="initial",portal:I,theming:T,onItemClick:E,...L},W){const z=O.useRef(null),Z=O.useRef({}),{anchorRef:R,state:ce,onClose:N}=L,D=O.useMemo(()=>({initialMounted:s,unmountOnClose:f,transition:c,transitionTimeout:p,boundingBoxRef:v,boundingBoxPadding:y,rootMenuRef:z,rootAnchorRef:R,scrollNodesRef:Z,reposition:w,viewScroll:x,submenuOpenDelay:S,submenuCloseDelay:C}),[s,f,c,p,R,v,y,w,x,S,C]),q=O.useMemo(()=>({handleClick(Y,ie){Y.stopPropagation||ct(E,Y);let K=Y.keepOpen;K===void 0&&(K=ie&&Y.key===St.SPACE),K||ct(N,{value:Y.value,key:Y.key,reason:yr.CLICK})},handleClose(Y){ct(N,{key:Y,reason:yr.CLICK})}}),[E,N]);if(!ce)return null;const ee=$.jsx(Ca.Provider,{value:D,children:$.jsx(Tu.Provider,{value:q,children:$.jsx($p,{...L,ariaLabel:r||"Menu",externalRef:W,containerRef:z,containerProps:{className:n,containerRef:z,containerProps:o,theming:T,transition:c,onClose:N}})})});return I===!0&&typeof document<"u"?pr.createPortal(ee,document.body):I?I.target?pr.createPortal(ee,I.target):I.stablePosition?null:ee:ee}),La=0,Da=1,si=2,ui=3,fi=4,Up=5,Pu=6,zp=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Lu=a=>({_s:a,status:zp[a],isEnter:a<ui,isMounted:a!==Pu,isResolved:a===si||a>fi}),Ma=a=>a?Pu:Up,Hp=(a,r)=>{switch(a){case Da:case La:return si;case fi:case ui:return Ma(r)}},qp=a=>typeof a=="object"?[a.enter,a.exit]:[a,a],Fa=setTimeout,jp=(a,r)=>Fa(()=>{isNaN(document.body.offsetTop)||a(r+1)},0),Du=(a,r,n,o,s)=>{clearTimeout(o.current);const f=Lu(a);r(f),n.current=f,s&&s({current:f})},Gp=({enter:a=!0,exit:r=!0,preEnter:n,preExit:o,timeout:s,initialEntered:f,mountOnEnter:c,unmountOnExit:p,onStateChange:v}={})=>{const[y,w]=O.useState(()=>Lu(f?si:Ma(c))),S=O.useRef(y),C=O.useRef(0),[x,I]=qp(s),T=O.useCallback(()=>{const E=Hp(S.current._s,p);E&&Du(E,w,S,C,v)},[v,p]);return[y,O.useCallback(E=>{const L=z=>{switch(Du(z,w,S,C,v),z){case Da:x>=0&&(C.current=Fa(T,x));break;case fi:I>=0&&(C.current=Fa(T,I));break;case La:case ui:C.current=jp(L,z);break}},W=S.current.isEnter;typeof E!="boolean"&&(E=!W),E?!W&&L(a?n?La:Da:si):W&&L(r?o?ui:fi:Ma(p))},[T,v,a,r,n,o,x,I,p]),T]},ka=({initialOpen:a,initialMounted:r,unmountOnClose:n,transition:o,transitionTimeout:s=500,onMenuChange:f}={})=>{const c=mr(o,"open"),p=mr(o,"close"),[{status:v},y,w]=Gp({initialEntered:a,mountOnEnter:!r,unmountOnExit:n,timeout:s,enter:c,exit:p,onStateChange:O.useCallback(({current:{isEnter:S,isResolved:C}})=>{!f||S&&c&&C||!S&&p&&C||f({open:S})},[f,c,p])});return[{state:Ap[v],endTransition:w},y]},Yp=a=>{const[r,n]=ka(a),[o,s]=O.useState(),f=(c,p)=>{s({position:c,alwaysUpdate:p}),n(!0)};return[{menuItemFocus:o,...r},n,f]},Jp=(a,r)=>{if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=O.useState({});return{onMouseDown:()=>{n.v=a&&a!=="closed"},onClick:o=>n.v?n.v=!1:r(!0,o)}},Kp=parseInt(O.version)<19,Mu=O.forwardRef(function({"aria-label":r,captureFocus:n,initialOpen:o,menuButton:s,instanceRef:f,onMenuChange:c,...p},v){const[y,w,S]=Yp({...p,onMenuChange:c}),{state:C}=y,x=yu(C),I=O.useRef(null),T=Jp(C,(R,ce)=>S(ce.detail?void 0:br.FIRST)),E=O.useCallback(R=>{w(!1),R.key&&I.current.focus()},[w]),L=R=>{switch(R.key){case St.UP:S(br.LAST);break;case St.DOWN:S(br.FIRST);break;default:return}R.preventDefault()},W=ct(s,{open:x});if(!W||!W.type)throw new Error("Menu requires a menuButton prop.");const z={...ri({onKeyDown:L,...T},W.props),ref:Pa(Kp?W.ref:W.props.ref,I)};Sp(W.type)==="MenuButton"&&(z.isOpen=x);const Z=O.cloneElement(W,z);return O.useImperativeHandle(f,()=>({openMenu:S,closeMenu:()=>w(!1)})),$.jsxs(O.Fragment,{children:[Z,$.jsx(Nu,{...p,...y,"aria-label":r||(typeof W.props.children=="string"?W.props.children:"Menu"),anchorRef:I,ref:v,onClose:E})]})}),Vp=(a,r)=>{const n=O.memo(r),o=O.forwardRef((s,f)=>{const c=O.useRef(null);return $.jsx(n,{...s,itemRef:c,externalRef:f,isHovering:O.useContext(_u)===c.current})});return o.displayName=`WithHovering(${a})`,o},Xp=a=>{const[r,n]=O.useState(!1);return O.useEffect(()=>{!a&&n(!1)},[a]),[r,()=>!r&&n(!0),()=>n(!1)]},Zp=(a,r,n)=>{oi(()=>{if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${r.current.outerHTML}`);if(a)return;const o=r.current;return n(o,!0),()=>{n(o)}},[a,r,n])},Qp=(a,r,n,o)=>{const[s,f,c]=Xp(n),{submenuCloseDelay:p}=O.useContext(Ca),{isParentOpen:v,submenuCtx:y,dispatch:w,updateItems:S}=O.useContext(xu),C=()=>{!n&&!o&&w(Ce.SET,a.current)},x=()=>{!o&&w(Ce.UNSET,a.current)},I=L=>{n&&!L.currentTarget.contains(L.relatedTarget)&&x()},T=L=>{o||(L.stopPropagation(),f(),y.on(p,C,C))},E=(L,W)=>{c(),y.off(),!W&&x()};return Zp(o,a,S),O.useEffect(()=>{n&&v&&r.current&&r.current.focus()},[r,n,v]),{mouseOver:s,setHover:C,onBlur:I,onPointerMove:T,onPointerLeave:E}},li=Vp("MenuItem",function({className:r,value:n,href:o,type:s,checked:f,disabled:c,children:p,onClick:v,isHovering:y,itemRef:w,externalRef:S,...C}){const x=!!c,{mouseOver:I,setHover:T,...E}=Qp(w,w,y,x),L=O.useContext(Tu),W=O.useContext(Ep),z=s==="radio",Z=s==="checkbox",R=!!o&&!x&&!z&&!Z,ce=z?W.value===n:Z?!!f:!1,N=ie=>{if(x){ie.stopPropagation(),ie.preventDefault();return}const K={value:n,syntheticEvent:ie};ie.key!==void 0&&(K.key=ie.key),Z&&(K.checked=!ce),z&&(K.name=W.name),ct(v,K),z&&ct(W.onRadioChange,K),L.handleClick(K,Z||z)},D=ie=>{if(y)switch(ie.key){case St.ENTER:ie.preventDefault();case St.SPACE:R?w.current.click():N(ie)}},q=O.useMemo(()=>({type:s,disabled:x,hover:I||y,checked:ce,anchor:R}),[s,x,I,y,ce,R]),ee=ri({...E,onPointerDown:T,onKeyDown:D,onClick:N},C),Y={role:z?"menuitemradio":Z?"menuitemcheckbox":Cp,"aria-checked":z||Z?ce:void 0,...wu(x,y),...ee,ref:Pa(S,w),className:ii({block:ai,element:Tp,modifiers:q,className:r}),children:O.useMemo(()=>ct(p,q),[p,q])};return R?$.jsx("li",{role:Op,children:$.jsx("a",{href:o,...Y})}):$.jsx("li",{...Y})});if(!O.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!hr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function eg(a){a()}function tg(a){a||(a=eg,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),hr.configure({reactionScheduler:a})}function ng(a){return hr.getDependencyTree(a)}var rg=1e4,ig=1e4,ag=(function(){function a(r){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:r}),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(o){o===void 0&&(o=rg),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(f,c){s-f.registeredAt>=o&&(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(r,n,o){this.registrations.set(o,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(a.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(r){this.registrations.delete(r)}}),Object.defineProperty(a.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ig))}}),a})(),og=typeof FinalizationRegistry<"u"?FinalizationRegistry:ag,Wa=new og(function(a){var r;(r=a.reaction)===null||r===void 0||r.dispose(),a.reaction=null}),ci={exports:{}},Ba={};var Fu;function sg(){if(Fu)return Ba;Fu=1;var a=O;function r(S,C){return S===C&&(S!==0||1/S===1/C)||S!==S&&C!==C}var n=typeof Object.is=="function"?Object.is:r,o=a.useState,s=a.useEffect,f=a.useLayoutEffect,c=a.useDebugValue;function p(S,C){var x=C(),I=o({inst:{value:x,getSnapshot:C}}),T=I[0].inst,E=I[1];return f(function(){T.value=x,T.getSnapshot=C,v(T)&&E({inst:T})},[S,x,C]),s(function(){return v(T)&&E({inst:T}),S(function(){v(T)&&E({inst:T})})},[S]),c(x),x}function v(S){var C=S.getSnapshot;S=S.value;try{var x=C();return!n(S,x)}catch{return!0}}function y(S,C){return C()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Ba.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:w,Ba}var Ra={};var ku;function ug(){return ku||(ku=1,process.env.NODE_ENV!=="production"&&(function(){function a(x,I){return x===I&&(x!==0||1/x===1/I)||x!==x&&I!==I}function r(x,I){w||s.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 T=I();if(!S){var E=I();f(T,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),S=!0)}E=c({inst:{value:T,getSnapshot:I}});var L=E[0].inst,W=E[1];return v(function(){L.value=T,L.getSnapshot=I,n(L)&&W({inst:L})},[x,T,I]),p(function(){return n(L)&&W({inst:L}),x(function(){n(L)&&W({inst:L})})},[x]),y(T),T}function n(x){var I=x.getSnapshot;x=x.value;try{var T=I();return!f(x,T)}catch{return!0}}function o(x,I){return I()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=O,f=typeof Object.is=="function"?Object.is:a,c=s.useState,p=s.useEffect,v=s.useLayoutEffect,y=s.useDebugValue,w=!1,S=!1,C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Ra.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ra}var Wu;function fg(){return Wu||(Wu=1,process.env.NODE_ENV==="production"?ci.exports=sg():ci.exports=ug()),ci.exports}var lg=fg();function Bu(a){a.reaction=new hr.Reaction("observer".concat(a.name),function(){var r;a.stateVersion=Symbol(),(r=a.onStoreChange)===null||r===void 0||r.call(a)})}function cg(a,r){r===void 0&&(r="observed");var n=O.useRef(null);if(!n.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:r,subscribe:function(p){return Wa.unregister(o),o.onStoreChange=p,o.reaction||(Bu(o),o.stateVersion=Symbol()),function(){var v;o.onStoreChange=null,(v=o.reaction)===null||v===void 0||v.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};n.current=o}var s=n.current;s.reaction||(Bu(s),Wa.register(n,s,s)),O.useDebugValue(s.reaction,ng),lg.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var f,c;if(s.reaction.track(function(){try{f=a()}catch(p){c=p}}),c)throw c;return f}var $a,Ua,dg=!0,Ru=!0,$u=typeof Symbol=="function"&&Symbol.for,hg=(Ua=($a=Object.getOwnPropertyDescriptor(function(){},"name"))===null||$a===void 0?void 0:$a.configurable)!==null&&Ua!==void 0?Ua:!1,Uu=$u?Symbol.for("react.forward_ref"):typeof O.forwardRef=="function"&&O.forwardRef(function(a){return null}).$$typeof,zu=$u?Symbol.for("react.memo"):typeof O.memo=="function"&&O.memo(function(a){return null}).$$typeof;function kt(a,r){var n;if(process.env.NODE_ENV,zu&&a.$$typeof===zu)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 o=(n=void 0)!==null&&n!==void 0?n:!1,s=a,f=a.displayName||a.name;if(Uu&&a.$$typeof===Uu&&(o=!0,s=a.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(p,v){return cg(function(){return s(p,v)},f)};return c.displayName=a.displayName,hg&&Object.defineProperty(c,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(c.contextTypes=a.contextTypes,process.env.NODE_ENV!=="production"&&Ru&&(Ru=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(c=O.forwardRef(c)),c=O.memo(c),gg(a,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var p,v;throw new Error("[mobx-react-lite] `".concat(this.displayName||((p=this.type)===null||p===void 0?void 0:p.displayName)||((v=this.type)===null||v===void 0?void 0:v.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var pg={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function gg(a,r){Object.keys(a).forEach(function(n){pg[n]||Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}process.env.NODE_ENV;var za;tg(pr.unstable_batchedUpdates),za=Wa.finalizeAllImmediately;function Ha(a,r){(r==null||r>a.length)&&(r=a.length);for(var n=0,o=Array(r);n<r;n++)o[n]=a[n];return o}function vg(a){if(Array.isArray(a))return a}function mg(a){if(Array.isArray(a))return Ha(a)}function yg(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function bg(a,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,qu(o.key),o)}}function wg(a,r,n){return r&&bg(a.prototype,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function di(a,r){var n=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!n){if(Array.isArray(a)||(n=qa(a))||r){n&&(a=n);var o=0,s=function(){};return{s,n:function(){return o>=a.length?{done:!0}:{done:!1,value:a[o++]}},e:function(v){throw v},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
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 v=n.next();return c=v.done,v},e:function(v){p=!0,f=v},f:function(){try{c||n.return==null||n.return()}finally{if(p)throw f}}}}function ne(a,r,n){return(r=qu(r))in a?Object.defineProperty(a,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[r]=n,a}function Sg(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function _g(a,r){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var o,s,f,c,p=[],v=!0,y=!1;try{if(f=(n=n.call(a)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(o=f.call(n)).done)&&(p.push(o.value),p.length!==r);v=!0);}catch(w){y=!0,s=w}finally{try{if(!v&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(y)throw s}}return p}}function xg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ig(){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 Hu(a,r){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),n.push.apply(n,o)}return n}function B(a){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Hu(Object(n),!0).forEach(function(o){ne(a,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(n,o))})}return a}function hi(a,r){return vg(a)||_g(a,r)||qa(a,r)||xg()}function _t(a){return mg(a)||Sg(a)||qa(a)||Ig()}function Tg(a,r){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var o=n.call(a,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}function qu(a){var r=Tg(a,"string");return typeof r=="symbol"?r:r+""}function pi(a){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pi(a)}function qa(a,r){if(a){if(typeof a=="string")return Ha(a,r);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)?Ha(a,r):void 0}}var ju=function(){},ja={},Gu={},Yu=null,Ju={mark:ju,measure:ju};try{typeof window<"u"&&(ja=window),typeof document<"u"&&(Gu=document),typeof MutationObserver<"u"&&(Yu=MutationObserver),typeof performance<"u"&&(Ju=performance)}catch{}var Eg=ja.navigator||{},Ku=Eg.userAgent,Vu=Ku===void 0?"":Ku,tn=ja,be=Gu,Xu=Yu,gi=Ju;tn.document;var Wt=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",Zu=~Vu.indexOf("MSIE")||~Vu.indexOf("Trident/"),Ga,Ag=/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)?[\-\ ]/,Og=/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,Qu={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"}},Cg={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ef=["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",wr="duotone",tf="sharp",nf="sharp-duotone",rf="chisel",af="etch",of="jelly",sf="jelly-duo",uf="jelly-fill",ff="notdog",lf="notdog-duo",cf="slab",df="slab-press",hf="thumbprint",pf="utility",gf="utility-duo",vf="utility-fill",mf="whiteboard",Ng="Classic",Pg="Duotone",Lg="Sharp",Dg="Sharp Duotone",Mg="Chisel",Fg="Etch",kg="Jelly",Wg="Jelly Duo",Bg="Jelly Fill",Rg="Notdog",$g="Notdog Duo",Ug="Slab",zg="Slab Press",Hg="Thumbprint",qg="Utility",jg="Utility Duo",Gg="Utility Fill",Yg="Whiteboard",yf=[Me,wr,tf,nf,rf,af,of,sf,uf,ff,lf,cf,df,hf,pf,gf,vf,mf];Ga={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(Ga,Me,Ng),wr,Pg),tf,Lg),nf,Dg),rf,Mg),af,Fg),of,kg),sf,Wg),uf,Bg),ff,Rg),ne(ne(ne(ne(ne(ne(ne(ne(Ga,lf,$g),cf,Ug),df,zg),hf,Hg),pf,qg),gf,jg),vf,Gg),mf,Yg);var Jg={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"}},Kg={"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"}},Vg=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}]]),Xg={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"}},bf=["fak","fa-kit","fakd","fa-kit-duotone"],wf={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Zg=["kit"],Qg="kit",ev="kit-duotone",tv="Kit",nv="Kit Duotone";ne(ne({},Qg,tv),ev,nv);var rv={kit:{"fa-kit":"fak"}},iv={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},av={kit:{fak:"fa-kit"}},Sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ya,vi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ov=["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"],sv="classic",uv="duotone",fv="sharp",lv="sharp-duotone",cv="chisel",dv="etch",hv="jelly",pv="jelly-duo",gv="jelly-fill",vv="notdog",mv="notdog-duo",yv="slab",bv="slab-press",wv="thumbprint",Sv="utility",_v="utility-duo",xv="utility-fill",Iv="whiteboard",Tv="Classic",Ev="Duotone",Av="Sharp",Ov="Sharp Duotone",Cv="Chisel",Nv="Etch",Pv="Jelly",Lv="Jelly Duo",Dv="Jelly Fill",Mv="Notdog",Fv="Notdog Duo",kv="Slab",Wv="Slab Press",Bv="Thumbprint",Rv="Utility",$v="Utility Duo",Uv="Utility Fill",zv="Whiteboard";Ya={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(Ya,sv,Tv),uv,Ev),fv,Av),lv,Ov),cv,Cv),dv,Nv),hv,Pv),pv,Lv),gv,Dv),vv,Mv),ne(ne(ne(ne(ne(ne(ne(ne(Ya,mv,Fv),yv,kv),bv,Wv),wv,Bv),Sv,Rv),_v,$v),xv,Uv),Iv,zv);var Hv="kit",qv="kit-duotone",jv="Kit",Gv="Kit Duotone";ne(ne({},Hv,jv),qv,Gv);var Yv={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"}},Jv={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"]},Ja={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"}},Kv=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],_f=["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(ov,Kv),Vv=["solid","regular","light","thin","duotone","brands","semibold"],xf=[1,2,3,4,5,6,7,8,9,10],Xv=xf.concat([11,12,13,14,15,16,17,18,19,20]),Zv=["aw","fw","pull-left","pull-right"],Qv=[].concat(_t(Object.keys(Jv)),Vv,Zv,["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(xf.map(function(a){return"".concat(a,"x")})).concat(Xv.map(function(a){return"w-".concat(a)})),em={"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___",Ka=16,If="fa",Tf="svg-inline--fa",yn="data-fa-i2svg",Va="data-fa-pseudo-element",tm="data-fa-pseudo-element-pending",Xa="data-prefix",Za="data-icon",Ef="fontawesome-i2svg",nm="async",rm=["HTML","HEAD","STYLE","SCRIPT"],Af=["::before","::after",":before",":after"],Of=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Sr(a){return new Proxy(a,{get:function(n,o){return o in n?n[o]:n[Me]}})}var Cf=B({},Qu);Cf[Me]=B(B(B(B({},{"fa-duotone":"duotone"}),Qu[Me]),wf.kit),wf["kit-duotone"]);var im=Sr(Cf),Qa=B({},Xg);Qa[Me]=B(B(B(B({},{duotone:"fad"}),Qa[Me]),Sf.kit),Sf["kit-duotone"]);var Nf=Sr(Qa),eo=B({},Ja);eo[Me]=B(B({},eo[Me]),av.kit);var to=Sr(eo),no=B({},Yv);no[Me]=B(B({},no[Me]),rv.kit),Sr(no);var am=Ag,Pf="fa-layers-text",om=Og,sm=B({},Jg);Sr(sm);var um=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ro=Cg,fm=[].concat(_t(Zg),_t(Qv)),_r=tn.FontAwesomeConfig||{};function lm(a){var r=be.querySelector("script["+a+"]");if(r)return r.getAttribute(a)}function cm(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(be&&typeof be.querySelector=="function"){var dm=[["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"]];dm.forEach(function(a){var r=hi(a,2),n=r[0],o=r[1],s=cm(lm(n));s!=null&&(_r[o]=s)})}var Lf={styleDefault:"solid",familyDefault:Me,cssPrefix:If,replacementClass:Tf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};_r.familyPrefix&&(_r.cssPrefix=_r.familyPrefix);var Rn=B(B({},Lf),_r);Rn.autoReplaceSvg||(Rn.observeMutations=!1);var G={};Object.keys(Lf).forEach(function(a){Object.defineProperty(G,a,{enumerable:!0,set:function(n){Rn[a]=n,xr.forEach(function(o){return o(G)})},get:function(){return Rn[a]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(r){Rn.cssPrefix=r,xr.forEach(function(n){return n(G)})},get:function(){return Rn.cssPrefix}}),tn.FontAwesomeConfig=G;var xr=[];function hm(a){return xr.push(a),function(){xr.splice(xr.indexOf(a),1)}}var $n=Ka,Pt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pm(a){if(!(!a||!Wt)){var r=be.createElement("style");r.setAttribute("type","text/css"),r.innerHTML=a;for(var n=be.head.childNodes,o=null,s=n.length-1;s>-1;s--){var f=n[s],c=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(o=f)}return be.head.insertBefore(r,o),a}}var gm="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Df(){for(var a=12,r="";a-- >0;)r+=gm[Math.random()*62|0];return r}function Un(a){for(var r=[],n=(a||[]).length>>>0;n--;)r[n]=a[n];return r}function io(a){return a.classList?Un(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(r){return r})}function Mf(a){return"".concat(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vm(a){return Object.keys(a||{}).reduce(function(r,n){return r+"".concat(n,'="').concat(Mf(a[n]),'" ')},"").trim()}function mi(a){return Object.keys(a||{}).reduce(function(r,n){return r+"".concat(n,": ").concat(a[n].trim(),";")},"")}function ao(a){return a.size!==Pt.size||a.x!==Pt.x||a.y!==Pt.y||a.rotate!==Pt.rotate||a.flipX||a.flipY}function mm(a){var r=a.transform,n=a.containerWidth,o=a.iconWidth,s={transform:"translate(".concat(n/2," 256)")},f="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),p="rotate(".concat(r.rotate," 0 0)"),v={transform:"".concat(f," ").concat(c," ").concat(p)},y={transform:"translate(".concat(o/2*-1," -256)")};return{outer:s,inner:v,path:y}}function ym(a){var r=a.transform,n=a.width,o=n===void 0?Ka:n,s=a.height,f=s===void 0?Ka:s,c="";return Zu?c+="translate(".concat(r.x/$n-o/2,"em, ").concat(r.y/$n-f/2,"em) "):c+="translate(calc(-50% + ".concat(r.x/$n,"em), calc(-50% + ").concat(r.y/$n,"em)) "),c+="scale(".concat(r.size/$n*(r.flipX?-1:1),", ").concat(r.size/$n*(r.flipY?-1:1),") "),c+="rotate(".concat(r.rotate,"deg) "),c}var bm=`:root, :host {
19
+ `)+D+`return __p
20
+ }`;var ae=ch(function(){return pe(h,j+"return "+D).apply(n,v)});if(ae.source=D,Us(ae))throw ae;return ae}function nx(e){return ge(e).toLowerCase()}function rx(e){return ge(e).toUpperCase()}function ix(e,t,r){if(e=ge(e),e&&(r||t===n))return _c(e);if(!e||!(t=st(t)))return e;var s=Tt(e),l=Tt(t),h=wc(s,l),v=Sc(s,l)+1;return pn(s,h,v).join("")}function ax(e,t,r){if(e=ge(e),e&&(r||t===n))return e.slice(0,Ec(e)+1);if(!e||!(t=st(t)))return e;var s=Tt(e),l=Sc(s,Tt(t))+1;return pn(s,0,l).join("")}function ox(e,t,r){if(e=ge(e),e&&(r||t===n))return e.replace(Ht,"");if(!e||!(t=st(t)))return e;var s=Tt(e),l=wc(s,Tt(t));return pn(s,l).join("")}function sx(e,t){var r=ne,s=J;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?ie(t.length):r,s="omission"in t?st(t.omission):s}e=ge(e);var h=e.length;if(Zn(e)){var v=Tt(e);h=v.length}if(r>=h)return e;var m=r-Qn(s);if(m<1)return s;var S=v?pn(v,0,m).join(""):e.slice(0,m);if(l===n)return S+s;if(v&&(m+=S.length-m),Hs(l)){if(e.slice(m).search(l)){var P,F=S;for(l.global||(l=as(l.source,ge(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 U=S.lastIndexOf(l);U>-1&&(S=S.slice(0,U))}return S+s}function ux(e){return e=ge(e),e&&Ee.test(e)?e.replace(Xe,Wy):e}var fx=or(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Gs=dd("toUpperCase");function lh(e,t,r){return e=ge(e),t=r?n:t,t===n?Py(e)?$y(e):xy(e):e.match(t)||[]}var ch=oe(function(e,t){try{return at(e,n,t)}catch(r){return Us(r)?r:new Q(r)}}),lx=Yt(function(e,t){return ht(t,function(r){r=Mt(r),Gt(e,r,$s(e[r],e))}),e});function cx(e){var t=e==null?0:e.length,r=K();return e=t?we(e,function(s){if(typeof s[1]!="function")throw new pt(c);return[r(s[0]),s[1]]}):[],oe(function(s){for(var l=-1;++l<t;){var h=e[l];if(at(h[0],this,s))return at(h[1],this,s)}})}function dx(e){return W1(gt(e,_))}function Js(e){return function(){return e}}function hx(e,t){return e==null||e!==e?t:e}var px=pd(),vx=pd(!0);function et(e){return e}function Ys(e){return qc(typeof e=="function"?e:gt(e,_))}function gx(e){return Gc(gt(e,_))}function mx(e,t){return Jc(e,gt(t,_))}var yx=oe(function(e,t){return function(r){return qr(r,e,t)}}),bx=oe(function(e,t){return function(r){return qr(e,r,t)}});function Ks(e,t,r){var s=Fe(t),l=Vi(t,s);r==null&&!(Se(t)&&(l.length||!s.length))&&(r=t,t=e,e=this,l=Vi(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,un([this.value()],arguments))})}),e}function _x(){return ke._===this&&(ke._=Gy),this}function Xs(){}function wx(e){return e=ie(e),oe(function(t){return Yc(t,e)})}var Sx=Is(we),xx=Is(vc),Ex=Is(Zo);function dh(e){return Ms(e)?Qo(Mt(e)):eb(e)}function Ax(e){return function(t){return e==null?n:Ln(e,t)}}var Tx=gd(),Ix=gd(!0);function Vs(){return[]}function Zs(){return!1}function Ox(){return{}}function Cx(){return""}function Nx(){return!0}function Lx(e,t){if(e=ie(e),e<1||e>ze)return[];var r=nt,s=Re(e,nt);t=K(t),e-=nt;for(var l=ns(s,t);++r<e;)t(r);return l}function Px(e){return te(e)?we(e,Mt):ut(e)?[e]:Ve(Pd(ge(e)))}function Fx(e){var t=++qy;return ge(e)+t}var Mx=ra(function(e,t){return e+t},0),kx=Os("ceil"),Dx=ra(function(e,t){return e/t},1),Wx=Os("floor");function Bx(e){return e&&e.length?Xi(e,et,hs):n}function Rx(e,t){return e&&e.length?Xi(e,K(t,2),hs):n}function $x(e){return yc(e,et)}function zx(e,t){return yc(e,K(t,2))}function Ux(e){return e&&e.length?Xi(e,et,ms):n}function Hx(e,t){return e&&e.length?Xi(e,K(t,2),ms):n}var qx=ra(function(e,t){return e*t},1),jx=Os("round"),Gx=ra(function(e,t){return e-t},0);function Jx(e){return e&&e.length?ts(e,et):0}function Yx(e,t){return e&&e.length?ts(e,K(t,2)):0}return d.after=gw,d.ary=Hd,d.assign=rS,d.assignIn=rh,d.assignInWith=ga,d.assignWith=iS,d.at=aS,d.before=qd,d.bind=$s,d.bindAll=lx,d.bindKey=jd,d.castArray=Ow,d.chain=$d,d.chunk=Wb,d.compact=Bb,d.concat=Rb,d.cond=cx,d.conforms=dx,d.constant=Js,d.countBy=J_,d.create=oS,d.curry=Gd,d.curryRight=Jd,d.debounce=Yd,d.defaults=sS,d.defaultsDeep=uS,d.defer=mw,d.delay=yw,d.difference=$b,d.differenceBy=zb,d.differenceWith=Ub,d.drop=Hb,d.dropRight=qb,d.dropRightWhile=jb,d.dropWhile=Gb,d.fill=Jb,d.filter=K_,d.flatMap=Z_,d.flatMapDeep=Q_,d.flatMapDepth=ew,d.flatten=Dd,d.flattenDeep=Yb,d.flattenDepth=Kb,d.flip=bw,d.flow=px,d.flowRight=vx,d.fromPairs=Xb,d.functions=vS,d.functionsIn=gS,d.groupBy=tw,d.initial=Zb,d.intersection=Qb,d.intersectionBy=e_,d.intersectionWith=t_,d.invert=yS,d.invertBy=bS,d.invokeMap=rw,d.iteratee=Ys,d.keyBy=iw,d.keys=Fe,d.keysIn=Qe,d.map=la,d.mapKeys=wS,d.mapValues=SS,d.matches=gx,d.matchesProperty=mx,d.memoize=da,d.merge=xS,d.mergeWith=ih,d.method=yx,d.methodOf=bx,d.mixin=Ks,d.negate=ha,d.nthArg=wx,d.omit=ES,d.omitBy=AS,d.once=_w,d.orderBy=aw,d.over=Sx,d.overArgs=ww,d.overEvery=xx,d.overSome=Ex,d.partial=zs,d.partialRight=Kd,d.partition=ow,d.pick=TS,d.pickBy=ah,d.property=dh,d.propertyOf=Ax,d.pull=a_,d.pullAll=Bd,d.pullAllBy=o_,d.pullAllWith=s_,d.pullAt=u_,d.range=Tx,d.rangeRight=Ix,d.rearg=Sw,d.reject=fw,d.remove=f_,d.rest=xw,d.reverse=Bs,d.sampleSize=cw,d.set=OS,d.setWith=CS,d.shuffle=dw,d.slice=l_,d.sortBy=vw,d.sortedUniq=m_,d.sortedUniqBy=y_,d.split=ZS,d.spread=Ew,d.tail=b_,d.take=__,d.takeRight=w_,d.takeRightWhile=S_,d.takeWhile=x_,d.tap=B_,d.throttle=Aw,d.thru=fa,d.toArray=eh,d.toPairs=oh,d.toPairsIn=sh,d.toPath=Px,d.toPlainObject=nh,d.transform=NS,d.unary=Tw,d.union=E_,d.unionBy=A_,d.unionWith=T_,d.uniq=I_,d.uniqBy=O_,d.uniqWith=C_,d.unset=LS,d.unzip=Rs,d.unzipWith=Rd,d.update=PS,d.updateWith=FS,d.values=fr,d.valuesIn=MS,d.without=N_,d.words=lh,d.wrap=Iw,d.xor=L_,d.xorBy=P_,d.xorWith=F_,d.zip=M_,d.zipObject=k_,d.zipObjectDeep=D_,d.zipWith=W_,d.entries=oh,d.entriesIn=sh,d.extend=rh,d.extendWith=ga,Ks(d,d),d.add=Mx,d.attempt=ch,d.camelCase=BS,d.capitalize=uh,d.ceil=kx,d.clamp=kS,d.clone=Cw,d.cloneDeep=Lw,d.cloneDeepWith=Pw,d.cloneWith=Nw,d.conformsTo=Fw,d.deburr=fh,d.defaultTo=hx,d.divide=Dx,d.endsWith=RS,d.eq=Ot,d.escape=$S,d.escapeRegExp=zS,d.every=Y_,d.find=X_,d.findIndex=Md,d.findKey=fS,d.findLast=V_,d.findLastIndex=kd,d.findLastKey=lS,d.floor=Wx,d.forEach=zd,d.forEachRight=Ud,d.forIn=cS,d.forInRight=dS,d.forOwn=hS,d.forOwnRight=pS,d.get=qs,d.gt=Mw,d.gte=kw,d.has=mS,d.hasIn=js,d.head=Wd,d.identity=et,d.includes=nw,d.indexOf=Vb,d.inRange=DS,d.invoke=_S,d.isArguments=Mn,d.isArray=te,d.isArrayBuffer=Dw,d.isArrayLike=Ze,d.isArrayLikeObject=Ae,d.isBoolean=Ww,d.isBuffer=vn,d.isDate=Bw,d.isElement=Rw,d.isEmpty=$w,d.isEqual=zw,d.isEqualWith=Uw,d.isError=Us,d.isFinite=Hw,d.isFunction=Xt,d.isInteger=Xd,d.isLength=pa,d.isMap=Vd,d.isMatch=qw,d.isMatchWith=jw,d.isNaN=Gw,d.isNative=Jw,d.isNil=Kw,d.isNull=Yw,d.isNumber=Zd,d.isObject=Se,d.isObjectLike=xe,d.isPlainObject=Xr,d.isRegExp=Hs,d.isSafeInteger=Xw,d.isSet=Qd,d.isString=va,d.isSymbol=ut,d.isTypedArray=ur,d.isUndefined=Vw,d.isWeakMap=Zw,d.isWeakSet=Qw,d.join=n_,d.kebabCase=US,d.last=yt,d.lastIndexOf=r_,d.lowerCase=HS,d.lowerFirst=qS,d.lt=eS,d.lte=tS,d.max=Bx,d.maxBy=Rx,d.mean=$x,d.meanBy=zx,d.min=Ux,d.minBy=Hx,d.stubArray=Vs,d.stubFalse=Zs,d.stubObject=Ox,d.stubString=Cx,d.stubTrue=Nx,d.multiply=qx,d.nth=i_,d.noConflict=_x,d.noop=Xs,d.now=ca,d.pad=jS,d.padEnd=GS,d.padStart=JS,d.parseInt=YS,d.random=WS,d.reduce=sw,d.reduceRight=uw,d.repeat=KS,d.replace=XS,d.result=IS,d.round=jx,d.runInContext=b,d.sample=lw,d.size=hw,d.snakeCase=VS,d.some=pw,d.sortedIndex=c_,d.sortedIndexBy=d_,d.sortedIndexOf=h_,d.sortedLastIndex=p_,d.sortedLastIndexBy=v_,d.sortedLastIndexOf=g_,d.startCase=QS,d.startsWith=ex,d.subtract=Gx,d.sum=Jx,d.sumBy=Yx,d.template=tx,d.times=Lx,d.toFinite=Vt,d.toInteger=ie,d.toLength=th,d.toLower=nx,d.toNumber=bt,d.toSafeInteger=nS,d.toString=ge,d.toUpper=rx,d.trim=ix,d.trimEnd=ax,d.trimStart=ox,d.truncate=sx,d.unescape=ux,d.uniqueId=Fx,d.upperCase=fx,d.upperFirst=Gs,d.each=zd,d.eachRight=Ud,d.first=Wd,Ks(d,(function(){var e={};return Pt(d,function(t,r){ve.call(d.prototype,r)||(e[r]=t)}),e})(),{chain:!1}),d.VERSION=o,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 s=this.__filtered__&&!t?new ue(this):this.clone();return s.__filtered__?s.__takeCount__=Re(r,s.__takeCount__):s.__views__.push({size:Re(r,nt),type:e+(s.__dir__<0?"Right":"")}),s},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var r=t+1,s=r==We||r==Ye;ue.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:K(l,3),type:r}),h.__filtered__=h.__filtered__||s,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 qr(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(ha(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),s=/^(?:head|last)$/.test(t),l=d[s?"take"+(t=="last"?"Right":""):t],h=s||/^find/.test(t);l&&(d.prototype[t]=function(){var v=this.__wrapped__,m=s?[1]:arguments,S=v instanceof ue,P=m[0],F=S||te(v),D=function(se){var le=l.apply(d,un([se],m));return s&&U?le[0]:le};F&&r&&typeof P=="function"&&P.length!=1&&(S=F=!1);var U=this.__chain__,j=!!this.__actions__.length,X=h&&!U,ae=S&&!j;if(!h&&F){v=ae?v:new ue(this);var V=e.apply(v,m);return V.__actions__.push({func:fa,args:[D],thisArg:n}),new vt(V,U)}return X&&ae?e.apply(this,m):(V=this.thru(D),X?s?V.value()[0]:V.value():V)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=ki[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(s&&!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 s=r.name+"";ve.call(rr,s)||(rr[s]=[]),rr[s].push({name:t,func:r})}}),rr[na(n,k).name]=[{name:"wrapper",func:n}],ue.prototype.clone=u1,ue.prototype.reverse=f1,ue.prototype.value=l1,d.prototype.at=R_,d.prototype.chain=$_,d.prototype.commit=z_,d.prototype.next=U_,d.prototype.plant=q_,d.prototype.reverse=j_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=G_,d.prototype.first=d.prototype.head,Wr&&(d.prototype[Wr]=H_),d}),er=zy();Tn?((Tn.exports=er)._=er,Yo._=er):ke._=er}).call(vh)})(dr,dr.exports)),dr.exports}var kn=gh();class he{static toString(i){const n=Qs(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 kn.isEqual(i,n)}static indexOf(i,n){return i.map(he.toString).indexOf(he.toString(n))}static includes(i,n){return i.map(he.toString).includes(he.toString(n))}static withoutDup(i){const{params:n,viewId:o,title:u}=i;return{params:n,viewId:o,title:u}}static replaceDup(i){const{params:n,viewId:o,title:u}=i;return{params:n,viewId:o,title:u,dupId:`${new Date().getTime()}`}}}var ei={exports:{}},tu;function mh(){return tu||(tu=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 o=typeof process=="object"&&process.env.NODE_ENV==="production";function u(C,L){if(!C)throw o?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,J=typeof q=="function"?{$apply:q}:q;Array.isArray(L)&&Array.isArray(J)||u(!Array.isArray(J),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 J=="object"&&J!==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(J).forEach(function(Y){if(f.call(ne.commands,Y)){var We=L===ee;ee=ne.commands[Y](J[Y],ee,J,L),We&&ne.isEquals(ee,L)&&(ee=L)}else{var Je=g(L)==="Map"?ne.update(L.get(Y),J[Y]):ne.update(L[Y],J[Y]),Ye=g(ee)==="Map"?ee.get(Y):ee[Y];(!ne.isEquals(Je,Ye)||typeof Je>"u"&&!f.call(L,Y))&&(ee===L&&(ee=_(L)),g(ee)==="Map"?ee.set(Y,Je):ee[Y]=Je)}}),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(J){W(J),L===ne&&J.length&&(L=_(ne)),c.apply(L,J)}),L},$set:function(C,L,q){return Z(q),C},$toggle:function(C,L){T(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 T(C,"$unset"),C.forEach(function(J){Object.hasOwnProperty.call(L,J)&&(L===ne&&(L=_(ne)),delete L[J])}),L},$add:function(C,L,q,ne){return de(L,"$add"),T(C,"$add"),g(L)==="Map"?C.forEach(function(J){var ee=J[0],Y=J[1];L===ne&&L.get(ee)!==Y&&(L=_(ne)),L.set(ee,Y)}):C.forEach(function(J){L===ne&&!L.has(J)&&(L=_(ne)),L.add(J)}),L},$remove:function(C,L,q,ne){return de(L,"$remove"),T(C,"$remove"),C.forEach(function(J){L===ne&&L.has(J)&&(L=_(ne)),L.delete(J)}),L},$merge:function(C,L,q,ne){return $(L,C),w(C).forEach(function(J){C[J]!==L[J]&&(L===ne&&(L=_(ne)),L[J]=C[J])}),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)+"."}),T(L[q],q)}function T(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)})}})(ei,ei.exports)),ei.exports}var yh=mh();const bh=Qr(yh);var _h=Object.getOwnPropertyDescriptor,wh=(a,i,n,o)=>{for(var u=o>1?void 0:o?_h(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 o=this.getNodeByBranch(i,n.branch);if(o.type!=="stack")return i;const f=o.tabs,c=n.index>=0?kn.clamp(n.index,0,f.length):f.length;return this.updateNodeOfBranch(i,n.branch,{$set:{...o,type:"stack",tabs:[...f.slice(0,c),n.justId,...f.slice(c)],active:n.justId}})};insertWinIdToSplit=(i,n)=>{if(i==null)return i;const o=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]:{...o,name:void 0},[n.pos]:{type:"stack",tabs:[n.justId],active:n.justId,name:void 0},size:n.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(i,n)=>{if(i==null)return null;const o=this.getNodeByWinId(i,n);if(o?.type!=="stack")return i;const u=o.active?he.indexOf(o.tabs,o.active):0,f=o.tabs.filter(p=>!he.isEquals(p,n));let c;return o.active!==null&&he.includes(f,o.active)?c=o.active:c=f.length>0&&o.active!==null?f[kn.clamp(u-1,0,f.length-1)]:null,this.updateNodeOfWinId(i,n,{$set:{...o,tabs:f,active:c}})};removeAllTabs=(i,n)=>{if(i==null)return null;const o=this.getNodeByBranch(i,n);return o==null||o.type!=="stack"?i:this.updateNodeOfBranch(i,n,{$set:{...o,tabs:[],active:null}})};activeWinId=(i,n)=>{if(i==null)return null;const o=this.getNodeByWinId(i,n);return o==null?i:this.updateNodeOfWinId(i,n,{$set:{...o,active:n}})};getActiveWinIds=i=>{const n=(o,u)=>{if(o===null)return u;if(o.type==="stack")return o.active!==null?[...u,o.active]:u;{const f=n(o.first,u);return n(o.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 o=n[n.length-1],u=n.slice(0,-1),f=o==="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,o)=>{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 o}else{const u=this.findEmptyBranch(i.first,i,[...o,"first"]);if(u!=null)return u;const f=this.findEmptyBranch(i.second,i,[...o,"second"]);if(f!=null)return f}return null};moveWinIdToStack=(i,n)=>{const o=this.removeWinId(i,n.justId);return this.insertWinIdToStack(o,n)};moveWinIdToSplit=(i,n)=>{const o=this.removeWinId(i,n.justId);return this.insertWinIdToSplit(o,n)};getBranch=(i,n,o)=>{if(i===null)return null;if(i.type==="stack")return he.includes(i.tabs,n)?o:null;{const u=this.getBranch(i.first,n,[...o,"first"]);if(u!=null)return u;const f=this.getBranch(i.second,n,[...o,"second"]);return f??null}};getBranchByWinId=(i,n)=>this.getBranch(i,n,[]);getNodeInfoByNodeName=(i,n,o)=>{if(i===null)return null;if(i.name==n)return{node:i,branch:[...o]};if(i.type!="stack"){const u=this.getNodeInfoByNodeName(i.first,n,[...o,"first"]);if(u!=null)return u;const f=this.getNodeInfoByNodeName(i.second,n,[...o,"second"]);if(f!=null)return f}return null};getTabNodeInfoByNodeName=(i,n,o)=>{if(i===null)return null;const u=this.getNodeInfoByNodeName(i,n,o);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 he.includes(i.tabs,n)?(console.log("includes ok:",i.tabs,n),i):(console.log("includes nok:",i.tabs,n),null);{const o=this.getNodeByWinId(i.first,n);if(o!=null)return o;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 o;i.type==="split-pixels"?o=i.primary==="first"?"second":"first":o=i.direction==="row"?"second":"first";const u=this.getTabBranch(i[o],[...n,o]);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 o;i.type==="split-pixels"?o=i.primary==="first"?"second":"first":o=i.direction==="row"?"second":"first";const u=this.getTabNodeInfo(i[o],[...n,o]);if(u!=null)return u}return null};addTabWin=(i,n,o,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:kn.clamp(u,0,f.tabs.length);return this.updateNodeOfBranch(i,n,{$merge:{tabs:[...f.tabs.slice(0,c),o,...f.tabs.slice(c)],active:o}})};queryWinIdsByViewId=(i,n,o)=>{if(i===null)return o;if(i.type==="stack")return[...o,...i.tabs.filter(u=>u.viewId===n)];{const u=this.queryWinIdsByViewId(i.first,n,o);return this.queryWinIdsByViewId(i.second,n,[...o,...u])}};queryDupWinIdsByWinId=(i,n,o)=>{if(i===null)return o;if(i.type==="stack"){const u=he.withoutDup(n),f=i.tabs.filter(c=>{const p=he.withoutDup(c);return he.isEquals(u,p)});return[...o,...f]}else{const u=this.queryDupWinIdsByWinId(i.first,n,o);return this.queryDupWinIdsByWinId(i.second,n,[...o,...u])}};queryWinIdsByStack=(i,n)=>{if(i===null)return[];const o=this.getNodeByBranch(i,n);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(i,n)=>n.reduce((o,u)=>o?.[u],i);updateNodeOfBranch=(i,n,o)=>{const u=this.buildSpecFromUpdateSpec(n,o);return this.updateNode(i,u)};updateNodeOfWinId=(i,n,o)=>{const u=this.getBranchByWinId(i,n);if(u==null)return i;const f=this.buildSpecFromUpdateSpec(u,o);return this.updateNode(i,f)};hasWinId=(i,n)=>this.getNodeByWinId(i,n)!=null;updateNode=(i,n)=>i==null?null:bh(i,n);buildSpecFromUpdateSpec=(i,n)=>i.length>0?kn.set({},i,n):n;getNodeAtBranch=(i,n)=>n.length>0?kn.get(i,n,null):i;getBranchRightTop=i=>{if(i==null)return[];let n=i;const o=[];for(;n.type!=="stack";)n.direction==="row"?(o.push("second"),n=n.second):n.direction==="column"&&(o.push("first"),n=n.first);return o};updateSplitSize=(i,n,o)=>{const u=this.buildSpecFromUpdateSpec(n,{$merge:{size:o}});return this.updateNode(i,u)}},ce.JustLayoutService=wh([Vr.injectable()],ce.JustLayoutService);var Sh=Object.getOwnPropertyDescriptor,xh=(a,i,n,o)=>{for(var u=o>1?void 0:o?Sh(i,n):i,f=a.length-1,c;f>=0;f--)(c=a[f])&&(u=c(u)||u);return u},Eh=(a,i)=>(n,o)=>i(n,o,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,lr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=i=>{this.layout=i};setTabTitle=(i,n)=>{this.tabTitleMap.set(he.toString(i),n)};getTabTitle=i=>this.tabTitleMap.get(he.toString(i));setTabTitleTooltip=(i,n)=>{this.tabTitleTooltipMap.set(he.toString(i),n)};getTabTitleTooltip=i=>this.tabTitleTooltipMap.get(he.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 o=this.service.getNodeAtBranch(this.layout,n);let u=0;o?.type==="stack"&&o.active!=null&&(u=he.indexOf(o.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=(he.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=(he.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()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const i=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:i})};toggleWin=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o==null||o.node.type!=="split-pixels")return;const u=o.node.primaryHide!==!0,f=!u||o.node.size<10?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:f,primaryHide:u}}),p=this.service.updateNode(n,c);p!=null&&this.setLayout(p)};showWin=({nodeName:i,show:n})=>{const o=this.layout,u=this.service.getNodeInfoByNodeName(o,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(o,c);if(p==null)return;this.setLayout(p)}};getSizeByNodeName=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:i})=>{const n=this.layout;return this.service.getBranchByWinId(n,i)};isPrimaryHide=({nodeName:i})=>{const n=this.layout,o=this.service.getNodeInfoByNodeName(n,i,[]);if(o!=null)return o.node.type==="split-pixels"?o.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,[]);getDupWinIds=({justId:i})=>this.service.queryDupWinIdsByWinId(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 o=i.viewId,u=this.getWinIds({viewId:o});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=async(i,n,o=!1)=>{n?this.setLayout(null):(this.setFullScreenLayoutByBranch(i),this.setFullScreenHideTitle(o))}},ce.JustLayoutStore=xh([Vr.injectable(),Eh(0,Vr.inject(kt.JustLayoutService))],ce.JustLayoutStore);const Ah=new Vr.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 o=>{if(!n.has(o)){const u=i.get(kt.JustLayoutStore);n.set(o,u)}return n.get(o)}})}),Nt=a=>{const i=ph.useInjection(kt.JustLayoutFactory),[n]=M.useState(()=>i(a));return n};var ya={exports:{}};var nu;function Th(){return nu||(nu=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,o(p)))}return f}function o(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})()})(ya)),ya.exports}var Ih=Th();const _t=Qr(Ih),ru=a=>!!a&&a[0]==="o",iu=cr.unstable_batchedUpdates,hr=(a,i)=>a===!0||!!(a&&a[i]),ct=(a,i)=>typeof a=="function"?a(i):a,Oh="_szhsinMenu",Ch=a=>a[Oh],ti=(a,i)=>(i&&Object.keys(i).forEach(n=>{const o=a[n],u=i[n];typeof u=="function"&&o?a[n]=(...f)=>{u(...f),o(...f)}:a[n]=u}),a),Nh=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],o=isNaN(i[1])?n:i[1];return{top:n,right:o,bottom:isNaN(i[2])?n:i[2],left:isNaN(i[3])?o:i[3]}},ba=a=>{for(;a;){if(a=a.parentNode,!a||a===document.body||!a.parentNode)return;const{overflow:i,overflowX:n,overflowY:o}=getComputedStyle(a);if(/auto|scroll|overlay|hidden/.test(i+o+n))return a}};function au(a,i){return{"aria-disabled":a||void 0,tabIndex:i?0:-1}}function ou(a,i){for(let n=0;n<a.length;n++)if(a[n]===i)return n;return-1}const ni=({block:a,element:i,modifiers:n,className:o})=>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 o=="function"?o(n):o;return typeof c=="string"&&(c=c.trim(),c&&(f+=` ${c}`)),f},[a,i,n,o]),Lh="szh-menu-container",ri="szh-menu",Ph="arrow",Fh="item",su=M.createContext(),uu=M.createContext({}),fu=M.createContext({}),lu=M.createContext({}),Mh=M.createContext({}),_a=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}),pr=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),vr=Object.freeze({FIRST:"first",LAST:"last"}),kh=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),cu="absolute",Dh="none",Wh="menuitem",wa={preventScroll:!0},Bh=({className:a,containerRef:i,containerProps:n,children:o,isOpen:u,theming:f,transition:c,onClose:p})=>{const g=hr(c,"item"),y=({key:_})=>{_===wt.ESC&&ct(p,{key:_,reason:pr.CANCEL})},w=_=>{u&&!_.currentTarget.contains(_.relatedTarget)&&ct(p,{reason:pr.BLUR})};return z.jsx("div",{...ti({onKeyDown:y,onBlur:w},n),className:ni({block:Lh,modifiers:M.useMemo(()=>({theme:f,itemTransition:g}),[f,g]),className:a}),style:{position:"absolute",...n?.style},ref:i,children:o})},Rh=()=>{let a,i=0;return{toggle:n=>{n?i++:i--,i=Math.max(i,0)},on:(n,o,u)=>{i?a||(a=setTimeout(()=>{a=0,o()},n)):u?.()},off:()=>{a&&(clearTimeout(a),a=0)}}},$h=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(wa),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((T,k)=>ou(A,T)-ou(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}},du=(a,i)=>Math.round(a)===i?a:i,zh=a=>{const i=a.getBoundingClientRect();return i.width=du(i.width,a.offsetWidth),i.height=du(i.height,a.offsetHeight),i},Uh=(a,i,n,o)=>{const u=zh(i),f=a.getBoundingClientRect(),c=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),p=Nh(o),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 T=y(x);T>0&&(x-=T,A=g(x),A<0&&(x-=A))}return x},confineVertically:x=>{let A=w(x);if(A<0)x-=A;else{const T=_(x);T>0&&(x-=T,A=w(x),A<0&&(x-=A))}return x}}},Hh=({arrowRef:a,menuY:i,anchorRect:n,containerRect:o,menuRect:u})=>{let f=n.top-o.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},qh=({anchorRect:a,containerRect:i,menuRect:n,placeLeftorRightY:o,placeLeftX:u,placeRightX:f,getLeftOverflow:c,getRightOverflow:p,confineHorizontally:g,confineVertically:y,arrowRef:w,arrow:_,direction:O,position:E})=>{let x=O,A=o;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 T,k,W;return x==="left"?(T=u,E!=="initial"&&(k=c(T),k<0&&(W=p(f),(W<=0||-k>W)&&(T=f,x="right")))):(T=f,E!=="initial"&&(W=p(T),W>0&&(k=c(u),(k>=0||-k<W)&&(T=u,x="left")))),E==="auto"&&(T=g(T)),{arrowY:_?Hh({menuY:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:T,y:A,computedDirection:x}},jh=({arrowRef:a,menuX:i,anchorRect:n,containerRect:o,menuRect:u})=>{let f=n.left-o.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},Gh=({anchorRect:a,containerRect:i,menuRect:n,placeToporBottomX:o,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=o;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 T,k,W;return x==="top"?(T=u,E!=="initial"&&(k=c(T),k<0&&(W=p(f),(W<=0||-k>W)&&(T=f,x="bottom")))):(T=f,E!=="initial"&&(W=p(T),W>0&&(k=c(u),(k>=0||-k<W)&&(T=u,x="top")))),E==="auto"&&(T=y(T)),{arrowX:_?jh({menuX:A,arrowRef:w,anchorRect:a,containerRect:i,menuRect:n}):void 0,x:A,y:T,computedDirection:x}},Jh=({arrow:a,align:i,direction:n,gap:o,shift:u,position:f,anchorRect:c,arrowRef:p,positionHelpers:g})=>{const{menuRect:y,containerRect:w}=g,_=n==="left"||n==="right";let O=_?o:u,E=_?u:o;if(a){const $=p.current;_?O+=$.offsetWidth:E+=$.offsetHeight}const x=c.left-w.left-y.width-O,A=c.right-w.left+O,T=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:T,placeBottomY:k,placeToporBottomX:W,arrowRef:p,arrow:a,direction:n,position:f};switch(n){case"left":case"right":return qh(Z);default:return Gh(Z)}},ii=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect;function hu(a,i){typeof a=="function"?a(i):a.current=i}const Sa=(a,i)=>M.useMemo(()=>a?i?n=>{hu(a,n),hu(i,n)}:a:i,[a,i]),pu=-9999,Yh=({ariaLabel:a,menuClassName:i,menuStyle:n,arrow:o,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:T,captureFocus:k=!0,state:W,endTransition:R,isDisabled:Z,menuItemFocus:$,gap:de=0,shift:C=0,children:L,onClose:q,focusProps:ne,...J})=>{const[ee,Y]=M.useState({x:pu,y:pu}),[We,Je]=M.useState({}),[Ye,Et]=M.useState(),[ze,ko]=M.useState(O),[At]=M.useState(Rh),[nt,xi]=M.useReducer(fe=>fe+1,1),{transition:Ei,boundingBoxRef:Ar,boundingBoxPadding:Ut,rootMenuRef:bn,rootAnchorRef:Tr,scrollNodesRef:_n,reposition:rn,viewScroll:Ir,submenuCloseDelay:Hn}=M.useContext(_a),{submenuCtx:qn,reposSubmenu:Ai=T}=M.useContext(fu),Ie=M.useRef(),an=M.useRef(),Ti=M.useRef(!1),{hoverItem:rt,dispatch:Ue,updateItems:jn}=$h(Ie),Oe=ru(W),Ke=hr(Ei,"open"),on=hr(Ei,"close"),Be=_n.current,Do=fe=>{switch(fe.key){case wt.HOME:Ue(Ce.FIRST);break;case wt.END:Ue(Ce.LAST);break;case wt.UP:Ue(Ce.DECREASE,rt);break;case wt.DOWN:Ue(Ce.INCREASE,rt);break;case wt.SPACE:fe.target&&fe.target.className.indexOf(ri)!==-1&&fe.preventDefault();return;default:return}fe.preventDefault(),fe.stopPropagation()},wn=()=>{W==="closing"&&Et(),ct(R)},Wo=fe=>{fe.stopPropagation(),At.on(Hn,()=>{Ue(Ce.RESET),Ie.current.focus(wa)})},Sn=fe=>{fe.target===fe.currentTarget&&At.off()},He=M.useCallback(fe=>{const Pe=Ie.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=(Ar?Ar.current:ba(bn.current))||window);const Ee=Uh(Xe,Pe,Be.menu,Ut);let{arrowX:Yn,arrowY:Bo,x:Ro,y:An,computedDirection:$o}=Jh({arrow:o,align:_,direction:O,gap:de,shift:C,position:E,anchorRect:it,arrowRef:an,positionHelpers:Ee});const{menuRect:zo}=Ee,Oi=zo.height;if(!fe&&x!=="visible"){const{getTopOverflow:Fr,getBottomOverflow:Uo}=Ee;let Ht,Mr;const kr=Uo(An);if(kr>0)Ht=Oi-kr,Mr=kr;else{const Kn=Fr(An);Kn<0&&(Ht=Oi+Kn,Mr=0-Kn,Ht>=0&&(An-=Kn))}Ht>=0&&Et({height:Ht,overflowAmt:Mr})}o&&Je({x:Yn,y:Bo}),Y({x:Ro,y:An}),ko($o)},[o,_,Ut,O,de,C,E,x,f,c,p,Ar,bn,Be]);ii(()=>{Oe&&(He(),Ti.current&&xi()),Ti.current=Oe},[Oe,He,Ai]),ii(()=>{Ye&&!A&&(Ie.current.scrollTop=0)},[Ye,A]),ii(()=>jn,[jn]),M.useEffect(()=>{let{menu:fe}=Be;if(!Oe||!fe)return;if(fe=fe.addEventListener?fe:window,!Be.anchors){Be.anchors=[];let Ee=ba(Tr&&Tr.current);for(;Ee&&Ee!==fe;)Be.anchors.push(Ee),Ee=ba(Ee)}let Pe=Ir;if(Be.anchors.length&&Pe==="initial"&&(Pe="auto"),Pe==="initial")return;const Xe=()=>{Pe==="auto"?iu(()=>He(!0)):ct(q,{reason:pr.SCROLL})},it=Be.anchors.concat(Ir!=="initial"?fe:[]);return it.forEach(Ee=>Ee.addEventListener("scroll",Xe)),()=>it.forEach(Ee=>Ee.removeEventListener("scroll",Xe))},[Tr,Be,Oe,q,Ir,He]);const Gn=!!Ye&&Ye.overflowAmt>0;M.useEffect(()=>{if(Gn||!Oe||!w)return;const fe=()=>iu(He),Pe=w.current;return Pe.addEventListener("scroll",fe),()=>Pe.removeEventListener("scroll",fe)},[Oe,Gn,w,He]),M.useEffect(()=>{if(!Oe||typeof ResizeObserver!="function"||rn==="initial")return;const fe=[],Pe=new ResizeObserver(Ee=>Ee.forEach(({target:Yn})=>{fe.indexOf(Yn)<0?fe.push(Yn):cr.flushSync(()=>{He(),xi()})})),Xe={box:"border-box"};Pe.observe(Ie.current,Xe);const it=c?.current;return it&&Pe.observe(it,Xe),()=>Pe.disconnect()},[Oe,rn,c,He]),M.useEffect(()=>{if(!Oe){Ue(Ce.RESET),on||Et();return}const{position:fe,alwaysUpdate:Pe}=$||{},Xe=()=>{fe===vr.FIRST?Ue(Ce.FIRST):fe===vr.LAST?Ue(Ce.LAST):fe>=-1&&Ue(Ce.SET_INDEX,void 0,fe)};if(Pe)Xe();else if(k){const it=setTimeout(()=>{const Ee=Ie.current;Ee&&!Ee.contains(document.activeElement)&&(Ee.focus(wa),Xe())},Ke?170:100);return()=>clearTimeout(it)}},[Oe,Ke,on,k,$,Ue]);const Or=M.useMemo(()=>({isParentOpen:Oe,submenuCtx:At,dispatch:Ue,updateItems:jn}),[Oe,At,Ue,jn]);let xn,En;Ye&&(A?En=Ye.overflowAmt:xn=Ye.height);const Cr=M.useMemo(()=>({reposSubmenu:nt,submenuCtx:At,overflow:x,overflowAmt:En,parentMenuRef:Ie,parentDir:ze}),[nt,At,x,En,ze]),Nr=xn>=0?{maxHeight:xn,overflow:x}:void 0,Jn=M.useMemo(()=>({state:W,align:_,dir:ze}),[W,_,ze]),Lr=M.useMemo(()=>({dir:ze}),[ze]),Pr=ni({block:ri,element:Ph,modifiers:Lr,className:u.className}),Ii=z.jsxs("ul",{role:"menu","aria-label":a,...au(Z),...ti({onPointerEnter:qn?.off,onPointerMove:Wo,onPointerLeave:Sn,onKeyDown:Do,onAnimationEnd:wn},J),ref:Sa(y,Ie),className:ni({block:ri,modifiers:Jn,className:i}),style:{...n,...Nr,margin:0,display:W==="closed"?"none":void 0,position:cu,left:ee.x,top:ee.y},children:[o&&z.jsx("li",{"aria-hidden":!0,...u,className:Pr,style:{display:"block",position:cu,left:We.x,top:We.y,...u.style},ref:an}),z.jsx(fu.Provider,{value:Cr,children:z.jsx(uu.Provider,{value:Or,children:z.jsx(su.Provider,{value:rt,children:ct(L,Jn)})})})]});return g?z.jsx(Bh,{...g,isOpen:Oe,children:Ii}):Ii},vu=M.forwardRef(function({"aria-label":i,className:n,containerProps:o,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:T,...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(J,ee){J.stopPropagation||ct(T,J);let Y=J.keepOpen;Y===void 0&&(Y=ee&&J.key===wt.SPACE),Y||ct(C,{value:J.value,key:J.key,reason:pr.CLICK})},handleClose(J){ct(C,{key:J,reason:pr.CLICK})}}),[T,C]);if(!de)return null;const ne=z.jsx(_a.Provider,{value:L,children:z.jsx(lu.Provider,{value:q,children:z.jsx(Yh,{...k,ariaLabel:i||"Menu",externalRef:W,containerRef:R,containerProps:{className:n,containerRef:R,containerProps:o,theming:A,transition:c,onClose:C}})})});return x===!0&&typeof document<"u"?cr.createPortal(ne,document.body):x?x.target?cr.createPortal(ne,x.target):x.stablePosition?null:ne:ne}),xa=0,Ea=1,ai=2,oi=3,si=4,Kh=5,gu=6,Xh=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],mu=a=>({_s:a,status:Xh[a],isEnter:a<oi,isMounted:a!==gu,isResolved:a===ai||a>si}),Aa=a=>a?gu:Kh,Vh=(a,i)=>{switch(a){case Ea:case xa:return ai;case si:case oi:return Aa(i)}},Zh=a=>typeof a=="object"?[a.enter,a.exit]:[a,a],Ta=setTimeout,Qh=(a,i)=>Ta(()=>{isNaN(document.body.offsetTop)||a(i+1)},0),yu=(a,i,n,o,u)=>{clearTimeout(o.current);const f=mu(a);i(f),n.current=f,u&&u({current:f})},ep=({enter:a=!0,exit:i=!0,preEnter:n,preExit:o,timeout:u,initialEntered:f,mountOnEnter:c,unmountOnExit:p,onStateChange:g}={})=>{const[y,w]=M.useState(()=>mu(f?ai:Aa(c))),_=M.useRef(y),O=M.useRef(0),[E,x]=Zh(u),A=M.useCallback(()=>{const T=Vh(_.current._s,p);T&&yu(T,w,_,O,g)},[g,p]);return[y,M.useCallback(T=>{const k=R=>{switch(yu(R,w,_,O,g),R){case Ea:E>=0&&(O.current=Ta(A,E));break;case si:x>=0&&(O.current=Ta(A,x));break;case xa:case oi:O.current=Qh(k,R);break}},W=_.current.isEnter;typeof T!="boolean"&&(T=!W),T?!W&&k(a?n?xa:Ea:ai):W&&k(i?o?oi:si:Aa(p))},[A,g,a,i,n,o,E,x,p]),A]},bu=({initialOpen:a,initialMounted:i,unmountOnClose:n,transition:o,transitionTimeout:u=500,onMenuChange:f}={})=>{const c=hr(o,"open"),p=hr(o,"close"),[{status:g},y,w]=ep({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:kh[g],endTransition:w},y]},tp=a=>{const[i,n]=bu(a),[o,u]=M.useState(),f=(c,p)=>{u({position:c,alwaysUpdate:p}),n(!0)};return[{menuItemFocus:o,...i},n,f]},np=(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:o=>n.v?n.v=!1:i(!0,o)}},rp=parseInt(M.version)<19,_u=M.forwardRef(function({"aria-label":i,captureFocus:n,initialOpen:o,menuButton:u,instanceRef:f,onMenuChange:c,...p},g){const[y,w,_]=tp({...p,onMenuChange:c}),{state:O}=y,E=ru(O),x=M.useRef(null),A=np(O,($,de)=>_(de.detail?void 0:vr.FIRST)),T=M.useCallback($=>{w(!1),$.key&&x.current.focus()},[w]),k=$=>{switch($.key){case wt.UP:_(vr.LAST);break;case wt.DOWN:_(vr.FIRST);break;default:return}$.preventDefault()},W=ct(u,{open:E});if(!W||!W.type)throw new Error("Menu requires a menuButton prop.");const R={...ti({onKeyDown:k,...A},W.props),ref:Sa(rp?W.ref:W.props.ref,x)};Ch(W.type)==="MenuButton"&&(R.isOpen=E);const Z=M.cloneElement(W,R);return M.useImperativeHandle(f,()=>({openMenu:_,closeMenu:()=>w(!1)})),z.jsxs(M.Fragment,{children:[Z,z.jsx(vu,{...p,...y,"aria-label":i||(typeof W.props.children=="string"?W.props.children:"Menu"),anchorRef:x,ref:g,onClose:T})]})}),ip=(a,i)=>{const n=M.memo(i),o=M.forwardRef((u,f)=>{const c=M.useRef(null);return z.jsx(n,{...u,itemRef:c,externalRef:f,isHovering:M.useContext(su)===c.current})});return o.displayName=`WithHovering(${a})`,o},ap=a=>{const[i,n]=M.useState(!1);return M.useEffect(()=>{!a&&n(!1)},[a]),[i,()=>!i&&n(!0),()=>n(!1)]},op=(a,i,n)=>{ii(()=>{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 o=i.current;return n(o,!0),()=>{n(o)}},[a,i,n])},sp=(a,i,n,o)=>{const[u,f,c]=ap(n),{submenuCloseDelay:p}=M.useContext(_a),{isParentOpen:g,submenuCtx:y,dispatch:w,updateItems:_}=M.useContext(uu),O=()=>{!n&&!o&&w(Ce.SET,a.current)},E=()=>{!o&&w(Ce.UNSET,a.current)},x=k=>{n&&!k.currentTarget.contains(k.relatedTarget)&&E()},A=k=>{o||(k.stopPropagation(),f(),y.on(p,O,O))},T=(k,W)=>{c(),y.off(),!W&&E()};return op(o,a,_),M.useEffect(()=>{n&&g&&i.current&&i.current.focus()},[i,n,g]),{mouseOver:u,setHover:O,onBlur:x,onPointerMove:A,onPointerLeave:T}},ui=ip("MenuItem",function({className:i,value:n,href:o,type:u,checked:f,disabled:c,children:p,onClick:g,isHovering:y,itemRef:w,externalRef:_,...O}){const E=!!c,{mouseOver:x,setHover:A,...T}=sp(w,w,y,E),k=M.useContext(lu),W=M.useContext(Mh),R=u==="radio",Z=u==="checkbox",$=!!o&&!E&&!R&&!Z,de=R?W.value===n:Z?!!f:!1,C=ee=>{if(E){ee.stopPropagation(),ee.preventDefault();return}const Y={value:n,syntheticEvent:ee};ee.key!==void 0&&(Y.key=ee.key),Z&&(Y.checked=!de),R&&(Y.name=W.name),ct(g,Y),R&&ct(W.onRadioChange,Y),k.handleClick(Y,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=ti({...T,onPointerDown:A,onKeyDown:L,onClick:C},O),J={role:R?"menuitemradio":Z?"menuitemcheckbox":Wh,"aria-checked":R||Z?de:void 0,...au(E,y),...ne,ref:Sa(_,w),className:ni({block:ri,element:Fh,modifiers:q,className:i}),children:M.useMemo(()=>ct(p,q),[p,q])};return $?z.jsx("li",{role:Dh,children:z.jsx("a",{href:o,...J})}):z.jsx("li",{...J})});if(!M.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!lr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function up(a){a()}function fp(a){a||(a=up,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),lr.configure({reactionScheduler:a})}function lp(a){return lr.getDependencyTree(a)}var cp=1e4,dp=1e4,hp=(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(o){o===void 0&&(o=cp),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var u=Date.now();n.registrations.forEach(function(f,c){u-f.registeredAt>=o&&(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,o){this.registrations.set(o,{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,dp))}}),a})(),pp=typeof FinalizationRegistry<"u"?FinalizationRegistry:hp,Ia=new pp(function(a){var i;(i=a.reaction)===null||i===void 0||i.dispose(),a.reaction=null}),fi={exports:{}},Oa={};var wu;function vp(){if(wu)return Oa;wu=1;var a=M;function i(_,O){return _===O&&(_!==0||1/_===1/O)||_!==_&&O!==O}var n=typeof Object.is=="function"?Object.is:i,o=a.useState,u=a.useEffect,f=a.useLayoutEffect,c=a.useDebugValue;function p(_,O){var E=O(),x=o({inst:{value:E,getSnapshot:O}}),A=x[0].inst,T=x[1];return f(function(){A.value=E,A.getSnapshot=O,g(A)&&T({inst:A})},[_,E,O]),u(function(){return g(A)&&T({inst:A}),_(function(){g(A)&&T({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 Oa.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:w,Oa}var Ca={};var Su;function gp(){return Su||(Su=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 T=x();f(A,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),_=!0)}T=c({inst:{value:A,getSnapshot:x}});var k=T[0].inst,W=T[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 o(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"?o:i;Ca.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())})()),Ca}var xu;function mp(){return xu||(xu=1,process.env.NODE_ENV==="production"?fi.exports=vp():fi.exports=gp()),fi.exports}var yp=mp();function Eu(a){a.reaction=new lr.Reaction("observer".concat(a.name),function(){var i;a.stateVersion=Symbol(),(i=a.onStoreChange)===null||i===void 0||i.call(a)})}function bp(a,i){i===void 0&&(i="observed");var n=M.useRef(null);if(!n.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(p){return Ia.unregister(o),o.onStoreChange=p,o.reaction||(Eu(o),o.stateVersion=Symbol()),function(){var g;o.onStoreChange=null,(g=o.reaction)===null||g===void 0||g.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};n.current=o}var u=n.current;u.reaction||(Eu(u),Ia.register(n,u,u)),M.useDebugValue(u.reaction,lp),yp.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 Na,La,_p=!0,Au=!0,Tu=typeof Symbol=="function"&&Symbol.for,wp=(La=(Na=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Na===void 0?void 0:Na.configurable)!==null&&La!==void 0?La:!1,Iu=Tu?Symbol.for("react.forward_ref"):typeof M.forwardRef=="function"&&M.forwardRef(function(a){return null}).$$typeof,Ou=Tu?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,Ou&&a.$$typeof===Ou)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 o=(n=void 0)!==null&&n!==void 0?n:!1,u=a,f=a.displayName||a.name;if(Iu&&a.$$typeof===Iu&&(o=!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 bp(function(){return u(p,g)},f)};return c.displayName=a.displayName,wp&&Object.defineProperty(c,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(c.contextTypes=a.contextTypes,process.env.NODE_ENV!=="production"&&Au&&(Au=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(c=M.forwardRef(c)),c=M.memo(c),xp(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 Sp={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function xp(a,i){Object.keys(a).forEach(function(n){Sp[n]||Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(a,n))})}process.env.NODE_ENV;var Pa;fp(cr.unstable_batchedUpdates),Pa=Ia.finalizeAllImmediately;function Fa(a,i){(i==null||i>a.length)&&(i=a.length);for(var n=0,o=Array(i);n<i;n++)o[n]=a[n];return o}function Ep(a){if(Array.isArray(a))return a}function Ap(a){if(Array.isArray(a))return Fa(a)}function Tp(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 o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,Nu(o.key),o)}}function Op(a,i,n){return i&&Ip(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function li(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 o=0,u=function(){};return{s:u,n:function(){return o>=a.length?{done:!0}:{done:!1,value:a[o++]}},e:function(g){throw g},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
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=Nu(i))in a?Object.defineProperty(a,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[i]=n,a}function Cp(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Np(a,i){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var o,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=(o=f.call(n)).done)&&(p.push(o.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 Lp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pp(){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 Cu(a,i){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),n.push.apply(n,o)}return n}function B(a){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?Cu(Object(n),!0).forEach(function(o){re(a,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(n,o))})}return a}function ci(a,i){return Ep(a)||Np(a,i)||Ma(a,i)||Lp()}function St(a){return Ap(a)||Cp(a)||Ma(a)||Pp()}function Fp(a,i){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var o=n.call(a,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Nu(a){var i=Fp(a,"string");return typeof i=="symbol"?i:i+""}function di(a){"@babel/helpers - typeof";return di=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},di(a)}function Ma(a,i){if(a){if(typeof a=="string")return Fa(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)?Fa(a,i):void 0}}var Lu=function(){},ka={},Pu={},Fu=null,Mu={mark:Lu,measure:Lu};try{typeof window<"u"&&(ka=window),typeof document<"u"&&(Pu=document),typeof MutationObserver<"u"&&(Fu=MutationObserver),typeof performance<"u"&&(Mu=performance)}catch{}var Mp=ka.navigator||{},ku=Mp.userAgent,Du=ku===void 0?"":ku,en=ka,be=Pu,Wu=Fu,hi=Mu;en.document;var Wt=!!be.documentElement&&!!be.head&&typeof be.addEventListener=="function"&&typeof be.createElement=="function",Bu=~Du.indexOf("MSIE")||~Du.indexOf("Trident/"),Da,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)?[\-\ ]/,Dp=/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,Ru={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"}},Wp={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$u=["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",gr="duotone",zu="sharp",Uu="sharp-duotone",Hu="chisel",qu="etch",ju="jelly",Gu="jelly-duo",Ju="jelly-fill",Yu="notdog",Ku="notdog-duo",Xu="slab",Vu="slab-press",Zu="thumbprint",Qu="utility",ef="utility-duo",tf="utility-fill",nf="whiteboard",Bp="Classic",Rp="Duotone",$p="Sharp",zp="Sharp Duotone",Up="Chisel",Hp="Etch",qp="Jelly",jp="Jelly Duo",Gp="Jelly Fill",Jp="Notdog",Yp="Notdog Duo",Kp="Slab",Xp="Slab Press",Vp="Thumbprint",Zp="Utility",Qp="Utility Duo",ev="Utility Fill",tv="Whiteboard",rf=[Me,gr,zu,Uu,Hu,qu,ju,Gu,Ju,Yu,Ku,Xu,Vu,Zu,Qu,ef,tf,nf];Da={},re(re(re(re(re(re(re(re(re(re(Da,Me,Bp),gr,Rp),zu,$p),Uu,zp),Hu,Up),qu,Hp),ju,qp),Gu,jp),Ju,Gp),Yu,Jp),re(re(re(re(re(re(re(re(Da,Ku,Yp),Xu,Kp),Vu,Xp),Zu,Vp),Qu,Zp),ef,Qp),tf,ev),nf,tv);var nv={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"}},rv={"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"}},iv=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}]]),av={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"}},af=["fak","fa-kit","fakd","fa-kit-duotone"],of={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},ov=["kit"],sv="kit",uv="kit-duotone",fv="Kit",lv="Kit Duotone";re(re({},sv,fv),uv,lv);var cv={kit:{"fa-kit":"fak"}},dv={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},hv={kit:{fak:"fa-kit"}},sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Wa,pi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pv=["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"],vv="classic",gv="duotone",mv="sharp",yv="sharp-duotone",bv="chisel",_v="etch",wv="jelly",Sv="jelly-duo",xv="jelly-fill",Ev="notdog",Av="notdog-duo",Tv="slab",Iv="slab-press",Ov="thumbprint",Cv="utility",Nv="utility-duo",Lv="utility-fill",Pv="whiteboard",Fv="Classic",Mv="Duotone",kv="Sharp",Dv="Sharp Duotone",Wv="Chisel",Bv="Etch",Rv="Jelly",$v="Jelly Duo",zv="Jelly Fill",Uv="Notdog",Hv="Notdog Duo",qv="Slab",jv="Slab Press",Gv="Thumbprint",Jv="Utility",Yv="Utility Duo",Kv="Utility Fill",Xv="Whiteboard";Wa={},re(re(re(re(re(re(re(re(re(re(Wa,vv,Fv),gv,Mv),mv,kv),yv,Dv),bv,Wv),_v,Bv),wv,Rv),Sv,$v),xv,zv),Ev,Uv),re(re(re(re(re(re(re(re(Wa,Av,Hv),Tv,qv),Iv,jv),Ov,Gv),Cv,Jv),Nv,Yv),Lv,Kv),Pv,Xv);var Vv="kit",Zv="kit-duotone",Qv="Kit",eg="Kit Duotone";re(re({},Vv,Qv),Zv,eg);var tg={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"}},ng={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"]},Ba={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"}},rg=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],uf=["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(pv,rg),ig=["solid","regular","light","thin","duotone","brands","semibold"],ff=[1,2,3,4,5,6,7,8,9,10],ag=ff.concat([11,12,13,14,15,16,17,18,19,20]),og=["aw","fw","pull-left","pull-right"],sg=[].concat(St(Object.keys(ng)),ig,og,["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",pi.GROUP,pi.SWAP_OPACITY,pi.PRIMARY,pi.SECONDARY]).concat(ff.map(function(a){return"".concat(a,"x")})).concat(ag.map(function(a){return"w-".concat(a)})),ug={"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___",Ra=16,lf="fa",cf="svg-inline--fa",gn="data-fa-i2svg",$a="data-fa-pseudo-element",fg="data-fa-pseudo-element-pending",za="data-prefix",Ua="data-icon",df="fontawesome-i2svg",lg="async",cg=["HTML","HEAD","STYLE","SCRIPT"],hf=["::before","::after",":before",":after"],pf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function mr(a){return new Proxy(a,{get:function(n,o){return o in n?n[o]:n[Me]}})}var vf=B({},Ru);vf[Me]=B(B(B(B({},{"fa-duotone":"duotone"}),Ru[Me]),of.kit),of["kit-duotone"]);var dg=mr(vf),Ha=B({},av);Ha[Me]=B(B(B(B({},{duotone:"fad"}),Ha[Me]),sf.kit),sf["kit-duotone"]);var gf=mr(Ha),qa=B({},Ba);qa[Me]=B(B({},qa[Me]),hv.kit);var ja=mr(qa),Ga=B({},tg);Ga[Me]=B(B({},Ga[Me]),cv.kit),mr(Ga);var hg=kp,mf="fa-layers-text",pg=Dp,vg=B({},nv);mr(vg);var gg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ja=Wp,mg=[].concat(St(ov),St(sg)),yr=en.FontAwesomeConfig||{};function yg(a){var i=be.querySelector("script["+a+"]");if(i)return i.getAttribute(a)}function bg(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(be&&typeof be.querySelector=="function"){var _g=[["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"]];_g.forEach(function(a){var i=ci(a,2),n=i[0],o=i[1],u=bg(yg(n));u!=null&&(yr[o]=u)})}var yf={styleDefault:"solid",familyDefault:Me,cssPrefix:lf,replacementClass:cf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};yr.familyPrefix&&(yr.cssPrefix=yr.familyPrefix);var Dn=B(B({},yf),yr);Dn.autoReplaceSvg||(Dn.observeMutations=!1);var G={};Object.keys(yf).forEach(function(a){Object.defineProperty(G,a,{enumerable:!0,set:function(n){Dn[a]=n,br.forEach(function(o){return o(G)})},get:function(){return Dn[a]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(i){Dn.cssPrefix=i,br.forEach(function(n){return n(G)})},get:function(){return Dn.cssPrefix}}),en.FontAwesomeConfig=G;var br=[];function wg(a){return br.push(a),function(){br.splice(br.indexOf(a),1)}}var Wn=Ra,Lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Sg(a){if(!(!a||!Wt)){var i=be.createElement("style");i.setAttribute("type","text/css"),i.innerHTML=a;for(var n=be.head.childNodes,o=null,u=n.length-1;u>-1;u--){var f=n[u],c=(f.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(o=f)}return be.head.insertBefore(i,o),a}}var xg="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function bf(){for(var a=12,i="";a-- >0;)i+=xg[Math.random()*62|0];return i}function Bn(a){for(var i=[],n=(a||[]).length>>>0;n--;)i[n]=a[n];return i}function Ya(a){return a.classList?Bn(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(i){return i})}function _f(a){return"".concat(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Eg(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,'="').concat(_f(a[n]),'" ')},"").trim()}function vi(a){return Object.keys(a||{}).reduce(function(i,n){return i+"".concat(n,": ").concat(a[n].trim(),";")},"")}function Ka(a){return a.size!==Lt.size||a.x!==Lt.x||a.y!==Lt.y||a.rotate!==Lt.rotate||a.flipX||a.flipY}function Ag(a){var i=a.transform,n=a.containerWidth,o=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(o/2*-1," -256)")};return{outer:u,inner:g,path:y}}function Tg(a){var i=a.transform,n=a.width,o=n===void 0?Ra:n,u=a.height,f=u===void 0?Ra:u,c="";return Bu?c+="translate(".concat(i.x/Wn-o/2,"em, ").concat(i.y/Wn-f/2,"em) "):c+="translate(calc(-50% + ".concat(i.x/Wn,"em), calc(-50% + ").concat(i.y/Wn,"em)) "),c+="scale(".concat(i.size/Wn*(i.flipX?-1:1),", ").concat(i.size/Wn*(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 Ff(){var a=If,r=Tf,n=G.cssPrefix,o=G.replacementClass,s=bm;if(n!==a||o!==r){var f=new RegExp("\\.".concat(a,"\\-"),"g"),c=new RegExp("\\--".concat(a,"\\-"),"g"),p=new RegExp("\\.".concat(r),"g");s=s.replace(f,".".concat(n,"-")).replace(c,"--".concat(n,"-")).replace(p,".".concat(o))}return s}var kf=!1;function oo(){G.autoAddCss&&!kf&&(pm(Ff()),kf=!0)}var wm={mixout:function(){return{dom:{css:Ff,insertCss:oo}}},hooks:function(){return{beforeDOMElementCreation:function(){oo()},beforeI2svg:function(){oo()}}}},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],Wf=[],Bf=function(){be.removeEventListener("DOMContentLoaded",Bf),yi=1,Wf.map(function(r){return r()})},yi=!1;Wt&&(yi=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),yi||be.addEventListener("DOMContentLoaded",Bf));function Sm(a){Wt&&(yi?setTimeout(a,0):Wf.push(a))}function Ir(a){var r=a.tag,n=a.attributes,o=n===void 0?{}:n,s=a.children,f=s===void 0?[]:s;return typeof a=="string"?Mf(a):"<".concat(r," ").concat(vm(o),">").concat(f.map(Ir).join(""),"</").concat(r,">")}function Rf(a,r,n){if(a&&a[r]&&a[r][n])return{prefix:r,iconName:n,icon:a[r][n]}}var so=function(r,n,o,s){var f=Object.keys(r),c=f.length,p=n,v,y,w;for(o===void 0?(v=1,w=r[f[0]]):(v=0,w=o);v<c;v++)y=f[v],w=p(w,r[y],y,r);return w};function $f(a){return _t(a).length!==1?null:a.codePointAt(0).toString(16)}function Uf(a){return Object.keys(a).reduce(function(r,n){var o=a[n],s=!!o.icon;return s?r[o.iconName]=o.icon:r[n]=o,r},{})}function uo(a,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.skipHooks,s=o===void 0?!1:o,f=Uf(r);typeof xt.hooks.addPack=="function"&&!s?xt.hooks.addPack(a,Uf(r)):xt.styles[a]=B(B({},xt.styles[a]||{}),f),a==="fas"&&uo("fa",r)}var Tr=xt.styles,_m=xt.shims,zf=Object.keys(to),xm=zf.reduce(function(a,r){return a[r]=Object.keys(to[r]),a},{}),fo=null,Hf={},qf={},jf={},Gf={},Yf={};function Im(a){return~fm.indexOf(a)}function Tm(a,r){var n=r.split("-"),o=n[0],s=n.slice(1).join("-");return o===a&&s!==""&&!Im(s)?s:null}var Jf=function(){var r=function(f){return so(Tr,function(c,p,v){return c[v]=so(p,f,{}),c},{})};Hf=r(function(s,f,c){if(f[3]&&(s[f[3]]=c),f[2]){var p=f[2].filter(function(v){return typeof v=="number"});p.forEach(function(v){s[v.toString(16)]=c})}return s}),qf=r(function(s,f,c){if(s[c]=c,f[2]){var p=f[2].filter(function(v){return typeof v=="string"});p.forEach(function(v){s[v]=c})}return s}),Yf=r(function(s,f,c){var p=f[2];return s[c]=c,p.forEach(function(v){s[v]=c}),s});var n="far"in Tr||G.autoFetchSvg,o=so(_m,function(s,f){var c=f[0],p=f[1],v=f[2];return p==="far"&&!n&&(p="fas"),typeof c=="string"&&(s.names[c]={prefix:p,iconName:v}),typeof c=="number"&&(s.unicodes[c.toString(16)]={prefix:p,iconName:v}),s},{names:{},unicodes:{}});jf=o.names,Gf=o.unicodes,fo=bi(G.styleDefault,{family:G.familyDefault})};hm(function(a){fo=bi(a.styleDefault,{family:G.familyDefault})}),Jf();function lo(a,r){return(Hf[a]||{})[r]}function Em(a,r){return(qf[a]||{})[r]}function bn(a,r){return(Yf[a]||{})[r]}function Kf(a){return jf[a]||{prefix:null,iconName:null}}function Am(a){var r=Gf[a],n=lo("fas",a);return r||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function nn(){return fo}var Vf=function(){return{prefix:null,iconName:null,rest:[]}};function Om(a){var r=Me,n=zf.reduce(function(o,s){return o[s]="".concat(G.cssPrefix,"-").concat(s),o},{});return yf.forEach(function(o){(a.includes(n[o])||a.some(function(s){return xm[o].includes(s)}))&&(r=o)}),r}function bi(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.family,o=n===void 0?Me:n,s=im[o][a];if(o===wr&&!a)return"fad";var f=Nf[o][a]||Nf[o][s],c=a in xt.styles?a:null,p=f||c||null;return p}function Cm(a){var r=[],n=null;return a.forEach(function(o){var s=Tm(G.cssPrefix,o);s?n=s:o&&r.push(o)}),{iconName:n,rest:r}}function Xf(a){return a.sort().filter(function(r,n,o){return o.indexOf(r)===n})}var Zf=_f.concat(bf);function wi(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,o=n===void 0?!1:n,s=null,f=Xf(a.filter(function(x){return Zf.includes(x)})),c=Xf(a.filter(function(x){return!Zf.includes(x)})),p=f.filter(function(x){return s=x,!ef.includes(x)}),v=hi(p,1),y=v[0],w=y===void 0?null:y,S=Om(f),C=B(B({},Cm(c)),{},{prefix:bi(w,{family:S})});return B(B(B({},C),Dm({values:a,family:S,styles:Tr,config:G,canonical:C,givenPrefix:s})),Nm(o,s,C))}function Nm(a,r,n){var o=n.prefix,s=n.iconName;if(a||!o||!s)return{prefix:o,iconName:s};var f=r==="fa"?Kf(s):{},c=bn(o,s);return s=f.iconName||c||s,o=f.prefix||o,o==="far"&&!Tr.far&&Tr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:s}}var Pm=yf.filter(function(a){return a!==Me||a!==wr}),Lm=Object.keys(Ja).filter(function(a){return a!==Me}).map(function(a){return Object.keys(Ja[a])}).flat();function Dm(a){var r=a.values,n=a.family,o=a.canonical,s=a.givenPrefix,f=s===void 0?"":s,c=a.styles,p=c===void 0?{}:c,v=a.config,y=v===void 0?{}:v,w=n===wr,S=r.includes("fa-duotone")||r.includes("fad"),C=y.familyDefault==="duotone",x=o.prefix==="fad"||o.prefix==="fa-duotone";if(!w&&(S||C||x)&&(o.prefix="fad"),(r.includes("fa-brands")||r.includes("fab"))&&(o.prefix="fab"),!o.prefix&&Pm.includes(n)){var I=Object.keys(p).find(function(E){return Lm.includes(E)});if(I||y.autoFetchSvg){var T=Vg.get(n).defaultShortPrefixId;o.prefix=T,o.iconName=bn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||f==="fa")&&(o.prefix=nn()||"fas"),o}var Mm=(function(){function a(){yg(this,a),this.definitions={}}return wg(a,[{key:"add",value:function(){for(var n=this,o=arguments.length,s=new Array(o),f=0;f<o;f++)s[f]=arguments[f];var c=s.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(p){n.definitions[p]=B(B({},n.definitions[p]||{}),c[p]),uo(p,c[p]);var v=to[Me][p];v&&uo(v,c[p]),Jf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,o){var s=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(s).map(function(f){var c=s[f],p=c.prefix,v=c.iconName,y=c.icon,w=y[2];n[p]||(n[p]={}),w.length>0&&w.forEach(function(S){typeof S=="string"&&(n[p][S]=y)}),n[p][v]=y}),n}}])})(),Qf=[],zn={},Hn={},Fm=Object.keys(Hn);function km(a,r){var n=r.mixoutsTo;return Qf=a,zn={},Object.keys(Hn).forEach(function(o){Fm.indexOf(o)===-1&&delete Hn[o]}),Qf.forEach(function(o){var s=o.mixout?o.mixout():{};if(Object.keys(s).forEach(function(c){typeof s[c]=="function"&&(n[c]=s[c]),pi(s[c])==="object"&&Object.keys(s[c]).forEach(function(p){n[c]||(n[c]={}),n[c][p]=s[c][p]})}),o.hooks){var f=o.hooks();Object.keys(f).forEach(function(c){zn[c]||(zn[c]=[]),zn[c].push(f[c])})}o.provides&&o.provides(Hn)}),n}function co(a,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];var f=zn[a]||[];return f.forEach(function(c){r=c.apply(null,[r].concat(o))}),r}function wn(a){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var s=zn[a]||[];s.forEach(function(f){f.apply(null,n)})}function rn(){var a=arguments[0],r=Array.prototype.slice.call(arguments,1);return Hn[a]?Hn[a].apply(null,r):void 0}function ho(a){a.prefix==="fa"&&(a.prefix="fas");var r=a.iconName,n=a.prefix||nn();if(r)return r=bn(n,r)||r,Rf(el.definitions,n,r)||Rf(xt.styles,n,r)}var el=new Mm,Wm=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,wn("noAuto")},Bm={i2svg:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt?(wn("beforeI2svg",r),rn("pseudoElements2svg",r),rn("i2svg",r)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,Sm(function(){$m({autoReplaceSvgRoot:n}),wn("watch",r)})}},Rm={icon:function(r){if(r===null)return null;if(pi(r)==="object"&&r.prefix&&r.iconName)return{prefix:r.prefix,iconName:bn(r.prefix,r.iconName)||r.iconName};if(Array.isArray(r)&&r.length===2){var n=r[1].indexOf("fa-")===0?r[1].slice(3):r[1],o=bi(r[0]);return{prefix:o,iconName:bn(o,n)||n}}if(typeof r=="string"&&(r.indexOf("".concat(G.cssPrefix,"-"))>-1||r.match(am))){var s=wi(r.split(" "),{skipLookups:!0});return{prefix:s.prefix||nn(),iconName:bn(s.prefix,s.iconName)||s.iconName}}if(typeof r=="string"){var f=nn();return{prefix:f,iconName:bn(f,r)||r}}}},tt={noAuto:Wm,config:G,dom:Bm,parse:Rm,library:el,findIconDefinition:ho,toHtml:Ir},$m=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.autoReplaceSvgRoot,o=n===void 0?be:n;(Object.keys(xt.styles).length>0||G.autoFetchSvg)&&Wt&&G.autoReplaceSvg&&tt.dom.i2svg({node:o})};function Si(a,r){return Object.defineProperty(a,"abstract",{get:r}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(o){return Ir(o)})}}),Object.defineProperty(a,"node",{get:function(){if(Wt){var o=be.createElement("div");return o.innerHTML=a.html,o.children}}}),a}function Um(a){var r=a.children,n=a.main,o=a.mask,s=a.attributes,f=a.styles,c=a.transform;if(ao(c)&&n.found&&!o.found){var p=n.width,v=n.height,y={x:p/v/2,y:.5};s.style=mi(B(B({},f),{},{"transform-origin":"".concat(y.x+c.x/16,"em ").concat(y.y+c.y/16,"em")}))}return[{tag:"svg",attributes:s,children:r}]}function zm(a){var r=a.prefix,n=a.iconName,o=a.children,s=a.attributes,f=a.symbol,c=f===!0?"".concat(r,"-").concat(G.cssPrefix,"-").concat(n):f;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:B(B({},s),{},{id:c}),children:o}]}]}function Hm(a){var r=["aria-label","aria-labelledby","title","role"];return r.some(function(n){return n in a})}function po(a){var r=a.icons,n=r.main,o=r.mask,s=a.prefix,f=a.iconName,c=a.transform,p=a.symbol,v=a.maskId,y=a.extra,w=a.watchable,S=w===void 0?!1:w,C=o.found?o:n,x=C.width,I=C.height,T=[G.replacementClass,f?"".concat(G.cssPrefix,"-").concat(f):""].filter(function(R){return y.classes.indexOf(R)===-1}).filter(function(R){return R!==""||!!R}).concat(y.classes).join(" "),E={children:[],attributes:B(B({},y.attributes),{},{"data-prefix":s,"data-icon":f,class:T,role:y.attributes.role||"img",viewBox:"0 0 ".concat(x," ").concat(I)})};!Hm(y.attributes)&&!y.attributes["aria-hidden"]&&(E.attributes["aria-hidden"]="true"),S&&(E.attributes[yn]="");var L=B(B({},E),{},{prefix:s,iconName:f,main:n,mask:o,maskId:v,transform:c,symbol:p,styles:B({},y.styles)}),W=o.found&&n.found?rn("generateAbstractMask",L)||{children:[],attributes:{}}:rn("generateAbstractIcon",L)||{children:[],attributes:{}},z=W.children,Z=W.attributes;return L.children=z,L.attributes=Z,p?zm(L):Um(L)}function tl(a){var r=a.content,n=a.width,o=a.height,s=a.transform,f=a.extra,c=a.watchable,p=c===void 0?!1:c,v=B(B({},f.attributes),{},{class:f.classes.join(" ")});p&&(v[yn]="");var y=B({},f.styles);ao(s)&&(y.transform=ym({transform:s,width:n,height:o}),y["-webkit-transform"]=y.transform);var w=mi(y);w.length>0&&(v.style=w);var S=[];return S.push({tag:"span",attributes:v,children:[r]}),S}function qm(a){var r=a.content,n=a.extra,o=B(B({},n.attributes),{},{class:n.classes.join(" ")}),s=mi(n.styles);s.length>0&&(o.style=s);var f=[];return f.push({tag:"span",attributes:o,children:[r]}),f}var go=xt.styles;function vo(a){var r=a[0],n=a[1],o=a.slice(4),s=hi(o,1),f=s[0],c=null;return Array.isArray(f)?c={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(ro.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(ro.SECONDARY),fill:"currentColor",d:f[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(ro.PRIMARY),fill:"currentColor",d:f[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:f}},{found:!0,width:r,height:n,icon:c}}var jm={found:!1,width:512,height:512};function Gm(a,r){!Of&&!G.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(r,'" is missing.'))}function mo(a,r){var n=r;return r==="fa"&&G.styleDefault!==null&&(r=nn()),new Promise(function(o,s){if(n==="fa"){var f=Kf(a)||{};a=f.iconName||a,r=f.prefix||r}if(a&&r&&go[r]&&go[r][a]){var c=go[r][a];return o(vo(c))}Gm(a,r),o(B(B({},jm),{},{icon:G.showMissingIcons&&a?rn("missingIconAbstract")||{}:{}}))})}var nl=function(){},yo=G.measurePerformance&&gi&&gi.mark&&gi.measure?gi:{mark:nl,measure:nl},Er='FA "7.1.0"',Ym=function(r){return yo.mark("".concat(Er," ").concat(r," begins")),function(){return rl(r)}},rl=function(r){yo.mark("".concat(Er," ").concat(r," ends")),yo.measure("".concat(Er," ").concat(r),"".concat(Er," ").concat(r," begins"),"".concat(Er," ").concat(r," ends"))},bo={begin:Ym,end:rl},_i=function(){};function il(a){var r=a.getAttribute?a.getAttribute(yn):null;return typeof r=="string"}function Jm(a){var r=a.getAttribute?a.getAttribute(Xa):null,n=a.getAttribute?a.getAttribute(Za):null;return r&&n}function Km(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(G.replacementClass)}function Vm(){if(G.autoReplaceSvg===!0)return xi.replace;var a=xi[G.autoReplaceSvg];return a||xi.replace}function Xm(a){return be.createElementNS("http://www.w3.org/2000/svg",a)}function Zm(a){return be.createElement(a)}function al(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ceFn,o=n===void 0?a.tag==="svg"?Xm:Zm:n;if(typeof a=="string")return be.createTextNode(a);var s=o(a.tag);Object.keys(a.attributes||[]).forEach(function(c){s.setAttribute(c,a.attributes[c])});var f=a.children||[];return f.forEach(function(c){s.appendChild(al(c,{ceFn:o}))}),s}function Qm(a){var r=" ".concat(a.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}var xi={replace:function(r){var n=r[0];if(n.parentNode)if(r[1].forEach(function(s){n.parentNode.insertBefore(al(s),n)}),n.getAttribute(yn)===null&&G.keepOriginalSource){var o=be.createComment(Qm(n));n.parentNode.replaceChild(o,n)}else n.remove()},nest:function(r){var n=r[0],o=r[1];if(~io(n).indexOf(G.replacementClass))return xi.replace(r);var s=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var f=o[0].attributes.class.split(" ").reduce(function(p,v){return v===G.replacementClass||v.match(s)?p.toSvg.push(v):p.toNode.push(v),p},{toNode:[],toSvg:[]});o[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}var c=o.map(function(p){return Ir(p)}).join(`
574
- `);n.setAttribute(yn,""),n.innerHTML=c}};function ol(a){a()}function sl(a,r){var n=typeof r=="function"?r:_i;if(a.length===0)n();else{var o=ol;G.mutateApproach===nm&&(o=tn.requestAnimationFrame||ol),o(function(){var s=Vm(),f=bo.begin("mutate");a.map(s),f(),n()})}}var wo=!1;function ul(){wo=!0}function So(){wo=!1}var Ii=null;function fl(a){if(Xu&&G.observeMutations){var r=a.treeCallback,n=r===void 0?_i:r,o=a.nodeCallback,s=o===void 0?_i:o,f=a.pseudoElementsCallback,c=f===void 0?_i:f,p=a.observeMutationsRoot,v=p===void 0?be:p;Ii=new Xu(function(y){if(!wo){var w=nn();Un(y).forEach(function(S){if(S.type==="childList"&&S.addedNodes.length>0&&!il(S.addedNodes[0])&&(G.searchPseudoElements&&c(S.target),n(S.target)),S.type==="attributes"&&S.target.parentNode&&G.searchPseudoElements&&c([S.target],!0),S.type==="attributes"&&il(S.target)&&~um.indexOf(S.attributeName))if(S.attributeName==="class"&&Jm(S.target)){var C=wi(io(S.target)),x=C.prefix,I=C.iconName;S.target.setAttribute(Xa,x||w),I&&S.target.setAttribute(Za,I)}else Km(S.target)&&s(S.target)})}}),Wt&&Ii.observe(v,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function e0(){Ii&&Ii.disconnect()}function t0(a){var r=a.getAttribute("style"),n=[];return r&&(n=r.split(";").reduce(function(o,s){var f=s.split(":"),c=f[0],p=f.slice(1);return c&&p.length>0&&(o[c]=p.join(":").trim()),o},{})),n}function n0(a){var r=a.getAttribute("data-prefix"),n=a.getAttribute("data-icon"),o=a.innerText!==void 0?a.innerText.trim():"",s=wi(io(a));return s.prefix||(s.prefix=nn()),r&&n&&(s.prefix=r,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&o.length>0&&(s.iconName=Em(s.prefix,a.innerText)||lo(s.prefix,$f(a.innerText))),!s.iconName&&G.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=a.firstChild.data)),s}function r0(a){var r=Un(a.attributes).reduce(function(n,o){return n.name!=="class"&&n.name!=="style"&&(n[o.name]=o.value),n},{});return r}function i0(){return{iconName:null,prefix:null,transform:Pt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ll(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=n0(a),o=n.iconName,s=n.prefix,f=n.rest,c=r0(a),p=co("parseNodeAttributes",{},a),v=r.styleParser?t0(a):[];return B({iconName:o,prefix:s,transform:Pt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:f,styles:v,attributes:c}},p)}var a0=xt.styles;function cl(a){var r=G.autoReplaceSvg==="nest"?ll(a,{styleParser:!1}):ll(a);return~r.extra.classes.indexOf(Pf)?rn("generateLayersText",a,r):rn("generateSvgReplacementMutation",a,r)}function o0(){return[].concat(_t(bf),_t(_f))}function dl(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wt)return Promise.resolve();var n=be.documentElement.classList,o=function(S){return n.add("".concat(Ef,"-").concat(S))},s=function(S){return n.remove("".concat(Ef,"-").concat(S))},f=G.autoFetchSvg?o0():ef.concat(Object.keys(a0));f.includes("fa")||f.push("fa");var c=[".".concat(Pf,":not([").concat(yn,"])")].concat(f.map(function(w){return".".concat(w,":not([").concat(yn,"])")})).join(", ");if(c.length===0)return Promise.resolve();var p=[];try{p=Un(a.querySelectorAll(c))}catch{}if(p.length>0)o("pending"),s("complete");else return Promise.resolve();var v=bo.begin("onTree"),y=p.reduce(function(w,S){try{var C=cl(S);C&&w.push(C)}catch(x){Of||x.name==="MissingIcon"&&console.error(x)}return w},[]);return new Promise(function(w,S){Promise.all(y).then(function(C){sl(C,function(){o("active"),o("complete"),s("pending"),typeof r=="function"&&r(),v(),w()})}).catch(function(C){v(),S(C)})})}function s0(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;cl(a).then(function(n){n&&sl([n],r)})}function u0(a){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(r||{}).icon?r:ho(r||{}),s=n.mask;return s&&(s=(s||{}).icon?s:ho(s||{})),a(o,B(B({},n),{},{mask:s}))}}var f0=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,s=o===void 0?Pt:o,f=n.symbol,c=f===void 0?!1:f,p=n.mask,v=p===void 0?null:p,y=n.maskId,w=y===void 0?null:y,S=n.classes,C=S===void 0?[]:S,x=n.attributes,I=x===void 0?{}:x,T=n.styles,E=T===void 0?{}:T;if(r){var L=r.prefix,W=r.iconName,z=r.icon;return Si(B({type:"icon"},r),function(){return wn("beforeDOMElementCreation",{iconDefinition:r,params:n}),po({icons:{main:vo(z),mask:v?vo(v.icon):{found:!1,width:null,height:null,icon:{}}},prefix:L,iconName:W,transform:B(B({},Pt),s),symbol:c,maskId:w,extra:{attributes:I,styles:E,classes:C}})})}},l0={mixout:function(){return{icon:u0(f0)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=dl,n.nodeCallback=s0,n}}},provides:function(r){r.i2svg=function(n){var o=n.node,s=o===void 0?be:o,f=n.callback,c=f===void 0?function(){}:f;return dl(s,c)},r.generateSvgReplacementMutation=function(n,o){var s=o.iconName,f=o.prefix,c=o.transform,p=o.symbol,v=o.mask,y=o.maskId,w=o.extra;return new Promise(function(S,C){Promise.all([mo(s,f),v.iconName?mo(v.iconName,v.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(x){var I=hi(x,2),T=I[0],E=I[1];S([n,po({icons:{main:T,mask:E},prefix:f,iconName:s,transform:c,symbol:p,maskId:y,extra:w,watchable:!0})])}).catch(C)})},r.generateAbstractIcon=function(n){var o=n.children,s=n.attributes,f=n.main,c=n.transform,p=n.styles,v=mi(p);v.length>0&&(s.style=v);var y;return ao(c)&&(y=rn("generateAbstractTransformGrouping",{main:f,transform:c,containerWidth:f.width,iconWidth:f.width})),o.push(y||f.icon),{children:o,attributes:s}}}},c0={mixout:function(){return{layer:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.classes,f=s===void 0?[]:s;return Si({type:"layer"},function(){wn("beforeDOMElementCreation",{assembler:n,params:o});var c=[];return n(function(p){Array.isArray(p)?p.map(function(v){c=c.concat(v.abstract)}):c=c.concat(p.abstract)}),[{tag:"span",attributes:{class:["".concat(G.cssPrefix,"-layers")].concat(_t(f)).join(" ")},children:c}]})}}}},d0={mixout:function(){return{counter:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o.title;var s=o.classes,f=s===void 0?[]:s,c=o.attributes,p=c===void 0?{}:c,v=o.styles,y=v===void 0?{}:v;return Si({type:"counter",content:n},function(){return wn("beforeDOMElementCreation",{content:n,params:o}),qm({content:n.toString(),extra:{attributes:p,styles:y,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(_t(f))}})})}}}},h0={mixout:function(){return{text:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.transform,f=s===void 0?Pt:s,c=o.classes,p=c===void 0?[]:c,v=o.attributes,y=v===void 0?{}:v,w=o.styles,S=w===void 0?{}:w;return Si({type:"text",content:n},function(){return wn("beforeDOMElementCreation",{content:n,params:o}),tl({content:n,transform:B(B({},Pt),f),extra:{attributes:y,styles:S,classes:["".concat(G.cssPrefix,"-layers-text")].concat(_t(p))}})})}}},provides:function(r){r.generateLayersText=function(n,o){var s=o.transform,f=o.extra,c=null,p=null;if(Zu){var v=parseInt(getComputedStyle(n).fontSize,10),y=n.getBoundingClientRect();c=y.width/v,p=y.height/v}return Promise.resolve([n,tl({content:n.innerHTML,width:c,height:p,transform:s,extra:f,watchable:!0})])}}},hl=new RegExp('"',"ug"),pl=[1105920,1112319],gl=B(B(B(B({},{FontAwesome:{normal:"fas",400:"fas"}}),Kg),em),iv),_o=Object.keys(gl).reduce(function(a,r){return a[r.toLowerCase()]=gl[r],a},{}),p0=Object.keys(_o).reduce(function(a,r){var n=_o[r];return a[r]=n[900]||_t(Object.entries(n))[0][1],a},{});function g0(a){var r=a.replace(hl,"");return $f(_t(r)[0]||"")}function v0(a){var r=a.getPropertyValue("font-feature-settings").includes("ss01"),n=a.getPropertyValue("content"),o=n.replace(hl,""),s=o.codePointAt(0),f=s>=pl[0]&&s<=pl[1],c=o.length===2?o[0]===o[1]:!1;return f||c||r}function m0(a,r){var n=a.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(r),s=isNaN(o)?"normal":o;return(_o[n]||{})[s]||p0[n]}function vl(a,r){var n="".concat(tm).concat(r.replace(":","-"));return new Promise(function(o,s){if(a.getAttribute(n)!==null)return o();var f=Un(a.children),c=f.filter(function(ce){return ce.getAttribute(Va)===r})[0],p=tn.getComputedStyle(a,r),v=p.getPropertyValue("font-family"),y=v.match(om),w=p.getPropertyValue("font-weight"),S=p.getPropertyValue("content");if(c&&!y)return a.removeChild(c),o();if(y&&S!=="none"&&S!==""){var C=p.getPropertyValue("content"),x=m0(v,w),I=g0(C),T=y[0].startsWith("FontAwesome"),E=v0(p),L=lo(x,I),W=L;if(T){var z=Am(I);z.iconName&&z.prefix&&(L=z.iconName,x=z.prefix)}if(L&&!E&&(!c||c.getAttribute(Xa)!==x||c.getAttribute(Za)!==W)){a.setAttribute(n,W),c&&a.removeChild(c);var Z=i0(),R=Z.extra;R.attributes[Va]=r,mo(L,x).then(function(ce){var N=po(B(B({},Z),{},{icons:{main:ce,mask:Vf()},prefix:x,iconName:W,extra:R,watchable:!0})),D=be.createElementNS("http://www.w3.org/2000/svg","svg");r==="::before"?a.insertBefore(D,a.firstChild):a.appendChild(D),D.outerHTML=N.map(function(q){return Ir(q)}).join(`
575
- `),a.removeAttribute(n),o()}).catch(s)}else o()}else o()})}function y0(a){return Promise.all([vl(a,"::before"),vl(a,"::after")])}function b0(a){return a.parentNode!==document.head&&!~rm.indexOf(a.tagName.toUpperCase())&&!a.getAttribute(Va)&&(!a.parentNode||a.parentNode.tagName!=="svg")}var w0=function(r){return!!r&&Af.some(function(n){return r.includes(n)})},S0=function(r){if(!r)return[];var n=new Set,o=r.split(/,(?![^()]*\))/).map(function(v){return v.trim()});o=o.flatMap(function(v){return v.includes("(")?v:v.split(",").map(function(y){return y.trim()})});var s=di(o),f;try{for(s.s();!(f=s.n()).done;){var c=f.value;if(w0(c)){var p=Af.reduce(function(v,y){return v.replace(y,"")},c);p!==""&&p!=="*"&&n.add(p)}}}catch(v){s.e(v)}finally{s.f()}return n};function ml(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wt){var n;if(r)n=a;else if(G.searchPseudoElementsFullScan)n=a.querySelectorAll("*");else{var o=new Set,s=di(document.styleSheets),f;try{for(s.s();!(f=s.n()).done;){var c=f.value;try{var p=di(c.cssRules),v;try{for(p.s();!(v=p.n()).done;){var y=v.value,w=S0(y.selectorText),S=di(w),C;try{for(S.s();!(C=S.n()).done;){var x=C.value;o.add(x)}}catch(T){S.e(T)}finally{S.f()}}}catch(T){p.e(T)}finally{p.f()}}catch(T){G.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(c.href," (").concat(T.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(T){s.e(T)}finally{s.f()}if(!o.size)return;var I=Array.from(o).join(", ");try{n=a.querySelectorAll(I)}catch{}}return new Promise(function(T,E){var L=Un(n).filter(b0).map(y0),W=bo.begin("searchPseudoElements");ul(),Promise.all(L).then(function(){W(),So(),T()}).catch(function(){W(),So(),E()})})}}var _0={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ml,n}}},provides:function(r){r.pseudoElements2svg=function(n){var o=n.node,s=o===void 0?be:o;G.searchPseudoElements&&ml(s)}}},yl=!1,x0={mixout:function(){return{dom:{unwatch:function(){ul(),yl=!0}}}},hooks:function(){return{bootstrap:function(){fl(co("mutationObserverCallbacks",{}))},noAuto:function(){e0()},watch:function(n){var o=n.observeMutationsRoot;yl?So():fl(co("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},bl=function(r){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return r.toLowerCase().split(" ").reduce(function(o,s){var f=s.toLowerCase().split("-"),c=f[0],p=f.slice(1).join("-");if(c&&p==="h")return o.flipX=!0,o;if(c&&p==="v")return o.flipY=!0,o;if(p=parseFloat(p),isNaN(p))return o;switch(c){case"grow":o.size=o.size+p;break;case"shrink":o.size=o.size-p;break;case"left":o.x=o.x-p;break;case"right":o.x=o.x+p;break;case"up":o.y=o.y-p;break;case"down":o.y=o.y+p;break;case"rotate":o.rotate=o.rotate+p;break}return o},n)},I0={mixout:function(){return{parse:{transform:function(n){return bl(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,o){var s=o.getAttribute("data-fa-transform");return s&&(n.transform=bl(s)),n}}},provides:function(r){r.generateAbstractTransformGrouping=function(n){var o=n.main,s=n.transform,f=n.containerWidth,c=n.iconWidth,p={transform:"translate(".concat(f/2," 256)")},v="translate(".concat(s.x*32,", ").concat(s.y*32,") "),y="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),w="rotate(".concat(s.rotate," 0 0)"),S={transform:"".concat(v," ").concat(y," ").concat(w)},C={transform:"translate(".concat(c/2*-1," -256)")},x={outer:p,inner:S,path:C};return{tag:"g",attributes:B({},x.outer),children:[{tag:"g",attributes:B({},x.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:B(B({},o.icon.attributes),x.path)}]}]}}}},xo={x:0,y:0,width:"100%",height:"100%"};function wl(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.attributes&&(a.attributes.fill||r)&&(a.attributes.fill="black"),a}function T0(a){return a.tag==="g"?a.children:[a]}var E0={hooks:function(){return{parseNodeAttributes:function(n,o){var s=o.getAttribute("data-fa-mask"),f=s?wi(s.split(" ").map(function(c){return c.trim()})):Vf();return f.prefix||(f.prefix=nn()),n.mask=f,n.maskId=o.getAttribute("data-fa-mask-id"),n}}},provides:function(r){r.generateAbstractMask=function(n){var o=n.children,s=n.attributes,f=n.main,c=n.mask,p=n.maskId,v=n.transform,y=f.width,w=f.icon,S=c.width,C=c.icon,x=mm({transform:v,containerWidth:S,iconWidth:y}),I={tag:"rect",attributes:B(B({},xo),{},{fill:"white"})},T=w.children?{children:w.children.map(wl)}:{},E={tag:"g",attributes:B({},x.inner),children:[wl(B({tag:w.tag,attributes:B(B({},w.attributes),x.path)},T))]},L={tag:"g",attributes:B({},x.outer),children:[E]},W="mask-".concat(p||Df()),z="clip-".concat(p||Df()),Z={tag:"mask",attributes:B(B({},xo),{},{id:W,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[I,L]},R={tag:"defs",children:[{tag:"clipPath",attributes:{id:z},children:T0(C)},Z]};return o.push(R,{tag:"rect",attributes:B({fill:"currentColor","clip-path":"url(#".concat(z,")"),mask:"url(#".concat(W,")")},xo)}),{children:o,attributes:s}}}},A0={provides:function(r){var n=!1;tn.matchMedia&&(n=tn.matchMedia("(prefers-reduced-motion: reduce)").matches),r.missingIconAbstract=function(){var o=[],s={fill:"currentColor"},f={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:B(B({},s),{},{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({},s),{},{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;"})}),o.push(p),o.push({tag:"path",attributes:B(B({},s),{},{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||o.push({tag:"path",attributes:B(B({},s),{},{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:o}}}},O0={hooks:function(){return{parseNodeAttributes:function(n,o){var s=o.getAttribute("data-fa-symbol"),f=s===null?!1:s===""?!0:s;return n.symbol=f,n}}}},C0=[wm,l0,c0,d0,h0,_0,x0,I0,E0,A0,O0];km(C0,{mixoutsTo:tt}),tt.noAuto;var Ar=tt.config;tt.library,tt.dom;var Sl=tt.parse;tt.findIconDefinition,tt.toHtml;var N0=tt.icon;tt.layer,tt.text,tt.counter;function P0(a){return a=a-0,a===a}function _l(a){return P0(a)?a:(a=a.replace(/[_-]+(.)?/g,(r,n)=>n?n.toUpperCase():""),a.charAt(0).toLowerCase()+a.slice(1))}function L0(a){return a.charAt(0).toUpperCase()+a.slice(1)}var qn=new Map,D0=1e3;function M0(a){if(qn.has(a))return qn.get(a);const r={};let n=0;const o=a.length;for(;n<o;){const s=a.indexOf(";",n),f=s===-1?o:s,c=a.slice(n,f).trim();if(c){const p=c.indexOf(":");if(p>0){const v=c.slice(0,p).trim(),y=c.slice(p+1).trim();if(v&&y){const w=_l(v);r[w.startsWith("webkit")?L0(w):w]=y}}}n=f+1}if(qn.size===D0){const s=qn.keys().next().value;s&&qn.delete(s)}return qn.set(a,r),r}function xl(a,r,n={}){if(typeof r=="string")return r;const o=(r.children||[]).map(w=>xl(a,w)),s=r.attributes||{},f={};for(const[w,S]of Object.entries(s))switch(!0){case w==="class":{f.className=S;break}case w==="style":{f.style=M0(String(S));break}case w.startsWith("aria-"):case w.startsWith("data-"):{f[w.toLowerCase()]=S;break}default:f[_l(w)]=S}const{style:c,role:p,"aria-label":v,...y}=n;return c&&(f.style=f.style?{...f.style,...c}:c),p&&(f.role=p),v&&(f["aria-label"]=v,f["aria-hidden"]="false"),a(r.tag,{...y,...f},...o)}var F0=xl.bind(null,O.createElement),Il=(a,r)=>{const n=O.useId();return a||(r?n:void 0)},k0=class{constructor(a="react-fontawesome"){this.enabled=!1;let r=!1;try{r=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=a,this.enabled=r}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 W0="searchPseudoElementsFullScan"in Ar?"7.0.0":"6.0.0",B0=Number.parseInt(W0)>=7,Or="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"},R0={left:"fa-pull-left",right:"fa-pull-right"},$0={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},U0={"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 z0(a){const r=Ar.cssPrefix||Ar.familyPrefix||Or;return r===Or?a:a.replace(new RegExp(String.raw`(?<=^|\s)${Or}-`,"g"),`${r}-`)}function H0(a){const{beat:r,fade:n,beatFade:o,bounce:s,shake:f,spin:c,spinPulse:p,spinReverse:v,pulse:y,fixedWidth:w,inverse:S,border:C,flip:x,size:I,rotation:T,pull:E,swapOpacity:L,rotateBy:W,widthAuto:z,className:Z}=a,R=[];return Z&&R.push(...Z.split(" ")),r&&R.push($t.beat),n&&R.push($t.fade),o&&R.push($t.beatFade),s&&R.push($t.bounce),f&&R.push($t.shake),c&&R.push($t.spin),v&&R.push($t.spinReverse),p&&R.push($t.spinPulse),y&&R.push($t.pulse),w&&R.push(Ut.fixedWidth),S&&R.push(Ut.inverse),C&&R.push(Ut.border),x===!0&&R.push(Ut.flip),(x==="horizontal"||x==="both")&&R.push(Ut.flipHorizontal),(x==="vertical"||x==="both")&&R.push(Ut.flipVertical),I!=null&&R.push(U0[I]),T!=null&&T!==0&&R.push($0[T]),E!=null&&R.push(R0[E]),L&&R.push(Ut.swapOpacity),B0?(W&&R.push(Ut.rotateBy),z&&R.push(Ut.widthAuto),(Ar.cssPrefix||Ar.familyPrefix||Or)===Or?R:R.map(z0)):R}var q0=a=>typeof a=="object"&&"icon"in a&&!!a.icon;function Tl(a){if(a)return q0(a)?a:Sl.icon(a)}function j0(a){return Object.keys(a)}var El=new k0("FontAwesomeIcon"),Al={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},G0=new Set(Object.keys(Al)),jn=O.forwardRef((a,r)=>{const n={...Al,...a},{icon:o,mask:s,symbol:f,title:c,titleId:p,maskId:v,transform:y}=n,w=Il(v,!!s),S=Il(p,!!c),C=Tl(o);if(!C)return El.error("Icon lookup is undefined",o),null;const x=H0(n),I=typeof y=="string"?Sl.transform(y):y,T=Tl(s),E=N0(C,{...x.length>0&&{classes:x},...I&&{transform:I},...T&&{mask:T},symbol:f,title:c,titleId:S,maskId:w});if(!E)return El.error("Could not find icon",C),null;const{abstract:L}=E,W={ref:r};for(const z of j0(n))G0.has(z)||(W[z]=n[z]);return F0(L[0],W)});jn.displayName="FontAwesomeIcon";var Y0={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"]},J0={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"]},Ol={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"]},K0={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"]};function V0({layoutId:a,justId:r,winInfo:n}){console.log("TabTitle justId",r);const[o,s]=ka(),[f]=O.useState({x:0,y:0}),c=Nt(a),p=c.getTabTitleTooltip(r),v=w=>{c.removeWin({justId:w})},y=(w,S)=>{c.activeWin({justId:S})};return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"just-icon",onClick:w=>y(w,r),title:p,children:n.getTabIcon(r,a)}),$.jsx("div",{className:"just-title",onClick:w=>y(w,r),title:p,children:c.getTabTitle(r)??r.title}),$.jsx("div",{className:"just-icon just-close",onClick:()=>v(r),children:$.jsx(jn,{icon:Ol})}),$.jsx(Nu,{state:o.state,endTransition:o.endTransition,anchorPoint:f,onClose:()=>s(!1),children:$.jsxs(li,{onClick:()=>v(r),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close"}),$.jsx("div",{className:"just-icon"})]})})]})}const Cl=kt(V0);function X0(a){const{layoutId:r,isFullScreenView:n,dndAccept:o,winInfo:s,justBranch:f,justId:c,justStack:p,rect:v}=a,y=O.useRef(null),[,w]=ka(),[,S]=O.useState({x:0,y:0}),C=Nt(r),[{isDragging:x},I]=lp({type:c.viewId,item:{justBranch:f,justId:c,index:-1},collect:L=>({isDragging:L.isDragging()})}),[,T]=Ea({accept:o,collect(L){return{handlerId:L.getHandlerId()}},hover(L,W){if(!y.current||c===L.justId)return;const z=y.current.getBoundingClientRect(),Z=W.getClientOffset(),R=(z.right-z.left)/2,ce=Z.x-z.left,N=L.justId,D=c,q=p.tabs.filter(Y=>!he.isEquals(Y,N));let ee=he.indexOf(q,D);ce>R&&(ee+=1),L.pos="stack",L.index=ee}});O.useEffect(()=>{if(he.isEquals(c,C.lastActiveId??null)){if(y.current==null||v==null)return;const L=y.current.getBoundingClientRect();(v.left>L.left||v.right<L.right)&&y.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[C.lastActiveTm]),O.useLayoutEffect(()=>{y.current&&I(T(y))},[T,I]);const E=O.useCallback(L=>{L.preventDefault(),S({x:L.clientX,y:L.clientY}),w(!0)},[w]);return $.jsx("div",{className:wt("just-draggable-title","just-title-menus",{dragging:x,"just-active":he.isEquals(p.active,c),"last-active":he.isEquals(C.lastActiveId,c)}),ref:y,onContextMenu:E,children:s.getTabTitle?s.getTabTitle({justId:c,layoutId:r,justBranch:f,isFullScreenView:n,winInfo:s}):$.jsx(Cl,{justId:c,layoutId:r,justBranch:f,isFullScreenView:n,winInfo:s})})}const Nl=kt(X0);function Z0({layoutId:a,justBranch:r,isFullScreenView:n}){const o=Nt(a),s=()=>{console.log("closeAllTabs justBranch",r),o.removeAllTabs({branch:r})},f=async(c=!1)=>{n?o.setLayout(null):(o.setFullScreenLayoutByBranch(r),o.setFullScreenHideTitle(c))};return $.jsxs($.Fragment,{children:[$.jsxs(li,{className:"just-menu-item",onClick:()=>s(),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close All"}),$.jsx("div",{className:"just-icon"})]}),$.jsxs(li,{className:"just-menu-item",onClick:()=>f(!0),children:[$.jsx("div",{className:"just-icon",children:$.jsx(jn,{icon:Y0})}),$.jsx("div",{className:"just-title",children:n?"F11":"Full"}),$.jsx("div",{className:"just-icon"})]})]})}const Pl=kt(Z0);function Q0({layoutId:a,isFullScreenView:r,dndAccept:n,justBranch:o,justStack:s,getWinInfo:f,getTabMenu:c}){const p=O.useRef(null),[v,y]=O.useState(null),w=Nt(a),S=E=>{w.removeWin({justId:E})},C=E=>{w.activeWin({justId:E})},x=(E,L)=>{w.moveWin({pos:"stack",justId:L.justId,branch:o,index:L.index??-1})},[{isOver:I},T]=Ea(()=>({accept:n,collect:E=>({isOver:E.isOver()}),drop(E,L){x(L.getItemType(),L.getItem())},hover(E,L){p.current&&(E.index=-1)}}),[s]);return O.useLayoutEffect(()=>{p.current&&T(p)},[T]),O.useEffect(()=>{if(p.current===null)return;function E(){if(p.current===null)return;const W=p.current.getBoundingClientRect()??null;y(W)}E();const L=new ResizeObserver(E);return L.observe(p.current),window.addEventListener("scroll",E,!0),()=>{L.disconnect(),window.removeEventListener("scroll",E,!0)}},[]),$.jsxs("div",{className:wt("just-win-title"),tabIndex:1,children:[$.jsx("div",{className:wt("just-title-list",{"is-over":I}),ref:p,children:s.tabs.map(E=>$.jsx(Nl,{layoutId:a,isFullScreenView:r,dndAccept:n,rect:v,justId:E,justBranch:o,justStack:s,winInfo:f(E)},[...o,he.toString(E)].join(",")))}),$.jsxs("div",{className:"just-title-menus",children:[$.jsx(Mu,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(jn,{icon:K0})}),children:s.tabs.map(E=>$.jsxs(li,{className:wt("just-menu-item",{active:he.isEquals(s.active,E)}),children:[$.jsx("div",{className:"just-icon",onClick:()=>C(E),children:f(E).getTabIcon(E,a)}),$.jsx("div",{className:"just-title",onClick:()=>C(E),children:w.getTabTitle(E)??E.title}),$.jsx("div",{className:"just-icon just-close",onClick:L=>{L.stopPropagation(),S(E)},children:$.jsx(jn,{icon:Ol})})]},he.toString(E)))}),$.jsx(Mu,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(jn,{icon:J0})}),children:c?c(a,o,s,r):$.jsx(Pl,{layoutId:a,justBranch:o,justStack:s,isFullScreenView:r})})]})]})}const Ll=kt(Q0);function ey(a){const r=O.useRef(null),{layoutId:n,dndAccept:o,getWinInfo:s,justBranch:f,justStack:c}=a,[p,v]=O.useState(null),y=Nt(n),w=(x,I)=>{I.pos&&(I.pos==="stack"?y.moveWin({pos:I.pos,justId:I.justId,branch:f,index:I.index??-1}):y.moveWin({pos:I.pos,justId:I.justId,branch:f,direction:I.direction??"row"}))},[{isOver:S},C]=Ea(()=>({accept:o,collect:x=>({isOver:x.isOver()}),drop(x,I){r.current&&w(I.getItemType(),I.getItem())},hover(x,I){if(!r.current)return;const T=r.current.getBoundingClientRect(),E=I.getClientOffset(),L=(T.right-T.left)/2,W=(T.bottom-T.top)/2,z=E.x-T.left,Z=E.y-T.top,R=z-L,ce=Z-W,N=Math.abs(R*100/L),D=Math.abs(ce*100/W);if(N<60&&D<60){x.pos="stack";const q={top:T.top,left:T.left,width:T.width,height:T.height};v(q)}else{const q=N>D?"row":"column",Y=Math.sign(q==="row"?R:ce)>0?"second":"first";x.direction=q,x.pos=Y;const ie={top:Y==="second"&&q==="column"?T.top+T.height/2:T.top,left:Y==="second"&&q==="row"?T.left+T.width/2:T.left,width:q==="row"?T.width/2:T.width,height:q==="column"?T.height/2:T.height};v(ie)}}}),[c]);return O.useLayoutEffect(()=>{r.current&&C(r)},[C]),$.jsxs("div",{className:wt("just-win-body",{isOver:S,"last-active":he.isEquals(c.active,y.lastActiveId)}),ref:r,children:[c.tabs.map(x=>$.jsx(O.Activity,{mode:he.isEquals(c.active,x)?"visible":"hidden",children:s(x).getView(x,n)},he.toString(x))),S&&p!=null&&$.jsx("div",{className:"just-overlay",style:{top:p.top,left:p.left,width:`${p.width}px`,height:`${p.height}px`}})]})}const Dl=kt(ey);function ty({layoutId:a,isFullScreenView:r,hideTitle:n,dndAccept:o,justBranch:s,justStack:f,getWinInfo:c,getTabMenu:p}){const v=Nt(a),y=v.fullScreenHideTitle,w=n!==!0,S=()=>{f.active&&v.activeWin({justId:f.active})};return $.jsxs("div",{className:"just-win",onFocusCapture:S,tabIndex:1,children:[w&&!y&&$.jsx(Ll,{layoutId:a,isFullScreenView:r,dndAccept:o,justBranch:s,justStack:f,getWinInfo:c,getTabMenu:p}),$.jsx(Dl,{layoutId:a,dndAccept:o,justBranch:s,justStack:f,getWinInfo:c})]})}const Ml=kt(ty);var Io,Fl;function To(){if(Fl)return Io;Fl=1;function a(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}return Io=a,Io}var Eo,kl;function ny(){if(kl)return Eo;kl=1;var a=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt;return Eo=a,Eo}var Ao,Wl;function Bl(){if(Wl)return Ao;Wl=1;var a=ny(),r=typeof self=="object"&&self&&self.Object===Object&&self,n=a||r||Function("return this")();return Ao=n,Ao}var Oo,Rl;function ry(){if(Rl)return Oo;Rl=1;var a=Bl(),r=function(){return a.Date.now()};return Oo=r,Oo}var Co,$l;function iy(){if($l)return Co;$l=1;var a=/\s/;function r(n){for(var o=n.length;o--&&a.test(n.charAt(o)););return o}return Co=r,Co}var No,Ul;function ay(){if(Ul)return No;Ul=1;var a=iy(),r=/^\s+/;function n(o){return o&&o.slice(0,a(o)+1).replace(r,"")}return No=n,No}var Po,zl;function Hl(){if(zl)return Po;zl=1;var a=Bl(),r=a.Symbol;return Po=r,Po}var Lo,ql;function oy(){if(ql)return Lo;ql=1;var a=Hl(),r=Object.prototype,n=r.hasOwnProperty,o=r.toString,s=a?a.toStringTag:void 0;function f(c){var p=n.call(c,s),v=c[s];try{c[s]=void 0;var y=!0}catch{}var w=o.call(c);return y&&(p?c[s]=v:delete c[s]),w}return Lo=f,Lo}var Do,jl;function sy(){if(jl)return Do;jl=1;var a=Object.prototype,r=a.toString;function n(o){return r.call(o)}return Do=n,Do}var Mo,Gl;function uy(){if(Gl)return Mo;Gl=1;var a=Hl(),r=oy(),n=sy(),o="[object Null]",s="[object Undefined]",f=a?a.toStringTag:void 0;function c(p){return p==null?p===void 0?s:o:f&&f in Object(p)?r(p):n(p)}return Mo=c,Mo}var Fo,Yl;function fy(){if(Yl)return Fo;Yl=1;function a(r){return r!=null&&typeof r=="object"}return Fo=a,Fo}var ko,Jl;function ly(){if(Jl)return ko;Jl=1;var a=uy(),r=fy(),n="[object Symbol]";function o(s){return typeof s=="symbol"||r(s)&&a(s)==n}return ko=o,ko}var Wo,Kl;function Vl(){if(Kl)return Wo;Kl=1;var a=ay(),r=To(),n=ly(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;function v(y){if(typeof y=="number")return y;if(n(y))return o;if(r(y)){var w=typeof y.valueOf=="function"?y.valueOf():y;y=r(w)?w+"":w}if(typeof y!="string")return y===0?y:+y;y=a(y);var S=f.test(y);return S||c.test(y)?p(y.slice(2),S?2:8):s.test(y)?o:+y}return Wo=v,Wo}var Bo,Xl;function cy(){if(Xl)return Bo;Xl=1;var a=To(),r=ry(),n=Vl(),o="Expected a function",s=Math.max,f=Math.min;function c(p,v,y){var w,S,C,x,I,T,E=0,L=!1,W=!1,z=!0;if(typeof p!="function")throw new TypeError(o);v=n(v)||0,a(y)&&(L=!!y.leading,W="maxWait"in y,C=W?s(n(y.maxWait)||0,v):C,z="trailing"in y?!!y.trailing:z);function Z(K){var We=w,Ye=S;return w=S=void 0,E=K,x=p.apply(Ye,We),x}function R(K){return E=K,I=setTimeout(D,v),L?Z(K):x}function ce(K){var We=K-T,Ye=K-E,Je=v-We;return W?f(Je,C-Ye):Je}function N(K){var We=K-T,Ye=K-E;return T===void 0||We>=v||We<0||W&&Ye>=C}function D(){var K=r();if(N(K))return q(K);I=setTimeout(D,ce(K))}function q(K){return I=void 0,z&&w?Z(K):(w=S=void 0,x)}function ee(){I!==void 0&&clearTimeout(I),E=0,w=T=S=I=void 0}function Y(){return I===void 0?x:q(r())}function ie(){var K=r(),We=N(K);if(w=arguments,S=this,T=K,We){if(I===void 0)return R(T);if(W)return clearTimeout(I),I=setTimeout(D,v),Z(T)}return I===void 0&&(I=setTimeout(D,v)),x}return ie.cancel=ee,ie.flush=Y,ie}return Bo=c,Bo}var Ro,Zl;function dy(){if(Zl)return Ro;Zl=1;var a=cy(),r=To(),n="Expected a function";function o(s,f,c){var p=!0,v=!0;if(typeof s!="function")throw new TypeError(n);return r(c)&&(p="leading"in c?!!c.leading:p,v="trailing"in c?!!c.trailing:v),a(s,f,{leading:p,maxWait:f,trailing:v})}return Ro=o,Ro}var hy=dy();const py=gr(hy);var $o,Ql;function gy(){if(Ql)return $o;Ql=1;function a(r,n,o){return r===r&&(o!==void 0&&(r=r<=o?r:o),n!==void 0&&(r=r>=n?r:n)),r}return $o=a,$o}var Uo,ec;function vy(){if(ec)return Uo;ec=1;var a=gy(),r=Vl();function n(o,s,f){return f===void 0&&(f=s,s=void 0),f!==void 0&&(f=r(f),f=f===f?f:0),s!==void 0&&(s=r(s),s=s===s?s:0),a(r(o),s,f)}return Uo=n,Uo}var my=vy();const zo=gr(my),yy=1e3/30;function by({node:a,containerRef:r,onChange:n,onRelease:o}){const s=O.useRef(null),[f,c]=O.useState(!1),p=()=>{f||(s.current.ownerDocument.addEventListener("mousemove",S,!0),s.current.ownerDocument.addEventListener("mouseup",w,!0),c(!0))},v=()=>{s.current&&(s.current.ownerDocument.removeEventListener("mousemove",S,!0),s.current.ownerDocument.removeEventListener("mouseup",w,!0),c(!1))},y=I=>{I.button===0&&(I.preventDefault(),p())},w=I=>{if(v(),r==null)return;const T=C(I,a,r);T!==null&&o(T)},S=I=>{I.preventDefault(),r!=null&&x(I,a,r)},C=(I,T,E)=>{if(E.current==null)return null;const L=E.current.getBoundingClientRect(),W=T.direction==="row"?I.clientX:I.clientY,z=T.direction==="row"?L.left:L.top,Z=T.direction==="row"?L.width:L.height,R=zo(W-z,0,Z),ce=zo(Z-R,0,Z),N=zo(R*100/Z,0,100);return T.type==="split-percentage"?{type:T.type,size:N}:T.type==="split-pixels"?T.primary==="first"?{type:"split-pixels",primary:"first",size:R}:{type:"split-pixels",primary:"second",size:ce}:null},x=py((I,T,E)=>{if(E.current==null)return null;const L=C(I,T,E);L!==null&&n(L)},yy);return O.useEffect(()=>{}),$.jsx("div",{ref:s,className:wt("just-splitter"),onMouseDown:y})}const tc=kt(by);function Ho({layoutId:a,isFullScreenView:r,hideTitle:n,dndAccept:o,node:s,justBranch:f,getWinInfo:c,getTabMenu:p}){const v=O.useRef(null),y=Nt(a),w=({size:C})=>{y.updateResize({branch:f,size:C})},S=(C,x)=>C.type==="split-percentage"&&x==="first"?{flexBasis:`calc(${C.size}% - 3px)`,[C.direction==="row"?"minWidth":"minHeight"]:`${C.minSize??0}%`}:C.type==="split-pixels"&&x===C.primary?{flexBasis:`${C.size}px`,[C.direction==="row"?"minWidth":"minHeight"]:`${C.minSize??0}px`}:{};return $.jsxs("div",{ref:v,className:wt("just-node"),children:[s?.type==="stack"&&$.jsx(Ml,{hideTitle:s.hideTitle??n,layoutId:a,isFullScreenView:r,dndAccept:s.dndAccept??o,justStack:s,justBranch:f,getWinInfo:c,getTabMenu:p}),(s?.type==="split-percentage"||s?.type==="split-pixels")&&$.jsxs("div",{className:wt(s.type,{"just-column":s.direction==="column","just-row":s.direction==="row"}),children:[$.jsx(O.Activity,{mode:s.type==="split-pixels"&&s.primary==="first"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:wt("just-first",{"just-primary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first","just-secondary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first")}),style:S(s,"first"),children:$.jsx(Ho,{layoutId:a,isFullScreenView:r,hideTitle:s.hideTitle??n,dndAccept:s.dndAccept??o,node:s.first,justBranch:[...f,"first"],getWinInfo:c,getTabMenu:p})})}),!(s.type==="split-pixels"&&(s.noSplitter===!0||s.primaryHide===!0))&&$.jsx(tc,{layoutId:a,node:s,justBranch:f,containerRef:v,onChange:w,onRelease:w}),$.jsx(O.Activity,{mode:s.type==="split-pixels"&&s.primary==="second"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:wt("just-second",{"just-primary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"),"just-secondary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"}),style:S(s,"second"),children:$.jsx(Ho,{layoutId:a,isFullScreenView:r,hideTitle:s.hideTitle??n,dndAccept:s.dndAccept??o,node:s.second,justBranch:[...f,"second"],getWinInfo:c,getTabMenu:p})})})]},`JustNode-${f.join(",")}`)]})}const qo=kt(Ho);function wy({layoutId:a,getWinInfo:r,getTabMenu:n,initialValue:o}){const s=`${a}_FULLSCREEN`,f=Nt(a),c=Nt(s);return O.useEffect(()=>{c.layout===null&&(f.setFullScreenLayoutByBranch(null),f.setFullScreenHideTitle(!1))},[c.layout]),O.useEffect(()=>{f.setLayout(o),f.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),O.useEffect(()=>{const p=()=>{},v=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",v),document.addEventListener("fullscreenchange",p),()=>{window.removeEventListener("keydown",v),document.removeEventListener("fullscreenchange",p)}},[]),O.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",f.fullScreenLayout),c.setLayout(f.fullScreenLayout),f.lastActiveId&&c.activeWin({justId:f.lastActiveId})},[f.fullScreenLayout]),O.useEffect(()=>{c.setFullScreenHideTitle(f.fullScreenHideTitle)},[f.fullScreenHideTitle]),$.jsxs("div",{className:wt("just-layout"),children:[f.fullScreenLayout===null&&$.jsx(qo,{layoutId:a,isFullScreenView:!1,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:r,getTabMenu:n}),f.fullScreenLayout!==null&&$.jsx(qo,{layoutId:s,isFullScreenView:!0,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:r,getTabMenu:n})]})}const Sy=kt(wy);de.JUST_LAYOUT_TYPES=Ft,de.JustDraggableTitle=Nl,de.JustLayoutView=Sy,de.JustNodeView=qo,de.JustSplitter=tc,de.JustTabMenu=Pl,de.JustTabTitle=Cl,de.JustUtil=he,de.JustWinBodyView=Dl,de.JustWinTitleView=Ll,de.JustWinView=Ml,de.justLayoutModule=Rh,de.stableStringify=fu,de.useJustLayoutStore=Nt,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));
573
+ }`;function wf(){var a=lf,i=cf,n=G.cssPrefix,o=G.replacementClass,u=Ig;if(n!==a||o!==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(o))}return u}var Sf=!1;function Xa(){G.autoAddCss&&!Sf&&(Sg(wf()),Sf=!0)}var Og={mixout:function(){return{dom:{css:wf,insertCss:Xa}}},hooks:function(){return{beforeDOMElementCreation:function(){Xa()},beforeI2svg:function(){Xa()}}}},Rt=en||{};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],xf=[],Ef=function(){be.removeEventListener("DOMContentLoaded",Ef),gi=1,xf.map(function(i){return i()})},gi=!1;Wt&&(gi=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),gi||be.addEventListener("DOMContentLoaded",Ef));function Cg(a){Wt&&(gi?setTimeout(a,0):xf.push(a))}function _r(a){var i=a.tag,n=a.attributes,o=n===void 0?{}:n,u=a.children,f=u===void 0?[]:u;return typeof a=="string"?_f(a):"<".concat(i," ").concat(Eg(o),">").concat(f.map(_r).join(""),"</").concat(i,">")}function Af(a,i,n){if(a&&a[i]&&a[i][n])return{prefix:i,iconName:n,icon:a[i][n]}}var Va=function(i,n,o,u){var f=Object.keys(i),c=f.length,p=n,g,y,w;for(o===void 0?(g=1,w=i[f[0]]):(g=0,w=o);g<c;g++)y=f[g],w=p(w,i[y],y,i);return w};function Tf(a){return St(a).length!==1?null:a.codePointAt(0).toString(16)}function If(a){return Object.keys(a).reduce(function(i,n){var o=a[n],u=!!o.icon;return u?i[o.iconName]=o.icon:i[n]=o,i},{})}function Za(a,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.skipHooks,u=o===void 0?!1:o,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"&&Za("fa",i)}var wr=xt.styles,Ng=xt.shims,Of=Object.keys(ja),Lg=Of.reduce(function(a,i){return a[i]=Object.keys(ja[i]),a},{}),Qa=null,Cf={},Nf={},Lf={},Pf={},Ff={};function Pg(a){return~mg.indexOf(a)}function Fg(a,i){var n=i.split("-"),o=n[0],u=n.slice(1).join("-");return o===a&&u!==""&&!Pg(u)?u:null}var Mf=function(){var i=function(f){return Va(wr,function(c,p,g){return c[g]=Va(p,f,{}),c},{})};Cf=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}),Nf=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}),Ff=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 wr||G.autoFetchSvg,o=Va(Ng,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:{}});Lf=o.names,Pf=o.unicodes,Qa=mi(G.styleDefault,{family:G.familyDefault})};wg(function(a){Qa=mi(a.styleDefault,{family:G.familyDefault})}),Mf();function eo(a,i){return(Cf[a]||{})[i]}function Mg(a,i){return(Nf[a]||{})[i]}function mn(a,i){return(Ff[a]||{})[i]}function kf(a){return Lf[a]||{prefix:null,iconName:null}}function kg(a){var i=Pf[a],n=eo("fas",a);return i||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function tn(){return Qa}var Df=function(){return{prefix:null,iconName:null,rest:[]}};function Dg(a){var i=Me,n=Of.reduce(function(o,u){return o[u]="".concat(G.cssPrefix,"-").concat(u),o},{});return rf.forEach(function(o){(a.includes(n[o])||a.some(function(u){return Lg[o].includes(u)}))&&(i=o)}),i}function mi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.family,o=n===void 0?Me:n,u=dg[o][a];if(o===gr&&!a)return"fad";var f=gf[o][a]||gf[o][u],c=a in xt.styles?a:null,p=f||c||null;return p}function Wg(a){var i=[],n=null;return a.forEach(function(o){var u=Fg(G.cssPrefix,o);u?n=u:o&&i.push(o)}),{iconName:n,rest:i}}function Wf(a){return a.sort().filter(function(i,n,o){return o.indexOf(i)===n})}var Bf=uf.concat(af);function yi(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.skipLookups,o=n===void 0?!1:n,u=null,f=Wf(a.filter(function(E){return Bf.includes(E)})),c=Wf(a.filter(function(E){return!Bf.includes(E)})),p=f.filter(function(E){return u=E,!$u.includes(E)}),g=ci(p,1),y=g[0],w=y===void 0?null:y,_=Dg(f),O=B(B({},Wg(c)),{},{prefix:mi(w,{family:_})});return B(B(B({},O),zg({values:a,family:_,styles:wr,config:G,canonical:O,givenPrefix:u})),Bg(o,u,O))}function Bg(a,i,n){var o=n.prefix,u=n.iconName;if(a||!o||!u)return{prefix:o,iconName:u};var f=i==="fa"?kf(u):{},c=mn(o,u);return u=f.iconName||c||u,o=f.prefix||o,o==="far"&&!wr.far&&wr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:u}}var Rg=rf.filter(function(a){return a!==Me||a!==gr}),$g=Object.keys(Ba).filter(function(a){return a!==Me}).map(function(a){return Object.keys(Ba[a])}).flat();function zg(a){var i=a.values,n=a.family,o=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===gr,_=i.includes("fa-duotone")||i.includes("fad"),O=y.familyDefault==="duotone",E=o.prefix==="fad"||o.prefix==="fa-duotone";if(!w&&(_||O||E)&&(o.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(o.prefix="fab"),!o.prefix&&Rg.includes(n)){var x=Object.keys(p).find(function(T){return $g.includes(T)});if(x||y.autoFetchSvg){var A=iv.get(n).defaultShortPrefixId;o.prefix=A,o.iconName=mn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||f==="fa")&&(o.prefix=tn()||"fas"),o}var Ug=(function(){function a(){Tp(this,a),this.definitions={}}return Op(a,[{key:"add",value:function(){for(var n=this,o=arguments.length,u=new Array(o),f=0;f<o;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]),Za(p,c[p]);var g=ja[Me][p];g&&Za(g,c[p]),Mf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,o){var u=o.prefix&&o.iconName&&o.icon?{0:o}:o;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}}])})(),Rf=[],Rn={},$n={},Hg=Object.keys($n);function qg(a,i){var n=i.mixoutsTo;return Rf=a,Rn={},Object.keys($n).forEach(function(o){Hg.indexOf(o)===-1&&delete $n[o]}),Rf.forEach(function(o){var u=o.mixout?o.mixout():{};if(Object.keys(u).forEach(function(c){typeof u[c]=="function"&&(n[c]=u[c]),di(u[c])==="object"&&Object.keys(u[c]).forEach(function(p){n[c]||(n[c]={}),n[c][p]=u[c][p]})}),o.hooks){var f=o.hooks();Object.keys(f).forEach(function(c){Rn[c]||(Rn[c]=[]),Rn[c].push(f[c])})}o.provides&&o.provides($n)}),n}function to(a,i){for(var n=arguments.length,o=new Array(n>2?n-2:0),u=2;u<n;u++)o[u-2]=arguments[u];var f=Rn[a]||[];return f.forEach(function(c){i=c.apply(null,[i].concat(o))}),i}function yn(a){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];var u=Rn[a]||[];u.forEach(function(f){f.apply(null,n)})}function nn(){var a=arguments[0],i=Array.prototype.slice.call(arguments,1);return $n[a]?$n[a].apply(null,i):void 0}function no(a){a.prefix==="fa"&&(a.prefix="fas");var i=a.iconName,n=a.prefix||tn();if(i)return i=mn(n,i)||i,Af($f.definitions,n,i)||Af(xt.styles,n,i)}var $f=new Ug,jg=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,yn("noAuto")},Gg={i2svg:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt?(yn("beforeI2svg",i),nn("pseudoElements2svg",i),nn("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,Cg(function(){Yg({autoReplaceSvgRoot:n}),yn("watch",i)})}},Jg={icon:function(i){if(i===null)return null;if(di(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:mn(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],o=mi(i[0]);return{prefix:o,iconName:mn(o,n)||n}}if(typeof i=="string"&&(i.indexOf("".concat(G.cssPrefix,"-"))>-1||i.match(hg))){var u=yi(i.split(" "),{skipLookups:!0});return{prefix:u.prefix||tn(),iconName:mn(u.prefix,u.iconName)||u.iconName}}if(typeof i=="string"){var f=tn();return{prefix:f,iconName:mn(f,i)||i}}}},tt={noAuto:jg,config:G,dom:Gg,parse:Jg,library:$f,findIconDefinition:no,toHtml:_r},Yg=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoReplaceSvgRoot,o=n===void 0?be:n;(Object.keys(xt.styles).length>0||G.autoFetchSvg)&&Wt&&G.autoReplaceSvg&&tt.dom.i2svg({node:o})};function bi(a,i){return Object.defineProperty(a,"abstract",{get:i}),Object.defineProperty(a,"html",{get:function(){return a.abstract.map(function(o){return _r(o)})}}),Object.defineProperty(a,"node",{get:function(){if(Wt){var o=be.createElement("div");return o.innerHTML=a.html,o.children}}}),a}function Kg(a){var i=a.children,n=a.main,o=a.mask,u=a.attributes,f=a.styles,c=a.transform;if(Ka(c)&&n.found&&!o.found){var p=n.width,g=n.height,y={x:p/g/2,y:.5};u.style=vi(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 Xg(a){var i=a.prefix,n=a.iconName,o=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:o}]}]}function Vg(a){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(n){return n in a})}function ro(a){var i=a.icons,n=i.main,o=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=o.found?o: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(" "),T={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)})};!Vg(y.attributes)&&!y.attributes["aria-hidden"]&&(T.attributes["aria-hidden"]="true"),_&&(T.attributes[gn]="");var k=B(B({},T),{},{prefix:u,iconName:f,main:n,mask:o,maskId:g,transform:c,symbol:p,styles:B({},y.styles)}),W=o.found&&n.found?nn("generateAbstractMask",k)||{children:[],attributes:{}}:nn("generateAbstractIcon",k)||{children:[],attributes:{}},R=W.children,Z=W.attributes;return k.children=R,k.attributes=Z,p?Xg(k):Kg(k)}function zf(a){var i=a.content,n=a.width,o=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[gn]="");var y=B({},f.styles);Ka(u)&&(y.transform=Tg({transform:u,width:n,height:o}),y["-webkit-transform"]=y.transform);var w=vi(y);w.length>0&&(g.style=w);var _=[];return _.push({tag:"span",attributes:g,children:[i]}),_}function Zg(a){var i=a.content,n=a.extra,o=B(B({},n.attributes),{},{class:n.classes.join(" ")}),u=vi(n.styles);u.length>0&&(o.style=u);var f=[];return f.push({tag:"span",attributes:o,children:[i]}),f}var io=xt.styles;function ao(a){var i=a[0],n=a[1],o=a.slice(4),u=ci(o,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 Qg={found:!1,width:512,height:512};function em(a,i){!pf&&!G.showMissingIcons&&a&&console.error('Icon with name "'.concat(a,'" and prefix "').concat(i,'" is missing.'))}function oo(a,i){var n=i;return i==="fa"&&G.styleDefault!==null&&(i=tn()),new Promise(function(o,u){if(n==="fa"){var f=kf(a)||{};a=f.iconName||a,i=f.prefix||i}if(a&&i&&io[i]&&io[i][a]){var c=io[i][a];return o(ao(c))}em(a,i),o(B(B({},Qg),{},{icon:G.showMissingIcons&&a?nn("missingIconAbstract")||{}:{}}))})}var Uf=function(){},so=G.measurePerformance&&hi&&hi.mark&&hi.measure?hi:{mark:Uf,measure:Uf},Sr='FA "7.1.0"',tm=function(i){return so.mark("".concat(Sr," ").concat(i," begins")),function(){return Hf(i)}},Hf=function(i){so.mark("".concat(Sr," ").concat(i," ends")),so.measure("".concat(Sr," ").concat(i),"".concat(Sr," ").concat(i," begins"),"".concat(Sr," ").concat(i," ends"))},uo={begin:tm,end:Hf},_i=function(){};function qf(a){var i=a.getAttribute?a.getAttribute(gn):null;return typeof i=="string"}function nm(a){var i=a.getAttribute?a.getAttribute(za):null,n=a.getAttribute?a.getAttribute(Ua):null;return i&&n}function rm(a){return a&&a.classList&&a.classList.contains&&a.classList.contains(G.replacementClass)}function im(){if(G.autoReplaceSvg===!0)return wi.replace;var a=wi[G.autoReplaceSvg];return a||wi.replace}function am(a){return be.createElementNS("http://www.w3.org/2000/svg",a)}function om(a){return be.createElement(a)}function jf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ceFn,o=n===void 0?a.tag==="svg"?am:om:n;if(typeof a=="string")return be.createTextNode(a);var u=o(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(jf(c,{ceFn:o}))}),u}function sm(a){var i=" ".concat(a.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var wi={replace:function(i){var n=i[0];if(n.parentNode)if(i[1].forEach(function(u){n.parentNode.insertBefore(jf(u),n)}),n.getAttribute(gn)===null&&G.keepOriginalSource){var o=be.createComment(sm(n));n.parentNode.replaceChild(o,n)}else n.remove()},nest:function(i){var n=i[0],o=i[1];if(~Ya(n).indexOf(G.replacementClass))return wi.replace(i);var u=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var f=o[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:[]});o[0].attributes.class=f.toSvg.join(" "),f.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",f.toNode.join(" "))}var c=o.map(function(p){return _r(p)}).join(`
574
+ `);n.setAttribute(gn,""),n.innerHTML=c}};function Gf(a){a()}function Jf(a,i){var n=typeof i=="function"?i:_i;if(a.length===0)n();else{var o=Gf;G.mutateApproach===lg&&(o=en.requestAnimationFrame||Gf),o(function(){var u=im(),f=uo.begin("mutate");a.map(u),f(),n()})}}var fo=!1;function Yf(){fo=!0}function lo(){fo=!1}var Si=null;function Kf(a){if(Wu&&G.observeMutations){var i=a.treeCallback,n=i===void 0?_i:i,o=a.nodeCallback,u=o===void 0?_i:o,f=a.pseudoElementsCallback,c=f===void 0?_i:f,p=a.observeMutationsRoot,g=p===void 0?be:p;Si=new Wu(function(y){if(!fo){var w=tn();Bn(y).forEach(function(_){if(_.type==="childList"&&_.addedNodes.length>0&&!qf(_.addedNodes[0])&&(G.searchPseudoElements&&c(_.target),n(_.target)),_.type==="attributes"&&_.target.parentNode&&G.searchPseudoElements&&c([_.target],!0),_.type==="attributes"&&qf(_.target)&&~gg.indexOf(_.attributeName))if(_.attributeName==="class"&&nm(_.target)){var O=yi(Ya(_.target)),E=O.prefix,x=O.iconName;_.target.setAttribute(za,E||w),x&&_.target.setAttribute(Ua,x)}else rm(_.target)&&u(_.target)})}}),Wt&&Si.observe(g,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function um(){Si&&Si.disconnect()}function fm(a){var i=a.getAttribute("style"),n=[];return i&&(n=i.split(";").reduce(function(o,u){var f=u.split(":"),c=f[0],p=f.slice(1);return c&&p.length>0&&(o[c]=p.join(":").trim()),o},{})),n}function lm(a){var i=a.getAttribute("data-prefix"),n=a.getAttribute("data-icon"),o=a.innerText!==void 0?a.innerText.trim():"",u=yi(Ya(a));return u.prefix||(u.prefix=tn()),i&&n&&(u.prefix=i,u.iconName=n),u.iconName&&u.prefix||(u.prefix&&o.length>0&&(u.iconName=Mg(u.prefix,a.innerText)||eo(u.prefix,Tf(a.innerText))),!u.iconName&&G.autoFetchSvg&&a.firstChild&&a.firstChild.nodeType===Node.TEXT_NODE&&(u.iconName=a.firstChild.data)),u}function cm(a){var i=Bn(a.attributes).reduce(function(n,o){return n.name!=="class"&&n.name!=="style"&&(n[o.name]=o.value),n},{});return i}function dm(){return{iconName:null,prefix:null,transform:Lt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Xf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=lm(a),o=n.iconName,u=n.prefix,f=n.rest,c=cm(a),p=to("parseNodeAttributes",{},a),g=i.styleParser?fm(a):[];return B({iconName:o,prefix:u,transform:Lt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:f,styles:g,attributes:c}},p)}var hm=xt.styles;function Vf(a){var i=G.autoReplaceSvg==="nest"?Xf(a,{styleParser:!1}):Xf(a);return~i.extra.classes.indexOf(mf)?nn("generateLayersText",a,i):nn("generateSvgReplacementMutation",a,i)}function pm(){return[].concat(St(af),St(uf))}function Zf(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wt)return Promise.resolve();var n=be.documentElement.classList,o=function(_){return n.add("".concat(df,"-").concat(_))},u=function(_){return n.remove("".concat(df,"-").concat(_))},f=G.autoFetchSvg?pm():$u.concat(Object.keys(hm));f.includes("fa")||f.push("fa");var c=[".".concat(mf,":not([").concat(gn,"])")].concat(f.map(function(w){return".".concat(w,":not([").concat(gn,"])")})).join(", ");if(c.length===0)return Promise.resolve();var p=[];try{p=Bn(a.querySelectorAll(c))}catch{}if(p.length>0)o("pending"),u("complete");else return Promise.resolve();var g=uo.begin("onTree"),y=p.reduce(function(w,_){try{var O=Vf(_);O&&w.push(O)}catch(E){pf||E.name==="MissingIcon"&&console.error(E)}return w},[]);return new Promise(function(w,_){Promise.all(y).then(function(O){Jf(O,function(){o("active"),o("complete"),u("pending"),typeof i=="function"&&i(),g(),w()})}).catch(function(O){g(),_(O)})})}function vm(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Vf(a).then(function(n){n&&Jf([n],i)})}function gm(a){return function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(i||{}).icon?i:no(i||{}),u=n.mask;return u&&(u=(u||{}).icon?u:no(u||{})),a(o,B(B({},n),{},{mask:u}))}}var mm=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,u=o===void 0?Lt:o,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,T=A===void 0?{}:A;if(i){var k=i.prefix,W=i.iconName,R=i.icon;return bi(B({type:"icon"},i),function(){return yn("beforeDOMElementCreation",{iconDefinition:i,params:n}),ro({icons:{main:ao(R),mask:g?ao(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:T,classes:O}})})}},ym={mixout:function(){return{icon:gm(mm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Zf,n.nodeCallback=vm,n}}},provides:function(i){i.i2svg=function(n){var o=n.node,u=o===void 0?be:o,f=n.callback,c=f===void 0?function(){}:f;return Zf(u,c)},i.generateSvgReplacementMutation=function(n,o){var u=o.iconName,f=o.prefix,c=o.transform,p=o.symbol,g=o.mask,y=o.maskId,w=o.extra;return new Promise(function(_,O){Promise.all([oo(u,f),g.iconName?oo(g.iconName,g.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(E){var x=ci(E,2),A=x[0],T=x[1];_([n,ro({icons:{main:A,mask:T},prefix:f,iconName:u,transform:c,symbol:p,maskId:y,extra:w,watchable:!0})])}).catch(O)})},i.generateAbstractIcon=function(n){var o=n.children,u=n.attributes,f=n.main,c=n.transform,p=n.styles,g=vi(p);g.length>0&&(u.style=g);var y;return Ka(c)&&(y=nn("generateAbstractTransformGrouping",{main:f,transform:c,containerWidth:f.width,iconWidth:f.width})),o.push(y||f.icon),{children:o,attributes:u}}}},bm={mixout:function(){return{layer:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.classes,f=u===void 0?[]:u;return bi({type:"layer"},function(){yn("beforeDOMElementCreation",{assembler:n,params:o});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}]})}}}},_m={mixout:function(){return{counter:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o.title;var u=o.classes,f=u===void 0?[]:u,c=o.attributes,p=c===void 0?{}:c,g=o.styles,y=g===void 0?{}:g;return bi({type:"counter",content:n},function(){return yn("beforeDOMElementCreation",{content:n,params:o}),Zg({content:n.toString(),extra:{attributes:p,styles:y,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(St(f))}})})}}}},wm={mixout:function(){return{text:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.transform,f=u===void 0?Lt:u,c=o.classes,p=c===void 0?[]:c,g=o.attributes,y=g===void 0?{}:g,w=o.styles,_=w===void 0?{}:w;return bi({type:"text",content:n},function(){return yn("beforeDOMElementCreation",{content:n,params:o}),zf({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,o){var u=o.transform,f=o.extra,c=null,p=null;if(Bu){var g=parseInt(getComputedStyle(n).fontSize,10),y=n.getBoundingClientRect();c=y.width/g,p=y.height/g}return Promise.resolve([n,zf({content:n.innerHTML,width:c,height:p,transform:u,extra:f,watchable:!0})])}}},Qf=new RegExp('"',"ug"),el=[1105920,1112319],tl=B(B(B(B({},{FontAwesome:{normal:"fas",400:"fas"}}),rv),ug),dv),co=Object.keys(tl).reduce(function(a,i){return a[i.toLowerCase()]=tl[i],a},{}),Sm=Object.keys(co).reduce(function(a,i){var n=co[i];return a[i]=n[900]||St(Object.entries(n))[0][1],a},{});function xm(a){var i=a.replace(Qf,"");return Tf(St(i)[0]||"")}function Em(a){var i=a.getPropertyValue("font-feature-settings").includes("ss01"),n=a.getPropertyValue("content"),o=n.replace(Qf,""),u=o.codePointAt(0),f=u>=el[0]&&u<=el[1],c=o.length===2?o[0]===o[1]:!1;return f||c||i}function Am(a,i){var n=a.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(i),u=isNaN(o)?"normal":o;return(co[n]||{})[u]||Sm[n]}function nl(a,i){var n="".concat(fg).concat(i.replace(":","-"));return new Promise(function(o,u){if(a.getAttribute(n)!==null)return o();var f=Bn(a.children),c=f.filter(function(de){return de.getAttribute($a)===i})[0],p=en.getComputedStyle(a,i),g=p.getPropertyValue("font-family"),y=g.match(pg),w=p.getPropertyValue("font-weight"),_=p.getPropertyValue("content");if(c&&!y)return a.removeChild(c),o();if(y&&_!=="none"&&_!==""){var O=p.getPropertyValue("content"),E=Am(g,w),x=xm(O),A=y[0].startsWith("FontAwesome"),T=Em(p),k=eo(E,x),W=k;if(A){var R=kg(x);R.iconName&&R.prefix&&(k=R.iconName,E=R.prefix)}if(k&&!T&&(!c||c.getAttribute(za)!==E||c.getAttribute(Ua)!==W)){a.setAttribute(n,W),c&&a.removeChild(c);var Z=dm(),$=Z.extra;$.attributes[$a]=i,oo(k,E).then(function(de){var C=ro(B(B({},Z),{},{icons:{main:de,mask:Df()},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 _r(q)}).join(`
575
+ `),a.removeAttribute(n),o()}).catch(u)}else o()}else o()})}function Tm(a){return Promise.all([nl(a,"::before"),nl(a,"::after")])}function Im(a){return a.parentNode!==document.head&&!~cg.indexOf(a.tagName.toUpperCase())&&!a.getAttribute($a)&&(!a.parentNode||a.parentNode.tagName!=="svg")}var Om=function(i){return!!i&&hf.some(function(n){return i.includes(n)})},Cm=function(i){if(!i)return[];var n=new Set,o=i.split(/,(?![^()]*\))/).map(function(g){return g.trim()});o=o.flatMap(function(g){return g.includes("(")?g:g.split(",").map(function(y){return y.trim()})});var u=li(o),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;if(Om(c)){var p=hf.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 rl(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 o=new Set,u=li(document.styleSheets),f;try{for(u.s();!(f=u.n()).done;){var c=f.value;try{var p=li(c.cssRules),g;try{for(p.s();!(g=p.n()).done;){var y=g.value,w=Cm(y.selectorText),_=li(w),O;try{for(_.s();!(O=_.n()).done;){var E=O.value;o.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(!o.size)return;var x=Array.from(o).join(", ");try{n=a.querySelectorAll(x)}catch{}}return new Promise(function(A,T){var k=Bn(n).filter(Im).map(Tm),W=uo.begin("searchPseudoElements");Yf(),Promise.all(k).then(function(){W(),lo(),A()}).catch(function(){W(),lo(),T()})})}}var Nm={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=rl,n}}},provides:function(i){i.pseudoElements2svg=function(n){var o=n.node,u=o===void 0?be:o;G.searchPseudoElements&&rl(u)}}},il=!1,Lm={mixout:function(){return{dom:{unwatch:function(){Yf(),il=!0}}}},hooks:function(){return{bootstrap:function(){Kf(to("mutationObserverCallbacks",{}))},noAuto:function(){um()},watch:function(n){var o=n.observeMutationsRoot;il?lo():Kf(to("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},al=function(i){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(o,u){var f=u.toLowerCase().split("-"),c=f[0],p=f.slice(1).join("-");if(c&&p==="h")return o.flipX=!0,o;if(c&&p==="v")return o.flipY=!0,o;if(p=parseFloat(p),isNaN(p))return o;switch(c){case"grow":o.size=o.size+p;break;case"shrink":o.size=o.size-p;break;case"left":o.x=o.x-p;break;case"right":o.x=o.x+p;break;case"up":o.y=o.y-p;break;case"down":o.y=o.y+p;break;case"rotate":o.rotate=o.rotate+p;break}return o},n)},Pm={mixout:function(){return{parse:{transform:function(n){return al(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-transform");return u&&(n.transform=al(u)),n}}},provides:function(i){i.generateAbstractTransformGrouping=function(n){var o=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:o.icon.tag,children:o.icon.children,attributes:B(B({},o.icon.attributes),E.path)}]}]}}}},ho={x:0,y:0,width:"100%",height:"100%"};function ol(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 Fm(a){return a.tag==="g"?a.children:[a]}var Mm={hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-mask"),f=u?yi(u.split(" ").map(function(c){return c.trim()})):Df();return f.prefix||(f.prefix=tn()),n.mask=f,n.maskId=o.getAttribute("data-fa-mask-id"),n}}},provides:function(i){i.generateAbstractMask=function(n){var o=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=Ag({transform:g,containerWidth:_,iconWidth:y}),x={tag:"rect",attributes:B(B({},ho),{},{fill:"white"})},A=w.children?{children:w.children.map(ol)}:{},T={tag:"g",attributes:B({},E.inner),children:[ol(B({tag:w.tag,attributes:B(B({},w.attributes),E.path)},A))]},k={tag:"g",attributes:B({},E.outer),children:[T]},W="mask-".concat(p||bf()),R="clip-".concat(p||bf()),Z={tag:"mask",attributes:B(B({},ho),{},{id:W,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,k]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:R},children:Fm(O)},Z]};return o.push($,{tag:"rect",attributes:B({fill:"currentColor","clip-path":"url(#".concat(R,")"),mask:"url(#".concat(W,")")},ho)}),{children:o,attributes:u}}}},km={provides:function(i){var n=!1;en.matchMedia&&(n=en.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var o=[],u={fill:"currentColor"},f={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.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;"})}),o.push(p),o.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||o.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:o}}}},Dm={hooks:function(){return{parseNodeAttributes:function(n,o){var u=o.getAttribute("data-fa-symbol"),f=u===null?!1:u===""?!0:u;return n.symbol=f,n}}}},Wm=[Og,ym,bm,_m,wm,Nm,Lm,Pm,Mm,km,Dm];qg(Wm,{mixoutsTo:tt}),tt.noAuto;var xr=tt.config;tt.library,tt.dom;var sl=tt.parse;tt.findIconDefinition,tt.toHtml;var Bm=tt.icon;tt.layer,tt.text,tt.counter;function Rm(a){return a=a-0,a===a}function ul(a){return Rm(a)?a:(a=a.replace(/[_-]+(.)?/g,(i,n)=>n?n.toUpperCase():""),a.charAt(0).toLowerCase()+a.slice(1))}function $m(a){return a.charAt(0).toUpperCase()+a.slice(1)}var zn=new Map,zm=1e3;function Um(a){if(zn.has(a))return zn.get(a);const i={};let n=0;const o=a.length;for(;n<o;){const u=a.indexOf(";",n),f=u===-1?o: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=ul(g);i[w.startsWith("webkit")?$m(w):w]=y}}}n=f+1}if(zn.size===zm){const u=zn.keys().next().value;u&&zn.delete(u)}return zn.set(a,i),i}function fl(a,i,n={}){if(typeof i=="string")return i;const o=(i.children||[]).map(w=>fl(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[ul(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},...o)}var Hm=fl.bind(null,M.createElement),ll=(a,i)=>{const n=M.useId();return a||(i?n:void 0)},qm=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 jm="searchPseudoElementsFullScan"in xr?"7.0.0":"6.0.0",Gm=Number.parseInt(jm)>=7,Er="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"},Jm={left:"fa-pull-left",right:"fa-pull-right"},Ym={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Km={"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"},zt={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 Xm(a){const i=xr.cssPrefix||xr.familyPrefix||Er;return i===Er?a:a.replace(new RegExp(String.raw`(?<=^|\s)${Er}-`,"g"),`${i}-`)}function Vm(a){const{beat:i,fade:n,beatFade:o,bounce:u,shake:f,spin:c,spinPulse:p,spinReverse:g,pulse:y,fixedWidth:w,inverse:_,border:O,flip:E,size:x,rotation:A,pull:T,swapOpacity:k,rotateBy:W,widthAuto:R,className:Z}=a,$=[];return Z&&$.push(...Z.split(" ")),i&&$.push($t.beat),n&&$.push($t.fade),o&&$.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(zt.fixedWidth),_&&$.push(zt.inverse),O&&$.push(zt.border),E===!0&&$.push(zt.flip),(E==="horizontal"||E==="both")&&$.push(zt.flipHorizontal),(E==="vertical"||E==="both")&&$.push(zt.flipVertical),x!=null&&$.push(Km[x]),A!=null&&A!==0&&$.push(Ym[A]),T!=null&&$.push(Jm[T]),k&&$.push(zt.swapOpacity),Gm?(W&&$.push(zt.rotateBy),R&&$.push(zt.widthAuto),(xr.cssPrefix||xr.familyPrefix||Er)===Er?$:$.map(Xm)):$}var Zm=a=>typeof a=="object"&&"icon"in a&&!!a.icon;function cl(a){if(a)return Zm(a)?a:sl.icon(a)}function Qm(a){return Object.keys(a)}var dl=new qm("FontAwesomeIcon"),hl={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},e0=new Set(Object.keys(hl)),Un=M.forwardRef((a,i)=>{const n={...hl,...a},{icon:o,mask:u,symbol:f,title:c,titleId:p,maskId:g,transform:y}=n,w=ll(g,!!u),_=ll(p,!!c),O=cl(o);if(!O)return dl.error("Icon lookup is undefined",o),null;const E=Vm(n),x=typeof y=="string"?sl.transform(y):y,A=cl(u),T=Bm(O,{...E.length>0&&{classes:E},...x&&{transform:x},...A&&{mask:A},symbol:f,title:c,titleId:_,maskId:w});if(!T)return dl.error("Could not find icon",O),null;const{abstract:k}=T,W={ref:i};for(const R of Qm(n))e0.has(R)||(W[R]=n[R]);return Hm(k[0],W)});Un.displayName="FontAwesomeIcon";var t0={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"]},n0={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"]},pl={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"]},r0={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"]};function i0({layoutId:a,justId:i,winInfo:n,menuProps:o,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 z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"just-icon",onClick:w=>y(w,i),title:p,children:n.getTabIcon(i,a)}),z.jsx("div",{className:"just-title",onClick:w=>y(w,i),title:p,children:c.getTabTitle(i)??i.title}),z.jsx("div",{className:"just-icon just-close",onClick:()=>g(i),children:z.jsx(Un,{icon:pl})}),z.jsx(vu,{state:o.state,endTransition:o.endTransition,anchorPoint:f,onClose:()=>u(!1),children:z.jsxs(ui,{onClick:()=>g(i),children:[z.jsx("div",{className:"just-icon"}),z.jsx("div",{className:"just-title",children:"Close"}),z.jsx("div",{className:"just-icon"})]})})]})}const vl=Dt(i0);function a0(a){const{layoutId:i,isFullScreenView:n,dndAccept:o,winInfo:u,justBranch:f,justId:c,justStack:p,rect:g}=a,y=M.useRef(null),[w,_]=bu(),[O,E]=M.useState({x:0,y:0}),x=Nt(i),[{isDragging:A},T]=Zr.useDrag({type:c.viewId,item:{justBranch:f,justId:c,index:-1},collect:R=>({isDragging:R.isDragging()})}),[,k]=Zr.useDrop({accept:o,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,J=p.tabs.filter(Y=>!he.isEquals(Y,q));let ee=he.indexOf(J,ne);L>C&&(ee+=1),R.pos="stack",R.index=ee}});M.useEffect(()=>{if(he.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&&T(k(y))},[k,T]);const W=M.useCallback(R=>{R.preventDefault(),E({x:R.clientX,y:R.clientY}),_(!0)},[_]);return z.jsx("div",{className:_t("just-draggable-title","just-title-menus",{dragging:A,"just-active":he.isEquals(p.active,c),"last-active":he.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}):z.jsx(vl,{justId:c,layoutId:i,justBranch:f,isFullScreenView:n,winInfo:u,menuProps:w,toggleMenu:_,anchorPoint:O})})}const gl=Dt(a0);function o0({layoutId:a,justBranch:i,isFullScreenView:n}){const o=Nt(a),u=()=>{console.log("closeAllTabs justBranch",i),o.removeAllTabs({branch:i})},f=async(c=!1)=>{n?o.setLayout(null):(o.setFullScreenLayoutByBranch(i),o.setFullScreenHideTitle(c))};return z.jsxs(z.Fragment,{children:[z.jsxs(ui,{className:"just-menu-item",onClick:()=>u(),children:[z.jsx("div",{className:"just-icon"}),z.jsx("div",{className:"just-title",children:"Close All"}),z.jsx("div",{className:"just-icon"})]}),z.jsxs(ui,{className:"just-menu-item",onClick:()=>f(!0),children:[z.jsx("div",{className:"just-icon",children:z.jsx(Un,{icon:t0})}),z.jsx("div",{className:"just-title",children:n?"F11":"Full"}),z.jsx("div",{className:"just-icon"})]})]})}const ml=Dt(o0);function s0({layoutId:a,isFullScreenView:i,dndAccept:n,justBranch:o,justStack:u,getWinInfo:f,getTabMenu:c}){const p=M.useRef(null),[g,y]=M.useState(null),w=Nt(a),_=T=>{w.removeWin({justId:T})},O=T=>{w.activeWin({justId:T})},E=(T,k)=>{w.moveWin({pos:"stack",justId:k.justId,branch:o,index:k.index??-1})},[{isOver:x},A]=Zr.useDrop(()=>({accept:n,collect:T=>({isOver:T.isOver()}),drop(T,k){E(k.getItemType(),k.getItem())},hover(T,k){p.current&&(T.index=-1)}}),[u]);return M.useLayoutEffect(()=>{p.current&&A(p)},[A]),M.useEffect(()=>{if(p.current===null)return;function T(){if(p.current===null)return;const W=p.current.getBoundingClientRect()??null;y(W)}T();const k=new ResizeObserver(T);return k.observe(p.current),window.addEventListener("scroll",T,!0),()=>{k.disconnect(),window.removeEventListener("scroll",T,!0)}},[]),z.jsxs("div",{className:_t("just-win-title"),tabIndex:1,children:[z.jsx("div",{className:_t("just-title-list",{"is-over":x}),ref:p,children:u.tabs.map(T=>z.jsx(gl,{layoutId:a,isFullScreenView:i,dndAccept:n,rect:g,justId:T,justBranch:o,justStack:u,winInfo:f(T)},[...o,he.toString(T)].join(",")))}),z.jsxs("div",{className:"just-title-menus",children:[z.jsx(_u,{menuButton:z.jsx("div",{className:"just-title-menu",children:z.jsx(Un,{icon:r0})}),children:u.tabs.map(T=>z.jsxs(ui,{className:_t("just-menu-item",{active:he.isEquals(u.active,T)}),children:[z.jsx("div",{className:"just-icon",onClick:()=>O(T),children:f(T).getTabIcon(T,a)}),z.jsx("div",{className:"just-title",onClick:()=>O(T),children:w.getTabTitle(T)??T.title}),z.jsx("div",{className:"just-icon just-close",onClick:k=>{k.stopPropagation(),_(T)},children:z.jsx(Un,{icon:pl})})]},he.toString(T)))}),z.jsx(_u,{menuButton:z.jsx("div",{className:"just-title-menu",children:z.jsx(Un,{icon:n0})}),children:c?c(a,o,u,i):z.jsx(ml,{layoutId:a,justBranch:o,justStack:u,isFullScreenView:i})})]})]})}const yl=Dt(s0);function u0(a){const i=M.useRef(null),{layoutId:n,dndAccept:o,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]=Zr.useDrop(()=>({accept:o,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(),T=x.getClientOffset(),k=(A.right-A.left)/2,W=(A.bottom-A.top)/2,R=T.x-A.left,Z=T.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",J=Math.sign(q==="row"?$:de)>0?"second":"first";E.direction=q,E.pos=J;const ee={top:J==="second"&&q==="column"?A.top+A.height/2:A.top,left:J==="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]),z.jsxs("div",{className:_t("just-win-body",{isOver:_,"last-active":he.isEquals(c.active,y.lastActiveId)}),ref:i,children:[c.tabs.map(E=>z.jsx(M.Activity,{mode:he.isEquals(c.active,E)?"visible":"hidden",children:u(E).getView(E,n)},he.toString(E))),_&&p!=null&&z.jsx("div",{className:"just-overlay",style:{top:p.top,left:p.left,width:`${p.width}px`,height:`${p.height}px`}})]})}const bl=Dt(u0);function f0({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:o,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 z.jsxs("div",{className:"just-win",onFocusCapture:_,tabIndex:1,children:[w&&!y&&z.jsx(yl,{layoutId:a,isFullScreenView:i,dndAccept:o,justBranch:u,justStack:f,getWinInfo:c,getTabMenu:p}),z.jsx(bl,{layoutId:a,dndAccept:o,justBranch:u,justStack:f,getWinInfo:c})]})}const _l=Dt(f0);var po,wl;function vo(){if(wl)return po;wl=1;function a(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}return po=a,po}var go,Sl;function l0(){if(Sl)return go;Sl=1;var a=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt;return go=a,go}var mo,xl;function El(){if(xl)return mo;xl=1;var a=l0(),i=typeof self=="object"&&self&&self.Object===Object&&self,n=a||i||Function("return this")();return mo=n,mo}var yo,Al;function c0(){if(Al)return yo;Al=1;var a=El(),i=function(){return a.Date.now()};return yo=i,yo}var bo,Tl;function d0(){if(Tl)return bo;Tl=1;var a=/\s/;function i(n){for(var o=n.length;o--&&a.test(n.charAt(o)););return o}return bo=i,bo}var _o,Il;function h0(){if(Il)return _o;Il=1;var a=d0(),i=/^\s+/;function n(o){return o&&o.slice(0,a(o)+1).replace(i,"")}return _o=n,_o}var wo,Ol;function Cl(){if(Ol)return wo;Ol=1;var a=El(),i=a.Symbol;return wo=i,wo}var So,Nl;function p0(){if(Nl)return So;Nl=1;var a=Cl(),i=Object.prototype,n=i.hasOwnProperty,o=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=o.call(c);return y&&(p?c[u]=g:delete c[u]),w}return So=f,So}var xo,Ll;function v0(){if(Ll)return xo;Ll=1;var a=Object.prototype,i=a.toString;function n(o){return i.call(o)}return xo=n,xo}var Eo,Pl;function g0(){if(Pl)return Eo;Pl=1;var a=Cl(),i=p0(),n=v0(),o="[object Null]",u="[object Undefined]",f=a?a.toStringTag:void 0;function c(p){return p==null?p===void 0?u:o:f&&f in Object(p)?i(p):n(p)}return Eo=c,Eo}var Ao,Fl;function m0(){if(Fl)return Ao;Fl=1;function a(i){return i!=null&&typeof i=="object"}return Ao=a,Ao}var To,Ml;function y0(){if(Ml)return To;Ml=1;var a=g0(),i=m0(),n="[object Symbol]";function o(u){return typeof u=="symbol"||i(u)&&a(u)==n}return To=o,To}var Io,kl;function Dl(){if(kl)return Io;kl=1;var a=h0(),i=vo(),n=y0(),o=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 o;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)?o:+y}return Io=g,Io}var Oo,Wl;function b0(){if(Wl)return Oo;Wl=1;var a=vo(),i=c0(),n=Dl(),o="Expected a function",u=Math.max,f=Math.min;function c(p,g,y){var w,_,O,E,x,A,T=0,k=!1,W=!1,R=!0;if(typeof p!="function")throw new TypeError(o);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(Y){var We=w,Je=_;return w=_=void 0,T=Y,E=p.apply(Je,We),E}function $(Y){return T=Y,x=setTimeout(L,g),k?Z(Y):E}function de(Y){var We=Y-A,Je=Y-T,Ye=g-We;return W?f(Ye,O-Je):Ye}function C(Y){var We=Y-A,Je=Y-T;return A===void 0||We>=g||We<0||W&&Je>=O}function L(){var Y=i();if(C(Y))return q(Y);x=setTimeout(L,de(Y))}function q(Y){return x=void 0,R&&w?Z(Y):(w=_=void 0,E)}function ne(){x!==void 0&&clearTimeout(x),T=0,w=A=_=x=void 0}function J(){return x===void 0?E:q(i())}function ee(){var Y=i(),We=C(Y);if(w=arguments,_=this,A=Y,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=J,ee}return Oo=c,Oo}var Co,Bl;function _0(){if(Bl)return Co;Bl=1;var a=b0(),i=vo(),n="Expected a function";function o(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 Co=o,Co}var w0=_0();const S0=Qr(w0);var No,Rl;function x0(){if(Rl)return No;Rl=1;function a(i,n,o){return i===i&&(o!==void 0&&(i=i<=o?i:o),n!==void 0&&(i=i>=n?i:n)),i}return No=a,No}var Lo,$l;function E0(){if($l)return Lo;$l=1;var a=x0(),i=Dl();function n(o,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(o),u,f)}return Lo=n,Lo}var A0=E0();const Po=Qr(A0),T0=1e3/30;function I0({node:a,containerRef:i,onChange:n,onRelease:o}){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==null)return;const A=O(x,a,i);A!==null&&o(A)},_=x=>{x.preventDefault(),i!=null&&E(x,a,i)},O=(x,A,T)=>{if(T.current==null)return null;const k=T.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,$=Po(W-R,0,Z),de=Po(Z-$,0,Z),C=Po($*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=S0((x,A,T)=>{if(T.current==null)return null;const k=O(x,A,T);k!==null&&n(k)},T0);return M.useEffect(()=>{}),z.jsx("div",{ref:u,className:_t("just-splitter"),onMouseDown:y})}const zl=Dt(I0);function Fo({layoutId:a,isFullScreenView:i,hideTitle:n,dndAccept:o,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 z.jsxs("div",{ref:g,className:_t("just-node"),children:[u?.type==="stack"&&z.jsx(_l,{hideTitle:u.hideTitle??n,layoutId:a,isFullScreenView:i,dndAccept:u.dndAccept??o,justStack:u,justBranch:f,getWinInfo:c,getTabMenu:p}),(u?.type==="split-percentage"||u?.type==="split-pixels")&&z.jsxs("div",{className:_t(u.type,{"just-column":u.direction==="column","just-row":u.direction==="row"}),children:[z.jsx(M.Activity,{mode:u.type==="split-pixels"&&u.primary==="first"&&u.primaryHide===!0?"hidden":"visible",children:z.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:z.jsx(Fo,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??o,node:u.first,justBranch:[...f,"first"],getWinInfo:c,getTabMenu:p})})}),!(u.type==="split-pixels"&&(u.noSplitter===!0||u.primaryHide===!0))&&z.jsx(zl,{layoutId:a,node:u,justBranch:f,containerRef:g,onChange:w,onRelease:w}),z.jsx(M.Activity,{mode:u.type==="split-pixels"&&u.primary==="second"&&u.primaryHide===!0?"hidden":"visible",children:z.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:z.jsx(Fo,{layoutId:a,isFullScreenView:i,hideTitle:u.hideTitle??n,dndAccept:u.dndAccept??o,node:u.second,justBranch:[...f,"second"],getWinInfo:c,getTabMenu:p})})})]},`JustNode-${f.join(",")}`)]})}const Mo=Dt(Fo);function O0({layoutId:a,getWinInfo:i,getTabMenu:n,initialValue:o}){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(o),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]),z.jsxs("div",{className:_t("just-layout"),children:[f.fullScreenLayout===null&&z.jsx(Mo,{layoutId:a,isFullScreenView:!1,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:i,getTabMenu:n}),f.fullScreenLayout!==null&&z.jsx(Mo,{layoutId:u,isFullScreenView:!0,hideTitle:f.layout?.hideTitle,dndAccept:f.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:i,getTabMenu:n})]})}const C0=Dt(O0);ce.JUST_LAYOUT_TYPES=kt,ce.JustDraggableTitle=gl,ce.JustLayoutView=C0,ce.JustNodeView=Mo,ce.JustSplitter=zl,ce.JustTabMenu=ml,ce.JustTabTitle=vl,ce.JustUtil=he,ce.JustWinBodyView=bl,ce.JustWinTitleView=yl,ce.JustWinView=_l,ce.justLayoutModule=Ah,ce.stableStringify=Qs,ce.useJustLayoutStore=Nt,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));