@stacksjs/stx 0.2.325 → 0.2.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtins/stx-link.js +4 -1
- package/dist/{chunk-pmf1b3x3.js → chunk-0b6rbeb7.js} +1 -1
- package/dist/{chunk-r53vmm95.js → chunk-0r4r426f.js} +1 -1
- package/dist/{chunk-g5az4ms6.js → chunk-3dr3zphp.js} +1 -1
- package/dist/{chunk-pqph0m3z.js → chunk-3eyg7eyq.js} +1 -1
- package/dist/{chunk-dht5gn9k.js → chunk-429wf3rd.js} +1 -1
- package/dist/{chunk-q3qaqj41.js → chunk-4775jwbk.js} +1 -1
- package/dist/{chunk-ptr7337q.js → chunk-4fck9h56.js} +64 -64
- package/dist/{chunk-ahb3te9r.js → chunk-4p05bgqf.js} +1 -1
- package/dist/{chunk-mmzmp30r.js → chunk-4sg3mw9m.js} +1 -1
- package/dist/{chunk-qwbse23p.js → chunk-5eqc3f0f.js} +1 -1
- package/dist/chunk-63kzeyt9.js +2 -0
- package/dist/{chunk-hxwqgh80.js → chunk-7b1hzv9v.js} +1 -1
- package/dist/{chunk-gs7e0vhk.js → chunk-8kr2nmn3.js} +1 -1
- package/dist/{chunk-585q980n.js → chunk-9ah9f27h.js} +2 -2
- package/dist/{chunk-qm2044zy.js → chunk-9jatnvx3.js} +1 -1
- package/dist/{chunk-xsrb2heb.js → chunk-a66thbww.js} +1 -1
- package/dist/chunk-b39rm1fd.js +2 -0
- package/dist/{chunk-w8cn3n0e.js → chunk-bvr71dnk.js} +1 -1
- package/dist/{chunk-vxmcgqkr.js → chunk-ce7d7p08.js} +1 -1
- package/dist/{chunk-n5ee4z8b.js → chunk-cgqazfj8.js} +1 -1
- package/dist/{chunk-xe592pva.js → chunk-crmy5yhk.js} +1 -1
- package/dist/chunk-dnga7h49.js +2 -0
- package/dist/{chunk-afn5ycn3.js → chunk-embjwebg.js} +2 -2
- package/dist/{chunk-1vgvmhph.js → chunk-ex2rweah.js} +1 -1
- package/dist/{chunk-zpw4bszj.js → chunk-f58efcb5.js} +1 -1
- package/dist/{chunk-9393stc6.js → chunk-fm8w5wd7.js} +2 -2
- package/dist/{chunk-t0vb3t8f.js → chunk-g5k4ceg8.js} +1 -1
- package/dist/{chunk-dg2w5k8f.js → chunk-jws7h3yg.js} +1 -1
- package/dist/{chunk-0h2ga0gv.js → chunk-k5jyhp8f.js} +1 -1
- package/dist/{chunk-vzz0tb32.js → chunk-m64wwy1j.js} +2 -2
- package/dist/{chunk-9epygfjr.js → chunk-p35gk1kr.js} +1 -1
- package/dist/{chunk-wq1mte0v.js → chunk-pnmb59wv.js} +1 -1
- package/dist/{chunk-cp8jfzx2.js → chunk-q1tc5kxy.js} +1 -1
- package/dist/{chunk-akc532td.js → chunk-qh638jcb.js} +1 -1
- package/dist/{chunk-k5qwqnz6.js → chunk-qht7be1x.js} +1 -1
- package/dist/{chunk-b46e09h2.js → chunk-qrbba9jn.js} +1 -1
- package/dist/{chunk-fh7zr4gs.js → chunk-qtm2zgjj.js} +1 -1
- package/dist/chunk-r073q98g.js +2 -0
- package/dist/{chunk-g6xbvf0g.js → chunk-rps8xwna.js} +1 -1
- package/dist/{chunk-y7pwhtp9.js → chunk-s8rc6rgv.js} +1 -1
- package/dist/{chunk-x7gfgdpy.js → chunk-sn9d9m15.js} +1 -1
- package/dist/{chunk-4tg48gv1.js → chunk-styqhxk5.js} +1 -1
- package/dist/{chunk-2dnh1g4b.js → chunk-vxt8234h.js} +1 -1
- package/dist/{chunk-5az2jb8y.js → chunk-wct92198.js} +27 -11
- package/dist/{chunk-x4v79ska.js → chunk-wf1a28ec.js} +9 -9
- package/dist/{chunk-ecx1byp2.js → chunk-x95v38pt.js} +1 -1
- package/dist/{chunk-nsznx9yt.js → chunk-xa17djyz.js} +1 -1
- package/dist/{chunk-pty8ywaj.js → chunk-y9d560c6.js} +1 -1
- package/dist/{chunk-zgd2hkmg.js → chunk-ydzns231.js} +1 -1
- package/dist/{chunk-5zy438kd.js → chunk-yrcj14c6.js} +1 -1
- package/dist/{chunk-fyr3x9sf.js → chunk-ysc69wxa.js} +1 -1
- package/dist/{chunk-r849z7dr.js → chunk-zg3tz5g3.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-5620mx68.js +0 -2
- package/dist/chunk-5r53yrpa.js +0 -2
- package/dist/chunk-ckravypk.js +0 -2
- package/dist/chunk-pxgnybpm.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ui as O,Vi as w,Wi as Z}from"./chunk-xwxdwqn9.js";import{gl as R,nl as U,tl as T}from"./chunk-
|
|
2
|
+
import{Ui as O,Vi as w,Wi as Z}from"./chunk-xwxdwqn9.js";import{gl as R,nl as U,tl as T}from"./chunk-zg3tz5g3.js";import{Ar as C,Io as W,fm as M,jq as k}from"./chunk-4fck9h56.js";import{$u as L,_u as E}from"./chunk-r1g0bnpv.js";import{dv as B}from"./chunk-8n0mjaf6.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
|
|
3
3
|
${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
|
|
4
4
|
|
|
5
5
|
`),x=`;(function(){
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as Vl,$a as Zn,$b as ip,$c as iq,$d as ir,A as Fk,Aa as jn,Ab as Do,Ac as Jp,Ad as Jq,Ae as Pr,B as Gk,Ba as kn,Bb as Eo,Bc as Kp,Bd as Kq,Be as Qr,C as Hk,Ca as xn,Cb as Fo,Cc as Lp,Cd as Lq,Ce as Rr,D as Ik,Da as yn,Db as Go,Dc as Mp,Dd as Mq,De as Sr,E as yl,Ea as zn,Eb as Ho,Ec as Np,Ed as Nq,Ee as Tr,F as zl,Fa as An,Fb as Io,Fc as Op,Fd as Oq,Fe as Ur,G as Al,Ga as Bn,Gb as Jo,Gc as Pp,Gd as Pq,Ge as Vr,H as Bl,Ha as Cn,Hb as Ko,Hc as Qp,Hd as Qq,He as Wr,I as Cl,Ia as Gn,Ib as Lo,Ic as Rp,Id as Rq,Ie as Xr,J as Dl,Ja as Hn,Jb as Mo,Jc as Sp,Jd as Sq,Je as Yr,K as El,Ka as In,Kb as No,Kc as Tp,Kd as Tq,Ke as Zr,L as Fl,La as Jn,Lb as Oo,Lc as Up,Ld as Uq,M as Gl,Ma as Kn,Mb as Po,Mc as Vp,Md as Vq,N as Hl,Na as Ln,Nb as Wo,Nc as Wp,Nd as Wq,O as Il,Oa as Mn,Ob as Xo,Oc as Xp,Od as Xq,P as Jl,Pa as Nn,Pb as Yo,Pc as Yp,Pd as Yq,Q as Kl,Qa as On,Qb as Zo,Qc as Zp,Qd as Zq,R as Ll,Ra as Pn,Rb as _o,Rc as _p,Rd as _q,S as Ml,Sa as Qn,Sb as $o,Sc as $p,Sd as $q,T as Nl,Ta as Rn,Tb as ap,Tc as aq,Td as ar,U as Ol,Ua as Sn,Ub as bp,Uc as bq,Ud as br,V as Pl,Va as Tn,Vb as cp,Vc as cq,Vd as cr,W as Ql,Wa as Un,Wb as dp,Wc as dq,Wd as dr,X as Rl,Xa as Vn,Xb as ep,Xc as eq,Xd as er,Y as Sl,Ya as Wn,Yb as fp,Yc as fq,Yd as fr,Z as Tl,Za as Xn,Zb as gp,Zc as gq,Zd as gr,_ as Ul,_a as Yn,_b as hp,_c as hq,_d as hr,aa as Wl,ab as _n,ac as jp,ad as jq,ae as jr,ba as Xl,bb as $n,bc as kp,bd as kq,be as qr,ca as Yl,cb as ao,cc as lp,cd as lq,ce as rr,da as Zl,db as bo,dc as mp,dd as mq,de as sr,ea as _l,eb as co,ec as np,ed as nq,ee as tr,fa as $l,fb as eo,fc as op,fd as oq,fe as ur,ga as am,gb as fo,gc as pp,gd as pq,ge as vr,ha as bm,hb as go,hc as qp,hd as qq,he as wr,ia as cm,ib as ho,ic as rp,id as rq,ie as xr,ja as dm,jb as io,jc as sp,jd as sq,je as yr,ka as em,kb as jo,kc as tp,kd as tq,ke as zr,la as fm,lb as ko,lc as up,ld as uq,le as Ar,ma as gm,mb as lo,mc as vp,md as vq,me as Br,na as hm,nb as oo,nc as wp,nd as wq,ne as Cr,o as a,oa as im,ob as po,oc as xp,od as xq,oe as Dr,p as qk,pa as Zm,pb as qo,pc as yp,pd as yq,pe as Er,q as rk,qa as _m,qb as ro,qc as zp,qd as zq,qe as Fr,r as sk,ra as $m,rb as to,rc as Ap,rd as Aq,re as Gr,s as tk,sa as an,sb as uo,sc as Bp,sd as Bq,se as Hr,t as uk,ta as bn,tb as vo,tc as Cp,td as Cq,te as Ir,u as vk,ua as cn,ub as wo,uc as Dp,ud as Dq,ue as Jr,v as wk,va as dn,vb as yo,vc as Ep,vd as Eq,ve as Kr,w as xk,wa as en,wb as zo,wc as Fp,wd as Fq,we as Lr,x as yk,xa as fn,xb as Ao,xc as Gp,xd as Gq,xe as Mr,y as Dk,ya as gn,yb as Bo,yc as Hp,yd as Hq,ye as Nr,z as Ek,za as hn,zb as Co,zc as Ip,zd as Iq,ze as Or}from"./chunk-x4v79ska.js";import{Le as Qo,Me as Ro,Ne as So,Oe as To,Pe as Uo,Qe as Vo}from"./chunk-k5qwqnz6.js";import{Re as mo,Se as no}from"./chunk-2ver2s2y.js";import{Te as so}from"./chunk-9epygfjr.js";import{Ue as Ym}from"./chunk-xe592pva.js";import{Ve as Dn,We as En,Xe as Fn,Ye as xo}from"./chunk-qwbse23p.js";import{$e as Lk,Ze as Jk,_e as Kk,af as Mk,bf as Nk,cf as Ok,df as Pk,ef as Qk,ff as Rk,gf as Sk,hf as Tk,if as Uk,jf as Vk,kf as Wk,lf as Xk}from"./chunk-ym3r8ktq.js";import{mf as ml,nf as nl,of as ol,pf as pl,qf as ql,rf as rl,sf as sl,tf as tl,uf as ul,vf as vl,wf as wl,xf as xl}from"./chunk-wf3pcr37.js";import{yf as kl,zf as ll}from"./chunk-02hjbe0p.js";import{Af as Yk,Bf as Zk,Cf as _k,Df as $k,Ef as al,Ff as bl,Gf as cl,If as dl,Jf as el,Kf as fl,Lf as gl,Mf as hl,Nf as il,Qf as jl}from"./chunk-zgbwr604.js";import{Rf as Fm,Sf as Gm,Tf as Hm,Uf as Im,Vf as Lm,Wf as Xm}from"./chunk-qm2044zy.js";import{Xf as Jm,_f as Km}from"./chunk-ahb3te9r.js";import{Ag as Qm,Bg as Rm,Cg as Sm,Dg as Tm,Eg as Um,Fg as Vm,Gg as Wm,gg as jm,hg as km,ig as lm,jg as mm,kg as nm,lg as om,mg as pm,ng as qm,og as rm,pg as sm,qg as tm,rg as um,sg as vm,tg as wm,ug as xm,vg as ym,wg as Mm,xg as Nm,yg as Om,zg as Pm}from"./chunk-9393stc6.js";import{Hg as zm,Ig as Am}from"./chunk-dvvx1wny.js";import{Jg as ln,Kg as mn,Lg as nn,Mg as on,Ng as pn,Og as qn,Pg as rn,Qg as sn,Rg as tn,Sg as un,Tg as vn,Ug as wn}from"./chunk-xz3evxqp.js";import{Vg as ai,Wg as bi,Xg as ci,Yg as di,Zg as ei,_g as fi}from"./chunk-2dnh1g4b.js";import{$g as uj,ah as vj,bh as wj,fh as xj,gh as yj,hh as zj}from"./chunk-x5xee26w.js";import{ih as Fj,jh as Gj,kh as Hj,lh as Ij,mh as Jj,nh as Kj,oh as Lj,ph as Mj,qh as Nj,rh as Oj,sh as Pj}from"./chunk-b0wm1c6x.js";import{Ah as qj,Bh as rj,Ch as sj,Dh as tj,th as kj,uh as lj,vh as mj,wh as nj,xh as oj,zh as pj}from"./chunk-vd5xvsnv.js";import{Eh as fk,Gh as gk}from"./chunk-64djh88a.js";import{Mh as Dh,Nh as Eh,Oh as Fh,Ph as Gh,Qh as Hh,Rh as Ih,Sh as Jh,Th as Kh,Uh as Lh,Vh as Mh,Wh as Nh,Xh as Oh,Yh as Ph,Zh as Qh}from"./chunk-9368t9jm.js";import{$h as Rh,ai as Sh,bi as Th,ci as Uh}from"./chunk-5tefa8qb.js";import{hi as Vh}from"./chunk-mwh3ymwc.js";import{ii as Zg}from"./chunk-fqq5k9ve.js";import{ji as _g,ki as $g}from"./chunk-ya5m5vbn.js";import{li as ah,mi as bh,ni as ch,oi as dh,pi as eh,qi as fh}from"./chunk-y4nzmkea.js";import{ri as gh,si as hh,ti as ih,ui as jh,vi as kh}from"./chunk-7kw3grq5.js";import{Ai as ph,wi as lh,xi as mh,yi as nh,zi as oh}from"./chunk-c79nfdyj.js";import{Bi as qh,Ci as rh,Di as sh,Ei as th,Fi as uh,Gi as vh,Hi as wh}from"./chunk-ej8mv2k6.js";import{Ii as xh,Ji as yh,Ki as zh,Li as Ah,Mi as Bh,Ni as Ch}from"./chunk-cr8v8k53.js";import{Pi as Wg,Qi as Xg}from"./chunk-ecx1byp2.js";import{Ti as Yg}from"./chunk-cp8jfzx2.js";import"./chunk-xwxdwqn9.js";import{$i as He,Xi as De,Yi as Ee,Zi as Fe,_i as Ge,aj as Ie,bj as Je,cj as Ke,dj as Le,ej as Me,fj as Ne,gj as Oe,hj as Pe,ij as Qe}from"./chunk-fh7zr4gs.js";import{jj as ff,kj as gf,lj as hf,mj as jf,nj as kf,oj as lf,pj as mf,qj as nf,rj as of,sj as pf,tj as qf,uj as rf,vj as sf,wj as tf,xj as uf,yj as vf,zj as wf}from"./chunk-7bmqjfft.js";import{Gj as Te,Hj as Ue,Ij as Ve,Jj as We,Kj as Xe,Lj as Ye,Mj as Ze,Nj as _e,Oj as $e,Pj as af,Qj as bf,Rj as cf,Sj as df,Tj as ef}from"./chunk-t41aaehf.js";import{$j as Ef,Uj as xf,Vj as yf,Wj as zf,Xj as Af,Yj as Bf,Zj as Cf,_j as Df,ak as Ff,bk as Gf,ck as Hf,dk as If}from"./chunk-t0vb3t8f.js";import{Ak as nr,Bk as or,Ck as pr,xk as kr,yk as lr,zk as mr}from"./chunk-585q980n.js";import{Dk as zk,Ek as Ak,Fk as Bk,Gk as Ck,Hk as Bm,Ik as Cm,Jk as Dm,Kk as Em}from"./chunk-pty8ywaj.js";import"./chunk-09zjty4k.js";import"./chunk-r849z7dr.js";import{ul as Yb,vl as Zb,zl as _b}from"./chunk-vzz0tb32.js";import{$l as Fb,$m as $c,$n as pe,$o as Uf,$p as Ug,$q as hj,Am as sc,An as Ad,Ap as tg,Aq as Ii,Ar as jk,Bl as xa,Bm as tc,Bn as Bd,Bp as ug,Bq as Ji,Br as kk,Cl as ya,Cm as uc,Cn as Cd,Cp as vg,Cq as Ki,Cr as lk,Dl as za,Dm as vc,Dn as Dd,Dp as wg,Dq as Li,Dr as mk,El as Aa,Em as wc,En as Ed,Ep as xg,Eq as Mi,Er as nk,Fl as Ba,Fm as xc,Fn as Fd,Fp as yg,Fq as Ni,Fr as ok,Gl as Ca,Gm as yc,Gn as Gd,Gp as zg,Gq as Oi,Gr as pk,Hl as Da,Hm as zc,Hn as Hd,Hp as Ag,Hq as Pi,Il as Ea,Im as Ac,In as Id,Ip as Bg,Iq as Qi,Jl as Fa,Jm as Bc,Jn as Jd,Jp as Cg,Jq as Ri,Kl as Ga,Km as Cc,Kn as Kd,Ko as Kf,Kp as Dg,Kq as Si,Ll as Ha,Lm as Dc,Ln as Ld,Lp as Eg,Lq as Ti,Ml as Ia,Mm as Ec,Mn as Md,Mp as Fg,Mq as Ui,Nl as Ja,Nm as Oc,Nn as Nd,Np as Gg,Nq as Vi,Ol as Ka,Om as Pc,On as Od,Op as Hg,Oq as Wi,Pl as La,Pm as Qc,Pn as Pd,Pp as Ig,Pq as Xi,Ql as Ma,Qm as Rc,Qn as Qd,Qo as Lf,Qp as Jg,Qq as Yi,Rl as Na,Rm as Sc,Rn as fe,Rp as Kg,Rq as Zi,Sl as Oa,Sm as Tc,Sn as ge,So as Mf,Sp as Lg,Sq as _i,Tl as ib,Tm as Uc,Tn as he,Tp as Mg,Tq as $i,Ul as jb,Un as ie,Uo as Nf,Up as Ng,Uq as aj,Vl as kb,Vm as Vc,Vn as je,Vo as Of,Vp as Og,Vq as bj,Wl as lb,Wm as Wc,Wn as ke,Wo as Pf,Wp as Pg,Wq as cj,Xl as mb,Xm as Xc,Xn as le,Xo as Qf,Xp as Qg,Xq as dj,Yl as nb,Ym as Yc,Yn as me,Yo as Rf,Yp as Rg,Yq as ej,Zm as Zc,Zn as ne,Zo as Sf,Zp as Sg,Zq as fj,_m as _c,_n as oe,_o as Tf,_p as Tg,_q as gj,am as Gb,an as ad,ao as qe,ap as Vf,aq as Vg,ar as ij,bm as Hb,bn as bd,bo as re,bp as Wf,bq as Wh,br as jj,cm as Ib,cn as cd,co as se,cp as Xf,cq as Xh,cr as Aj,dm as Jb,dn as dd,dp as Yf,dq as Yh,dr as Bj,em as Nb,en as ed,ep as Zf,eq as Zh,er as Cj,fm as Ob,fn as fd,fp as _f,fq as _h,fr as Dj,gm as Pb,gn as gd,gp as $f,gq as $h,gr as Ej,hm as $b,hn as hd,hp as ag,hq as gi,hr as Qj,im as ac,in as id,io as we,ip as bg,iq as hi,ir as Rj,jm as bc,jn as jd,jo as xe,jp as cg,jq as ii,jr as Sj,km as cc,kn as kd,ko as ye,kp as dg,kq as ji,kr as Tj,lm as dc,ln as ld,lo as ze,lp as eg,lq as ki,lr as Uj,mm as ec,mn as md,mo as Ae,mp as fg,mq as li,mr as Vj,nm as fc,nn as nd,no as Be,np as gg,nq as mi,nr as Wj,om as gc,on as od,oo as Ce,op as hg,oq as ni,or as Xj,pm as hc,pn as pd,pp as ig,pq as oi,pr as Yj,qm as ic,qn as qd,qp as jg,qq as pi,qr as Zj,rm as jc,rn as rd,rp as kg,rq as qi,rr as _j,sm as kc,sn as sd,so as Re,sp as lg,sq as ri,sr as $j,tm as lc,tn as td,to as Se,tp as mg,tq as si,tr as ak,um as mc,un as ud,up as ng,uq as ti,ur as bk,vm as nc,vn as vd,vo as Jf,vp as og,vq as ui,vr as ck,wm as oc,wn as wd,wp as pg,wq as vi,wr as dk,xm as pc,xn as xd,xp as qg,xq as wi,xr as ek,ym as qc,yn as yd,yp as rg,yq as Gi,yr as hk,zm as rc,zn as zd,zp as sg,zq as Hi,zr as ik}from"./chunk-ptr7337q.js";import{$r as v,$s as oa,As as N,Bs as O,Cs as P,Ds as Q,Es as R,Fs as S,Gs as T,Hr as b,Hs as U,Ir as c,Is as V,Jr as d,Js as W,Kr as e,Ks as X,Lr as f,Ls as Y,Mr as g,Ms as Z,Nr as h,Ns as _,Or as i,Os as $,Pr as j,Ps as aa,Qr as k,Qs as ba,Rr as l,Rs as ca,Sr as m,Ss as da,Tr as n,Ts as ea,Ur as o,Us as fa,Vr as p,Vs as ia,Wr as q,Ws as ja,Xr as r,Xs as ka,Yr as s,Ys as la,Zr as t,Zs as ma,_r as u,_s as na,as as w,at as pa,bs as x,bt as qa,cs as y,ct as ra,ds as z,dt as sa,es as A,et as ta,fs as B,ft as ua,gs as C,gt as va,hs as D,ht as wa,is as E,js as F,ks as G,ls as H,ms as I,ns as J,os as K,ps as L,zs as M}from"./chunk-9e6pyjwz.js";import{it as ga,jt as ha}from"./chunk-z698hwht.js";import{kt as Kb,lt as Lb,mt as Mb}from"./chunk-70zb3560.js";import{nt as xi,ot as yi,pt as zi,qt as Ai,rt as Bi,st as Ci,tt as Di,ut as Ei,vt as Fi}from"./chunk-zsapb653.js";import{Nt as Fc,Ot as Gc,Pt as Hc,Qt as Ic,Rt as Jc,Tt as Kc,au as Lc,bu as Mc,cu as Nc}from"./chunk-g6xbvf0g.js";import{ju as te,lu as ue,ou as ve}from"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import{Au as Vb,vu as Qb,wu as Rb,xu as Sb,yu as Tb,zu as Ub}from"./chunk-ecbqmesm.js";import"./chunk-zpw4bszj.js";import{Fu as Wb,Gu as Xb}from"./chunk-dgrayagx.js";import{Ku as Rd,Lu as Sd,Mu as Td,Nu as Ud,Ou as Vd,Pu as Wd,Qu as Xd,Ru as Yd,Su as Zd,Tu as _d,Uu as $d,Vu as ae,Wu as be,Xu as ce,Yu as de,Zu as ee}from"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import{dv as ob,ev as pb,fv as qb,gv as rb,hv as sb,iv as tb,jv as ub,kv as vb,lv as wb,mv as xb,nv as yb,ov as zb,pv as Ab,qv as Bb,rv as Cb,sv as Db,tv as Eb}from"./chunk-8n0mjaf6.js";import{$v as gb,Bv as Ra,Gv as Sa,Hv as Ta,Nv as Ua,Ov as Va,Pv as Wa,Qv as Xa,Rv as Ya,Sv as Za,Tv as _a,Uv as $a,Vv as ab,Wv as bb,Xv as cb,Yv as db,Zv as eb,_v as fb,bw as hb,xv as Pa,yv as Qa}from"./chunk-5az2jb8y.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";export{Tk as writeNetlifyConfig,Nm as writeManifest,wl as writeImageManifest,dp as wrapComponentForHMR,Mr as withDefaults,ek as webComponentDirectiveHandler,Up as watermark,Wq as watchViews,Gl as watchMultiple,Hl as watchEffect,Fl as watch,Ae as warmImagePlaceholders,Ul as waitForStore,X as waitForLocale,Ro as virtualPathFor,Tj as videoDirective,G as validators,Qr as validated,qe as validateValueEnhanced,Xh as validateTemplate,zm as validateRouteRules,Zp as validateParams,re as validateFormEnhanced,Lq as validateFile,me as validateFields,le as validateField,Zh as validateDirective,Ld as validateCspDirectives,mk as validateConfig,_m as validateComponentScripts,xn as validateComponentProps,Vg as validateClientScript,Uh as v,wc as usesSignalsInScript,ub as usesReactiveRuntime,ki as userComponentFileExists,Ah as useVirtualList,Zd as useTitle,Tl as useStoreOrThrow,vp as useStore,Dk as useStorage,of as useSlots,Fk as useSessionStorage,Wb as useServerRuntimeConfig,Kf as useServerData,Wd as useSeoMeta,Xb as useRuntimeConfig,Vl as useRouteParams,Xl as useRouteParamOrThrow,Wl as useRouteParam,Zd as usePageTitle,ef as useOptimistic,tf as useModel,Zl as useMiddlewareValue,Yl as useMiddlewareState,Ek as useLocalStorage,Yo as useLoadingIndicator,Ud as useHead,Rh as useForm,qf as useAttrs,Nq as uploadFiles,Mq as uploadFile,Ql as updateInstance,cf as untrack,Ai as unregisterDirective,Rl as unmountInstance,Ec as unescapeHtml,Uo as typecheckStxFiles,ji as transpileTypeScript,zr as translate,Ba as transitionDirective,dc as transformAutoImports,rn as toUsers,qn as toUser,Dp as thumbnail,Eq as thumbHashToRGBA,Fq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,xf as templateCache,bd as syncRecordedResponse,ap as stxClientHelpers,fg as structuredDataDirective,Cr as stripLocalePrefix,wm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,bo as stringToStream,zd as strictCspPreset,Le as streamingSuspenseDirective,Pe as streamToResponse,Je as streamTemplateSimple,De as streamTemplate,yk as stopHmrServer,nn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Te as state,Pg as startsDocument,xo as startProductionServer,so as startInteractive,mn as startBroadcasting,Er as stampLocaleLayoutGroup,Ia as staggerDirective,Xp as srcsetUrls,Ja as springDirective,id as splitByPipe,sm as spaNavVaryHeaders,So as sourcePathFor,cq as smartBatchSign,mi as slotContentHasExpressions,aq as signUrl,hi as shouldTranspileTypeScript,vk as shouldReloadOnChange,fq as shouldRefreshSignature,wk as shouldIgnoreFile,sh as shouldCacheComponent,Hp as sharpen,Tr as shape,Sb as setStateDir,bm as setRouteParams,cm as setMiddlewareState,ze as setImagePlaceholder,hf as setGlobalProvide,b as setErrorLocale,yl as setCurrentInstance,Hj as setCachedVideoResult,wj as setCachedImageResult,qj as setCached,Wr as serveStxFile,Yr as serveMultipleStxFiles,qk as serveMarkdownFile,Io as serveFile,Zr as serveApp,Ho as serve,gp as serializeState,Pm as serializeSetCookie,Jp as sepia,Xd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Xj as scopeHTML,Wj as scopeCSS,ig as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Np as saturation,_p as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,_f as runPreProcessingMiddleware,$f as runPostProcessingMiddleware,Sm as runPageAction,Ze as runMountCallbacks,gb as runMiddleware,Ol as runHooks,sr as runDoctor,_e as runDestroyCallbacks,ng as runComposers,Op as rotate,Vh as rewriteImagesWithSiblings,cd as responseBindings,qi as resolveTemplatePath,ha as resolveStxTargets,ik as resolveStxDirectories,yr as resolveI18n,Bp as resize,Sf as resetUnscopedSignalWarnings,Cc as resetRejectedExpressionWarnings,jc as resetPlaceholders,Td as resetHead,fp as resetHMRHandler,o as resetErrorConfig,Or as required,Qf as reportDeferredLoopWarnings,nc as replacePlaceholders,Uq as renderView,Qj as renderVideoComponent,ac as renderVendorStyleTags,br as renderToString,cr as renderToStream,dr as renderToDOM,Dq as renderThumbhashToCanvas,pr as renderTemplateString,nr as renderTemplate,or as renderString,Ge as renderStreamingPage,ci as renderSlot,ih as renderSSRSuspense,nq as renderProtectedVideo,mq as renderProtectedImg,$p as renderMediaUpload,mr as renderMarkdownView,Dm as renderLayoutTypes,Aj as renderImgComponent,ml as renderImageComponent,$d as renderHtmlAttrs,_d as renderHead,Xq as renderEmail,oi as renderComponentWithSlot,ae as renderBodyAttrs,qp as render,Bd as relaxedCspPreset,ke as registerValidationRule,Ne as registerStreamingDirectives,xp as registerStoresClient,$l as registerStore,gg as registerSeoDirectives,_a as registerMiddleware,rc as registerFilters,qc as registerFilter,d as registerErrorMessages,pe as registerEnhancedValidationRule,xi as registerDirective,Kd as registerCspDirectives,An as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,Cl as ref,ko as redirect,Zc as recordResponseStatus,_c as recordResponseHeader,Vb as rebaseOntoStateDir,$c as readResponseStatus,ad as readResponseHeaders,ok as readMarkdownFile,yf as readFileCached,Dl as reactive,Sp as quality,kq as pruneSignatureCache,tj as pruneCache,ff as provide,lr as protectCodeBlocks,Nr as prop,qg as processVueTemplate,yh as processVirtualListDirectives,Ch as processVirtualGridDirectives,Pj as processVideo,ne as processValidateDirective,ea as processTranslateDirective,ch as processTransitionDirectives,fh as processTransitionAttributes,de as processTitleDirective,Rc as processTemplateBindings,_g as processTeleportDirectives,gh as processSuspenseDirectives,bg as processStructuredData,He as processStreamDirectives,dd as processStatusDirective,Ph as processStaticDirectives,Yf as processStackReplacements,Xf as processStackPushDirectives,di as processSlots,um as processShell,Ce as processServerBindings,cg as processSeoDirective,Oe as processSectionDirectives,Jc as processScopedStyles,Pc as processReactiveBindings,oq as processProtectedMedia,Ih as processPartialHydrationDirectives,Ug as processOnceDirective,Zf as processMiddleware,ag as processMetaDirectives,ee as processMetaDirective,pk as processMarkdownFileDirectives,vi as processMarkdownDirectives,Rf as processLoops,qh as processKeepAliveDirectives,Tg as processJsonDirective,Bh as processInfiniteListDirectives,Wf as processIncludes,Cj as processImgComponents,ol as processImageComponents,bl as processImage,ce as processHeadDirective,ge as processForms,ie as processFormInputDirectives,Ac as processExpressions,Ib as processEventDirectives,je as processErrorDirective,rg as processDynamicComponents,Wh as processDirectives,Fi as processDirectiveAttributes,Zg as processDeferDirectives,Pd as processCustomDirectives,Hd as processCspDirectives,Ur as processComponentProps,ic as processClientScript,he as processBasicFormDirectives,lh as processAsyncDirectives,Qd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ve as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Xo as preloadIslandHandlers,Be as preloadIconCollection,hn as poolStrings,gk as pluginManager,xe as placeholdersWarmed,bh as performLeave,ah as performEnter,$e as pendingLifecycleCounts,df as peek,Tf as partialsCache,Rj as parseVideoDirectiveOptions,zp as parseUrl,Gq as parseThumbhashString,od as parseSwitchBlock,ai as parseSlots,bi as parseSlotElement,td as parseScriptDeclarations,ck as parseSFCComponent,pq as parseProtectedArgs,Pf as parseLoopBinding,Bj as parseImgComponent,Ti as parseImageUrl,nl as parseImageComponent,Qm as parseFormBody,qd as parseExpressionWithFilters,Bn as parseDefaults,ho as parseCookies,lm as parseContainerSelector,ld as parseConditionalBlock,rd as parseArguments,Ma as parseAnimationShorthand,Pr as optional,jn as optimizeTemplate,tl as optimizeImage,ul as optimizeDirectory,Rr as oneOf,Uf as onceStore,Ll as onUpdated,Oc as onUpdate,Nl as onUnmounted,gm as onServer,Jl as onMounted,Xe as onMount,Oh as onHydrated,mf as onErrorCaptured,Ye as onDestroy,wh as onDeactivated,fm as onClient,Kl as onBeforeUpdate,Ml as onBeforeUnmount,Il as onBeforeMount,vh as onActivated,zq as observeElement,lo as notFound,wg as normalizeCriticalHeadOrder,lf as nextTick,En as negotiateEncoding,Ua as navigateTo,Pl as mountInstance,Ea as motionDirective,Ad as moderateCspPreset,gn as minifyHtml,eg as metaDirective,Hg as metaDedupKey,Ap as mergeParams,Jg as mergeHtmlAttrs,Vd as mergeHeadConfigs,Gc as mergeCssConfig,Ed as mergeCspDirectives,Ra as matchRoute,wi as markdownDirectiveHandler,nk as markdownCache,ga as looksLikeGlob,Br as localizePath,U as loadTranslationLazy,_ as loadTranslation,jk as loadStxConfig,db as loadMiddlewareFromDirectory,Om as loadManifest,vq as loadElement,on as loadChannels,Ir as lintStxStrict,xq as lazyLoadAll,wq as lazyLoad,Ha as keyframeDirective,$q as jsxs,ar as jsxDEV,_q as jsx,jo as jsonResponse,Me as islandDirective,l as isTest,xm as isSpaNavigation,qm as isSpaNavRequest,dq as isSignatureValid,af as isSignal,$k as isSharpAvailable,Wn as isServerEnvironment,dm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,sq as isNativeLazySupported,kr as isMarkdownPath,Q as isLoading,R as isLoaded,gi as isJavaScriptScript,tq as isIntersectionObserverSupported,hl as isImageFile,al as isImageBackendAvailable,aa as isICUFormat,Nh as isHydrated,li as isHydrateTrigger,Xc as isHttpStatus,Vn as isEdgeEnvironment,Jr as isDirectiveKind,k as isDevelopment,bf as isDerived,uk as isCssOnlyChange,Dn as isCompressible,em as isClient,nh as isAsyncComponent,Rm as isActionableMethod,Kp as invert,Af as invalidateFileCacheByDir,zf as invalidateFileCache,zc as interpolateScriptsInTemplate,xc as interpolateScriptExpressions,yc as interpolateScriptAttributes,x as inlineError,xr as injectThemeBootstrap,dg as injectSeoTags,ur as injectSeo,Jf as injectRouterScript,tk as injectHotReload,kb as injectHeatmap,Nc as injectCss,Fd as injectCspMetaTag,Rg as injectConfigHeadTags,vg as injectColorModeBootScript,Lg as injectCloakStyle,Cg as injectBuildId,cc as injectBrowserCoreAutoImports,Tc as injectAnalytics,gf as inject,_l as initStoreRegistry,Wk as initNetlify,Zo as initLoadingIndicator,uq as initLazyLoading,ro as initFile,Cq as initBlurUp,Iq as initAllBlurUp,Ej as imgDirective,rl as imageDirective,Vm as hydrateTemplateStream,Um as hydrateTemplate,Wo as hydrateIslands,Kh as hydrateIsland,Wm as hydrateFragment,Lh as hydrateByStrategy,Mh as hydrateAll,np as hydrate,Go as htmlResponse,Ng as hoistLeadingHeadTags,xg as hoistColorModeBootScript,lb as heatmapDirective,mj as hashString,If as hashFilePath,kj as hashFile,lj as hashBuffer,pg as hasVueTemplateSyntax,Of as hasVariables,sp as hasStore,oc as hasPlaceholders,Uk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Qg as hasDocumentShell,_h as hasDirectives,ma as hasDOMSupport,kl as handleImageRequest,nf as handleError,hr as h,gl as groupVariantsByFormat,Ip as grayscale,zo as gitHash,an as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Pk as getTotalSize,eq as getTimeUntilExpiry,Wg as getStoreScript,tp as getStoreNames,rp as getStore,Ik as getStorageSize,Hk as getStorageKeys,ri as getSourceLineInfo,ii as getSharedTranspiler,Ef as getServeClientAsset,la as getScreenReaderOnlyStyle,Yj as getScopeAttribute,Se as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Yh as getPositionInfo,lc as getPlaceholderRegistry,jj as getPlaceholderCacheStats,Sd as getPageMeta,vd as getNonce,il as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,we as getImagePlaceholder,cl as getImageMetadata,te as getImageDelivery,mp as getHydrationRuntime,am as getHydratedStoreState,xk as getHmrServer,Rd as getHead,ep as getHMRHandler,Xi as getFormatExtension,oj as getFileMtime,fl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,zi as getDirectives,yi as getDirective,zl as getCurrentInstance,Kc as getCssServeAsset,Dd as getCspPreset,Md as getCspHeaderName,ui as getComponentCacheStats,Gj as getCachedVideoResult,iq as getCachedSignature,Cf as getCachedSignalsRuntime,Df as getCachedRouterScript,hj as getCachedPlaceholder,vj as getCachedImageResult,pj as getCached,sj as getCacheStats,Ag as getBuildId,ln as getBroadcastServer,Wi as getBestVariant,sc as getAllFilters,Ki as generateWidthSrcset,zh as generateVirtualListCSS,Pq as generateVideoPreview,se as generateValidationScript,Qq as generateUploadRuntime,bn as generateTreeShakenBundle,eh as generateTransitionRuntime,dh as generateTransitionCSS,Kj as generateThumbnails,aj as generateThumbhashPlaceholder,Nn as generateTemplatesDocs,kh as generateSuspenseRuntime,jh as generateSuspenseCSS,hp as generateStateScript,Ui as generateSrcsetData,zj as generateSrcset,dl as generateSrcSet,Lj as generateSpriteSheet,Yq as generateSpaShell,Vi as generateSourceTags,Qi as generateSizesFromBreakpoints,Pi as generateSizesAttribute,el as generateSizes,hg as generateSitemapIndex,vr as generateSitemap,rq as generateSimpleMediaPicker,lq as generateSignatureRuntime,wf as generateSignalsRuntimeDev,vf as generateSignalsRuntime,hc as generateServerDataBridge,Vj as generateScopeId,dk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,jg as generateRobotsTxt,wr as generateRobots,yj as generateResponsiveVariants,$j as generateReactiveWebComponentTS,_j as generateReactiveWebComponent,bk as generateReactiveRuntime,ak as generateReactiveMixin,Jj as generatePoster,gj as generatePlaceholderStyle,fj as generatePlaceholderCSS,$i as generatePlaceholder,Jh as generatePartialHydrationCSS,ud as generateNonce,Qk as generateNetlifyToml,Sq as generateMinifiedMediaRuntime,Rq as generateMediaRuntime,qq as generateMediaManagerEmbed,Mm as generateManifest,$o as generateLoadingIndicatorHtml,Bq as generateLazyLoadRuntime,Em as generateLayoutTypes,cj as generateLQIP,uh as generateKeepAliveRuntime,th as generateKeepAliveCSS,Qh as generateIslandManifest,Oq as generateImagePreview,vl as generateImageManifest,lp as generateHydrationScript,Qe as generateHydrationRuntime,op as generateHydrationCSS,Dh as generateHydrationBootstrap,sk as generateHotReloadScript,jb as generateHeatmapScript,cp as generateHMRClientScript,Mj as generateHLSManifest,ip as generateEventBindings,Oi as generateDprSrcsetWithVariableQuality,Ni as generateDprSrcset,Og as generateDocumentShell,Sn as generateDocs,On as generateDirectivesDocs,Ei as generateDirectiveRuntime,kg as generateDefaultRobotsTxt,Nj as generateDASHManifest,Mc as generateCss,yd as generateCspMetaTag,xd as generateCspHeader,sf as generateCompositionRuntime,Mn as generateComponentsDocs,Eh as generateComponentManifest,Kn as generateComponentDoc,ej as generateColorPlaceholder,ug as generateColorModeBootScript,Sl as generateClientRuntime,nj as generateCacheKey,fc as generateBrowserAutoImportDestructuring,Jq as generateBlurUpRuntime,Kq as generateBlurUpCSS,Qc as generateBindingsRuntime,Li as generateAutoWidthSrcset,ec as generateAutoImportDestructuring,ph as generateAsyncComponentRuntime,oh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Sc as generateAnalyticsScript,Vo as formatTypecheckDiagnostics,Po as formatTypeErrors,oo as formatStxContent,Ok as formatSize,Ta as formatRoutes,po as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,tr as formatDoctorReport,Pn as formatDocsAsMarkdown,Rn as formatDocsAsJson,Qn as formatDocsAsHtml,Rp as format,fn as foldConstants,Qp as flipVertical,Pp as flipHorizontal,Fm as fingerprint,To as findRuntimeTypeDeclarations,rr as findPantryPackage,kd as findMatchingEndTag,gd as findMatchingDelimiter,Kb as findInterpolationEnd,md as findIfBlocks,pd as findExpressions,Sa as findErrorPage,Hc as findDuplicateScopedStyleRanges,nd as findDirectiveBlocks,cn as findDeadCode,cn as findDeadBranches,mm as findContainerRegion,Ln as findComponentFiles,Xr as findCommonDir,Nk as filterRequiredFiles,pi as fileExists,Lf as extractVariables,Km as extractTemplateExpressions,Ie as extractStreamBoundaries,jp as extractState,ei as extractSlotContent,Nf as extractScriptFromTemplate,Jm as extractScriptBlocks,mc as extractPlaceholders,jd as extractParenthesizedExpression,Yc as extractPageResponseStatus,hb as extractLayoutMetadata,dj as extractDominantColor,sd as extractDirectiveParams,$h as extractDirectiveNames,ym as extractContainerContent,In as extractComponentProps,Fh as extractComponentName,Jn as extractComponentDescription,Lc as extractClassNames,gc as extractBridgeData,Gh as extractBoundProps,hd as extractBalancedExpression,$b as extractAndStripCssImports,Zj as extractAndScopeStyles,Hb as extractAndProcessEvents,Bk as externalizeSharedAssets,Ck as externalizeRepeatedAssets,Ak as externalizeHtml,Dc as evaluateExpression,en as evaluateConstant,ed as evaluateAuthExpression,vc as escapeHtmlValue,uc as escapeHtml,C as errorRecovery,E as errorLogger,$g as ensureTeleportTargets,Sg as ensureDocumentShell,oe as enhancedValidationRules,Gn as enableDevTools,dn as eliminateDeadCode,Ve as effect,Yp as dprUrls,Tn as docsCommand,Yb as discoverServerApi,Cm as discoverLayoutNames,Aq as disconnectObserver,Hn as disableDevTools,F as devHelpers,tm as detectShell,Un as detectRuntime,Rk as detectProjectConfig,Yi as detectFormat,Zm as detectBuildMode,Ue as derived,Vk as deploy,lk as defineStxConfig,wp as defineStore,pf as defineSlots,Hr as defineSiteConfig,Lr as definePropsWithValidation,Kr as defineProps,fk as definePlugin,Yd as definePageMeta,Wa as defineMiddleware,Sh as defineForm,kf as defineExpose,jf as defineEmits,Bi as defineDirective,jr as defineCustomElement,wo as defineConfig,Ci as defineClientDirective,mh as defineAsyncComponent,yo as defineApiHandler,Tq as defaultMediaConfig,xl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,fe as defaultFormClasses,pc as defaultFilters,Od as defaultCspConfig,hk as defaultConfig,Vr as default,Fc as deepMergeThemes,Ic as dedupeScopedStyles,pm as decodeTitleEntities,bj as decodeThumbhash,Jd as cspNonceDirective,Id as cspDirective,Hq as crossfadeTransition,Cp as crop,xh as createVirtualList,Sj as createVideoDirective,fo as createVercelHandler,Mo as createTypeChecker,fa as createTranslateFilter,ao as createTextEncoderStream,ir as createStxApp,$n as createStreamingResponse,Ke as createStreamRenderer,up as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Bl as createScope,hh as createSSRSuspense,Re as createRouter,Am as createRouteRuleResolver,eb as createRouteLocation,Ko as createRoute,Cl as createRef,Dl as createReactive,rf as createProvideContext,Bo as createProject,vo as createProductionBuild,kc as createPlaceholder,kn as createOptimizedBuild,go as createNetlifyHandler,Jk as createNetlifyClient,fb as createMiddlewareContext,Jo as createMiddleware,yq as createLazyObserver,rh as createKeepAliveCache,Yn as createKVNamespace,Hh as createIslandRegistry,Dj as createImgDirective,sl as createImagePlugin,ll as createImageHandler,ql as createImageDirective,nb as createHeatmapAggregator,Mk as createFileManifest,Xn as createEnvAccessor,z as createEnhancedError,_n as createEdgeHandler,Zn as createEdgeCache,si as createDetailedErrorMessage,eo as createDenoHandler,Sk as createDefaultNetlifyConfig,Nd as createCspHeaders,io as createCookie,El as createComputed,Al as createComponentInstance,co as createCloudflareHandler,Ya as createClientCookieManager,Di as createBuiltinDirectives,ir as createApp,Ka as createAnimationTimeline,Fp as cover,Mf as convertToCommonJS,Mp as contrast,Ep as contain,y as consoleError,m as configureErrorHandling,kk as config,El as computed,Fn as compressResponse,mg as composerPattern,lg as composer,vm as composeShellWithPage,zn as componentDirective,ni as componentClientSignalNames,Lm as compileTemplate,a as collectRepeatedFlag,Lk as collectDeployFiles,Mg as cloakStyleFragment,Ij as clearVideoCache,N as clearTranslationCache,Xg as clearStoreCache,Gk as clearStorage,jq as clearSignatureCache,uf as clearServerData,ij as clearPlaceholderCache,Vf as clearOnceStore,wd as clearNonce,bb as clearMiddleware,ye as clearImagePlaceholders,ue as clearImageDeliveryCatalog,pl as clearImageCache,e as clearErrorMessages,Ff as clearDevCaches,tc as clearCustomFilters,og as clearComposers,Yg as clearComposableCache,ti as clearComponentCache,rj as clearCache,Db as clearBlankCache,_o as cleanupLoadingIndicator,jm as classifyScript,km as classifyAllScripts,No as checkTemplateFile,Oo as checkTemplate,Gf as checkCache,gq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,un as channel,no as captureScreenshots,mo as captureScreenshot,Z as cancelPendingLoads,Kk as calculateSha1,Mi as calculateOptimalWidths,Hf as cacheTemplate,Uj as buildWebComponents,Qo as buildVirtualSource,Vq as buildViews,yp as buildUrl,Ee as buildSuspenseResolveScript,Gr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Gm as buildRuntimeAsset,Hm as buildRouterAsset,Fr as buildLangPickerScript,Si as buildImageUrl,Dg as buildIdFragment,Ig as buildHtmlAttrs,Xm as buildForProduction,Cn as buildComponentLibrary,hq as buildAuthParams,Ym as buildApp,Dr as buildAlternateLinks,uo as build,sn as broadcastPrivate,tn as broadcastPresence,pn as broadcast,Lp as brightness,Mb as bracketDepths,Gp as blur,Eb as blankInertHtmlRegions,bq as batchSignUrls,We as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Tp as auto,ja as attributeValue,Im as assetTags,Fb as asInvocableStatement,Sr as arrayOf,Ar as applyTranslations,xj as applyTransformations,fi as applySlots,yn as applyPropDefaults,Wp as applyPreset,Kg as applyHtmlAttrs,be as applyHead,Bc as applyFilters,rm as appendVary,Cd as apiCspPreset,Da as animationGroupDirective,Oj as analyzeVideo,$m as analyzeUsage,hm as analyzeTemplate,im as analyzeProject,$m as analyzeDirectiveUsage,Uc as analyticsDirective,Eo as addStore,Do as addPage,Gd as addNonceToInlineContent,Fo as addLayout,Co as addComponent,Tm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Bf as __setSignalsGeneratorsForTest,Bg as __setBuildIdForTest,Fj as VideoProcessorCache,Th as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,fd as Tokenizer,Lo as TemplateTypeChecker,qo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,er as Show,Fe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,nm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Vc as RESPONSE_STATUS_KEY,Wc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,to as ProductionBuild,gr as Portal,Ao as PROJECT_TEMPLATES,Vp as PRESETS,sb as NON_CLIENT_PRIMITIVES,pp as MemorySessionStore,Ji as MIME_TYPES,Gi as MEDIA_DEFAULT_WIDTHS,Ii as MEDIA_DEFAULT_FORMATS,Bm as LAYOUT_TYPES_FILE,uj as ImageProcessorCache,jl as ImageProcessingError,kp as HydrationRuntime,rk as HotReloadServer,mb as HeatmapAggregator,Gg as HTML_CLASS_MARKER,Fg as HTML_ATTRS_MARKER,Zq as Fragment,fr as For,om as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,zk as EXTERNALIZED_ASSET_DIR,Xk as DeployError,Yk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,_k as DEFAULT_QUALITY,Zi as DEFAULT_PLACEHOLDER_OPTIONS,Zk as DEFAULT_FORMATS,Hi as DEFAULT_DPR_VALUES,bp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Ri as COMMON_SIZES,sg as COLOR_MODE_BOOT_MARKER,tg as COLOR_MODE_BOOT_GLOBAL,Eg as CLOAK_STYLE,wn as BroadcastServer,vn as Broadcast,yg as BUILD_ID_META,zg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,_i as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,qr as $path};
|
|
2
|
+
import{$ as Vl,$a as Zn,$b as ip,$c as iq,$d as ir,A as Fk,Aa as jn,Ab as Do,Ac as Jp,Ad as Jq,Ae as Pr,B as Gk,Ba as kn,Bb as Eo,Bc as Kp,Bd as Kq,Be as Qr,C as Hk,Ca as xn,Cb as Fo,Cc as Lp,Cd as Lq,Ce as Rr,D as Ik,Da as yn,Db as Go,Dc as Mp,Dd as Mq,De as Sr,E as yl,Ea as zn,Eb as Ho,Ec as Np,Ed as Nq,Ee as Tr,F as zl,Fa as An,Fb as Io,Fc as Op,Fd as Oq,Fe as Ur,G as Al,Ga as Bn,Gb as Jo,Gc as Pp,Gd as Pq,Ge as Vr,H as Bl,Ha as Cn,Hb as Ko,Hc as Qp,Hd as Qq,He as Wr,I as Cl,Ia as Gn,Ib as Lo,Ic as Rp,Id as Rq,Ie as Xr,J as Dl,Ja as Hn,Jb as Mo,Jc as Sp,Jd as Sq,Je as Yr,K as El,Ka as In,Kb as No,Kc as Tp,Kd as Tq,Ke as Zr,L as Fl,La as Jn,Lb as Oo,Lc as Up,Ld as Uq,M as Gl,Ma as Kn,Mb as Po,Mc as Vp,Md as Vq,N as Hl,Na as Ln,Nb as Wo,Nc as Wp,Nd as Wq,O as Il,Oa as Mn,Ob as Xo,Oc as Xp,Od as Xq,P as Jl,Pa as Nn,Pb as Yo,Pc as Yp,Pd as Yq,Q as Kl,Qa as On,Qb as Zo,Qc as Zp,Qd as Zq,R as Ll,Ra as Pn,Rb as _o,Rc as _p,Rd as _q,S as Ml,Sa as Qn,Sb as $o,Sc as $p,Sd as $q,T as Nl,Ta as Rn,Tb as ap,Tc as aq,Td as ar,U as Ol,Ua as Sn,Ub as bp,Uc as bq,Ud as br,V as Pl,Va as Tn,Vb as cp,Vc as cq,Vd as cr,W as Ql,Wa as Un,Wb as dp,Wc as dq,Wd as dr,X as Rl,Xa as Vn,Xb as ep,Xc as eq,Xd as er,Y as Sl,Ya as Wn,Yb as fp,Yc as fq,Yd as fr,Z as Tl,Za as Xn,Zb as gp,Zc as gq,Zd as gr,_ as Ul,_a as Yn,_b as hp,_c as hq,_d as hr,aa as Wl,ab as _n,ac as jp,ad as jq,ae as jr,ba as Xl,bb as $n,bc as kp,bd as kq,be as qr,ca as Yl,cb as ao,cc as lp,cd as lq,ce as rr,da as Zl,db as bo,dc as mp,dd as mq,de as sr,ea as _l,eb as co,ec as np,ed as nq,ee as tr,fa as $l,fb as eo,fc as op,fd as oq,fe as ur,ga as am,gb as fo,gc as pp,gd as pq,ge as vr,ha as bm,hb as go,hc as qp,hd as qq,he as wr,ia as cm,ib as ho,ic as rp,id as rq,ie as xr,ja as dm,jb as io,jc as sp,jd as sq,je as yr,ka as em,kb as jo,kc as tp,kd as tq,ke as zr,la as fm,lb as ko,lc as up,ld as uq,le as Ar,ma as gm,mb as lo,mc as vp,md as vq,me as Br,na as hm,nb as oo,nc as wp,nd as wq,ne as Cr,o as a,oa as im,ob as po,oc as xp,od as xq,oe as Dr,p as qk,pa as Zm,pb as qo,pc as yp,pd as yq,pe as Er,q as rk,qa as _m,qb as ro,qc as zp,qd as zq,qe as Fr,r as sk,ra as $m,rb as to,rc as Ap,rd as Aq,re as Gr,s as tk,sa as an,sb as uo,sc as Bp,sd as Bq,se as Hr,t as uk,ta as bn,tb as vo,tc as Cp,td as Cq,te as Ir,u as vk,ua as cn,ub as wo,uc as Dp,ud as Dq,ue as Jr,v as wk,va as dn,vb as yo,vc as Ep,vd as Eq,ve as Kr,w as xk,wa as en,wb as zo,wc as Fp,wd as Fq,we as Lr,x as yk,xa as fn,xb as Ao,xc as Gp,xd as Gq,xe as Mr,y as Dk,ya as gn,yb as Bo,yc as Hp,yd as Hq,ye as Nr,z as Ek,za as hn,zb as Co,zc as Ip,zd as Iq,ze as Or}from"./chunk-wf1a28ec.js";import{Le as Qo,Me as Ro,Ne as So,Oe as To,Pe as Uo,Qe as Vo}from"./chunk-qht7be1x.js";import{Re as mo,Se as no}from"./chunk-2ver2s2y.js";import{Te as so}from"./chunk-p35gk1kr.js";import{Ue as Ym}from"./chunk-crmy5yhk.js";import{Ve as Dn,We as En,Xe as Fn,Ye as xo}from"./chunk-5eqc3f0f.js";import{$e as Lk,Ze as Jk,_e as Kk,af as Mk,bf as Nk,cf as Ok,df as Pk,ef as Qk,ff as Rk,gf as Sk,hf as Tk,if as Uk,jf as Vk,kf as Wk,lf as Xk}from"./chunk-ym3r8ktq.js";import{mf as ml,nf as nl,of as ol,pf as pl,qf as ql,rf as rl,sf as sl,tf as tl,uf as ul,vf as vl,wf as wl,xf as xl}from"./chunk-wf3pcr37.js";import{yf as kl,zf as ll}from"./chunk-02hjbe0p.js";import{Af as Yk,Bf as Zk,Cf as _k,Df as $k,Ef as al,Ff as bl,Gf as cl,If as dl,Jf as el,Kf as fl,Lf as gl,Mf as hl,Nf as il,Qf as jl}from"./chunk-zgbwr604.js";import{Rf as Fm,Sf as Gm,Tf as Hm,Uf as Im,Vf as Lm,Wf as Xm}from"./chunk-9jatnvx3.js";import{Xf as Jm,_f as Km}from"./chunk-4p05bgqf.js";import{Ag as Qm,Bg as Rm,Cg as Sm,Dg as Tm,Eg as Um,Fg as Vm,Gg as Wm,gg as jm,hg as km,ig as lm,jg as mm,kg as nm,lg as om,mg as pm,ng as qm,og as rm,pg as sm,qg as tm,rg as um,sg as vm,tg as wm,ug as xm,vg as ym,wg as Mm,xg as Nm,yg as Om,zg as Pm}from"./chunk-fm8w5wd7.js";import{Hg as zm,Ig as Am}from"./chunk-dvvx1wny.js";import{Jg as ln,Kg as mn,Lg as nn,Mg as on,Ng as pn,Og as qn,Pg as rn,Qg as sn,Rg as tn,Sg as un,Tg as vn,Ug as wn}from"./chunk-xz3evxqp.js";import{Vg as ai,Wg as bi,Xg as ci,Yg as di,Zg as ei,_g as fi}from"./chunk-vxt8234h.js";import{$g as uj,ah as vj,bh as wj,fh as xj,gh as yj,hh as zj}from"./chunk-x5xee26w.js";import{ih as Fj,jh as Gj,kh as Hj,lh as Ij,mh as Jj,nh as Kj,oh as Lj,ph as Mj,qh as Nj,rh as Oj,sh as Pj}from"./chunk-b0wm1c6x.js";import{Ah as qj,Bh as rj,Ch as sj,Dh as tj,th as kj,uh as lj,vh as mj,wh as nj,xh as oj,zh as pj}from"./chunk-vd5xvsnv.js";import{Eh as fk,Gh as gk}from"./chunk-64djh88a.js";import{Mh as Dh,Nh as Eh,Oh as Fh,Ph as Gh,Qh as Hh,Rh as Ih,Sh as Jh,Th as Kh,Uh as Lh,Vh as Mh,Wh as Nh,Xh as Oh,Yh as Ph,Zh as Qh}from"./chunk-9368t9jm.js";import{$h as Rh,ai as Sh,bi as Th,ci as Uh}from"./chunk-5tefa8qb.js";import{hi as Vh}from"./chunk-mwh3ymwc.js";import{ii as Zg}from"./chunk-fqq5k9ve.js";import{ji as _g,ki as $g}from"./chunk-ya5m5vbn.js";import{li as ah,mi as bh,ni as ch,oi as dh,pi as eh,qi as fh}from"./chunk-y4nzmkea.js";import{ri as gh,si as hh,ti as ih,ui as jh,vi as kh}from"./chunk-7kw3grq5.js";import{Ai as ph,wi as lh,xi as mh,yi as nh,zi as oh}from"./chunk-c79nfdyj.js";import{Bi as qh,Ci as rh,Di as sh,Ei as th,Fi as uh,Gi as vh,Hi as wh}from"./chunk-ej8mv2k6.js";import{Ii as xh,Ji as yh,Ki as zh,Li as Ah,Mi as Bh,Ni as Ch}from"./chunk-cr8v8k53.js";import{Pi as Wg,Qi as Xg}from"./chunk-x95v38pt.js";import{Ti as Yg}from"./chunk-q1tc5kxy.js";import"./chunk-xwxdwqn9.js";import{$i as He,Xi as De,Yi as Ee,Zi as Fe,_i as Ge,aj as Ie,bj as Je,cj as Ke,dj as Le,ej as Me,fj as Ne,gj as Oe,hj as Pe,ij as Qe}from"./chunk-qtm2zgjj.js";import{jj as ff,kj as gf,lj as hf,mj as jf,nj as kf,oj as lf,pj as mf,qj as nf,rj as of,sj as pf,tj as qf,uj as rf,vj as sf,wj as tf,xj as uf,yj as vf,zj as wf}from"./chunk-7bmqjfft.js";import{Gj as Te,Hj as Ue,Ij as Ve,Jj as We,Kj as Xe,Lj as Ye,Mj as Ze,Nj as _e,Oj as $e,Pj as af,Qj as bf,Rj as cf,Sj as df,Tj as ef}from"./chunk-t41aaehf.js";import{$j as Ef,Uj as xf,Vj as yf,Wj as zf,Xj as Af,Yj as Bf,Zj as Cf,_j as Df,ak as Ff,bk as Gf,ck as Hf,dk as If}from"./chunk-g5k4ceg8.js";import{Ak as nr,Bk as or,Ck as pr,xk as kr,yk as lr,zk as mr}from"./chunk-9ah9f27h.js";import{Dk as zk,Ek as Ak,Fk as Bk,Gk as Ck,Hk as Bm,Ik as Cm,Jk as Dm,Kk as Em}from"./chunk-y9d560c6.js";import"./chunk-09zjty4k.js";import"./chunk-zg3tz5g3.js";import{ul as Yb,vl as Zb,zl as _b}from"./chunk-m64wwy1j.js";import{$l as Fb,$m as $c,$n as pe,$o as Uf,$p as Ug,$q as hj,Am as sc,An as Ad,Ap as tg,Aq as Ii,Ar as jk,Bl as xa,Bm as tc,Bn as Bd,Bp as ug,Bq as Ji,Br as kk,Cl as ya,Cm as uc,Cn as Cd,Cp as vg,Cq as Ki,Cr as lk,Dl as za,Dm as vc,Dn as Dd,Dp as wg,Dq as Li,Dr as mk,El as Aa,Em as wc,En as Ed,Ep as xg,Eq as Mi,Er as nk,Fl as Ba,Fm as xc,Fn as Fd,Fp as yg,Fq as Ni,Fr as ok,Gl as Ca,Gm as yc,Gn as Gd,Gp as zg,Gq as Oi,Gr as pk,Hl as Da,Hm as zc,Hn as Hd,Hp as Ag,Hq as Pi,Il as Ea,Im as Ac,In as Id,Ip as Bg,Iq as Qi,Jl as Fa,Jm as Bc,Jn as Jd,Jp as Cg,Jq as Ri,Kl as Ga,Km as Cc,Kn as Kd,Ko as Kf,Kp as Dg,Kq as Si,Ll as Ha,Lm as Dc,Ln as Ld,Lp as Eg,Lq as Ti,Ml as Ia,Mm as Ec,Mn as Md,Mp as Fg,Mq as Ui,Nl as Ja,Nm as Oc,Nn as Nd,Np as Gg,Nq as Vi,Ol as Ka,Om as Pc,On as Od,Op as Hg,Oq as Wi,Pl as La,Pm as Qc,Pn as Pd,Pp as Ig,Pq as Xi,Ql as Ma,Qm as Rc,Qn as Qd,Qo as Lf,Qp as Jg,Qq as Yi,Rl as Na,Rm as Sc,Rn as fe,Rp as Kg,Rq as Zi,Sl as Oa,Sm as Tc,Sn as ge,So as Mf,Sp as Lg,Sq as _i,Tl as ib,Tm as Uc,Tn as he,Tp as Mg,Tq as $i,Ul as jb,Un as ie,Uo as Nf,Up as Ng,Uq as aj,Vl as kb,Vm as Vc,Vn as je,Vo as Of,Vp as Og,Vq as bj,Wl as lb,Wm as Wc,Wn as ke,Wo as Pf,Wp as Pg,Wq as cj,Xl as mb,Xm as Xc,Xn as le,Xo as Qf,Xp as Qg,Xq as dj,Yl as nb,Ym as Yc,Yn as me,Yo as Rf,Yp as Rg,Yq as ej,Zm as Zc,Zn as ne,Zo as Sf,Zp as Sg,Zq as fj,_m as _c,_n as oe,_o as Tf,_p as Tg,_q as gj,am as Gb,an as ad,ao as qe,ap as Vf,aq as Vg,ar as ij,bm as Hb,bn as bd,bo as re,bp as Wf,bq as Wh,br as jj,cm as Ib,cn as cd,co as se,cp as Xf,cq as Xh,cr as Aj,dm as Jb,dn as dd,dp as Yf,dq as Yh,dr as Bj,em as Nb,en as ed,ep as Zf,eq as Zh,er as Cj,fm as Ob,fn as fd,fp as _f,fq as _h,fr as Dj,gm as Pb,gn as gd,gp as $f,gq as $h,gr as Ej,hm as $b,hn as hd,hp as ag,hq as gi,hr as Qj,im as ac,in as id,io as we,ip as bg,iq as hi,ir as Rj,jm as bc,jn as jd,jo as xe,jp as cg,jq as ii,jr as Sj,km as cc,kn as kd,ko as ye,kp as dg,kq as ji,kr as Tj,lm as dc,ln as ld,lo as ze,lp as eg,lq as ki,lr as Uj,mm as ec,mn as md,mo as Ae,mp as fg,mq as li,mr as Vj,nm as fc,nn as nd,no as Be,np as gg,nq as mi,nr as Wj,om as gc,on as od,oo as Ce,op as hg,oq as ni,or as Xj,pm as hc,pn as pd,pp as ig,pq as oi,pr as Yj,qm as ic,qn as qd,qp as jg,qq as pi,qr as Zj,rm as jc,rn as rd,rp as kg,rq as qi,rr as _j,sm as kc,sn as sd,so as Re,sp as lg,sq as ri,sr as $j,tm as lc,tn as td,to as Se,tp as mg,tq as si,tr as ak,um as mc,un as ud,up as ng,uq as ti,ur as bk,vm as nc,vn as vd,vo as Jf,vp as og,vq as ui,vr as ck,wm as oc,wn as wd,wp as pg,wq as vi,wr as dk,xm as pc,xn as xd,xp as qg,xq as wi,xr as ek,ym as qc,yn as yd,yp as rg,yq as Gi,yr as hk,zm as rc,zn as zd,zp as sg,zq as Hi,zr as ik}from"./chunk-4fck9h56.js";import{$r as v,$s as oa,As as N,Bs as O,Cs as P,Ds as Q,Es as R,Fs as S,Gs as T,Hr as b,Hs as U,Ir as c,Is as V,Jr as d,Js as W,Kr as e,Ks as X,Lr as f,Ls as Y,Mr as g,Ms as Z,Nr as h,Ns as _,Or as i,Os as $,Pr as j,Ps as aa,Qr as k,Qs as ba,Rr as l,Rs as ca,Sr as m,Ss as da,Tr as n,Ts as ea,Ur as o,Us as fa,Vr as p,Vs as ia,Wr as q,Ws as ja,Xr as r,Xs as ka,Yr as s,Ys as la,Zr as t,Zs as ma,_r as u,_s as na,as as w,at as pa,bs as x,bt as qa,cs as y,ct as ra,ds as z,dt as sa,es as A,et as ta,fs as B,ft as ua,gs as C,gt as va,hs as D,ht as wa,is as E,js as F,ks as G,ls as H,ms as I,ns as J,os as K,ps as L,zs as M}from"./chunk-9e6pyjwz.js";import{it as ga,jt as ha}from"./chunk-z698hwht.js";import{kt as Kb,lt as Lb,mt as Mb}from"./chunk-70zb3560.js";import{nt as xi,ot as yi,pt as zi,qt as Ai,rt as Bi,st as Ci,tt as Di,ut as Ei,vt as Fi}from"./chunk-zsapb653.js";import{Nt as Fc,Ot as Gc,Pt as Hc,Qt as Ic,Rt as Jc,Tt as Kc,au as Lc,bu as Mc,cu as Nc}from"./chunk-rps8xwna.js";import{ju as te,lu as ue,ou as ve}from"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import{Au as Vb,vu as Qb,wu as Rb,xu as Sb,yu as Tb,zu as Ub}from"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import{Fu as Wb,Gu as Xb}from"./chunk-dgrayagx.js";import{Ku as Rd,Lu as Sd,Mu as Td,Nu as Ud,Ou as Vd,Pu as Wd,Qu as Xd,Ru as Yd,Su as Zd,Tu as _d,Uu as $d,Vu as ae,Wu as be,Xu as ce,Yu as de,Zu as ee}from"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import{dv as ob,ev as pb,fv as qb,gv as rb,hv as sb,iv as tb,jv as ub,kv as vb,lv as wb,mv as xb,nv as yb,ov as zb,pv as Ab,qv as Bb,rv as Cb,sv as Db,tv as Eb}from"./chunk-8n0mjaf6.js";import{$v as gb,Bv as Ra,Gv as Sa,Hv as Ta,Nv as Ua,Ov as Va,Pv as Wa,Qv as Xa,Rv as Ya,Sv as Za,Tv as _a,Uv as $a,Vv as ab,Wv as bb,Xv as cb,Yv as db,Zv as eb,_v as fb,bw as hb,xv as Pa,yv as Qa}from"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";export{Tk as writeNetlifyConfig,Nm as writeManifest,wl as writeImageManifest,dp as wrapComponentForHMR,Mr as withDefaults,ek as webComponentDirectiveHandler,Up as watermark,Wq as watchViews,Gl as watchMultiple,Hl as watchEffect,Fl as watch,Ae as warmImagePlaceholders,Ul as waitForStore,X as waitForLocale,Ro as virtualPathFor,Tj as videoDirective,G as validators,Qr as validated,qe as validateValueEnhanced,Xh as validateTemplate,zm as validateRouteRules,Zp as validateParams,re as validateFormEnhanced,Lq as validateFile,me as validateFields,le as validateField,Zh as validateDirective,Ld as validateCspDirectives,mk as validateConfig,_m as validateComponentScripts,xn as validateComponentProps,Vg as validateClientScript,Uh as v,wc as usesSignalsInScript,ub as usesReactiveRuntime,ki as userComponentFileExists,Ah as useVirtualList,Zd as useTitle,Tl as useStoreOrThrow,vp as useStore,Dk as useStorage,of as useSlots,Fk as useSessionStorage,Wb as useServerRuntimeConfig,Kf as useServerData,Wd as useSeoMeta,Xb as useRuntimeConfig,Vl as useRouteParams,Xl as useRouteParamOrThrow,Wl as useRouteParam,Zd as usePageTitle,ef as useOptimistic,tf as useModel,Zl as useMiddlewareValue,Yl as useMiddlewareState,Ek as useLocalStorage,Yo as useLoadingIndicator,Ud as useHead,Rh as useForm,qf as useAttrs,Nq as uploadFiles,Mq as uploadFile,Ql as updateInstance,cf as untrack,Ai as unregisterDirective,Rl as unmountInstance,Ec as unescapeHtml,Uo as typecheckStxFiles,ji as transpileTypeScript,zr as translate,Ba as transitionDirective,dc as transformAutoImports,rn as toUsers,qn as toUser,Dp as thumbnail,Eq as thumbHashToRGBA,Fq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,xf as templateCache,bd as syncRecordedResponse,ap as stxClientHelpers,fg as structuredDataDirective,Cr as stripLocalePrefix,wm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,bo as stringToStream,zd as strictCspPreset,Le as streamingSuspenseDirective,Pe as streamToResponse,Je as streamTemplateSimple,De as streamTemplate,yk as stopHmrServer,nn as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Te as state,Pg as startsDocument,xo as startProductionServer,so as startInteractive,mn as startBroadcasting,Er as stampLocaleLayoutGroup,Ia as staggerDirective,Xp as srcsetUrls,Ja as springDirective,id as splitByPipe,sm as spaNavVaryHeaders,So as sourcePathFor,cq as smartBatchSign,mi as slotContentHasExpressions,aq as signUrl,hi as shouldTranspileTypeScript,vk as shouldReloadOnChange,fq as shouldRefreshSignature,wk as shouldIgnoreFile,sh as shouldCacheComponent,Hp as sharpen,Tr as shape,Sb as setStateDir,bm as setRouteParams,cm as setMiddlewareState,ze as setImagePlaceholder,hf as setGlobalProvide,b as setErrorLocale,yl as setCurrentInstance,Hj as setCachedVideoResult,wj as setCachedImageResult,qj as setCached,Wr as serveStxFile,Yr as serveMultipleStxFiles,qk as serveMarkdownFile,Io as serveFile,Zr as serveApp,Ho as serve,gp as serializeState,Pm as serializeSetCookie,Jp as sepia,Xd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Xj as scopeHTML,Wj as scopeCSS,ig as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Np as saturation,_p as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,_f as runPreProcessingMiddleware,$f as runPostProcessingMiddleware,Sm as runPageAction,Ze as runMountCallbacks,gb as runMiddleware,Ol as runHooks,sr as runDoctor,_e as runDestroyCallbacks,ng as runComposers,Op as rotate,Vh as rewriteImagesWithSiblings,cd as responseBindings,qi as resolveTemplatePath,ha as resolveStxTargets,ik as resolveStxDirectories,yr as resolveI18n,Bp as resize,Sf as resetUnscopedSignalWarnings,Cc as resetRejectedExpressionWarnings,jc as resetPlaceholders,Td as resetHead,fp as resetHMRHandler,o as resetErrorConfig,Or as required,Qf as reportDeferredLoopWarnings,nc as replacePlaceholders,Uq as renderView,Qj as renderVideoComponent,ac as renderVendorStyleTags,br as renderToString,cr as renderToStream,dr as renderToDOM,Dq as renderThumbhashToCanvas,pr as renderTemplateString,nr as renderTemplate,or as renderString,Ge as renderStreamingPage,ci as renderSlot,ih as renderSSRSuspense,nq as renderProtectedVideo,mq as renderProtectedImg,$p as renderMediaUpload,mr as renderMarkdownView,Dm as renderLayoutTypes,Aj as renderImgComponent,ml as renderImageComponent,$d as renderHtmlAttrs,_d as renderHead,Xq as renderEmail,oi as renderComponentWithSlot,ae as renderBodyAttrs,qp as render,Bd as relaxedCspPreset,ke as registerValidationRule,Ne as registerStreamingDirectives,xp as registerStoresClient,$l as registerStore,gg as registerSeoDirectives,_a as registerMiddleware,rc as registerFilters,qc as registerFilter,d as registerErrorMessages,pe as registerEnhancedValidationRule,xi as registerDirective,Kd as registerCspDirectives,An as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,Cl as ref,ko as redirect,Zc as recordResponseStatus,_c as recordResponseHeader,Vb as rebaseOntoStateDir,$c as readResponseStatus,ad as readResponseHeaders,ok as readMarkdownFile,yf as readFileCached,Dl as reactive,Sp as quality,kq as pruneSignatureCache,tj as pruneCache,ff as provide,lr as protectCodeBlocks,Nr as prop,qg as processVueTemplate,yh as processVirtualListDirectives,Ch as processVirtualGridDirectives,Pj as processVideo,ne as processValidateDirective,ea as processTranslateDirective,ch as processTransitionDirectives,fh as processTransitionAttributes,de as processTitleDirective,Rc as processTemplateBindings,_g as processTeleportDirectives,gh as processSuspenseDirectives,bg as processStructuredData,He as processStreamDirectives,dd as processStatusDirective,Ph as processStaticDirectives,Yf as processStackReplacements,Xf as processStackPushDirectives,di as processSlots,um as processShell,Ce as processServerBindings,cg as processSeoDirective,Oe as processSectionDirectives,Jc as processScopedStyles,Pc as processReactiveBindings,oq as processProtectedMedia,Ih as processPartialHydrationDirectives,Ug as processOnceDirective,Zf as processMiddleware,ag as processMetaDirectives,ee as processMetaDirective,pk as processMarkdownFileDirectives,vi as processMarkdownDirectives,Rf as processLoops,qh as processKeepAliveDirectives,Tg as processJsonDirective,Bh as processInfiniteListDirectives,Wf as processIncludes,Cj as processImgComponents,ol as processImageComponents,bl as processImage,ce as processHeadDirective,ge as processForms,ie as processFormInputDirectives,Ac as processExpressions,Ib as processEventDirectives,je as processErrorDirective,rg as processDynamicComponents,Wh as processDirectives,Fi as processDirectiveAttributes,Zg as processDeferDirectives,Pd as processCustomDirectives,Hd as processCspDirectives,Ur as processComponentProps,ic as processClientScript,he as processBasicFormDirectives,lh as processAsyncDirectives,Qd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ve as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Xo as preloadIslandHandlers,Be as preloadIconCollection,hn as poolStrings,gk as pluginManager,xe as placeholdersWarmed,bh as performLeave,ah as performEnter,$e as pendingLifecycleCounts,df as peek,Tf as partialsCache,Rj as parseVideoDirectiveOptions,zp as parseUrl,Gq as parseThumbhashString,od as parseSwitchBlock,ai as parseSlots,bi as parseSlotElement,td as parseScriptDeclarations,ck as parseSFCComponent,pq as parseProtectedArgs,Pf as parseLoopBinding,Bj as parseImgComponent,Ti as parseImageUrl,nl as parseImageComponent,Qm as parseFormBody,qd as parseExpressionWithFilters,Bn as parseDefaults,ho as parseCookies,lm as parseContainerSelector,ld as parseConditionalBlock,rd as parseArguments,Ma as parseAnimationShorthand,Pr as optional,jn as optimizeTemplate,tl as optimizeImage,ul as optimizeDirectory,Rr as oneOf,Uf as onceStore,Ll as onUpdated,Oc as onUpdate,Nl as onUnmounted,gm as onServer,Jl as onMounted,Xe as onMount,Oh as onHydrated,mf as onErrorCaptured,Ye as onDestroy,wh as onDeactivated,fm as onClient,Kl as onBeforeUpdate,Ml as onBeforeUnmount,Il as onBeforeMount,vh as onActivated,zq as observeElement,lo as notFound,wg as normalizeCriticalHeadOrder,lf as nextTick,En as negotiateEncoding,Ua as navigateTo,Pl as mountInstance,Ea as motionDirective,Ad as moderateCspPreset,gn as minifyHtml,eg as metaDirective,Hg as metaDedupKey,Ap as mergeParams,Jg as mergeHtmlAttrs,Vd as mergeHeadConfigs,Gc as mergeCssConfig,Ed as mergeCspDirectives,Ra as matchRoute,wi as markdownDirectiveHandler,nk as markdownCache,ga as looksLikeGlob,Br as localizePath,U as loadTranslationLazy,_ as loadTranslation,jk as loadStxConfig,db as loadMiddlewareFromDirectory,Om as loadManifest,vq as loadElement,on as loadChannels,Ir as lintStxStrict,xq as lazyLoadAll,wq as lazyLoad,Ha as keyframeDirective,$q as jsxs,ar as jsxDEV,_q as jsx,jo as jsonResponse,Me as islandDirective,l as isTest,xm as isSpaNavigation,qm as isSpaNavRequest,dq as isSignatureValid,af as isSignal,$k as isSharpAvailable,Wn as isServerEnvironment,dm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,sq as isNativeLazySupported,kr as isMarkdownPath,Q as isLoading,R as isLoaded,gi as isJavaScriptScript,tq as isIntersectionObserverSupported,hl as isImageFile,al as isImageBackendAvailable,aa as isICUFormat,Nh as isHydrated,li as isHydrateTrigger,Xc as isHttpStatus,Vn as isEdgeEnvironment,Jr as isDirectiveKind,k as isDevelopment,bf as isDerived,uk as isCssOnlyChange,Dn as isCompressible,em as isClient,nh as isAsyncComponent,Rm as isActionableMethod,Kp as invert,Af as invalidateFileCacheByDir,zf as invalidateFileCache,zc as interpolateScriptsInTemplate,xc as interpolateScriptExpressions,yc as interpolateScriptAttributes,x as inlineError,xr as injectThemeBootstrap,dg as injectSeoTags,ur as injectSeo,Jf as injectRouterScript,tk as injectHotReload,kb as injectHeatmap,Nc as injectCss,Fd as injectCspMetaTag,Rg as injectConfigHeadTags,vg as injectColorModeBootScript,Lg as injectCloakStyle,Cg as injectBuildId,cc as injectBrowserCoreAutoImports,Tc as injectAnalytics,gf as inject,_l as initStoreRegistry,Wk as initNetlify,Zo as initLoadingIndicator,uq as initLazyLoading,ro as initFile,Cq as initBlurUp,Iq as initAllBlurUp,Ej as imgDirective,rl as imageDirective,Vm as hydrateTemplateStream,Um as hydrateTemplate,Wo as hydrateIslands,Kh as hydrateIsland,Wm as hydrateFragment,Lh as hydrateByStrategy,Mh as hydrateAll,np as hydrate,Go as htmlResponse,Ng as hoistLeadingHeadTags,xg as hoistColorModeBootScript,lb as heatmapDirective,mj as hashString,If as hashFilePath,kj as hashFile,lj as hashBuffer,pg as hasVueTemplateSyntax,Of as hasVariables,sp as hasStore,oc as hasPlaceholders,Uk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Qg as hasDocumentShell,_h as hasDirectives,ma as hasDOMSupport,kl as handleImageRequest,nf as handleError,hr as h,gl as groupVariantsByFormat,Ip as grayscale,zo as gitHash,an as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Pk as getTotalSize,eq as getTimeUntilExpiry,Wg as getStoreScript,tp as getStoreNames,rp as getStore,Ik as getStorageSize,Hk as getStorageKeys,ri as getSourceLineInfo,ii as getSharedTranspiler,Ef as getServeClientAsset,la as getScreenReaderOnlyStyle,Yj as getScopeAttribute,Se as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Yh as getPositionInfo,lc as getPlaceholderRegistry,jj as getPlaceholderCacheStats,Sd as getPageMeta,vd as getNonce,il as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,we as getImagePlaceholder,cl as getImageMetadata,te as getImageDelivery,mp as getHydrationRuntime,am as getHydratedStoreState,xk as getHmrServer,Rd as getHead,ep as getHMRHandler,Xi as getFormatExtension,oj as getFileMtime,fl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,zi as getDirectives,yi as getDirective,zl as getCurrentInstance,Kc as getCssServeAsset,Dd as getCspPreset,Md as getCspHeaderName,ui as getComponentCacheStats,Gj as getCachedVideoResult,iq as getCachedSignature,Cf as getCachedSignalsRuntime,Df as getCachedRouterScript,hj as getCachedPlaceholder,vj as getCachedImageResult,pj as getCached,sj as getCacheStats,Ag as getBuildId,ln as getBroadcastServer,Wi as getBestVariant,sc as getAllFilters,Ki as generateWidthSrcset,zh as generateVirtualListCSS,Pq as generateVideoPreview,se as generateValidationScript,Qq as generateUploadRuntime,bn as generateTreeShakenBundle,eh as generateTransitionRuntime,dh as generateTransitionCSS,Kj as generateThumbnails,aj as generateThumbhashPlaceholder,Nn as generateTemplatesDocs,kh as generateSuspenseRuntime,jh as generateSuspenseCSS,hp as generateStateScript,Ui as generateSrcsetData,zj as generateSrcset,dl as generateSrcSet,Lj as generateSpriteSheet,Yq as generateSpaShell,Vi as generateSourceTags,Qi as generateSizesFromBreakpoints,Pi as generateSizesAttribute,el as generateSizes,hg as generateSitemapIndex,vr as generateSitemap,rq as generateSimpleMediaPicker,lq as generateSignatureRuntime,wf as generateSignalsRuntimeDev,vf as generateSignalsRuntime,hc as generateServerDataBridge,Vj as generateScopeId,dk as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,jg as generateRobotsTxt,wr as generateRobots,yj as generateResponsiveVariants,$j as generateReactiveWebComponentTS,_j as generateReactiveWebComponent,bk as generateReactiveRuntime,ak as generateReactiveMixin,Jj as generatePoster,gj as generatePlaceholderStyle,fj as generatePlaceholderCSS,$i as generatePlaceholder,Jh as generatePartialHydrationCSS,ud as generateNonce,Qk as generateNetlifyToml,Sq as generateMinifiedMediaRuntime,Rq as generateMediaRuntime,qq as generateMediaManagerEmbed,Mm as generateManifest,$o as generateLoadingIndicatorHtml,Bq as generateLazyLoadRuntime,Em as generateLayoutTypes,cj as generateLQIP,uh as generateKeepAliveRuntime,th as generateKeepAliveCSS,Qh as generateIslandManifest,Oq as generateImagePreview,vl as generateImageManifest,lp as generateHydrationScript,Qe as generateHydrationRuntime,op as generateHydrationCSS,Dh as generateHydrationBootstrap,sk as generateHotReloadScript,jb as generateHeatmapScript,cp as generateHMRClientScript,Mj as generateHLSManifest,ip as generateEventBindings,Oi as generateDprSrcsetWithVariableQuality,Ni as generateDprSrcset,Og as generateDocumentShell,Sn as generateDocs,On as generateDirectivesDocs,Ei as generateDirectiveRuntime,kg as generateDefaultRobotsTxt,Nj as generateDASHManifest,Mc as generateCss,yd as generateCspMetaTag,xd as generateCspHeader,sf as generateCompositionRuntime,Mn as generateComponentsDocs,Eh as generateComponentManifest,Kn as generateComponentDoc,ej as generateColorPlaceholder,ug as generateColorModeBootScript,Sl as generateClientRuntime,nj as generateCacheKey,fc as generateBrowserAutoImportDestructuring,Jq as generateBlurUpRuntime,Kq as generateBlurUpCSS,Qc as generateBindingsRuntime,Li as generateAutoWidthSrcset,ec as generateAutoImportDestructuring,ph as generateAsyncComponentRuntime,oh as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Sc as generateAnalyticsScript,Vo as formatTypecheckDiagnostics,Po as formatTypeErrors,oo as formatStxContent,Ok as formatSize,Ta as formatRoutes,po as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,tr as formatDoctorReport,Pn as formatDocsAsMarkdown,Rn as formatDocsAsJson,Qn as formatDocsAsHtml,Rp as format,fn as foldConstants,Qp as flipVertical,Pp as flipHorizontal,Fm as fingerprint,To as findRuntimeTypeDeclarations,rr as findPantryPackage,kd as findMatchingEndTag,gd as findMatchingDelimiter,Kb as findInterpolationEnd,md as findIfBlocks,pd as findExpressions,Sa as findErrorPage,Hc as findDuplicateScopedStyleRanges,nd as findDirectiveBlocks,cn as findDeadCode,cn as findDeadBranches,mm as findContainerRegion,Ln as findComponentFiles,Xr as findCommonDir,Nk as filterRequiredFiles,pi as fileExists,Lf as extractVariables,Km as extractTemplateExpressions,Ie as extractStreamBoundaries,jp as extractState,ei as extractSlotContent,Nf as extractScriptFromTemplate,Jm as extractScriptBlocks,mc as extractPlaceholders,jd as extractParenthesizedExpression,Yc as extractPageResponseStatus,hb as extractLayoutMetadata,dj as extractDominantColor,sd as extractDirectiveParams,$h as extractDirectiveNames,ym as extractContainerContent,In as extractComponentProps,Fh as extractComponentName,Jn as extractComponentDescription,Lc as extractClassNames,gc as extractBridgeData,Gh as extractBoundProps,hd as extractBalancedExpression,$b as extractAndStripCssImports,Zj as extractAndScopeStyles,Hb as extractAndProcessEvents,Bk as externalizeSharedAssets,Ck as externalizeRepeatedAssets,Ak as externalizeHtml,Dc as evaluateExpression,en as evaluateConstant,ed as evaluateAuthExpression,vc as escapeHtmlValue,uc as escapeHtml,C as errorRecovery,E as errorLogger,$g as ensureTeleportTargets,Sg as ensureDocumentShell,oe as enhancedValidationRules,Gn as enableDevTools,dn as eliminateDeadCode,Ve as effect,Yp as dprUrls,Tn as docsCommand,Yb as discoverServerApi,Cm as discoverLayoutNames,Aq as disconnectObserver,Hn as disableDevTools,F as devHelpers,tm as detectShell,Un as detectRuntime,Rk as detectProjectConfig,Yi as detectFormat,Zm as detectBuildMode,Ue as derived,Vk as deploy,lk as defineStxConfig,wp as defineStore,pf as defineSlots,Hr as defineSiteConfig,Lr as definePropsWithValidation,Kr as defineProps,fk as definePlugin,Yd as definePageMeta,Wa as defineMiddleware,Sh as defineForm,kf as defineExpose,jf as defineEmits,Bi as defineDirective,jr as defineCustomElement,wo as defineConfig,Ci as defineClientDirective,mh as defineAsyncComponent,yo as defineApiHandler,Tq as defaultMediaConfig,xl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,fe as defaultFormClasses,pc as defaultFilters,Od as defaultCspConfig,hk as defaultConfig,Vr as default,Fc as deepMergeThemes,Ic as dedupeScopedStyles,pm as decodeTitleEntities,bj as decodeThumbhash,Jd as cspNonceDirective,Id as cspDirective,Hq as crossfadeTransition,Cp as crop,xh as createVirtualList,Sj as createVideoDirective,fo as createVercelHandler,Mo as createTypeChecker,fa as createTranslateFilter,ao as createTextEncoderStream,ir as createStxApp,$n as createStreamingResponse,Ke as createStreamRenderer,up as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Bl as createScope,hh as createSSRSuspense,Re as createRouter,Am as createRouteRuleResolver,eb as createRouteLocation,Ko as createRoute,Cl as createRef,Dl as createReactive,rf as createProvideContext,Bo as createProject,vo as createProductionBuild,kc as createPlaceholder,kn as createOptimizedBuild,go as createNetlifyHandler,Jk as createNetlifyClient,fb as createMiddlewareContext,Jo as createMiddleware,yq as createLazyObserver,rh as createKeepAliveCache,Yn as createKVNamespace,Hh as createIslandRegistry,Dj as createImgDirective,sl as createImagePlugin,ll as createImageHandler,ql as createImageDirective,nb as createHeatmapAggregator,Mk as createFileManifest,Xn as createEnvAccessor,z as createEnhancedError,_n as createEdgeHandler,Zn as createEdgeCache,si as createDetailedErrorMessage,eo as createDenoHandler,Sk as createDefaultNetlifyConfig,Nd as createCspHeaders,io as createCookie,El as createComputed,Al as createComponentInstance,co as createCloudflareHandler,Ya as createClientCookieManager,Di as createBuiltinDirectives,ir as createApp,Ka as createAnimationTimeline,Fp as cover,Mf as convertToCommonJS,Mp as contrast,Ep as contain,y as consoleError,m as configureErrorHandling,kk as config,El as computed,Fn as compressResponse,mg as composerPattern,lg as composer,vm as composeShellWithPage,zn as componentDirective,ni as componentClientSignalNames,Lm as compileTemplate,a as collectRepeatedFlag,Lk as collectDeployFiles,Mg as cloakStyleFragment,Ij as clearVideoCache,N as clearTranslationCache,Xg as clearStoreCache,Gk as clearStorage,jq as clearSignatureCache,uf as clearServerData,ij as clearPlaceholderCache,Vf as clearOnceStore,wd as clearNonce,bb as clearMiddleware,ye as clearImagePlaceholders,ue as clearImageDeliveryCatalog,pl as clearImageCache,e as clearErrorMessages,Ff as clearDevCaches,tc as clearCustomFilters,og as clearComposers,Yg as clearComposableCache,ti as clearComponentCache,rj as clearCache,Db as clearBlankCache,_o as cleanupLoadingIndicator,jm as classifyScript,km as classifyAllScripts,No as checkTemplateFile,Oo as checkTemplate,Gf as checkCache,gq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,un as channel,no as captureScreenshots,mo as captureScreenshot,Z as cancelPendingLoads,Kk as calculateSha1,Mi as calculateOptimalWidths,Hf as cacheTemplate,Uj as buildWebComponents,Qo as buildVirtualSource,Vq as buildViews,yp as buildUrl,Ee as buildSuspenseResolveScript,Gr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Gm as buildRuntimeAsset,Hm as buildRouterAsset,Fr as buildLangPickerScript,Si as buildImageUrl,Dg as buildIdFragment,Ig as buildHtmlAttrs,Xm as buildForProduction,Cn as buildComponentLibrary,hq as buildAuthParams,Ym as buildApp,Dr as buildAlternateLinks,uo as build,sn as broadcastPrivate,tn as broadcastPresence,pn as broadcast,Lp as brightness,Mb as bracketDepths,Gp as blur,Eb as blankInertHtmlRegions,bq as batchSignUrls,We as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Tp as auto,ja as attributeValue,Im as assetTags,Fb as asInvocableStatement,Sr as arrayOf,Ar as applyTranslations,xj as applyTransformations,fi as applySlots,yn as applyPropDefaults,Wp as applyPreset,Kg as applyHtmlAttrs,be as applyHead,Bc as applyFilters,rm as appendVary,Cd as apiCspPreset,Da as animationGroupDirective,Oj as analyzeVideo,$m as analyzeUsage,hm as analyzeTemplate,im as analyzeProject,$m as analyzeDirectiveUsage,Uc as analyticsDirective,Eo as addStore,Do as addPage,Gd as addNonceToInlineContent,Fo as addLayout,Co as addComponent,Tm as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Bf as __setSignalsGeneratorsForTest,Bg as __setBuildIdForTest,Fj as VideoProcessorCache,Th as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,fd as Tokenizer,Lo as TemplateTypeChecker,qo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,er as Show,Fe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,nm as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Vc as RESPONSE_STATUS_KEY,Wc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,to as ProductionBuild,gr as Portal,Ao as PROJECT_TEMPLATES,Vp as PRESETS,sb as NON_CLIENT_PRIMITIVES,pp as MemorySessionStore,Ji as MIME_TYPES,Gi as MEDIA_DEFAULT_WIDTHS,Ii as MEDIA_DEFAULT_FORMATS,Bm as LAYOUT_TYPES_FILE,uj as ImageProcessorCache,jl as ImageProcessingError,kp as HydrationRuntime,rk as HotReloadServer,mb as HeatmapAggregator,Gg as HTML_CLASS_MARKER,Fg as HTML_ATTRS_MARKER,Zq as Fragment,fr as For,om as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,zk as EXTERNALIZED_ASSET_DIR,Xk as DeployError,Yk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,_k as DEFAULT_QUALITY,Zi as DEFAULT_PLACEHOLDER_OPTIONS,Zk as DEFAULT_FORMATS,Hi as DEFAULT_DPR_VALUES,bp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Ri as COMMON_SIZES,sg as COLOR_MODE_BOOT_MARKER,tg as COLOR_MODE_BOOT_GLOBAL,Eg as CLOAK_STYLE,wn as BroadcastServer,vn as Broadcast,yg as BUILD_ID_META,zg as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,_i as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,qr as $path};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fw as y}from"./chunk-
|
|
2
|
+
import{fw as y}from"./chunk-wct92198.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
|
|
3
3
|
`);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
|
|
4
4
|
`)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
|
|
5
5
|
export{Y as Dk,_ as Ek,a as Fk,s as Gk,h as Hk,f as Ik,c as Jk,HM as Kk};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$p as c,_p as b,aq as d,bq as e,vo as a}from"./chunk-
|
|
2
|
+
import{$p as c,_p as b,aq as d,bq as e,vo as a}from"./chunk-4fck9h56.js";import"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{po as b,qo as c,ro as d}from"./chunk-
|
|
2
|
+
import{po as b,qo as c,ro as d}from"./chunk-4fck9h56.js";import{vs as a}from"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as e,Xi as a,Yi as b,Zi as c,_i as d,aj as f,bj as g,cj as h,dj as i,ej as j,fj as k,gj as l,hj as m,ij as n}from"./chunk-
|
|
2
|
+
import{$i as e,Xi as a,Yi as b,Zi as c,_i as d,aj as f,bj as g,cj as h,dj as i,ej as j,fj as k,gj as l,hj as m,ij as n}from"./chunk-qtm2zgjj.js";import"./chunk-4fck9h56.js";import"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Al as GJ}from"./chunk-
|
|
2
|
+
import{Al as GJ}from"./chunk-m64wwy1j.js";import{Ar as HJ,Br as zJ,fm as $J}from"./chunk-4fck9h56.js";import{lt as KJ,mt as ZJ}from"./chunk-70zb3560.js";import{Dt as u,zt as WJ}from"./chunk-rps8xwna.js";import{zu as c}from"./chunk-ecbqmesm.js";import X from"path";import O from"fs";function OJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function wJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of wJ(J)){if(OJ(W)){let H=W.position||void 0;$.push({file:K||H?.file,line:H?.line,column:H?.column,message:W.message??"",lineText:H?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function s(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",H=$.lineText?`
|
|
3
3
|
${$.lineText.trim()}`:"";return W?`${W}: ${$.message}${H}`:`${$.message}${H}`}).join(`
|
|
4
4
|
`)}var UJ=9;function P(J,K,$){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(X.basename(J))||GJ(J,K,$)}var QJ=1,YJ=new Map,f=600,LJ=100,g=new Map;async function TJ(J){let K=g.get(J)??0;if(K>0&&K<LJ){g.set(J,K+1);return}g.set(J,1);try{let $=(await O.promises.readdir(J)).filter((z)=>z.endsWith(".js"));if($.length<=f)return;let H=(await Promise.all($.map(async(z)=>{try{return{name:z,at:(await O.promises.stat(X.join(J,z))).mtimeMs}}catch{return null}}))).filter((z)=>z!==null);H.sort((z,Y)=>Y.at-z.at);for(let z of H.slice(f)){let Y=z.name.slice(0,-3);await O.promises.rm(X.join(J,`${Y}.js`),{force:!0}),await O.promises.rm(X.join(J,`${Y}.deps.json`),{force:!0})}I("pruned bundle cache to",f,"entries")}catch{}}function mJ(J){return YJ.get(J)??[]}function h(J,K){if(J)YJ.set(J,K)}function AJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function I(...J){if(AJ())console.log("[stx:bundler]",...J)}var n=[];function t(J,K,$){n.push({filePath:J||"<inline>",message:K,details:$})}function uJ(){return n.slice()}function hJ(){n.length=0}var p;function pJ(J){p=J}function r(){if(p)return p;try{let J=zJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var a=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function cJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let H=$[1];if(!a.some((Y)=>Y.test(H)))return I("detected user import:",H),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=W.exec(J))!==null){let H=$[1];if(/\.css(?:\?.*)?$/.test(H))continue;if(!a.some((Y)=>Y.test(H)))return I("detected side-effect import:",H),!0}return!1}var D="stx-module:",CJ=/\.(?:[cm]?[jt]sx?|json)$/i;function MJ(J,K){return X.relative(J,K).split(X.sep).join("/")}function xJ(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,($,W,H,z)=>{let Y=K.get(z);return Y&&!z.startsWith(D)?`${W}${H}${Y}${H}`:$})}function IJ(J,K){let $=0,W=(z)=>{let Y=`__stxMod${$++}`,j=JSON.stringify(z);return K.push(`var ${Y} = globalThis.__stxModules && globalThis.__stxModules[${j}];`,`if (${Y} === undefined) throw new Error("[stx] module " + ${JSON.stringify(j)} + " is not registered on this page (#1957)");`),Y},H=(z,Y)=>{for(let j of z.split(",")){let T=j.trim();if(!T)continue;let Q=T.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Q)continue;let Z=Q[1].startsWith('"')?JSON.parse(Q[1]):Q[1],G=Q[2]??Z;K.push(`var ${G} = ${Y}[${JSON.stringify(Z)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,Y,j)=>{let T=j.slice(D.length),Q=W(T),Z=Y.trim(),G=Z.match(/^([\w$]+)\s*(?:,\s*|$)/);if(G&&!Z.startsWith("{")&&!Z.startsWith("*"))K.push(`var ${G[1]} = ${Q}.default;`),Z=Z.slice(G[0].length).trim();let q=Z.match(/^\*\s*as\s+([\w$]+)$/);if(q)K.push(`var ${q[1]} = ${Q};`);else if(Z.startsWith("{"))H(Z.replace(/^\{|\}$/g,""),Q);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,Y)=>{return W(Y.slice(D.length)),""}),J}function e(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,X.join(J,"index.ts"),X.join(J,"index.tsx"),X.join(J,"index.js"),X.join(J,"index.mjs")];for(let $ of K)try{if(O.existsSync($)&&O.statSync($,{throwIfNoEntry:!1})?.isFile())return $}catch{}return}function NJ(J,K,$,W,H,z=new Map,Y){let j=(Q,Z,G)=>{if(P(Z,J,Y))return null;if(!H||Q!==$||!CJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let q=`${D}${MJ(process.cwd(),Z)}`;return z.set(G,q),{path:q,external:!0}},T=(Q,Z)=>{let G=Q===$?K:X.dirname(Q),q=X.resolve(G,Z);return e(q)??q};return{name:"stx-client-bundle",setup(Q){Q.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^\//},(Z)=>{let G=e(Z.path);if(G){let q=j(Z.importer,G,Z.path);if(q)return q;if(G!==$)W.add(G);return{path:G}}return{path:Z.path,external:!0}}),Q.onResolve({filter:/^\.\.?\//},(Z)=>{let G=T(Z.importer,Z.path),q=j(Z.importer,G,Z.path);if(q)return q;return W.add(G),{path:G}}),Q.onResolve({filter:/^[@~]\//},(Z)=>{let G=X.resolve(J,Z.path.slice(2)),q=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,X.join(G,"index.ts"),X.join(G,"index.tsx"),X.join(G,"index.js"),X.join(G,"index.mjs")];for(let A of q)if(O.existsSync(A)&&O.statSync(A,{throwIfNoEntry:!1})?.isFile()){let U=j(Z.importer,A,Z.path);if(U)return U;return I(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",A),W.add(A),{path:A}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:G}}),Q.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(!H||Z.importer!==$)return;let G=`${D}npm:${Z.path}`;return z.set(Z.path,G),{path:G,external:!0}}),Q.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{if(P(Z.path,J,Y))throw Error(`Server-only API source cannot be imported by a client script: ${Z.path}`);let G=X.extname(Z.path).toLowerCase(),q=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(Z.path!==$)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:q}})}}}var m=new Map,F=WJ(64),JJ=Symbol.for("stx.client-bundle-build-queue");function _J(J){let K=globalThis,W=(K[JJ]??Promise.resolve()).then(J,J);return K[JJ]=W.then(()=>{return},()=>{return}),W}async function nJ(J,K,$={}){let W=$.projectRoot||process.cwd(),H=(await HJ(W)).serverApi,z=$.minify??!1,Y=$.externalizeUserModules??!0,j=$.cacheDir||c(W,"bundle-cache"),T=new Bun.CryptoHasher("md5");T.update(`${UJ}\x00${JSON.stringify(H??!1)}\x00${Y?"registry":"inline"}\x00${J}\x00${K}`);let Q=T.digest("hex").slice(0,12),Z=X.join(j,`${Q}.js`),G=F.get(Z);if(G){if(u(G.files)&&G.files.every((C)=>!P(C.path,W,H))){I("memo hit:",Q);let C=G.files.map((w)=>w.path);return h(K,C),$.collectInputs?.push(...C),G.code}F.delete(Z),I("memo invalidated by dep change:",Q)}let q=X.join(j,`${Q}.deps.json`),A=Bun.file(Z);if(await A.exists()){let C=Bun.file(q),w=!1,M=null;if(await C.exists())try{let _=JSON.parse(await C.text());if(_.metadataVersion!==QJ||!Array.isArray(_.files))w=!1;else M=_.files,w=!0;if(M&&(!u(M)||M.some((S)=>P(S.path,W,H))))w=!1}catch{w=!1}if(w){if(I("cache hit:",Q),M)h(K,M.map((S)=>S.path)),$.collectInputs?.push(...M.map((S)=>S.path));let _=await A.text();if(M)F.set(Z,{code:_,files:M});return _}I("cache invalidated by dep change:",Q)}let U=m.get(Q);if(U){let C=await U;if($.collectInputs)$.collectInputs.push(...(F.get(Z)?.files??[]).map((w)=>w.path));return C}let v=_J(()=>SJ(J,K,{projectRoot:W,minify:z,cacheDir:j,hash:Q,cachePath:Z,depsPath:q,collectInputs:$.collectInputs,externalizeUserModules:Y,serverApi:H}));m.set(Q,v);try{return await v}finally{m.delete(Q)}}async function SJ(J,K,$){let{projectRoot:W,minify:H,cacheDir:z,hash:Y,cachePath:j,depsPath:T,externalizeUserModules:Q}=$,Z=c(W,"bundle-tmp"),G=X.join(Z,`${Y}.ts`),q=X.join(Z,"out",Y);O.mkdirSync(Z,{recursive:!0}),O.mkdirSync(q,{recursive:!0});let A=X.dirname(K),U=new Set,v=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,C=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,w=KJ(J),{depths:M,balanced:_}=ZJ(w),S=(L)=>!_||M[L]===0,x;while((x=v.exec(w))!==null){if(x[1])continue;if(!S(x.index))continue;if(x[2])x[2].split(",").forEach((L)=>{let k=BJ(L);if(k)U.add(k)});else if(x[3])U.add(x[3])}while((x=C.exec(w))!==null){if(x[1])continue;if(!S(x.index))continue;U.add(x[2])}let XJ=U.size>0?`
|
|
5
5
|
export { ${[...U].join(", ")} }`:"";await Bun.write(G,J+XJ),I("bundling:",Y,"from:",X.basename(K));let o=new Set,l=new Map;try{let L=await Bun.build({entrypoints:[G],outdir:q,target:"browser",format:"esm",minify:H,plugins:[NJ(W,A,G,o,Q,l,$.serverApi)],define:{"process.env.NODE_ENV":H?'"production"':'"development"',...$J()},root:W});if(!L.success){let B=L.logs.filter((y)=>y.level==="error").map((y)=>y.message).join(", ")||`Unable to bundle ${X.basename(K)}`,R=b(L.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",B),t(K||"",B,R),r()==="error")throw Error(B);return J}let k="";for(let V of L.outputs){k=await V.text();break}let N=[];for(let V of k.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let B of V[1].split(",")){let R=B.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(R){N.push([R[2],R[1]]);continue}let y=B.trim();if(/^[A-Za-z_$][\w$]*$/.test(y))N.push([y,y])}let d=[];k=IJ(xJ(k,l),d);let qJ=k.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];k=k.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let i=`__stxBundle_${Y}`,VJ=N.map(([V,B])=>`${JSON.stringify(V)}: ${B}`).join(", "),kJ=N.map(([V])=>`var ${V} = undefined;`).join(`
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-
|
|
3
|
+
import{Ha as a,He as F,Je as v,Ke as P,Va as r,de as s,ee as t,nb as n,o as m,oa as l,ob as p,qb as i,wb as e}from"./chunk-wf1a28ec.js";import"./chunk-qht7be1x.js";import"./chunk-2ver2s2y.js";import"./chunk-p35gk1kr.js";import"./chunk-crmy5yhk.js";import"./chunk-5eqc3f0f.js";import"./chunk-ym3r8ktq.js";import"./chunk-wf3pcr37.js";import"./chunk-02hjbe0p.js";import"./chunk-zgbwr604.js";import"./chunk-9jatnvx3.js";import"./chunk-4p05bgqf.js";import"./chunk-fm8w5wd7.js";import"./chunk-dvvx1wny.js";import"./chunk-xz3evxqp.js";import"./chunk-vxt8234h.js";import"./chunk-x5xee26w.js";import"./chunk-b0wm1c6x.js";import"./chunk-vd5xvsnv.js";import"./chunk-64djh88a.js";import"./chunk-9368t9jm.js";import"./chunk-5tefa8qb.js";import"./chunk-mwh3ymwc.js";import"./chunk-fqq5k9ve.js";import"./chunk-ya5m5vbn.js";import"./chunk-y4nzmkea.js";import"./chunk-7kw3grq5.js";import"./chunk-c79nfdyj.js";import"./chunk-ej8mv2k6.js";import"./chunk-cr8v8k53.js";import"./chunk-x95v38pt.js";import"./chunk-q1tc5kxy.js";import"./chunk-xwxdwqn9.js";import"./chunk-qtm2zgjj.js";import"./chunk-7bmqjfft.js";import"./chunk-t41aaehf.js";import"./chunk-g5k4ceg8.js";import"./chunk-9ah9f27h.js";import"./chunk-y9d560c6.js";import"./chunk-09zjty4k.js";import{jl as u,kl as c}from"./chunk-zg3tz5g3.js";import"./chunk-m64wwy1j.js";import"./chunk-4fck9h56.js";import{at as f}from"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import{yt as A}from"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import{pw as B}from"./chunk-qrkxyb5p.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.326";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
|
|
4
4
|
Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-g2pjef44.js");if(x==="list"){console.log(`
|
|
5
5
|
\uD83D\uDCDA Fetching available icon collections...
|
|
6
6
|
`);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
|
|
7
7
|
`);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
|
|
8
8
|
Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
|
|
9
9
|
\u2713 Package generated successfully!`),console.log(`
|
|
10
|
-
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-5zqec01h.js"),{loadConfig:j}=await import("./chunk-
|
|
10
|
+
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-5zqec01h.js"),{loadConfig:j}=await import("./chunk-jws7h3yg.js");console.log(`
|
|
11
11
|
\uD83D\uDD0D Running PWA audit...
|
|
12
12
|
`);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
|
|
13
13
|
No .stx files matched ${x}
|
|
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
69
69
|
File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
|
|
70
70
|
File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
|
|
71
71
|
Pages directory not found: ${k}`),console.log(`
|
|
72
|
-
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-
|
|
72
|
+
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-63kzeyt9.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
|
|
73
73
|
Build complete! (SSR)
|
|
74
74
|
`),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
|
|
75
75
|
`);else if(H.ssg){if(console.log(`
|
|
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
84
84
|
Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
|
|
85
85
|
`),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
|
|
86
86
|
`)}}catch(z){console.error(`
|
|
87
|
-
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-
|
|
87
|
+
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-b39rm1fd.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
|
|
88
88
|
Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-gctdc94b.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
|
|
89
89
|
\uD83D\uDCDD Initializing Netlify configuration...
|
|
90
90
|
`);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
|
|
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
|
|
|
124
124
|
\uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
|
|
125
125
|
${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
|
|
126
126
|
\uD83D\uDCCA STX Performance Statistics
|
|
127
|
-
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-
|
|
127
|
+
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-3dr3zphp.js"),{resolveStxTargets:j}=await import("./chunk-pc70paa2.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
|
|
128
128
|
No .stx files matched ${H.join(", ")}
|
|
129
129
|
`);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
|
|
130
130
|
Type-check did not run.
|
|
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
|
|
|
160
160
|
\uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
|
|
161
161
|
\uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
|
|
162
162
|
\u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-akrxtrh1.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
|
|
163
|
-
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-
|
|
163
|
+
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-3eyg7eyq.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-4775jwbk.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
|
|
164
164
|
\uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
|
|
165
165
|
`);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
|
|
166
166
|
\uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
|
|
167
|
-
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-
|
|
167
|
+
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-embjwebg.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-0aqtbma7.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-nq0ec0w1.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-0fkvezw3.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-qhzvf0nf.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
|
|
168
168
|
\uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
|
|
169
169
|
`);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
|
|
170
170
|
\uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
|
package/dist/craft-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ek as Nj,fk as wj,gk as Aj}from"./chunk-pcvayb2f.js";import{ik as Uj,jk as Xj,kk as Yj,lk as Zj,mk as _j,nk as $j,ok as qj,pk as Fj,qk as Oj,rk as Vj,sk as Ij,tk as Qj,uk as Wj,vk as Kj}from"./chunk-
|
|
2
|
+
import{ek as Nj,fk as wj,gk as Aj}from"./chunk-pcvayb2f.js";import{ik as Uj,jk as Xj,kk as Yj,lk as Zj,mk as _j,nk as $j,ok as qj,pk as Fj,qk as Oj,rk as Vj,sk as Ij,tk as Qj,uk as Wj,vk as Kj}from"./chunk-s8rc6rgv.js";import"./chunk-9ah9f27h.js";import"./chunk-4fck9h56.js";import"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|
package/dist/craft.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ek as Nj,fk as wj,gk as Aj}from"./chunk-pcvayb2f.js";import{ik as Uj,jk as Xj,kk as Yj,lk as Zj,mk as _j,nk as $j,ok as qj,pk as Fj,qk as Oj,rk as Vj,sk as Ij,tk as Qj,uk as Wj,vk as Kj}from"./chunk-
|
|
2
|
+
import{ek as Nj,fk as wj,gk as Aj}from"./chunk-pcvayb2f.js";import{ik as Uj,jk as Xj,kk as Yj,lk as Zj,mk as _j,nk as $j,ok as qj,pk as Fj,qk as Oj,rk as Vj,sk as Ij,tk as Qj,uk as Wj,vk as Kj}from"./chunk-s8rc6rgv.js";import"./chunk-9ah9f27h.js";import"./chunk-4fck9h56.js";import"./chunk-9e6pyjwz.js";import"./chunk-z698hwht.js";import"./chunk-70zb3560.js";import"./chunk-zsapb653.js";import"./chunk-rps8xwna.js";import"./chunk-cmfx1e7m.js";import"./chunk-e10pfrds.js";import"./chunk-ecbqmesm.js";import"./chunk-f58efcb5.js";import"./chunk-dgrayagx.js";import"./chunk-2hyxkzpc.js";import"./chunk-r1g0bnpv.js";import"./chunk-2dk3ym1g.js";import"./chunk-8n0mjaf6.js";import"./chunk-wct92198.js";import"./chunk-rcvnh2p7.js";import"./chunk-qrkxyb5p.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Ok as wq,Pk as dq,Qk as Cq,Rk as mq,Sk as gq}from"./chunk-m3a20mmb.js";import{$k as w,Tk as S,Uk as Tq,Vk as _q,Wk as z,Xk as D,Yk as P,Zk as kq,_k as vq,al as Iq,bl as d,cl as Hq,dl as Oq,el as Mq}from"./chunk-88kr475r.js";import{gw as Aq,hw as bq,iw as Sq,jw as zq,kw as Dq,lw as Pq}from"./chunk-rcvnh2p7.js";import{pw as N}from"./chunk-qrkxyb5p.js";import p from"fs";import E from"path";import C from"fs";import L from"path";var k=[72,96,128,144,152,192,384,512],v=[120,152,167,180],I=[16,32];async function H(G,B){let q={success:!0,generatedFiles:[],errors:[],warnings:[]},K=G.pwa?.icons;if(!K?.src)return q.errors.push("No source icon specified in pwa.icons.src"),q.success=!1,q;let Y=L.isAbsolute(K.src)?K.src:L.resolve(process.cwd(),K.src);if(!await Bun.file(Y).exists())return q.errors.push(`Source icon not found: ${Y}`),q.success=!1,q;let Q=L.resolve(B,K.outputDir||"pwa-icons");try{C.mkdirSync(Q,{recursive:!0})}catch{return q.errors.push(`Failed to create output directory: ${Q}`),q.success=!1,q}let X=K.sizes||k,j=K.generateWebP??!0,J=K.generateAppleIcons??!0;try{let y;try{y=await import("sharp")}catch{return q.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-ydzns231.js"),Y=await Bun.file(q).text();return await K(Y,{},q,G,new Set)}catch(K){console.warn(`[PWA] Failed to process custom offline page: ${K}`)}else console.warn(`[PWA] Custom offline page not found: ${q}`)}return f(G)}function f(G){let B=G.pwa?.offline,q=G.pwa?.manifest,K=B?.fallbackTitle||"You are offline",Y=B?.fallbackMessage||"Please check your internet connection and try again.",Q=q?.themeColor||"#4f46e5",X=q?.shortName||q?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|