@stacksjs/stx 0.2.362 → 0.2.363

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.
Files changed (58) hide show
  1. package/dist/{chunk-kbfbfjpz.js → chunk-00hwz03z.js} +1 -1
  2. package/dist/{chunk-bab01mkf.js → chunk-14fy0xrz.js} +1 -1
  3. package/dist/{chunk-d0350ak9.js → chunk-25yvh46m.js} +1 -1
  4. package/dist/{chunk-xn226qe0.js → chunk-2bsaq9kq.js} +1 -1
  5. package/dist/{chunk-n6eg071x.js → chunk-3e0ba18k.js} +1 -1
  6. package/dist/{chunk-6nf5g9bh.js → chunk-3fd7w2va.js} +1 -1
  7. package/dist/{chunk-p1ycxzwx.js → chunk-3n0hpd5m.js} +1 -1
  8. package/dist/{chunk-4qhhbzx9.js → chunk-4my2kn5x.js} +1 -1
  9. package/dist/{chunk-x6c2t5dv.js → chunk-4n3vnzs0.js} +1 -1
  10. package/dist/{chunk-nabannen.js → chunk-51tct8h7.js} +1 -1
  11. package/dist/{chunk-0p52xkk9.js → chunk-5fqs93qg.js} +1 -1
  12. package/dist/{chunk-0ppgyq8q.js → chunk-5ppdkjhy.js} +1 -1
  13. package/dist/{chunk-0vrn78j5.js → chunk-6557pfz9.js} +1 -1
  14. package/dist/{chunk-7kfv1q2r.js → chunk-725npc6m.js} +1 -1
  15. package/dist/{chunk-0vvqxeq3.js → chunk-9rx9bbqh.js} +1 -1
  16. package/dist/{chunk-8e6fgnk5.js → chunk-9y0btmfc.js} +1 -1
  17. package/dist/{chunk-zbk9frkq.js → chunk-a127v0w5.js} +1 -1
  18. package/dist/{chunk-1tz8fb87.js → chunk-asshx9sb.js} +1 -1
  19. package/dist/{chunk-sr09yndb.js → chunk-bcd9byk3.js} +2 -2
  20. package/dist/{chunk-s3q7k0bf.js → chunk-cbh9bfk7.js} +1 -1
  21. package/dist/{chunk-k91ej0ts.js → chunk-cjz5nzak.js} +1 -1
  22. package/dist/{chunk-r6sacvqn.js → chunk-e45zxsgj.js} +1 -1
  23. package/dist/{chunk-benx1c4p.js → chunk-ec4072zn.js} +1 -1
  24. package/dist/{chunk-tfjv0567.js → chunk-egnck8vx.js} +1 -1
  25. package/dist/{chunk-b381xgvw.js → chunk-fxt2hxh0.js} +1 -1
  26. package/dist/{chunk-r6xmsxaz.js → chunk-gv6a9fsn.js} +1 -1
  27. package/dist/chunk-hs1azpgz.js +4 -0
  28. package/dist/{chunk-7rj4h2t2.js → chunk-jtzfd61j.js} +1 -1
  29. package/dist/{chunk-7k7vqrj3.js → chunk-jwna46yq.js} +1 -1
  30. package/dist/{chunk-q065t1x7.js → chunk-k1trppjz.js} +1 -1
  31. package/dist/{chunk-zjm3pz95.js → chunk-khaasesy.js} +1 -1
  32. package/dist/{chunk-7ppey2yt.js → chunk-kzg9gjmy.js} +1 -1
  33. package/dist/{chunk-3v63btq1.js → chunk-mwj6w2r7.js} +1 -1
  34. package/dist/{chunk-qg0w5tjb.js → chunk-n3xxhvng.js} +1 -1
  35. package/dist/{chunk-r7q89mv2.js → chunk-phq051sh.js} +1 -1
  36. package/dist/{chunk-1tfhw9c0.js → chunk-pkandp4e.js} +1 -1
  37. package/dist/{chunk-2119txb8.js → chunk-pw8q3ety.js} +17 -17
  38. package/dist/{chunk-zmvgsgtd.js → chunk-q92wr6a0.js} +1 -1
  39. package/dist/{chunk-dj24n5n7.js → chunk-sf45fhg4.js} +1 -1
  40. package/dist/{chunk-jk8exx37.js → chunk-sxnb6ws9.js} +8 -8
  41. package/dist/{chunk-rargfb5s.js → chunk-t2yqh8nb.js} +2 -2
  42. package/dist/{chunk-p4eqd3fp.js → chunk-tcsgynpc.js} +1 -1
  43. package/dist/{chunk-fyf0bz14.js → chunk-ttfb1v63.js} +1 -1
  44. package/dist/{chunk-masf0yq5.js → chunk-wk7wn1nw.js} +2 -2
  45. package/dist/{chunk-vnwzzw9j.js → chunk-xy3gx0x7.js} +1 -1
  46. package/dist/{chunk-11hfa3kp.js → chunk-y6ysrzx8.js} +1 -1
  47. package/dist/{chunk-tz7kembg.js → chunk-yp1cbwvf.js} +1 -1
  48. package/dist/{chunk-g6av70d6.js → chunk-yvv9qjcd.js} +1 -1
  49. package/dist/cli.js +7 -7
  50. package/dist/client-module-registry.d.ts +7 -0
  51. package/dist/client-module-registry.js +2 -1
  52. package/dist/craft-entry.js +1 -1
  53. package/dist/craft.js +1 -1
  54. package/dist/process.js +8 -5
  55. package/dist/pwa.js +1 -1
  56. package/dist/ssg.js +2 -2
  57. package/package.json +5 -5
  58. package/dist/chunk-s4jbvdx3.js +0 -4
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as km,$a as no,$b as yp,$c as yq,$d as yr,A as Wk,Aa as yn,Ab as So,Ac as Zp,Ad as Zq,Ae as ds,B as Xk,Ba as zn,Bb as To,Bc as _p,Bd as _q,Be as es,C as Yk,Ca as Mn,Cb as Uo,Cc as $p,Cd as $q,Ce as fs,D as Zk,Da as Nn,Db as Vo,Dc as aq,Dd as ar,De as gs,E as Pl,Ea as On,Eb as Wo,Ec as bq,Ed as br,Ee as hs,F as Ql,Fa as Pn,Fb as Xo,Fc as cq,Fd as cr,Fe as is,G as Rl,Ga as Qn,Gb as Yo,Gc as dq,Gd as dr,Ge as js,H as Sl,Ha as Rn,Hb as Zo,Hc as eq,Hd as er,He as ks,I as Tl,Ia as Vn,Ib as _o,Ic as fq,Id as fr,Ie as ls,J as Ul,Ja as Wn,Jb as $o,Jc as gq,Jd as gr,Je as ms,K as Vl,Ka as Xn,Kb as ap,Kc as hq,Kd as hr,Ke as ns,L as Wl,La as Yn,Lb as bp,Lc as iq,Ld as ir,M as Xl,Ma as Zn,Mb as cp,Mc as jq,Md as jr,N as Yl,Na as _n,Nb as kp,Nc as kq,Nd as kr,O as Zl,Oa as $n,Ob as lp,Oc as lq,Od as lr,P as _l,Pa as ao,Pb as mp,Pc as mq,Pd as mr,Q as $l,Qa as bo,Qb as np,Qc as nq,Qd as nr,R as am,Ra as co,Rb as op,Rc as oq,Rd as or,S as bm,Sa as eo,Sb as pp,Sc as pq,Sd as pr,T as cm,Ta as fo,Tb as qp,Tc as qq,Td as qr,U as dm,Ua as go,Ub as rp,Uc as rq,Ud as rr,V as em,Va as ho,Vb as sp,Vc as sq,Vd as sr,W as fm,Wa as io,Wb as tp,Wc as tq,Wd as tr,X as gm,Xa as jo,Xb as up,Xc as uq,Xd as ur,Y as hm,Ya as ko,Yb as vp,Yc as vq,Yd as vr,Z as im,Za as lo,Zb as wp,Zc as wq,Zd as wr,_ as jm,_a as mo,_b as xp,_c as xq,_d as xr,aa as lm,ab as oo,ac as zp,ad as zq,ae as zr,ba as mm,bb as po,bc as Ap,bd as Aq,be as Gr,ca as nm,cb as qo,cc as Bp,cd as Bq,ce as Hr,da as om,db as ro,dc as Cp,dd as Cq,de as Ir,ea as pm,eb as so,ec as Dp,ed as Dq,ee as Jr,fa as qm,fb as to,fc as Ep,fd as Eq,fe as Kr,ga as rm,gb as uo,gc as Fp,gd as Fq,ge as Lr,ha as sm,hb as vo,hc as Gp,hd as Gq,he as Mr,ia as tm,ib as wo,ic as Hp,id as Hq,ie as Nr,ja as um,jb as xo,jc as Ip,jd as Iq,je as Or,ka as vm,kb as yo,kc as Jp,kd as Jq,ke as Pr,la as wm,lb as zo,lc as Kp,ld as Kq,le as Qr,ma as xm,mb as Ao,mc as Lp,md as Lq,me as Rr,na as ym,nb as Do,nc as Mp,nd as Mq,ne as Sr,o as a,oa as zm,ob as Eo,oc as Np,od as Nq,oe as Tr,p as Hk,pa as nn,pb as Fo,pc as Op,pd as Oq,pe as Ur,q as Ik,qa as on,qb as Go,qc as Pp,qd as Pq,qe as Vr,r as Jk,ra as pn,rb as Io,rc as Qp,rd as Qq,re as Wr,s as Kk,sa as qn,sb as Jo,sc as Rp,sd as Rq,se as Xr,t as Lk,ta as rn,tb as Ko,tc as Sp,td as Sq,te as Yr,u as Mk,ua as sn,ub as Lo,uc as Tp,ud as Tq,ue as Zr,v as Nk,va as tn,vb as No,vc as Up,vd as Uq,ve as _r,w as Ok,wa as un,wb as Oo,wc as Vp,wd as Vq,we as $r,x as Pk,xa as vn,xb as Po,xc as Wp,xd as Wq,xe as as,y as Uk,ya as wn,yb as Qo,yc as Xp,yd as Xq,ye as bs,z as Vk,za as xn,zb as Ro,zc as Yp,zd as Yq,ze as cs}from"./chunk-jk8exx37.js";import{Le as dp,Me as ep,Ne as fp,Oe as gp,Pe as hp,Qe as ip,Re as jp}from"./chunk-b381xgvw.js";import{Se as Bo,Te as Co}from"./chunk-7hb89n3z.js";import{Ue as Ho}from"./chunk-7kfv1q2r.js";import{Ve as mn}from"./chunk-zjm3pz95.js";import{We as Sn,Xe as Tn,Ye as Un,Ze as Mo}from"./chunk-zbk9frkq.js";import{$e as $k,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll,mf as ml}from"./chunk-n0d7nwhd.js";import{nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl,yf as Ol}from"./chunk-84577w4y.js";import{Af as Cl,zf as Bl}from"./chunk-5j3v0p6s.js";import{Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,Hf as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Of as zl,Rf as Al}from"./chunk-198fr2d4.js";import{Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as _m,Xf as ln}from"./chunk-p4eqd3fp.js";import{$f as Dm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as Pm,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn,wg as kn}from"./chunk-sr09yndb.js";import{xg as Qm,yg as Rm}from"./chunk-0knxnyq6.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,Kg as Ln,zg as An}from"./chunk-634gaa9d.js";import{Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui,Qg as vi}from"./chunk-r6xmsxaz.js";import{Rg as Lj,Sg as Mj,Tg as Nj,Xg as Oj,Yg as Pj,Zg as Qj}from"./chunk-karkhcja.js";import{$g as Xj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk,ih as ek}from"./chunk-ypgyhr2p.js";import{jh as Bj,kh as Cj,lh as Dj,mh as Ej,nh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj,th as Kj}from"./chunk-bcpjhcpn.js";import{uh as wk,wh as xk}from"./chunk-y4zddt5r.js";import{Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph,Hh as Qh}from"./chunk-g7bpkpd4.js";import{Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi,Wh as ci}from"./chunk-k33778kc.js";import{$h as gi,Yh as di,Zh as ei,_h as fi}from"./chunk-yg0qm73a.js";import{ei as hi}from"./chunk-g1vxsvqv.js";import{hi as kh}from"./chunk-0ppgyq8q.js";import{ii as lh}from"./chunk-fqq5k9ve.js";import{ji as mh,ki as nh}from"./chunk-ya5m5vbn.js";import{li as oh,mi as ph,ni as qh,oi as rh,pi as sh,qi as th}from"./chunk-y4nzmkea.js";import{ri as uh,si as vh,ti as wh,ui as xh,vi as yh}from"./chunk-7kw3grq5.js";import{Ai as Dh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-c79nfdyj.js";import{Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh,Hi as Kh}from"./chunk-ej8mv2k6.js";import{Ii as ih,Ji as jh}from"./chunk-bab01mkf.js";import"./chunk-ra1s4s6b.js";import{Ni as Oe,Oi as Pe,Pi as Qe,Qi as Re,Ri as Se,Si as Te,Ti as Ue,Ui as Ve,Vi as We,Wi as Xe,Xi as Ye,Yi as Ze,Zi as _e,_i as $e}from"./chunk-benx1c4p.js";import{$i as rf,aj as sf,bj as tf,cj as uf,dj as vf,ej as wf,fj as xf,gj as yf,hj as zf,ij as Af,jj as Bf,kj as Cf,lj as Df,mj as Ef,nj as Ff,oj as Gf,pj as Hf}from"./chunk-pwctc0m1.js";import{Aj as gf,Bj as hf,Cj as jf,Dj as kf,Ej as lf,Fj as mf,Gj as nf,Hj as of,Ij as pf,Jj as qf,wj as cf,xj as df,yj as ef,zj as ff}from"./chunk-0t1yyn1d.js";import{Kj as If,Lj as Jf,Mj as Kf,Nj as Lf,Oj as Mf,Pj as Nf,Qj as Of,Rj as Pf,Sj as Qf,Tj as Rf,Uj as Sf,Vj as Tf,Wj as Uf,Xj as Vf}from"./chunk-k91ej0ts.js";import{pk as Ar,qk as Br,rk as Cr,sk as Dr,tk as Er,uk as Fr}from"./chunk-rargfb5s.js";import{Ak as Tm,Bk as Um,Ck as Vm,vk as Qk,wk as Rk,xk as Sk,yk as Tk,zk as Sm}from"./chunk-necx4e30.js";import"./chunk-frp9fc7j.js";import"./chunk-qg0w5tjb.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-7rj4h2t2.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$n as He,$o as yg,$p as mi,$q as Rj,Al as Ca,Am as Ec,An as Qd,Ap as Zg,Aq as aj,Ar as Dk,Bl as Da,Bm as Fc,Bn as Rd,Bo as Xf,Bp as _g,Bq as bj,Br as Ek,Cl as Ea,Cm as Gc,Cn as Sd,Cp as $g,Cq as cj,Cr as Fk,Dl as Fa,Dm as Hc,Dn as Td,Dp as ah,Dq as dj,Dr as Gk,El as Ga,Em as Ic,En as Ud,Ep as bh,Eq as ej,Fl as Ha,Fm as Jc,Fn as Vd,Fp as ch,Fq as fj,Gl as Ia,Gm as Kc,Gn as Wd,Gp as dh,Gq as gj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as eh,Hq as hj,Il as Ka,Im as Mc,In as Yd,Io as Yf,Ip as fh,Iq as ij,Jl as La,Jm as Nc,Jn as Zd,Jp as gh,Jq as jj,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as hh,Kq as kj,Ll as Na,Lm as Pc,Ln as $d,Lp as ii,Lq as lj,Ml as Oa,Mm as Zc,Mn as qe,Mo as _f,Mp as ji,Mq as mj,Nl as ib,Nm as _c,Nn as re,No as $f,Nq as nj,Ol as jb,Om as $c,On as se,Oo as ag,Oq as oj,Pl as kb,Pm as ad,Pn as te,Po as bg,Pp as ki,Pq as pj,Ql as lb,Qm as bd,Qn as ue,Qo as cg,Qq as qj,Rl as mb,Rm as cd,Rn as ve,Ro as dg,Rq as rj,Sl as nb,Sm as dd,Sn as we,So as pg,Sq as sj,Tn as xe,To as qg,Tq as tj,Um as ed,Un as ye,Uo as rg,Uq as uj,Vl as Kb,Vm as fd,Vn as ze,Vo as sg,Vq as vj,Wl as Lb,Wm as gd,Wn as Ae,Wo as tg,Wq as wj,Xl as Mb,Xm as hd,Xn as Be,Xo as ug,Xq as xj,Yl as Nb,Ym as id,Yn as Ce,Yo as vg,Yq as yj,Zl as Ob,Zm as jd,Zn as De,Zo as wg,Zq as zj,_l as Pb,_m as kd,_o as xg,_p as li,_q as Aj,am as Ub,an as md,ao as Ie,ap as zg,aq as ni,ar as Sj,bm as Vb,bn as nd,bo as Je,bp as Ag,bq as oi,br as Tj,cm as Wb,cn as od,co as Ke,cp as Bg,cq as pi,cr as Uj,dm as hc,dn as pd,do as Le,dp as Cg,dq as wi,dr as Vj,em as ic,en as ud,eo as Me,ep as Dg,eq as xi,er as fk,fm as jc,fn as vd,fo as Ne,fp as Eg,fq as yi,fr as gk,gm as kc,gn as wd,gp as Fg,gq as zi,gr as hk,hm as lc,hn as xd,hp as Gg,hq as Ai,hr as ik,im as mc,in as yd,ip as Hg,iq as Bi,ir as jk,jm as nc,jn as zd,jo as af,jp as Ig,jq as Ci,jr as kk,km as oc,kn as Ad,ko as bf,kp as Jg,kq as Di,kr as lk,lm as pc,ln as Bd,lp as Kg,lq as Ei,lr as mk,mm as qc,mn as Cd,mo as Wf,mp as Lg,mq as Fi,mr as nk,nm as rc,nn as Dd,np as Mg,nq as Gi,nr as ok,om as sc,on as Ed,op as Ng,oq as Hi,or as pk,pm as tc,pn as Fd,pp as Og,pq as Ii,pr as qk,qm as uc,qn as Gd,qp as Pg,qq as Ji,qr as rk,rm as vc,rn as Hd,rp as Qg,rq as Ki,rr as sk,sm as wc,sn as Id,sp as Rg,sq as Li,sr as tk,tm as xc,tn as Jd,tp as Sg,tq as Mi,tr as uk,um as yc,un as Kd,up as Tg,uq as Ni,ur as vk,vl as xa,vm as zc,vn as Ld,vp as Ug,vq as Xi,vr as yk,wl as ya,wm as Ac,wn as Md,wp as Vg,wq as Yi,wr as zk,xl as za,xm as Bc,xn as Nd,xp as Wg,xq as Zi,xr as Ak,yl as Aa,ym as Cc,yn as Od,yp as Xg,yq as _i,yr as Bk,zl as Ba,zm as Dc,zn as Pd,zp as Yg,zq as $i,zr as Ck}from"./chunk-2119txb8.js";import{$r as ja,Er as M,Fr as N,Gr as O,Hr as P,Ir as Q,Jr as R,Kr as S,Lr as T,Mr as U,Nr as V,Or as W,Pr as X,Qr as Y,Rr as Z,Sr as _,Tr as $,Ur as aa,Vr as ba,Wr as ca,Xr as da,Yr as ea,Zr as fa,_r as ia,as as ka,bs as la,cs as ma,ds as na,es as oa,fs as pa,gs as qa,hs as ra,is as sa,js as ta,ks as ua,ls as va,ms as wa}from"./chunk-jc6wrxrh.js";import{ns as ga,os as ha}from"./chunk-2xpdcr8c.js";import{ps as Rb,qs as Sb,rs as Tb}from"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import{As as Qi,Bs as Ri,Cs as Si,Ds as Ti,Es as Ui,Fs as Vi,Gs as Wi,ys as Oi,zs as Pi}from"./chunk-135mme4g.js";import{$s as Tc,Ys as Qc,Zs as Rc,_s as Sc,at as Uc,ct as Vc,lt as Wc,mt as Xc,nt as Yc}from"./chunk-dj24n5n7.js";import{ot as Xb,pt as Yb,qt as Zb,rt as _b,st as $b,tt as ac}from"./chunk-w1asc0zd.js";import{At as Ee,Ct as Fe,Ft as Ge}from"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import{Kt as cc,Lt as dc}from"./chunk-xk402w4a.js";import{Pt as eg,Qt as fg,Rt as gg,St as hg,Tt as ig,Ut as jg,Vt as kg,Xt as lg,Yt as mg,Zt as ng,_t as og}from"./chunk-dnard9gp.js";import{$t as qd,Au as oe,Bu as pe,au as rd,bu as sd,cu as td,mu as ae,nu as be,ou as ce,pu as de,qu as ee,ru as fe,su as ge,tu as he,uu as ie,vu as je,wu as ke,xu as le,yu as me,zu as ne}from"./chunk-vgx5077x.js";import{$u as A,Cu as b,Du as c,Eu as d,Fu as e,Gu as f,Hu as g,Iu as h,Ju as i,Ku as j,Lu as k,Mu as l,Nu as m,Ou as n,Pu as o,Qu as p,Ru as q,Su as r,Tu as s,Uu as t,Vu as u,Wu as v,Xu as w,Yu as x,Zu as y,_u as z,av as B,bv as C,cv as D,dv as E,ev as F,fv as G,gv as H,hv as I,iv as J,jv as K,kv as L}from"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import{Av as ob,Bv as pb,Cv as qb,Dv as rb,Ev as sb,Fv as tb,Gv as ub,Hv as vb,Iv as wb,Jv as xb,Kv as yb,Lv as zb,Mv as Ab,Nv as Bb,Ov as Cb,Pv as Db,Qv as Eb,Rv as Fb,Sv as Gb,Tv as Hb,Uv as Ib,Vv as Jb}from"./chunk-7racewc5.js";import{Aw as fb,Bw as gb,Dw as hb,Zv as Pa,_v as Qa,bw as Ra,gw as Sa,hw as Ta,nw as Ua,ow as Va,pw as Wa,qw as Xa,rw as Ya,sw as Za,tw as _a,uw as $a,vw as ab,ww as bb,xw as cb,yw as db,zw as eb}from"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{il as writeNetlifyConfig,an as writeManifest,Nl as writeImageManifest,tp as wrapComponentForHMR,as as withDefaults,vk as webComponentDirectiveHandler,iq as watermark,kr as watchViews,Xl as watchMultiple,Yl as watchEffect,Wl as watch,Le as warmImagePlaceholders,jm as waitForStore,X as waitForLocale,ep as virtualPathFor,ik as videoDirective,G as validators,es as validated,Be as validateValueEnhanced,li as validateTemplate,Qm as validateRouteRules,nq as validateParams,Ce as validateFormEnhanced,$q as validateFile,xe as validateFields,we as validateField,ni as validateDirective,Wd as validateCspDirectives,Dk as validateConfig,on as validateComponentScripts,Mn as validateComponentProps,hh as validateClientScript,gi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Bi as userComponentFileExists,Oh as useVirtualList,ie as useTitle,im as useStoreOrThrow,Lp as useStore,Uk as useStorage,zf as useSlots,Wk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,km as useRouteParams,mm as useRouteParamOrThrow,lm as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,om as useMiddlewareValue,nm as useMiddlewareState,Vk as useLocalStorage,mp as useLoadingIndicator,de as useHead,di as useForm,Bf as useAttrs,br as uploadFiles,ar as uploadFile,fm as updateInstance,of as untrack,Ri as unregisterDirective,gm as unmountInstance,Pc as unescapeHtml,ip as typecheckStxFiles,zi as transpileTypeScript,Pr as translate,Ba as transitionDirective,lc as transformAutoImports,Gn as toUsers,Fn as toUser,Tp as thumbnail,Uq as thumbHashToRGBA,Vq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,qp as stxClientHelpers,jg as structuredDataDirective,Sr as stripLocalePrefix,Nm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,ro as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Pk as stopHmrServer,Cn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,bh as startsDocument,Mo as startProductionServer,Ho as startInteractive,Bn as startBroadcasting,Ur as stampLocaleLayoutGroup,Ia as staggerDirective,lq as srcsetUrls,Ja as springDirective,td as splitByPipe,Jm as spaNavVaryHeaders,fp as sourcePathFor,sq as smartBatchSign,Di as slotContentHasExpressions,qq as signUrl,xi as shouldTranspileTypeScript,Mk as shouldReloadOnChange,vq as shouldRefreshSignature,Nk as shouldIgnoreFile,Gh as shouldCacheComponent,Xp as sharpen,hs as shape,Zb as setStateDir,sm as setRouteParams,tm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Pl as setCurrentInstance,Yj as setCachedVideoResult,Nj as setCachedImageResult,Hj as setCached,ks as serveStxFile,ms as serveMultipleStxFiles,Hk as serveMarkdownFile,Xo as serveFile,ns as serveApp,Wo as serve,wp as serializeState,cn as serializeSetCookie,Zp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ai as scopeOnRootElement,mk as scopeHTML,lk as scopeCSS,mg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,bq as saturation,oq 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,xg as runPreProcessingMiddleware,yg as runPostProcessingMiddleware,fn as runPageAction,jf as runMountCallbacks,gb as runMiddleware,dm as runHooks,Ir as runDoctor,kf as runDestroyCallbacks,Bg as runComposers,cq as rotate,hi as rewriteImagesWithSiblings,nd as responseBindings,Hi as resolveTemplatePath,ha as resolveStxTargets,zk as resolveStxDirectories,Or as resolveI18n,Rp as resize,pg as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,vp as resetHMRHandler,o as resetErrorConfig,cs as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,ir as renderView,fk as renderVideoComponent,ic as renderVendorStyleTags,rr as renderToString,sr as renderToStream,tr as renderToDOM,Tq as renderThumbhashToCanvas,Fr as renderTemplateString,Dr as renderTemplate,Er as renderString,Re as renderStreamingPage,si as renderSlot,wh as renderSSRSuspense,Dq as renderProtectedVideo,Cq as renderProtectedImg,pq as renderMediaUpload,Cr as renderMarkdownView,Um as renderLayoutTypes,Rj as renderImgComponent,Dl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,lr as renderEmail,Fi as renderComponentWithSlot,le as renderBodyAttrs,Gp as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Np as registerStoresClient,qm as registerStore,Qf as registerServeModuleBundle,kg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Oi as registerDirective,Vd as registerCspDirectives,Pn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Tl as ref,zo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Fk as readMarkdownFile,Jf as readFileCached,Ul as reactive,gq as quality,Aq as pruneSignatureCache,Kj as pruneCache,rf as provide,Br as protectCodeBlocks,bs as prop,Eg as processVueTemplate,Mh as processVirtualListDirectives,Qh as processVirtualGridDirectives,ek as processVideo,ye as processValidateDirective,ea as processTranslateDirective,qh as processTransitionDirectives,th as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,mh as processTeleportDirectives,uh as processSuspenseDirectives,fg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,bi as processStaticDirectives,vg as processStackReplacements,ug as processStackPushDirectives,ti as processSlots,Lm as processShell,Ne as processServerBindings,gg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Eq as processProtectedMedia,Wh as processPartialHydrationDirectives,gh as processOnceDirective,wg as processMiddleware,eg as processMetaDirectives,pe as processMetaDirective,Gk as processMarkdownFileDirectives,Mi as processMarkdownDirectives,cg as processLoops,Eh as processKeepAliveDirectives,fh as processJsonDirective,Ph as processInfiniteListDirectives,tg as processIncludes,Tj as processImgComponents,Fl as processImageComponents,sl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Fg as processDynamicComponents,ii as processDirectives,Wi as processDirectiveAttributes,lh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,is as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,zh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,lp as preloadIslandHandlers,Me as preloadIconCollection,xn as poolStrings,xk as pluginManager,Ie as placeholdersWarmed,ph as performLeave,oh as performEnter,lf as pendingLifecycleCounts,pf as peek,qg as partialsCache,gk as parseVideoDirectiveOptions,Pp as parseUrl,Wq as parseThumbhashString,zd as parseSwitchBlock,qi as parseSlots,ri as parseSlotElement,Ed as parseScriptDeclarations,tk as parseSFCComponent,Fq as parseProtectedArgs,ag as parseLoopBinding,Sj as parseImgComponent,ij as parseImageUrl,El as parseImageComponent,dn as parseFormBody,Bd as parseExpressionWithFilters,Qn as parseDefaults,wo as parseCookies,Cm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,ds as optional,yn as optimizeTemplate,Kl as optimizeImage,Ll as optimizeDirectory,fs as oneOf,rg as onceStore,am as onUpdated,Zc as onUpdate,cm as onUnmounted,xm as onServer,_l as onMounted,gf as onMount,ai as onHydrated,xf as onErrorCaptured,hf as onDestroy,Kh as onDeactivated,wm as onClient,$l as onBeforeUpdate,bm as onBeforeUnmount,Zl as onBeforeMount,Jh as onActivated,Pq as observeElement,Ao as notFound,Kg as normalizeCriticalHeadOrder,wf as nextTick,Tn as negotiateEncoding,Ua as navigateTo,em as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,wn as minifyHtml,ig as metaDirective,Vg as metaDedupKey,Qp as mergeParams,Xg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Ni as markdownDirectiveHandler,Ek as markdownCache,ga as looksLikeGlob,Rr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ak as loadStxConfig,db as loadMiddlewareFromDirectory,bn as loadManifest,Lq as loadElement,Dn as loadChannels,Lb as listensPassively,Yr as lintStxStrict,Nq as lazyLoadAll,Mq as lazyLoad,Ha as keyframeDirective,pr as jsxs,qr as jsxDEV,or as jsx,yo as jsonResponse,Xe as islandDirective,l as isTest,Om as isSpaNavigation,Hm as isSpaNavRequest,tq as isSignatureValid,mf as isSignal,ql as isSharpAvailable,ko as isServerEnvironment,um as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Iq as isNativeLazySupported,Ar as isMarkdownPath,Q as isLoading,R as isLoaded,wi as isJavaScriptScript,Jq as isIntersectionObserverSupported,yl as isImageFile,rl as isImageBackendAvailable,aa as isICUFormat,$h as isHydrated,Ci as isHydrateTrigger,gd as isHttpStatus,jo as isEdgeEnvironment,Zr as isDirectiveKind,k as isDevelopment,nf as isDerived,Lk as isCssOnlyChange,Sn as isCompressible,vm as isClient,Bh as isAsyncComponent,en as isActionableMethod,_p as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Nr as injectThemeBootstrap,hg as injectSeoTags,Kr as injectSeo,Wf as injectRouterScript,Kk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,dh as injectConfigHeadTags,Jg as injectColorModeBootScript,Zg as injectCloakStyle,Qg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,pm as initStoreRegistry,ll as initNetlify,np as initLoadingIndicator,Kq as initLazyLoading,Go as initFile,Sq as initBlurUp,Yq as initAllBlurUp,Vj as imgDirective,Il as imageDirective,jn as hydrateTemplateStream,hn as hydrateTemplate,kp as hydrateIslands,Yh as hydrateIsland,kn as hydrateFragment,Zh as hydrateByStrategy,_h as hydrateAll,Dp as hydrate,Vo as htmlResponse,$g as hoistLeadingHeadTags,Lg as hoistColorModeBootScript,lb as heatmapDirective,Dj as hashString,Vf as hashFilePath,Bj as hashFile,Cj as hashBuffer,Dg as hasVueTemplateSyntax,$f as hasVariables,Ip as hasStore,xc as hasPlaceholders,jl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,ch as hasDocumentShell,oi as hasDirectives,ma as hasDOMSupport,Bl as handleImageRequest,yf as handleError,xr as h,xl as groupVariantsByFormat,Yp as grayscale,Oo as gitHash,qn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,el as getTotalSize,uq as getTimeUntilExpiry,ih as getStoreScript,Jp as getStoreNames,Hp as getStore,Zk as getStorageSize,Yk as getStorageKeys,Ii as getSourceLineInfo,yi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,nk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,mi as getPositionInfo,uc as getPlaceholderRegistry,Aj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,zl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,tl as getImageMetadata,Ee as getImageDelivery,Cp as getHydrationRuntime,rm as getHydratedStoreState,Ok as getHmrServer,ae as getHead,up as getHMRHandler,mj as getFormatExtension,Fj as getFileMtime,wl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Qi as getDirectives,Pi as getDirective,Ql as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Li as getComponentCacheStats,Xj as getCachedVideoResult,yq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,yj as getCachedPlaceholder,Mj as getCachedImageResult,Gj as getCached,Jj as getCacheStats,Og as getBuildId,An as getBroadcastServer,lj as getBestVariant,Bc as getAllFilters,$i as generateWidthSrcset,Nh as generateVirtualListCSS,dr as generateVideoPreview,De as generateValidationScript,er as generateUploadRuntime,rn as generateTreeShakenBundle,sh as generateTransitionRuntime,rh as generateTransitionCSS,$j as generateThumbnails,rj as generateThumbhashPlaceholder,ao as generateTemplatesDocs,yh as generateSuspenseRuntime,xh as generateSuspenseCSS,xp as generateStateScript,jj as generateSrcsetData,Qj as generateSrcset,ul as generateSrcSet,ak as generateSpriteSheet,mr as generateSpaShell,kj as generateSourceTags,fj as generateSizesFromBreakpoints,ej as generateSizesAttribute,vl as generateSizes,lg as generateSitemapIndex,Lr as generateSitemap,Hq as generateSimpleMediaPicker,Bq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,kk as generateScopeId,uk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,ng as generateRobotsTxt,Mr as generateRobots,Pj as generateResponsiveVariants,qk as generateReactiveWebComponentTS,pk as generateReactiveWebComponent,sk as generateReactiveRuntime,rk as generateReactiveMixin,_j as generatePoster,xj as generatePlaceholderStyle,wj as generatePlaceholderCSS,qj as generatePlaceholder,Xh as generatePartialHydrationCSS,Fd as generateNonce,fl as generateNetlifyToml,gr as generateMinifiedMediaRuntime,fr as generateMediaRuntime,Gq as generateMediaManagerEmbed,$m as generateManifest,pp as generateLoadingIndicatorHtml,Rq as generateLazyLoadRuntime,Vm as generateLayoutTypes,tj as generateLQIP,Ih as generateKeepAliveRuntime,Hh as generateKeepAliveCSS,ci as generateIslandManifest,cr as generateImagePreview,Ml as generateImageManifest,Bp as generateHydrationScript,$e as generateHydrationRuntime,Ep as generateHydrationCSS,Rh as generateHydrationBootstrap,Jk as generateHotReloadScript,jb as generateHeatmapScript,sp as generateHMRClientScript,bk as generateHLSManifest,yp as generateEventBindings,dj as generateDprSrcsetWithVariableQuality,cj as generateDprSrcset,ah as generateDocumentShell,go as generateDocs,bo as generateDirectivesDocs,Vi as generateDirectiveRuntime,og as generateDefaultRobotsTxt,ck as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,$n as generateComponentsDocs,Sh as generateComponentManifest,Zn as generateComponentDoc,vj as generateColorPlaceholder,Ig as generateColorModeBootScript,hm as generateClientRuntime,Ej as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Zq as generateBlurUpRuntime,_q as generateBlurUpCSS,$c as generateBindingsRuntime,aj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Dh as generateAsyncComponentRuntime,Ch as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,jp as formatTypecheckDiagnostics,cp as formatTypeErrors,Do as formatStxContent,dl as formatSize,Ta as formatRoutes,Eo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Jr as formatDoctorReport,co as formatDocsAsMarkdown,fo as formatDocsAsJson,eo as formatDocsAsHtml,fq as format,vn as foldConstants,eq as flipVertical,dq as flipHorizontal,Wm as fingerprint,hp as findStxModuleDeclarations,gp as findRuntimeTypeDeclarations,Hr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,sn as findDeadCode,sn as findDeadBranches,Dm as findContainerRegion,_n as findComponentFiles,ls as findCommonDir,cl as filterRequiredFiles,Gi as fileExists,Yf as extractVariables,ki as extractTemplateExpressions,Te as extractStreamBoundaries,zp as extractState,ui as extractSlotContent,_f as extractScriptFromTemplate,ji as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,uj as extractDominantColor,Dd as extractDirectiveParams,pi as extractDirectiveNames,Pm as extractContainerContent,Xn as extractComponentProps,Th as extractComponentName,Yn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Uh as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,ok as extractAndScopeStyles,Ob as extractAndProcessEvents,Sk as externalizeSharedAssets,Tk as externalizeRepeatedAssets,Rk as externalizeHtml,Oc as evaluateExpression,un as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,nh as ensureTeleportTargets,eh as ensureDocumentShell,ze as enhancedValidationRules,Vn as enableDevTools,tn as eliminateDeadCode,ef as effect,mq as dprUrls,ho as docsCommand,ec as discoverServerApi,Tm as discoverLayoutNames,Qq as disconnectObserver,Wn as disableDevTools,F as devHelpers,Km as detectShell,io as detectRuntime,gl as detectProjectConfig,nj as detectFormat,nn as detectBuildMode,df as derived,kl as deploy,Ck as defineStxConfig,Mp as defineStore,Af as defineSlots,Xr as defineSiteConfig,$r as definePropsWithValidation,_r as defineProps,wk as definePlugin,he as definePageMeta,Wa as defineMiddleware,ei as defineForm,vf as defineExpose,uf as defineEmits,Si as defineDirective,zr as defineCustomElement,Lo as defineConfig,Ti as defineClientDirective,Ah as defineAsyncComponent,No as defineApiHandler,hr as defaultMediaConfig,Ol as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,yk as defaultConfig,js as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Gm as decodeTitleEntities,sj as decodeThumbhash,dg as declareBareLoopHead,Ud as cspNonceDirective,Td as cspDirective,Xq as crossfadeTransition,Sp as crop,Lh as createVirtualList,hk as createVideoDirective,uo as createVercelHandler,$o as createTypeChecker,fa as createTranslateFilter,qo as createTextEncoderStream,yr as createStxApp,po as createStreamingResponse,Ve as createStreamRenderer,Kp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Sl as createScope,vh as createSSRSuspense,af as createRouter,Rm as createRouteRuleResolver,eb as createRouteLocation,Zo as createRoute,Tl as createRef,Ul as createReactive,Cf as createProvideContext,Qo as createProject,Ko as createProductionBuild,tc as createPlaceholder,zn as createOptimizedBuild,vo as createNetlifyHandler,_k as createNetlifyClient,fb as createMiddlewareContext,Yo as createMiddleware,Oq as createLazyObserver,Fh as createKeepAliveCache,mo as createKVNamespace,Vh as createIslandRegistry,Uj as createImgDirective,Jl as createImagePlugin,Cl as createImageHandler,Hl as createImageDirective,nb as createHeatmapAggregator,bl as createFileManifest,lo as createEnvAccessor,z as createEnhancedError,oo as createEdgeHandler,no as createEdgeCache,Ji as createDetailedErrorMessage,to as createDenoHandler,hl as createDefaultNetlifyConfig,Yd as createCspHeaders,xo as createCookie,Vl as createComputed,Rl as createComponentInstance,so as createCloudflareHandler,Ya as createClientCookieManager,Ui as createBuiltinDirectives,yr as createApp,Ka as createAnimationTimeline,Vp as cover,Zf as convertToCommonJS,aq as contrast,Up as contain,y as consoleError,m as configureErrorHandling,Bk as config,Vl as computed,Un as compressResponse,Ag as composerPattern,zg as composer,Mm as composeShellWithPage,On as componentDirective,Ei as componentClientSignalNames,_m as compileTemplate,a as collectRepeatedFlag,al as collectDeployFiles,_g as cloakStyleFragment,Zj as clearVideoCache,N as clearTranslationCache,jh as clearStoreCache,Xk as clearStorage,zq as clearSignatureCache,Ff as clearServerData,zj as clearPlaceholderCache,sg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Gl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Cg as clearComposers,kh as clearComposableCache,Ki as clearComponentCache,Ij as clearCache,Ib as clearBlankCache,op as cleanupLoadingIndicator,Am as classifyScript,Bm as classifyAllScripts,ap as checkTemplateFile,bp as checkTemplate,Tf as checkCache,wq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Jn as channel,Co as captureScreenshots,Bo as captureScreenshot,Z as cancelPendingLoads,$k as calculateSha1,bj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,jk as buildWebComponents,dp as buildVirtualSource,jr as buildViews,Op as buildUrl,Pe as buildSuspenseResolveScript,Wr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Xm as buildRuntimeAsset,Ym as buildRouterAsset,Vr as buildLangPickerScript,hj as buildImageUrl,Rg as buildIdFragment,Wg as buildHtmlAttrs,ln as buildForProduction,Rn as buildComponentLibrary,xq as buildAuthParams,mn as buildApp,Tr as buildAlternateLinks,Jo as build,Hn as broadcastPrivate,In as broadcastPresence,En as broadcast,$p as brightness,Tb as bracketDepths,Wp as blur,Jb as blankInertHtmlRegions,rq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,hq as auto,ja as attributeValue,Zm as assetTags,Mb as asInvocableStatement,gs as arrayOf,Qr as applyTranslations,Oj as applyTransformations,vi as applySlots,Nn as applyPropDefaults,kq as applyPreset,Yg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Im as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,dk as analyzeVideo,pn as analyzeUsage,ym as analyzeTemplate,zm as analyzeProject,pn as analyzeDirectiveUsage,dd as analyticsDirective,To as addStore,So as addPage,Rd as addNonceToInlineContent,Uo as addLayout,Ro as addComponent,gn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Pg as __setBuildIdForTest,Wj as VideoProcessorCache,fi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,_o as TemplateTypeChecker,Fo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,ur as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Em 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Io as ProductionBuild,wr as Portal,Po as PROJECT_TEMPLATES,jq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Fp as MemorySessionStore,_i as MIME_TYPES,Xi as MEDIA_DEFAULT_WIDTHS,Zi as MEDIA_DEFAULT_FORMATS,Sm as LAYOUT_TYPES_FILE,Lj as ImageProcessorCache,Al as ImageProcessingError,Ap as HydrationRuntime,Ik as HotReloadServer,mb as HeatmapAggregator,Ug as HTML_CLASS_MARKER,Tg as HTML_ATTRS_MARKER,nr as Fragment,vr as For,Fm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Qk as EXTERNALIZED_ASSET_DIR,ml as DeployError,nl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,pl as DEFAULT_QUALITY,oj as DEFAULT_PLACEHOLDER_OPTIONS,ol as DEFAULT_FORMATS,Yi as DEFAULT_DPR_VALUES,rp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,gj as COMMON_SIZES,Gg as COLOR_MODE_BOOT_MARKER,Hg as COLOR_MODE_BOOT_GLOBAL,Sg as CLOAK_STYLE,Ln as BroadcastServer,Kn as Broadcast,Mg as BUILD_ID_META,Ng as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,pj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Gr as $path};
2
+ import{$ as km,$a as no,$b as yp,$c as yq,$d as yr,A as Wk,Aa as yn,Ab as So,Ac as Zp,Ad as Zq,Ae as ds,B as Xk,Ba as zn,Bb as To,Bc as _p,Bd as _q,Be as es,C as Yk,Ca as Mn,Cb as Uo,Cc as $p,Cd as $q,Ce as fs,D as Zk,Da as Nn,Db as Vo,Dc as aq,Dd as ar,De as gs,E as Pl,Ea as On,Eb as Wo,Ec as bq,Ed as br,Ee as hs,F as Ql,Fa as Pn,Fb as Xo,Fc as cq,Fd as cr,Fe as is,G as Rl,Ga as Qn,Gb as Yo,Gc as dq,Gd as dr,Ge as js,H as Sl,Ha as Rn,Hb as Zo,Hc as eq,Hd as er,He as ks,I as Tl,Ia as Vn,Ib as _o,Ic as fq,Id as fr,Ie as ls,J as Ul,Ja as Wn,Jb as $o,Jc as gq,Jd as gr,Je as ms,K as Vl,Ka as Xn,Kb as ap,Kc as hq,Kd as hr,Ke as ns,L as Wl,La as Yn,Lb as bp,Lc as iq,Ld as ir,M as Xl,Ma as Zn,Mb as cp,Mc as jq,Md as jr,N as Yl,Na as _n,Nb as kp,Nc as kq,Nd as kr,O as Zl,Oa as $n,Ob as lp,Oc as lq,Od as lr,P as _l,Pa as ao,Pb as mp,Pc as mq,Pd as mr,Q as $l,Qa as bo,Qb as np,Qc as nq,Qd as nr,R as am,Ra as co,Rb as op,Rc as oq,Rd as or,S as bm,Sa as eo,Sb as pp,Sc as pq,Sd as pr,T as cm,Ta as fo,Tb as qp,Tc as qq,Td as qr,U as dm,Ua as go,Ub as rp,Uc as rq,Ud as rr,V as em,Va as ho,Vb as sp,Vc as sq,Vd as sr,W as fm,Wa as io,Wb as tp,Wc as tq,Wd as tr,X as gm,Xa as jo,Xb as up,Xc as uq,Xd as ur,Y as hm,Ya as ko,Yb as vp,Yc as vq,Yd as vr,Z as im,Za as lo,Zb as wp,Zc as wq,Zd as wr,_ as jm,_a as mo,_b as xp,_c as xq,_d as xr,aa as lm,ab as oo,ac as zp,ad as zq,ae as zr,ba as mm,bb as po,bc as Ap,bd as Aq,be as Gr,ca as nm,cb as qo,cc as Bp,cd as Bq,ce as Hr,da as om,db as ro,dc as Cp,dd as Cq,de as Ir,ea as pm,eb as so,ec as Dp,ed as Dq,ee as Jr,fa as qm,fb as to,fc as Ep,fd as Eq,fe as Kr,ga as rm,gb as uo,gc as Fp,gd as Fq,ge as Lr,ha as sm,hb as vo,hc as Gp,hd as Gq,he as Mr,ia as tm,ib as wo,ic as Hp,id as Hq,ie as Nr,ja as um,jb as xo,jc as Ip,jd as Iq,je as Or,ka as vm,kb as yo,kc as Jp,kd as Jq,ke as Pr,la as wm,lb as zo,lc as Kp,ld as Kq,le as Qr,ma as xm,mb as Ao,mc as Lp,md as Lq,me as Rr,na as ym,nb as Do,nc as Mp,nd as Mq,ne as Sr,o as a,oa as zm,ob as Eo,oc as Np,od as Nq,oe as Tr,p as Hk,pa as nn,pb as Fo,pc as Op,pd as Oq,pe as Ur,q as Ik,qa as on,qb as Go,qc as Pp,qd as Pq,qe as Vr,r as Jk,ra as pn,rb as Io,rc as Qp,rd as Qq,re as Wr,s as Kk,sa as qn,sb as Jo,sc as Rp,sd as Rq,se as Xr,t as Lk,ta as rn,tb as Ko,tc as Sp,td as Sq,te as Yr,u as Mk,ua as sn,ub as Lo,uc as Tp,ud as Tq,ue as Zr,v as Nk,va as tn,vb as No,vc as Up,vd as Uq,ve as _r,w as Ok,wa as un,wb as Oo,wc as Vp,wd as Vq,we as $r,x as Pk,xa as vn,xb as Po,xc as Wp,xd as Wq,xe as as,y as Uk,ya as wn,yb as Qo,yc as Xp,yd as Xq,ye as bs,z as Vk,za as xn,zb as Ro,zc as Yp,zd as Yq,ze as cs}from"./chunk-sxnb6ws9.js";import{Le as dp,Me as ep,Ne as fp,Oe as gp,Pe as hp,Qe as ip,Re as jp}from"./chunk-fxt2hxh0.js";import{Se as Bo,Te as Co}from"./chunk-7hb89n3z.js";import{Ue as Ho}from"./chunk-725npc6m.js";import{Ve as mn}from"./chunk-khaasesy.js";import{We as Sn,Xe as Tn,Ye as Un,Ze as Mo}from"./chunk-a127v0w5.js";import{$e as $k,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll,mf as ml}from"./chunk-n0d7nwhd.js";import{nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl,yf as Ol}from"./chunk-84577w4y.js";import{Af as Cl,zf as Bl}from"./chunk-5j3v0p6s.js";import{Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,Hf as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Of as zl,Rf as Al}from"./chunk-198fr2d4.js";import{Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as _m,Xf as ln}from"./chunk-tcsgynpc.js";import{$f as Dm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as Pm,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn,wg as kn}from"./chunk-bcd9byk3.js";import{xg as Qm,yg as Rm}from"./chunk-0knxnyq6.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,Kg as Ln,zg as An}from"./chunk-634gaa9d.js";import{Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui,Qg as vi}from"./chunk-gv6a9fsn.js";import{Rg as Lj,Sg as Mj,Tg as Nj,Xg as Oj,Yg as Pj,Zg as Qj}from"./chunk-karkhcja.js";import{$g as Xj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk,ih as ek}from"./chunk-ypgyhr2p.js";import{jh as Bj,kh as Cj,lh as Dj,mh as Ej,nh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj,th as Kj}from"./chunk-bcpjhcpn.js";import{uh as wk,wh as xk}from"./chunk-y4zddt5r.js";import{Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph,Hh as Qh}from"./chunk-g7bpkpd4.js";import{Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi,Wh as ci}from"./chunk-k33778kc.js";import{$h as gi,Yh as di,Zh as ei,_h as fi}from"./chunk-yg0qm73a.js";import{ei as hi}from"./chunk-g1vxsvqv.js";import{hi as kh}from"./chunk-5ppdkjhy.js";import{ii as lh}from"./chunk-fqq5k9ve.js";import{ji as mh,ki as nh}from"./chunk-ya5m5vbn.js";import{li as oh,mi as ph,ni as qh,oi as rh,pi as sh,qi as th}from"./chunk-y4nzmkea.js";import{ri as uh,si as vh,ti as wh,ui as xh,vi as yh}from"./chunk-7kw3grq5.js";import{Ai as Dh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-c79nfdyj.js";import{Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh,Hi as Kh}from"./chunk-ej8mv2k6.js";import{Ii as ih,Ji as jh}from"./chunk-14fy0xrz.js";import"./chunk-ra1s4s6b.js";import{Ni as Oe,Oi as Pe,Pi as Qe,Qi as Re,Ri as Se,Si as Te,Ti as Ue,Ui as Ve,Vi as We,Wi as Xe,Xi as Ye,Yi as Ze,Zi as _e,_i as $e}from"./chunk-ec4072zn.js";import{$i as rf,aj as sf,bj as tf,cj as uf,dj as vf,ej as wf,fj as xf,gj as yf,hj as zf,ij as Af,jj as Bf,kj as Cf,lj as Df,mj as Ef,nj as Ff,oj as Gf,pj as Hf}from"./chunk-pwctc0m1.js";import{Aj as gf,Bj as hf,Cj as jf,Dj as kf,Ej as lf,Fj as mf,Gj as nf,Hj as of,Ij as pf,Jj as qf,wj as cf,xj as df,yj as ef,zj as ff}from"./chunk-0t1yyn1d.js";import{Kj as If,Lj as Jf,Mj as Kf,Nj as Lf,Oj as Mf,Pj as Nf,Qj as Of,Rj as Pf,Sj as Qf,Tj as Rf,Uj as Sf,Vj as Tf,Wj as Uf,Xj as Vf}from"./chunk-cjz5nzak.js";import{pk as Ar,qk as Br,rk as Cr,sk as Dr,tk as Er,uk as Fr}from"./chunk-t2yqh8nb.js";import{Ak as Tm,Bk as Um,Ck as Vm,vk as Qk,wk as Rk,xk as Sk,yk as Tk,zk as Sm}from"./chunk-necx4e30.js";import"./chunk-frp9fc7j.js";import"./chunk-n3xxhvng.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-jtzfd61j.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$n as He,$o as yg,$p as mi,$q as Rj,Al as Ca,Am as Ec,An as Qd,Ap as Zg,Aq as aj,Ar as Dk,Bl as Da,Bm as Fc,Bn as Rd,Bo as Xf,Bp as _g,Bq as bj,Br as Ek,Cl as Ea,Cm as Gc,Cn as Sd,Cp as $g,Cq as cj,Cr as Fk,Dl as Fa,Dm as Hc,Dn as Td,Dp as ah,Dq as dj,Dr as Gk,El as Ga,Em as Ic,En as Ud,Ep as bh,Eq as ej,Fl as Ha,Fm as Jc,Fn as Vd,Fp as ch,Fq as fj,Gl as Ia,Gm as Kc,Gn as Wd,Gp as dh,Gq as gj,Hl as Ja,Hm as Lc,Hn as Xd,Hp as eh,Hq as hj,Il as Ka,Im as Mc,In as Yd,Io as Yf,Ip as fh,Iq as ij,Jl as La,Jm as Nc,Jn as Zd,Jp as gh,Jq as jj,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as hh,Kq as kj,Ll as Na,Lm as Pc,Ln as $d,Lp as ii,Lq as lj,Ml as Oa,Mm as Zc,Mn as qe,Mo as _f,Mp as ji,Mq as mj,Nl as ib,Nm as _c,Nn as re,No as $f,Nq as nj,Ol as jb,Om as $c,On as se,Oo as ag,Oq as oj,Pl as kb,Pm as ad,Pn as te,Po as bg,Pp as ki,Pq as pj,Ql as lb,Qm as bd,Qn as ue,Qo as cg,Qq as qj,Rl as mb,Rm as cd,Rn as ve,Ro as dg,Rq as rj,Sl as nb,Sm as dd,Sn as we,So as pg,Sq as sj,Tn as xe,To as qg,Tq as tj,Um as ed,Un as ye,Uo as rg,Uq as uj,Vl as Kb,Vm as fd,Vn as ze,Vo as sg,Vq as vj,Wl as Lb,Wm as gd,Wn as Ae,Wo as tg,Wq as wj,Xl as Mb,Xm as hd,Xn as Be,Xo as ug,Xq as xj,Yl as Nb,Ym as id,Yn as Ce,Yo as vg,Yq as yj,Zl as Ob,Zm as jd,Zn as De,Zo as wg,Zq as zj,_l as Pb,_m as kd,_o as xg,_p as li,_q as Aj,am as Ub,an as md,ao as Ie,ap as zg,aq as ni,ar as Sj,bm as Vb,bn as nd,bo as Je,bp as Ag,bq as oi,br as Tj,cm as Wb,cn as od,co as Ke,cp as Bg,cq as pi,cr as Uj,dm as hc,dn as pd,do as Le,dp as Cg,dq as wi,dr as Vj,em as ic,en as ud,eo as Me,ep as Dg,eq as xi,er as fk,fm as jc,fn as vd,fo as Ne,fp as Eg,fq as yi,fr as gk,gm as kc,gn as wd,gp as Fg,gq as zi,gr as hk,hm as lc,hn as xd,hp as Gg,hq as Ai,hr as ik,im as mc,in as yd,ip as Hg,iq as Bi,ir as jk,jm as nc,jn as zd,jo as af,jp as Ig,jq as Ci,jr as kk,km as oc,kn as Ad,ko as bf,kp as Jg,kq as Di,kr as lk,lm as pc,ln as Bd,lp as Kg,lq as Ei,lr as mk,mm as qc,mn as Cd,mo as Wf,mp as Lg,mq as Fi,mr as nk,nm as rc,nn as Dd,np as Mg,nq as Gi,nr as ok,om as sc,on as Ed,op as Ng,oq as Hi,or as pk,pm as tc,pn as Fd,pp as Og,pq as Ii,pr as qk,qm as uc,qn as Gd,qp as Pg,qq as Ji,qr as rk,rm as vc,rn as Hd,rp as Qg,rq as Ki,rr as sk,sm as wc,sn as Id,sp as Rg,sq as Li,sr as tk,tm as xc,tn as Jd,tp as Sg,tq as Mi,tr as uk,um as yc,un as Kd,up as Tg,uq as Ni,ur as vk,vl as xa,vm as zc,vn as Ld,vp as Ug,vq as Xi,vr as yk,wl as ya,wm as Ac,wn as Md,wp as Vg,wq as Yi,wr as zk,xl as za,xm as Bc,xn as Nd,xp as Wg,xq as Zi,xr as Ak,yl as Aa,ym as Cc,yn as Od,yp as Xg,yq as _i,yr as Bk,zl as Ba,zm as Dc,zn as Pd,zp as Yg,zq as $i,zr as Ck}from"./chunk-pw8q3ety.js";import{$r as ja,Er as M,Fr as N,Gr as O,Hr as P,Ir as Q,Jr as R,Kr as S,Lr as T,Mr as U,Nr as V,Or as W,Pr as X,Qr as Y,Rr as Z,Sr as _,Tr as $,Ur as aa,Vr as ba,Wr as ca,Xr as da,Yr as ea,Zr as fa,_r as ia,as as ka,bs as la,cs as ma,ds as na,es as oa,fs as pa,gs as qa,hs as ra,is as sa,js as ta,ks as ua,ls as va,ms as wa}from"./chunk-jc6wrxrh.js";import{ns as ga,os as ha}from"./chunk-2xpdcr8c.js";import{ps as Rb,qs as Sb,rs as Tb}from"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import{As as Qi,Bs as Ri,Cs as Si,Ds as Ti,Es as Ui,Fs as Vi,Gs as Wi,ys as Oi,zs as Pi}from"./chunk-135mme4g.js";import{$s as Tc,Ys as Qc,Zs as Rc,_s as Sc,at as Uc,ct as Vc,lt as Wc,mt as Xc,nt as Yc}from"./chunk-sf45fhg4.js";import{ot as Xb,pt as Yb,qt as Zb,rt as _b,st as $b,tt as ac}from"./chunk-w1asc0zd.js";import{At as Ee,Ct as Fe,Ft as Ge}from"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import{Kt as cc,Lt as dc}from"./chunk-xk402w4a.js";import{Pt as eg,Qt as fg,Rt as gg,St as hg,Tt as ig,Ut as jg,Vt as kg,Xt as lg,Yt as mg,Zt as ng,_t as og}from"./chunk-dnard9gp.js";import{$t as qd,Au as oe,Bu as pe,au as rd,bu as sd,cu as td,mu as ae,nu as be,ou as ce,pu as de,qu as ee,ru as fe,su as ge,tu as he,uu as ie,vu as je,wu as ke,xu as le,yu as me,zu as ne}from"./chunk-vgx5077x.js";import{$u as A,Cu as b,Du as c,Eu as d,Fu as e,Gu as f,Hu as g,Iu as h,Ju as i,Ku as j,Lu as k,Mu as l,Nu as m,Ou as n,Pu as o,Qu as p,Ru as q,Su as r,Tu as s,Uu as t,Vu as u,Wu as v,Xu as w,Yu as x,Zu as y,_u as z,av as B,bv as C,cv as D,dv as E,ev as F,fv as G,gv as H,hv as I,iv as J,jv as K,kv as L}from"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import{Av as ob,Bv as pb,Cv as qb,Dv as rb,Ev as sb,Fv as tb,Gv as ub,Hv as vb,Iv as wb,Jv as xb,Kv as yb,Lv as zb,Mv as Ab,Nv as Bb,Ov as Cb,Pv as Db,Qv as Eb,Rv as Fb,Sv as Gb,Tv as Hb,Uv as Ib,Vv as Jb}from"./chunk-7racewc5.js";import{Aw as fb,Bw as gb,Dw as hb,Zv as Pa,_v as Qa,bw as Ra,gw as Sa,hw as Ta,nw as Ua,ow as Va,pw as Wa,qw as Xa,rw as Ya,sw as Za,tw as _a,uw as $a,vw as ab,ww as bb,xw as cb,yw as db,zw as eb}from"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{il as writeNetlifyConfig,an as writeManifest,Nl as writeImageManifest,tp as wrapComponentForHMR,as as withDefaults,vk as webComponentDirectiveHandler,iq as watermark,kr as watchViews,Xl as watchMultiple,Yl as watchEffect,Wl as watch,Le as warmImagePlaceholders,jm as waitForStore,X as waitForLocale,ep as virtualPathFor,ik as videoDirective,G as validators,es as validated,Be as validateValueEnhanced,li as validateTemplate,Qm as validateRouteRules,nq as validateParams,Ce as validateFormEnhanced,$q as validateFile,xe as validateFields,we as validateField,ni as validateDirective,Wd as validateCspDirectives,Dk as validateConfig,on as validateComponentScripts,Mn as validateComponentProps,hh as validateClientScript,gi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Bi as userComponentFileExists,Oh as useVirtualList,ie as useTitle,im as useStoreOrThrow,Lp as useStore,Uk as useStorage,zf as useSlots,Wk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,km as useRouteParams,mm as useRouteParamOrThrow,lm as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,om as useMiddlewareValue,nm as useMiddlewareState,Vk as useLocalStorage,mp as useLoadingIndicator,de as useHead,di as useForm,Bf as useAttrs,br as uploadFiles,ar as uploadFile,fm as updateInstance,of as untrack,Ri as unregisterDirective,gm as unmountInstance,Pc as unescapeHtml,ip as typecheckStxFiles,zi as transpileTypeScript,Pr as translate,Ba as transitionDirective,lc as transformAutoImports,Gn as toUsers,Fn as toUser,Tp as thumbnail,Uq as thumbHashToRGBA,Vq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,qp as stxClientHelpers,jg as structuredDataDirective,Sr as stripLocalePrefix,Nm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,ro as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Pk as stopHmrServer,Cn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,bh as startsDocument,Mo as startProductionServer,Ho as startInteractive,Bn as startBroadcasting,Ur as stampLocaleLayoutGroup,Ia as staggerDirective,lq as srcsetUrls,Ja as springDirective,td as splitByPipe,Jm as spaNavVaryHeaders,fp as sourcePathFor,sq as smartBatchSign,Di as slotContentHasExpressions,qq as signUrl,xi as shouldTranspileTypeScript,Mk as shouldReloadOnChange,vq as shouldRefreshSignature,Nk as shouldIgnoreFile,Gh as shouldCacheComponent,Xp as sharpen,hs as shape,Zb as setStateDir,sm as setRouteParams,tm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Pl as setCurrentInstance,Yj as setCachedVideoResult,Nj as setCachedImageResult,Hj as setCached,ks as serveStxFile,ms as serveMultipleStxFiles,Hk as serveMarkdownFile,Xo as serveFile,ns as serveApp,Wo as serve,wp as serializeState,cn as serializeSetCookie,Zp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ai as scopeOnRootElement,mk as scopeHTML,lk as scopeCSS,mg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,bq as saturation,oq 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,xg as runPreProcessingMiddleware,yg as runPostProcessingMiddleware,fn as runPageAction,jf as runMountCallbacks,gb as runMiddleware,dm as runHooks,Ir as runDoctor,kf as runDestroyCallbacks,Bg as runComposers,cq as rotate,hi as rewriteImagesWithSiblings,nd as responseBindings,Hi as resolveTemplatePath,ha as resolveStxTargets,zk as resolveStxDirectories,Or as resolveI18n,Rp as resize,pg as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,vp as resetHMRHandler,o as resetErrorConfig,cs as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,ir as renderView,fk as renderVideoComponent,ic as renderVendorStyleTags,rr as renderToString,sr as renderToStream,tr as renderToDOM,Tq as renderThumbhashToCanvas,Fr as renderTemplateString,Dr as renderTemplate,Er as renderString,Re as renderStreamingPage,si as renderSlot,wh as renderSSRSuspense,Dq as renderProtectedVideo,Cq as renderProtectedImg,pq as renderMediaUpload,Cr as renderMarkdownView,Um as renderLayoutTypes,Rj as renderImgComponent,Dl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,lr as renderEmail,Fi as renderComponentWithSlot,le as renderBodyAttrs,Gp as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Np as registerStoresClient,qm as registerStore,Qf as registerServeModuleBundle,kg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Oi as registerDirective,Vd as registerCspDirectives,Pn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Tl as ref,zo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Fk as readMarkdownFile,Jf as readFileCached,Ul as reactive,gq as quality,Aq as pruneSignatureCache,Kj as pruneCache,rf as provide,Br as protectCodeBlocks,bs as prop,Eg as processVueTemplate,Mh as processVirtualListDirectives,Qh as processVirtualGridDirectives,ek as processVideo,ye as processValidateDirective,ea as processTranslateDirective,qh as processTransitionDirectives,th as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,mh as processTeleportDirectives,uh as processSuspenseDirectives,fg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,bi as processStaticDirectives,vg as processStackReplacements,ug as processStackPushDirectives,ti as processSlots,Lm as processShell,Ne as processServerBindings,gg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Eq as processProtectedMedia,Wh as processPartialHydrationDirectives,gh as processOnceDirective,wg as processMiddleware,eg as processMetaDirectives,pe as processMetaDirective,Gk as processMarkdownFileDirectives,Mi as processMarkdownDirectives,cg as processLoops,Eh as processKeepAliveDirectives,fh as processJsonDirective,Ph as processInfiniteListDirectives,tg as processIncludes,Tj as processImgComponents,Fl as processImageComponents,sl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Fg as processDynamicComponents,ii as processDirectives,Wi as processDirectiveAttributes,lh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,is as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,zh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,lp as preloadIslandHandlers,Me as preloadIconCollection,xn as poolStrings,xk as pluginManager,Ie as placeholdersWarmed,ph as performLeave,oh as performEnter,lf as pendingLifecycleCounts,pf as peek,qg as partialsCache,gk as parseVideoDirectiveOptions,Pp as parseUrl,Wq as parseThumbhashString,zd as parseSwitchBlock,qi as parseSlots,ri as parseSlotElement,Ed as parseScriptDeclarations,tk as parseSFCComponent,Fq as parseProtectedArgs,ag as parseLoopBinding,Sj as parseImgComponent,ij as parseImageUrl,El as parseImageComponent,dn as parseFormBody,Bd as parseExpressionWithFilters,Qn as parseDefaults,wo as parseCookies,Cm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,ds as optional,yn as optimizeTemplate,Kl as optimizeImage,Ll as optimizeDirectory,fs as oneOf,rg as onceStore,am as onUpdated,Zc as onUpdate,cm as onUnmounted,xm as onServer,_l as onMounted,gf as onMount,ai as onHydrated,xf as onErrorCaptured,hf as onDestroy,Kh as onDeactivated,wm as onClient,$l as onBeforeUpdate,bm as onBeforeUnmount,Zl as onBeforeMount,Jh as onActivated,Pq as observeElement,Ao as notFound,Kg as normalizeCriticalHeadOrder,wf as nextTick,Tn as negotiateEncoding,Ua as navigateTo,em as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,wn as minifyHtml,ig as metaDirective,Vg as metaDedupKey,Qp as mergeParams,Xg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Ni as markdownDirectiveHandler,Ek as markdownCache,ga as looksLikeGlob,Rr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ak as loadStxConfig,db as loadMiddlewareFromDirectory,bn as loadManifest,Lq as loadElement,Dn as loadChannels,Lb as listensPassively,Yr as lintStxStrict,Nq as lazyLoadAll,Mq as lazyLoad,Ha as keyframeDirective,pr as jsxs,qr as jsxDEV,or as jsx,yo as jsonResponse,Xe as islandDirective,l as isTest,Om as isSpaNavigation,Hm as isSpaNavRequest,tq as isSignatureValid,mf as isSignal,ql as isSharpAvailable,ko as isServerEnvironment,um as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Iq as isNativeLazySupported,Ar as isMarkdownPath,Q as isLoading,R as isLoaded,wi as isJavaScriptScript,Jq as isIntersectionObserverSupported,yl as isImageFile,rl as isImageBackendAvailable,aa as isICUFormat,$h as isHydrated,Ci as isHydrateTrigger,gd as isHttpStatus,jo as isEdgeEnvironment,Zr as isDirectiveKind,k as isDevelopment,nf as isDerived,Lk as isCssOnlyChange,Sn as isCompressible,vm as isClient,Bh as isAsyncComponent,en as isActionableMethod,_p as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Nr as injectThemeBootstrap,hg as injectSeoTags,Kr as injectSeo,Wf as injectRouterScript,Kk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,dh as injectConfigHeadTags,Jg as injectColorModeBootScript,Zg as injectCloakStyle,Qg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,pm as initStoreRegistry,ll as initNetlify,np as initLoadingIndicator,Kq as initLazyLoading,Go as initFile,Sq as initBlurUp,Yq as initAllBlurUp,Vj as imgDirective,Il as imageDirective,jn as hydrateTemplateStream,hn as hydrateTemplate,kp as hydrateIslands,Yh as hydrateIsland,kn as hydrateFragment,Zh as hydrateByStrategy,_h as hydrateAll,Dp as hydrate,Vo as htmlResponse,$g as hoistLeadingHeadTags,Lg as hoistColorModeBootScript,lb as heatmapDirective,Dj as hashString,Vf as hashFilePath,Bj as hashFile,Cj as hashBuffer,Dg as hasVueTemplateSyntax,$f as hasVariables,Ip as hasStore,xc as hasPlaceholders,jl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,ch as hasDocumentShell,oi as hasDirectives,ma as hasDOMSupport,Bl as handleImageRequest,yf as handleError,xr as h,xl as groupVariantsByFormat,Yp as grayscale,Oo as gitHash,qn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,el as getTotalSize,uq as getTimeUntilExpiry,ih as getStoreScript,Jp as getStoreNames,Hp as getStore,Zk as getStorageSize,Yk as getStorageKeys,Ii as getSourceLineInfo,yi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,nk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,mi as getPositionInfo,uc as getPlaceholderRegistry,Aj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,zl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,tl as getImageMetadata,Ee as getImageDelivery,Cp as getHydrationRuntime,rm as getHydratedStoreState,Ok as getHmrServer,ae as getHead,up as getHMRHandler,mj as getFormatExtension,Fj as getFileMtime,wl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Qi as getDirectives,Pi as getDirective,Ql as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Li as getComponentCacheStats,Xj as getCachedVideoResult,yq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,yj as getCachedPlaceholder,Mj as getCachedImageResult,Gj as getCached,Jj as getCacheStats,Og as getBuildId,An as getBroadcastServer,lj as getBestVariant,Bc as getAllFilters,$i as generateWidthSrcset,Nh as generateVirtualListCSS,dr as generateVideoPreview,De as generateValidationScript,er as generateUploadRuntime,rn as generateTreeShakenBundle,sh as generateTransitionRuntime,rh as generateTransitionCSS,$j as generateThumbnails,rj as generateThumbhashPlaceholder,ao as generateTemplatesDocs,yh as generateSuspenseRuntime,xh as generateSuspenseCSS,xp as generateStateScript,jj as generateSrcsetData,Qj as generateSrcset,ul as generateSrcSet,ak as generateSpriteSheet,mr as generateSpaShell,kj as generateSourceTags,fj as generateSizesFromBreakpoints,ej as generateSizesAttribute,vl as generateSizes,lg as generateSitemapIndex,Lr as generateSitemap,Hq as generateSimpleMediaPicker,Bq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,kk as generateScopeId,uk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,ng as generateRobotsTxt,Mr as generateRobots,Pj as generateResponsiveVariants,qk as generateReactiveWebComponentTS,pk as generateReactiveWebComponent,sk as generateReactiveRuntime,rk as generateReactiveMixin,_j as generatePoster,xj as generatePlaceholderStyle,wj as generatePlaceholderCSS,qj as generatePlaceholder,Xh as generatePartialHydrationCSS,Fd as generateNonce,fl as generateNetlifyToml,gr as generateMinifiedMediaRuntime,fr as generateMediaRuntime,Gq as generateMediaManagerEmbed,$m as generateManifest,pp as generateLoadingIndicatorHtml,Rq as generateLazyLoadRuntime,Vm as generateLayoutTypes,tj as generateLQIP,Ih as generateKeepAliveRuntime,Hh as generateKeepAliveCSS,ci as generateIslandManifest,cr as generateImagePreview,Ml as generateImageManifest,Bp as generateHydrationScript,$e as generateHydrationRuntime,Ep as generateHydrationCSS,Rh as generateHydrationBootstrap,Jk as generateHotReloadScript,jb as generateHeatmapScript,sp as generateHMRClientScript,bk as generateHLSManifest,yp as generateEventBindings,dj as generateDprSrcsetWithVariableQuality,cj as generateDprSrcset,ah as generateDocumentShell,go as generateDocs,bo as generateDirectivesDocs,Vi as generateDirectiveRuntime,og as generateDefaultRobotsTxt,ck as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,$n as generateComponentsDocs,Sh as generateComponentManifest,Zn as generateComponentDoc,vj as generateColorPlaceholder,Ig as generateColorModeBootScript,hm as generateClientRuntime,Ej as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Zq as generateBlurUpRuntime,_q as generateBlurUpCSS,$c as generateBindingsRuntime,aj as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Dh as generateAsyncComponentRuntime,Ch as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,jp as formatTypecheckDiagnostics,cp as formatTypeErrors,Do as formatStxContent,dl as formatSize,Ta as formatRoutes,Eo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Jr as formatDoctorReport,co as formatDocsAsMarkdown,fo as formatDocsAsJson,eo as formatDocsAsHtml,fq as format,vn as foldConstants,eq as flipVertical,dq as flipHorizontal,Wm as fingerprint,hp as findStxModuleDeclarations,gp as findRuntimeTypeDeclarations,Hr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,sn as findDeadCode,sn as findDeadBranches,Dm as findContainerRegion,_n as findComponentFiles,ls as findCommonDir,cl as filterRequiredFiles,Gi as fileExists,Yf as extractVariables,ki as extractTemplateExpressions,Te as extractStreamBoundaries,zp as extractState,ui as extractSlotContent,_f as extractScriptFromTemplate,ji as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,uj as extractDominantColor,Dd as extractDirectiveParams,pi as extractDirectiveNames,Pm as extractContainerContent,Xn as extractComponentProps,Th as extractComponentName,Yn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Uh as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,ok as extractAndScopeStyles,Ob as extractAndProcessEvents,Sk as externalizeSharedAssets,Tk as externalizeRepeatedAssets,Rk as externalizeHtml,Oc as evaluateExpression,un as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,nh as ensureTeleportTargets,eh as ensureDocumentShell,ze as enhancedValidationRules,Vn as enableDevTools,tn as eliminateDeadCode,ef as effect,mq as dprUrls,ho as docsCommand,ec as discoverServerApi,Tm as discoverLayoutNames,Qq as disconnectObserver,Wn as disableDevTools,F as devHelpers,Km as detectShell,io as detectRuntime,gl as detectProjectConfig,nj as detectFormat,nn as detectBuildMode,df as derived,kl as deploy,Ck as defineStxConfig,Mp as defineStore,Af as defineSlots,Xr as defineSiteConfig,$r as definePropsWithValidation,_r as defineProps,wk as definePlugin,he as definePageMeta,Wa as defineMiddleware,ei as defineForm,vf as defineExpose,uf as defineEmits,Si as defineDirective,zr as defineCustomElement,Lo as defineConfig,Ti as defineClientDirective,Ah as defineAsyncComponent,No as defineApiHandler,hr as defaultMediaConfig,Ol as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,yk as defaultConfig,js as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Gm as decodeTitleEntities,sj as decodeThumbhash,dg as declareBareLoopHead,Ud as cspNonceDirective,Td as cspDirective,Xq as crossfadeTransition,Sp as crop,Lh as createVirtualList,hk as createVideoDirective,uo as createVercelHandler,$o as createTypeChecker,fa as createTranslateFilter,qo as createTextEncoderStream,yr as createStxApp,po as createStreamingResponse,Ve as createStreamRenderer,Kp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Sl as createScope,vh as createSSRSuspense,af as createRouter,Rm as createRouteRuleResolver,eb as createRouteLocation,Zo as createRoute,Tl as createRef,Ul as createReactive,Cf as createProvideContext,Qo as createProject,Ko as createProductionBuild,tc as createPlaceholder,zn as createOptimizedBuild,vo as createNetlifyHandler,_k as createNetlifyClient,fb as createMiddlewareContext,Yo as createMiddleware,Oq as createLazyObserver,Fh as createKeepAliveCache,mo as createKVNamespace,Vh as createIslandRegistry,Uj as createImgDirective,Jl as createImagePlugin,Cl as createImageHandler,Hl as createImageDirective,nb as createHeatmapAggregator,bl as createFileManifest,lo as createEnvAccessor,z as createEnhancedError,oo as createEdgeHandler,no as createEdgeCache,Ji as createDetailedErrorMessage,to as createDenoHandler,hl as createDefaultNetlifyConfig,Yd as createCspHeaders,xo as createCookie,Vl as createComputed,Rl as createComponentInstance,so as createCloudflareHandler,Ya as createClientCookieManager,Ui as createBuiltinDirectives,yr as createApp,Ka as createAnimationTimeline,Vp as cover,Zf as convertToCommonJS,aq as contrast,Up as contain,y as consoleError,m as configureErrorHandling,Bk as config,Vl as computed,Un as compressResponse,Ag as composerPattern,zg as composer,Mm as composeShellWithPage,On as componentDirective,Ei as componentClientSignalNames,_m as compileTemplate,a as collectRepeatedFlag,al as collectDeployFiles,_g as cloakStyleFragment,Zj as clearVideoCache,N as clearTranslationCache,jh as clearStoreCache,Xk as clearStorage,zq as clearSignatureCache,Ff as clearServerData,zj as clearPlaceholderCache,sg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Gl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Cg as clearComposers,kh as clearComposableCache,Ki as clearComponentCache,Ij as clearCache,Ib as clearBlankCache,op as cleanupLoadingIndicator,Am as classifyScript,Bm as classifyAllScripts,ap as checkTemplateFile,bp as checkTemplate,Tf as checkCache,wq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Jn as channel,Co as captureScreenshots,Bo as captureScreenshot,Z as cancelPendingLoads,$k as calculateSha1,bj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,jk as buildWebComponents,dp as buildVirtualSource,jr as buildViews,Op as buildUrl,Pe as buildSuspenseResolveScript,Wr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Xm as buildRuntimeAsset,Ym as buildRouterAsset,Vr as buildLangPickerScript,hj as buildImageUrl,Rg as buildIdFragment,Wg as buildHtmlAttrs,ln as buildForProduction,Rn as buildComponentLibrary,xq as buildAuthParams,mn as buildApp,Tr as buildAlternateLinks,Jo as build,Hn as broadcastPrivate,In as broadcastPresence,En as broadcast,$p as brightness,Tb as bracketDepths,Wp as blur,Jb as blankInertHtmlRegions,rq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,hq as auto,ja as attributeValue,Zm as assetTags,Mb as asInvocableStatement,gs as arrayOf,Qr as applyTranslations,Oj as applyTransformations,vi as applySlots,Nn as applyPropDefaults,kq as applyPreset,Yg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Im as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,dk as analyzeVideo,pn as analyzeUsage,ym as analyzeTemplate,zm as analyzeProject,pn as analyzeDirectiveUsage,dd as analyticsDirective,To as addStore,So as addPage,Rd as addNonceToInlineContent,Uo as addLayout,Ro as addComponent,gn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Pg as __setBuildIdForTest,Wj as VideoProcessorCache,fi as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,_o as TemplateTypeChecker,Fo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,ur as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Em 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Io as ProductionBuild,wr as Portal,Po as PROJECT_TEMPLATES,jq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Fp as MemorySessionStore,_i as MIME_TYPES,Xi as MEDIA_DEFAULT_WIDTHS,Zi as MEDIA_DEFAULT_FORMATS,Sm as LAYOUT_TYPES_FILE,Lj as ImageProcessorCache,Al as ImageProcessingError,Ap as HydrationRuntime,Ik as HotReloadServer,mb as HeatmapAggregator,Ug as HTML_CLASS_MARKER,Tg as HTML_ATTRS_MARKER,nr as Fragment,vr as For,Fm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Qk as EXTERNALIZED_ASSET_DIR,ml as DeployError,nl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,pl as DEFAULT_QUALITY,oj as DEFAULT_PLACEHOLDER_OPTIONS,ol as DEFAULT_FORMATS,Yi as DEFAULT_DPR_VALUES,rp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,gj as COMMON_SIZES,Gg as COLOR_MODE_BOOT_MARKER,Hg as COLOR_MODE_BOOT_GLOBAL,Sg as CLOAK_STYLE,Ln as BroadcastServer,Kn as Broadcast,Mg as BUILD_ID_META,Ng as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,pj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Gr as $path};
@@ -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{Io as V}from"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import{Sw as F}from"./chunk-m8kem5ca.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`
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{Io as V}from"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import{Sw as F}from"./chunk-m8kem5ca.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-7k7vqrj3.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-7k7vqrj3.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(`
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-jwna46yq.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-jwna46yq.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}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{am as c,dm as d,em as e,fm as f,gm as g,hm as h,im as i,jm as j,km as k,lm as l,mm as m,nm as n}from"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import{ps as a,qs as b}from"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
2
+ import{am as c,dm as d,em as e,fm as f,gm as g,hm as h,im as i,jm as j,km as k,lm as l,mm as m,nm as n}from"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import{ps as a,qs as b}from"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Gt as a,Ht as b}from"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-m8kem5ca.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
2
+ import{Gt as a,Ht as b}from"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-m8kem5ca.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Xf as a}from"./chunk-p4eqd3fp.js";import"./chunk-sr09yndb.js";import"./chunk-0knxnyq6.js";import"./chunk-pwctc0m1.js";import"./chunk-0t1yyn1d.js";import"./chunk-frp9fc7j.js";import"./chunk-7rj4h2t2.js";import"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{a as buildForProduction};
2
+ import{Xf as a}from"./chunk-tcsgynpc.js";import"./chunk-bcd9byk3.js";import"./chunk-0knxnyq6.js";import"./chunk-pwctc0m1.js";import"./chunk-0t1yyn1d.js";import"./chunk-frp9fc7j.js";import"./chunk-jtzfd61j.js";import"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{a as buildForProduction};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Do as a,Eo as b,Fo as c,Go as d,Ho as e,Io as f,Jo as g,Ko as h,Lo as i,Mo as j,No as k}from"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{b as stripTypeScript,i as splitDeclaration,d as isSyntaxFailure,c as isModuleResolutionFailure,e as isMissingBindingFailure,g as isCompleteImport,k as hasVariables,f as extractVariables,j as extractScriptFromTemplate,h as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
2
+ import{Do as a,Eo as b,Fo as c,Go as d,Ho as e,Io as f,Jo as g,Ko as h,Lo as i,Mo as j,No as k}from"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";export{b as stripTypeScript,i as splitDeclaration,d as isSyntaxFailure,c as isModuleResolutionFailure,e as isMissingBindingFailure,g as isCompleteImport,k as hasVariables,f as extractVariables,j as extractScriptFromTemplate,h as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-jk8exx37.js";import"./chunk-b381xgvw.js";import"./chunk-7hb89n3z.js";import"./chunk-7kfv1q2r.js";import"./chunk-zjm3pz95.js";import"./chunk-zbk9frkq.js";import"./chunk-n0d7nwhd.js";import"./chunk-84577w4y.js";import"./chunk-5j3v0p6s.js";import"./chunk-198fr2d4.js";import"./chunk-p4eqd3fp.js";import"./chunk-sr09yndb.js";import"./chunk-0knxnyq6.js";import"./chunk-634gaa9d.js";import"./chunk-r6xmsxaz.js";import"./chunk-karkhcja.js";import"./chunk-ypgyhr2p.js";import"./chunk-bcpjhcpn.js";import"./chunk-y4zddt5r.js";import"./chunk-g7bpkpd4.js";import"./chunk-k33778kc.js";import"./chunk-yg0qm73a.js";import"./chunk-g1vxsvqv.js";import"./chunk-0ppgyq8q.js";import"./chunk-fqq5k9ve.js";import"./chunk-ya5m5vbn.js";import"./chunk-y4nzmkea.js";import"./chunk-7kw3grq5.js";import"./chunk-c79nfdyj.js";import"./chunk-ej8mv2k6.js";import"./chunk-bab01mkf.js";import"./chunk-ra1s4s6b.js";import"./chunk-benx1c4p.js";import"./chunk-pwctc0m1.js";import"./chunk-0t1yyn1d.js";import"./chunk-k91ej0ts.js";import"./chunk-rargfb5s.js";import"./chunk-necx4e30.js";import"./chunk-frp9fc7j.js";import{bl as u,cl as c}from"./chunk-qg0w5tjb.js";import"./chunk-7rj4h2t2.js";import"./chunk-qjvny3wf.js";import"./chunk-2119txb8.js";import{fs as f}from"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import{Js as A}from"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import{Sw as B}from"./chunk-m8kem5ca.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.362";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
3
+ import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-sxnb6ws9.js";import"./chunk-fxt2hxh0.js";import"./chunk-7hb89n3z.js";import"./chunk-725npc6m.js";import"./chunk-khaasesy.js";import"./chunk-a127v0w5.js";import"./chunk-n0d7nwhd.js";import"./chunk-84577w4y.js";import"./chunk-5j3v0p6s.js";import"./chunk-198fr2d4.js";import"./chunk-tcsgynpc.js";import"./chunk-bcd9byk3.js";import"./chunk-0knxnyq6.js";import"./chunk-634gaa9d.js";import"./chunk-gv6a9fsn.js";import"./chunk-karkhcja.js";import"./chunk-ypgyhr2p.js";import"./chunk-bcpjhcpn.js";import"./chunk-y4zddt5r.js";import"./chunk-g7bpkpd4.js";import"./chunk-k33778kc.js";import"./chunk-yg0qm73a.js";import"./chunk-g1vxsvqv.js";import"./chunk-5ppdkjhy.js";import"./chunk-fqq5k9ve.js";import"./chunk-ya5m5vbn.js";import"./chunk-y4nzmkea.js";import"./chunk-7kw3grq5.js";import"./chunk-c79nfdyj.js";import"./chunk-ej8mv2k6.js";import"./chunk-14fy0xrz.js";import"./chunk-ra1s4s6b.js";import"./chunk-ec4072zn.js";import"./chunk-pwctc0m1.js";import"./chunk-0t1yyn1d.js";import"./chunk-cjz5nzak.js";import"./chunk-t2yqh8nb.js";import"./chunk-necx4e30.js";import"./chunk-frp9fc7j.js";import{bl as u,cl as c}from"./chunk-n3xxhvng.js";import"./chunk-jtzfd61j.js";import"./chunk-qjvny3wf.js";import"./chunk-pw8q3ety.js";import{fs as f}from"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import{Js as A}from"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import{Sw as B}from"./chunk-m8kem5ca.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.363";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
4
4
  Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-p41s1y4v.js");if(x==="list"){console.log(`
5
5
  \uD83D\uDCDA Fetching available icon collections...
6
6
  `);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
7
7
  `);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
8
8
  Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
9
9
  \u2713 Package generated successfully!`),console.log(`
10
- To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-dwyad9gb.js"),{loadConfig:j}=await import("./chunk-nabannen.js");console.log(`
10
+ To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-dwyad9gb.js"),{loadConfig:j}=await import("./chunk-51tct8h7.js");console.log(`
11
11
  \uD83D\uDD0D Running PWA audit...
12
12
  `);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
13
13
  No .stx files matched ${x}
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
69
69
  File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
70
70
  File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
71
71
  Pages directory not found: ${k}`),console.log(`
72
- Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-kbfbfjpz.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
72
+ Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-00hwz03z.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
73
73
  Build complete! (SSR)
74
74
  `),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
75
75
  `);else if(H.ssg){if(console.log(`
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
84
84
  Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
85
85
  `),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
86
86
  `)}}catch(z){console.error(`
87
- Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-q065t1x7.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
87
+ Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-k1trppjz.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
88
88
  Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-89xwdc1d.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
89
89
  \uD83D\uDCDD Initializing Netlify configuration...
90
90
  `);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
124
124
  \uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
125
125
  ${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
126
126
  \uD83D\uDCCA STX Performance Statistics
127
- `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-0vvqxeq3.js"),{resolveStxTargets:j}=await import("./chunk-erbyg322.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
127
+ `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-9rx9bbqh.js"),{resolveStxTargets:j}=await import("./chunk-erbyg322.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
128
128
  No .stx files matched ${H.join(", ")}
129
129
  `);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
130
130
  Type-check did not run.
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
160
160
  \uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
161
161
  \uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
162
162
  \u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-5fzgdrfy.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
163
- \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-d0350ak9.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-n6eg071x.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
163
+ \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-25yvh46m.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-3e0ba18k.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
164
164
  \uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
165
165
  `);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
166
166
  \uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
167
- \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-masf0yq5.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-enjfp0tp.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-mzrejx5e.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-hkq7d4t2.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-g8k2zj4z.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
167
+ \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-wk7wn1nw.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-enjfp0tp.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-mzrejx5e.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-hkq7d4t2.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-g8k2zj4z.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
168
168
  \uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
169
169
  `);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
170
170
  \uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
@@ -33,4 +33,11 @@ export declare function registeredModuleIdsIn(...sources: Array<string | null |
33
33
  */
34
34
  export declare function buildModuleRegistryScript(ids: string[], options?: {
35
35
  minify?: boolean;
36
+ /**
37
+ * Receives the files the registry was built from - the modules' own
38
+ * sources, `node_modules` included. The registry is inlined into the
39
+ * page, so the page depends on them; a caller caching the page has to
40
+ * know, or upgrading a package leaves the page serving the old one.
41
+ */
42
+ collectInputs?: string[];
36
43
  }): Promise<string | null>;
@@ -33,7 +33,8 @@ export async function buildModuleRegistryScript(ids, options = {}) {
33
33
  code = await bundleClientScript(entry, path.join(root, ".stx-module-registry.ts"), {
34
34
  projectRoot: root,
35
35
  minify: options.minify,
36
- externalizeUserModules: !1
36
+ externalizeUserModules: !1,
37
+ collectInputs: options.collectInputs
37
38
  });
38
39
  } catch (error) {
39
40
  console.warn("[stx] could not build the page module registry (#1957):", error);
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Yj as Nj,Zj as wj,_j as Aj}from"./chunk-x21hdhjw.js";import{ak as Uj,bk as Xj,ck as Yj,dk as Zj,ek as _j,fk as $j,gk as qj,hk as Fj,ik as Oj,jk as Vj,kk as Ij,lk as Qj,mk as Wj,nk as Kj}from"./chunk-0vrn78j5.js";import"./chunk-rargfb5s.js";import"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
2
+ import{Yj as Nj,Zj as wj,_j as Aj}from"./chunk-x21hdhjw.js";import{ak as Uj,bk as Xj,ck as Yj,dk as Zj,ek as _j,fk as $j,gk as qj,hk as Fj,ik as Oj,jk as Vj,kk as Ij,lk as Qj,mk as Wj,nk as Kj}from"./chunk-6557pfz9.js";import"./chunk-t2yqh8nb.js";import"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
3
3
  `),scripts:j.scripts.join(`
4
4
  `),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
5
5
  `),scripts:j.scripts.join(`
package/dist/craft.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Yj as Nj,Zj as wj,_j as Aj}from"./chunk-x21hdhjw.js";import{ak as Uj,bk as Xj,ck as Yj,dk as Zj,ek as _j,fk as $j,gk as qj,hk as Fj,ik as Oj,jk as Vj,kk as Ij,lk as Qj,mk as Wj,nk as Kj}from"./chunk-0vrn78j5.js";import"./chunk-rargfb5s.js";import"./chunk-2119txb8.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-dj24n5n7.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-1tz8fb87.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
2
+ import{Yj as Nj,Zj as wj,_j as Aj}from"./chunk-x21hdhjw.js";import{ak as Uj,bk as Xj,ck as Yj,dk as Zj,ek as _j,fk as $j,gk as qj,hk as Fj,ik as Oj,jk as Vj,kk as Ij,lk as Qj,mk as Wj,nk as Kj}from"./chunk-6557pfz9.js";import"./chunk-t2yqh8nb.js";import"./chunk-pw8q3ety.js";import"./chunk-jc6wrxrh.js";import"./chunk-2xpdcr8c.js";import"./chunk-v90kxg77.js";import"./chunk-4arms0am.js";import"./chunk-135mme4g.js";import"./chunk-sf45fhg4.js";import"./chunk-w1asc0zd.js";import"./chunk-kd95t585.js";import"./chunk-asshx9sb.js";import"./chunk-xk402w4a.js";import"./chunk-dnard9gp.js";import"./chunk-vgx5077x.js";import"./chunk-met6wtbk.js";import"./chunk-ta6z7k4p.js";import"./chunk-zxptxz2b.js";import"./chunk-7racewc5.js";import"./chunk-e03m4har.js";import"./chunk-vsqx756d.js";import"./chunk-m8kem5ca.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
3
3
  `),scripts:j.scripts.join(`
4
4
  `),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
5
5
  `),scripts:j.scripts.join(`
package/dist/process.js CHANGED
@@ -217,11 +217,14 @@ function findScriptBlockByAttribute(html, attribute) {
217
217
  end: closeEnd + 1
218
218
  };
219
219
  }
220
- async function buildModulesTag(sources, options) {
220
+ async function buildModulesTag(sources, options, dependencies) {
221
221
  try {
222
- const { registeredModuleIdsIn, buildModuleRegistryScript } = await importOnce("stx/client-module-registry", () => import("./client-module-registry.js")), code = await buildModuleRegistryScript(registeredModuleIdsIn(...sources), {
223
- minify: options.buildMode === "compile"
222
+ const { registeredModuleIdsIn, buildModuleRegistryScript } = await importOnce("stx/client-module-registry", () => import("./client-module-registry.js")), inputs = [], code = await buildModuleRegistryScript(registeredModuleIdsIn(...sources), {
223
+ minify: options.buildMode === "compile",
224
+ collectInputs: inputs
224
225
  });
226
+ for (const input of inputs)
227
+ dependencies?.add(input);
225
228
  if (!code)
226
229
  return null;
227
230
  if (options.buildMode === "serve") {
@@ -345,7 +348,7 @@ export async function processDirectives(template, context, filePath, options, de
345
348
  if (storeCode)
346
349
  storeTag = `<script data-stx-stores>${storeCode}</script>`;
347
350
  } catch {}
348
- modulesTag = await buildModulesTag([result, storeTag], options);
351
+ modulesTag = await buildModulesTag([result, storeTag], options, dependencies);
349
352
  try {
350
353
  const { getFrameworkComposableScript } = await importOnce("stx/framework-composables", () => import("./framework-composables.js"));
351
354
  frameworkScript = await getFrameworkComposableScript(result);
@@ -359,7 +362,7 @@ export async function processDirectives(template, context, filePath, options, de
359
362
  ${tag}`).join("");
360
363
  result = placeSignalsRuntimeBeforeScripts(result, tags);
361
364
  } else {
362
- const modulesTag = await buildModulesTag([result], options);
365
+ const modulesTag = await buildModulesTag([result], options, dependencies);
363
366
  if (modulesTag) {
364
367
  const firstReader = result.search(/<script\b[^>]*>(?:(?!<\/script>)[\s\S])*?__stxModules\[/i);
365
368
  if (firstReader !== -1)