@noya-app/noya-resolve-files 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/dist/bundle/index.js +2 -2
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,8 +6,8 @@ $ tsup --config bundle.config.ts
|
|
|
6
6
|
[34mCLI[39m Using tsup config: /home/runner/work/noya-core/noya-core/packages/noya-resolve-files/bundle.config.ts
|
|
7
7
|
[34mCLI[39m Target: es2022
|
|
8
8
|
[34mCJS[39m Build start
|
|
9
|
-
[32mCJS[39m [1mdist/bundle/index.js [22m[32m117.
|
|
10
|
-
[32mCJS[39m ⚡️ Build success in
|
|
9
|
+
[32mCJS[39m [1mdist/bundle/index.js [22m[32m117.08 KB[39m
|
|
10
|
+
[32mCJS[39m ⚡️ Build success in 1175ms
|
|
11
11
|
$ tsup
|
|
12
12
|
[34mCLI[39m Building entry: src/index.ts
|
|
13
13
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
@@ -18,11 +18,11 @@ $ tsup
|
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[32mCJS[39m [1mdist/index.js [22m[32m2.53 KB[39m
|
|
20
20
|
[32mCJS[39m [1mdist/index.js.map [22m[32m3.03 KB[39m
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 130ms
|
|
22
22
|
[32mESM[39m [1mdist/index.mjs [22m[32m1.50 KB[39m
|
|
23
23
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m3.00 KB[39m
|
|
24
|
-
[32mESM[39m ⚡️ Build success in
|
|
24
|
+
[32mESM[39m ⚡️ Build success in 130ms
|
|
25
25
|
[34mDTS[39m Build start
|
|
26
|
-
[32mDTS[39m ⚡️ Build success in
|
|
26
|
+
[32mDTS[39m ⚡️ Build success in 27106ms
|
|
27
27
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.00 KB[39m
|
|
28
28
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m1.00 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
`)}function tn(t){return t.includes(`
|
|
6
6
|
`)}function Io(t,o,a){return tn(t)?t.split(`
|
|
7
7
|
`).map((s,f)=>(f===0?o:a)+s).join(`
|
|
8
|
-
`):o+t}});var on=Z(nn=>{"use strict";h();v();Object.defineProperty(nn,"__esModule",{value:!0});nn.diagram=Ya;var Wa=Do(),Ka=jo();function Ya(t,o){return o.type==="box"?(0,Wa.boxDiagram)(t,o):(0,Ka.directoryDiagram)(t,o)}});var dr=Z(Ye=>{"use strict";h();v();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.STOP=Ye.SKIP=void 0;Ye.visit=Ga;Ye.SKIP="skip";Ye.STOP="stop";function Ga(t,o){let{onEnter:a,onLeave:s,getChildren:f,onDetectCycle:m,getIdentifier:g,direction:E="forward"}=o,_=(P,Y,X)=>{let Q=f(P,Y,X);return E==="forward"?Q:Q.slice().reverse()},N=[],M=[{node:t}],j=m?new Set:void 0,ee=o.includeTraversalContext?{getRoot(){return t},getParent(){var P;return(P=M[M.length-2])===null||P===void 0?void 0:P.node},getAncestors(){return M.slice(0,-1).map(P=>P.node)}}:void 0,te=o.reuseIndexPath?()=>N:()=>N.slice();for(;M.length>0;){let P=M[M.length-1];if(P.state===void 0){if(j){let Q=g?g(P.node):P.node;if(j.has(Q)){if((typeof m=="function"?m(P.node,te(),ee):m)==="error")throw new Error("Cycle detected in tree");P.state=-1;continue}j.add(Q)}let X=a?.(P.node,te());if(X===Ye.STOP)return;P.state=X===Ye.SKIP?-1:0}let Y=P.children||_(P.node,te(),ee);if(P.children||(P.children=Y),P.state!==-1){if(P.state<Y.length){let Q=P.state;N.push(E==="forward"?Q:Y.length-Q-1),M.push({node:Y[Q]}),P.state=Q+1;continue}if(s?.(P.node,te())===Ye.STOP)return}if(j){let X=g?g(P.node):P.node;j.delete(X)}N.pop(),M.pop()}}});var an=Z(sn=>{"use strict";h();v();Object.defineProperty(sn,"__esModule",{value:!0});sn.entries=Za;var Va=dr();function Za(t,o){let a=[];return(0,Va.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a.push([f,s])}})),a}});var un=Z(kr=>{"use strict";h();v();Object.defineProperty(kr,"__esModule",{value:!0});kr.find=Xa;kr.findAll=Qa;kr.findPath=Ja;kr.findAllPaths=eu;var Or=dr();function Xa(t,o){let a;return(0,Or.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{if(o.predicate(s,f))return a=s,Or.STOP}})),a}function Qa(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push(s)},getChildren:o.getChildren}),a}function Ja(t,o){let a;return(0,Or.visit)(t,{onEnter:(s,f)=>{if(o.predicate(s,f))return a=[...f],Or.STOP},getChildren:o.getChildren}),a}function eu(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push([...f])},getChildren:o.getChildren}),a}});var _t=Z(cn=>{"use strict";h();v();Object.defineProperty(cn,"__esModule",{value:!0});cn.reduce=tu;var ru=dr();function tu(t,o){let a=o.initialResult;return(0,ru.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a=o.nextResult(a,s,f)}})),a}});var ln=Z(fn=>{"use strict";h();v();Object.defineProperty(fn,"__esModule",{value:!0});fn.flat=ou;var nu=_t();function ou(t,o){return(0,nu.reduce)(t,Object.assign(Object.assign({},o),{initialResult:[],nextResult:(a,s)=>(a.push(s),a)}))}});var Ot=Z(Tt=>{"use strict";h();v();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.map=su;Tt.flatMap=zo;var iu=dr();function su(t,o){return zo(t,Object.assign(Object.assign({},o),{transform:(a,s,f)=>[o.transform(a,s,f)]}))}function zo(t,o){let a={};return(0,iu.visit)(t,Object.assign(Object.assign({},o),{onLeave:(s,f)=>{var m,g;let E=[0,...f],_=E.join(),N=o.transform(s,(m=a[_])!==null&&m!==void 0?m:[],f),M=E.slice(0,-1).join(),j=(g=a[M])!==null&&g!==void 0?g:[];j.push(...N),a[M]=j}})),a[""][0]}});var pn=Z(dn=>{"use strict";h();v();Object.defineProperty(dn,"__esModule",{value:!0});dn.transformPath=cu;var au=yt();function uu(t,o){let a=Math.min(t.length,o.length);for(let s=0;s<a;s++)if(t[s]!==o[s])return t.slice(0,s);return t.slice(0,a)}function cu(t,o,a,s=1){if(a.length>t.length||(0,au.comparePathsByComponent)(a,t)>0)return t;if(a.length===0&&o==="remove")return;let f=uu(t,a),m=f.length===t.length||f.length===a.length?f.length-1:f.length,g=t[m],E=a[m];if(o==="insert"&&E<=g){let _=[...t];return _[m]+=s,_}else if(o==="remove"){if(E===g)return;if(E<g){let _=[...t];return _[m]-=s,_}}return t}});var br=Z(Le=>{"use strict";h();v();Object.defineProperty(Le,"__esModule",{value:!0});Le.insertOperation=Lo;Le.removeOperation=Bo;Le.replaceOperation=kt;Le.getInsertionOperations=du;Le.getRemovalOperations=pu;Le.getReplaceOperations=hu;Le.applyOperations=vu;Le.arraySplice=hn;Le.transformPathsByOperations=mu;var fu=wt(),lu=Ot(),Uo=pn();function Lo(t,o){return{type:"insert",index:t,nodes:o}}function Bo(t){return{type:"remove",indexes:t}}function kt(){return{type:"replace"}}function qo(t){return[t.slice(0,-1),t[t.length-1]]}function du(t,o,a=new Map){var s;let[f,m]=qo(t);for(let E=f.length-1;E>=0;E--){let _=f.slice(0,E).join();switch((s=a.get(_))===null||s===void 0?void 0:s.type){case"remove":continue}a.set(_,kt())}let g=a.get(f.join());switch(g?.type){case"remove":a.set(f.join(),{type:"removeThenInsert",removeIndexes:g.indexes,insertIndex:m,insertNodes:o});break;default:a.set(f.join(),Lo(m,o))}return a}function pu(t){var o,a;let s=(0,fu.ancestorPaths)(t),f=new Map;for(let g of s){let E=g.slice(0,-1).join(),_=(o=f.get(E))!==null&&o!==void 0?o:[];_.push(g[g.length-1]),f.set(E,_)}let m=new Map;for(let g of s)for(let E=g.length-1;E>=0;E--){let _=g.slice(0,E).join();m.set(_,kt())}for(let g of s){let E=g.slice(0,-1).join();m.set(E,Bo((a=f.get(E))!==null&&a!==void 0?a:[]))}return m}function hu(t,o){let a=new Map,[s,f]=qo(t);for(let m=s.length-1;m>=0;m--){let g=s.slice(0,m).join();a.set(g,kt())}return a.set(s.join(),{type:"removeThenInsert",removeIndexes:[f],insertIndex:f,insertNodes:[o]}),a}function $o(t,o){return o.reduce((a,s)=>s<a?a-1:a,t)}function vu(t,o,a){return(0,lu.map)(t,Object.assign(Object.assign({},a),{getChildren:(s,f)=>{let m=f.join(),g=o.get(m);switch(g?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return a.getChildren(s,f);default:return[]}},transform:(s,f,m)=>{let g=m.join(),E=o.get(g);switch(E?.type){case"remove":return a.create(s,f.filter((M,j)=>!E.indexes.includes(j)),m);case"removeThenInsert":let _=f.filter((M,j)=>!E.removeIndexes.includes(j)),N=$o(E.insertIndex,E.removeIndexes);return a.create(s,hn(_,N,0,...E.insertNodes),m);case"insert":return a.create(s,hn(f,E.index,0,...E.nodes),m);case"replace":return a.create(s,f,m);default:return s}}}))}function hn(t,o,a,...s){return[...t.slice(0,o),...s,...t.slice(o+a)]}function mu(t,o){let a=t;for(let[s,f]of o.entries()){let m=s?s.split(",").map(Number):[];a=vn(a,m,f)}return a}function vn(t,o,a){switch(a.type){case"insert":{let s=o.concat(a.index);return t.map(f=>f?(0,Uo.transformPath)(f,"insert",s,a.nodes.length):void 0)}case"remove":{let s=[...a.indexes].reverse().map(f=>o.concat(f));return t.map(f=>{for(let m of s)f=f?(0,Uo.transformPath)(f,"remove",m):void 0;return f})}case"removeThenInsert":{let s=vn(t,o,{type:"remove",indexes:a.removeIndexes}),f=$o(a.insertIndex,a.removeIndexes);return vn(s,o,{type:"insert",index:f,nodes:a.insertNodes})}case"replace":return t}}});var gn=Z(bt=>{"use strict";h();v();Object.defineProperty(bt,"__esModule",{value:!0});bt.insert=gu;bt.insertWithPathTracking=yu;var mn=br();function gu(t,o){return Ho(t,o).node}function yu(t,o){return Ho(t,o)}function Ho(t,o){let{nodes:a,path:s,track:f}=o;if(s.length===0)throw new Error("Can't insert nodes at the root");let m=(0,mn.getInsertionOperations)(s,a),g=f?(0,mn.transformPathsByOperations)(f,m):[];return{node:(0,mn.applyOperations)(t,m,o),paths:g}}});var En=Z(wn=>{"use strict";h();v();Object.defineProperty(wn,"__esModule",{value:!0});wn.move=_u;var wu=mt(),Eu=wt(),yn=br();function _u(t,o){if(o.paths.length===0)return t;for(let m of o.paths)if(m.length===0)throw new Error("Can't move the root node");if(o.to.length===0)throw new Error("Can't move nodes to the root");let a=(0,Eu.ancestorPaths)(o.paths),s=a.map(m=>(0,wu.access)(t,m,o)),f=(0,yn.getInsertionOperations)(o.to,s,(0,yn.getRemovalOperations)(a));return(0,yn.applyOperations)(t,f,o)}});var Tn=Z(St=>{"use strict";h();v();Object.defineProperty(St,"__esModule",{value:!0});St.remove=Tu;St.removeWithPathTracking=Ou;var _n=br();function Tu(t,o){return Wo(t,o).node}function Ou(t,o){return Wo(t,o)}function Wo(t,o){let{paths:a,track:s}=o,f=(0,_n.getRemovalOperations)(a),m=s?(0,_n.transformPathsByOperations)(s,f):[];return{node:(0,_n.applyOperations)(t,f,o),paths:m}}});var kn=Z(On=>{"use strict";h();v();Object.defineProperty(On,"__esModule",{value:!0});On.replace=ku;var Ko=br();function ku(t,o){if(o.path.length===0)return o.node;let a=(0,Ko.getReplaceOperations)(o.path,o.node);return(0,Ko.applyOperations)(t,a,o)}});var bn=Z(Nt=>{"use strict";h();v();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.splice=bu;Nt.spliceWithPathTracking=Su;var xt=br();function bu(t,o){return Yo(t,o).node}function Su(t,o){return Yo(t,o)}function Yo(t,o){let{path:a,deleteCount:s=0,nodes:f,track:m}=o;if(a.length===0)throw new Error("Can't splice at the root");let g=xu(a,s),E=(0,xt.getInsertionOperations)(a,f,(0,xt.getRemovalOperations)(g)),_=m?(0,xt.transformPathsByOperations)(m,E):[];return{node:(0,xt.applyOperations)(t,E,o),paths:_}}function xu(t,o){let a=[],s=t.slice(0,-1),f=t[t.length-1];for(let m=0;m<o;m++)a.push(s.concat(f+m));return a}});var Nn=Z(xn=>{"use strict";h();v();Object.defineProperty(xn,"__esModule",{value:!0});xn.defineTree=Mu;var At=mt(),Go=on(),Nu=an(),sr=un(),Au=ln(),Vo=gn(),Zo=Ot(),Pu=En(),Ru=_t(),Xo=Tn(),Fu=kn(),Qo=bn(),Jo=dr(),Sn=class t{constructor(o,a){this.appliedOptions=a,this.getChildren=(s,f,m)=>this._getChildren(s,f,m),this.mergeOptions=s=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),s),this.withOptions=s=>new t(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),s)),this.access=(s,f)=>(0,At.access)(s,f,this.mergeOptions({})),this.accessPath=(s,f)=>(0,At.accessPath)(s,f,this.mergeOptions({})),this.get=(s,f)=>(0,At.get)(s,f,this.mergeOptions({})),this.ancestors=(s,f)=>(0,At.ancestors)(s,f,this.mergeOptions({})),this.diagram=(s,f)=>typeof f=="function"?(0,Go.diagram)(s,this.mergeOptions({getLabel:f})):(0,Go.diagram)(s,this.mergeOptions(f)),this.find=(s,f)=>typeof f=="function"?(0,sr.find)(s,this.mergeOptions({predicate:f})):(0,sr.find)(s,this.mergeOptions(Object.assign({},f))),this.findAll=(s,f)=>typeof f=="function"?(0,sr.findAll)(s,this.mergeOptions({predicate:f})):(0,sr.findAll)(s,this.mergeOptions(Object.assign({},f))),this.findPath=(s,f)=>typeof f=="function"?(0,sr.findPath)(s,this.mergeOptions({predicate:f})):(0,sr.findPath)(s,this.mergeOptions(Object.assign({},f))),this.findAllPaths=(s,f)=>typeof f=="function"?(0,sr.findAllPaths)(s,this.mergeOptions({predicate:f})):(0,sr.findAllPaths)(s,this.mergeOptions(Object.assign({},f))),this.entries=s=>(0,Nu.entries)(s,this.mergeOptions({})),this.flat=s=>(0,Au.flat)(s,this.mergeOptions({})),this.reduce=(s,f,m)=>(0,Ru.reduce)(s,this.mergeOptions({nextResult:f,initialResult:m})),this.map=(s,f)=>(0,Zo.map)(s,this.mergeOptions({transform:f})),this.flatMap=(s,f)=>(0,Zo.flatMap)(s,this.mergeOptions({transform:f})),this.visit=(s,f)=>typeof f=="function"?(0,Jo.visit)(s,this.mergeOptions({onEnter:f})):(0,Jo.visit)(s,this.mergeOptions(Object.assign({},f))),this.insert=(s,f)=>(0,Vo.insert)(s,this.mergeOptions(f)),this.insertWithPathTracking=(s,f)=>(0,Vo.insertWithPathTracking)(s,this.mergeOptions(f)),this.remove=(s,f)=>(0,Xo.remove)(s,this.mergeOptions(f)),this.removeWithPathTracking=(s,f)=>(0,Xo.removeWithPathTracking)(s,this.mergeOptions(f)),this.move=(s,f)=>(0,Pu.move)(s,this.mergeOptions(f)),this.splice=(s,f)=>(0,Qo.splice)(s,this.mergeOptions(f)),this.spliceWithPathTracking=(s,f)=>(0,Qo.spliceWithPathTracking)(s,this.mergeOptions(f)),this.replace=(s,f)=>(0,Fu.replace)(s,this.mergeOptions(f)),this.baseOptions=typeof o=="function"?{getChildren:o}:o,this._getChildren=this.baseOptions.getChildren}};function Mu(t){return new Sn(t,{})}});var ri=Z(ei=>{"use strict";h();v();Object.defineProperty(ei,"__esModule",{value:!0})});var ni=Z(ti=>{"use strict";h();v();Object.defineProperty(ti,"__esModule",{value:!0})});var oi=Z(Pt=>{"use strict";h();v();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.withOptions=void 0;var Cu=Nn();Pt.withOptions=Cu.defineTree});var ii=Z(oe=>{"use strict";h();v();var Du=oe&&oe.__createBinding||(Object.create?function(t,o,a,s){s===void 0&&(s=a);var f=Object.getOwnPropertyDescriptor(o,a);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(t,s,f)}:function(t,o,a,s){s===void 0&&(s=a),t[s]=o[a]}),fe=oe&&oe.__exportStar||function(t,o){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&Du(o,t,a)};Object.defineProperty(oe,"__esModule",{value:!0});fe(mt(),oe);fe(wt(),oe);fe(Nn(),oe);fe(on(),oe);fe(an(),oe);fe(un(),oe);fe(ln(),oe);fe(ri(),oe);fe(gn(),oe);fe(Ot(),oe);fe(En(),oe);fe(ni(),oe);fe(_t(),oe);fe(Tn(),oe);fe(kn(),oe);fe(yt(),oe);fe(bn(),oe);fe(pn(),oe);fe(dr(),oe);fe(oi(),oe)});var Ti=Z(H=>{"use strict";h();v();var Fn=Symbol.for("react.transitional.element"),Lu=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Hu=Symbol.for("react.consumer"),Wu=Symbol.for("react.context"),Ku=Symbol.for("react.forward_ref"),Yu=Symbol.for("react.suspense"),Gu=Symbol.for("react.memo"),mi=Symbol.for("react.lazy"),li=Symbol.iterator;function Vu(t){return t===null||typeof t!="object"?null:(t=li&&t[li]||t["@@iterator"],typeof t=="function"?t:null)}var gi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yi=Object.assign,wi={};function xr(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}xr.prototype.isReactComponent={};xr.prototype.setState=function(t,o){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,o,"setState")};xr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ei(){}Ei.prototype=xr.prototype;function Mn(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}var Cn=Mn.prototype=new Ei;Cn.constructor=Mn;yi(Cn,xr.prototype);Cn.isPureReactComponent=!0;var di=Array.isArray,ae={H:null,A:null,T:null,S:null,V:null},_i=Object.prototype.hasOwnProperty;function Dn(t,o,a,s,f,m){return a=m.ref,{$$typeof:Fn,type:t,key:o,ref:a!==void 0?a:null,props:m}}function Zu(t,o){return Dn(t.type,o,void 0,void 0,void 0,t.props)}function In(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fn}function Xu(t){var o={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return o[a]})}var pi=/\/+/g;function Rn(t,o){return typeof t=="object"&&t!==null&&t.key!=null?Xu(""+t.key):o.toString(36)}function hi(){}function Qu(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(hi,hi):(t.status="pending",t.then(function(o){t.status==="pending"&&(t.status="fulfilled",t.value=o)},function(o){t.status==="pending"&&(t.status="rejected",t.reason=o)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Sr(t,o,a,s,f){var m=typeof t;(m==="undefined"||m==="boolean")&&(t=null);var g=!1;if(t===null)g=!0;else switch(m){case"bigint":case"string":case"number":g=!0;break;case"object":switch(t.$$typeof){case Fn:case Lu:g=!0;break;case mi:return g=t._init,Sr(g(t._payload),o,a,s,f)}}if(g)return f=f(t),g=s===""?"."+Rn(t,0):s,di(f)?(a="",g!=null&&(a=g.replace(pi,"$&/")+"/"),Sr(f,o,a,"",function(N){return N})):f!=null&&(In(f)&&(f=Zu(f,a+(f.key==null||t&&t.key===f.key?"":(""+f.key).replace(pi,"$&/")+"/")+g)),o.push(f)),1;g=0;var E=s===""?".":s+":";if(di(t))for(var _=0;_<t.length;_++)s=t[_],m=E+Rn(s,_),g+=Sr(s,o,a,m,f);else if(_=Vu(t),typeof _=="function")for(t=_.call(t),_=0;!(s=t.next()).done;)s=s.value,m=E+Rn(s,_++),g+=Sr(s,o,a,m,f);else if(m==="object"){if(typeof t.then=="function")return Sr(Qu(t),o,a,s,f);throw o=String(t),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return g}function Rt(t,o,a){if(t==null)return t;var s=[],f=0;return Sr(t,s,"","",function(m){return o.call(a,m,f++)}),s}function Ju(t){if(t._status===-1){var o=t._result;o=o(),o.then(function(a){(t._status===0||t._status===-1)&&(t._status=1,t._result=a)},function(a){(t._status===0||t._status===-1)&&(t._status=2,t._result=a)}),t._status===-1&&(t._status=0,t._result=o)}if(t._status===1)return t._result.default;throw t._result}var vi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ec(){}H.Children={map:Rt,forEach:function(t,o,a){Rt(t,function(){o.apply(this,arguments)},a)},count:function(t){var o=0;return Rt(t,function(){o++}),o},toArray:function(t){return Rt(t,function(o){return o})||[]},only:function(t){if(!In(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};H.Component=xr;H.Fragment=Bu;H.Profiler=$u;H.PureComponent=Mn;H.StrictMode=qu;H.Suspense=Yu;H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae;H.__COMPILER_RUNTIME={__proto__:null,c:function(t){return ae.H.useMemoCache(t)}};H.cache=function(t){return function(){return t.apply(null,arguments)}};H.cloneElement=function(t,o,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=yi({},t.props),f=t.key,m=void 0;if(o!=null)for(g in o.ref!==void 0&&(m=void 0),o.key!==void 0&&(f=""+o.key),o)!_i.call(o,g)||g==="key"||g==="__self"||g==="__source"||g==="ref"&&o.ref===void 0||(s[g]=o[g]);var g=arguments.length-2;if(g===1)s.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];s.children=E}return Dn(t.type,f,void 0,void 0,m,s)};H.createContext=function(t){return t={$$typeof:Wu,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Hu,_context:t},t};H.createElement=function(t,o,a){var s,f={},m=null;if(o!=null)for(s in o.key!==void 0&&(m=""+o.key),o)_i.call(o,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(f[s]=o[s]);var g=arguments.length-2;if(g===1)f.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];f.children=E}if(t&&t.defaultProps)for(s in g=t.defaultProps,g)f[s]===void 0&&(f[s]=g[s]);return Dn(t,m,void 0,void 0,null,f)};H.createRef=function(){return{current:null}};H.forwardRef=function(t){return{$$typeof:Ku,render:t}};H.isValidElement=In;H.lazy=function(t){return{$$typeof:mi,_payload:{_status:-1,_result:t},_init:Ju}};H.memo=function(t,o){return{$$typeof:Gu,type:t,compare:o===void 0?null:o}};H.startTransition=function(t){var o=ae.T,a={};ae.T=a;try{var s=t(),f=ae.S;f!==null&&f(a,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(ec,vi)}catch(m){vi(m)}finally{ae.T=o}};H.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()};H.use=function(t){return ae.H.use(t)};H.useActionState=function(t,o,a){return ae.H.useActionState(t,o,a)};H.useCallback=function(t,o){return ae.H.useCallback(t,o)};H.useContext=function(t){return ae.H.useContext(t)};H.useDebugValue=function(){};H.useDeferredValue=function(t,o){return ae.H.useDeferredValue(t,o)};H.useEffect=function(t,o,a){var s=ae.H;if(typeof a=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return s.useEffect(t,o)};H.useId=function(){return ae.H.useId()};H.useImperativeHandle=function(t,o,a){return ae.H.useImperativeHandle(t,o,a)};H.useInsertionEffect=function(t,o){return ae.H.useInsertionEffect(t,o)};H.useLayoutEffect=function(t,o){return ae.H.useLayoutEffect(t,o)};H.useMemo=function(t,o){return ae.H.useMemo(t,o)};H.useOptimistic=function(t,o){return ae.H.useOptimistic(t,o)};H.useReducer=function(t,o,a){return ae.H.useReducer(t,o,a)};H.useRef=function(t){return ae.H.useRef(t)};H.useState=function(t){return ae.H.useState(t)};H.useSyncExternalStore=function(t,o,a){return ae.H.useSyncExternalStore(t,o,a)};H.useTransition=function(){return ae.H.useTransition()};H.version="19.1.0"});var Oi=Z((B,Ft)=>{"use strict";h();v();process.env.NODE_ENV!=="production"&&function(){function t(c,y){Object.defineProperty(s.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function o(c){return c===null||typeof c!="object"?null:(c=cr&&c[cr]||c["@@iterator"],typeof c=="function"?c:null)}function a(c,y){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var b=c+"."+y;pr[b]||(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.",y,c),pr[b]=!0)}function s(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function f(){}function m(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function g(c){return""+c}function E(c){try{g(c);var y=!1}catch{y=!0}if(y){y=console;var b=y.error,x=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return b.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",x),g(c)}}function _(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Mt?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case ar:return"Fragment";case Pe:return"Profiler";case Ge:return"StrictMode";case er:return"Suspense";case Re:return"SuspenseList";case rr:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case he:return"Portal";case Be:return(c.displayName||"Context")+".Provider";case Je:return(c._context.displayName||"Context")+".Consumer";case ur:var y=c.render;return c=c.displayName,c||(c=y.displayName||y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Fe:return y=c.displayName||null,y!==null?y:_(c.type)||"Memo";case qe:y=c._payload,c=c._init;try{return _(c(y))}catch{}}return null}function N(c){if(c===ar)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===qe)return"<...>";try{var y=_(c);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function M(){var c=W.A;return c===null?null:c.getOwner()}function j(){return Error("react-stack-top-frame")}function ee(c){if(fr.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function te(c,y){function b(){Wr||(Wr=!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)",y))}b.isReactWarning=!0,Object.defineProperty(c,"key",{get:b,configurable:!0})}function P(){var c=_(this.type);return Kr[c]||(Kr[c]=!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.")),c=this.props.ref,c!==void 0?c:null}function Y(c,y,b,x,R,z,U,A){return b=z.ref,c={$$typeof:Ee,type:c,key:y,props:z,_owner:R},(b!==void 0?b:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function X(c,y){return y=Y(c.type,y,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(y._store.validated=c._store.validated),y}function Q(c){return typeof c=="object"&&c!==null&&c.$$typeof===Ee}function ye(c){var y={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(b){return y[b]})}function me(c,y){return typeof c=="object"&&c!==null&&c.key!=null?(E(c.key),ye(""+c.key)):y.toString(36)}function xe(){}function Ne(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(xe,xe):(c.status="pending",c.then(function(y){c.status==="pending"&&(c.status="fulfilled",c.value=y)},function(y){c.status==="pending"&&(c.status="rejected",c.reason=y)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function de(c,y,b,x,R){var z=typeof c;(z==="undefined"||z==="boolean")&&(c=null);var U=!1;if(c===null)U=!0;else switch(z){case"bigint":case"string":case"number":U=!0;break;case"object":switch(c.$$typeof){case Ee:case he:U=!0;break;case qe:return U=c._init,de(U(c._payload),y,b,x,R)}}if(U){U=c,R=R(U);var A=x===""?"."+me(U,0):x;return Hr(R)?(b="",A!=null&&(b=A.replace(Gr,"$&/")+"/"),de(R,y,b,"",function($e){return $e})):R!=null&&(Q(R)&&(R.key!=null&&(U&&U.key===R.key||E(R.key)),b=X(R,b+(R.key==null||U&&U.key===R.key?"":(""+R.key).replace(Gr,"$&/")+"/")+A),x!==""&&U!=null&&Q(U)&&U.key==null&&U._store&&!U._store.validated&&(b._store.validated=2),R=b),y.push(R)),1}if(U=0,A=x===""?".":x+":",Hr(c))for(var K=0;K<c.length;K++)x=c[K],z=A+me(x,K),U+=de(x,y,b,z,R);else if(K=o(c),typeof K=="function")for(K===c.entries&&(Rr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rr=!0),c=K.call(c),K=0;!(x=c.next()).done;)x=x.value,z=A+me(x,K++),U+=de(x,y,b,z,R);else if(z==="object"){if(typeof c.then=="function")return de(Ne(c),y,b,x,R);throw y=String(c),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return U}function ke(c,y,b){if(c==null)return c;var x=[],R=0;return de(c,x,"","",function(z){return y.call(b,z,R++)}),x}function ie(c){if(c._status===-1){var y=c._result;y=y(),y.then(function(b){(c._status===0||c._status===-1)&&(c._status=1,c._result=b)},function(b){(c._status===0||c._status===-1)&&(c._status=2,c._result=b)}),c._status===-1&&(c._status=0,c._result=y)}if(c._status===1)return y=c._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
8
|
+
`):o+t}});var on=Z(nn=>{"use strict";h();v();Object.defineProperty(nn,"__esModule",{value:!0});nn.diagram=Ya;var Wa=Do(),Ka=jo();function Ya(t,o){return o.type==="box"?(0,Wa.boxDiagram)(t,o):(0,Ka.directoryDiagram)(t,o)}});var dr=Z(Ye=>{"use strict";h();v();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.STOP=Ye.SKIP=void 0;Ye.visit=Ga;Ye.SKIP="skip";Ye.STOP="stop";function Ga(t,o){let{onEnter:a,onLeave:s,getChildren:f,onDetectCycle:m,getIdentifier:g,direction:E="forward"}=o,_=(P,Y,X)=>{let Q=f(P,Y,X);return E==="forward"?Q:Q.slice().reverse()},N=[],M=[{node:t}],j=m?new Set:void 0,ee=o.includeTraversalContext?{getRoot(){return t},getParent(){var P;return(P=M[M.length-2])===null||P===void 0?void 0:P.node},getAncestors(){return M.slice(0,-1).map(P=>P.node)}}:void 0,te=o.reuseIndexPath?()=>N:()=>N.slice();for(;M.length>0;){let P=M[M.length-1];if(P.state===void 0){if(j){let Q=g?g(P.node):P.node;if(j.has(Q)){if((typeof m=="function"?m(P.node,te(),ee):m)==="error")throw new Error("Cycle detected in tree");P.state=-1;continue}j.add(Q)}let X=a?.(P.node,te());if(X===Ye.STOP)return;P.state=X===Ye.SKIP?-1:0}let Y=P.children||_(P.node,te(),ee);if(P.children||(P.children=Y),P.state!==-1){if(P.state<Y.length){let Q=P.state;N.push(E==="forward"?Q:Y.length-Q-1),M.push({node:Y[Q]}),P.state=Q+1;continue}if(s?.(P.node,te())===Ye.STOP)return}if(j){let X=g?g(P.node):P.node;j.delete(X)}N.pop(),M.pop()}}});var an=Z(sn=>{"use strict";h();v();Object.defineProperty(sn,"__esModule",{value:!0});sn.entries=Za;var Va=dr();function Za(t,o){let a=[];return(0,Va.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a.push([f,s])}})),a}});var un=Z(kr=>{"use strict";h();v();Object.defineProperty(kr,"__esModule",{value:!0});kr.find=Xa;kr.findAll=Qa;kr.findPath=Ja;kr.findAllPaths=eu;var Or=dr();function Xa(t,o){let a;return(0,Or.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{if(o.predicate(s,f))return a=s,Or.STOP}})),a}function Qa(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push(s)},getChildren:o.getChildren}),a}function Ja(t,o){let a;return(0,Or.visit)(t,{onEnter:(s,f)=>{if(o.predicate(s,f))return a=[...f],Or.STOP},getChildren:o.getChildren}),a}function eu(t,o){let a=[];return(0,Or.visit)(t,{onEnter:(s,f)=>{o.predicate(s,f)&&a.push([...f])},getChildren:o.getChildren}),a}});var _t=Z(cn=>{"use strict";h();v();Object.defineProperty(cn,"__esModule",{value:!0});cn.reduce=tu;var ru=dr();function tu(t,o){let a=o.initialResult;return(0,ru.visit)(t,Object.assign(Object.assign({},o),{onEnter:(s,f)=>{a=o.nextResult(a,s,f)}})),a}});var ln=Z(fn=>{"use strict";h();v();Object.defineProperty(fn,"__esModule",{value:!0});fn.flat=ou;var nu=_t();function ou(t,o){return(0,nu.reduce)(t,Object.assign(Object.assign({},o),{initialResult:[],nextResult:(a,s)=>(a.push(s),a)}))}});var Ot=Z(Tt=>{"use strict";h();v();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.map=su;Tt.flatMap=zo;var iu=dr();function su(t,o){return zo(t,Object.assign(Object.assign({},o),{transform:(a,s,f)=>[o.transform(a,s,f)]}))}function zo(t,o){let a={};return(0,iu.visit)(t,Object.assign(Object.assign({},o),{onLeave:(s,f)=>{var m,g;let E=[0,...f],_=E.join(),N=o.transform(s,(m=a[_])!==null&&m!==void 0?m:[],f),M=E.slice(0,-1).join(),j=(g=a[M])!==null&&g!==void 0?g:[];j.push(...N),a[M]=j}})),a[""][0]}});var pn=Z(dn=>{"use strict";h();v();Object.defineProperty(dn,"__esModule",{value:!0});dn.transformPath=cu;var au=yt();function uu(t,o){let a=Math.min(t.length,o.length);for(let s=0;s<a;s++)if(t[s]!==o[s])return t.slice(0,s);return t.slice(0,a)}function cu(t,o,a,s=1){if(a.length>t.length||(0,au.comparePathsByComponent)(a,t)>0)return t;if(a.length===0&&o==="remove")return;let f=uu(t,a),m=f.length===t.length||f.length===a.length?f.length-1:f.length,g=t[m],E=a[m];if(o==="insert"&&E<=g){let _=[...t];return _[m]+=s,_}else if(o==="remove"){if(E===g)return;if(E<g){let _=[...t];return _[m]-=s,_}}return t}});var br=Z(Le=>{"use strict";h();v();Object.defineProperty(Le,"__esModule",{value:!0});Le.insertOperation=Lo;Le.removeOperation=Bo;Le.replaceOperation=kt;Le.getInsertionOperations=du;Le.getRemovalOperations=pu;Le.getReplaceOperations=hu;Le.applyOperations=vu;Le.arraySplice=hn;Le.transformPathsByOperations=mu;var fu=wt(),lu=Ot(),Uo=pn();function Lo(t,o){return{type:"insert",index:t,nodes:o}}function Bo(t){return{type:"remove",indexes:t}}function kt(){return{type:"replace"}}function qo(t){return[t.slice(0,-1),t[t.length-1]]}function du(t,o,a=new Map){var s;let[f,m]=qo(t);for(let E=f.length-1;E>=0;E--){let _=f.slice(0,E).join();switch((s=a.get(_))===null||s===void 0?void 0:s.type){case"remove":continue}a.set(_,kt())}let g=a.get(f.join());switch(g?.type){case"remove":a.set(f.join(),{type:"removeThenInsert",removeIndexes:g.indexes,insertIndex:m,insertNodes:o});break;default:a.set(f.join(),Lo(m,o))}return a}function pu(t){var o,a;let s=(0,fu.ancestorPaths)(t),f=new Map;for(let g of s){let E=g.slice(0,-1).join(),_=(o=f.get(E))!==null&&o!==void 0?o:[];_.push(g[g.length-1]),f.set(E,_)}let m=new Map;for(let g of s)for(let E=g.length-1;E>=0;E--){let _=g.slice(0,E).join();m.set(_,kt())}for(let g of s){let E=g.slice(0,-1).join();m.set(E,Bo((a=f.get(E))!==null&&a!==void 0?a:[]))}return m}function hu(t,o){let a=new Map,[s,f]=qo(t);for(let m=s.length-1;m>=0;m--){let g=s.slice(0,m).join();a.set(g,kt())}return a.set(s.join(),{type:"removeThenInsert",removeIndexes:[f],insertIndex:f,insertNodes:[o]}),a}function $o(t,o){return o.reduce((a,s)=>s<a?a-1:a,t)}function vu(t,o,a){return(0,lu.map)(t,Object.assign(Object.assign({},a),{getChildren:(s,f)=>{let m=f.join(),g=o.get(m);switch(g?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return a.getChildren(s,f);default:return[]}},transform:(s,f,m)=>{let g=m.join(),E=o.get(g);switch(E?.type){case"remove":return a.create(s,f.filter((M,j)=>!E.indexes.includes(j)),m);case"removeThenInsert":let _=f.filter((M,j)=>!E.removeIndexes.includes(j)),N=$o(E.insertIndex,E.removeIndexes);return a.create(s,hn(_,N,0,...E.insertNodes),m);case"insert":return a.create(s,hn(f,E.index,0,...E.nodes),m);case"replace":return a.create(s,f,m);default:return s}}}))}function hn(t,o,a,...s){return[...t.slice(0,o),...s,...t.slice(o+a)]}function mu(t,o){let a=t;for(let[s,f]of o.entries()){let m=s?s.split(",").map(Number):[];a=vn(a,m,f)}return a}function vn(t,o,a){switch(a.type){case"insert":{let s=o.concat(a.index);return t.map(f=>f?(0,Uo.transformPath)(f,"insert",s,a.nodes.length):void 0)}case"remove":{let s=[...a.indexes].reverse().map(f=>o.concat(f));return t.map(f=>{for(let m of s)f=f?(0,Uo.transformPath)(f,"remove",m):void 0;return f})}case"removeThenInsert":{let s=vn(t,o,{type:"remove",indexes:a.removeIndexes}),f=$o(a.insertIndex,a.removeIndexes);return vn(s,o,{type:"insert",index:f,nodes:a.insertNodes})}case"replace":return t}}});var gn=Z(bt=>{"use strict";h();v();Object.defineProperty(bt,"__esModule",{value:!0});bt.insert=gu;bt.insertWithPathTracking=yu;var mn=br();function gu(t,o){return Ho(t,o).node}function yu(t,o){return Ho(t,o)}function Ho(t,o){let{nodes:a,path:s,track:f}=o;if(s.length===0)throw new Error("Can't insert nodes at the root");let m=(0,mn.getInsertionOperations)(s,a),g=f?(0,mn.transformPathsByOperations)(f,m):[];return{node:(0,mn.applyOperations)(t,m,o),paths:g}}});var En=Z(wn=>{"use strict";h();v();Object.defineProperty(wn,"__esModule",{value:!0});wn.move=_u;var wu=mt(),Eu=wt(),yn=br();function _u(t,o){if(o.paths.length===0)return t;for(let m of o.paths)if(m.length===0)throw new Error("Can't move the root node");if(o.to.length===0)throw new Error("Can't move nodes to the root");let a=(0,Eu.ancestorPaths)(o.paths),s=a.map(m=>(0,wu.access)(t,m,o)),f=(0,yn.getInsertionOperations)(o.to,s,(0,yn.getRemovalOperations)(a));return(0,yn.applyOperations)(t,f,o)}});var Tn=Z(St=>{"use strict";h();v();Object.defineProperty(St,"__esModule",{value:!0});St.remove=Tu;St.removeWithPathTracking=Ou;var _n=br();function Tu(t,o){return Wo(t,o).node}function Ou(t,o){return Wo(t,o)}function Wo(t,o){let{paths:a,track:s}=o,f=(0,_n.getRemovalOperations)(a),m=s?(0,_n.transformPathsByOperations)(s,f):[];return{node:(0,_n.applyOperations)(t,f,o),paths:m}}});var kn=Z(On=>{"use strict";h();v();Object.defineProperty(On,"__esModule",{value:!0});On.replace=ku;var Ko=br();function ku(t,o){if(o.path.length===0)return o.node;let a=(0,Ko.getReplaceOperations)(o.path,o.node);return(0,Ko.applyOperations)(t,a,o)}});var bn=Z(Nt=>{"use strict";h();v();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.splice=bu;Nt.spliceWithPathTracking=Su;var xt=br();function bu(t,o){return Yo(t,o).node}function Su(t,o){return Yo(t,o)}function Yo(t,o){let{path:a,deleteCount:s=0,nodes:f,track:m}=o;if(a.length===0)throw new Error("Can't splice at the root");let g=xu(a,s),E=(0,xt.getInsertionOperations)(a,f,(0,xt.getRemovalOperations)(g)),_=m?(0,xt.transformPathsByOperations)(m,E):[];return{node:(0,xt.applyOperations)(t,E,o),paths:_}}function xu(t,o){let a=[],s=t.slice(0,-1),f=t[t.length-1];for(let m=0;m<o;m++)a.push(s.concat(f+m));return a}});var Nn=Z(xn=>{"use strict";h();v();Object.defineProperty(xn,"__esModule",{value:!0});xn.defineTree=Mu;var At=mt(),Go=on(),Nu=an(),sr=un(),Au=ln(),Vo=gn(),Zo=Ot(),Pu=En(),Ru=_t(),Xo=Tn(),Fu=kn(),Qo=bn(),Jo=dr(),Sn=class t{constructor(o,a){this.appliedOptions=a,this.getChildren=(s,f,m)=>this._getChildren(s,f,m),this.mergeOptions=s=>Object.assign(Object.assign(Object.assign({},this.baseOptions),this.appliedOptions),s),this.withOptions=s=>new t(this.baseOptions,Object.assign(Object.assign({},this.appliedOptions),s)),this.access=(s,f)=>(0,At.access)(s,f,this.mergeOptions({})),this.accessPath=(s,f)=>(0,At.accessPath)(s,f,this.mergeOptions({})),this.get=(s,f)=>(0,At.get)(s,f,this.mergeOptions({})),this.ancestors=(s,f)=>(0,At.ancestors)(s,f,this.mergeOptions({})),this.diagram=(s,f)=>typeof f=="function"?(0,Go.diagram)(s,this.mergeOptions({getLabel:f})):(0,Go.diagram)(s,this.mergeOptions(f)),this.find=(s,f)=>typeof f=="function"?(0,sr.find)(s,this.mergeOptions({predicate:f})):(0,sr.find)(s,this.mergeOptions(Object.assign({},f))),this.findAll=(s,f)=>typeof f=="function"?(0,sr.findAll)(s,this.mergeOptions({predicate:f})):(0,sr.findAll)(s,this.mergeOptions(Object.assign({},f))),this.findPath=(s,f)=>typeof f=="function"?(0,sr.findPath)(s,this.mergeOptions({predicate:f})):(0,sr.findPath)(s,this.mergeOptions(Object.assign({},f))),this.findAllPaths=(s,f)=>typeof f=="function"?(0,sr.findAllPaths)(s,this.mergeOptions({predicate:f})):(0,sr.findAllPaths)(s,this.mergeOptions(Object.assign({},f))),this.entries=s=>(0,Nu.entries)(s,this.mergeOptions({})),this.flat=s=>(0,Au.flat)(s,this.mergeOptions({})),this.reduce=(s,f,m)=>(0,Ru.reduce)(s,this.mergeOptions({nextResult:f,initialResult:m})),this.map=(s,f)=>(0,Zo.map)(s,this.mergeOptions({transform:f})),this.flatMap=(s,f)=>(0,Zo.flatMap)(s,this.mergeOptions({transform:f})),this.visit=(s,f)=>typeof f=="function"?(0,Jo.visit)(s,this.mergeOptions({onEnter:f})):(0,Jo.visit)(s,this.mergeOptions(Object.assign({},f))),this.insert=(s,f)=>(0,Vo.insert)(s,this.mergeOptions(f)),this.insertWithPathTracking=(s,f)=>(0,Vo.insertWithPathTracking)(s,this.mergeOptions(f)),this.remove=(s,f)=>(0,Xo.remove)(s,this.mergeOptions(f)),this.removeWithPathTracking=(s,f)=>(0,Xo.removeWithPathTracking)(s,this.mergeOptions(f)),this.move=(s,f)=>(0,Pu.move)(s,this.mergeOptions(f)),this.splice=(s,f)=>(0,Qo.splice)(s,this.mergeOptions(f)),this.spliceWithPathTracking=(s,f)=>(0,Qo.spliceWithPathTracking)(s,this.mergeOptions(f)),this.replace=(s,f)=>(0,Fu.replace)(s,this.mergeOptions(f)),this.baseOptions=typeof o=="function"?{getChildren:o}:o,this._getChildren=this.baseOptions.getChildren}};function Mu(t){return new Sn(t,{})}});var ri=Z(ei=>{"use strict";h();v();Object.defineProperty(ei,"__esModule",{value:!0})});var ni=Z(ti=>{"use strict";h();v();Object.defineProperty(ti,"__esModule",{value:!0})});var oi=Z(Pt=>{"use strict";h();v();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.withOptions=void 0;var Cu=Nn();Pt.withOptions=Cu.defineTree});var ii=Z(oe=>{"use strict";h();v();var Du=oe&&oe.__createBinding||(Object.create?function(t,o,a,s){s===void 0&&(s=a);var f=Object.getOwnPropertyDescriptor(o,a);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(t,s,f)}:function(t,o,a,s){s===void 0&&(s=a),t[s]=o[a]}),fe=oe&&oe.__exportStar||function(t,o){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&Du(o,t,a)};Object.defineProperty(oe,"__esModule",{value:!0});fe(mt(),oe);fe(wt(),oe);fe(Nn(),oe);fe(on(),oe);fe(an(),oe);fe(un(),oe);fe(ln(),oe);fe(ri(),oe);fe(gn(),oe);fe(Ot(),oe);fe(En(),oe);fe(ni(),oe);fe(_t(),oe);fe(Tn(),oe);fe(kn(),oe);fe(yt(),oe);fe(bn(),oe);fe(pn(),oe);fe(dr(),oe);fe(oi(),oe)});var Ti=Z(H=>{"use strict";h();v();var Fn=Symbol.for("react.transitional.element"),Lu=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Hu=Symbol.for("react.consumer"),Wu=Symbol.for("react.context"),Ku=Symbol.for("react.forward_ref"),Yu=Symbol.for("react.suspense"),Gu=Symbol.for("react.memo"),mi=Symbol.for("react.lazy"),li=Symbol.iterator;function Vu(t){return t===null||typeof t!="object"?null:(t=li&&t[li]||t["@@iterator"],typeof t=="function"?t:null)}var gi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yi=Object.assign,wi={};function xr(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}xr.prototype.isReactComponent={};xr.prototype.setState=function(t,o){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,o,"setState")};xr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ei(){}Ei.prototype=xr.prototype;function Mn(t,o,a){this.props=t,this.context=o,this.refs=wi,this.updater=a||gi}var Cn=Mn.prototype=new Ei;Cn.constructor=Mn;yi(Cn,xr.prototype);Cn.isPureReactComponent=!0;var di=Array.isArray,ae={H:null,A:null,T:null,S:null,V:null},_i=Object.prototype.hasOwnProperty;function Dn(t,o,a,s,f,m){return a=m.ref,{$$typeof:Fn,type:t,key:o,ref:a!==void 0?a:null,props:m}}function Zu(t,o){return Dn(t.type,o,void 0,void 0,void 0,t.props)}function In(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fn}function Xu(t){var o={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(a){return o[a]})}var pi=/\/+/g;function Rn(t,o){return typeof t=="object"&&t!==null&&t.key!=null?Xu(""+t.key):o.toString(36)}function hi(){}function Qu(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(hi,hi):(t.status="pending",t.then(function(o){t.status==="pending"&&(t.status="fulfilled",t.value=o)},function(o){t.status==="pending"&&(t.status="rejected",t.reason=o)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Sr(t,o,a,s,f){var m=typeof t;(m==="undefined"||m==="boolean")&&(t=null);var g=!1;if(t===null)g=!0;else switch(m){case"bigint":case"string":case"number":g=!0;break;case"object":switch(t.$$typeof){case Fn:case Lu:g=!0;break;case mi:return g=t._init,Sr(g(t._payload),o,a,s,f)}}if(g)return f=f(t),g=s===""?"."+Rn(t,0):s,di(f)?(a="",g!=null&&(a=g.replace(pi,"$&/")+"/"),Sr(f,o,a,"",function(N){return N})):f!=null&&(In(f)&&(f=Zu(f,a+(f.key==null||t&&t.key===f.key?"":(""+f.key).replace(pi,"$&/")+"/")+g)),o.push(f)),1;g=0;var E=s===""?".":s+":";if(di(t))for(var _=0;_<t.length;_++)s=t[_],m=E+Rn(s,_),g+=Sr(s,o,a,m,f);else if(_=Vu(t),typeof _=="function")for(t=_.call(t),_=0;!(s=t.next()).done;)s=s.value,m=E+Rn(s,_++),g+=Sr(s,o,a,m,f);else if(m==="object"){if(typeof t.then=="function")return Sr(Qu(t),o,a,s,f);throw o=String(t),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return g}function Rt(t,o,a){if(t==null)return t;var s=[],f=0;return Sr(t,s,"","",function(m){return o.call(a,m,f++)}),s}function Ju(t){if(t._status===-1){var o=t._result;o=o(),o.then(function(a){(t._status===0||t._status===-1)&&(t._status=1,t._result=a)},function(a){(t._status===0||t._status===-1)&&(t._status=2,t._result=a)}),t._status===-1&&(t._status=0,t._result=o)}if(t._status===1)return t._result.default;throw t._result}var vi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ec(){}H.Children={map:Rt,forEach:function(t,o,a){Rt(t,function(){o.apply(this,arguments)},a)},count:function(t){var o=0;return Rt(t,function(){o++}),o},toArray:function(t){return Rt(t,function(o){return o})||[]},only:function(t){if(!In(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};H.Component=xr;H.Fragment=Bu;H.Profiler=$u;H.PureComponent=Mn;H.StrictMode=qu;H.Suspense=Yu;H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae;H.__COMPILER_RUNTIME={__proto__:null,c:function(t){return ae.H.useMemoCache(t)}};H.cache=function(t){return function(){return t.apply(null,arguments)}};H.cloneElement=function(t,o,a){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=yi({},t.props),f=t.key,m=void 0;if(o!=null)for(g in o.ref!==void 0&&(m=void 0),o.key!==void 0&&(f=""+o.key),o)!_i.call(o,g)||g==="key"||g==="__self"||g==="__source"||g==="ref"&&o.ref===void 0||(s[g]=o[g]);var g=arguments.length-2;if(g===1)s.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];s.children=E}return Dn(t.type,f,void 0,void 0,m,s)};H.createContext=function(t){return t={$$typeof:Wu,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Hu,_context:t},t};H.createElement=function(t,o,a){var s,f={},m=null;if(o!=null)for(s in o.key!==void 0&&(m=""+o.key),o)_i.call(o,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(f[s]=o[s]);var g=arguments.length-2;if(g===1)f.children=a;else if(1<g){for(var E=Array(g),_=0;_<g;_++)E[_]=arguments[_+2];f.children=E}if(t&&t.defaultProps)for(s in g=t.defaultProps,g)f[s]===void 0&&(f[s]=g[s]);return Dn(t,m,void 0,void 0,null,f)};H.createRef=function(){return{current:null}};H.forwardRef=function(t){return{$$typeof:Ku,render:t}};H.isValidElement=In;H.lazy=function(t){return{$$typeof:mi,_payload:{_status:-1,_result:t},_init:Ju}};H.memo=function(t,o){return{$$typeof:Gu,type:t,compare:o===void 0?null:o}};H.startTransition=function(t){var o=ae.T,a={};ae.T=a;try{var s=t(),f=ae.S;f!==null&&f(a,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(ec,vi)}catch(m){vi(m)}finally{ae.T=o}};H.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()};H.use=function(t){return ae.H.use(t)};H.useActionState=function(t,o,a){return ae.H.useActionState(t,o,a)};H.useCallback=function(t,o){return ae.H.useCallback(t,o)};H.useContext=function(t){return ae.H.useContext(t)};H.useDebugValue=function(){};H.useDeferredValue=function(t,o){return ae.H.useDeferredValue(t,o)};H.useEffect=function(t,o,a){var s=ae.H;if(typeof a=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return s.useEffect(t,o)};H.useId=function(){return ae.H.useId()};H.useImperativeHandle=function(t,o,a){return ae.H.useImperativeHandle(t,o,a)};H.useInsertionEffect=function(t,o){return ae.H.useInsertionEffect(t,o)};H.useLayoutEffect=function(t,o){return ae.H.useLayoutEffect(t,o)};H.useMemo=function(t,o){return ae.H.useMemo(t,o)};H.useOptimistic=function(t,o){return ae.H.useOptimistic(t,o)};H.useReducer=function(t,o,a){return ae.H.useReducer(t,o,a)};H.useRef=function(t){return ae.H.useRef(t)};H.useState=function(t){return ae.H.useState(t)};H.useSyncExternalStore=function(t,o,a){return ae.H.useSyncExternalStore(t,o,a)};H.useTransition=function(){return ae.H.useTransition()};H.version="19.1.2"});var Oi=Z((B,Ft)=>{"use strict";h();v();process.env.NODE_ENV!=="production"&&function(){function t(c,y){Object.defineProperty(s.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function o(c){return c===null||typeof c!="object"?null:(c=cr&&c[cr]||c["@@iterator"],typeof c=="function"?c:null)}function a(c,y){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var b=c+"."+y;pr[b]||(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.",y,c),pr[b]=!0)}function s(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function f(){}function m(c,y,b){this.props=c,this.context=y,this.refs=Nr,this.updater=b||qr}function g(c){return""+c}function E(c){try{g(c);var y=!1}catch{y=!0}if(y){y=console;var b=y.error,x=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return b.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",x),g(c)}}function _(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Mt?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case ar:return"Fragment";case Pe:return"Profiler";case Ge:return"StrictMode";case er:return"Suspense";case Re:return"SuspenseList";case rr:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case he:return"Portal";case Be:return(c.displayName||"Context")+".Provider";case Je:return(c._context.displayName||"Context")+".Consumer";case ur:var y=c.render;return c=c.displayName,c||(c=y.displayName||y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Fe:return y=c.displayName||null,y!==null?y:_(c.type)||"Memo";case qe:y=c._payload,c=c._init;try{return _(c(y))}catch{}}return null}function N(c){if(c===ar)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===qe)return"<...>";try{var y=_(c);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function M(){var c=W.A;return c===null?null:c.getOwner()}function j(){return Error("react-stack-top-frame")}function ee(c){if(fr.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function te(c,y){function b(){Wr||(Wr=!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)",y))}b.isReactWarning=!0,Object.defineProperty(c,"key",{get:b,configurable:!0})}function P(){var c=_(this.type);return Kr[c]||(Kr[c]=!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.")),c=this.props.ref,c!==void 0?c:null}function Y(c,y,b,x,R,z,U,A){return b=z.ref,c={$$typeof:Ee,type:c,key:y,props:z,_owner:R},(b!==void 0?b:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function X(c,y){return y=Y(c.type,y,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(y._store.validated=c._store.validated),y}function Q(c){return typeof c=="object"&&c!==null&&c.$$typeof===Ee}function ye(c){var y={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(b){return y[b]})}function me(c,y){return typeof c=="object"&&c!==null&&c.key!=null?(E(c.key),ye(""+c.key)):y.toString(36)}function xe(){}function Ne(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(xe,xe):(c.status="pending",c.then(function(y){c.status==="pending"&&(c.status="fulfilled",c.value=y)},function(y){c.status==="pending"&&(c.status="rejected",c.reason=y)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function de(c,y,b,x,R){var z=typeof c;(z==="undefined"||z==="boolean")&&(c=null);var U=!1;if(c===null)U=!0;else switch(z){case"bigint":case"string":case"number":U=!0;break;case"object":switch(c.$$typeof){case Ee:case he:U=!0;break;case qe:return U=c._init,de(U(c._payload),y,b,x,R)}}if(U){U=c,R=R(U);var A=x===""?"."+me(U,0):x;return Hr(R)?(b="",A!=null&&(b=A.replace(Gr,"$&/")+"/"),de(R,y,b,"",function($e){return $e})):R!=null&&(Q(R)&&(R.key!=null&&(U&&U.key===R.key||E(R.key)),b=X(R,b+(R.key==null||U&&U.key===R.key?"":(""+R.key).replace(Gr,"$&/")+"/")+A),x!==""&&U!=null&&Q(U)&&U.key==null&&U._store&&!U._store.validated&&(b._store.validated=2),R=b),y.push(R)),1}if(U=0,A=x===""?".":x+":",Hr(c))for(var K=0;K<c.length;K++)x=c[K],z=A+me(x,K),U+=de(x,y,b,z,R);else if(K=o(c),typeof K=="function")for(K===c.entries&&(Rr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rr=!0),c=K.call(c),K=0;!(x=c.next()).done;)x=x.value,z=A+me(x,K++),U+=de(x,y,b,z,R);else if(z==="object"){if(typeof c.then=="function")return de(Ne(c),y,b,x,R);throw y=String(c),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return U}function ke(c,y,b){if(c==null)return c;var x=[],R=0;return de(c,x,"","",function(z){return y.call(b,z,R++)}),x}function ie(c){if(c._status===-1){var y=c._result;y=y(),y.then(function(b){(c._status===0||c._status===-1)&&(c._status=1,c._result=b)},function(b){(c._status===0||c._status===-1)&&(c._status=2,c._result=b)}),c._status===-1&&(c._status=0,c._result=y)}if(c._status===1)return y=c._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
9
9
|
|
|
10
10
|
Your code should look like:
|
|
11
11
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -17,7 +17,7 @@ Your code should look like:
|
|
|
17
17
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
18
18
|
2. You might be breaking the Rules of Hooks
|
|
19
19
|
3. You might have more than one copy of React in the same app
|
|
20
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function Ae(){}function pe(c){if(vr===null)try{var y=("require"+Math.random()).slice(0,7);vr=(Ft&&Ft[y]).call(Ft,"timers").setImmediate}catch{vr=function(x){G===!1&&(G=!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 R=new MessageChannel;R.port1.onmessage=x,R.port2.postMessage(void 0)}}return vr(c)}function be(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function S(c,y){y!==lr-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. "),lr=y}function re(c,y,b){var x=W.actQueue;if(x!==null)if(x.length!==0)try{Qe(x),pe(function(){return re(c,y,b)});return}catch(R){W.thrownErrors.push(R)}else W.actQueue=null;0<W.thrownErrors.length?(x=be(W.thrownErrors),W.thrownErrors.length=0,b(x)):y(c)}function Qe(c){if(!mr){mr=!0;var y=0;try{for(;y<c.length;y++){var b=c[y];do{W.didUsePromise=!1;var x=b(!1);if(x!==null){if(W.didUsePromise){c[y]=b,c.splice(0,y);return}b=x}else break}while(!0)}c.length=0}catch(R){c.splice(0,y+1),W.thrownErrors.push(R)}finally{mr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ee=Symbol.for("react.transitional.element"),he=Symbol.for("react.portal"),ar=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler");Symbol.for("react.provider");var Je=Symbol.for("react.consumer"),Be=Symbol.for("react.context"),ur=Symbol.for("react.forward_ref"),er=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),rr=Symbol.for("react.activity"),cr=Symbol.iterator,pr={},qr={isMounted:function(){return!1},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c){a(c,"replaceState")},enqueueSetState:function(c){a(c,"setState")}},$r=Object.assign,Nr={};Object.freeze(Nr),s.prototype.isReactComponent={},s.prototype.setState=function(c,y){if(typeof c!="object"&&typeof c!="function"&&c!=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,c,y,"setState")},s.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var _e={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)."]},hr;for(hr in _e)_e.hasOwnProperty(hr)&&t(hr,_e[hr]);f.prototype=s.prototype,_e=m.prototype=new f,_e.constructor=m,$r(_e,s.prototype),_e.isPureReactComponent=!0;var Hr=Array.isArray,Mt=Symbol.for("react.client.reference"),W={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},fr=Object.prototype.hasOwnProperty,Ar=console.createTask?console.createTask:function(){return null};_e={"react-stack-bottom-frame":function(c){return c()}};var Wr,Pr,Kr={},Yr=_e["react-stack-bottom-frame"].bind(_e,j)(),Ct=Ar(N(j)),Rr=!1,Gr=/\/+/g,Vr=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},G=!1,vr=null,lr=0,De=!1,mr=!1,Ve=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:pe;_e=Object.freeze({__proto__:null,c:function(c){return I().useMemoCache(c)}}),B.Children={map:ke,forEach:function(c,y,b){ke(c,function(){y.apply(this,arguments)},b)},count:function(c){var y=0;return ke(c,function(){y++}),y},toArray:function(c){return ke(c,function(y){return y})||[]},only:function(c){if(!Q(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},B.Component=s,B.Fragment=ar,B.Profiler=Pe,B.PureComponent=m,B.StrictMode=Ge,B.Suspense=er,B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,B.__COMPILER_RUNTIME=_e,B.act=function(c){var y=W.actQueue,b=lr;lr++;var x=W.actQueue=y!==null?y:[],R=!1;try{var z=c()}catch(K){W.thrownErrors.push(K)}if(0<W.thrownErrors.length)throw S(y,b),c=be(W.thrownErrors),W.thrownErrors.length=0,c;if(z!==null&&typeof z=="object"&&typeof z.then=="function"){var U=z;return Ve(function(){R||De||(De=!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(K,$e){R=!0,U.then(function(tr){if(S(y,b),b===0){try{Qe(x),pe(function(){return re(tr,K,$e)})}catch(Dt){W.thrownErrors.push(Dt)}if(0<W.thrownErrors.length){var Zr=be(W.thrownErrors);W.thrownErrors.length=0,$e(Zr)}}else K(tr)},function(tr){S(y,b),0<W.thrownErrors.length&&(tr=be(W.thrownErrors),W.thrownErrors.length=0),$e(tr)})}}}var A=z;if(S(y,b),b===0&&(Qe(x),x.length!==0&&Ve(function(){R||De||(De=!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(() => ...)"))}),W.actQueue=null),0<W.thrownErrors.length)throw c=be(W.thrownErrors),W.thrownErrors.length=0,c;return{then:function(K,$e){R=!0,b===0?(W.actQueue=x,pe(function(){return re(A,K,$e)})):K(A)}}},B.cache=function(c){return function(){return c.apply(null,arguments)}},B.captureOwnerStack=function(){var c=W.getCurrentStack;return c===null?null:c()},B.cloneElement=function(c,y,b){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var x=$r({},c.props),R=c.key,z=c._owner;if(y!=null){var U;e:{if(fr.call(y,"ref")&&(U=Object.getOwnPropertyDescriptor(y,"ref").get)&&U.isReactWarning){U=!1;break e}U=y.ref!==void 0}U&&(z=M()),ee(y)&&(E(y.key),R=""+y.key);for(A in y)!fr.call(y,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&y.ref===void 0||(x[A]=y[A])}var A=arguments.length-2;if(A===1)x.children=b;else if(1<A){U=Array(A);for(var K=0;K<A;K++)U[K]=arguments[K+2];x.children=U}for(x=Y(c.type,R,void 0,void 0,z,x,c._debugStack,c._debugTask),R=2;R<arguments.length;R++)z=arguments[R],Q(z)&&z._store&&(z._store.validated=1);return x},B.createContext=function(c){return c={$$typeof:Be,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:Je,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},B.createElement=function(c,y,b){for(var x=2;x<arguments.length;x++){var R=arguments[x];Q(R)&&R._store&&(R._store.validated=1)}if(x={},R=null,y!=null)for(K in Pr||!("__self"in y)||"key"in y||(Pr=!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")),ee(y)&&(E(y.key),R=""+y.key),y)fr.call(y,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(x[K]=y[K]);var z=arguments.length-2;if(z===1)x.children=b;else if(1<z){for(var U=Array(z),A=0;A<z;A++)U[A]=arguments[A+2];Object.freeze&&Object.freeze(U),x.children=U}if(c&&c.defaultProps)for(K in z=c.defaultProps,z)x[K]===void 0&&(x[K]=z[K]);R&&te(x,typeof c=="function"?c.displayName||c.name||"Unknown":c);var K=1e4>W.recentlyCreatedOwnerStacks++;return Y(c,R,void 0,void 0,M(),x,K?Error("react-stack-top-frame"):Yr,K?Ar(N(c)):Ct)},B.createRef=function(){var c={current:null};return Object.seal(c),c},B.forwardRef=function(c){c!=null&&c.$$typeof===Fe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:ur,render:c},b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.isValidElement=Q,B.lazy=function(c){return{$$typeof:qe,_payload:{_status:-1,_result:c},_init:ie}},B.memo=function(c,y){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),y={$$typeof:Fe,type:c,compare:y===void 0?null:y};var b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.startTransition=function(c){var y=W.T,b={};W.T=b,b._updatedFibers=new Set;try{var x=c(),R=W.S;R!==null&&R(b,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(Ae,Vr)}catch(z){Vr(z)}finally{y===null&&b._updatedFibers&&(c=b._updatedFibers.size,b._updatedFibers.clear(),10<c&&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.")),W.T=y}},B.unstable_useCacheRefresh=function(){return I().useCacheRefresh()},B.use=function(c){return I().use(c)},B.useActionState=function(c,y,b){return I().useActionState(c,y,b)},B.useCallback=function(c,y){return I().useCallback(c,y)},B.useContext=function(c){var y=I();return c.$$typeof===Je&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(c)},B.useDebugValue=function(c,y){return I().useDebugValue(c,y)},B.useDeferredValue=function(c,y){return I().useDeferredValue(c,y)},B.useEffect=function(c,y,b){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var x=I();if(typeof b=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(c,y)},B.useId=function(){return I().useId()},B.useImperativeHandle=function(c,y,b){return I().useImperativeHandle(c,y,b)},B.useInsertionEffect=function(c,y){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useInsertionEffect(c,y)},B.useLayoutEffect=function(c,y){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useLayoutEffect(c,y)},B.useMemo=function(c,y){return I().useMemo(c,y)},B.useOptimistic=function(c,y){return I().useOptimistic(c,y)},B.useReducer=function(c,y,b){return I().useReducer(c,y,b)},B.useRef=function(c){return I().useRef(c)},B.useState=function(c){return I().useState(c)},B.useSyncExternalStore=function(c,y,b){return I().useSyncExternalStore(c,y,b)},B.useTransition=function(){return I().useTransition()},B.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var zn=Z((Pv,jn)=>{"use strict";h();v();process.env.NODE_ENV==="production"?jn.exports=Ti():jn.exports=Oi()});var tc={};js(tc,{default:()=>bi,resolveFiles:()=>ki});module.exports=zs(tc);h();v();h();v();h();v();h();v();h();v();var Us=yr(eo());h();v();h();v();h();v();var no=require("module"),Ls=(0,no.createRequire)("/"),et,Bs=";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{et=Ls("worker_threads").Worker}catch{}var qs=et?function(t,o,a,s,f){var m=!1,g=new et(t+Bs,{eval:!0}).on("error",function(E){return f(E,null)}).on("message",function(E){return f(null,E)}).on("exit",function(E){E&&!m&&f(new Error("exited with code "+E),null)});return g.postMessage(a,s),g.terminate=function(){return m=!0,et.prototype.terminate.call(g)},g}:function(t,o,a,s,f){setImmediate(function(){return f(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var m=function(){};return{terminate:m,postMessage:m}},we=Uint8Array,nr=Uint16Array,$t=Uint32Array,Ht=new we([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]),Wt=new we([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]),oo=new we([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),io=function(t,o){for(var a=new nr(31),s=0;s<31;++s)a[s]=o+=1<<t[s-1];for(var f=new $t(a[30]),s=1;s<30;++s)for(var m=a[s];m<a[s+1];++m)f[m]=m-a[s]<<5|s;return[a,f]},so=io(Ht,2),Kt=so[0],$s=so[1];Kt[28]=258,$s[258]=28;var ao=io(Wt,0),uo=ao[0],vc=ao[1],nt=new nr(32768);for(ne=0;ne<32768;++ne)Xe=(ne&43690)>>>1|(ne&21845)<<1,Xe=(Xe&52428)>>>2|(Xe&13107)<<2,Xe=(Xe&61680)>>>4|(Xe&3855)<<4,nt[ne]=((Xe&65280)>>>8|(Xe&255)<<8)>>>1;var Xe,ne,wr=function(t,o,a){for(var s=t.length,f=0,m=new nr(o);f<s;++f)t[f]&&++m[t[f]-1];var g=new nr(o);for(f=0;f<o;++f)g[f]=g[f-1]+m[f-1]<<1;var E;if(a){E=new nr(1<<o);var _=15-o;for(f=0;f<s;++f)if(t[f])for(var N=f<<4|t[f],M=o-t[f],j=g[t[f]-1]++<<M,ee=j|(1<<M)-1;j<=ee;++j)E[nt[j]>>>_]=N}else for(E=new nr(s),f=0;f<s;++f)t[f]&&(E[f]=nt[g[t[f]-1]++]>>>15-t[f]);return E},jr=new we(288);for(ne=0;ne<144;++ne)jr[ne]=8;var ne;for(ne=144;ne<256;++ne)jr[ne]=9;var ne;for(ne=256;ne<280;++ne)jr[ne]=7;var ne;for(ne=280;ne<288;++ne)jr[ne]=8;var ne,co=new we(32);for(ne=0;ne<32;++ne)co[ne]=5;var ne;var fo=wr(jr,9,1);var lo=wr(co,5,1),rt=function(t){for(var o=t[0],a=1;a<t.length;++a)t[a]>o&&(o=t[a]);return o},Me=function(t,o,a){var s=o/8|0;return(t[s]|t[s+1]<<8)>>(o&7)&a},tt=function(t,o){var a=o/8|0;return(t[a]|t[a+1]<<8|t[a+2]<<16)>>(o&7)},po=function(t){return(t+7)/8|0},ot=function(t,o,a){(o==null||o<0)&&(o=0),(a==null||a>t.length)&&(a=t.length);var s=new(t.BYTES_PER_ELEMENT==2?nr:t.BYTES_PER_ELEMENT==4?$t:we)(a-o);return s.set(t.subarray(o,a)),s};var ho=["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"],Te=function(t,o,a){var s=new Error(o||ho[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,Te),!a)throw s;return s},vo=function(t,o,a){var s=t.length;if(!s||a&&a.f&&!a.l)return o||new we(0);var f=!o||a,m=!a||a.i;a||(a={}),o||(o=new we(s*3));var g=function(Fe){var qe=o.length;if(Fe>qe){var rr=new we(Math.max(qe*2,Fe));rr.set(o),o=rr}},E=a.f||0,_=a.p||0,N=a.b||0,M=a.l,j=a.d,ee=a.m,te=a.n,P=s*8;do{if(!M){E=Me(t,_,1);var Y=Me(t,_+1,3);if(_+=3,Y)if(Y==1)M=fo,j=lo,ee=9,te=5;else if(Y==2){var me=Me(t,_,31)+257,xe=Me(t,_+10,15)+4,Ne=me+Me(t,_+5,31)+1;_+=14;for(var de=new we(Ne),ke=new we(19),ie=0;ie<xe;++ie)ke[oo[ie]]=Me(t,_+ie*3,7);_+=xe*3;for(var I=rt(ke),Ae=(1<<I)-1,pe=wr(ke,I,1),ie=0;ie<Ne;){var be=pe[Me(t,_,Ae)];_+=be&15;var X=be>>>4;if(X<16)de[ie++]=X;else{var S=0,re=0;for(X==16?(re=3+Me(t,_,3),_+=2,S=de[ie-1]):X==17?(re=3+Me(t,_,7),_+=3):X==18&&(re=11+Me(t,_,127),_+=7);re--;)de[ie++]=S}}var Qe=de.subarray(0,me),Ee=de.subarray(me);ee=rt(Qe),te=rt(Ee),M=wr(Qe,ee,1),j=wr(Ee,te,1)}else Te(1);else{var X=po(_)+4,Q=t[X-4]|t[X-3]<<8,ye=X+Q;if(ye>s){m&&Te(0);break}f&&g(N+Q),o.set(t.subarray(X,ye),N),a.b=N+=Q,a.p=_=ye*8,a.f=E;continue}if(_>P){m&&Te(0);break}}f&&g(N+131072);for(var he=(1<<ee)-1,ar=(1<<te)-1,Ge=_;;Ge=_){var S=M[tt(t,_)&he],Pe=S>>>4;if(_+=S&15,_>P){m&&Te(0);break}if(S||Te(2),Pe<256)o[N++]=Pe;else if(Pe==256){Ge=_,M=null;break}else{var Je=Pe-254;if(Pe>264){var ie=Pe-257,Be=Ht[ie];Je=Me(t,_,(1<<Be)-1)+Kt[ie],_+=Be}var ur=j[tt(t,_)&ar],er=ur>>>4;ur||Te(3),_+=ur&15;var Ee=uo[er];if(er>3){var Be=Wt[er];Ee+=tt(t,_)&(1<<Be)-1,_+=Be}if(_>P){m&&Te(0);break}f&&g(N+131072);for(var Re=N+Je;N<Re;N+=4)o[N]=o[N-Ee],o[N+1]=o[N+1-Ee],o[N+2]=o[N+2-Ee],o[N+3]=o[N+3-Ee];N=Re}}a.l=M,a.p=Ge,a.b=N,a.f=E,M&&(E=1,a.m=ee,a.d=j,a.n=te)}while(!E);return N==o.length?o:ot(o,0,N)};var Hs=new we(0);var Ws=function(t,o){var a={};for(var s in t)a[s]=t[s];for(var s in o)a[s]=o[s];return a},ro=function(t,o,a){for(var s=t(),f=t.toString(),m=f.slice(f.indexOf("[")+1,f.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<s.length;++g){var E=s[g],_=m[g];if(typeof E=="function"){o+=";"+_+"=";var N=E.toString();if(E.prototype)if(N.indexOf("[native code]")!=-1){var M=N.indexOf(" ",8)+1;o+=N.slice(M,N.indexOf("(",M))}else{o+=N;for(var j in E.prototype)o+=";"+_+".prototype."+j+"="+E.prototype[j].toString()}else o+=N}else a[_]=E}return[o,a]},Jr=[],Ks=function(t){var o=[];for(var a in t)t[a].buffer&&o.push((t[a]=new t[a].constructor(t[a])).buffer);return o},Ys=function(t,o,a,s){var f;if(!Jr[a]){for(var m="",g={},E=t.length-1,_=0;_<E;++_)f=ro(t[_],m,g),m=f[0],g=f[1];Jr[a]=ro(t[E],m,g)}var N=Ws({},Jr[a][1]);return qs(Jr[a][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,N,Ks(N),s)},Gs=function(){return[we,nr,$t,Ht,Wt,oo,Kt,uo,fo,lo,nt,ho,wr,rt,Me,tt,po,ot,Te,vo,Yt,mo,go]};var mo=function(t){return postMessage(t,[t.buffer])},go=function(t){return t&&t.size&&new we(t.size)},Vs=function(t,o,a,s,f,m){var g=Ys(a,s,f,function(E,_){g.terminate(),m(E,_)});return g.postMessage([t,o],o.consume?[t.buffer]:[]),function(){g.terminate()}};var We=function(t,o){return t[o]|t[o+1]<<8},Ue=function(t,o){return(t[o]|t[o+1]<<8|t[o+2]<<16|t[o+3]<<24)>>>0},Bt=function(t,o){return Ue(t,o)+Ue(t,o+4)*4294967296};function Zs(t,o,a){return a||(a=o,o={}),typeof a!="function"&&Te(7),Vs(t,o,[Gs],function(s){return mo(Yt(s.data[0],go(s.data[1])))},1,a)}function Yt(t,o){return vo(t,o)}var qt=typeof TextDecoder<"u"&&new TextDecoder,Xs=0;try{qt.decode(Hs,{stream:!0}),Xs=1}catch{}var Qs=function(t){for(var o="",a=0;;){var s=t[a++],f=(s>127)+(s>223)+(s>239);if(a+f>t.length)return[o,ot(t,a-1)];f?f==3?(s=((s&15)<<18|(t[a++]&63)<<12|(t[a++]&63)<<6|t[a++]&63)-65536,o+=String.fromCharCode(55296|s>>10,56320|s&1023)):f&1?o+=String.fromCharCode((s&31)<<6|t[a++]&63):o+=String.fromCharCode((s&15)<<12|(t[a++]&63)<<6|t[a++]&63):o+=String.fromCharCode(s)}};function Js(t,o){if(o){for(var a="",s=0;s<t.length;s+=16384)a+=String.fromCharCode.apply(null,t.subarray(s,s+16384));return a}else{if(qt)return qt.decode(t);var f=Qs(t),m=f[0],g=f[1];return g.length&&Te(8),m}}var ea=function(t,o){return o+30+We(t,o+26)+We(t,o+28)},ra=function(t,o,a){var s=We(t,o+28),f=Js(t.subarray(o+46,o+46+s),!(We(t,o+8)&2048)),m=o+46+s,g=Ue(t,o+20),E=a&&g==4294967295?ta(t,m):[g,Ue(t,o+24),Ue(t,o+42)],_=E[0],N=E[1],M=E[2];return[We(t,o+10),_,N,f,m+We(t,o+30)+We(t,o+32),M]},ta=function(t,o){for(;We(t,o)!=1;o+=4+We(t,o+2));return[Bt(t,o+12),Bt(t,o+4),Bt(t,o+20)]};var to=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function yo(t,o,a){a||(a=o,o={}),typeof a!="function"&&Te(7);var s=[],f=function(){for(var X=0;X<s.length;++X)s[X]()},m={},g=function(X,Q){to(function(){a(X,Q)})};to(function(){g=a});for(var E=t.length-22;Ue(t,E)!=101010256;--E)if(!E||t.length-E>65558)return g(Te(13,0,1),null),f;var _=We(t,E+8);if(_){var N=_,M=Ue(t,E+16),j=M==4294967295||N==65535;if(j){var ee=Ue(t,E-12);j=Ue(t,ee)==101075792,j&&(N=_=Ue(t,ee+32),M=Ue(t,ee+48))}for(var te=o&&o.filter,P=function(X){var Q=ra(t,M,j),ye=Q[0],me=Q[1],xe=Q[2],Ne=Q[3],de=Q[4],ke=Q[5],ie=ea(t,ke);M=de;var I=function(pe,be){pe?(f(),g(pe,null)):(be&&(m[Ne]=be),--_||g(null,m))};if(!te||te({name:Ne,size:me,originalSize:xe,compression:ye}))if(!ye)I(null,ot(t,ie,ie+me));else if(ye==8){var Ae=t.subarray(ie,ie+me);if(me<32e4)try{I(null,Yt(Ae,new we(xe)))}catch(pe){I(pe,null)}else s.push(Zs(Ae,{size:xe},I))}else I(Te(14,"unknown compression type "+ye,1),null);else I(null,null)},Y=0;Y<N;++Y)P(Y)}else g(null,{});return f}function it(t){return new Promise((o,a)=>{yo(t,(s,f)=>{s?a(s):o(f)})})}h();v();var si=yr(Xt()),ai=yr(ii()),Iu=(0,ai.defineTree)({getChildren:si.Entries.getEntries});h();v();var Nl=Uint8Array.from([80,75]),Al=Uint8Array.from([55,122,188,175,39,28]);h();v();var ui=yr(Xt());async function An(t){let{gistId:o,fetch:a=globalThis.fetch}=t,s=await a(`https://api.github.com/gists/${o}`);if(!s.ok)throw new Error(`Failed to fetch gist: ${s.statusText}`);let f=await s.json();if(!f.files)throw new Error("No files found in gist");let m={};for(let[g,E]of Object.entries(f.files))if(typeof E=="object"&&E!==null){let _="content"in E?String(E.content):"";m[g]={kind:"file",content:_,encoding:"utf-8"}}return m}async function Pn(t){let{owner:o,name:a,ref:s="main",path:f,fetch:m=globalThis.fetch,format:g="zip",debug:E=!1}=t,_=`https://www.noya.io/packager/github/download/${o}/${a}/${s}${g==="files"?"":`.${g}`}`,N=await m(_,{headers:{Accept:g==="files"?"application/json":g==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!N.ok)throw new Error(`Failed to fetch repository: ${N.statusText}`);let M=await N.arrayBuffer(),j=new Uint8Array(M);switch(g){case"files":return JSON.parse(new TextDecoder().decode(j));case"zip":return ju({bytes:j,path:f,debug:E});case"tar":throw new Error("Tar format not supported")}}async function ju({bytes:t,path:o,debug:a}){let s=await it(t),f={},m=Object.entries(s);if(m.length===0)throw new Error("No files found in zip");let g=m[0][0],E=o?`${g}${o}/`:g;for(let[_,N]of m)if(_.startsWith(E)&&!_.endsWith("/")){let M=o?_.slice(E.length):_.slice(g.length);if(N instanceof Uint8Array)try{f[M]={kind:"file",content:new TextDecoder().decode(N),encoding:"utf-8"}}catch{a&&console.info(`Skipping binary file: ${M}`)}}if(Object.keys(f).length===0&&o)throw new Error(`No files found in path: ${o}`);return f}h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();function ci(t){return Object.fromEntries(Object.entries(t).map(([o,a])=>[a,o]))}var Uu={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},jd=ci(Uu);h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Lp=Symbol("object"),Bp=Symbol("array"),qp=Symbol("key"),$p=Symbol("end"),Hp=Symbol("primitive"),Wp=Symbol("argsep");h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Un=yr(zn());h();v();var Ln=yr(zn());h();v();async function ki(t){if(t.location==="repository"&&t.repository?.owner&&t.repository?.name){console.info("Loading GitHub repository files",t.repository);let o=await Pn({owner:t.repository.owner,name:t.repository.name,ref:t.repository.ref,path:t.repository.path,fetch:t.fetch,debug:t.debug});if(t.debug){let a=t.repository.path?` (path: ${t.repository.path})`:"";console.info(`Loaded ${Object.keys(o).length} files from repository ${t.repository.owner}/${t.repository.name}${a}`)}return o}if(t.location==="gist"&&t.gist?.id){console.info("Loading GitHub gist files",t.gist);let o=await An({gistId:t.gist.id,fetch:t.fetch});return t.debug&&console.info(`Loaded ${Object.keys(o).length} files from gist ${t.gist.id}`),o}return t.files??{}}async function bi(t,{state:o}){let a=await ki(o);return{...o,location:"files",files:a}}0&&(module.exports={resolveFiles});
|
|
20
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function Ae(){}function pe(c){if(vr===null)try{var y=("require"+Math.random()).slice(0,7);vr=(Ft&&Ft[y]).call(Ft,"timers").setImmediate}catch{vr=function(x){G===!1&&(G=!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 R=new MessageChannel;R.port1.onmessage=x,R.port2.postMessage(void 0)}}return vr(c)}function be(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function S(c,y){y!==lr-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. "),lr=y}function re(c,y,b){var x=W.actQueue;if(x!==null)if(x.length!==0)try{Qe(x),pe(function(){return re(c,y,b)});return}catch(R){W.thrownErrors.push(R)}else W.actQueue=null;0<W.thrownErrors.length?(x=be(W.thrownErrors),W.thrownErrors.length=0,b(x)):y(c)}function Qe(c){if(!mr){mr=!0;var y=0;try{for(;y<c.length;y++){var b=c[y];do{W.didUsePromise=!1;var x=b(!1);if(x!==null){if(W.didUsePromise){c[y]=b,c.splice(0,y);return}b=x}else break}while(!0)}c.length=0}catch(R){c.splice(0,y+1),W.thrownErrors.push(R)}finally{mr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ee=Symbol.for("react.transitional.element"),he=Symbol.for("react.portal"),ar=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler");Symbol.for("react.provider");var Je=Symbol.for("react.consumer"),Be=Symbol.for("react.context"),ur=Symbol.for("react.forward_ref"),er=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),rr=Symbol.for("react.activity"),cr=Symbol.iterator,pr={},qr={isMounted:function(){return!1},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c){a(c,"replaceState")},enqueueSetState:function(c){a(c,"setState")}},$r=Object.assign,Nr={};Object.freeze(Nr),s.prototype.isReactComponent={},s.prototype.setState=function(c,y){if(typeof c!="object"&&typeof c!="function"&&c!=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,c,y,"setState")},s.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var _e={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)."]},hr;for(hr in _e)_e.hasOwnProperty(hr)&&t(hr,_e[hr]);f.prototype=s.prototype,_e=m.prototype=new f,_e.constructor=m,$r(_e,s.prototype),_e.isPureReactComponent=!0;var Hr=Array.isArray,Mt=Symbol.for("react.client.reference"),W={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},fr=Object.prototype.hasOwnProperty,Ar=console.createTask?console.createTask:function(){return null};_e={react_stack_bottom_frame:function(c){return c()}};var Wr,Pr,Kr={},Yr=_e.react_stack_bottom_frame.bind(_e,j)(),Ct=Ar(N(j)),Rr=!1,Gr=/\/+/g,Vr=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},G=!1,vr=null,lr=0,De=!1,mr=!1,Ve=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:pe;_e=Object.freeze({__proto__:null,c:function(c){return I().useMemoCache(c)}}),B.Children={map:ke,forEach:function(c,y,b){ke(c,function(){y.apply(this,arguments)},b)},count:function(c){var y=0;return ke(c,function(){y++}),y},toArray:function(c){return ke(c,function(y){return y})||[]},only:function(c){if(!Q(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},B.Component=s,B.Fragment=ar,B.Profiler=Pe,B.PureComponent=m,B.StrictMode=Ge,B.Suspense=er,B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,B.__COMPILER_RUNTIME=_e,B.act=function(c){var y=W.actQueue,b=lr;lr++;var x=W.actQueue=y!==null?y:[],R=!1;try{var z=c()}catch(K){W.thrownErrors.push(K)}if(0<W.thrownErrors.length)throw S(y,b),c=be(W.thrownErrors),W.thrownErrors.length=0,c;if(z!==null&&typeof z=="object"&&typeof z.then=="function"){var U=z;return Ve(function(){R||De||(De=!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(K,$e){R=!0,U.then(function(tr){if(S(y,b),b===0){try{Qe(x),pe(function(){return re(tr,K,$e)})}catch(Dt){W.thrownErrors.push(Dt)}if(0<W.thrownErrors.length){var Zr=be(W.thrownErrors);W.thrownErrors.length=0,$e(Zr)}}else K(tr)},function(tr){S(y,b),0<W.thrownErrors.length&&(tr=be(W.thrownErrors),W.thrownErrors.length=0),$e(tr)})}}}var A=z;if(S(y,b),b===0&&(Qe(x),x.length!==0&&Ve(function(){R||De||(De=!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(() => ...)"))}),W.actQueue=null),0<W.thrownErrors.length)throw c=be(W.thrownErrors),W.thrownErrors.length=0,c;return{then:function(K,$e){R=!0,b===0?(W.actQueue=x,pe(function(){return re(A,K,$e)})):K(A)}}},B.cache=function(c){return function(){return c.apply(null,arguments)}},B.captureOwnerStack=function(){var c=W.getCurrentStack;return c===null?null:c()},B.cloneElement=function(c,y,b){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var x=$r({},c.props),R=c.key,z=c._owner;if(y!=null){var U;e:{if(fr.call(y,"ref")&&(U=Object.getOwnPropertyDescriptor(y,"ref").get)&&U.isReactWarning){U=!1;break e}U=y.ref!==void 0}U&&(z=M()),ee(y)&&(E(y.key),R=""+y.key);for(A in y)!fr.call(y,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&y.ref===void 0||(x[A]=y[A])}var A=arguments.length-2;if(A===1)x.children=b;else if(1<A){U=Array(A);for(var K=0;K<A;K++)U[K]=arguments[K+2];x.children=U}for(x=Y(c.type,R,void 0,void 0,z,x,c._debugStack,c._debugTask),R=2;R<arguments.length;R++)z=arguments[R],Q(z)&&z._store&&(z._store.validated=1);return x},B.createContext=function(c){return c={$$typeof:Be,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:Je,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},B.createElement=function(c,y,b){for(var x=2;x<arguments.length;x++){var R=arguments[x];Q(R)&&R._store&&(R._store.validated=1)}if(x={},R=null,y!=null)for(K in Pr||!("__self"in y)||"key"in y||(Pr=!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")),ee(y)&&(E(y.key),R=""+y.key),y)fr.call(y,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(x[K]=y[K]);var z=arguments.length-2;if(z===1)x.children=b;else if(1<z){for(var U=Array(z),A=0;A<z;A++)U[A]=arguments[A+2];Object.freeze&&Object.freeze(U),x.children=U}if(c&&c.defaultProps)for(K in z=c.defaultProps,z)x[K]===void 0&&(x[K]=z[K]);R&&te(x,typeof c=="function"?c.displayName||c.name||"Unknown":c);var K=1e4>W.recentlyCreatedOwnerStacks++;return Y(c,R,void 0,void 0,M(),x,K?Error("react-stack-top-frame"):Yr,K?Ar(N(c)):Ct)},B.createRef=function(){var c={current:null};return Object.seal(c),c},B.forwardRef=function(c){c!=null&&c.$$typeof===Fe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:ur,render:c},b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.isValidElement=Q,B.lazy=function(c){return{$$typeof:qe,_payload:{_status:-1,_result:c},_init:ie}},B.memo=function(c,y){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),y={$$typeof:Fe,type:c,compare:y===void 0?null:y};var b;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(x){b=x,c.name||c.displayName||(Object.defineProperty(c,"name",{value:x}),c.displayName=x)}}),y},B.startTransition=function(c){var y=W.T,b={};W.T=b,b._updatedFibers=new Set;try{var x=c(),R=W.S;R!==null&&R(b,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(Ae,Vr)}catch(z){Vr(z)}finally{y===null&&b._updatedFibers&&(c=b._updatedFibers.size,b._updatedFibers.clear(),10<c&&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.")),W.T=y}},B.unstable_useCacheRefresh=function(){return I().useCacheRefresh()},B.use=function(c){return I().use(c)},B.useActionState=function(c,y,b){return I().useActionState(c,y,b)},B.useCallback=function(c,y){return I().useCallback(c,y)},B.useContext=function(c){var y=I();return c.$$typeof===Je&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(c)},B.useDebugValue=function(c,y){return I().useDebugValue(c,y)},B.useDeferredValue=function(c,y){return I().useDeferredValue(c,y)},B.useEffect=function(c,y,b){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var x=I();if(typeof b=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(c,y)},B.useId=function(){return I().useId()},B.useImperativeHandle=function(c,y,b){return I().useImperativeHandle(c,y,b)},B.useInsertionEffect=function(c,y){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useInsertionEffect(c,y)},B.useLayoutEffect=function(c,y){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useLayoutEffect(c,y)},B.useMemo=function(c,y){return I().useMemo(c,y)},B.useOptimistic=function(c,y){return I().useOptimistic(c,y)},B.useReducer=function(c,y,b){return I().useReducer(c,y,b)},B.useRef=function(c){return I().useRef(c)},B.useState=function(c){return I().useState(c)},B.useSyncExternalStore=function(c,y,b){return I().useSyncExternalStore(c,y,b)},B.useTransition=function(){return I().useTransition()},B.version="19.1.2",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var zn=Z((Pv,jn)=>{"use strict";h();v();process.env.NODE_ENV==="production"?jn.exports=Ti():jn.exports=Oi()});var tc={};js(tc,{default:()=>bi,resolveFiles:()=>ki});module.exports=zs(tc);h();v();h();v();h();v();h();v();h();v();var Us=yr(eo());h();v();h();v();h();v();var no=require("module"),Ls=(0,no.createRequire)("/"),et,Bs=";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{et=Ls("worker_threads").Worker}catch{}var qs=et?function(t,o,a,s,f){var m=!1,g=new et(t+Bs,{eval:!0}).on("error",function(E){return f(E,null)}).on("message",function(E){return f(null,E)}).on("exit",function(E){E&&!m&&f(new Error("exited with code "+E),null)});return g.postMessage(a,s),g.terminate=function(){return m=!0,et.prototype.terminate.call(g)},g}:function(t,o,a,s,f){setImmediate(function(){return f(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var m=function(){};return{terminate:m,postMessage:m}},we=Uint8Array,nr=Uint16Array,$t=Uint32Array,Ht=new we([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]),Wt=new we([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]),oo=new we([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),io=function(t,o){for(var a=new nr(31),s=0;s<31;++s)a[s]=o+=1<<t[s-1];for(var f=new $t(a[30]),s=1;s<30;++s)for(var m=a[s];m<a[s+1];++m)f[m]=m-a[s]<<5|s;return[a,f]},so=io(Ht,2),Kt=so[0],$s=so[1];Kt[28]=258,$s[258]=28;var ao=io(Wt,0),uo=ao[0],vc=ao[1],nt=new nr(32768);for(ne=0;ne<32768;++ne)Xe=(ne&43690)>>>1|(ne&21845)<<1,Xe=(Xe&52428)>>>2|(Xe&13107)<<2,Xe=(Xe&61680)>>>4|(Xe&3855)<<4,nt[ne]=((Xe&65280)>>>8|(Xe&255)<<8)>>>1;var Xe,ne,wr=function(t,o,a){for(var s=t.length,f=0,m=new nr(o);f<s;++f)t[f]&&++m[t[f]-1];var g=new nr(o);for(f=0;f<o;++f)g[f]=g[f-1]+m[f-1]<<1;var E;if(a){E=new nr(1<<o);var _=15-o;for(f=0;f<s;++f)if(t[f])for(var N=f<<4|t[f],M=o-t[f],j=g[t[f]-1]++<<M,ee=j|(1<<M)-1;j<=ee;++j)E[nt[j]>>>_]=N}else for(E=new nr(s),f=0;f<s;++f)t[f]&&(E[f]=nt[g[t[f]-1]++]>>>15-t[f]);return E},jr=new we(288);for(ne=0;ne<144;++ne)jr[ne]=8;var ne;for(ne=144;ne<256;++ne)jr[ne]=9;var ne;for(ne=256;ne<280;++ne)jr[ne]=7;var ne;for(ne=280;ne<288;++ne)jr[ne]=8;var ne,co=new we(32);for(ne=0;ne<32;++ne)co[ne]=5;var ne;var fo=wr(jr,9,1);var lo=wr(co,5,1),rt=function(t){for(var o=t[0],a=1;a<t.length;++a)t[a]>o&&(o=t[a]);return o},Me=function(t,o,a){var s=o/8|0;return(t[s]|t[s+1]<<8)>>(o&7)&a},tt=function(t,o){var a=o/8|0;return(t[a]|t[a+1]<<8|t[a+2]<<16)>>(o&7)},po=function(t){return(t+7)/8|0},ot=function(t,o,a){(o==null||o<0)&&(o=0),(a==null||a>t.length)&&(a=t.length);var s=new(t.BYTES_PER_ELEMENT==2?nr:t.BYTES_PER_ELEMENT==4?$t:we)(a-o);return s.set(t.subarray(o,a)),s};var ho=["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"],Te=function(t,o,a){var s=new Error(o||ho[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,Te),!a)throw s;return s},vo=function(t,o,a){var s=t.length;if(!s||a&&a.f&&!a.l)return o||new we(0);var f=!o||a,m=!a||a.i;a||(a={}),o||(o=new we(s*3));var g=function(Fe){var qe=o.length;if(Fe>qe){var rr=new we(Math.max(qe*2,Fe));rr.set(o),o=rr}},E=a.f||0,_=a.p||0,N=a.b||0,M=a.l,j=a.d,ee=a.m,te=a.n,P=s*8;do{if(!M){E=Me(t,_,1);var Y=Me(t,_+1,3);if(_+=3,Y)if(Y==1)M=fo,j=lo,ee=9,te=5;else if(Y==2){var me=Me(t,_,31)+257,xe=Me(t,_+10,15)+4,Ne=me+Me(t,_+5,31)+1;_+=14;for(var de=new we(Ne),ke=new we(19),ie=0;ie<xe;++ie)ke[oo[ie]]=Me(t,_+ie*3,7);_+=xe*3;for(var I=rt(ke),Ae=(1<<I)-1,pe=wr(ke,I,1),ie=0;ie<Ne;){var be=pe[Me(t,_,Ae)];_+=be&15;var X=be>>>4;if(X<16)de[ie++]=X;else{var S=0,re=0;for(X==16?(re=3+Me(t,_,3),_+=2,S=de[ie-1]):X==17?(re=3+Me(t,_,7),_+=3):X==18&&(re=11+Me(t,_,127),_+=7);re--;)de[ie++]=S}}var Qe=de.subarray(0,me),Ee=de.subarray(me);ee=rt(Qe),te=rt(Ee),M=wr(Qe,ee,1),j=wr(Ee,te,1)}else Te(1);else{var X=po(_)+4,Q=t[X-4]|t[X-3]<<8,ye=X+Q;if(ye>s){m&&Te(0);break}f&&g(N+Q),o.set(t.subarray(X,ye),N),a.b=N+=Q,a.p=_=ye*8,a.f=E;continue}if(_>P){m&&Te(0);break}}f&&g(N+131072);for(var he=(1<<ee)-1,ar=(1<<te)-1,Ge=_;;Ge=_){var S=M[tt(t,_)&he],Pe=S>>>4;if(_+=S&15,_>P){m&&Te(0);break}if(S||Te(2),Pe<256)o[N++]=Pe;else if(Pe==256){Ge=_,M=null;break}else{var Je=Pe-254;if(Pe>264){var ie=Pe-257,Be=Ht[ie];Je=Me(t,_,(1<<Be)-1)+Kt[ie],_+=Be}var ur=j[tt(t,_)&ar],er=ur>>>4;ur||Te(3),_+=ur&15;var Ee=uo[er];if(er>3){var Be=Wt[er];Ee+=tt(t,_)&(1<<Be)-1,_+=Be}if(_>P){m&&Te(0);break}f&&g(N+131072);for(var Re=N+Je;N<Re;N+=4)o[N]=o[N-Ee],o[N+1]=o[N+1-Ee],o[N+2]=o[N+2-Ee],o[N+3]=o[N+3-Ee];N=Re}}a.l=M,a.p=Ge,a.b=N,a.f=E,M&&(E=1,a.m=ee,a.d=j,a.n=te)}while(!E);return N==o.length?o:ot(o,0,N)};var Hs=new we(0);var Ws=function(t,o){var a={};for(var s in t)a[s]=t[s];for(var s in o)a[s]=o[s];return a},ro=function(t,o,a){for(var s=t(),f=t.toString(),m=f.slice(f.indexOf("[")+1,f.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<s.length;++g){var E=s[g],_=m[g];if(typeof E=="function"){o+=";"+_+"=";var N=E.toString();if(E.prototype)if(N.indexOf("[native code]")!=-1){var M=N.indexOf(" ",8)+1;o+=N.slice(M,N.indexOf("(",M))}else{o+=N;for(var j in E.prototype)o+=";"+_+".prototype."+j+"="+E.prototype[j].toString()}else o+=N}else a[_]=E}return[o,a]},Jr=[],Ks=function(t){var o=[];for(var a in t)t[a].buffer&&o.push((t[a]=new t[a].constructor(t[a])).buffer);return o},Ys=function(t,o,a,s){var f;if(!Jr[a]){for(var m="",g={},E=t.length-1,_=0;_<E;++_)f=ro(t[_],m,g),m=f[0],g=f[1];Jr[a]=ro(t[E],m,g)}var N=Ws({},Jr[a][1]);return qs(Jr[a][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,N,Ks(N),s)},Gs=function(){return[we,nr,$t,Ht,Wt,oo,Kt,uo,fo,lo,nt,ho,wr,rt,Me,tt,po,ot,Te,vo,Yt,mo,go]};var mo=function(t){return postMessage(t,[t.buffer])},go=function(t){return t&&t.size&&new we(t.size)},Vs=function(t,o,a,s,f,m){var g=Ys(a,s,f,function(E,_){g.terminate(),m(E,_)});return g.postMessage([t,o],o.consume?[t.buffer]:[]),function(){g.terminate()}};var We=function(t,o){return t[o]|t[o+1]<<8},Ue=function(t,o){return(t[o]|t[o+1]<<8|t[o+2]<<16|t[o+3]<<24)>>>0},Bt=function(t,o){return Ue(t,o)+Ue(t,o+4)*4294967296};function Zs(t,o,a){return a||(a=o,o={}),typeof a!="function"&&Te(7),Vs(t,o,[Gs],function(s){return mo(Yt(s.data[0],go(s.data[1])))},1,a)}function Yt(t,o){return vo(t,o)}var qt=typeof TextDecoder<"u"&&new TextDecoder,Xs=0;try{qt.decode(Hs,{stream:!0}),Xs=1}catch{}var Qs=function(t){for(var o="",a=0;;){var s=t[a++],f=(s>127)+(s>223)+(s>239);if(a+f>t.length)return[o,ot(t,a-1)];f?f==3?(s=((s&15)<<18|(t[a++]&63)<<12|(t[a++]&63)<<6|t[a++]&63)-65536,o+=String.fromCharCode(55296|s>>10,56320|s&1023)):f&1?o+=String.fromCharCode((s&31)<<6|t[a++]&63):o+=String.fromCharCode((s&15)<<12|(t[a++]&63)<<6|t[a++]&63):o+=String.fromCharCode(s)}};function Js(t,o){if(o){for(var a="",s=0;s<t.length;s+=16384)a+=String.fromCharCode.apply(null,t.subarray(s,s+16384));return a}else{if(qt)return qt.decode(t);var f=Qs(t),m=f[0],g=f[1];return g.length&&Te(8),m}}var ea=function(t,o){return o+30+We(t,o+26)+We(t,o+28)},ra=function(t,o,a){var s=We(t,o+28),f=Js(t.subarray(o+46,o+46+s),!(We(t,o+8)&2048)),m=o+46+s,g=Ue(t,o+20),E=a&&g==4294967295?ta(t,m):[g,Ue(t,o+24),Ue(t,o+42)],_=E[0],N=E[1],M=E[2];return[We(t,o+10),_,N,f,m+We(t,o+30)+We(t,o+32),M]},ta=function(t,o){for(;We(t,o)!=1;o+=4+We(t,o+2));return[Bt(t,o+12),Bt(t,o+4),Bt(t,o+20)]};var to=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function yo(t,o,a){a||(a=o,o={}),typeof a!="function"&&Te(7);var s=[],f=function(){for(var X=0;X<s.length;++X)s[X]()},m={},g=function(X,Q){to(function(){a(X,Q)})};to(function(){g=a});for(var E=t.length-22;Ue(t,E)!=101010256;--E)if(!E||t.length-E>65558)return g(Te(13,0,1),null),f;var _=We(t,E+8);if(_){var N=_,M=Ue(t,E+16),j=M==4294967295||N==65535;if(j){var ee=Ue(t,E-12);j=Ue(t,ee)==101075792,j&&(N=_=Ue(t,ee+32),M=Ue(t,ee+48))}for(var te=o&&o.filter,P=function(X){var Q=ra(t,M,j),ye=Q[0],me=Q[1],xe=Q[2],Ne=Q[3],de=Q[4],ke=Q[5],ie=ea(t,ke);M=de;var I=function(pe,be){pe?(f(),g(pe,null)):(be&&(m[Ne]=be),--_||g(null,m))};if(!te||te({name:Ne,size:me,originalSize:xe,compression:ye}))if(!ye)I(null,ot(t,ie,ie+me));else if(ye==8){var Ae=t.subarray(ie,ie+me);if(me<32e4)try{I(null,Yt(Ae,new we(xe)))}catch(pe){I(pe,null)}else s.push(Zs(Ae,{size:xe},I))}else I(Te(14,"unknown compression type "+ye,1),null);else I(null,null)},Y=0;Y<N;++Y)P(Y)}else g(null,{});return f}function it(t){return new Promise((o,a)=>{yo(t,(s,f)=>{s?a(s):o(f)})})}h();v();var si=yr(Xt()),ai=yr(ii()),Iu=(0,ai.defineTree)({getChildren:si.Entries.getEntries});h();v();var Nl=Uint8Array.from([80,75]),Al=Uint8Array.from([55,122,188,175,39,28]);h();v();var ui=yr(Xt());async function An(t){let{gistId:o,fetch:a=globalThis.fetch}=t,s=await a(`https://api.github.com/gists/${o}`);if(!s.ok)throw new Error(`Failed to fetch gist: ${s.statusText}`);let f=await s.json();if(!f.files)throw new Error("No files found in gist");let m={};for(let[g,E]of Object.entries(f.files))if(typeof E=="object"&&E!==null){let _="content"in E?String(E.content):"";m[g]={kind:"file",content:_,encoding:"utf-8"}}return m}async function Pn(t){let{owner:o,name:a,ref:s="main",path:f,fetch:m=globalThis.fetch,format:g="zip",debug:E=!1}=t,_=`https://www.noya.io/packager/github/download/${o}/${a}/${s}${g==="files"?"":`.${g}`}`,N=await m(_,{headers:{Accept:g==="files"?"application/json":g==="zip"?"application/zip":"application/tar"},mode:"cors"});if(!N.ok)throw new Error(`Failed to fetch repository: ${N.statusText}`);let M=await N.arrayBuffer(),j=new Uint8Array(M);switch(g){case"files":return JSON.parse(new TextDecoder().decode(j));case"zip":return ju({bytes:j,path:f,debug:E});case"tar":throw new Error("Tar format not supported")}}async function ju({bytes:t,path:o,debug:a}){let s=await it(t),f={},m=Object.entries(s);if(m.length===0)throw new Error("No files found in zip");let g=m[0][0],E=o?`${g}${o}/`:g;for(let[_,N]of m)if(_.startsWith(E)&&!_.endsWith("/")){let M=o?_.slice(E.length):_.slice(g.length);if(N instanceof Uint8Array)try{f[M]={kind:"file",content:new TextDecoder().decode(N),encoding:"utf-8"}}catch{a&&console.info(`Skipping binary file: ${M}`)}}if(Object.keys(f).length===0&&o)throw new Error(`No files found in path: ${o}`);return f}h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();function ci(t){return Object.fromEntries(Object.entries(t).map(([o,a])=>[a,o]))}var Uu={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg","application/pdf":"pdf","application/zip":"zip","application/x-7z-compressed":"7z"},jd=ci(Uu);h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Lp=Symbol("object"),Bp=Symbol("array"),qp=Symbol("key"),$p=Symbol("end"),Hp=Symbol("primitive"),Wp=Symbol("argsep");h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();h();v();var Un=yr(zn());h();v();var Ln=yr(zn());h();v();async function ki(t){if(t.location==="repository"&&t.repository?.owner&&t.repository?.name){console.info("Loading GitHub repository files",t.repository);let o=await Pn({owner:t.repository.owner,name:t.repository.name,ref:t.repository.ref,path:t.repository.path,fetch:t.fetch,debug:t.debug});if(t.debug){let a=t.repository.path?` (path: ${t.repository.path})`:"";console.info(`Loaded ${Object.keys(o).length} files from repository ${t.repository.owner}/${t.repository.name}${a}`)}return o}if(t.location==="gist"&&t.gist?.id){console.info("Loading GitHub gist files",t.gist);let o=await An({gistId:t.gist.id,fetch:t.fetch});return t.debug&&console.info(`Loaded ${Object.keys(o).length} files from gist ${t.gist.id}`),o}return t.files??{}}async function bi(t,{state:o}){let a=await ki(o);return{...o,location:"files",files:a}}0&&(module.exports={resolveFiles});
|
|
21
21
|
/*! Bundled license information:
|
|
22
22
|
|
|
23
23
|
react/cjs/react.production.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noya-app/noya-resolve-files",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"dev": "npm run build -- --watch"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@noya-app/noya-github-utils": "0.1.
|
|
14
|
+
"@noya-app/noya-github-utils": "0.1.27"
|
|
15
15
|
}
|
|
16
16
|
}
|