designix-uis 0.5.39 → 0.5.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designix-uis.js +7 -7
- package/dist/public/_app/immutable/chunks/{makeList.DnI2f1Yv.js → 3KMmcniM.js} +1 -1
- package/dist/public/_app/immutable/chunks/6zLRVRT9.js +1 -0
- package/dist/public/_app/immutable/chunks/B6cXXlIB.js +3 -0
- package/dist/public/_app/immutable/chunks/BGDGtrfQ.js +1 -0
- package/dist/public/_app/immutable/chunks/BGe1NobS.js +1 -0
- package/dist/public/_app/immutable/chunks/BWo6ipe6.js +1 -0
- package/dist/public/_app/immutable/chunks/BsuezFLB.js +216 -0
- package/dist/public/_app/immutable/chunks/Bvx3yFzP.js +1 -0
- package/dist/public/_app/immutable/chunks/CD5k8j7s.js +1 -0
- package/dist/public/_app/immutable/chunks/V239f71F.js +1 -0
- package/dist/public/_app/immutable/chunks/xh_wmC9C.js +1 -0
- package/dist/public/_app/immutable/entry/app.DBTU_iS4.js +2 -0
- package/dist/public/_app/immutable/entry/start.BQQKiKIr.js +1 -0
- package/dist/public/_app/immutable/nodes/0.kz1bJhtd.js +2 -0
- package/dist/public/_app/immutable/nodes/1.CVGBSdoz.js +1 -0
- package/dist/public/_app/immutable/nodes/2.y3SbG7e6.js +1 -0
- package/dist/public/_app/immutable/nodes/3.BknMTOmK.js +7 -0
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_bar.html +20 -20
- package/dist/public/gear/gear_epicycloid.html +20 -20
- package/dist/public/gear/gear_ring.html +20 -20
- package/dist/public/gear/gear_wheel.html +20 -20
- package/dist/public/heliostat/base.html +20 -20
- package/dist/public/heliostat/haxis_guidance.html +20 -20
- package/dist/public/heliostat/heliostat.html +20 -20
- package/dist/public/heliostat/heliostat_2.html +20 -20
- package/dist/public/heliostat/pole_static.html +20 -20
- package/dist/public/heliostat/rake.html +20 -20
- package/dist/public/heliostat/rake_stopper.html +20 -20
- package/dist/public/heliostat/ring.html +20 -20
- package/dist/public/heliostat/ring_guidance.html +20 -20
- package/dist/public/heliostat/rod.html +20 -20
- package/dist/public/heliostat/spider.html +20 -20
- package/dist/public/heliostat/surface.html +20 -20
- package/dist/public/heliostat/swing.html +20 -20
- package/dist/public/heliostat/trapeze.html +20 -20
- package/dist/public/heliostat/vaxis.html +20 -20
- package/dist/public/heliostat/vaxis_guidance.html +20 -20
- package/dist/public/heliostat/vaxis_holder.html +20 -20
- package/dist/public/index.html +19 -19
- package/package.json +7 -7
- package/dist/public/_app/immutable/chunks/disclose-version.B40L5EHc.js +0 -1
- package/dist/public/_app/immutable/chunks/entry.Dsc78gA5.js +0 -3
- package/dist/public/_app/immutable/chunks/index-client.Bqub2jqq.js +0 -1
- package/dist/public/_app/immutable/chunks/index.DV_YxM3n.js +0 -216
- package/dist/public/_app/immutable/chunks/legacy.BtedhEFq.js +0 -1
- package/dist/public/_app/immutable/chunks/lifecycle.Dz2yWc53.js +0 -1
- package/dist/public/_app/immutable/chunks/paths.DWJtGEyK.js +0 -1
- package/dist/public/_app/immutable/chunks/props.BPktznOi.js +0 -1
- package/dist/public/_app/immutable/chunks/runtime.B89ySwNM.js +0 -1
- package/dist/public/_app/immutable/chunks/snippet.CGZ0Y-Dd.js +0 -1
- package/dist/public/_app/immutable/entry/app.CPP4Hq1K.js +0 -2
- package/dist/public/_app/immutable/entry/start.BdbjU4Wa.js +0 -1
- package/dist/public/_app/immutable/nodes/0.DyC76LB3.js +0 -2
- package/dist/public/_app/immutable/nodes/1.DGOp1Qar.js +0 -1
- package/dist/public/_app/immutable/nodes/2.ChUYL9xf.js +0 -1
- package/dist/public/_app/immutable/nodes/3.DM1ZdsN6.js +0 -7
package/dist/designix-uis.js
CHANGED
|
@@ -12,7 +12,7 @@ import getport from "get-port";
|
|
|
12
12
|
// package.json
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "designix-uis",
|
|
15
|
-
version: "0.5.
|
|
15
|
+
version: "0.5.41",
|
|
16
16
|
description: "mini-server for static content of designix-ui",
|
|
17
17
|
private: false,
|
|
18
18
|
repository: {
|
|
@@ -88,7 +88,7 @@ var package_default = {
|
|
|
88
88
|
},
|
|
89
89
|
dependencies: {
|
|
90
90
|
express: "^4.21.2",
|
|
91
|
-
"fs-extra": "^11.
|
|
91
|
+
"fs-extra": "^11.3.0",
|
|
92
92
|
"get-port": "^7.1.0",
|
|
93
93
|
open: "^10.1.0",
|
|
94
94
|
yargs: "^17.7.2"
|
|
@@ -99,17 +99,17 @@ var package_default = {
|
|
|
99
99
|
"@types/eslint__js": "^8.42.3",
|
|
100
100
|
"@types/express": "^5.0.0",
|
|
101
101
|
"@types/fs-extra": "^11.0.4",
|
|
102
|
-
"@types/node": "^22.10.
|
|
102
|
+
"@types/node": "^22.10.7",
|
|
103
103
|
"@types/yargs": "^17.0.33",
|
|
104
|
-
eslint: "^9.
|
|
105
|
-
"eslint-config-prettier": "^
|
|
104
|
+
eslint: "^9.18.0",
|
|
105
|
+
"eslint-config-prettier": "^10.0.1",
|
|
106
106
|
"npm-run-all2": "^7.0.2",
|
|
107
107
|
prettier: "^3.4.2",
|
|
108
108
|
rimraf: "^6.0.1",
|
|
109
109
|
tsup: "^8.3.5",
|
|
110
110
|
typescript: "^5.7.3",
|
|
111
|
-
"typescript-eslint": "^8.
|
|
112
|
-
vitest: "
|
|
111
|
+
"typescript-eslint": "^8.20.0",
|
|
112
|
+
vitest: "^3.0.2"
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Et=Object.defineProperty;var bt=(s,e,_)=>e in s?Et(s,e,{enumerable:!0,configurable:!0,writable:!0,value:_}):s[e]=_;var G=(s,e,_)=>bt(s,typeof e!="symbol"?e+"":e,_);import{p as t,a as z,b as xe,c as $e,d as _e,f as ve,g as L,h as J,E as U,j as re,k as P,l as le,t as Ke,r as ae,m as At,n as Le,o as He,q as De,u as kt,v as X,w as ge,x as Me,y as B,z as Se,A as ye,B as Oe,C as ze,S as ke,D as Rt}from"./
|
|
1
|
+
var Et=Object.defineProperty;var bt=(s,e,_)=>e in s?Et(s,e,{enumerable:!0,configurable:!0,writable:!0,value:_}):s[e]=_;var G=(s,e,_)=>bt(s,typeof e!="symbol"?e+"":e,_);import{p as t,a as z,b as xe,c as $e,d as _e,f as ve,g as L,h as J,E as U,j as re,k as P,l as le,t as Ke,r as ae,m as At,n as Le,o as He,q as De,u as kt,v as X,w as ge,x as Me,y as B,z as Se,A as ye,B as Oe,C as ze,S as ke,D as Rt}from"./BsuezFLB.js";var Nt=class{constructor(s,e,_,o,i){G(this,"base_center_x");G(this,"base_center_y");G(this,"base_radius");G(this,"initial_angle");G(this,"right_nleft");this.base_center_x=s,this.base_center_y=e,this.base_radius=_,this.initial_angle=o,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const e=this.lFromU(s),_=this.w2FromU(s),o=this.base_center_x+Math.cos(_)*e,i=this.base_center_y+Math.sin(_)*e;return[o,i]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let _=Math.PI/3,o=_/2,i=this.wFromU(_),d=0;for(;Math.abs(i-s)>1e-4;)i<s?_+=o:_-=o,i=this.wFromU(_),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),_}laptc(s,e,_,o){if(Math.sign(e)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${e} not compatible with right_nleft ${this.right_nleft}`;const i=s+e,d=this.base_center_x+Math.cos(i)*this.base_radius,c=this.base_center_y+Math.sin(i)*this.base_radius,n=i-this.angleSign()*Math.PI/2,l=_*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(_)*o,r=_,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Ee(s,e,_,o,i){return new Nt(s,e,_,o,i)}var Ct=class{constructor(){G(this,"mod",1);G(this,"TN",23);G(this,"as",1);G(this,"cx",0);G(this,"cy",0);G(this,"brr",50);G(this,"blr",50);G(this,"ar",54);G(this,"pr",53);G(this,"dr",52);G(this,"br",51);G(this,"bRound",1);G(this,"adt",.5);G(this,"initAngle",0);G(this,"axisAngle",0);G(this,"involArcPairs",1);G(this,"skinThickness",0);G(this,"involuteR",Ee(0,0,50,0,!0));G(this,"involuteL",Ee(0,0,50,0,!1));G(this,"rud",0);G(this,"rup",0);G(this,"rua",0);G(this,"rwd",0);G(this,"rwp",0);G(this,"rwa",0);G(this,"lud",0);G(this,"lup",0);G(this,"lua",0);G(this,"lwd",0);G(this,"lwp",0);G(this,"lwa",0);G(this,"msg");G(this,"initStep",0);this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,e){if(this.initStep<s)throw`err835: checkInitStep for ${e} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,e){this.incInitStep(1),this.mod=s,this.TN=e,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,e){this.incInitStep(2),this.cx=s,this.cy=e}set3CircleRadius(s,e,_,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*_,this.bRound=o}set4BaseCircles(s,e){this.incInitStep(4),this.brr=s,this.blr=e}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,e){this.incInitStep(6),this.initAngle=s,this.axisAngle=e}set7InvoluteDetails(s,e){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=e}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[P(this.cx,this.cy,this.ar,"Azure"),P(this.cx,this.cy,this.pr,"Azure"),P(this.cx,this.cy,this.dr,"Azure"),P(this.cx,this.cy,this.br,"Azure"),P(this.cx,this.cy,this.brr,"CornFlowerBlue"),P(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=Ee(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=Ee(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.lud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,e=this.rwa-this.rwp,_=Math.abs(this.lwa-this.lwp),o=s-e-_;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
|
|
2
2
|
`;const i=this.as*(1-this.adt),d=this.rwp-this.rwd,c=Math.abs(this.lwp-this.lwd),n=i-d-c;if(n<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${L(n)} compare to bRound ${L(this.bRound)}
|
|
3
3
|
`}getToothRef(){const s=6*this.involArcPairs,e=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const _=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,i=this.initAngle+e*this.as,d=Ee(this.cx,this.cy,this.brr,i-this.rwp,!0),[c,n]=d.ptc(this.rud+0*_),l=J(c,n,"Gold");for(let S=0;S<s;S++){const[g,r]=d.ptc(this.rud+(S+1)*_);l.addSegStrokeA(g,r)}const h=i+this.as*this.adt,a=Ee(this.cx,this.cy,this.blr,h-this.lwp,!1);for(let S=0;S<s+1;S++){const[g,r]=a.ptc(this.lud+(s-S)*o);l.addSegStrokeA(g,r)}return l.closeSegStroke(),l}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,e=this.lwd-this.lwp,_=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>_-this.br)throw`err409: getProfile bRound ${L(this.bRound)} too large for erdr ${L(_)} and br ${L(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${L(this.bRound)} too large for eldr ${L(o)} and br ${L(this.br)}`;const i=(this.rua-this.rud)/this.involArcPairs,d=(this.lua-this.lud)/this.involArcPairs,c=le(this.cx,this.cy),n=c.translatePolar(this.initAngle+s,this.br),l=J(n.cx,n.cy);for(let h=0;h<this.TN;h++){const a=this.initAngle+h*this.as,S=c.translatePolar(a+s,this.br);l.addSegStrokeA(S.cx,S.cy).addCornerRounded(this.bRound);const g=Ee(this.cx,this.cy,this.brr,a-this.rwp,!0),[r,u]=g.ptc(this.rud),f=g.ptcta(this.rud),H=le(r,u).translatePolar(f-Math.PI/2,this.skinThickness);l.addSegStrokeA(H.cx,H.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.rud+x*i,[C,$]=g.ptc(O+i),m=g.ptcta(O),q=g.ptcta(O+i)+Math.PI,F=le(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,q)}const k=a+this.as*this.adt,M=Ee(this.cx,this.cy,this.blr,k-this.lwp,!1),D=this.lud+this.involArcPairs*d,[b,N]=M.ptc(D),R=M.ptcta(D)+Math.PI,v=le(b,N).translatePolar(R-Math.PI/2,this.skinThickness);l.addSegStrokeA(v.cx,v.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.lud+(this.involArcPairs-x)*d,[C,$]=M.ptc(O-d),m=M.ptcta(O)+Math.PI,q=M.ptcta(O-d),F=le(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,q)}const E=c.translatePolar(k+e,this.br);l.addSegStrokeA(E.cx,E.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function Qe(){return new Ct}function It(s,e,_,o){s.checkInitStep(1,"helper.gw2center-1"),e.checkInitStep(1,"helper.gw2center-2");const i=s.pr+e.pr+o,d=s.cx+i*Math.cos(_),c=s.cy+i*Math.sin(_);return[d,c,i]}function Vt(s,e,_,o,i,d,c,n,l,h,a){s.checkInitStep(3,"helper.baseCircles-1"),e.checkInitStep(3,"helper.baseCircles-2");let S=_,g=i,r=o,u=d;const f=s.pr+e.pr,H=h,k=a;switch(H){case 0:e.TN>s.TN?(S=s.dr,g=S*e.TN/s.TN):(g=e.dr,S=g*s.TN/e.TN);break;case 1:g=S*e.TN/s.TN;break;case 2:S=g*s.TN/e.TN;break;case 3:S=f*s.TN/(s.TN+e.TN)*Math.cos(ve(c)),g=S*e.TN/s.TN;break;case 4:break;default:console.log(`err337: involROpt2 case ${H} is not implemented!`)}switch(k){case 0:e.TN>s.TN?(r=s.dr,u=r*e.TN/s.TN):(u=e.dr,r=u*s.TN/e.TN);break;case 1:u=r*e.TN/s.TN;break;case 2:r=u*s.TN/e.TN;break;case 3:r=f*s.TN/(s.TN+e.TN)*Math.cos(ve(n)),u=r*e.TN/s.TN;break;case 4:break;default:console.log(`err358: involLOpt2 case ${k} is not implemented!`)}return l===1&&(r=S,u=g),[S,r,g,u]}var Bt=class{constructor(s,e,_,o,i,d){G(this,"gw1");G(this,"gw2");G(this,"initAngle1");G(this,"angleCenterCenter");G(this,"interAxis");G(this,"rightLeftCenter2");G(this,"msg");G(this,"apr");G(this,"apl");G(this,"lBDr",0);G(this,"lBDl",0);G(this,"laStartRr1",0);G(this,"laStartRr2",0);G(this,"laStartRl1",0);G(this,"laStartRl2",0);G(this,"aFODr1",0);G(this,"aFODr2",0);G(this,"aFODl1",0);G(this,"aFODl2",0);G(this,"lasr1",0);G(this,"lasr2",0);G(this,"lasl1",0);G(this,"lasl2",0);G(this,"firstToothUr1",0);G(this,"firstToothUl1",0);G(this,"ftdr1",0);G(this,"ftdl1",0);this.gw1=s,this.gw2=e,this.initAngle1=_,this.angleCenterCenter=o,this.interAxis=i,this.rightLeftCenter2=d,this.msg="",this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,"ActionLine.check1-1"),this.gw2.checkInitStep(4,"ActionLine.check1-2"),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${L(this.interAxis)} is too large compare to gw1.ar ${L(this.gw1.ar)} and gw2.ar ${L(this.gw2.ar)}
|
|
4
4
|
`),Se(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${L(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${L(this.gw1.brr)}/${L(this.gw2.brr)} = ${L(this.gw1.brr/this.gw2.brr)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as c,f as a,y as d,i as r,z as m,e as g}from"./BWo6ipe6.js";function _(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function h(n,e,s){if(n==null)return e(void 0),c;const u=a(()=>n.subscribe(e,s));return u.unsubscribe?()=>u.unsubscribe():u}const i=[];function z(n,e=c){let s=null;const u=new Set;function f(o){if(d(n,o)&&(n=o,s)){const l=!i.length;for(const t of u)t[1](),i.push(t,n);if(l){for(let t=0;t<i.length;t+=2)i[t][0](i[t+1]);i.length=0}}}function b(o){f(o(n))}function p(o,l=c){const t=[o,l];return u.add(t),u.size===1&&(s=e(f,b)||c),o(n),()=>{u.delete(t),u.size===0&&s&&(s(),s=null)}}return{set:f,update:b,subscribe:p}}function k(n){let e;return h(n,s=>e=s)(),e}function y(n){r===null&&_(),m&&r.l!==null?w(r).m.push(n):g(()=>{const e=a(n);if(typeof e=="function")return e})}function x(n){r===null&&_(),y(()=>()=>a(n))}function w(n){var e=n.l;return e.u??(e.u={a:[],b:[],m:[]})}export{x as a,k as g,y as o,h as s,z as w};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var Ye=e=>{throw TypeError(e)};var Ct=(e,t,n)=>t.has(e)||Ye("Cannot "+n);var A=(e,t,n)=>(Ct(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?Ye("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ad as C,g as O,F as N,ac as Ot}from"./BWo6ipe6.js";import{w as Ce,o as Je}from"./6zLRVRT9.js";import{a as Nt,b as P}from"./CD5k8j7s.js";new URL("sveltekit-internal://");function jt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function $t(e){return e.split("%25").map(decodeURI).join("%25")}function Dt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Re({href:e}){return e.split("#")[0]}function Ft(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}const Vt="/__data.json",Bt=".html__data.json";function Gt(e){return e.endsWith(".html")?e.replace(/\.html$/,Bt):e.replace(/\/$/,"")+Vt}function Mt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function qt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Ht=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&K.delete(Oe(e)),Ht(e,t));const K=new Map;function Kt(e,t){const n=Oe(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&K.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=qt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Wt(e,t,n){if(K.size>0){const r=Oe(e,n),a=K.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);K.delete(r)}}return window.fetch(t,n)}function Oe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Mt(...a)}"]`}return r}const Yt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Jt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Xt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ie(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const h=Yt.exec(c),[,u,y,d,m]=h;return t.push({name:d,matcher:m,optional:!!u,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return Ie(c)}).join("")}).join("")}/?$`),params:t}}function zt(e){return!/^\([^)]+\)$/.test(e)}function Xt(e){return e.slice(1).split("/").filter(zt)}function Zt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=a[o-i];if(c.chained&&c.rest&&i&&(f=a.slice(o-i,o+1).filter(h=>h).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const h=t[o+1],u=a[o+1];h&&!h.rest&&h.optional&&u&&c.chained&&(i=0),!h&&!u&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Qt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,f,h]])=>{const{pattern:u,params:y}=Jt(o),d={id:o,exec:m=>{const l=u.exec(m);if(l)return Zt(l,y,r)},errors:[1,...h||[]].map(m=>e[m]),layouts:[0,...f||[]].map(i),leaf:s(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function ct(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const en="1737140369653",lt="sveltekit:snapshot",ft="sveltekit:scroll",ut="sveltekit:states",tn="sveltekit:pageurl",B="sveltekit:history",J="sveltekit:navigation",fe={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function dt(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function Ne(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Xe={...fe,"":fe.hover};function ht(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function pt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=ht(e)}}function Te(e,t,n){let r;try{r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ve(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===le&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ue(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=V(o,"preload-code")),a===null&&(a=V(o,"preload-data")),t===null&&(t=V(o,"keepfocus")),n===null&&(n=V(o,"noscroll")),s===null&&(s=V(o,"reload")),i===null&&(i=V(o,"replacestate")),o=ht(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Xe[r??"off"],preload_data:Xe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ze(e){const t=Ce(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const gt={v:()=>{}};function nn(){const{set:e,subscribe:t}=Ce(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==en;return i&&(e(!0),gt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ve(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Qe(e){const t=an(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function an(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=rn.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const on=-1,sn=-2,cn=-3,ln=-4,fn=-5,un=-6;function dn(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===on)return;if(s===cn)return NaN;if(s===ln)return 1/0;if(s===fn)return-1/0;if(s===un)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=t==null?void 0:t[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const h=new Set;r[s]=h;for(let d=1;d<o.length;d+=1)h.add(a(o[d]));break;case"Map":const u=new Map;r[s]=u;for(let d=1;d<o.length;d+=2)u.set(a(o[d]),a(o[d+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const y=Object.create(null);r[s]=y;for(let d=1;d<o.length;d+=2)y[o[d]]=a(o[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[c],m=o[1],l=Qe(m),g=new d(l);r[s]=g;break}case"ArrayBuffer":{const d=o[1],m=Qe(d);r[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let f=0;f<o.length;f+=1){const h=o[f];h!==sn&&(c[f]=a(h))}}else{const c={};r[s]=c;for(const f in o){const h=o[f];c[f]=a(h)}}return r[s]}return a(0)}const mt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...mt];const hn=new Set([...mt]);[...hn];function pn(e){return e.filter(t=>t!=null)}class be{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class je{constructor(t,n){this.status=t,this.location=n}}class $e extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const gn="x-sveltekit-invalidated",mn="x-sveltekit-trailing-slash";function de(e){return e instanceof be||e instanceof $e?e.status:500}function yn(e){return e instanceof $e?e.text:"Internal Error"}let U,z,Ue;const wn=Je.toString().includes("$$")||/function \w+\(\) \{\}/.test(Je.toString());var Q,ee,te,ne,re,ae,oe,se,ot,ie,st,ce,it;wn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},z={current:null},Ue={current:!1}):(U=new(ot=class{constructor(){x(this,Q,C({}));x(this,ee,C(null));x(this,te,C(null));x(this,ne,C({}));x(this,re,C({id:null}));x(this,ae,C({}));x(this,oe,C(-1));x(this,se,C(new URL("https://example.com")))}get data(){return O(A(this,Q))}set data(t){N(A(this,Q),t)}get form(){return O(A(this,ee))}set form(t){N(A(this,ee),t)}get error(){return O(A(this,te))}set error(t){N(A(this,te),t)}get params(){return O(A(this,ne))}set params(t){N(A(this,ne),t)}get route(){return O(A(this,re))}set route(t){N(A(this,re),t)}get state(){return O(A(this,ae))}set state(t){N(A(this,ae),t)}get status(){return O(A(this,oe))}set status(t){N(A(this,oe),t)}get url(){return O(A(this,se))}set url(t){N(A(this,se),t)}},Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ae=new WeakMap,oe=new WeakMap,se=new WeakMap,ot),z=new(st=class{constructor(){x(this,ie,C(null))}get current(){return O(A(this,ie))}set current(t){N(A(this,ie),t)}},ie=new WeakMap,st),Ue=new(it=class{constructor(){x(this,ce,C(!1))}get current(){return O(A(this,ce))}set current(t){N(A(this,ce),t)}},ce=new WeakMap,it),gt.v=()=>Ue.current=!0);function _n(e){Object.assign(U,e)}const vn=new Set(["icon","shortcut icon","apple-touch-icon"]),F=ct(ft)??{},X=ct(lt)??{},$={url:Ze({}),page:Ze({}),navigating:Ce(null),updated:nn()};function De(e){F[e]=Ne()}function bn(e,t){let n=e+1;for(;F[n];)delete F[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function M(e){return location.href=e.href,new Promise(()=>{})}async function yt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(P||"/");e&&await e.update()}}function et(){}let Ae,xe,he,j,Pe,S;const pe=[],ge=[];let L=null;const wt=new Set,An=new Set,W=new Set;let _={branch:[],error:null,url:null},Fe=!1,me=!1,tt=!0,Z=!1,q=!1,_t=!1,Ve=!1,vt,I,T,ye;const Y=new Set;async function Vn(e,t,n){var a,s,i,o;document.URL!==location.href&&(location.href=location.href),S=e,await((s=(a=e.hooks).init)==null?void 0:s.call(a)),Ae=Qt(e),j=document.documentElement,Pe=t,xe=e.nodes[0],he=e.nodes[1],xe(),he(),I=(i=history.state)==null?void 0:i[B],T=(o=history.state)==null?void 0:o[J],I||(I=T=Date.now(),history.replaceState({...history.state,[B]:I,[J]:T},""));const r=F[I];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await xn(Pe,n):Un(S.hash?Pt(new URL(location.href)):location.href,{replaceState:!0}),Tn()}function Sn(){pe.length=0,Ve=!1}function bt(e){ge.some(t=>t==null?void 0:t.snapshot)&&(X[e]=ge.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function At(e){var t;(t=X[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ge[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function nt(){De(I),ze(ft,F),bt(T),ze(lt,X)}async function Be(e,t,n,r){return H({type:"goto",url:dt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ve=!0),t.invalidate&&t.invalidate.forEach(Ln)}})}async function En(e){if(e.id!==(L==null?void 0:L.id)){const t={};Y.add(t),L={id:e.id,token:t,promise:Et({...e,preload:t}).then(n=>(Y.delete(t),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Le(e){const t=kt(e);if(!t)return;const n=Ae.find(r=>r.exec(Rt(t)));n&&await Promise.all([...n.layouts,n.leaf].map(r=>r==null?void 0:r[1]()))}function St(e,t,n){var s;_=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(U,e.props.page),vt=new S.root({target:t,props:{...e.props,stores:$,components:ge},hydrate:n,sync:!1}),At(T);const a={from:null,to:{params:_.params,route:{id:((s=_.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};W.forEach(i=>i(a)),me=!0}function we({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(P&&(e.pathname===P||e.pathname===P+"/"))o="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(o=d.slash);e.pathname=jt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:pn(n).map(d=>d.node.component),page:He(U)}};i!==void 0&&(c.props.form=i);let f={},h=!U,u=0;for(let d=0;d<Math.max(n.length,_.branch.length);d+=1){const m=n[d],l=_.branch[d];(m==null?void 0:m.data)!==(l==null?void 0:l.data)&&(h=!0),m&&(f={...f,...m.data},h&&(c.props[`data_${u}`]=f),u+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||i!==void 0&&i!==U.form||h)&&(c.props.page={error:a,params:t,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:i??null,data:h?f:U.data}),c}async function Ge({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){var h,u,y;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if((h=f.universal)!=null&&h.load){let d=function(...l){for(const g of l){const{href:w}=new URL(g,n);c.dependencies.add(w)}};const m={route:new Proxy(a,{get:(l,g)=>(o&&(c.route=!0),l[g])}),params:new Proxy(r,{get:(l,g)=>(o&&c.params.add(g),l[g])}),data:(s==null?void 0:s.data)??null,url:Ft(n,()=>{o&&(c.url=!0)},l=>{o&&c.search_params.add(l)},S.hash),async fetch(l,g){let w;l instanceof Request?(w=l.url,g={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:[...l.headers].length?l.headers:void 0,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...g}):w=l;const R=new URL(w,n);return o&&d(R.href),R.origin===n.origin&&(w=R.href.slice(n.origin.length)),me?Wt(w,R.href,g):Kt(w,g)},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(l){o=!1;try{return l()}finally{o=!0}}};i=await f.universal.load.call(null,m)??null}return{node:f,loader:e,server:s,universal:(u=f.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function rt(e,t,n,r,a,s){if(Ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==_.params[i])return!0;for(const i of a.dependencies)if(pe.some(o=>o(new URL(i))))return!0;return!1}function Me(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function kn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function at({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:He(U),constructors:[]}}}async function Et({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if((L==null?void 0:L.id)===e)return Y.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let h=null;const u=_.url?e!==_e(_.url):!1,y=_.route?a.id!==_.route.id:!1,d=kn(_.url,n);let m=!1;const l=f.map((p,v)=>{var D;const E=_.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||rt(m,y,u,d,(D=E.server)==null?void 0:D.uses,r));return k&&(m=!0),k});if(l.some(Boolean)){try{h=await Lt(n,l)}catch(p){const v=await G(p,{url:n,params:r,route:{id:e}});return Y.has(s)?at({error:v,url:n,params:r,route:a}):Se({status:de(p),error:v,url:n,route:a})}if(h.type==="redirect")return h}const g=h==null?void 0:h.nodes;let w=!1;const R=f.map(async(p,v)=>{var Ee;if(!p)return;const E=_.branch[v],k=g==null?void 0:g[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!rt(w,y,u,d,(Ee=E.universal)==null?void 0:Ee.uses,r))return E;if(w=!0,(k==null?void 0:k.type)==="error")throw k;return Ge({loader:p[1],url:n,params:r,route:a,parent:async()=>{var We;const Ke={};for(let ke=0;ke<v;ke+=1)Object.assign(Ke,(We=await R[ke])==null?void 0:We.data);return Ke},server_data_node:Me(k===void 0&&p[0]?{type:"skip"}:k??null,p[0]?E==null?void 0:E.server:void 0)})});for(const p of R)p.catch(()=>{});const b=[];for(let p=0;p<f.length;p+=1)if(f[p])try{b.push(await R[p])}catch(v){if(v instanceof je)return{type:"redirect",location:v.location};if(Y.has(s))return at({error:await G(v,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=de(v),k;if(g!=null&&g.includes(v))E=v.status??E,k=v.error;else if(v instanceof be)k=v.body;else{if(await $.updated.check())return await yt(),await M(n);k=await G(v,{params:r,url:n,route:{id:a.id}})}const D=await Rn(p,b,i);return D?we({url:n,params:r,branch:b.slice(0,D.idx).concat(D.node),status:E,error:k,route:a}):await Ut(n,{id:a.id},k,E)}else b.push(void 0);return we({url:n,params:r,branch:b,status:200,error:null,route:a,form:t?void 0:null})}async function Rn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Se({status:e,error:t,url:n,route:r}){const a={};let s=null;if(S.server_loads[0]===0)try{const o=await Lt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==le||n.pathname!==location.pathname||Fe)&&await M(n)}try{const o=await Ge({loader:xe,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Me(s)}),c={node:await he(),loader:he,universal:null,server:null,data:null};return we({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof je)return Be(new URL(o.location,location.href),{},0);throw o}}function kt(e){let t;try{if(t=S.hooks.reroute({url:new URL(e)})??e,typeof t=="string"){const n=new URL(e);S.hash?n.hash=t:n.pathname=t,t=n}}catch{return}return t}function qe(e,t){if(!e||ve(e,P,S.hash))return;const n=kt(e);if(!n)return;const r=Rt(n);for(const a of Ae){const s=a.exec(r);if(s)return{id:_e(e),invalidating:t,route:a,params:Dt(s),url:e}}}function Rt(e){return $t(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(P.length))||"/"}function _e(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function It({url:e,type:t,intent:n,delta:r}){let a=!1;const s=xt(_,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||wt.forEach(o=>o(i)),a?null:s}async function H({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=et,block:h=et}){const u=qe(t,!1),y=It({url:t,type:e,delta:n==null?void 0:n.delta,intent:u});if(!y){h();return}const d=I,m=T;f(),Z=!0,me&&$.navigating.set(z.current=y.navigation),ye=c;let l=u&&await Et(u);if(!l){if(ve(t,P,S.hash))return await M(t);l=await Ut(t,{id:null},await G(new $e(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(u==null?void 0:u.url)||t,ye!==c)return y.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(o>=20)l=await Se({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(l.location,t).href,{},o+1,c),!1;else l.props.page.status>=400&&await $.updated.check()&&(await yt(),await M(t));if(Sn(),De(d),bt(m),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),i=n?n.state:i,!n){const b=s?0:1,p={[B]:I+=b,[J]:T+=b,[ut]:i};(s?history.replaceState:history.pushState).call(history,p,"",t),s||bn(I,T)}if(L=null,l.props.page.state=i,me){_=l.state,l.props.page&&(l.props.page.url=t);const b=(await Promise.all(Array.from(An,p=>p(y.navigation)))).filter(p=>typeof p=="function");if(b.length>0){let p=function(){b.forEach(v=>{W.delete(v)})};b.push(p),b.forEach(v=>{W.add(v)})}vt.$set(l.props),_n(l.props.page),_t=!0}else St(l,Pe,!1);const{activeElement:g}=document;await Ot();const w=n?n.scroll:a?Ne():null;if(tt){const b=t.hash&&document.getElementById(decodeURIComponent(S.hash?t.hash.split("#")[2]??"":t.hash.slice(1)));w?scrollTo(w.x,w.y):b?b.scrollIntoView():scrollTo(0,0)}const R=document.activeElement!==g&&document.activeElement!==document.body;!r&&!R&&Pn(),tt=!0,l.props.page&&Object.assign(U,l.props.page),Z=!1,e==="popstate"&&At(T),y.fulfil(void 0),W.forEach(b=>b(y.navigation)),$.navigating.set(z.current=null)}async function Ut(e,t,n,r){return e.origin===le&&e.pathname===location.pathname&&!Fe?await Se({status:r,error:n,url:e,route:t}):await M(e)}function In(){let e;j.addEventListener("mousemove",s=>{const i=s.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(s){s.defaultPrevented||r(s.composedPath()[0],1)}j.addEventListener("mousedown",t),j.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(s=>{for(const i of s)i.isIntersecting&&(Le(new URL(i.target.href)),n.unobserve(i.target))},{threshold:0});function r(s,i){const o=pt(s,j);if(!o)return;const{url:c,external:f,download:h}=Te(o,P,S.hash);if(f||h)return;const u=ue(o),y=c&&_e(_.url)===_e(c);if(!u.reload&&!y)if(i<=u.preload_data){const d=qe(c,!1);d&&En(d)}else i<=u.preload_code&&Le(c)}function a(){n.disconnect();for(const s of j.querySelectorAll("a")){const{url:i,external:o,download:c}=Te(s,P,S.hash);if(o||c)continue;const f=ue(s);f.reload||(f.preload_code===fe.viewport&&n.observe(s),f.preload_code===fe.eager&&Le(i))}}W.add(a),a()}function G(e,t){if(e instanceof be)return e.body;const n=de(e),r=yn(e);return S.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(dt(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ln(e){if(typeof e=="function")pe.push(e);else{const{href:t}=new URL(e,location.href);pe.push(n=>n.href===t)}}function Tn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(nt(),!Z){const a=xt(_,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};wt.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&nt()}),(t=navigator.connection)!=null&&t.saveData||In(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=pt(n.composedPath()[0],j);if(!r)return;const{url:a,external:s,target:i,download:o}=Te(r,P,S.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=ue(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[h,u]=(S.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=h===Re(location);if(s||c.reload&&(!y||!u)){It({url:a,type:"link"})?Z=!0:n.preventDefault();return}if(u!==void 0&&y){const[,d]=_.url.href.split("#");if(d===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=r.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(q=!0,De(I),e(a),!c.replace_state)return;q=!1}n.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),H({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ve(o,P,!1))return;const c=n.target,f=ue(c);if(f.reload)return;n.preventDefault(),n.stopPropagation();const h=new FormData(c),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(h).toString(),H({type:"form",url:o,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[B]){const a=n.state[B];if(ye={},a===I)return;const s=F[a],i=n.state[ut]??{},o=new URL(n.state[tn]??location.href),c=n.state[J],f=_.url?Re(location)===Re(_.url):!1;if(c===T&&(_t||f)){i!==U.state&&(U.state=i),e(o),F[I]=Ne(),s&&scrollTo(s.x,s.y),I=a;return}const u=a-I;await H({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{I=a,T=c},block:()=>{history.go(-u)},nav_token:ye})}else if(!q){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{q?(q=!1,history.replaceState({...history.state,[B]:++I,[J]:T},"",location.href)):S.hash&&_.url.hash===location.hash&&H({type:"goto",url:Pt(_.url)})});for(const n of document.querySelectorAll("link"))vn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(z.current=null)});function e(n){_.url=U.url=n,$.page.set(He(U)),$.page.notify()}}async function xn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,data:i,form:o}){Fe=!0;const c=new URL(location.href);({params:a={},route:s={id:null}}=qe(c,!1)||{});let f,h=!0;try{const u=r.map(async(m,l)=>{const g=i[l];return g!=null&&g.uses&&(g.uses=Tt(g.uses)),Ge({loader:S.nodes[m],url:c,params:a,route:s,parent:async()=>{const w={};for(let R=0;R<l;R+=1)Object.assign(w,(await u[R]).data);return w},server_data_node:Me(g)})}),y=await Promise.all(u),d=Ae.find(({id:m})=>m===s.id);if(d){const m=d.layouts;for(let l=0;l<m.length;l++)m[l]||y.splice(l,0,void 0)}f=we({url:c,params:a,branch:y,status:t,error:n,form:o,route:d??null})}catch(u){if(u instanceof je){await M(new URL(u.location,location.href));return}f=await Se({status:de(u),error:await G(u,{url:c,params:a,route:s}),url:c,route:s}),e.textContent="",h=!1}f.props.page&&(f.props.page.state={}),St(f,e,h)}async function Lt(e,t){var s;const n=new URL(e);n.pathname=Gt(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(mn,"1"),n.searchParams.append(gn,t.map(i=>i?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new be(a.status,i)}return new Promise(async i=>{var y;const o=new Map,c=a.body.getReader(),f=new TextDecoder;function h(d){return dn(d,{...S.decoders,Promise:m=>new Promise((l,g)=>{o.set(m,{fulfil:l,reject:g})})})}let u="";for(;;){const{done:d,value:m}=await c.read();if(d&&!u)break;for(u+=!m&&u?`
|
|
2
|
+
`:f.decode(m,{stream:!0});;){const l=u.indexOf(`
|
|
3
|
+
`);if(l===-1)break;const g=JSON.parse(u.slice(0,l));if(u=u.slice(l+1),g.type==="redirect")return i(g);if(g.type==="data")(y=g.nodes)==null||y.forEach(w=>{(w==null?void 0:w.type)==="data"&&(w.uses=Tt(w.uses),w.data=h(w.data))}),i(g);else if(g.type==="chunk"){const{id:w,data:R,error:b}=g,p=o.get(w);o.delete(w),b?p.reject(h(b)):p.fulfil(h(R))}}}})}function Tt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function Pn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function xt(e,t,n,r){var c,f;let a,s;const i=new Promise((h,u)=>{a=h,s=u});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((f=t==null?void 0:t.route)==null?void 0:f.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function He(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Pt(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}export{be as H,Vn as a,Un as g,U as p,$ as s,Ue as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o,E as f,a as i,n as p,d as c,h as d,c as h}from"./BWo6ipe6.js";function _(s,e,...t){var r=s,n=p,a;o(()=>{n!==(n=e())&&(a&&(c(a),a=null),a=i(()=>n(r,...t)))},f),d&&(r=h)}export{_ as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as d,e as c,f as g,r as l,g as p,i as m,j as b,k,l as v}from"./BWo6ipe6.js";function x(n=!1){const s=m,e=s.l.u;if(!e)return;let r=()=>k(s.s);if(n){let f=0,t={};const _=v(()=>{let i=!1;const a=s.s;for(const o in a)a[o]!==t[o]&&(t[o]=a[o],i=!0);return i&&f++,f});r=()=>p(_)}e.b.length&&d(()=>{u(s,r),l(e.b)}),c(()=>{const f=g(()=>e.m.map(b));return()=>{for(const t of f)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Pn=Array.isArray,Jt=Array.prototype.indexOf,Fn=Array.from,Ln=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,Qt=Object.getOwnPropertyDescriptors,Mn=Object.prototype,Yn=Array.prototype,tn=Object.getPrototypeOf;const Hn=()=>{};function jn(t){return t()}function yt(t){for(var n=0;n<t.length;n++)t[n]()}const y=2,Tt=4,j=8,ot=16,g=32,B=64,K=128,O=256,$=512,d=1024,k=2048,P=4096,b=8192,F=16384,nn=32768,mt=65536,Bn=1<<17,rn=1<<19,At=1<<20,ht=Symbol("$state"),Un=Symbol("legacy props"),Vn=Symbol("");function gt(t){return t===this.v}function en(t,n){return t!=t?n==n:t!==n||t!==null&&typeof t=="object"||typeof t=="function"}function kt(t){return!en(t,this.v)}function ln(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function an(t){throw new Error("https://svelte.dev/e/effect_orphan")}function un(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function $n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function on(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let tt=!1;function zn(){tt=!0}const Wn=1,Xn=2,Jn=4,Qn=8,tr=16,nr=1,rr=2,er=4,lr=8,sr=16,ar=1,ur=2,_n="[",cn="[!",vn="]",Dt={},or=Symbol();function it(t,n){var r={f:0,v:t,reactions:null,equals:gt,rv:0,wv:0};return r}function ir(t){return pn(it(t))}function fr(t,n=!1){var e;const r=it(t);return n||(r.equals=kt),tt&&_!==null&&_.l!==null&&((e=_.l).s??(e.s=[])).push(r),r}function pn(t){return u!==null&&u.f&y&&(m===null?Rn([t]):m.push(t)),t}function _r(t,n){return u!==null&&nt()&&u.f&(y|ot)&&(m===null||!m.includes(t))&&fn(),hn(t,n)}function hn(t,n){return t.equals(n)||(t.v,t.v=n,t.wv=Gt(),It(t,k),nt()&&f!==null&&f.f&d&&!(f.f&(g|B))&&(A===null?Sn([t]):A.push(t))),n}function It(t,n){var r=t.reactions;if(r!==null)for(var e=nt(),l=r.length,s=0;s<l;s++){var a=r[s],o=a.f;o&k||!e&&a===f||(T(a,n),o&(d|O)&&(o&y?It(a,P):et(a)))}}function Rt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let R=!1;function cr(t){R=t}let p;function q(t){if(t===null)throw Rt(),Dt;return p=t}function vr(){return q(x(p))}function pr(t){if(R){if(x(p)!==null)throw Rt(),Dt;p=t}}function hr(t=1){if(R){for(var n=t,r=p;n--;)r=x(r);p=r}}function dr(){for(var t=0,n=p;;){if(n.nodeType===8){var r=n.data;if(r===vn){if(t===0)return n;t-=1}else(r===_n||r===cn)&&(t+=1)}var e=x(n);n.remove(),n=e}}var dt,St,Ot;function Er(){if(dt===void 0){dt=window;var t=Element.prototype,n=Node.prototype;St=pt(n,"firstChild").get,Ot=pt(n,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function Z(t=""){return document.createTextNode(t)}function lt(t){return St.call(t)}function x(t){return Ot.call(t)}function wr(t,n){if(!R)return lt(t);var r=lt(p);if(r===null)r=p.appendChild(Z());else if(n&&r.nodeType!==3){var e=Z();return r==null||r.before(e),q(e),e}return q(r),r}function yr(t,n){if(!R){var r=lt(t);return r instanceof Comment&&r.data===""?x(r):r}if(n&&(p==null?void 0:p.nodeType)!==3){var e=Z();return p==null||p.before(e),q(e),e}return p}function Tr(t,n=1,r=!1){let e=R?p:t;for(var l;n--;)l=e,e=x(e);if(!R)return e;var s=e==null?void 0:e.nodeType;if(r&&s!==3){var a=Z();return e===null?l==null||l.after(a):e.before(a),q(a),a}return q(e),e}function mr(t){t.textContent=""}function dn(t){var n=y|k;f===null?n|=O:f.f|=At;var r=u!==null&&u.f&y?u:null;const e={children:null,ctx:_,deps:null,equals:gt,f:n,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??f};return r!==null&&(r.children??(r.children=[])).push(e),e}function Ar(t){const n=dn(t);return n.equals=kt,n}function xt(t){var n=t.children;if(n!==null){t.children=null;for(var r=0;r<n.length;r+=1){var e=n[r];e.f&y?ft(e):S(e)}}}function En(t){for(var n=t.parent;n!==null;){if(!(n.f&y))return n;n=n.parent}return null}function Ct(t){var n,r=f;J(En(t));try{xt(t),n=$t(t)}finally{J(r)}return n}function Nt(t){var n=Ct(t),r=(I||t.f&O)&&t.deps!==null?P:d;T(t,r),t.equals(n)||(t.v=n,t.wv=Gt())}function ft(t){xt(t),H(t,0),T(t,F),t.v=t.children=t.deps=t.ctx=t.reactions=null}function bt(t){f===null&&u===null&&an(),u!==null&&u.f&O&&sn(),_t&&ln()}function wn(t,n){var r=n.last;r===null?n.last=n.first=t:(r.next=t,t.prev=r,n.last=t)}function L(t,n,r,e=!0){var l=(t&B)!==0,s=f,a={ctx:_,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|k,first:null,fn:n,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var o=C;try{Et(!0),ct(a),a.f|=nn}catch(v){throw S(a),v}finally{Et(o)}}else n!==null&&et(a);var c=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(At|K))===0;if(!c&&!l&&e&&(s!==null&&wn(a,s),u!==null&&u.f&y)){var h=u;(h.children??(h.children=[])).push(a)}return a}function gr(t){const n=L(j,null,!1);return T(n,d),n.teardown=t,n}function kr(t){bt();var n=f!==null&&(f.f&g)!==0&&_!==null&&!_.m;if(n){var r=_;(r.e??(r.e=[])).push({fn:t,effect:f,reaction:u})}else{var e=qt(t);return e}}function Dr(t){return bt(),yn(t)}function Ir(t){const n=L(B,t,!0);return(r={})=>new Promise(e=>{r.outro?An(n,()=>{S(n),e(void 0)}):(S(n),e(void 0))})}function qt(t){return L(Tt,t,!1)}function yn(t){return L(j,t,!0)}function Rr(t){return Tn(t)}function Tn(t,n=0){return L(j|ot|n,t,!0)}function Sr(t,n=!0){return L(j|g,t,!0,n)}function Pt(t){var n=t.teardown;if(n!==null){const r=_t,e=u;wt(!0),X(null);try{n.call(null)}finally{wt(r),X(e)}}}function Ft(t){var n=t.deriveds;if(n!==null){t.deriveds=null;for(var r=0;r<n.length;r+=1)ft(n[r])}}function Lt(t,n=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var e=r.next;S(r,n),r=e}}function mn(t){for(var n=t.first;n!==null;){var r=n.next;n.f&g||S(n),n=r}}function S(t,n=!0){var r=!1;if((n||t.f&rn)&&t.nodes_start!==null){for(var e=t.nodes_start,l=t.nodes_end;e!==null;){var s=e===l?null:x(e);e.remove(),e=s}r=!0}Lt(t,n&&!r),Ft(t),H(t,0),T(t,F);var a=t.transitions;if(a!==null)for(const c of a)c.stop();Pt(t);var o=t.parent;o!==null&&o.first!==null&&Mt(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Mt(t){var n=t.parent,r=t.prev,e=t.next;r!==null&&(r.next=e),e!==null&&(e.prev=r),n!==null&&(n.first===t&&(n.first=e),n.last===t&&(n.last=r))}function An(t,n){var r=[];Yt(t,r,!0),gn(r,()=>{S(t),n&&n()})}function gn(t,n){var r=t.length;if(r>0){var e=()=>--r||n();for(var l of t)l.out(e)}else n()}function Yt(t,n,r){if(!(t.f&b)){if(t.f^=b,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&n.push(a);for(var e=t.first;e!==null;){var l=e.next,s=(e.f&mt)!==0||(e.f&g)!==0;Yt(e,n,s?r:!1),e=l}}}function Or(t){Ht(t,!0)}function Ht(t,n){if(t.f&b){t.f^=b,t.f&d||(t.f^=d),U(t)&&(T(t,k),et(t));for(var r=t.first;r!==null;){var e=r.next,l=(r.f&mt)!==0||(r.f&g)!==0;Ht(r,l?n:!1),r=e}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||n)&&s.in()}}const kn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let z=!1,W=!1,st=[],at=[];function jt(){z=!1;const t=st.slice();st=[],yt(t)}function Bt(){W=!1;const t=at.slice();at=[],yt(t)}function xr(t){z||(z=!0,queueMicrotask(jt)),st.push(t)}function Cr(t){W||(W=!0,kn(Bt)),at.push(t)}function Dn(){z&&jt(),W&&Bt()}const Ut=0,In=1;let V=!1,G=Ut,M=!1,Y=null,C=!1,_t=!1;function Et(t){C=t}function wt(t){_t=t}let D=[],N=0;let u=null;function X(t){u=t}let f=null;function J(t){f=t}let m=null;function Rn(t){m=t}let E=null,w=0,A=null;function Sn(t){A=t}let Vt=1,Q=0,I=!1,_=null;function Gt(){return++Vt}function nt(){return!tt||_!==null&&_.l===null}function U(t){var h;var n=t.f;if(n&k)return!0;if(n&P){var r=t.deps,e=(n&O)!==0;if(r!==null){var l,s,a=(n&$)!==0,o=e&&f!==null&&!I,c=r.length;if(a||o){for(l=0;l<c;l++)s=r[l],(a||!((h=s==null?void 0:s.reactions)!=null&&h.includes(t)))&&(s.reactions??(s.reactions=[])).push(t);a&&(t.f^=$)}for(l=0;l<c;l++)if(s=r[l],U(s)&&Nt(s),s.wv>t.wv)return!0}(!e||f!==null&&!I)&&T(t,d)}return!1}function On(t,n){for(var r=n;r!==null;){if(r.f&K)try{r.fn(t);return}catch{r.f^=K}r=r.parent}throw V=!1,t}function xn(t){return(t.f&F)===0&&(t.parent===null||(t.parent.f&K)===0)}function rt(t,n,r,e){if(V){if(r===null&&(V=!1),xn(n))throw t;return}r!==null&&(V=!0);{On(t,n);return}}function Kt(t,n,r=0){var e=t.reactions;if(e!==null)for(var l=0;l<e.length;l++){var s=e[l];s.f&y?Kt(s,n,r+1):n===s&&(r===0?T(s,k):s.f&d&&T(s,P),et(s))}}function $t(t){var vt;var n=E,r=w,e=A,l=u,s=I,a=m,o=_,c=t.f;E=null,w=0,A=null,u=c&(g|B)?null:t,I=!C&&(c&O)!==0,m=null,_=t.ctx,Q++;try{var h=(0,t.fn)(),v=t.deps;if(E!==null){var i;if(H(t,w),v!==null&&w>0)for(v.length=w+E.length,i=0;i<E.length;i++)v[w+i]=E[i];else t.deps=v=E;if(!I)for(i=w;i<v.length;i++)((vt=v[i]).reactions??(vt.reactions=[])).push(t)}else v!==null&&w<v.length&&(H(t,w),v.length=w);if(nt()&&A!==null&&!(t.f&(y|P|k)))for(i=0;i<A.length;i++)Kt(A[i],t);return l!==null&&Q++,h}finally{E=n,w=r,A=e,u=l,I=s,m=a,_=o}}function Cn(t,n){let r=n.reactions;if(r!==null){var e=Jt.call(r,t);if(e!==-1){var l=r.length-1;l===0?r=n.reactions=null:(r[e]=r[l],r.pop())}}r===null&&n.f&y&&(E===null||!E.includes(n))&&(T(n,P),n.f&(O|$)||(n.f^=$),H(n,0))}function H(t,n){var r=t.deps;if(r!==null)for(var e=n;e<r.length;e++)Cn(t,r[e])}function ct(t){var n=t.f;if(!(n&F)){T(t,d);var r=f,e=_;f=t;try{n&ot?mn(t):Lt(t),Ft(t),Pt(t);var l=$t(t);t.teardown=typeof l=="function"?l:null,t.wv=Vt;var s=t.deps,a}catch(o){rt(o,t,r,e||t.ctx)}finally{f=r}}}function Zt(){if(N>1e3){N=0;try{un()}catch(t){if(Y!==null)rt(t,Y,null);else throw t}}N++}function zt(t){var n=t.length;if(n!==0){Zt();var r=C;C=!0;try{for(var e=0;e<n;e++){var l=t[e];l.f&d||(l.f^=d);var s=[];Wt(l,s),Nn(s)}}finally{C=r}}}function Nn(t){var n=t.length;if(n!==0)for(var r=0;r<n;r++){var e=t[r];if(!(e.f&(F|b)))try{U(e)&&(ct(e),e.deps===null&&e.first===null&&e.nodes_start===null&&(e.teardown===null?Mt(e):e.fn=null))}catch(l){rt(l,e,null,e.ctx)}}}function bn(){if(M=!1,N>1001)return;const t=D;D=[],zt(t),M||(N=0,Y=null)}function et(t){G===Ut&&(M||(M=!0,queueMicrotask(bn))),Y=t;for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(r&(B|g)){if(!(r&d))return;n.f^=d}}D.push(n)}function Wt(t,n){var r=t.first,e=[];t:for(;r!==null;){var l=r.f,s=(l&g)!==0,a=s&&(l&d)!==0,o=r.next;if(!a&&!(l&b))if(l&j){if(s)r.f^=d;else try{U(r)&&ct(r)}catch(i){rt(i,r,null,r.ctx)}var c=r.first;if(c!==null){r=c;continue}}else l&Tt&&e.push(r);if(o===null){let i=r.parent;for(;i!==null;){if(t===i)break t;var h=i.next;if(h!==null){r=h;continue t}i=i.parent}}r=o}for(var v=0;v<e.length;v++)c=e[v],n.push(c),Wt(c,n)}function Xt(t){var n=G,r=D;try{Zt();const l=[];G=In,D=l,M=!1,zt(r);var e=t==null?void 0:t();return Dn(),(D.length>0||l.length>0)&&Xt(),N=0,Y=null,e}finally{G=n,D=r}}async function Nr(){await Promise.resolve(),Xt()}function br(t){var v;var n=t.f,r=(n&y)!==0;if(r&&n&F){var e=Ct(t);return ft(t),e}if(u!==null){m!==null&&m.includes(t)&&on();var l=u.deps;t.rv<Q&&(t.rv=Q,E===null&&l!==null&&l[w]===t?w++:E===null?E=[t]:E.push(t))}else if(r&&t.deps===null)for(var s=t,a=s.parent,o=s;a!==null;)if(a.f&y){var c=a;o=c,a=c.parent}else{var h=a;(v=h.deriveds)!=null&&v.includes(o)||(h.deriveds??(h.deriveds=[])).push(o);break}return r&&(s=t,U(s)&&Nt(s)),t.v}function qr(t){const n=u;try{return u=null,t()}finally{u=n}}const qn=-7169;function T(t,n){t.f=t.f&qn|n}function Pr(t,n=!1,r){_={p:_,c:null,e:null,m:!1,s:t,x:null,l:null},tt&&!n&&(_.l={s:null,u:null,r1:[],r2:it(!1)})}function Fr(t){const n=_;if(n!==null){const a=n.e;if(a!==null){var r=f,e=u;n.e=null;try{for(var l=0;l<a.length;l++){var s=a[l];J(s.effect),X(s.reaction),qt(s.fn)}}finally{J(r),X(e)}}_=n.p,n.m=!0}return{}}function Lr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(ht in t)ut(t);else if(!Array.isArray(t))for(let n in t){const r=t[n];typeof r=="object"&&r&&ht in r&&ut(r)}}}function ut(t,n=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!n.has(t)){n.add(t),t instanceof Date&&t.getTime();for(let e in t)try{ut(t[e],n)}catch{}const r=tn(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=Qt(r);for(let l in e){const s=e[l].get;if(s)try{s.call(t)}catch{}}}}}export{Bn as $,Mn as A,Yn as B,it as C,$n as D,mt as E,_r as F,pt as G,f as H,Zn as I,tn as J,Pn as K,vr as L,cn as M,dr as N,q as O,cr as P,Or as Q,An as R,ht as S,qt as T,or as U,yn as V,xr as W,fr as X,gr as Y,Ln as Z,Kn as _,Sr as a,er as a0,kt as a1,g as a2,B as a3,J as a4,nr as a5,rr as a6,lr as a7,Un as a8,Ar as a9,gn as aA,Qn as aB,tr as aC,Vn as aD,Qt as aE,Cr as aF,nt as aG,dt as aH,sr as aa,Xt as ab,Nr as ac,ir as ad,lt as ae,mr as af,X as ag,u as ah,Z as ai,ar as aj,ur as ak,Er as al,_n as am,x as an,Dt as ao,vn as ap,Rt as aq,Gn as ar,Fn as as,Ir as at,Jn as au,b as av,Wn as aw,hn as ax,Xn as ay,Yt as az,Tn as b,p as c,S as d,kr as e,qr as f,br as g,R as h,_ as i,jn as j,Lr as k,dn as l,zn as m,Hn as n,yr as o,wr as p,pr as q,yt as r,Tr as s,Rr as t,Dr as u,Pr as v,Fr as w,hr as x,en as y,tt as z};
|