@stacksjs/stx 0.2.399 → 0.2.400

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 (55) hide show
  1. package/dist/{chunk-ndd7f9pv.js → chunk-06h5zrm2.js} +8 -8
  2. package/dist/{chunk-hj7af6jp.js → chunk-0tak2f33.js} +1 -1
  3. package/dist/{chunk-jc0gjchg.js → chunk-126tkba9.js} +1 -1
  4. package/dist/{chunk-0p2xcg1w.js → chunk-18qyx80g.js} +1 -1
  5. package/dist/{chunk-49ptptny.js → chunk-1f8kqg6a.js} +1 -1
  6. package/dist/{chunk-5j9vc4s8.js → chunk-1h9rc1jm.js} +1 -1
  7. package/dist/{chunk-nj1enw9w.js → chunk-1qbj1kz4.js} +1 -1
  8. package/dist/{chunk-h9hhg6r1.js → chunk-27wgfqs0.js} +1 -1
  9. package/dist/{chunk-v6bhnag5.js → chunk-2t41acdt.js} +1 -1
  10. package/dist/{chunk-fer9k0pz.js → chunk-3818kp2d.js} +2 -2
  11. package/dist/{chunk-nxbf9asm.js → chunk-38an983e.js} +1 -1
  12. package/dist/{chunk-2xnp4c2j.js → chunk-3ey6ha6w.js} +1 -1
  13. package/dist/{chunk-gww3t1ta.js → chunk-3xpws4kd.js} +1 -1
  14. package/dist/{chunk-qsa3dg7s.js → chunk-4bnv6c6t.js} +1 -1
  15. package/dist/{chunk-kvz0tczn.js → chunk-4tpsw999.js} +1 -1
  16. package/dist/{chunk-qvk1fkrr.js → chunk-6am7e1be.js} +16 -16
  17. package/dist/{chunk-v76p4cew.js → chunk-6wcfe0s5.js} +1 -1
  18. package/dist/{chunk-zsjhkyj5.js → chunk-74ebps1a.js} +1 -1
  19. package/dist/{chunk-dbrbxfmm.js → chunk-83ewzshg.js} +1 -1
  20. package/dist/{chunk-09920zen.js → chunk-awz5cx5w.js} +1 -1
  21. package/dist/{chunk-2khg63c7.js → chunk-b3b3s1kr.js} +1 -1
  22. package/dist/{chunk-wa1mpj1w.js → chunk-b4d5pbhs.js} +1 -1
  23. package/dist/{chunk-55rnj0fq.js → chunk-d6q7cv8w.js} +1 -1
  24. package/dist/{chunk-xy3tzca3.js → chunk-dazf77tr.js} +1 -1
  25. package/dist/{chunk-pskr6wdn.js → chunk-dzaf7qx8.js} +1 -1
  26. package/dist/{chunk-0tacadga.js → chunk-ej2mb0t3.js} +1 -1
  27. package/dist/{chunk-njf1f2zg.js → chunk-eqtc6w4a.js} +1 -1
  28. package/dist/{chunk-ypvq01y2.js → chunk-es5qfybg.js} +1 -1
  29. package/dist/{chunk-vsx71bpg.js → chunk-gjpq3pmz.js} +1 -1
  30. package/dist/{chunk-nekn7ewg.js → chunk-h1qtbdfs.js} +1 -1
  31. package/dist/{chunk-r5v6cc7v.js → chunk-h4nydbnx.js} +2 -2
  32. package/dist/{chunk-gty5301g.js → chunk-m4q3nsch.js} +1 -1
  33. package/dist/{chunk-gkswdv8d.js → chunk-mt0j29hr.js} +1 -1
  34. package/dist/{chunk-6qchc39z.js → chunk-nrgcfg8h.js} +1 -1
  35. package/dist/{chunk-dn7yrxxp.js → chunk-nvpjt609.js} +1 -1
  36. package/dist/{chunk-afby4fd3.js → chunk-q25qsg28.js} +1 -1
  37. package/dist/{chunk-ggbjqt81.js → chunk-rem5ne21.js} +2 -2
  38. package/dist/{chunk-6nrp4aav.js → chunk-rswsrggp.js} +1 -1
  39. package/dist/{chunk-j1thx11f.js → chunk-vd7thynz.js} +1 -1
  40. package/dist/{chunk-sfn2cqy6.js → chunk-vs3zfaxp.js} +1 -1
  41. package/dist/{chunk-7q04wvsx.js → chunk-wjzcggh6.js} +1 -1
  42. package/dist/{chunk-tnzk8cs0.js → chunk-wva3ggqj.js} +1 -1
  43. package/dist/{chunk-g6zg2nr2.js → chunk-x04ktd35.js} +1 -1
  44. package/dist/{chunk-afh1g5zv.js → chunk-x5z3r1d9.js} +1 -1
  45. package/dist/{chunk-vk7qrr2k.js → chunk-xs7f8h2r.js} +1 -1
  46. package/dist/{chunk-8x4at26w.js → chunk-yc3x3rmf.js} +1 -1
  47. package/dist/{chunk-khh38xtd.js → chunk-ymkv623c.js} +1 -1
  48. package/dist/{chunk-r53db58b.js → chunk-zm92mg10.js} +1 -1
  49. package/dist/cli.js +7 -7
  50. package/dist/craft-entry.js +1 -1
  51. package/dist/craft.js +1 -1
  52. package/dist/pwa.js +1 -1
  53. package/dist/ssg.js +2 -2
  54. package/dist/utils.js +4 -0
  55. package/package.json +5 -5
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as En,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Fn,Db as Zo,Dc as eq,Dd as er,De as ks,E as cl,Ea as Gn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as dl,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as el,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Wn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as Xn,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as Yn,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,Le as ss,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,Me as ts,N as am,Na as co,Nb as hp,Nc as oq,Nd as or,Ne as us,O as bm,Oa as eo,Ob as ip,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as jp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Er,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Fr,da as sm,db as vo,dc as Gp,dd as Gq,de as Gr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Fo,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Go,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as Em,pb as Ho,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as Fm,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as Gm,rb as Lo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as Mo,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as No,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Qo,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as Ro,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as So,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-ndd7f9pv.js";import{Oe as kp,Pe as lp,Qe as mp,Re as np,Se as op,Te as pp,Ue as qp}from"./chunk-hj7af6jp.js";import{Ve as Io,We as Jo}from"./chunk-pkspqh0m.js";import{Xe as Oo}from"./chunk-dbrbxfmm.js";import{Ye as tn}from"./chunk-6qchc39z.js";import{$e as $n,Ze as Zn,_e as _n,af as To}from"./chunk-pskr6wdn.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-kdwbpcm4.js";import{Cf as Il,Df as Jl}from"./chunk-fsvkqeya.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-980w4zcq.js";import{Vf as bn,Wf as cn,Xf as dn,Yf as en,Zf as fn,_f as sn}from"./chunk-xy3tzca3.js";import{$f as Hm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-fer9k0pz.js";import{Ag as Xm,Bg as Ym}from"./chunk-g64qyhhb.js";import{Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn}from"./chunk-9vwpf0bk.js";import{Og as ui,Pg as vi,Qg as wi,Rg as xi,Sg as yi,Tg as zi}from"./chunk-vsx71bpg.js";import{$g as Tj,Ug as Pj,Vg as Qj,Wg as Rj,_g as Sj,ah as Uj}from"./chunk-k2nydt80.js";import{bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk,jh as gk,kh as hk,lh as ik}from"./chunk-x86qttwm.js";import{mh as Fj,nh as Gj,oh as Hj,ph as Ij,qh as Jj,sh as Kj,th as Lj,uh as Mj,vh as Nj,wh as Oj}from"./chunk-6rzwef28.js";import{xh as Ak,zh as Bk}from"./chunk-683tfkz4.js";import{Fh as Ph,Gh as Qh,Hh as Rh,Ih as Sh,Jh as Th,Kh as Uh}from"./chunk-9r2xgf5k.js";import{Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di,Xh as ei,Yh as fi,Zh as gi}from"./chunk-9368t9jm.js";import{$h as hi,ai as ii,bi as ji,ci as ki}from"./chunk-st9vrfw7.js";import{hi as li}from"./chunk-mwh3ymwc.js";import{ki as oh}from"./chunk-2xnp4c2j.js";import{li as ph}from"./chunk-1t5vwavd.js";import{mi as qh,ni as rh}from"./chunk-cks5rbzt.js";import{oi as sh,pi as th,qi as uh,ri as vh,si as wh,ti as xh}from"./chunk-092qw0ps.js";import{ui as yh,vi as zh,wi as Ah,xi as Bh,yi as Ch}from"./chunk-kpg48dhw.js";import{Ai as Eh,Bi as Fh,Ci as Gh,Di as Hh,zi as Dh}from"./chunk-4bb28mz5.js";import{Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh,Ii as Mh,Ji as Nh,Ki as Oh}from"./chunk-90zfg77v.js";import{Li as mh,Mi as nh}from"./chunk-h9hhg6r1.js";import"./chunk-452k8psm.js";import{$i as _e,Qi as Pe,Ri as Qe,Si as Re,Ti as Se,Ui as Te,Vi as Ue,Wi as Ve,Xi as We,Yi as Xe,Zi as Ye,_i as Ze,aj as $e,bj as af}from"./chunk-khh38xtd.js";import{cj as sf,dj as tf,ej as uf,fj as vf,gj as wf,hj as xf,ij as yf,jj as zf,kj as Af,lj as Bf,mj as Cf,nj as Df,oj as Ef,pj as Ff,qj as Gf,rj as Hf,sj as If}from"./chunk-8gwby0r0.js";import{Aj as ef,Bj as ff,Cj as gf,Dj as hf,Ej as jf,Fj as kf,Gj as lf,Hj as mf,Ij as nf,Jj as of,Kj as pf,Lj as qf,Mj as rf,zj as df}from"./chunk-mnk5mdwp.js";import{Nj as Jf,Oj as Kf,Pj as Lf,Qj as Mf,Rj as Nf,Sj as Of,Tj as Pf,Uj as Qf,Vj as Rf,Wj as Sf,Xj as Tf,Yj as Uf,Zj as Vf,_j as Wf}from"./chunk-09920zen.js";import{sk as Hr,tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr}from"./chunk-ggbjqt81.js";import{Ak as Wk,Bk as Xk,Ck as Zm,Dk as _m,Ek as $m,Fk as an,yk as Uk,zk as Vk}from"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import"./chunk-afby4fd3.js";import{ql as ec,rl as fc,vl as gc}from"./chunk-njf1f2zg.js";import{xl as bc}from"./chunk-2andsajh.js";import{$l as Nb,$m as id,$n as Ce,$o as ug,$q as xj,Al as za,Am as Bc,An as Nd,Ap as Vg,Aq as Pi,Ar as xk,Bl as Aa,Bm as Cc,Bn as Od,Bp as Wg,Bq as Qi,Br as yk,Cl as Ba,Cm as Dc,Cn as Pd,Cp as Xg,Cq as Ri,Cr as zk,Dl as Ca,Dm as Ec,Dn as Qd,Dp as Yg,Dq as $i,Dr as Ck,El as Da,Em as Fc,En as Rd,Ep as Zg,Eq as aj,Er as Dk,Fl as Ea,Fm as Gc,Fn as Sd,Fo as Yf,Fp as _g,Fq as bj,Fr as Ek,Gl as Fa,Gm as Hc,Gn as Td,Gp as $g,Gq as cj,Gr as Fk,Hl as Ga,Hm as Ic,Hn as Ud,Hp as ah,Hq as dj,Hr as Gk,Il as Ha,Im as Jc,In as Vd,Ip as bh,Iq as ej,Ir as Hk,Jl as Ia,Jm as Kc,Jn as Wd,Jp as ch,Jq as fj,Jr as Ik,Kl as Ja,Km as Lc,Kn as Xd,Kp as dh,Kq as gj,Kr as Jk,Ll as Ka,Lm as Mc,Ln as Yd,Lp as eh,Lq as hj,Lr as Kk,Ml as La,Mm as Nc,Mn as Zd,Mp as fh,Mq as ij,Nl as Ma,Nm as Oc,Nn as _d,No as Zf,Np as gh,Nq as jj,Ol as Na,Om as Pc,On as $d,Op as hh,Oq as kj,Pl as Oa,Pm as Qc,Pn as ae,Po as _f,Pp as ih,Pq as lj,Ql as ib,Qm as _c,Qn as re,Qp as jh,Qq as mj,Rl as jb,Rm as $c,Rn as se,Ro as $f,Rp as kh,Rq as nj,Sl as kb,Sm as ad,Sn as te,So as ag,Sp as lh,Sq as oj,Tl as lb,Tm as bd,Tn as ue,To as bg,Tp as mi,Tq as pj,Ul as mb,Um as cd,Un as ve,Uo as cg,Up as ni,Uq as qj,Vl as nb,Vm as dd,Vn as we,Vo as dg,Vq as rj,Wm as ed,Wn as xe,Wo as eg,Wq as sj,Xn as ye,Xo as qg,Xp as oi,Xq as tj,Yl as Kb,Ym as fd,Yn as ze,Yo as rg,Yq as uj,Zl as Lb,Zm as gd,Zn as Ae,Zo as sg,Zq as vj,_l as Mb,_m as hd,_n as Be,_o as tg,_q as wj,am as Ob,an as jd,ao as De,ap as vg,ar as yj,bm as Pb,bn as kd,bo as Ee,bp as wg,br as zj,cm as Qb,cn as ld,cp as xg,cr as Aj,dm as Ub,dn as md,do as Ie,dp as yg,dr as Bj,em as Vb,en as nd,eo as Je,ep as zg,er as Cj,fm as Wb,fn as od,fo as Ke,fp as Ag,fr as Dj,gm as hc,gn as pd,go as Le,gp as Bg,gq as pi,gr as Ej,hm as ic,hn as qd,ho as Me,hp as Cg,hq as qi,hr as Vj,im as jc,in as vd,io as Ne,ip as Dg,iq as ri,ir as Wj,jm as kc,jn as wd,jo as Oe,jp as Eg,jq as si,jr as Xj,km as lc,kn as xd,kp as Fg,kq as ti,kr as Yj,lm as mc,ln as yd,lp as Gg,lq as Ai,lr as Zj,mm as nc,mn as zd,mp as Hg,mq as Bi,mr as jk,nm as oc,nn as Ad,no as bf,np as Ig,nq as Ci,nr as kk,om as pc,on as Bd,oo as cf,op as Jg,oq as Di,or as lk,pm as qc,pn as Cd,pp as Kg,pq as Ei,pr as mk,qm as rc,qn as Dd,qo as Xf,qp as Lg,qq as Fi,qr as nk,rm as sc,rn as Ed,rp as Mg,rq as Gi,rr as ok,sm as tc,sn as Fd,sp as Ng,sq as Hi,sr as pk,tm as uc,tn as Gd,tp as Og,tq as Ii,tr as qk,um as vc,un as Hd,up as Pg,uq as Ji,ur as rk,vm as wc,vn as Id,vp as Qg,vq as Ki,vr as sk,wm as xc,wn as Jd,wp as Rg,wq as Li,wr as tk,xm as yc,xn as Kd,xp as Sg,xq as Mi,xr as uk,yl as xa,ym as zc,yn as Ld,yp as Tg,yq as Ni,yr as vk,zl as ya,zm as Ac,zn as Md,zp as Ug,zq as Oi,zr as wk}from"./chunk-qvk1fkrr.js";import{$r as $,Mr as M,Nr as N,Or as O,Pr as P,Qr as Q,Rr as R,Sr as S,Tr as T,Ur as U,Vr as V,Wr as W,Xr as X,Yr as Y,Zr as Z,_r as _,as as aa,bs as ba,cs as ca,ds as da,es as ea,fs as fa,gs as ia,hs as ja,is as ka,js as la,ks as ma,ls as na,ms as oa,ns as pa,os as qa,ps as ra,qs as sa,rs as ta,ss as ua,ts as va,us as wa}from"./chunk-4cv7bw5e.js";import{vs as ga,ws as ha}from"./chunk-7tgjn256.js";import{xs as Rb,ys as Sb,zs as Tb}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import{Gs as Si,Hs as Ti,Is as Ui,Js as Vi,Ks as Wi,Ls as Xi,Ms as Yi,Ns as Zi,Os as _i}from"./chunk-3769e62c.js";import{et as Rc,ft as Sc,gt as Tc,ht as Uc,it as Vc,kt as Wc,tt as Xc,ut as Yc,vt as Zc}from"./chunk-7q04wvsx.js";import{At as $b,Bt as ac,wt as Xb,xt as Yb,yt as Zb,zt as _b}from"./chunk-yj5gkn17.js";import{It as Fe,Kt as Ge,Nt as He}from"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import{St as cc,Tt as dc}from"./chunk-g7qmxjyc.js";import{$t as jg,Xt as fg,Yt as gg,Zt as hg,_t as ig,au as kg,bu as lg,du as mg,eu as ng,fu as og,gu as pg}from"./chunk-88tt0qg0.js";import{Au as he,Bu as ie,Cu as je,Du as ke,Eu as le,Fu as me,Gu as ne,Hu as oe,Iu as pe,Ju as qe,hu as rd,iu as sd,ju as td,ku as ud,uu as be,vu as ce,wu as de,xu as ee,yu as fe,zu as ge}from"./chunk-e1rv01pn.js";import{$u as v,Ku as b,Lu as c,Mu as d,Nu as e,Ou as f,Pu as g,Qu as h,Ru as i,Su as m,Tu as n,Uu as o,Vu as p,Wu as q,Xu as r,Yu as s,Zu as t,_u as u,av as w,bv as x,cv as y,dv as z,ev as A,fv as B,gv as C,hv as D,iv as E,jv as F,kv as G,lv as H,mv as I,nv as J,ov as K,pv as L}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import{Fv as ob,Gv as pb,Hv as qb,Iv as rb,Jv as sb,Kv as tb,Lv as ub,Mv as vb,Nv as wb,Ov as xb,Pv as yb,Qv as zb,Rv as Ab,Sv as Bb,Tv as Cb,Uv as Db,Vv as Eb,Wv as Fb,Xv as Gb,Yv as Hb,Zv as Ib,_v as Jb}from"./chunk-csgshaeh.js";import{Aw as ab,Bw as bb,Cw as cb,Dw as db,Ew as eb,Fw as fb,Gw as gb,Iw as hb,cw as Pa,dw as Qa,gw as Ra,lw as Sa,mw as Ta,sw as Ua,tw as Va,uw as Wa,vw as Xa,ww as Ya,xw as Za,yw as _a,zw as $a}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import{Uw as j,Vw as k,Ww as l}from"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{pl as writeNetlifyConfig,hn as writeManifest,Ul as writeImageManifest,Ap as wrapComponentForHMR,hs as withDefaults,zk as webComponentDirectiveHandler,pq as watermark,rr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,lp as virtualPathFor,mk as videoDirective,G as validators,ls as validated,Ce as validateValueEnhanced,pi as validateTemplate,Xm as validateRouteRules,uq as validateParams,De as validateFormEnhanced,gr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,vn as validateComponentScripts,Tn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Sp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,tp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,ir as uploadFiles,hr as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,pp as typecheckStxFiles,Di as transpileTypeScript,Wr as translate,Ba as transitionDirective,lc as transformAutoImports,Nn as toUsers,Mn as toUser,_p as thumbnail,$q as thumbHashToRGBA,ar as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,xp as stxClientHelpers,kg as structuredDataDirective,Zr as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,yo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Jn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,To as startProductionServer,Oo as startInteractive,In as startBroadcasting,$r as stampLocaleLayoutGroup,Ia as staggerDirective,sq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,mp as sourcePathFor,zq as smartBatchSign,Hi as slotContentHasExpressions,xq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Cq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,cq as sharpen,os as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,rs as serveStxFile,ts as serveMultipleStxFiles,Lk as serveMarkdownFile,cp as serveFile,us as serveApp,bp as serve,Dp as serializeState,kn as serializeSetCookie,eq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,iq as saturation,vq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,nn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Pr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,jq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Vr as resolveI18n,Yp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Cp as resetHMRHandler,o as resetErrorConfig,js as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,pr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,yr as renderToString,zr as renderToStream,Ar as renderToDOM,_q as renderThumbhashToCanvas,Mr as renderTemplateString,Kr as renderTemplate,Lr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Kq as renderProtectedVideo,Jq as renderProtectedImg,wq as renderMediaUpload,Jr as renderMarkdownView,$m as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,sr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Np as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Up as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Wn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Go as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,nq as quality,Hq as pruneSignatureCache,Oj as pruneCache,sf as provide,Ir as protectCodeBlocks,is as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Lq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ps as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,sp as preloadIslandHandlers,Ne as preloadIconCollection,En as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Wp as parseUrl,br as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Mq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,ln as parseFormBody,Cd as parseExpressionWithFilters,Xn as parseDefaults,Do as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ks as optional,Fn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ms as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Wq as observeElement,Ho as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,_n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Dn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Xp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Yr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,jn as loadManifest,Sq as loadElement,Kn as loadChannels,Lb as listensPassively,ds as lintStxStrict,Uq as lazyLoadAll,Tq as lazyLoad,Ha as keyframeDirective,dl as keptState,wr as jsxs,xr as jsxDEV,vr as jsx,Fo as jsonResponse,Ye as islandDirective,l as isTest,Vm as isSpaNavigation,Om as isSpaNavRequest,Aq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,ro as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Pq as isNativeLazySupported,Hr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Qq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,qo as isEdgeEnvironment,es as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Zn as isCompressible,Cm as isClient,Fh as isAsyncComponent,mn as isActionableMethod,fq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Ur as injectThemeBootstrap,ig as injectSeoTags,Rr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,up as initLoadingIndicator,Rq as initLazyLoading,No as initFile,Zq as initBlurUp,dr as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,qn as hydrateTemplateStream,pn as hydrateTemplate,rp as hydrateIslands,ai as hydrateIsland,rn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Kp as hydrate,ap as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Pp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Er as h,El as groupVariantsByFormat,dq as grayscale,Vo as gitHash,xn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Bq as getTimeUntilExpiry,mh as getStoreScript,Qp as getStoreNames,Op as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Jp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Bp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Fq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Hn as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,kr as generateVideoPreview,Ee as generateValidationScript,lr as generateUploadRuntime,yn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,io as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ep as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,tr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Sr as generateSitemap,Oq as generateSimpleMediaPicker,Iq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Tr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,nr as generateMinifiedMediaRuntime,mr as generateMediaRuntime,Nq as generateMediaManagerEmbed,gn as generateManifest,wp as generateLoadingIndicatorHtml,Yq as generateLazyLoadRuntime,an as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,jr as generateImagePreview,Tl as generateImageManifest,Ip as generateHydrationScript,af as generateHydrationRuntime,Lp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,zp as generateHMRClientScript,fk as generateHLSManifest,Fp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,no as generateDocs,jo as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ho as generateComponentsDocs,Wh as generateComponentManifest,fo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,er as generateBlurUpRuntime,fr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,qp as formatTypecheckDiagnostics,jp as formatTypeErrors,Ko as formatStxContent,kl as formatSize,Ta as formatRoutes,Lo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Qr as formatDoctorReport,ko as formatDocsAsMarkdown,mo as formatDocsAsJson,lo as formatDocsAsHtml,mq as format,el as forgetKeptState,Cn as foldConstants,lq as flipVertical,kq as flipHorizontal,bn as fingerprint,op as findStxModuleDeclarations,np as findRuntimeTypeDeclarations,Or as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,zn as findDeadCode,zn as findDeadBranches,Km as findContainerRegion,go as findComponentFiles,ss as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Gp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Wm as extractContainerContent,co as extractComponentProps,Xh as extractComponentName,eo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Bn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,ao as enableDevTools,An as eliminateDeadCode,ff as effect,tq as dprUrls,oo as docsCommand,ec as discoverServerApi,_m as discoverLayoutNames,Xq as disconnectObserver,bo as disableDevTools,F as devHelpers,Rm as detectShell,po as detectRuntime,nl as detectProjectConfig,rj as detectFormat,un as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Tp as defineStore,Bf as defineSlots,cs as defineSiteConfig,gs as definePropsWithValidation,fs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Gr as defineCustomElement,So as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Uo as defineApiHandler,or as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,qs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,cr as crossfadeTransition,Zp as crop,Ph as createVirtualList,lk as createVideoDirective,Bo as createVercelHandler,gp as createTypeChecker,fa as createTranslateFilter,xo as createTextEncoderStream,Fr as createStxApp,wo as createStreamingResponse,We as createStreamRenderer,Rp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Ym as createRouteRuleResolver,eb as createRouteLocation,ep as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Xo as createProject,Ro as createProductionBuild,tc as createPlaceholder,Gn as createOptimizedBuild,Co as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,dp as createMiddleware,Vq as createLazyObserver,Jh as createKeepAliveCache,to as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,so as createEnvAccessor,z as createEnhancedError,vo as createEdgeHandler,uo as createEdgeCache,Ni as createDetailedErrorMessage,Ao as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Eo as createCookie,am as createComputed,Yl as createComponentInstance,zo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Fr as createApp,Ka as createAnimationTimeline,aq as cover,_f as convertToCommonJS,hq as contrast,$p as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,$n as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Vn as componentDirective,Ii as componentClientSignalNames,fn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Gq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,vp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,hp as checkTemplateFile,ip as checkTemplate,Uf as checkCache,Dq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Qn as channel,Jo as captureScreenshots,Io as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,kp as buildVirtualSource,qr as buildViews,Vp as buildUrl,Qe as buildSuspenseResolveScript,bs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,cn as buildRuntimeAsset,dn as buildRouterAsset,as as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,sn as buildForProduction,Yn as buildComponentLibrary,Eq as buildAuthParams,tn as buildApp,_r as buildAlternateLinks,Qo as build,On as broadcastPrivate,Pn as broadcastPresence,Ln as broadcast,gq as brightness,Tb as bracketDepths,bq as blur,Jb as blankInertHtmlRegions,yq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,oq as auto,ja as attributeValue,en as assetTags,Mb as asInvocableStatement,ns as arrayOf,Xr as applyTranslations,Sj as applyTransformations,zi as applySlots,Un as applyPropDefaults,rq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,wn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,wn as analyzeDirectiveUsage,ed as analyticsDirective,_o as addStore,Zo as addPage,Sd as addNonceToInlineContent,$o as addLayout,Yo as addComponent,on as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,fp as TemplateTypeChecker,Mo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Br as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Po as ProductionBuild,Dr as Portal,Wo as PROJECT_TEMPLATES,qq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Mp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Zm as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Hp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,ur as Fragment,Cr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,yp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Sn as BroadcastServer,Rn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Nr as $path};
2
+ import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as En,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Fn,Db as Zo,Dc as eq,Dd as er,De as ks,E as cl,Ea as Gn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as dl,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as el,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Wn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as Xn,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as Yn,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,Le as ss,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,Me as ts,N as am,Na as co,Nb as hp,Nc as oq,Nd as or,Ne as us,O as bm,Oa as eo,Ob as ip,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as jp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Er,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Fr,da as sm,db as vo,dc as Gp,dd as Gq,de as Gr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Fo,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Go,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as Em,pb as Ho,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as Fm,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as Gm,rb as Lo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as Mo,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as No,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Qo,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as Ro,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as So,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-06h5zrm2.js";import{Oe as kp,Pe as lp,Qe as mp,Re as np,Se as op,Te as pp,Ue as qp}from"./chunk-0tak2f33.js";import{Ve as Io,We as Jo}from"./chunk-pkspqh0m.js";import{Xe as Oo}from"./chunk-83ewzshg.js";import{Ye as tn}from"./chunk-nrgcfg8h.js";import{$e as $n,Ze as Zn,_e as _n,af as To}from"./chunk-dzaf7qx8.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-kdwbpcm4.js";import{Cf as Il,Df as Jl}from"./chunk-fsvkqeya.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-980w4zcq.js";import{Vf as bn,Wf as cn,Xf as dn,Yf as en,Zf as fn,_f as sn}from"./chunk-dazf77tr.js";import{$f as Hm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-3818kp2d.js";import{Ag as Xm,Bg as Ym}from"./chunk-g64qyhhb.js";import{Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn}from"./chunk-9vwpf0bk.js";import{Og as ui,Pg as vi,Qg as wi,Rg as xi,Sg as yi,Tg as zi}from"./chunk-gjpq3pmz.js";import{$g as Tj,Ug as Pj,Vg as Qj,Wg as Rj,_g as Sj,ah as Uj}from"./chunk-k2nydt80.js";import{bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk,jh as gk,kh as hk,lh as ik}from"./chunk-x86qttwm.js";import{mh as Fj,nh as Gj,oh as Hj,ph as Ij,qh as Jj,sh as Kj,th as Lj,uh as Mj,vh as Nj,wh as Oj}from"./chunk-6rzwef28.js";import{xh as Ak,zh as Bk}from"./chunk-683tfkz4.js";import{Fh as Ph,Gh as Qh,Hh as Rh,Ih as Sh,Jh as Th,Kh as Uh}from"./chunk-9r2xgf5k.js";import{Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di,Xh as ei,Yh as fi,Zh as gi}from"./chunk-9368t9jm.js";import{$h as hi,ai as ii,bi as ji,ci as ki}from"./chunk-st9vrfw7.js";import{hi as li}from"./chunk-mwh3ymwc.js";import{ki as oh}from"./chunk-3ey6ha6w.js";import{li as ph}from"./chunk-1t5vwavd.js";import{mi as qh,ni as rh}from"./chunk-cks5rbzt.js";import{oi as sh,pi as th,qi as uh,ri as vh,si as wh,ti as xh}from"./chunk-092qw0ps.js";import{ui as yh,vi as zh,wi as Ah,xi as Bh,yi as Ch}from"./chunk-kpg48dhw.js";import{Ai as Eh,Bi as Fh,Ci as Gh,Di as Hh,zi as Dh}from"./chunk-4bb28mz5.js";import{Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh,Ii as Mh,Ji as Nh,Ki as Oh}from"./chunk-90zfg77v.js";import{Li as mh,Mi as nh}from"./chunk-27wgfqs0.js";import"./chunk-452k8psm.js";import{$i as _e,Qi as Pe,Ri as Qe,Si as Re,Ti as Se,Ui as Te,Vi as Ue,Wi as Ve,Xi as We,Yi as Xe,Zi as Ye,_i as Ze,aj as $e,bj as af}from"./chunk-ymkv623c.js";import{cj as sf,dj as tf,ej as uf,fj as vf,gj as wf,hj as xf,ij as yf,jj as zf,kj as Af,lj as Bf,mj as Cf,nj as Df,oj as Ef,pj as Ff,qj as Gf,rj as Hf,sj as If}from"./chunk-8gwby0r0.js";import{Aj as ef,Bj as ff,Cj as gf,Dj as hf,Ej as jf,Fj as kf,Gj as lf,Hj as mf,Ij as nf,Jj as of,Kj as pf,Lj as qf,Mj as rf,zj as df}from"./chunk-mnk5mdwp.js";import{Nj as Jf,Oj as Kf,Pj as Lf,Qj as Mf,Rj as Nf,Sj as Of,Tj as Pf,Uj as Qf,Vj as Rf,Wj as Sf,Xj as Tf,Yj as Uf,Zj as Vf,_j as Wf}from"./chunk-awz5cx5w.js";import{sk as Hr,tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr}from"./chunk-rem5ne21.js";import{Ak as Wk,Bk as Xk,Ck as Zm,Dk as _m,Ek as $m,Fk as an,yk as Uk,zk as Vk}from"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import"./chunk-q25qsg28.js";import{ql as ec,rl as fc,vl as gc}from"./chunk-eqtc6w4a.js";import{xl as bc}from"./chunk-2andsajh.js";import{$l as Nb,$m as id,$n as Ce,$o as ug,$q as xj,Al as za,Am as Bc,An as Nd,Ap as Vg,Aq as Pi,Ar as xk,Bl as Aa,Bm as Cc,Bn as Od,Bp as Wg,Bq as Qi,Br as yk,Cl as Ba,Cm as Dc,Cn as Pd,Cp as Xg,Cq as Ri,Cr as zk,Dl as Ca,Dm as Ec,Dn as Qd,Dp as Yg,Dq as $i,Dr as Ck,El as Da,Em as Fc,En as Rd,Ep as Zg,Eq as aj,Er as Dk,Fl as Ea,Fm as Gc,Fn as Sd,Fo as Yf,Fp as _g,Fq as bj,Fr as Ek,Gl as Fa,Gm as Hc,Gn as Td,Gp as $g,Gq as cj,Gr as Fk,Hl as Ga,Hm as Ic,Hn as Ud,Hp as ah,Hq as dj,Hr as Gk,Il as Ha,Im as Jc,In as Vd,Ip as bh,Iq as ej,Ir as Hk,Jl as Ia,Jm as Kc,Jn as Wd,Jp as ch,Jq as fj,Jr as Ik,Kl as Ja,Km as Lc,Kn as Xd,Kp as dh,Kq as gj,Kr as Jk,Ll as Ka,Lm as Mc,Ln as Yd,Lp as eh,Lq as hj,Lr as Kk,Ml as La,Mm as Nc,Mn as Zd,Mp as fh,Mq as ij,Nl as Ma,Nm as Oc,Nn as _d,No as Zf,Np as gh,Nq as jj,Ol as Na,Om as Pc,On as $d,Op as hh,Oq as kj,Pl as Oa,Pm as Qc,Pn as ae,Po as _f,Pp as ih,Pq as lj,Ql as ib,Qm as _c,Qn as re,Qp as jh,Qq as mj,Rl as jb,Rm as $c,Rn as se,Ro as $f,Rp as kh,Rq as nj,Sl as kb,Sm as ad,Sn as te,So as ag,Sp as lh,Sq as oj,Tl as lb,Tm as bd,Tn as ue,To as bg,Tp as mi,Tq as pj,Ul as mb,Um as cd,Un as ve,Uo as cg,Up as ni,Uq as qj,Vl as nb,Vm as dd,Vn as we,Vo as dg,Vq as rj,Wm as ed,Wn as xe,Wo as eg,Wq as sj,Xn as ye,Xo as qg,Xp as oi,Xq as tj,Yl as Kb,Ym as fd,Yn as ze,Yo as rg,Yq as uj,Zl as Lb,Zm as gd,Zn as Ae,Zo as sg,Zq as vj,_l as Mb,_m as hd,_n as Be,_o as tg,_q as wj,am as Ob,an as jd,ao as De,ap as vg,ar as yj,bm as Pb,bn as kd,bo as Ee,bp as wg,br as zj,cm as Qb,cn as ld,cp as xg,cr as Aj,dm as Ub,dn as md,do as Ie,dp as yg,dr as Bj,em as Vb,en as nd,eo as Je,ep as zg,er as Cj,fm as Wb,fn as od,fo as Ke,fp as Ag,fr as Dj,gm as hc,gn as pd,go as Le,gp as Bg,gq as pi,gr as Ej,hm as ic,hn as qd,ho as Me,hp as Cg,hq as qi,hr as Vj,im as jc,in as vd,io as Ne,ip as Dg,iq as ri,ir as Wj,jm as kc,jn as wd,jo as Oe,jp as Eg,jq as si,jr as Xj,km as lc,kn as xd,kp as Fg,kq as ti,kr as Yj,lm as mc,ln as yd,lp as Gg,lq as Ai,lr as Zj,mm as nc,mn as zd,mp as Hg,mq as Bi,mr as jk,nm as oc,nn as Ad,no as bf,np as Ig,nq as Ci,nr as kk,om as pc,on as Bd,oo as cf,op as Jg,oq as Di,or as lk,pm as qc,pn as Cd,pp as Kg,pq as Ei,pr as mk,qm as rc,qn as Dd,qo as Xf,qp as Lg,qq as Fi,qr as nk,rm as sc,rn as Ed,rp as Mg,rq as Gi,rr as ok,sm as tc,sn as Fd,sp as Ng,sq as Hi,sr as pk,tm as uc,tn as Gd,tp as Og,tq as Ii,tr as qk,um as vc,un as Hd,up as Pg,uq as Ji,ur as rk,vm as wc,vn as Id,vp as Qg,vq as Ki,vr as sk,wm as xc,wn as Jd,wp as Rg,wq as Li,wr as tk,xm as yc,xn as Kd,xp as Sg,xq as Mi,xr as uk,yl as xa,ym as zc,yn as Ld,yp as Tg,yq as Ni,yr as vk,zl as ya,zm as Ac,zn as Md,zp as Ug,zq as Oi,zr as wk}from"./chunk-6am7e1be.js";import{$r as $,Mr as M,Nr as N,Or as O,Pr as P,Qr as Q,Rr as R,Sr as S,Tr as T,Ur as U,Vr as V,Wr as W,Xr as X,Yr as Y,Zr as Z,_r as _,as as aa,bs as ba,cs as ca,ds as da,es as ea,fs as fa,gs as ia,hs as ja,is as ka,js as la,ks as ma,ls as na,ms as oa,ns as pa,os as qa,ps as ra,qs as sa,rs as ta,ss as ua,ts as va,us as wa}from"./chunk-4cv7bw5e.js";import{vs as ga,ws as ha}from"./chunk-7tgjn256.js";import{xs as Rb,ys as Sb,zs as Tb}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import{Gs as Si,Hs as Ti,Is as Ui,Js as Vi,Ks as Wi,Ls as Xi,Ms as Yi,Ns as Zi,Os as _i}from"./chunk-3769e62c.js";import{et as Rc,ft as Sc,gt as Tc,ht as Uc,it as Vc,kt as Wc,tt as Xc,ut as Yc,vt as Zc}from"./chunk-wjzcggh6.js";import{At as $b,Bt as ac,wt as Xb,xt as Yb,yt as Zb,zt as _b}from"./chunk-yj5gkn17.js";import{It as Fe,Kt as Ge,Nt as He}from"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import{St as cc,Tt as dc}from"./chunk-g7qmxjyc.js";import{$t as jg,Xt as fg,Yt as gg,Zt as hg,_t as ig,au as kg,bu as lg,du as mg,eu as ng,fu as og,gu as pg}from"./chunk-88tt0qg0.js";import{Au as he,Bu as ie,Cu as je,Du as ke,Eu as le,Fu as me,Gu as ne,Hu as oe,Iu as pe,Ju as qe,hu as rd,iu as sd,ju as td,ku as ud,uu as be,vu as ce,wu as de,xu as ee,yu as fe,zu as ge}from"./chunk-e1rv01pn.js";import{$u as v,Ku as b,Lu as c,Mu as d,Nu as e,Ou as f,Pu as g,Qu as h,Ru as i,Su as m,Tu as n,Uu as o,Vu as p,Wu as q,Xu as r,Yu as s,Zu as t,_u as u,av as w,bv as x,cv as y,dv as z,ev as A,fv as B,gv as C,hv as D,iv as E,jv as F,kv as G,lv as H,mv as I,nv as J,ov as K,pv as L}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import{Fv as ob,Gv as pb,Hv as qb,Iv as rb,Jv as sb,Kv as tb,Lv as ub,Mv as vb,Nv as wb,Ov as xb,Pv as yb,Qv as zb,Rv as Ab,Sv as Bb,Tv as Cb,Uv as Db,Vv as Eb,Wv as Fb,Xv as Gb,Yv as Hb,Zv as Ib,_v as Jb}from"./chunk-csgshaeh.js";import{Aw as ab,Bw as bb,Cw as cb,Dw as db,Ew as eb,Fw as fb,Gw as gb,Iw as hb,cw as Pa,dw as Qa,gw as Ra,lw as Sa,mw as Ta,sw as Ua,tw as Va,uw as Wa,vw as Xa,ww as Ya,xw as Za,yw as _a,zw as $a}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import{Uw as j,Vw as k,Ww as l}from"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{pl as writeNetlifyConfig,hn as writeManifest,Ul as writeImageManifest,Ap as wrapComponentForHMR,hs as withDefaults,zk as webComponentDirectiveHandler,pq as watermark,rr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,lp as virtualPathFor,mk as videoDirective,G as validators,ls as validated,Ce as validateValueEnhanced,pi as validateTemplate,Xm as validateRouteRules,uq as validateParams,De as validateFormEnhanced,gr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,vn as validateComponentScripts,Tn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Sp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,tp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,ir as uploadFiles,hr as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,pp as typecheckStxFiles,Di as transpileTypeScript,Wr as translate,Ba as transitionDirective,lc as transformAutoImports,Nn as toUsers,Mn as toUser,_p as thumbnail,$q as thumbHashToRGBA,ar as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,xp as stxClientHelpers,kg as structuredDataDirective,Zr as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,yo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Jn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,To as startProductionServer,Oo as startInteractive,In as startBroadcasting,$r as stampLocaleLayoutGroup,Ia as staggerDirective,sq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,mp as sourcePathFor,zq as smartBatchSign,Hi as slotContentHasExpressions,xq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Cq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,cq as sharpen,os as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,rs as serveStxFile,ts as serveMultipleStxFiles,Lk as serveMarkdownFile,cp as serveFile,us as serveApp,bp as serve,Dp as serializeState,kn as serializeSetCookie,eq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,iq as saturation,vq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,nn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Pr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,jq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Vr as resolveI18n,Yp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Cp as resetHMRHandler,o as resetErrorConfig,js as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,pr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,yr as renderToString,zr as renderToStream,Ar as renderToDOM,_q as renderThumbhashToCanvas,Mr as renderTemplateString,Kr as renderTemplate,Lr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Kq as renderProtectedVideo,Jq as renderProtectedImg,wq as renderMediaUpload,Jr as renderMarkdownView,$m as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,sr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Np as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Up as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Wn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Go as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,nq as quality,Hq as pruneSignatureCache,Oj as pruneCache,sf as provide,Ir as protectCodeBlocks,is as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Lq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ps as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,sp as preloadIslandHandlers,Ne as preloadIconCollection,En as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Wp as parseUrl,br as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Mq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,ln as parseFormBody,Cd as parseExpressionWithFilters,Xn as parseDefaults,Do as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ks as optional,Fn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ms as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Wq as observeElement,Ho as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,_n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Dn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Xp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Yr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,jn as loadManifest,Sq as loadElement,Kn as loadChannels,Lb as listensPassively,ds as lintStxStrict,Uq as lazyLoadAll,Tq as lazyLoad,Ha as keyframeDirective,dl as keptState,wr as jsxs,xr as jsxDEV,vr as jsx,Fo as jsonResponse,Ye as islandDirective,l as isTest,Vm as isSpaNavigation,Om as isSpaNavRequest,Aq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,ro as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Pq as isNativeLazySupported,Hr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Qq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,qo as isEdgeEnvironment,es as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Zn as isCompressible,Cm as isClient,Fh as isAsyncComponent,mn as isActionableMethod,fq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Ur as injectThemeBootstrap,ig as injectSeoTags,Rr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,up as initLoadingIndicator,Rq as initLazyLoading,No as initFile,Zq as initBlurUp,dr as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,qn as hydrateTemplateStream,pn as hydrateTemplate,rp as hydrateIslands,ai as hydrateIsland,rn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Kp as hydrate,ap as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Pp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Er as h,El as groupVariantsByFormat,dq as grayscale,Vo as gitHash,xn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Bq as getTimeUntilExpiry,mh as getStoreScript,Qp as getStoreNames,Op as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Jp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Bp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Fq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Hn as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,kr as generateVideoPreview,Ee as generateValidationScript,lr as generateUploadRuntime,yn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,io as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ep as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,tr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Sr as generateSitemap,Oq as generateSimpleMediaPicker,Iq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Tr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,nr as generateMinifiedMediaRuntime,mr as generateMediaRuntime,Nq as generateMediaManagerEmbed,gn as generateManifest,wp as generateLoadingIndicatorHtml,Yq as generateLazyLoadRuntime,an as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,jr as generateImagePreview,Tl as generateImageManifest,Ip as generateHydrationScript,af as generateHydrationRuntime,Lp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,zp as generateHMRClientScript,fk as generateHLSManifest,Fp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,no as generateDocs,jo as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ho as generateComponentsDocs,Wh as generateComponentManifest,fo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,er as generateBlurUpRuntime,fr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,qp as formatTypecheckDiagnostics,jp as formatTypeErrors,Ko as formatStxContent,kl as formatSize,Ta as formatRoutes,Lo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Qr as formatDoctorReport,ko as formatDocsAsMarkdown,mo as formatDocsAsJson,lo as formatDocsAsHtml,mq as format,el as forgetKeptState,Cn as foldConstants,lq as flipVertical,kq as flipHorizontal,bn as fingerprint,op as findStxModuleDeclarations,np as findRuntimeTypeDeclarations,Or as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,zn as findDeadCode,zn as findDeadBranches,Km as findContainerRegion,go as findComponentFiles,ss as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Gp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Wm as extractContainerContent,co as extractComponentProps,Xh as extractComponentName,eo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Bn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,ao as enableDevTools,An as eliminateDeadCode,ff as effect,tq as dprUrls,oo as docsCommand,ec as discoverServerApi,_m as discoverLayoutNames,Xq as disconnectObserver,bo as disableDevTools,F as devHelpers,Rm as detectShell,po as detectRuntime,nl as detectProjectConfig,rj as detectFormat,un as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Tp as defineStore,Bf as defineSlots,cs as defineSiteConfig,gs as definePropsWithValidation,fs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Gr as defineCustomElement,So as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Uo as defineApiHandler,or as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,qs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,cr as crossfadeTransition,Zp as crop,Ph as createVirtualList,lk as createVideoDirective,Bo as createVercelHandler,gp as createTypeChecker,fa as createTranslateFilter,xo as createTextEncoderStream,Fr as createStxApp,wo as createStreamingResponse,We as createStreamRenderer,Rp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Ym as createRouteRuleResolver,eb as createRouteLocation,ep as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Xo as createProject,Ro as createProductionBuild,tc as createPlaceholder,Gn as createOptimizedBuild,Co as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,dp as createMiddleware,Vq as createLazyObserver,Jh as createKeepAliveCache,to as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,so as createEnvAccessor,z as createEnhancedError,vo as createEdgeHandler,uo as createEdgeCache,Ni as createDetailedErrorMessage,Ao as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Eo as createCookie,am as createComputed,Yl as createComponentInstance,zo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Fr as createApp,Ka as createAnimationTimeline,aq as cover,_f as convertToCommonJS,hq as contrast,$p as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,$n as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Vn as componentDirective,Ii as componentClientSignalNames,fn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Gq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,vp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,hp as checkTemplateFile,ip as checkTemplate,Uf as checkCache,Dq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Qn as channel,Jo as captureScreenshots,Io as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,kp as buildVirtualSource,qr as buildViews,Vp as buildUrl,Qe as buildSuspenseResolveScript,bs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,cn as buildRuntimeAsset,dn as buildRouterAsset,as as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,sn as buildForProduction,Yn as buildComponentLibrary,Eq as buildAuthParams,tn as buildApp,_r as buildAlternateLinks,Qo as build,On as broadcastPrivate,Pn as broadcastPresence,Ln as broadcast,gq as brightness,Tb as bracketDepths,bq as blur,Jb as blankInertHtmlRegions,yq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,oq as auto,ja as attributeValue,en as assetTags,Mb as asInvocableStatement,ns as arrayOf,Xr as applyTranslations,Sj as applyTransformations,zi as applySlots,Un as applyPropDefaults,rq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,wn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,wn as analyzeDirectiveUsage,ed as analyticsDirective,_o as addStore,Zo as addPage,Sd as addNonceToInlineContent,$o as addLayout,Yo as addComponent,on as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,fp as TemplateTypeChecker,Mo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Br as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Po as ProductionBuild,Dr as Portal,Wo as PROJECT_TEMPLATES,qq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Mp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Zm as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Hp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,ur as Fragment,Cr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,yp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Sn as BroadcastServer,Rn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Nr as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ko as b,lo as c,mo as d}from"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import{wv as a}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
2
+ import{ko as b,lo as c,mo as d}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import{wv as a}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{bl as a,cl as b,dl as c,el as d,fl as e,gl as f,hl as g,il as h,jl as i,kl as j,ll as k,ml as l,nl as m,ol as n,pl as o}from"./chunk-afby4fd3.js";import"./chunk-njf1f2zg.js";import"./chunk-2andsajh.js";import"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
2
+ import{bl as a,cl as b,dl as c,el as d,fl as e,gl as f,hl as g,il as h,jl as i,kl as j,ll as k,ml as l,nl as m,ol as n,pl as o}from"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
2
+ import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{af as a}from"./chunk-pskr6wdn.js";import"./chunk-fer9k0pz.js";import"./chunk-g64qyhhb.js";import"./chunk-njf1f2zg.js";import"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as startProductionServer};
2
+ import{af as a}from"./chunk-dzaf7qx8.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-eqtc6w4a.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as startProductionServer};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Dr as g,Em as O,No as R,Tp as H,yq as x}from"./chunk-qvk1fkrr.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
2
+ import{Dr as g,Em as O,No as R,Tp as H,yq as x}from"./chunk-6am7e1be.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
3
3
  <template data-suspense-fallback>Loading...</template>
4
4
  </div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
5
5
  <script>
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Oe as c,Pe as d,Qe as e,Re as f,Se as g,Te as h,Ue as i}from"./chunk-hj7af6jp.js";import"./chunk-2xnp4c2j.js";import"./chunk-452k8psm.js";import"./chunk-afby4fd3.js";import"./chunk-njf1f2zg.js";import"./chunk-2andsajh.js";import{Up as a,Xp as b}from"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
2
+ import{Oe as c,Pe as d,Qe as e,Re as f,Se as g,Te as h,Ue as i}from"./chunk-0tak2f33.js";import"./chunk-3ey6ha6w.js";import"./chunk-452k8psm.js";import"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import{Up as a,Xp as b}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-ndd7f9pv.js";import"./chunk-hj7af6jp.js";import"./chunk-pkspqh0m.js";import"./chunk-dbrbxfmm.js";import"./chunk-6qchc39z.js";import"./chunk-pskr6wdn.js";import"./chunk-ewxbx67c.js";import"./chunk-kdwbpcm4.js";import"./chunk-fsvkqeya.js";import"./chunk-980w4zcq.js";import"./chunk-xy3tzca3.js";import"./chunk-fer9k0pz.js";import"./chunk-g64qyhhb.js";import"./chunk-9vwpf0bk.js";import"./chunk-vsx71bpg.js";import"./chunk-k2nydt80.js";import"./chunk-x86qttwm.js";import"./chunk-6rzwef28.js";import"./chunk-683tfkz4.js";import"./chunk-9r2xgf5k.js";import"./chunk-9368t9jm.js";import"./chunk-st9vrfw7.js";import"./chunk-mwh3ymwc.js";import"./chunk-2xnp4c2j.js";import"./chunk-1t5vwavd.js";import"./chunk-cks5rbzt.js";import"./chunk-092qw0ps.js";import"./chunk-kpg48dhw.js";import"./chunk-4bb28mz5.js";import"./chunk-90zfg77v.js";import"./chunk-h9hhg6r1.js";import"./chunk-452k8psm.js";import"./chunk-khh38xtd.js";import"./chunk-8gwby0r0.js";import"./chunk-mnk5mdwp.js";import"./chunk-09920zen.js";import"./chunk-ggbjqt81.js";import"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import{el as u,fl as c}from"./chunk-afby4fd3.js";import"./chunk-njf1f2zg.js";import"./chunk-2andsajh.js";import"./chunk-qvk1fkrr.js";import{ns as f}from"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{Rs as A}from"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as B}from"./chunk-rxz43r6k.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.399";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{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-06h5zrm2.js";import"./chunk-0tak2f33.js";import"./chunk-pkspqh0m.js";import"./chunk-83ewzshg.js";import"./chunk-nrgcfg8h.js";import"./chunk-dzaf7qx8.js";import"./chunk-ewxbx67c.js";import"./chunk-kdwbpcm4.js";import"./chunk-fsvkqeya.js";import"./chunk-980w4zcq.js";import"./chunk-dazf77tr.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-9vwpf0bk.js";import"./chunk-gjpq3pmz.js";import"./chunk-k2nydt80.js";import"./chunk-x86qttwm.js";import"./chunk-6rzwef28.js";import"./chunk-683tfkz4.js";import"./chunk-9r2xgf5k.js";import"./chunk-9368t9jm.js";import"./chunk-st9vrfw7.js";import"./chunk-mwh3ymwc.js";import"./chunk-3ey6ha6w.js";import"./chunk-1t5vwavd.js";import"./chunk-cks5rbzt.js";import"./chunk-092qw0ps.js";import"./chunk-kpg48dhw.js";import"./chunk-4bb28mz5.js";import"./chunk-90zfg77v.js";import"./chunk-27wgfqs0.js";import"./chunk-452k8psm.js";import"./chunk-ymkv623c.js";import"./chunk-8gwby0r0.js";import"./chunk-mnk5mdwp.js";import"./chunk-awz5cx5w.js";import"./chunk-rem5ne21.js";import"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import{el as u,fl as c}from"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import"./chunk-6am7e1be.js";import{ns as f}from"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{Rs as A}from"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as B}from"./chunk-rxz43r6k.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.400";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-5zmppe0c.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-cd6pe75s.js"),{loadConfig:j}=await import("./chunk-ypvq01y2.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-cd6pe75s.js"),{loadConfig:j}=await import("./chunk-es5qfybg.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-gty5301g.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-m4q3nsch.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-8x4at26w.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-yc3x3rmf.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-r1d9x0dy.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-r53db58b.js"),{resolveStxTargets:j}=await import("./chunk-7vnkqnyh.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-zm92mg10.js"),{resolveStxTargets:j}=await import("./chunk-7vnkqnyh.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-w4nmvn5v.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-j1thx11f.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-v6bhnag5.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-vd7thynz.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-2t41acdt.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-r5v6cc7v.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-zh3q10wd.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-8qzc5n61.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-h01bbt3r.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-ar5stjnb.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-h4nydbnx.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-zh3q10wd.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-8qzc5n61.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-h01bbt3r.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-ar5stjnb.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(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-6nrp4aav.js";import"./chunk-ggbjqt81.js";import"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.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{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-rswsrggp.js";import"./chunk-rem5ne21.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.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{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-6nrp4aav.js";import"./chunk-ggbjqt81.js";import"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7q04wvsx.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.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{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-rswsrggp.js";import"./chunk-rem5ne21.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.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/pwa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  import{Jk as wq,Kk as dq,Lk as Cq,Mk as mq,Nk as gq}from"./chunk-fj6fbqgb.js";import{$k as Mq,Ok as S,Pk as Tq,Qk as _q,Rk as z,Sk as D,Tk as P,Uk as kq,Vk as vq,Wk as w,Xk as Iq,Yk as d,Zk as Hq,_k as Oq}from"./chunk-8ded3tn8.js";import{Ow as Aq,Pw as bq,Qw as Sq,Rw as zq,Sw as Dq,Tw as Pq}from"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as N}from"./chunk-rxz43r6k.js";import p from"fs";import E from"path";import C from"fs";import L from"path";var k=[72,96,128,144,152,192,384,512],v=[120,152,167,180],I=[16,32];async function H(G,B){let q={success:!0,generatedFiles:[],errors:[],warnings:[]},K=G.pwa?.icons;if(!K?.src)return q.errors.push("No source icon specified in pwa.icons.src"),q.success=!1,q;let Y=L.isAbsolute(K.src)?K.src:L.resolve(process.cwd(),K.src);if(!await Bun.file(Y).exists())return q.errors.push(`Source icon not found: ${Y}`),q.success=!1,q;let Q=L.resolve(B,K.outputDir||"pwa-icons");try{C.mkdirSync(Q,{recursive:!0})}catch{return q.errors.push(`Failed to create output directory: ${Q}`),q.success=!1,q}let X=K.sizes||k,j=K.generateWebP??!0,J=K.generateAppleIcons??!0;try{let y;try{y=await import("sharp")}catch{return q.errors.push(`sharp is not installed. Install it with: bun add sharp
3
- Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-sfn2cqy6.js"),Y=await Bun.file(q).text();return await K(Y,{},q,G,new Set)}catch(K){console.warn(`[PWA] Failed to process custom offline page: ${K}`)}else console.warn(`[PWA] Custom offline page not found: ${q}`)}return f(G)}function f(G){let B=G.pwa?.offline,q=G.pwa?.manifest,K=B?.fallbackTitle||"You are offline",Y=B?.fallbackMessage||"Please check your internet connection and try again.",Q=q?.themeColor||"#4f46e5",X=q?.shortName||q?.name||"App";return`<!DOCTYPE html>
3
+ Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-vs3zfaxp.js"),Y=await Bun.file(q).text();return await K(Y,{},q,G,new Set)}catch(K){console.warn(`[PWA] Failed to process custom offline page: ${K}`)}else console.warn(`[PWA] Custom offline page not found: ${q}`)}return f(G)}function f(G){let B=G.pwa?.offline,q=G.pwa?.manifest,K=B?.fallbackTitle||"You are offline",Y=B?.fallbackMessage||"Please check your internet connection and try again.",Q=q?.themeColor||"#4f46e5",X=q?.shortName||q?.name||"App";return`<!DOCTYPE html>
4
4
  <html lang="en">
5
5
  <head>
6
6
  <meta charset="UTF-8">
package/dist/ssg.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ak as Uq,Bk as Iq,Fk as wq}from"./chunk-gtn2agxa.js";import{Gk as Eq,Hk as Tq,Ik as Dq}from"./chunk-7eea1cse.js";import{bl as _q,el as zq,fl as Aq}from"./chunk-afby4fd3.js";import"./chunk-njf1f2zg.js";import"./chunk-2andsajh.js";import{Fr as n,Tp as C,Xm as Oq,no as l,qo as Hq}from"./chunk-qvk1fkrr.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{vt as Xq}from"./chunk-7q04wvsx.js";import{At as d}from"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-zsjhkyj5.js";import"./chunk-g7qmxjyc.js";import{fu as Bq}from"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import{Bw as Yq,Cw as Vq,Dw as jq,Ew as Gq,Fw as Lq,Gw as Nq}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as P}from"./chunk-rxz43r6k.js";import X from"fs";import j from"path";import{createHash as xq}from"crypto";function yq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var Pq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Cq(q){return Bun.hash(q).toString(16)}function Qq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(Pq,(J,W,_,z)=>{let L=z.trim();if(!L)return J;if(/\bdata-stx-src=/.test(_))return J;if(Z.minify)L=yq(L);let A=Cq(L);if(!$.has(A))$.set(A,L);let B=Z.integrity?` data-stx-integrity="sha384-${xq("sha384").update(L).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${A}.js"${B}${_}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var gq=new Set(["visible","idle"]);function Zq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(gq.has(Z.get(W[1])||""))K.add(W[2]);let _=q.lastIndexOf("</head>");if(K.size===0||_===-1)return q;let z=Array.from(K).filter((L)=>!q.includes(`rel="prefetch" href="${L}"`)).map((L)=>`<link rel="prefetch" href="${L}" as="script">`).join("");if(!z)return q;return q.slice(0,_)+z+q.slice(_)}var fq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function h(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function mq(q){for(let Z of fq){let $=q[Z];if(!$)continue;let Q=h($);if(Q)return{url:Q,source:"env",via:Z}}return null}function $q(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?h($):null}async function dq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=$q(J.default??J);if(W)return W}catch{}}return null}async function Kq(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=h(q.explicit);if(W)return{url:W,source:"option"}}let Q=$q(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await dq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=mq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Wq(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
2
+ import{Ak as Uq,Bk as Iq,Fk as wq}from"./chunk-gtn2agxa.js";import{Gk as Eq,Hk as Tq,Ik as Dq}from"./chunk-7eea1cse.js";import{bl as _q,el as zq,fl as Aq}from"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import{Fr as n,Tp as C,Xm as Oq,no as l,qo as Hq}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{vt as Xq}from"./chunk-wjzcggh6.js";import{At as d}from"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import{fu as Bq}from"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import{Bw as Yq,Cw as Vq,Dw as jq,Ew as Gq,Fw as Lq,Gw as Nq}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as P}from"./chunk-rxz43r6k.js";import X from"fs";import j from"path";import{createHash as xq}from"crypto";function yq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var Pq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Cq(q){return Bun.hash(q).toString(16)}function Qq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(Pq,(J,W,_,z)=>{let L=z.trim();if(!L)return J;if(/\bdata-stx-src=/.test(_))return J;if(Z.minify)L=yq(L);let A=Cq(L);if(!$.has(A))$.set(A,L);let B=Z.integrity?` data-stx-integrity="sha384-${xq("sha384").update(L).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${A}.js"${B}${_}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var gq=new Set(["visible","idle"]);function Zq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(gq.has(Z.get(W[1])||""))K.add(W[2]);let _=q.lastIndexOf("</head>");if(K.size===0||_===-1)return q;let z=Array.from(K).filter((L)=>!q.includes(`rel="prefetch" href="${L}"`)).map((L)=>`<link rel="prefetch" href="${L}" as="script">`).join("");if(!z)return q;return q.slice(0,_)+z+q.slice(_)}var fq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function h(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function mq(q){for(let Z of fq){let $=q[Z];if(!$)continue;let Q=h($);if(Q)return{url:Q,source:"env",via:Z}}return null}function $q(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?h($):null}async function dq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=$q(J.default??J);if(W)return W}catch{}}return null}async function Kq(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=h(q.explicit);if(W)return{url:W,source:"option"}}let Q=$q(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await dq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=mq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Wq(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
3
3
  `)}class Fq{cacheDir;cache=new Map;loaded=!1;salt;constructor(q,Z=""){this.cacheDir=q,this.salt=Z}async load(){if(this.loaded)return;let q=j.join(this.cacheDir,"build-cache.json");if(await Bun.file(q).exists())try{let Z=JSON.parse(await Bun.file(q).text());for(let[$,Q]of Object.entries(Z))this.cache.set($,Q)}catch{}this.loaded=!0}async save(){await X.promises.mkdir(this.cacheDir,{recursive:!0});let q=j.join(this.cacheDir,"build-cache.json"),Z={};for(let[$,Q]of this.cache)Z[$]=Q;await Bun.write(q,JSON.stringify(Z))}getHash(q,Z){let $=X.statSync(q),Q=`${this.salt}|${q}:${$.mtimeMs}`;for(let J of Z)if(X.existsSync(J)){let W=X.statSync(J);Q+=`:${J}:${W.mtimeMs}`}let K=0;for(let J=0;J<Q.length;J++){let W=Q.charCodeAt(J);K=(K<<5)-K+W,K=K&K}return Math.abs(K).toString(36)}get(q,Z){let $=this.cache.get(q);if(!$)return null;let Q=this.getHash(Z,$.dependencies??[]);if($.hash!==Q)return this.cache.delete(q),null;return $.html}set(q,Z,$,Q){let K=this.getHash(Z,$);this.cache.set(q,{hash:K,html:Q,generatedAt:Date.now(),dependencies:$})}}class Rq{cacheDir;constructor(q){this.cacheDir=q}getFilePath(q){let Z=q.replace(/[^a-zA-Z0-9]/g,"_")+".json";return j.join(this.cacheDir,"isr",Z)}async get(q){let Z=this.getFilePath(q);if(!await Bun.file(Z).exists())return null;try{return JSON.parse(await Bun.file(Z).text())}catch{return null}}async set(q,Z){let $=this.getFilePath(q);await X.promises.mkdir(j.dirname($),{recursive:!0}),await Bun.write($,JSON.stringify(Z))}async invalidate(q){let Z=this.getFilePath(q);if(await Bun.file(Z).exists())await X.promises.unlink(Z)}async invalidatePattern(q){let Z=j.join(this.cacheDir,"isr");if(!X.existsSync(Z))return;let $=await X.promises.readdir(Z);for(let Q of $){let K=Q.replace(/_/g,"/").replace(".json","");if(q.test(K))await X.promises.unlink(j.join(Z,Q))}}async needsRevalidation(q){let Z=await this.get(q);if(!Z)return!0;return Date.now()>Z.revalidateAfter}}async function pq(q){try{let $=(await Bun.file(q).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!$)return null;let Q=$[1];if(!Q.includes("getStaticPaths"))return null;let K=Q.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!K)return null;return await Function(`
4
4
  return (async function getStaticPaths() {
5
5
  ${K[1]}
@@ -41,7 +41,7 @@ ${q.map((Q)=>{let K=new URL(Q.loc,Z).href,J=` <url>
41
41
  ${$.join(`
42
42
  `)}
43
43
  </channel>
44
- </rss>`}async function rq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,failOnServerScriptError:q.failOnServerScriptError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},_=new Set,z=0,L={},A={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&X.existsSync(J.outputDir))await X.promises.rm(J.outputDir,{recursive:!0});await X.promises.mkdir(J.outputDir,{recursive:!0});let U=J.cacheSalt;if(!U){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-2khg63c7.js");try{U=N(await Y(process.cwd()))}catch{}}let{prepareImageDelivery:G}=await import("./chunk-aewsgyzc.js"),H=await G(J.publicDir,J.outputDir);if(H.count>0)console.log(`Optimized ${H.count} image(s) for responsive delivery`),U=[U,H.fingerprint].filter(Boolean).join(":");let F=new Fq(J.cacheDir,U);if(J.cache)await F.load();try{let{generateCss:Y}=await import("./chunk-2khg63c7.js");await Y('<div class="bg-black"></div>')}catch{}Yq();let kq=$?.routeMiddleware?.dir||"middleware";await jq(process.cwd(),kq);let p=Vq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let bq=$?.routeMiddleware?.global||[];wq($?.layoutsDir,d(process.cwd()));let i=l(".",{pagesDir:J.pagesDir,pagesDirs:$?._layerPageDirs});console.log(`Found ${i.length} routes`);let g=[];for(let Y of i){let N=await uq(Y);for(let O of N)g.push({route:Y,url:O.url,params:O.params,props:O.props,revalidate:O.revalidate??J.revalidate})}W.totalPages=g.length,console.log(`Generating ${W.totalPages} pages...`);let S=[],s=[];for(let Y=0;Y<g.length;Y+=J.concurrency)s.push(g.slice(Y,Y+J.concurrency));for(let Y of s)await Promise.all(Y.map(async(N)=>{let{route:O,url:V,params:v,props:Sq,revalidate:r}=N;try{await J.hooks.onPageStart?.(V);let R=await Bun.file(O.filePath).text(),M=JJ(R),vq=M?.middleware?Array.isArray(M.middleware)?M.middleware:[M.middleware]:[],t=[...bq,...vq];if(t.length>0){let T=Gq(V,v,M||{}),k=Lq(T,null,void 0,{isServer:!0}),D=await Nq(t,k);if(D.redirect){let I=typeof D.redirect==="string"?D.redirect:D.redirect.path||D.redirect,y=QJ(String(I),V),b=ZJ(V,J);await X.promises.mkdir(j.dirname(b),{recursive:!0}),await Bun.write(b,y),W.successCount++,W.pages.push({route:V,outputPath:b,size:Buffer.byteLength(y),cached:!1}),S.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${I}`);return}if(D.abort){let I=typeof D.abort==="string"?D.abort:D.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${I}`);return}}let e=R.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(e)try{if(!await Function("route",`
44
+ </rss>`}async function rq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,failOnServerScriptError:q.failOnServerScriptError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},_=new Set,z=0,L={},A={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&X.existsSync(J.outputDir))await X.promises.rm(J.outputDir,{recursive:!0});await X.promises.mkdir(J.outputDir,{recursive:!0});let U=J.cacheSalt;if(!U){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-b3b3s1kr.js");try{U=N(await Y(process.cwd()))}catch{}}let{prepareImageDelivery:G}=await import("./chunk-aewsgyzc.js"),H=await G(J.publicDir,J.outputDir);if(H.count>0)console.log(`Optimized ${H.count} image(s) for responsive delivery`),U=[U,H.fingerprint].filter(Boolean).join(":");let F=new Fq(J.cacheDir,U);if(J.cache)await F.load();try{let{generateCss:Y}=await import("./chunk-b3b3s1kr.js");await Y('<div class="bg-black"></div>')}catch{}Yq();let kq=$?.routeMiddleware?.dir||"middleware";await jq(process.cwd(),kq);let p=Vq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let bq=$?.routeMiddleware?.global||[];wq($?.layoutsDir,d(process.cwd()));let i=l(".",{pagesDir:J.pagesDir,pagesDirs:$?._layerPageDirs});console.log(`Found ${i.length} routes`);let g=[];for(let Y of i){let N=await uq(Y);for(let O of N)g.push({route:Y,url:O.url,params:O.params,props:O.props,revalidate:O.revalidate??J.revalidate})}W.totalPages=g.length,console.log(`Generating ${W.totalPages} pages...`);let S=[],s=[];for(let Y=0;Y<g.length;Y+=J.concurrency)s.push(g.slice(Y,Y+J.concurrency));for(let Y of s)await Promise.all(Y.map(async(N)=>{let{route:O,url:V,params:v,props:Sq,revalidate:r}=N;try{await J.hooks.onPageStart?.(V);let R=await Bun.file(O.filePath).text(),M=JJ(R),vq=M?.middleware?Array.isArray(M.middleware)?M.middleware:[M.middleware]:[],t=[...bq,...vq];if(t.length>0){let T=Gq(V,v,M||{}),k=Lq(T,null,void 0,{isServer:!0}),D=await Nq(t,k);if(D.redirect){let I=typeof D.redirect==="string"?D.redirect:D.redirect.path||D.redirect,y=QJ(String(I),V),b=ZJ(V,J);await X.promises.mkdir(j.dirname(b),{recursive:!0}),await Bun.write(b,y),W.successCount++,W.pages.push({route:V,outputPath:b,size:Buffer.byteLength(y),cached:!1}),S.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${I}`);return}if(D.abort){let I=typeof D.abort==="string"?D.abort:D.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${I}`);return}}let e=R.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(e)try{if(!await Function("route",`
45
45
  const validate = ${e[1]};
46
46
  return validate(route);
47
47
  `)({params:v})){console.warn(`Validation failed for ${V}, skipping...`);return}}catch{}let E=null,qq=!1;if(J.cache){if(E=F.get(V,O.filePath),E)qq=!0,W.cachedCount++}if(!E){let T=await Mq(O,v,Sq,J,$);if(E=T.html,J.failOnIncludeError&&T.includeFailures.length>0)throw Error(`${T.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
package/dist/utils.js CHANGED
@@ -709,6 +709,10 @@ export async function renderComponentWithSlot(componentPath, props, slotContent,
709
709
  const { processIncludes } = await importOnce("stx/includes", () => import("./includes.js"));
710
710
  callerSlotContent = await processIncludes(slotContent, parentContext, parentFilePath, options, dependencies);
711
711
  }
712
+ if (/<[A-Z][\w.-]*[\s/>]/.test(callerSlotContent)) {
713
+ const { processComponents } = await importOnce("stx/component-renderer", () => import("./component-renderer.js"));
714
+ callerSlotContent = await processComponents(callerSlotContent, { ...parentContext, __processedComponents: components }, parentFilePath, options, dependencies);
715
+ }
712
716
  const callerPreservedExpressions = [];
713
717
  if (slotContentHasExpressions(callerSlotContent)) {
714
718
  const { processExpressions: resolveCallerExpressions } = await importOnce("stx/expressions", () => import("./expressions.js")), callerExpressionContext = parentContext.__stx_signals_gate === void 0 ? { ...parentContext, __stx_signals_gate: !0 } : parentContext;