@stacksjs/stx 0.2.255 → 0.2.257

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 (141) hide show
  1. package/dist/chunk-0fctce85.js +2 -0
  2. package/dist/{chunk-3r20gmdk.js → chunk-0y6f4037.js} +1 -1
  3. package/dist/{chunk-hcd40acb.js → chunk-10tcqry1.js} +1 -1
  4. package/dist/chunk-14cps421.js +2 -0
  5. package/dist/{chunk-f3mja030.js → chunk-1qnyvw5w.js} +1 -1
  6. package/dist/{chunk-vr4ycjqv.js → chunk-25de1sj7.js} +2 -2
  7. package/dist/chunk-2qbde7w2.js +2 -0
  8. package/dist/{chunk-cbj5a2tk.js → chunk-38ykv2gd.js} +1 -1
  9. package/dist/{chunk-84r7dz13.js → chunk-3dmx290m.js} +1 -1
  10. package/dist/{chunk-e8a7412j.js → chunk-3fa6t4fw.js} +1 -1
  11. package/dist/{chunk-97mr2z1s.js → chunk-3rnc94mp.js} +1 -1
  12. package/dist/{chunk-47tn0mzr.js → chunk-3txrk37v.js} +1 -1
  13. package/dist/chunk-3wwnx5d4.js +2 -0
  14. package/dist/chunk-3zdpksx2.js +2 -0
  15. package/dist/{chunk-fmw1mscr.js → chunk-4qq5wj04.js} +1 -1
  16. package/dist/{chunk-ytp1ka2n.js → chunk-4svmpj7y.js} +1 -1
  17. package/dist/{chunk-9q9swjc1.js → chunk-5h5ydexj.js} +1 -1
  18. package/dist/{chunk-9ffrdr3d.js → chunk-5r3kr1tz.js} +1 -1
  19. package/dist/chunk-6dp6g7tj.js +2 -0
  20. package/dist/{chunk-ntxpjnjc.js → chunk-6pwqf8xe.js} +1 -1
  21. package/dist/{chunk-jn10hhxp.js → chunk-6vqb54c8.js} +1 -1
  22. package/dist/chunk-85wgtm01.js +2 -0
  23. package/dist/chunk-86cqnkcn.js +2 -0
  24. package/dist/{chunk-ez3693q1.js → chunk-8b1epdv6.js} +1 -1
  25. package/dist/{chunk-v40k72xw.js → chunk-8haa9r14.js} +1 -1
  26. package/dist/chunk-8jvhwc3y.js +2 -0
  27. package/dist/{chunk-6ns885eh.js → chunk-8pvymy12.js} +1 -1
  28. package/dist/{chunk-1b1hsyrm.js → chunk-93c7ch0c.js} +1 -1
  29. package/dist/{chunk-3qjmz25p.js → chunk-95mj2e8x.js} +1 -1
  30. package/dist/{chunk-j9rvh62v.js → chunk-9yxx4q3z.js} +1 -1
  31. package/dist/{chunk-3pnd1rr2.js → chunk-a2crgnef.js} +1 -1
  32. package/dist/{chunk-2fgthktp.js → chunk-a8mnhryz.js} +2 -2
  33. package/dist/{chunk-7g3bmwjb.js → chunk-a90d3xne.js} +1 -1
  34. package/dist/{chunk-3k5k7s1x.js → chunk-aw651z2y.js} +2 -2
  35. package/dist/{chunk-kga4sxrh.js → chunk-b3f5dwzz.js} +1 -1
  36. package/dist/{chunk-f9skyaw6.js → chunk-bhqk5vbz.js} +45 -45
  37. package/dist/{chunk-bgma9v3x.js → chunk-bjj27mf3.js} +1 -1
  38. package/dist/chunk-c2mvr9z1.js +2 -0
  39. package/dist/{chunk-nxhfke97.js → chunk-c59rkxwf.js} +1 -1
  40. package/dist/{chunk-dcdengjn.js → chunk-chsfdfqm.js} +1 -1
  41. package/dist/{chunk-ecncwde8.js → chunk-dnhckx52.js} +1 -1
  42. package/dist/chunk-e8symwqq.js +2 -0
  43. package/dist/{chunk-3a9s3fbj.js → chunk-f0rjjfk0.js} +1 -1
  44. package/dist/{chunk-wfsf3vmh.js → chunk-g8tce9rr.js} +1 -1
  45. package/dist/{chunk-bp5zq65f.js → chunk-gg2en16q.js} +1 -1
  46. package/dist/{chunk-9r200f9s.js → chunk-gpt6ggxj.js} +1 -1
  47. package/dist/chunk-gvja68aa.js +2 -0
  48. package/dist/{chunk-e7sngyjy.js → chunk-gyga6sjp.js} +1 -1
  49. package/dist/chunk-j2p56d03.js +2 -0
  50. package/dist/{chunk-yk6pbzj7.js → chunk-j59pkkzn.js} +1 -1
  51. package/dist/{chunk-f3xj9bqh.js → chunk-j6e4vwv5.js} +1 -1
  52. package/dist/chunk-j6kg2ejr.js +2 -0
  53. package/dist/{chunk-nhnvf9b5.js → chunk-jq375v8t.js} +1 -1
  54. package/dist/{chunk-fdd1ccv6.js → chunk-jt8as8j8.js} +1 -1
  55. package/dist/{chunk-dsesrz5a.js → chunk-jtzhfjfm.js} +1 -1
  56. package/dist/{chunk-yx6hpqvy.js → chunk-k1e72asa.js} +1 -1
  57. package/dist/{chunk-tfktw2ss.js → chunk-k6st4606.js} +1 -1
  58. package/dist/chunk-m8hggrdc.js +2 -0
  59. package/dist/{chunk-06er7qef.js → chunk-mayh3bn2.js} +10 -10
  60. package/dist/{chunk-8cmtr1cx.js → chunk-ms9dt8rv.js} +3 -3
  61. package/dist/{chunk-d6qjgqwf.js → chunk-myj5dd6e.js} +2 -2
  62. package/dist/{chunk-nnwk9mnw.js → chunk-nteg247p.js} +1 -1
  63. package/dist/{chunk-8nrq0wb3.js → chunk-ntkv53yp.js} +1 -1
  64. package/dist/{chunk-64w70y1w.js → chunk-p1rswnys.js} +1 -1
  65. package/dist/{chunk-6n48y1kn.js → chunk-ph5f8eev.js} +1 -1
  66. package/dist/{chunk-t6dq3jdg.js → chunk-pmhxrqjg.js} +1 -1
  67. package/dist/chunk-pnj0z7vy.js +2 -0
  68. package/dist/{chunk-628dejse.js → chunk-pxvsq2q5.js} +1 -1
  69. package/dist/{chunk-tgf9hgvh.js → chunk-qaryy4fd.js} +1 -1
  70. package/dist/chunk-rnh9xnvz.js +2 -0
  71. package/dist/{chunk-z9aq5zs6.js → chunk-rp0m678g.js} +1 -1
  72. package/dist/{chunk-bet2qwnf.js → chunk-s2wm8qwg.js} +1 -1
  73. package/dist/chunk-s4fs47sc.js +2 -0
  74. package/dist/{chunk-1n03h29q.js → chunk-sdd8rqe4.js} +1 -1
  75. package/dist/chunk-se1z2sp2.js +2 -0
  76. package/dist/chunk-sgd9w9b7.js +2 -0
  77. package/dist/{chunk-2gaetgdw.js → chunk-sr49fd8p.js} +1 -1
  78. package/dist/{chunk-6d5s48f9.js → chunk-t14hdm8s.js} +2 -2
  79. package/dist/{chunk-pp9fpjz2.js → chunk-va2wwrpf.js} +1 -1
  80. package/dist/{chunk-6zxhpb0t.js → chunk-vbxv0zn6.js} +1 -1
  81. package/dist/chunk-vdmzwp63.js +2 -0
  82. package/dist/chunk-venjrj7g.js +2 -0
  83. package/dist/chunk-vgrkkx2w.js +2 -0
  84. package/dist/{chunk-9k1x5fbh.js → chunk-vs9fefrx.js} +1 -1
  85. package/dist/{chunk-h329f051.js → chunk-wb7dfcnc.js} +1 -1
  86. package/dist/chunk-wdnab6t1.js +2 -0
  87. package/dist/{chunk-p1e61dbq.js → chunk-wj2trgsn.js} +1 -1
  88. package/dist/chunk-wnfh237k.js +2 -0
  89. package/dist/{chunk-8vg1vjrb.js → chunk-wx73fmky.js} +1 -1
  90. package/dist/{chunk-nzkdwswr.js → chunk-x0t0ndxd.js} +1 -1
  91. package/dist/{chunk-4as2fzad.js → chunk-x7pp10qb.js} +1 -1
  92. package/dist/{chunk-yjrdr27z.js → chunk-x84g0m0p.js} +1 -1
  93. package/dist/chunk-xm31mmmk.js +2 -0
  94. package/dist/{chunk-bkwdc3qm.js → chunk-xr1758xj.js} +1 -1
  95. package/dist/chunk-y6crtn3k.js +2 -0
  96. package/dist/{chunk-zvkb699q.js → chunk-ya8b6ecv.js} +1 -1
  97. package/dist/chunk-yb29m16z.js +2 -0
  98. package/dist/{chunk-b8nzt1eb.js → chunk-yb3nrbqz.js} +1 -1
  99. package/dist/{chunk-b654f46j.js → chunk-yjk7vyd8.js} +1 -1
  100. package/dist/{chunk-e3e902d1.js → chunk-z0aygs4h.js} +1 -1
  101. package/dist/{chunk-n4m09b4x.js → chunk-zr4emtxf.js} +1 -1
  102. package/dist/{chunk-ccdcqwkc.js → chunk-zr6m5k3t.js} +1 -1
  103. package/dist/cli.js +14 -14
  104. package/dist/client-script.d.ts +18 -0
  105. package/dist/client-script.js +3 -2
  106. package/dist/craft-entry.js +1 -1
  107. package/dist/craft.js +1 -1
  108. package/dist/database.js +1 -1
  109. package/dist/includes.js +2 -0
  110. package/dist/pwa.js +2 -2
  111. package/dist/ssg.js +2 -2
  112. package/dist/visual-testing.js +1 -1
  113. package/package.json +5 -5
  114. package/dist/chunk-07rrk6xg.js +0 -2
  115. package/dist/chunk-14j9kdmd.js +0 -2
  116. package/dist/chunk-1ta3xdm1.js +0 -2
  117. package/dist/chunk-20emgxmz.js +0 -2
  118. package/dist/chunk-2gyvrpnh.js +0 -2
  119. package/dist/chunk-53pn7g0w.js +0 -2
  120. package/dist/chunk-57bvrnm5.js +0 -2
  121. package/dist/chunk-5v664xem.js +0 -2
  122. package/dist/chunk-63ywxrr5.js +0 -2
  123. package/dist/chunk-6akrcv4y.js +0 -2
  124. package/dist/chunk-74w0xfk1.js +0 -2
  125. package/dist/chunk-a7yc1g52.js +0 -2
  126. package/dist/chunk-b0z7ba52.js +0 -2
  127. package/dist/chunk-csxpr6zj.js +0 -2
  128. package/dist/chunk-fj3z7shv.js +0 -2
  129. package/dist/chunk-fk03nkkd.js +0 -2
  130. package/dist/chunk-fr46f91s.js +0 -2
  131. package/dist/chunk-jtpf61c3.js +0 -2
  132. package/dist/chunk-ke3fyxd0.js +0 -2
  133. package/dist/chunk-m7fq06c0.js +0 -2
  134. package/dist/chunk-mbzmasrc.js +0 -2
  135. package/dist/chunk-p0176jwg.js +0 -2
  136. package/dist/chunk-p8v6bas0.js +0 -2
  137. package/dist/chunk-q28bh6ag.js +0 -2
  138. package/dist/chunk-rqpbpm45.js +0 -2
  139. package/dist/chunk-yakqz0rz.js +0 -2
  140. package/dist/chunk-yxhf5j9v.js +0 -2
  141. package/dist/chunk-zzt4n49s.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as ml,$a as dn,$b as wo,$c as wp,$d as wq,A as Yj,Aa as om,Ab as Qn,Ac as Xo,Ad as Xp,Ae as br,B as Zj,Ba as pm,Bb as Rn,Bc as Yo,Bd as Yp,Be as cr,C as _j,Ca as Cm,Cb as Sn,Cc as Zo,Cd as Zp,Ce as dr,D as $j,Da as Dm,Db as Tn,Dc as _o,Dd as _p,De as er,E as Rk,Ea as Em,Eb as Un,Ec as $o,Ed as $p,Ee as fr,F as Sk,Fa as Fm,Fb as Vn,Fc as ap,Fd as aq,Fe as gr,G as Tk,Ga as Gm,Gb as Wn,Gc as bp,Gd as bq,Ge as hr,H as Uk,Ha as Hm,Hb as Xn,Hc as cp,Hd as cq,He as ir,I as Vk,Ia as Lm,Ib as Yn,Ic as dp,Id as dq,Ie as jr,J as Wk,Ja as Mm,Jb as Zn,Jc as ep,Jd as eq,Je as kr,K as Xk,Ka as Nm,Kb as _n,Kc as fp,Kd as fq,Ke as lr,L as Yk,La as Om,Lb as $n,Lc as gp,Ld as gq,Le as mr,M as Zk,Ma as Pm,Mb as ao,Mc as hp,Md as hq,Me as nr,N as _k,Na as Qm,Nb as bo,Nc as ip,Nd as iq,Ne as or,O as $k,Oa as Rm,Ob as jo,Oc as jp,Od as jq,Oe as pr,P as al,Pa as Sm,Pb as ko,Pc as kp,Pd as kq,Pe as qr,Q as bl,Qa as Tm,Qb as lo,Qc as lp,Qd as lq,Qe as rr,R as cl,Ra as Um,Rb as mo,Rc as mp,Rd as mq,Re as sr,S as dl,Sa as Vm,Sb as no,Sc as np,Sd as nq,Se as tr,T as el,Ta as Wm,Tb as oo,Tc as op,Td as oq,Te as ur,U as fl,Ua as Xm,Ub as po,Uc as pp,Ud as pq,Ue as vr,V as gl,Va as Ym,Vb as qo,Vc as qp,Vd as qq,Ve as wr,W as hl,Wa as Zm,Wb as ro,Wc as rp,Wd as rq,We as xr,X as il,Xa as _m,Xb as so,Xc as sp,Xd as sq,Xe as yr,Y as jl,Ya as an,Yb as to,Yc as tp,Yd as tq,Ye as zr,Z as kl,Za as bn,Zb as uo,Zc as up,Zd as uq,_ as ll,_a as cn,_b as vo,_c as vp,_d as vq,aa as nl,ab as en,ac as xo,ad as xp,ae as xq,ba as ol,bb as fn,bc as yo,bd as yp,be as yq,ca as pl,cb as gn,cc as zo,cd as zp,ce as zq,da as ql,db as hn,dc as Ao,dd as Ap,de as Aq,ea as rl,eb as jn,ec as Bo,ed as Bp,ee as Bq,fa as sl,fb as kn,fc as Co,fd as Cp,fe as Cq,ga as tl,gb as ln,gc as Do,gd as Dp,ge as Dq,ha as ul,hb as mn,hc as Eo,hd as Ep,he as Eq,ia as vl,ib as nn,ic as Fo,id as Fp,ie as Fq,ja as wl,jb as on,jc as Go,jd as Gp,je as Gq,ka as xl,kb as pn,kc as Ho,kd as Hp,ke as Hq,la as yl,lb as qn,lc as Io,ld as Ip,le as Iq,ma as zl,mb as rn,mc as Jo,md as Jp,me as Jq,na as Al,nb as sn,nc as Ko,nd as Kp,ne as Kq,o as a,oa as Bl,ob as tn,oc as Lo,od as Lp,oe as Lq,p as Jj,pa as dm,pb as wn,pc as Mo,pd as Mp,pe as Sq,q as Kj,qa as em,qb as xn,qc as No,qd as Np,qe as Tq,r as Lj,ra as fm,rb as yn,rc as Oo,rd as Op,re as Uq,s as Mj,sa as gm,sb as zn,sc as Po,sd as Pp,se as Vq,t as Nj,ta as hm,tb as Fn,tc as Qo,td as Qp,te as Wq,u as Oj,ua as im,ub as Gn,uc as Ro,ud as Rp,ue as Xq,v as Pj,va as jm,vb as Hn,vc as So,vd as Sp,ve as Yq,w as Qj,wa as km,wb as In,wc as To,wd as Tp,we as Zq,x as Rj,xa as lm,xb as Nn,xc as Uo,xd as Up,xe as _q,y as Wj,ya as mm,yb as On,yc as Vo,yd as Vp,ye as $q,z as Xj,za as nm,zb as Pn,zc as Wo,zd as Wp,ze as ar}from"./chunk-mayh3bn2.js";import{$e as ck,Ze as ak,_e as bk,af as dk,bf as ek,cf as fk,df as gk,ef as hk,ff as ik,gf as jk,hf as kk,if as lk,jf as mk,kf as nk,lf as ok}from"./chunk-ym3r8ktq.js";import{mf as Fk,nf as Gk,of as Hk,pf as Ik,qf as Jk,rf as Kk,sf as Lk,tf as Mk,uf as Nk,vf as Ok,wf as Pk,xf as Qk}from"./chunk-bjj27mf3.js";import{Af as fo,Bf as go,Cf as ho,Df as io,yf as co,zf as eo}from"./chunk-3dmx290m.js";import{Ef as un,Ff as vn}from"./chunk-pbsfbgx7.js";import{Gf as An}from"./chunk-5r3kr1tz.js";import{Hf as Tl,If as Ul,Jf as Vl,Kf as Wl,Lf as Zl,Mf as bm}from"./chunk-vs9fefrx.js";import{Nf as Xl,Qf as Yl}from"./chunk-sdd8rqe4.js";import{$f as tm,Yf as qm,Zf as rm,_f as sm,ag as um,bg as vm,cg as wm,dg as xm,eg as ym,fg as zm,gg as Am,hg as Bm}from"./chunk-0j9hrzjj.js";import{ig as Dk,jg as Ek}from"./chunk-j59pkkzn.js";import{kg as cm}from"./chunk-6pwqf8xe.js";import{lg as Im,mg as Jm,ng as Km,og as $m,pg as Bn,qg as Cn,rg as Dn,sg as En,tg as Jn,ug as Kn,vg as Ln,wg as Mn}from"./chunk-8b1epdv6.js";import{Ag as Fl,Bg as Gl,Cg as Hl,Dg as Il,Eg as Jl,Fg as Kl,Gg as Ll,Hg as Ml,Ig as Nl,Jg as Ol,Kg as _l,Lg as $l,Mg as am,xg as Cl,yg as Dl,zg as El}from"./chunk-pmhxrqjg.js";import{Ng as Yi,Og as Zi,Pg as _i,Qg as $i,Rg as aj,Sg as bj,Tg as cj,Ug as dj,Vg as ej,Wg as fj,Xg as gj}from"./chunk-8pvymy12.js";import{Yg as yj,_g as zj}from"./chunk-f5v2qf95.js";import{eh as pk,fh as qk,gh as rk,hh as sk,ih as tk,jh as uk,kh as vk,mh as wk,nh as xk,oh as yk,ph as zk,qh as Ak,rh as Bk,uh as Ck}from"./chunk-k6st4606.js";import{vh as ih,wh as jh,xh as kh,yh as lh}from"./chunk-49kk0s96.js";import{Dh as mh}from"./chunk-w3ycm4na.js";import{Eh as th,Fh as uh,Gh as vh,Hh as wh,Ih as xh,Jh as yh}from"./chunk-ntkv53yp.js";import{Kh as Ni,Lh as Oi,Mh as Pi,Qh as Qi,Rh as Ri,Sh as Si}from"./chunk-zr4emtxf.js";import{$h as Ki,Th as Di,Uh as Ei,Vh as Fi,Wh as Gi,Xh as Hi,Zh as Ii,_h as Ji,ai as Li,bi as Mi}from"./chunk-74cv4ta1.js";import{ci as tg,di as ug,ei as vg,fi as wg,gi as xg,hi as yg}from"./chunk-wcm80anz.js";import{ii as zg,ji as Ag,ki as Bg,li as Cg,mi as Dg}from"./chunk-y7m2dpd3.js";import{ni as Eg,oi as Fg,pi as Gg,qi as Hg,ri as Ig}from"./chunk-9y0g8kzt.js";import{si as Jg,ti as Kg,ui as Lg,vi as Mg,wi as Ng,xi as Og,yi as Pg}from"./chunk-t6nseeb9.js";import{Ai as Rg,Bi as Sg,Ci as Tg,Di as Ug,Ei as Vg,zi as Qg}from"./chunk-xttsqmkm.js";import{Gi as Wg,Hi as Xg,Ii as Yg,Ji as Zg,Ki as _g,Li as $g,Mi as ah,Ni as bh,Oi as ch,Pi as dh,Qi as eh,Ri as fh,Si as gh,Ti as hh}from"./chunk-54st8g2j.js";import{Vi as ng,Wi as og}from"./chunk-jtzhfjfm.js";import{Zi as pg}from"./chunk-a2crgnef.js";import"./chunk-9n0gvfrg.js";import{bj as qg}from"./chunk-7q9mwh4v.js";import{cj as rg,dj as sg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-vbxv0zn6.js";import{sj as Qe,tj as Re}from"./chunk-ph5f8eev.js";import{Aj as Ce,Bj as De,Cj as Ee,Dj as Fe,Ej as Ge,Fj as He,Gj as Ie,Hj as Je,Ij as Ke,Jj as Le,Kj as Me,Lj as Ne,Mj as Oe,Nj as Pe}from"./chunk-w95sp0k9.js";import{Oj as Se,Pj as Te,Qj as Ue,Rj as Ve,Sj as We,Tj as Xe,Uj as Ye,Vj as Ze,Wj as _e,Xj as $e,Yj as af}from"./chunk-8haa9r14.js";import{qk as Mq,rk as Nq,sk as Oq,tk as Pq,uk as Qq,vk as Rq}from"./chunk-t14hdm8s.js";import{Ak as Pl,Bk as Ql,Ck as Rl,Dk as Sl,wk as Sj,xk as Tj,yk as Uj,zk as Vj}from"./chunk-sr49fd8p.js";import"./chunk-58f0mthg.js";import"./chunk-0ha9e1wt.js";import{$l as Wa,$m as Ub,$n as Uc,$p as Hf,$q as Nh,$r as vj,Al as I,Am as pb,An as tc,Ao as Jd,Ap as ff,Aq as gg,Ar as vi,Bl as J,Bm as qb,Bn as uc,Bo as Kd,Bp as gf,Bq as hg,Br as wi,Cl as da,Cm as rb,Cn as vc,Co as Ld,Cp as hf,Cq as ig,Cr as xi,Dl as ea,Dn as wc,Do as Md,Dp as jf,Dq as jg,Dr as yi,El as fa,Em as yb,En as xc,Eo as Nd,Ep as kf,Eq as kg,Er as zi,Fl as ga,Fm as zb,Fn as yc,Fo as Od,Fp as lf,Fq as lg,Fr as Ai,Gl as ha,Gm as Ab,Gn as zc,Go as Pd,Gp as mf,Gq as mg,Gr as Bi,Hl as ia,Hm as Bb,Hn as Ac,Ho as Qd,Hp as nf,Hq as nh,Hr as Ci,Im as Cb,In as Bc,Io as Rd,Ip as of,Iq as oh,Ir as Ti,Jm as Db,Jn as Cc,Jo as Sd,Jp as pf,Jq as ph,Jr as Ui,Kl as za,Km as Eb,Kn as Dc,Ko as Td,Kp as qf,Kq as qh,Kr as Vi,Ll as Aa,Ln as Ec,Lo as Ud,Lp as rf,Lq as rh,Lr as Wi,Ml as Ba,Mm as Fb,Mn as Fc,Mo as Vd,Mp as sf,Mq as sh,Mr as Xi,Nl as Ca,Nm as Gb,Nn as Gc,No as Wd,Np as tf,Nq as zh,Nr as hj,Ol as Da,Om as Hb,On as Hc,Oo as Xd,Op as uf,Oq as Ah,Or as ij,Pm as Ib,Pn as Ic,Po as Yd,Pp as vf,Pq as Bh,Pr as jj,Qm as Jb,Qn as Jc,Qo as Zd,Qp as wf,Qq as Ch,Qr as kj,Rl as Ga,Rm as Kb,Rn as Kc,Ro as _d,Rp as xf,Rq as Dh,Rr as lj,Sl as Ha,Sm as Lb,Sn as Lc,So as $d,Sp as yf,Sq as Eh,Sr as mj,Tl as Ia,Tm as Mb,Tn as Mc,To as ae,Tp as zf,Tq as Fh,Tr as nj,Ul as Pa,Um as Nb,Un as Nc,Uo as be,Up as Af,Uq as Gh,Ur as oj,Vl as Qa,Vm as Ob,Vn as Oc,Vo as ce,Vp as Bf,Vq as Hh,Vr as pj,Wl as Ra,Wm as Pb,Wn as Pc,Wo as de,Wp as Cf,Wq as Ih,Wr as qj,Xl as Sa,Xm as Qb,Xn as Qc,Xo as ee,Xp as Df,Xq as Jh,Xr as rj,Yl as Ta,Ym as Rb,Yn as Rc,Yo as fe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Ua,Zm as Sb,Zn as Sc,Zp as Ff,Zq as Lh,Zr as tj,_l as Va,_m as Tb,_n as Tc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Xa,an as Vb,ao as Vc,aq as If,ar as Oh,as as wj,bm as Ya,bn as Wb,bo as Wc,bp as Ae,bq as Jf,br as Ph,bs as xj,cn as Xb,co as Xc,cp as Be,cq as Kf,cr as Zh,cs as Aj,dn as Yb,do as Yc,dq as Lf,dr as _h,ds as Bj,en as Zb,eo as Zc,ep as bf,eq as Mf,er as $h,es as Cj,fn as _b,fo as _c,fq as Nf,fr as ai,fs as Dj,gm as Za,gn as $b,go as $c,gq as Of,gr as bi,gs as Ej,hm as _a,hn as ac,ho as ad,hq as Pf,hr as ci,hs as Fj,im as $a,in as bc,io as bd,iq as Qf,ir as di,is as Gj,jm as ab,jn as cc,jo as cd,jq as Rf,jr as ei,js as Hj,kl as s,km as bb,kn as dc,ko as dd,kq as Sf,kr as fi,ks as Ij,ll as t,lm as cb,ln as ec,lo as ed,lq as Tf,lr as gi,ml as u,mn as fc,mo as fd,mq as Uf,mr as hi,nl as v,nn as gc,no as gd,nq as Vf,nr as ii,ol as w,om as db,on as hc,oo as hd,oq as Wf,or as ji,pl as x,pm as eb,pn as ic,po as id,pq as Xf,pr as ki,ql as y,qm as fb,qn as jc,qo as jd,qq as Yf,qr as li,rl as z,rm as gb,rn as kc,ro as Ad,rq as Zf,rr as mi,sl as A,sm as hb,sn as lc,so as Bd,sq as _f,sr as ni,tl as B,tm as ib,tn as mc,to as Cd,tq as $f,tr as oi,ul as C,um as jb,un as nc,uo as Dd,uq as ag,ur as pi,vl as D,vm as kb,vn as oc,vo as Ed,vp as cf,vq as bg,vr as qi,wl as E,wm as lb,wn as pc,wo as Fd,wq as cg,wr as ri,xl as F,xm as mb,xn as qc,xo as Gd,xp as df,xq as dg,xr as si,yl as G,ym as nb,yn as rc,yo as Hd,yq as eg,yr as ti,zl as H,zm as ob,zn as sc,zo as Id,zp as ef,zq as fg,zr as ui}from"./chunk-bhqk5vbz.js";import{ls as d,ms as e,ns as f,os as g,ps as h,qs as i,rs as j,ss as k,ts as l,us as m,vs as n,ws as o,xs as p,ys as q,zs as r}from"./chunk-25de1sj7.js";import{As as Qh,Bs as Rh,Cs as Sh,Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh}from"./chunk-38ykv2gd.js";import{Js as b,Ks as c}from"./chunk-4qq5wj04.js";import{Ls as Ea,Ms as Fa}from"./chunk-g8tce9rr.js";import{$s as wb,Ns as sb,Os as tb,Qs as ub,_s as vb,at as xb}from"./chunk-ms9dt8rv.js";import{bt as ue,ct as ve,dt as we,et as xe,ht as ye}from"./chunk-a8mnhryz.js";import{it as Ja,jt as Ka,kt as La,lt as Ma,mt as Na,nt as Oa}from"./chunk-dnhckx52.js";import{At as wd,Bt as xd,Ct as yd,Dt as zd,ot as kd,pt as ld,qt as md,rt as nd,st as od,tt as pd,ut as qd,vt as rd,wt as sd,xt as td,yt as ud,zt as vd}from"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import{Ht as ja,It as ka,Jt as la,Kt as ma,Lt as na,Mt as oa,Nt as pa,Ot as qa,Pt as ra,Qt as sa,Rt as ta,St as ua,Tt as va,Ut as wa,Vt as xa,Wt as ya}from"./chunk-5h5ydexj.js";import{$t as L,Au as $,Bu as aa,Cu as ba,Eu as ca,_t as K,cu as M,hu as N,iu as O,ou as P,pu as Q,qu as R,ru as S,su as T,tu as U,uu as V,vu as W,wu as X,xu as Y,yu as Z,zu as _}from"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{kk as writeNetlifyConfig,$l as writeManifest,Pk as writeImageManifest,so as wrapComponentForHMR,mr as withDefaults,xj as webComponentDirectiveHandler,hp as watermark,jq as watchViews,Zk as watchMultiple,_k as watchEffect,Yk as watch,ye as warmImagePlaceholders,ll as waitForStore,Zd as waitForLocale,eo as virtualPathFor,kj as videoDirective,uc as validators,qr as validated,Ld as validateValueEnhanced,oh as validateTemplate,mp as validateParams,Md as validateFormEnhanced,_p as validateFile,Hd as validateFields,Gd as validateField,qh as validateDirective,ed as validateCspDirectives,Fj as validateConfig,em as validateComponentScripts,Cm as validateComponentProps,mg as validateClientScript,lh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Dh as userComponentFileExists,Tg as useVirtualList,sd as useTitle,kl as useStoreOrThrow,Ko as useStore,Wj as useStorage,uq as useSlots,Yj as useSessionStorage,pd as useSeoMeta,ml as useRouteParams,ol as useRouteParamOrThrow,nl as useRouteParam,sd as usePageTitle,Pe as useOptimistic,ql as useMiddlewareValue,pl as useMiddlewareState,Xj as useLocalStorage,lo as useLoadingIndicator,nd as useHead,ih as useForm,wq as useAttrs,aq as uploadFiles,$p as uploadFile,hl as updateInstance,Ne as untrack,Th as unregisterDirective,il as unmountInstance,rb as unescapeHtml,ho as typecheckStxFiles,Ch as transpileTypeScript,$q as translate,w as transitionDirective,Ta as transformAutoImports,wm as toUsers,vm as toUser,So as thumbnail,Tp as thumbHashToRGBA,Up as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Se as templateCache,Nb as syncRecordedResponse,po as stxClientHelpers,xf as structuredDataDirective,cr as stripLocalePrefix,Ml as stripDocumentWrapper,Fa as stripCommentsAndLiterals,kn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Rj as stopHmrServer,sm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ce as state,gg as startsDocument,Mn as startProductionServer,An as startInteractive,rm as startBroadcasting,er as stampLocaleLayoutGroup,D as staggerDirective,kp as srcsetUrls,E as springDirective,Dc as splitByPipe,Il as spaNavVaryHeaders,fo as sourcePathFor,rp as smartBatchSign,Fh as slotContentHasExpressions,pp as signUrl,Ah as shouldTranspileTypeScript,Oj as shouldReloadOnChange,up as shouldRefreshSignature,Pj as shouldIgnoreFile,Lg as shouldCacheComponent,Wo as sharpen,tr as shape,La as setStateDir,ul as setRouteParams,vl as setMiddlewareState,xe as setImagePlaceholder,oq as setGlobalProvide,Rb as setErrorLocale,Rk as setCurrentInstance,_i as setCachedVideoResult,Pi as setCachedImageResult,Ji as setCached,wr as serveStxFile,yr as serveMultipleStxFiles,Jj as serveMarkdownFile,Wn as serveFile,zr as serveApp,Vn as serve,vo as serializeState,$m as serializeSetCookie,Yo as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,oj as scopeHTML,nj as scopeCSS,Af as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,ap as saturation,np as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,qf as runPreProcessingMiddleware,rf as runPostProcessingMiddleware,Dn as runPageAction,Ie as runMountCallbacks,ba as runMiddleware,fl as runHooks,Uq as runDoctor,Je as runDestroyCallbacks,Ff as runComposers,bp as rotate,mh as rewriteImagesWithSiblings,Ob as responseBindings,Jh as resolveTemplatePath,c as resolveStxTargets,Bj as resolveStxDirectories,_q as resolveI18n,Qo as resize,Za as resetPlaceholders,md as resetHead,uo as resetHMRHandler,cc as resetErrorConfig,or as required,bb as replacePlaceholders,hq as renderView,hj as renderVideoComponent,Qa as renderVendorStyleTags,Dq as renderToString,Eq as renderToStream,Fq as renderToDOM,Sp as renderThumbhashToCanvas,Rq as renderTemplateString,Pq as renderTemplate,Qq as renderString,je as renderStreamingPage,vh as renderSlot,Bg as renderSSRSuspense,Cp as renderProtectedVideo,Bp as renderProtectedImg,op as renderMediaUpload,Oq as renderMarkdownView,Rl as renderLayoutTypes,Ti as renderImgComponent,Fk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,kq as renderEmail,Hh as renderComponentWithSlot,vd as renderBodyAttrs,Fo as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Mo as registerStoresClient,sl as registerStore,yf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Qh as registerDirective,dd as registerCspDirectives,Fm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Vk as ref,sn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Hj as readMarkdownFile,Te as readFileCached,Wk as reactive,fp as quality,zp as pruneSignatureCache,Mi as pruneCache,mq as provide,Nq as protectCodeBlocks,nr as prop,Jf as processVueTemplate,Rg as processVirtualListDirectives,Vg as processVirtualGridDirectives,gj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,vg as processTransitionDirectives,yg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,rg as processTeleportDirectives,zg as processSuspenseDirectives,tf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,gh as processStaticDirectives,of as processStackReplacements,nf as processStackPushDirectives,wh as processSlots,Kl as processShell,Hf as processServerBindings,uf as processSeoDirective,re as processSectionDirectives,Mf as processScopedStyles,zb as processReactiveBindings,Dp as processProtectedMedia,$g as processPartialHydrationDirectives,lg as processOnceDirective,pf as processMiddleware,sf as processMetaDirectives,zd as processMetaDirective,Ij as processMarkdownFileDirectives,Oh as processMarkdownDirectives,hf as processLoops,Jg as processKeepAliveDirectives,kg as processJsonDirective,Ug as processInfiniteListDirectives,mf as processIncludes,Vi as processImgComponents,Hk as processImageComponents,uk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Kf as processDynamicComponents,nh as processDirectives,Yh as processDirectiveAttributes,qg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,ur as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Eg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Vd as preloadTranslationsBackground,Ud as preloadTranslations,ko as preloadIslandHandlers,ze as preloadIconCollection,nm as poolStrings,zj as pluginManager,ve as placeholdersWarmed,ug as performLeave,tg as performEnter,Ke as pendingLifecycleCounts,Oe as peek,jf as partialsCache,ij as parseVideoDirectiveOptions,Oo as parseUrl,Vp as parseThumbhashString,Jc as parseSwitchBlock,th as parseSlots,uh as parseSlotElement,Oc as parseScriptDeclarations,vj as parseSFCComponent,Ep as parseProtectedArgs,gf as parseLoopBinding,Ui as parseImgComponent,ki as parseImageUrl,Gk as parseImageComponent,Bn as parseFormBody,Lc as parseExpressionWithFilters,Gm as parseDefaults,pn as parseCookies,Lm as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,pr as optional,om as optimizeTemplate,Mk as optimizeImage,Nk as optimizeDirectory,rr as oneOf,kf as onceStore,cl as onUpdated,yb as onUpdate,el as onUnmounted,zl as onServer,al as onMounted,Ge as onMount,fh as onHydrated,sq as onErrorCaptured,He as onDestroy,Pg as onDeactivated,yl as onClient,bl as onBeforeUpdate,dl as onBeforeUnmount,$k as onBeforeMount,Og as onActivated,Op as observeElement,tn as notFound,Rf as normalizeCriticalHeadOrder,rq as nextTick,Jm as negotiateEncoding,P as navigateTo,gl as mountInstance,z as motionDirective,Vc as moderateCspPreset,mm as minifyHtml,wf as metaDirective,$f as metaDedupKey,Po as mergeParams,bg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Ph as markdownDirectiveHandler,Gj as markdownCache,b as looksLikeGlob,br as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Cj as loadStxConfig,_ as loadMiddlewareFromDirectory,am as loadManifest,Kp as loadElement,tm as loadChannels,ir as lintStxStrict,Mp as lazyLoadAll,Lp as lazyLoad,C as keyframeDirective,Bq as jsxs,Cq as jsxDEV,Aq as jsx,rn as jsonResponse,pe as islandDirective,$b as isTest,Nl as isSpaNavigation,Gl as isSpaNavRequest,sp as isSignatureValid,Le as isSignal,sk as isSharpAvailable,cn as isServerEnvironment,wl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Hp as isNativeLazySupported,Mq as isMarkdownPath,Sd as isLoading,Td as isLoaded,zh as isJavaScriptScript,Ip as isIntersectionObserverSupported,Ak as isImageFile,tk as isImageBackendAvailable,ce as isICUFormat,eh as isHydrated,Eh as isHydrateTrigger,Hb as isHttpStatus,bn as isEdgeEnvironment,jr as isDirectiveKind,_b as isDevelopment,Me as isDerived,Nj as isCssOnlyChange,Im as isCompressible,xl as isClient,Gg as isAsyncComponent,Cn as isActionableMethod,Zo as invert,Ve as invalidateFileCacheByDir,Ue as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,Zq as injectThemeBootstrap,vf as injectSeoTags,Wq as injectSeo,bf as injectRouterScript,Mj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ig as injectConfigHeadTags,Qf as injectColorModeBootScript,dg as injectCloakStyle,Xf as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,nq as inject,rl as initStoreRegistry,nk as initNetlify,mo as initLoadingIndicator,Jp as initLazyLoading,zn as initFile,Rp as initBlurUp,Xp as initAllBlurUp,Xi as imgDirective,Kk as imageDirective,Kn as hydrateTemplateStream,Jn as hydrateTemplate,jo as hydrateIslands,bh as hydrateIsland,Ln as hydrateFragment,ch as hydrateByStrategy,dh as hydrateAll,Co as hydrate,Un as htmlResponse,eg as hoistLeadingHeadTags,Sf as hoistColorModeBootScript,ga as heatmapDirective,Fi as hashString,af as hashFilePath,Di as hashFile,Ei as hashBuffer,If as hasVueTemplateSyntax,ff as hasVariables,Ho as hasStore,cb as hasPlaceholders,lk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,hg as hasDocumentShell,rh as hasDirectives,h as hasDOMSupport,Dk as handleImageRequest,tq as handleError,Jq as h,zk as groupVariantsByFormat,Xo as grayscale,Nn as gitHash,gm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,gk as getTotalSize,tp as getTimeUntilExpiry,ng as getStoreScript,Io as getStoreNames,Go as getStore,$j as getStorageSize,_j as getStorageKeys,Kh as getSourceLineInfo,Bh as getSharedTranspiler,g as getScreenReaderOnlyStyle,pj as getScopeAttribute,Be as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,ph as getPositionInfo,$a as getPlaceholderRegistry,Ci as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Bk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,ue as getImagePlaceholder,vk as getImageMetadata,Bo as getHydrationRuntime,tl as getHydratedStoreState,Qj as getHmrServer,kd as getHead,to as getHMRHandler,oi as getFormatExtension,Hi as getFileMtime,yk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Sh as getDirectives,Rh as getDirective,Sk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Nh as getComponentCacheStats,Zi as getCachedVideoResult,xp as getCachedSignature,Xe as getCachedSignalsRuntime,Ye as getCachedRouterScript,Ai as getCachedPlaceholder,Oi as getCachedImageResult,Ii as getCached,Li as getCacheStats,Vf as getBuildId,qm as getBroadcastServer,ni as getBestVariant,gb as getAllFilters,bi as generateWidthSrcset,Sg as generateVirtualListCSS,cq as generateVideoPreview,Nd as generateValidationScript,dq as generateUploadRuntime,hm as generateTreeShakenBundle,xg as generateTransitionRuntime,wg as generateTransitionCSS,bj as generateThumbnails,ti as generateThumbhashPlaceholder,Um as generateTemplatesDocs,Dg as generateSuspenseRuntime,Cg as generateSuspenseCSS,wo as generateStateScript,li as generateSrcsetData,Si as generateSrcset,wk as generateSrcSet,cj as generateSpriteSheet,lq as generateSpaShell,mi as generateSourceTags,hi as generateSizesFromBreakpoints,gi as generateSizesAttribute,xk as generateSizes,zf as generateSitemapIndex,Xq as generateSitemap,Gp as generateSimpleMediaPicker,Ap as generateSignatureRuntime,Re as generateSignalsRuntimeDev,Qe as generateSignalsRuntime,Xa as generateServerDataBridge,mj as generateScopeId,wj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Bf as generateRobotsTxt,Yq as generateRobots,Ri as generateResponsiveVariants,sj as generateReactiveWebComponentTS,rj as generateReactiveWebComponent,uj as generateReactiveRuntime,tj as generateReactiveMixin,aj as generatePoster,zi as generatePlaceholderStyle,yi as generatePlaceholderCSS,si as generatePlaceholder,ah as generatePartialHydrationCSS,Pc as generateNonce,hk as generateNetlifyToml,fq as generateMinifiedMediaRuntime,eq as generateMediaRuntime,Fp as generateMediaManagerEmbed,_l as generateManifest,oo as generateLoadingIndicatorHtml,Qp as generateLazyLoadRuntime,Sl as generateLayoutTypes,vi as generateLQIP,Ng as generateKeepAliveRuntime,Mg as generateKeepAliveCSS,hh as generateIslandManifest,bq as generateImagePreview,Ok as generateImageManifest,Ao as generateHydrationScript,te as generateHydrationRuntime,Do as generateHydrationCSS,Wg as generateHydrationBootstrap,Lj as generateHotReloadScript,ea as generateHeatmapScript,ro as generateHMRClientScript,dj as generateHLSManifest,xo as generateEventBindings,fi as generateDprSrcsetWithVariableQuality,ei as generateDprSrcset,fg as generateDocumentShell,Zm as generateDocs,Vm as generateDirectivesDocs,Xh as generateDirectiveRuntime,Cf as generateDefaultRobotsTxt,ej as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,yq as generateCompositionRuntime,Tm as generateComponentsDocs,Xg as generateComponentManifest,Rm as generateComponentDoc,xi as generateColorPlaceholder,Pf as generateColorModeBootScript,jl as generateClientRuntime,Gi as generateCacheKey,Va as generateBrowserAutoImportDestructuring,Yp as generateBlurUpRuntime,Zp as generateBlurUpCSS,Ab as generateBindingsRuntime,ci as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ig as generateAsyncComponentRuntime,Hg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,io as formatTypecheckDiagnostics,bo as formatTypeErrors,wn as formatStxContent,fk as formatSize,O as formatRoutes,xn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Vq as formatDoctorReport,Wm as formatDocsAsMarkdown,Ym as formatDocsAsJson,Xm as formatDocsAsHtml,ep as format,lm as foldConstants,dp as flipVertical,cp as flipHorizontal,Tl as fingerprint,go as findRuntimeTypeDeclarations,Tq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,im as findDeadCode,im as findDeadBranches,Mm as findContainerRegion,Sm as findComponentFiles,xr as findCommonDir,ek as filterRequiredFiles,Ih as fileExists,cf as extractVariables,Yl as extractTemplateExpressions,le as extractStreamBoundaries,yo as extractState,xh as extractSlotContent,ef as extractScriptFromTemplate,Xl as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,wi as extractDominantColor,Nc as extractDirectiveParams,sh as extractDirectiveNames,Ol as extractContainerContent,Pm as extractComponentProps,Yg as extractComponentName,Qm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,Zg as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,qj as extractAndScopeStyles,Ba as extractAndProcessEvents,Uj as externalizeSharedAssets,Vj as externalizeRepeatedAssets,Tj as externalizeHtml,qb as evaluateExpression,km as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,sg as ensureTeleportTargets,jg as ensureDocumentShell,Jd as enhancedValidationRules,Nm as enableDevTools,jm as eliminateDeadCode,Ee as effect,lp as dprUrls,_m as docsCommand,Ql as discoverLayoutNames,Pp as disconnectObserver,Om as disableDevTools,tc as devHelpers,Jl as detectShell,an as detectRuntime,ik as detectProjectConfig,pi as detectFormat,dm as detectBuildMode,De as derived,mk as deploy,Ej as defineStxConfig,Lo as defineStore,vq as defineSlots,hr as defineSiteConfig,lr as definePropsWithValidation,kr as defineProps,yj as definePlugin,rd as definePageMeta,R as defineMiddleware,jh as defineForm,qq as defineExpose,pq as defineEmits,Uh as defineDirective,Lq as defineCustomElement,In as defineConfig,Vh as defineClientDirective,Fg as defineAsyncComponent,gq as defaultMediaConfig,Qk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Aj as defaultConfig,vr as default,sb as deepMergeThemes,Lf as dedupeScopedStyles,ui as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Wp as crossfadeTransition,Ro as crop,Qg as createVirtualList,jj as createVideoDirective,nn as createVercelHandler,_n as createTypeChecker,fe as createTranslateFilter,jn as createTextEncoderStream,Kq as createStxApp,hn as createStreamingResponse,ne as createStreamRenderer,Jo as createStore,U as createStorageManager,S as createServerCookieManager,Uk as createScope,Ag as createSSRSuspense,Ae as createRouter,$ as createRouteLocation,Yn as createRoute,Vk as createRef,Wk as createReactive,xq as createProvideContext,Pn as createProject,Hn as createProductionBuild,_a as createPlaceholder,pm as createOptimizedBuild,on as createNetlifyHandler,ak as createNetlifyClient,aa as createMiddlewareContext,Xn as createMiddleware,Np as createLazyObserver,Kg as createKeepAliveCache,en as createKVNamespace,_g as createIslandRegistry,Wi as createImgDirective,Lk as createImagePlugin,Ek as createImageHandler,Jk as createImageDirective,ia as createHeatmapAggregator,dk as createFileManifest,dn as createEnvAccessor,nc as createEnhancedError,gn as createEdgeHandler,fn as createEdgeCache,Lh as createDetailedErrorMessage,mn as createDenoHandler,jk as createDefaultNetlifyConfig,gd as createCspHeaders,qn as createCookie,Xk as createComputed,Tk as createComponentInstance,ln as createCloudflareHandler,T as createClientCookieManager,Wh as createBuiltinDirectives,Kq as createApp,F as createAnimationTimeline,Uo as cover,df as convertToCommonJS,$o as contrast,To as contain,mc as consoleError,ac as configureErrorHandling,Dj as config,Xk as computed,Km as compressResponse,Ef as composerPattern,Df as composer,Ll as composeShellWithPage,Em as componentDirective,Gh as componentClientSignalNames,Zl as compileTemplate,a as collectRepeatedFlag,ck as collectDeployFiles,$i as clearVideoCache,Pd as clearTranslationCache,og as clearStoreCache,Zj as clearStorage,yp as clearSignatureCache,Bi as clearPlaceholderCache,lf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,we as clearImagePlaceholders,Ik as clearImageCache,Ub as clearErrorMessages,Ze as clearDevCaches,hb as clearCustomFilters,Gf as clearComposers,pg as clearComposableCache,Mh as clearComponentCache,Ki as clearCache,no as cleanupLoadingIndicator,Cl as classifyScript,Dl as classifyAllScripts,$n as checkTemplateFile,ao as checkTemplate,_e as checkCache,vp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,zm as channel,vn as captureScreenshots,un as captureScreenshot,$d as cancelPendingLoads,bk as calculateSha1,di as calculateOptimalWidths,$e as cacheTemplate,lj as buildWebComponents,co as buildVirtualSource,iq as buildViews,No as buildUrl,he as buildSuspenseResolveScript,gr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Ul as buildRuntimeAsset,Vl as buildRouterAsset,fr as buildLangPickerScript,ji as buildImageUrl,ag as buildHtmlAttrs,bm as buildForProduction,Hm as buildComponentLibrary,wp as buildAuthParams,cm as buildApp,dr as buildAlternateLinks,Gn as build,xm as broadcastPrivate,ym as broadcastPresence,um as broadcast,_o as brightness,Vo as blur,ya as blankInertHtmlRegions,qp as batchSignUrls,Fe as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,gp as auto,e as attributeValue,Wl as assetTags,za as asInvocableStatement,sr as arrayOf,ar as applyTranslations,Qi as applyTransformations,yh as applySlots,Dm as applyPropDefaults,jp as applyPreset,cg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Hl as appendVary,Xc as apiCspPreset,y as animationGroupDirective,fj as analyzeVideo,fm as analyzeUsage,Al as analyzeTemplate,Bl as analyzeProject,fm as analyzeDirectiveUsage,Eb as analyticsDirective,Sn as addStore,Rn as addPage,$c as addNonceToInlineContent,Tn as addLayout,Qn as addComponent,En as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,We as __setSignalsGeneratorsForTest,Wf as __setBuildIdForTest,Yi as VideoProcessorCache,kh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,Zn as TemplateTypeChecker,yn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Gq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,El as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Fn as ProductionBuild,Iq as Portal,On as PROJECT_TEMPLATES,ip as PRESETS,na as NON_CLIENT_PRIMITIVES,Eo as MemorySessionStore,ai as MIME_TYPES,Zh as MEDIA_DEFAULT_WIDTHS,$h as MEDIA_DEFAULT_FORMATS,Pl as LAYOUT_TYPES_FILE,Ni as ImageProcessorCache,Ck as ImageProcessingError,zo as HydrationRuntime,Kj as HotReloadServer,ha as HeatmapAggregator,_f as HTML_CLASS_MARKER,Zf as HTML_ATTRS_MARKER,zq as Fragment,Hq as For,Fl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Sj as EXTERNALIZED_ASSET_DIR,ok as DeployError,pk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,rk as DEFAULT_QUALITY,qi as DEFAULT_PLACEHOLDER_OPTIONS,qk as DEFAULT_FORMATS,_h as DEFAULT_DPR_VALUES,qo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ii as COMMON_SIZES,Nf as COLOR_MODE_BOOT_MARKER,Of as COLOR_MODE_BOOT_GLOBAL,Yf as CLOAK_STYLE,Bm as BroadcastServer,Am as Broadcast,Tf as BUILD_ID_META,Uf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ri as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Sq as $path};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Js as a,Ks as b}from"./chunk-4qq5wj04.js";import"./chunk-0y6f4037.js";export{b as resolveStxTargets,a as looksLikeGlob};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Af as e,Bf as f,Cf as g,Df as h,yf as c,zf as d}from"./chunk-3dmx290m.js";import{Nf as a,Qf as b}from"./chunk-sdd8rqe4.js";import"./chunk-a2crgnef.js";import"./chunk-9n0gvfrg.js";import"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Rf as p}from"./chunk-1n03h29q.js";import{Hg as a,Jg as JF,Kg as ZF,Lg as qF}from"./chunk-t6dq3jdg.js";import{sj as C,tj as D}from"./chunk-6n48y1kn.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{Cq as FF,Gq as c,Om as u,ap as o,bs as n,ds as N,fm as l,hm as d,hq as e,vq as t}from"./chunk-f9skyaw6.js";import{$s as r}from"./chunk-8cmtr1cx.js";import{Fu as S,Hu as WF}from"./chunk-3k5k7s1x.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
2
+ import{Rf as p}from"./chunk-sdd8rqe4.js";import{Hg as a,Jg as JF,Kg as ZF,Lg as qF}from"./chunk-pmhxrqjg.js";import{sj as C,tj as D}from"./chunk-ph5f8eev.js";import{Ek as QF,Fk as XF,Gk as YF}from"./chunk-58f0mthg.js";import{Dq as FF,Hq as c,Pm as u,bp as o,cs as n,es as N,gm as l,im as d,iq as e,wq as t}from"./chunk-bhqk5vbz.js";import{at as r}from"./chunk-ms9dt8rv.js";import{Gu as S,Iu as WF}from"./chunk-aw651z2y.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=o(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=FF(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=e(F.html,W);if(k.htmlAttrs)F.html=t(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
3
3
  [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
4
  export{g as Hf,f as If,m as Jf,UF as Kf,i as Lf,lF as Mf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Kh as a,Lh as b,Mh as c,Nh as d,Oh as e,Ph as f,Qh as g,Rh as h,Sh as i}from"./chunk-n4m09b4x.js";import"./chunk-74cv4ta1.js";import"./chunk-3r20gmdk.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
2
+ import{Kh as a,Lh as b,Mh as c,Nh as d,Oh as e,Ph as f,Qh as g,Rh as h,Sh as i}from"./chunk-zr4emtxf.js";import"./chunk-74cv4ta1.js";import"./chunk-0y6f4037.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j}from"./chunk-pxvsq2q5.js";import"./chunk-0ha9e1wt.js";import"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
@@ -299,4 +299,4 @@ catch (error) {
299
299
  }
300
300
  })();
301
301
  </script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
302
- export{N as Iu,Q as Ju,T as Ku,V as Lu,X as Mu,Z as Nu};
302
+ export{N as Ju,Q as Ku,T as Lu,V as Mu,X as Nu,Z as Ou};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{kg as a}from"./chunk-6pwqf8xe.js";import"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{a as buildApp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-3r20gmdk.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
2
+ import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-0y6f4037.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ef as a,Ff as b}from"./chunk-pbsfbgx7.js";import"./chunk-3r20gmdk.js";export{b as captureScreenshots,a as captureScreenshot};
2
+ import{Ef as a,Ff as b}from"./chunk-pbsfbgx7.js";import"./chunk-0y6f4037.js";export{b as captureScreenshots,a as captureScreenshot};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{sj as o,tj as p,uj as q}from"./chunk-6n48y1kn.js";import{Aj as a,Bj as b,Cj as c,Dj as d,Ej as e,Fj as f,Gj as g,Hj as h,Ij as i,Jj as j,Kj as k,Lj as l,Mj as m,Nj as n}from"./chunk-w95sp0k9.js";import"./chunk-9q9swjc1.js";import"./chunk-3r20gmdk.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
2
+ import{sj as o,tj as p,uj as q}from"./chunk-ph5f8eev.js";import{Aj as a,Bj as b,Cj as c,Dj as d,Ej as e,Fj as f,Gj as g,Hj as h,Ij as i,Jj as j,Kj as k,Lj as l,Mj as m,Nj as n}from"./chunk-w95sp0k9.js";import"./chunk-5h5ydexj.js";import"./chunk-0y6f4037.js";export{n as useOptimistic,l as untrack,a as state,g as runMountCallbacks,h as runDestroyCallbacks,i as pendingLifecycleCounts,m as peek,e as onMount,f as onDestroy,j as isSignal,k as isDerived,p as generateSignalsRuntimeDev,o as generateSignalsRuntime,c as effect,b as derived,q as default,d as batch};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  var E=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),N=new Set(["html","head","body","p","li","dt","dd","rt","rp","option","optgroup","thead","tbody","tfoot","tr","td","th","colgroup","caption"]);function X(Q){return Q.replace(/[^\n]/g," ")}function R(Q){let H=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,X).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,X).replace(/<!--[\s\S]*?-->/g,X).replace(/\{\{\{[\s\S]*?\}\}\}/g,X).replace(/\{\{[\s\S]*?\}\}/g,X).replace(/\{!![\s\S]*?!!\}/g,X),F=new Map,J=new Map,Y=/<(\/?)([A-Za-z][\w-]*)\b(?:[^>"']|"[^"]*"|'[^']*')*?(\/?)>/g,z;while((z=Y.exec(H))!==null){let j=z[1]==="/",q=z[2],W=z[3]==="/";if(E.has(q.toLowerCase()))continue;if(W)continue;if(j)J.set(q,(J.get(q)??0)+1);else{let Z=F.get(q);if(Z)Z.count++;else{let B=H.slice(0,z.index).split(`
3
3
  `).length;F.set(q,{count:1,firstLine:B})}}}let M=[];for(let j of new Set([...F.keys(),...J.keys()])){if(N.has(j.toLowerCase()))continue;let q=F.get(j)?.count??0,W=J.get(j)??0;if(q!==W)M.push({tag:j,opened:q,closed:W,firstOpenLine:F.get(j)?.firstLine??0})}return M}var $=new Set;function U(Q,H){let F;try{F=R(Q)}catch{return}if(F.length===0)return;let J=`${H}:${Q.length}`;if($.has(J))return;$.add(J);let Y=H?H.split(/[/\\]/).pop()||H:"template";for(let{tag:z,opened:M,closed:j,firstOpenLine:q}of F)if(M>j){let W=q?` (first opened at line ${q})`:"";console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 an unclosed <${z}>${W} may swallow the content that follows it.`)}else console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 ${j-M} stray </${z}>.`)}
4
- export{R as Dt,U as Et};
4
+ export{R as Et,U as Ft};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Vi as a,Wi as b}from"./chunk-jtzhfjfm.js";import"./chunk-9n0gvfrg.js";import"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ni as a,oi as b,pi as c,qi as d,ri as e}from"./chunk-9y0g8kzt.js";import"./chunk-3r20gmdk.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
2
+ import{ni as a,oi as b,pi as c,qi as d,ri as e}from"./chunk-9y0g8kzt.js";import"./chunk-0y6f4037.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$l as k,Rl as c,Ul as d,Vl as e,Wl as f,Xl as g,Yl as h,Zl as i,_l as j,am as l,bm as m}from"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import{Ls as a,Ms as b}from"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$s as m,Ps as a,Qs as b,Rs as c,Ss as d,Ts as e,Us as f,Vs as g,Ws as h,Xs as i,Ys as j,Zs as k,_s as l}from"./chunk-8cmtr1cx.js";import"./chunk-ecncwde8.js";import"./chunk-3r20gmdk.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
2
+ import{$s as l,Qs as a,Rs as b,Ss as c,Ts as d,Us as e,Vs as f,Ws as g,Xs as h,Ys as i,Zs as j,_s as k,at as m}from"./chunk-ms9dt8rv.js";import"./chunk-dnhckx52.js";import"./chunk-0y6f4037.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Am as m,Bm as n,Cm as o,om as a,pm as b,qm as c,rm as d,sm as e,tm as f,um as g,vm as h,wm as i,xm as j,ym as k,zm as l}from"./chunk-bhqk5vbz.js";import"./chunk-25de1sj7.js";import"./chunk-38ykv2gd.js";import"./chunk-4qq5wj04.js";import"./chunk-g8tce9rr.js";import"./chunk-ms9dt8rv.js";import"./chunk-a8mnhryz.js";import"./chunk-dnhckx52.js";import"./chunk-jt8as8j8.js";import"./chunk-x84g0m0p.js";import"./chunk-5h5ydexj.js";import"./chunk-aw651z2y.js";import"./chunk-wj2trgsn.js";import"./chunk-0y6f4037.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Hk as a,Ik as b,Jk as c,Kk as d,Lk as e}from"./chunk-hpybjwwf.js";import"./chunk-3r20gmdk.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
2
+ import{Hk as a,Ik as b,Jk as c,Kk as d,Lk as e}from"./chunk-hpybjwwf.js";import"./chunk-0y6f4037.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{at as a,bt as b,ct as c,dt as d,et as e,ft as f,gt as g}from"./chunk-2fgthktp.js";import"./chunk-3r20gmdk.js";export{g as warmImagePlaceholders,f as svgDataUrl,d as setImagePlaceholder,b as placeholdersWarmed,e as meshSvg,a as getImagePlaceholder,c as clearImagePlaceholders};
2
+ import{bt as a,ct as b,dt as c,et as d,ft as e,gt as f,ht as g}from"./chunk-a8mnhryz.js";import"./chunk-0y6f4037.js";export{g as warmImagePlaceholders,f as svgDataUrl,d as setImagePlaceholder,b as placeholdersWarmed,e as meshSvg,a as getImagePlaceholder,c as clearImagePlaceholders};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-3r20gmdk.js";import v from"fs";import H from"path";import{gzipSync as z}from"zlib";import{createHash as g}from"crypto";var D={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".avif":"image",".ico":"image",".woff":"font",".woff2":"font",".ttf":"font",".eot":"font",".otf":"font"},b=[/node_modules/,/vendor/,/bower_components/,/\.min\./],B=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function L(X,Z={}){let{includeSourceMaps:Q=!1,parseImports:$=!0,detectDuplicates:U=!0,topModulesCount:K=20}=Z;if(!v.existsSync(X))throw Error(`Build directory not found: ${X}`);if(!v.statSync(X).isDirectory())throw Error(`Not a directory: ${X}`);let q=await k(X,Q),J=[],F=[];for(let A of q)try{let O=await f(A,X,$);J.push(O)}catch(O){F.push(`Failed to process ${A}: ${O}`)}let Y=c(J,X),V=J.reduce((A,O)=>A+O.size,0),_=J.reduce((A,O)=>A+O.gzipSize,0),w=m(J),G=U?p(J):[],C=[...J].sort((A,O)=>O.size-A.size).slice(0,K);return{timestamp:Date.now(),buildDir:H.resolve(X),chunks:Y,totalSize:V,totalGzipSize:_,moduleCount:J.length,duplicates:G,byType:w,largestModules:C,warnings:F}}async function k(X,Z){let Q=[];async function $(U){let K=await v.promises.readdir(U,{withFileTypes:!0});for(let j of K){let q=H.join(U,j.name);if(j.isDirectory()){if(!j.name.startsWith(".")&&j.name!=="node_modules")await $(q)}else if(j.isFile()){if(!Z&&j.name.endsWith(".map"))continue;Q.push(q)}}}return await $(X),Q}async function f(X,Z,Q){let $=await v.promises.readFile(X),U=H.relative(Z,X),K=H.extname(X).toLowerCase(),j=$.length,q=y($),J=h($,K),F=g("md5").update($).digest("hex").slice(0,8),Y=D[K]||"other",V=[];if(Q&&Y==="js")V.push(...d($.toString("utf-8")));return{id:U,path:U,size:j,gzipSize:q,parsedSize:J,extension:K,type:Y,imports:V,importedBy:[],hash:F}}function y(X){try{let Z=z(X,{level:9}).length;return Math.min(Z,X.length)}catch{return X.length}}function h(X,Z){if(Z.includes(".min.")||X.length<1000)return X.length;let $=D[Z];if($==="js")return Math.round(X.length*0.6);if($==="css")return Math.round(X.length*0.7);return X.length}function d(X){let Z=[],Q=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,$;while(($=Q.exec(X))!==null)Z.push($[1]);let U=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=U.exec(X))!==null)Z.push($[1]);let K=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=K.exec(X))!==null)Z.push($[1]);return[...new Set(Z)]}function c(X,Z){let Q=new Map;for(let U of X){let K=U.path.split(H.sep),j;if(K.length===1)j=H.basename(U.path,U.extension);else j=K[0];let q=Q.get(j)||[];q.push(U),Q.set(j,q)}let $=[];for(let[U,K]of Q){let j=K.reduce((Y,V)=>Y+V.size,0),q=K.reduce((Y,V)=>Y+V.gzipSize,0),J=K.some((Y)=>B.some((V)=>V.test(Y.path))),F=K.some((Y)=>b.some((V)=>V.test(Y.path)));$.push({name:U,files:K.map((Y)=>Y.path),modules:K,size:j,gzipSize:q,isEntry:J,isVendor:F})}return $.sort((U,K)=>K.size-U.size)}function m(X){let Z={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let Q of X)Z[Q.type].count++,Z[Q.type].size+=Q.size,Z[Q.type].gzipSize+=Q.gzipSize;return Z}function p(X){let Z=new Map;for(let $ of X){let U=Z.get($.hash)||[];U.push($),Z.set($.hash,U)}let Q=[];for(let[,$]of Z)if($.length>1){let U=$[0];Q.push({path:U.path,count:$.length,wastedBytes:U.size*($.length-1),locations:$.map((K)=>K.path)})}return Q.sort(($,U)=>U.wastedBytes-$.wastedBytes)}function W(X){if(X<1024)return`${X} B`;if(X<1048576)return`${(X/1024).toFixed(2)} KB`;return`${(X/1048576).toFixed(2)} MB`}function I(X){let Z=X.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Z)return 0;let Q=Number.parseFloat(Z[1]);switch((Z[2]||"B").toUpperCase()){case"KB":return Q*1024;case"MB":return Q*1024*1024;case"GB":return Q*1024*1024*1024;default:return Q}}function E(X,Z){if(Z===0)return"0%";return`${(X/Z*100).toFixed(1)}%`}function R(X,Z){switch(Z.format){case"json":return u(X,Z);case"markdown":return l(X,Z);case"text":default:return r(X,Z)}}function u(X,Z){let Q=N(X,Z);return JSON.stringify({timestamp:X.timestamp,buildDir:X.buildDir,summary:{totalSize:X.totalSize,totalSizeFormatted:W(X.totalSize),totalGzipSize:X.totalGzipSize,totalGzipSizeFormatted:W(X.totalGzipSize),moduleCount:X.moduleCount,chunkCount:X.chunks.length,duplicateCount:X.duplicates.length},byType:Object.fromEntries(Object.entries(X.byType).map(([$,U])=>[$,{...U,sizeFormatted:W(U.size),gzipSizeFormatted:W(U.gzipSize)}])),chunks:X.chunks.map(($)=>({name:$.name,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),moduleCount:$.modules.length,isEntry:$.isEntry,isVendor:$.isVendor})),largestModules:X.largestModules.slice(0,Z.topModules||10).map(($)=>({path:$.path,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),type:$.type})),duplicates:X.duplicates,analysis:Q,warnings:X.warnings},null,2)}function r(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push(""),Q.push("Bundle Analysis Report"),Q.push("\u2550".repeat(50)),Q.push(""),Q.push("Summary"),Q.push("\u2500".repeat(50)),$)Q.push(`Total Size: ${W(X.totalSize)} (${W(X.totalGzipSize)} gzip)`);else Q.push(`Total Size: ${W(X.totalSize)}`);if(Q.push(`Modules: ${X.moduleCount}`),Q.push(`Chunks: ${X.chunks.length}`),X.duplicates.length>0)Q.push(`Duplicates: ${X.duplicates.length}`);if(Q.push(""),Z.threshold&&X.totalSize>Z.threshold)Q.push(`\u26A0\uFE0F Bundle exceeds threshold of ${W(Z.threshold)}!`),Q.push("");Q.push("Size by Type"),Q.push("\u2500".repeat(50));let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0){let J=E(q.size,X.totalSize),F=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${j.padEnd(8)} ${W(q.size).padStart(12)}${F} ${J.padStart(6)} (${q.count} files)`)}}Q.push(""),Q.push("Chunks"),Q.push("\u2500".repeat(50));for(let j of X.chunks.slice(0,10)){let q=[];if(j.isEntry)q.push("entry");if(j.isVendor)q.push("vendor");let J=q.length>0?` [${q.join(", ")}]`:"",F=$?` (${W(j.gzipSize)} gzip)`:"";Q.push(` ${j.name.padEnd(20)} ${W(j.size).padStart(12)}${F}${J}`)}if(X.chunks.length>10)Q.push(` ... and ${X.chunks.length-10} more chunks`);Q.push("");let K=Z.topModules||10;Q.push(`Largest Modules (Top ${K})`),Q.push("\u2500".repeat(50));for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j],J=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${(j+1).toString().padStart(2)}. ${q.path}`),Q.push(` ${W(q.size)}${J}`)}if(Q.push(""),X.duplicates.length>0){Q.push("Duplicate Modules"),Q.push("\u2500".repeat(50));for(let j of X.duplicates.slice(0,5))Q.push(` ${j.path}`),Q.push(` ${j.count} copies, wasting ${W(j.wastedBytes)}`);if(X.duplicates.length>5)Q.push(` ... and ${X.duplicates.length-5} more duplicates`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("Recommendations"),Q.push("\u2500".repeat(50));for(let q of j.recommendations.slice(0,5)){let J=q.impact==="high"?"\u26A1":q.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";Q.push(` ${J} ${q.title}`),Q.push(` ${q.description}`)}Q.push("")}}if(X.warnings.length>0){Q.push("Warnings"),Q.push("\u2500".repeat(50));for(let j of X.warnings)Q.push(` \u26A0\uFE0F ${j}`);Q.push("")}return Q.join(`
2
+ import"./chunk-0y6f4037.js";import v from"fs";import H from"path";import{gzipSync as z}from"zlib";import{createHash as g}from"crypto";var D={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".avif":"image",".ico":"image",".woff":"font",".woff2":"font",".ttf":"font",".eot":"font",".otf":"font"},b=[/node_modules/,/vendor/,/bower_components/,/\.min\./],B=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function L(X,Z={}){let{includeSourceMaps:Q=!1,parseImports:$=!0,detectDuplicates:U=!0,topModulesCount:K=20}=Z;if(!v.existsSync(X))throw Error(`Build directory not found: ${X}`);if(!v.statSync(X).isDirectory())throw Error(`Not a directory: ${X}`);let q=await k(X,Q),J=[],F=[];for(let A of q)try{let O=await f(A,X,$);J.push(O)}catch(O){F.push(`Failed to process ${A}: ${O}`)}let Y=c(J,X),V=J.reduce((A,O)=>A+O.size,0),_=J.reduce((A,O)=>A+O.gzipSize,0),w=m(J),G=U?p(J):[],C=[...J].sort((A,O)=>O.size-A.size).slice(0,K);return{timestamp:Date.now(),buildDir:H.resolve(X),chunks:Y,totalSize:V,totalGzipSize:_,moduleCount:J.length,duplicates:G,byType:w,largestModules:C,warnings:F}}async function k(X,Z){let Q=[];async function $(U){let K=await v.promises.readdir(U,{withFileTypes:!0});for(let j of K){let q=H.join(U,j.name);if(j.isDirectory()){if(!j.name.startsWith(".")&&j.name!=="node_modules")await $(q)}else if(j.isFile()){if(!Z&&j.name.endsWith(".map"))continue;Q.push(q)}}}return await $(X),Q}async function f(X,Z,Q){let $=await v.promises.readFile(X),U=H.relative(Z,X),K=H.extname(X).toLowerCase(),j=$.length,q=y($),J=h($,K),F=g("md5").update($).digest("hex").slice(0,8),Y=D[K]||"other",V=[];if(Q&&Y==="js")V.push(...d($.toString("utf-8")));return{id:U,path:U,size:j,gzipSize:q,parsedSize:J,extension:K,type:Y,imports:V,importedBy:[],hash:F}}function y(X){try{let Z=z(X,{level:9}).length;return Math.min(Z,X.length)}catch{return X.length}}function h(X,Z){if(Z.includes(".min.")||X.length<1000)return X.length;let $=D[Z];if($==="js")return Math.round(X.length*0.6);if($==="css")return Math.round(X.length*0.7);return X.length}function d(X){let Z=[],Q=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,$;while(($=Q.exec(X))!==null)Z.push($[1]);let U=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=U.exec(X))!==null)Z.push($[1]);let K=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while(($=K.exec(X))!==null)Z.push($[1]);return[...new Set(Z)]}function c(X,Z){let Q=new Map;for(let U of X){let K=U.path.split(H.sep),j;if(K.length===1)j=H.basename(U.path,U.extension);else j=K[0];let q=Q.get(j)||[];q.push(U),Q.set(j,q)}let $=[];for(let[U,K]of Q){let j=K.reduce((Y,V)=>Y+V.size,0),q=K.reduce((Y,V)=>Y+V.gzipSize,0),J=K.some((Y)=>B.some((V)=>V.test(Y.path))),F=K.some((Y)=>b.some((V)=>V.test(Y.path)));$.push({name:U,files:K.map((Y)=>Y.path),modules:K,size:j,gzipSize:q,isEntry:J,isVendor:F})}return $.sort((U,K)=>K.size-U.size)}function m(X){let Z={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let Q of X)Z[Q.type].count++,Z[Q.type].size+=Q.size,Z[Q.type].gzipSize+=Q.gzipSize;return Z}function p(X){let Z=new Map;for(let $ of X){let U=Z.get($.hash)||[];U.push($),Z.set($.hash,U)}let Q=[];for(let[,$]of Z)if($.length>1){let U=$[0];Q.push({path:U.path,count:$.length,wastedBytes:U.size*($.length-1),locations:$.map((K)=>K.path)})}return Q.sort(($,U)=>U.wastedBytes-$.wastedBytes)}function W(X){if(X<1024)return`${X} B`;if(X<1048576)return`${(X/1024).toFixed(2)} KB`;return`${(X/1048576).toFixed(2)} MB`}function I(X){let Z=X.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Z)return 0;let Q=Number.parseFloat(Z[1]);switch((Z[2]||"B").toUpperCase()){case"KB":return Q*1024;case"MB":return Q*1024*1024;case"GB":return Q*1024*1024*1024;default:return Q}}function E(X,Z){if(Z===0)return"0%";return`${(X/Z*100).toFixed(1)}%`}function R(X,Z){switch(Z.format){case"json":return u(X,Z);case"markdown":return l(X,Z);case"text":default:return r(X,Z)}}function u(X,Z){let Q=N(X,Z);return JSON.stringify({timestamp:X.timestamp,buildDir:X.buildDir,summary:{totalSize:X.totalSize,totalSizeFormatted:W(X.totalSize),totalGzipSize:X.totalGzipSize,totalGzipSizeFormatted:W(X.totalGzipSize),moduleCount:X.moduleCount,chunkCount:X.chunks.length,duplicateCount:X.duplicates.length},byType:Object.fromEntries(Object.entries(X.byType).map(([$,U])=>[$,{...U,sizeFormatted:W(U.size),gzipSizeFormatted:W(U.gzipSize)}])),chunks:X.chunks.map(($)=>({name:$.name,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),moduleCount:$.modules.length,isEntry:$.isEntry,isVendor:$.isVendor})),largestModules:X.largestModules.slice(0,Z.topModules||10).map(($)=>({path:$.path,size:$.size,sizeFormatted:W($.size),gzipSize:$.gzipSize,gzipSizeFormatted:W($.gzipSize),type:$.type})),duplicates:X.duplicates,analysis:Q,warnings:X.warnings},null,2)}function r(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push(""),Q.push("Bundle Analysis Report"),Q.push("\u2550".repeat(50)),Q.push(""),Q.push("Summary"),Q.push("\u2500".repeat(50)),$)Q.push(`Total Size: ${W(X.totalSize)} (${W(X.totalGzipSize)} gzip)`);else Q.push(`Total Size: ${W(X.totalSize)}`);if(Q.push(`Modules: ${X.moduleCount}`),Q.push(`Chunks: ${X.chunks.length}`),X.duplicates.length>0)Q.push(`Duplicates: ${X.duplicates.length}`);if(Q.push(""),Z.threshold&&X.totalSize>Z.threshold)Q.push(`\u26A0\uFE0F Bundle exceeds threshold of ${W(Z.threshold)}!`),Q.push("");Q.push("Size by Type"),Q.push("\u2500".repeat(50));let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0){let J=E(q.size,X.totalSize),F=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${j.padEnd(8)} ${W(q.size).padStart(12)}${F} ${J.padStart(6)} (${q.count} files)`)}}Q.push(""),Q.push("Chunks"),Q.push("\u2500".repeat(50));for(let j of X.chunks.slice(0,10)){let q=[];if(j.isEntry)q.push("entry");if(j.isVendor)q.push("vendor");let J=q.length>0?` [${q.join(", ")}]`:"",F=$?` (${W(j.gzipSize)} gzip)`:"";Q.push(` ${j.name.padEnd(20)} ${W(j.size).padStart(12)}${F}${J}`)}if(X.chunks.length>10)Q.push(` ... and ${X.chunks.length-10} more chunks`);Q.push("");let K=Z.topModules||10;Q.push(`Largest Modules (Top ${K})`),Q.push("\u2500".repeat(50));for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j],J=$?` (${W(q.gzipSize)} gzip)`:"";Q.push(` ${(j+1).toString().padStart(2)}. ${q.path}`),Q.push(` ${W(q.size)}${J}`)}if(Q.push(""),X.duplicates.length>0){Q.push("Duplicate Modules"),Q.push("\u2500".repeat(50));for(let j of X.duplicates.slice(0,5))Q.push(` ${j.path}`),Q.push(` ${j.count} copies, wasting ${W(j.wastedBytes)}`);if(X.duplicates.length>5)Q.push(` ... and ${X.duplicates.length-5} more duplicates`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("Recommendations"),Q.push("\u2500".repeat(50));for(let q of j.recommendations.slice(0,5)){let J=q.impact==="high"?"\u26A1":q.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";Q.push(` ${J} ${q.title}`),Q.push(` ${q.description}`)}Q.push("")}}if(X.warnings.length>0){Q.push("Warnings"),Q.push("\u2500".repeat(50));for(let j of X.warnings)Q.push(` \u26A0\uFE0F ${j}`);Q.push("")}return Q.join(`
3
3
  `)}function l(X,Z){let Q=[],$=Z.showGzip!==!1;if(Q.push("# Bundle Analysis Report"),Q.push(""),Q.push(`Generated: ${new Date(X.timestamp).toISOString()}`),Q.push(""),Q.push("## Summary"),Q.push(""),Q.push("| Metric | Value |"),Q.push("|--------|-------|"),Q.push(`| Total Size | ${W(X.totalSize)} |`),$)Q.push(`| Gzip Size | ${W(X.totalGzipSize)} |`);Q.push(`| Modules | ${X.moduleCount} |`),Q.push(`| Chunks | ${X.chunks.length} |`),Q.push(`| Duplicates | ${X.duplicates.length} |`),Q.push(""),Q.push("## Size by Type"),Q.push(""),Q.push("| Type | Size | Gzip | % | Files |"),Q.push("|------|------|------|---|-------|");let U=["js","css","html","image","font","other"];for(let j of U){let q=X.byType[j];if(q.count>0)Q.push(`| ${j} | ${W(q.size)} | ${W(q.gzipSize)} | ${E(q.size,X.totalSize)} | ${q.count} |`)}Q.push(""),Q.push("## Chunks"),Q.push(""),Q.push("| Name | Size | Gzip | Modules | Type |"),Q.push("|------|------|------|---------|------|");for(let j of X.chunks.slice(0,15)){let q=j.isEntry?"Entry":j.isVendor?"Vendor":"-";Q.push(`| ${j.name} | ${W(j.size)} | ${W(j.gzipSize)} | ${j.modules.length} | ${q} |`)}Q.push("");let K=Z.topModules||10;Q.push(`## Largest Modules (Top ${K})`),Q.push(""),Q.push("| # | Path | Size | Gzip |"),Q.push("|---|------|------|------|");for(let j=0;j<Math.min(K,X.largestModules.length);j++){let q=X.largestModules[j];Q.push(`| ${j+1} | \`${q.path}\` | ${W(q.size)} | ${W(q.gzipSize)} |`)}if(Q.push(""),X.duplicates.length>0){Q.push("## Duplicates"),Q.push(""),Q.push("| Path | Copies | Wasted |"),Q.push("|------|--------|--------|");for(let j of X.duplicates.slice(0,10))Q.push(`| \`${j.path}\` | ${j.count} | ${W(j.wastedBytes)} |`);Q.push("")}if(Z.recommendations!==!1){let j=N(X,Z);if(j.recommendations.length>0){Q.push("## Recommendations"),Q.push("");for(let q of j.recommendations)Q.push(`### ${q.title}`),Q.push(""),Q.push(q.description),Q.push(""),Q.push(`- **Impact:** ${q.impact}`),Q.push(`- **Effort:** ${q.effort}`),Q.push("")}}return Q.join(`
4
4
  `)}function N(X,Z){let Q=[],$=[];if(Z.threshold&&X.totalSize>Z.threshold)Q.push({severity:"error",message:`Bundle size (${W(X.totalSize)}) exceeds threshold (${W(Z.threshold)})`});if(X.totalSize>1048576)Q.push({severity:"warning",message:`Bundle is over 1MB (${W(X.totalSize)})`,details:"Large bundles can significantly impact load time"});if(X.duplicates.length>0){let q=X.duplicates.reduce((J,F)=>J+F.wastedBytes,0);Q.push({severity:"warning",message:`${X.duplicates.length} duplicate modules found, wasting ${W(q)}`}),$.push({title:"Remove Duplicate Modules",description:"Consider using import aliases or ensuring consistent package versions to eliminate duplicates.",impact:"medium",effort:"low"})}if(X.byType.js.size/X.totalSize>0.8&&X.totalSize>512000)$.push({title:"Code Splitting",description:"Over 80% of your bundle is JavaScript. Consider splitting code by route or feature.",impact:"high",effort:"medium"});let K=X.largestModules.filter((q)=>q.size>102400);if(K.length>0){Q.push({severity:"info",message:`${K.length} modules are over 100KB`});for(let q of K){if(q.path.includes("lodash")&&!q.path.includes("lodash-es"))$.push({title:"Use lodash-es instead of lodash",description:"lodash-es supports tree-shaking and can significantly reduce bundle size.",impact:"high",effort:"low"});if(q.path.includes("moment"))$.push({title:"Replace moment.js",description:"Consider using date-fns or dayjs for smaller date handling libraries.",impact:"high",effort:"medium"})}}if(X.byType.image.size>512000)$.push({title:"Optimize Images",description:`Images account for ${W(X.byType.image.size)}. Consider using WebP/AVIF formats and responsive images.`,impact:"high",effort:"low"});let j=100;if(X.totalSize>1048576)j-=20;else if(X.totalSize>512000)j-=10;if(j-=Math.min(20,X.duplicates.length*2),j-=Math.min(15,K.length*3),Z.threshold&&X.totalSize>Z.threshold)j-=25;return{score:Math.max(0,j),issues:Q,recommendations:$}}var i={lodash:{alternative:"lodash-es or individual imports",savings:"~70%"},moment:{alternative:"date-fns or dayjs",savings:"~90%"},"chart.js":{alternative:"chart.js with tree-shaking",savings:"~50%"},"highlight.js":{alternative:"Selective language imports",savings:"~80%"},fontawesome:{alternative:"Individual icon imports",savings:"~90%"},"material-ui":{alternative:"Named imports from @mui/*",savings:"~60%"}};function n(X){for(let[Z,Q]of Object.entries(i))if(X.includes(Z))return{title:`Optimize ${Z}`,description:`Consider using ${Q.alternative}. Potential savings: ${Q.savings}`,impact:"high",effort:"low"};return null}var o={default:{js:"#f7df1e",css:"#264de4",html:"#e34c26",image:"#4caf50",font:"#9c27b0",other:"#607d8b",vendor:"#ff5722"},pastel:{js:"#fff3b0",css:"#b0d4ff",html:"#ffb0b0",image:"#b0ffb0",font:"#e0b0ff",other:"#d0d0d0",vendor:"#ffcfb0"},monochrome:{js:"#333333",css:"#555555",html:"#777777",image:"#999999",font:"#bbbbbb",other:"#dddddd",vendor:"#444444"}};function x(X,Z={}){let{title:Q="Bundle Analysis",gzip:$=!0,colorScheme:U="default"}=Z,K=o[U],j=a(X),q=JSON.stringify(j);return`<!DOCTYPE html>
5
5
  <html lang="en">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$h as P,Th as x,Yh as M,Zh as C,_h as v}from"./chunk-74cv4ta1.js";import{Ru as y}from"./chunk-3r20gmdk.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Kh,w as Lh,Q as Mh,d as Nh,g as Oh,n as Ph,D as Qh,t as Rh,KJ as Sh};
2
+ import{$h as P,Th as x,Yh as M,Zh as C,_h as v}from"./chunk-74cv4ta1.js";import{Su as y}from"./chunk-0y6f4037.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Kh,w as Lh,Q as Mh,d as Nh,g as Oh,n as Ph,D as Qh,t as Rh,KJ as Sh};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ru as v}from"./chunk-3r20gmdk.js";function _4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function zZ(){return typeof window<"u"&&typeof document<"u"}async function N4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var y=new Map;function E4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function A4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function k4(Z="top-right"){if(!zZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function H4(Z){let{options:Y}=Z,$=A4(Y.type),J=Y.type||"info",G=Y.duration!==0;return`
2
+ import{Su as v}from"./chunk-0y6f4037.js";function _4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function zZ(){return typeof window<"u"&&typeof document<"u"}async function N4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var y=new Map;function E4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function A4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function k4(Z="top-right"){if(!zZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function H4(Z){let{options:Y}=Z,$=A4(Y.type),J=Y.type||"info",G=Y.duration!==0;return`
3
3
  <div class="stx-toast ${J}" data-alert-id="${Z.id}" role="alert" aria-live="polite">
4
4
  <div class="stx-toast-icon">${$}</div>
5
5
  <div class="stx-toast-content">