@noya-app/noya-resolve-files 0.1.11 → 0.1.13

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/.eslintrc.js CHANGED
@@ -1,11 +1,7 @@
1
1
  /** @type {import("eslint").Linter.Config} */
2
2
  module.exports = {
3
3
  root: true,
4
- extends: ["@repo/eslint-config/next.js"],
4
+ extends: ["@repo/eslint-config/library.js"],
5
5
  parser: "@typescript-eslint/parser",
6
- rules: {
7
- "no-unused-vars": "off",
8
- "no-redeclare": "off",
9
- },
10
6
  ignorePatterns: ["dist/"],
11
7
  };
@@ -7,8 +7,8 @@
7
7
  CLI Using tsup config: /Users/devinabbott/Projects/noya-core/packages/noya-resolve-files/bundle.config.ts
8
8
  CLI Target: es2022
9
9
  CJS Build start
10
- CJS dist/bundle/index.js 69.45 KB
11
- CJS ⚡️ Build success in 173ms
10
+ CJS dist/bundle/index.js 63.35 KB
11
+ CJS ⚡️ Build success in 72ms
12
12
  $ tsup
13
13
  CLI Building entry: src/index.ts
14
14
  CLI Using tsconfig: tsconfig.json
@@ -17,13 +17,13 @@
17
17
  CLI Target: esnext
18
18
  CJS Build start
19
19
  ESM Build start
20
- CJS dist/index.js 2.53 KB
21
- CJS dist/index.js.map 3.03 KB
22
- CJS ⚡️ Build success in 81ms
23
20
  ESM dist/index.mjs 1.50 KB
24
21
  ESM dist/index.mjs.map 3.00 KB
25
- ESM ⚡️ Build success in 96ms
22
+ ESM ⚡️ Build success in 22ms
23
+ CJS dist/index.js 2.53 KB
24
+ CJS dist/index.js.map 3.03 KB
25
+ CJS ⚡️ Build success in 23ms
26
26
  DTS Build start
27
- DTS ⚡️ Build success in 2288ms
27
+ DTS ⚡️ Build success in 5463ms
28
28
  DTS dist/index.d.ts 1.00 KB
29
29
  DTS dist/index.d.mts 1.00 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @noya-app/noya-resolve-files
2
2
 
3
+ ## 0.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - @noya-app/noya-github-utils@0.1.20
8
+
9
+ ## 0.1.12
10
+
11
+ ### Patch Changes
12
+
13
+ - @noya-app/noya-github-utils@0.1.19
14
+
3
15
  ## 0.1.11
4
16
 
5
17
  ### Patch Changes
@@ -1,40 +1,30 @@
1
- "use strict";var ka=Object.create;var mr=Object.defineProperty;var Sa=Object.getOwnPropertyDescriptor;var Pa=Object.getOwnPropertyNames;var Ca=Object.getPrototypeOf,Ra=Object.prototype.hasOwnProperty;var Gn=(e,r)=>()=>(e&&(r=e(e=0)),r);var S=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Da=(e,r)=>{for(var n in r)mr(e,n,{get:r[n],enumerable:!0})},Kn=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Pa(r))!Ra.call(e,i)&&i!==n&&mr(e,i,{get:()=>r[i],enumerable:!(o=Sa(r,i))||o.enumerable});return e};var Ze=(e,r,n)=>(n=e!=null?ka(Ca(e)):{},Kn(r||!e||!e.__esModule?mr(n,"default",{value:e,enumerable:!0}):n,e)),Aa=e=>Kn(mr({},"__esModule",{value:!0}),e);var s=Gn(()=>{});var u=Gn(()=>{"use strict"});var ho=S(po=>{"use strict";s();u();Object.defineProperty(po,"__esModule",{value:!0})});var Je=S(xr=>{"use strict";s();u();Object.defineProperty(xr,"__esModule",{value:!0});xr.Nodes=void 0;function Za(e,r){return{type:"file",data:e,metadata:r}}function Qa(e={},r){return{type:"directory",children:e,metadata:r}}function Ja(e){return e.type==="file"}function es(e){return e.type==="directory"}function rs(e){return e.metadata}function ts(e){return Object.keys(e.children)}function ns(e,r){return e.children[r]}function os(e,r){return r in e.children}xr.Nodes={createDirectory:Qa,createFile:Za,getChild:ns,getMetadata:rs,hasChild:os,isDirectory:es,isFile:Ja,readDirectory:ts}});var er=S(W=>{"use strict";s();u();Object.defineProperty(W,"__esModule",{value:!0});W.dirname=W.basename=W.extname=W.join=W.normalize=W.sep=void 0;W.sep="/";function is(e,r){return e.startsWith("/")&&(r="/"+r),r[r.length-1]!=="/"&&e.endsWith("/")&&(r=r+"/"),r}function vo(e){let r=e.split(W.sep).filter(i=>!!i),n=0,o=r.length-1;for(;n<o;)r[n]==="."?(r.splice(n,1),o--):r[n]===".."&&n!==0?(r.splice(n-1,2),o-=2,n-=1):r[n]===""&&r[n+1]===""?(r.splice(n,1),o--):n++;return is(e,r.join(W.sep))}W.normalize=vo;function as(...e){let r=vo(e.join(W.sep));return r===""&&(r="."),r}W.join=as;function ss(e){let r=e.lastIndexOf(".");return r!==-1?e.slice(r):e}W.extname=ss;function gt(e,r){r&&e.endsWith(r)&&(e=e.slice(0,-r.length));let n=e.lastIndexOf(W.sep);return n===e.length-1?(e=e.slice(0,-1),e.length>1?gt(e):e):e.slice(n+1)}W.basename=gt;function us(e){let r=gt(e),n=e.slice(0,-(r.length+1));return n===""&&(e.startsWith(W.sep)?n=W.sep:n="."),n}W.dirname=us});var mo=S(Or=>{"use strict";s();u();Object.defineProperty(Or,"__esModule",{value:!0});Or.Entries=void 0;var cs=Je(),fs=er();function ls(e){let[r,n]=e;return cs.Nodes.isDirectory(n)?Object.entries(n.children).map(([o,i])=>[(0,fs.join)(r,o),i]):[]}function ds(e,r){return[e,r]}Or.Entries={createEntry:ds,getEntries:ls}});var Sr=S(Te=>{"use strict";s();u();Object.defineProperty(Te,"__esModule",{value:!0});Te.getNewAndParentName=Te.normalizePathLikeInternal=Te.getPathComponents=void 0;var kr=er();function yo(e){return r((0,kr.normalize)(e));function r(n){if(n.startsWith(".."))throw new Error(`Invalid path ${n}, can't go up past root.`);return n.startsWith(".")||n.startsWith("/")?r(n.slice(1)):n===""?[]:n.split(kr.sep).filter(o=>!!o)}}Te.getPathComponents=yo;function ps(e){return typeof e=="string"?yo(e):e}Te.normalizePathLikeInternal=ps;function hs(e){let r=typeof e=="string"?(0,kr.dirname)(e):e.slice(0,-1),n=typeof e=="string"?(0,kr.basename)(e):e[e.length-1];return{parentName:r,newName:n}}Te.getNewAndParentName=hs});var wt=S(se=>{"use strict";s();u();Object.defineProperty(se,"__esModule",{value:!0});se.getMetadata=se.readDirectory=se.readFile=se.getNode=se.getNodeInternal=void 0;var ze=Je(),rr=er(),Pr=Sr();function go(e,r,n){let o=(0,Pr.normalizePathLikeInternal)(r),i=0,c=e;for(;i<o.length;){let f=o[i];if(c.type!=="directory")throw new Error(`File ${(0,rr.join)(...o.slice(0,i))} is not a directory`);let l=ze.Nodes.getChild(c,f);if(!l)if(n.makeIntermediateDirectoryMetadata){let p=ze.Nodes.createDirectory({},n.makeIntermediateDirectoryMetadata((0,rr.join)(...o.slice(0,i+1))));c.children[f]=p,l=p}else if(n.makeIntermediateDirectories){let p=ze.Nodes.createDirectory();c.children[f]=p,l=p}else throw new Error(`File ${(0,rr.join)(...o.slice(0,i+1))} not found`);c=l,i++}return c}se.getNodeInternal=go;function Cr(e,r){return go(e,r,{})}se.getNode=Cr;function vs(e,r){let n=(0,Pr.normalizePathLikeInternal)(r),o=Cr(e,n);if(!ze.Nodes.isFile(o))throw new Error(`Can't read, ${(0,rr.join)(...n)} not a file`);return o.data}se.readFile=vs;function ms(e,r){let n=(0,Pr.normalizePathLikeInternal)(r),o=Cr(e,n);if(!ze.Nodes.isDirectory(o))throw new Error(`Can't read, ${(0,rr.join)(...n)} not a directory`);return ze.Nodes.readDirectory(o)}se.readDirectory=ms;function ys(e,r){let n=(0,Pr.normalizePathLikeInternal)(r);return Cr(e,n).metadata}se.getMetadata=ys});var Eo=S(te=>{"use strict";s();u();Object.defineProperty(te,"__esModule",{value:!0});te.create=te.setMetadata=te.removeFile=te.makeDirectory=te.writeFile=te.setNode=void 0;var be=Je(),Et=Sr(),Rr=wt();function wo(e,r,n,o){let{parentName:i,newName:c}=(0,Et.getNewAndParentName)(r),f=(0,Rr.getNodeInternal)(e,i,o??{});if(!be.Nodes.isDirectory(f))throw new Error(`Can't create ${c}, ${i} not a directory`);f.children[c]=n}te.setNode=wo;function gs(e,r,n,o){var i;wo(e,r,be.Nodes.createFile(n,(i=o)===null||i===void 0?void 0:i.metadata),o)}te.writeFile=gs;function ws(e,r,n){var o;let{parentName:i,newName:c}=(0,Et.getNewAndParentName)(r),f=(0,Rr.getNodeInternal)(e,i,n??{});if(!be.Nodes.isDirectory(f))throw new Error(`Can't create ${c}, ${i} not a directory`);be.Nodes.getChild(f,c)&&be.Nodes.isDirectory(f.children[c])||(f.children[c]=be.Nodes.createDirectory({},(o=n)===null||o===void 0?void 0:o.metadata))}te.makeDirectory=ws;function Es(e,r){let{parentName:n,newName:o}=(0,Et.getNewAndParentName)(r),i=(0,Rr.getNode)(e,n);if(!be.Nodes.isDirectory(i))throw new Error(`Can't remove file ${o}, ${n} not a directory`);delete i.children[o]}te.removeFile=Es;function _s(e,r,n){let o=(0,Rr.getNode)(e,r);o.metadata=n}te.setMetadata=_s;function Ts(e){return be.Nodes.createDirectory({},e&&"metadata"in e?e.metadata:void 0)}te.create=Ts});var _o=S(Ar=>{"use strict";s();u();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.Volume=void 0;var bs=Sr(),Dr=wt(),Le=Eo();Ar.Volume={getPathComponents:bs.getPathComponents,getMetadata:Dr.getMetadata,getNode:Dr.getNode,readDirectory:Dr.readDirectory,readFile:Dr.readFile,create:Le.create,makeDirectory:Le.makeDirectory,removeFile:Le.removeFile,setMetadata:Le.setMetadata,setNode:Le.setNode,writeFile:Le.writeFile}});var _t=S(Z=>{"use strict";s();u();var To=Z&&Z.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),xs=Z&&Z.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Fr=Z&&Z.__exportStar||function(e,r){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&To(r,e,n)},Os=Z&&Z.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&To(r,e,n);return xs(r,e),r};Object.defineProperty(Z,"__esModule",{value:!0});Z.path=void 0;Fr(ho(),Z);Fr(Je(),Z);Fr(mo(),Z);Fr(_o(),Z);Z.path=Os(er())});var Mr=S(Ue=>{"use strict";s();u();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.get=ks;Ue.ancestors=Ss;Ue.access=Ps;Ue.accessPath=xo;function ks(e,r,n){if(n.includeTraversalContext){let i=bo(e,r,n);return i[i.length-1]}let o=r.slice();for(;o.length>0;){let i=o.shift(),f=n.getChildren(e,o)[i];if(!f)return;e=f}return e}function Ss(e,r,n){return bo(e,r,n).slice(0,-1)}function bo(e,r,n){let o=r.slice(),i=[e];for(;o.length>0;){let c=o.shift(),f=n.includeTraversalContext?Oo(i):void 0,p=n.getChildren(e,o,f)[c];if(!p)return i;e=p,i.push(e)}return i}function Ps(e,r,n){if(n.includeTraversalContext){let i=xo(e,r,n);return i[i.length-1]}let o=r.slice();for(;o.length>0;){let i=o.shift();e=n.getChildren(e,o)[i]}return e}function xo(e,r,n){let o=r.slice(),i=[e];for(;o.length>0;){let c=o.shift(),f=n.includeTraversalContext?Oo(i):void 0;e=n.getChildren(e,o,f)[c],i.push(e)}return i}function Oo(e){return{getRoot:()=>e[0],getParent:()=>e[e.length-2],getAncestors:()=>e.slice(0,-1)}}});var Ir=S(Nr=>{"use strict";s();u();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.comparePathsByComponent=ko;Nr.sortPaths=Cs;function ko(e,r){for(let n=0;n<Math.min(e.length,r.length);n++){if(e[n]<r[n])return-1;if(e[n]>r[n])return 1}return e.length-r.length}function Cs(e){return[...e].sort(ko)}});var jr=S(Tt=>{"use strict";s();u();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.ancestorPaths=Ds;var Rs=Ir();function Ds(e,r){var n;let o=new Map,i=(n=r?.compare)!==null&&n!==void 0?n:Rs.comparePathsByComponent,c=e.sort(i);for(let f of c)f.some((p,g)=>{let E=f.slice(0,g).join();return o.has(E)})||o.set(f.join(),f);return Array.from(o.values())}});var Co=S(xt=>{"use strict";s();u();Object.defineProperty(xt,"__esModule",{value:!0});xt.boxDiagram=Ns;var V;(function(e){e.TopLeft="\u250C",e.TopRight="\u2510",e.BottomLeft="\u2514",e.BottomRight="\u2518",e.Horizontal="\u2500",e.Vertical="\u2502",e.BottomConnectorDown="\u252C",e.BottomConnectorUp="\u2534",e.TopConnectorUp="\u2534"})(V||(V={}));function As(e){let r=e.split(`
2
- `),n=Math.max(...r.map(l=>l.length)),o=1,i=n+o*2+2,c=2+r.length,f=[[V.TopLeft,V.Horizontal.repeat(n+o*2),V.TopRight],...r.map(l=>[V.Vertical," ".repeat(o),l+(l.length<n?" ".repeat(n-l.length):"")," ".repeat(o),V.Vertical]),[V.BottomLeft,V.Horizontal.repeat(n+o*2),V.BottomRight]];return{width:i,height:c,contents:f.map(l=>l.join(""))}}function Fs(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");return e.slice(1).reduce((n,o)=>{let i=Math.max(n.height,o.height),c=n.width+1+o.width,f=[];for(let l=0;l<i;l++)f.push((n.contents[l]||" ".repeat(n.width))+" ".repeat(1)+(o.contents[l]||" ".repeat(o.width)));return{height:i,width:c,contents:Po(f,c)}},e[0])}function Ms(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");let n=Math.max(...e.map(o=>o.width));return e.slice(1).reduce((o,i)=>{let c=o.height+1+i.height,f=[];for(let l=0;l<c;l++)l<o.height?f.push(o.contents[l]):l===o.height?f.push(" ".repeat(n)):f.push(i.contents[l-o.height-1]);return{height:c,width:n,contents:Po(f,n)}},e[0])}function So(e,r,n){let o=n.getLabel(e,r),i=As(o),c=n.getChildren(e,r);if(c.length===0)return i;let f=c.map((R,j)=>{let x=So(R,[...r,j],n);return x.contents[0]=bt(x.contents[0],zr(x.contents[0].length),V.TopConnectorUp),x}),l=Ms([i,Fs(f)]),p=l.contents,g=zr(l.width);p[i.height-1]=bt(p[i.height-1],g,V.BottomConnectorDown);let E=p[i.height+1].indexOf(V.TopConnectorUp),T=p[i.height+1].lastIndexOf(V.TopConnectorUp);for(let R=E;R<=T;R++){let j;R===g?j=f.length>1?V.BottomConnectorUp:V.Vertical:R===E?j=V.TopLeft:R===T?j=V.TopRight:j=V.Horizontal,l.contents[i.height]=bt(l.contents[i.height],R,j)}return l}function Ns(e,r){return So(e,[],r).contents.join(`
3
- `)}function zr(e){return Math.floor(e/2)}function Is(e,r){let n=r-e.length;if(n<=0)return e;let o=zr(n),i=zr(n),c=" ".repeat(o)+e+" ".repeat(i);return o+i+c.length<r?c+" ":c}function Po(e,r){return e.map(n=>Is(n,r))}function bt(e,r,n){return r>e.length-1?e:e.substring(0,r)+n+e.substring(r+1)}});var Do=S(tr=>{"use strict";s();u();Object.defineProperty(tr,"__esModule",{value:!0});tr.directoryDiagram=js;tr.isMultiline=kt;tr.prefixBlock=Ro;var ve;(function(e){e.Child="\u251C\u2500\u2500 ",e.LastChild="\u2514\u2500\u2500 ",e.NestedChild="\u2502 ",e.LastNestedChild=" "})(ve||(ve={}));function Ot(e,r,n){let o=n.getLabel(e,r),i=r.length,c={label:o,depth:i,prefix:"",multilinePrefix:""},f=n.getChildren(e,r);if(f.length===0)return[c];if(n.flattenSingleChildNodes&&f.length===1&&!kt(o)){let[p]=Ot(f[0],[...r,0],n),g=r.length===0&&o==="";return c.label=g?`/ ${p.label}`:`${c.label} / ${p.label}`,[c]}let l=f.flatMap((p,g,E)=>{let T=g===E.length-1,R=Ot(p,[...r,g],n),j=T?ve.LastChild:ve.Child,x=T?ve.LastNestedChild:ve.NestedChild;return R.forEach(A=>{A.depth===i+1?(A.prefix=j+A.prefix,A.multilinePrefix=x+A.multilinePrefix):T?(A.prefix=ve.LastNestedChild+A.prefix,A.multilinePrefix=ve.LastNestedChild+A.multilinePrefix):(A.prefix=ve.NestedChild+A.prefix,A.multilinePrefix=ve.NestedChild+A.multilinePrefix)}),R});return[c,...l]}function js(e,r){return Ot(e,[],r).map(i=>Ro(i.label,i.prefix,i.multilinePrefix)).join(`
4
- `)}function kt(e){return e.includes(`
5
- `)}function Ro(e,r,n){return kt(e)?e.split(`
6
- `).map((o,i)=>(i===0?r:n)+o).join(`
7
- `):r+e}});var Pt=S(St=>{"use strict";s();u();Object.defineProperty(St,"__esModule",{value:!0});St.diagram=Us;var zs=Co(),Ls=Do();function Us(e,r){return r.type==="box"?(0,zs.boxDiagram)(e,r):(0,Ls.directoryDiagram)(e,r)}});var Se=S(me=>{"use strict";s();u();Object.defineProperty(me,"__esModule",{value:!0});me.STOP=me.SKIP=void 0;me.visit=Bs;me.SKIP="skip";me.STOP="stop";function Bs(e,r){let{onEnter:n,onLeave:o,getChildren:i,onDetectCycle:c,getIdentifier:f,direction:l="forward"}=r,p=(x,A,F)=>{let N=i(x,A,F);return l==="forward"?N:N.slice().reverse()},g=[],E=[{node:e}],T=c?new Set:void 0,R=r.includeTraversalContext?{getRoot(){return e},getParent(){var x;return(x=E[E.length-2])===null||x===void 0?void 0:x.node},getAncestors(){return E.slice(0,-1).map(x=>x.node)}}:void 0,j=r.reuseIndexPath?()=>g:()=>g.slice();for(;E.length>0;){let x=E[E.length-1];if(x.state===void 0){if(T){let N=f?f(x.node):x.node;if(T.has(N)){if((typeof c=="function"?c(x.node,j(),R):c)==="error")throw new Error("Cycle detected in tree");x.state=-1;continue}T.add(N)}let F=n?.(x.node,j());if(F===me.STOP)return;x.state=F===me.SKIP?-1:0}let A=x.children||p(x.node,j(),R);if(x.children||(x.children=A),x.state!==-1){if(x.state<A.length){let N=x.state;g.push(l==="forward"?N:A.length-N-1),E.push({node:A[N]}),x.state=N+1;continue}if(o?.(x.node,j())===me.STOP)return}if(T){let F=f?f(x.node):x.node;T.delete(F)}g.pop(),E.pop()}}});var Rt=S(Ct=>{"use strict";s();u();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.entries=Ws;var qs=Se();function Ws(e,r){let n=[];return(0,qs.visit)(e,Object.assign(Object.assign({},r),{onEnter:(o,i)=>{n.push([i,o])}})),n}});var Dt=S(qe=>{"use strict";s();u();Object.defineProperty(qe,"__esModule",{value:!0});qe.find=$s;qe.findAll=Hs;qe.findPath=Vs;qe.findAllPaths=Gs;var Be=Se();function $s(e,r){let n;return(0,Be.visit)(e,Object.assign(Object.assign({},r),{onEnter:(o,i)=>{if(r.predicate(o,i))return n=o,Be.STOP}})),n}function Hs(e,r){let n=[];return(0,Be.visit)(e,{onEnter:(o,i)=>{r.predicate(o,i)&&n.push(o)},getChildren:r.getChildren}),n}function Vs(e,r){let n;return(0,Be.visit)(e,{onEnter:(o,i)=>{if(r.predicate(o,i))return n=[...i],Be.STOP},getChildren:r.getChildren}),n}function Gs(e,r){let n=[];return(0,Be.visit)(e,{onEnter:(o,i)=>{r.predicate(o,i)&&n.push([...i])},getChildren:r.getChildren}),n}});var Lr=S(At=>{"use strict";s();u();Object.defineProperty(At,"__esModule",{value:!0});At.reduce=Ys;var Ks=Se();function Ys(e,r){let n=r.initialResult;return(0,Ks.visit)(e,Object.assign(Object.assign({},r),{onEnter:(o,i)=>{n=r.nextResult(n,o,i)}})),n}});var Mt=S(Ft=>{"use strict";s();u();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.flat=Zs;var Xs=Lr();function Zs(e,r){return(0,Xs.reduce)(e,Object.assign(Object.assign({},r),{initialResult:[],nextResult:(n,o)=>(n.push(o),n)}))}});var Br=S(Ur=>{"use strict";s();u();Object.defineProperty(Ur,"__esModule",{value:!0});Ur.map=Js;Ur.flatMap=Ao;var Qs=Se();function Js(e,r){return Ao(e,Object.assign(Object.assign({},r),{transform:(n,o,i)=>[r.transform(n,o,i)]}))}function Ao(e,r){let n={};return(0,Qs.visit)(e,Object.assign(Object.assign({},r),{onLeave:(o,i)=>{var c,f;let l=[0,...i],p=l.join(),g=r.transform(o,(c=n[p])!==null&&c!==void 0?c:[],i),E=l.slice(0,-1).join(),T=(f=n[E])!==null&&f!==void 0?f:[];T.push(...g),n[E]=T}})),n[""][0]}});var It=S(Nt=>{"use strict";s();u();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.transformPath=tu;var eu=Ir();function ru(e,r){let n=Math.min(e.length,r.length);for(let o=0;o<n;o++)if(e[o]!==r[o])return e.slice(0,o);return e.slice(0,n)}function tu(e,r,n,o=1){if(n.length>e.length||(0,eu.comparePathsByComponent)(n,e)>0)return e;if(n.length===0&&r==="remove")return;let i=ru(e,n),c=i.length===e.length||i.length===n.length?i.length-1:i.length,f=e[c],l=n[c];if(r==="insert"&&l<=f){let p=[...e];return p[c]+=o,p}else if(r==="remove"){if(l===f)return;if(l<f){let p=[...e];return p[c]-=o,p}}return e}});var We=S(pe=>{"use strict";s();u();Object.defineProperty(pe,"__esModule",{value:!0});pe.insertOperation=Mo;pe.removeOperation=No;pe.replaceOperation=qr;pe.getInsertionOperations=iu;pe.getRemovalOperations=au;pe.getReplaceOperations=su;pe.applyOperations=uu;pe.arraySplice=jt;pe.transformPathsByOperations=cu;var nu=jr(),ou=Br(),Fo=It();function Mo(e,r){return{type:"insert",index:e,nodes:r}}function No(e){return{type:"remove",indexes:e}}function qr(){return{type:"replace"}}function Io(e){return[e.slice(0,-1),e[e.length-1]]}function iu(e,r,n=new Map){var o;let[i,c]=Io(e);for(let l=i.length-1;l>=0;l--){let p=i.slice(0,l).join();switch((o=n.get(p))===null||o===void 0?void 0:o.type){case"remove":continue}n.set(p,qr())}let f=n.get(i.join());switch(f?.type){case"remove":n.set(i.join(),{type:"removeThenInsert",removeIndexes:f.indexes,insertIndex:c,insertNodes:r});break;default:n.set(i.join(),Mo(c,r))}return n}function au(e){var r,n;let o=(0,nu.ancestorPaths)(e),i=new Map;for(let f of o){let l=f.slice(0,-1).join(),p=(r=i.get(l))!==null&&r!==void 0?r:[];p.push(f[f.length-1]),i.set(l,p)}let c=new Map;for(let f of o)for(let l=f.length-1;l>=0;l--){let p=f.slice(0,l).join();c.set(p,qr())}for(let f of o){let l=f.slice(0,-1).join();c.set(l,No((n=i.get(l))!==null&&n!==void 0?n:[]))}return c}function su(e,r){let n=new Map,[o,i]=Io(e);for(let c=o.length-1;c>=0;c--){let f=o.slice(0,c).join();n.set(f,qr())}return n.set(o.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[r]}),n}function jo(e,r){return r.reduce((n,o)=>o<n?n-1:n,e)}function uu(e,r,n){return(0,ou.map)(e,Object.assign(Object.assign({},n),{getChildren:(o,i)=>{let c=i.join(),f=r.get(c);switch(f?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(o,i);default:return[]}},transform:(o,i,c)=>{let f=c.join(),l=r.get(f);switch(l?.type){case"remove":return n.create(o,i.filter((E,T)=>!l.indexes.includes(T)),c);case"removeThenInsert":let p=i.filter((E,T)=>!l.removeIndexes.includes(T)),g=jo(l.insertIndex,l.removeIndexes);return n.create(o,jt(p,g,0,...l.insertNodes),c);case"insert":return n.create(o,jt(i,l.index,0,...l.nodes),c);case"replace":return n.create(o,i,c);default:return o}}}))}function jt(e,r,n,...o){return[...e.slice(0,r),...o,...e.slice(r+n)]}function cu(e,r){let n=e;for(let[o,i]of r.entries()){let c=o?o.split(",").map(Number):[];n=zt(n,c,i)}return n}function zt(e,r,n){switch(n.type){case"insert":{let o=r.concat(n.index);return e.map(i=>i?(0,Fo.transformPath)(i,"insert",o,n.nodes.length):void 0)}case"remove":{let o=[...n.indexes].reverse().map(i=>r.concat(i));return e.map(i=>{for(let c of o)i=i?(0,Fo.transformPath)(i,"remove",c):void 0;return i})}case"removeThenInsert":{let o=zt(e,r,{type:"remove",indexes:n.removeIndexes}),i=jo(n.insertIndex,n.removeIndexes);return zt(o,r,{type:"insert",index:i,nodes:n.insertNodes})}case"replace":return e}}});var Ut=S(Wr=>{"use strict";s();u();Object.defineProperty(Wr,"__esModule",{value:!0});Wr.insert=fu;Wr.insertWithPathTracking=lu;var Lt=We();function fu(e,r){return zo(e,r).node}function lu(e,r){return zo(e,r)}function zo(e,r){let{nodes:n,path:o,track:i}=r;if(o.length===0)throw new Error("Can't insert nodes at the root");let c=(0,Lt.getInsertionOperations)(o,n),f=i?(0,Lt.transformPathsByOperations)(i,c):[];return{node:(0,Lt.applyOperations)(e,c,r),paths:f}}});var Wt=S(qt=>{"use strict";s();u();Object.defineProperty(qt,"__esModule",{value:!0});qt.move=hu;var du=Mr(),pu=jr(),Bt=We();function hu(e,r){if(r.paths.length===0)return e;for(let c of r.paths)if(c.length===0)throw new Error("Can't move the root node");if(r.to.length===0)throw new Error("Can't move nodes to the root");let n=(0,pu.ancestorPaths)(r.paths),o=n.map(c=>(0,du.access)(e,c,r)),i=(0,Bt.getInsertionOperations)(r.to,o,(0,Bt.getRemovalOperations)(n));return(0,Bt.applyOperations)(e,i,r)}});var Ht=S($r=>{"use strict";s();u();Object.defineProperty($r,"__esModule",{value:!0});$r.remove=vu;$r.removeWithPathTracking=mu;var $t=We();function vu(e,r){return Lo(e,r).node}function mu(e,r){return Lo(e,r)}function Lo(e,r){let{paths:n,track:o}=r,i=(0,$t.getRemovalOperations)(n),c=o?(0,$t.transformPathsByOperations)(o,i):[];return{node:(0,$t.applyOperations)(e,i,r),paths:c}}});var Gt=S(Vt=>{"use strict";s();u();Object.defineProperty(Vt,"__esModule",{value:!0});Vt.replace=yu;var Uo=We();function yu(e,r){if(r.path.length===0)return r.node;let n=(0,Uo.getReplaceOperations)(r.path,r.node);return(0,Uo.applyOperations)(e,n,r)}});var Kt=S(Vr=>{"use strict";s();u();Object.defineProperty(Vr,"__esModule",{value:!0});Vr.splice=gu;Vr.spliceWithPathTracking=wu;var Hr=We();function gu(e,r){return Bo(e,r).node}function wu(e,r){return Bo(e,r)}function Bo(e,r){let{path:n,deleteCount:o=0,nodes:i,track:c}=r;if(n.length===0)throw new Error("Can't splice at the root");let f=Eu(n,o),l=(0,Hr.getInsertionOperations)(n,i,(0,Hr.getRemovalOperations)(f)),p=c?(0,Hr.transformPathsByOperations)(c,l):[];return{node:(0,Hr.applyOperations)(e,l,r),paths:p}}function Eu(e,r){let n=[],o=e.slice(0,-1),i=e[e.length-1];for(let c=0;c<r;c++)n.push(o.concat(i+c));return n}});var Zt=S(Xt=>{"use strict";s();u();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.defineTree=ku;var Gr=Mr(),qo=Pt(),_u=Rt(),xe=Dt(),Tu=Mt(),Wo=Ut(),$o=Br(),bu=Wt(),xu=Lr(),Ho=Ht(),Ou=Gt(),Vo=Kt(),Go=Se(),Yt=class e{constructor(r,n){this.appliedOptions=n,this.getChildren=(o,i,c)=>this._getChildren(o,i,c),this.mergeOptions=o=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),o),this.withOptions=o=>new e(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),o)),this.access=(o,i)=>(0,Gr.access)(o,i,this.mergeOptions({})),this.accessPath=(o,i)=>(0,Gr.accessPath)(o,i,this.mergeOptions({})),this.get=(o,i)=>(0,Gr.get)(o,i,this.mergeOptions({})),this.ancestors=(o,i)=>(0,Gr.ancestors)(o,i,this.mergeOptions({})),this.diagram=(o,i)=>typeof i=="function"?(0,qo.diagram)(o,this.mergeOptions({getLabel:i})):(0,qo.diagram)(o,this.mergeOptions(i)),this.find=(o,i)=>typeof i=="function"?(0,xe.find)(o,this.mergeOptions({predicate:i})):(0,xe.find)(o,this.mergeOptions(Object.assign({},i))),this.findAll=(o,i)=>typeof i=="function"?(0,xe.findAll)(o,this.mergeOptions({predicate:i})):(0,xe.findAll)(o,this.mergeOptions(Object.assign({},i))),this.findPath=(o,i)=>typeof i=="function"?(0,xe.findPath)(o,this.mergeOptions({predicate:i})):(0,xe.findPath)(o,this.mergeOptions(Object.assign({},i))),this.findAllPaths=(o,i)=>typeof i=="function"?(0,xe.findAllPaths)(o,this.mergeOptions({predicate:i})):(0,xe.findAllPaths)(o,this.mergeOptions(Object.assign({},i))),this.entries=o=>(0,_u.entries)(o,this.mergeOptions({})),this.flat=o=>(0,Tu.flat)(o,this.mergeOptions({})),this.reduce=(o,i,c)=>(0,xu.reduce)(o,this.mergeOptions({nextResult:i,initialResult:c})),this.map=(o,i)=>(0,$o.map)(o,this.mergeOptions({transform:i})),this.flatMap=(o,i)=>(0,$o.flatMap)(o,this.mergeOptions({transform:i})),this.visit=(o,i)=>typeof i=="function"?(0,Go.visit)(o,this.mergeOptions({onEnter:i})):(0,Go.visit)(o,this.mergeOptions(Object.assign({},i))),this.insert=(o,i)=>(0,Wo.insert)(o,this.mergeOptions(i)),this.insertWithPathTracking=(o,i)=>(0,Wo.insertWithPathTracking)(o,this.mergeOptions(i)),this.remove=(o,i)=>(0,Ho.remove)(o,this.mergeOptions(i)),this.removeWithPathTracking=(o,i)=>(0,Ho.removeWithPathTracking)(o,this.mergeOptions(i)),this.move=(o,i)=>(0,bu.move)(o,this.mergeOptions(i)),this.splice=(o,i)=>(0,Vo.splice)(o,this.mergeOptions(i)),this.spliceWithPathTracking=(o,i)=>(0,Vo.spliceWithPathTracking)(o,this.mergeOptions(i)),this.replace=(o,i)=>(0,Ou.replace)(o,this.mergeOptions(i)),this.baseOptions=typeof r=="function"?{getChildren:r}:r,this._getChildren=this.baseOptions.getChildren}};function ku(e){return new Yt(e,{})}});var Yo=S(Ko=>{"use strict";s();u();Object.defineProperty(Ko,"__esModule",{value:!0})});var Zo=S(Xo=>{"use strict";s();u();Object.defineProperty(Xo,"__esModule",{value:!0})});var Qo=S(Kr=>{"use strict";s();u();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.withOptions=void 0;var Su=Zt();Kr.withOptions=Su.defineTree});var Jo=S(I=>{"use strict";s();u();var Pu=I&&I.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n);var i=Object.getOwnPropertyDescriptor(r,n);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,o,i)}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),$=I&&I.__exportStar||function(e,r){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&Pu(r,e,n)};Object.defineProperty(I,"__esModule",{value:!0});$(Mr(),I);$(jr(),I);$(Zt(),I);$(Pt(),I);$(Rt(),I);$(Dt(),I);$(Mt(),I);$(Yo(),I);$(Ut(),I);$(Br(),I);$(Wt(),I);$(Zo(),I);$(Lr(),I);$(Ht(),I);$(Gt(),I);$(Ir(),I);$(Kt(),I);$(It(),I);$(Se(),I);$(Qo(),I)});var mi=S(O=>{"use strict";s();u();var nr=Symbol.for("react.element"),Fu=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Iu=Symbol.for("react.profiler"),ju=Symbol.for("react.provider"),zu=Symbol.for("react.context"),Lu=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),Bu=Symbol.for("react.memo"),qu=Symbol.for("react.lazy"),ii=Symbol.iterator;function Wu(e){return e===null||typeof e!="object"?null:(e=ii&&e[ii]||e["@@iterator"],typeof e=="function"?e:null)}var ui={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ci=Object.assign,fi={};function $e(e,r,n){this.props=e,this.context=r,this.refs=fi,this.updater=n||ui}$e.prototype.isReactComponent={};$e.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};$e.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function li(){}li.prototype=$e.prototype;function rn(e,r,n){this.props=e,this.context=r,this.refs=fi,this.updater=n||ui}var tn=rn.prototype=new li;tn.constructor=rn;ci(tn,$e.prototype);tn.isPureReactComponent=!0;var ai=Array.isArray,di=Object.prototype.hasOwnProperty,nn={current:null},pi={key:!0,ref:!0,__self:!0,__source:!0};function hi(e,r,n){var o,i={},c=null,f=null;if(r!=null)for(o in r.ref!==void 0&&(f=r.ref),r.key!==void 0&&(c=""+r.key),r)di.call(r,o)&&!pi.hasOwnProperty(o)&&(i[o]=r[o]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var p=Array(l),g=0;g<l;g++)p[g]=arguments[g+2];i.children=p}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)i[o]===void 0&&(i[o]=l[o]);return{$$typeof:nr,type:e,key:c,ref:f,props:i,_owner:nn.current}}function $u(e,r){return{$$typeof:nr,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function on(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr}function Hu(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return r[n]})}var si=/\/+/g;function en(e,r){return typeof e=="object"&&e!==null&&e.key!=null?Hu(""+e.key):r.toString(36)}function Xr(e,r,n,o,i){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case nr:case Fu:f=!0}}if(f)return f=e,i=i(f),e=o===""?"."+en(f,0):o,ai(i)?(n="",e!=null&&(n=e.replace(si,"$&/")+"/"),Xr(i,r,n,"",function(g){return g})):i!=null&&(on(i)&&(i=$u(i,n+(!i.key||f&&f.key===i.key?"":(""+i.key).replace(si,"$&/")+"/")+e)),r.push(i)),1;if(f=0,o=o===""?".":o+":",ai(e))for(var l=0;l<e.length;l++){c=e[l];var p=o+en(c,l);f+=Xr(c,r,n,p,i)}else if(p=Wu(e),typeof p=="function")for(e=p.call(e),l=0;!(c=e.next()).done;)c=c.value,p=o+en(c,l++),f+=Xr(c,r,n,p,i);else if(c==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return f}function Yr(e,r,n){if(e==null)return e;var o=[],i=0;return Xr(e,o,"","",function(c){return r.call(n,c,i++)}),o}function Vu(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var ee={current:null},Zr={transition:null},Gu={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:Zr,ReactCurrentOwner:nn};function vi(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:Yr,forEach:function(e,r,n){Yr(e,function(){r.apply(this,arguments)},n)},count:function(e){var r=0;return Yr(e,function(){r++}),r},toArray:function(e){return Yr(e,function(r){return r})||[]},only:function(e){if(!on(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=$e;O.Fragment=Mu;O.Profiler=Iu;O.PureComponent=rn;O.StrictMode=Nu;O.Suspense=Uu;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gu;O.act=vi;O.cloneElement=function(e,r,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=ci({},e.props),i=e.key,c=e.ref,f=e._owner;if(r!=null){if(r.ref!==void 0&&(c=r.ref,f=nn.current),r.key!==void 0&&(i=""+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(p in r)di.call(r,p)&&!pi.hasOwnProperty(p)&&(o[p]=r[p]===void 0&&l!==void 0?l[p]:r[p])}var p=arguments.length-2;if(p===1)o.children=n;else if(1<p){l=Array(p);for(var g=0;g<p;g++)l[g]=arguments[g+2];o.children=l}return{$$typeof:nr,type:e.type,key:i,ref:c,props:o,_owner:f}};O.createContext=function(e){return e={$$typeof:zu,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ju,_context:e},e.Consumer=e};O.createElement=hi;O.createFactory=function(e){var r=hi.bind(null,e);return r.type=e,r};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:Lu,render:e}};O.isValidElement=on;O.lazy=function(e){return{$$typeof:qu,_payload:{_status:-1,_result:e},_init:Vu}};O.memo=function(e,r){return{$$typeof:Bu,type:e,compare:r===void 0?null:r}};O.startTransition=function(e){var r=Zr.transition;Zr.transition={};try{e()}finally{Zr.transition=r}};O.unstable_act=vi;O.useCallback=function(e,r){return ee.current.useCallback(e,r)};O.useContext=function(e){return ee.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return ee.current.useDeferredValue(e)};O.useEffect=function(e,r){return ee.current.useEffect(e,r)};O.useId=function(){return ee.current.useId()};O.useImperativeHandle=function(e,r,n){return ee.current.useImperativeHandle(e,r,n)};O.useInsertionEffect=function(e,r){return ee.current.useInsertionEffect(e,r)};O.useLayoutEffect=function(e,r){return ee.current.useLayoutEffect(e,r)};O.useMemo=function(e,r){return ee.current.useMemo(e,r)};O.useReducer=function(e,r,n){return ee.current.useReducer(e,r,n)};O.useRef=function(e){return ee.current.useRef(e)};O.useState=function(e){return ee.current.useState(e)};O.useSyncExternalStore=function(e,r,n){return ee.current.useSyncExternalStore(e,r,n)};O.useTransition=function(){return ee.current.useTransition()};O.version="18.3.1"});var yi=S((k,Qr)=>{"use strict";s();u();process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.3.1",r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),l=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),x=Symbol.iterator,A="@@iterator";function F(t){if(t===null||typeof t!="object")return null;var a=x&&t[x]||t[A];return typeof a=="function"?a:null}var N={current:null},K={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Y={current:null},ue={},ie=null;function ge(t){ie=t}ue.setExtraStackFrame=function(t){ie=t},ue.getCurrentStack=null,ue.getStackAddendum=function(){var t="";ie&&(t+=ie);var a=ue.getCurrentStack;return a&&(t+=a()||""),t};var H=!1,ce=!1,Pe=!1,we=!1,Oe=!1,ne={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:K,ReactCurrentOwner:Y};ne.ReactDebugCurrentFrame=ue,ne.ReactCurrentActQueue=z;function fe(t){{for(var a=arguments.length,d=new Array(a>1?a-1:0),h=1;h<a;h++)d[h-1]=arguments[h];le("warn",t,d)}}function P(t){{for(var a=arguments.length,d=new Array(a>1?a-1:0),h=1;h<a;h++)d[h-1]=arguments[h];le("error",t,d)}}function le(t,a,d){{var h=ne.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(a+="%s",d=d.concat([y]));var _=d.map(function(w){return String(w)});_.unshift("Warning: "+a),Function.prototype.apply.call(console[t],console,_)}}var or={};function He(t,a){{var d=t.constructor,h=d&&(d.displayName||d.name)||"ReactClass",y=h+"."+a;if(or[y])return;P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,h),or[y]=!0}}var Ce={isMounted:function(t){return!1},enqueueForceUpdate:function(t,a,d){He(t,"forceUpdate")},enqueueReplaceState:function(t,a,d,h){He(t,"replaceState")},enqueueSetState:function(t,a,d,h){He(t,"setState")}},X=Object.assign,Re={};Object.freeze(Re);function oe(t,a,d){this.props=t,this.context=a,this.refs=Re,this.updater=d||Ce}oe.prototype.isReactComponent={},oe.prototype.setState=function(t,a){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,a,"setState")},oe.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};{var ke={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ve=function(t,a){Object.defineProperty(oe.prototype,t,{get:function(){fe("%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var De in ke)ke.hasOwnProperty(De)&&Ve(De,ke[De])}function Ge(){}Ge.prototype=oe.prototype;function Ae(t,a,d){this.props=t,this.context=a,this.refs=Re,this.updater=d||Ce}var Fe=Ae.prototype=new Ge;Fe.constructor=Ae,X(Fe,oe.prototype),Fe.isPureReactComponent=!0;function Ei(){var t={current:null};return Object.seal(t),t}var _i=Array.isArray;function ir(t){return _i(t)}function Ti(t){{var a=typeof Symbol=="function"&&Symbol.toStringTag,d=a&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function bi(t){try{return fn(t),!1}catch{return!0}}function fn(t){return""+t}function ar(t){if(bi(t))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ti(t)),fn(t)}function xi(t,a,d){var h=t.displayName;if(h)return h;var y=a.displayName||a.name||"";return y!==""?d+"("+y+")":d}function ln(t){return t.displayName||"Context"}function Ee(t){if(t==null)return null;if(typeof t.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case c:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case E:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case l:var a=t;return ln(a)+".Consumer";case f:var d=t;return ln(d._context)+".Provider";case p:return xi(t,t.render,"ForwardRef");case T:var h=t.displayName||null;return h!==null?h:Ee(t.type)||"Memo";case R:{var y=t,_=y._payload,w=y._init;try{return Ee(w(_))}catch{return null}}}return null}var Ke=Object.prototype.hasOwnProperty,dn={key:!0,ref:!0,__self:!0,__source:!0},pn,hn,Jr;Jr={};function vn(t){if(Ke.call(t,"ref")){var a=Object.getOwnPropertyDescriptor(t,"ref").get;if(a&&a.isReactWarning)return!1}return t.ref!==void 0}function mn(t){if(Ke.call(t,"key")){var a=Object.getOwnPropertyDescriptor(t,"key").get;if(a&&a.isReactWarning)return!1}return t.key!==void 0}function Oi(t,a){var d=function(){pn||(pn=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}function ki(t,a){var d=function(){hn||(hn=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};d.isReactWarning=!0,Object.defineProperty(t,"ref",{get:d,configurable:!0})}function Si(t){if(typeof t.ref=="string"&&Y.current&&t.__self&&Y.current.stateNode!==t.__self){var a=Ee(Y.current.type);Jr[a]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,t.ref),Jr[a]=!0)}}var et=function(t,a,d,h,y,_,w){var b={$$typeof:r,type:t,key:a,ref:d,props:w,_owner:_};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Pi(t,a,d){var h,y={},_=null,w=null,b=null,C=null;if(a!=null){vn(a)&&(w=a.ref,Si(a)),mn(a)&&(ar(a.key),_=""+a.key),b=a.__self===void 0?null:a.__self,C=a.__source===void 0?null:a.__source;for(h in a)Ke.call(a,h)&&!dn.hasOwnProperty(h)&&(y[h]=a[h])}var M=arguments.length-2;if(M===1)y.children=d;else if(M>1){for(var L=Array(M),U=0;U<M;U++)L[U]=arguments[U+2];Object.freeze&&Object.freeze(L),y.children=L}if(t&&t.defaultProps){var B=t.defaultProps;for(h in B)y[h]===void 0&&(y[h]=B[h])}if(_||w){var q=typeof t=="function"?t.displayName||t.name||"Unknown":t;_&&Oi(y,q),w&&ki(y,q)}return et(t,_,w,b,C,Y.current,y)}function Ci(t,a){var d=et(t.type,a,t.ref,t._self,t._source,t._owner,t.props);return d}function Ri(t,a,d){if(t==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var h,y=X({},t.props),_=t.key,w=t.ref,b=t._self,C=t._source,M=t._owner;if(a!=null){vn(a)&&(w=a.ref,M=Y.current),mn(a)&&(ar(a.key),_=""+a.key);var L;t.type&&t.type.defaultProps&&(L=t.type.defaultProps);for(h in a)Ke.call(a,h)&&!dn.hasOwnProperty(h)&&(a[h]===void 0&&L!==void 0?y[h]=L[h]:y[h]=a[h])}var U=arguments.length-2;if(U===1)y.children=d;else if(U>1){for(var B=Array(U),q=0;q<U;q++)B[q]=arguments[q+2];y.children=B}return et(t.type,_,w,b,C,M,y)}function Me(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}var yn=".",Di=":";function Ai(t){var a=/[=:]/g,d={"=":"=0",":":"=2"},h=t.replace(a,function(y){return d[y]});return"$"+h}var gn=!1,Fi=/\/+/g;function wn(t){return t.replace(Fi,"$&/")}function rt(t,a){return typeof t=="object"&&t!==null&&t.key!=null?(ar(t.key),Ai(""+t.key)):a.toString(36)}function sr(t,a,d,h,y){var _=typeof t;(_==="undefined"||_==="boolean")&&(t=null);var w=!1;if(t===null)w=!0;else switch(_){case"string":case"number":w=!0;break;case"object":switch(t.$$typeof){case r:case n:w=!0}}if(w){var b=t,C=y(b),M=h===""?yn+rt(b,0):h;if(ir(C)){var L="";M!=null&&(L=wn(M)+"/"),sr(C,a,L,"",function(Oa){return Oa})}else C!=null&&(Me(C)&&(C.key&&(!b||b.key!==C.key)&&ar(C.key),C=Ci(C,d+(C.key&&(!b||b.key!==C.key)?wn(""+C.key)+"/":"")+M)),a.push(C));return 1}var U,B,q=0,G=h===""?yn:h+Di;if(ir(t))for(var vr=0;vr<t.length;vr++)U=t[vr],B=G+rt(U,vr),q+=sr(U,a,d,B,y);else{var ft=F(t);if(typeof ft=="function"){var $n=t;ft===$n.entries&&(gn||fe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),gn=!0);for(var ba=ft.call($n),Hn,xa=0;!(Hn=ba.next()).done;)U=Hn.value,B=G+rt(U,xa++),q+=sr(U,a,d,B,y)}else if(_==="object"){var Vn=String(t);throw new Error("Objects are not valid as a React child (found: "+(Vn==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":Vn)+"). If you meant to render a collection of children, use an array instead.")}}return q}function ur(t,a,d){if(t==null)return t;var h=[],y=0;return sr(t,h,"","",function(_){return a.call(d,_,y++)}),h}function Mi(t){var a=0;return ur(t,function(){a++}),a}function Ni(t,a,d){ur(t,function(){a.apply(this,arguments)},d)}function Ii(t){return ur(t,function(a){return a})||[]}function ji(t){if(!Me(t))throw new Error("React.Children.only expected to receive a single React element child.");return t}function zi(t){var a={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:f,_context:a};var d=!1,h=!1,y=!1;{var _={$$typeof:l,_context:a};Object.defineProperties(_,{Provider:{get:function(){return h||(h=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),a.Provider},set:function(w){a.Provider=w}},_currentValue:{get:function(){return a._currentValue},set:function(w){a._currentValue=w}},_currentValue2:{get:function(){return a._currentValue2},set:function(w){a._currentValue2=w}},_threadCount:{get:function(){return a._threadCount},set:function(w){a._threadCount=w}},Consumer:{get:function(){return d||(d=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),a.Consumer}},displayName:{get:function(){return a.displayName},set:function(w){y||(fe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",w),y=!0)}}}),a.Consumer=_}return a._currentRenderer=null,a._currentRenderer2=null,a}var Ye=-1,tt=0,En=1,Li=2;function Ui(t){if(t._status===Ye){var a=t._result,d=a();if(d.then(function(_){if(t._status===tt||t._status===Ye){var w=t;w._status=En,w._result=_}},function(_){if(t._status===tt||t._status===Ye){var w=t;w._status=Li,w._result=_}}),t._status===Ye){var h=t;h._status=tt,h._result=d}}if(t._status===En){var y=t._result;return y===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";var Po=Object.create;var et=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var Xr=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Do=(e,t)=>{for(var r in t)et(e,r,{get:t[r],enumerable:!0})},Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of No(t))!Co.call(e,i)&&i!==r&&et(e,i,{get:()=>t[i],enumerable:!(n=Ro(t,i))||n.enumerable});return e};var Ue=(e,t,r)=>(r=e!=null?Po(Mo(e)):{},Zr(t||!e||!e.__esModule?et(r,"default",{value:e,enumerable:!0}):r,e)),Fo=e=>Zr(et({},"__esModule",{value:!0}),e);var a=Xr(()=>{});var s=Xr(()=>{"use strict"});var gn=A(vn=>{"use strict";a();s();Object.defineProperty(vn,"__esModule",{value:!0})});var qe=A(ut=>{"use strict";a();s();Object.defineProperty(ut,"__esModule",{value:!0});ut.Nodes=void 0;function ei(e,t){return{type:"file",data:e,metadata:t}}function ti(e={},t){return{type:"directory",children:e,metadata:t}}function ri(e){return e.type==="file"}function ni(e){return e.type==="directory"}function oi(e){return e.metadata}function ii(e){return Object.keys(e.children)}function ai(e,t){return e.children[t]}function si(e,t){return t in e.children}ut.Nodes={createDirectory:ti,createFile:ei,getChild:ai,getMetadata:oi,hasChild:si,isDirectory:ni,isFile:ri,readDirectory:ii}});var He=A(L=>{"use strict";a();s();Object.defineProperty(L,"__esModule",{value:!0});L.dirname=L.basename=L.extname=L.join=L.normalize=L.sep=void 0;L.sep="/";function ui(e,t){return e.startsWith("/")&&(t="/"+t),t[t.length-1]!=="/"&&e.endsWith("/")&&(t=t+"/"),t}function yn(e){let t=e.split(L.sep).filter(i=>!!i),r=0,n=t.length-1;for(;r<n;)t[r]==="."?(t.splice(r,1),n--):t[r]===".."&&r!==0?(t.splice(r-1,2),n-=2,r-=1):t[r]===""&&t[r+1]===""?(t.splice(r,1),n--):r++;return ui(e,t.join(L.sep))}L.normalize=yn;function ci(...e){let t=yn(e.join(L.sep));return t===""&&(t="."),t}L.join=ci;function fi(e){let t=e.lastIndexOf(".");return t!==-1?e.slice(t):e}L.extname=fi;function Wt(e,t){t&&e.endsWith(t)&&(e=e.slice(0,-t.length));let r=e.lastIndexOf(L.sep);return r===e.length-1?(e=e.slice(0,-1),e.length>1?Wt(e):e):e.slice(r+1)}L.basename=Wt;function li(e){let t=Wt(e),r=e.slice(0,-(t.length+1));return r===""&&(e.startsWith(L.sep)?r=L.sep:r="."),r}L.dirname=li});var wn=A(ct=>{"use strict";a();s();Object.defineProperty(ct,"__esModule",{value:!0});ct.Entries=void 0;var di=qe(),pi=He();function hi(e){let[t,r]=e;return di.Nodes.isDirectory(r)?Object.entries(r.children).map(([n,i])=>[(0,pi.join)(t,n),i]):[]}function mi(e,t){return[e,t]}ct.Entries={createEntry:mi,getEntries:hi}});var lt=A(ve=>{"use strict";a();s();Object.defineProperty(ve,"__esModule",{value:!0});ve.getNewAndParentName=ve.normalizePathLikeInternal=ve.getPathComponents=void 0;var ft=He();function En(e){return t((0,ft.normalize)(e));function t(r){if(r.startsWith(".."))throw new Error(`Invalid path ${r}, can't go up past root.`);return r.startsWith(".")||r.startsWith("/")?t(r.slice(1)):r===""?[]:r.split(ft.sep).filter(n=>!!n)}}ve.getPathComponents=En;function vi(e){return typeof e=="string"?En(e):e}ve.normalizePathLikeInternal=vi;function gi(e){let t=typeof e=="string"?(0,ft.dirname)(e):e.slice(0,-1),r=typeof e=="string"?(0,ft.basename)(e):e[e.length-1];return{parentName:t,newName:r}}ve.getNewAndParentName=gi});var $t=A(Q=>{"use strict";a();s();Object.defineProperty(Q,"__esModule",{value:!0});Q.getMetadata=Q.readDirectory=Q.readFile=Q.getNode=Q.getNodeInternal=void 0;var Ne=qe(),We=He(),dt=lt();function _n(e,t,r){let n=(0,dt.normalizePathLikeInternal)(t),i=0,u=e;for(;i<n.length;){let c=n[i];if(u.type!=="directory")throw new Error(`File ${(0,We.join)(...n.slice(0,i))} is not a directory`);let l=Ne.Nodes.getChild(u,c);if(!l)if(r.makeIntermediateDirectoryMetadata){let d=Ne.Nodes.createDirectory({},r.makeIntermediateDirectoryMetadata((0,We.join)(...n.slice(0,i+1))));u.children[c]=d,l=d}else if(r.makeIntermediateDirectories){let d=Ne.Nodes.createDirectory();u.children[c]=d,l=d}else throw new Error(`File ${(0,We.join)(...n.slice(0,i+1))} not found`);u=l,i++}return u}Q.getNodeInternal=_n;function pt(e,t){return _n(e,t,{})}Q.getNode=pt;function yi(e,t){let r=(0,dt.normalizePathLikeInternal)(t),n=pt(e,r);if(!Ne.Nodes.isFile(n))throw new Error(`Can't read, ${(0,We.join)(...r)} not a file`);return n.data}Q.readFile=yi;function wi(e,t){let r=(0,dt.normalizePathLikeInternal)(t),n=pt(e,r);if(!Ne.Nodes.isDirectory(n))throw new Error(`Can't read, ${(0,We.join)(...r)} not a directory`);return Ne.Nodes.readDirectory(n)}Q.readDirectory=wi;function Ei(e,t){let r=(0,dt.normalizePathLikeInternal)(t);return pt(e,r).metadata}Q.getMetadata=Ei});var On=A(Y=>{"use strict";a();s();Object.defineProperty(Y,"__esModule",{value:!0});Y.create=Y.setMetadata=Y.removeFile=Y.makeDirectory=Y.writeFile=Y.setNode=void 0;var ge=qe(),Kt=lt(),ht=$t();function Tn(e,t,r,n){let{parentName:i,newName:u}=(0,Kt.getNewAndParentName)(t),c=(0,ht.getNodeInternal)(e,i,n??{});if(!ge.Nodes.isDirectory(c))throw new Error(`Can't create ${u}, ${i} not a directory`);c.children[u]=r}Y.setNode=Tn;function _i(e,t,r,n){var i;Tn(e,t,ge.Nodes.createFile(r,(i=n)===null||i===void 0?void 0:i.metadata),n)}Y.writeFile=_i;function Ti(e,t,r){var n;let{parentName:i,newName:u}=(0,Kt.getNewAndParentName)(t),c=(0,ht.getNodeInternal)(e,i,r??{});if(!ge.Nodes.isDirectory(c))throw new Error(`Can't create ${u}, ${i} not a directory`);ge.Nodes.getChild(c,u)&&ge.Nodes.isDirectory(c.children[u])||(c.children[u]=ge.Nodes.createDirectory({},(n=r)===null||n===void 0?void 0:n.metadata))}Y.makeDirectory=Ti;function Oi(e,t){let{parentName:r,newName:n}=(0,Kt.getNewAndParentName)(t),i=(0,ht.getNode)(e,r);if(!ge.Nodes.isDirectory(i))throw new Error(`Can't remove file ${n}, ${r} not a directory`);delete i.children[n]}Y.removeFile=Oi;function xi(e,t,r){let n=(0,ht.getNode)(e,t);n.metadata=r}Y.setMetadata=xi;function bi(e){return ge.Nodes.createDirectory({},e&&"metadata"in e?e.metadata:void 0)}Y.create=bi});var xn=A(vt=>{"use strict";a();s();Object.defineProperty(vt,"__esModule",{value:!0});vt.Volume=void 0;var ki=lt(),mt=$t(),Me=On();vt.Volume={getPathComponents:ki.getPathComponents,getMetadata:mt.getMetadata,getNode:mt.getNode,readDirectory:mt.readDirectory,readFile:mt.readFile,create:Me.create,makeDirectory:Me.makeDirectory,removeFile:Me.removeFile,setMetadata:Me.setMetadata,setNode:Me.setNode,writeFile:Me.writeFile}});var Yt=A(H=>{"use strict";a();s();var bn=H&&H.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Si=H&&H.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),gt=H&&H.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bn(t,e,r)},Ai=H&&H.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&bn(t,e,r);return Si(t,e),t};Object.defineProperty(H,"__esModule",{value:!0});H.path=void 0;gt(gn(),H);gt(qe(),H);gt(wn(),H);gt(xn(),H);H.path=Ai(He())});var yt=A(Ce=>{"use strict";a();s();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.get=Pi;Ce.ancestors=Ri;Ce.access=Ni;Ce.accessPath=Sn;function Pi(e,t,r){if(r.includeTraversalContext){let i=kn(e,t,r);return i[i.length-1]}let n=t.slice();for(;n.length>0;){let i=n.shift(),c=r.getChildren(e,n)[i];if(!c)return;e=c}return e}function Ri(e,t,r){return kn(e,t,r).slice(0,-1)}function kn(e,t,r){let n=t.slice(),i=[e];for(;n.length>0;){let u=n.shift(),c=r.includeTraversalContext?An(i):void 0,d=r.getChildren(e,n,c)[u];if(!d)return i;e=d,i.push(e)}return i}function Ni(e,t,r){if(r.includeTraversalContext){let i=Sn(e,t,r);return i[i.length-1]}let n=t.slice();for(;n.length>0;){let i=n.shift();e=r.getChildren(e,n)[i]}return e}function Sn(e,t,r){let n=t.slice(),i=[e];for(;n.length>0;){let u=n.shift(),c=r.includeTraversalContext?An(i):void 0;e=r.getChildren(e,n,c)[u],i.push(e)}return i}function An(e){return{getRoot:()=>e[0],getParent:()=>e[e.length-2],getAncestors:()=>e.slice(0,-1)}}});var Et=A(wt=>{"use strict";a();s();Object.defineProperty(wt,"__esModule",{value:!0});wt.comparePathsByComponent=Pn;wt.sortPaths=Mi;function Pn(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length-t.length}function Mi(e){return[...e].sort(Pn)}});var _t=A(Gt=>{"use strict";a();s();Object.defineProperty(Gt,"__esModule",{value:!0});Gt.ancestorPaths=Di;var Ci=Et();function Di(e,t){var r;let n=new Map,i=(r=t?.compare)!==null&&r!==void 0?r:Ci.comparePathsByComponent,u=e.sort(i);for(let c of u)c.some((d,g)=>{let w=c.slice(0,g).join();return n.has(w)})||n.set(c.join(),c);return Array.from(n.values())}});var Mn=A(Xt=>{"use strict";a();s();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.boxDiagram=zi;var q;(function(e){e.TopLeft="\u250C",e.TopRight="\u2510",e.BottomLeft="\u2514",e.BottomRight="\u2518",e.Horizontal="\u2500",e.Vertical="\u2502",e.BottomConnectorDown="\u252C",e.BottomConnectorUp="\u2534",e.TopConnectorUp="\u2534"})(q||(q={}));function Fi(e){let t=e.split(`
2
+ `),r=Math.max(...t.map(l=>l.length)),n=1,i=r+n*2+2,u=2+t.length,c=[[q.TopLeft,q.Horizontal.repeat(r+n*2),q.TopRight],...t.map(l=>[q.Vertical," ".repeat(n),l+(l.length<r?" ".repeat(r-l.length):"")," ".repeat(n),q.Vertical]),[q.BottomLeft,q.Horizontal.repeat(r+n*2),q.BottomRight]];return{width:i,height:u,contents:c.map(l=>l.join(""))}}function Ii(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");return e.slice(1).reduce((r,n)=>{let i=Math.max(r.height,n.height),u=r.width+1+n.width,c=[];for(let l=0;l<i;l++)c.push((r.contents[l]||" ".repeat(r.width))+" ".repeat(1)+(n.contents[l]||" ".repeat(n.width)));return{height:i,width:u,contents:Nn(c,u)}},e[0])}function ji(e){if(e.length===0)throw new Error("Can't merge empty array of boxes");let r=Math.max(...e.map(n=>n.width));return e.slice(1).reduce((n,i)=>{let u=n.height+1+i.height,c=[];for(let l=0;l<u;l++)l<n.height?c.push(n.contents[l]):l===n.height?c.push(" ".repeat(r)):c.push(i.contents[l-n.height-1]);return{height:u,width:r,contents:Nn(c,r)}},e[0])}function Rn(e,t,r){let n=r.getLabel(e,t),i=Fi(n),u=r.getChildren(e,t);if(u.length===0)return i;let c=u.map((C,j)=>{let T=Rn(C,[...t,j],r);return T.contents[0]=Vt(T.contents[0],Tt(T.contents[0].length),q.TopConnectorUp),T}),l=ji([i,Ii(c)]),d=l.contents,g=Tt(l.width);d[i.height-1]=Vt(d[i.height-1],g,q.BottomConnectorDown);let w=d[i.height+1].indexOf(q.TopConnectorUp),E=d[i.height+1].lastIndexOf(q.TopConnectorUp);for(let C=w;C<=E;C++){let j;C===g?j=c.length>1?q.BottomConnectorUp:q.Vertical:C===w?j=q.TopLeft:C===E?j=q.TopRight:j=q.Horizontal,l.contents[i.height]=Vt(l.contents[i.height],C,j)}return l}function zi(e,t){return Rn(e,[],t).contents.join(`
3
+ `)}function Tt(e){return Math.floor(e/2)}function Li(e,t){let r=t-e.length;if(r<=0)return e;let n=Tt(r),i=Tt(r),u=" ".repeat(n)+e+" ".repeat(i);return n+i+u.length<t?u+" ":u}function Nn(e,t){return e.map(r=>Li(r,t))}function Vt(e,t,r){return t>e.length-1?e:e.substring(0,t)+r+e.substring(t+1)}});var Dn=A($e=>{"use strict";a();s();Object.defineProperty($e,"__esModule",{value:!0});$e.directoryDiagram=Ui;$e.isMultiline=Qt;$e.prefixBlock=Cn;var se;(function(e){e.Child="\u251C\u2500\u2500 ",e.LastChild="\u2514\u2500\u2500 ",e.NestedChild="\u2502 ",e.LastNestedChild=" "})(se||(se={}));function Zt(e,t,r){let n=r.getLabel(e,t),i=t.length,u={label:n,depth:i,prefix:"",multilinePrefix:""},c=r.getChildren(e,t);if(c.length===0)return[u];if(r.flattenSingleChildNodes&&c.length===1&&!Qt(n)){let[d]=Zt(c[0],[...t,0],r),g=t.length===0&&n==="";return u.label=g?`/ ${d.label}`:`${u.label} / ${d.label}`,[u]}let l=c.flatMap((d,g,w)=>{let E=g===w.length-1,C=Zt(d,[...t,g],r),j=E?se.LastChild:se.Child,T=E?se.LastNestedChild:se.NestedChild;return C.forEach(P=>{P.depth===i+1?(P.prefix=j+P.prefix,P.multilinePrefix=T+P.multilinePrefix):E?(P.prefix=se.LastNestedChild+P.prefix,P.multilinePrefix=se.LastNestedChild+P.multilinePrefix):(P.prefix=se.NestedChild+P.prefix,P.multilinePrefix=se.NestedChild+P.multilinePrefix)}),C});return[u,...l]}function Ui(e,t){return Zt(e,[],t).map(i=>Cn(i.label,i.prefix,i.multilinePrefix)).join(`
4
+ `)}function Qt(e){return e.includes(`
5
+ `)}function Cn(e,t,r){return Qt(e)?e.split(`
6
+ `).map((n,i)=>(i===0?t:r)+n).join(`
7
+ `):t+e}});var er=A(Jt=>{"use strict";a();s();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.diagram=Hi;var Bi=Mn(),qi=Dn();function Hi(e,t){return t.type==="box"?(0,Bi.boxDiagram)(e,t):(0,qi.directoryDiagram)(e,t)}});var _e=A(ue=>{"use strict";a();s();Object.defineProperty(ue,"__esModule",{value:!0});ue.STOP=ue.SKIP=void 0;ue.visit=Wi;ue.SKIP="skip";ue.STOP="stop";function Wi(e,t){let{onEnter:r,onLeave:n,getChildren:i,onDetectCycle:u,getIdentifier:c,direction:l="forward"}=t,d=(T,P,F)=>{let N=i(T,P,F);return l==="forward"?N:N.slice().reverse()},g=[],w=[{node:e}],E=u?new Set:void 0,C=t.includeTraversalContext?{getRoot(){return e},getParent(){var T;return(T=w[w.length-2])===null||T===void 0?void 0:T.node},getAncestors(){return w.slice(0,-1).map(T=>T.node)}}:void 0,j=t.reuseIndexPath?()=>g:()=>g.slice();for(;w.length>0;){let T=w[w.length-1];if(T.state===void 0){if(E){let N=c?c(T.node):T.node;if(E.has(N)){if((typeof u=="function"?u(T.node,j(),C):u)==="error")throw new Error("Cycle detected in tree");T.state=-1;continue}E.add(N)}let F=r?.(T.node,j());if(F===ue.STOP)return;T.state=F===ue.SKIP?-1:0}let P=T.children||d(T.node,j(),C);if(T.children||(T.children=P),T.state!==-1){if(T.state<P.length){let N=T.state;g.push(l==="forward"?N:P.length-N-1),w.push({node:P[N]}),T.state=N+1;continue}if(n?.(T.node,j())===ue.STOP)return}if(E){let F=c?c(T.node):T.node;E.delete(F)}g.pop(),w.pop()}}});var rr=A(tr=>{"use strict";a();s();Object.defineProperty(tr,"__esModule",{value:!0});tr.entries=Ki;var $i=_e();function Ki(e,t){let r=[];return(0,$i.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{r.push([i,n])}})),r}});var nr=A(Fe=>{"use strict";a();s();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.find=Yi;Fe.findAll=Gi;Fe.findPath=Vi;Fe.findAllPaths=Xi;var De=_e();function Yi(e,t){let r;return(0,De.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{if(t.predicate(n,i))return r=n,De.STOP}})),r}function Gi(e,t){let r=[];return(0,De.visit)(e,{onEnter:(n,i)=>{t.predicate(n,i)&&r.push(n)},getChildren:t.getChildren}),r}function Vi(e,t){let r;return(0,De.visit)(e,{onEnter:(n,i)=>{if(t.predicate(n,i))return r=[...i],De.STOP},getChildren:t.getChildren}),r}function Xi(e,t){let r=[];return(0,De.visit)(e,{onEnter:(n,i)=>{t.predicate(n,i)&&r.push([...i])},getChildren:t.getChildren}),r}});var Ot=A(or=>{"use strict";a();s();Object.defineProperty(or,"__esModule",{value:!0});or.reduce=Qi;var Zi=_e();function Qi(e,t){let r=t.initialResult;return(0,Zi.visit)(e,Object.assign(Object.assign({},t),{onEnter:(n,i)=>{r=t.nextResult(r,n,i)}})),r}});var ar=A(ir=>{"use strict";a();s();Object.defineProperty(ir,"__esModule",{value:!0});ir.flat=ea;var Ji=Ot();function ea(e,t){return(0,Ji.reduce)(e,Object.assign(Object.assign({},t),{initialResult:[],nextResult:(r,n)=>(r.push(n),r)}))}});var bt=A(xt=>{"use strict";a();s();Object.defineProperty(xt,"__esModule",{value:!0});xt.map=ra;xt.flatMap=Fn;var ta=_e();function ra(e,t){return Fn(e,Object.assign(Object.assign({},t),{transform:(r,n,i)=>[t.transform(r,n,i)]}))}function Fn(e,t){let r={};return(0,ta.visit)(e,Object.assign(Object.assign({},t),{onLeave:(n,i)=>{var u,c;let l=[0,...i],d=l.join(),g=t.transform(n,(u=r[d])!==null&&u!==void 0?u:[],i),w=l.slice(0,-1).join(),E=(c=r[w])!==null&&c!==void 0?c:[];E.push(...g),r[w]=E}})),r[""][0]}});var ur=A(sr=>{"use strict";a();s();Object.defineProperty(sr,"__esModule",{value:!0});sr.transformPath=ia;var na=Et();function oa(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)if(e[n]!==t[n])return e.slice(0,n);return e.slice(0,r)}function ia(e,t,r,n=1){if(r.length>e.length||(0,na.comparePathsByComponent)(r,e)>0)return e;if(r.length===0&&t==="remove")return;let i=oa(e,r),u=i.length===e.length||i.length===r.length?i.length-1:i.length,c=e[u],l=r[u];if(t==="insert"&&l<=c){let d=[...e];return d[u]+=n,d}else if(t==="remove"){if(l===c)return;if(l<c){let d=[...e];return d[u]-=n,d}}return e}});var Ie=A(oe=>{"use strict";a();s();Object.defineProperty(oe,"__esModule",{value:!0});oe.insertOperation=jn;oe.removeOperation=zn;oe.replaceOperation=kt;oe.getInsertionOperations=ua;oe.getRemovalOperations=ca;oe.getReplaceOperations=fa;oe.applyOperations=la;oe.arraySplice=cr;oe.transformPathsByOperations=da;var aa=_t(),sa=bt(),In=ur();function jn(e,t){return{type:"insert",index:e,nodes:t}}function zn(e){return{type:"remove",indexes:e}}function kt(){return{type:"replace"}}function Ln(e){return[e.slice(0,-1),e[e.length-1]]}function ua(e,t,r=new Map){var n;let[i,u]=Ln(e);for(let l=i.length-1;l>=0;l--){let d=i.slice(0,l).join();switch((n=r.get(d))===null||n===void 0?void 0:n.type){case"remove":continue}r.set(d,kt())}let c=r.get(i.join());switch(c?.type){case"remove":r.set(i.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:u,insertNodes:t});break;default:r.set(i.join(),jn(u,t))}return r}function ca(e){var t,r;let n=(0,aa.ancestorPaths)(e),i=new Map;for(let c of n){let l=c.slice(0,-1).join(),d=(t=i.get(l))!==null&&t!==void 0?t:[];d.push(c[c.length-1]),i.set(l,d)}let u=new Map;for(let c of n)for(let l=c.length-1;l>=0;l--){let d=c.slice(0,l).join();u.set(d,kt())}for(let c of n){let l=c.slice(0,-1).join();u.set(l,zn((r=i.get(l))!==null&&r!==void 0?r:[]))}return u}function fa(e,t){let r=new Map,[n,i]=Ln(e);for(let u=n.length-1;u>=0;u--){let c=n.slice(0,u).join();r.set(c,kt())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),r}function Un(e,t){return t.reduce((r,n)=>n<r?r-1:r,e)}function la(e,t,r){return(0,sa.map)(e,Object.assign(Object.assign({},r),{getChildren:(n,i)=>{let u=i.join(),c=t.get(u);switch(c?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(n,i);default:return[]}},transform:(n,i,u)=>{let c=u.join(),l=t.get(c);switch(l?.type){case"remove":return r.create(n,i.filter((w,E)=>!l.indexes.includes(E)),u);case"removeThenInsert":let d=i.filter((w,E)=>!l.removeIndexes.includes(E)),g=Un(l.insertIndex,l.removeIndexes);return r.create(n,cr(d,g,0,...l.insertNodes),u);case"insert":return r.create(n,cr(i,l.index,0,...l.nodes),u);case"replace":return r.create(n,i,u);default:return n}}}))}function cr(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function da(e,t){let r=e;for(let[n,i]of t.entries()){let u=n?n.split(",").map(Number):[];r=fr(r,u,i)}return r}function fr(e,t,r){switch(r.type){case"insert":{let n=t.concat(r.index);return e.map(i=>i?(0,In.transformPath)(i,"insert",n,r.nodes.length):void 0)}case"remove":{let n=[...r.indexes].reverse().map(i=>t.concat(i));return e.map(i=>{for(let u of n)i=i?(0,In.transformPath)(i,"remove",u):void 0;return i})}case"removeThenInsert":{let n=fr(e,t,{type:"remove",indexes:r.removeIndexes}),i=Un(r.insertIndex,r.removeIndexes);return fr(n,t,{type:"insert",index:i,nodes:r.insertNodes})}case"replace":return e}}});var dr=A(St=>{"use strict";a();s();Object.defineProperty(St,"__esModule",{value:!0});St.insert=pa;St.insertWithPathTracking=ha;var lr=Ie();function pa(e,t){return Bn(e,t).node}function ha(e,t){return Bn(e,t)}function Bn(e,t){let{nodes:r,path:n,track:i}=t;if(n.length===0)throw new Error("Can't insert nodes at the root");let u=(0,lr.getInsertionOperations)(n,r),c=i?(0,lr.transformPathsByOperations)(i,u):[];return{node:(0,lr.applyOperations)(e,u,t),paths:c}}});var mr=A(hr=>{"use strict";a();s();Object.defineProperty(hr,"__esModule",{value:!0});hr.move=ga;var ma=yt(),va=_t(),pr=Ie();function ga(e,t){if(t.paths.length===0)return e;for(let u of t.paths)if(u.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");let r=(0,va.ancestorPaths)(t.paths),n=r.map(u=>(0,ma.access)(e,u,t)),i=(0,pr.getInsertionOperations)(t.to,n,(0,pr.getRemovalOperations)(r));return(0,pr.applyOperations)(e,i,t)}});var gr=A(At=>{"use strict";a();s();Object.defineProperty(At,"__esModule",{value:!0});At.remove=ya;At.removeWithPathTracking=wa;var vr=Ie();function ya(e,t){return qn(e,t).node}function wa(e,t){return qn(e,t)}function qn(e,t){let{paths:r,track:n}=t,i=(0,vr.getRemovalOperations)(r),u=n?(0,vr.transformPathsByOperations)(n,i):[];return{node:(0,vr.applyOperations)(e,i,t),paths:u}}});var wr=A(yr=>{"use strict";a();s();Object.defineProperty(yr,"__esModule",{value:!0});yr.replace=Ea;var Hn=Ie();function Ea(e,t){if(t.path.length===0)return t.node;let r=(0,Hn.getReplaceOperations)(t.path,t.node);return(0,Hn.applyOperations)(e,r,t)}});var Er=A(Rt=>{"use strict";a();s();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.splice=_a;Rt.spliceWithPathTracking=Ta;var Pt=Ie();function _a(e,t){return Wn(e,t).node}function Ta(e,t){return Wn(e,t)}function Wn(e,t){let{path:r,deleteCount:n=0,nodes:i,track:u}=t;if(r.length===0)throw new Error("Can't splice at the root");let c=Oa(r,n),l=(0,Pt.getInsertionOperations)(r,i,(0,Pt.getRemovalOperations)(c)),d=u?(0,Pt.transformPathsByOperations)(u,l):[];return{node:(0,Pt.applyOperations)(e,l,t),paths:d}}function Oa(e,t){let r=[],n=e.slice(0,-1),i=e[e.length-1];for(let u=0;u<t;u++)r.push(n.concat(i+u));return r}});var Or=A(Tr=>{"use strict";a();s();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.defineTree=Pa;var Nt=yt(),$n=er(),xa=rr(),ye=nr(),ba=ar(),Kn=dr(),Yn=bt(),ka=mr(),Sa=Ot(),Gn=gr(),Aa=wr(),Vn=Er(),Xn=_e(),_r=class e{constructor(t,r){this.appliedOptions=r,this.getChildren=(n,i,u)=>this._getChildren(n,i,u),this.mergeOptions=n=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),n),this.withOptions=n=>new e(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),n)),this.access=(n,i)=>(0,Nt.access)(n,i,this.mergeOptions({})),this.accessPath=(n,i)=>(0,Nt.accessPath)(n,i,this.mergeOptions({})),this.get=(n,i)=>(0,Nt.get)(n,i,this.mergeOptions({})),this.ancestors=(n,i)=>(0,Nt.ancestors)(n,i,this.mergeOptions({})),this.diagram=(n,i)=>typeof i=="function"?(0,$n.diagram)(n,this.mergeOptions({getLabel:i})):(0,$n.diagram)(n,this.mergeOptions(i)),this.find=(n,i)=>typeof i=="function"?(0,ye.find)(n,this.mergeOptions({predicate:i})):(0,ye.find)(n,this.mergeOptions(Object.assign({},i))),this.findAll=(n,i)=>typeof i=="function"?(0,ye.findAll)(n,this.mergeOptions({predicate:i})):(0,ye.findAll)(n,this.mergeOptions(Object.assign({},i))),this.findPath=(n,i)=>typeof i=="function"?(0,ye.findPath)(n,this.mergeOptions({predicate:i})):(0,ye.findPath)(n,this.mergeOptions(Object.assign({},i))),this.findAllPaths=(n,i)=>typeof i=="function"?(0,ye.findAllPaths)(n,this.mergeOptions({predicate:i})):(0,ye.findAllPaths)(n,this.mergeOptions(Object.assign({},i))),this.entries=n=>(0,xa.entries)(n,this.mergeOptions({})),this.flat=n=>(0,ba.flat)(n,this.mergeOptions({})),this.reduce=(n,i,u)=>(0,Sa.reduce)(n,this.mergeOptions({nextResult:i,initialResult:u})),this.map=(n,i)=>(0,Yn.map)(n,this.mergeOptions({transform:i})),this.flatMap=(n,i)=>(0,Yn.flatMap)(n,this.mergeOptions({transform:i})),this.visit=(n,i)=>typeof i=="function"?(0,Xn.visit)(n,this.mergeOptions({onEnter:i})):(0,Xn.visit)(n,this.mergeOptions(Object.assign({},i))),this.insert=(n,i)=>(0,Kn.insert)(n,this.mergeOptions(i)),this.insertWithPathTracking=(n,i)=>(0,Kn.insertWithPathTracking)(n,this.mergeOptions(i)),this.remove=(n,i)=>(0,Gn.remove)(n,this.mergeOptions(i)),this.removeWithPathTracking=(n,i)=>(0,Gn.removeWithPathTracking)(n,this.mergeOptions(i)),this.move=(n,i)=>(0,ka.move)(n,this.mergeOptions(i)),this.splice=(n,i)=>(0,Vn.splice)(n,this.mergeOptions(i)),this.spliceWithPathTracking=(n,i)=>(0,Vn.spliceWithPathTracking)(n,this.mergeOptions(i)),this.replace=(n,i)=>(0,Aa.replace)(n,this.mergeOptions(i)),this.baseOptions=typeof t=="function"?{getChildren:t}:t,this._getChildren=this.baseOptions.getChildren}};function Pa(e){return new _r(e,{})}});var Qn=A(Zn=>{"use strict";a();s();Object.defineProperty(Zn,"__esModule",{value:!0})});var eo=A(Jn=>{"use strict";a();s();Object.defineProperty(Jn,"__esModule",{value:!0})});var to=A(Mt=>{"use strict";a();s();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.withOptions=void 0;var Ra=Or();Mt.withOptions=Ra.defineTree});var ro=A(I=>{"use strict";a();s();var Na=I&&I.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),U=I&&I.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Na(t,e,r)};Object.defineProperty(I,"__esModule",{value:!0});U(yt(),I);U(_t(),I);U(Or(),I);U(er(),I);U(rr(),I);U(nr(),I);U(ar(),I);U(Qn(),I);U(dr(),I);U(bt(),I);U(mr(),I);U(eo(),I);U(Ot(),I);U(gr(),I);U(wr(),I);U(Et(),I);U(Er(),I);U(ur(),I);U(_e(),I);U(to(),I)});var Eo=A(O=>{"use strict";a();s();var Sr=Symbol.for("react.transitional.element"),Ia=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),La=Symbol.for("react.profiler"),Ua=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Ha=Symbol.for("react.suspense"),Wa=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),uo=Symbol.iterator;function $a(e){return e===null||typeof e!="object"?null:(e=uo&&e[uo]||e["@@iterator"],typeof e=="function"?e:null)}var mo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vo=Object.assign,go={};function ze(e,t,r){this.props=e,this.context=t,this.refs=go,this.updater=r||mo}ze.prototype.isReactComponent={};ze.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ze.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yo(){}yo.prototype=ze.prototype;function Ar(e,t,r){this.props=e,this.context=t,this.refs=go,this.updater=r||mo}var Pr=Ar.prototype=new yo;Pr.constructor=Ar;vo(Pr,ze.prototype);Pr.isPureReactComponent=!0;var co=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},wo=Object.prototype.hasOwnProperty;function Rr(e,t,r,n,i,u){return r=u.ref,{$$typeof:Sr,type:e,key:t,ref:r!==void 0?r:null,props:u}}function Ka(e,t){return Rr(e.type,t,void 0,void 0,void 0,e.props)}function Nr(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sr}function Ya(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var fo=/\/+/g;function kr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ya(""+e.key):t.toString(36)}function lo(){}function Ga(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(lo,lo):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function je(e,t,r,n,i){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(u){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Sr:case Ia:c=!0;break;case ho:return c=e._init,je(c(e._payload),t,r,n,i)}}if(c)return i=i(e),c=n===""?"."+kr(e,0):n,co(i)?(r="",c!=null&&(r=c.replace(fo,"$&/")+"/"),je(i,t,r,"",function(g){return g})):i!=null&&(Nr(i)&&(i=Ka(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(fo,"$&/")+"/")+c)),t.push(i)),1;c=0;var l=n===""?".":n+":";if(co(e))for(var d=0;d<e.length;d++)n=e[d],u=l+kr(n,d),c+=je(n,t,r,u,i);else if(d=$a(e),typeof d=="function")for(e=d.call(e),d=0;!(n=e.next()).done;)n=n.value,u=l+kr(n,d++),c+=je(n,t,r,u,i);else if(u==="object"){if(typeof e.then=="function")return je(Ga(e),t,r,n,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function Ct(e,t,r){if(e==null)return e;var n=[],i=0;return je(e,n,"","",function(u){return t.call(r,u,i++)}),n}function Va(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var po=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Xa(){}O.Children={map:Ct,forEach:function(e,t,r){Ct(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ct(e,function(){t++}),t},toArray:function(e){return Ct(e,function(t){return t})||[]},only:function(e){if(!Nr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=ze;O.Fragment=ja;O.Profiler=La;O.PureComponent=Ar;O.StrictMode=za;O.Suspense=Ha;O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z;O.__COMPILER_RUNTIME={__proto__:null,c:function(e){return z.H.useMemoCache(e)}};O.cache=function(e){return function(){return e.apply(null,arguments)}};O.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=vo({},e.props),i=e.key,u=void 0;if(t!=null)for(c in t.ref!==void 0&&(u=void 0),t.key!==void 0&&(i=""+t.key),t)!wo.call(t,c)||c==="key"||c==="__self"||c==="__source"||c==="ref"&&t.ref===void 0||(n[c]=t[c]);var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}return Rr(e.type,i,void 0,void 0,u,n)};O.createContext=function(e){return e={$$typeof:Ba,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ua,_context:e},e};O.createElement=function(e,t,r){var n,i={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)wo.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(i[n]=t[n]);var c=arguments.length-2;if(c===1)i.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)i[n]===void 0&&(i[n]=c[n]);return Rr(e,u,void 0,void 0,null,i)};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:qa,render:e}};O.isValidElement=Nr;O.lazy=function(e){return{$$typeof:ho,_payload:{_status:-1,_result:e},_init:Va}};O.memo=function(e,t){return{$$typeof:Wa,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=z.T,r={};z.T=r;try{var n=e(),i=z.S;i!==null&&i(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(Xa,po)}catch(u){po(u)}finally{z.T=t}};O.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()};O.use=function(e){return z.H.use(e)};O.useActionState=function(e,t,r){return z.H.useActionState(e,t,r)};O.useCallback=function(e,t){return z.H.useCallback(e,t)};O.useContext=function(e){return z.H.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e,t){return z.H.useDeferredValue(e,t)};O.useEffect=function(e,t,r){var n=z.H;if(typeof r=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)};O.useId=function(){return z.H.useId()};O.useImperativeHandle=function(e,t,r){return z.H.useImperativeHandle(e,t,r)};O.useInsertionEffect=function(e,t){return z.H.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return z.H.useLayoutEffect(e,t)};O.useMemo=function(e,t){return z.H.useMemo(e,t)};O.useOptimistic=function(e,t){return z.H.useOptimistic(e,t)};O.useReducer=function(e,t,r){return z.H.useReducer(e,t,r)};O.useRef=function(e){return z.H.useRef(e)};O.useState=function(e){return z.H.useState(e)};O.useSyncExternalStore=function(e,t,r){return z.H.useSyncExternalStore(e,t,r)};O.useTransition=function(){return z.H.useTransition()};O.version="19.1.0"});var _o=A((_,Dt)=>{"use strict";a();s();process.env.NODE_ENV!=="production"&&function(){function e(o,f){Object.defineProperty(n.prototype,o,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function t(o){return o===null||typeof o!="object"?null:(o=Ir&&o[Ir]||o["@@iterator"],typeof o=="function"?o:null)}function r(o,f){o=(o=o.constructor)&&(o.displayName||o.name)||"ReactClass";var m=o+"."+f;jr[m]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,o),jr[m]=!0)}function n(o,f,m){this.props=o,this.context=f,this.refs=Ft,this.updater=m||zr}function i(){}function u(o,f,m){this.props=o,this.context=f,this.refs=Ft,this.updater=m||zr}function c(o){return""+o}function l(o){try{c(o);var f=!1}catch{f=!0}if(f){f=console;var m=f.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return m.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),c(o)}}function d(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===xo?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Le:return"Fragment";case fe:return"Profiler";case xe:return"StrictMode";case Se:return"Suspense";case Ye:return"SuspenseList";case Ge:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case Ke:return"Portal";case pe:return(o.displayName||"Context")+".Provider";case be:return(o._context.displayName||"Context")+".Consumer";case ke:var f=o.render;return o=o.displayName,o||(o=f.displayName||f.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ae:return f=o.displayName||null,f!==null?f:d(o.type)||"Memo";case Ee:f=o._payload,o=o._init;try{return d(o(f))}catch{}}return null}function g(o){if(o===Le)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Ee)return"<...>";try{var f=d(o);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function w(){var o=k.A;return o===null?null:o.getOwner()}function E(){return Error("react-stack-top-frame")}function C(o){if(Xe.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function j(o,f){function m(){qr||(qr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}m.isReactWarning=!0,Object.defineProperty(o,"key",{get:m,configurable:!0})}function T(){var o=d(this.type);return Wr[o]||(Wr[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function P(o,f,m,v,y,S,x,D){return m=S.ref,o={$$typeof:V,type:o,key:f,props:S,_owner:y},(m!==void 0?m:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:T}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function F(o,f){return f=P(o.type,f,void 0,void 0,o._owner,o.props,o._debugStack,o._debugTask),o._store&&(f._store.validated=o._store.validated),f}function N(o){return typeof o=="object"&&o!==null&&o.$$typeof===V}function J(o){var f={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(m){return f[m]})}function G(o,f){return typeof o=="object"&&o!==null&&o.key!=null?(l(o.key),J(""+o.key)):f.toString(36)}function ce(){}function we(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(ce,ce):(o.status="pending",o.then(function(f){o.status==="pending"&&(o.status="fulfilled",o.value=f)},function(f){o.status==="pending"&&(o.status="rejected",o.reason=f)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function $(o,f,m,v,y){var S=typeof o;(S==="undefined"||S==="boolean")&&(o=null);var x=!1;if(o===null)x=!0;else switch(S){case"bigint":case"string":case"number":x=!0;break;case"object":switch(o.$$typeof){case V:case Ke:x=!0;break;case Ee:return x=o._init,$(x(o._payload),f,m,v,y)}}if(x){x=o,y=y(x);var D=v===""?"."+G(x,0):v;return Ur(y)?(m="",D!=null&&(m=D.replace(Kr,"$&/")+"/"),$(y,f,m,"",function(he){return he})):y!=null&&(N(y)&&(y.key!=null&&(x&&x.key===y.key||l(y.key)),m=F(y,m+(y.key==null||x&&x.key===y.key?"":(""+y.key).replace(Kr,"$&/")+"/")+D),v!==""&&x!=null&&N(x)&&x.key==null&&x._store&&!x._store.validated&&(m._store.validated=2),y=m),f.push(y)),1}if(x=0,D=v===""?".":v+":",Ur(o))for(var b=0;b<o.length;b++)v=o[b],S=D+G(v,b),x+=$(v,f,m,S,y);else if(b=t(o),typeof b=="function")for(b===o.entries&&($r||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$r=!0),o=b.call(o),b=0;!(v=o.next()).done;)v=v.value,S=D+G(v,b++),x+=$(v,f,m,S,y);else if(S==="object"){if(typeof o.then=="function")return $(we(o),f,m,v,y);throw f=String(o),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return x}function ie(o,f,m){if(o==null)return o;var v=[],y=0;return $(o,v,"","",function(S){return f.call(m,S,y++)}),v}function B(o){if(o._status===-1){var f=o._result;f=f(),f.then(function(m){(o._status===0||o._status===-1)&&(o._status=1,o._result=m)},function(m){(o._status===0||o._status===-1)&&(o._status=2,o._result=m)}),o._status===-1&&(o._status=0,o._result=f)}if(o._status===1)return f=o._result,f===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
8
 
9
9
  Your code should look like:
10
10
  const MyComponent = lazy(() => import('./MyComponent'))
11
11
 
12
- Did you accidentally put curly braces around the import?`,y),"default"in y||P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
12
+ Did you accidentally put curly braces around the import?`,f),"default"in f||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
13
13
 
14
14
  Your code should look like:
15
- const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default}else throw t._result}function Bi(t){var a={_status:Ye,_result:t},d={$$typeof:R,_payload:a,_init:Ui};{var h,y;Object.defineProperties(d,{defaultProps:{configurable:!0,get:function(){return h},set:function(_){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),h=_,Object.defineProperty(d,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return y},set:function(_){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),y=_,Object.defineProperty(d,"propTypes",{enumerable:!0})}}})}return d}function qi(t){t!=null&&t.$$typeof===T?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof t!="function"?P("forwardRef requires a render function but was given %s.",t===null?"null":typeof t):t.length!==0&&t.length!==2&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",t.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),t!=null&&(t.defaultProps!=null||t.propTypes!=null)&&P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var a={$$typeof:p,render:t};{var d;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return d},set:function(h){d=h,!t.name&&!t.displayName&&(t.displayName=h)}})}return a}var _n;_n=Symbol.for("react.module.reference");function Tn(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===c||Oe||t===i||t===g||t===E||we||t===j||H||ce||Pe||typeof t=="object"&&t!==null&&(t.$$typeof===R||t.$$typeof===T||t.$$typeof===f||t.$$typeof===l||t.$$typeof===p||t.$$typeof===_n||t.getModuleId!==void 0))}function Wi(t,a){Tn(t)||P("memo: The first argument must be a component. Instead received: %s",t===null?"null":typeof t);var d={$$typeof:T,type:t,compare:a===void 0?null:a};{var h;Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(y){h=y,!t.name&&!t.displayName&&(t.displayName=y)}})}return d}function Q(){var t=N.current;return t===null&&P(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
15
+ const MyComponent = lazy(() => import('./MyComponent'))`,f),f.default;throw o._result}function M(){var o=k.H;return o===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
16
16
  1. You might have mismatching versions of React and the renderer (such as React DOM)
17
17
  2. You might be breaking the Rules of Hooks
18
18
  3. You might have more than one copy of React in the same app
19
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),t}function $i(t){var a=Q();if(t._context!==void 0){var d=t._context;d.Consumer===t?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):d.Provider===t&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return a.useContext(t)}function Hi(t){var a=Q();return a.useState(t)}function Vi(t,a,d){var h=Q();return h.useReducer(t,a,d)}function Gi(t){var a=Q();return a.useRef(t)}function Ki(t,a){var d=Q();return d.useEffect(t,a)}function Yi(t,a){var d=Q();return d.useInsertionEffect(t,a)}function Xi(t,a){var d=Q();return d.useLayoutEffect(t,a)}function Zi(t,a){var d=Q();return d.useCallback(t,a)}function Qi(t,a){var d=Q();return d.useMemo(t,a)}function Ji(t,a,d){var h=Q();return h.useImperativeHandle(t,a,d)}function ea(t,a){{var d=Q();return d.useDebugValue(t,a)}}function ra(){var t=Q();return t.useTransition()}function ta(t){var a=Q();return a.useDeferredValue(t)}function na(){var t=Q();return t.useId()}function oa(t,a,d){var h=Q();return h.useSyncExternalStore(t,a,d)}var Xe=0,bn,xn,On,kn,Sn,Pn,Cn;function Rn(){}Rn.__reactDisabledLog=!0;function ia(){{if(Xe===0){bn=console.log,xn=console.info,On=console.warn,kn=console.error,Sn=console.group,Pn=console.groupCollapsed,Cn=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Rn,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Xe++}}function aa(){{if(Xe--,Xe===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},t,{value:bn}),info:X({},t,{value:xn}),warn:X({},t,{value:On}),error:X({},t,{value:kn}),group:X({},t,{value:Sn}),groupCollapsed:X({},t,{value:Pn}),groupEnd:X({},t,{value:Cn})})}Xe<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nt=ne.ReactCurrentDispatcher,ot;function cr(t,a,d){{if(ot===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);ot=h&&h[1]||""}return`
20
- `+ot+t}}var it=!1,fr;{var sa=typeof WeakMap=="function"?WeakMap:Map;fr=new sa}function Dn(t,a){if(!t||it)return"";{var d=fr.get(t);if(d!==void 0)return d}var h;it=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=nt.current,nt.current=null,ia();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(G){h=G}Reflect.construct(t,[],w)}else{try{w.call()}catch(G){h=G}t.call(w.prototype)}}else{try{throw Error()}catch(G){h=G}t()}}catch(G){if(G&&h&&typeof G.stack=="string"){for(var b=G.stack.split(`
21
- `),C=h.stack.split(`
22
- `),M=b.length-1,L=C.length-1;M>=1&&L>=0&&b[M]!==C[L];)L--;for(;M>=1&&L>=0;M--,L--)if(b[M]!==C[L]){if(M!==1||L!==1)do if(M--,L--,L<0||b[M]!==C[L]){var U=`
23
- `+b[M].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),typeof t=="function"&&fr.set(t,U),U}while(M>=1&&L>=0);break}}}finally{it=!1,nt.current=_,aa(),Error.prepareStackTrace=y}var B=t?t.displayName||t.name:"",q=B?cr(B):"";return typeof t=="function"&&fr.set(t,q),q}function ua(t,a,d){return Dn(t,!1)}function ca(t){var a=t.prototype;return!!(a&&a.isReactComponent)}function lr(t,a,d){if(t==null)return"";if(typeof t=="function")return Dn(t,ca(t));if(typeof t=="string")return cr(t);switch(t){case g:return cr("Suspense");case E:return cr("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case p:return ua(t.render);case T:return lr(t.type,a,d);case R:{var h=t,y=h._payload,_=h._init;try{return lr(_(y),a,d)}catch{}}}return""}var An={},Fn=ne.ReactDebugCurrentFrame;function dr(t){if(t){var a=t._owner,d=lr(t.type,t._source,a?a.type:null);Fn.setExtraStackFrame(d)}else Fn.setExtraStackFrame(null)}function fa(t,a,d,h,y){{var _=Function.call.bind(Ke);for(var w in t)if(_(t,w)){var b=void 0;try{if(typeof t[w]!="function"){var C=Error((h||"React class")+": "+d+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}b=t[w](a,w,h,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){b=M}b&&!(b instanceof Error)&&(dr(y),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",h||"React class",d,w,typeof b),dr(null)),b instanceof Error&&!(b.message in An)&&(An[b.message]=!0,dr(y),P("Failed %s type: %s",d,b.message),dr(null))}}}function Ne(t){if(t){var a=t._owner,d=lr(t.type,t._source,a?a.type:null);ge(d)}else ge(null)}var at;at=!1;function Mn(){if(Y.current){var t=Ee(Y.current.type);if(t)return`
24
-
25
- Check the render method of \``+t+"`."}return""}function la(t){if(t!==void 0){var a=t.fileName.replace(/^.*[\\\/]/,""),d=t.lineNumber;return`
26
-
27
- Check your code at `+a+":"+d+"."}return""}function da(t){return t!=null?la(t.__source):""}var Nn={};function pa(t){var a=Mn();if(!a){var d=typeof t=="string"?t:t.displayName||t.name;d&&(a=`
28
-
29
- Check the top-level render call using <`+d+">.")}return a}function In(t,a){if(!(!t._store||t._store.validated||t.key!=null)){t._store.validated=!0;var d=pa(a);if(!Nn[d]){Nn[d]=!0;var h="";t&&t._owner&&t._owner!==Y.current&&(h=" It was passed a child from "+Ee(t._owner.type)+"."),Ne(t),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,h),Ne(null)}}}function jn(t,a){if(typeof t=="object"){if(ir(t))for(var d=0;d<t.length;d++){var h=t[d];Me(h)&&In(h,a)}else if(Me(t))t._store&&(t._store.validated=!0);else if(t){var y=F(t);if(typeof y=="function"&&y!==t.entries)for(var _=y.call(t),w;!(w=_.next()).done;)Me(w.value)&&In(w.value,a)}}}function zn(t){{var a=t.type;if(a==null||typeof a=="string")return;var d;if(typeof a=="function")d=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===p||a.$$typeof===T))d=a.propTypes;else return;if(d){var h=Ee(a);fa(d,t.props,"prop",h,t)}else if(a.PropTypes!==void 0&&!at){at=!0;var y=Ee(a);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ha(t){{for(var a=Object.keys(t.props),d=0;d<a.length;d++){var h=a[d];if(h!=="children"&&h!=="key"){Ne(t),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h),Ne(null);break}}t.ref!==null&&(Ne(t),P("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}}function Ln(t,a,d){var h=Tn(t);if(!h){var y="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=da(a);_?y+=_:y+=Mn();var w;t===null?w="null":ir(t)?w="array":t!==void 0&&t.$$typeof===r?(w="<"+(Ee(t.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):w=typeof t,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,y)}var b=Pi.apply(this,arguments);if(b==null)return b;if(h)for(var C=2;C<arguments.length;C++)jn(arguments[C],t);return t===o?ha(b):zn(b),b}var Un=!1;function va(t){var a=Ln.bind(null,t);return a.type=t,Un||(Un=!0,fe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(a,"type",{enumerable:!1,get:function(){return fe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),a}function ma(t,a,d){for(var h=Ri.apply(this,arguments),y=2;y<arguments.length;y++)jn(arguments[y],h.type);return zn(h),h}function ya(t,a){var d=K.transition;K.transition={};var h=K.transition;K.transition._updatedFibers=new Set;try{t()}finally{if(K.transition=d,d===null&&h._updatedFibers){var y=h._updatedFibers.size;y>10&&fe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),h._updatedFibers.clear()}}}var Bn=!1,pr=null;function ga(t){if(pr===null)try{var a=("require"+Math.random()).slice(0,7),d=Qr&&Qr[a];pr=d.call(Qr,"timers").setImmediate}catch{pr=function(y){Bn===!1&&(Bn=!0,typeof MessageChannel>"u"&&P("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return pr(t)}var Ie=0,qn=!1;function Wn(t){{var a=Ie;Ie++,z.current===null&&(z.current=[]);var d=z.isBatchingLegacy,h;try{if(z.isBatchingLegacy=!0,h=t(),!d&&z.didScheduleLegacyUpdate){var y=z.current;y!==null&&(z.didScheduleLegacyUpdate=!1,ct(y))}}catch(B){throw hr(a),B}finally{z.isBatchingLegacy=d}if(h!==null&&typeof h=="object"&&typeof h.then=="function"){var _=h,w=!1,b={then:function(B,q){w=!0,_.then(function(G){hr(a),Ie===0?st(G,B,q):B(G)},function(G){hr(a),q(G)})}};return!qn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){w||(qn=!0,P("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),b}else{var C=h;if(hr(a),Ie===0){var M=z.current;M!==null&&(ct(M),z.current=null);var L={then:function(B,q){z.current===null?(z.current=[],st(C,B,q)):B(C)}};return L}else{var U={then:function(B,q){B(C)}};return U}}}}function hr(t){t!==Ie-1&&P("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ie=t}function st(t,a,d){{var h=z.current;if(h!==null)try{ct(h),ga(function(){h.length===0?(z.current=null,a(t)):st(t,a,d)})}catch(y){d(y)}else a(t)}}var ut=!1;function ct(t){if(!ut){ut=!0;var a=0;try{for(;a<t.length;a++){var d=t[a];do d=d(!0);while(d!==null)}t.length=0}catch(h){throw t=t.slice(a+1),h}finally{ut=!1}}}var wa=Ln,Ea=ma,_a=va,Ta={map:ur,forEach:Ni,count:Mi,toArray:Ii,only:ji};k.Children=Ta,k.Component=oe,k.Fragment=o,k.Profiler=c,k.PureComponent=Ae,k.StrictMode=i,k.Suspense=g,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,k.act=Wn,k.cloneElement=Ea,k.createContext=zi,k.createElement=wa,k.createFactory=_a,k.createRef=Ei,k.forwardRef=qi,k.isValidElement=Me,k.lazy=Bi,k.memo=Wi,k.startTransition=ya,k.unstable_act=Wn,k.useCallback=Zi,k.useContext=$i,k.useDebugValue=ea,k.useDeferredValue=ta,k.useEffect=Ki,k.useId=na,k.useImperativeHandle=Ji,k.useInsertionEffect=Yi,k.useLayoutEffect=Xi,k.useMemo=Qi,k.useReducer=Vi,k.useRef=Gi,k.useState=Hi,k.useSyncExternalStore=oa,k.useTransition=ra,k.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var sn=S((tv,an)=>{"use strict";s();u();process.env.NODE_ENV==="production"?an.exports=mi():an.exports=yi()});var Yu={};Da(Yu,{default:()=>wi,resolveFiles:()=>gi});module.exports=Aa(Yu);s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();var Zn=require("module"),Fa=(0,Zn.createRequire)("/"),gr,Ma=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{gr=Fa("worker_threads").Worker}catch{}var Na=gr?function(e,r,n,o,i){var c=!1,f=new gr(e+Ma,{eval:!0}).on("error",function(l){return i(l,null)}).on("message",function(l){return i(null,l)}).on("exit",function(l){l&&!c&&i(new Error("exited with code "+l),null)});return f.postMessage(n,o),f.terminate=function(){return c=!0,gr.prototype.terminate.call(f)},f}:function(e,r,n,o,i){setImmediate(function(){return i(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var c=function(){};return{terminate:c,postMessage:c}},J=Uint8Array,_e=Uint16Array,pt=Uint32Array,ht=new J([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),vt=new J([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Qn=new J([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Jn=function(e,r){for(var n=new _e(31),o=0;o<31;++o)n[o]=r+=1<<e[o-1];for(var i=new pt(n[30]),o=1;o<30;++o)for(var c=n[o];c<n[o+1];++c)i[c]=c-n[o]<<5|o;return[n,i]},eo=Jn(ht,2),mt=eo[0],Ia=eo[1];mt[28]=258,Ia[258]=28;var ro=Jn(vt,0),to=ro[0],cc=ro[1],_r=new _e(32768);for(D=0;D<32768;++D)ye=(D&43690)>>>1|(D&21845)<<1,ye=(ye&52428)>>>2|(ye&13107)<<2,ye=(ye&61680)>>>4|(ye&3855)<<4,_r[D]=((ye&65280)>>>8|(ye&255)<<8)>>>1;var ye,D,je=function(e,r,n){for(var o=e.length,i=0,c=new _e(r);i<o;++i)e[i]&&++c[e[i]-1];var f=new _e(r);for(i=0;i<r;++i)f[i]=f[i-1]+c[i-1]<<1;var l;if(n){l=new _e(1<<r);var p=15-r;for(i=0;i<o;++i)if(e[i])for(var g=i<<4|e[i],E=r-e[i],T=f[e[i]-1]++<<E,R=T|(1<<E)-1;T<=R;++T)l[_r[T]>>>p]=g}else for(l=new _e(o),i=0;i<o;++i)e[i]&&(l[i]=_r[f[e[i]-1]++]>>>15-e[i]);return l},Qe=new J(288);for(D=0;D<144;++D)Qe[D]=8;var D;for(D=144;D<256;++D)Qe[D]=9;var D;for(D=256;D<280;++D)Qe[D]=7;var D;for(D=280;D<288;++D)Qe[D]=8;var D,no=new J(32);for(D=0;D<32;++D)no[D]=5;var D;var oo=je(Qe,9,1);var io=je(no,5,1),wr=function(e){for(var r=e[0],n=1;n<e.length;++n)e[n]>r&&(r=e[n]);return r},ae=function(e,r,n){var o=r/8|0;return(e[o]|e[o+1]<<8)>>(r&7)&n},Er=function(e,r){var n=r/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(r&7)},ao=function(e){return(e+7)/8|0},Tr=function(e,r,n){(r==null||r<0)&&(r=0),(n==null||n>e.length)&&(n=e.length);var o=new(e.BYTES_PER_ELEMENT==2?_e:e.BYTES_PER_ELEMENT==4?pt:J)(n-r);return o.set(e.subarray(r,n)),o};var so=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],re=function(e,r,n){var o=new Error(r||so[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,re),!n)throw o;return o},uo=function(e,r,n){var o=e.length;if(!o||n&&n.f&&!n.l)return r||new J(0);var i=!r||n,c=!n||n.i;n||(n={}),r||(r=new J(o*3));var f=function(Ge){var Ae=r.length;if(Ge>Ae){var Fe=new J(Math.max(Ae*2,Ge));Fe.set(r),r=Fe}},l=n.f||0,p=n.p||0,g=n.b||0,E=n.l,T=n.d,R=n.m,j=n.n,x=o*8;do{if(!E){l=ae(e,p,1);var A=ae(e,p+1,3);if(p+=3,A)if(A==1)E=oo,T=io,R=9,j=5;else if(A==2){var z=ae(e,p,31)+257,Y=ae(e,p+10,15)+4,ue=z+ae(e,p+5,31)+1;p+=14;for(var ie=new J(ue),ge=new J(19),H=0;H<Y;++H)ge[Qn[H]]=ae(e,p+H*3,7);p+=Y*3;for(var ce=wr(ge),Pe=(1<<ce)-1,we=je(ge,ce,1),H=0;H<ue;){var Oe=we[ae(e,p,Pe)];p+=Oe&15;var F=Oe>>>4;if(F<16)ie[H++]=F;else{var ne=0,fe=0;for(F==16?(fe=3+ae(e,p,3),p+=2,ne=ie[H-1]):F==17?(fe=3+ae(e,p,7),p+=3):F==18&&(fe=11+ae(e,p,127),p+=7);fe--;)ie[H++]=ne}}var P=ie.subarray(0,z),le=ie.subarray(z);R=wr(P),j=wr(le),E=je(P,R,1),T=je(le,j,1)}else re(1);else{var F=ao(p)+4,N=e[F-4]|e[F-3]<<8,K=F+N;if(K>o){c&&re(0);break}i&&f(g+N),r.set(e.subarray(F,K),g),n.b=g+=N,n.p=p=K*8,n.f=l;continue}if(p>x){c&&re(0);break}}i&&f(g+131072);for(var or=(1<<R)-1,He=(1<<j)-1,Ce=p;;Ce=p){var ne=E[Er(e,p)&or],X=ne>>>4;if(p+=ne&15,p>x){c&&re(0);break}if(ne||re(2),X<256)r[g++]=X;else if(X==256){Ce=p,E=null;break}else{var Re=X-254;if(X>264){var H=X-257,oe=ht[H];Re=ae(e,p,(1<<oe)-1)+mt[H],p+=oe}var ke=T[Er(e,p)&He],Ve=ke>>>4;ke||re(3),p+=ke&15;var le=to[Ve];if(Ve>3){var oe=vt[Ve];le+=Er(e,p)&(1<<oe)-1,p+=oe}if(p>x){c&&re(0);break}i&&f(g+131072);for(var De=g+Re;g<De;g+=4)r[g]=r[g-le],r[g+1]=r[g+1-le],r[g+2]=r[g+2-le],r[g+3]=r[g+3-le];g=De}}n.l=E,n.p=Ce,n.b=g,n.f=l,E&&(l=1,n.m=R,n.d=T,n.n=j)}while(!l);return g==r.length?r:Tr(r,0,g)};var ja=new J(0);var za=function(e,r){var n={};for(var o in e)n[o]=e[o];for(var o in r)n[o]=r[o];return n},Yn=function(e,r,n){for(var o=e(),i=e.toString(),c=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),f=0;f<o.length;++f){var l=o[f],p=c[f];if(typeof l=="function"){r+=";"+p+"=";var g=l.toString();if(l.prototype)if(g.indexOf("[native code]")!=-1){var E=g.indexOf(" ",8)+1;r+=g.slice(E,g.indexOf("(",E))}else{r+=g;for(var T in l.prototype)r+=";"+p+".prototype."+T+"="+l.prototype[T].toString()}else r+=g}else n[p]=l}return[r,n]},yr=[],La=function(e){var r=[];for(var n in e)e[n].buffer&&r.push((e[n]=new e[n].constructor(e[n])).buffer);return r},Ua=function(e,r,n,o){var i;if(!yr[n]){for(var c="",f={},l=e.length-1,p=0;p<l;++p)i=Yn(e[p],c,f),c=i[0],f=i[1];yr[n]=Yn(e[l],c,f)}var g=za({},yr[n][1]);return Na(yr[n][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",n,g,La(g),o)},Ba=function(){return[J,_e,pt,ht,vt,Qn,mt,to,oo,io,_r,so,je,wr,ae,Er,ao,Tr,re,uo,yt,co,fo]};var co=function(e){return postMessage(e,[e.buffer])},fo=function(e){return e&&e.size&&new J(e.size)},qa=function(e,r,n,o,i,c){var f=Ua(n,o,i,function(l,p){f.terminate(),c(l,p)});return f.postMessage([e,r],r.consume?[e.buffer]:[]),function(){f.terminate()}};var he=function(e,r){return e[r]|e[r+1]<<8},de=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24)>>>0},lt=function(e,r){return de(e,r)+de(e,r+4)*4294967296};function Wa(e,r,n){return n||(n=r,r={}),typeof n!="function"&&re(7),qa(e,r,[Ba],function(o){return co(yt(o.data[0],fo(o.data[1])))},1,n)}function yt(e,r){return uo(e,r)}var dt=typeof TextDecoder<"u"&&new TextDecoder,$a=0;try{dt.decode(ja,{stream:!0}),$a=1}catch{}var Ha=function(e){for(var r="",n=0;;){var o=e[n++],i=(o>127)+(o>223)+(o>239);if(n+i>e.length)return[r,Tr(e,n-1)];i?i==3?(o=((o&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):i&1?r+=String.fromCharCode((o&31)<<6|e[n++]&63):r+=String.fromCharCode((o&15)<<12|(e[n++]&63)<<6|e[n++]&63):r+=String.fromCharCode(o)}};function Va(e,r){if(r){for(var n="",o=0;o<e.length;o+=16384)n+=String.fromCharCode.apply(null,e.subarray(o,o+16384));return n}else{if(dt)return dt.decode(e);var i=Ha(e),c=i[0],f=i[1];return f.length&&re(8),c}}var Ga=function(e,r){return r+30+he(e,r+26)+he(e,r+28)},Ka=function(e,r,n){var o=he(e,r+28),i=Va(e.subarray(r+46,r+46+o),!(he(e,r+8)&2048)),c=r+46+o,f=de(e,r+20),l=n&&f==4294967295?Ya(e,c):[f,de(e,r+24),de(e,r+42)],p=l[0],g=l[1],E=l[2];return[he(e,r+10),p,g,i,c+he(e,r+30)+he(e,r+32),E]},Ya=function(e,r){for(;he(e,r)!=1;r+=4+he(e,r+2));return[lt(e,r+12),lt(e,r+4),lt(e,r+20)]};var Xn=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function lo(e,r,n){n||(n=r,r={}),typeof n!="function"&&re(7);var o=[],i=function(){for(var F=0;F<o.length;++F)o[F]()},c={},f=function(F,N){Xn(function(){n(F,N)})};Xn(function(){f=n});for(var l=e.length-22;de(e,l)!=101010256;--l)if(!l||e.length-l>65558)return f(re(13,0,1),null),i;var p=he(e,l+8);if(p){var g=p,E=de(e,l+16),T=E==4294967295||g==65535;if(T){var R=de(e,l-12);T=de(e,R)==101075792,T&&(g=p=de(e,R+32),E=de(e,R+48))}for(var j=r&&r.filter,x=function(F){var N=Ka(e,E,T),K=N[0],z=N[1],Y=N[2],ue=N[3],ie=N[4],ge=N[5],H=Ga(e,ge);E=ie;var ce=function(we,Oe){we?(i(),f(we,null)):(Oe&&(c[ue]=Oe),--p||f(null,c))};if(!j||j({name:ue,size:z,originalSize:Y,compression:K}))if(!K)ce(null,Tr(e,H,H+z));else if(K==8){var Pe=e.subarray(H,H+z);if(z<32e4)try{ce(null,yt(Pe,new J(Y)))}catch(we){ce(we,null)}else o.push(Wa(Pe,{size:Y},ce))}else ce(re(14,"unknown compression type "+K,1),null);else ce(null,null)},A=0;A<g;++A)x(A)}else f(null,{});return i}function br(e){return new Promise((r,n)=>{lo(e,(o,i)=>{o?n(o):r(i)})})}s();u();var ei=Ze(_t()),ri=Ze(Jo()),Cu=(0,ri.defineTree)({getChildren:ei.Entries.getEntries});s();u();var Tl=Uint8Array.from([80,75]),bl=Uint8Array.from([55,122,188,175,39,28]);s();u();var ti=Ze(_t());async function Qt(e){let{gistId:r,fetch:n=globalThis.fetch}=e,o=await n(`https://api.github.com/gists/${r}`);if(!o.ok)throw new Error(`Failed to fetch gist: ${o.statusText}`);let i=await o.json();if(!i.files)throw new Error("No files found in gist");let c={};for(let[f,l]of Object.entries(i.files))if(typeof l=="object"&&l!==null){let p="content"in l?String(l.content):"";c[f]={kind:"file",content:p,encoding:"utf-8"}}return c}async function Jt(e){let{owner:r,name:n,ref:o="main",path:i,fetch:c=globalThis.fetch,format:f="zip",debug:l=!1}=e,p=`https://www.noya.io/packager/github/download/${r}/${n}/${o}${f==="files"?"":`.${f}`}`,g=await c(p,{headers:{Accept:f==="files"?"application/json":f==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!g.ok)throw new Error(`Failed to fetch repository: ${g.statusText}`);let E=await g.arrayBuffer(),T=new Uint8Array(E);switch(f){case"files":return JSON.parse(new TextDecoder().decode(T));case"zip":return Ru({bytes:T,path:i,debug:l});case"tar":throw new Error("Tar format not supported")}}async function Ru({bytes:e,path:r,debug:n}){let o=await br(e),i={},c=Object.entries(o);if(c.length===0)throw new Error("No files found in zip");let f=c[0][0],l=r?`${f}${r}/`:f;for(let[p,g]of c)if(p.startsWith(l)&&!p.endsWith("/")){let E=r?p.slice(l.length):p.slice(f.length);if(g instanceof Uint8Array)try{i[E]={kind:"file",content:new TextDecoder().decode(g),encoding:"utf-8"}}catch{n&&console.info(`Skipping binary file: ${E}`)}}if(Object.keys(i).length===0&&r)throw new Error(`No files found in path: ${r}`);return i}s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();function oi(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[n,r]))}s();u();var Du={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},Pp=oi(Du);s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();s();u();var un=Ze(sn());s();u();var cn=Ze(sn());s();u();async function gi(e){if(e.location==="repository"&&e.repository?.owner&&e.repository?.name){console.info("Loading GitHub repository files",e.repository);let r=await Jt({owner:e.repository.owner,name:e.repository.name,ref:e.repository.ref,path:e.repository.path,fetch:e.fetch,debug:e.debug});if(e.debug){let n=e.repository.path?` (path: ${e.repository.path})`:"";console.info(`Loaded ${Object.keys(r).length} files from repository ${e.repository.owner}/${e.repository.name}${n}`)}return r}if(e.location==="gist"&&e.gist?.id){console.info("Loading GitHub gist files",e.gist);let r=await Qt({gistId:e.gist.id,fetch:e.fetch});return e.debug&&console.info(`Loaded ${Object.keys(r).length} files from gist ${e.gist.id}`),r}return e.files??{}}async function wi(e,{state:r}){let n=await gi(r);return{...r,location:"files",files:n}}0&&(module.exports={resolveFiles});
19
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),o}function Te(){}function ee(o){if(Ze===null)try{var f=("require"+Math.random()).slice(0,7);Ze=(Dt&&Dt[f]).call(Dt,"timers").setImmediate}catch{Ze=function(v){Gr===!1&&(Gr=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=v,y.port2.postMessage(void 0)}}return Ze(o)}function te(o){return 1<o.length&&typeof AggregateError=="function"?new AggregateError(o):o[0]}function re(o,f){f!==Qe-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Qe=f}function de(o,f,m){var v=k.actQueue;if(v!==null)if(v.length!==0)try{Oe(v),ee(function(){return de(o,f,m)});return}catch(y){k.thrownErrors.push(y)}else k.actQueue=null;0<k.thrownErrors.length?(v=te(k.thrownErrors),k.thrownErrors.length=0,m(v)):f(o)}function Oe(o){if(!It){It=!0;var f=0;try{for(;f<o.length;f++){var m=o[f];do{k.didUsePromise=!1;var v=m(!1);if(v!==null){if(k.didUsePromise){o[f]=m,o.splice(0,f);return}m=v}else break}while(!0)}o.length=0}catch(y){o.splice(0,f+1),k.thrownErrors.push(y)}finally{It=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V=Symbol.for("react.transitional.element"),Ke=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler");Symbol.for("react.provider");var be=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),Ir=Symbol.iterator,jr={},zr={isMounted:function(){return!1},enqueueForceUpdate:function(o){r(o,"forceUpdate")},enqueueReplaceState:function(o){r(o,"replaceState")},enqueueSetState:function(o){r(o,"setState")}},Lr=Object.assign,Ft={};Object.freeze(Ft),n.prototype.isReactComponent={},n.prototype.setState=function(o,f){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,f,"setState")},n.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};var X={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ve;for(Ve in X)X.hasOwnProperty(Ve)&&e(Ve,X[Ve]);i.prototype=n.prototype,X=u.prototype=new i,X.constructor=u,Lr(X,n.prototype),X.isPureReactComponent=!0;var Ur=Array.isArray,xo=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Xe=Object.prototype.hasOwnProperty,Br=console.createTask?console.createTask:function(){return null};X={"react-stack-bottom-frame":function(o){return o()}};var qr,Hr,Wr={},bo=X["react-stack-bottom-frame"].bind(X,E)(),ko=Br(g(E)),$r=!1,Kr=/\/+/g,Yr=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Gr=!1,Ze=null,Qe=0,Je=!1,It=!1,Vr=typeof queueMicrotask=="function"?function(o){queueMicrotask(function(){return queueMicrotask(o)})}:ee;X=Object.freeze({__proto__:null,c:function(o){return M().useMemoCache(o)}}),_.Children={map:ie,forEach:function(o,f,m){ie(o,function(){f.apply(this,arguments)},m)},count:function(o){var f=0;return ie(o,function(){f++}),f},toArray:function(o){return ie(o,function(f){return f})||[]},only:function(o){if(!N(o))throw Error("React.Children.only expected to receive a single React element child.");return o}},_.Component=n,_.Fragment=Le,_.Profiler=fe,_.PureComponent=u,_.StrictMode=xe,_.Suspense=Se,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_.__COMPILER_RUNTIME=X,_.act=function(o){var f=k.actQueue,m=Qe;Qe++;var v=k.actQueue=f!==null?f:[],y=!1;try{var S=o()}catch(b){k.thrownErrors.push(b)}if(0<k.thrownErrors.length)throw re(f,m),o=te(k.thrownErrors),k.thrownErrors.length=0,o;if(S!==null&&typeof S=="object"&&typeof S.then=="function"){var x=S;return Vr(function(){y||Je||(Je=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(b,he){y=!0,x.then(function(Pe){if(re(f,m),m===0){try{Oe(v),ee(function(){return de(Pe,b,he)})}catch(Ao){k.thrownErrors.push(Ao)}if(0<k.thrownErrors.length){var So=te(k.thrownErrors);k.thrownErrors.length=0,he(So)}}else b(Pe)},function(Pe){re(f,m),0<k.thrownErrors.length&&(Pe=te(k.thrownErrors),k.thrownErrors.length=0),he(Pe)})}}}var D=S;if(re(f,m),m===0&&(Oe(v),v.length!==0&&Vr(function(){y||Je||(Je=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw o=te(k.thrownErrors),k.thrownErrors.length=0,o;return{then:function(b,he){y=!0,m===0?(k.actQueue=v,ee(function(){return de(D,b,he)})):b(D)}}},_.cache=function(o){return function(){return o.apply(null,arguments)}},_.captureOwnerStack=function(){var o=k.getCurrentStack;return o===null?null:o()},_.cloneElement=function(o,f,m){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var v=Lr({},o.props),y=o.key,S=o._owner;if(f!=null){var x;e:{if(Xe.call(f,"ref")&&(x=Object.getOwnPropertyDescriptor(f,"ref").get)&&x.isReactWarning){x=!1;break e}x=f.ref!==void 0}x&&(S=w()),C(f)&&(l(f.key),y=""+f.key);for(D in f)!Xe.call(f,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&f.ref===void 0||(v[D]=f[D])}var D=arguments.length-2;if(D===1)v.children=m;else if(1<D){x=Array(D);for(var b=0;b<D;b++)x[b]=arguments[b+2];v.children=x}for(v=P(o.type,y,void 0,void 0,S,v,o._debugStack,o._debugTask),y=2;y<arguments.length;y++)S=arguments[y],N(S)&&S._store&&(S._store.validated=1);return v},_.createContext=function(o){return o={$$typeof:pe,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:be,_context:o},o._currentRenderer=null,o._currentRenderer2=null,o},_.createElement=function(o,f,m){for(var v=2;v<arguments.length;v++){var y=arguments[v];N(y)&&y._store&&(y._store.validated=1)}if(v={},y=null,f!=null)for(b in Hr||!("__self"in f)||"key"in f||(Hr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),C(f)&&(l(f.key),y=""+f.key),f)Xe.call(f,b)&&b!=="key"&&b!=="__self"&&b!=="__source"&&(v[b]=f[b]);var S=arguments.length-2;if(S===1)v.children=m;else if(1<S){for(var x=Array(S),D=0;D<S;D++)x[D]=arguments[D+2];Object.freeze&&Object.freeze(x),v.children=x}if(o&&o.defaultProps)for(b in S=o.defaultProps,S)v[b]===void 0&&(v[b]=S[b]);y&&j(v,typeof o=="function"?o.displayName||o.name||"Unknown":o);var b=1e4>k.recentlyCreatedOwnerStacks++;return P(o,y,void 0,void 0,w(),v,b?Error("react-stack-top-frame"):bo,b?Br(g(o)):ko)},_.createRef=function(){var o={current:null};return Object.seal(o),o},_.forwardRef=function(o){o!=null&&o.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof o!="function"?console.error("forwardRef requires a render function but was given %s.",o===null?"null":typeof o):o.length!==0&&o.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",o.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),o!=null&&o.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:ke,render:o},m;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(v){m=v,o.name||o.displayName||(Object.defineProperty(o,"name",{value:v}),o.displayName=v)}}),f},_.isValidElement=N,_.lazy=function(o){return{$$typeof:Ee,_payload:{_status:-1,_result:o},_init:B}},_.memo=function(o,f){o==null&&console.error("memo: The first argument must be a component. Instead received: %s",o===null?"null":typeof o),f={$$typeof:Ae,type:o,compare:f===void 0?null:f};var m;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return m},set:function(v){m=v,o.name||o.displayName||(Object.defineProperty(o,"name",{value:v}),o.displayName=v)}}),f},_.startTransition=function(o){var f=k.T,m={};k.T=m,m._updatedFibers=new Set;try{var v=o(),y=k.S;y!==null&&y(m,v),typeof v=="object"&&v!==null&&typeof v.then=="function"&&v.then(Te,Yr)}catch(S){Yr(S)}finally{f===null&&m._updatedFibers&&(o=m._updatedFibers.size,m._updatedFibers.clear(),10<o&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=f}},_.unstable_useCacheRefresh=function(){return M().useCacheRefresh()},_.use=function(o){return M().use(o)},_.useActionState=function(o,f,m){return M().useActionState(o,f,m)},_.useCallback=function(o,f){return M().useCallback(o,f)},_.useContext=function(o){var f=M();return o.$$typeof===be&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(o)},_.useDebugValue=function(o,f){return M().useDebugValue(o,f)},_.useDeferredValue=function(o,f){return M().useDeferredValue(o,f)},_.useEffect=function(o,f,m){o==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var v=M();if(typeof m=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return v.useEffect(o,f)},_.useId=function(){return M().useId()},_.useImperativeHandle=function(o,f,m){return M().useImperativeHandle(o,f,m)},_.useInsertionEffect=function(o,f){return o==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useInsertionEffect(o,f)},_.useLayoutEffect=function(o,f){return o==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useLayoutEffect(o,f)},_.useMemo=function(o,f){return M().useMemo(o,f)},_.useOptimistic=function(o,f){return M().useOptimistic(o,f)},_.useReducer=function(o,f,m){return M().useReducer(o,f,m)},_.useRef=function(o){return M().useRef(o)},_.useState=function(o){return M().useState(o)},_.useSyncExternalStore=function(o,f,m){return M().useSyncExternalStore(o,f,m)},_.useTransition=function(){return M().useTransition()},_.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Cr=A((Sp,Mr)=>{"use strict";a();s();process.env.NODE_ENV==="production"?Mr.exports=Eo():Mr.exports=_o()});var Qa={};Do(Qa,{default:()=>Oo,resolveFiles:()=>To});module.exports=Fo(Qa);a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var en=require("module"),Io=(0,en.createRequire)("/"),rt,jo=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{rt=Io("worker_threads").Worker}catch{}var zo=rt?function(e,t,r,n,i){var u=!1,c=new rt(e+jo,{eval:!0}).on("error",function(l){return i(l,null)}).on("message",function(l){return i(null,l)}).on("exit",function(l){l&&!u&&i(new Error("exited with code "+l),null)});return c.postMessage(r,n),c.terminate=function(){return u=!0,rt.prototype.terminate.call(c)},c}:function(e,t,r,n,i){setImmediate(function(){return i(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var u=function(){};return{terminate:u,postMessage:u}},W=Uint8Array,me=Uint16Array,Lt=Uint32Array,Ut=new W([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Bt=new W([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tn=new W([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rn=function(e,t){for(var r=new me(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Lt(r[30]),n=1;n<30;++n)for(var u=r[n];u<r[n+1];++u)i[u]=u-r[n]<<5|n;return[r,i]},nn=rn(Ut,2),qt=nn[0],Lo=nn[1];qt[28]=258,Lo[258]=28;var on=rn(Bt,0),an=on[0],ds=on[1],it=new me(32768);for(R=0;R<32768;++R)le=(R&43690)>>>1|(R&21845)<<1,le=(le&52428)>>>2|(le&13107)<<2,le=(le&61680)>>>4|(le&3855)<<4,it[R]=((le&65280)>>>8|(le&255)<<8)>>>1;var le,R,Re=function(e,t,r){for(var n=e.length,i=0,u=new me(t);i<n;++i)e[i]&&++u[e[i]-1];var c=new me(t);for(i=0;i<t;++i)c[i]=c[i-1]+u[i-1]<<1;var l;if(r){l=new me(1<<t);var d=15-t;for(i=0;i<n;++i)if(e[i])for(var g=i<<4|e[i],w=t-e[i],E=c[e[i]-1]++<<w,C=E|(1<<w)-1;E<=C;++E)l[it[E]>>>d]=g}else for(l=new me(n),i=0;i<n;++i)e[i]&&(l[i]=it[c[e[i]-1]++]>>>15-e[i]);return l},Be=new W(288);for(R=0;R<144;++R)Be[R]=8;var R;for(R=144;R<256;++R)Be[R]=9;var R;for(R=256;R<280;++R)Be[R]=7;var R;for(R=280;R<288;++R)Be[R]=8;var R,sn=new W(32);for(R=0;R<32;++R)sn[R]=5;var R;var un=Re(Be,9,1);var cn=Re(sn,5,1),nt=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Z=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},ot=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},fn=function(e){return(e+7)/8|0},at=function(e,t,r){(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length);var n=new(e.BYTES_PER_ELEMENT==2?me:e.BYTES_PER_ELEMENT==4?Lt:W)(r-t);return n.set(e.subarray(t,r)),n};var ln=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],K=function(e,t,r){var n=new Error(t||ln[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,K),!r)throw n;return n},dn=function(e,t,r){var n=e.length;if(!n||r&&r.f&&!r.l)return t||new W(0);var i=!t||r,u=!r||r.i;r||(r={}),t||(t=new W(n*3));var c=function(Ae){var Ee=t.length;if(Ae>Ee){var Ge=new W(Math.max(Ee*2,Ae));Ge.set(t),t=Ge}},l=r.f||0,d=r.p||0,g=r.b||0,w=r.l,E=r.d,C=r.m,j=r.n,T=n*8;do{if(!w){l=Z(e,d,1);var P=Z(e,d+1,3);if(d+=3,P)if(P==1)w=un,E=cn,C=9,j=5;else if(P==2){var G=Z(e,d,31)+257,ce=Z(e,d+10,15)+4,we=G+Z(e,d+5,31)+1;d+=14;for(var $=new W(we),ie=new W(19),B=0;B<ce;++B)ie[tn[B]]=Z(e,d+B*3,7);d+=ce*3;for(var M=nt(ie),Te=(1<<M)-1,ee=Re(ie,M,1),B=0;B<we;){var te=ee[Z(e,d,Te)];d+=te&15;var F=te>>>4;if(F<16)$[B++]=F;else{var re=0,de=0;for(F==16?(de=3+Z(e,d,3),d+=2,re=$[B-1]):F==17?(de=3+Z(e,d,7),d+=3):F==18&&(de=11+Z(e,d,127),d+=7);de--;)$[B++]=re}}var Oe=$.subarray(0,G),V=$.subarray(G);C=nt(Oe),j=nt(V),w=Re(Oe,C,1),E=Re(V,j,1)}else K(1);else{var F=fn(d)+4,N=e[F-4]|e[F-3]<<8,J=F+N;if(J>n){u&&K(0);break}i&&c(g+N),t.set(e.subarray(F,J),g),r.b=g+=N,r.p=d=J*8,r.f=l;continue}if(d>T){u&&K(0);break}}i&&c(g+131072);for(var Ke=(1<<C)-1,Le=(1<<j)-1,xe=d;;xe=d){var re=w[ot(e,d)&Ke],fe=re>>>4;if(d+=re&15,d>T){u&&K(0);break}if(re||K(2),fe<256)t[g++]=fe;else if(fe==256){xe=d,w=null;break}else{var be=fe-254;if(fe>264){var B=fe-257,pe=Ut[B];be=Z(e,d,(1<<pe)-1)+qt[B],d+=pe}var ke=E[ot(e,d)&Le],Se=ke>>>4;ke||K(3),d+=ke&15;var V=an[Se];if(Se>3){var pe=Bt[Se];V+=ot(e,d)&(1<<pe)-1,d+=pe}if(d>T){u&&K(0);break}i&&c(g+131072);for(var Ye=g+be;g<Ye;g+=4)t[g]=t[g-V],t[g+1]=t[g+1-V],t[g+2]=t[g+2-V],t[g+3]=t[g+3-V];g=Ye}}r.l=w,r.p=xe,r.b=g,r.f=l,w&&(l=1,r.m=C,r.d=E,r.n=j)}while(!l);return g==t.length?t:at(t,0,g)};var Uo=new W(0);var Bo=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Qr=function(e,t,r){for(var n=e(),i=e.toString(),u=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),c=0;c<n.length;++c){var l=n[c],d=u[c];if(typeof l=="function"){t+=";"+d+"=";var g=l.toString();if(l.prototype)if(g.indexOf("[native code]")!=-1){var w=g.indexOf(" ",8)+1;t+=g.slice(w,g.indexOf("(",w))}else{t+=g;for(var E in l.prototype)t+=";"+d+".prototype."+E+"="+l.prototype[E].toString()}else t+=g}else r[d]=l}return[t,r]},tt=[],qo=function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t},Ho=function(e,t,r,n){var i;if(!tt[r]){for(var u="",c={},l=e.length-1,d=0;d<l;++d)i=Qr(e[d],u,c),u=i[0],c=i[1];tt[r]=Qr(e[l],u,c)}var g=Bo({},tt[r][1]);return zo(tt[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,g,qo(g),n)},Wo=function(){return[W,me,Lt,Ut,Bt,tn,qt,an,un,cn,it,ln,Re,nt,Z,ot,fn,at,K,dn,Ht,pn,hn]};var pn=function(e){return postMessage(e,[e.buffer])},hn=function(e){return e&&e.size&&new W(e.size)},$o=function(e,t,r,n,i,u){var c=Ho(r,n,i,function(l,d){c.terminate(),u(l,d)});return c.postMessage([e,t],t.consume?[e.buffer]:[]),function(){c.terminate()}};var ae=function(e,t){return e[t]|e[t+1]<<8},ne=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},jt=function(e,t){return ne(e,t)+ne(e,t+4)*4294967296};function Ko(e,t,r){return r||(r=t,t={}),typeof r!="function"&&K(7),$o(e,t,[Wo],function(n){return pn(Ht(n.data[0],hn(n.data[1])))},1,r)}function Ht(e,t){return dn(e,t)}var zt=typeof TextDecoder<"u"&&new TextDecoder,Yo=0;try{zt.decode(Uo,{stream:!0}),Yo=1}catch{}var Go=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return[t,at(e,r-1)];i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function Vo(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(zt)return zt.decode(e);var i=Go(e),u=i[0],c=i[1];return c.length&&K(8),u}}var Xo=function(e,t){return t+30+ae(e,t+26)+ae(e,t+28)},Zo=function(e,t,r){var n=ae(e,t+28),i=Vo(e.subarray(t+46,t+46+n),!(ae(e,t+8)&2048)),u=t+46+n,c=ne(e,t+20),l=r&&c==4294967295?Qo(e,u):[c,ne(e,t+24),ne(e,t+42)],d=l[0],g=l[1],w=l[2];return[ae(e,t+10),d,g,i,u+ae(e,t+30)+ae(e,t+32),w]},Qo=function(e,t){for(;ae(e,t)!=1;t+=4+ae(e,t+2));return[jt(e,t+12),jt(e,t+4),jt(e,t+20)]};var Jr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function mn(e,t,r){r||(r=t,t={}),typeof r!="function"&&K(7);var n=[],i=function(){for(var F=0;F<n.length;++F)n[F]()},u={},c=function(F,N){Jr(function(){r(F,N)})};Jr(function(){c=r});for(var l=e.length-22;ne(e,l)!=101010256;--l)if(!l||e.length-l>65558)return c(K(13,0,1),null),i;var d=ae(e,l+8);if(d){var g=d,w=ne(e,l+16),E=w==4294967295||g==65535;if(E){var C=ne(e,l-12);E=ne(e,C)==101075792,E&&(g=d=ne(e,C+32),w=ne(e,C+48))}for(var j=t&&t.filter,T=function(F){var N=Zo(e,w,E),J=N[0],G=N[1],ce=N[2],we=N[3],$=N[4],ie=N[5],B=Xo(e,ie);w=$;var M=function(ee,te){ee?(i(),c(ee,null)):(te&&(u[we]=te),--d||c(null,u))};if(!j||j({name:we,size:G,originalSize:ce,compression:J}))if(!J)M(null,at(e,B,B+G));else if(J==8){var Te=e.subarray(B,B+G);if(G<32e4)try{M(null,Ht(Te,new W(ce)))}catch(ee){M(ee,null)}else n.push(Ko(Te,{size:ce},M))}else M(K(14,"unknown compression type "+J,1),null);else M(null,null)},P=0;P<g;++P)T(P)}else c(null,{});return i}function st(e){return new Promise((t,r)=>{mn(e,(n,i)=>{n?r(n):t(i)})})}a();s();var no=Ue(Yt()),oo=Ue(ro()),Ma=(0,oo.defineTree)({getChildren:no.Entries.getEntries});a();s();var xc=Uint8Array.from([80,75]),bc=Uint8Array.from([55,122,188,175,39,28]);a();s();var io=Ue(Yt());async function xr(e){let{gistId:t,fetch:r=globalThis.fetch}=e,n=await r(`https://api.github.com/gists/${t}`);if(!n.ok)throw new Error(`Failed to fetch gist: ${n.statusText}`);let i=await n.json();if(!i.files)throw new Error("No files found in gist");let u={};for(let[c,l]of Object.entries(i.files))if(typeof l=="object"&&l!==null){let d="content"in l?String(l.content):"";u[c]={kind:"file",content:d,encoding:"utf-8"}}return u}async function br(e){let{owner:t,name:r,ref:n="main",path:i,fetch:u=globalThis.fetch,format:c="zip",debug:l=!1}=e,d=`https://www.noya.io/packager/github/download/${t}/${r}/${n}${c==="files"?"":`.${c}`}`,g=await u(d,{headers:{Accept:c==="files"?"application/json":c==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!g.ok)throw new Error(`Failed to fetch repository: ${g.statusText}`);let w=await g.arrayBuffer(),E=new Uint8Array(w);switch(c){case"files":return JSON.parse(new TextDecoder().decode(E));case"zip":return Ca({bytes:E,path:i,debug:l});case"tar":throw new Error("Tar format not supported")}}async function Ca({bytes:e,path:t,debug:r}){let n=await st(e),i={},u=Object.entries(n);if(u.length===0)throw new Error("No files found in zip");let c=u[0][0],l=t?`${c}${t}/`:c;for(let[d,g]of u)if(d.startsWith(l)&&!d.endsWith("/")){let w=t?d.slice(l.length):d.slice(c.length);if(g instanceof Uint8Array)try{i[w]={kind:"file",content:new TextDecoder().decode(g),encoding:"utf-8"}}catch{r&&console.info(`Skipping binary file: ${w}`)}}if(Object.keys(i).length===0&&t)throw new Error(`No files found in path: ${t}`);return i}a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();function ao(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}var Fa={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},Df=ao(Fa);a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var jl=Symbol("object"),zl=Symbol("array"),Ll=Symbol("key"),Ul=Symbol("end"),Bl=Symbol("primitive"),ql=Symbol("argsep");a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();a();s();var Dr=Ue(Cr());a();s();var Fr=Ue(Cr());a();s();async function To(e){if(e.location==="repository"&&e.repository?.owner&&e.repository?.name){console.info("Loading GitHub repository files",e.repository);let t=await br({owner:e.repository.owner,name:e.repository.name,ref:e.repository.ref,path:e.repository.path,fetch:e.fetch,debug:e.debug});if(e.debug){let r=e.repository.path?` (path: ${e.repository.path})`:"";console.info(`Loaded ${Object.keys(t).length} files from repository ${e.repository.owner}/${e.repository.name}${r}`)}return t}if(e.location==="gist"&&e.gist?.id){console.info("Loading GitHub gist files",e.gist);let t=await xr({gistId:e.gist.id,fetch:e.fetch});return e.debug&&console.info(`Loaded ${Object.keys(t).length} files from gist ${e.gist.id}`),t}return e.files??{}}async function Oo(e,{state:t}){let r=await To(t);return{...t,location:"files",files:r}}0&&(module.exports={resolveFiles});
30
20
  /*! Bundled license information:
31
21
 
32
- react/cjs/react.production.min.js:
22
+ react/cjs/react.production.js:
33
23
  (**
34
24
  * @license React
35
- * react.production.min.js
25
+ * react.production.js
36
26
  *
37
- * Copyright (c) Facebook, Inc. and its affiliates.
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
28
  *
39
29
  * This source code is licensed under the MIT license found in the
40
30
  * LICENSE file in the root directory of this source tree.
@@ -45,7 +35,7 @@ react/cjs/react.development.js:
45
35
  * @license React
46
36
  * react.development.js
47
37
  *
48
- * Copyright (c) Facebook, Inc. and its affiliates.
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
49
39
  *
50
40
  * This source code is licensed under the MIT license found in the
51
41
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noya-app/noya-resolve-files",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -12,6 +12,6 @@
12
12
  "dev": "npm run build -- --watch"
13
13
  },
14
14
  "dependencies": {
15
- "@noya-app/noya-github-utils": "0.1.18"
15
+ "@noya-app/noya-github-utils": "0.1.20"
16
16
  }
17
17
  }