@kangtae49/just-layout 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5391 -7033
- package/dist/index.umd.js +24 -25
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(he,A){typeof exports=="object"&&typeof module<"u"?A(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"],A):(he=typeof globalThis<"u"?globalThis:he||self,A(he.JustLayout={},he.React,he.inversify,he.mobx,he.inversifyReact,he.jsxRuntime,he.ReactDOM))})(this,(function(he,A,oi,mr,Tg,$,yr){"use strict";function Pu(i){return JSON.stringify(Na(i))}function Na(i){return Array.isArray(i)?i.map(Na):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).sort((n,r)=>n[0].localeCompare(r[0])).map(([n,r])=>[n,Na(r)])):i}const Wt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Sr={exports:{}};var xg=Sr.exports,Lu;function Ig(){return Lu||(Lu=1,(function(i,n){(function(){var r,o="4.17.23",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,S="__lodash_placeholder__",w=1,O=2,y=4,E=1,_=2,I=1,C=2,F=4,U=8,V=16,B=32,ue=64,N=128,L=256,j=512,ee=30,Y="...",ae=800,X=16,We=1,Je=2,Ve=3,Ot=1/0,He=9007199254740991,gs=17976931348623157e292,Dt=NaN,rt=4294967295,Ri=rt-1,Wi=rt>>>1,Mr=[["ary",N],["bind",I],["bindKey",C],["curry",U],["curryRight",V],["flip",j],["partial",B],["partialRight",ue],["rearg",L]],qt="[object Arguments]",En="[object Array]",kr="[object AsyncFunction]",Tn="[object Boolean]",sn="[object Date]",Fr="[object DOMException]",Xn="[object Error]",Kn="[object Function]",Bi="[object GeneratorFunction]",De="[object Map]",un="[object Number]",$i="[object Null]",it="[object Object]",ze="[object Promise]",Zn="[object Proxy]",Ae="[object RegExp]",Xe="[object Set]",ln="[object String]",Be="[object Symbol]",ps="[object Undefined]",xn="[object WeakMap]",vs="[object WeakSet]",In="[object ArrayBuffer]",je="[object DataView]",Qn="[object Float32Array]",Rr="[object Float64Array]",On="[object Int8Array]",Dn="[object Int16Array]",Wr="[object Int32Array]",Br="[object Uint8Array]",er="[object Uint8ClampedArray]",$r="[object Uint16Array]",Ur="[object Uint32Array]",Ui=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,Le=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ke=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,xe=RegExp(Ke.source),tr=RegExp(at.source),ms=/<%-([\s\S]+?)%>/g,ys=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,bs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ss=/^\w*$/,Hi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hr=/[\\^$.*+?()[\]{}|]/g,ws=RegExp(Hr.source),Gt=/^\s+/,zr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,Q1=/,? & /,eS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tS=/[()=,{}\[\]\/\s]/,nS=/\\(\\)?/g,rS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zc=/\w*$/,iS=/^[-+]0x[0-9a-f]+$/i,aS=/^0b[01]+$/i,oS=/^\[object .+?Constructor\]$/,sS=/^0o[0-7]+$/i,uS=/^(?:0|[1-9]\d*)$/,lS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zi=/($^)/,fS=/['\n\r\u2028\u2029\\]/g,ji="\\ud800-\\udfff",cS="\\u0300-\\u036f",dS="\\ufe20-\\ufe2f",hS="\\u20d0-\\u20ff",Qc=cS+dS+hS,ed="\\u2700-\\u27bf",td="a-z\\xdf-\\xf6\\xf8-\\xff",gS="\\xac\\xb1\\xd7\\xf7",pS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vS="\\u2000-\\u206f",mS=" \\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",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",rd="\\ufe0e\\ufe0f",id=gS+pS+vS+mS,_s="['’]",yS="["+ji+"]",ad="["+id+"]",qi="["+Qc+"]",od="\\d+",bS="["+ed+"]",sd="["+td+"]",ud="[^"+ji+id+od+ed+td+nd+"]",Es="\\ud83c[\\udffb-\\udfff]",SS="(?:"+qi+"|"+Es+")",ld="[^"+ji+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+nd+"]",fd="\\u200d",cd="(?:"+sd+"|"+ud+")",wS="(?:"+rr+"|"+ud+")",dd="(?:"+_s+"(?:d|ll|m|re|s|t|ve))?",hd="(?:"+_s+"(?:D|LL|M|RE|S|T|VE))?",gd=SS+"?",pd="["+rd+"]?",_S="(?:"+fd+"(?:"+[ld,Ts,xs].join("|")+")"+pd+gd+")*",ES="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vd=pd+gd+_S,xS="(?:"+[bS,Ts,xs].join("|")+")"+vd,IS="(?:"+[ld+qi+"?",qi,Ts,xs,yS].join("|")+")",OS=RegExp(_s,"g"),DS=RegExp(qi,"g"),Is=RegExp(Es+"(?="+Es+")|"+IS+vd,"g"),AS=RegExp([rr+"?"+sd+"+"+dd+"(?="+[ad,rr,"$"].join("|")+")",wS+"+"+hd+"(?="+[ad,rr+cd,"$"].join("|")+")",rr+"?"+cd+"+"+dd,rr+"+"+hd,TS,ES,od,xS].join("|"),"g"),CS=RegExp("["+fd+ji+Qc+rd+"]"),NS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,PS=["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"],LS=-1,we={};we[Qn]=we[Rr]=we[On]=we[Dn]=we[Wr]=we[Br]=we[er]=we[$r]=we[Ur]=!0,we[qt]=we[En]=we[In]=we[Tn]=we[je]=we[sn]=we[Xn]=we[Kn]=we[De]=we[un]=we[it]=we[Ae]=we[Xe]=we[ln]=we[xn]=!1;var be={};be[qt]=be[En]=be[In]=be[je]=be[Tn]=be[sn]=be[Qn]=be[Rr]=be[On]=be[Dn]=be[Wr]=be[De]=be[un]=be[it]=be[Ae]=be[Xe]=be[ln]=be[Be]=be[Br]=be[er]=be[$r]=be[Ur]=!0,be[Xn]=be[Kn]=be[xn]=!1;var MS={À:"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"},kS={"&":"&","<":"<",">":">",'"':""","'":"'"},FS={"&":"&","<":"<",">":">",""":'"',"'":"'"},RS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WS=parseFloat,BS=parseInt,md=typeof nn=="object"&&nn&&nn.Object===Object&&nn,$S=typeof self=="object"&&self&&self.Object===Object&&self,Fe=md||$S||Function("return this")(),Os=n&&!n.nodeType&&n,Cn=Os&&!0&&i&&!i.nodeType&&i,yd=Cn&&Cn.exports===Os,Ds=yd&&md.process,pt=(function(){try{var T=Cn&&Cn.require&&Cn.require("util").types;return T||Ds&&Ds.binding&&Ds.binding("util")}catch{}})(),bd=pt&&pt.isArrayBuffer,Sd=pt&&pt.isDate,wd=pt&&pt.isMap,_d=pt&&pt.isRegExp,Ed=pt&&pt.isSet,Td=pt&&pt.isTypedArray;function ot(T,P,D){switch(D.length){case 0:return T.call(P);case 1:return T.call(P,D[0]);case 2:return T.call(P,D[0],D[1]);case 3:return T.call(P,D[0],D[1],D[2])}return T.apply(P,D)}function US(T,P,D,z){for(var Q=-1,pe=T==null?0:T.length;++Q<pe;){var Ne=T[Q];P(z,Ne,D(Ne),T)}return z}function vt(T,P){for(var D=-1,z=T==null?0:T.length;++D<z&&P(T[D],D,T)!==!1;);return T}function HS(T,P){for(var D=T==null?0:T.length;D--&&P(T[D],D,T)!==!1;);return T}function xd(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(!P(T[D],D,T))return!1;return!0}function fn(T,P){for(var D=-1,z=T==null?0:T.length,Q=0,pe=[];++D<z;){var Ne=T[D];P(Ne,D,T)&&(pe[Q++]=Ne)}return pe}function Gi(T,P){var D=T==null?0:T.length;return!!D&&ir(T,P,0)>-1}function As(T,P,D){for(var z=-1,Q=T==null?0:T.length;++z<Q;)if(D(P,T[z]))return!0;return!1}function _e(T,P){for(var D=-1,z=T==null?0:T.length,Q=Array(z);++D<z;)Q[D]=P(T[D],D,T);return Q}function cn(T,P){for(var D=-1,z=P.length,Q=T.length;++D<z;)T[Q+D]=P[D];return T}function Cs(T,P,D,z){var Q=-1,pe=T==null?0:T.length;for(z&&pe&&(D=T[++Q]);++Q<pe;)D=P(D,T[Q],Q,T);return D}function zS(T,P,D,z){var Q=T==null?0:T.length;for(z&&Q&&(D=T[--Q]);Q--;)D=P(D,T[Q],Q,T);return D}function Ns(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(P(T[D],D,T))return!0;return!1}var jS=Ps("length");function qS(T){return T.split("")}function GS(T){return T.match(eS)||[]}function Id(T,P,D){var z;return D(T,function(Q,pe,Ne){if(P(Q,pe,Ne))return z=pe,!1}),z}function Yi(T,P,D,z){for(var Q=T.length,pe=D+(z?1:-1);z?pe--:++pe<Q;)if(P(T[pe],pe,T))return pe;return-1}function ir(T,P,D){return P===P?iw(T,P,D):Yi(T,Od,D)}function YS(T,P,D,z){for(var Q=D-1,pe=T.length;++Q<pe;)if(z(T[Q],P))return Q;return-1}function Od(T){return T!==T}function Dd(T,P){var D=T==null?0:T.length;return D?Ms(T,P)/D:Dt}function Ps(T){return function(P){return P==null?r:P[T]}}function Ls(T){return function(P){return T==null?r:T[P]}}function Ad(T,P,D,z,Q){return Q(T,function(pe,Ne,ye){D=z?(z=!1,pe):P(D,pe,Ne,ye)}),D}function JS(T,P){var D=T.length;for(T.sort(P);D--;)T[D]=T[D].value;return T}function Ms(T,P){for(var D,z=-1,Q=T.length;++z<Q;){var pe=P(T[z]);pe!==r&&(D=D===r?pe:D+pe)}return D}function ks(T,P){for(var D=-1,z=Array(T);++D<T;)z[D]=P(D);return z}function VS(T,P){return _e(P,function(D){return[D,T[D]]})}function Cd(T){return T&&T.slice(0,Md(T)+1).replace(Gt,"")}function st(T){return function(P){return T(P)}}function Fs(T,P){return _e(P,function(D){return T[D]})}function qr(T,P){return T.has(P)}function Nd(T,P){for(var D=-1,z=T.length;++D<z&&ir(P,T[D],0)>-1;);return D}function Pd(T,P){for(var D=T.length;D--&&ir(P,T[D],0)>-1;);return D}function XS(T,P){for(var D=T.length,z=0;D--;)T[D]===P&&++z;return z}var KS=Ls(MS),ZS=Ls(kS);function QS(T){return"\\"+RS[T]}function ew(T,P){return T==null?r:T[P]}function ar(T){return CS.test(T)}function tw(T){return NS.test(T)}function nw(T){for(var P,D=[];!(P=T.next()).done;)D.push(P.value);return D}function Rs(T){var P=-1,D=Array(T.size);return T.forEach(function(z,Q){D[++P]=[Q,z]}),D}function Ld(T,P){return function(D){return T(P(D))}}function dn(T,P){for(var D=-1,z=T.length,Q=0,pe=[];++D<z;){var Ne=T[D];(Ne===P||Ne===S)&&(T[D]=S,pe[Q++]=D)}return pe}function Ji(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=z}),D}function rw(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=[z,z]}),D}function iw(T,P,D){for(var z=D-1,Q=T.length;++z<Q;)if(T[z]===P)return z;return-1}function aw(T,P,D){for(var z=D+1;z--;)if(T[z]===P)return z;return z}function or(T){return ar(T)?sw(T):jS(T)}function At(T){return ar(T)?uw(T):qS(T)}function Md(T){for(var P=T.length;P--&&zr.test(T.charAt(P)););return P}var ow=Ls(FS);function sw(T){for(var P=Is.lastIndex=0;Is.test(T);)++P;return P}function uw(T){return T.match(Is)||[]}function lw(T){return T.match(AS)||[]}var fw=(function T(P){P=P==null?Fe:sr.defaults(Fe.Object(),P,sr.pick(Fe,PS));var D=P.Array,z=P.Date,Q=P.Error,pe=P.Function,Ne=P.Math,ye=P.Object,Ws=P.RegExp,cw=P.String,mt=P.TypeError,Vi=D.prototype,dw=pe.prototype,ur=ye.prototype,Xi=P["__core-js_shared__"],Ki=dw.toString,ve=ur.hasOwnProperty,hw=0,kd=(function(){var e=/[^.]+$/.exec(Xi&&Xi.keys&&Xi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Zi=ur.toString,gw=Ki.call(ye),pw=Fe._,vw=Ws("^"+Ki.call(ve).replace(Hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qi=yd?P.Buffer:r,hn=P.Symbol,ea=P.Uint8Array,Fd=Qi?Qi.allocUnsafe:r,ta=Ld(ye.getPrototypeOf,ye),Rd=ye.create,Wd=ur.propertyIsEnumerable,na=Vi.splice,Bd=hn?hn.isConcatSpreadable:r,Gr=hn?hn.iterator:r,Nn=hn?hn.toStringTag:r,ra=(function(){try{var e=Fn(ye,"defineProperty");return e({},"",{}),e}catch{}})(),mw=P.clearTimeout!==Fe.clearTimeout&&P.clearTimeout,yw=z&&z.now!==Fe.Date.now&&z.now,bw=P.setTimeout!==Fe.setTimeout&&P.setTimeout,ia=Ne.ceil,aa=Ne.floor,Bs=ye.getOwnPropertySymbols,Sw=Qi?Qi.isBuffer:r,$d=P.isFinite,ww=Vi.join,_w=Ld(ye.keys,ye),Pe=Ne.max,$e=Ne.min,Ew=z.now,Tw=P.parseInt,Ud=Ne.random,xw=Vi.reverse,$s=Fn(P,"DataView"),Yr=Fn(P,"Map"),Us=Fn(P,"Promise"),lr=Fn(P,"Set"),Jr=Fn(P,"WeakMap"),Vr=Fn(ye,"create"),oa=Jr&&new Jr,fr={},Iw=Rn($s),Ow=Rn(Yr),Dw=Rn(Us),Aw=Rn(lr),Cw=Rn(Jr),sa=hn?hn.prototype:r,Xr=sa?sa.valueOf:r,Hd=sa?sa.toString:r;function h(e){if(Te(e)&&!te(e)&&!(e instanceof fe)){if(e instanceof yt)return e;if(ve.call(e,"__wrapped__"))return zh(e)}return new yt(e)}var cr=(function(){function e(){}return function(t){if(!Ee(t))return{};if(Rd)return Rd(t);e.prototype=t;var a=new e;return e.prototype=r,a}})();function ua(){}function yt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:ms,evaluate:ys,interpolate:An,variable:"",imports:{_:h}},h.prototype=ua.prototype,h.prototype.constructor=h,yt.prototype=cr(ua.prototype),yt.prototype.constructor=yt;function fe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rt,this.__views__=[]}function Nw(){var e=new fe(this.__wrapped__);return e.__actions__=Ze(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ze(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ze(this.__views__),e}function Pw(){if(this.__filtered__){var e=new fe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Lw(){var e=this.__wrapped__.value(),t=this.__dir__,a=te(e),u=t<0,c=a?e.length:0,g=q_(0,c,this.__views__),v=g.start,b=g.end,x=b-v,M=u?b:v-1,k=this.__iteratees__,R=k.length,H=0,q=$e(x,this.__takeCount__);if(!a||!u&&c==x&&q==x)return dh(e,this.__actions__);var K=[];e:for(;x--&&H<q;){M+=t;for(var oe=-1,Z=e[M];++oe<R;){var le=k[oe],de=le.iteratee,ft=le.type,Ye=de(Z);if(ft==Je)Z=Ye;else if(!Ye){if(ft==We)continue e;break e}}K[H++]=Z}return K}fe.prototype=cr(ua.prototype),fe.prototype.constructor=fe;function Pn(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Mw(){this.__data__=Vr?Vr(null):{},this.size=0}function kw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Fw(e){var t=this.__data__;if(Vr){var a=t[e];return a===p?r:a}return ve.call(t,e)?t[e]:r}function Rw(e){var t=this.__data__;return Vr?t[e]!==r:ve.call(t,e)}function Ww(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Vr&&t===r?p:t,this}Pn.prototype.clear=Mw,Pn.prototype.delete=kw,Pn.prototype.get=Fw,Pn.prototype.has=Rw,Pn.prototype.set=Ww;function Yt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Bw(){this.__data__=[],this.size=0}function $w(e){var t=this.__data__,a=la(t,e);if(a<0)return!1;var u=t.length-1;return a==u?t.pop():na.call(t,a,1),--this.size,!0}function Uw(e){var t=this.__data__,a=la(t,e);return a<0?r:t[a][1]}function Hw(e){return la(this.__data__,e)>-1}function zw(e,t){var a=this.__data__,u=la(a,e);return u<0?(++this.size,a.push([e,t])):a[u][1]=t,this}Yt.prototype.clear=Bw,Yt.prototype.delete=$w,Yt.prototype.get=Uw,Yt.prototype.has=Hw,Yt.prototype.set=zw;function Jt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function jw(){this.size=0,this.__data__={hash:new Pn,map:new(Yr||Yt),string:new Pn}}function qw(e){var t=wa(this,e).delete(e);return this.size-=t?1:0,t}function Gw(e){return wa(this,e).get(e)}function Yw(e){return wa(this,e).has(e)}function Jw(e,t){var a=wa(this,e),u=a.size;return a.set(e,t),this.size+=a.size==u?0:1,this}Jt.prototype.clear=jw,Jt.prototype.delete=qw,Jt.prototype.get=Gw,Jt.prototype.has=Yw,Jt.prototype.set=Jw;function Ln(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Jt;++t<a;)this.add(e[t])}function Vw(e){return this.__data__.set(e,p),this}function Xw(e){return this.__data__.has(e)}Ln.prototype.add=Ln.prototype.push=Vw,Ln.prototype.has=Xw;function Ct(e){var t=this.__data__=new Yt(e);this.size=t.size}function Kw(){this.__data__=new Yt,this.size=0}function Zw(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function Qw(e){return this.__data__.get(e)}function e_(e){return this.__data__.has(e)}function t_(e,t){var a=this.__data__;if(a instanceof Yt){var u=a.__data__;if(!Yr||u.length<s-1)return u.push([e,t]),this.size=++a.size,this;a=this.__data__=new Jt(u)}return a.set(e,t),this.size=a.size,this}Ct.prototype.clear=Kw,Ct.prototype.delete=Zw,Ct.prototype.get=Qw,Ct.prototype.has=e_,Ct.prototype.set=t_;function zd(e,t){var a=te(e),u=!a&&Wn(e),c=!a&&!u&&yn(e),g=!a&&!u&&!c&&pr(e),v=a||u||c||g,b=v?ks(e.length,cw):[],x=b.length;for(var M in e)(t||ve.call(e,M))&&!(v&&(M=="length"||c&&(M=="offset"||M=="parent")||g&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Zt(M,x)))&&b.push(M);return b}function jd(e){var t=e.length;return t?e[Zs(0,t-1)]:r}function n_(e,t){return _a(Ze(e),Mn(t,0,e.length))}function r_(e){return _a(Ze(e))}function Hs(e,t,a){(a!==r&&!Nt(e[t],a)||a===r&&!(t in e))&&Vt(e,t,a)}function Kr(e,t,a){var u=e[t];(!(ve.call(e,t)&&Nt(u,a))||a===r&&!(t in e))&&Vt(e,t,a)}function la(e,t){for(var a=e.length;a--;)if(Nt(e[a][0],t))return a;return-1}function i_(e,t,a,u){return gn(e,function(c,g,v){t(u,c,a(c),v)}),u}function qd(e,t){return e&&Ft(t,Me(t),e)}function a_(e,t){return e&&Ft(t,et(t),e)}function Vt(e,t,a){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function zs(e,t){for(var a=-1,u=t.length,c=D(u),g=e==null;++a<u;)c[a]=g?r:Eu(e,t[a]);return c}function Mn(e,t,a){return e===e&&(a!==r&&(e=e<=a?e:a),t!==r&&(e=e>=t?e:t)),e}function bt(e,t,a,u,c,g){var v,b=t&w,x=t&O,M=t&y;if(a&&(v=c?a(e,u,c,g):a(e)),v!==r)return v;if(!Ee(e))return e;var k=te(e);if(k){if(v=Y_(e),!b)return Ze(e,v)}else{var R=Ue(e),H=R==Kn||R==Bi;if(yn(e))return ph(e,b);if(R==it||R==qt||H&&!c){if(v=x||H?{}:Mh(e),!b)return x?F_(e,a_(v,e)):k_(e,qd(v,e))}else{if(!be[R])return c?e:{};v=J_(e,R,b)}}g||(g=new Ct);var q=g.get(e);if(q)return q;g.set(e,v),lg(e)?e.forEach(function(Z){v.add(bt(Z,t,a,Z,e,g))}):sg(e)&&e.forEach(function(Z,le){v.set(le,bt(Z,t,a,le,e,g))});var K=M?x?lu:uu:x?et:Me,oe=k?r:K(e);return vt(oe||e,function(Z,le){oe&&(le=Z,Z=e[le]),Kr(v,le,bt(Z,t,a,le,e,g))}),v}function o_(e){var t=Me(e);return function(a){return Gd(a,e,t)}}function Gd(e,t,a){var u=a.length;if(e==null)return!u;for(e=ye(e);u--;){var c=a[u],g=t[c],v=e[c];if(v===r&&!(c in e)||!g(v))return!1}return!0}function Yd(e,t,a){if(typeof e!="function")throw new mt(f);return ii(function(){e.apply(r,a)},t)}function Zr(e,t,a,u){var c=-1,g=Gi,v=!0,b=e.length,x=[],M=t.length;if(!b)return x;a&&(t=_e(t,st(a))),u?(g=As,v=!1):t.length>=s&&(g=qr,v=!1,t=new Ln(t));e:for(;++c<b;){var k=e[c],R=a==null?k:a(k);if(k=u||k!==0?k:0,v&&R===R){for(var H=M;H--;)if(t[H]===R)continue e;x.push(k)}else g(t,R,u)||x.push(k)}return x}var gn=Sh(kt),Jd=Sh(qs,!0);function s_(e,t){var a=!0;return gn(e,function(u,c,g){return a=!!t(u,c,g),a}),a}function fa(e,t,a){for(var u=-1,c=e.length;++u<c;){var g=e[u],v=t(g);if(v!=null&&(b===r?v===v&&!lt(v):a(v,b)))var b=v,x=g}return x}function u_(e,t,a,u){var c=e.length;for(a=ie(a),a<0&&(a=-a>c?0:c+a),u=u===r||u>c?c:ie(u),u<0&&(u+=c),u=a>u?0:cg(u);a<u;)e[a++]=t;return e}function Vd(e,t){var a=[];return gn(e,function(u,c,g){t(u,c,g)&&a.push(u)}),a}function Re(e,t,a,u,c){var g=-1,v=e.length;for(a||(a=X_),c||(c=[]);++g<v;){var b=e[g];t>0&&a(b)?t>1?Re(b,t-1,a,u,c):cn(c,b):u||(c[c.length]=b)}return c}var js=wh(),Xd=wh(!0);function kt(e,t){return e&&js(e,t,Me)}function qs(e,t){return e&&Xd(e,t,Me)}function ca(e,t){return fn(t,function(a){return Qt(e[a])})}function kn(e,t){t=vn(t,e);for(var a=0,u=t.length;e!=null&&a<u;)e=e[Rt(t[a++])];return a&&a==u?e:r}function Kd(e,t,a){var u=t(e);return te(e)?u:cn(u,a(e))}function qe(e){return e==null?e===r?ps:$i:Nn&&Nn in ye(e)?j_(e):rE(e)}function Gs(e,t){return e>t}function l_(e,t){return e!=null&&ve.call(e,t)}function f_(e,t){return e!=null&&t in ye(e)}function c_(e,t,a){return e>=$e(t,a)&&e<Pe(t,a)}function Ys(e,t,a){for(var u=a?As:Gi,c=e[0].length,g=e.length,v=g,b=D(g),x=1/0,M=[];v--;){var k=e[v];v&&t&&(k=_e(k,st(t))),x=$e(k.length,x),b[v]=!a&&(t||c>=120&&k.length>=120)?new Ln(v&&k):r}k=e[0];var R=-1,H=b[0];e:for(;++R<c&&M.length<x;){var q=k[R],K=t?t(q):q;if(q=a||q!==0?q:0,!(H?qr(H,K):u(M,K,a))){for(v=g;--v;){var oe=b[v];if(!(oe?qr(oe,K):u(e[v],K,a)))continue e}H&&H.push(K),M.push(q)}}return M}function d_(e,t,a,u){return kt(e,function(c,g,v){t(u,a(c),g,v)}),u}function Qr(e,t,a){t=vn(t,e),e=Wh(e,t);var u=e==null?e:e[Rt(wt(t))];return u==null?r:ot(u,e,a)}function Zd(e){return Te(e)&&qe(e)==qt}function h_(e){return Te(e)&&qe(e)==In}function g_(e){return Te(e)&&qe(e)==sn}function ei(e,t,a,u,c){return e===t?!0:e==null||t==null||!Te(e)&&!Te(t)?e!==e&&t!==t:p_(e,t,a,u,ei,c)}function p_(e,t,a,u,c,g){var v=te(e),b=te(t),x=v?En:Ue(e),M=b?En:Ue(t);x=x==qt?it:x,M=M==qt?it:M;var k=x==it,R=M==it,H=x==M;if(H&&yn(e)){if(!yn(t))return!1;v=!0,k=!1}if(H&&!k)return g||(g=new Ct),v||pr(e)?Nh(e,t,a,u,c,g):H_(e,t,x,a,u,c,g);if(!(a&E)){var q=k&&ve.call(e,"__wrapped__"),K=R&&ve.call(t,"__wrapped__");if(q||K){var oe=q?e.value():e,Z=K?t.value():t;return g||(g=new Ct),c(oe,Z,a,u,g)}}return H?(g||(g=new Ct),z_(e,t,a,u,c,g)):!1}function v_(e){return Te(e)&&Ue(e)==De}function Js(e,t,a,u){var c=a.length,g=c,v=!u;if(e==null)return!g;for(e=ye(e);c--;){var b=a[c];if(v&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<g;){b=a[c];var x=b[0],M=e[x],k=b[1];if(v&&b[2]){if(M===r&&!(x in e))return!1}else{var R=new Ct;if(u)var H=u(M,k,x,e,t,R);if(!(H===r?ei(k,M,E|_,u,R):H))return!1}}return!0}function Qd(e){if(!Ee(e)||Z_(e))return!1;var t=Qt(e)?vw:oS;return t.test(Rn(e))}function m_(e){return Te(e)&&qe(e)==Ae}function y_(e){return Te(e)&&Ue(e)==Xe}function b_(e){return Te(e)&&Da(e.length)&&!!we[qe(e)]}function eh(e){return typeof e=="function"?e:e==null?tt:typeof e=="object"?te(e)?rh(e[0],e[1]):nh(e):_g(e)}function Vs(e){if(!ri(e))return _w(e);var t=[];for(var a in ye(e))ve.call(e,a)&&a!="constructor"&&t.push(a);return t}function S_(e){if(!Ee(e))return nE(e);var t=ri(e),a=[];for(var u in e)u=="constructor"&&(t||!ve.call(e,u))||a.push(u);return a}function Xs(e,t){return e<t}function th(e,t){var a=-1,u=Qe(e)?D(e.length):[];return gn(e,function(c,g,v){u[++a]=t(c,g,v)}),u}function nh(e){var t=cu(e);return t.length==1&&t[0][2]?Fh(t[0][0],t[0][1]):function(a){return a===e||Js(a,e,t)}}function rh(e,t){return hu(e)&&kh(t)?Fh(Rt(e),t):function(a){var u=Eu(a,e);return u===r&&u===t?Tu(a,e):ei(t,u,E|_)}}function da(e,t,a,u,c){e!==t&&js(t,function(g,v){if(c||(c=new Ct),Ee(g))w_(e,t,v,a,da,u,c);else{var b=u?u(pu(e,v),g,v+"",e,t,c):r;b===r&&(b=g),Hs(e,v,b)}},et)}function w_(e,t,a,u,c,g,v){var b=pu(e,a),x=pu(t,a),M=v.get(x);if(M){Hs(e,a,M);return}var k=g?g(b,x,a+"",e,t,v):r,R=k===r;if(R){var H=te(x),q=!H&&yn(x),K=!H&&!q&&pr(x);k=x,H||q||K?te(b)?k=b:Ie(b)?k=Ze(b):q?(R=!1,k=ph(x,!0)):K?(R=!1,k=vh(x,!0)):k=[]:ai(x)||Wn(x)?(k=b,Wn(b)?k=dg(b):(!Ee(b)||Qt(b))&&(k=Mh(x))):R=!1}R&&(v.set(x,k),c(k,x,u,g,v),v.delete(x)),Hs(e,a,k)}function ih(e,t){var a=e.length;if(a)return t+=t<0?a:0,Zt(t,a)?e[t]:r}function ah(e,t,a){t.length?t=_e(t,function(g){return te(g)?function(v){return kn(v,g.length===1?g[0]:g)}:g}):t=[tt];var u=-1;t=_e(t,st(J()));var c=th(e,function(g,v,b){var x=_e(t,function(M){return M(g)});return{criteria:x,index:++u,value:g}});return JS(c,function(g,v){return M_(g,v,a)})}function __(e,t){return oh(e,t,function(a,u){return Tu(e,u)})}function oh(e,t,a){for(var u=-1,c=t.length,g={};++u<c;){var v=t[u],b=kn(e,v);a(b,v)&&ti(g,vn(v,e),b)}return g}function E_(e){return function(t){return kn(t,e)}}function Ks(e,t,a,u){var c=u?YS:ir,g=-1,v=t.length,b=e;for(e===t&&(t=Ze(t)),a&&(b=_e(e,st(a)));++g<v;)for(var x=0,M=t[g],k=a?a(M):M;(x=c(b,k,x,u))>-1;)b!==e&&na.call(b,x,1),na.call(e,x,1);return e}function sh(e,t){for(var a=e?t.length:0,u=a-1;a--;){var c=t[a];if(a==u||c!==g){var g=c;Zt(c)?na.call(e,c,1):tu(e,c)}}return e}function Zs(e,t){return e+aa(Ud()*(t-e+1))}function T_(e,t,a,u){for(var c=-1,g=Pe(ia((t-e)/(a||1)),0),v=D(g);g--;)v[u?g:++c]=e,e+=a;return v}function Qs(e,t){var a="";if(!e||t<1||t>He)return a;do t%2&&(a+=e),t=aa(t/2),t&&(e+=e);while(t);return a}function se(e,t){return vu(Rh(e,t,tt),e+"")}function x_(e){return jd(vr(e))}function I_(e,t){var a=vr(e);return _a(a,Mn(t,0,a.length))}function ti(e,t,a,u){if(!Ee(e))return e;t=vn(t,e);for(var c=-1,g=t.length,v=g-1,b=e;b!=null&&++c<g;){var x=Rt(t[c]),M=a;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=v){var k=b[x];M=u?u(k,x,b):r,M===r&&(M=Ee(k)?k:Zt(t[c+1])?[]:{})}Kr(b,x,M),b=b[x]}return e}var uh=oa?function(e,t){return oa.set(e,t),e}:tt,O_=ra?function(e,t){return ra(e,"toString",{configurable:!0,enumerable:!1,value:Iu(t),writable:!0})}:tt;function D_(e){return _a(vr(e))}function St(e,t,a){var u=-1,c=e.length;t<0&&(t=-t>c?0:c+t),a=a>c?c:a,a<0&&(a+=c),c=t>a?0:a-t>>>0,t>>>=0;for(var g=D(c);++u<c;)g[u]=e[u+t];return g}function A_(e,t){var a;return gn(e,function(u,c,g){return a=t(u,c,g),!a}),!!a}function ha(e,t,a){var u=0,c=e==null?u:e.length;if(typeof t=="number"&&t===t&&c<=Wi){for(;u<c;){var g=u+c>>>1,v=e[g];v!==null&&!lt(v)&&(a?v<=t:v<t)?u=g+1:c=g}return c}return eu(e,t,tt,a)}function eu(e,t,a,u){var c=0,g=e==null?0:e.length;if(g===0)return 0;t=a(t);for(var v=t!==t,b=t===null,x=lt(t),M=t===r;c<g;){var k=aa((c+g)/2),R=a(e[k]),H=R!==r,q=R===null,K=R===R,oe=lt(R);if(v)var Z=u||K;else M?Z=K&&(u||H):b?Z=K&&H&&(u||!q):x?Z=K&&H&&!q&&(u||!oe):q||oe?Z=!1:Z=u?R<=t:R<t;Z?c=k+1:g=k}return $e(g,Ri)}function lh(e,t){for(var a=-1,u=e.length,c=0,g=[];++a<u;){var v=e[a],b=t?t(v):v;if(!a||!Nt(b,x)){var x=b;g[c++]=v===0?0:v}}return g}function fh(e){return typeof e=="number"?e:lt(e)?Dt:+e}function ut(e){if(typeof e=="string")return e;if(te(e))return _e(e,ut)+"";if(lt(e))return Hd?Hd.call(e):"";var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function pn(e,t,a){var u=-1,c=Gi,g=e.length,v=!0,b=[],x=b;if(a)v=!1,c=As;else if(g>=s){var M=t?null:$_(e);if(M)return Ji(M);v=!1,c=qr,x=new Ln}else x=t?[]:b;e:for(;++u<g;){var k=e[u],R=t?t(k):k;if(k=a||k!==0?k:0,v&&R===R){for(var H=x.length;H--;)if(x[H]===R)continue e;t&&x.push(R),b.push(k)}else c(x,R,a)||(x!==b&&x.push(R),b.push(k))}return b}function tu(e,t){t=vn(t,e);var a=-1,u=t.length;if(!u)return!0;for(var c=e==null||typeof e!="object"&&typeof e!="function";++a<u;){var g=t[a];if(typeof g=="string"){if(g==="__proto__"&&!ve.call(e,"__proto__"))return!1;if(g==="constructor"&&a+1<u&&typeof t[a+1]=="string"&&t[a+1]==="prototype"){if(c&&a===0)continue;return!1}}}var v=Wh(e,t);return v==null||delete v[Rt(wt(t))]}function ch(e,t,a,u){return ti(e,t,a(kn(e,t)),u)}function ga(e,t,a,u){for(var c=e.length,g=u?c:-1;(u?g--:++g<c)&&t(e[g],g,e););return a?St(e,u?0:g,u?g+1:c):St(e,u?g+1:0,u?c:g)}function dh(e,t){var a=e;return a instanceof fe&&(a=a.value()),Cs(t,function(u,c){return c.func.apply(c.thisArg,cn([u],c.args))},a)}function nu(e,t,a){var u=e.length;if(u<2)return u?pn(e[0]):[];for(var c=-1,g=D(u);++c<u;)for(var v=e[c],b=-1;++b<u;)b!=c&&(g[c]=Zr(g[c]||v,e[b],t,a));return pn(Re(g,1),t,a)}function hh(e,t,a){for(var u=-1,c=e.length,g=t.length,v={};++u<c;){var b=u<g?t[u]:r;a(v,e[u],b)}return v}function ru(e){return Ie(e)?e:[]}function iu(e){return typeof e=="function"?e:tt}function vn(e,t){return te(e)?e:hu(e,t)?[e]:Hh(me(e))}var C_=se;function mn(e,t,a){var u=e.length;return a=a===r?u:a,!t&&a>=u?e:St(e,t,a)}var gh=mw||function(e){return Fe.clearTimeout(e)};function ph(e,t){if(t)return e.slice();var a=e.length,u=Fd?Fd(a):new e.constructor(a);return e.copy(u),u}function au(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function N_(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}function P_(e){var t=new e.constructor(e.source,Zc.exec(e));return t.lastIndex=e.lastIndex,t}function L_(e){return Xr?ye(Xr.call(e)):{}}function vh(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function mh(e,t){if(e!==t){var a=e!==r,u=e===null,c=e===e,g=lt(e),v=t!==r,b=t===null,x=t===t,M=lt(t);if(!b&&!M&&!g&&e>t||g&&v&&x&&!b&&!M||u&&v&&x||!a&&x||!c)return 1;if(!u&&!g&&!M&&e<t||M&&a&&c&&!u&&!g||b&&a&&c||!v&&c||!x)return-1}return 0}function M_(e,t,a){for(var u=-1,c=e.criteria,g=t.criteria,v=c.length,b=a.length;++u<v;){var x=mh(c[u],g[u]);if(x){if(u>=b)return x;var M=a[u];return x*(M=="desc"?-1:1)}}return e.index-t.index}function yh(e,t,a,u){for(var c=-1,g=e.length,v=a.length,b=-1,x=t.length,M=Pe(g-v,0),k=D(x+M),R=!u;++b<x;)k[b]=t[b];for(;++c<v;)(R||c<g)&&(k[a[c]]=e[c]);for(;M--;)k[b++]=e[c++];return k}function bh(e,t,a,u){for(var c=-1,g=e.length,v=-1,b=a.length,x=-1,M=t.length,k=Pe(g-b,0),R=D(k+M),H=!u;++c<k;)R[c]=e[c];for(var q=c;++x<M;)R[q+x]=t[x];for(;++v<b;)(H||c<g)&&(R[q+a[v]]=e[c++]);return R}function Ze(e,t){var a=-1,u=e.length;for(t||(t=D(u));++a<u;)t[a]=e[a];return t}function Ft(e,t,a,u){var c=!a;a||(a={});for(var g=-1,v=t.length;++g<v;){var b=t[g],x=u?u(a[b],e[b],b,a,e):r;x===r&&(x=e[b]),c?Vt(a,b,x):Kr(a,b,x)}return a}function k_(e,t){return Ft(e,du(e),t)}function F_(e,t){return Ft(e,Ph(e),t)}function pa(e,t){return function(a,u){var c=te(a)?US:i_,g=t?t():{};return c(a,e,J(u,2),g)}}function dr(e){return se(function(t,a){var u=-1,c=a.length,g=c>1?a[c-1]:r,v=c>2?a[2]:r;for(g=e.length>3&&typeof g=="function"?(c--,g):r,v&&Ge(a[0],a[1],v)&&(g=c<3?r:g,c=1),t=ye(t);++u<c;){var b=a[u];b&&e(t,b,u,g)}return t})}function Sh(e,t){return function(a,u){if(a==null)return a;if(!Qe(a))return e(a,u);for(var c=a.length,g=t?c:-1,v=ye(a);(t?g--:++g<c)&&u(v[g],g,v)!==!1;);return a}}function wh(e){return function(t,a,u){for(var c=-1,g=ye(t),v=u(t),b=v.length;b--;){var x=v[e?b:++c];if(a(g[x],x,g)===!1)break}return t}}function R_(e,t,a){var u=t&I,c=ni(e);function g(){var v=this&&this!==Fe&&this instanceof g?c:e;return v.apply(u?a:this,arguments)}return g}function _h(e){return function(t){t=me(t);var a=ar(t)?At(t):r,u=a?a[0]:t.charAt(0),c=a?mn(a,1).join(""):t.slice(1);return u[e]()+c}}function hr(e){return function(t){return Cs(Sg(bg(t).replace(OS,"")),e,"")}}function ni(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 a=cr(e.prototype),u=e.apply(a,t);return Ee(u)?u:a}}function W_(e,t,a){var u=ni(e);function c(){for(var g=arguments.length,v=D(g),b=g,x=gr(c);b--;)v[b]=arguments[b];var M=g<3&&v[0]!==x&&v[g-1]!==x?[]:dn(v,x);if(g-=M.length,g<a)return Oh(e,t,va,c.placeholder,r,v,M,r,r,a-g);var k=this&&this!==Fe&&this instanceof c?u:e;return ot(k,this,v)}return c}function Eh(e){return function(t,a,u){var c=ye(t);if(!Qe(t)){var g=J(a,3);t=Me(t),a=function(b){return g(c[b],b,c)}}var v=e(t,a,u);return v>-1?c[g?t[v]:v]:r}}function Th(e){return Kt(function(t){var a=t.length,u=a,c=yt.prototype.thru;for(e&&t.reverse();u--;){var g=t[u];if(typeof g!="function")throw new mt(f);if(c&&!v&&Sa(g)=="wrapper")var v=new yt([],!0)}for(u=v?u:a;++u<a;){g=t[u];var b=Sa(g),x=b=="wrapper"?fu(g):r;x&&gu(x[0])&&x[1]==(N|U|B|L)&&!x[4].length&&x[9]==1?v=v[Sa(x[0])].apply(v,x[3]):v=g.length==1&&gu(g)?v[b]():v.thru(g)}return function(){var M=arguments,k=M[0];if(v&&M.length==1&&te(k))return v.plant(k).value();for(var R=0,H=a?t[R].apply(this,M):k;++R<a;)H=t[R].call(this,H);return H}})}function va(e,t,a,u,c,g,v,b,x,M){var k=t&N,R=t&I,H=t&C,q=t&(U|V),K=t&j,oe=H?r:ni(e);function Z(){for(var le=arguments.length,de=D(le),ft=le;ft--;)de[ft]=arguments[ft];if(q)var Ye=gr(Z),ct=XS(de,Ye);if(u&&(de=yh(de,u,c,q)),g&&(de=bh(de,g,v,q)),le-=ct,q&&le<M){var Oe=dn(de,Ye);return Oh(e,t,va,Z.placeholder,a,de,Oe,b,x,M-le)}var Pt=R?a:this,tn=H?Pt[e]:e;return le=de.length,b?de=iE(de,b):K&&le>1&&de.reverse(),k&&x<le&&(de.length=x),this&&this!==Fe&&this instanceof Z&&(tn=oe||ni(tn)),tn.apply(Pt,de)}return Z}function xh(e,t){return function(a,u){return d_(a,e,t(u),{})}}function ma(e,t){return function(a,u){var c;if(a===r&&u===r)return t;if(a!==r&&(c=a),u!==r){if(c===r)return u;typeof a=="string"||typeof u=="string"?(a=ut(a),u=ut(u)):(a=fh(a),u=fh(u)),c=e(a,u)}return c}}function ou(e){return Kt(function(t){return t=_e(t,st(J())),se(function(a){var u=this;return e(t,function(c){return ot(c,u,a)})})})}function ya(e,t){t=t===r?" ":ut(t);var a=t.length;if(a<2)return a?Qs(t,e):t;var u=Qs(t,ia(e/or(t)));return ar(t)?mn(At(u),0,e).join(""):u.slice(0,e)}function B_(e,t,a,u){var c=t&I,g=ni(e);function v(){for(var b=-1,x=arguments.length,M=-1,k=u.length,R=D(k+x),H=this&&this!==Fe&&this instanceof v?g:e;++M<k;)R[M]=u[M];for(;x--;)R[M++]=arguments[++b];return ot(H,c?a:this,R)}return v}function Ih(e){return function(t,a,u){return u&&typeof u!="number"&&Ge(t,a,u)&&(a=u=r),t=en(t),a===r?(a=t,t=0):a=en(a),u=u===r?t<a?1:-1:en(u),T_(t,a,u,e)}}function ba(e){return function(t,a){return typeof t=="string"&&typeof a=="string"||(t=_t(t),a=_t(a)),e(t,a)}}function Oh(e,t,a,u,c,g,v,b,x,M){var k=t&U,R=k?v:r,H=k?r:v,q=k?g:r,K=k?r:g;t|=k?B:ue,t&=~(k?ue:B),t&F||(t&=-4);var oe=[e,t,c,q,R,K,H,b,x,M],Z=a.apply(r,oe);return gu(e)&&Bh(Z,oe),Z.placeholder=u,$h(Z,e,t)}function su(e){var t=Ne[e];return function(a,u){if(a=_t(a),u=u==null?0:$e(ie(u),292),u&&$d(a)){var c=(me(a)+"e").split("e"),g=t(c[0]+"e"+(+c[1]+u));return c=(me(g)+"e").split("e"),+(c[0]+"e"+(+c[1]-u))}return t(a)}}var $_=lr&&1/Ji(new lr([,-0]))[1]==Ot?function(e){return new lr(e)}:Au;function Dh(e){return function(t){var a=Ue(t);return a==De?Rs(t):a==Xe?rw(t):VS(t,e(t))}}function Xt(e,t,a,u,c,g,v,b){var x=t&C;if(!x&&typeof e!="function")throw new mt(f);var M=u?u.length:0;if(M||(t&=-97,u=c=r),v=v===r?v:Pe(ie(v),0),b=b===r?b:ie(b),M-=c?c.length:0,t&ue){var k=u,R=c;u=c=r}var H=x?r:fu(e),q=[e,t,a,u,c,k,R,g,v,b];if(H&&tE(q,H),e=q[0],t=q[1],a=q[2],u=q[3],c=q[4],b=q[9]=q[9]===r?x?0:e.length:Pe(q[9]-M,0),!b&&t&(U|V)&&(t&=-25),!t||t==I)var K=R_(e,t,a);else t==U||t==V?K=W_(e,t,b):(t==B||t==(I|B))&&!c.length?K=B_(e,t,a,u):K=va.apply(r,q);var oe=H?uh:Bh;return $h(oe(K,q),e,t)}function Ah(e,t,a,u){return e===r||Nt(e,ur[a])&&!ve.call(u,a)?t:e}function Ch(e,t,a,u,c,g){return Ee(e)&&Ee(t)&&(g.set(t,e),da(e,t,r,Ch,g),g.delete(t)),e}function U_(e){return ai(e)?r:e}function Nh(e,t,a,u,c,g){var v=a&E,b=e.length,x=t.length;if(b!=x&&!(v&&x>b))return!1;var M=g.get(e),k=g.get(t);if(M&&k)return M==t&&k==e;var R=-1,H=!0,q=a&_?new Ln:r;for(g.set(e,t),g.set(t,e);++R<b;){var K=e[R],oe=t[R];if(u)var Z=v?u(oe,K,R,t,e,g):u(K,oe,R,e,t,g);if(Z!==r){if(Z)continue;H=!1;break}if(q){if(!Ns(t,function(le,de){if(!qr(q,de)&&(K===le||c(K,le,a,u,g)))return q.push(de)})){H=!1;break}}else if(!(K===oe||c(K,oe,a,u,g))){H=!1;break}}return g.delete(e),g.delete(t),H}function H_(e,t,a,u,c,g,v){switch(a){case je:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case In:return!(e.byteLength!=t.byteLength||!g(new ea(e),new ea(t)));case Tn:case sn:case un:return Nt(+e,+t);case Xn:return e.name==t.name&&e.message==t.message;case Ae:case ln:return e==t+"";case De:var b=Rs;case Xe:var x=u&E;if(b||(b=Ji),e.size!=t.size&&!x)return!1;var M=v.get(e);if(M)return M==t;u|=_,v.set(e,t);var k=Nh(b(e),b(t),u,c,g,v);return v.delete(e),k;case Be:if(Xr)return Xr.call(e)==Xr.call(t)}return!1}function z_(e,t,a,u,c,g){var v=a&E,b=uu(e),x=b.length,M=uu(t),k=M.length;if(x!=k&&!v)return!1;for(var R=x;R--;){var H=b[R];if(!(v?H in t:ve.call(t,H)))return!1}var q=g.get(e),K=g.get(t);if(q&&K)return q==t&&K==e;var oe=!0;g.set(e,t),g.set(t,e);for(var Z=v;++R<x;){H=b[R];var le=e[H],de=t[H];if(u)var ft=v?u(de,le,H,t,e,g):u(le,de,H,e,t,g);if(!(ft===r?le===de||c(le,de,a,u,g):ft)){oe=!1;break}Z||(Z=H=="constructor")}if(oe&&!Z){var Ye=e.constructor,ct=t.constructor;Ye!=ct&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof ct=="function"&&ct instanceof ct)&&(oe=!1)}return g.delete(e),g.delete(t),oe}function Kt(e){return vu(Rh(e,r,Gh),e+"")}function uu(e){return Kd(e,Me,du)}function lu(e){return Kd(e,et,Ph)}var fu=oa?function(e){return oa.get(e)}:Au;function Sa(e){for(var t=e.name+"",a=fr[t],u=ve.call(fr,t)?a.length:0;u--;){var c=a[u],g=c.func;if(g==null||g==e)return c.name}return t}function gr(e){var t=ve.call(h,"placeholder")?h:e;return t.placeholder}function J(){var e=h.iteratee||Ou;return e=e===Ou?eh:e,arguments.length?e(arguments[0],arguments[1]):e}function wa(e,t){var a=e.__data__;return K_(t)?a[typeof t=="string"?"string":"hash"]:a.map}function cu(e){for(var t=Me(e),a=t.length;a--;){var u=t[a],c=e[u];t[a]=[u,c,kh(c)]}return t}function Fn(e,t){var a=ew(e,t);return Qd(a)?a:r}function j_(e){var t=ve.call(e,Nn),a=e[Nn];try{e[Nn]=r;var u=!0}catch{}var c=Zi.call(e);return u&&(t?e[Nn]=a:delete e[Nn]),c}var du=Bs?function(e){return e==null?[]:(e=ye(e),fn(Bs(e),function(t){return Wd.call(e,t)}))}:Cu,Ph=Bs?function(e){for(var t=[];e;)cn(t,du(e)),e=ta(e);return t}:Cu,Ue=qe;($s&&Ue(new $s(new ArrayBuffer(1)))!=je||Yr&&Ue(new Yr)!=De||Us&&Ue(Us.resolve())!=ze||lr&&Ue(new lr)!=Xe||Jr&&Ue(new Jr)!=xn)&&(Ue=function(e){var t=qe(e),a=t==it?e.constructor:r,u=a?Rn(a):"";if(u)switch(u){case Iw:return je;case Ow:return De;case Dw:return ze;case Aw:return Xe;case Cw:return xn}return t});function q_(e,t,a){for(var u=-1,c=a.length;++u<c;){var g=a[u],v=g.size;switch(g.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=$e(t,e+v);break;case"takeRight":e=Pe(e,t-v);break}}return{start:e,end:t}}function G_(e){var t=e.match(nr);return t?t[1].split(Q1):[]}function Lh(e,t,a){t=vn(t,e);for(var u=-1,c=t.length,g=!1;++u<c;){var v=Rt(t[u]);if(!(g=e!=null&&a(e,v)))break;e=e[v]}return g||++u!=c?g:(c=e==null?0:e.length,!!c&&Da(c)&&Zt(v,c)&&(te(e)||Wn(e)))}function Y_(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(a.index=e.index,a.input=e.input),a}function Mh(e){return typeof e.constructor=="function"&&!ri(e)?cr(ta(e)):{}}function J_(e,t,a){var u=e.constructor;switch(t){case In:return au(e);case Tn:case sn:return new u(+e);case je:return N_(e,a);case Qn:case Rr:case On:case Dn:case Wr:case Br:case er:case $r:case Ur:return vh(e,a);case De:return new u;case un:case ln:return new u(e);case Ae:return P_(e);case Xe:return new u;case Be:return L_(e)}}function V_(e,t){var a=t.length;if(!a)return e;var u=a-1;return t[u]=(a>1?"& ":"")+t[u],t=t.join(a>2?", ":" "),e.replace(jr,`{
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'"},a1={"&":"&","<":"<",">":">",""":'"',"'":"'"},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"&< 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,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function X_(e){return te(e)||Wn(e)||!!(Bd&&e&&e[Bd])}function Zt(e,t){var a=typeof e;return t=t??He,!!t&&(a=="number"||a!="symbol"&&uS.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t,a){if(!Ee(a))return!1;var u=typeof t;return(u=="number"?Qe(a)&&Zt(t,a.length):u=="string"&&t in a)?Nt(a[t],e):!1}function hu(e,t){if(te(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||lt(e)?!0:Ss.test(e)||!bs.test(e)||t!=null&&e in ye(t)}function K_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gu(e){var t=Sa(e),a=h[t];if(typeof a!="function"||!(t in fe.prototype))return!1;if(e===a)return!0;var u=fu(a);return!!u&&e===u[0]}function Z_(e){return!!kd&&kd in e}var Q_=Xi?Qt:Nu;function ri(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||ur;return e===a}function kh(e){return e===e&&!Ee(e)}function Fh(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==r||e in ye(a))}}function eE(e){var t=Ia(e,function(u){return a.size===m&&a.clear(),u}),a=t.cache;return t}function tE(e,t){var a=e[1],u=t[1],c=a|u,g=c<(I|C|N),v=u==N&&a==U||u==N&&a==L&&e[7].length<=t[8]||u==(N|L)&&t[7].length<=t[8]&&a==U;if(!(g||v))return e;u&I&&(e[2]=t[2],c|=a&I?0:F);var b=t[3];if(b){var x=e[3];e[3]=x?yh(x,b,t[4]):b,e[4]=x?dn(e[3],S):t[4]}return b=t[5],b&&(x=e[5],e[5]=x?bh(x,b,t[6]):b,e[6]=x?dn(e[5],S):t[6]),b=t[7],b&&(e[7]=b),u&N&&(e[8]=e[8]==null?t[8]:$e(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function nE(e){var t=[];if(e!=null)for(var a in ye(e))t.push(a);return t}function rE(e){return Zi.call(e)}function Rh(e,t,a){return t=Pe(t===r?e.length-1:t,0),function(){for(var u=arguments,c=-1,g=Pe(u.length-t,0),v=D(g);++c<g;)v[c]=u[t+c];c=-1;for(var b=D(t+1);++c<t;)b[c]=u[c];return b[t]=a(v),ot(e,this,b)}}function Wh(e,t){return t.length<2?e:kn(e,St(t,0,-1))}function iE(e,t){for(var a=e.length,u=$e(t.length,a),c=Ze(e);u--;){var g=t[u];e[u]=Zt(g,a)?c[g]:r}return e}function pu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bh=Uh(uh),ii=bw||function(e,t){return Fe.setTimeout(e,t)},vu=Uh(O_);function $h(e,t,a){var u=t+"";return vu(e,V_(u,aE(G_(u),a)))}function Uh(e){var t=0,a=0;return function(){var u=Ew(),c=X-(u-a);if(a=u,c>0){if(++t>=ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function _a(e,t){var a=-1,u=e.length,c=u-1;for(t=t===r?u:t;++a<t;){var g=Zs(a,c),v=e[g];e[g]=e[a],e[a]=v}return e.length=t,e}var Hh=eE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hi,function(a,u,c,g){t.push(c?g.replace(nS,"$1"):u||a)}),t});function Rt(e){if(typeof e=="string"||lt(e))return e;var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function Rn(e){if(e!=null){try{return Ki.call(e)}catch{}try{return e+""}catch{}}return""}function aE(e,t){return vt(Mr,function(a){var u="_."+a[0];t&a[1]&&!Gi(e,u)&&e.push(u)}),e.sort()}function zh(e){if(e instanceof fe)return e.clone();var t=new yt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oE(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=Pe(ie(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var c=0,g=0,v=D(ia(u/t));c<u;)v[g++]=St(e,c,c+=t);return v}function sE(e){for(var t=-1,a=e==null?0:e.length,u=0,c=[];++t<a;){var g=e[t];g&&(c[u++]=g)}return c}function uE(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),a=arguments[0],u=e;u--;)t[u-1]=arguments[u];return cn(te(a)?Ze(a):[a],Re(t,1))}var lE=se(function(e,t){return Ie(e)?Zr(e,Re(t,1,Ie,!0)):[]}),fE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),J(a,2)):[]}),cE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),r,a):[]});function dE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),St(e,t<0?0:t,u)):[]}function hE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,0,t<0?0:t)):[]}function gE(e,t){return e&&e.length?ga(e,J(t,3),!0,!0):[]}function pE(e,t){return e&&e.length?ga(e,J(t,3),!0):[]}function vE(e,t,a,u){var c=e==null?0:e.length;return c?(a&&typeof a!="number"&&Ge(e,t,a)&&(a=0,u=c),u_(e,t,a,u)):[]}function jh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),Yi(e,J(t,3),c)}function qh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u-1;return a!==r&&(c=ie(a),c=a<0?Pe(u+c,0):$e(c,u-1)),Yi(e,J(t,3),c,!0)}function Gh(e){var t=e==null?0:e.length;return t?Re(e,1):[]}function mE(e){var t=e==null?0:e.length;return t?Re(e,Ot):[]}function yE(e,t){var a=e==null?0:e.length;return a?(t=t===r?1:ie(t),Re(e,t)):[]}function bE(e){for(var t=-1,a=e==null?0:e.length,u={};++t<a;){var c=e[t];u[c[0]]=c[1]}return u}function Yh(e){return e&&e.length?e[0]:r}function SE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),ir(e,t,c)}function wE(e){var t=e==null?0:e.length;return t?St(e,0,-1):[]}var _E=se(function(e){var t=_e(e,ru);return t.length&&t[0]===e[0]?Ys(t):[]}),EE=se(function(e){var t=wt(e),a=_e(e,ru);return t===wt(a)?t=r:a.pop(),a.length&&a[0]===e[0]?Ys(a,J(t,2)):[]}),TE=se(function(e){var t=wt(e),a=_e(e,ru);return t=typeof t=="function"?t:r,t&&a.pop(),a.length&&a[0]===e[0]?Ys(a,r,t):[]});function xE(e,t){return e==null?"":ww.call(e,t)}function wt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function IE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u;return a!==r&&(c=ie(a),c=c<0?Pe(u+c,0):$e(c,u-1)),t===t?aw(e,t,c):Yi(e,Od,c,!0)}function OE(e,t){return e&&e.length?ih(e,ie(t)):r}var DE=se(Jh);function Jh(e,t){return e&&e.length&&t&&t.length?Ks(e,t):e}function AE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,J(a,2)):e}function CE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,r,a):e}var NE=Kt(function(e,t){var a=e==null?0:e.length,u=zs(e,t);return sh(e,_e(t,function(c){return Zt(c,a)?+c:c}).sort(mh)),u});function PE(e,t){var a=[];if(!(e&&e.length))return a;var u=-1,c=[],g=e.length;for(t=J(t,3);++u<g;){var v=e[u];t(v,u,e)&&(a.push(v),c.push(u))}return sh(e,c),a}function mu(e){return e==null?e:xw.call(e)}function LE(e,t,a){var u=e==null?0:e.length;return u?(a&&typeof a!="number"&&Ge(e,t,a)?(t=0,a=u):(t=t==null?0:ie(t),a=a===r?u:ie(a)),St(e,t,a)):[]}function ME(e,t){return ha(e,t)}function kE(e,t,a){return eu(e,t,J(a,2))}function FE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t);if(u<a&&Nt(e[u],t))return u}return-1}function RE(e,t){return ha(e,t,!0)}function WE(e,t,a){return eu(e,t,J(a,2),!0)}function BE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t,!0)-1;if(Nt(e[u],t))return u}return-1}function $E(e){return e&&e.length?lh(e):[]}function UE(e,t){return e&&e.length?lh(e,J(t,2)):[]}function HE(e){var t=e==null?0:e.length;return t?St(e,1,t):[]}function zE(e,t,a){return e&&e.length?(t=a||t===r?1:ie(t),St(e,0,t<0?0:t)):[]}function jE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,t<0?0:t,u)):[]}function qE(e,t){return e&&e.length?ga(e,J(t,3),!1,!0):[]}function GE(e,t){return e&&e.length?ga(e,J(t,3)):[]}var YE=se(function(e){return pn(Re(e,1,Ie,!0))}),JE=se(function(e){var t=wt(e);return Ie(t)&&(t=r),pn(Re(e,1,Ie,!0),J(t,2))}),VE=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,pn(Re(e,1,Ie,!0),r,t)});function XE(e){return e&&e.length?pn(e):[]}function KE(e,t){return e&&e.length?pn(e,J(t,2)):[]}function ZE(e,t){return t=typeof t=="function"?t:r,e&&e.length?pn(e,r,t):[]}function yu(e){if(!(e&&e.length))return[];var t=0;return e=fn(e,function(a){if(Ie(a))return t=Pe(a.length,t),!0}),ks(t,function(a){return _e(e,Ps(a))})}function Vh(e,t){if(!(e&&e.length))return[];var a=yu(e);return t==null?a:_e(a,function(u){return ot(t,r,u)})}var QE=se(function(e,t){return Ie(e)?Zr(e,t):[]}),eT=se(function(e){return nu(fn(e,Ie))}),tT=se(function(e){var t=wt(e);return Ie(t)&&(t=r),nu(fn(e,Ie),J(t,2))}),nT=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,nu(fn(e,Ie),r,t)}),rT=se(yu);function iT(e,t){return hh(e||[],t||[],Kr)}function aT(e,t){return hh(e||[],t||[],ti)}var oT=se(function(e){var t=e.length,a=t>1?e[t-1]:r;return a=typeof a=="function"?(e.pop(),a):r,Vh(e,a)});function Xh(e){var t=h(e);return t.__chain__=!0,t}function sT(e,t){return t(e),e}function Ea(e,t){return t(e)}var uT=Kt(function(e){var t=e.length,a=t?e[0]:0,u=this.__wrapped__,c=function(g){return zs(g,e)};return t>1||this.__actions__.length||!(u instanceof fe)||!Zt(a)?this.thru(c):(u=u.slice(a,+a+(t?1:0)),u.__actions__.push({func:Ea,args:[c],thisArg:r}),new yt(u,this.__chain__).thru(function(g){return t&&!g.length&&g.push(r),g}))});function lT(){return Xh(this)}function fT(){return new yt(this.value(),this.__chain__)}function cT(){this.__values__===r&&(this.__values__=fg(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function dT(){return this}function hT(e){for(var t,a=this;a instanceof ua;){var u=zh(a);u.__index__=0,u.__values__=r,t?c.__wrapped__=u:t=u;var c=u;a=a.__wrapped__}return c.__wrapped__=e,t}function gT(){var e=this.__wrapped__;if(e instanceof fe){var t=e;return this.__actions__.length&&(t=new fe(this)),t=t.reverse(),t.__actions__.push({func:Ea,args:[mu],thisArg:r}),new yt(t,this.__chain__)}return this.thru(mu)}function pT(){return dh(this.__wrapped__,this.__actions__)}var vT=pa(function(e,t,a){ve.call(e,a)?++e[a]:Vt(e,a,1)});function mT(e,t,a){var u=te(e)?xd:s_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}function yT(e,t){var a=te(e)?fn:Vd;return a(e,J(t,3))}var bT=Eh(jh),ST=Eh(qh);function wT(e,t){return Re(Ta(e,t),1)}function _T(e,t){return Re(Ta(e,t),Ot)}function ET(e,t,a){return a=a===r?1:ie(a),Re(Ta(e,t),a)}function Kh(e,t){var a=te(e)?vt:gn;return a(e,J(t,3))}function Zh(e,t){var a=te(e)?HS:Jd;return a(e,J(t,3))}var TT=pa(function(e,t,a){ve.call(e,a)?e[a].push(t):Vt(e,a,[t])});function xT(e,t,a,u){e=Qe(e)?e:vr(e),a=a&&!u?ie(a):0;var c=e.length;return a<0&&(a=Pe(c+a,0)),Aa(e)?a<=c&&e.indexOf(t,a)>-1:!!c&&ir(e,t,a)>-1}var IT=se(function(e,t,a){var u=-1,c=typeof t=="function",g=Qe(e)?D(e.length):[];return gn(e,function(v){g[++u]=c?ot(t,v,a):Qr(v,t,a)}),g}),OT=pa(function(e,t,a){Vt(e,a,t)});function Ta(e,t){var a=te(e)?_e:th;return a(e,J(t,3))}function DT(e,t,a,u){return e==null?[]:(te(t)||(t=t==null?[]:[t]),a=u?r:a,te(a)||(a=a==null?[]:[a]),ah(e,t,a))}var AT=pa(function(e,t,a){e[a?0:1].push(t)},function(){return[[],[]]});function CT(e,t,a){var u=te(e)?Cs:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,gn)}function NT(e,t,a){var u=te(e)?zS:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,Jd)}function PT(e,t){var a=te(e)?fn:Vd;return a(e,Oa(J(t,3)))}function LT(e){var t=te(e)?jd:x_;return t(e)}function MT(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=ie(t);var u=te(e)?n_:I_;return u(e,t)}function kT(e){var t=te(e)?r_:D_;return t(e)}function FT(e){if(e==null)return 0;if(Qe(e))return Aa(e)?or(e):e.length;var t=Ue(e);return t==De||t==Xe?e.size:Vs(e).length}function RT(e,t,a){var u=te(e)?Ns:A_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}var WT=se(function(e,t){if(e==null)return[];var a=t.length;return a>1&&Ge(e,t[0],t[1])?t=[]:a>2&&Ge(t[0],t[1],t[2])&&(t=[t[0]]),ah(e,Re(t,1),[])}),xa=yw||function(){return Fe.Date.now()};function BT(e,t){if(typeof t!="function")throw new mt(f);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function Qh(e,t,a){return t=a?r:t,t=e&&t==null?e.length:t,Xt(e,N,r,r,r,r,t)}function eg(e,t){var a;if(typeof t!="function")throw new mt(f);return e=ie(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=r),a}}var bu=se(function(e,t,a){var u=I;if(a.length){var c=dn(a,gr(bu));u|=B}return Xt(e,u,t,a,c)}),tg=se(function(e,t,a){var u=I|C;if(a.length){var c=dn(a,gr(tg));u|=B}return Xt(t,u,e,a,c)});function ng(e,t,a){t=a?r:t;var u=Xt(e,U,r,r,r,r,r,t);return u.placeholder=ng.placeholder,u}function rg(e,t,a){t=a?r:t;var u=Xt(e,V,r,r,r,r,r,t);return u.placeholder=rg.placeholder,u}function ig(e,t,a){var u,c,g,v,b,x,M=0,k=!1,R=!1,H=!0;if(typeof e!="function")throw new mt(f);t=_t(t)||0,Ee(a)&&(k=!!a.leading,R="maxWait"in a,g=R?Pe(_t(a.maxWait)||0,t):g,H="trailing"in a?!!a.trailing:H);function q(Oe){var Pt=u,tn=c;return u=c=r,M=Oe,v=e.apply(tn,Pt),v}function K(Oe){return M=Oe,b=ii(le,t),k?q(Oe):v}function oe(Oe){var Pt=Oe-x,tn=Oe-M,Eg=t-Pt;return R?$e(Eg,g-tn):Eg}function Z(Oe){var Pt=Oe-x,tn=Oe-M;return x===r||Pt>=t||Pt<0||R&&tn>=g}function le(){var Oe=xa();if(Z(Oe))return de(Oe);b=ii(le,oe(Oe))}function de(Oe){return b=r,H&&u?q(Oe):(u=c=r,v)}function ft(){b!==r&&gh(b),M=0,u=x=c=b=r}function Ye(){return b===r?v:de(xa())}function ct(){var Oe=xa(),Pt=Z(Oe);if(u=arguments,c=this,x=Oe,Pt){if(b===r)return K(x);if(R)return gh(b),b=ii(le,t),q(x)}return b===r&&(b=ii(le,t)),v}return ct.cancel=ft,ct.flush=Ye,ct}var $T=se(function(e,t){return Yd(e,1,t)}),UT=se(function(e,t,a){return Yd(e,_t(t)||0,a)});function HT(e){return Xt(e,j)}function Ia(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new mt(f);var a=function(){var u=arguments,c=t?t.apply(this,u):u[0],g=a.cache;if(g.has(c))return g.get(c);var v=e.apply(this,u);return a.cache=g.set(c,v)||g,v};return a.cache=new(Ia.Cache||Jt),a}Ia.Cache=Jt;function Oa(e){if(typeof e!="function")throw new mt(f);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 zT(e){return eg(2,e)}var jT=C_(function(e,t){t=t.length==1&&te(t[0])?_e(t[0],st(J())):_e(Re(t,1),st(J()));var a=t.length;return se(function(u){for(var c=-1,g=$e(u.length,a);++c<g;)u[c]=t[c].call(this,u[c]);return ot(e,this,u)})}),Su=se(function(e,t){var a=dn(t,gr(Su));return Xt(e,B,r,t,a)}),ag=se(function(e,t){var a=dn(t,gr(ag));return Xt(e,ue,r,t,a)}),qT=Kt(function(e,t){return Xt(e,L,r,r,r,t)});function GT(e,t){if(typeof e!="function")throw new mt(f);return t=t===r?t:ie(t),se(e,t)}function YT(e,t){if(typeof e!="function")throw new mt(f);return t=t==null?0:Pe(ie(t),0),se(function(a){var u=a[t],c=mn(a,0,t);return u&&cn(c,u),ot(e,this,c)})}function JT(e,t,a){var u=!0,c=!0;if(typeof e!="function")throw new mt(f);return Ee(a)&&(u="leading"in a?!!a.leading:u,c="trailing"in a?!!a.trailing:c),ig(e,t,{leading:u,maxWait:t,trailing:c})}function VT(e){return Qh(e,1)}function XT(e,t){return Su(iu(t),e)}function KT(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function ZT(e){return bt(e,y)}function QT(e,t){return t=typeof t=="function"?t:r,bt(e,y,t)}function ex(e){return bt(e,w|y)}function tx(e,t){return t=typeof t=="function"?t:r,bt(e,w|y,t)}function nx(e,t){return t==null||Gd(e,t,Me(t))}function Nt(e,t){return e===t||e!==e&&t!==t}var rx=ba(Gs),ix=ba(function(e,t){return e>=t}),Wn=Zd((function(){return arguments})())?Zd:function(e){return Te(e)&&ve.call(e,"callee")&&!Wd.call(e,"callee")},te=D.isArray,ax=bd?st(bd):h_;function Qe(e){return e!=null&&Da(e.length)&&!Qt(e)}function Ie(e){return Te(e)&&Qe(e)}function ox(e){return e===!0||e===!1||Te(e)&&qe(e)==Tn}var yn=Sw||Nu,sx=Sd?st(Sd):g_;function ux(e){return Te(e)&&e.nodeType===1&&!ai(e)}function lx(e){if(e==null)return!0;if(Qe(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||pr(e)||Wn(e)))return!e.length;var t=Ue(e);if(t==De||t==Xe)return!e.size;if(ri(e))return!Vs(e).length;for(var a in e)if(ve.call(e,a))return!1;return!0}function fx(e,t){return ei(e,t)}function cx(e,t,a){a=typeof a=="function"?a:r;var u=a?a(e,t):r;return u===r?ei(e,t,r,a):!!u}function wu(e){if(!Te(e))return!1;var t=qe(e);return t==Xn||t==Fr||typeof e.message=="string"&&typeof e.name=="string"&&!ai(e)}function dx(e){return typeof e=="number"&&$d(e)}function Qt(e){if(!Ee(e))return!1;var t=qe(e);return t==Kn||t==Bi||t==kr||t==Zn}function og(e){return typeof e=="number"&&e==ie(e)}function Da(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=He}function Ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Te(e){return e!=null&&typeof e=="object"}var sg=wd?st(wd):v_;function hx(e,t){return e===t||Js(e,t,cu(t))}function gx(e,t,a){return a=typeof a=="function"?a:r,Js(e,t,cu(t),a)}function px(e){return ug(e)&&e!=+e}function vx(e){if(Q_(e))throw new Q(l);return Qd(e)}function mx(e){return e===null}function yx(e){return e==null}function ug(e){return typeof e=="number"||Te(e)&&qe(e)==un}function ai(e){if(!Te(e)||qe(e)!=it)return!1;var t=ta(e);if(t===null)return!0;var a=ve.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Ki.call(a)==gw}var _u=_d?st(_d):m_;function bx(e){return og(e)&&e>=-He&&e<=He}var lg=Ed?st(Ed):y_;function Aa(e){return typeof e=="string"||!te(e)&&Te(e)&&qe(e)==ln}function lt(e){return typeof e=="symbol"||Te(e)&&qe(e)==Be}var pr=Td?st(Td):b_;function Sx(e){return e===r}function wx(e){return Te(e)&&Ue(e)==xn}function _x(e){return Te(e)&&qe(e)==vs}var Ex=ba(Xs),Tx=ba(function(e,t){return e<=t});function fg(e){if(!e)return[];if(Qe(e))return Aa(e)?At(e):Ze(e);if(Gr&&e[Gr])return nw(e[Gr]());var t=Ue(e),a=t==De?Rs:t==Xe?Ji:vr;return a(e)}function en(e){if(!e)return e===0?e:0;if(e=_t(e),e===Ot||e===-Ot){var t=e<0?-1:1;return t*gs}return e===e?e:0}function ie(e){var t=en(e),a=t%1;return t===t?a?t-a:t:0}function cg(e){return e?Mn(ie(e),0,rt):0}function _t(e){if(typeof e=="number")return e;if(lt(e))return Dt;if(Ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cd(e);var a=aS.test(e);return a||sS.test(e)?BS(e.slice(2),a?2:8):iS.test(e)?Dt:+e}function dg(e){return Ft(e,et(e))}function xx(e){return e?Mn(ie(e),-He,He):e===0?e:0}function me(e){return e==null?"":ut(e)}var Ix=dr(function(e,t){if(ri(t)||Qe(t)){Ft(t,Me(t),e);return}for(var a in t)ve.call(t,a)&&Kr(e,a,t[a])}),hg=dr(function(e,t){Ft(t,et(t),e)}),Ca=dr(function(e,t,a,u){Ft(t,et(t),e,u)}),Ox=dr(function(e,t,a,u){Ft(t,Me(t),e,u)}),Dx=Kt(zs);function Ax(e,t){var a=cr(e);return t==null?a:qd(a,t)}var Cx=se(function(e,t){e=ye(e);var a=-1,u=t.length,c=u>2?t[2]:r;for(c&&Ge(t[0],t[1],c)&&(u=1);++a<u;)for(var g=t[a],v=et(g),b=-1,x=v.length;++b<x;){var M=v[b],k=e[M];(k===r||Nt(k,ur[M])&&!ve.call(e,M))&&(e[M]=g[M])}return e}),Nx=se(function(e){return e.push(r,Ch),ot(gg,r,e)});function Px(e,t){return Id(e,J(t,3),kt)}function Lx(e,t){return Id(e,J(t,3),qs)}function Mx(e,t){return e==null?e:js(e,J(t,3),et)}function kx(e,t){return e==null?e:Xd(e,J(t,3),et)}function Fx(e,t){return e&&kt(e,J(t,3))}function Rx(e,t){return e&&qs(e,J(t,3))}function Wx(e){return e==null?[]:ca(e,Me(e))}function Bx(e){return e==null?[]:ca(e,et(e))}function Eu(e,t,a){var u=e==null?r:kn(e,t);return u===r?a:u}function $x(e,t){return e!=null&&Lh(e,t,l_)}function Tu(e,t){return e!=null&&Lh(e,t,f_)}var Ux=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),e[t]=a},Iu(tt)),Hx=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),ve.call(e,t)?e[t].push(a):e[t]=[a]},J),zx=se(Qr);function Me(e){return Qe(e)?zd(e):Vs(e)}function et(e){return Qe(e)?zd(e,!0):S_(e)}function jx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,t(u,c,g),u)}),a}function qx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,c,t(u,c,g))}),a}var Gx=dr(function(e,t,a){da(e,t,a)}),gg=dr(function(e,t,a,u){da(e,t,a,u)}),Yx=Kt(function(e,t){var a={};if(e==null)return a;var u=!1;t=_e(t,function(g){return g=vn(g,e),u||(u=g.length>1),g}),Ft(e,lu(e),a),u&&(a=bt(a,w|O|y,U_));for(var c=t.length;c--;)tu(a,t[c]);return a});function Jx(e,t){return pg(e,Oa(J(t)))}var Vx=Kt(function(e,t){return e==null?{}:__(e,t)});function pg(e,t){if(e==null)return{};var a=_e(lu(e),function(u){return[u]});return t=J(t),oh(e,a,function(u,c){return t(u,c[0])})}function Xx(e,t,a){t=vn(t,e);var u=-1,c=t.length;for(c||(c=1,e=r);++u<c;){var g=e==null?r:e[Rt(t[u])];g===r&&(u=c,g=a),e=Qt(g)?g.call(e):g}return e}function Kx(e,t,a){return e==null?e:ti(e,t,a)}function Zx(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ti(e,t,a,u)}var vg=Dh(Me),mg=Dh(et);function Qx(e,t,a){var u=te(e),c=u||yn(e)||pr(e);if(t=J(t,4),a==null){var g=e&&e.constructor;c?a=u?new g:[]:Ee(e)?a=Qt(g)?cr(ta(e)):{}:a={}}return(c?vt:kt)(e,function(v,b,x){return t(a,v,b,x)}),a}function eI(e,t){return e==null?!0:tu(e,t)}function tI(e,t,a){return e==null?e:ch(e,t,iu(a))}function nI(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ch(e,t,iu(a),u)}function vr(e){return e==null?[]:Fs(e,Me(e))}function rI(e){return e==null?[]:Fs(e,et(e))}function iI(e,t,a){return a===r&&(a=t,t=r),a!==r&&(a=_t(a),a=a===a?a:0),t!==r&&(t=_t(t),t=t===t?t:0),Mn(_t(e),t,a)}function aI(e,t,a){return t=en(t),a===r?(a=t,t=0):a=en(a),e=_t(e),c_(e,t,a)}function oI(e,t,a){if(a&&typeof a!="boolean"&&Ge(e,t,a)&&(t=a=r),a===r&&(typeof t=="boolean"?(a=t,t=r):typeof e=="boolean"&&(a=e,e=r)),e===r&&t===r?(e=0,t=1):(e=en(e),t===r?(t=e,e=0):t=en(t)),e>t){var u=e;e=t,t=u}if(a||e%1||t%1){var c=Ud();return $e(e+c*(t-e+WS("1e-"+((c+"").length-1))),t)}return Zs(e,t)}var sI=hr(function(e,t,a){return t=t.toLowerCase(),e+(a?yg(t):t)});function yg(e){return xu(me(e).toLowerCase())}function bg(e){return e=me(e),e&&e.replace(lS,KS).replace(DS,"")}function uI(e,t,a){e=me(e),t=ut(t);var u=e.length;a=a===r?u:Mn(ie(a),0,u);var c=a;return a-=t.length,a>=0&&e.slice(a,c)==t}function lI(e){return e=me(e),e&&tr.test(e)?e.replace(at,ZS):e}function fI(e){return e=me(e),e&&ws.test(e)?e.replace(Hr,"\\$&"):e}var cI=hr(function(e,t,a){return e+(a?"-":"")+t.toLowerCase()}),dI=hr(function(e,t,a){return e+(a?" ":"")+t.toLowerCase()}),hI=_h("toLowerCase");function gI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return ya(aa(c),a)+e+ya(ia(c),a)}function pI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?e+ya(t-u,a):e}function vI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?ya(t-u,a)+e:e}function mI(e,t,a){return a||t==null?t=0:t&&(t=+t),Tw(me(e).replace(Gt,""),t||0)}function yI(e,t,a){return(a?Ge(e,t,a):t===r)?t=1:t=ie(t),Qs(me(e),t)}function bI(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var SI=hr(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});function wI(e,t,a){return a&&typeof a!="number"&&Ge(e,t,a)&&(t=a=r),a=a===r?rt:a>>>0,a?(e=me(e),e&&(typeof t=="string"||t!=null&&!_u(t))&&(t=ut(t),!t&&ar(e))?mn(At(e),0,a):e.split(t,a)):[]}var _I=hr(function(e,t,a){return e+(a?" ":"")+xu(t)});function EI(e,t,a){return e=me(e),a=a==null?0:Mn(ie(a),0,e.length),t=ut(t),e.slice(a,a+t.length)==t}function TI(e,t,a){var u=h.templateSettings;a&&Ge(e,t,a)&&(t=r),e=me(e),t=Ca({},t,u,Ah);var c=Ca({},t.imports,u.imports,Ah),g=Me(c),v=Fs(c,g),b,x,M=0,k=t.interpolate||zi,R="__p += '",H=Ws((t.escape||zi).source+"|"+k.source+"|"+(k===An?rS:zi).source+"|"+(t.evaluate||zi).source+"|$","g"),q="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LS+"]")+`
|
|
4
|
-
`;e.replace(
|
|
5
|
-
__e(`+
|
|
6
|
-
'`),
|
|
7
|
-
`+
|
|
8
|
-
__p += '`),
|
|
9
|
-
((__t = (`+
|
|
10
|
-
'`),M=
|
|
11
|
-
`;var
|
|
12
|
-
`+
|
|
13
|
-
}
|
|
14
|
-
`;else if(
|
|
15
|
-
`+(
|
|
16
|
-
`)+"var __t, __p = ''"+(
|
|
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+=`' +
|
|
5
|
+
__e(`+se+`) +
|
|
6
|
+
'`),Ge&&(_=!0,k+=`';
|
|
7
|
+
`+Ge+`;
|
|
8
|
+
__p += '`),le&&(k+=`' +
|
|
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+`
|
|
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;
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
|
-
`)+
|
|
20
|
-
}`;var oe=wg(function(){return pe(g,q+"return "+R).apply(r,v)});if(oe.source=R,wu(oe))throw oe;return oe}function xI(e){return me(e).toLowerCase()}function II(e){return me(e).toUpperCase()}function OI(e,t,a){if(e=me(e),e&&(a||t===r))return Cd(e);if(!e||!(t=ut(t)))return e;var u=At(e),c=At(t),g=Nd(u,c),v=Pd(u,c)+1;return mn(u,g,v).join("")}function DI(e,t,a){if(e=me(e),e&&(a||t===r))return e.slice(0,Md(e)+1);if(!e||!(t=ut(t)))return e;var u=At(e),c=Pd(u,At(t))+1;return mn(u,0,c).join("")}function AI(e,t,a){if(e=me(e),e&&(a||t===r))return e.replace(Gt,"");if(!e||!(t=ut(t)))return e;var u=At(e),c=Nd(u,At(t));return mn(u,c).join("")}function CI(e,t){var a=ee,u=Y;if(Ee(t)){var c="separator"in t?t.separator:c;a="length"in t?ie(t.length):a,u="omission"in t?ut(t.omission):u}e=me(e);var g=e.length;if(ar(e)){var v=At(e);g=v.length}if(a>=g)return e;var b=a-or(u);if(b<1)return u;var x=v?mn(v,0,b).join(""):e.slice(0,b);if(c===r)return x+u;if(v&&(b+=x.length-b),_u(c)){if(e.slice(b).search(c)){var M,k=x;for(c.global||(c=Ws(c.source,me(Zc.exec(c))+"g")),c.lastIndex=0;M=c.exec(k);)var R=M.index;x=x.slice(0,R===r?b:R)}}else if(e.indexOf(ut(c),b)!=b){var H=x.lastIndexOf(c);H>-1&&(x=x.slice(0,H))}return x+u}function NI(e){return e=me(e),e&&xe.test(e)?e.replace(Ke,ow):e}var PI=hr(function(e,t,a){return e+(a?" ":"")+t.toUpperCase()}),xu=_h("toUpperCase");function Sg(e,t,a){return e=me(e),t=a?r:t,t===r?tw(e)?lw(e):GS(e):e.match(t)||[]}var wg=se(function(e,t){try{return ot(e,r,t)}catch(a){return wu(a)?a:new Q(a)}}),LI=Kt(function(e,t){return vt(t,function(a){a=Rt(a),Vt(e,a,bu(e[a],e))}),e});function MI(e){var t=e==null?0:e.length,a=J();return e=t?_e(e,function(u){if(typeof u[1]!="function")throw new mt(f);return[a(u[0]),u[1]]}):[],se(function(u){for(var c=-1;++c<t;){var g=e[c];if(ot(g[0],this,u))return ot(g[1],this,u)}})}function kI(e){return o_(bt(e,w))}function Iu(e){return function(){return e}}function FI(e,t){return e==null||e!==e?t:e}var RI=Th(),WI=Th(!0);function tt(e){return e}function Ou(e){return eh(typeof e=="function"?e:bt(e,w))}function BI(e){return nh(bt(e,w))}function $I(e,t){return rh(e,bt(t,w))}var UI=se(function(e,t){return function(a){return Qr(a,e,t)}}),HI=se(function(e,t){return function(a){return Qr(e,a,t)}});function Du(e,t,a){var u=Me(t),c=ca(t,u);a==null&&!(Ee(t)&&(c.length||!u.length))&&(a=t,t=e,e=this,c=ca(t,Me(t)));var g=!(Ee(a)&&"chain"in a)||!!a.chain,v=Qt(e);return vt(c,function(b){var x=t[b];e[b]=x,v&&(e.prototype[b]=function(){var M=this.__chain__;if(g||M){var k=e(this.__wrapped__),R=k.__actions__=Ze(this.__actions__);return R.push({func:x,args:arguments,thisArg:e}),k.__chain__=M,k}return x.apply(e,cn([this.value()],arguments))})}),e}function zI(){return Fe._===this&&(Fe._=pw),this}function Au(){}function jI(e){return e=ie(e),se(function(t){return ih(t,e)})}var qI=ou(_e),GI=ou(xd),YI=ou(Ns);function _g(e){return hu(e)?Ps(Rt(e)):E_(e)}function JI(e){return function(t){return e==null?r:kn(e,t)}}var VI=Ih(),XI=Ih(!0);function Cu(){return[]}function Nu(){return!1}function KI(){return{}}function ZI(){return""}function QI(){return!0}function eO(e,t){if(e=ie(e),e<1||e>He)return[];var a=rt,u=$e(e,rt);t=J(t),e-=rt;for(var c=ks(u,t);++a<e;)t(a);return c}function tO(e){return te(e)?_e(e,Rt):lt(e)?[e]:Ze(Hh(me(e)))}function nO(e){var t=++hw;return me(e)+t}var rO=ma(function(e,t){return e+t},0),iO=su("ceil"),aO=ma(function(e,t){return e/t},1),oO=su("floor");function sO(e){return e&&e.length?fa(e,tt,Gs):r}function uO(e,t){return e&&e.length?fa(e,J(t,2),Gs):r}function lO(e){return Dd(e,tt)}function fO(e,t){return Dd(e,J(t,2))}function cO(e){return e&&e.length?fa(e,tt,Xs):r}function dO(e,t){return e&&e.length?fa(e,J(t,2),Xs):r}var hO=ma(function(e,t){return e*t},1),gO=su("round"),pO=ma(function(e,t){return e-t},0);function vO(e){return e&&e.length?Ms(e,tt):0}function mO(e,t){return e&&e.length?Ms(e,J(t,2)):0}return h.after=BT,h.ary=Qh,h.assign=Ix,h.assignIn=hg,h.assignInWith=Ca,h.assignWith=Ox,h.at=Dx,h.before=eg,h.bind=bu,h.bindAll=LI,h.bindKey=tg,h.castArray=KT,h.chain=Xh,h.chunk=oE,h.compact=sE,h.concat=uE,h.cond=MI,h.conforms=kI,h.constant=Iu,h.countBy=vT,h.create=Ax,h.curry=ng,h.curryRight=rg,h.debounce=ig,h.defaults=Cx,h.defaultsDeep=Nx,h.defer=$T,h.delay=UT,h.difference=lE,h.differenceBy=fE,h.differenceWith=cE,h.drop=dE,h.dropRight=hE,h.dropRightWhile=gE,h.dropWhile=pE,h.fill=vE,h.filter=yT,h.flatMap=wT,h.flatMapDeep=_T,h.flatMapDepth=ET,h.flatten=Gh,h.flattenDeep=mE,h.flattenDepth=yE,h.flip=HT,h.flow=RI,h.flowRight=WI,h.fromPairs=bE,h.functions=Wx,h.functionsIn=Bx,h.groupBy=TT,h.initial=wE,h.intersection=_E,h.intersectionBy=EE,h.intersectionWith=TE,h.invert=Ux,h.invertBy=Hx,h.invokeMap=IT,h.iteratee=Ou,h.keyBy=OT,h.keys=Me,h.keysIn=et,h.map=Ta,h.mapKeys=jx,h.mapValues=qx,h.matches=BI,h.matchesProperty=$I,h.memoize=Ia,h.merge=Gx,h.mergeWith=gg,h.method=UI,h.methodOf=HI,h.mixin=Du,h.negate=Oa,h.nthArg=jI,h.omit=Yx,h.omitBy=Jx,h.once=zT,h.orderBy=DT,h.over=qI,h.overArgs=jT,h.overEvery=GI,h.overSome=YI,h.partial=Su,h.partialRight=ag,h.partition=AT,h.pick=Vx,h.pickBy=pg,h.property=_g,h.propertyOf=JI,h.pull=DE,h.pullAll=Jh,h.pullAllBy=AE,h.pullAllWith=CE,h.pullAt=NE,h.range=VI,h.rangeRight=XI,h.rearg=qT,h.reject=PT,h.remove=PE,h.rest=GT,h.reverse=mu,h.sampleSize=MT,h.set=Kx,h.setWith=Zx,h.shuffle=kT,h.slice=LE,h.sortBy=WT,h.sortedUniq=$E,h.sortedUniqBy=UE,h.split=wI,h.spread=YT,h.tail=HE,h.take=zE,h.takeRight=jE,h.takeRightWhile=qE,h.takeWhile=GE,h.tap=sT,h.throttle=JT,h.thru=Ea,h.toArray=fg,h.toPairs=vg,h.toPairsIn=mg,h.toPath=tO,h.toPlainObject=dg,h.transform=Qx,h.unary=VT,h.union=YE,h.unionBy=JE,h.unionWith=VE,h.uniq=XE,h.uniqBy=KE,h.uniqWith=ZE,h.unset=eI,h.unzip=yu,h.unzipWith=Vh,h.update=tI,h.updateWith=nI,h.values=vr,h.valuesIn=rI,h.without=QE,h.words=Sg,h.wrap=XT,h.xor=eT,h.xorBy=tT,h.xorWith=nT,h.zip=rT,h.zipObject=iT,h.zipObjectDeep=aT,h.zipWith=oT,h.entries=vg,h.entriesIn=mg,h.extend=hg,h.extendWith=Ca,Du(h,h),h.add=rO,h.attempt=wg,h.camelCase=sI,h.capitalize=yg,h.ceil=iO,h.clamp=iI,h.clone=ZT,h.cloneDeep=ex,h.cloneDeepWith=tx,h.cloneWith=QT,h.conformsTo=nx,h.deburr=bg,h.defaultTo=FI,h.divide=aO,h.endsWith=uI,h.eq=Nt,h.escape=lI,h.escapeRegExp=fI,h.every=mT,h.find=bT,h.findIndex=jh,h.findKey=Px,h.findLast=ST,h.findLastIndex=qh,h.findLastKey=Lx,h.floor=oO,h.forEach=Kh,h.forEachRight=Zh,h.forIn=Mx,h.forInRight=kx,h.forOwn=Fx,h.forOwnRight=Rx,h.get=Eu,h.gt=rx,h.gte=ix,h.has=$x,h.hasIn=Tu,h.head=Yh,h.identity=tt,h.includes=xT,h.indexOf=SE,h.inRange=aI,h.invoke=zx,h.isArguments=Wn,h.isArray=te,h.isArrayBuffer=ax,h.isArrayLike=Qe,h.isArrayLikeObject=Ie,h.isBoolean=ox,h.isBuffer=yn,h.isDate=sx,h.isElement=ux,h.isEmpty=lx,h.isEqual=fx,h.isEqualWith=cx,h.isError=wu,h.isFinite=dx,h.isFunction=Qt,h.isInteger=og,h.isLength=Da,h.isMap=sg,h.isMatch=hx,h.isMatchWith=gx,h.isNaN=px,h.isNative=vx,h.isNil=yx,h.isNull=mx,h.isNumber=ug,h.isObject=Ee,h.isObjectLike=Te,h.isPlainObject=ai,h.isRegExp=_u,h.isSafeInteger=bx,h.isSet=lg,h.isString=Aa,h.isSymbol=lt,h.isTypedArray=pr,h.isUndefined=Sx,h.isWeakMap=wx,h.isWeakSet=_x,h.join=xE,h.kebabCase=cI,h.last=wt,h.lastIndexOf=IE,h.lowerCase=dI,h.lowerFirst=hI,h.lt=Ex,h.lte=Tx,h.max=sO,h.maxBy=uO,h.mean=lO,h.meanBy=fO,h.min=cO,h.minBy=dO,h.stubArray=Cu,h.stubFalse=Nu,h.stubObject=KI,h.stubString=ZI,h.stubTrue=QI,h.multiply=hO,h.nth=OE,h.noConflict=zI,h.noop=Au,h.now=xa,h.pad=gI,h.padEnd=pI,h.padStart=vI,h.parseInt=mI,h.random=oI,h.reduce=CT,h.reduceRight=NT,h.repeat=yI,h.replace=bI,h.result=Xx,h.round=gO,h.runInContext=T,h.sample=LT,h.size=FT,h.snakeCase=SI,h.some=RT,h.sortedIndex=ME,h.sortedIndexBy=kE,h.sortedIndexOf=FE,h.sortedLastIndex=RE,h.sortedLastIndexBy=WE,h.sortedLastIndexOf=BE,h.startCase=_I,h.startsWith=EI,h.subtract=pO,h.sum=vO,h.sumBy=mO,h.template=TI,h.times=eO,h.toFinite=en,h.toInteger=ie,h.toLength=cg,h.toLower=xI,h.toNumber=_t,h.toSafeInteger=xx,h.toString=me,h.toUpper=II,h.trim=OI,h.trimEnd=DI,h.trimStart=AI,h.truncate=CI,h.unescape=NI,h.uniqueId=nO,h.upperCase=PI,h.upperFirst=xu,h.each=Kh,h.eachRight=Zh,h.first=Yh,Du(h,(function(){var e={};return kt(h,function(t,a){ve.call(h.prototype,a)||(e[a]=t)}),e})(),{chain:!1}),h.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),vt(["drop","take"],function(e,t){fe.prototype[e]=function(a){a=a===r?1:Pe(ie(a),0);var u=this.__filtered__&&!t?new fe(this):this.clone();return u.__filtered__?u.__takeCount__=$e(a,u.__takeCount__):u.__views__.push({size:$e(a,rt),type:e+(u.__dir__<0?"Right":"")}),u},fe.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var a=t+1,u=a==We||a==Ve;fe.prototype[e]=function(c){var g=this.clone();return g.__iteratees__.push({iteratee:J(c,3),type:a}),g.__filtered__=g.__filtered__||u,g}}),vt(["head","last"],function(e,t){var a="take"+(t?"Right":"");fe.prototype[e]=function(){return this[a](1).value()[0]}}),vt(["initial","tail"],function(e,t){var a="drop"+(t?"":"Right");fe.prototype[e]=function(){return this.__filtered__?new fe(this):this[a](1)}}),fe.prototype.compact=function(){return this.filter(tt)},fe.prototype.find=function(e){return this.filter(e).head()},fe.prototype.findLast=function(e){return this.reverse().find(e)},fe.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new fe(this):this.map(function(a){return Qr(a,e,t)})}),fe.prototype.reject=function(e){return this.filter(Oa(J(e)))},fe.prototype.slice=function(e,t){e=ie(e);var a=this;return a.__filtered__&&(e>0||t<0)?new fe(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==r&&(t=ie(t),a=t<0?a.dropRight(-t):a.take(t-e)),a)},fe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fe.prototype.toArray=function(){return this.take(rt)},kt(fe.prototype,function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),c=h[u?"take"+(t=="last"?"Right":""):t],g=u||/^find/.test(t);c&&(h.prototype[t]=function(){var v=this.__wrapped__,b=u?[1]:arguments,x=v instanceof fe,M=b[0],k=x||te(v),R=function(le){var de=c.apply(h,cn([le],b));return u&&H?de[0]:de};k&&a&&typeof M=="function"&&M.length!=1&&(x=k=!1);var H=this.__chain__,q=!!this.__actions__.length,K=g&&!H,oe=x&&!q;if(!g&&k){v=oe?v:new fe(this);var Z=e.apply(v,b);return Z.__actions__.push({func:Ea,args:[R],thisArg:r}),new yt(Z,H)}return K&&oe?e.apply(this,b):(Z=this.thru(R),K?u?Z.value()[0]:Z.value():Z)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vi[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var c=arguments;if(u&&!this.__chain__){var g=this.value();return t.apply(te(g)?g:[],c)}return this[a](function(v){return t.apply(te(v)?v:[],c)})}}),kt(fe.prototype,function(e,t){var a=h[t];if(a){var u=a.name+"";ve.call(fr,u)||(fr[u]=[]),fr[u].push({name:t,func:a})}}),fr[va(r,C).name]=[{name:"wrapper",func:r}],fe.prototype.clone=Nw,fe.prototype.reverse=Pw,fe.prototype.value=Lw,h.prototype.at=uT,h.prototype.chain=lT,h.prototype.commit=fT,h.prototype.next=cT,h.prototype.plant=hT,h.prototype.reverse=gT,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=pT,h.prototype.first=h.prototype.head,Gr&&(h.prototype[Gr]=dT),h}),sr=fw();Cn?((Cn.exports=sr)._=sr,Os._=sr):Fe._=sr}).call(xg)})(Sr,Sr.exports)),Sr.exports}var Bn=Ig();class ge{static toString(n){const r=Pu(n);if(r==null)throw new Error("buildWinId: stringify error");return r}static getParamString(n,r){return n.params?.[r]?.toString()}static getParam(n,r){return n.params?.[r]}static isEquals(n,r){return Bn.isEqual(n,r)}static indexOf(n,r){return n.map(ge.toString).indexOf(ge.toString(r))}static includes(n,r){return n.map(ge.toString).includes(ge.toString(r))}static withoutDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s}}static replaceDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s,dupId:`${new Date().getTime()}`}}}var si={exports:{}},Mu;function Og(){return Mu||(Mu=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0});function r(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,L){if(!N)throw o?new Error("Invariant failed"):new Error(L())}n.invariant=s;var l=Object.prototype.hasOwnProperty,f=Array.prototype.splice,d=Object.prototype.toString;function p(N){return d.call(N).slice(8,-1)}var m=Object.assign||(function(N,L){return S(L).forEach(function(j){l.call(L,j)&&(N[j]=L[j])}),N}),S=typeof Object.getOwnPropertySymbols=="function"?function(N){return Object.keys(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.keys(N)};function w(N){return Array.isArray(N)?m(N.constructor(N.length),N):p(N)==="Map"?new Map(N):p(N)==="Set"?new Set(N):N&&typeof N=="object"?m(Object.create(Object.getPrototypeOf(N)),N):N}var O=(function(){function N(){this.commands=m({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(L,j){return L===j},this.update.newContext=function(){return new N().update}}return Object.defineProperty(N.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(L){this.update.isEquals=L},enumerable:!0,configurable:!0}),N.prototype.extend=function(L,j){this.commands[L]=j},N.prototype.update=function(L,j){var ee=this,Y=typeof j=="function"?{$apply:j}:j;Array.isArray(L)&&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 ae=L;return S(Y).forEach(function(X){if(l.call(ee.commands,X)){var We=L===ae;ae=ee.commands[X](Y[X],ae,Y,L),We&&ee.isEquals(ae,L)&&(ae=L)}else{var Je=p(L)==="Map"?ee.update(L.get(X),Y[X]):ee.update(L[X],Y[X]),Ve=p(ae)==="Map"?ae.get(X):ae[X];(!ee.isEquals(Je,Ve)||typeof Je>"u"&&!l.call(L,X))&&(ae===L&&(ae=w(L)),p(ae)==="Map"?ae.set(X,Je):ae[X]=Je)}}),ae},N})();n.Context=O;var y={$push:function(N,L,j){return _(L,j,"$push"),N.length?L.concat(N):L},$unshift:function(N,L,j){return _(L,j,"$unshift"),N.length?N.concat(L):L},$splice:function(N,L,j,ee){return C(L,j),N.forEach(function(Y){F(Y),L===ee&&Y.length&&(L=w(ee)),f.apply(L,Y)}),L},$set:function(N,L,j){return V(j),N},$toggle:function(N,L){I(N,"$toggle");var j=N.length?w(L):L;return N.forEach(function(ee){j[ee]=!L[ee]}),j},$unset:function(N,L,j,ee){return I(N,"$unset"),N.forEach(function(Y){Object.hasOwnProperty.call(L,Y)&&(L===ee&&(L=w(ee)),delete L[Y])}),L},$add:function(N,L,j,ee){return ue(L,"$add"),I(N,"$add"),p(L)==="Map"?N.forEach(function(Y){var ae=Y[0],X=Y[1];L===ee&&L.get(ae)!==X&&(L=w(ee)),L.set(ae,X)}):N.forEach(function(Y){L===ee&&!L.has(Y)&&(L=w(ee)),L.add(Y)}),L},$remove:function(N,L,j,ee){return ue(L,"$remove"),I(N,"$remove"),N.forEach(function(Y){L===ee&&L.has(Y)&&(L=w(ee)),L.delete(Y)}),L},$merge:function(N,L,j,ee){return B(L,N),S(N).forEach(function(Y){N[Y]!==L[Y]&&(L===ee&&(L=w(ee)),L[Y]=N[Y])}),L},$apply:function(N,L){return U(N),N(L)}},E=new O;n.isEquals=E.update.isEquals,n.extend=E.extend,n.default=E.update,n.default.default=i.exports=m(n.default,n);function _(N,L,j){s(Array.isArray(N),function(){return"update(): expected target of "+r(j)+" to be an array; got "+r(N)+"."}),I(L[j],j)}function I(N,L){s(Array.isArray(N),function(){return"update(): expected spec of "+r(L)+" to be an array; got "+r(N)+". Did you forget to wrap your parameter in an array?"})}function C(N,L){s(Array.isArray(N),function(){return"Expected $splice target to be an array; got "+r(N)}),F(L.$splice)}function F(N){s(Array.isArray(N),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(N)+". Did you forget to wrap your parameters in an array?"})}function U(N){s(typeof N=="function",function(){return"update(): expected spec of $apply to be a function; got "+r(N)+"."})}function V(N){s(Object.keys(N).length===1,function(){return"Cannot have more than one key in an object with $set"})}function B(N,L){s(L&&typeof L=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+r(L)}),s(N&&typeof N=="object",function(){return"update(): $merge expects a target of type 'object'; got "+r(N)})}function ue(N,L){var j=p(N);s(j==="Map"||j==="Set",function(){return"update(): "+r(L)+" expects a target of type Set or Map; got "+r(j)})}})(si,si.exports)),si.exports}var Dg=Og();const Ag=br(Dg);var Cg=Object.getOwnPropertyDescriptor,Ng=(i,n,r,o)=>{for(var s=o>1?void 0:o?Cg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s};he.JustLayoutService=class{insertWinIdToStack=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch);if(o.type!=="stack")return n;const l=o.tabs,f=r.index>=0?Bn.clamp(r.index,0,l.length):l.length;return this.updateNodeOfBranch(n,r.branch,{$set:{...o,type:"stack",tabs:[...l.slice(0,f),r.justId,...l.slice(f)],active:r.justId}})};insertWinIdToSplit=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch),s=r.pos==="first"?"second":"first";return this.updateNodeOfBranch(n,r.branch,{$set:{type:"split-percentage",direction:r.direction,[s]:{...o,name:void 0},[r.pos]:{type:"stack",tabs:[r.justId],active:r.justId,name:void 0},size:r.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);if(o?.type!=="stack")return n;const s=o.active?ge.indexOf(o.tabs,o.active):0,l=o.tabs.filter(d=>!ge.isEquals(d,r));let f;return o.active!==null&&ge.includes(l,o.active)?f=o.active:f=l.length>0&&o.active!==null?l[Bn.clamp(s-1,0,l.length-1)]:null,this.updateNodeOfWinId(n,r,{$set:{...o,tabs:l,active:f}})};removeAllTabs=(n,r)=>{if(n==null)return null;const o=this.getNodeByBranch(n,r);return o==null||o.type!=="stack"?n:this.updateNodeOfBranch(n,r,{$set:{...o,tabs:[],active:null}})};activeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);return o==null?n:this.updateNodeOfWinId(n,r,{$set:{...o,active:r}})};getActiveWinIds=n=>{const r=(o,s)=>{if(o===null)return s;if(o.type==="stack")return o.active!==null?[...s,o.active]:s;{const l=r(o.first,s);return r(o.second,l)}};return r(n,[])};removeEmpty=n=>{if(n==null)return n;const r=this.findEmptyBranch(n,null,[]);if(r===null)return n;if(r.length===0)return null;const o=r[r.length-1],s=r.slice(0,-1),l=o==="first"?"second":"first",f=this.getNodeByBranch(n,s),d=this.getNodeByBranch(n,[...s,l]);return this.updateNodeOfBranch(n,s,{$set:{...d,dndAccept:f.dndAccept,name:f.name,hideTitle:f.hideTitle}})};findEmptyBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack"){const s=r!=null&&r.type!="stack"&&(!!r.first.name||!!r.second.name);if(n.tabs.length===0&&!s)return o}else{const s=this.findEmptyBranch(n.first,n,[...o,"first"]);if(s!=null)return s;const l=this.findEmptyBranch(n.second,n,[...o,"second"]);if(l!=null)return l}return null};moveWinIdToStack=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToStack(o,r)};moveWinIdToSplit=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToSplit(o,r)};getBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?o:null;{const s=this.getBranch(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getBranch(n.second,r,[...o,"second"]);return l??null}};getBranchByWinId=(n,r)=>this.getBranch(n,r,[]);getNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;if(n.name==r)return{node:n,branch:[...o]};if(n.type!="stack"){const s=this.getNodeInfoByNodeName(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getNodeInfoByNodeName(n.second,r,[...o,"second"]);if(l!=null)return l}return null};getTabNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;const s=this.getNodeInfoByNodeName(n,r,o);if(s==null)return null;if(s.node.type==="stack")return s;{const l=this.getTabNodeInfo(s.node,[]);if(l!=null)return{node:l.node,branch:[...s.branch,...l.branch]}}return null};getNodeByWinId=(n,r)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?(console.log("includes ok:",n.tabs,r),n):(console.log("includes nok:",n.tabs,r),null);{const o=this.getNodeByWinId(n.first,r);if(o!=null)return o;const s=this.getNodeByWinId(n.second,r);return s??null}};getTabBranch=(n,r)=>{if(n===null)return null;if(n.type==="stack")return r;{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabBranch(n[o],[...r,o]);if(s!=null)return s}return null};getTabNodeInfo=(n,r)=>{if(n===null)return null;if(n.type==="stack")return{node:n,branch:r};{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabNodeInfo(n[o],[...r,o]);if(s!=null)return s}return null};addTabWin=(n,r,o,s)=>{if(n===null)return null;const l=this.getNodeByBranch(n,r);if(l.type!=="stack")return n;const f=s<0?l.tabs.length:Bn.clamp(s,0,l.tabs.length);return this.updateNodeOfBranch(n,r,{$merge:{tabs:[...l.tabs.slice(0,f),o,...l.tabs.slice(f)],active:o}})};queryWinIdsByViewId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack")return[...o,...n.tabs.filter(s=>s.viewId===r)];{const s=this.queryWinIdsByViewId(n.first,r,o);return this.queryWinIdsByViewId(n.second,r,[...o,...s])}};queryDupWinIdsByWinId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack"){const s=ge.withoutDup(r),l=n.tabs.filter(f=>{const d=ge.withoutDup(f);return ge.isEquals(s,d)});return[...o,...l]}else{const s=this.queryDupWinIdsByWinId(n.first,r,o);return this.queryDupWinIdsByWinId(n.second,r,[...o,...s])}};queryWinIdsByStack=(n,r)=>{if(n===null)return[];const o=this.getNodeByBranch(n,r);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(n,r)=>r.reduce((o,s)=>o?.[s],n);updateNodeOfBranch=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,o);return this.updateNode(n,s)};updateNodeOfWinId=(n,r,o)=>{const s=this.getBranchByWinId(n,r);if(s==null)return n;const l=this.buildSpecFromUpdateSpec(s,o);return this.updateNode(n,l)};hasWinId=(n,r)=>this.getNodeByWinId(n,r)!=null;updateNode=(n,r)=>n==null?null:Ag(n,r);buildSpecFromUpdateSpec=(n,r)=>n.length>0?Bn.set({},n,r):r;getNodeAtBranch=(n,r)=>r.length>0?Bn.get(n,r,null):n;getBranchRightTop=n=>{if(n==null)return[];let r=n;const o=[];for(;r.type!=="stack";)r.direction==="row"?(o.push("second"),r=r.second):r.direction==="column"&&(o.push("first"),r=r.first);return o};updateSplitSize=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,{$merge:{size:o}});return this.updateNode(n,s)}},he.JustLayoutService=Ng([oi.injectable()],he.JustLayoutService);var Pg=Object.getOwnPropertyDescriptor,Lg=(i,n,r,o)=>{for(var s=o>1?void 0:o?Pg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s},Mg=(i,n)=>(r,o)=>n(r,o,i);he.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(n){this.service=n,mr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=n=>{this.layout=n};setTabTitle=(n,r)=>{this.tabTitleMap.set(ge.toString(n),r)};getTabTitle=n=>this.tabTitleMap.get(ge.toString(n));setTabTitleTooltip=(n,r)=>{this.tabTitleTooltipMap.set(ge.toString(n),r)};getTabTitleTooltip=n=>this.tabTitleTooltipMap.get(ge.toString(n));setFullScreenLayoutByBranch=n=>{n===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,n)};setFullScreenHideTitle=n=>{this.fullScreenHideTitle=n};addTab=n=>{const r=this.service.getTabBranch(this.layout,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=n=>{const r=this.service.getTabNodeInfoByNodeName(this.layout,n.nodeName,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r.branch,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=n=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);cloneTab=n=>{const r=this.service.getBranchByWinId(this.layout,n.justId);if(r==null)return;const o=this.service.getNodeAtBranch(this.layout,r);let s=0;o?.type==="stack"&&o.active!=null&&(s=ge.indexOf(o.tabs,n.justId)+1),this.layout=this.service.addTabWin(this.layout,r,n.cloneJustId,s),this.lastActiveId=n.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=n=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,n.justId))};removeAllTabs=n=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,n.branch))};activeWin=n=>{this.layout=this.service.activeWinId(this.layout,n.justId),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)-1+r.tabs.length)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};activeNextWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)+1)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};updateResize=n=>{this.layout=this.service.updateSplitSize(this.layout,n.branch,n.size)};moveWin=n=>{n.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,n)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,n)),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const n=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:n})};toggleWin=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o==null||o.node.type!=="split-pixels")return;const s=o.node.primaryHide!==!0,l=!s||o.node.size<10?o.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:l,primaryHide:s}}),d=this.service.updateNode(r,f);d!=null&&this.setLayout(d)};showWin=({nodeName:n,show:r})=>{const o=this.layout,s=this.service.getNodeInfoByNodeName(o,n,[]);if(s!=null&&s.node.type==="split-pixels"&&r===(s.node.size===0)){const l=r?s.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:l}}),d=this.service.updateNode(o,f);if(d==null)return;this.setLayout(d)}};getSizeByNodeName=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:n})=>{const r=this.layout;return this.service.getBranchByWinId(r,n)};isPrimaryHide=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"?o.node.primaryHide:null};openWin=({justId:n})=>{this.service.hasWinId(this.layout??null,n)?this.activeWin({justId:n}):this.addTab({justId:n})};openWinByNodeName=({justId:n,nodeName:r})=>{this.service.hasWinId(this.layout??null,n)?(console.log("hasWinId",n),this.activeWin({justId:n})):(console.log("addTabByNodeName",n),this.addTabByNodeName({justId:n,nodeName:r}))};getWinIds=({viewId:n})=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);getDupWinIds=({justId:n})=>this.service.queryDupWinIdsByWinId(this.layout??null,n,[]);getWinIdsByBranch=({branch:n})=>this.service.queryWinIdsByStack(this.layout??null,n);getNodeAtBranch=({branch:n})=>this.service.getNodeAtBranch(this.layout??null,n);openWinMenu=({justId:n,nodeName:r})=>{const o=n.viewId,s=this.getWinIds({viewId:o});if(s.length===0)console.log("openWinMenu1",s,n),this.openWinByNodeName({justId:n,nodeName:r});else{const l=s.toSorted((f,d)=>(f.dupId??"")<=(d.dupId??"")?-1:1).at(-1);l&&(console.log("openWinMenu2",s,l),this.openWinByNodeName({justId:l,nodeName:r}))}};fullScreenWin=async(n,r,o=!1)=>{r?this.setLayout(null):(this.setFullScreenLayoutByBranch(n),this.setFullScreenHideTitle(o))}},he.JustLayoutStore=Lg([oi.injectable(),Mg(0,oi.inject(Wt.JustLayoutService))],he.JustLayoutStore);const kg=new oi.ContainerModule(({bind:i})=>{i(Wt.JustLayoutService).to(he.JustLayoutService).inSingletonScope(),i(Wt.JustLayoutStore).to(he.JustLayoutStore).inTransientScope(),i(Wt.JustLayoutStoreCacheMap).toConstantValue(new Map),i(Wt.JustLayoutFactory).toFactory(n=>{const r=n.get(Wt.JustLayoutStoreCacheMap);return o=>{if(!r.has(o)){const s=n.get(Wt.JustLayoutStore);r.set(o,s)}return r.get(o)}})}),Lt=i=>{const n=Tg.useInjection(Wt.JustLayoutFactory),[r]=A.useState(()=>n(i));return r},ku=A.createContext({dragDropManager:void 0});function dt(i){return"Minified Redux error #"+i+"; visit https://redux.js.org/Errors?code="+i+" for the full message or use the non-minified dev environment for full errors. "}var Fu=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ru=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wu={INIT:"@@redux/INIT"+Ru(),REPLACE:"@@redux/REPLACE"+Ru()};function Fg(i){if(typeof i!="object"||i===null)return!1;for(var n=i;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(i)===n}function Rg(i){if(i===void 0)return"undefined";if(i===null)return"null";var n=typeof i;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(i))return"array";if($g(i))return"date";if(Bg(i))return"error";var r=Wg(i);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wg(i){return typeof i.constructor=="function"?i.constructor.name:null}function Bg(i){return i instanceof Error||typeof i.message=="string"&&i.constructor&&typeof i.constructor.stackTraceLimit=="number"}function $g(i){return i instanceof Date?!0:typeof i.toDateString=="function"&&typeof i.getDate=="function"&&typeof i.setDate=="function"}function $n(i){var n=typeof i;return process.env.NODE_ENV!=="production"&&(n=Rg(i)),n}function Bu(i,n,r){var o;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?dt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?dt(1):"Expected the enhancer to be a function. Instead, received: '"+$n(r)+"'");return r(Bu)(i,n)}if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?dt(2):"Expected the root reducer to be a function. Instead, received: '"+$n(i)+"'");var s=i,l=n,f=[],d=f,p=!1;function m(){d===f&&(d=f.slice())}function S(){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function w(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(4):"Expected the listener to be a function. Instead, received: '"+$n(_)+"'");if(p)throw new Error(process.env.NODE_ENV==="production"?dt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;return m(),d.push(_),function(){if(I){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");I=!1,m();var F=d.indexOf(_);d.splice(F,1),f=null}}}function O(_){if(!Fg(_))throw new Error(process.env.NODE_ENV==="production"?dt(7):"Actions must be plain objects. Instead, the actual type was: '"+$n(_)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof _.type>"u")throw new Error(process.env.NODE_ENV==="production"?dt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(p)throw new Error(process.env.NODE_ENV==="production"?dt(9):"Reducers may not dispatch actions.");try{p=!0,l=s(l,_)}finally{p=!1}for(var I=f=d,C=0;C<I.length;C++){var F=I[C];F()}return _}function y(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(10):"Expected the nextReducer to be a function. Instead, received: '"+$n(_));s=_,O({type:Wu.REPLACE})}function E(){var _,I=w;return _={subscribe:function(F){if(typeof F!="object"||F===null)throw new Error(process.env.NODE_ENV==="production"?dt(11):"Expected the observer to be an object. Instead, received: '"+$n(F)+"'");function U(){F.next&&F.next(S())}U();var V=I(U);return{unsubscribe:V}}},_[Fu]=function(){return this},_}return O({type:Wu.INIT}),o={dispatch:O,subscribe:w,getState:S,replaceReducer:y},o[Fu]=E,o}function ne(i,n,...r){if(Ug()&&n===void 0)throw new Error("invariant requires an error message argument");if(!i){let o;if(n===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(n.replace(/%s/g,function(){return r[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function Ug(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Hg(i,n,r){return n.split(".").reduce((o,s)=>o&&o[s]?o[s]:r||null,i)}function zg(i,n){return i.filter(r=>r!==n)}function $u(i){return typeof i=="object"}function jg(i,n){const r=new Map,o=l=>{r.set(l,r.has(l)?r.get(l)+1:1)};i.forEach(o),n.forEach(o);const s=[];return r.forEach((l,f)=>{l===1&&s.push(f)}),s}function qg(i,n){return i.filter(r=>n.indexOf(r)>-1)}const Pa="dnd-core/INIT_COORDS",ui="dnd-core/BEGIN_DRAG",La="dnd-core/PUBLISH_DRAG_SOURCE",li="dnd-core/HOVER",fi="dnd-core/DROP",ci="dnd-core/END_DRAG";function Uu(i,n){return{type:Pa,payload:{sourceClientOffset:n||null,clientOffset:i||null}}}const Gg={type:Pa,payload:{clientOffset:null,sourceClientOffset:null}};function Yg(i){return function(r=[],o={publishSource:!0}){const{publishSource:s=!0,clientOffset:l,getSourceClientOffset:f}=o,d=i.getMonitor(),p=i.getRegistry();i.dispatch(Uu(l)),Jg(r,d,p);const m=Kg(r,d);if(m==null){i.dispatch(Gg);return}let S=null;if(l){if(!f)throw new Error("getSourceClientOffset must be defined");Vg(f),S=f(m)}i.dispatch(Uu(l,S));const O=p.getSource(m).beginDrag(d,m);if(O==null)return;Xg(O),p.pinSource(m);const y=p.getSourceType(m);return{type:ui,payload:{itemType:y,item:O,sourceId:m,clientOffset:l||null,sourceClientOffset:S||null,isSourcePublic:!!s}}}}function Jg(i,n,r){ne(!n.isDragging(),"Cannot call beginDrag while dragging."),i.forEach(function(o){ne(r.getSource(o),"Expected sourceIds to be registered.")})}function Vg(i){ne(typeof i=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Xg(i){ne($u(i),"Item must be an object.")}function Kg(i,n){let r=null;for(let o=i.length-1;o>=0;o--)if(n.canDragSource(i[o])){r=i[o];break}return r}function Zg(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Qg(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Zg(i,s,r[s])})}return i}function ep(i){return function(r={}){const o=i.getMonitor(),s=i.getRegistry();tp(o),ip(o).forEach((f,d)=>{const p=np(f,d,s,o),m={type:fi,payload:{dropResult:Qg({},r,p)}};i.dispatch(m)})}}function tp(i){ne(i.isDragging(),"Cannot call drop while not dragging."),ne(!i.didDrop(),"Cannot call drop twice during one drag operation.")}function np(i,n,r,o){const s=r.getTarget(i);let l=s?s.drop(o,i):void 0;return rp(l),typeof l>"u"&&(l=n===0?{}:o.getDropResult()),l}function rp(i){ne(typeof i>"u"||$u(i),"Drop result must either be an object or undefined.")}function ip(i){const n=i.getTargetIds().filter(i.canDropOnTarget,i);return n.reverse(),n}function ap(i){return function(){const r=i.getMonitor(),o=i.getRegistry();op(r);const s=r.getSourceId();return s!=null&&(o.getSource(s,!0).endDrag(r,s),o.unpinSource()),{type:ci}}}function op(i){ne(i.isDragging(),"Cannot call endDrag while not dragging.")}function Ma(i,n){return n===null?i===null:Array.isArray(i)?i.some(r=>r===n):i===n}function sp(i){return function(r,{clientOffset:o}={}){up(r);const s=r.slice(0),l=i.getMonitor(),f=i.getRegistry(),d=l.getItemType();return fp(s,f,d),lp(s,l,f),cp(s,l,f),{type:li,payload:{targetIds:s,clientOffset:o||null}}}}function up(i){ne(Array.isArray(i),"Expected targetIds to be an array.")}function lp(i,n,r){ne(n.isDragging(),"Cannot call hover while not dragging."),ne(!n.didDrop(),"Cannot call hover after drop.");for(let o=0;o<i.length;o++){const s=i[o];ne(i.lastIndexOf(s)===o,"Expected targetIds to be unique in the passed array.");const l=r.getTarget(s);ne(l,"Expected targetIds to be registered.")}}function fp(i,n,r){for(let o=i.length-1;o>=0;o--){const s=i[o],l=n.getTargetType(s);Ma(l,r)||i.splice(o,1)}}function cp(i,n,r){i.forEach(function(o){r.getTarget(o).hover(n,o)})}function dp(i){return function(){if(i.getMonitor().isDragging())return{type:La}}}function hp(i){return{beginDrag:Yg(i),publishDragSource:dp(i),hover:sp(i),drop:ep(i),endDrag:ap(i)}}class gp{receiveBackend(n){this.backend=n}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const n=this,{dispatch:r}=this.store;function o(l){return(...f)=>{const d=l.apply(n,f);typeof d<"u"&&r(d)}}const s=hp(this);return Object.keys(s).reduce((l,f)=>{const d=s[f];return l[f]=o(d),l},{})}dispatch(n){this.store.dispatch(n)}constructor(n,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=n,this.monitor=r,n.subscribe(this.handleRefCountChange)}}function pp(i,n){return{x:i.x+n.x,y:i.y+n.y}}function Hu(i,n){return{x:i.x-n.x,y:i.y-n.y}}function vp(i){const{clientOffset:n,initialClientOffset:r,initialSourceClientOffset:o}=i;return!n||!r||!o?null:Hu(pp(n,o),r)}function mp(i){const{clientOffset:n,initialClientOffset:r}=i;return!n||!r?null:Hu(n,r)}const wr=[],ka=[];wr.__IS_NONE__=!0,ka.__IS_ALL__=!0;function yp(i,n){return i===wr?!1:i===ka||typeof n>"u"?!0:qg(n,i).length>0}class bp{subscribeToStateChange(n,r={}){const{handlerIds:o}=r;ne(typeof n=="function","listener must be a function."),ne(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const l=()=>{const f=this.store.getState(),d=f.stateId;try{d===s||d===s+1&&!yp(f.dirtyHandlerIds,o)||n()}finally{s=d}};return this.store.subscribe(l)}subscribeToOffsetChange(n){ne(typeof n=="function","listener must be a function.");let r=this.store.getState().dragOffset;const o=()=>{const s=this.store.getState().dragOffset;s!==r&&(r=s,n())};return this.store.subscribe(o)}canDragSource(n){if(!n)return!1;const r=this.registry.getSource(n);return ne(r,`Expected to find a valid source. sourceId=${n}`),this.isDragging()?!1:r.canDrag(this,n)}canDropOnTarget(n){if(!n)return!1;const r=this.registry.getTarget(n);if(ne(r,`Expected to find a valid target. targetId=${n}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(n),s=this.getItemType();return Ma(o,s)&&r.canDrop(this,n)}isDragging(){return!!this.getItemType()}isDraggingSource(n){if(!n)return!1;const r=this.registry.getSource(n,!0);if(ne(r,`Expected to find a valid source. sourceId=${n}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(n),s=this.getItemType();return o!==s?!1:r.isDragging(this,n)}isOverTarget(n,r={shallow:!1}){if(!n)return!1;const{shallow:o}=r;if(!this.isDragging())return!1;const s=this.registry.getTargetType(n),l=this.getItemType();if(l&&!Ma(s,l))return!1;const f=this.getTargetIds();if(!f.length)return!1;const d=f.indexOf(n);return o?d===f.length-1:d>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vp(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return mp(this.store.getState().dragOffset)}constructor(n,r){this.store=n,this.registry=r}}const zu=typeof global<"u"?global:self,ju=zu.MutationObserver||zu.WebKitMutationObserver;function qu(i){return function(){const r=setTimeout(s,0),o=setInterval(s,50);function s(){clearTimeout(r),clearInterval(o),i()}}}function Sp(i){let n=1;const r=new ju(i),o=document.createTextNode("");return r.observe(o,{characterData:!0}),function(){n=-n,o.data=n}}const wp=typeof ju=="function"?Sp:qu;class _p{enqueueTask(n){const{queue:r,requestFlush:o}=this;r.length||(o(),this.flushing=!0),r[r.length]=n}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:n}=this;for(;this.index<n.length;){const r=this.index;if(this.index++,n[r].call(),this.index>this.capacity){for(let o=0,s=n.length-this.index;o<s;o++)n[o]=n[o+this.index];n.length-=this.index,this.index=0}}n.length=0,this.index=0,this.flushing=!1},this.registerPendingError=n=>{this.pendingErrors.push(n),this.requestErrorThrow()},this.requestFlush=wp(this.flush),this.requestErrorThrow=qu(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Ep{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,r){this.onError=n,this.release=r,this.task=null}}class Tp{create(n){const r=this.freeTasks,o=r.length?r.pop():new Ep(this.onError,s=>r[r.length]=s);return o.task=n,o}constructor(n){this.onError=n,this.freeTasks=[]}}const Gu=new _p,xp=new Tp(Gu.registerPendingError);function Ip(i){Gu.enqueueTask(xp.create(i))}const Fa="dnd-core/ADD_SOURCE",Ra="dnd-core/ADD_TARGET",Wa="dnd-core/REMOVE_SOURCE",di="dnd-core/REMOVE_TARGET";function Op(i){return{type:Fa,payload:{sourceId:i}}}function Dp(i){return{type:Ra,payload:{targetId:i}}}function Ap(i){return{type:Wa,payload:{sourceId:i}}}function Cp(i){return{type:di,payload:{targetId:i}}}function Np(i){ne(typeof i.canDrag=="function","Expected canDrag to be a function."),ne(typeof i.beginDrag=="function","Expected beginDrag to be a function."),ne(typeof i.endDrag=="function","Expected endDrag to be a function.")}function Pp(i){ne(typeof i.canDrop=="function","Expected canDrop to be a function."),ne(typeof i.hover=="function","Expected hover to be a function."),ne(typeof i.drop=="function","Expected beginDrag to be a function.")}function Ba(i,n){if(n&&Array.isArray(i)){i.forEach(r=>Ba(r,!1));return}ne(typeof i=="string"||typeof i=="symbol",n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(i){i.SOURCE="SOURCE",i.TARGET="TARGET"})(ht||(ht={}));let Lp=0;function Mp(){return Lp++}function kp(i){const n=Mp().toString();switch(i){case ht.SOURCE:return`S${n}`;case ht.TARGET:return`T${n}`;default:throw new Error(`Unknown Handler Role: ${i}`)}}function Yu(i){switch(i[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${i}`)}}function Ju(i,n){const r=i.entries();let o=!1;do{const{done:s,value:[,l]}=r.next();if(l===n)return!0;o=!!s}while(!o);return!1}class Fp{addSource(n,r){Ba(n),Np(r);const o=this.addHandler(ht.SOURCE,n,r);return this.store.dispatch(Op(o)),o}addTarget(n,r){Ba(n,!0),Pp(r);const o=this.addHandler(ht.TARGET,n,r);return this.store.dispatch(Dp(o)),o}containsHandler(n){return Ju(this.dragSources,n)||Ju(this.dropTargets,n)}getSource(n,r=!1){return ne(this.isSourceId(n),"Expected a valid source ID."),r&&n===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(n)}getTarget(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}getSourceType(n){return ne(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}getTargetType(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}isSourceId(n){return Yu(n)===ht.SOURCE}isTargetId(n){return Yu(n)===ht.TARGET}removeSource(n){ne(this.getSource(n),"Expected an existing source."),this.store.dispatch(Ap(n)),Ip(()=>{this.dragSources.delete(n),this.types.delete(n)})}removeTarget(n){ne(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Cp(n)),this.dropTargets.delete(n),this.types.delete(n)}pinSource(n){const r=this.getSource(n);ne(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}unpinSource(){ne(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(n,r,o){const s=kp(n);return this.types.set(s,r),n===ht.SOURCE?this.dragSources.set(s,o):n===ht.TARGET&&this.dropTargets.set(s,o),s}constructor(n){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=n}}const Rp=(i,n)=>i===n;function Wp(i,n){return!i&&!n?!0:!i||!n?!1:i.x===n.x&&i.y===n.y}function Bp(i,n,r=Rp){if(i.length!==n.length)return!1;for(let o=0;o<i.length;++o)if(!r(i[o],n[o]))return!1;return!0}function $p(i=wr,n){switch(n.type){case li:break;case Fa:case Ra:case di:case Wa:return wr;case ui:case La:case ci:case fi:default:return ka}const{targetIds:r=[],prevTargetIds:o=[]}=n.payload,s=jg(r,o);if(!(s.length>0||!Bp(r,o)))return wr;const f=o[o.length-1],d=r[r.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Up(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Hp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Up(i,s,r[s])})}return i}const Vu={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function zp(i=Vu,n){const{payload:r}=n;switch(n.type){case Pa:case ui:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case li:return Wp(i.clientOffset,r.clientOffset)?i:Hp({},i,{clientOffset:r.clientOffset});case ci:case fi:return Vu;default:return i}}function jp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Un(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){jp(i,s,r[s])})}return i}const qp={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Gp(i=qp,n){const{payload:r}=n;switch(n.type){case ui:return Un({},i,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case La:return Un({},i,{isSourcePublic:!0});case li:return Un({},i,{targetIds:r.targetIds});case di:return i.targetIds.indexOf(r.targetId)===-1?i:Un({},i,{targetIds:zg(i.targetIds,r.targetId)});case fi:return Un({},i,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ci:return Un({},i,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return i}}function Yp(i=0,n){switch(n.type){case Fa:case Ra:return i+1;case Wa:case di:return i-1;default:return i}}function Jp(i=0){return i+1}function Vp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Xp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Vp(i,s,r[s])})}return i}function Kp(i={},n){return{dirtyHandlerIds:$p(i.dirtyHandlerIds,{type:n.type,payload:Xp({},n.payload,{prevTargetIds:Hg(i,"dragOperation.targetIds",[])})}),dragOffset:zp(i.dragOffset,n),refCount:Yp(i.refCount,n),dragOperation:Gp(i.dragOperation,n),stateId:Jp(i.stateId)}}function Zp(i,n=void 0,r={},o=!1){const s=Qp(o),l=new bp(s,new Fp(s)),f=new gp(s,l),d=i(f,n,r);return f.receiveBackend(d),f}function Qp(i){const n=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Bu(Kp,i&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))}function ev(i,n){if(i==null)return{};var r=tv(i,n),o,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(s=0;s<l.length;s++)o=l[s],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(r[o]=i[o])}return r}function tv(i,n){if(i==null)return{};var r={},o=Object.keys(i),s,l;for(l=0;l<o.length;l++)s=o[l],!(n.indexOf(s)>=0)&&(r[s]=i[s]);return r}let Xu=0;const hi=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var nv=A.memo(function(n){var{children:r}=n,o=ev(n,["children"]);const[s,l]=rv(o);return A.useEffect(()=>{if(l){const f=Ku();return++Xu,()=>{--Xu===0&&(f[hi]=null)}}},[]),$.jsx(ku.Provider,{value:s,children:r})});function rv(i){if("manager"in i)return[{dragDropManager:i.manager},!1];const n=iv(i.backend,i.context,i.options,i.debugMode),r=!i.context;return[n,r]}function iv(i,n=Ku(),r,o){const s=n;return s[hi]||(s[hi]={dragDropManager:Zp(i,n,r,o)}),s[hi]}function Ku(){return typeof global<"u"?global:window}var $a,Zu;function av(){return Zu||(Zu=1,$a=function i(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,s,l;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!i(n[s],r[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[s]))return!1;for(s=o;s--!==0;){var f=l[s];if(!i(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}),$a}var ov=av();const sv=br(ov),bn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function uv(i,n,r){const[o,s]=A.useState(()=>n(i)),l=A.useCallback(()=>{const f=n(i);sv(o,f)||(s(f),r&&r())},[o,i,r]);return bn(l),[o,l]}function lv(i,n,r){const[o,s]=uv(i,n,r);return bn(function(){const f=i.getHandlerId();if(f!=null)return i.subscribeToStateChange(s,{handlerIds:[f]})},[i,s]),o}function Qu(i,n,r){return lv(n,i||(()=>({})),()=>r.reconnect())}function el(i,n){const r=[...n||[]];return n==null&&typeof i!="function"&&r.push(i),A.useMemo(()=>typeof i=="function"?i():i,r)}function fv(i){return A.useMemo(()=>i.hooks.dragSource(),[i])}function cv(i){return A.useMemo(()=>i.hooks.dragPreview(),[i])}let Ua=!1,Ha=!1;class dv{receiveHandlerId(n){this.sourceId=n}getHandlerId(){return this.sourceId}canDrag(){ne(!Ua,"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 Ua=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ua=!1}}isDragging(){if(!this.sourceId)return!1;ne(!Ha,"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 Ha=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ha=!1}}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}isDraggingSource(n){return this.internalMonitor.isDraggingSource(n)}isOverTarget(n,r){return this.internalMonitor.isOverTarget(n,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(n){return this.internalMonitor.subscribeToOffsetChange(n)}canDragSource(n){return this.internalMonitor.canDragSource(n)}canDropOnTarget(n){return this.internalMonitor.canDropOnTarget(n)}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(n){this.sourceId=null,this.internalMonitor=n.getMonitor()}}let za=!1;class hv{receiveHandlerId(n){this.targetId=n}getHandlerId(){return this.targetId}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}canDrop(){if(!this.targetId)return!1;ne(!za,"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 za=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{za=!1}}isOver(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!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(n){this.targetId=null,this.internalMonitor=n.getMonitor()}}function gv(i,n,r){const o=r.getRegistry(),s=o.addTarget(i,n);return[s,()=>o.removeTarget(s)]}function pv(i,n,r){const o=r.getRegistry(),s=o.addSource(i,n);return[s,()=>o.removeSource(s)]}function ja(i,n,r,o){let s;if(s!==void 0)return!!s;if(i===n)return!0;if(typeof i!="object"||!i||typeof n!="object"||!n)return!1;const l=Object.keys(i),f=Object.keys(n);if(l.length!==f.length)return!1;const d=Object.prototype.hasOwnProperty.bind(n);for(let p=0;p<l.length;p++){const m=l[p];if(!d(m))return!1;const S=i[m],w=n[m];if(s=void 0,s===!1||s===void 0&&S!==w)return!1}return!0}function qa(i){return i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function vv(i){if(typeof i.type=="string")return;const n=i.type.displayName||i.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${n} into a <div>, or turn it into a drag source or a drop target itself.`)}function mv(i){return(n=null,r=null)=>{if(!A.isValidElement(n)){const l=n;return i(l,r),l}const o=n;return vv(o),yv(o,r?l=>i(l,r):i)}}function tl(i){const n={};return Object.keys(i).forEach(r=>{const o=i[r];if(r.endsWith("Ref"))n[r]=i[r];else{const s=mv(o);n[r]=()=>s}}),n}function nl(i,n){typeof i=="function"?i(n):i.current=n}function yv(i,n){const r=i.ref;return ne(typeof r!="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"),r?A.cloneElement(i,{ref:o=>{nl(r,o),nl(n,o)}}):A.cloneElement(i,{ref:n})}class bv{receiveHandlerId(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(n){this.dragSourceOptionsInternal=n}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(n){this.dragPreviewOptionsInternal=n}reconnect(){const n=this.reconnectDragSource();this.reconnectDragPreview(n)}reconnectDragSource(){const n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?n?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),r):(this.lastConnectedDragSource=n,r):r}reconnectDragPreview(n=!1){const r=this.dragPreview,o=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ja(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ja(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(n){this.hooks=tl({dragSource:(r,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,qa(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,qa(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,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=n}}class Sv{get connectTarget(){return this.dropTarget}reconnect(){const n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(n){this.dropTargetOptionsInternal=n}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ja(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(n){this.hooks=tl({dropTarget:(r,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,qa(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}}function Hn(){const{dragDropManager:i}=A.useContext(ku);return ne(i!=null,"Expected drag drop context"),i}function wv(i,n){const r=Hn(),o=A.useMemo(()=>new bv(r.getBackend()),[r]);return bn(()=>(o.dragSourceOptions=i||null,o.reconnect(),()=>o.disconnectDragSource()),[o,i]),bn(()=>(o.dragPreviewOptions=n||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,n]),o}function _v(){const i=Hn();return A.useMemo(()=>new dv(i),[i])}class Ev{beginDrag(){const n=this.spec,r=this.monitor;let o=null;return typeof n.item=="object"?o=n.item:typeof n.item=="function"?o=n.item(r):o={},o??null}canDrag(){const n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}isDragging(n,r){const o=this.spec,s=this.monitor,{isDragging:l}=o;return l?l(s):r===n.getSourceId()}endDrag(){const n=this.spec,r=this.monitor,o=this.connector,{end:s}=n;s&&s(r.getItem(),r),o.reconnect()}constructor(n,r,o){this.spec=n,this.monitor=r,this.connector=o}}function Tv(i,n,r){const o=A.useMemo(()=>new Ev(i,n,r),[n,r]);return A.useEffect(()=>{o.spec=i},[i]),o}function xv(i){return A.useMemo(()=>{const n=i.type;return ne(n!=null,"spec.type must be defined"),n},[i])}function Iv(i,n,r){const o=Hn(),s=Tv(i,n,r),l=xv(i);bn(function(){if(l!=null){const[d,p]=pv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p}},[o,n,r,s,l])}function Ov(i,n){const r=el(i,n);ne(!r.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=_v(),s=wv(r.options,r.previewOptions);return Iv(r,o,s),[Qu(r.collect,o,s),fv(s),cv(s)]}function Dv(i){return A.useMemo(()=>i.hooks.dropTarget(),[i])}function Av(i){const n=Hn(),r=A.useMemo(()=>new Sv(n.getBackend()),[n]);return bn(()=>(r.dropTargetOptions=i||null,r.reconnect(),()=>r.disconnectDropTarget()),[i]),r}function Cv(){const i=Hn();return A.useMemo(()=>new hv(i),[i])}function Nv(i){const{accept:n}=i;return A.useMemo(()=>(ne(i.accept!=null,"accept must be defined"),Array.isArray(n)?n:[n]),[n])}class Pv{canDrop(){const n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}hover(){const n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}drop(){const n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}constructor(n,r){this.spec=n,this.monitor=r}}function Lv(i,n){const r=A.useMemo(()=>new Pv(i,n),[n]);return A.useEffect(()=>{r.spec=i},[i]),r}function Mv(i,n,r){const o=Hn(),s=Lv(i,n),l=Nv(i);bn(function(){const[d,p]=gv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p},[o,n,s,r,l.map(f=>f.toString()).join("|")])}function Ga(i,n){const r=el(i,n),o=Cv(),s=Av(r.options);return Mv(r,o,s),[Qu(r.collect,o,s),Dv(s)]}var Ya={exports:{}};var rl;function kv(){return rl||(rl=1,(function(i){(function(){var n={}.hasOwnProperty;function r(){for(var l="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(l=s(l,o(d)))}return l}function o(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var f="";for(var d in l)n.call(l,d)&&l[d]&&(f=s(f,d));return f}function s(l,f){return f?l?l+" "+f:l+f:l}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ya)),Ya.exports}var Fv=kv();const Et=br(Fv),il=i=>!!i&&i[0]==="o",al=yr.unstable_batchedUpdates,_r=(i,n)=>i===!0||!!(i&&i[n]),gt=(i,n)=>typeof i=="function"?i(n):i,Rv="_szhsinMenu",Wv=i=>i[Rv],gi=(i,n)=>(n&&Object.keys(n).forEach(r=>{const o=i[r],s=n[r];typeof s=="function"&&o?i[r]=(...l)=>{s(...l),o(...l)}:i[r]=s}),i),Bv=i=>{if(typeof i!="string")return{top:0,right:0,bottom:0,left:0};const n=i.trim().split(/\s+/,4).map(parseFloat),r=isNaN(n[0])?0:n[0],o=isNaN(n[1])?r:n[1];return{top:r,right:o,bottom:isNaN(n[2])?r:n[2],left:isNaN(n[3])?o:n[3]}},Ja=i=>{for(;i;){if(i=i.parentNode,!i||i===document.body||!i.parentNode)return;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(i);if(/auto|scroll|overlay|hidden/.test(n+o+r))return i}};function ol(i,n){return{"aria-disabled":i||void 0,tabIndex:n?0:-1}}function sl(i,n){for(let r=0;r<i.length;r++)if(i[r]===n)return r;return-1}const pi=({block:i,element:n,modifiers:r,className:o})=>A.useMemo(()=>{const s=n?`${i}__${n}`:i;let l=s;r&&Object.keys(r).forEach(d=>{const p=r[d];p&&(l+=` ${s}--${p===!0?d:`${d}-${p}`}`)});let f=typeof o=="function"?o(r):o;return typeof f=="string"&&(f=f.trim(),f&&(l+=` ${f}`)),l},[i,n,r,o]),$v="szh-menu-container",vi="szh-menu",Uv="arrow",Hv="item",ul=A.createContext(),ll=A.createContext({}),fl=A.createContext({}),cl=A.createContext({}),zv=A.createContext({}),Va=A.createContext({}),Tt=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}),Er=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Tr=Object.freeze({FIRST:"first",LAST:"last"}),jv=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),dl="absolute",qv="none",Gv="menuitem",Xa={preventScroll:!0},Yv=({className:i,containerRef:n,containerProps:r,children:o,isOpen:s,theming:l,transition:f,onClose:d})=>{const p=_r(f,"item"),m=({key:w})=>{w===Tt.ESC&>(d,{key:w,reason:Er.CANCEL})},S=w=>{s&&!w.currentTarget.contains(w.relatedTarget)&>(d,{reason:Er.BLUR})};return $.jsx("div",{...gi({onKeyDown:m,onBlur:S},r),className:pi({block:$v,modifiers:A.useMemo(()=>({theme:l,itemTransition:p}),[l,p]),className:i}),style:{position:"absolute",...r?.style},ref:n,children:o})},Jv=()=>{let i,n=0;return{toggle:r=>{r?n++:n--,n=Math.max(n,0)},on:(r,o,s)=>{n?i||(i=setTimeout(()=>{i=0,o()},r)):s?.()},off:()=>{i&&(clearTimeout(i),i=0)}}},Vv=i=>{const[n,r]=A.useState(),s=A.useRef({items:[],hoverIndex:-1,sorted:!1}).current,l=A.useCallback((d,p)=>{const{items:m}=s;if(!d)s.items=[];else if(p)m.push(d);else{const S=m.indexOf(d);S>-1&&(m.splice(S,1),d.contains(document.activeElement)&&(i.current.focus(Xa),r()))}s.hoverIndex=-1,s.sorted=!1},[s,i]),f=A.useCallback((d,p,m)=>{const{items:S,hoverIndex:w}=s,O=()=>{if(s.sorted)return;const _=i.current.querySelectorAll(".szh-menu__item");S.sort((I,C)=>sl(_,I)-sl(_,C)),s.sorted=!0};let y=-1,E;switch(d){case Ce.RESET:break;case Ce.SET:E=p;break;case Ce.UNSET:E=_=>_===p?void 0:_;break;case Ce.FIRST:O(),y=0,E=S[y];break;case Ce.LAST:O(),y=S.length-1,E=S[y];break;case Ce.SET_INDEX:O(),y=m,E=S[y];break;case Ce.INCREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y++,y>=S.length&&(y=0),E=S[y];break;case Ce.DECREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y--,y<0&&(y=S.length-1),E=S[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${d}`)}E||(y=-1),r(E),s.hoverIndex=y},[i,s]);return{hoverItem:n,dispatch:f,updateItems:l}},hl=(i,n)=>Math.round(i)===n?i:n,Xv=i=>{const n=i.getBoundingClientRect();return n.width=hl(n.width,i.offsetWidth),n.height=hl(n.height,i.offsetHeight),n},Kv=(i,n,r,o)=>{const s=Xv(n),l=i.getBoundingClientRect(),f=r===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.getBoundingClientRect(),d=Bv(o),p=E=>E+l.left-f.left-d.left,m=E=>E+l.left+s.width-f.right+d.right,S=E=>E+l.top-f.top-d.top,w=E=>E+l.top+s.height-f.bottom+d.bottom;return{menuRect:s,containerRect:l,getLeftOverflow:p,getRightOverflow:m,getTopOverflow:S,getBottomOverflow:w,confineHorizontally:E=>{let _=p(E);if(_<0)E-=_;else{const I=m(E);I>0&&(E-=I,_=p(E),_<0&&(E-=_))}return E},confineVertically:E=>{let _=S(E);if(_<0)E-=_;else{const I=w(E);I>0&&(E-=I,_=S(E),_<0&&(E-=_))}return E}}},Zv=({arrowRef:i,menuY:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.top-o.top-n+r.height/2;const f=i.current.offsetHeight*1.25;return l=Math.max(f,l),l=Math.min(l,s.height-f),l},Qv=({anchorRect:i,containerRect:n,menuRect:r,placeLeftorRightY:o,placeLeftX:s,placeRightX:l,getLeftOverflow:f,getRightOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O,_=o;y!=="initial"&&(_=m(_),y==="anchor"&&(_=Math.min(_,i.bottom-n.top),_=Math.max(_,i.top-n.top-r.height)));let I,C,F;return E==="left"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="right")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="left")))),y==="auto"&&(I=p(I)),{arrowY:w?Zv({menuY:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:I,y:_,computedDirection:E}},em=({arrowRef:i,menuX:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.left-o.left-n+r.width/2;const f=i.current.offsetWidth*1.25;return l=Math.max(f,l),l=Math.min(l,s.width-f),l},tm=({anchorRect:i,containerRect:n,menuRect:r,placeToporBottomX:o,placeTopY:s,placeBottomY:l,getTopOverflow:f,getBottomOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O==="top"?"top":"bottom",_=o;y!=="initial"&&(_=p(_),y==="anchor"&&(_=Math.min(_,i.right-n.left),_=Math.max(_,i.left-n.left-r.width)));let I,C,F;return E==="top"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="bottom")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="top")))),y==="auto"&&(I=m(I)),{arrowX:w?em({menuX:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:_,y:I,computedDirection:E}},nm=({arrow:i,align:n,direction:r,gap:o,shift:s,position:l,anchorRect:f,arrowRef:d,positionHelpers:p})=>{const{menuRect:m,containerRect:S}=p,w=r==="left"||r==="right";let O=w?o:s,y=w?s:o;if(i){const B=d.current;w?O+=B.offsetWidth:y+=B.offsetHeight}const E=f.left-S.left-m.width-O,_=f.right-S.left+O,I=f.top-S.top-m.height-y,C=f.bottom-S.top+y;let F,U;n==="end"?(F=f.right-S.left-m.width,U=f.bottom-S.top-m.height):n==="center"?(F=f.left-S.left-(m.width-f.width)/2,U=f.top-S.top-(m.height-f.height)/2):(F=f.left-S.left,U=f.top-S.top),F+=O,U+=y;const V={...p,anchorRect:f,placeLeftX:E,placeRightX:_,placeLeftorRightY:U,placeTopY:I,placeBottomY:C,placeToporBottomX:F,arrowRef:d,arrow:i,direction:r,position:l};switch(r){case"left":case"right":return Qv(V);default:return tm(V)}},mi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A.useLayoutEffect:A.useEffect;function gl(i,n){typeof i=="function"?i(n):i.current=n}const Ka=(i,n)=>A.useMemo(()=>i?n?r=>{gl(i,r),gl(n,r)}:i:n,[i,n]),pl=-9999,rm=({ariaLabel:i,menuClassName:n,menuStyle:r,arrow:o,arrowProps:s={},anchorPoint:l,anchorRef:f,containerRef:d,containerProps:p,externalRef:m,parentScrollingRef:S,align:w="start",direction:O="bottom",position:y="auto",overflow:E="visible",setDownOverflow:_,repositionFlag:I,captureFocus:C=!0,state:F,endTransition:U,isDisabled:V,menuItemFocus:B,gap:ue=0,shift:N=0,children:L,onClose:j,focusProps:ee,...Y})=>{const[ae,X]=A.useState({x:pl,y:pl}),[We,Je]=A.useState({}),[Ve,Ot]=A.useState(),[He,gs]=A.useState(O),[Dt]=A.useState(Jv),[rt,Ri]=A.useReducer(ce=>ce+1,1),{transition:Wi,boundingBoxRef:Mr,boundingBoxPadding:qt,rootMenuRef:En,rootAnchorRef:kr,scrollNodesRef:Tn,reposition:sn,viewScroll:Fr,submenuCloseDelay:Xn}=A.useContext(Va),{submenuCtx:Kn,reposSubmenu:Bi=I}=A.useContext(fl),De=A.useRef(),un=A.useRef(),$i=A.useRef(!1),{hoverItem:it,dispatch:ze,updateItems:Zn}=Vv(De),Ae=il(F),Xe=_r(Wi,"open"),ln=_r(Wi,"close"),Be=Tn.current,ps=ce=>{switch(ce.key){case Tt.HOME:ze(Ce.FIRST);break;case Tt.END:ze(Ce.LAST);break;case Tt.UP:ze(Ce.DECREASE,it);break;case Tt.DOWN:ze(Ce.INCREASE,it);break;case Tt.SPACE:ce.target&&ce.target.className.indexOf(vi)!==-1&&ce.preventDefault();return;default:return}ce.preventDefault(),ce.stopPropagation()},xn=()=>{F==="closing"&&Ot(),gt(U)},vs=ce=>{ce.stopPropagation(),Dt.on(Xn,()=>{ze(Ce.RESET),De.current.focus(Xa)})},In=ce=>{ce.target===ce.currentTarget&&Dt.off()},je=A.useCallback(ce=>{const Le=De.current,Ke=d.current;if(!Le||!Ke)return;const at=f?f.current?.getBoundingClientRect():l?{left:l.x,right:l.x,top:l.y,bottom:l.y,width:0,height:0}:null;if(!at){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=(Mr?Mr.current:Ja(En.current))||window);const xe=Kv(Ke,Le,Be.menu,qt);let{arrowX:tr,arrowY:ms,x:ys,y:An,computedDirection:bs}=nm({arrow:o,align:w,direction:O,gap:ue,shift:N,position:y,anchorRect:at,arrowRef:un,positionHelpers:xe});const{menuRect:Ss}=xe,Hi=Ss.height;if(!ce&&E!=="visible"){const{getTopOverflow:Hr,getBottomOverflow:ws}=xe;let Gt,zr;const jr=ws(An);if(jr>0)Gt=Hi-jr,zr=jr;else{const nr=Hr(An);nr<0&&(Gt=Hi+nr,zr=0-nr,Gt>=0&&(An-=nr))}Gt>=0&&Ot({height:Gt,overflowAmt:zr})}o&&Je({x:tr,y:ms}),X({x:ys,y:An}),gs(bs)},[o,w,qt,O,ue,N,y,E,l,f,d,Mr,En,Be]);mi(()=>{Ae&&(je(),$i.current&&Ri()),$i.current=Ae},[Ae,je,Bi]),mi(()=>{Ve&&!_&&(De.current.scrollTop=0)},[Ve,_]),mi(()=>Zn,[Zn]),A.useEffect(()=>{let{menu:ce}=Be;if(!Ae||!ce)return;if(ce=ce.addEventListener?ce:window,!Be.anchors){Be.anchors=[];let xe=Ja(kr&&kr.current);for(;xe&&xe!==ce;)Be.anchors.push(xe),xe=Ja(xe)}let Le=Fr;if(Be.anchors.length&&Le==="initial"&&(Le="auto"),Le==="initial")return;const Ke=()=>{Le==="auto"?al(()=>je(!0)):gt(j,{reason:Er.SCROLL})},at=Be.anchors.concat(Fr!=="initial"?ce:[]);return at.forEach(xe=>xe.addEventListener("scroll",Ke)),()=>at.forEach(xe=>xe.removeEventListener("scroll",Ke))},[kr,Be,Ae,j,Fr,je]);const Qn=!!Ve&&Ve.overflowAmt>0;A.useEffect(()=>{if(Qn||!Ae||!S)return;const ce=()=>al(je),Le=S.current;return Le.addEventListener("scroll",ce),()=>Le.removeEventListener("scroll",ce)},[Ae,Qn,S,je]),A.useEffect(()=>{if(!Ae||typeof ResizeObserver!="function"||sn==="initial")return;const ce=[],Le=new ResizeObserver(xe=>xe.forEach(({target:tr})=>{ce.indexOf(tr)<0?ce.push(tr):yr.flushSync(()=>{je(),Ri()})})),Ke={box:"border-box"};Le.observe(De.current,Ke);const at=f?.current;return at&&Le.observe(at,Ke),()=>Le.disconnect()},[Ae,sn,f,je]),A.useEffect(()=>{if(!Ae){ze(Ce.RESET),ln||Ot();return}const{position:ce,alwaysUpdate:Le}=B||{},Ke=()=>{ce===Tr.FIRST?ze(Ce.FIRST):ce===Tr.LAST?ze(Ce.LAST):ce>=-1&&ze(Ce.SET_INDEX,void 0,ce)};if(Le)Ke();else if(C){const at=setTimeout(()=>{const xe=De.current;xe&&!xe.contains(document.activeElement)&&(xe.focus(Xa),Ke())},Xe?170:100);return()=>clearTimeout(at)}},[Ae,Xe,ln,C,B,ze]);const Rr=A.useMemo(()=>({isParentOpen:Ae,submenuCtx:Dt,dispatch:ze,updateItems:Zn}),[Ae,Dt,ze,Zn]);let On,Dn;Ve&&(_?Dn=Ve.overflowAmt:On=Ve.height);const Wr=A.useMemo(()=>({reposSubmenu:rt,submenuCtx:Dt,overflow:E,overflowAmt:Dn,parentMenuRef:De,parentDir:He}),[rt,Dt,E,Dn,He]),Br=On>=0?{maxHeight:On,overflow:E}:void 0,er=A.useMemo(()=>({state:F,align:w,dir:He}),[F,w,He]),$r=A.useMemo(()=>({dir:He}),[He]),Ur=pi({block:vi,element:Uv,modifiers:$r,className:s.className}),Ui=$.jsxs("ul",{role:"menu","aria-label":i,...ol(V),...gi({onPointerEnter:Kn?.off,onPointerMove:vs,onPointerLeave:In,onKeyDown:ps,onAnimationEnd:xn},Y),ref:Ka(m,De),className:pi({block:vi,modifiers:er,className:n}),style:{...r,...Br,margin:0,display:F==="closed"?"none":void 0,position:dl,left:ae.x,top:ae.y},children:[o&&$.jsx("li",{"aria-hidden":!0,...s,className:Ur,style:{display:"block",position:dl,left:We.x,top:We.y,...s.style},ref:un}),$.jsx(fl.Provider,{value:Wr,children:$.jsx(ll.Provider,{value:Rr,children:$.jsx(ul.Provider,{value:it,children:gt(L,er)})})})]});return p?$.jsx(Yv,{...p,isOpen:Ae,children:Ui}):Ui},vl=A.forwardRef(function({"aria-label":n,className:r,containerProps:o,initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,reposition:S="auto",submenuOpenDelay:w=300,submenuCloseDelay:O=150,viewScroll:y="initial",portal:E,theming:_,onItemClick:I,...C},F){const U=A.useRef(null),V=A.useRef({}),{anchorRef:B,state:ue,onClose:N}=C,L=A.useMemo(()=>({initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,rootMenuRef:U,rootAnchorRef:B,scrollNodesRef:V,reposition:S,viewScroll:y,submenuOpenDelay:w,submenuCloseDelay:O}),[s,l,f,d,B,p,m,S,y,w,O]),j=A.useMemo(()=>({handleClick(Y,ae){Y.stopPropagation||gt(I,Y);let X=Y.keepOpen;X===void 0&&(X=ae&&Y.key===Tt.SPACE),X||gt(N,{value:Y.value,key:Y.key,reason:Er.CLICK})},handleClose(Y){gt(N,{key:Y,reason:Er.CLICK})}}),[I,N]);if(!ue)return null;const ee=$.jsx(Va.Provider,{value:L,children:$.jsx(cl.Provider,{value:j,children:$.jsx(rm,{...C,ariaLabel:n||"Menu",externalRef:F,containerRef:U,containerProps:{className:r,containerRef:U,containerProps:o,theming:_,transition:f,onClose:N}})})});return E===!0&&typeof document<"u"?yr.createPortal(ee,document.body):E?E.target?yr.createPortal(ee,E.target):E.stablePosition?null:ee:ee}),Za=0,Qa=1,yi=2,bi=3,Si=4,im=5,ml=6,am=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],yl=i=>({_s:i,status:am[i],isEnter:i<bi,isMounted:i!==ml,isResolved:i===yi||i>Si}),eo=i=>i?ml:im,om=(i,n)=>{switch(i){case Qa:case Za:return yi;case Si:case bi:return eo(n)}},sm=i=>typeof i=="object"?[i.enter,i.exit]:[i,i],to=setTimeout,um=(i,n)=>to(()=>{isNaN(document.body.offsetTop)||i(n+1)},0),bl=(i,n,r,o,s)=>{clearTimeout(o.current);const l=yl(i);n(l),r.current=l,s&&s({current:l})},lm=({enter:i=!0,exit:n=!0,preEnter:r,preExit:o,timeout:s,initialEntered:l,mountOnEnter:f,unmountOnExit:d,onStateChange:p}={})=>{const[m,S]=A.useState(()=>yl(l?yi:eo(f))),w=A.useRef(m),O=A.useRef(0),[y,E]=sm(s),_=A.useCallback(()=>{const I=om(w.current._s,d);I&&bl(I,S,w,O,p)},[p,d]);return[m,A.useCallback(I=>{const C=U=>{switch(bl(U,S,w,O,p),U){case Qa:y>=0&&(O.current=to(_,y));break;case Si:E>=0&&(O.current=to(_,E));break;case Za:case bi:O.current=um(C,U);break}},F=w.current.isEnter;typeof I!="boolean"&&(I=!F),I?!F&&C(i?r?Za:Qa:yi):F&&C(n?o?bi:Si:eo(d))},[_,p,i,n,r,o,y,E,d]),_]},no=({initialOpen:i,initialMounted:n,unmountOnClose:r,transition:o,transitionTimeout:s=500,onMenuChange:l}={})=>{const f=_r(o,"open"),d=_r(o,"close"),[{status:p},m,S]=lm({initialEntered:i,mountOnEnter:!n,unmountOnExit:r,timeout:s,enter:f,exit:d,onStateChange:A.useCallback(({current:{isEnter:w,isResolved:O}})=>{!l||w&&f&&O||!w&&d&&O||l({open:w})},[l,f,d])});return[{state:jv[p],endTransition:S},m]},fm=i=>{const[n,r]=no(i),[o,s]=A.useState(),l=(f,d)=>{s({position:f,alwaysUpdate:d}),r(!0)};return[{menuItemFocus:o,...n},r,l]},cm=(i,n)=>{if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[r]=A.useState({});return{onMouseDown:()=>{r.v=i&&i!=="closed"},onClick:o=>r.v?r.v=!1:n(!0,o)}},dm=parseInt(A.version)<19,Sl=A.forwardRef(function({"aria-label":n,captureFocus:r,initialOpen:o,menuButton:s,instanceRef:l,onMenuChange:f,...d},p){const[m,S,w]=fm({...d,onMenuChange:f}),{state:O}=m,y=il(O),E=A.useRef(null),_=cm(O,(B,ue)=>w(ue.detail?void 0:Tr.FIRST)),I=A.useCallback(B=>{S(!1),B.key&&E.current.focus()},[S]),C=B=>{switch(B.key){case Tt.UP:w(Tr.LAST);break;case Tt.DOWN:w(Tr.FIRST);break;default:return}B.preventDefault()},F=gt(s,{open:y});if(!F||!F.type)throw new Error("Menu requires a menuButton prop.");const U={...gi({onKeyDown:C,..._},F.props),ref:Ka(dm?F.ref:F.props.ref,E)};Wv(F.type)==="MenuButton"&&(U.isOpen=y);const V=A.cloneElement(F,U);return A.useImperativeHandle(l,()=>({openMenu:w,closeMenu:()=>S(!1)})),$.jsxs(A.Fragment,{children:[V,$.jsx(vl,{...d,...m,"aria-label":n||(typeof F.props.children=="string"?F.props.children:"Menu"),anchorRef:E,ref:p,onClose:I})]})}),hm=(i,n)=>{const r=A.memo(n),o=A.forwardRef((s,l)=>{const f=A.useRef(null);return $.jsx(r,{...s,itemRef:f,externalRef:l,isHovering:A.useContext(ul)===f.current})});return o.displayName=`WithHovering(${i})`,o},gm=i=>{const[n,r]=A.useState(!1);return A.useEffect(()=>{!i&&r(!1)},[i]),[n,()=>!n&&r(!0),()=>r(!1)]},pm=(i,n,r)=>{mi(()=>{if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${n.current.outerHTML}`);if(i)return;const o=n.current;return r(o,!0),()=>{r(o)}},[i,n,r])},vm=(i,n,r,o)=>{const[s,l,f]=gm(r),{submenuCloseDelay:d}=A.useContext(Va),{isParentOpen:p,submenuCtx:m,dispatch:S,updateItems:w}=A.useContext(ll),O=()=>{!r&&!o&&S(Ce.SET,i.current)},y=()=>{!o&&S(Ce.UNSET,i.current)},E=C=>{r&&!C.currentTarget.contains(C.relatedTarget)&&y()},_=C=>{o||(C.stopPropagation(),l(),m.on(d,O,O))},I=(C,F)=>{f(),m.off(),!F&&y()};return pm(o,i,w),A.useEffect(()=>{r&&p&&n.current&&n.current.focus()},[n,r,p]),{mouseOver:s,setHover:O,onBlur:E,onPointerMove:_,onPointerLeave:I}},wi=hm("MenuItem",function({className:n,value:r,href:o,type:s,checked:l,disabled:f,children:d,onClick:p,isHovering:m,itemRef:S,externalRef:w,...O}){const y=!!f,{mouseOver:E,setHover:_,...I}=vm(S,S,m,y),C=A.useContext(cl),F=A.useContext(zv),U=s==="radio",V=s==="checkbox",B=!!o&&!y&&!U&&!V,ue=U?F.value===r:V?!!l:!1,N=ae=>{if(y){ae.stopPropagation(),ae.preventDefault();return}const X={value:r,syntheticEvent:ae};ae.key!==void 0&&(X.key=ae.key),V&&(X.checked=!ue),U&&(X.name=F.name),gt(p,X),U&>(F.onRadioChange,X),C.handleClick(X,V||U)},L=ae=>{if(m)switch(ae.key){case Tt.ENTER:ae.preventDefault();case Tt.SPACE:B?S.current.click():N(ae)}},j=A.useMemo(()=>({type:s,disabled:y,hover:E||m,checked:ue,anchor:B}),[s,y,E,m,ue,B]),ee=gi({...I,onPointerDown:_,onKeyDown:L,onClick:N},O),Y={role:U?"menuitemradio":V?"menuitemcheckbox":Gv,"aria-checked":U||V?ue:void 0,...ol(y,m),...ee,ref:Ka(w,S),className:pi({block:vi,element:Hv,modifiers:j,className:n}),children:A.useMemo(()=>gt(d,j),[d,j])};return B?$.jsx("li",{role:qv,children:$.jsx("a",{href:o,...Y})}):$.jsx("li",{...Y})});if(!A.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!mr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function mm(i){i()}function ym(i){i||(i=mm,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),mr.configure({reactionScheduler:i})}function bm(i){return mr.getDependencyTree(i)}var Sm=1e4,wm=1e4,_m=(function(){function i(n){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:n}),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=Sm),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var s=Date.now();r.registrations.forEach(function(l,f){s-l.registeredAt>=o&&(r.finalize(l.value),r.registrations.delete(f))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(i.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(n,r,o){this.registrations.set(o,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(i.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(n){this.registrations.delete(n)}}),Object.defineProperty(i.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,wm))}}),i})(),Em=typeof FinalizationRegistry<"u"?FinalizationRegistry:_m,ro=new Em(function(i){var n;(n=i.reaction)===null||n===void 0||n.dispose(),i.reaction=null}),_i={exports:{}},io={};var wl;function Tm(){if(wl)return io;wl=1;var i=A;function n(w,O){return w===O&&(w!==0||1/w===1/O)||w!==w&&O!==O}var r=typeof Object.is=="function"?Object.is:n,o=i.useState,s=i.useEffect,l=i.useLayoutEffect,f=i.useDebugValue;function d(w,O){var y=O(),E=o({inst:{value:y,getSnapshot:O}}),_=E[0].inst,I=E[1];return l(function(){_.value=y,_.getSnapshot=O,p(_)&&I({inst:_})},[w,y,O]),s(function(){return p(_)&&I({inst:_}),w(function(){p(_)&&I({inst:_})})},[w]),f(y),y}function p(w){var O=w.getSnapshot;w=w.value;try{var y=O();return!r(w,y)}catch{return!0}}function m(w,O){return O()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return io.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:S,io}var ao={};var _l;function xm(){return _l||(_l=1,process.env.NODE_ENV!=="production"&&(function(){function i(y,E){return y===E&&(y!==0||1/y===1/E)||y!==y&&E!==E}function n(y,E){S||s.startTransition===void 0||(S=!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 _=E();if(!w){var I=E();l(_,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}I=f({inst:{value:_,getSnapshot:E}});var C=I[0].inst,F=I[1];return p(function(){C.value=_,C.getSnapshot=E,r(C)&&F({inst:C})},[y,_,E]),d(function(){return r(C)&&F({inst:C}),y(function(){r(C)&&F({inst:C})})},[y]),m(_),_}function r(y){var E=y.getSnapshot;y=y.value;try{var _=E();return!l(y,_)}catch{return!0}}function o(y,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=A,l=typeof Object.is=="function"?Object.is:i,f=s.useState,d=s.useEffect,p=s.useLayoutEffect,m=s.useDebugValue,S=!1,w=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:n;ao.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ao}var El;function Im(){return El||(El=1,process.env.NODE_ENV==="production"?_i.exports=Tm():_i.exports=xm()),_i.exports}var Om=Im();function Tl(i){i.reaction=new mr.Reaction("observer".concat(i.name),function(){var n;i.stateVersion=Symbol(),(n=i.onStoreChange)===null||n===void 0||n.call(i)})}function Dm(i,n){n===void 0&&(n="observed");var r=A.useRef(null);if(!r.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:n,subscribe:function(d){return ro.unregister(o),o.onStoreChange=d,o.reaction||(Tl(o),o.stateVersion=Symbol()),function(){var p;o.onStoreChange=null,(p=o.reaction)===null||p===void 0||p.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};r.current=o}var s=r.current;s.reaction||(Tl(s),ro.register(r,s,s)),A.useDebugValue(s.reaction,bm),Om.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var l,f;if(s.reaction.track(function(){try{l=i()}catch(d){f=d}}),f)throw f;return l}var oo,so,Am=!0,xl=!0,Il=typeof Symbol=="function"&&Symbol.for,Cm=(so=(oo=Object.getOwnPropertyDescriptor(function(){},"name"))===null||oo===void 0?void 0:oo.configurable)!==null&&so!==void 0?so:!1,Ol=Il?Symbol.for("react.forward_ref"):typeof A.forwardRef=="function"&&A.forwardRef(function(i){return null}).$$typeof,Dl=Il?Symbol.for("react.memo"):typeof A.memo=="function"&&A.memo(function(i){return null}).$$typeof;function Bt(i,n){var r;if(process.env.NODE_ENV,Dl&&i.$$typeof===Dl)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=(r=void 0)!==null&&r!==void 0?r:!1,s=i,l=i.displayName||i.name;if(Ol&&i.$$typeof===Ol&&(o=!0,s=i.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var f=function(d,p){return Dm(function(){return s(d,p)},l)};return f.displayName=i.displayName,Cm&&Object.defineProperty(f,"name",{value:i.name,writable:!0,configurable:!0}),i.contextTypes&&(f.contextTypes=i.contextTypes,process.env.NODE_ENV!=="production"&&xl&&(xl=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(f=A.forwardRef(f)),f=A.memo(f),Pm(i,f),process.env.NODE_ENV!=="production"&&Object.defineProperty(f,"contextTypes",{set:function(){var d,p;throw new Error("[mobx-react-lite] `".concat(this.displayName||((d=this.type)===null||d===void 0?void 0:d.displayName)||((p=this.type)===null||p===void 0?void 0:p.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),f}var Nm={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Pm(i,n){Object.keys(i).forEach(function(r){Nm[r]||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(i,r))})}process.env.NODE_ENV;var uo;ym(yr.unstable_batchedUpdates),uo=ro.finalizeAllImmediately;function lo(i,n){(n==null||n>i.length)&&(n=i.length);for(var r=0,o=Array(n);r<n;r++)o[r]=i[r];return o}function Lm(i){if(Array.isArray(i))return i}function Mm(i){if(Array.isArray(i))return lo(i)}function km(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Fm(i,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,Cl(o.key),o)}}function Rm(i,n,r){return n&&Fm(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function Ei(i,n){var r=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!r){if(Array.isArray(i)||(r=fo(i))||n){r&&(i=r);var o=0,s=function(){};return{s,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(p){throw p},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
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(i,n){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),r.push.apply(r,o)}return r}function W(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Al(Object(r),!0).forEach(function(o){re(i,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(r,o))})}return i}function Ti(i,n){return Lm(i)||Bm(i,n)||fo(i,n)||$m()}function xt(i){return Mm(i)||Wm(i)||fo(i)||Um()}function Hm(i,n){if(typeof i!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var o=r.call(i,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Cl(i){var n=Hm(i,"string");return typeof n=="symbol"?n:n+""}function xi(i){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xi(i)}function fo(i,n){if(i){if(typeof i=="string")return lo(i,n);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(i,n):void 0}}var Nl=function(){},co={},Pl={},Ll=null,Ml={mark:Nl,measure:Nl};try{typeof window<"u"&&(co=window),typeof document<"u"&&(Pl=document),typeof MutationObserver<"u"&&(Ll=MutationObserver),typeof performance<"u"&&(Ml=performance)}catch{}var zm=co.navigator||{},kl=zm.userAgent,Fl=kl===void 0?"":kl,rn=co,Se=Pl,Rl=Ll,Ii=Ml;rn.document;var $t=!!Se.documentElement&&!!Se.head&&typeof Se.addEventListener=="function"&&typeof Se.createElement=="function",Wl=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),ho,jm=/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)?[\-\ ]/,qm=/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,Bl={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"}},Gm={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$l=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],ke="classic",xr="duotone",Ul="sharp",Hl="sharp-duotone",zl="chisel",jl="etch",ql="jelly",Gl="jelly-duo",Yl="jelly-fill",Jl="notdog",Vl="notdog-duo",Xl="slab",Kl="slab-press",Zl="thumbprint",Ql="utility",ef="utility-duo",tf="utility-fill",nf="whiteboard",Ym="Classic",Jm="Duotone",Vm="Sharp",Xm="Sharp Duotone",Km="Chisel",Zm="Etch",Qm="Jelly",ey="Jelly Duo",ty="Jelly Fill",ny="Notdog",ry="Notdog Duo",iy="Slab",ay="Slab Press",oy="Thumbprint",sy="Utility",uy="Utility Duo",ly="Utility Fill",fy="Whiteboard",rf=[ke,xr,Ul,Hl,zl,jl,ql,Gl,Yl,Jl,Vl,Xl,Kl,Zl,Ql,ef,tf,nf];ho={},re(re(re(re(re(re(re(re(re(re(ho,ke,Ym),xr,Jm),Ul,Vm),Hl,Xm),zl,Km),jl,Zm),ql,Qm),Gl,ey),Yl,ty),Jl,ny),re(re(re(re(re(re(re(re(ho,Vl,ry),Xl,iy),Kl,ay),Zl,oy),Ql,sy),ef,uy),tf,ly),nf,fy);var cy={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"}},dy={"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"}},hy=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}]]),gy={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"}},py=["kit"],vy="kit",my="kit-duotone",yy="Kit",by="Kit Duotone";re(re({},vy,yy),my,by);var Sy={kit:{"fa-kit":"fak"}},wy={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},_y={kit:{fak:"fa-kit"}},sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},go,Oi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ey=["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"],Ty="classic",xy="duotone",Iy="sharp",Oy="sharp-duotone",Dy="chisel",Ay="etch",Cy="jelly",Ny="jelly-duo",Py="jelly-fill",Ly="notdog",My="notdog-duo",ky="slab",Fy="slab-press",Ry="thumbprint",Wy="utility",By="utility-duo",$y="utility-fill",Uy="whiteboard",Hy="Classic",zy="Duotone",jy="Sharp",qy="Sharp Duotone",Gy="Chisel",Yy="Etch",Jy="Jelly",Vy="Jelly Duo",Xy="Jelly Fill",Ky="Notdog",Zy="Notdog Duo",Qy="Slab",e0="Slab Press",t0="Thumbprint",n0="Utility",r0="Utility Duo",i0="Utility Fill",a0="Whiteboard";go={},re(re(re(re(re(re(re(re(re(re(go,Ty,Hy),xy,zy),Iy,jy),Oy,qy),Dy,Gy),Ay,Yy),Cy,Jy),Ny,Vy),Py,Xy),Ly,Ky),re(re(re(re(re(re(re(re(go,My,Zy),ky,Qy),Fy,e0),Ry,t0),Wy,n0),By,r0),$y,i0),Uy,a0);var o0="kit",s0="kit-duotone",u0="Kit",l0="Kit Duotone";re(re({},o0,u0),s0,l0);var f0={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"}},c0={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"]},po={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"}},d0=["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(Ey,d0),h0=["solid","regular","light","thin","duotone","brands","semibold"],lf=[1,2,3,4,5,6,7,8,9,10],g0=lf.concat([11,12,13,14,15,16,17,18,19,20]),p0=["aw","fw","pull-left","pull-right"],v0=[].concat(xt(Object.keys(c0)),h0,p0,["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",Oi.GROUP,Oi.SWAP_OPACITY,Oi.PRIMARY,Oi.SECONDARY]).concat(lf.map(function(i){return"".concat(i,"x")})).concat(g0.map(function(i){return"w-".concat(i)})),m0={"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"}},Ut="___FONT_AWESOME___",vo=16,ff="fa",cf="svg-inline--fa",Sn="data-fa-i2svg",mo="data-fa-pseudo-element",y0="data-fa-pseudo-element-pending",yo="data-prefix",bo="data-icon",df="fontawesome-i2svg",b0="async",S0=["HTML","HEAD","STYLE","SCRIPT"],hf=["::before","::after",":before",":after"],gf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ir(i){return new Proxy(i,{get:function(r,o){return o in r?r[o]:r[ke]}})}var pf=W({},Bl);pf[ke]=W(W(W(W({},{"fa-duotone":"duotone"}),Bl[ke]),of.kit),of["kit-duotone"]);var w0=Ir(pf),So=W({},gy);So[ke]=W(W(W(W({},{duotone:"fad"}),So[ke]),sf.kit),sf["kit-duotone"]);var vf=Ir(So),wo=W({},po);wo[ke]=W(W({},wo[ke]),_y.kit);var _o=Ir(wo),Eo=W({},f0);Eo[ke]=W(W({},Eo[ke]),Sy.kit),Ir(Eo);var _0=jm,mf="fa-layers-text",E0=qm,T0=W({},cy);Ir(T0);var x0=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],To=Gm,I0=[].concat(xt(py),xt(v0)),Or=rn.FontAwesomeConfig||{};function O0(i){var n=Se.querySelector("script["+i+"]");if(n)return n.getAttribute(i)}function D0(i){return i===""?!0:i==="false"?!1:i==="true"?!0:i}if(Se&&typeof Se.querySelector=="function"){var A0=[["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"]];A0.forEach(function(i){var n=Ti(i,2),r=n[0],o=n[1],s=D0(O0(r));s!=null&&(Or[o]=s)})}var yf={styleDefault:"solid",familyDefault:ke,cssPrefix:ff,replacementClass:cf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Or.familyPrefix&&(Or.cssPrefix=Or.familyPrefix);var zn=W(W({},yf),Or);zn.autoReplaceSvg||(zn.observeMutations=!1);var G={};Object.keys(yf).forEach(function(i){Object.defineProperty(G,i,{enumerable:!0,set:function(r){zn[i]=r,Dr.forEach(function(o){return o(G)})},get:function(){return zn[i]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(n){zn.cssPrefix=n,Dr.forEach(function(r){return r(G)})},get:function(){return zn.cssPrefix}}),rn.FontAwesomeConfig=G;var Dr=[];function C0(i){return Dr.push(i),function(){Dr.splice(Dr.indexOf(i),1)}}var jn=vo,Mt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function N0(i){if(!(!i||!$t)){var n=Se.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=i;for(var r=Se.head.childNodes,o=null,s=r.length-1;s>-1;s--){var l=r[s],f=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(o=l)}return Se.head.insertBefore(n,o),i}}var P0="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function bf(){for(var i=12,n="";i-- >0;)n+=P0[Math.random()*62|0];return n}function qn(i){for(var n=[],r=(i||[]).length>>>0;r--;)n[r]=i[r];return n}function xo(i){return i.classList?qn(i.classList):(i.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Sf(i){return"".concat(i).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function L0(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,'="').concat(Sf(i[r]),'" ')},"").trim()}function Di(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,": ").concat(i[r].trim(),";")},"")}function Io(i){return i.size!==Mt.size||i.x!==Mt.x||i.y!==Mt.y||i.rotate!==Mt.rotate||i.flipX||i.flipY}function M0(i){var n=i.transform,r=i.containerWidth,o=i.iconWidth,s={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),f="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),d="rotate(".concat(n.rotate," 0 0)"),p={transform:"".concat(l," ").concat(f," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")};return{outer:s,inner:p,path:m}}function k0(i){var n=i.transform,r=i.width,o=r===void 0?vo:r,s=i.height,l=s===void 0?vo:s,f="";return Wl?f+="translate(".concat(n.x/jn-o/2,"em, ").concat(n.y/jn-l/2,"em) "):f+="translate(calc(-50% + ".concat(n.x/jn,"em), calc(-50% + ").concat(n.y/jn,"em)) "),f+="scale(".concat(n.size/jn*(n.flipX?-1:1),", ").concat(n.size/jn*(n.flipY?-1:1),") "),f+="rotate(".concat(n.rotate,"deg) "),f}var F0=`:root, :host {
|
|
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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}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 {
|
|
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,8 +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 wf(){var i=ff,n=cf,r=G.cssPrefix,o=G.replacementClass,s=F0;if(r!==i||o!==n){var l=new RegExp("\\.".concat(i,"\\-"),"g"),f=new RegExp("\\--".concat(i,"\\-"),"g"),d=new RegExp("\\.".concat(n),"g");s=s.replace(l,".".concat(r,"-")).replace(f,"--".concat(r,"-")).replace(d,".".concat(o))}return s}var _f=!1;function Oo(){G.autoAddCss&&!_f&&(N0(wf()),_f=!0)}var R0={mixout:function(){return{dom:{css:wf,insertCss:Oo}}},hooks:function(){return{beforeDOMElementCreation:function(){Oo()},beforeI2svg:function(){Oo()}}}},Ht=rn||{};Ht[Ut]||(Ht[Ut]={}),Ht[Ut].styles||(Ht[Ut].styles={}),Ht[Ut].hooks||(Ht[Ut].hooks={}),Ht[Ut].shims||(Ht[Ut].shims=[]);var It=Ht[Ut],Ef=[],Tf=function(){Se.removeEventListener("DOMContentLoaded",Tf),Ai=1,Ef.map(function(n){return n()})},Ai=!1;$t&&(Ai=(Se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Se.readyState),Ai||Se.addEventListener("DOMContentLoaded",Tf));function W0(i){$t&&(Ai?setTimeout(i,0):Ef.push(i))}function Ar(i){var n=i.tag,r=i.attributes,o=r===void 0?{}:r,s=i.children,l=s===void 0?[]:s;return typeof i=="string"?Sf(i):"<".concat(n," ").concat(L0(o),">").concat(l.map(Ar).join(""),"</").concat(n,">")}function xf(i,n,r){if(i&&i[n]&&i[n][r])return{prefix:n,iconName:r,icon:i[n][r]}}var Do=function(n,r,o,s){var l=Object.keys(n),f=l.length,d=r,p,m,S;for(o===void 0?(p=1,S=n[l[0]]):(p=0,S=o);p<f;p++)m=l[p],S=d(S,n[m],m,n);return S};function If(i){return xt(i).length!==1?null:i.codePointAt(0).toString(16)}function Of(i){return Object.keys(i).reduce(function(n,r){var o=i[r],s=!!o.icon;return s?n[o.iconName]=o.icon:n[r]=o,n},{})}function Ao(i,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.skipHooks,s=o===void 0?!1:o,l=Of(n);typeof It.hooks.addPack=="function"&&!s?It.hooks.addPack(i,Of(n)):It.styles[i]=W(W({},It.styles[i]||{}),l),i==="fas"&&Ao("fa",n)}var Cr=It.styles,B0=It.shims,Df=Object.keys(_o),$0=Df.reduce(function(i,n){return i[n]=Object.keys(_o[n]),i},{}),Co=null,Af={},Cf={},Nf={},Pf={},Lf={};function U0(i){return~I0.indexOf(i)}function H0(i,n){var r=n.split("-"),o=r[0],s=r.slice(1).join("-");return o===i&&s!==""&&!U0(s)?s:null}var Mf=function(){var n=function(l){return Do(Cr,function(f,d,p){return f[p]=Do(d,l,{}),f},{})};Af=n(function(s,l,f){if(l[3]&&(s[l[3]]=f),l[2]){var d=l[2].filter(function(p){return typeof p=="number"});d.forEach(function(p){s[p.toString(16)]=f})}return s}),Cf=n(function(s,l,f){if(s[f]=f,l[2]){var d=l[2].filter(function(p){return typeof p=="string"});d.forEach(function(p){s[p]=f})}return s}),Lf=n(function(s,l,f){var d=l[2];return s[f]=f,d.forEach(function(p){s[p]=f}),s});var r="far"in Cr||G.autoFetchSvg,o=Do(B0,function(s,l){var f=l[0],d=l[1],p=l[2];return d==="far"&&!r&&(d="fas"),typeof f=="string"&&(s.names[f]={prefix:d,iconName:p}),typeof f=="number"&&(s.unicodes[f.toString(16)]={prefix:d,iconName:p}),s},{names:{},unicodes:{}});Nf=o.names,Pf=o.unicodes,Co=Ci(G.styleDefault,{family:G.familyDefault})};C0(function(i){Co=Ci(i.styleDefault,{family:G.familyDefault})}),Mf();function No(i,n){return(Af[i]||{})[n]}function z0(i,n){return(Cf[i]||{})[n]}function wn(i,n){return(Lf[i]||{})[n]}function kf(i){return Nf[i]||{prefix:null,iconName:null}}function j0(i){var n=Pf[i],r=No("fas",i);return n||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function an(){return Co}var Ff=function(){return{prefix:null,iconName:null,rest:[]}};function q0(i){var n=ke,r=Df.reduce(function(o,s){return o[s]="".concat(G.cssPrefix,"-").concat(s),o},{});return rf.forEach(function(o){(i.includes(r[o])||i.some(function(s){return $0[o].includes(s)}))&&(n=o)}),n}function Ci(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.family,o=r===void 0?ke:r,s=w0[o][i];if(o===xr&&!i)return"fad";var l=vf[o][i]||vf[o][s],f=i in It.styles?i:null,d=l||f||null;return d}function G0(i){var n=[],r=null;return i.forEach(function(o){var s=H0(G.cssPrefix,o);s?r=s:o&&n.push(o)}),{iconName:r,rest:n}}function Rf(i){return i.sort().filter(function(n,r,o){return o.indexOf(n)===r})}var Wf=uf.concat(af);function Ni(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,s=null,l=Rf(i.filter(function(y){return Wf.includes(y)})),f=Rf(i.filter(function(y){return!Wf.includes(y)})),d=l.filter(function(y){return s=y,!$l.includes(y)}),p=Ti(d,1),m=p[0],S=m===void 0?null:m,w=q0(l),O=W(W({},G0(f)),{},{prefix:Ci(S,{family:w})});return W(W(W({},O),X0({values:i,family:w,styles:Cr,config:G,canonical:O,givenPrefix:s})),Y0(o,s,O))}function Y0(i,n,r){var o=r.prefix,s=r.iconName;if(i||!o||!s)return{prefix:o,iconName:s};var l=n==="fa"?kf(s):{},f=wn(o,s);return s=l.iconName||f||s,o=l.prefix||o,o==="far"&&!Cr.far&&Cr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:s}}var J0=rf.filter(function(i){return i!==ke||i!==xr}),V0=Object.keys(po).filter(function(i){return i!==ke}).map(function(i){return Object.keys(po[i])}).flat();function X0(i){var n=i.values,r=i.family,o=i.canonical,s=i.givenPrefix,l=s===void 0?"":s,f=i.styles,d=f===void 0?{}:f,p=i.config,m=p===void 0?{}:p,S=r===xr,w=n.includes("fa-duotone")||n.includes("fad"),O=m.familyDefault==="duotone",y=o.prefix==="fad"||o.prefix==="fa-duotone";if(!S&&(w||O||y)&&(o.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(o.prefix="fab"),!o.prefix&&J0.includes(r)){var E=Object.keys(d).find(function(I){return V0.includes(I)});if(E||m.autoFetchSvg){var _=hy.get(r).defaultShortPrefixId;o.prefix=_,o.iconName=wn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||l==="fa")&&(o.prefix=an()||"fas"),o}var K0=(function(){function i(){km(this,i),this.definitions={}}return Rm(i,[{key:"add",value:function(){for(var r=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var f=s.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(d){r.definitions[d]=W(W({},r.definitions[d]||{}),f[d]),Ao(d,f[d]);var p=_o[ke][d];p&&Ao(p,f[d]),Mf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,o){var s=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(s).map(function(l){var f=s[l],d=f.prefix,p=f.iconName,m=f.icon,S=m[2];r[d]||(r[d]={}),S.length>0&&S.forEach(function(w){typeof w=="string"&&(r[d][w]=m)}),r[d][p]=m}),r}}])})(),Bf=[],Gn={},Yn={},Z0=Object.keys(Yn);function Q0(i,n){var r=n.mixoutsTo;return Bf=i,Gn={},Object.keys(Yn).forEach(function(o){Z0.indexOf(o)===-1&&delete Yn[o]}),Bf.forEach(function(o){var s=o.mixout?o.mixout():{};if(Object.keys(s).forEach(function(f){typeof s[f]=="function"&&(r[f]=s[f]),xi(s[f])==="object"&&Object.keys(s[f]).forEach(function(d){r[f]||(r[f]={}),r[f][d]=s[f][d]})}),o.hooks){var l=o.hooks();Object.keys(l).forEach(function(f){Gn[f]||(Gn[f]=[]),Gn[f].push(l[f])})}o.provides&&o.provides(Yn)}),r}function Po(i,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var l=Gn[i]||[];return l.forEach(function(f){n=f.apply(null,[n].concat(o))}),n}function _n(i){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Gn[i]||[];s.forEach(function(l){l.apply(null,r)})}function on(){var i=arguments[0],n=Array.prototype.slice.call(arguments,1);return Yn[i]?Yn[i].apply(null,n):void 0}function Lo(i){i.prefix==="fa"&&(i.prefix="fas");var n=i.iconName,r=i.prefix||an();if(n)return n=wn(r,n)||n,xf($f.definitions,r,n)||xf(It.styles,r,n)}var $f=new K0,eb=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,_n("noAuto")},tb={i2svg:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $t?(_n("beforeI2svg",n),on("pseudoElements2svg",n),on("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,W0(function(){rb({autoReplaceSvgRoot:r}),_n("watch",n)})}},nb={icon:function(n){if(n===null)return null;if(xi(n)==="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:wn(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){var r=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],o=Ci(n[0]);return{prefix:o,iconName:wn(o,r)||r}}if(typeof n=="string"&&(n.indexOf("".concat(G.cssPrefix,"-"))>-1||n.match(_0))){var s=Ni(n.split(" "),{skipLookups:!0});return{prefix:s.prefix||an(),iconName:wn(s.prefix,s.iconName)||s.iconName}}if(typeof n=="string"){var l=an();return{prefix:l,iconName:wn(l,n)||n}}}},nt={noAuto:eb,config:G,dom:tb,parse:nb,library:$f,findIconDefinition:Lo,toHtml:Ar},rb=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot,o=r===void 0?Se:r;(Object.keys(It.styles).length>0||G.autoFetchSvg)&&$t&&G.autoReplaceSvg&&nt.dom.i2svg({node:o})};function Pi(i,n){return Object.defineProperty(i,"abstract",{get:n}),Object.defineProperty(i,"html",{get:function(){return i.abstract.map(function(o){return Ar(o)})}}),Object.defineProperty(i,"node",{get:function(){if($t){var o=Se.createElement("div");return o.innerHTML=i.html,o.children}}}),i}function ib(i){var n=i.children,r=i.main,o=i.mask,s=i.attributes,l=i.styles,f=i.transform;if(Io(f)&&r.found&&!o.found){var d=r.width,p=r.height,m={x:d/p/2,y:.5};s.style=Di(W(W({},l),{},{"transform-origin":"".concat(m.x+f.x/16,"em ").concat(m.y+f.y/16,"em")}))}return[{tag:"svg",attributes:s,children:n}]}function ab(i){var n=i.prefix,r=i.iconName,o=i.children,s=i.attributes,l=i.symbol,f=l===!0?"".concat(n,"-").concat(G.cssPrefix,"-").concat(r):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:W(W({},s),{},{id:f}),children:o}]}]}function ob(i){var n=["aria-label","aria-labelledby","title","role"];return n.some(function(r){return r in i})}function Mo(i){var n=i.icons,r=n.main,o=n.mask,s=i.prefix,l=i.iconName,f=i.transform,d=i.symbol,p=i.maskId,m=i.extra,S=i.watchable,w=S===void 0?!1:S,O=o.found?o:r,y=O.width,E=O.height,_=[G.replacementClass,l?"".concat(G.cssPrefix,"-").concat(l):""].filter(function(B){return m.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(m.classes).join(" "),I={children:[],attributes:W(W({},m.attributes),{},{"data-prefix":s,"data-icon":l,class:_,role:m.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(E)})};!ob(m.attributes)&&!m.attributes["aria-hidden"]&&(I.attributes["aria-hidden"]="true"),w&&(I.attributes[Sn]="");var C=W(W({},I),{},{prefix:s,iconName:l,main:r,mask:o,maskId:p,transform:f,symbol:d,styles:W({},m.styles)}),F=o.found&&r.found?on("generateAbstractMask",C)||{children:[],attributes:{}}:on("generateAbstractIcon",C)||{children:[],attributes:{}},U=F.children,V=F.attributes;return C.children=U,C.attributes=V,d?ab(C):ib(C)}function Uf(i){var n=i.content,r=i.width,o=i.height,s=i.transform,l=i.extra,f=i.watchable,d=f===void 0?!1:f,p=W(W({},l.attributes),{},{class:l.classes.join(" ")});d&&(p[Sn]="");var m=W({},l.styles);Io(s)&&(m.transform=k0({transform:s,width:r,height:o}),m["-webkit-transform"]=m.transform);var S=Di(m);S.length>0&&(p.style=S);var w=[];return w.push({tag:"span",attributes:p,children:[n]}),w}function sb(i){var n=i.content,r=i.extra,o=W(W({},r.attributes),{},{class:r.classes.join(" ")}),s=Di(r.styles);s.length>0&&(o.style=s);var l=[];return l.push({tag:"span",attributes:o,children:[n]}),l}var ko=It.styles;function Fo(i){var n=i[0],r=i[1],o=i.slice(4),s=Ti(o,1),l=s[0],f=null;return Array.isArray(l)?f={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.PRIMARY),fill:"currentColor",d:l[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:n,height:r,icon:f}}var ub={found:!1,width:512,height:512};function lb(i,n){!gf&&!G.showMissingIcons&&i&&console.error('Icon with name "'.concat(i,'" and prefix "').concat(n,'" is missing.'))}function Ro(i,n){var r=n;return n==="fa"&&G.styleDefault!==null&&(n=an()),new Promise(function(o,s){if(r==="fa"){var l=kf(i)||{};i=l.iconName||i,n=l.prefix||n}if(i&&n&&ko[n]&&ko[n][i]){var f=ko[n][i];return o(Fo(f))}lb(i,n),o(W(W({},ub),{},{icon:G.showMissingIcons&&i?on("missingIconAbstract")||{}:{}}))})}var Hf=function(){},Wo=G.measurePerformance&&Ii&&Ii.mark&&Ii.measure?Ii:{mark:Hf,measure:Hf},Nr='FA "7.1.0"',fb=function(n){return Wo.mark("".concat(Nr," ").concat(n," begins")),function(){return zf(n)}},zf=function(n){Wo.mark("".concat(Nr," ").concat(n," ends")),Wo.measure("".concat(Nr," ").concat(n),"".concat(Nr," ").concat(n," begins"),"".concat(Nr," ").concat(n," ends"))},Bo={begin:fb,end:zf},Li=function(){};function jf(i){var n=i.getAttribute?i.getAttribute(Sn):null;return typeof n=="string"}function cb(i){var n=i.getAttribute?i.getAttribute(yo):null,r=i.getAttribute?i.getAttribute(bo):null;return n&&r}function db(i){return i&&i.classList&&i.classList.contains&&i.classList.contains(G.replacementClass)}function hb(){if(G.autoReplaceSvg===!0)return Mi.replace;var i=Mi[G.autoReplaceSvg];return i||Mi.replace}function gb(i){return Se.createElementNS("http://www.w3.org/2000/svg",i)}function pb(i){return Se.createElement(i)}function qf(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.ceFn,o=r===void 0?i.tag==="svg"?gb:pb:r;if(typeof i=="string")return Se.createTextNode(i);var s=o(i.tag);Object.keys(i.attributes||[]).forEach(function(f){s.setAttribute(f,i.attributes[f])});var l=i.children||[];return l.forEach(function(f){s.appendChild(qf(f,{ceFn:o}))}),s}function vb(i){var n=" ".concat(i.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var Mi={replace:function(n){var r=n[0];if(r.parentNode)if(n[1].forEach(function(s){r.parentNode.insertBefore(qf(s),r)}),r.getAttribute(Sn)===null&&G.keepOriginalSource){var o=Se.createComment(vb(r));r.parentNode.replaceChild(o,r)}else r.remove()},nest:function(n){var r=n[0],o=n[1];if(~xo(r).indexOf(G.replacementClass))return Mi.replace(n);var s=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var l=o[0].attributes.class.split(" ").reduce(function(d,p){return p===G.replacementClass||p.match(s)?d.toSvg.push(p):d.toNode.push(p),d},{toNode:[],toSvg:[]});o[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",l.toNode.join(" "))}var f=o.map(function(d){return Ar(d)}).join(`
|
|
574
|
-
`);
|
|
575
|
-
`),
|
|
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(_){s.e(_)}finally{s.f()}if(!o.size)return;var E=Array.from(o).join(", ");try{r=i.querySelectorAll(E)}catch{}}return new Promise(function(_,I){var C=qn(r).filter(Fb).map(kb),F=Bo.begin("searchPseudoElements");Jf(),Promise.all(C).then(function(){F(),Uo(),_()}).catch(function(){F(),Uo(),I()})})}}var Bb={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=rc,r}}},provides:function(n){n.pseudoElements2svg=function(r){var o=r.node,s=o===void 0?Se:o;G.searchPseudoElements&&rc(s)}}},ic=!1,$b={mixout:function(){return{dom:{unwatch:function(){Jf(),ic=!0}}}},hooks:function(){return{bootstrap:function(){Vf(Po("mutationObserverCallbacks",{}))},noAuto:function(){mb()},watch:function(r){var o=r.observeMutationsRoot;ic?Uo():Vf(Po("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},ac=function(n){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce(function(o,s){var l=s.toLowerCase().split("-"),f=l[0],d=l.slice(1).join("-");if(f&&d==="h")return o.flipX=!0,o;if(f&&d==="v")return o.flipY=!0,o;if(d=parseFloat(d),isNaN(d))return o;switch(f){case"grow":o.size=o.size+d;break;case"shrink":o.size=o.size-d;break;case"left":o.x=o.x-d;break;case"right":o.x=o.x+d;break;case"up":o.y=o.y-d;break;case"down":o.y=o.y+d;break;case"rotate":o.rotate=o.rotate+d;break}return o},r)},Ub={mixout:function(){return{parse:{transform:function(r){return ac(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-transform");return s&&(r.transform=ac(s)),r}}},provides:function(n){n.generateAbstractTransformGrouping=function(r){var o=r.main,s=r.transform,l=r.containerWidth,f=r.iconWidth,d={transform:"translate(".concat(l/2," 256)")},p="translate(".concat(s.x*32,", ").concat(s.y*32,") "),m="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),S="rotate(".concat(s.rotate," 0 0)"),w={transform:"".concat(p," ").concat(m," ").concat(S)},O={transform:"translate(".concat(f/2*-1," -256)")},y={outer:d,inner:w,path:O};return{tag:"g",attributes:W({},y.outer),children:[{tag:"g",attributes:W({},y.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:W(W({},o.icon.attributes),y.path)}]}]}}}},zo={x:0,y:0,width:"100%",height:"100%"};function oc(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.attributes&&(i.attributes.fill||n)&&(i.attributes.fill="black"),i}function Hb(i){return i.tag==="g"?i.children:[i]}var zb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-mask"),l=s?Ni(s.split(" ").map(function(f){return f.trim()})):Ff();return l.prefix||(l.prefix=an()),r.mask=l,r.maskId=o.getAttribute("data-fa-mask-id"),r}}},provides:function(n){n.generateAbstractMask=function(r){var o=r.children,s=r.attributes,l=r.main,f=r.mask,d=r.maskId,p=r.transform,m=l.width,S=l.icon,w=f.width,O=f.icon,y=M0({transform:p,containerWidth:w,iconWidth:m}),E={tag:"rect",attributes:W(W({},zo),{},{fill:"white"})},_=S.children?{children:S.children.map(oc)}:{},I={tag:"g",attributes:W({},y.inner),children:[oc(W({tag:S.tag,attributes:W(W({},S.attributes),y.path)},_))]},C={tag:"g",attributes:W({},y.outer),children:[I]},F="mask-".concat(d||bf()),U="clip-".concat(d||bf()),V={tag:"mask",attributes:W(W({},zo),{},{id:F,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,C]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:Hb(O)},V]};return o.push(B,{tag:"rect",attributes:W({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(F,")")},zo)}),{children:o,attributes:s}}}},jb={provides:function(n){var r=!1;rn.matchMedia&&(r=rn.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var o=[],s={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:W(W({},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 f=W(W({},l),{},{attributeName:"opacity"}),d={tag:"circle",attributes:W(W({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||d.children.push({tag:"animate",attributes:W(W({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:W(W({},f),{},{values:"1;0;1;1;0;1;"})}),o.push(d),o.push({tag:"path",attributes:W(W({},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:r?[]:[{tag:"animate",attributes:W(W({},f),{},{values:"1;0;0;0;0;1;"})}]}),r||o.push({tag:"path",attributes:W(W({},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:W(W({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},qb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-symbol"),l=s===null?!1:s===""?!0:s;return r.symbol=l,r}}}},Gb=[R0,Ob,Db,Ab,Cb,Bb,$b,Ub,zb,jb,qb];Q0(Gb,{mixoutsTo:nt}),nt.noAuto;var Pr=nt.config;nt.library,nt.dom;var sc=nt.parse;nt.findIconDefinition,nt.toHtml;var Yb=nt.icon;nt.layer,nt.text,nt.counter;function Jb(i){return i=i-0,i===i}function uc(i){return Jb(i)?i:(i=i.replace(/[_-]+(.)?/g,(n,r)=>r?r.toUpperCase():""),i.charAt(0).toLowerCase()+i.slice(1))}function Vb(i){return i.charAt(0).toUpperCase()+i.slice(1)}var Jn=new Map,Xb=1e3;function Kb(i){if(Jn.has(i))return Jn.get(i);const n={};let r=0;const o=i.length;for(;r<o;){const s=i.indexOf(";",r),l=s===-1?o:s,f=i.slice(r,l).trim();if(f){const d=f.indexOf(":");if(d>0){const p=f.slice(0,d).trim(),m=f.slice(d+1).trim();if(p&&m){const S=uc(p);n[S.startsWith("webkit")?Vb(S):S]=m}}}r=l+1}if(Jn.size===Xb){const s=Jn.keys().next().value;s&&Jn.delete(s)}return Jn.set(i,n),n}function lc(i,n,r={}){if(typeof n=="string")return n;const o=(n.children||[]).map(S=>lc(i,S)),s=n.attributes||{},l={};for(const[S,w]of Object.entries(s))switch(!0){case S==="class":{l.className=w;break}case S==="style":{l.style=Kb(String(w));break}case S.startsWith("aria-"):case S.startsWith("data-"):{l[S.toLowerCase()]=w;break}default:l[uc(S)]=w}const{style:f,role:d,"aria-label":p,...m}=r;return f&&(l.style=l.style?{...l.style,...f}:f),d&&(l.role=d),p&&(l["aria-label"]=p,l["aria-hidden"]="false"),i(n.tag,{...m,...l},...o)}var Zb=lc.bind(null,A.createElement),fc=(i,n)=>{const r=A.useId();return i||(n?r:void 0)},Qb=class{constructor(i="react-fontawesome"){this.enabled=!1;let n=!1;try{n=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=i,this.enabled=n}log(...i){this.enabled&&console.log(`[${this.scope}]`,...i)}warn(...i){this.enabled&&console.warn(`[${this.scope}]`,...i)}error(...i){this.enabled&&console.error(`[${this.scope}]`,...i)}};typeof process<"u"&&process.env.FA_VERSION;var e1="searchPseudoElementsFullScan"in Pr?"7.0.0":"6.0.0",t1=Number.parseInt(e1)>=7,Lr="fa",zt={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"},n1={left:"fa-pull-left",right:"fa-pull-right"},r1={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},i1={"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"},jt={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 a1(i){const n=Pr.cssPrefix||Pr.familyPrefix||Lr;return n===Lr?i:i.replace(new RegExp(String.raw`(?<=^|\s)${Lr}-`,"g"),`${n}-`)}function o1(i){const{beat:n,fade:r,beatFade:o,bounce:s,shake:l,spin:f,spinPulse:d,spinReverse:p,pulse:m,fixedWidth:S,inverse:w,border:O,flip:y,size:E,rotation:_,pull:I,swapOpacity:C,rotateBy:F,widthAuto:U,className:V}=i,B=[];return V&&B.push(...V.split(" ")),n&&B.push(zt.beat),r&&B.push(zt.fade),o&&B.push(zt.beatFade),s&&B.push(zt.bounce),l&&B.push(zt.shake),f&&B.push(zt.spin),p&&B.push(zt.spinReverse),d&&B.push(zt.spinPulse),m&&B.push(zt.pulse),S&&B.push(jt.fixedWidth),w&&B.push(jt.inverse),O&&B.push(jt.border),y===!0&&B.push(jt.flip),(y==="horizontal"||y==="both")&&B.push(jt.flipHorizontal),(y==="vertical"||y==="both")&&B.push(jt.flipVertical),E!=null&&B.push(i1[E]),_!=null&&_!==0&&B.push(r1[_]),I!=null&&B.push(n1[I]),C&&B.push(jt.swapOpacity),t1?(F&&B.push(jt.rotateBy),U&&B.push(jt.widthAuto),(Pr.cssPrefix||Pr.familyPrefix||Lr)===Lr?B:B.map(a1)):B}var s1=i=>typeof i=="object"&&"icon"in i&&!!i.icon;function cc(i){if(i)return s1(i)?i:sc.icon(i)}function u1(i){return Object.keys(i)}var dc=new Qb("FontAwesomeIcon"),hc={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},l1=new Set(Object.keys(hc)),Vn=A.forwardRef((i,n)=>{const r={...hc,...i},{icon:o,mask:s,symbol:l,title:f,titleId:d,maskId:p,transform:m}=r,S=fc(p,!!s),w=fc(d,!!f),O=cc(o);if(!O)return dc.error("Icon lookup is undefined",o),null;const y=o1(r),E=typeof m=="string"?sc.transform(m):m,_=cc(s),I=Yb(O,{...y.length>0&&{classes:y},...E&&{transform:E},..._&&{mask:_},symbol:l,title:f,titleId:w,maskId:S});if(!I)return dc.error("Could not find icon",O),null;const{abstract:C}=I,F={ref:n};for(const U of u1(r))l1.has(U)||(F[U]=r[U]);return Zb(C[0],F)});Vn.displayName="FontAwesomeIcon";var f1={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"]},c1={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"]},gc={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"]},d1={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 h1({layoutId:i,justId:n,winInfo:r}){console.log("TabTitle justId",n);const[o,s]=no(),[l]=A.useState({x:0,y:0}),f=Lt(i),d=f.getTabTitleTooltip(n),p=S=>{f.removeWin({justId:S})},m=(S,w)=>{f.activeWin({justId:w})};return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"just-icon",onClick:S=>m(S,n),title:d,children:r.getTabIcon(n,i)}),$.jsx("div",{className:"just-title",onClick:S=>m(S,n),title:d,children:f.getTabTitle(n)??n.title}),$.jsx("div",{className:"just-icon just-close",onClick:()=>p(n),children:$.jsx(Vn,{icon:gc})}),$.jsx(vl,{state:o.state,endTransition:o.endTransition,anchorPoint:l,onClose:()=>s(!1),children:$.jsxs(wi,{onClick:()=>p(n),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close"}),$.jsx("div",{className:"just-icon"})]})})]})}const pc=Bt(h1);function g1(i){const{layoutId:n,isFullScreenView:r,dndAccept:o,winInfo:s,justBranch:l,justId:f,justStack:d,rect:p}=i,m=A.useRef(null),[,S]=no(),[,w]=A.useState({x:0,y:0}),O=Lt(n),[{isDragging:y},E]=Ov({type:f.viewId,item:{justBranch:l,justId:f,index:-1},collect:C=>({isDragging:C.isDragging()})}),[,_]=Ga({accept:o,collect(C){return{handlerId:C.getHandlerId()}},hover(C,F){if(!m.current||f===C.justId)return;const U=m.current.getBoundingClientRect(),V=F.getClientOffset(),B=(U.right-U.left)/2,ue=V.x-U.left,N=C.justId,L=f,j=d.tabs.filter(Y=>!ge.isEquals(Y,N));let ee=ge.indexOf(j,L);ue>B&&(ee+=1),C.pos="stack",C.index=ee}});A.useEffect(()=>{if(ge.isEquals(f,O.lastActiveId??null)){if(m.current==null||p==null)return;const C=m.current.getBoundingClientRect();(p.left>C.left||p.right<C.right)&&m.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[O.lastActiveTm]),A.useLayoutEffect(()=>{m.current&&E(_(m))},[_,E]);const I=A.useCallback(C=>{C.preventDefault(),w({x:C.clientX,y:C.clientY}),S(!0)},[S]);return $.jsx("div",{className:Et("just-draggable-title","just-title-menus",{dragging:y,"just-active":ge.isEquals(d.active,f),"last-active":ge.isEquals(O.lastActiveId,f)}),ref:m,onContextMenu:I,children:s.getTabTitle?s.getTabTitle({justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s}):$.jsx(pc,{justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s})})}const vc=Bt(g1);function mc(i){let n=null;return()=>(n==null&&(n=i()),n)}function p1(i,n){return i.filter(r=>r!==n)}function v1(i,n){const r=new Set,o=l=>r.add(l);i.forEach(o),n.forEach(o);const s=[];return r.forEach(l=>s.push(l)),s}class m1{enter(n){const r=this.entered.length,o=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(n));return this.entered=v1(this.entered.filter(o),[n]),r===0&&this.entered.length>0}leave(n){const r=this.entered.length;return this.entered=p1(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(n){this.entered=[],this.isNodeInDocument=n}}class y1{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(n=>{Object.defineProperty(this.item,n,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${n}" until the drop event.`),null}})})}loadDataTransfer(n){if(n){const r={};Object.keys(this.config.exposeProperties).forEach(o=>{const s=this.config.exposeProperties[o];s!=null&&(r[o]={value:s(n,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(n,r){return r===n.getSourceId()}endDrag(){}constructor(n){this.config=n,this.item={},this.initializeExposedProperties()}}const yc="__NATIVE_FILE__",bc="__NATIVE_URL__",Sc="__NATIVE_TEXT__",wc="__NATIVE_HTML__",_c=Object.freeze(Object.defineProperty({__proto__:null,FILE:yc,HTML:wc,TEXT:Sc,URL:bc},Symbol.toStringTag,{value:"Module"}));function jo(i,n,r){const o=n.reduce((s,l)=>s||i.getData(l),"");return o??r}const qo={[yc]:{exposeProperties:{files:i=>Array.prototype.slice.call(i.files),items:i=>i.items,dataTransfer:i=>i},matchesTypes:["Files"]},[wc]:{exposeProperties:{html:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Html","text/html"]},[bc]:{exposeProperties:{urls:(i,n)=>jo(i,n,"").split(`
|
|
577
|
-
`),dataTransfer:i=>i},matchesTypes:["Url","text/uri-list"]},[Sc]:{exposeProperties:{text:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Text","text/plain"]}};function b1(i,n){const r=qo[i];if(!r)throw new Error(`native type ${i} has no configuration`);const o=new y1(r);return o.loadDataTransfer(n),o}function Go(i){if(!i)return null;const n=Array.prototype.slice.call(i.types||[]);return Object.keys(qo).filter(r=>{const o=qo[r];return o?.matchesTypes?o.matchesTypes.some(s=>n.indexOf(s)>-1):!1})[0]||null}const S1=mc(()=>/firefox/i.test(navigator.userAgent)),Ec=mc(()=>!!window.safari);class Tc{interpolate(n){const{xs:r,ys:o,c1s:s,c2s:l,c3s:f}=this;let d=r.length-1;if(n===r[d])return o[d];let p=0,m=f.length-1,S;for(;p<=m;){S=Math.floor(.5*(p+m));const y=r[S];if(y<n)p=S+1;else if(y>n)m=S-1;else return o[S]}d=Math.max(0,m);const w=n-r[d],O=w*w;return o[d]+s[d]*w+l[d]*O+f[d]*w*O}constructor(n,r){const{length:o}=n,s=[];for(let y=0;y<o;y++)s.push(y);s.sort((y,E)=>n[y]<n[E]?-1:1);const l=[],f=[];let d,p;for(let y=0;y<o-1;y++)d=n[y+1]-n[y],p=r[y+1]-r[y],l.push(d),f.push(p/d);const m=[f[0]];for(let y=0;y<l.length-1;y++){const E=f[y],_=f[y+1];if(E*_<=0)m.push(0);else{d=l[y];const I=l[y+1],C=d+I;m.push(3*C/((C+I)/E+(C+d)/_))}}m.push(f[f.length-1]);const S=[],w=[];let O;for(let y=0;y<m.length-1;y++){O=f[y];const E=m[y],_=1/l[y],I=E+m[y+1]-O-O;S.push((O-E-I)*_),w.push(I*_*_)}this.xs=n,this.ys=r,this.c1s=m,this.c2s=S,this.c3s=w}}const w1=1;function xc(i){const n=i.nodeType===w1?i:i.parentElement;if(!n)return null;const{top:r,left:o}=n.getBoundingClientRect();return{x:o,y:r}}function Fi(i){return{x:i.clientX,y:i.clientY}}function _1(i){var n;return i.nodeName==="IMG"&&(S1()||!(!((n=document.documentElement)===null||n===void 0)&&n.contains(i)))}function E1(i,n,r,o){let s=i?n.width:r,l=i?n.height:o;return Ec()&&i&&(l/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:l}}function T1(i,n,r,o,s){const l=_1(n),d=xc(l?i:n),p={x:r.x-d.x,y:r.y-d.y},{offsetWidth:m,offsetHeight:S}=i,{anchorX:w,anchorY:O}=o,{dragPreviewWidth:y,dragPreviewHeight:E}=E1(l,n,m,S),_=()=>{let ue=new Tc([0,.5,1],[p.y,p.y/S*E,p.y+E-S]).interpolate(O);return Ec()&&l&&(ue+=(window.devicePixelRatio-1)*E),ue},I=()=>new Tc([0,.5,1],[p.x,p.x/m*y,p.x+y-m]).interpolate(w),{offsetX:C,offsetY:F}=s,U=C===0||C,V=F===0||F;return{x:U?C:I(),y:V?F:_()}}class x1{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var n;return!((n=this.globalContext)===null||n===void 0)&&n.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}constructor(n,r){this.ownerDocument=null,this.globalContext=n,this.optionsArgs=r}}function I1(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Ic(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){I1(i,s,r[s])})}return i}class O1{profile(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}teardown(){const n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(n,r,o){return this.sourcePreviewNodeOptions.set(n,o),this.sourcePreviewNodes.set(n,r),()=>{this.sourcePreviewNodes.delete(n),this.sourcePreviewNodeOptions.delete(n)}}connectDragSource(n,r,o){this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,o);const s=f=>this.handleDragStart(f,n),l=f=>this.handleSelectStart(f);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",s),r.addEventListener("selectstart",l),()=>{this.sourceNodes.delete(n),this.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",s),r.removeEventListener("selectstart",l),r.setAttribute("draggable","false")}}connectDropTarget(n,r){const o=f=>this.handleDragEnter(f,n),s=f=>this.handleDragOver(f,n),l=f=>this.handleDrop(f,n);return r.addEventListener("dragenter",o),r.addEventListener("dragover",s),r.addEventListener("drop",l),()=>{r.removeEventListener("dragenter",o),r.removeEventListener("dragover",s),r.removeEventListener("drop",l)}}addEventListeners(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Ic({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Ic({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const n=this.monitor.getItemType();return Object.keys(_c).some(r=>_c[r]===n)}beginDragNativeItem(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=b1(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(n){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var o;return(o=this.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(n,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(n,r){this.dropTargetIds.unshift(r)}constructor(n,r,o){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const l=this.sourceNodes.get(s);return l&&xc(l)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:l}=this;this.dragStartSourceIds=null;const f=Fi(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:f});const{dataTransfer:d}=s,p=Go(d);if(this.monitor.isDragging()){if(d&&typeof d.setDragImage=="function"){const S=this.monitor.getSourceId(),w=this.sourceNodes.get(S),O=this.sourcePreviewNodes.get(S)||w;if(O){const{anchorX:y,anchorY:E,offsetX:_,offsetY:I}=this.getCurrentSourcePreviewNodeOptions(),U=T1(w,O,f,{anchorX:y,anchorY:E},{offsetX:_,offsetY:I});d.setDragImage(O,U.x,U.y)}}try{d?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:m}=this.getCurrentSourcePreviewNodeOptions();m?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(p)this.beginDragNativeItem(p);else{if(d&&!d.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:d}=s,p=Go(d);p&&this.beginDragNativeItem(p,d)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:l}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=s.altKey,l.length>0&&this.actions.hover(l,{clientOffset:Fi(s)}),l.some(d=>this.monitor.canDropOnTarget(d))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:l}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=Fi(s),this.scheduleHover(l),(l||[]).some(d=>this.monitor.canDropOnTarget(d))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var l;s.preventDefault(),(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}else Go(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:l}=this;this.dropTargetIds=[],this.actions.hover(l,{clientOffset:Fi(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const l=s.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(s.preventDefault(),l.dragDrop()))},this.options=new x1(r,o),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.registry=n.getRegistry(),this.enterLeaveCounter=new m1(this.isNodeInDocument)}}const D1=function(n,r,o){return new O1(n,r,o)};function A1({layoutId:i,justBranch:n,isFullScreenView:r}){const o=Lt(i),s=()=>{console.log("closeAllTabs justBranch",n),o.removeAllTabs({branch:n})},l=async(f=!1)=>{r?o.setLayout(null):(o.setFullScreenLayoutByBranch(n),o.setFullScreenHideTitle(f))};return $.jsxs($.Fragment,{children:[$.jsxs(wi,{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(wi,{className:"just-menu-item",onClick:()=>l(!0),children:[$.jsx("div",{className:"just-icon",children:$.jsx(Vn,{icon:f1})}),$.jsx("div",{className:"just-title",children:r?"F11":"Full"}),$.jsx("div",{className:"just-icon"})]})]})}const Oc=Bt(A1);function C1({layoutId:i,isFullScreenView:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:l,getTabMenu:f}){const d=A.useRef(null),[p,m]=A.useState(null),S=Lt(i),w=I=>{S.removeWin({justId:I})},O=I=>{S.activeWin({justId:I})},y=(I,C)=>{S.moveWin({pos:"stack",justId:C.justId,branch:o,index:C.index??-1})},[{isOver:E},_]=Ga(()=>({accept:r,collect:I=>({isOver:I.isOver()}),drop(I,C){y(C.getItemType(),C.getItem())},hover(I,C){d.current&&(I.index=-1)}}),[s]);return A.useLayoutEffect(()=>{d.current&&_(d)},[_]),A.useEffect(()=>{if(d.current===null)return;function I(){if(d.current===null)return;const F=d.current.getBoundingClientRect()??null;m(F)}I();const C=new ResizeObserver(I);return C.observe(d.current),window.addEventListener("scroll",I,!0),()=>{C.disconnect(),window.removeEventListener("scroll",I,!0)}},[]),$.jsxs("div",{className:Et("just-win-title"),tabIndex:1,children:[$.jsx("div",{className:Et("just-title-list",{"is-over":E}),ref:d,children:s.tabs.map(I=>$.jsx(vc,{layoutId:i,isFullScreenView:n,dndAccept:r,rect:p,justId:I,justBranch:o,justStack:s,winInfo:l(I)},[...o,ge.toString(I)].join(",")))}),$.jsxs("div",{className:"just-title-menus",children:[$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:d1})}),children:s.tabs.map(I=>$.jsxs(wi,{className:Et("just-menu-item",{active:ge.isEquals(s.active,I)}),children:[$.jsx("div",{className:"just-icon",onClick:()=>O(I),children:l(I).getTabIcon(I,i)}),$.jsx("div",{className:"just-title",onClick:()=>O(I),children:S.getTabTitle(I)??I.title}),$.jsx("div",{className:"just-icon just-close",onClick:C=>{C.stopPropagation(),w(I)},children:$.jsx(Vn,{icon:gc})})]},ge.toString(I)))}),$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:c1})}),children:f?f(i,o,s,n):$.jsx(Oc,{layoutId:i,justBranch:o,justStack:s,isFullScreenView:n})})]})]})}const Dc=Bt(C1);function N1(i){const n=A.useRef(null),{layoutId:r,dndAccept:o,getWinInfo:s,justBranch:l,justStack:f}=i,[d,p]=A.useState(null),m=Lt(r),S=(y,E)=>{E.pos&&(E.pos==="stack"?m.moveWin({pos:E.pos,justId:E.justId,branch:l,index:E.index??-1}):m.moveWin({pos:E.pos,justId:E.justId,branch:l,direction:E.direction??"row"}))},[{isOver:w},O]=Ga(()=>({accept:o,collect:y=>({isOver:y.isOver()}),drop(y,E){n.current&&S(E.getItemType(),E.getItem())},hover(y,E){if(!n.current)return;const _=n.current.getBoundingClientRect(),I=E.getClientOffset(),C=(_.right-_.left)/2,F=(_.bottom-_.top)/2,U=I.x-_.left,V=I.y-_.top,B=U-C,ue=V-F,N=Math.abs(B*100/C),L=Math.abs(ue*100/F);if(N<60&&L<60){y.pos="stack";const j={top:_.top,left:_.left,width:_.width,height:_.height};p(j)}else{const j=N>L?"row":"column",Y=Math.sign(j==="row"?B:ue)>0?"second":"first";y.direction=j,y.pos=Y;const ae={top:Y==="second"&&j==="column"?_.top+_.height/2:_.top,left:Y==="second"&&j==="row"?_.left+_.width/2:_.left,width:j==="row"?_.width/2:_.width,height:j==="column"?_.height/2:_.height};p(ae)}}}),[f]);return A.useLayoutEffect(()=>{n.current&&O(n)},[O]),$.jsxs("div",{className:Et("just-win-body",{isOver:w,"last-active":ge.isEquals(f.active,m.lastActiveId)}),ref:n,children:[f.tabs.map(y=>$.jsx(A.Activity,{mode:ge.isEquals(f.active,y)?"visible":"hidden",children:s(y).getView(y,r)},ge.toString(y))),w&&d!=null&&$.jsx("div",{className:"just-overlay",style:{top:d.top,left:d.left,width:`${d.width}px`,height:`${d.height}px`}})]})}const Ac=Bt(N1);function P1({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}){const p=Lt(i),m=p.fullScreenHideTitle,S=r!==!0,w=()=>{l.active&&p.activeWin({justId:l.active})};return $.jsxs("div",{className:"just-win",onFocusCapture:w,tabIndex:1,children:[S&&!m&&$.jsx(Dc,{layoutId:i,isFullScreenView:n,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}),$.jsx(Ac,{layoutId:i,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f})]})}const Cc=Bt(P1);var Yo,Nc;function Jo(){if(Nc)return Yo;Nc=1;function i(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return Yo=i,Yo}var Vo,Pc;function L1(){if(Pc)return Vo;Pc=1;var i=typeof nn=="object"&&nn&&nn.Object===Object&&nn;return Vo=i,Vo}var Xo,Lc;function Mc(){if(Lc)return Xo;Lc=1;var i=L1(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=i||n||Function("return this")();return Xo=r,Xo}var Ko,kc;function M1(){if(kc)return Ko;kc=1;var i=Mc(),n=function(){return i.Date.now()};return Ko=n,Ko}var Zo,Fc;function k1(){if(Fc)return Zo;Fc=1;var i=/\s/;function n(r){for(var o=r.length;o--&&i.test(r.charAt(o)););return o}return Zo=n,Zo}var Qo,Rc;function F1(){if(Rc)return Qo;Rc=1;var i=k1(),n=/^\s+/;function r(o){return o&&o.slice(0,i(o)+1).replace(n,"")}return Qo=r,Qo}var es,Wc;function Bc(){if(Wc)return es;Wc=1;var i=Mc(),n=i.Symbol;return es=n,es}var ts,$c;function R1(){if($c)return ts;$c=1;var i=Bc(),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,s=i?i.toStringTag:void 0;function l(f){var d=r.call(f,s),p=f[s];try{f[s]=void 0;var m=!0}catch{}var S=o.call(f);return m&&(d?f[s]=p:delete f[s]),S}return ts=l,ts}var ns,Uc;function W1(){if(Uc)return ns;Uc=1;var i=Object.prototype,n=i.toString;function r(o){return n.call(o)}return ns=r,ns}var rs,Hc;function B1(){if(Hc)return rs;Hc=1;var i=Bc(),n=R1(),r=W1(),o="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function f(d){return d==null?d===void 0?s:o:l&&l in Object(d)?n(d):r(d)}return rs=f,rs}var is,zc;function $1(){if(zc)return is;zc=1;function i(n){return n!=null&&typeof n=="object"}return is=i,is}var as,jc;function U1(){if(jc)return as;jc=1;var i=B1(),n=$1(),r="[object Symbol]";function o(s){return typeof s=="symbol"||n(s)&&i(s)==r}return as=o,as}var os,qc;function Gc(){if(qc)return os;qc=1;var i=F1(),n=Jo(),r=U1(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;function p(m){if(typeof m=="number")return m;if(r(m))return o;if(n(m)){var S=typeof m.valueOf=="function"?m.valueOf():m;m=n(S)?S+"":S}if(typeof m!="string")return m===0?m:+m;m=i(m);var w=l.test(m);return w||f.test(m)?d(m.slice(2),w?2:8):s.test(m)?o:+m}return os=p,os}var ss,Yc;function H1(){if(Yc)return ss;Yc=1;var i=Jo(),n=M1(),r=Gc(),o="Expected a function",s=Math.max,l=Math.min;function f(d,p,m){var S,w,O,y,E,_,I=0,C=!1,F=!1,U=!0;if(typeof d!="function")throw new TypeError(o);p=r(p)||0,i(m)&&(C=!!m.leading,F="maxWait"in m,O=F?s(r(m.maxWait)||0,p):O,U="trailing"in m?!!m.trailing:U);function V(X){var We=S,Je=w;return S=w=void 0,I=X,y=d.apply(Je,We),y}function B(X){return I=X,E=setTimeout(L,p),C?V(X):y}function ue(X){var We=X-_,Je=X-I,Ve=p-We;return F?l(Ve,O-Je):Ve}function N(X){var We=X-_,Je=X-I;return _===void 0||We>=p||We<0||F&&Je>=O}function L(){var X=n();if(N(X))return j(X);E=setTimeout(L,ue(X))}function j(X){return E=void 0,U&&S?V(X):(S=w=void 0,y)}function ee(){E!==void 0&&clearTimeout(E),I=0,S=_=w=E=void 0}function Y(){return E===void 0?y:j(n())}function ae(){var X=n(),We=N(X);if(S=arguments,w=this,_=X,We){if(E===void 0)return B(_);if(F)return clearTimeout(E),E=setTimeout(L,p),V(_)}return E===void 0&&(E=setTimeout(L,p)),y}return ae.cancel=ee,ae.flush=Y,ae}return ss=f,ss}var us,Jc;function z1(){if(Jc)return us;Jc=1;var i=H1(),n=Jo(),r="Expected a function";function o(s,l,f){var d=!0,p=!0;if(typeof s!="function")throw new TypeError(r);return n(f)&&(d="leading"in f?!!f.leading:d,p="trailing"in f?!!f.trailing:p),i(s,l,{leading:d,maxWait:l,trailing:p})}return us=o,us}var j1=z1();const q1=br(j1);var ls,Vc;function G1(){if(Vc)return ls;Vc=1;function i(n,r,o){return n===n&&(o!==void 0&&(n=n<=o?n:o),r!==void 0&&(n=n>=r?n:r)),n}return ls=i,ls}var fs,Xc;function Y1(){if(Xc)return fs;Xc=1;var i=G1(),n=Gc();function r(o,s,l){return l===void 0&&(l=s,s=void 0),l!==void 0&&(l=n(l),l=l===l?l:0),s!==void 0&&(s=n(s),s=s===s?s:0),i(n(o),s,l)}return fs=r,fs}var J1=Y1();const cs=br(J1),V1=1e3/30;function X1({node:i,containerRef:n,onChange:r,onRelease:o}){const s=A.useRef(null),[l,f]=A.useState(!1),d=()=>{l||(s.current.ownerDocument.addEventListener("mousemove",w,!0),s.current.ownerDocument.addEventListener("mouseup",S,!0),f(!0))},p=()=>{s.current&&(s.current.ownerDocument.removeEventListener("mousemove",w,!0),s.current.ownerDocument.removeEventListener("mouseup",S,!0),f(!1))},m=E=>{E.button===0&&(E.preventDefault(),d())},S=E=>{if(p(),n==null)return;const _=O(E,i,n);_!==null&&o(_)},w=E=>{E.preventDefault(),n!=null&&y(E,i,n)},O=(E,_,I)=>{if(I.current==null)return null;const C=I.current.getBoundingClientRect(),F=_.direction==="row"?E.clientX:E.clientY,U=_.direction==="row"?C.left:C.top,V=_.direction==="row"?C.width:C.height,B=cs(F-U,0,V),ue=cs(V-B,0,V),N=cs(B*100/V,0,100);return _.type==="split-percentage"?{type:_.type,size:N}:_.type==="split-pixels"?_.primary==="first"?{type:"split-pixels",primary:"first",size:B}:{type:"split-pixels",primary:"second",size:ue}:null},y=q1((E,_,I)=>{if(I.current==null)return null;const C=O(E,_,I);C!==null&&r(C)},V1);return A.useEffect(()=>{}),$.jsx("div",{ref:s,className:Et("just-splitter"),onMouseDown:m})}const Kc=Bt(X1);function ds({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,node:s,justBranch:l,getWinInfo:f,getTabMenu:d}){const p=A.useRef(null),m=Lt(i),S=({size:O})=>{m.updateResize({branch:l,size:O})},w=(O,y)=>O.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&y===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return $.jsxs("div",{ref:p,className:Et("just-node"),children:[s?.type==="stack"&&$.jsx(Cc,{hideTitle:s.hideTitle??r,layoutId:i,isFullScreenView:n,dndAccept:s.dndAccept??o,justStack:s,justBranch:l,getWinInfo:f,getTabMenu:d}),(s?.type==="split-percentage"||s?.type==="split-pixels")&&$.jsxs("div",{className:Et(s.type,{"just-column":s.direction==="column","just-row":s.direction==="row"}),children:[$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="first"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("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:w(s,"first"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.first,justBranch:[...l,"first"],getWinInfo:f,getTabMenu:d})})}),!(s.type==="split-pixels"&&(s.noSplitter===!0||s.primaryHide===!0))&&$.jsx(Kc,{layoutId:i,node:s,justBranch:l,containerRef:p,onChange:S,onRelease:S}),$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="second"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("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:w(s,"second"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.second,justBranch:[...l,"second"],getWinInfo:f,getTabMenu:d})})})]},`JustNode-${l.join(",")}`)]})}const hs=Bt(ds);function K1({layoutId:i,getWinInfo:n,getTabMenu:r,initialValue:o}){const s=`${i}_FULLSCREEN`,l=Lt(i),f=Lt(s);return A.useEffect(()=>{f.layout===null&&(l.setFullScreenLayoutByBranch(null),l.setFullScreenHideTitle(!1))},[f.layout]),A.useEffect(()=>{l.setLayout(o),l.setFullScreenLayoutByBranch(null),f.setLayout(null)},[]),A.useEffect(()=>{const d=()=>{},p=async m=>{m.key==="Escape"?(console.log("esc"),l.setFullScreenLayoutByBranch(null)):m.key==="F11"&&(console.log("F11"),l.fullScreenLayout!==null&&l.setFullScreenLayoutByBranch(null)),m.altKey&&(m.key==="ArrowRight"?f.layout!==null?f.activeNextWin():l.activeNextWin():m.key==="ArrowLeft"&&(f.layout!==null?f.activePrevWin():l.activePrevWin()))};return window.addEventListener("keydown",p),document.addEventListener("fullscreenchange",d),()=>{window.removeEventListener("keydown",p),document.removeEventListener("fullscreenchange",d)}},[]),A.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",l.fullScreenLayout),f.setLayout(l.fullScreenLayout),l.lastActiveId&&f.activeWin({justId:l.lastActiveId})},[l.fullScreenLayout]),A.useEffect(()=>{f.setFullScreenHideTitle(l.fullScreenHideTitle)},[l.fullScreenHideTitle]),$.jsx(nv,{backend:D1,children:$.jsxs("div",{className:Et("just-layout"),children:[l.fullScreenLayout===null&&$.jsx(hs,{layoutId:i,isFullScreenView:!1,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:l.layout,justBranch:[],getWinInfo:n,getTabMenu:r}),l.fullScreenLayout!==null&&$.jsx(hs,{layoutId:s,isFullScreenView:!0,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:n,getTabMenu:r})]})})}const Z1=Bt(K1);he.JUST_LAYOUT_TYPES=Wt,he.JustDraggableTitle=vc,he.JustLayoutView=Z1,he.JustNodeView=hs,he.JustSplitter=Kc,he.JustTabMenu=Oc,he.JustTabTitle=pc,he.JustUtil=ge,he.JustWinBodyView=Ac,he.JustWinTitleView=Dc,he.JustWinView=Cc,he.justLayoutModule=kg,he.stableStringify=Pu,he.useJustLayoutStore=Lt,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})}));
|
|
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"})}));
|