@kangtae49/just-layout 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -64,7 +64,7 @@ __p += '`),ke&&(z+=`' +
64
64
  function print() { __p += __j.call(arguments, '') }
65
65
  `:`;
66
66
  `)+z+`return __p
67
- }`;var Ne=Ky(function(){return We(m,fe+"return "+z).apply(t,_)});if(Ne.source=z,zl(Ne))throw Ne;return Ne}function sR(i){return ze(i).toLowerCase()}function uR(i){return ze(i).toUpperCase()}function cR(i,a,u){if(i=ze(i),i&&(u||a===t))return ob(i);if(!i||!(a=un(a)))return i;var l=Yn(i),h=Yn(a),m=ab(l,h),_=sb(l,h)+1;return Xr(l,m,_).join("")}function fR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.slice(0,cb(i)+1);if(!i||!(a=un(a)))return i;var l=Yn(i),h=sb(l,Yn(a))+1;return Xr(l,0,h).join("")}function lR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.replace(Or,"");if(!i||!(a=un(a)))return i;var l=Yn(i),h=ab(l,Yn(a));return Xr(l,h).join("")}function dR(i,a){var u=we,l=ce;if(ot(a)){var h="separator"in a?a.separator:h;u="length"in a?xe(a.length):u,l="omission"in a?un(a.omission):l}i=ze(i);var m=i.length;if(eo(i)){var _=Yn(i);m=_.length}if(u>=m)return i;var E=u-to(l);if(E<1)return l;var D=_?Xr(_,0,E).join(""):i.slice(0,E);if(h===t)return D+l;if(_&&(E+=D.length-E),Hl(h)){if(i.slice(E).search(h)){var $,V=D;for(h.global||(h=sl(h.source,ze(Tm.exec(h))+"g")),h.lastIndex=0;$=h.exec(V);)var z=$.index;D=D.slice(0,z===t?E:z)}}else if(i.indexOf(un(h),E)!=E){var re=D.lastIndexOf(h);re>-1&&(D=D.slice(0,re))}return D+l}function hR(i){return i=ze(i),i&&X.test(i)?i.replace(K,WN):i}var pR=uo(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Yl=Xb("toUpperCase");function Jy(i,a,u){return i=ze(i),a=u?t:a,a===t?BN(i)?HN(i):xN(i):i.match(a)||[]}var Ky=De(function(i,a){try{return an(i,t,a)}catch(u){return zl(u)?u:new Oe(u)}}),vR=xr(function(i,a){return Nn(a,function(u){u=sr(u),Ar(i,u,Wl(i[u],i))}),i});function gR(i){var a=i==null?0:i.length,u=ve();return i=a?rt(i,function(l){if(typeof l[1]!="function")throw new Dn(c);return[u(l[0]),l[1]]}):[],De(function(l){for(var h=-1;++h<a;){var m=i[h];if(an(m[0],this,l))return an(m[1],this,l)}})}function mR(i){return WD(Pn(i,b))}function Jl(i){return function(){return i}}function bR(i,a){return i==null||i!==i?a:i}var yR=Qb(),_R=Qb(!0);function Ht(i){return i}function Kl(i){return Nb(typeof i=="function"?i:Pn(i,b))}function wR(i){return Cb(Pn(i,b))}function SR(i,a){return Pb(i,Pn(a,b))}var OR=De(function(i,a){return function(u){return ca(u,i,a)}}),ER=De(function(i,a){return function(u){return ca(i,u,a)}});function Xl(i,a,u){var l=Ot(a),h=Js(a,l);u==null&&!(ot(a)&&(h.length||!l.length))&&(u=a,a=i,i=this,h=Js(a,Ot(a)));var m=!(ot(u)&&"chain"in u)||!!u.chain,_=Dr(i);return Nn(h,function(E){var D=a[E];i[E]=D,_&&(i.prototype[E]=function(){var $=this.__chain__;if(m||$){var V=i(this.__wrapped__),z=V.__actions__=Wt(this.__actions__);return z.push({func:D,args:arguments,thisArg:i}),V.__chain__=$,V}return D.apply(i,Hr([this.value()],arguments))})}),i}function IR(){return Dt._===this&&(Dt._=XN),this}function Zl(){}function AR(i){return i=xe(i),De(function(a){return Mb(a,i)})}var TR=Nl(rt),xR=Nl(eb),NR=Nl(el);function Xy(i){return kl(i)?tl(sr(i)):oC(i)}function DR(i){return function(a){return i==null?t:Oi(i,a)}}var CR=ty(),PR=ty(!0);function Ql(){return[]}function ed(){return!1}function MR(){return{}}function RR(){return""}function LR(){return!0}function kR(i,a){if(i=xe(i),i<1||i>ue)return[];var u=Le,l=Mt(i,Le);a=ve(a),i-=Le;for(var h=il(l,a);++u<i;)a(u);return h}function BR(i){return Ie(i)?rt(i,sr):cn(i)?[i]:Wt(my(ze(i)))}function jR(i){var a=++JN;return ze(i)+a}var FR=tu(function(i,a){return i+a},0),$R=Dl("ceil"),VR=tu(function(i,a){return i/a},1),WR=Dl("floor");function UR(i){return i&&i.length?Ys(i,Ht,vl):t}function zR(i,a){return i&&i.length?Ys(i,ve(a,2),vl):t}function HR(i){return rb(i,Ht)}function qR(i,a){return rb(i,ve(a,2))}function GR(i){return i&&i.length?Ys(i,Ht,yl):t}function YR(i,a){return i&&i.length?Ys(i,ve(a,2),yl):t}var JR=tu(function(i,a){return i*a},1),KR=Dl("round"),XR=tu(function(i,a){return i-a},0);function ZR(i){return i&&i.length?rl(i,Ht):0}function QR(i,a){return i&&i.length?rl(i,ve(a,2)):0}return g.after=wM,g.ary=xy,g.assign=u2,g.assignIn=Wy,g.assignInWith=pu,g.assignWith=c2,g.at=f2,g.before=Ny,g.bind=Wl,g.bindAll=vR,g.bindKey=Dy,g.castArray=MM,g.chain=Iy,g.chunk=WC,g.compact=UC,g.concat=zC,g.cond=gR,g.conforms=mR,g.constant=Jl,g.countBy=ZP,g.create=l2,g.curry=Cy,g.curryRight=Py,g.debounce=My,g.defaults=d2,g.defaultsDeep=h2,g.defer=SM,g.delay=OM,g.difference=HC,g.differenceBy=qC,g.differenceWith=GC,g.drop=YC,g.dropRight=JC,g.dropRightWhile=KC,g.dropWhile=XC,g.fill=ZC,g.filter=eM,g.flatMap=rM,g.flatMapDeep=iM,g.flatMapDepth=oM,g.flatten=wy,g.flattenDeep=QC,g.flattenDepth=eP,g.flip=EM,g.flow=yR,g.flowRight=_R,g.fromPairs=tP,g.functions=_2,g.functionsIn=w2,g.groupBy=aM,g.initial=rP,g.intersection=iP,g.intersectionBy=oP,g.intersectionWith=aP,g.invert=O2,g.invertBy=E2,g.invokeMap=uM,g.iteratee=Kl,g.keyBy=cM,g.keys=Ot,g.keysIn=zt,g.map=uu,g.mapKeys=A2,g.mapValues=T2,g.matches=wR,g.matchesProperty=SR,g.memoize=fu,g.merge=x2,g.mergeWith=Uy,g.method=OR,g.methodOf=ER,g.mixin=Xl,g.negate=lu,g.nthArg=AR,g.omit=N2,g.omitBy=D2,g.once=IM,g.orderBy=fM,g.over=TR,g.overArgs=AM,g.overEvery=xR,g.overSome=NR,g.partial=Ul,g.partialRight=Ry,g.partition=lM,g.pick=C2,g.pickBy=zy,g.property=Xy,g.propertyOf=DR,g.pull=fP,g.pullAll=Oy,g.pullAllBy=lP,g.pullAllWith=dP,g.pullAt=hP,g.range=CR,g.rangeRight=PR,g.rearg=TM,g.reject=pM,g.remove=pP,g.rest=xM,g.reverse=$l,g.sampleSize=gM,g.set=M2,g.setWith=R2,g.shuffle=mM,g.slice=vP,g.sortBy=_M,g.sortedUniq=SP,g.sortedUniqBy=OP,g.split=rR,g.spread=NM,g.tail=EP,g.take=IP,g.takeRight=AP,g.takeRightWhile=TP,g.takeWhile=xP,g.tap=UP,g.throttle=DM,g.thru=su,g.toArray=Fy,g.toPairs=Hy,g.toPairsIn=qy,g.toPath=BR,g.toPlainObject=Vy,g.transform=L2,g.unary=CM,g.union=NP,g.unionBy=DP,g.unionWith=CP,g.uniq=PP,g.uniqBy=MP,g.uniqWith=RP,g.unset=k2,g.unzip=Vl,g.unzipWith=Ey,g.update=B2,g.updateWith=j2,g.values=lo,g.valuesIn=F2,g.without=LP,g.words=Jy,g.wrap=PM,g.xor=kP,g.xorBy=BP,g.xorWith=jP,g.zip=FP,g.zipObject=$P,g.zipObjectDeep=VP,g.zipWith=WP,g.entries=Hy,g.entriesIn=qy,g.extend=Wy,g.extendWith=pu,Xl(g,g),g.add=FR,g.attempt=Ky,g.camelCase=U2,g.capitalize=Gy,g.ceil=$R,g.clamp=$2,g.clone=RM,g.cloneDeep=kM,g.cloneDeepWith=BM,g.cloneWith=LM,g.conformsTo=jM,g.deburr=Yy,g.defaultTo=bR,g.divide=VR,g.endsWith=z2,g.eq=Kn,g.escape=H2,g.escapeRegExp=q2,g.every=QP,g.find=tM,g.findIndex=yy,g.findKey=p2,g.findLast=nM,g.findLastIndex=_y,g.findLastKey=v2,g.floor=WR,g.forEach=Ay,g.forEachRight=Ty,g.forIn=g2,g.forInRight=m2,g.forOwn=b2,g.forOwnRight=y2,g.get=ql,g.gt=FM,g.gte=$M,g.has=S2,g.hasIn=Gl,g.head=Sy,g.identity=Ht,g.includes=sM,g.indexOf=nP,g.inRange=V2,g.invoke=I2,g.isArguments=Ai,g.isArray=Ie,g.isArrayBuffer=VM,g.isArrayLike=Ut,g.isArrayLikeObject=lt,g.isBoolean=WM,g.isBuffer=Zr,g.isDate=UM,g.isElement=zM,g.isEmpty=HM,g.isEqual=qM,g.isEqualWith=GM,g.isError=zl,g.isFinite=YM,g.isFunction=Dr,g.isInteger=Ly,g.isLength=du,g.isMap=ky,g.isMatch=JM,g.isMatchWith=KM,g.isNaN=XM,g.isNative=ZM,g.isNil=e2,g.isNull=QM,g.isNumber=By,g.isObject=ot,g.isObjectLike=st,g.isPlainObject=va,g.isRegExp=Hl,g.isSafeInteger=t2,g.isSet=jy,g.isString=hu,g.isSymbol=cn,g.isTypedArray=fo,g.isUndefined=n2,g.isWeakMap=r2,g.isWeakSet=i2,g.join=sP,g.kebabCase=G2,g.last=Rn,g.lastIndexOf=uP,g.lowerCase=Y2,g.lowerFirst=J2,g.lt=o2,g.lte=a2,g.max=UR,g.maxBy=zR,g.mean=HR,g.meanBy=qR,g.min=GR,g.minBy=YR,g.stubArray=Ql,g.stubFalse=ed,g.stubObject=MR,g.stubString=RR,g.stubTrue=LR,g.multiply=JR,g.nth=cP,g.noConflict=IR,g.noop=Zl,g.now=cu,g.pad=K2,g.padEnd=X2,g.padStart=Z2,g.parseInt=Q2,g.random=W2,g.reduce=dM,g.reduceRight=hM,g.repeat=eR,g.replace=tR,g.result=P2,g.round=KR,g.runInContext=T,g.sample=vM,g.size=bM,g.snakeCase=nR,g.some=yM,g.sortedIndex=gP,g.sortedIndexBy=mP,g.sortedIndexOf=bP,g.sortedLastIndex=yP,g.sortedLastIndexBy=_P,g.sortedLastIndexOf=wP,g.startCase=iR,g.startsWith=oR,g.subtract=XR,g.sum=ZR,g.sumBy=QR,g.template=aR,g.times=kR,g.toFinite=Cr,g.toInteger=xe,g.toLength=$y,g.toLower=sR,g.toNumber=Ln,g.toSafeInteger=s2,g.toString=ze,g.toUpper=uR,g.trim=cR,g.trimEnd=fR,g.trimStart=lR,g.truncate=dR,g.unescape=hR,g.uniqueId=jR,g.upperCase=pR,g.upperFirst=Yl,g.each=Ay,g.eachRight=Ty,g.first=Sy,Xl(g,(function(){var i={};return or(g,function(a,u){Ue.call(g.prototype,u)||(i[u]=a)}),i})(),{chain:!1}),g.VERSION=r,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){g[i].placeholder=g}),Nn(["drop","take"],function(i,a){Re.prototype[i]=function(u){u=u===t?1:wt(xe(u),0);var l=this.__filtered__&&!a?new Re(this):this.clone();return l.__filtered__?l.__takeCount__=Mt(u,l.__takeCount__):l.__views__.push({size:Mt(u,Le),type:i+(l.__dir__<0?"Right":"")}),l},Re.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Nn(["filter","map","takeWhile"],function(i,a){var u=a+1,l=u==ct||u==ft;Re.prototype[i]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:ve(h,3),type:u}),m.__filtered__=m.__filtered__||l,m}}),Nn(["head","last"],function(i,a){var u="take"+(a?"Right":"");Re.prototype[i]=function(){return this[u](1).value()[0]}}),Nn(["initial","tail"],function(i,a){var u="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[u](1)}}),Re.prototype.compact=function(){return this.filter(Ht)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(u){return ca(u,i,a)})}),Re.prototype.reject=function(i){return this.filter(lu(ve(i)))},Re.prototype.slice=function(i,a){i=xe(i);var u=this;return u.__filtered__&&(i>0||a<0)?new Re(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==t&&(a=xe(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(Le)},or(Re.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),h=g[l?"take"+(a=="last"?"Right":""):a],m=l||/^find/.test(a);h&&(g.prototype[a]=function(){var _=this.__wrapped__,E=l?[1]:arguments,D=_ instanceof Re,$=E[0],V=D||Ie(_),z=function(Pe){var ke=h.apply(g,Hr([Pe],E));return l&&re?ke[0]:ke};V&&u&&typeof $=="function"&&$.length!=1&&(D=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,ge=m&&!re,Ne=D&&!fe;if(!m&&V){_=Ne?_:new Re(this);var me=i.apply(_,E);return me.__actions__.push({func:su,args:[z],thisArg:t}),new Cn(me,re)}return ge&&Ne?i.apply(this,E):(me=this.thru(z),ge?l?me.value()[0]:me.value():me)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ms[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);g.prototype[i]=function(){var h=arguments;if(l&&!this.__chain__){var m=this.value();return a.apply(Ie(m)?m:[],h)}return this[u](function(_){return a.apply(Ie(_)?_:[],h)})}}),or(Re.prototype,function(i,a){var u=g[a];if(u){var l=u.name+"";Ue.call(oo,l)||(oo[l]=[]),oo[l].push({name:a,func:u})}}),oo[eu(t,x).name]=[{name:"wrapper",func:t}],Re.prototype.clone=hD,Re.prototype.reverse=pD,Re.prototype.value=vD,g.prototype.at=zP,g.prototype.chain=HP,g.prototype.commit=qP,g.prototype.next=GP,g.prototype.plant=JP,g.prototype.reverse=KP,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=XP,g.prototype.first=g.prototype.head,na&&(g.prototype[na]=YP),g}),no=qN();bi?((bi.exports=no)._=no,Kf._=no):Dt._=no}).call(i0)})(Oo,Oo.exports)),Oo.exports}var xi=o0();function eh(n){return JSON.stringify(Bu(n))}function Bu(n){return Array.isArray(n)?n.map(Bu):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).sort((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>[e,Bu(t)])):n}class $e{static toString(e){const t=eh(e);if(t==null)throw new Error("buildWinId: stringify error");return t}static getParamString(e,t){return e.params?.[t]?.toString()}static getParam(e,t){return e.params?.[t]}static isEquals(e,t){return xi.isEqual(e,t)}static indexOf(e,t){return e.map($e.toString).indexOf($e.toString(t))}static includes(e,t){return e.map($e.toString).includes($e.toString(t))}static withoutDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o}}static replaceDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o,dupId:`${new Date().getTime()}`}}}var Ta={exports:{}},th;function a0(){return th||(th=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(L){return typeof L=="object"&&!("toString"in L)?Object.prototype.toString.call(L).slice(8,-1):L}var r=typeof process=="object"&&process.env.NODE_ENV==="production";function o(L,F){if(!L)throw r?new Error("Invariant failed"):new Error(F())}e.invariant=o;var s=Object.prototype.hasOwnProperty,c=Array.prototype.splice,f=Object.prototype.toString;function d(L){return f.call(L).slice(8,-1)}var p=Object.assign||(function(L,F){return v(F).forEach(function(ae){s.call(F,ae)&&(L[ae]=F[ae])}),L}),v=typeof Object.getOwnPropertySymbols=="function"?function(L){return Object.keys(L).concat(Object.getOwnPropertySymbols(L))}:function(L){return Object.keys(L)};function b(L){return Array.isArray(L)?p(L.constructor(L.length),L):d(L)==="Map"?new Map(L):d(L)==="Set"?new Set(L):L&&typeof L=="object"?p(Object.create(Object.getPrototypeOf(L)),L):L}var w=(function(){function L(){this.commands=p({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(F,ae){return F===ae},this.update.newContext=function(){return new L().update}}return Object.defineProperty(L.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(F){this.update.isEquals=F},enumerable:!0,configurable:!0}),L.prototype.extend=function(F,ae){this.commands[F]=ae},L.prototype.update=function(F,ae){var we=this,ce=typeof ae=="function"?{$apply:ae}:ae;Array.isArray(F)&&Array.isArray(ce)||o(!Array.isArray(ce),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."}),o(typeof ce=="object"&&ce!==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(we.commands).join(", ")+".")});var Se=F;return v(ce).forEach(function(he){if(s.call(we.commands,he)){var ct=F===Se;Se=we.commands[he](ce[he],Se,ce,F),ct&&we.isEquals(Se,F)&&(Se=F)}else{var ht=d(F)==="Map"?we.update(F.get(he),ce[he]):we.update(F[he],ce[he]),ft=d(Se)==="Map"?Se.get(he):Se[he];(!we.isEquals(ht,ft)||typeof ht>"u"&&!s.call(F,he))&&(Se===F&&(Se=b(F)),d(Se)==="Map"?Se.set(he,ht):Se[he]=ht)}}),Se},L})();e.Context=w;var y={$push:function(L,F,ae){return S(F,ae,"$push"),L.length?F.concat(L):F},$unshift:function(L,F,ae){return S(F,ae,"$unshift"),L.length?L.concat(F):F},$splice:function(L,F,ae,we){return x(F,ae),L.forEach(function(ce){k(ce),F===we&&ce.length&&(F=b(we)),c.apply(F,ce)}),F},$set:function(L,F,ae){return oe(ae),L},$toggle:function(L,F){A(L,"$toggle");var ae=L.length?b(F):F;return L.forEach(function(we){ae[we]=!F[we]}),ae},$unset:function(L,F,ae,we){return A(L,"$unset"),L.forEach(function(ce){Object.hasOwnProperty.call(F,ce)&&(F===we&&(F=b(we)),delete F[ce])}),F},$add:function(L,F,ae,we){return ye(F,"$add"),A(L,"$add"),d(F)==="Map"?L.forEach(function(ce){var Se=ce[0],he=ce[1];F===we&&F.get(Se)!==he&&(F=b(we)),F.set(Se,he)}):L.forEach(function(ce){F===we&&!F.has(ce)&&(F=b(we)),F.add(ce)}),F},$remove:function(L,F,ae,we){return ye(F,"$remove"),A(L,"$remove"),L.forEach(function(ce){F===we&&F.has(ce)&&(F=b(we)),F.delete(ce)}),F},$merge:function(L,F,ae,we){return q(F,L),v(L).forEach(function(ce){L[ce]!==F[ce]&&(F===we&&(F=b(we)),F[ce]=L[ce])}),F},$apply:function(L,F){return G(L),L(F)}},O=new w;e.isEquals=O.update.isEquals,e.extend=O.extend,e.default=O.update,e.default.default=n.exports=p(e.default,e);function S(L,F,ae){o(Array.isArray(L),function(){return"update(): expected target of "+t(ae)+" to be an array; got "+t(L)+"."}),A(F[ae],ae)}function A(L,F){o(Array.isArray(L),function(){return"update(): expected spec of "+t(F)+" to be an array; got "+t(L)+". Did you forget to wrap your parameter in an array?"})}function x(L,F){o(Array.isArray(L),function(){return"Expected $splice target to be an array; got "+t(L)}),k(F.$splice)}function k(L){o(Array.isArray(L),function(){return"update(): expected spec of $splice to be an array of arrays; got "+t(L)+". Did you forget to wrap your parameters in an array?"})}function G(L){o(typeof L=="function",function(){return"update(): expected spec of $apply to be a function; got "+t(L)+"."})}function oe(L){o(Object.keys(L).length===1,function(){return"Cannot have more than one key in an object with $set"})}function q(L,F){o(F&&typeof F=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+t(F)}),o(L&&typeof L=="object",function(){return"update(): $merge expects a target of type 'object'; got "+t(L)})}function ye(L,F){var ae=d(L);o(ae==="Map"||ae==="Set",function(){return"update(): "+t(F)+" expects a target of type Set or Map; got "+t(ae)})}})(Ta,Ta.exports)),Ta.exports}var s0=a0();const u0=po(s0);var c0=Object.getOwnPropertyDescriptor,f0=(n,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o};Fe.JustLayoutService=class{insertWinIdToStack=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch);if(r.type!=="stack")return e;const s=r.tabs,c=t.index>=0?xi.clamp(t.index,0,s.length):s.length;return this.updateNodeOfBranch(e,t.branch,{$set:{...r,type:"stack",tabs:[...s.slice(0,c),t.justId,...s.slice(c)],active:t.justId}})};insertWinIdToSplit=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch),o=t.pos==="first"?"second":"first";return this.updateNodeOfBranch(e,t.branch,{$set:{type:"split-percentage",direction:t.direction,[o]:{...r,name:void 0},[t.pos]:{type:"stack",tabs:[t.justId],active:t.justId,name:void 0},size:t.size??50,dndAccept:r.dndAccept,name:r.name,hideTitle:r.hideTitle}})};removeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);if(r?.type!=="stack")return e;const o=r.active?$e.indexOf(r.tabs,r.active):0,s=r.tabs.filter(f=>!$e.isEquals(f,t));let c;return r.active!==null&&$e.includes(s,r.active)?c=r.active:c=s.length>0&&r.active!==null?s[xi.clamp(o-1,0,s.length-1)]:null,this.updateNodeOfWinId(e,t,{$set:{...r,tabs:s,active:c}})};removeAllTabs=(e,t)=>{if(e==null)return null;const r=this.getNodeByBranch(e,t);return r==null||r.type!=="stack"?e:this.updateNodeOfBranch(e,t,{$set:{...r,tabs:[],active:null}})};activeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);return r==null?e:this.updateNodeOfWinId(e,t,{$set:{...r,active:t}})};getActiveWinIds=e=>{const t=(r,o)=>{if(r===null)return o;if(r.type==="stack")return r.active!==null?[...o,r.active]:o;{const s=t(r.first,o);return t(r.second,s)}};return t(e,[])};removeEmpty=e=>{if(e==null)return e;const t=this.findEmptyBranch(e,null,[]);if(t===null)return e;if(t.length===0)return null;const r=t[t.length-1],o=t.slice(0,-1),s=r==="first"?"second":"first",c=this.getNodeByBranch(e,o),f=this.getNodeByBranch(e,[...o,s]);return this.updateNodeOfBranch(e,o,{$set:{...f,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack"){const o=t!=null&&t.type!="stack"&&(!!t.first.name||!!t.second.name);if(e.tabs.length===0&&!o)return r}else{const o=this.findEmptyBranch(e.first,e,[...r,"first"]);if(o!=null)return o;const s=this.findEmptyBranch(e.second,e,[...r,"second"]);if(s!=null)return s}return null};moveWinIdToStack=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToStack(r,t)};moveWinIdToSplit=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToSplit(r,t)};getBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?r:null;{const o=this.getBranch(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getBranch(e.second,t,[...r,"second"]);return s??null}};getBranchByWinId=(e,t)=>this.getBranch(e,t,[]);getNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;if(e.name==t)return{node:e,branch:[...r]};if(e.type!="stack"){const o=this.getNodeInfoByNodeName(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getNodeInfoByNodeName(e.second,t,[...r,"second"]);if(s!=null)return s}return null};getTabNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;const o=this.getNodeInfoByNodeName(e,t,r);if(o==null)return null;if(o.node.type==="stack")return o;{const s=this.getTabNodeInfo(o.node,[]);if(s!=null)return{node:s.node,branch:[...o.branch,...s.branch]}}return null};getNodeByWinId=(e,t)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?e:null;{const r=this.getNodeByWinId(e.first,t);if(r!=null)return r;const o=this.getNodeByWinId(e.second,t);return o??null}};getTabBranch=(e,t)=>{if(e===null)return null;if(e.type==="stack")return t;{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabBranch(e[r],[...t,r]);if(o!=null)return o}return null};getTabNodeInfo=(e,t)=>{if(e===null)return null;if(e.type==="stack")return{node:e,branch:t};{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabNodeInfo(e[r],[...t,r]);if(o!=null)return o}return null};addTabWin=(e,t,r,o)=>{if(e===null)return null;const s=this.getNodeByBranch(e,t);if(s.type!=="stack")return e;const c=o<0?s.tabs.length:xi.clamp(o,0,s.tabs.length);return this.updateNodeOfBranch(e,t,{$merge:{tabs:[...s.tabs.slice(0,c),r,...s.tabs.slice(c)],active:r}})};queryWinIdsByViewId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack")return[...r,...e.tabs.filter(o=>o.viewId===t)];{const o=this.queryWinIdsByViewId(e.first,t,r);return this.queryWinIdsByViewId(e.second,t,[...r,...o])}};queryDupWinIdsByWinId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack"){const o=$e.withoutDup(t),s=e.tabs.filter(c=>{const f=$e.withoutDup(c);return $e.isEquals(o,f)});return[...r,...s]}else{const o=this.queryDupWinIdsByWinId(e.first,t,r);return this.queryDupWinIdsByWinId(e.second,t,[...r,...o])}};queryWinIdsByStack=(e,t)=>{if(e===null)return[];const r=this.getNodeByBranch(e,t);return r.type!=="stack"?[]:r.tabs};getNodeByBranch=(e,t)=>t.reduce((r,o)=>r?.[o],e);updateNodeOfBranch=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,r);return this.updateNode(e,o)};updateNodeOfWinId=(e,t,r)=>{const o=this.getBranchByWinId(e,t);if(o==null)return e;const s=this.buildSpecFromUpdateSpec(o,r);return this.updateNode(e,s)};hasWinId=(e,t)=>this.getNodeByWinId(e,t)!=null;updateNode=(e,t)=>e==null?null:u0(e,t);buildSpecFromUpdateSpec=(e,t)=>e.length>0?xi.set({},e,t):t;getNodeAtBranch=(e,t)=>t.length>0?xi.get(e,t,null):e;getBranchRightTop=e=>{if(e==null)return[];let t=e;const r=[];for(;t.type!=="stack";)t.direction==="row"?(r.push("second"),t=t.second):t.direction==="column"&&(r.push("first"),t=t.first);return r};updateSplitSize=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,{$merge:{size:r}});return this.updateNode(e,o)}},Fe.JustLayoutService=f0([gd()],Fe.JustLayoutService);var l0={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},d0=process.env.NODE_ENV!=="production"?l0:{};function ie(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=typeof n=="string"?n:d0[n];throw typeof o=="function"&&(o=o.apply(null,t)),new Error("[MobX] "+o)}throw new Error(typeof n=="number"?"[MobX] minified error nr: "+n+(t.length?" "+t.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+n)}var h0={};function xa(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:h0}var nh=Object.assign,Na=Object.getOwnPropertyDescriptor,Qn=Object.defineProperty,Eo=Object.prototype,Da=[];Object.freeze(Da);var rh={};Object.freeze(rh);var p0=typeof Proxy<"u",v0=Object.toString();function ih(){p0||ie(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Io(n){process.env.NODE_ENV!=="production"&&H.verifyProxies&&ie("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+n)}function Bn(){return++H.mobxGuid}function ju(n){var e=!1;return function(){if(!e)return e=!0,n.apply(this,arguments)}}var Ni=function(){};function gt(n){return typeof n=="function"}function oi(n){var e=typeof n;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Ca(n){return n!==null&&typeof n=="object"}function Jt(n){if(!Ca(n))return!1;var e=Object.getPrototypeOf(n);if(e==null)return!0;var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t.toString()===v0}function oh(n){var e=n?.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Ao(n,e,t){Qn(n,e,{enumerable:!1,writable:!0,configurable:!0,value:t})}function ah(n,e,t){Qn(n,e,{enumerable:!1,writable:!1,configurable:!0,value:t})}function kr(n,e){var t="isMobX"+n;return e.prototype[t]=!0,function(r){return Ca(r)&&r[t]===!0}}function Di(n){return n!=null&&Object.prototype.toString.call(n)==="[object Map]"}function g0(n){var e=Object.getPrototypeOf(n),t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);return r===null}function cr(n){return n!=null&&Object.prototype.toString.call(n)==="[object Set]"}var sh=typeof Object.getOwnPropertySymbols<"u";function m0(n){var e=Object.keys(n);if(!sh)return e;var t=Object.getOwnPropertySymbols(n);return t.length?[].concat(e,t.filter(function(r){return Eo.propertyIsEnumerable.call(n,r)})):e}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:sh?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames;function Fu(n){return typeof n=="string"?n:typeof n=="symbol"?n.toString():new String(n).toString()}function uh(n){return n===null?null:typeof n=="object"?""+n:n}function vn(n,e){return Eo.hasOwnProperty.call(n,e)}var b0=Object.getOwnPropertyDescriptors||function(e){var t={};return Ci(e).forEach(function(r){t[r]=Na(e,r)}),t};function Kt(n,e){return!!(n&e)}function Xt(n,e,t){return t?n|=e:n&=~e,n}function ch(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function y0(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,w0(r.key),r)}}function Pi(n,e,t){return e&&y0(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Mi(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=S0(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
67
+ }`;var Ne=Ky(function(){return We(m,fe+"return "+z).apply(t,_)});if(Ne.source=z,zl(Ne))throw Ne;return Ne}function sR(i){return ze(i).toLowerCase()}function uR(i){return ze(i).toUpperCase()}function cR(i,a,u){if(i=ze(i),i&&(u||a===t))return ob(i);if(!i||!(a=un(a)))return i;var l=Yn(i),h=Yn(a),m=ab(l,h),_=sb(l,h)+1;return Xr(l,m,_).join("")}function fR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.slice(0,cb(i)+1);if(!i||!(a=un(a)))return i;var l=Yn(i),h=sb(l,Yn(a))+1;return Xr(l,0,h).join("")}function lR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.replace(Or,"");if(!i||!(a=un(a)))return i;var l=Yn(i),h=ab(l,Yn(a));return Xr(l,h).join("")}function dR(i,a){var u=we,l=ce;if(ot(a)){var h="separator"in a?a.separator:h;u="length"in a?xe(a.length):u,l="omission"in a?un(a.omission):l}i=ze(i);var m=i.length;if(eo(i)){var _=Yn(i);m=_.length}if(u>=m)return i;var E=u-to(l);if(E<1)return l;var D=_?Xr(_,0,E).join(""):i.slice(0,E);if(h===t)return D+l;if(_&&(E+=D.length-E),Hl(h)){if(i.slice(E).search(h)){var $,V=D;for(h.global||(h=sl(h.source,ze(Tm.exec(h))+"g")),h.lastIndex=0;$=h.exec(V);)var z=$.index;D=D.slice(0,z===t?E:z)}}else if(i.indexOf(un(h),E)!=E){var re=D.lastIndexOf(h);re>-1&&(D=D.slice(0,re))}return D+l}function hR(i){return i=ze(i),i&&X.test(i)?i.replace(K,WN):i}var pR=uo(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Yl=Xb("toUpperCase");function Jy(i,a,u){return i=ze(i),a=u?t:a,a===t?BN(i)?HN(i):xN(i):i.match(a)||[]}var Ky=De(function(i,a){try{return an(i,t,a)}catch(u){return zl(u)?u:new Oe(u)}}),vR=xr(function(i,a){return Nn(a,function(u){u=sr(u),Ar(i,u,Wl(i[u],i))}),i});function gR(i){var a=i==null?0:i.length,u=ve();return i=a?rt(i,function(l){if(typeof l[1]!="function")throw new Dn(c);return[u(l[0]),l[1]]}):[],De(function(l){for(var h=-1;++h<a;){var m=i[h];if(an(m[0],this,l))return an(m[1],this,l)}})}function mR(i){return WD(Pn(i,b))}function Jl(i){return function(){return i}}function bR(i,a){return i==null||i!==i?a:i}var yR=Qb(),_R=Qb(!0);function Ht(i){return i}function Kl(i){return Nb(typeof i=="function"?i:Pn(i,b))}function wR(i){return Cb(Pn(i,b))}function SR(i,a){return Pb(i,Pn(a,b))}var OR=De(function(i,a){return function(u){return ca(u,i,a)}}),ER=De(function(i,a){return function(u){return ca(i,u,a)}});function Xl(i,a,u){var l=Ot(a),h=Js(a,l);u==null&&!(ot(a)&&(h.length||!l.length))&&(u=a,a=i,i=this,h=Js(a,Ot(a)));var m=!(ot(u)&&"chain"in u)||!!u.chain,_=Dr(i);return Nn(h,function(E){var D=a[E];i[E]=D,_&&(i.prototype[E]=function(){var $=this.__chain__;if(m||$){var V=i(this.__wrapped__),z=V.__actions__=Wt(this.__actions__);return z.push({func:D,args:arguments,thisArg:i}),V.__chain__=$,V}return D.apply(i,Hr([this.value()],arguments))})}),i}function IR(){return Dt._===this&&(Dt._=XN),this}function Zl(){}function AR(i){return i=xe(i),De(function(a){return Mb(a,i)})}var TR=Nl(rt),xR=Nl(eb),NR=Nl(el);function Xy(i){return kl(i)?tl(sr(i)):oC(i)}function DR(i){return function(a){return i==null?t:Oi(i,a)}}var CR=ty(),PR=ty(!0);function Ql(){return[]}function ed(){return!1}function MR(){return{}}function RR(){return""}function LR(){return!0}function kR(i,a){if(i=xe(i),i<1||i>ue)return[];var u=Le,l=Mt(i,Le);a=ve(a),i-=Le;for(var h=il(l,a);++u<i;)a(u);return h}function BR(i){return Ie(i)?rt(i,sr):cn(i)?[i]:Wt(my(ze(i)))}function jR(i){var a=++JN;return ze(i)+a}var FR=tu(function(i,a){return i+a},0),$R=Dl("ceil"),VR=tu(function(i,a){return i/a},1),WR=Dl("floor");function UR(i){return i&&i.length?Ys(i,Ht,vl):t}function zR(i,a){return i&&i.length?Ys(i,ve(a,2),vl):t}function HR(i){return rb(i,Ht)}function qR(i,a){return rb(i,ve(a,2))}function GR(i){return i&&i.length?Ys(i,Ht,yl):t}function YR(i,a){return i&&i.length?Ys(i,ve(a,2),yl):t}var JR=tu(function(i,a){return i*a},1),KR=Dl("round"),XR=tu(function(i,a){return i-a},0);function ZR(i){return i&&i.length?rl(i,Ht):0}function QR(i,a){return i&&i.length?rl(i,ve(a,2)):0}return g.after=wM,g.ary=xy,g.assign=u2,g.assignIn=Wy,g.assignInWith=pu,g.assignWith=c2,g.at=f2,g.before=Ny,g.bind=Wl,g.bindAll=vR,g.bindKey=Dy,g.castArray=MM,g.chain=Iy,g.chunk=WC,g.compact=UC,g.concat=zC,g.cond=gR,g.conforms=mR,g.constant=Jl,g.countBy=ZP,g.create=l2,g.curry=Cy,g.curryRight=Py,g.debounce=My,g.defaults=d2,g.defaultsDeep=h2,g.defer=SM,g.delay=OM,g.difference=HC,g.differenceBy=qC,g.differenceWith=GC,g.drop=YC,g.dropRight=JC,g.dropRightWhile=KC,g.dropWhile=XC,g.fill=ZC,g.filter=eM,g.flatMap=rM,g.flatMapDeep=iM,g.flatMapDepth=oM,g.flatten=wy,g.flattenDeep=QC,g.flattenDepth=eP,g.flip=EM,g.flow=yR,g.flowRight=_R,g.fromPairs=tP,g.functions=_2,g.functionsIn=w2,g.groupBy=aM,g.initial=rP,g.intersection=iP,g.intersectionBy=oP,g.intersectionWith=aP,g.invert=O2,g.invertBy=E2,g.invokeMap=uM,g.iteratee=Kl,g.keyBy=cM,g.keys=Ot,g.keysIn=zt,g.map=uu,g.mapKeys=A2,g.mapValues=T2,g.matches=wR,g.matchesProperty=SR,g.memoize=fu,g.merge=x2,g.mergeWith=Uy,g.method=OR,g.methodOf=ER,g.mixin=Xl,g.negate=lu,g.nthArg=AR,g.omit=N2,g.omitBy=D2,g.once=IM,g.orderBy=fM,g.over=TR,g.overArgs=AM,g.overEvery=xR,g.overSome=NR,g.partial=Ul,g.partialRight=Ry,g.partition=lM,g.pick=C2,g.pickBy=zy,g.property=Xy,g.propertyOf=DR,g.pull=fP,g.pullAll=Oy,g.pullAllBy=lP,g.pullAllWith=dP,g.pullAt=hP,g.range=CR,g.rangeRight=PR,g.rearg=TM,g.reject=pM,g.remove=pP,g.rest=xM,g.reverse=$l,g.sampleSize=gM,g.set=M2,g.setWith=R2,g.shuffle=mM,g.slice=vP,g.sortBy=_M,g.sortedUniq=SP,g.sortedUniqBy=OP,g.split=rR,g.spread=NM,g.tail=EP,g.take=IP,g.takeRight=AP,g.takeRightWhile=TP,g.takeWhile=xP,g.tap=UP,g.throttle=DM,g.thru=su,g.toArray=Fy,g.toPairs=Hy,g.toPairsIn=qy,g.toPath=BR,g.toPlainObject=Vy,g.transform=L2,g.unary=CM,g.union=NP,g.unionBy=DP,g.unionWith=CP,g.uniq=PP,g.uniqBy=MP,g.uniqWith=RP,g.unset=k2,g.unzip=Vl,g.unzipWith=Ey,g.update=B2,g.updateWith=j2,g.values=lo,g.valuesIn=F2,g.without=LP,g.words=Jy,g.wrap=PM,g.xor=kP,g.xorBy=BP,g.xorWith=jP,g.zip=FP,g.zipObject=$P,g.zipObjectDeep=VP,g.zipWith=WP,g.entries=Hy,g.entriesIn=qy,g.extend=Wy,g.extendWith=pu,Xl(g,g),g.add=FR,g.attempt=Ky,g.camelCase=U2,g.capitalize=Gy,g.ceil=$R,g.clamp=$2,g.clone=RM,g.cloneDeep=kM,g.cloneDeepWith=BM,g.cloneWith=LM,g.conformsTo=jM,g.deburr=Yy,g.defaultTo=bR,g.divide=VR,g.endsWith=z2,g.eq=Kn,g.escape=H2,g.escapeRegExp=q2,g.every=QP,g.find=tM,g.findIndex=yy,g.findKey=p2,g.findLast=nM,g.findLastIndex=_y,g.findLastKey=v2,g.floor=WR,g.forEach=Ay,g.forEachRight=Ty,g.forIn=g2,g.forInRight=m2,g.forOwn=b2,g.forOwnRight=y2,g.get=ql,g.gt=FM,g.gte=$M,g.has=S2,g.hasIn=Gl,g.head=Sy,g.identity=Ht,g.includes=sM,g.indexOf=nP,g.inRange=V2,g.invoke=I2,g.isArguments=Ai,g.isArray=Ie,g.isArrayBuffer=VM,g.isArrayLike=Ut,g.isArrayLikeObject=lt,g.isBoolean=WM,g.isBuffer=Zr,g.isDate=UM,g.isElement=zM,g.isEmpty=HM,g.isEqual=qM,g.isEqualWith=GM,g.isError=zl,g.isFinite=YM,g.isFunction=Dr,g.isInteger=Ly,g.isLength=du,g.isMap=ky,g.isMatch=JM,g.isMatchWith=KM,g.isNaN=XM,g.isNative=ZM,g.isNil=e2,g.isNull=QM,g.isNumber=By,g.isObject=ot,g.isObjectLike=st,g.isPlainObject=va,g.isRegExp=Hl,g.isSafeInteger=t2,g.isSet=jy,g.isString=hu,g.isSymbol=cn,g.isTypedArray=fo,g.isUndefined=n2,g.isWeakMap=r2,g.isWeakSet=i2,g.join=sP,g.kebabCase=G2,g.last=Rn,g.lastIndexOf=uP,g.lowerCase=Y2,g.lowerFirst=J2,g.lt=o2,g.lte=a2,g.max=UR,g.maxBy=zR,g.mean=HR,g.meanBy=qR,g.min=GR,g.minBy=YR,g.stubArray=Ql,g.stubFalse=ed,g.stubObject=MR,g.stubString=RR,g.stubTrue=LR,g.multiply=JR,g.nth=cP,g.noConflict=IR,g.noop=Zl,g.now=cu,g.pad=K2,g.padEnd=X2,g.padStart=Z2,g.parseInt=Q2,g.random=W2,g.reduce=dM,g.reduceRight=hM,g.repeat=eR,g.replace=tR,g.result=P2,g.round=KR,g.runInContext=T,g.sample=vM,g.size=bM,g.snakeCase=nR,g.some=yM,g.sortedIndex=gP,g.sortedIndexBy=mP,g.sortedIndexOf=bP,g.sortedLastIndex=yP,g.sortedLastIndexBy=_P,g.sortedLastIndexOf=wP,g.startCase=iR,g.startsWith=oR,g.subtract=XR,g.sum=ZR,g.sumBy=QR,g.template=aR,g.times=kR,g.toFinite=Cr,g.toInteger=xe,g.toLength=$y,g.toLower=sR,g.toNumber=Ln,g.toSafeInteger=s2,g.toString=ze,g.toUpper=uR,g.trim=cR,g.trimEnd=fR,g.trimStart=lR,g.truncate=dR,g.unescape=hR,g.uniqueId=jR,g.upperCase=pR,g.upperFirst=Yl,g.each=Ay,g.eachRight=Ty,g.first=Sy,Xl(g,(function(){var i={};return or(g,function(a,u){Ue.call(g.prototype,u)||(i[u]=a)}),i})(),{chain:!1}),g.VERSION=r,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){g[i].placeholder=g}),Nn(["drop","take"],function(i,a){Re.prototype[i]=function(u){u=u===t?1:wt(xe(u),0);var l=this.__filtered__&&!a?new Re(this):this.clone();return l.__filtered__?l.__takeCount__=Mt(u,l.__takeCount__):l.__views__.push({size:Mt(u,Le),type:i+(l.__dir__<0?"Right":"")}),l},Re.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Nn(["filter","map","takeWhile"],function(i,a){var u=a+1,l=u==ct||u==ft;Re.prototype[i]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:ve(h,3),type:u}),m.__filtered__=m.__filtered__||l,m}}),Nn(["head","last"],function(i,a){var u="take"+(a?"Right":"");Re.prototype[i]=function(){return this[u](1).value()[0]}}),Nn(["initial","tail"],function(i,a){var u="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[u](1)}}),Re.prototype.compact=function(){return this.filter(Ht)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(u){return ca(u,i,a)})}),Re.prototype.reject=function(i){return this.filter(lu(ve(i)))},Re.prototype.slice=function(i,a){i=xe(i);var u=this;return u.__filtered__&&(i>0||a<0)?new Re(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==t&&(a=xe(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(Le)},or(Re.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),h=g[l?"take"+(a=="last"?"Right":""):a],m=l||/^find/.test(a);h&&(g.prototype[a]=function(){var _=this.__wrapped__,E=l?[1]:arguments,D=_ instanceof Re,$=E[0],V=D||Ie(_),z=function(Pe){var ke=h.apply(g,Hr([Pe],E));return l&&re?ke[0]:ke};V&&u&&typeof $=="function"&&$.length!=1&&(D=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,ge=m&&!re,Ne=D&&!fe;if(!m&&V){_=Ne?_:new Re(this);var me=i.apply(_,E);return me.__actions__.push({func:su,args:[z],thisArg:t}),new Cn(me,re)}return ge&&Ne?i.apply(this,E):(me=this.thru(z),ge?l?me.value()[0]:me.value():me)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ms[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);g.prototype[i]=function(){var h=arguments;if(l&&!this.__chain__){var m=this.value();return a.apply(Ie(m)?m:[],h)}return this[u](function(_){return a.apply(Ie(_)?_:[],h)})}}),or(Re.prototype,function(i,a){var u=g[a];if(u){var l=u.name+"";Ue.call(oo,l)||(oo[l]=[]),oo[l].push({name:a,func:u})}}),oo[eu(t,x).name]=[{name:"wrapper",func:t}],Re.prototype.clone=hD,Re.prototype.reverse=pD,Re.prototype.value=vD,g.prototype.at=zP,g.prototype.chain=HP,g.prototype.commit=qP,g.prototype.next=GP,g.prototype.plant=JP,g.prototype.reverse=KP,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=XP,g.prototype.first=g.prototype.head,na&&(g.prototype[na]=YP),g}),no=qN();bi?((bi.exports=no)._=no,Kf._=no):Dt._=no}).call(i0)})(Oo,Oo.exports)),Oo.exports}var xi=o0();function eh(n){return JSON.stringify(Bu(n))}function Bu(n){return Array.isArray(n)?n.map(Bu):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).sort((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>[e,Bu(t)])):n}class $e{static toString(e){const t=eh(e);if(t==null)throw new Error("buildWinId: stringify error");return t}static getParamString(e,t){return e.params?.[t]?.toString()}static getParam(e,t){return e.params?.[t]}static isEquals(e,t){return xi.isEqual(e,t)}static indexOf(e,t){return e.map($e.toString).indexOf($e.toString(t))}static includes(e,t){return e.map($e.toString).includes($e.toString(t))}static withoutDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o}}static replaceDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o,dupId:`${new Date().getTime()}`}}}var Ta={exports:{}},th;function a0(){return th||(th=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(L){return typeof L=="object"&&!("toString"in L)?Object.prototype.toString.call(L).slice(8,-1):L}var r=typeof process=="object"&&process.env.NODE_ENV==="production";function o(L,F){if(!L)throw r?new Error("Invariant failed"):new Error(F())}e.invariant=o;var s=Object.prototype.hasOwnProperty,c=Array.prototype.splice,f=Object.prototype.toString;function d(L){return f.call(L).slice(8,-1)}var p=Object.assign||(function(L,F){return v(F).forEach(function(ae){s.call(F,ae)&&(L[ae]=F[ae])}),L}),v=typeof Object.getOwnPropertySymbols=="function"?function(L){return Object.keys(L).concat(Object.getOwnPropertySymbols(L))}:function(L){return Object.keys(L)};function b(L){return Array.isArray(L)?p(L.constructor(L.length),L):d(L)==="Map"?new Map(L):d(L)==="Set"?new Set(L):L&&typeof L=="object"?p(Object.create(Object.getPrototypeOf(L)),L):L}var w=(function(){function L(){this.commands=p({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(F,ae){return F===ae},this.update.newContext=function(){return new L().update}}return Object.defineProperty(L.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(F){this.update.isEquals=F},enumerable:!0,configurable:!0}),L.prototype.extend=function(F,ae){this.commands[F]=ae},L.prototype.update=function(F,ae){var we=this,ce=typeof ae=="function"?{$apply:ae}:ae;Array.isArray(F)&&Array.isArray(ce)||o(!Array.isArray(ce),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."}),o(typeof ce=="object"&&ce!==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(we.commands).join(", ")+".")});var Se=F;return v(ce).forEach(function(he){if(s.call(we.commands,he)){var ct=F===Se;Se=we.commands[he](ce[he],Se,ce,F),ct&&we.isEquals(Se,F)&&(Se=F)}else{var ht=d(F)==="Map"?we.update(F.get(he),ce[he]):we.update(F[he],ce[he]),ft=d(Se)==="Map"?Se.get(he):Se[he];(!we.isEquals(ht,ft)||typeof ht>"u"&&!s.call(F,he))&&(Se===F&&(Se=b(F)),d(Se)==="Map"?Se.set(he,ht):Se[he]=ht)}}),Se},L})();e.Context=w;var y={$push:function(L,F,ae){return S(F,ae,"$push"),L.length?F.concat(L):F},$unshift:function(L,F,ae){return S(F,ae,"$unshift"),L.length?L.concat(F):F},$splice:function(L,F,ae,we){return x(F,ae),L.forEach(function(ce){k(ce),F===we&&ce.length&&(F=b(we)),c.apply(F,ce)}),F},$set:function(L,F,ae){return oe(ae),L},$toggle:function(L,F){A(L,"$toggle");var ae=L.length?b(F):F;return L.forEach(function(we){ae[we]=!F[we]}),ae},$unset:function(L,F,ae,we){return A(L,"$unset"),L.forEach(function(ce){Object.hasOwnProperty.call(F,ce)&&(F===we&&(F=b(we)),delete F[ce])}),F},$add:function(L,F,ae,we){return ye(F,"$add"),A(L,"$add"),d(F)==="Map"?L.forEach(function(ce){var Se=ce[0],he=ce[1];F===we&&F.get(Se)!==he&&(F=b(we)),F.set(Se,he)}):L.forEach(function(ce){F===we&&!F.has(ce)&&(F=b(we)),F.add(ce)}),F},$remove:function(L,F,ae,we){return ye(F,"$remove"),A(L,"$remove"),L.forEach(function(ce){F===we&&F.has(ce)&&(F=b(we)),F.delete(ce)}),F},$merge:function(L,F,ae,we){return q(F,L),v(L).forEach(function(ce){L[ce]!==F[ce]&&(F===we&&(F=b(we)),F[ce]=L[ce])}),F},$apply:function(L,F){return G(L),L(F)}},O=new w;e.isEquals=O.update.isEquals,e.extend=O.extend,e.default=O.update,e.default.default=n.exports=p(e.default,e);function S(L,F,ae){o(Array.isArray(L),function(){return"update(): expected target of "+t(ae)+" to be an array; got "+t(L)+"."}),A(F[ae],ae)}function A(L,F){o(Array.isArray(L),function(){return"update(): expected spec of "+t(F)+" to be an array; got "+t(L)+". Did you forget to wrap your parameter in an array?"})}function x(L,F){o(Array.isArray(L),function(){return"Expected $splice target to be an array; got "+t(L)}),k(F.$splice)}function k(L){o(Array.isArray(L),function(){return"update(): expected spec of $splice to be an array of arrays; got "+t(L)+". Did you forget to wrap your parameters in an array?"})}function G(L){o(typeof L=="function",function(){return"update(): expected spec of $apply to be a function; got "+t(L)+"."})}function oe(L){o(Object.keys(L).length===1,function(){return"Cannot have more than one key in an object with $set"})}function q(L,F){o(F&&typeof F=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+t(F)}),o(L&&typeof L=="object",function(){return"update(): $merge expects a target of type 'object'; got "+t(L)})}function ye(L,F){var ae=d(L);o(ae==="Map"||ae==="Set",function(){return"update(): "+t(F)+" expects a target of type Set or Map; got "+t(ae)})}})(Ta,Ta.exports)),Ta.exports}var s0=a0();const u0=po(s0);var c0=Object.getOwnPropertyDescriptor,f0=(n,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o};Fe.JustLayoutService=class{insertWinIdToStack=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch);if(r.type!=="stack")return e;const s=r.tabs,c=t.index>=0?xi.clamp(t.index,0,s.length):s.length;return this.updateNodeOfBranch(e,t.branch,{$set:{...r,type:"stack",tabs:[...s.slice(0,c),t.justId,...s.slice(c)],active:t.justId}})};insertWinIdToSplit=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch),o=t.pos==="first"?"second":"first";return this.updateNodeOfBranch(e,t.branch,{$set:{type:"split-percentage",direction:t.direction,[o]:{...r,name:void 0},[t.pos]:{type:"stack",tabs:[t.justId],active:t.justId,name:void 0},size:t.size??50,dndAccept:r.dndAccept,name:r.name,hideTitle:r.hideTitle}})};removeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);if(r?.type!=="stack")return e;const o=r.active?$e.indexOf(r.tabs,r.active):0,s=r.tabs.filter(f=>!$e.isEquals(f,t));let c;return r.active!==null&&$e.includes(s,r.active)?c=r.active:c=s.length>0&&r.active!==null?s[xi.clamp(o-1,0,s.length-1)]:null,this.updateNodeOfWinId(e,t,{$set:{...r,tabs:s,active:c}})};removeAllTabs=(e,t)=>{if(e==null)return null;const r=this.getNodeByBranch(e,t);return r==null||r.type!=="stack"?e:this.updateNodeOfBranch(e,t,{$set:{...r,tabs:[],active:null}})};activeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);return r==null?e:this.updateNodeOfWinId(e,t,{$set:{...r,active:t}})};getActiveWinIds=e=>{const t=(r,o)=>{if(r===null)return o;if(r.type==="stack")return r.active!==null?[...o,r.active]:o;{const s=t(r.first,o);return t(r.second,s)}};return t(e,[])};removeEmpty=e=>{if(e==null)return e;const t=this.findEmptyBranch(e,null,[]);if(t===null)return e;if(t.length===0)return null;const r=t[t.length-1],o=t.slice(0,-1),s=r==="first"?"second":"first",c=this.getNodeByBranch(e,o),f=this.getNodeByBranch(e,[...o,s]);return this.updateNodeOfBranch(e,o,{$set:{...f,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack"){const o=t!=null&&t.type!="stack"&&(!!t.first.name||!!t.second.name);if(e.tabs.length===0&&!o)return r}else{const o=this.findEmptyBranch(e.first,e,[...r,"first"]);if(o!=null)return o;const s=this.findEmptyBranch(e.second,e,[...r,"second"]);if(s!=null)return s}return null};moveWinIdToStack=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToStack(r,t)};moveWinIdToSplit=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToSplit(r,t)};getBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?r:null;{const o=this.getBranch(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getBranch(e.second,t,[...r,"second"]);return s??null}};getBranchByWinId=(e,t)=>this.getBranch(e,t,[]);getNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;if(e.name==t)return{node:e,branch:[...r]};if(e.type!="stack"){const o=this.getNodeInfoByNodeName(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getNodeInfoByNodeName(e.second,t,[...r,"second"]);if(s!=null)return s}return null};getTabNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;const o=this.getNodeInfoByNodeName(e,t,r);if(o==null)return null;if(o.node.type==="stack")return o;{const s=this.getTabNodeInfo(o.node,[]);if(s!=null)return{node:s.node,branch:[...o.branch,...s.branch]}}return null};getNodeByWinId=(e,t)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?(console.log("includes ok:",e.tabs,t),e):(console.log("includes nok:",e.tabs,t),null);{const r=this.getNodeByWinId(e.first,t);if(r!=null)return r;const o=this.getNodeByWinId(e.second,t);return o??null}};getTabBranch=(e,t)=>{if(e===null)return null;if(e.type==="stack")return t;{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabBranch(e[r],[...t,r]);if(o!=null)return o}return null};getTabNodeInfo=(e,t)=>{if(e===null)return null;if(e.type==="stack")return{node:e,branch:t};{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabNodeInfo(e[r],[...t,r]);if(o!=null)return o}return null};addTabWin=(e,t,r,o)=>{if(e===null)return null;const s=this.getNodeByBranch(e,t);if(s.type!=="stack")return e;const c=o<0?s.tabs.length:xi.clamp(o,0,s.tabs.length);return this.updateNodeOfBranch(e,t,{$merge:{tabs:[...s.tabs.slice(0,c),r,...s.tabs.slice(c)],active:r}})};queryWinIdsByViewId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack")return[...r,...e.tabs.filter(o=>o.viewId===t)];{const o=this.queryWinIdsByViewId(e.first,t,r);return this.queryWinIdsByViewId(e.second,t,[...r,...o])}};queryDupWinIdsByWinId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack"){const o=$e.withoutDup(t),s=e.tabs.filter(c=>{const f=$e.withoutDup(c);return $e.isEquals(o,f)});return[...r,...s]}else{const o=this.queryDupWinIdsByWinId(e.first,t,r);return this.queryDupWinIdsByWinId(e.second,t,[...r,...o])}};queryWinIdsByStack=(e,t)=>{if(e===null)return[];const r=this.getNodeByBranch(e,t);return r.type!=="stack"?[]:r.tabs};getNodeByBranch=(e,t)=>t.reduce((r,o)=>r?.[o],e);updateNodeOfBranch=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,r);return this.updateNode(e,o)};updateNodeOfWinId=(e,t,r)=>{const o=this.getBranchByWinId(e,t);if(o==null)return e;const s=this.buildSpecFromUpdateSpec(o,r);return this.updateNode(e,s)};hasWinId=(e,t)=>this.getNodeByWinId(e,t)!=null;updateNode=(e,t)=>e==null?null:u0(e,t);buildSpecFromUpdateSpec=(e,t)=>e.length>0?xi.set({},e,t):t;getNodeAtBranch=(e,t)=>t.length>0?xi.get(e,t,null):e;getBranchRightTop=e=>{if(e==null)return[];let t=e;const r=[];for(;t.type!=="stack";)t.direction==="row"?(r.push("second"),t=t.second):t.direction==="column"&&(r.push("first"),t=t.first);return r};updateSplitSize=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,{$merge:{size:r}});return this.updateNode(e,o)}},Fe.JustLayoutService=f0([gd()],Fe.JustLayoutService);var l0={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},d0=process.env.NODE_ENV!=="production"?l0:{};function ie(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=typeof n=="string"?n:d0[n];throw typeof o=="function"&&(o=o.apply(null,t)),new Error("[MobX] "+o)}throw new Error(typeof n=="number"?"[MobX] minified error nr: "+n+(t.length?" "+t.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+n)}var h0={};function xa(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:h0}var nh=Object.assign,Na=Object.getOwnPropertyDescriptor,Qn=Object.defineProperty,Eo=Object.prototype,Da=[];Object.freeze(Da);var rh={};Object.freeze(rh);var p0=typeof Proxy<"u",v0=Object.toString();function ih(){p0||ie(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Io(n){process.env.NODE_ENV!=="production"&&H.verifyProxies&&ie("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+n)}function Bn(){return++H.mobxGuid}function ju(n){var e=!1;return function(){if(!e)return e=!0,n.apply(this,arguments)}}var Ni=function(){};function gt(n){return typeof n=="function"}function oi(n){var e=typeof n;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Ca(n){return n!==null&&typeof n=="object"}function Jt(n){if(!Ca(n))return!1;var e=Object.getPrototypeOf(n);if(e==null)return!0;var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t.toString()===v0}function oh(n){var e=n?.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Ao(n,e,t){Qn(n,e,{enumerable:!1,writable:!0,configurable:!0,value:t})}function ah(n,e,t){Qn(n,e,{enumerable:!1,writable:!1,configurable:!0,value:t})}function kr(n,e){var t="isMobX"+n;return e.prototype[t]=!0,function(r){return Ca(r)&&r[t]===!0}}function Di(n){return n!=null&&Object.prototype.toString.call(n)==="[object Map]"}function g0(n){var e=Object.getPrototypeOf(n),t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);return r===null}function cr(n){return n!=null&&Object.prototype.toString.call(n)==="[object Set]"}var sh=typeof Object.getOwnPropertySymbols<"u";function m0(n){var e=Object.keys(n);if(!sh)return e;var t=Object.getOwnPropertySymbols(n);return t.length?[].concat(e,t.filter(function(r){return Eo.propertyIsEnumerable.call(n,r)})):e}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:sh?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames;function Fu(n){return typeof n=="string"?n:typeof n=="symbol"?n.toString():new String(n).toString()}function uh(n){return n===null?null:typeof n=="object"?""+n:n}function vn(n,e){return Eo.hasOwnProperty.call(n,e)}var b0=Object.getOwnPropertyDescriptors||function(e){var t={};return Ci(e).forEach(function(r){t[r]=Na(e,r)}),t};function Kt(n,e){return!!(n&e)}function Xt(n,e,t){return t?n|=e:n&=~e,n}function ch(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function y0(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,w0(r.key),r)}}function Pi(n,e,t){return e&&y0(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Mi(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=S0(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
68
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(){return fr=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},fr.apply(null,arguments)}function fh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,$u(n,e)}function $u(n,e){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},$u(n,e)}function _0(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function w0(n){var e=_0(n,"string");return typeof e=="symbol"?e:e+""}function S0(n,e){if(n){if(typeof n=="string")return ch(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ch(n,e):void 0}}var Ft=Symbol("mobx-stored-annotations");function er(n){function e(t,r){if(xo(r))return n.decorate_20223_(t,r);To(t,r,n)}return Object.assign(e,n)}function To(n,e,t){if(vn(n,Ft)||Ao(n,Ft,fr({},n[Ft])),process.env.NODE_ENV!=="production"&&La(t)&&!vn(n[Ft],e)){var r=n.constructor.name+".prototype."+e.toString();ie("'"+r+"' is decorated with 'override', but no such decorated member was found on prototype.")}O0(n,t,e),La(t)||(n[Ft][e]=t)}function O0(n,e,t){if(process.env.NODE_ENV!=="production"&&!La(e)&&vn(n[Ft],t)){var r=n.constructor.name+".prototype."+t.toString(),o=n[Ft][t].annotationType_,s=e.annotationType_;ie("Cannot apply '@"+s+"' to '"+r+"':"+(`
69
69
  The field is already decorated with '@`+o+"'.")+`
70
70
  Re-decorating fields is not allowed.
@@ -93,7 +93,7 @@ The target is already observable of different type.
93
93
  Extending builtins is not supported.`),n;process.env.NODE_ENV!=="production"&&!Object.isExtensible(n)&&ie("Cannot make the designated object observable; it is not extensible");var r=(t=e?.name)!=null?t:process.env.NODE_ENV!=="production"?(Jt(n)?"ObservableObject":n.constructor.name)+"@"+Bn():"ObservableObject",o=new rc(n,new Map,String(r),iw(e));return Ao(n,be,o),n}var aS=kr("ObservableObjectAdministration",rc);function Zh(n){return Kh[n]||(Kh[n]={get:function(){return this[be].getObservablePropValue_(n)},set:function(t){return this[be].setObservablePropValue_(n,t)}})}function hi(n){return Ca(n)?aS(n[be]):!1}function Qh(n,e,t){var r;process.env.NODE_ENV!=="production"&&(n.appliedAnnotations_[t]=e),(r=n.target_[Ft])==null||delete r[t]}function ep(n,e,t){if(process.env.NODE_ENV!=="production"&&!cp(e)&&ie("Cannot annotate '"+n.name_+"."+t.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!La(e)&&vn(n.appliedAnnotations_,t)){var r=n.name_+"."+t.toString(),o=n.appliedAnnotations_[t].annotationType_,s=e.annotationType_;ie("Cannot apply '"+s+"' to '"+r+"':"+(`
94
94
  The field is already annotated with '`+o+"'.")+`
95
95
  Re-annotating fields is not allowed.
96
- Use 'override' annotation for methods overridden by subclass.`)}}var sS=np(0),uS=(function(){var n=!1,e={};return Object.defineProperty(e,"0",{set:function(){n=!0}}),Object.create(e)[0]=1,n===!1})(),ic=0,tp=function(){};function cS(n,e){Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,e):n.prototype.__proto__!==void 0?n.prototype.__proto__=e:n.prototype=e}cS(tp,Array.prototype);var oc=(function(n){function e(r,o,s,c){var f;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),c===void 0&&(c=!1),f=n.call(this)||this,$r(function(){var d=new nc(s,o,c,!0);d.proxy_=f,ah(f,be,d),r&&r.length&&f.spliceWithArray(0,0,r),uS&&Object.defineProperty(f,"0",sS)}),f}fh(e,n);var t=e.prototype;return t.concat=function(){this[be].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),s.map(function(f){return ko(f)?f.slice():f}))},t[Symbol.iterator]=function(){var r=this,o=0;return sc({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},Pi(e,[{key:"length",get:function(){return this[be].getArrayLength_()},set:function(o){this[be].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(tp);Object.entries(Ya).forEach(function(n){var e=n[0],t=n[1];e!=="concat"&&Ao(oc.prototype,e,t)});function np(n){return{enumerable:!1,configurable:!0,get:function(){return this[be].get_(n)},set:function(t){this[be].set_(n,t)}}}function fS(n){Qn(oc.prototype,""+n,np(n))}function rp(n){if(n>ic){for(var e=ic;e<n+100;e++)fS(e);ic=n}}rp(1e3);function lS(n,e,t){return new oc(n,e,t)}function ji(n,e){if(typeof n=="object"&&n!==null){if(ko(n))return e!==void 0&&ie(23),n[be].atom_;if(Wn(n))return n.atom_;if(pr(n)){if(e===void 0)return n.keysAtom_;var t=n.data_.get(e)||n.hasMap_.get(e);return t||ie(25,e,Ka(n)),t}if(hi(n)){if(!e)return ie(26);var r=n[be].values_.get(e);return r||ie(27,e,Ka(n)),r}if(Vu(n)||Do(n)||Ha(n))return n}else if(gt(n)&&Ha(n[be]))return n[be];ie(28)}function ip(n,e){if(n||ie(29),Vu(n)||Do(n)||Ha(n)||pr(n)||Wn(n))return n;if(n[be])return n[be];ie(24,n)}function Ka(n,e){var t;if(e!==void 0)t=ji(n,e);else{if(fi(n))return n.name;hi(n)||pr(n)||Wn(n)?t=ip(n):t=ji(n)}return t.name_}function $r(n){var e=ui(),t=Hu(!0);bn();try{return n()}finally{yn(),qu(t),lr(e)}}var op=Eo.toString;function ap(n,e,t){return t===void 0&&(t=-1),ac(n,e,t)}function ac(n,e,t,r,o){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var s=typeof n;if(s!=="function"&&s!=="object"&&typeof e!="object")return!1;var c=op.call(n);if(c!==op.call(e))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(n)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":t>=0&&t++;break}n=sp(n),e=sp(e);var f=c==="[object Array]";if(!f){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(gt(d)&&d instanceof d&&gt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}if(t===0)return!1;t<0&&(t=-1),r=r||[],o=o||[];for(var v=r.length;v--;)if(r[v]===n)return o[v]===e;if(r.push(n),o.push(e),f){if(v=n.length,v!==e.length)return!1;for(;v--;)if(!ac(n[v],e[v],t-1,r,o))return!1}else{var b=Object.keys(n),w=b.length;if(Object.keys(e).length!==w)return!1;for(var y=0;y<w;y++){var O=b[y];if(!(vn(e,O)&&ac(n[O],e[O],t-1,r,o)))return!1}}return r.pop(),o.pop(),!0}function sp(n){return ko(n)?n.slice():Di(n)||pr(n)||cr(n)||Wn(n)?Array.from(n.entries()):n}var up,dS=((up=xa().Iterator)==null?void 0:up.prototype)||{};function sc(n){return n[Symbol.iterator]=hS,Object.assign(Object.create(dS),n)}function hS(){return this}function cp(n){return n instanceof Object&&typeof n.annotationType_=="string"&&gt(n.make_)&&gt(n.extend_)}["Symbol","Map","Set"].forEach(function(n){var e=xa();typeof e[n]>"u"&&ie("MobX requires global '"+n+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Aw,extras:{getDebugName:Ka},$mobx:be});var pS=Object.getOwnPropertyDescriptor,vS=(n,e,t,r)=>{for(var o=r>1?void 0:r?pS(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o},gS=(n,e)=>(t,r)=>e(t,r,n);Fe.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(e){this.service=e,Zw(this,{service:!1},{autoBind:!0})}setLayout=e=>{this.layout=e};setTabTitle=(e,t)=>{this.tabTitleMap.set($e.toString(e),t)};getTabTitle=e=>this.tabTitleMap.get($e.toString(e));setTabTitleTooltip=(e,t)=>{this.tabTitleTooltipMap.set($e.toString(e),t)};getTabTitleTooltip=e=>this.tabTitleTooltipMap.get($e.toString(e));setFullScreenLayoutByBranch=e=>{e===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,e)};setFullScreenHideTitle=e=>{this.fullScreenHideTitle=e};addTab=e=>{const t=this.service.getTabBranch(this.layout,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=e=>{const t=this.service.getTabNodeInfoByNodeName(this.layout,e.nodeName,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t.branch,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=e=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);cloneTab=e=>{const t=this.service.getBranchByWinId(this.layout,e.justId);if(t==null)return;const r=this.service.getNodeAtBranch(this.layout,t);let o=0;r?.type==="stack"&&r.active!=null&&(o=$e.indexOf(r.tabs,e.justId)+1),this.layout=this.service.addTabWin(this.layout,t,e.cloneJustId,o),this.lastActiveId=e.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=e=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,e.justId))};removeAllTabs=e=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,e.branch))};activeWin=e=>{this.layout=this.service.activeWinId(this.layout,e.justId),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)-1+t.tabs.length)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};activeNextWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)+1)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};updateResize=e=>{this.layout=this.service.updateSplitSize(this.layout,e.branch,e.size)};moveWin=e=>{e.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,e)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,e)),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const e=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:e})};toggleWin=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r==null||r.node.type!=="split-pixels")return;const o=r.node.primaryHide!==!0,s=!o||r.node.size<10?r.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(r.branch,{$merge:{size:s,primaryHide:o}}),f=this.service.updateNode(t,c);f!=null&&this.setLayout(f)};showWin=({nodeName:e,show:t})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,e,[]);if(o!=null&&o.node.type==="split-pixels"&&t===(o.node.size===0)){const s=t?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:s}}),f=this.service.updateNode(r,c);if(f==null)return;this.setLayout(f)}};getSizeByNodeName=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"||r.node.type==="split-percentage"?r.node.size:null};getBranchByJustId=({justId:e})=>{const t=this.layout;return this.service.getBranchByWinId(t,e)};isPrimaryHide=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"?r.node.primaryHide:null};openWin=({justId:e})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTab({justId:e})};openWinByNodeName=({justId:e,nodeName:t})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTabByNodeName({justId:e,nodeName:t})};getWinIds=({viewId:e})=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);getDupWinIds=({justId:e})=>this.service.queryDupWinIdsByWinId(this.layout??null,e,[]);getWinIdsByBranch=({branch:e})=>this.service.queryWinIdsByStack(this.layout??null,e);getNodeAtBranch=({branch:e})=>this.service.getNodeAtBranch(this.layout??null,e);openWinMenu=({justId:e,nodeName:t})=>{const r=e.viewId,o=this.getWinIds({viewId:r});if(o.length===0)console.log("openWinMenu1",o,e),this.openWinByNodeName({justId:e,nodeName:t});else{const s=o.toSorted((c,f)=>(c.dupId??"")<=(f.dupId??"")?-1:1).at(-1);s&&(console.log("openWinMenu2",o,s),this.openWinByNodeName({justId:s,nodeName:t}))}};fullScreenWin=async(e,t,r=!1)=>{t?this.setLayout(null):(this.setFullScreenLayoutByBranch(e),this.setFullScreenHideTitle(r))}},Fe.JustLayoutStore=vS([gd(),gS(0,h_(ii.JustLayoutService))],Fe.JustLayoutStore);const fp=new H_(({bind:n})=>{n(ii.JustLayoutService).to(Fe.JustLayoutService).inSingletonScope(),n(ii.JustLayoutStore).to(Fe.JustLayoutStore).inTransientScope(),n(ii.JustLayoutFactory).toFactory(e=>t=>{if(!Bo.has(t)){const r=Xa.get(ii.JustLayoutStore);Bo.set(t,r)}return Bo.get(t)})}),Xa=new r0,mS=[fp];Xa.load(...mS);const Bo=new Map;window.storeLayout=Bo,window.toJS=qw;const nr=n=>{const[e]=R.useState(()=>Xa.get(ii.JustLayoutFactory)(n));return e},lp=R.createContext({dragDropManager:void 0});function Sn(n){return"Minified Redux error #"+n+"; visit https://redux.js.org/Errors?code="+n+" for the full message or use the non-minified dev environment for full errors. "}var dp=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),hp=function(){return Math.random().toString(36).substring(7).split("").join(".")},pp={INIT:"@@redux/INIT"+hp(),REPLACE:"@@redux/REPLACE"+hp()};function bS(n){if(typeof n!="object"||n===null)return!1;for(var e=n;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e}function yS(n){if(n===void 0)return"undefined";if(n===null)return"null";var e=typeof n;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(n))return"array";if(SS(n))return"date";if(wS(n))return"error";var t=_S(n);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function _S(n){return typeof n.constructor=="function"?n.constructor.name:null}function wS(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function SS(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function Fi(n){var e=typeof n;return process.env.NODE_ENV!=="production"&&(e=yS(n)),e}function vp(n,e,t){var r;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Sn(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 e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(1):"Expected the enhancer to be a function. Instead, received: '"+Fi(t)+"'");return t(vp)(n,e)}if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(2):"Expected the root reducer to be a function. Instead, received: '"+Fi(n)+"'");var o=n,s=e,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function v(){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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 s}function b(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(4):"Expected the listener to be a function. Instead, received: '"+Fi(S)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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 A=!0;return p(),f.push(S),function(){if(A){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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.");A=!1,p();var k=f.indexOf(S);f.splice(k,1),c=null}}}function w(S){if(!bS(S))throw new Error(process.env.NODE_ENV==="production"?Sn(7):"Actions must be plain objects. Instead, the actual type was: '"+Fi(S)+"'. 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 S.type>"u")throw new Error(process.env.NODE_ENV==="production"?Sn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(9):"Reducers may not dispatch actions.");try{d=!0,s=o(s,S)}finally{d=!1}for(var A=c=f,x=0;x<A.length;x++){var k=A[x];k()}return S}function y(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(10):"Expected the nextReducer to be a function. Instead, received: '"+Fi(S));o=S,w({type:pp.REPLACE})}function O(){var S,A=b;return S={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?Sn(11):"Expected the observer to be an object. Instead, received: '"+Fi(k)+"'");function G(){k.next&&k.next(v())}G();var oe=A(G);return{unsubscribe:oe}}},S[dp]=function(){return this},S}return w({type:pp.INIT}),r={dispatch:w,subscribe:b,getState:v,replaceReducer:y},r[dp]=O,r}function Ae(n,e,...t){if(OS()&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(e.replace(/%s/g,function(){return t[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function OS(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function ES(n,e,t){return e.split(".").reduce((r,o)=>r&&r[o]?r[o]:t||null,n)}function IS(n,e){return n.filter(t=>t!==e)}function gp(n){return typeof n=="object"}function AS(n,e){const t=new Map,r=s=>{t.set(s,t.has(s)?t.get(s)+1:1)};n.forEach(r),e.forEach(r);const o=[];return t.forEach((s,c)=>{s===1&&o.push(c)}),o}function TS(n,e){return n.filter(t=>e.indexOf(t)>-1)}const uc="dnd-core/INIT_COORDS",Za="dnd-core/BEGIN_DRAG",cc="dnd-core/PUBLISH_DRAG_SOURCE",Qa="dnd-core/HOVER",es="dnd-core/DROP",ts="dnd-core/END_DRAG";function mp(n,e){return{type:uc,payload:{sourceClientOffset:e||null,clientOffset:n||null}}}const xS={type:uc,payload:{clientOffset:null,sourceClientOffset:null}};function NS(n){return function(t=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:s,getSourceClientOffset:c}=r,f=n.getMonitor(),d=n.getRegistry();n.dispatch(mp(s)),DS(t,f,d);const p=MS(t,f);if(p==null){n.dispatch(xS);return}let v=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");CS(c),v=c(p)}n.dispatch(mp(s,v));const w=d.getSource(p).beginDrag(f,p);if(w==null)return;PS(w),d.pinSource(p);const y=d.getSourceType(p);return{type:Za,payload:{itemType:y,item:w,sourceId:p,clientOffset:s||null,sourceClientOffset:v||null,isSourcePublic:!!o}}}}function DS(n,e,t){Ae(!e.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(r){Ae(t.getSource(r),"Expected sourceIds to be registered.")})}function CS(n){Ae(typeof n=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function PS(n){Ae(gp(n),"Item must be an object.")}function MS(n,e){let t=null;for(let r=n.length-1;r>=0;r--)if(e.canDragSource(n[r])){t=n[r];break}return t}function RS(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function LS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){RS(n,o,t[o])})}return n}function kS(n){return function(t={}){const r=n.getMonitor(),o=n.getRegistry();BS(r),$S(r).forEach((c,f)=>{const d=jS(c,f,o,r),p={type:es,payload:{dropResult:LS({},t,d)}};n.dispatch(p)})}}function BS(n){Ae(n.isDragging(),"Cannot call drop while not dragging."),Ae(!n.didDrop(),"Cannot call drop twice during one drag operation.")}function jS(n,e,t,r){const o=t.getTarget(n);let s=o?o.drop(r,n):void 0;return FS(s),typeof s>"u"&&(s=e===0?{}:r.getDropResult()),s}function FS(n){Ae(typeof n>"u"||gp(n),"Drop result must either be an object or undefined.")}function $S(n){const e=n.getTargetIds().filter(n.canDropOnTarget,n);return e.reverse(),e}function VS(n){return function(){const t=n.getMonitor(),r=n.getRegistry();WS(t);const o=t.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(t,o),r.unpinSource()),{type:ts}}}function WS(n){Ae(n.isDragging(),"Cannot call endDrag while not dragging.")}function fc(n,e){return e===null?n===null:Array.isArray(n)?n.some(t=>t===e):n===e}function US(n){return function(t,{clientOffset:r}={}){zS(t);const o=t.slice(0),s=n.getMonitor(),c=n.getRegistry(),f=s.getItemType();return qS(o,c,f),HS(o,s,c),GS(o,s,c),{type:Qa,payload:{targetIds:o,clientOffset:r||null}}}}function zS(n){Ae(Array.isArray(n),"Expected targetIds to be an array.")}function HS(n,e,t){Ae(e.isDragging(),"Cannot call hover while not dragging."),Ae(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<n.length;r++){const o=n[r];Ae(n.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const s=t.getTarget(o);Ae(s,"Expected targetIds to be registered.")}}function qS(n,e,t){for(let r=n.length-1;r>=0;r--){const o=n[r],s=e.getTargetType(o);fc(s,t)||n.splice(r,1)}}function GS(n,e,t){n.forEach(function(r){t.getTarget(r).hover(e,r)})}function YS(n){return function(){if(n.getMonitor().isDragging())return{type:cc}}}function JS(n){return{beginDrag:NS(n),publishDragSource:YS(n),hover:US(n),drop:kS(n),endDrag:VS(n)}}class KS{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;function r(s){return(...c)=>{const f=s.apply(e,c);typeof f<"u"&&t(f)}}const o=JS(this);return Object.keys(o).reduce((s,c)=>{const f=o[c];return s[c]=r(f),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function XS(n,e){return{x:n.x+e.x,y:n.y+e.y}}function bp(n,e){return{x:n.x-e.x,y:n.y-e.y}}function ZS(n){const{clientOffset:e,initialClientOffset:t,initialSourceClientOffset:r}=n;return!e||!t||!r?null:bp(XS(e,r),t)}function QS(n){const{clientOffset:e,initialClientOffset:t}=n;return!e||!t?null:bp(e,t)}const jo=[],lc=[];jo.__IS_NONE__=!0,lc.__IS_ALL__=!0;function eO(n,e){return n===jo?!1:n===lc||typeof e>"u"?!0:TS(e,n).length>0}class tO{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Ae(typeof e=="function","listener must be a function."),Ae(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const s=()=>{const c=this.store.getState(),f=c.stateId;try{f===o||f===o+1&&!eO(c.dirtyHandlerIds,r)||e()}finally{o=f}};return this.store.subscribe(s)}subscribeToOffsetChange(e){Ae(typeof e=="function","listener must be a function.");let t=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==t&&(t=o,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ae(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(Ae(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();return fc(r,o)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(Ae(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),o=this.getItemType();return r!==o?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),s=this.getItemType();if(s&&!fc(o,s))return!1;const c=this.getTargetIds();if(!c.length)return!1;const f=c.indexOf(e);return r?f===c.length-1:f>-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 ZS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const yp=typeof global<"u"?global:self,_p=yp.MutationObserver||yp.WebKitMutationObserver;function wp(n){return function(){const t=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(t),clearInterval(r),n()}}}function nO(n){let e=1;const t=new _p(n),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const rO=typeof _p=="function"?nO:wp;class iO{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let r=0,o=e.length-this.index;r<o;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=rO(this.flush),this.requestErrorThrow=wp(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class oO{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class aO{create(e){const t=this.freeTasks,r=t.length?t.pop():new oO(this.onError,o=>t[t.length]=o);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const Sp=new iO,sO=new aO(Sp.registerPendingError);function uO(n){Sp.enqueueTask(sO.create(n))}const dc="dnd-core/ADD_SOURCE",hc="dnd-core/ADD_TARGET",pc="dnd-core/REMOVE_SOURCE",ns="dnd-core/REMOVE_TARGET";function cO(n){return{type:dc,payload:{sourceId:n}}}function fO(n){return{type:hc,payload:{targetId:n}}}function lO(n){return{type:pc,payload:{sourceId:n}}}function dO(n){return{type:ns,payload:{targetId:n}}}function hO(n){Ae(typeof n.canDrag=="function","Expected canDrag to be a function."),Ae(typeof n.beginDrag=="function","Expected beginDrag to be a function."),Ae(typeof n.endDrag=="function","Expected endDrag to be a function.")}function pO(n){Ae(typeof n.canDrop=="function","Expected canDrop to be a function."),Ae(typeof n.hover=="function","Expected hover to be a function."),Ae(typeof n.drop=="function","Expected beginDrag to be a function.")}function vc(n,e){if(e&&Array.isArray(n)){n.forEach(t=>vc(t,!1));return}Ae(typeof n=="string"||typeof n=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var On;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(On||(On={}));let vO=0;function gO(){return vO++}function mO(n){const e=gO().toString();switch(n){case On.SOURCE:return`S${e}`;case On.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${n}`)}}function Op(n){switch(n[0]){case"S":return On.SOURCE;case"T":return On.TARGET;default:throw new Error(`Cannot parse handler ID: ${n}`)}}function Ep(n,e){const t=n.entries();let r=!1;do{const{done:o,value:[,s]}=t.next();if(s===e)return!0;r=!!o}while(!r);return!1}class bO{addSource(e,t){vc(e),hO(t);const r=this.addHandler(On.SOURCE,e,t);return this.store.dispatch(cO(r)),r}addTarget(e,t){vc(e,!0),pO(t);const r=this.addHandler(On.TARGET,e,t);return this.store.dispatch(fO(r)),r}containsHandler(e){return Ep(this.dragSources,e)||Ep(this.dropTargets,e)}getSource(e,t=!1){return Ae(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ae(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Op(e)===On.SOURCE}isTargetId(e){return Op(e)===On.TARGET}removeSource(e){Ae(this.getSource(e),"Expected an existing source."),this.store.dispatch(lO(e)),uO(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ae(this.getTarget(e),"Expected an existing target."),this.store.dispatch(dO(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ae(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ae(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const o=mO(e);return this.types.set(o,t),e===On.SOURCE?this.dragSources.set(o,r):e===On.TARGET&&this.dropTargets.set(o,r),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const yO=(n,e)=>n===e;function _O(n,e){return!n&&!e?!0:!n||!e?!1:n.x===e.x&&n.y===e.y}function wO(n,e,t=yO){if(n.length!==e.length)return!1;for(let r=0;r<n.length;++r)if(!t(n[r],e[r]))return!1;return!0}function SO(n=jo,e){switch(e.type){case Qa:break;case dc:case hc:case ns:case pc:return jo;case Za:case cc:case ts:case es:default:return lc}const{targetIds:t=[],prevTargetIds:r=[]}=e.payload,o=AS(t,r);if(!(o.length>0||!wO(t,r)))return jo;const c=r[r.length-1],f=t[t.length-1];return c!==f&&(c&&o.push(c),f&&o.push(f)),o}function OO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){OO(n,o,t[o])})}return n}const Ip={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function IO(n=Ip,e){const{payload:t}=e;switch(e.type){case uc:case Za:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case Qa:return _O(n.clientOffset,t.clientOffset)?n:EO({},n,{clientOffset:t.clientOffset});case ts:case es:return Ip;default:return n}}function AO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $i(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){AO(n,o,t[o])})}return n}const TO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function xO(n=TO,e){const{payload:t}=e;switch(e.type){case Za:return $i({},n,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case cc:return $i({},n,{isSourcePublic:!0});case Qa:return $i({},n,{targetIds:t.targetIds});case ns:return n.targetIds.indexOf(t.targetId)===-1?n:$i({},n,{targetIds:IS(n.targetIds,t.targetId)});case es:return $i({},n,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ts:return $i({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function NO(n=0,e){switch(e.type){case dc:case hc:return n+1;case pc:case ns:return n-1;default:return n}}function DO(n=0){return n+1}function CO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){CO(n,o,t[o])})}return n}function MO(n={},e){return{dirtyHandlerIds:SO(n.dirtyHandlerIds,{type:e.type,payload:PO({},e.payload,{prevTargetIds:ES(n,"dragOperation.targetIds",[])})}),dragOffset:IO(n.dragOffset,e),refCount:NO(n.refCount,e),dragOperation:xO(n.dragOperation,e),stateId:DO(n.stateId)}}function RO(n,e=void 0,t={},r=!1){const o=LO(r),s=new tO(o,new bO(o)),c=new KS(o,s),f=n(c,e,t);return c.receiveBackend(f),c}function LO(n){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return vp(MO,n&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function kO(n,e){if(n==null)return{};var t=BO(n,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BO(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}let Ap=0;const rs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var jO=R.memo(function(e){var{children:t}=e,r=kO(e,["children"]);const[o,s]=FO(r);return R.useEffect(()=>{if(s){const c=Tp();return++Ap,()=>{--Ap===0&&(c[rs]=null)}}},[]),Q.jsx(lp.Provider,{value:o,children:t})});function FO(n){if("manager"in n)return[{dragDropManager:n.manager},!1];const e=$O(n.backend,n.context,n.options,n.debugMode),t=!n.context;return[e,t]}function $O(n,e=Tp(),t,r){const o=e;return o[rs]||(o[rs]={dragDropManager:RO(n,e,t,r)}),o[rs]}function Tp(){return typeof global<"u"?global:window}var gc,xp;function VO(){return xp||(xp=1,gc=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var c=s[o];if(!n(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}),gc}var WO=VO();const UO=po(WO),pi=typeof window<"u"?R.useLayoutEffect:R.useEffect;function zO(n,e,t){const[r,o]=R.useState(()=>e(n)),s=R.useCallback(()=>{const c=e(n);UO(r,c)||(o(c),t&&t())},[r,n,t]);return pi(s),[r,s]}function HO(n,e,t){const[r,o]=zO(n,e,t);return pi(function(){const c=n.getHandlerId();if(c!=null)return n.subscribeToStateChange(o,{handlerIds:[c]})},[n,o]),r}function Np(n,e,t){return HO(e,n||(()=>({})),()=>t.reconnect())}function Dp(n,e){const t=[...e||[]];return e==null&&typeof n!="function"&&t.push(n),R.useMemo(()=>typeof n=="function"?n():n,t)}function qO(n){return R.useMemo(()=>n.hooks.dragSource(),[n])}function GO(n){return R.useMemo(()=>n.hooks.dragPreview(),[n])}let mc=!1,bc=!1;class YO{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ae(!mc,"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 mc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mc=!1}}isDragging(){if(!this.sourceId)return!1;Ae(!bc,"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 bc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{bc=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}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(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let yc=!1;class JO{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ae(!yc,"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 yc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{yc=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!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(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function KO(n,e,t){const r=t.getRegistry(),o=r.addTarget(n,e);return[o,()=>r.removeTarget(o)]}function XO(n,e,t){const r=t.getRegistry(),o=r.addSource(n,e);return[o,()=>r.removeSource(o)]}function _c(n,e,t,r){let o;if(o!==void 0)return!!o;if(n===e)return!0;if(typeof n!="object"||!n||typeof e!="object"||!e)return!1;const s=Object.keys(n),c=Object.keys(e);if(s.length!==c.length)return!1;const f=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<s.length;d++){const p=s[d];if(!f(p))return!1;const v=n[p],b=e[p];if(o=void 0,o===!1||o===void 0&&v!==b)return!1}return!0}function wc(n){return n!==null&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function ZO(n){if(typeof n.type=="string")return;const e=n.type.displayName||n.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function QO(n){return(e=null,t=null)=>{if(!R.isValidElement(e)){const s=e;return n(s,t),s}const r=e;return ZO(r),eE(r,t?s=>n(s,t):n)}}function Cp(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];if(t.endsWith("Ref"))e[t]=n[t];else{const o=QO(r);e[t]=()=>o}}),e}function Pp(n,e){typeof n=="function"?n(e):n.current=e}function eE(n,e){const t=n.ref;return Ae(typeof t!="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"),t?R.cloneElement(n,{ref:r=>{Pp(t,r),Pp(e,r)}}):R.cloneElement(n,{ref:e})}class tE{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!_c(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_c(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(e){this.hooks=Cp({dragSource:(t,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,wc(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,wc(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,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=e}}class nE{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!_c(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(e){this.hooks=Cp({dropTarget:(t,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,wc(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Vi(){const{dragDropManager:n}=R.useContext(lp);return Ae(n!=null,"Expected drag drop context"),n}function rE(n,e){const t=Vi(),r=R.useMemo(()=>new tE(t.getBackend()),[t]);return pi(()=>(r.dragSourceOptions=n||null,r.reconnect(),()=>r.disconnectDragSource()),[r,n]),pi(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function iE(){const n=Vi();return R.useMemo(()=>new YO(n),[n])}class oE{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(t):r={},r??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const r=this.spec,o=this.monitor,{isDragging:s}=r;return s?s(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:o}=e;o&&o(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function aE(n,e,t){const r=R.useMemo(()=>new oE(n,e,t),[e,t]);return R.useEffect(()=>{r.spec=n},[n]),r}function sE(n){return R.useMemo(()=>{const e=n.type;return Ae(e!=null,"spec.type must be defined"),e},[n])}function uE(n,e,t){const r=Vi(),o=aE(n,e,t),s=sE(n);pi(function(){if(s!=null){const[f,d]=XO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d}},[r,e,t,o,s])}function cE(n,e){const t=Dp(n,e);Ae(!t.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 r=iE(),o=rE(t.options,t.previewOptions);return uE(t,r,o),[Np(t.collect,r,o),qO(o),GO(o)]}function fE(n){return R.useMemo(()=>n.hooks.dropTarget(),[n])}function lE(n){const e=Vi(),t=R.useMemo(()=>new nE(e.getBackend()),[e]);return pi(()=>(t.dropTargetOptions=n||null,t.reconnect(),()=>t.disconnectDropTarget()),[n]),t}function dE(){const n=Vi();return R.useMemo(()=>new JO(n),[n])}function hE(n){const{accept:e}=n;return R.useMemo(()=>(Ae(n.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class pE{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function vE(n,e){const t=R.useMemo(()=>new pE(n,e),[e]);return R.useEffect(()=>{t.spec=n},[n]),t}function gE(n,e,t){const r=Vi(),o=vE(n,e),s=hE(n);pi(function(){const[f,d]=KO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d},[r,e,o,t,s.map(c=>c.toString()).join("|")])}function Sc(n,e){const t=Dp(n,e),r=dE(),o=lE(t.options);return gE(t,r,o),[Np(t.collect,r,o),fE(o)]}var Oc={exports:{}};var Mp;function mE(){return Mp||(Mp=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,r(f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)e.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Oc)),Oc.exports}var bE=mE();const Un=po(bE),Rp=n=>!!n&&n[0]==="o",Lp=ho.unstable_batchedUpdates,Fo=(n,e)=>n===!0||!!(n&&n[e]),En=(n,e)=>typeof n=="function"?n(e):n,yE="_szhsinMenu",_E=n=>n[yE],is=(n,e)=>(e&&Object.keys(e).forEach(t=>{const r=n[t],o=e[t];typeof o=="function"&&r?n[t]=(...s)=>{o(...s),r(...s)}:n[t]=o}),n),wE=n=>{if(typeof n!="string")return{top:0,right:0,bottom:0,left:0};const e=n.trim().split(/\s+/,4).map(parseFloat),t=isNaN(e[0])?0:e[0],r=isNaN(e[1])?t:e[1];return{top:t,right:r,bottom:isNaN(e[2])?t:e[2],left:isNaN(e[3])?r:e[3]}},Ec=n=>{for(;n;){if(n=n.parentNode,!n||n===document.body||!n.parentNode)return;const{overflow:e,overflowX:t,overflowY:r}=getComputedStyle(n);if(/auto|scroll|overlay|hidden/.test(e+r+t))return n}};function kp(n,e){return{"aria-disabled":n||void 0,tabIndex:e?0:-1}}function Bp(n,e){for(let t=0;t<n.length;t++)if(n[t]===e)return t;return-1}const os=({block:n,element:e,modifiers:t,className:r})=>R.useMemo(()=>{const o=e?`${n}__${e}`:n;let s=o;t&&Object.keys(t).forEach(f=>{const d=t[f];d&&(s+=` ${o}--${d===!0?f:`${f}-${d}`}`)});let c=typeof r=="function"?r(t):r;return typeof c=="string"&&(c=c.trim(),c&&(s+=` ${c}`)),s},[n,e,t,r]),SE="szh-menu-container",as="szh-menu",OE="arrow",EE="item",jp=R.createContext(),Fp=R.createContext({}),$p=R.createContext({}),Vp=R.createContext({}),IE=R.createContext({}),Ic=R.createContext({}),zn=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),mt=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),$o=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Vo=Object.freeze({FIRST:"first",LAST:"last"}),AE=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Wp="absolute",TE="none",xE="menuitem",Ac={preventScroll:!0},NE=({className:n,containerRef:e,containerProps:t,children:r,isOpen:o,theming:s,transition:c,onClose:f})=>{const d=Fo(c,"item"),p=({key:b})=>{b===zn.ESC&&En(f,{key:b,reason:$o.CANCEL})},v=b=>{o&&!b.currentTarget.contains(b.relatedTarget)&&En(f,{reason:$o.BLUR})};return Q.jsx("div",{...is({onKeyDown:p,onBlur:v},t),className:os({block:SE,modifiers:R.useMemo(()=>({theme:s,itemTransition:d}),[s,d]),className:n}),style:{position:"absolute",...t?.style},ref:e,children:r})},DE=()=>{let n,e=0;return{toggle:t=>{t?e++:e--,e=Math.max(e,0)},on:(t,r,o)=>{e?n||(n=setTimeout(()=>{n=0,r()},t)):o?.()},off:()=>{n&&(clearTimeout(n),n=0)}}},CE=n=>{const[e,t]=R.useState(),o=R.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=R.useCallback((f,d)=>{const{items:p}=o;if(!f)o.items=[];else if(d)p.push(f);else{const v=p.indexOf(f);v>-1&&(p.splice(v,1),f.contains(document.activeElement)&&(n.current.focus(Ac),t()))}o.hoverIndex=-1,o.sorted=!1},[o,n]),c=R.useCallback((f,d,p)=>{const{items:v,hoverIndex:b}=o,w=()=>{if(o.sorted)return;const S=n.current.querySelectorAll(".szh-menu__item");v.sort((A,x)=>Bp(S,A)-Bp(S,x)),o.sorted=!0};let y=-1,O;switch(f){case mt.RESET:break;case mt.SET:O=d;break;case mt.UNSET:O=S=>S===d?void 0:S;break;case mt.FIRST:w(),y=0,O=v[y];break;case mt.LAST:w(),y=v.length-1,O=v[y];break;case mt.SET_INDEX:w(),y=p,O=v[y];break;case mt.INCREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y++,y>=v.length&&(y=0),O=v[y];break;case mt.DECREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y--,y<0&&(y=v.length-1),O=v[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${f}`)}O||(y=-1),t(O),o.hoverIndex=y},[n,o]);return{hoverItem:e,dispatch:c,updateItems:s}},Up=(n,e)=>Math.round(n)===e?n:e,PE=n=>{const e=n.getBoundingClientRect();return e.width=Up(e.width,n.offsetWidth),e.height=Up(e.height,n.offsetHeight),e},ME=(n,e,t,r)=>{const o=PE(e),s=n.getBoundingClientRect(),c=t===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:t.getBoundingClientRect(),f=wE(r),d=O=>O+s.left-c.left-f.left,p=O=>O+s.left+o.width-c.right+f.right,v=O=>O+s.top-c.top-f.top,b=O=>O+s.top+o.height-c.bottom+f.bottom;return{menuRect:o,containerRect:s,getLeftOverflow:d,getRightOverflow:p,getTopOverflow:v,getBottomOverflow:b,confineHorizontally:O=>{let S=d(O);if(S<0)O-=S;else{const A=p(O);A>0&&(O-=A,S=d(O),S<0&&(O-=S))}return O},confineVertically:O=>{let S=v(O);if(S<0)O-=S;else{const A=b(O);A>0&&(O-=A,S=v(O),S<0&&(O-=S))}return O}}},RE=({arrowRef:n,menuY:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.top-r.top-e+t.height/2;const c=n.current.offsetHeight*1.25;return s=Math.max(c,s),s=Math.min(s,o.height-c),s},LE=({anchorRect:n,containerRect:e,menuRect:t,placeLeftorRightY:r,placeLeftX:o,placeRightX:s,getLeftOverflow:c,getRightOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w,S=r;y!=="initial"&&(S=p(S),y==="anchor"&&(S=Math.min(S,n.bottom-e.top),S=Math.max(S,n.top-e.top-t.height)));let A,x,k;return O==="left"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="right")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="left")))),y==="auto"&&(A=d(A)),{arrowY:b?RE({menuY:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:A,y:S,computedDirection:O}},kE=({arrowRef:n,menuX:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.left-r.left-e+t.width/2;const c=n.current.offsetWidth*1.25;return s=Math.max(c,s),s=Math.min(s,o.width-c),s},BE=({anchorRect:n,containerRect:e,menuRect:t,placeToporBottomX:r,placeTopY:o,placeBottomY:s,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w==="top"?"top":"bottom",S=r;y!=="initial"&&(S=d(S),y==="anchor"&&(S=Math.min(S,n.right-e.left),S=Math.max(S,n.left-e.left-t.width)));let A,x,k;return O==="top"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="bottom")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="top")))),y==="auto"&&(A=p(A)),{arrowX:b?kE({menuX:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:S,y:A,computedDirection:O}},jE=({arrow:n,align:e,direction:t,gap:r,shift:o,position:s,anchorRect:c,arrowRef:f,positionHelpers:d})=>{const{menuRect:p,containerRect:v}=d,b=t==="left"||t==="right";let w=b?r:o,y=b?o:r;if(n){const q=f.current;b?w+=q.offsetWidth:y+=q.offsetHeight}const O=c.left-v.left-p.width-w,S=c.right-v.left+w,A=c.top-v.top-p.height-y,x=c.bottom-v.top+y;let k,G;e==="end"?(k=c.right-v.left-p.width,G=c.bottom-v.top-p.height):e==="center"?(k=c.left-v.left-(p.width-c.width)/2,G=c.top-v.top-(p.height-c.height)/2):(k=c.left-v.left,G=c.top-v.top),k+=w,G+=y;const oe={...d,anchorRect:c,placeLeftX:O,placeRightX:S,placeLeftorRightY:G,placeTopY:A,placeBottomY:x,placeToporBottomX:k,arrowRef:f,arrow:n,direction:t,position:s};switch(t){case"left":case"right":return LE(oe);default:return BE(oe)}},ss=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function zp(n,e){typeof n=="function"?n(e):n.current=e}const Tc=(n,e)=>R.useMemo(()=>n?e?t=>{zp(n,t),zp(e,t)}:n:e,[n,e]),Hp=-9999,FE=({ariaLabel:n,menuClassName:e,menuStyle:t,arrow:r,arrowProps:o={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:d,externalRef:p,parentScrollingRef:v,align:b="start",direction:w="bottom",position:y="auto",overflow:O="visible",setDownOverflow:S,repositionFlag:A,captureFocus:x=!0,state:k,endTransition:G,isDisabled:oe,menuItemFocus:q,gap:ye=0,shift:L=0,children:F,onClose:ae,focusProps:we,...ce})=>{const[Se,he]=R.useState({x:Hp,y:Hp}),[ct,ht]=R.useState({}),[ft,xt]=R.useState(),[ue,nn]=R.useState(w),[Pt]=R.useState(DE),[Le,wr]=R.useReducer(ne=>ne+1,1),{transition:pe,boundingBoxRef:Lt,boundingBoxPadding:rn,rootMenuRef:Ce,rootAnchorRef:ir,scrollNodesRef:$t,reposition:Vt,viewScroll:Sr,submenuCloseDelay:pt}=R.useContext(Ic),{submenuCtx:In,reposSubmenu:An=A}=R.useContext($p),Ke=R.useRef(),on=R.useRef(),Tn=R.useRef(!1),{hoverItem:at,dispatch:vt,updateItems:Gn}=CE(Ke),Qe=Rp(k),bt=Fo(pe,"open"),St=Fo(pe,"close"),P=$t.current,W=ne=>{switch(ne.key){case zn.HOME:vt(mt.FIRST);break;case zn.END:vt(mt.LAST);break;case zn.UP:vt(mt.DECREASE,at);break;case zn.DOWN:vt(mt.INCREASE,at);break;case zn.SPACE:ne.target&&ne.target.className.indexOf(as)!==-1&&ne.preventDefault();return;default:return}ne.preventDefault(),ne.stopPropagation()},U=()=>{k==="closing"&&xt(),En(G)},ee=ne=>{ne.stopPropagation(),Pt.on(pt,()=>{vt(mt.RESET),Ke.current.focus(Ac)})},le=ne=>{ne.target===ne.currentTarget&&Pt.off()},Be=R.useCallback(ne=>{const Y=Ke.current,K=f.current;if(!Y||!K)return;const te=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!te){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}P.menu||(P.menu=(Lt?Lt.current:Ec(Ce.current))||window);const X=ME(K,Y,P.menu,rn);let{arrowX:Ee,arrowY:He,x:et,y:yt,computedDirection:Ji}=jE({arrow:r,align:b,direction:w,gap:ye,shift:L,position:y,anchorRect:te,arrowRef:on,positionHelpers:X});const{menuRect:Xo}=X,Ki=Xo.height;if(!ne&&O!=="visible"){const{getTopOverflow:Zo,getBottomOverflow:zf}=X;let Or,Qo;const ea=zf(yt);if(ea>0)Or=Ki-ea,Qo=ea;else{const Xi=Zo(yt);Xi<0&&(Or=Ki+Xi,Qo=0-Xi,Or>=0&&(yt-=Xi))}Or>=0&&xt({height:Or,overflowAmt:Qo})}r&&ht({x:Ee,y:He}),he({x:et,y:yt}),nn(Ji)},[r,b,rn,w,ye,L,y,O,s,c,f,Lt,Ce,P]);ss(()=>{Qe&&(Be(),Tn.current&&wr()),Tn.current=Qe},[Qe,Be,An]),ss(()=>{ft&&!S&&(Ke.current.scrollTop=0)},[ft,S]),ss(()=>Gn,[Gn]),R.useEffect(()=>{let{menu:ne}=P;if(!Qe||!ne)return;if(ne=ne.addEventListener?ne:window,!P.anchors){P.anchors=[];let X=Ec(ir&&ir.current);for(;X&&X!==ne;)P.anchors.push(X),X=Ec(X)}let Y=Sr;if(P.anchors.length&&Y==="initial"&&(Y="auto"),Y==="initial")return;const K=()=>{Y==="auto"?Lp(()=>Be(!0)):En(ae,{reason:$o.SCROLL})},te=P.anchors.concat(Sr!=="initial"?ne:[]);return te.forEach(X=>X.addEventListener("scroll",K)),()=>te.forEach(X=>X.removeEventListener("scroll",K))},[ir,P,Qe,ae,Sr,Be]);const nt=!!ft&&ft.overflowAmt>0;R.useEffect(()=>{if(nt||!Qe||!v)return;const ne=()=>Lp(Be),Y=v.current;return Y.addEventListener("scroll",ne),()=>Y.removeEventListener("scroll",ne)},[Qe,nt,v,Be]),R.useEffect(()=>{if(!Qe||typeof ResizeObserver!="function"||Vt==="initial")return;const ne=[],Y=new ResizeObserver(X=>X.forEach(({target:Ee})=>{ne.indexOf(Ee)<0?ne.push(Ee):ho.flushSync(()=>{Be(),wr()})})),K={box:"border-box"};Y.observe(Ke.current,K);const te=c?.current;return te&&Y.observe(te,K),()=>Y.disconnect()},[Qe,Vt,c,Be]),R.useEffect(()=>{if(!Qe){vt(mt.RESET),St||xt();return}const{position:ne,alwaysUpdate:Y}=q||{},K=()=>{ne===Vo.FIRST?vt(mt.FIRST):ne===Vo.LAST?vt(mt.LAST):ne>=-1&&vt(mt.SET_INDEX,void 0,ne)};if(Y)K();else if(x){const te=setTimeout(()=>{const X=Ke.current;X&&!X.contains(document.activeElement)&&(X.focus(Ac),K())},bt?170:100);return()=>clearTimeout(te)}},[Qe,bt,St,x,q,vt]);const Nt=R.useMemo(()=>({isParentOpen:Qe,submenuCtx:Pt,dispatch:vt,updateItems:Gn}),[Qe,Pt,vt,Gn]);let it,I;ft&&(S?I=ft.overflowAmt:it=ft.height);const N=R.useMemo(()=>({reposSubmenu:Le,submenuCtx:Pt,overflow:O,overflowAmt:I,parentMenuRef:Ke,parentDir:ue}),[Le,Pt,O,I,ue]),C=it>=0?{maxHeight:it,overflow:O}:void 0,j=R.useMemo(()=>({state:k,align:b,dir:ue}),[k,b,ue]),Z=R.useMemo(()=>({dir:ue}),[ue]),_e=os({block:as,element:OE,modifiers:Z,className:o.className}),Me=Q.jsxs("ul",{role:"menu","aria-label":n,...kp(oe),...is({onPointerEnter:In?.off,onPointerMove:ee,onPointerLeave:le,onKeyDown:W,onAnimationEnd:U},ce),ref:Tc(p,Ke),className:os({block:as,modifiers:j,className:e}),style:{...t,...C,margin:0,display:k==="closed"?"none":void 0,position:Wp,left:Se.x,top:Se.y},children:[r&&Q.jsx("li",{"aria-hidden":!0,...o,className:_e,style:{display:"block",position:Wp,left:ct.x,top:ct.y,...o.style},ref:on}),Q.jsx($p.Provider,{value:N,children:Q.jsx(Fp.Provider,{value:Nt,children:Q.jsx(jp.Provider,{value:at,children:En(F,j)})})})]});return d?Q.jsx(NE,{...d,isOpen:Qe,children:Me}):Me},qp=R.forwardRef(function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,reposition:v="auto",submenuOpenDelay:b=300,submenuCloseDelay:w=150,viewScroll:y="initial",portal:O,theming:S,onItemClick:A,...x},k){const G=R.useRef(null),oe=R.useRef({}),{anchorRef:q,state:ye,onClose:L}=x,F=R.useMemo(()=>({initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,rootMenuRef:G,rootAnchorRef:q,scrollNodesRef:oe,reposition:v,viewScroll:y,submenuOpenDelay:b,submenuCloseDelay:w}),[o,s,c,f,q,d,p,v,y,b,w]),ae=R.useMemo(()=>({handleClick(ce,Se){ce.stopPropagation||En(A,ce);let he=ce.keepOpen;he===void 0&&(he=Se&&ce.key===zn.SPACE),he||En(L,{value:ce.value,key:ce.key,reason:$o.CLICK})},handleClose(ce){En(L,{key:ce,reason:$o.CLICK})}}),[A,L]);if(!ye)return null;const we=Q.jsx(Ic.Provider,{value:F,children:Q.jsx(Vp.Provider,{value:ae,children:Q.jsx(FE,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:G,containerProps:{className:t,containerRef:G,containerProps:r,theming:S,transition:c,onClose:L}})})});return O===!0&&typeof document<"u"?ho.createPortal(we,document.body):O?O.target?ho.createPortal(we,O.target):O.stablePosition?null:we:we}),xc=0,Nc=1,us=2,cs=3,fs=4,$E=5,Gp=6,VE=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Yp=n=>({_s:n,status:VE[n],isEnter:n<cs,isMounted:n!==Gp,isResolved:n===us||n>fs}),Dc=n=>n?Gp:$E,WE=(n,e)=>{switch(n){case Nc:case xc:return us;case fs:case cs:return Dc(e)}},UE=n=>typeof n=="object"?[n.enter,n.exit]:[n,n],Cc=setTimeout,zE=(n,e)=>Cc(()=>{isNaN(document.body.offsetTop)||n(e+1)},0),Jp=(n,e,t,r,o)=>{clearTimeout(r.current);const s=Yp(n);e(s),t.current=s,o&&o({current:s})},HE=({enter:n=!0,exit:e=!0,preEnter:t,preExit:r,timeout:o,initialEntered:s,mountOnEnter:c,unmountOnExit:f,onStateChange:d}={})=>{const[p,v]=R.useState(()=>Yp(s?us:Dc(c))),b=R.useRef(p),w=R.useRef(0),[y,O]=UE(o),S=R.useCallback(()=>{const A=WE(b.current._s,f);A&&Jp(A,v,b,w,d)},[d,f]);return[p,R.useCallback(A=>{const x=G=>{switch(Jp(G,v,b,w,d),G){case Nc:y>=0&&(w.current=Cc(S,y));break;case fs:O>=0&&(w.current=Cc(S,O));break;case xc:case cs:w.current=zE(x,G);break}},k=b.current.isEnter;typeof A!="boolean"&&(A=!k),A?!k&&x(n?t?xc:Nc:us):k&&x(e?r?cs:fs:Dc(f))},[S,d,n,e,t,r,y,O,f]),S]},Pc=({initialOpen:n,initialMounted:e,unmountOnClose:t,transition:r,transitionTimeout:o=500,onMenuChange:s}={})=>{const c=Fo(r,"open"),f=Fo(r,"close"),[{status:d},p,v]=HE({initialEntered:n,mountOnEnter:!e,unmountOnExit:t,timeout:o,enter:c,exit:f,onStateChange:R.useCallback(({current:{isEnter:b,isResolved:w}})=>{!s||b&&c&&w||!b&&f&&w||s({open:b})},[s,c,f])});return[{state:AE[d],endTransition:v},p]},qE=n=>{const[e,t]=Pc(n),[r,o]=R.useState(),s=(c,f)=>{o({position:c,alwaysUpdate:f}),t(!0)};return[{menuItemFocus:r,...e},t,s]},GE=(n,e)=>{if(process.env.NODE_ENV!=="production"&&typeof e!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[t]=R.useState({});return{onMouseDown:()=>{t.v=n&&n!=="closed"},onClick:r=>t.v?t.v=!1:e(!0,r)}},YE=parseInt(R.version)<19,Kp=R.forwardRef(function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:s,onMenuChange:c,...f},d){const[p,v,b]=qE({...f,onMenuChange:c}),{state:w}=p,y=Rp(w),O=R.useRef(null),S=GE(w,(q,ye)=>b(ye.detail?void 0:Vo.FIRST)),A=R.useCallback(q=>{v(!1),q.key&&O.current.focus()},[v]),x=q=>{switch(q.key){case zn.UP:b(Vo.LAST);break;case zn.DOWN:b(Vo.FIRST);break;default:return}q.preventDefault()},k=En(o,{open:y});if(!k||!k.type)throw new Error("Menu requires a menuButton prop.");const G={...is({onKeyDown:x,...S},k.props),ref:Tc(YE?k.ref:k.props.ref,O)};_E(k.type)==="MenuButton"&&(G.isOpen=y);const oe=R.cloneElement(k,G);return R.useImperativeHandle(s,()=>({openMenu:b,closeMenu:()=>v(!1)})),Q.jsxs(R.Fragment,{children:[oe,Q.jsx(qp,{...f,...p,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:O,ref:d,onClose:A})]})}),JE=(n,e)=>{const t=R.memo(e),r=R.forwardRef((o,s)=>{const c=R.useRef(null);return Q.jsx(t,{...o,itemRef:c,externalRef:s,isHovering:R.useContext(jp)===c.current})});return r.displayName=`WithHovering(${n})`,r},KE=n=>{const[e,t]=R.useState(!1);return R.useEffect(()=>{!n&&t(!1)},[n]),[e,()=>!e&&t(!0),()=>t(!1)]},XE=(n,e,t)=>{ss(()=>{if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${e.current.outerHTML}`);if(n)return;const r=e.current;return t(r,!0),()=>{t(r)}},[n,e,t])},ZE=(n,e,t,r)=>{const[o,s,c]=KE(t),{submenuCloseDelay:f}=R.useContext(Ic),{isParentOpen:d,submenuCtx:p,dispatch:v,updateItems:b}=R.useContext(Fp),w=()=>{!t&&!r&&v(mt.SET,n.current)},y=()=>{!r&&v(mt.UNSET,n.current)},O=x=>{t&&!x.currentTarget.contains(x.relatedTarget)&&y()},S=x=>{r||(x.stopPropagation(),s(),p.on(f,w,w))},A=(x,k)=>{c(),p.off(),!k&&y()};return XE(r,n,b),R.useEffect(()=>{t&&d&&e.current&&e.current.focus()},[e,t,d]),{mouseOver:o,setHover:w,onBlur:O,onPointerMove:S,onPointerLeave:A}},ls=JE("MenuItem",function({className:e,value:t,href:r,type:o,checked:s,disabled:c,children:f,onClick:d,isHovering:p,itemRef:v,externalRef:b,...w}){const y=!!c,{mouseOver:O,setHover:S,...A}=ZE(v,v,p,y),x=R.useContext(Vp),k=R.useContext(IE),G=o==="radio",oe=o==="checkbox",q=!!r&&!y&&!G&&!oe,ye=G?k.value===t:oe?!!s:!1,L=Se=>{if(y){Se.stopPropagation(),Se.preventDefault();return}const he={value:t,syntheticEvent:Se};Se.key!==void 0&&(he.key=Se.key),oe&&(he.checked=!ye),G&&(he.name=k.name),En(d,he),G&&En(k.onRadioChange,he),x.handleClick(he,oe||G)},F=Se=>{if(p)switch(Se.key){case zn.ENTER:Se.preventDefault();case zn.SPACE:q?v.current.click():L(Se)}},ae=R.useMemo(()=>({type:o,disabled:y,hover:O||p,checked:ye,anchor:q}),[o,y,O,p,ye,q]),we=is({...A,onPointerDown:S,onKeyDown:F,onClick:L},w),ce={role:G?"menuitemradio":oe?"menuitemcheckbox":xE,"aria-checked":G||oe?ye:void 0,...kp(y,p),...we,ref:Tc(b,v),className:os({block:as,element:EE,modifiers:ae,className:e}),children:R.useMemo(()=>En(f,ae),[f,ae])};return q?Q.jsx("li",{role:TE,children:Q.jsx("a",{href:r,...ce})}):Q.jsx("li",{...ce})});if(!R.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Xw)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function QE(n){n()}function e1(n){n||(n=QE,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),$w({reactionScheduler:n})}function t1(n){return $h(n)}var n1=1e4,r1=1e4,i1=(function(){function n(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),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(r){r===void 0&&(r=n1),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var o=Date.now();t.registrations.forEach(function(s,c){o-s.registeredAt>=r&&(t.finalize(s.value),t.registrations.delete(c))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,r1))}}),n})(),o1=typeof FinalizationRegistry<"u"?FinalizationRegistry:i1,Mc=new o1(function(n){var e;(e=n.reaction)===null||e===void 0||e.dispose(),n.reaction=null}),ds={exports:{}},Rc={};var Xp;function a1(){if(Xp)return Rc;Xp=1;var n=R;function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function f(b,w){var y=w(),O=r({inst:{value:y,getSnapshot:w}}),S=O[0].inst,A=O[1];return s(function(){S.value=y,S.getSnapshot=w,d(S)&&A({inst:S})},[b,y,w]),o(function(){return d(S)&&A({inst:S}),b(function(){d(S)&&A({inst:S})})},[b]),c(y),y}function d(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!t(b,y)}catch{return!0}}function p(b,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Rc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,Rc}var Lc={};var Zp;function s1(){return Zp||(Zp=1,process.env.NODE_ENV!=="production"&&(function(){function n(y,O){return y===O&&(y!==0||1/y===1/O)||y!==y&&O!==O}function e(y,O){v||o.startTransition===void 0||(v=!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 S=O();if(!b){var A=O();s(S,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}A=c({inst:{value:S,getSnapshot:O}});var x=A[0].inst,k=A[1];return d(function(){x.value=S,x.getSnapshot=O,t(x)&&k({inst:x})},[y,S,O]),f(function(){return t(x)&&k({inst:x}),y(function(){t(x)&&k({inst:x})})},[y]),p(S),S}function t(y){var O=y.getSnapshot;y=y.value;try{var S=O();return!s(y,S)}catch{return!0}}function r(y,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,s=typeof Object.is=="function"?Object.is:n,c=o.useState,f=o.useEffect,d=o.useLayoutEffect,p=o.useDebugValue,v=!1,b=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Lc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Lc}var Qp;function u1(){return Qp||(Qp=1,process.env.NODE_ENV==="production"?ds.exports=a1():ds.exports=s1()),ds.exports}var c1=u1();function ev(n){n.reaction=new dr("observer".concat(n.name),function(){var e;n.stateVersion=Symbol(),(e=n.onStoreChange)===null||e===void 0||e.call(n)})}function f1(n,e){e===void 0&&(e="observed");var t=R.useRef(null);if(!t.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:e,subscribe:function(f){return Mc.unregister(r),r.onStoreChange=f,r.reaction||(ev(r),r.stateVersion=Symbol()),function(){var d;r.onStoreChange=null,(d=r.reaction)===null||d===void 0||d.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};t.current=r}var o=t.current;o.reaction||(ev(o),Mc.register(t,o,o)),R.useDebugValue(o.reaction,t1),c1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var s,c;if(o.reaction.track(function(){try{s=n()}catch(f){c=f}}),c)throw c;return s}var kc,Bc,l1=!0,tv=!0,nv=typeof Symbol=="function"&&Symbol.for,d1=(Bc=(kc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||kc===void 0?void 0:kc.configurable)!==null&&Bc!==void 0?Bc:!1,rv=nv?Symbol.for("react.forward_ref"):typeof R.forwardRef=="function"&&R.forwardRef(function(n){return null}).$$typeof,iv=nv?Symbol.for("react.memo"):typeof R.memo=="function"&&R.memo(function(n){return null}).$$typeof;function vr(n,e){var t;if(process.env.NODE_ENV,iv&&n.$$typeof===iv)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 r=(t=void 0)!==null&&t!==void 0?t:!1,o=n,s=n.displayName||n.name;if(rv&&n.$$typeof===rv&&(r=!0,o=n.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(f,d){return f1(function(){return o(f,d)},s)};return c.displayName=n.displayName,d1&&Object.defineProperty(c,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(c.contextTypes=n.contextTypes,process.env.NODE_ENV!=="production"&&tv&&(tv=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),r&&(c=R.forwardRef(c)),c=R.memo(c),p1(n,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var f,d;throw new Error("[mobx-react-lite] `".concat(this.displayName||((f=this.type)===null||f===void 0?void 0:f.displayName)||((d=this.type)===null||d===void 0?void 0:d.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var h1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function p1(n,e){Object.keys(n).forEach(function(t){h1[t]||Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}process.env.NODE_ENV;var jc;e1(ho.unstable_batchedUpdates),jc=Mc.finalizeAllImmediately;function Fc(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function v1(n){if(Array.isArray(n))return n}function g1(n){if(Array.isArray(n))return Fc(n)}function m1(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b1(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,av(r.key),r)}}function y1(n,e,t){return e&&b1(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function hs(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$c(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
96
+ Use 'override' annotation for methods overridden by subclass.`)}}var sS=np(0),uS=(function(){var n=!1,e={};return Object.defineProperty(e,"0",{set:function(){n=!0}}),Object.create(e)[0]=1,n===!1})(),ic=0,tp=function(){};function cS(n,e){Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,e):n.prototype.__proto__!==void 0?n.prototype.__proto__=e:n.prototype=e}cS(tp,Array.prototype);var oc=(function(n){function e(r,o,s,c){var f;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),c===void 0&&(c=!1),f=n.call(this)||this,$r(function(){var d=new nc(s,o,c,!0);d.proxy_=f,ah(f,be,d),r&&r.length&&f.spliceWithArray(0,0,r),uS&&Object.defineProperty(f,"0",sS)}),f}fh(e,n);var t=e.prototype;return t.concat=function(){this[be].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),s.map(function(f){return ko(f)?f.slice():f}))},t[Symbol.iterator]=function(){var r=this,o=0;return sc({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},Pi(e,[{key:"length",get:function(){return this[be].getArrayLength_()},set:function(o){this[be].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(tp);Object.entries(Ya).forEach(function(n){var e=n[0],t=n[1];e!=="concat"&&Ao(oc.prototype,e,t)});function np(n){return{enumerable:!1,configurable:!0,get:function(){return this[be].get_(n)},set:function(t){this[be].set_(n,t)}}}function fS(n){Qn(oc.prototype,""+n,np(n))}function rp(n){if(n>ic){for(var e=ic;e<n+100;e++)fS(e);ic=n}}rp(1e3);function lS(n,e,t){return new oc(n,e,t)}function ji(n,e){if(typeof n=="object"&&n!==null){if(ko(n))return e!==void 0&&ie(23),n[be].atom_;if(Wn(n))return n.atom_;if(pr(n)){if(e===void 0)return n.keysAtom_;var t=n.data_.get(e)||n.hasMap_.get(e);return t||ie(25,e,Ka(n)),t}if(hi(n)){if(!e)return ie(26);var r=n[be].values_.get(e);return r||ie(27,e,Ka(n)),r}if(Vu(n)||Do(n)||Ha(n))return n}else if(gt(n)&&Ha(n[be]))return n[be];ie(28)}function ip(n,e){if(n||ie(29),Vu(n)||Do(n)||Ha(n)||pr(n)||Wn(n))return n;if(n[be])return n[be];ie(24,n)}function Ka(n,e){var t;if(e!==void 0)t=ji(n,e);else{if(fi(n))return n.name;hi(n)||pr(n)||Wn(n)?t=ip(n):t=ji(n)}return t.name_}function $r(n){var e=ui(),t=Hu(!0);bn();try{return n()}finally{yn(),qu(t),lr(e)}}var op=Eo.toString;function ap(n,e,t){return t===void 0&&(t=-1),ac(n,e,t)}function ac(n,e,t,r,o){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var s=typeof n;if(s!=="function"&&s!=="object"&&typeof e!="object")return!1;var c=op.call(n);if(c!==op.call(e))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(n)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":t>=0&&t++;break}n=sp(n),e=sp(e);var f=c==="[object Array]";if(!f){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(gt(d)&&d instanceof d&&gt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}if(t===0)return!1;t<0&&(t=-1),r=r||[],o=o||[];for(var v=r.length;v--;)if(r[v]===n)return o[v]===e;if(r.push(n),o.push(e),f){if(v=n.length,v!==e.length)return!1;for(;v--;)if(!ac(n[v],e[v],t-1,r,o))return!1}else{var b=Object.keys(n),w=b.length;if(Object.keys(e).length!==w)return!1;for(var y=0;y<w;y++){var O=b[y];if(!(vn(e,O)&&ac(n[O],e[O],t-1,r,o)))return!1}}return r.pop(),o.pop(),!0}function sp(n){return ko(n)?n.slice():Di(n)||pr(n)||cr(n)||Wn(n)?Array.from(n.entries()):n}var up,dS=((up=xa().Iterator)==null?void 0:up.prototype)||{};function sc(n){return n[Symbol.iterator]=hS,Object.assign(Object.create(dS),n)}function hS(){return this}function cp(n){return n instanceof Object&&typeof n.annotationType_=="string"&&gt(n.make_)&&gt(n.extend_)}["Symbol","Map","Set"].forEach(function(n){var e=xa();typeof e[n]>"u"&&ie("MobX requires global '"+n+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Aw,extras:{getDebugName:Ka},$mobx:be});var pS=Object.getOwnPropertyDescriptor,vS=(n,e,t,r)=>{for(var o=r>1?void 0:r?pS(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o},gS=(n,e)=>(t,r)=>e(t,r,n);Fe.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(e){this.service=e,Zw(this,{service:!1},{autoBind:!0})}setLayout=e=>{this.layout=e};setTabTitle=(e,t)=>{this.tabTitleMap.set($e.toString(e),t)};getTabTitle=e=>this.tabTitleMap.get($e.toString(e));setTabTitleTooltip=(e,t)=>{this.tabTitleTooltipMap.set($e.toString(e),t)};getTabTitleTooltip=e=>this.tabTitleTooltipMap.get($e.toString(e));setFullScreenLayoutByBranch=e=>{e===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,e)};setFullScreenHideTitle=e=>{this.fullScreenHideTitle=e};addTab=e=>{const t=this.service.getTabBranch(this.layout,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=e=>{const t=this.service.getTabNodeInfoByNodeName(this.layout,e.nodeName,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t.branch,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=e=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);cloneTab=e=>{const t=this.service.getBranchByWinId(this.layout,e.justId);if(t==null)return;const r=this.service.getNodeAtBranch(this.layout,t);let o=0;r?.type==="stack"&&r.active!=null&&(o=$e.indexOf(r.tabs,e.justId)+1),this.layout=this.service.addTabWin(this.layout,t,e.cloneJustId,o),this.lastActiveId=e.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=e=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,e.justId))};removeAllTabs=e=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,e.branch))};activeWin=e=>{this.layout=this.service.activeWinId(this.layout,e.justId),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)-1+t.tabs.length)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};activeNextWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)+1)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};updateResize=e=>{this.layout=this.service.updateSplitSize(this.layout,e.branch,e.size)};moveWin=e=>{e.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,e)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,e)),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const e=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:e})};toggleWin=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r==null||r.node.type!=="split-pixels")return;const o=r.node.primaryHide!==!0,s=!o||r.node.size<10?r.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(r.branch,{$merge:{size:s,primaryHide:o}}),f=this.service.updateNode(t,c);f!=null&&this.setLayout(f)};showWin=({nodeName:e,show:t})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,e,[]);if(o!=null&&o.node.type==="split-pixels"&&t===(o.node.size===0)){const s=t?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:s}}),f=this.service.updateNode(r,c);if(f==null)return;this.setLayout(f)}};getSizeByNodeName=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"||r.node.type==="split-percentage"?r.node.size:null};getBranchByJustId=({justId:e})=>{const t=this.layout;return this.service.getBranchByWinId(t,e)};isPrimaryHide=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"?r.node.primaryHide:null};openWin=({justId:e})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTab({justId:e})};openWinByNodeName=({justId:e,nodeName:t})=>{this.service.hasWinId(this.layout??null,e)?(console.log("hasWinId",e),this.activeWin({justId:e})):(console.log("addTabByNodeName",e),this.addTabByNodeName({justId:e,nodeName:t}))};getWinIds=({viewId:e})=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);getDupWinIds=({justId:e})=>this.service.queryDupWinIdsByWinId(this.layout??null,e,[]);getWinIdsByBranch=({branch:e})=>this.service.queryWinIdsByStack(this.layout??null,e);getNodeAtBranch=({branch:e})=>this.service.getNodeAtBranch(this.layout??null,e);openWinMenu=({justId:e,nodeName:t})=>{const r=e.viewId,o=this.getWinIds({viewId:r});if(o.length===0)console.log("openWinMenu1",o,e),this.openWinByNodeName({justId:e,nodeName:t});else{const s=o.toSorted((c,f)=>(c.dupId??"")<=(f.dupId??"")?-1:1).at(-1);s&&(console.log("openWinMenu2",o,s),this.openWinByNodeName({justId:s,nodeName:t}))}};fullScreenWin=async(e,t,r=!1)=>{t?this.setLayout(null):(this.setFullScreenLayoutByBranch(e),this.setFullScreenHideTitle(r))}},Fe.JustLayoutStore=vS([gd(),gS(0,h_(ii.JustLayoutService))],Fe.JustLayoutStore);const fp=new H_(({bind:n})=>{n(ii.JustLayoutService).to(Fe.JustLayoutService).inSingletonScope(),n(ii.JustLayoutStore).to(Fe.JustLayoutStore).inTransientScope(),n(ii.JustLayoutFactory).toFactory(e=>t=>{if(!Bo.has(t)){const r=Xa.get(ii.JustLayoutStore);Bo.set(t,r)}return Bo.get(t)})}),Xa=new r0,mS=[fp];Xa.load(...mS);const Bo=new Map;window.storeLayout=Bo,window.toJS=qw;const nr=n=>{const[e]=R.useState(()=>Xa.get(ii.JustLayoutFactory)(n));return e},lp=R.createContext({dragDropManager:void 0});function Sn(n){return"Minified Redux error #"+n+"; visit https://redux.js.org/Errors?code="+n+" for the full message or use the non-minified dev environment for full errors. "}var dp=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),hp=function(){return Math.random().toString(36).substring(7).split("").join(".")},pp={INIT:"@@redux/INIT"+hp(),REPLACE:"@@redux/REPLACE"+hp()};function bS(n){if(typeof n!="object"||n===null)return!1;for(var e=n;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e}function yS(n){if(n===void 0)return"undefined";if(n===null)return"null";var e=typeof n;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(n))return"array";if(SS(n))return"date";if(wS(n))return"error";var t=_S(n);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function _S(n){return typeof n.constructor=="function"?n.constructor.name:null}function wS(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function SS(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function Fi(n){var e=typeof n;return process.env.NODE_ENV!=="production"&&(e=yS(n)),e}function vp(n,e,t){var r;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Sn(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 e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(1):"Expected the enhancer to be a function. Instead, received: '"+Fi(t)+"'");return t(vp)(n,e)}if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(2):"Expected the root reducer to be a function. Instead, received: '"+Fi(n)+"'");var o=n,s=e,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function v(){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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 s}function b(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(4):"Expected the listener to be a function. Instead, received: '"+Fi(S)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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 A=!0;return p(),f.push(S),function(){if(A){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(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.");A=!1,p();var k=f.indexOf(S);f.splice(k,1),c=null}}}function w(S){if(!bS(S))throw new Error(process.env.NODE_ENV==="production"?Sn(7):"Actions must be plain objects. Instead, the actual type was: '"+Fi(S)+"'. 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 S.type>"u")throw new Error(process.env.NODE_ENV==="production"?Sn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(9):"Reducers may not dispatch actions.");try{d=!0,s=o(s,S)}finally{d=!1}for(var A=c=f,x=0;x<A.length;x++){var k=A[x];k()}return S}function y(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(10):"Expected the nextReducer to be a function. Instead, received: '"+Fi(S));o=S,w({type:pp.REPLACE})}function O(){var S,A=b;return S={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?Sn(11):"Expected the observer to be an object. Instead, received: '"+Fi(k)+"'");function G(){k.next&&k.next(v())}G();var oe=A(G);return{unsubscribe:oe}}},S[dp]=function(){return this},S}return w({type:pp.INIT}),r={dispatch:w,subscribe:b,getState:v,replaceReducer:y},r[dp]=O,r}function Ae(n,e,...t){if(OS()&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(e.replace(/%s/g,function(){return t[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function OS(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function ES(n,e,t){return e.split(".").reduce((r,o)=>r&&r[o]?r[o]:t||null,n)}function IS(n,e){return n.filter(t=>t!==e)}function gp(n){return typeof n=="object"}function AS(n,e){const t=new Map,r=s=>{t.set(s,t.has(s)?t.get(s)+1:1)};n.forEach(r),e.forEach(r);const o=[];return t.forEach((s,c)=>{s===1&&o.push(c)}),o}function TS(n,e){return n.filter(t=>e.indexOf(t)>-1)}const uc="dnd-core/INIT_COORDS",Za="dnd-core/BEGIN_DRAG",cc="dnd-core/PUBLISH_DRAG_SOURCE",Qa="dnd-core/HOVER",es="dnd-core/DROP",ts="dnd-core/END_DRAG";function mp(n,e){return{type:uc,payload:{sourceClientOffset:e||null,clientOffset:n||null}}}const xS={type:uc,payload:{clientOffset:null,sourceClientOffset:null}};function NS(n){return function(t=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:s,getSourceClientOffset:c}=r,f=n.getMonitor(),d=n.getRegistry();n.dispatch(mp(s)),DS(t,f,d);const p=MS(t,f);if(p==null){n.dispatch(xS);return}let v=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");CS(c),v=c(p)}n.dispatch(mp(s,v));const w=d.getSource(p).beginDrag(f,p);if(w==null)return;PS(w),d.pinSource(p);const y=d.getSourceType(p);return{type:Za,payload:{itemType:y,item:w,sourceId:p,clientOffset:s||null,sourceClientOffset:v||null,isSourcePublic:!!o}}}}function DS(n,e,t){Ae(!e.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(r){Ae(t.getSource(r),"Expected sourceIds to be registered.")})}function CS(n){Ae(typeof n=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function PS(n){Ae(gp(n),"Item must be an object.")}function MS(n,e){let t=null;for(let r=n.length-1;r>=0;r--)if(e.canDragSource(n[r])){t=n[r];break}return t}function RS(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function LS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){RS(n,o,t[o])})}return n}function kS(n){return function(t={}){const r=n.getMonitor(),o=n.getRegistry();BS(r),$S(r).forEach((c,f)=>{const d=jS(c,f,o,r),p={type:es,payload:{dropResult:LS({},t,d)}};n.dispatch(p)})}}function BS(n){Ae(n.isDragging(),"Cannot call drop while not dragging."),Ae(!n.didDrop(),"Cannot call drop twice during one drag operation.")}function jS(n,e,t,r){const o=t.getTarget(n);let s=o?o.drop(r,n):void 0;return FS(s),typeof s>"u"&&(s=e===0?{}:r.getDropResult()),s}function FS(n){Ae(typeof n>"u"||gp(n),"Drop result must either be an object or undefined.")}function $S(n){const e=n.getTargetIds().filter(n.canDropOnTarget,n);return e.reverse(),e}function VS(n){return function(){const t=n.getMonitor(),r=n.getRegistry();WS(t);const o=t.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(t,o),r.unpinSource()),{type:ts}}}function WS(n){Ae(n.isDragging(),"Cannot call endDrag while not dragging.")}function fc(n,e){return e===null?n===null:Array.isArray(n)?n.some(t=>t===e):n===e}function US(n){return function(t,{clientOffset:r}={}){zS(t);const o=t.slice(0),s=n.getMonitor(),c=n.getRegistry(),f=s.getItemType();return qS(o,c,f),HS(o,s,c),GS(o,s,c),{type:Qa,payload:{targetIds:o,clientOffset:r||null}}}}function zS(n){Ae(Array.isArray(n),"Expected targetIds to be an array.")}function HS(n,e,t){Ae(e.isDragging(),"Cannot call hover while not dragging."),Ae(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<n.length;r++){const o=n[r];Ae(n.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const s=t.getTarget(o);Ae(s,"Expected targetIds to be registered.")}}function qS(n,e,t){for(let r=n.length-1;r>=0;r--){const o=n[r],s=e.getTargetType(o);fc(s,t)||n.splice(r,1)}}function GS(n,e,t){n.forEach(function(r){t.getTarget(r).hover(e,r)})}function YS(n){return function(){if(n.getMonitor().isDragging())return{type:cc}}}function JS(n){return{beginDrag:NS(n),publishDragSource:YS(n),hover:US(n),drop:kS(n),endDrag:VS(n)}}class KS{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;function r(s){return(...c)=>{const f=s.apply(e,c);typeof f<"u"&&t(f)}}const o=JS(this);return Object.keys(o).reduce((s,c)=>{const f=o[c];return s[c]=r(f),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function XS(n,e){return{x:n.x+e.x,y:n.y+e.y}}function bp(n,e){return{x:n.x-e.x,y:n.y-e.y}}function ZS(n){const{clientOffset:e,initialClientOffset:t,initialSourceClientOffset:r}=n;return!e||!t||!r?null:bp(XS(e,r),t)}function QS(n){const{clientOffset:e,initialClientOffset:t}=n;return!e||!t?null:bp(e,t)}const jo=[],lc=[];jo.__IS_NONE__=!0,lc.__IS_ALL__=!0;function eO(n,e){return n===jo?!1:n===lc||typeof e>"u"?!0:TS(e,n).length>0}class tO{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Ae(typeof e=="function","listener must be a function."),Ae(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const s=()=>{const c=this.store.getState(),f=c.stateId;try{f===o||f===o+1&&!eO(c.dirtyHandlerIds,r)||e()}finally{o=f}};return this.store.subscribe(s)}subscribeToOffsetChange(e){Ae(typeof e=="function","listener must be a function.");let t=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==t&&(t=o,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ae(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(Ae(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();return fc(r,o)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(Ae(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),o=this.getItemType();return r!==o?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),s=this.getItemType();if(s&&!fc(o,s))return!1;const c=this.getTargetIds();if(!c.length)return!1;const f=c.indexOf(e);return r?f===c.length-1:f>-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 ZS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const yp=typeof global<"u"?global:self,_p=yp.MutationObserver||yp.WebKitMutationObserver;function wp(n){return function(){const t=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(t),clearInterval(r),n()}}}function nO(n){let e=1;const t=new _p(n),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const rO=typeof _p=="function"?nO:wp;class iO{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let r=0,o=e.length-this.index;r<o;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=rO(this.flush),this.requestErrorThrow=wp(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class oO{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class aO{create(e){const t=this.freeTasks,r=t.length?t.pop():new oO(this.onError,o=>t[t.length]=o);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const Sp=new iO,sO=new aO(Sp.registerPendingError);function uO(n){Sp.enqueueTask(sO.create(n))}const dc="dnd-core/ADD_SOURCE",hc="dnd-core/ADD_TARGET",pc="dnd-core/REMOVE_SOURCE",ns="dnd-core/REMOVE_TARGET";function cO(n){return{type:dc,payload:{sourceId:n}}}function fO(n){return{type:hc,payload:{targetId:n}}}function lO(n){return{type:pc,payload:{sourceId:n}}}function dO(n){return{type:ns,payload:{targetId:n}}}function hO(n){Ae(typeof n.canDrag=="function","Expected canDrag to be a function."),Ae(typeof n.beginDrag=="function","Expected beginDrag to be a function."),Ae(typeof n.endDrag=="function","Expected endDrag to be a function.")}function pO(n){Ae(typeof n.canDrop=="function","Expected canDrop to be a function."),Ae(typeof n.hover=="function","Expected hover to be a function."),Ae(typeof n.drop=="function","Expected beginDrag to be a function.")}function vc(n,e){if(e&&Array.isArray(n)){n.forEach(t=>vc(t,!1));return}Ae(typeof n=="string"||typeof n=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var On;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(On||(On={}));let vO=0;function gO(){return vO++}function mO(n){const e=gO().toString();switch(n){case On.SOURCE:return`S${e}`;case On.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${n}`)}}function Op(n){switch(n[0]){case"S":return On.SOURCE;case"T":return On.TARGET;default:throw new Error(`Cannot parse handler ID: ${n}`)}}function Ep(n,e){const t=n.entries();let r=!1;do{const{done:o,value:[,s]}=t.next();if(s===e)return!0;r=!!o}while(!r);return!1}class bO{addSource(e,t){vc(e),hO(t);const r=this.addHandler(On.SOURCE,e,t);return this.store.dispatch(cO(r)),r}addTarget(e,t){vc(e,!0),pO(t);const r=this.addHandler(On.TARGET,e,t);return this.store.dispatch(fO(r)),r}containsHandler(e){return Ep(this.dragSources,e)||Ep(this.dropTargets,e)}getSource(e,t=!1){return Ae(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ae(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Op(e)===On.SOURCE}isTargetId(e){return Op(e)===On.TARGET}removeSource(e){Ae(this.getSource(e),"Expected an existing source."),this.store.dispatch(lO(e)),uO(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ae(this.getTarget(e),"Expected an existing target."),this.store.dispatch(dO(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ae(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ae(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const o=mO(e);return this.types.set(o,t),e===On.SOURCE?this.dragSources.set(o,r):e===On.TARGET&&this.dropTargets.set(o,r),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const yO=(n,e)=>n===e;function _O(n,e){return!n&&!e?!0:!n||!e?!1:n.x===e.x&&n.y===e.y}function wO(n,e,t=yO){if(n.length!==e.length)return!1;for(let r=0;r<n.length;++r)if(!t(n[r],e[r]))return!1;return!0}function SO(n=jo,e){switch(e.type){case Qa:break;case dc:case hc:case ns:case pc:return jo;case Za:case cc:case ts:case es:default:return lc}const{targetIds:t=[],prevTargetIds:r=[]}=e.payload,o=AS(t,r);if(!(o.length>0||!wO(t,r)))return jo;const c=r[r.length-1],f=t[t.length-1];return c!==f&&(c&&o.push(c),f&&o.push(f)),o}function OO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){OO(n,o,t[o])})}return n}const Ip={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function IO(n=Ip,e){const{payload:t}=e;switch(e.type){case uc:case Za:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case Qa:return _O(n.clientOffset,t.clientOffset)?n:EO({},n,{clientOffset:t.clientOffset});case ts:case es:return Ip;default:return n}}function AO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $i(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){AO(n,o,t[o])})}return n}const TO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function xO(n=TO,e){const{payload:t}=e;switch(e.type){case Za:return $i({},n,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case cc:return $i({},n,{isSourcePublic:!0});case Qa:return $i({},n,{targetIds:t.targetIds});case ns:return n.targetIds.indexOf(t.targetId)===-1?n:$i({},n,{targetIds:IS(n.targetIds,t.targetId)});case es:return $i({},n,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ts:return $i({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function NO(n=0,e){switch(e.type){case dc:case hc:return n+1;case pc:case ns:return n-1;default:return n}}function DO(n=0){return n+1}function CO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){CO(n,o,t[o])})}return n}function MO(n={},e){return{dirtyHandlerIds:SO(n.dirtyHandlerIds,{type:e.type,payload:PO({},e.payload,{prevTargetIds:ES(n,"dragOperation.targetIds",[])})}),dragOffset:IO(n.dragOffset,e),refCount:NO(n.refCount,e),dragOperation:xO(n.dragOperation,e),stateId:DO(n.stateId)}}function RO(n,e=void 0,t={},r=!1){const o=LO(r),s=new tO(o,new bO(o)),c=new KS(o,s),f=n(c,e,t);return c.receiveBackend(f),c}function LO(n){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return vp(MO,n&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function kO(n,e){if(n==null)return{};var t=BO(n,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BO(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}let Ap=0;const rs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var jO=R.memo(function(e){var{children:t}=e,r=kO(e,["children"]);const[o,s]=FO(r);return R.useEffect(()=>{if(s){const c=Tp();return++Ap,()=>{--Ap===0&&(c[rs]=null)}}},[]),Q.jsx(lp.Provider,{value:o,children:t})});function FO(n){if("manager"in n)return[{dragDropManager:n.manager},!1];const e=$O(n.backend,n.context,n.options,n.debugMode),t=!n.context;return[e,t]}function $O(n,e=Tp(),t,r){const o=e;return o[rs]||(o[rs]={dragDropManager:RO(n,e,t,r)}),o[rs]}function Tp(){return typeof global<"u"?global:window}var gc,xp;function VO(){return xp||(xp=1,gc=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var c=s[o];if(!n(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}),gc}var WO=VO();const UO=po(WO),pi=typeof window<"u"?R.useLayoutEffect:R.useEffect;function zO(n,e,t){const[r,o]=R.useState(()=>e(n)),s=R.useCallback(()=>{const c=e(n);UO(r,c)||(o(c),t&&t())},[r,n,t]);return pi(s),[r,s]}function HO(n,e,t){const[r,o]=zO(n,e,t);return pi(function(){const c=n.getHandlerId();if(c!=null)return n.subscribeToStateChange(o,{handlerIds:[c]})},[n,o]),r}function Np(n,e,t){return HO(e,n||(()=>({})),()=>t.reconnect())}function Dp(n,e){const t=[...e||[]];return e==null&&typeof n!="function"&&t.push(n),R.useMemo(()=>typeof n=="function"?n():n,t)}function qO(n){return R.useMemo(()=>n.hooks.dragSource(),[n])}function GO(n){return R.useMemo(()=>n.hooks.dragPreview(),[n])}let mc=!1,bc=!1;class YO{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ae(!mc,"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 mc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mc=!1}}isDragging(){if(!this.sourceId)return!1;Ae(!bc,"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 bc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{bc=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}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(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let yc=!1;class JO{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ae(!yc,"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 yc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{yc=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!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(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function KO(n,e,t){const r=t.getRegistry(),o=r.addTarget(n,e);return[o,()=>r.removeTarget(o)]}function XO(n,e,t){const r=t.getRegistry(),o=r.addSource(n,e);return[o,()=>r.removeSource(o)]}function _c(n,e,t,r){let o;if(o!==void 0)return!!o;if(n===e)return!0;if(typeof n!="object"||!n||typeof e!="object"||!e)return!1;const s=Object.keys(n),c=Object.keys(e);if(s.length!==c.length)return!1;const f=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<s.length;d++){const p=s[d];if(!f(p))return!1;const v=n[p],b=e[p];if(o=void 0,o===!1||o===void 0&&v!==b)return!1}return!0}function wc(n){return n!==null&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function ZO(n){if(typeof n.type=="string")return;const e=n.type.displayName||n.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function QO(n){return(e=null,t=null)=>{if(!R.isValidElement(e)){const s=e;return n(s,t),s}const r=e;return ZO(r),eE(r,t?s=>n(s,t):n)}}function Cp(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];if(t.endsWith("Ref"))e[t]=n[t];else{const o=QO(r);e[t]=()=>o}}),e}function Pp(n,e){typeof n=="function"?n(e):n.current=e}function eE(n,e){const t=n.ref;return Ae(typeof t!="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"),t?R.cloneElement(n,{ref:r=>{Pp(t,r),Pp(e,r)}}):R.cloneElement(n,{ref:e})}class tE{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!_c(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_c(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(e){this.hooks=Cp({dragSource:(t,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,wc(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,wc(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,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=e}}class nE{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!_c(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(e){this.hooks=Cp({dropTarget:(t,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,wc(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Vi(){const{dragDropManager:n}=R.useContext(lp);return Ae(n!=null,"Expected drag drop context"),n}function rE(n,e){const t=Vi(),r=R.useMemo(()=>new tE(t.getBackend()),[t]);return pi(()=>(r.dragSourceOptions=n||null,r.reconnect(),()=>r.disconnectDragSource()),[r,n]),pi(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function iE(){const n=Vi();return R.useMemo(()=>new YO(n),[n])}class oE{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(t):r={},r??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const r=this.spec,o=this.monitor,{isDragging:s}=r;return s?s(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:o}=e;o&&o(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function aE(n,e,t){const r=R.useMemo(()=>new oE(n,e,t),[e,t]);return R.useEffect(()=>{r.spec=n},[n]),r}function sE(n){return R.useMemo(()=>{const e=n.type;return Ae(e!=null,"spec.type must be defined"),e},[n])}function uE(n,e,t){const r=Vi(),o=aE(n,e,t),s=sE(n);pi(function(){if(s!=null){const[f,d]=XO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d}},[r,e,t,o,s])}function cE(n,e){const t=Dp(n,e);Ae(!t.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 r=iE(),o=rE(t.options,t.previewOptions);return uE(t,r,o),[Np(t.collect,r,o),qO(o),GO(o)]}function fE(n){return R.useMemo(()=>n.hooks.dropTarget(),[n])}function lE(n){const e=Vi(),t=R.useMemo(()=>new nE(e.getBackend()),[e]);return pi(()=>(t.dropTargetOptions=n||null,t.reconnect(),()=>t.disconnectDropTarget()),[n]),t}function dE(){const n=Vi();return R.useMemo(()=>new JO(n),[n])}function hE(n){const{accept:e}=n;return R.useMemo(()=>(Ae(n.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class pE{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function vE(n,e){const t=R.useMemo(()=>new pE(n,e),[e]);return R.useEffect(()=>{t.spec=n},[n]),t}function gE(n,e,t){const r=Vi(),o=vE(n,e),s=hE(n);pi(function(){const[f,d]=KO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d},[r,e,o,t,s.map(c=>c.toString()).join("|")])}function Sc(n,e){const t=Dp(n,e),r=dE(),o=lE(t.options);return gE(t,r,o),[Np(t.collect,r,o),fE(o)]}var Oc={exports:{}};var Mp;function mE(){return Mp||(Mp=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,r(f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)e.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Oc)),Oc.exports}var bE=mE();const Un=po(bE),Rp=n=>!!n&&n[0]==="o",Lp=ho.unstable_batchedUpdates,Fo=(n,e)=>n===!0||!!(n&&n[e]),En=(n,e)=>typeof n=="function"?n(e):n,yE="_szhsinMenu",_E=n=>n[yE],is=(n,e)=>(e&&Object.keys(e).forEach(t=>{const r=n[t],o=e[t];typeof o=="function"&&r?n[t]=(...s)=>{o(...s),r(...s)}:n[t]=o}),n),wE=n=>{if(typeof n!="string")return{top:0,right:0,bottom:0,left:0};const e=n.trim().split(/\s+/,4).map(parseFloat),t=isNaN(e[0])?0:e[0],r=isNaN(e[1])?t:e[1];return{top:t,right:r,bottom:isNaN(e[2])?t:e[2],left:isNaN(e[3])?r:e[3]}},Ec=n=>{for(;n;){if(n=n.parentNode,!n||n===document.body||!n.parentNode)return;const{overflow:e,overflowX:t,overflowY:r}=getComputedStyle(n);if(/auto|scroll|overlay|hidden/.test(e+r+t))return n}};function kp(n,e){return{"aria-disabled":n||void 0,tabIndex:e?0:-1}}function Bp(n,e){for(let t=0;t<n.length;t++)if(n[t]===e)return t;return-1}const os=({block:n,element:e,modifiers:t,className:r})=>R.useMemo(()=>{const o=e?`${n}__${e}`:n;let s=o;t&&Object.keys(t).forEach(f=>{const d=t[f];d&&(s+=` ${o}--${d===!0?f:`${f}-${d}`}`)});let c=typeof r=="function"?r(t):r;return typeof c=="string"&&(c=c.trim(),c&&(s+=` ${c}`)),s},[n,e,t,r]),SE="szh-menu-container",as="szh-menu",OE="arrow",EE="item",jp=R.createContext(),Fp=R.createContext({}),$p=R.createContext({}),Vp=R.createContext({}),IE=R.createContext({}),Ic=R.createContext({}),zn=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),mt=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),$o=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Vo=Object.freeze({FIRST:"first",LAST:"last"}),AE=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Wp="absolute",TE="none",xE="menuitem",Ac={preventScroll:!0},NE=({className:n,containerRef:e,containerProps:t,children:r,isOpen:o,theming:s,transition:c,onClose:f})=>{const d=Fo(c,"item"),p=({key:b})=>{b===zn.ESC&&En(f,{key:b,reason:$o.CANCEL})},v=b=>{o&&!b.currentTarget.contains(b.relatedTarget)&&En(f,{reason:$o.BLUR})};return Q.jsx("div",{...is({onKeyDown:p,onBlur:v},t),className:os({block:SE,modifiers:R.useMemo(()=>({theme:s,itemTransition:d}),[s,d]),className:n}),style:{position:"absolute",...t?.style},ref:e,children:r})},DE=()=>{let n,e=0;return{toggle:t=>{t?e++:e--,e=Math.max(e,0)},on:(t,r,o)=>{e?n||(n=setTimeout(()=>{n=0,r()},t)):o?.()},off:()=>{n&&(clearTimeout(n),n=0)}}},CE=n=>{const[e,t]=R.useState(),o=R.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=R.useCallback((f,d)=>{const{items:p}=o;if(!f)o.items=[];else if(d)p.push(f);else{const v=p.indexOf(f);v>-1&&(p.splice(v,1),f.contains(document.activeElement)&&(n.current.focus(Ac),t()))}o.hoverIndex=-1,o.sorted=!1},[o,n]),c=R.useCallback((f,d,p)=>{const{items:v,hoverIndex:b}=o,w=()=>{if(o.sorted)return;const S=n.current.querySelectorAll(".szh-menu__item");v.sort((A,x)=>Bp(S,A)-Bp(S,x)),o.sorted=!0};let y=-1,O;switch(f){case mt.RESET:break;case mt.SET:O=d;break;case mt.UNSET:O=S=>S===d?void 0:S;break;case mt.FIRST:w(),y=0,O=v[y];break;case mt.LAST:w(),y=v.length-1,O=v[y];break;case mt.SET_INDEX:w(),y=p,O=v[y];break;case mt.INCREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y++,y>=v.length&&(y=0),O=v[y];break;case mt.DECREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y--,y<0&&(y=v.length-1),O=v[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${f}`)}O||(y=-1),t(O),o.hoverIndex=y},[n,o]);return{hoverItem:e,dispatch:c,updateItems:s}},Up=(n,e)=>Math.round(n)===e?n:e,PE=n=>{const e=n.getBoundingClientRect();return e.width=Up(e.width,n.offsetWidth),e.height=Up(e.height,n.offsetHeight),e},ME=(n,e,t,r)=>{const o=PE(e),s=n.getBoundingClientRect(),c=t===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:t.getBoundingClientRect(),f=wE(r),d=O=>O+s.left-c.left-f.left,p=O=>O+s.left+o.width-c.right+f.right,v=O=>O+s.top-c.top-f.top,b=O=>O+s.top+o.height-c.bottom+f.bottom;return{menuRect:o,containerRect:s,getLeftOverflow:d,getRightOverflow:p,getTopOverflow:v,getBottomOverflow:b,confineHorizontally:O=>{let S=d(O);if(S<0)O-=S;else{const A=p(O);A>0&&(O-=A,S=d(O),S<0&&(O-=S))}return O},confineVertically:O=>{let S=v(O);if(S<0)O-=S;else{const A=b(O);A>0&&(O-=A,S=v(O),S<0&&(O-=S))}return O}}},RE=({arrowRef:n,menuY:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.top-r.top-e+t.height/2;const c=n.current.offsetHeight*1.25;return s=Math.max(c,s),s=Math.min(s,o.height-c),s},LE=({anchorRect:n,containerRect:e,menuRect:t,placeLeftorRightY:r,placeLeftX:o,placeRightX:s,getLeftOverflow:c,getRightOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w,S=r;y!=="initial"&&(S=p(S),y==="anchor"&&(S=Math.min(S,n.bottom-e.top),S=Math.max(S,n.top-e.top-t.height)));let A,x,k;return O==="left"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="right")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="left")))),y==="auto"&&(A=d(A)),{arrowY:b?RE({menuY:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:A,y:S,computedDirection:O}},kE=({arrowRef:n,menuX:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.left-r.left-e+t.width/2;const c=n.current.offsetWidth*1.25;return s=Math.max(c,s),s=Math.min(s,o.width-c),s},BE=({anchorRect:n,containerRect:e,menuRect:t,placeToporBottomX:r,placeTopY:o,placeBottomY:s,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w==="top"?"top":"bottom",S=r;y!=="initial"&&(S=d(S),y==="anchor"&&(S=Math.min(S,n.right-e.left),S=Math.max(S,n.left-e.left-t.width)));let A,x,k;return O==="top"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="bottom")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="top")))),y==="auto"&&(A=p(A)),{arrowX:b?kE({menuX:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:S,y:A,computedDirection:O}},jE=({arrow:n,align:e,direction:t,gap:r,shift:o,position:s,anchorRect:c,arrowRef:f,positionHelpers:d})=>{const{menuRect:p,containerRect:v}=d,b=t==="left"||t==="right";let w=b?r:o,y=b?o:r;if(n){const q=f.current;b?w+=q.offsetWidth:y+=q.offsetHeight}const O=c.left-v.left-p.width-w,S=c.right-v.left+w,A=c.top-v.top-p.height-y,x=c.bottom-v.top+y;let k,G;e==="end"?(k=c.right-v.left-p.width,G=c.bottom-v.top-p.height):e==="center"?(k=c.left-v.left-(p.width-c.width)/2,G=c.top-v.top-(p.height-c.height)/2):(k=c.left-v.left,G=c.top-v.top),k+=w,G+=y;const oe={...d,anchorRect:c,placeLeftX:O,placeRightX:S,placeLeftorRightY:G,placeTopY:A,placeBottomY:x,placeToporBottomX:k,arrowRef:f,arrow:n,direction:t,position:s};switch(t){case"left":case"right":return LE(oe);default:return BE(oe)}},ss=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function zp(n,e){typeof n=="function"?n(e):n.current=e}const Tc=(n,e)=>R.useMemo(()=>n?e?t=>{zp(n,t),zp(e,t)}:n:e,[n,e]),Hp=-9999,FE=({ariaLabel:n,menuClassName:e,menuStyle:t,arrow:r,arrowProps:o={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:d,externalRef:p,parentScrollingRef:v,align:b="start",direction:w="bottom",position:y="auto",overflow:O="visible",setDownOverflow:S,repositionFlag:A,captureFocus:x=!0,state:k,endTransition:G,isDisabled:oe,menuItemFocus:q,gap:ye=0,shift:L=0,children:F,onClose:ae,focusProps:we,...ce})=>{const[Se,he]=R.useState({x:Hp,y:Hp}),[ct,ht]=R.useState({}),[ft,xt]=R.useState(),[ue,nn]=R.useState(w),[Pt]=R.useState(DE),[Le,wr]=R.useReducer(ne=>ne+1,1),{transition:pe,boundingBoxRef:Lt,boundingBoxPadding:rn,rootMenuRef:Ce,rootAnchorRef:ir,scrollNodesRef:$t,reposition:Vt,viewScroll:Sr,submenuCloseDelay:pt}=R.useContext(Ic),{submenuCtx:In,reposSubmenu:An=A}=R.useContext($p),Ke=R.useRef(),on=R.useRef(),Tn=R.useRef(!1),{hoverItem:at,dispatch:vt,updateItems:Gn}=CE(Ke),Qe=Rp(k),bt=Fo(pe,"open"),St=Fo(pe,"close"),P=$t.current,W=ne=>{switch(ne.key){case zn.HOME:vt(mt.FIRST);break;case zn.END:vt(mt.LAST);break;case zn.UP:vt(mt.DECREASE,at);break;case zn.DOWN:vt(mt.INCREASE,at);break;case zn.SPACE:ne.target&&ne.target.className.indexOf(as)!==-1&&ne.preventDefault();return;default:return}ne.preventDefault(),ne.stopPropagation()},U=()=>{k==="closing"&&xt(),En(G)},ee=ne=>{ne.stopPropagation(),Pt.on(pt,()=>{vt(mt.RESET),Ke.current.focus(Ac)})},le=ne=>{ne.target===ne.currentTarget&&Pt.off()},Be=R.useCallback(ne=>{const Y=Ke.current,K=f.current;if(!Y||!K)return;const te=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!te){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}P.menu||(P.menu=(Lt?Lt.current:Ec(Ce.current))||window);const X=ME(K,Y,P.menu,rn);let{arrowX:Ee,arrowY:He,x:et,y:yt,computedDirection:Ji}=jE({arrow:r,align:b,direction:w,gap:ye,shift:L,position:y,anchorRect:te,arrowRef:on,positionHelpers:X});const{menuRect:Xo}=X,Ki=Xo.height;if(!ne&&O!=="visible"){const{getTopOverflow:Zo,getBottomOverflow:zf}=X;let Or,Qo;const ea=zf(yt);if(ea>0)Or=Ki-ea,Qo=ea;else{const Xi=Zo(yt);Xi<0&&(Or=Ki+Xi,Qo=0-Xi,Or>=0&&(yt-=Xi))}Or>=0&&xt({height:Or,overflowAmt:Qo})}r&&ht({x:Ee,y:He}),he({x:et,y:yt}),nn(Ji)},[r,b,rn,w,ye,L,y,O,s,c,f,Lt,Ce,P]);ss(()=>{Qe&&(Be(),Tn.current&&wr()),Tn.current=Qe},[Qe,Be,An]),ss(()=>{ft&&!S&&(Ke.current.scrollTop=0)},[ft,S]),ss(()=>Gn,[Gn]),R.useEffect(()=>{let{menu:ne}=P;if(!Qe||!ne)return;if(ne=ne.addEventListener?ne:window,!P.anchors){P.anchors=[];let X=Ec(ir&&ir.current);for(;X&&X!==ne;)P.anchors.push(X),X=Ec(X)}let Y=Sr;if(P.anchors.length&&Y==="initial"&&(Y="auto"),Y==="initial")return;const K=()=>{Y==="auto"?Lp(()=>Be(!0)):En(ae,{reason:$o.SCROLL})},te=P.anchors.concat(Sr!=="initial"?ne:[]);return te.forEach(X=>X.addEventListener("scroll",K)),()=>te.forEach(X=>X.removeEventListener("scroll",K))},[ir,P,Qe,ae,Sr,Be]);const nt=!!ft&&ft.overflowAmt>0;R.useEffect(()=>{if(nt||!Qe||!v)return;const ne=()=>Lp(Be),Y=v.current;return Y.addEventListener("scroll",ne),()=>Y.removeEventListener("scroll",ne)},[Qe,nt,v,Be]),R.useEffect(()=>{if(!Qe||typeof ResizeObserver!="function"||Vt==="initial")return;const ne=[],Y=new ResizeObserver(X=>X.forEach(({target:Ee})=>{ne.indexOf(Ee)<0?ne.push(Ee):ho.flushSync(()=>{Be(),wr()})})),K={box:"border-box"};Y.observe(Ke.current,K);const te=c?.current;return te&&Y.observe(te,K),()=>Y.disconnect()},[Qe,Vt,c,Be]),R.useEffect(()=>{if(!Qe){vt(mt.RESET),St||xt();return}const{position:ne,alwaysUpdate:Y}=q||{},K=()=>{ne===Vo.FIRST?vt(mt.FIRST):ne===Vo.LAST?vt(mt.LAST):ne>=-1&&vt(mt.SET_INDEX,void 0,ne)};if(Y)K();else if(x){const te=setTimeout(()=>{const X=Ke.current;X&&!X.contains(document.activeElement)&&(X.focus(Ac),K())},bt?170:100);return()=>clearTimeout(te)}},[Qe,bt,St,x,q,vt]);const Nt=R.useMemo(()=>({isParentOpen:Qe,submenuCtx:Pt,dispatch:vt,updateItems:Gn}),[Qe,Pt,vt,Gn]);let it,I;ft&&(S?I=ft.overflowAmt:it=ft.height);const N=R.useMemo(()=>({reposSubmenu:Le,submenuCtx:Pt,overflow:O,overflowAmt:I,parentMenuRef:Ke,parentDir:ue}),[Le,Pt,O,I,ue]),C=it>=0?{maxHeight:it,overflow:O}:void 0,j=R.useMemo(()=>({state:k,align:b,dir:ue}),[k,b,ue]),Z=R.useMemo(()=>({dir:ue}),[ue]),_e=os({block:as,element:OE,modifiers:Z,className:o.className}),Me=Q.jsxs("ul",{role:"menu","aria-label":n,...kp(oe),...is({onPointerEnter:In?.off,onPointerMove:ee,onPointerLeave:le,onKeyDown:W,onAnimationEnd:U},ce),ref:Tc(p,Ke),className:os({block:as,modifiers:j,className:e}),style:{...t,...C,margin:0,display:k==="closed"?"none":void 0,position:Wp,left:Se.x,top:Se.y},children:[r&&Q.jsx("li",{"aria-hidden":!0,...o,className:_e,style:{display:"block",position:Wp,left:ct.x,top:ct.y,...o.style},ref:on}),Q.jsx($p.Provider,{value:N,children:Q.jsx(Fp.Provider,{value:Nt,children:Q.jsx(jp.Provider,{value:at,children:En(F,j)})})})]});return d?Q.jsx(NE,{...d,isOpen:Qe,children:Me}):Me},qp=R.forwardRef(function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,reposition:v="auto",submenuOpenDelay:b=300,submenuCloseDelay:w=150,viewScroll:y="initial",portal:O,theming:S,onItemClick:A,...x},k){const G=R.useRef(null),oe=R.useRef({}),{anchorRef:q,state:ye,onClose:L}=x,F=R.useMemo(()=>({initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,rootMenuRef:G,rootAnchorRef:q,scrollNodesRef:oe,reposition:v,viewScroll:y,submenuOpenDelay:b,submenuCloseDelay:w}),[o,s,c,f,q,d,p,v,y,b,w]),ae=R.useMemo(()=>({handleClick(ce,Se){ce.stopPropagation||En(A,ce);let he=ce.keepOpen;he===void 0&&(he=Se&&ce.key===zn.SPACE),he||En(L,{value:ce.value,key:ce.key,reason:$o.CLICK})},handleClose(ce){En(L,{key:ce,reason:$o.CLICK})}}),[A,L]);if(!ye)return null;const we=Q.jsx(Ic.Provider,{value:F,children:Q.jsx(Vp.Provider,{value:ae,children:Q.jsx(FE,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:G,containerProps:{className:t,containerRef:G,containerProps:r,theming:S,transition:c,onClose:L}})})});return O===!0&&typeof document<"u"?ho.createPortal(we,document.body):O?O.target?ho.createPortal(we,O.target):O.stablePosition?null:we:we}),xc=0,Nc=1,us=2,cs=3,fs=4,$E=5,Gp=6,VE=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Yp=n=>({_s:n,status:VE[n],isEnter:n<cs,isMounted:n!==Gp,isResolved:n===us||n>fs}),Dc=n=>n?Gp:$E,WE=(n,e)=>{switch(n){case Nc:case xc:return us;case fs:case cs:return Dc(e)}},UE=n=>typeof n=="object"?[n.enter,n.exit]:[n,n],Cc=setTimeout,zE=(n,e)=>Cc(()=>{isNaN(document.body.offsetTop)||n(e+1)},0),Jp=(n,e,t,r,o)=>{clearTimeout(r.current);const s=Yp(n);e(s),t.current=s,o&&o({current:s})},HE=({enter:n=!0,exit:e=!0,preEnter:t,preExit:r,timeout:o,initialEntered:s,mountOnEnter:c,unmountOnExit:f,onStateChange:d}={})=>{const[p,v]=R.useState(()=>Yp(s?us:Dc(c))),b=R.useRef(p),w=R.useRef(0),[y,O]=UE(o),S=R.useCallback(()=>{const A=WE(b.current._s,f);A&&Jp(A,v,b,w,d)},[d,f]);return[p,R.useCallback(A=>{const x=G=>{switch(Jp(G,v,b,w,d),G){case Nc:y>=0&&(w.current=Cc(S,y));break;case fs:O>=0&&(w.current=Cc(S,O));break;case xc:case cs:w.current=zE(x,G);break}},k=b.current.isEnter;typeof A!="boolean"&&(A=!k),A?!k&&x(n?t?xc:Nc:us):k&&x(e?r?cs:fs:Dc(f))},[S,d,n,e,t,r,y,O,f]),S]},Pc=({initialOpen:n,initialMounted:e,unmountOnClose:t,transition:r,transitionTimeout:o=500,onMenuChange:s}={})=>{const c=Fo(r,"open"),f=Fo(r,"close"),[{status:d},p,v]=HE({initialEntered:n,mountOnEnter:!e,unmountOnExit:t,timeout:o,enter:c,exit:f,onStateChange:R.useCallback(({current:{isEnter:b,isResolved:w}})=>{!s||b&&c&&w||!b&&f&&w||s({open:b})},[s,c,f])});return[{state:AE[d],endTransition:v},p]},qE=n=>{const[e,t]=Pc(n),[r,o]=R.useState(),s=(c,f)=>{o({position:c,alwaysUpdate:f}),t(!0)};return[{menuItemFocus:r,...e},t,s]},GE=(n,e)=>{if(process.env.NODE_ENV!=="production"&&typeof e!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[t]=R.useState({});return{onMouseDown:()=>{t.v=n&&n!=="closed"},onClick:r=>t.v?t.v=!1:e(!0,r)}},YE=parseInt(R.version)<19,Kp=R.forwardRef(function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:s,onMenuChange:c,...f},d){const[p,v,b]=qE({...f,onMenuChange:c}),{state:w}=p,y=Rp(w),O=R.useRef(null),S=GE(w,(q,ye)=>b(ye.detail?void 0:Vo.FIRST)),A=R.useCallback(q=>{v(!1),q.key&&O.current.focus()},[v]),x=q=>{switch(q.key){case zn.UP:b(Vo.LAST);break;case zn.DOWN:b(Vo.FIRST);break;default:return}q.preventDefault()},k=En(o,{open:y});if(!k||!k.type)throw new Error("Menu requires a menuButton prop.");const G={...is({onKeyDown:x,...S},k.props),ref:Tc(YE?k.ref:k.props.ref,O)};_E(k.type)==="MenuButton"&&(G.isOpen=y);const oe=R.cloneElement(k,G);return R.useImperativeHandle(s,()=>({openMenu:b,closeMenu:()=>v(!1)})),Q.jsxs(R.Fragment,{children:[oe,Q.jsx(qp,{...f,...p,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:O,ref:d,onClose:A})]})}),JE=(n,e)=>{const t=R.memo(e),r=R.forwardRef((o,s)=>{const c=R.useRef(null);return Q.jsx(t,{...o,itemRef:c,externalRef:s,isHovering:R.useContext(jp)===c.current})});return r.displayName=`WithHovering(${n})`,r},KE=n=>{const[e,t]=R.useState(!1);return R.useEffect(()=>{!n&&t(!1)},[n]),[e,()=>!e&&t(!0),()=>t(!1)]},XE=(n,e,t)=>{ss(()=>{if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${e.current.outerHTML}`);if(n)return;const r=e.current;return t(r,!0),()=>{t(r)}},[n,e,t])},ZE=(n,e,t,r)=>{const[o,s,c]=KE(t),{submenuCloseDelay:f}=R.useContext(Ic),{isParentOpen:d,submenuCtx:p,dispatch:v,updateItems:b}=R.useContext(Fp),w=()=>{!t&&!r&&v(mt.SET,n.current)},y=()=>{!r&&v(mt.UNSET,n.current)},O=x=>{t&&!x.currentTarget.contains(x.relatedTarget)&&y()},S=x=>{r||(x.stopPropagation(),s(),p.on(f,w,w))},A=(x,k)=>{c(),p.off(),!k&&y()};return XE(r,n,b),R.useEffect(()=>{t&&d&&e.current&&e.current.focus()},[e,t,d]),{mouseOver:o,setHover:w,onBlur:O,onPointerMove:S,onPointerLeave:A}},ls=JE("MenuItem",function({className:e,value:t,href:r,type:o,checked:s,disabled:c,children:f,onClick:d,isHovering:p,itemRef:v,externalRef:b,...w}){const y=!!c,{mouseOver:O,setHover:S,...A}=ZE(v,v,p,y),x=R.useContext(Vp),k=R.useContext(IE),G=o==="radio",oe=o==="checkbox",q=!!r&&!y&&!G&&!oe,ye=G?k.value===t:oe?!!s:!1,L=Se=>{if(y){Se.stopPropagation(),Se.preventDefault();return}const he={value:t,syntheticEvent:Se};Se.key!==void 0&&(he.key=Se.key),oe&&(he.checked=!ye),G&&(he.name=k.name),En(d,he),G&&En(k.onRadioChange,he),x.handleClick(he,oe||G)},F=Se=>{if(p)switch(Se.key){case zn.ENTER:Se.preventDefault();case zn.SPACE:q?v.current.click():L(Se)}},ae=R.useMemo(()=>({type:o,disabled:y,hover:O||p,checked:ye,anchor:q}),[o,y,O,p,ye,q]),we=is({...A,onPointerDown:S,onKeyDown:F,onClick:L},w),ce={role:G?"menuitemradio":oe?"menuitemcheckbox":xE,"aria-checked":G||oe?ye:void 0,...kp(y,p),...we,ref:Tc(b,v),className:os({block:as,element:EE,modifiers:ae,className:e}),children:R.useMemo(()=>En(f,ae),[f,ae])};return q?Q.jsx("li",{role:TE,children:Q.jsx("a",{href:r,...ce})}):Q.jsx("li",{...ce})});if(!R.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Xw)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function QE(n){n()}function e1(n){n||(n=QE,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),$w({reactionScheduler:n})}function t1(n){return $h(n)}var n1=1e4,r1=1e4,i1=(function(){function n(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),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(r){r===void 0&&(r=n1),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var o=Date.now();t.registrations.forEach(function(s,c){o-s.registeredAt>=r&&(t.finalize(s.value),t.registrations.delete(c))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,r1))}}),n})(),o1=typeof FinalizationRegistry<"u"?FinalizationRegistry:i1,Mc=new o1(function(n){var e;(e=n.reaction)===null||e===void 0||e.dispose(),n.reaction=null}),ds={exports:{}},Rc={};var Xp;function a1(){if(Xp)return Rc;Xp=1;var n=R;function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function f(b,w){var y=w(),O=r({inst:{value:y,getSnapshot:w}}),S=O[0].inst,A=O[1];return s(function(){S.value=y,S.getSnapshot=w,d(S)&&A({inst:S})},[b,y,w]),o(function(){return d(S)&&A({inst:S}),b(function(){d(S)&&A({inst:S})})},[b]),c(y),y}function d(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!t(b,y)}catch{return!0}}function p(b,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Rc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,Rc}var Lc={};var Zp;function s1(){return Zp||(Zp=1,process.env.NODE_ENV!=="production"&&(function(){function n(y,O){return y===O&&(y!==0||1/y===1/O)||y!==y&&O!==O}function e(y,O){v||o.startTransition===void 0||(v=!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 S=O();if(!b){var A=O();s(S,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}A=c({inst:{value:S,getSnapshot:O}});var x=A[0].inst,k=A[1];return d(function(){x.value=S,x.getSnapshot=O,t(x)&&k({inst:x})},[y,S,O]),f(function(){return t(x)&&k({inst:x}),y(function(){t(x)&&k({inst:x})})},[y]),p(S),S}function t(y){var O=y.getSnapshot;y=y.value;try{var S=O();return!s(y,S)}catch{return!0}}function r(y,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,s=typeof Object.is=="function"?Object.is:n,c=o.useState,f=o.useEffect,d=o.useLayoutEffect,p=o.useDebugValue,v=!1,b=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Lc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Lc}var Qp;function u1(){return Qp||(Qp=1,process.env.NODE_ENV==="production"?ds.exports=a1():ds.exports=s1()),ds.exports}var c1=u1();function ev(n){n.reaction=new dr("observer".concat(n.name),function(){var e;n.stateVersion=Symbol(),(e=n.onStoreChange)===null||e===void 0||e.call(n)})}function f1(n,e){e===void 0&&(e="observed");var t=R.useRef(null);if(!t.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:e,subscribe:function(f){return Mc.unregister(r),r.onStoreChange=f,r.reaction||(ev(r),r.stateVersion=Symbol()),function(){var d;r.onStoreChange=null,(d=r.reaction)===null||d===void 0||d.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};t.current=r}var o=t.current;o.reaction||(ev(o),Mc.register(t,o,o)),R.useDebugValue(o.reaction,t1),c1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var s,c;if(o.reaction.track(function(){try{s=n()}catch(f){c=f}}),c)throw c;return s}var kc,Bc,l1=!0,tv=!0,nv=typeof Symbol=="function"&&Symbol.for,d1=(Bc=(kc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||kc===void 0?void 0:kc.configurable)!==null&&Bc!==void 0?Bc:!1,rv=nv?Symbol.for("react.forward_ref"):typeof R.forwardRef=="function"&&R.forwardRef(function(n){return null}).$$typeof,iv=nv?Symbol.for("react.memo"):typeof R.memo=="function"&&R.memo(function(n){return null}).$$typeof;function vr(n,e){var t;if(process.env.NODE_ENV,iv&&n.$$typeof===iv)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 r=(t=void 0)!==null&&t!==void 0?t:!1,o=n,s=n.displayName||n.name;if(rv&&n.$$typeof===rv&&(r=!0,o=n.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(f,d){return f1(function(){return o(f,d)},s)};return c.displayName=n.displayName,d1&&Object.defineProperty(c,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(c.contextTypes=n.contextTypes,process.env.NODE_ENV!=="production"&&tv&&(tv=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),r&&(c=R.forwardRef(c)),c=R.memo(c),p1(n,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var f,d;throw new Error("[mobx-react-lite] `".concat(this.displayName||((f=this.type)===null||f===void 0?void 0:f.displayName)||((d=this.type)===null||d===void 0?void 0:d.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var h1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function p1(n,e){Object.keys(n).forEach(function(t){h1[t]||Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}process.env.NODE_ENV;var jc;e1(ho.unstable_batchedUpdates),jc=Mc.finalizeAllImmediately;function Fc(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function v1(n){if(Array.isArray(n))return n}function g1(n){if(Array.isArray(n))return Fc(n)}function m1(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b1(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,av(r.key),r)}}function y1(n,e,t){return e&&b1(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function hs(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$c(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
97
97
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,c=!0,f=!1;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return c=d.done,d},e:function(d){f=!0,s=d},f:function(){try{c||t.return==null||t.return()}finally{if(f)throw s}}}}function Te(n,e,t){return(e=av(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function w1(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,s,c,f=[],d=!0,p=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(r=s.call(t)).done)&&(f.push(r.value),f.length!==e);d=!0);}catch(v){p=!0,o=v}finally{try{if(!d&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(p)throw o}}return f}}function S1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
98
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
99
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ov(Object(t),!0).forEach(function(r){Te(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ov(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ps(n,e){return v1(n)||w1(n,e)||$c(n,e)||S1()}function Hn(n){return g1(n)||_1(n)||$c(n)||O1()}function E1(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function av(n){var e=E1(n,"string");return typeof e=="symbol"?e:e+""}function vs(n){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(n)}function $c(n,e){if(n){if(typeof n=="string")return Fc(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Fc(n,e):void 0}}var sv=function(){},Vc={},uv={},cv=null,fv={mark:sv,measure:sv};try{typeof window<"u"&&(Vc=window),typeof document<"u"&&(uv=document),typeof MutationObserver<"u"&&(cv=MutationObserver),typeof performance<"u"&&(fv=performance)}catch{}var I1=Vc.navigator||{},lv=I1.userAgent,dv=lv===void 0?"":lv,Vr=Vc,Ze=uv,hv=cv,gs=fv;Vr.document;var gr=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",pv=~dv.indexOf("MSIE")||~dv.indexOf("Trident/"),Wc,A1=/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)?[\-\ ]/,T1=/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,vv={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"}},x1={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},gv=["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"],Tt="classic",Wo="duotone",mv="sharp",bv="sharp-duotone",yv="chisel",_v="etch",wv="jelly",Sv="jelly-duo",Ov="jelly-fill",Ev="notdog",Iv="notdog-duo",Av="slab",Tv="slab-press",xv="thumbprint",Nv="utility",Dv="utility-duo",Cv="utility-fill",Pv="whiteboard",N1="Classic",D1="Duotone",C1="Sharp",P1="Sharp Duotone",M1="Chisel",R1="Etch",L1="Jelly",k1="Jelly Duo",B1="Jelly Fill",j1="Notdog",F1="Notdog Duo",$1="Slab",V1="Slab Press",W1="Thumbprint",U1="Utility",z1="Utility Duo",H1="Utility Fill",q1="Whiteboard",Mv=[Tt,Wo,mv,bv,yv,_v,wv,Sv,Ov,Ev,Iv,Av,Tv,xv,Nv,Dv,Cv,Pv];Wc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Wc,Tt,N1),Wo,D1),mv,C1),bv,P1),yv,M1),_v,R1),wv,L1),Sv,k1),Ov,B1),Ev,j1),Te(Te(Te(Te(Te(Te(Te(Te(Wc,Iv,F1),Av,$1),Tv,V1),xv,W1),Nv,U1),Dv,z1),Cv,H1),Pv,q1);var G1={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"}},Y1={"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"}},J1=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}]]),K1={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"}},Rv=["fak","fa-kit","fakd","fa-kit-duotone"],Lv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},X1=["kit"],Z1="kit",Q1="kit-duotone",eI="Kit",tI="Kit Duotone";Te(Te({},Z1,eI),Q1,tI);var nI={kit:{"fa-kit":"fak"}},rI={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},iI={kit:{fak:"fa-kit"}},kv={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Uc,ms={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oI=["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"],aI="classic",sI="duotone",uI="sharp",cI="sharp-duotone",fI="chisel",lI="etch",dI="jelly",hI="jelly-duo",pI="jelly-fill",vI="notdog",gI="notdog-duo",mI="slab",bI="slab-press",yI="thumbprint",_I="utility",wI="utility-duo",SI="utility-fill",OI="whiteboard",EI="Classic",II="Duotone",AI="Sharp",TI="Sharp Duotone",xI="Chisel",NI="Etch",DI="Jelly",CI="Jelly Duo",PI="Jelly Fill",MI="Notdog",RI="Notdog Duo",LI="Slab",kI="Slab Press",BI="Thumbprint",jI="Utility",FI="Utility Duo",$I="Utility Fill",VI="Whiteboard";Uc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Uc,aI,EI),sI,II),uI,AI),cI,TI),fI,xI),lI,NI),dI,DI),hI,CI),pI,PI),vI,MI),Te(Te(Te(Te(Te(Te(Te(Te(Uc,gI,RI),mI,LI),bI,kI),yI,BI),_I,jI),wI,FI),SI,$I),OI,VI);var WI="kit",UI="kit-duotone",zI="Kit",HI="Kit Duotone";Te(Te({},WI,zI),UI,HI);var qI={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"}},GI={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"]},zc={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"}},YI=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],Bv=["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(oI,YI),JI=["solid","regular","light","thin","duotone","brands","semibold"],jv=[1,2,3,4,5,6,7,8,9,10],KI=jv.concat([11,12,13,14,15,16,17,18,19,20]),XI=["aw","fw","pull-left","pull-right"],ZI=[].concat(Hn(Object.keys(GI)),JI,XI,["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",ms.GROUP,ms.SWAP_OPACITY,ms.PRIMARY,ms.SECONDARY]).concat(jv.map(function(n){return"".concat(n,"x")})).concat(KI.map(function(n){return"w-".concat(n)})),QI={"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"}},mr="___FONT_AWESOME___",Hc=16,Fv="fa",$v="svg-inline--fa",vi="data-fa-i2svg",qc="data-fa-pseudo-element",eA="data-fa-pseudo-element-pending",Gc="data-prefix",Yc="data-icon",Vv="fontawesome-i2svg",tA="async",nA=["HTML","HEAD","STYLE","SCRIPT"],Wv=["::before","::after",":before",":after"],Uv=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Uo(n){return new Proxy(n,{get:function(t,r){return r in t?t[r]:t[Tt]}})}var zv=J({},vv);zv[Tt]=J(J(J(J({},{"fa-duotone":"duotone"}),vv[Tt]),Lv.kit),Lv["kit-duotone"]);var rA=Uo(zv),Jc=J({},K1);Jc[Tt]=J(J(J(J({},{duotone:"fad"}),Jc[Tt]),kv.kit),kv["kit-duotone"]);var Hv=Uo(Jc),Kc=J({},zc);Kc[Tt]=J(J({},Kc[Tt]),iI.kit);var Xc=Uo(Kc),Zc=J({},qI);Zc[Tt]=J(J({},Zc[Tt]),nI.kit),Uo(Zc);var iA=A1,qv="fa-layers-text",oA=T1,aA=J({},G1);Uo(aA);var sA=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Qc=x1,uA=[].concat(Hn(X1),Hn(ZI)),zo=Vr.FontAwesomeConfig||{};function cA(n){var e=Ze.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function fA(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(Ze&&typeof Ze.querySelector=="function"){var lA=[["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"]];lA.forEach(function(n){var e=ps(n,2),t=e[0],r=e[1],o=fA(cA(t));o!=null&&(zo[r]=o)})}var Gv={styleDefault:"solid",familyDefault:Tt,cssPrefix:Fv,replacementClass:$v,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zo.familyPrefix&&(zo.cssPrefix=zo.familyPrefix);var Wi=J(J({},Gv),zo);Wi.autoReplaceSvg||(Wi.observeMutations=!1);var de={};Object.keys(Gv).forEach(function(n){Object.defineProperty(de,n,{enumerable:!0,set:function(t){Wi[n]=t,Ho.forEach(function(r){return r(de)})},get:function(){return Wi[n]}})}),Object.defineProperty(de,"familyPrefix",{enumerable:!0,set:function(e){Wi.cssPrefix=e,Ho.forEach(function(t){return t(de)})},get:function(){return Wi.cssPrefix}}),Vr.FontAwesomeConfig=de;var Ho=[];function dA(n){return Ho.push(n),function(){Ho.splice(Ho.indexOf(n),1)}}var Ui=Hc,rr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hA(n){if(!(!n||!gr)){var e=Ze.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;for(var t=Ze.head.childNodes,r=null,o=t.length-1;o>-1;o--){var s=t[o],c=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=s)}return Ze.head.insertBefore(e,r),n}}var pA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yv(){for(var n=12,e="";n-- >0;)e+=pA[Math.random()*62|0];return e}function zi(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function ef(n){return n.classList?zi(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Jv(n){return"".concat(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vA(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(Jv(n[t]),'" ')},"").trim()}function bs(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function tf(n){return n.size!==rr.size||n.x!==rr.x||n.y!==rr.y||n.rotate!==rr.rotate||n.flipX||n.flipY}function gA(n){var e=n.transform,t=n.containerWidth,r=n.iconWidth,o={transform:"translate(".concat(t/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),c="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),f="rotate(".concat(e.rotate," 0 0)"),d={transform:"".concat(s," ").concat(c," ").concat(f)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:d,path:p}}function mA(n){var e=n.transform,t=n.width,r=t===void 0?Hc:t,o=n.height,s=o===void 0?Hc:o,c="";return pv?c+="translate(".concat(e.x/Ui-r/2,"em, ").concat(e.y/Ui-s/2,"em) "):c+="translate(calc(-50% + ".concat(e.x/Ui,"em), calc(-50% + ").concat(e.y/Ui,"em)) "),c+="scale(".concat(e.size/Ui*(e.flipX?-1:1),", ").concat(e.size/Ui*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var bA=`:root, :host {