@stacksjs/stx 0.2.394 → 0.2.396
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/{chunk-grrwb137.js → chunk-1260e2yv.js} +1 -1
- package/dist/{chunk-14nzhhwk.js → chunk-127ypa40.js} +1 -1
- package/dist/{chunk-xf8s416a.js → chunk-1t80az59.js} +1 -1
- package/dist/{chunk-fnq5ddev.js → chunk-1wm6zqj5.js} +1 -1
- package/dist/{chunk-9cbarfcc.js → chunk-2nt55z1b.js} +1 -1
- package/dist/{chunk-zbxhd7yp.js → chunk-32vxn9kd.js} +1 -1
- package/dist/{chunk-fj38s763.js → chunk-4byxvkzn.js} +2 -2
- package/dist/{chunk-9f5fr80c.js → chunk-4pse0geh.js} +1 -1
- package/dist/{chunk-3sn517bh.js → chunk-4rf7mxs6.js} +1 -1
- package/dist/{chunk-2q6napbj.js → chunk-58a6bzn0.js} +2 -2
- package/dist/{chunk-j9wgtvwp.js → chunk-5b8by1w4.js} +1 -1
- package/dist/{chunk-v1x6apxf.js → chunk-5mh3fpha.js} +15 -2
- package/dist/{chunk-2q9bwe7v.js → chunk-5y9tbnzb.js} +1 -1
- package/dist/{chunk-35tvbs3e.js → chunk-817833d8.js} +1 -1
- package/dist/{chunk-1d9tcdh0.js → chunk-8axek0a6.js} +1 -1
- package/dist/{chunk-vhab7n2x.js → chunk-8zeqzwsd.js} +1 -1
- package/dist/{chunk-vhsza3n0.js → chunk-ats1a74d.js} +5 -2
- package/dist/{chunk-hcx4qbq2.js → chunk-atwrajjq.js} +1 -1
- package/dist/chunk-b2kagama.js +2 -0
- package/dist/{chunk-trzgqqsx.js → chunk-c10nf8ef.js} +1 -1
- package/dist/{chunk-an49az59.js → chunk-cmzyyjwz.js} +1 -1
- package/dist/{chunk-xhz5zhg5.js → chunk-d2zrde0h.js} +1 -1
- package/dist/{chunk-8xc4cv9z.js → chunk-dbxk0wym.js} +1 -1
- package/dist/{chunk-3v5gtrhd.js → chunk-dj9capvb.js} +1 -1
- package/dist/{chunk-9mcb531n.js → chunk-dpafnyqg.js} +1 -1
- package/dist/{chunk-gyksjr2k.js → chunk-ehhqy624.js} +1 -1
- package/dist/{chunk-ap2922rj.js → chunk-em3jpym6.js} +1 -1
- package/dist/{chunk-fznyn3et.js → chunk-er2twjr1.js} +1 -1
- package/dist/{chunk-g8jp7wyn.js → chunk-fb2cy0xx.js} +1 -1
- package/dist/{chunk-ybe6a8pr.js → chunk-fgqc5wne.js} +1 -1
- package/dist/{chunk-ax9cv0wz.js → chunk-hbcf36nw.js} +1 -1
- package/dist/{chunk-kvbdcda5.js → chunk-hh4vy76v.js} +1 -1
- package/dist/{chunk-vrwdzew1.js → chunk-jea2901n.js} +2 -2
- package/dist/{chunk-w5mrng59.js → chunk-jsggyhcg.js} +1 -1
- package/dist/{chunk-7myx6gsh.js → chunk-jzq847yd.js} +1 -1
- package/dist/{chunk-e3k0gjj1.js → chunk-kaaqzwqf.js} +1 -1
- package/dist/{chunk-bmzycf2s.js → chunk-khh1d2a9.js} +1 -1
- package/dist/chunk-km5t630j.js +2 -0
- package/dist/{chunk-x59dzh2q.js → chunk-mv4b8b28.js} +1 -1
- package/dist/{chunk-yajazn0v.js → chunk-pf80cwp6.js} +220 -220
- package/dist/{chunk-fd2ea6w6.js → chunk-pt8vq6be.js} +1 -1
- package/dist/{chunk-xc0sc2bv.js → chunk-pxy0wtn3.js} +9 -9
- package/dist/{chunk-2yjj4awx.js → chunk-q4jymqj3.js} +1 -1
- package/dist/{chunk-5jh75095.js → chunk-rc159ysy.js} +1 -1
- package/dist/{chunk-vw0vkkwf.js → chunk-rs70a3j6.js} +1 -1
- package/dist/{chunk-k30cnmqg.js → chunk-rxf0264w.js} +1 -1
- package/dist/{chunk-kqc8ktjf.js → chunk-rz4vp8t9.js} +1 -1
- package/dist/{chunk-4cgfaqf0.js → chunk-twtaa0nh.js} +1 -1
- package/dist/{chunk-hm2fb439.js → chunk-vg8xrkbg.js} +2 -2
- package/dist/{chunk-rrngg6vf.js → chunk-w3ajb1nk.js} +1 -1
- package/dist/chunk-w7zaavk8.js +2 -0
- package/dist/{chunk-8sw55jct.js → chunk-z46czwd3.js} +1 -1
- package/dist/{chunk-pjf5sgr8.js → chunk-zmwj9r73.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/composables/use-router.js +4 -3
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/signals.js +5 -2
- package/dist/ssg.js +2 -2
- package/dist/utils.js +12 -1
- package/package.json +5 -5
- package/dist/chunk-ke5myms8.js +0 -2
- package/dist/chunk-pd7p6k4j.js +0 -2
- package/dist/chunk-rqf0z85e.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$v as d,Aw as E,Bw as F,Cw as G,Dw as H,Ew as I,Fw as J,Hw as K,Iw as L,Kw as M,Yv as a,Zv as b,_v as c,aw as e,bw as f,cw as g,dw as h,ew as i,fw as j,gw as k,hw as l,iw as m,jw as n,kw as o,lw as p,mw as q,nw as r,ow as s,pw as t,qw as u,rw as v,sw as w,tw as x,uw as y,vw as z,ww as A,xw as B,yw as C,zw as D}from"./chunk-
|
|
2
|
+
import{$v as d,Aw as E,Bw as F,Cw as G,Dw as H,Ew as I,Fw as J,Hw as K,Iw as L,Kw as M,Yv as a,Zv as b,_v as c,aw as e,bw as f,cw as g,dw as h,ew as i,fw as j,gw as k,hw as l,iw as m,jw as n,kw as o,lw as p,mw as q,nw as r,ow as s,pw as t,qw as u,rw as v,sw as w,tw as x,uw as y,vw as z,ww as A,xw as B,yw as C,zw as D}from"./chunk-5mh3fpha.js";import"./chunk-n0hrb3ek.js";M();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,L as getRouterScriptDev,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as Qn,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Rn,Db as Zo,Dc as eq,Dd as er,De as ks,E as Tl,Ea as Sn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as Ul,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as Vl,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Zn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as _n,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as $n,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,N as am,Na as co,Nb as op,Nc as oq,Nd as or,O as bm,Oa as eo,Ob as pp,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as qp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Kr,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Lr,da as sm,db as vo,dc as Gp,dd as Gq,de as Mr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Ho,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Io,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as rn,pb as Jo,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as sn,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as tn,rb as Mo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as No,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as Oo,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Ro,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as So,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as To,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-xc0sc2bv.js";import{Le as hp,Me as ip,Ne as jp,Oe as kp,Pe as lp,Qe as mp,Re as np}from"./chunk-g8jp7wyn.js";import{Se as Fo,Te as Go}from"./chunk-7hb89n3z.js";import{Ue as Lo}from"./chunk-bmzycf2s.js";import{Ve as qn}from"./chunk-k30cnmqg.js";import{We as Wn,Xe as Xn,Ye as Yn,Ze as Qo}from"./chunk-fnq5ddev.js";import{$e as dl,_e as cl,af as el,bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql}from"./chunk-n0d7nwhd.js";import{nf as Hl,of as Il,pf as Jl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl}from"./chunk-dct8xw04.js";import{Af as Gl,zf as Fl}from"./chunk-wf45k2yw.js";import{Bf as rl,Cf as sl,Df as tl,Ef as ul,Ff as vl,Gf as wl,Hf as xl,Jf as yl,Kf as zl,Lf as Al,Mf as Bl,Nf as Cl,Of as Dl,Rf as El}from"./chunk-efsr5fbm.js";import{Sf as _m,Tf as $m,Uf as an,Vf as bn,Wf as cn,Xf as pn}from"./chunk-gyksjr2k.js";import{$f as Hm,Yf as Em,Zf as Fm,_f as Gm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as dn,ng as en,og as fn,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on}from"./chunk-fj38s763.js";import{xg as Um,yg as Vm}from"./chunk-0knxnyq6.js";import{Ag as Fn,Bg as Gn,Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,zg as En}from"./chunk-634gaa9d.js";import{Lg as ui,Mg as vi,Ng as wi,Og as xi,Pg as yi,Qg as zi}from"./chunk-7myx6gsh.js";import{Rg as Pj,Sg as Qj,Tg as Rj,Xg as Sj,Yg as Tj,Zg as Uj}from"./chunk-nptdshhw.js";import{$g as $j,_g as _j,ah as ak,bh as bk,ch as ck,dh as dk,eh as ek,fh as fk,gh as gk,hh as hk,ih as ik}from"./chunk-k7f7391g.js";import{jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj,th as Oj}from"./chunk-bcpjhcpn.js";import{uh as Ak,wh as Bk}from"./chunk-y4zddt5r.js";import{Ch as Ph,Dh as Qh,Eh as Rh,Fh as Sh,Gh as Th,Hh as Uh}from"./chunk-g7bpkpd4.js";import{Jh as Vh,Kh as Wh,Lh as Xh,Mh as Yh,Nh as Zh,Oh as _h,Ph as $h,Qh as ai,Rh as bi,Sh as ci,Th as di,Uh as ei,Vh as fi,Wh as gi}from"./chunk-k33778kc.js";import{$h as ki,Yh as hi,Zh as ii,_h as ji}from"./chunk-ys4hpkrp.js";import{ei as li}from"./chunk-g1vxsvqv.js";import{hi as oh}from"./chunk-5jh75095.js";import{ii as ph}from"./chunk-fqq5k9ve.js";import{ji as qh,ki as rh}from"./chunk-ya5m5vbn.js";import{li as sh,mi as th,ni as uh,oi as vh,pi as wh,qi as xh}from"./chunk-y4nzmkea.js";import{ri as yh,si as zh,ti as Ah,ui as Bh,vi as Ch}from"./chunk-7kw3grq5.js";import{Ai as Hh,wi as Dh,xi as Eh,yi as Fh,zi as Gh}from"./chunk-c79nfdyj.js";import{Bi as Ih,Ci as Jh,Di as Kh,Ei as Lh,Fi as Mh,Gi as Nh,Hi as Oh}from"./chunk-ej8mv2k6.js";import{Ii as mh,Ji as nh}from"./chunk-3v5gtrhd.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-2q9bwe7v.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-vhsza3n0.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-xf8s416a.js";import{pk as Er,qk as Fr,rk as Gr,sk as Hr,tk as Ir,uk as Jr}from"./chunk-hm2fb439.js";import{Ak as Xm,Bk as Ym,Ck as Zm,vk as Uk,wk as Vk,xk as Wk,yk as Xk,zk as Wm}from"./chunk-zbxhd7yp.js";import"./chunk-frp9fc7j.js";import"./chunk-hcx4qbq2.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-vrwdzew1.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Gr as Ik,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Hr as Jk,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Ir as Kk,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as jh,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as kh,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pp as lh,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qp as mi,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as ni,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Up as oi,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,br as Cj,cm as Wb,cn as od,co as Ke,cp as Ag,cr as Dj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Ej,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as ri,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as si,gr as Xj,hm as lc,hn as xd,hp as Fg,hq as ti,hr as Yj,im as mc,in as yd,ip as Gg,iq as Ai,ir as Zj,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Pi,xr as xk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Qi,yr as yk,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as Ri,zr as zk}from"./chunk-yajazn0v.js";import{$r as ca,Jr as M,Kr as N,Lr as O,Mr as P,Nr as Q,Or as R,Pr as S,Qr as T,Rr as U,Sr as V,Tr as W,Ur as X,Vr as Y,Wr as Z,Xr as _,Yr as $,Zr as aa,_r as ba,as as da,bs as ea,cs as fa,ds as ia,es as ja,fs as ka,gs as la,hs as ma,is as na,js as oa,ks as pa,ls as qa,ms as ra,ns as sa,os as ta,ps as ua,qs as va,rs as wa}from"./chunk-fc8471kb.js";import{ss as ga,ts as ha}from"./chunk-3wa1ybzj.js";import{us as Rb,vs as Sb,ws as Tb}from"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import{Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi,Js as Yi,Ks as Zi,Ls as _i}from"./chunk-q9zsjgpf.js";import{bt as Rc,ct as Sc,dt as Tc,et as Uc,ft as Vc,ht as Wc,qt as Xc,rt as Yc,st as Zc}from"./chunk-2yjj4awx.js";import{tt as Xb,ut as Yb,vt as Zb,wt as _b,xt as $b,yt as ac}from"./chunk-n98anpe9.js";import{Ft as Fe,Ht as Ge,Kt as He}from"./chunk-y70wabha.js";import"./chunk-ax9cv0wz.js";import{Pt as cc,Qt as dc}from"./chunk-hestqebq.js";import{Ut as fg,Vt as gg,Wt as hg,Xt as ig,Yt as jg,Zt as kg,_t as lg,au as mg,bu as ng,cu as og,du as pg}from"./chunk-qsq1eha8.js";import{Au as ke,Bu as le,Cu as me,Du as ne,Eu as oe,Fu as pe,Gu as qe,eu as rd,fu as sd,gu as td,hu as ud,ru as be,su as ce,tu as de,uu as ee,vu as fe,wu as ge,xu as he,yu as ie,zu as je}from"./chunk-3rf705aq.js";import{$u as y,Hu as b,Iu as c,Ju as d,Ku as e,Lu as f,Mu as g,Nu as h,Ou as i,Pu as m,Qu as n,Ru as o,Su as p,Tu as q,Uu as r,Vu as s,Wu as t,Xu as u,Yu as v,Zu as w,_u as x,av as z,bv as A,cv as B,dv as C,ev as D,fv as E,gv as F,hv as G,iv as H,jv as I,kv as J,lv as K,mv as L}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import{Cv as ob,Dv as pb,Ev as qb,Fv as rb,Gv as sb,Hv as tb,Iv as ub,Jv as vb,Kv as wb,Lv as xb,Mv as yb,Nv as zb,Ov as Ab,Pv as Bb,Qv as Cb,Rv as Db,Sv as Eb,Tv as Fb,Uv as Gb,Vv as Hb,Wv as Ib,Xv as Jb}from"./chunk-8hqayvjh.js";import{$v as Pa,Aw as db,Bw as eb,Cw as fb,Dw as gb,Fw as hb,aw as Qa,dw as Ra,iw as Sa,jw as Ta,pw as Ua,qw as Va,rw as Wa,sw as Xa,tw as Ya,uw as Za,vw as _a,ww as $a,xw as ab,yw as bb,zw as cb}from"./chunk-v1x6apxf.js";import"./chunk-zn70s4gs.js";import{Rw as j,Sw as k,Tw as l}from"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{ml as writeNetlifyConfig,en as writeManifest,Rl as writeImageManifest,xp as wrapComponentForHMR,es as withDefaults,zk as webComponentDirectiveHandler,mq as watermark,or as watchViews,$l as watchMultiple,am as watchEffect,_l as watch,Me as warmImagePlaceholders,nm as waitForStore,X as waitForLocale,ip as virtualPathFor,mk as videoDirective,G as validators,is as validated,Ce as validateValueEnhanced,pi as validateTemplate,Um as validateRouteRules,rq as validateParams,De as validateFormEnhanced,dr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,sn as validateComponentScripts,Qn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,mm as useStoreOrThrow,Pp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,om as useRouteParams,qm as useRouteParamOrThrow,pm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,sm as useMiddlewareValue,rm as useMiddlewareState,Zk as useLocalStorage,qp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,fr as uploadFiles,er as uploadFile,jm as updateInstance,pf as untrack,Vi as unregisterDirective,km as unmountInstance,Qc as unescapeHtml,mp as typecheckStxFiles,Di as transpileTypeScript,Tr as translate,Ba as transitionDirective,lc as transformAutoImports,Kn as toUsers,Jn as toUser,Xp as thumbnail,Yq as thumbHashToRGBA,Zq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,up as stxClientHelpers,kg as structuredDataDirective,Wr as stripLocalePrefix,Rm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,vo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Gn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Qo as startProductionServer,Lo as startInteractive,Fn as startBroadcasting,Yr as stampLocaleLayoutGroup,Ia as staggerDirective,pq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Nm as spaNavVaryHeaders,jp as sourcePathFor,wq as smartBatchSign,Hi as slotContentHasExpressions,uq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,zq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,$p as sharpen,ls as shape,Zb as setStateDir,wm as setRouteParams,xm as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Tl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,os as serveStxFile,qs as serveMultipleStxFiles,Lk as serveMarkdownFile,$o as serveFile,rs as serveApp,_o as serve,Ap as serializeState,gn as serializeSetCookie,bq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,fq as saturation,sq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,kn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,hm as runHooks,Mr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,gq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Sr as resolveI18n,Vp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,zp as resetHMRHandler,o as resetErrorConfig,gs as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,mr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,vr as renderToString,wr as renderToStream,xr as renderToDOM,Xq as renderThumbhashToCanvas,Jr as renderTemplateString,Hr as renderTemplate,Ir as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Hq as renderProtectedVideo,Gq as renderProtectedImg,tq as renderMediaUpload,Gr as renderMarkdownView,Ym as renderLayoutTypes,Vj as renderImgComponent,Hl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,pr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Kp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Rp as registerStoresClient,um as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Tn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Xl as ref,Do as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,Yl as reactive,kq as quality,Eq as pruneSignatureCache,Oj as pruneCache,sf as provide,Fr as protectCodeBlocks,fs as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Pm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Iq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Jl as processImageComponents,wl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ms as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,pp as preloadIslandHandlers,Ne as preloadIconCollection,Bn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Tp as parseUrl,_q as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Jq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Il as parseImageComponent,hn as parseFormBody,Cd as parseExpressionWithFilters,Un as parseDefaults,Ao as parseCookies,Gm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,hs as optional,Cn as optimizeTemplate,Ol as optimizeImage,Pl as optimizeDirectory,js as oneOf,sg as onceStore,em as onUpdated,_c as onUpdate,gm as onUnmounted,Bm as onServer,cm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Am as onClient,dm as onBeforeUpdate,fm as onBeforeUnmount,bm as onBeforeMount,Nh as onActivated,Tq as observeElement,Eo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Xn as negotiateEncoding,Ua as navigateTo,im as mountInstance,Ea as motionDirective,Md as moderateCspPreset,An as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Up as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Vr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,fn as loadManifest,Pq as loadElement,Hn as loadChannels,Lb as listensPassively,as as lintStxStrict,Rq as lazyLoadAll,Qq as lazyLoad,Ha as keyframeDirective,tr as jsxs,ur as jsxDEV,sr as jsx,Co as jsonResponse,Ye as islandDirective,l as isTest,Sm as isSpaNavigation,Lm as isSpaNavRequest,xq as isSignatureValid,nf as isSignal,ul as isSharpAvailable,oo as isServerEnvironment,ym as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Mq as isNativeLazySupported,Er as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Nq as isIntersectionObserverSupported,Cl as isImageFile,vl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,no as isEdgeEnvironment,bs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Wn as isCompressible,zm as isClient,Fh as isAsyncComponent,jn as isActionableMethod,cq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Rr as injectThemeBootstrap,ig as injectSeoTags,Or as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,tm as initStoreRegistry,pl as initNetlify,rp as initLoadingIndicator,Oq as initLazyLoading,Ko as initFile,Wq as initBlurUp,ar as initAllBlurUp,Zj as imgDirective,Ml as imageDirective,nn as hydrateTemplateStream,mn as hydrateTemplate,op as hydrateIslands,ai as hydrateIsland,on as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Hp as hydrate,Zo as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Mp as hasStore,xc as hasPlaceholders,nl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Fl as handleImageRequest,zf as handleError,Br as h,Bl as groupVariantsByFormat,aq as grayscale,So as gitHash,un as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,il as getTotalSize,yq as getTimeUntilExpiry,mh as getStoreScript,Np as getStoreNames,Lp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Dl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,xl as getImageMetadata,Fe as getImageDelivery,Gp as getHydrationRuntime,vm as getHydratedStoreState,Sk as getHmrServer,be as getHead,yp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Al as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Ul as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Cq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,En as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,hr as generateVideoPreview,Ee as generateValidationScript,ir as generateUploadRuntime,vn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,fo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Bp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,yl as generateSrcSet,ek as generateSpriteSheet,qr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,zl as generateSizes,mg as generateSitemapIndex,Pr as generateSitemap,Lq as generateSimpleMediaPicker,Fq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Qr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,jl as generateNetlifyToml,kr as generateMinifiedMediaRuntime,jr as generateMediaRuntime,Kq as generateMediaManagerEmbed,dn as generateManifest,tp as generateLoadingIndicatorHtml,Vq as generateLazyLoadRuntime,Zm as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,gr as generateImagePreview,Ql as generateImageManifest,Fp as generateHydrationScript,af as generateHydrationRuntime,Ip as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,wp as generateHMRClientScript,fk as generateHLSManifest,Cp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ko as generateDocs,go as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,eo as generateComponentsDocs,Wh as generateComponentManifest,bo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,lm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,br as generateBlurUpRuntime,cr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,np as formatTypecheckDiagnostics,gp as formatTypeErrors,Ho as formatStxContent,hl as formatSize,Ta as formatRoutes,Io as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Nr as formatDoctorReport,ho as formatDocsAsMarkdown,jo as formatDocsAsJson,io as formatDocsAsHtml,jq as format,zn as foldConstants,iq as flipVertical,hq as flipHorizontal,_m as fingerprint,lp as findStxModuleDeclarations,kp as findRuntimeTypeDeclarations,Lr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,wn as findDeadCode,wn as findDeadBranches,Hm as findContainerRegion,co as findComponentFiles,ps as findCommonDir,gl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Dp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Tm as extractContainerContent,$n as extractComponentProps,Xh as extractComponentName,ao as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,yn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,Zn as enableDevTools,xn as eliminateDeadCode,ff as effect,qq as dprUrls,lo as docsCommand,ec as discoverServerApi,Xm as discoverLayoutNames,Uq as disconnectObserver,_n as disableDevTools,F as devHelpers,Om as detectShell,mo as detectRuntime,kl as detectProjectConfig,rj as detectFormat,rn as detectBuildMode,ef as derived,ol as deploy,Gk as defineStxConfig,Qp as defineStore,Bf as defineSlots,$r as defineSiteConfig,ds as definePropsWithValidation,cs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Dr as defineCustomElement,Po as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Ro as defineApiHandler,lr as defaultMediaConfig,Sl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,ns as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Km as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,$q as crossfadeTransition,Wp as crop,Ph as createVirtualList,lk as createVideoDirective,yo as createVercelHandler,dp as createTypeChecker,fa as createTranslateFilter,uo as createTextEncoderStream,Cr as createStxApp,to as createStreamingResponse,We as createStreamRenderer,Op as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Wl as createScope,zh as createSSRSuspense,bf as createRouter,Vm as createRouteRuleResolver,eb as createRouteLocation,bp as createRoute,Xl as createRef,Yl as createReactive,Df as createProvideContext,Uo as createProject,Oo as createProductionBuild,tc as createPlaceholder,Dn as createOptimizedBuild,zo as createNetlifyHandler,cl as createNetlifyClient,fb as createMiddlewareContext,ap as createMiddleware,Sq as createLazyObserver,Jh as createKeepAliveCache,qo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Nl as createImagePlugin,Gl as createImageHandler,Ll as createImageDirective,nb as createHeatmapAggregator,fl as createFileManifest,po as createEnvAccessor,z as createEnhancedError,so as createEdgeHandler,ro as createEdgeCache,Ni as createDetailedErrorMessage,xo as createDenoHandler,ll as createDefaultNetlifyConfig,Zd as createCspHeaders,Bo as createCookie,Zl as createComputed,Vl as createComponentInstance,wo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Cr as createApp,Ka as createAnimationTimeline,Zp as cover,_f as convertToCommonJS,eq as contrast,Yp as contain,y as consoleError,m as configureErrorHandling,Fk as config,Zl as computed,Yn as compressResponse,Bg as composerPattern,Ag as composer,Qm as composeShellWithPage,Sn as componentDirective,Ii as componentClientSignalNames,cn as compileTemplate,a as collectRepeatedFlag,el as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Dq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Kl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,sp as cleanupLoadingIndicator,Em as classifyScript,Fm as classifyAllScripts,ep as checkTemplateFile,fp as checkTemplate,Uf as checkCache,Aq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Nn as channel,Go as captureScreenshots,Fo as captureScreenshot,Z as cancelPendingLoads,dl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,hp as buildVirtualSource,nr as buildViews,Sp as buildUrl,Qe as buildSuspenseResolveScript,_r as buildStaticSite,qb as buildRuntimeGlobalsDestructure,$m as buildRuntimeAsset,an as buildRouterAsset,Zr as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,pn as buildForProduction,Vn as buildComponentLibrary,Bq as buildAuthParams,qn as buildApp,Xr as buildAlternateLinks,No as build,Ln as broadcastPrivate,Mn as broadcastPresence,In as broadcast,dq as brightness,Tb as bracketDepths,_p as blur,Jb as blankInertHtmlRegions,vq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,lq as auto,ja as attributeValue,bn as assetTags,Mb as asInvocableStatement,ks as arrayOf,Ur as applyTranslations,Sj as applyTransformations,zi as applySlots,Rn as applyPropDefaults,oq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Mm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,tn as analyzeUsage,Cm as analyzeTemplate,Dm as analyzeProject,tn as analyzeDirectiveUsage,ed as analyticsDirective,Xo as addStore,Wo as addPage,Sd as addNonceToInlineContent,Yo as addLayout,Vo as addComponent,ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,cp as TemplateTypeChecker,Jo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,yr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Im as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mo as ProductionBuild,Ar as Portal,To as PROJECT_TEMPLATES,nq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Jp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Wm as LAYOUT_TYPES_FILE,Pj as ImageProcessorCache,El as ImageProcessingError,Ep as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,rr as Fragment,zr as For,Jm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,ql as DeployError,rl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,tl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,sl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,vp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Pn as BroadcastServer,On as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Kr as $path};
|
|
2
|
+
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as Qn,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Rn,Db as Zo,Dc as eq,Dd as er,De as ks,E as Tl,Ea as Sn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as Ul,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as Vl,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Zn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as _n,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as $n,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,N as am,Na as co,Nb as op,Nc as oq,Nd as or,O as bm,Oa as eo,Ob as pp,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as qp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Kr,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Lr,da as sm,db as vo,dc as Gp,dd as Gq,de as Mr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Ho,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Io,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as rn,pb as Jo,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as sn,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as tn,rb as Mo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as No,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as Oo,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Ro,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as So,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as To,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-pxy0wtn3.js";import{Le as hp,Me as ip,Ne as jp,Oe as kp,Pe as lp,Qe as mp,Re as np}from"./chunk-fb2cy0xx.js";import{Se as Fo,Te as Go}from"./chunk-7hb89n3z.js";import{Ue as Lo}from"./chunk-khh1d2a9.js";import{Ve as qn}from"./chunk-rxf0264w.js";import{We as Wn,Xe as Xn,Ye as Yn,Ze as Qo}from"./chunk-1wm6zqj5.js";import{$e as dl,_e as cl,af as el,bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql}from"./chunk-n0d7nwhd.js";import{nf as Hl,of as Il,pf as Jl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl}from"./chunk-dct8xw04.js";import{Af as Gl,zf as Fl}from"./chunk-wf45k2yw.js";import{Bf as rl,Cf as sl,Df as tl,Ef as ul,Ff as vl,Gf as wl,Hf as xl,Jf as yl,Kf as zl,Lf as Al,Mf as Bl,Nf as Cl,Of as Dl,Rf as El}from"./chunk-efsr5fbm.js";import{Sf as _m,Tf as $m,Uf as an,Vf as bn,Wf as cn,Xf as pn}from"./chunk-ehhqy624.js";import{$f as Hm,Yf as Em,Zf as Fm,_f as Gm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as dn,ng as en,og as fn,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on}from"./chunk-4byxvkzn.js";import{xg as Um,yg as Vm}from"./chunk-0knxnyq6.js";import{Ag as Fn,Bg as Gn,Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,zg as En}from"./chunk-634gaa9d.js";import{Lg as ui,Mg as vi,Ng as wi,Og as xi,Pg as yi,Qg as zi}from"./chunk-jzq847yd.js";import{Rg as Pj,Sg as Qj,Tg as Rj,Xg as Sj,Yg as Tj,Zg as Uj}from"./chunk-nptdshhw.js";import{$g as $j,_g as _j,ah as ak,bh as bk,ch as ck,dh as dk,eh as ek,fh as fk,gh as gk,hh as hk,ih as ik}from"./chunk-k7f7391g.js";import{jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj,th as Oj}from"./chunk-bcpjhcpn.js";import{uh as Ak,wh as Bk}from"./chunk-y4zddt5r.js";import{Ch as Ph,Dh as Qh,Eh as Rh,Fh as Sh,Gh as Th,Hh as Uh}from"./chunk-g7bpkpd4.js";import{Jh as Vh,Kh as Wh,Lh as Xh,Mh as Yh,Nh as Zh,Oh as _h,Ph as $h,Qh as ai,Rh as bi,Sh as ci,Th as di,Uh as ei,Vh as fi,Wh as gi}from"./chunk-k33778kc.js";import{$h as ki,Yh as hi,Zh as ii,_h as ji}from"./chunk-ys4hpkrp.js";import{ei as li}from"./chunk-g1vxsvqv.js";import{hi as oh}from"./chunk-rc159ysy.js";import{ii as ph}from"./chunk-fqq5k9ve.js";import{ji as qh,ki as rh}from"./chunk-ya5m5vbn.js";import{li as sh,mi as th,ni as uh,oi as vh,pi as wh,qi as xh}from"./chunk-y4nzmkea.js";import{ri as yh,si as zh,ti as Ah,ui as Bh,vi as Ch}from"./chunk-7kw3grq5.js";import{Ai as Hh,wi as Dh,xi as Eh,yi as Fh,zi as Gh}from"./chunk-c79nfdyj.js";import{Bi as Ih,Ci as Jh,Di as Kh,Ei as Lh,Fi as Mh,Gi as Nh,Hi as Oh}from"./chunk-ej8mv2k6.js";import{Ii as mh,Ji as nh}from"./chunk-dj9capvb.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-5y9tbnzb.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-ats1a74d.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-1t80az59.js";import{pk as Er,qk as Fr,rk as Gr,sk as Hr,tk as Ir,uk as Jr}from"./chunk-vg8xrkbg.js";import{Ak as Xm,Bk as Ym,Ck as Zm,vk as Uk,wk as Vk,xk as Wk,yk as Xk,zk as Wm}from"./chunk-32vxn9kd.js";import"./chunk-frp9fc7j.js";import"./chunk-atwrajjq.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-jea2901n.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Gr as Ik,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Hr as Jk,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Ir as Kk,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as jh,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as kh,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pp as lh,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qp as mi,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as ni,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Up as oi,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,br as Cj,cm as Wb,cn as od,co as Ke,cp as Ag,cr as Dj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Ej,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as ri,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as si,gr as Xj,hm as lc,hn as xd,hp as Fg,hq as ti,hr as Yj,im as mc,in as yd,ip as Gg,iq as Ai,ir as Zj,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Pi,xr as xk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Qi,yr as yk,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as Ri,zr as zk}from"./chunk-pf80cwp6.js";import{$r as ca,Jr as M,Kr as N,Lr as O,Mr as P,Nr as Q,Or as R,Pr as S,Qr as T,Rr as U,Sr as V,Tr as W,Ur as X,Vr as Y,Wr as Z,Xr as _,Yr as $,Zr as aa,_r as ba,as as da,bs as ea,cs as fa,ds as ia,es as ja,fs as ka,gs as la,hs as ma,is as na,js as oa,ks as pa,ls as qa,ms as ra,ns as sa,os as ta,ps as ua,qs as va,rs as wa}from"./chunk-fc8471kb.js";import{ss as ga,ts as ha}from"./chunk-3wa1ybzj.js";import{us as Rb,vs as Sb,ws as Tb}from"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import{Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi,Js as Yi,Ks as Zi,Ls as _i}from"./chunk-q9zsjgpf.js";import{bt as Rc,ct as Sc,dt as Tc,et as Uc,ft as Vc,ht as Wc,qt as Xc,rt as Yc,st as Zc}from"./chunk-q4jymqj3.js";import{tt as Xb,ut as Yb,vt as Zb,wt as _b,xt as $b,yt as ac}from"./chunk-n98anpe9.js";import{Ft as Fe,Ht as Ge,Kt as He}from"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import{Pt as cc,Qt as dc}from"./chunk-hestqebq.js";import{Ut as fg,Vt as gg,Wt as hg,Xt as ig,Yt as jg,Zt as kg,_t as lg,au as mg,bu as ng,cu as og,du as pg}from"./chunk-qsq1eha8.js";import{Au as ke,Bu as le,Cu as me,Du as ne,Eu as oe,Fu as pe,Gu as qe,eu as rd,fu as sd,gu as td,hu as ud,ru as be,su as ce,tu as de,uu as ee,vu as fe,wu as ge,xu as he,yu as ie,zu as je}from"./chunk-3rf705aq.js";import{$u as y,Hu as b,Iu as c,Ju as d,Ku as e,Lu as f,Mu as g,Nu as h,Ou as i,Pu as m,Qu as n,Ru as o,Su as p,Tu as q,Uu as r,Vu as s,Wu as t,Xu as u,Yu as v,Zu as w,_u as x,av as z,bv as A,cv as B,dv as C,ev as D,fv as E,gv as F,hv as G,iv as H,jv as I,kv as J,lv as K,mv as L}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import{Cv as ob,Dv as pb,Ev as qb,Fv as rb,Gv as sb,Hv as tb,Iv as ub,Jv as vb,Kv as wb,Lv as xb,Mv as yb,Nv as zb,Ov as Ab,Pv as Bb,Qv as Cb,Rv as Db,Sv as Eb,Tv as Fb,Uv as Gb,Vv as Hb,Wv as Ib,Xv as Jb}from"./chunk-8hqayvjh.js";import{$v as Pa,Aw as db,Bw as eb,Cw as fb,Dw as gb,Fw as hb,aw as Qa,dw as Ra,iw as Sa,jw as Ta,pw as Ua,qw as Va,rw as Wa,sw as Xa,tw as Ya,uw as Za,vw as _a,ww as $a,xw as ab,yw as bb,zw as cb}from"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import{Rw as j,Sw as k,Tw as l}from"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{ml as writeNetlifyConfig,en as writeManifest,Rl as writeImageManifest,xp as wrapComponentForHMR,es as withDefaults,zk as webComponentDirectiveHandler,mq as watermark,or as watchViews,$l as watchMultiple,am as watchEffect,_l as watch,Me as warmImagePlaceholders,nm as waitForStore,X as waitForLocale,ip as virtualPathFor,mk as videoDirective,G as validators,is as validated,Ce as validateValueEnhanced,pi as validateTemplate,Um as validateRouteRules,rq as validateParams,De as validateFormEnhanced,dr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,sn as validateComponentScripts,Qn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,mm as useStoreOrThrow,Pp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,om as useRouteParams,qm as useRouteParamOrThrow,pm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,sm as useMiddlewareValue,rm as useMiddlewareState,Zk as useLocalStorage,qp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,fr as uploadFiles,er as uploadFile,jm as updateInstance,pf as untrack,Vi as unregisterDirective,km as unmountInstance,Qc as unescapeHtml,mp as typecheckStxFiles,Di as transpileTypeScript,Tr as translate,Ba as transitionDirective,lc as transformAutoImports,Kn as toUsers,Jn as toUser,Xp as thumbnail,Yq as thumbHashToRGBA,Zq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,up as stxClientHelpers,kg as structuredDataDirective,Wr as stripLocalePrefix,Rm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,vo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Gn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Qo as startProductionServer,Lo as startInteractive,Fn as startBroadcasting,Yr as stampLocaleLayoutGroup,Ia as staggerDirective,pq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Nm as spaNavVaryHeaders,jp as sourcePathFor,wq as smartBatchSign,Hi as slotContentHasExpressions,uq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,zq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,$p as sharpen,ls as shape,Zb as setStateDir,wm as setRouteParams,xm as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Tl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,os as serveStxFile,qs as serveMultipleStxFiles,Lk as serveMarkdownFile,$o as serveFile,rs as serveApp,_o as serve,Ap as serializeState,gn as serializeSetCookie,bq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,fq as saturation,sq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,kn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,hm as runHooks,Mr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,gq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Sr as resolveI18n,Vp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,zp as resetHMRHandler,o as resetErrorConfig,gs as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,mr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,vr as renderToString,wr as renderToStream,xr as renderToDOM,Xq as renderThumbhashToCanvas,Jr as renderTemplateString,Hr as renderTemplate,Ir as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Hq as renderProtectedVideo,Gq as renderProtectedImg,tq as renderMediaUpload,Gr as renderMarkdownView,Ym as renderLayoutTypes,Vj as renderImgComponent,Hl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,pr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Kp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Rp as registerStoresClient,um as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Tn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Xl as ref,Do as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,Yl as reactive,kq as quality,Eq as pruneSignatureCache,Oj as pruneCache,sf as provide,Fr as protectCodeBlocks,fs as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Pm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Iq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Jl as processImageComponents,wl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ms as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,pp as preloadIslandHandlers,Ne as preloadIconCollection,Bn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Tp as parseUrl,_q as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Jq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Il as parseImageComponent,hn as parseFormBody,Cd as parseExpressionWithFilters,Un as parseDefaults,Ao as parseCookies,Gm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,hs as optional,Cn as optimizeTemplate,Ol as optimizeImage,Pl as optimizeDirectory,js as oneOf,sg as onceStore,em as onUpdated,_c as onUpdate,gm as onUnmounted,Bm as onServer,cm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Am as onClient,dm as onBeforeUpdate,fm as onBeforeUnmount,bm as onBeforeMount,Nh as onActivated,Tq as observeElement,Eo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Xn as negotiateEncoding,Ua as navigateTo,im as mountInstance,Ea as motionDirective,Md as moderateCspPreset,An as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Up as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Vr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,fn as loadManifest,Pq as loadElement,Hn as loadChannels,Lb as listensPassively,as as lintStxStrict,Rq as lazyLoadAll,Qq as lazyLoad,Ha as keyframeDirective,tr as jsxs,ur as jsxDEV,sr as jsx,Co as jsonResponse,Ye as islandDirective,l as isTest,Sm as isSpaNavigation,Lm as isSpaNavRequest,xq as isSignatureValid,nf as isSignal,ul as isSharpAvailable,oo as isServerEnvironment,ym as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Mq as isNativeLazySupported,Er as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Nq as isIntersectionObserverSupported,Cl as isImageFile,vl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,no as isEdgeEnvironment,bs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Wn as isCompressible,zm as isClient,Fh as isAsyncComponent,jn as isActionableMethod,cq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Rr as injectThemeBootstrap,ig as injectSeoTags,Or as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,tm as initStoreRegistry,pl as initNetlify,rp as initLoadingIndicator,Oq as initLazyLoading,Ko as initFile,Wq as initBlurUp,ar as initAllBlurUp,Zj as imgDirective,Ml as imageDirective,nn as hydrateTemplateStream,mn as hydrateTemplate,op as hydrateIslands,ai as hydrateIsland,on as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Hp as hydrate,Zo as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Mp as hasStore,xc as hasPlaceholders,nl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Fl as handleImageRequest,zf as handleError,Br as h,Bl as groupVariantsByFormat,aq as grayscale,So as gitHash,un as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,il as getTotalSize,yq as getTimeUntilExpiry,mh as getStoreScript,Np as getStoreNames,Lp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Dl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,xl as getImageMetadata,Fe as getImageDelivery,Gp as getHydrationRuntime,vm as getHydratedStoreState,Sk as getHmrServer,be as getHead,yp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Al as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Ul as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Cq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,En as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,hr as generateVideoPreview,Ee as generateValidationScript,ir as generateUploadRuntime,vn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,fo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Bp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,yl as generateSrcSet,ek as generateSpriteSheet,qr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,zl as generateSizes,mg as generateSitemapIndex,Pr as generateSitemap,Lq as generateSimpleMediaPicker,Fq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Qr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,jl as generateNetlifyToml,kr as generateMinifiedMediaRuntime,jr as generateMediaRuntime,Kq as generateMediaManagerEmbed,dn as generateManifest,tp as generateLoadingIndicatorHtml,Vq as generateLazyLoadRuntime,Zm as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,gr as generateImagePreview,Ql as generateImageManifest,Fp as generateHydrationScript,af as generateHydrationRuntime,Ip as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,wp as generateHMRClientScript,fk as generateHLSManifest,Cp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ko as generateDocs,go as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,eo as generateComponentsDocs,Wh as generateComponentManifest,bo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,lm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,br as generateBlurUpRuntime,cr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,np as formatTypecheckDiagnostics,gp as formatTypeErrors,Ho as formatStxContent,hl as formatSize,Ta as formatRoutes,Io as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Nr as formatDoctorReport,ho as formatDocsAsMarkdown,jo as formatDocsAsJson,io as formatDocsAsHtml,jq as format,zn as foldConstants,iq as flipVertical,hq as flipHorizontal,_m as fingerprint,lp as findStxModuleDeclarations,kp as findRuntimeTypeDeclarations,Lr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,wn as findDeadCode,wn as findDeadBranches,Hm as findContainerRegion,co as findComponentFiles,ps as findCommonDir,gl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Dp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Tm as extractContainerContent,$n as extractComponentProps,Xh as extractComponentName,ao as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,yn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,Zn as enableDevTools,xn as eliminateDeadCode,ff as effect,qq as dprUrls,lo as docsCommand,ec as discoverServerApi,Xm as discoverLayoutNames,Uq as disconnectObserver,_n as disableDevTools,F as devHelpers,Om as detectShell,mo as detectRuntime,kl as detectProjectConfig,rj as detectFormat,rn as detectBuildMode,ef as derived,ol as deploy,Gk as defineStxConfig,Qp as defineStore,Bf as defineSlots,$r as defineSiteConfig,ds as definePropsWithValidation,cs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Dr as defineCustomElement,Po as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Ro as defineApiHandler,lr as defaultMediaConfig,Sl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,ns as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Km as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,$q as crossfadeTransition,Wp as crop,Ph as createVirtualList,lk as createVideoDirective,yo as createVercelHandler,dp as createTypeChecker,fa as createTranslateFilter,uo as createTextEncoderStream,Cr as createStxApp,to as createStreamingResponse,We as createStreamRenderer,Op as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Wl as createScope,zh as createSSRSuspense,bf as createRouter,Vm as createRouteRuleResolver,eb as createRouteLocation,bp as createRoute,Xl as createRef,Yl as createReactive,Df as createProvideContext,Uo as createProject,Oo as createProductionBuild,tc as createPlaceholder,Dn as createOptimizedBuild,zo as createNetlifyHandler,cl as createNetlifyClient,fb as createMiddlewareContext,ap as createMiddleware,Sq as createLazyObserver,Jh as createKeepAliveCache,qo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Nl as createImagePlugin,Gl as createImageHandler,Ll as createImageDirective,nb as createHeatmapAggregator,fl as createFileManifest,po as createEnvAccessor,z as createEnhancedError,so as createEdgeHandler,ro as createEdgeCache,Ni as createDetailedErrorMessage,xo as createDenoHandler,ll as createDefaultNetlifyConfig,Zd as createCspHeaders,Bo as createCookie,Zl as createComputed,Vl as createComponentInstance,wo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Cr as createApp,Ka as createAnimationTimeline,Zp as cover,_f as convertToCommonJS,eq as contrast,Yp as contain,y as consoleError,m as configureErrorHandling,Fk as config,Zl as computed,Yn as compressResponse,Bg as composerPattern,Ag as composer,Qm as composeShellWithPage,Sn as componentDirective,Ii as componentClientSignalNames,cn as compileTemplate,a as collectRepeatedFlag,el as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Dq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Kl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,sp as cleanupLoadingIndicator,Em as classifyScript,Fm as classifyAllScripts,ep as checkTemplateFile,fp as checkTemplate,Uf as checkCache,Aq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Nn as channel,Go as captureScreenshots,Fo as captureScreenshot,Z as cancelPendingLoads,dl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,hp as buildVirtualSource,nr as buildViews,Sp as buildUrl,Qe as buildSuspenseResolveScript,_r as buildStaticSite,qb as buildRuntimeGlobalsDestructure,$m as buildRuntimeAsset,an as buildRouterAsset,Zr as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,pn as buildForProduction,Vn as buildComponentLibrary,Bq as buildAuthParams,qn as buildApp,Xr as buildAlternateLinks,No as build,Ln as broadcastPrivate,Mn as broadcastPresence,In as broadcast,dq as brightness,Tb as bracketDepths,_p as blur,Jb as blankInertHtmlRegions,vq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,lq as auto,ja as attributeValue,bn as assetTags,Mb as asInvocableStatement,ks as arrayOf,Ur as applyTranslations,Sj as applyTransformations,zi as applySlots,Rn as applyPropDefaults,oq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Mm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,tn as analyzeUsage,Cm as analyzeTemplate,Dm as analyzeProject,tn as analyzeDirectiveUsage,ed as analyticsDirective,Xo as addStore,Wo as addPage,Sd as addNonceToInlineContent,Yo as addLayout,Vo as addComponent,ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,cp as TemplateTypeChecker,Jo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,yr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Im as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mo as ProductionBuild,Ar as Portal,To as PROJECT_TEMPLATES,nq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Jp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Wm as LAYOUT_TYPES_FILE,Pj as ImageProcessorCache,El as ImageProcessingError,Ep as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,rr as Fragment,zr as For,Jm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,ql as DeployError,rl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,tl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,sl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,vp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Pn as BroadcastServer,On as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Kr as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ul as G}from"./chunk-qjvny3wf.js";import{sq as U,wq as B}from"./chunk-
|
|
2
|
+
import{ul as G}from"./chunk-qjvny3wf.js";import{sq as U,wq as B}from"./chunk-pf80cwp6.js";import{Qs as O}from"./chunk-q4jymqj3.js";import{xt as L}from"./chunk-n98anpe9.js";import{Yw as y}from"./chunk-n0hrb3ek.js";import X from"fs";import Z from"path";var H=new Map,$=new Map;async function p(j){let J;for(let V=0;V<3;V++)try{let q=(await X.promises.stat(j)).mtime.getTime(),W=$.get(j);if(W&&W.mtime===q)return W.content;let I=await Bun.file(j).text(),T=(await X.promises.stat(j)).mtime.getTime();if(T!==q)continue;return $.set(j,{content:I,mtime:T}),I}catch(Q){J=Q;break}throw $.delete(j),Error(`File not found: ${j}${J?` (${J.message})`:""}`)}function m(j){$.delete(j)}function f(j){for(let z of $.keys())if(z.startsWith(j))$.delete(z)}var M=null,v=null,b=null;function r(j){b=j}async function k(j=!1){let z=b??await import("./chunk-5b8by1w4.js");if(j)return z.generateSignalsRuntimeDev();if(M===null)M=z.generateSignalsRuntime();return M}var N=null;async function R(){if(N===null){let{getRouterScript:j}=await import("./chunk-1260e2yv.js");N=j()}return N}var x={};async function d(j,z=!1){let J=j==="runtime"?await k(z):await R(),V=j==="runtime"&&z?"runtime-debug":j,Q=x[V];if(!Q||Q.content!==J)Q={content:J,hash:Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)},x[V]=Q;return{content:J,hash:Q.hash,url:`/_stx/${j}.${Q.hash}.js`}}var E=500,Y=new Map;function w(j){return L(process.cwd(),"module-bundles",`${j}.js`)}function c(j){let z=Bun.hash(j).toString(16).padStart(16,"0").slice(0,16),J=Y.has(z);if(J)Y.delete(z);Y.set(z,j);while(Y.size>E)Y.delete(Y.keys().next().value);if(!J)try{let V=w(z);if(!X.existsSync(V))X.mkdirSync(Z.dirname(V),{recursive:!0}),X.writeFileSync(V,j)}catch{}return`/_stx/modules.${z}.js`}function l(j){if(!/^[0-9a-f]{16}$/.test(j))return;let z=Y.get(j);if(z!==void 0)return z;try{return X.readFileSync(w(j),"utf8")}catch{return}}function o(){$.clear(),B(),O(),M=null,v=null,N=null}function A(j){let z={debug:j.debug===!0,middleware:(j.middleware??[]).map((J)=>({name:J.name,timing:J.timing,handler:String(J.handler)})),customDirectives:(j.customDirectives??[]).map((J)=>({name:J.name,hasEndTag:J.hasEndTag===!0,rawParams:J.rawParams===!0,handler:String(J.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(z)).digest("hex")}async function s(j,z){try{if(!z.cachePath)return null;let J=Z.resolve(z.cachePath),V=Z.join(J,`${D(j)}.html`),Q=Z.join(J,`${D(j)}.meta.json`);if(!await U(V)||!await U(Q))return null;let q=await Bun.file(Q).text(),W=JSON.parse(q);if(W.cacheVersion!==z.cacheVersion)return null;if(W.engine!==G())return null;if(W.optionsSignature!==A(z))return null;if((await X.promises.stat(j)).mtime.getTime()>W.mtime)return null;for(let K of W.dependencies)if(await U(K)){if((await X.promises.stat(K)).mtime.getTime()>W.mtime)return null}else return null;return await Bun.file(V).text()}catch(J){return console.warn(`Cache error for ${j}:`,J),null}}async function n(j,z,J,V){try{if(!V.cachePath)return;let Q=Z.resolve(V.cachePath);await X.promises.mkdir(Q,{recursive:!0});let q=Z.join(Q,`${D(j)}.html`),W=Z.join(Q,`${D(j)}.meta.json`),I=await X.promises.stat(j);await Bun.write(q,z);let K={sourcePath:j,mtime:I.mtime.getTime(),dependencies:Array.from(J),cacheVersion:V.cacheVersion,engine:G(),optionsSignature:A(V),generatedAt:Date.now()};await Bun.write(W,JSON.stringify(K,null,2)),H.set(j,{output:z,mtime:I.mtime.getTime(),dependencies:J})}catch(Q){console.warn(`Failed to cache template ${j}:`,Q)}}var F=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,F)}
|
|
3
3
|
export{H as Kj,p as Lj,m as Mj,f as Nj,r as Oj,k as Pj,R as Qj,d as Rj,c as Sj,l as Tj,o as Uj,s as Vj,n as Wj,D as Xj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bg as ZJ,dg as g,fg as A,lg as n,og as GJ,rg as WJ,tg as YJ,vg as jJ}from"./chunk-
|
|
2
|
+
import{bg as ZJ,dg as g,fg as A,lg as n,og as GJ,rg as WJ,tg as YJ,vg as jJ}from"./chunk-4byxvkzn.js";import{yg as $J}from"./chunk-0knxnyq6.js";import{rl as XJ}from"./chunk-jea2901n.js";import{mo as h}from"./chunk-pf80cwp6.js";import{Ms as e}from"./chunk-q4jymqj3.js";import{Nt as QJ,Rt as i,Tt as p}from"./chunk-hestqebq.js";import{Fw as l,Kw as VJ,cw as KJ}from"./chunk-5mh3fpha.js";import{Yw as DJ}from"./chunk-n0hrb3ek.js";import JJ from"fs";import k from"path";var{serve:wJ}=globalThis.Bun;VJ();import y from"zlib";import{promisify as a}from"util";var IJ=a(y.brotliCompress),OJ=a(y.gzip),UJ=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],BJ=["text/event-stream","multipart/x-mixed-replace"],_J=1024;function zJ(K){if(!K)return!1;let J=K.toLowerCase();if(BJ.some((G)=>J.startsWith(G)))return!1;return UJ.some((G)=>J.startsWith(G))}function FJ(K){let J=new Map;for(let G of K.split(",")){let[Z,...W]=G.trim().split(";"),O=Z.trim().toLowerCase();if(!O)continue;let U=1;for(let B of W){let w=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(B);if(!w)continue;let F=Number.parseFloat(w[1]);if(Number.isFinite(F))U=F}J.set(O,U)}return J}function LJ(K){if(!K)return null;let J=FJ(K),G=J.get("*"),Z=(W)=>J.get(W)??G??0;if(Z("br")>0)return"br";if(Z("gzip")>0)return"gzip";return null}async function t(K,J,G={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!zJ(J.headers.get("content-type")))return J;let Z=LJ(K.headers.get("accept-encoding"));if(!Z)return J;let W;try{W=new Uint8Array(await J.arrayBuffer())}catch{return J}let O=()=>new Response(W,{status:J.status,statusText:J.statusText,headers:s(J.headers)});if(W.length<(G.threshold??_J))return O();try{let U=Z==="br"?await IJ(W,{params:{[y.constants.BROTLI_PARAM_QUALITY]:G.quality??5,[y.constants.BROTLI_PARAM_SIZE_HINT]:W.length}}):await OJ(W);if(U.length>=W.length)return O();let B=s(J.headers);return B.set("Content-Encoding",Z),B.set("Content-Length",String(U.length)),new Response(U,{status:J.status,statusText:J.statusText,headers:B})}catch{return O()}}function s(K){let J=new Headers(K),G=J.get("Vary");if(!G)return J.set("Vary","Accept-Encoding"),J;if(!G.split(",").some((W)=>W.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${G}, Accept-Encoding`);return J}class d{now;entries=new e(1000,{maxBytes:33554432,sizeOf:(K)=>K.body.byteLength+JSON.stringify(K.headers).length*2});pending=new Map;generation=0;constructor(K=Date.now){this.now=K}invalidate(K){this.generation++,this.pending.clear();for(let J of Array.from(this.entries.keys()))if(K===void 0||this.entries.get(J)?.path===K)this.entries.delete(J)}async respond(K,J,G){let Z,W=async()=>{let X=Z??await G();return X.headers.set("Cache-Control","private, no-store"),X.headers.set("Vary",A(X.headers.get("Vary")).Vary),X};if(!J||K.method!=="GET"||K.headers.has("Cookie")||K.headers.has("Authorization")||K.headers.has("Range"))return W();let O=new URL(K.url),U=`${O.origin}${O.pathname}${O.search}|${g(K)?"fragment":"document"}`,B=this.entries.get(U),w=(X)=>{let T=new Headers(X.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-X.created)/1000)))),new Response(X.body.slice(0),{headers:T})},F=B?(this.now()-B.created)/1000:1/0;if(B&&F<J.maxAge)return w(B);let S=this.generation,q=async()=>{let X=await G();Z=X;let T=(X.headers.get("Vary")??"").toLowerCase().split(",").map((L)=>L.trim()).filter(Boolean);if(X.status!==200||X.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(X.headers.get("Cache-Control")??"")||T.some((L)=>L!=="x-stx-router"&&L!=="accept-encoding"))return null;let M=await X.clone().arrayBuffer();if(M.byteLength>1048576)return null;X.headers.set("Vary",A(X.headers.get("Vary")).Vary);let Q={body:M,headers:Array.from(X.headers.entries()),created:this.now(),path:O.pathname};if(this.generation===S)this.entries.set(U,Q);return Q},H=this.pending.get(U);if(!H){if(this.pending.size>=1000)return W();H=q().finally(()=>{if(this.pending.get(U)===H)this.pending.delete(U)}),this.pending.set(U,H)}if(B&&F<J.maxAge+(J.swr??0))return H.catch(()=>{}),w(B);let x=await H;return x?w(x):W()}}var HJ={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function uJ(K={}){let J=k.resolve(K.outputDir||".output"),G=K.port??3000,Z=GJ(J);if(!Z)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Z.routes.length} routes...`);let W=$J(Z.routeRules),O=new d,U=XJ(J,Z.apiRoutes??[]),B=Bun.file(k.join(J,"server/runtime-config.json")),w=K.runtimeConfig??(await B.exists()?await B.json():void 0),F=w?i(w):void 0,S=new Map,q=new Map,H=new Map,x=new Map;for(let Q of Z.routes)try{let L=k.join(J,Q.compiledPath),Y=JSON.parse(await Bun.file(L).text());if(F)Y.html=p(Y.html,F);S.set(Q.pattern,Y),H.set(Q.pattern,l(Y.html)),x.set(Q.pattern,h(Y.html));let C=k.join(J,Q.fragmentPath);if(await Bun.file(C).exists()){let P=await Bun.file(C).text();q.set(Q.pattern,F?p(P,F):P)}}catch(L){console.warn(`[stx] Failed to load route ${Q.pattern}:`,L)}let X=new Map,T=[];for(let Q of Z.routes)if(Q.hasParams){let{regex:L,params:Y}=KJ(Q.pattern);T.push({regex:L,route:Q,paramNames:Y})}else X.set(Q.pattern,Q);let M=wJ({port:G,async fetch(Q){return t(Q,await QJ(F??i(),async()=>{let Y=new URL(Q.url).pathname;if(K.onRequest){let j=await K.onRequest(Q);if(j)return j}if(K.apiRouter){let j=await K.apiRouter.handleRequest(Q);if(j.status!==404)return j}if(K.apiRoutes?.[Y])return K.apiRoutes[Y](Q);let C=await U(Q);if(C)return C;if((Q.method==="GET"||Q.method==="HEAD")&&Y!=="/"){let j=k.resolve(J,"public"),_;try{_=decodeURIComponent(Y)}catch{_=Y}if(!_.includes("\x00")){let I=k.resolve(j,`.${_}`);if(I===j||I.startsWith(`${j}${k.sep}`))try{if(JJ.existsSync(I)&&JJ.statSync(I).isFile()){let z=k.extname(I).toLowerCase(),E=HJ[z]||"application/octet-stream",v=Y.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(Y);return new Response(Bun.file(I),{headers:{"Content-Type":E,"Cache-Control":v?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let P=g(Q),D=null,o={};if(D=X.get(Y)||null,!D)for(let{regex:j,route:_,paramNames:I}of T){let $=Y.match(j);if($){D=_,I.forEach((z,E)=>{o[z]=$[E+1]});break}}if(!D){let j=X.get("/404")||null;if(j){let _=S.get(j.pattern);if(_)return new Response(_.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}let R=W(Y),r=Object.keys(R).length>0;return O.respond(Q,R.cache,async()=>{let j=S.get(D.pattern);if(P&&Q.method==="GET"&&j&&!j.hasServerScripts&&Object.keys(j.placeholders).length===0){let $=q.get(D.pattern);if($){let z=H.get(D.pattern);return new Response($,{status:j.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...x.has(D.pattern)?{"X-STX-Runtime":x.get(D.pattern)?"true":"false"}:{},...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},...A(),...R.cache?{}:{"Cache-Control":ZJ}}})}}let _=WJ(Q.method),I=S.get(D.pattern);if(!I){let $=X.get("/500")||null;if($){let z=S.get($.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(D.prerendered&&_)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!_&&!I.hasServerScripts&&Object.keys(I.placeholders).length===0)return new Response(I.html,{status:I.status??200,headers:{"Content-Type":"text/html",...A(),"Cache-Control":"public, max-age=60"}});try{let{html:$,boundaries:z,redirect:E,cookies:v,status:m,headers:c}=await jJ(I,{params:o,request:Q,method:Q.method,__stx_strict_hydration:r,__stx_runtime_config:F});if(E)return YJ(E,v,c);if(z&&z.length>0){let{renderStreamingPage:N,streamToResponse:u}=await import("./chunk-dpafnyqg.js"),b=new Headers({...A(),...c,"Cache-Control":"private, no-store"});for(let f of v??[])b.append("Set-Cookie",f);if(P&&!_){let f=l($);b.set("X-STX-Fragment","true"),b.set("X-STX-Runtime",h($)?"true":"false"),b.set("X-STX-Layout",f.layout),b.set("X-STX-Layout-Group",f.group)}return u(N(P&&!_?n($,Z.routerContainer||"main"):$,z,{timeoutMs:30000}),{status:m??I.status??200,headers:b})}let V=new Headers({"Content-Type":"text/html",...A(),...R.cache?{}:{"Cache-Control":"private, no-store"}});for(let N of v??[])V.append("Set-Cookie",N);for(let[N,u]of Object.entries(c??{}))V.set(N,u);if(V.set("Vary",A(V.get("Vary")).Vary),P&&!_){let N=l($);return V.set("X-STX-Fragment","true"),V.set("X-STX-Runtime",h($)?"true":"false"),V.set("X-STX-Layout",N.layout),V.set("X-STX-Layout-Group",N.group),new Response(n($,Z.routerContainer||"main"),{status:m??I.status??200,headers:V})}return new Response($,{status:m??I.status??200,headers:V})}catch($){if(console.error(`[stx] Hydration error for ${Y}:`,$),r)return new Response("Internal Server Error",{status:500});return new Response(I.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${M.port}`),console.log(`[stx] Serving ${Z.routes.length} routes (${S.size} pre-loaded)`),{port:M.port,stop:()=>{O.invalidate(),M.stop()},invalidate:(Q)=>O.invalidate(Q)}}
|
|
3
3
|
export{zJ as We,LJ as Xe,t as Ye,uJ as Ze};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ho as b,io as c,jo as d}from"./chunk-
|
|
2
|
+
import{ho as b,io as c,jo as d}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import{tv as a}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Kw as y}from"./chunk-
|
|
2
|
+
import{Kw as y}from"./chunk-5mh3fpha.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
|
|
3
3
|
`);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
|
|
4
4
|
`)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
|
|
5
5
|
export{Y as vk,_ as wk,a as xk,s as yk,h as zk,f as Ak,c as Bk,HM as Ck};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$m as c,Cm as P,Do as i,Jp as h,Ko as T,Lm as k,an as l,sm as R,tm as O}from"./chunk-
|
|
2
|
+
import{$m as c,Cm as P,Do as i,Jp as h,Ko as T,Lm as k,an as l,sm as R,tm as O}from"./chunk-pf80cwp6.js";import{Us as S,Ws as y}from"./chunk-q4jymqj3.js";import{Gw as ZJ,Jw as $J,Kw as UJ}from"./chunk-5mh3fpha.js";import{Sw as m,Uw as YJ}from"./chunk-8ph7mee2.js";import{Vw as XJ,Yw as q}from"./chunk-n0hrb3ek.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(v(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var _J="X-STX-Router",AJ="private, no-store";function IJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function HJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();ZJ();var WJ="stx-page-head:",jJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function KJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=(UJ(),XJ($J)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function PJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function kJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=C(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:A}=await import("./chunk-127ypa40.js"),I=await A(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function TJ(J,Y,Q){let X,$="",Z=Y.match(jJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=KJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -26,5 +26,5 @@ ${W}
|
|
|
26
26
|
`));if($.length>0)N.push($.join(`
|
|
27
27
|
`));if(G.length>0)N.push(G.join(`
|
|
28
28
|
`));return N.push(K),N.join(`
|
|
29
|
-
`)}import M from"fs";import p from"path";function gJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function uJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function mJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function GJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function zJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!zJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await GJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=BJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function BJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function cJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function tJ(J,Y={}){return(await n(J,Y)).html}async function eJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-
|
|
29
|
+
`)}import M from"fs";import p from"path";function gJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function uJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function mJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function GJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function zJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!zJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await GJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=BJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function BJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function cJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function tJ(J,Y={}){return(await n(J,Y)).html}async function eJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-dpafnyqg.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-817833d8.js"),{defaultConfig:B}=await import("./chunk-rs70a3j6.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function JQ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
|
|
30
30
|
export{s as Yf,C as Zf,e as _f,x as $f,_J as ag,AJ as bg,IJ as cg,g as dg,QJ as eg,HJ as fg,PJ as gg,kJ as hg,TJ as ig,FJ as jg,SJ as kg,yJ as lg,gJ as mg,uJ as ng,mJ as og,b as pg,GJ as qg,zJ as rg,d as sg,cJ as tg,tJ as ug,eJ as vg,JQ as wg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m,Wj as n,Xj as o}from"./chunk-
|
|
2
|
+
import{Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m,Wj as n,Xj as o}from"./chunk-1t80az59.js";import{ul as a}from"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Lt as a,Mt as b}from"./chunk-
|
|
2
|
+
import{Lt as a,Mt as b}from"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-n0hrb3ek.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Ko as V}from"./chunk-
|
|
2
|
+
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Ko as V}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import{Yw as F}from"./chunk-n0hrb3ek.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-817833d8.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-817833d8.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{oj as o,pj as p,qj as q}from"./chunk-
|
|
2
|
+
import{oj as o,pj as p,qj as q}from"./chunk-ats1a74d.js";import{Aj as e,Bj as f,Cj as g,Dj as h,Ej as i,Fj as j,Gj as k,Hj as l,Ij as m,Jj as n,wj as a,xj as b,yj as c,zj as d}from"./chunk-y32dbdta.js";import"./chunk-8hqayvjh.js";import"./chunk-n0hrb3ek.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
|
|
@@ -40,6 +40,10 @@ import{Ww as v$,Xw as G}from"./chunk-n0hrb3ek.js";function y($){return $.split(/
|
|
|
40
40
|
// there. sessionStorage is per tab and dies with it, same as the history.
|
|
41
41
|
var SCROLL_TOKEN='__stxScroll';
|
|
42
42
|
var SCROLL_STORE='stx:scroll:';
|
|
43
|
+
// On every entry the router pushes, never on the one the app opened with
|
|
44
|
+
// (which carries a scroll token too): going back from a pushed entry stays
|
|
45
|
+
// in the app, from the first it leaves it (or, in a phone app, does nothing).
|
|
46
|
+
var PUSHED_MARK='__stxPushed';
|
|
43
47
|
var scrollSeq=0;
|
|
44
48
|
var pendingScroll=null;
|
|
45
49
|
var restoreScroll=!!o.scrollRestoration;
|
|
@@ -823,9 +827,18 @@ import{Ww as v$,Xw as G}from"./chunk-n0hrb3ek.js";function y($){return $.split(/
|
|
|
823
827
|
// The position belongs to the entry being left, and scrollToken still
|
|
824
828
|
// names it here.
|
|
825
829
|
rememberScroll();
|
|
826
|
-
if(mode==='replace'){
|
|
830
|
+
if(mode==='replace'){
|
|
831
|
+
// A replaced entry is still the one it replaces: pushed by the app or
|
|
832
|
+
// the one the app opened with.
|
|
833
|
+
var replaced=tokenState();
|
|
834
|
+
if(history.state&&history.state[PUSHED_MARK])replaced[PUSHED_MARK]=true;
|
|
835
|
+
history.replaceState(replaced,'',href);
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
827
838
|
scrollToken=newScrollToken();
|
|
828
|
-
|
|
839
|
+
var pushed=tokenState();
|
|
840
|
+
pushed[PUSHED_MARK]=true;
|
|
841
|
+
history.pushState(pushed,'',href);
|
|
829
842
|
}
|
|
830
843
|
function tokenState(){var state={};state[SCROLL_TOKEN]=scrollToken;return state}
|
|
831
844
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ar as g,Bm as O,Ko as R,Qp as H,vq as x}from"./chunk-
|
|
2
|
+
import{Ar as g,Bm as O,Ko as R,Qp as H,vq as x}from"./chunk-pf80cwp6.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Np as b,Op as c,Pp as d,Qp as e,no as a}from"./chunk-
|
|
2
|
+
import{Np as b,Op as c,Pp as d,Qp as e,no as a}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j,il as k,jl as l,kl as m,ll as n,ml as o}from"./chunk-
|
|
2
|
+
import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j,il as k,jl as l,kl as m,ll as n,ml as o}from"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ii as a,Ji as b}from"./chunk-
|
|
2
|
+
import{Ii as a,Ji as b}from"./chunk-dj9capvb.js";import"./chunk-ra1s4s6b.js";import"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{a as getStoreScript,b as clearStoreCache};
|