@stacksjs/stx 0.2.849 → 0.2.850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-rqjskxpw.js → chunk-0dnetjh8.js} +31 -31
- package/dist/{chunk-09412heg.js → chunk-0rszcb0m.js} +13 -13
- package/dist/chunk-1qdhwjs4.js +2 -0
- package/dist/{chunk-z57xq46m.js → chunk-2d7e5g92.js} +4 -4
- package/dist/{chunk-wp14sf2j.js → chunk-2j2qzv8g.js} +1 -1
- package/dist/{chunk-nws4zm4k.js → chunk-2rg9pqmh.js} +4 -4
- package/dist/chunk-3gyq9rjx.js +2 -0
- package/dist/chunk-3w9xhs7k.js +2 -0
- package/dist/chunk-3wt0nh3p.js +2 -0
- package/dist/{chunk-jh36gqcq.js → chunk-422r7zkx.js} +2 -2
- package/dist/chunk-4e6wkjtx.js +2 -0
- package/dist/chunk-4pbrszgz.js +2 -0
- package/dist/chunk-5be6p256.js +2 -0
- package/dist/{chunk-83dxfhkw.js → chunk-5jqz5qff.js} +7 -7
- package/dist/chunk-5m4txcry.js +2 -0
- package/dist/chunk-5p6vpvmz.js +2 -0
- package/dist/chunk-5wk40kjd.js +2 -0
- package/dist/{chunk-ct54e34a.js → chunk-62k66qj9.js} +1 -1
- package/dist/chunk-660g9vjn.js +2 -0
- package/dist/chunk-67bn31a3.js +2 -0
- package/dist/{chunk-y1cneng3.js → chunk-6p62jjzm.js} +2 -2
- package/dist/{chunk-9mbyhepc.js → chunk-6q6atv4g.js} +5 -5
- package/dist/chunk-6rd4phe3.js +2 -0
- package/dist/chunk-7hnt9a2e.js +2 -0
- package/dist/{chunk-88a7qaw8.js → chunk-7zxce1yw.js} +3 -3
- package/dist/chunk-80bb89fh.js +2 -0
- package/dist/{chunk-he9dzchk.js → chunk-833y1ndd.js} +1 -1
- package/dist/{chunk-93c08def.js → chunk-88392kaj.js} +5 -5
- package/dist/{chunk-t4dkcf28.js → chunk-8cvgm13s.js} +2 -2
- package/dist/{chunk-v929r67j.js → chunk-8hkgycpm.js} +1 -1
- package/dist/chunk-8k6cd1e0.js +2 -0
- package/dist/{chunk-2ts9pb6s.js → chunk-8vjr3atq.js} +2 -2
- package/dist/{chunk-ke76eaat.js → chunk-918ws1g7.js} +6 -6
- package/dist/{chunk-tj533808.js → chunk-98qgcmxr.js} +2 -2
- package/dist/chunk-9bkgbyrs.js +2 -0
- package/dist/{chunk-rtsshvpt.js → chunk-9mryv01z.js} +52 -52
- package/dist/{chunk-bsw6hd14.js → chunk-9yp0t7zc.js} +2 -2
- package/dist/{chunk-yrmppd8r.js → chunk-a2fngjfx.js} +1 -1
- package/dist/chunk-a2shk93y.js +3 -0
- package/dist/chunk-a7v1j7td.js +2 -0
- package/dist/{chunk-zfb2wnha.js → chunk-aas25pac.js} +3 -3
- package/dist/{chunk-90mm5bf8.js → chunk-ab1vk7jv.js} +4 -4
- package/dist/chunk-acbx3jn5.js +2 -0
- package/dist/{chunk-0wms5teg.js → chunk-agbkv9ab.js} +2 -2
- package/dist/{chunk-wdwx2aa6.js → chunk-amerebya.js} +2 -2
- package/dist/{chunk-b1q40vq4.js → chunk-anva219c.js} +2 -2
- package/dist/chunk-apq33h4w.js +2 -0
- package/dist/{chunk-8vkywnpx.js → chunk-ar1prdev.js} +7 -7
- package/dist/{chunk-trgbdydw.js → chunk-axga9ebe.js} +2 -2
- package/dist/{chunk-mnncq81c.js → chunk-brheng7x.js} +8 -8
- package/dist/{chunk-3m5v3ynh.js → chunk-btkazgdb.js} +3 -3
- package/dist/chunk-c90qz5w0.js +2 -0
- package/dist/{chunk-4fc8zs15.js → chunk-caehra7e.js} +5 -5
- package/dist/chunk-cwt26rvt.js +3 -0
- package/dist/chunk-d4kystzh.js +2 -0
- package/dist/chunk-dx31vsyf.js +2 -0
- package/dist/{chunk-jaf44web.js → chunk-e105xsee.js} +1 -1
- package/dist/{chunk-1k12cc65.js → chunk-e46n406k.js} +13 -13
- package/dist/{chunk-2j3gttzf.js → chunk-e85wsz8y.js} +1 -1
- package/dist/{chunk-0zgxxhvs.js → chunk-eh8g8kr1.js} +5 -5
- package/dist/chunk-f4x21pqx.js +2 -0
- package/dist/{chunk-6xcmeev9.js → chunk-f5n871gp.js} +5 -5
- package/dist/{chunk-81ysx0tc.js → chunk-fffjjgnt.js} +2 -2
- package/dist/{chunk-wzyc9da7.js → chunk-frhdk0p9.js} +2 -2
- package/dist/chunk-frhh6jd3.js +2 -0
- package/dist/{chunk-b3n1m4m5.js → chunk-g046t3hb.js} +1 -1
- package/dist/chunk-g1gqysb4.js +2 -0
- package/dist/{chunk-8bxws458.js → chunk-gr8q8xqz.js} +3 -3
- package/dist/{chunk-emf6ee94.js → chunk-gsrdjmw9.js} +2 -2
- package/dist/{chunk-r96ahk8s.js → chunk-gwdffrz6.js} +9 -9
- package/dist/chunk-h7rcb74n.js +2 -0
- package/dist/{chunk-jcwtw3hd.js → chunk-h9gjt73q.js} +2 -2
- package/dist/chunk-hg9354gt.js +2 -0
- package/dist/{chunk-tbcvarvy.js → chunk-hhk46fzp.js} +2 -2
- package/dist/chunk-j3x3e353.js +2 -0
- package/dist/chunk-j6r964wk.js +2 -0
- package/dist/chunk-je8ma636.js +2 -0
- package/dist/chunk-jpyk0gtr.js +3 -0
- package/dist/{chunk-f2zgh4xr.js → chunk-jqjw00qm.js} +12 -12
- package/dist/{chunk-yqjmqndq.js → chunk-jqsn4sgv.js} +6 -6
- package/dist/{chunk-b147ejha.js → chunk-jt5cqq09.js} +3 -3
- package/dist/chunk-k0pm7p0f.js +2 -0
- package/dist/chunk-k1pyzf9e.js +2 -0
- package/dist/{chunk-eg2p1cyw.js → chunk-k47addf7.js} +29 -29
- package/dist/{chunk-qpz9jrvw.js → chunk-k7dvn2r8.js} +2 -2
- package/dist/{chunk-fa3ygt8c.js → chunk-kd06c90f.js} +4 -4
- package/dist/{chunk-9sjtph54.js → chunk-krtkxnz6.js} +2 -2
- package/dist/chunk-kybes29w.js +2 -0
- package/dist/{chunk-25m74mh1.js → chunk-m05pqmcj.js} +5 -5
- package/dist/chunk-m276y4f3.js +2 -0
- package/dist/{chunk-63sqdcr6.js → chunk-m6nhh5xf.js} +9 -9
- package/dist/{chunk-cww1zk8y.js → chunk-m710wkr4.js} +1 -1
- package/dist/chunk-nnbr1q94.js +2 -0
- package/dist/chunk-nq2z2yrz.js +2 -0
- package/dist/chunk-p2chmq36.js +2 -0
- package/dist/chunk-p9sbpbhg.js +2 -0
- package/dist/{chunk-3qyz80d6.js → chunk-pkq96sqk.js} +6 -6
- package/dist/chunk-q2d8x7p1.js +2 -0
- package/dist/{chunk-54p27ney.js → chunk-qa1pcm7n.js} +5 -5
- package/dist/{chunk-tm5t3hh3.js → chunk-qa4vs1qg.js} +3 -3
- package/dist/{chunk-gpkxphqz.js → chunk-qahz3n8z.js} +2 -2
- package/dist/{chunk-jm0qsr3s.js → chunk-qev14f76.js} +6 -6
- package/dist/{chunk-tb5h85ag.js → chunk-qjc3qjyf.js} +2 -2
- package/dist/chunk-r0btg48x.js +2 -0
- package/dist/{chunk-qay7pgnq.js → chunk-r0k5jbvk.js} +1 -1
- package/dist/{chunk-xr9rf0e6.js → chunk-r2p2nyyq.js} +3 -3
- package/dist/chunk-ryb4jesm.js +2 -0
- package/dist/{chunk-bttvkzxh.js → chunk-s0pnyd2f.js} +6 -6
- package/dist/{chunk-dv9q56r7.js → chunk-s37af6rd.js} +2 -2
- package/dist/chunk-sa18tper.js +20 -0
- package/dist/{chunk-2xf323h9.js → chunk-scaawv2r.js} +3 -3
- package/dist/chunk-sjpya8wm.js +2 -0
- package/dist/chunk-sy0jtgmv.js +42 -0
- package/dist/chunk-sznk5c66.js +2 -0
- package/dist/{chunk-c541s99z.js → chunk-t23jn83r.js} +4 -4
- package/dist/{chunk-fez9828r.js → chunk-t74qb5ej.js} +3 -3
- package/dist/chunk-t7ws9sth.js +2 -0
- package/dist/{chunk-rwc322gq.js → chunk-tbs24vx1.js} +2 -2
- package/dist/{chunk-jmshgw0t.js → chunk-td6b41vj.js} +4 -4
- package/dist/chunk-tdtwqydq.js +2 -0
- package/dist/{chunk-ga650crj.js → chunk-tm1ec751.js} +9 -9
- package/dist/{chunk-k7e3e149.js → chunk-tmftv8na.js} +102 -102
- package/dist/chunk-tpax2gpz.js +2 -0
- package/dist/chunk-ts6sm467.js +2 -0
- package/dist/{chunk-46t924aw.js → chunk-v4bqmzj9.js} +2 -2
- package/dist/chunk-w005b56n.js +2 -0
- package/dist/{chunk-ema1c29k.js → chunk-w032x0zm.js} +2 -2
- package/dist/chunk-w8aj3f9v.js +2 -0
- package/dist/{chunk-ma9yq04p.js → chunk-wzv7k91a.js} +2 -2
- package/dist/chunk-x4077p94.js +2 -0
- package/dist/{chunk-y6wbbmp3.js → chunk-x80b12gr.js} +3 -3
- package/dist/{chunk-c7qej674.js → chunk-xa1f13nk.js} +56 -56
- package/dist/{chunk-ynnd6nnt.js → chunk-xe8m66a3.js} +104 -102
- package/dist/{chunk-9qxx2teq.js → chunk-xndr2dx9.js} +6 -6
- package/dist/chunk-xrdh4at4.js +2 -0
- package/dist/chunk-y8qdpb0p.js +2 -0
- package/dist/chunk-ydjy26ch.js +2 -0
- package/dist/{chunk-k44qj40k.js → chunk-ym5qgw03.js} +2 -2
- package/dist/chunk-yx37mvy7.js +2 -0
- package/dist/{chunk-na1x46xm.js → chunk-z0qfspzg.js} +3 -3
- package/dist/chunk-z278w3cb.js +2 -0
- package/dist/chunk-z33esms3.js +3 -0
- package/dist/{chunk-fx8jjasv.js → chunk-z46mk8ym.js} +4 -4
- package/dist/chunk-znfzh6fm.js +2 -0
- package/dist/chunk-zteccxj9.js +2 -0
- package/dist/cli.js +20 -20
- package/dist/component-renderer.d.ts +1 -0
- package/dist/component-renderer.js +28 -4
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/safe-evaluator.d.ts +10 -0
- package/dist/safe-evaluator.js +24 -5
- package/dist/server-bindings.d.ts +11 -0
- package/dist/server-bindings.js +27 -0
- package/dist/ssg.js +15 -15
- package/dist/stx-virtual-ts.d.ts +31 -0
- package/dist/stx-virtual-ts.js +49 -2
- package/dist/typecheck.d.ts +1 -1
- package/dist/typecheck.js +5 -4
- package/package.json +5 -5
- package/dist/chunk-056rsqc6.js +0 -20
- package/dist/chunk-0d4zhbjz.js +0 -2
- package/dist/chunk-0ey7kc6t.js +0 -3
- package/dist/chunk-11snc6n0.js +0 -2
- package/dist/chunk-1menbxwb.js +0 -2
- package/dist/chunk-1pf4y2yr.js +0 -2
- package/dist/chunk-2sxmmjt1.js +0 -2
- package/dist/chunk-34afrhts.js +0 -2
- package/dist/chunk-37bzsnr7.js +0 -2
- package/dist/chunk-3m6n90sk.js +0 -2
- package/dist/chunk-4q4mtrc5.js +0 -2
- package/dist/chunk-5bm8hmwd.js +0 -2
- package/dist/chunk-5r2z29n8.js +0 -2
- package/dist/chunk-660preb9.js +0 -2
- package/dist/chunk-6hd83cj4.js +0 -2
- package/dist/chunk-740njbwc.js +0 -2
- package/dist/chunk-77fs8281.js +0 -2
- package/dist/chunk-7c73t536.js +0 -2
- package/dist/chunk-84gg2atb.js +0 -2
- package/dist/chunk-86z8zrn9.js +0 -3
- package/dist/chunk-9c6yvh3p.js +0 -2
- package/dist/chunk-9f0pv6sz.js +0 -2
- package/dist/chunk-9fxeqf0e.js +0 -2
- package/dist/chunk-atsjexk0.js +0 -2
- package/dist/chunk-bcefawtc.js +0 -2
- package/dist/chunk-bkqqa8aw.js +0 -2
- package/dist/chunk-bmds786f.js +0 -2
- package/dist/chunk-c0azgkss.js +0 -2
- package/dist/chunk-cbz7jtzf.js +0 -2
- package/dist/chunk-e1n286mv.js +0 -2
- package/dist/chunk-evdskc25.js +0 -2
- package/dist/chunk-f8akfzzn.js +0 -2
- package/dist/chunk-f8wmxwa3.js +0 -2
- package/dist/chunk-fseqwysr.js +0 -2
- package/dist/chunk-gg48cgx3.js +0 -2
- package/dist/chunk-h8zb6cek.js +0 -2
- package/dist/chunk-hc4ydhw0.js +0 -2
- package/dist/chunk-j08r18x1.js +0 -2
- package/dist/chunk-j539dz72.js +0 -2
- package/dist/chunk-jqngvqby.js +0 -2
- package/dist/chunk-k33kgf8a.js +0 -2
- package/dist/chunk-kz7ha54c.js +0 -2
- package/dist/chunk-m7cbkrz6.js +0 -2
- package/dist/chunk-md8dj6tb.js +0 -2
- package/dist/chunk-na1v2jcy.js +0 -2
- package/dist/chunk-p2fkggw4.js +0 -3
- package/dist/chunk-pqqyjvq9.js +0 -2
- package/dist/chunk-q18508s2.js +0 -2
- package/dist/chunk-qczgdzjk.js +0 -2
- package/dist/chunk-r40g6785.js +0 -2
- package/dist/chunk-r6085mp4.js +0 -2
- package/dist/chunk-rke4q3jk.js +0 -2
- package/dist/chunk-rrnvbwac.js +0 -2
- package/dist/chunk-shnw9geh.js +0 -42
- package/dist/chunk-te1wksa0.js +0 -2
- package/dist/chunk-v11hvvxc.js +0 -2
- package/dist/chunk-vasvns9e.js +0 -2
- package/dist/chunk-vdb3p2v3.js +0 -2
- package/dist/chunk-vm2y05sr.js +0 -2
- package/dist/chunk-x2wn6mpd.js +0 -2
- package/dist/chunk-x45mp78q.js +0 -2
- package/dist/chunk-xa2qfe51.js +0 -3
- package/dist/chunk-xsmyhp5f.js +0 -2
- package/dist/chunk-zecffe6a.js +0 -2
package/dist/chunk-056rsqc6.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Se,Ot,fi,zs,Lc,jc,Bc,Fc,Hs,mi,zc,Hc,hi,wn}from"./chunk-ynnd6nnt.js";import{k}from"./chunk-0wms5teg.js";import{a}from"./chunk-rtsshvpt.js";import{ko}from"./chunk-y6wbbmp3.js";import{c}from"./chunk-p2fkggw4.js";import{existsSync as B,readFileSync as K}from"fs";import h from"path";var ge=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ee=wn.filter((e)=>!ge.has(e)).sort(),te=[...k].sort(),he=[...new Set([...ee,...te])].sort(),be=new Set(ee),xe=new Set(te),ye=new Set(he),Y=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function ke(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ne(e,t){let s=[];for(let f of t){if(f.offset===void 0)continue;let i=f.kind==="server"?be:xe;Y.lastIndex=0;for(let p of f.code.matchAll(Y)){let g=p.index+p[0].indexOf("{")+1;for(let d of p[1].matchAll(/[^,]+/g)){let y=d[0];if(/^\s*type\s/.test(y))continue;let b=/^\s*([A-Za-z_$][\w$]*)/.exec(y);if(!b)continue;let r=b[1];if(!ye.has(r)||i.has(r))continue;let o=f.offset+g+d.index+b[0].length-r.length,u=e.slice(0,o),S=u.split(`
|
|
3
|
-
`).length;s.push({line:S,column:o-(u.lastIndexOf(`
|
|
4
|
-
`)+1)+1,offset:o,length:r.length,name:r,kind:f.kind,message:ke(r,f.kind)})}}}return s}import E from"path";var we="@stacksjs/stx-typescript-plugin";function $e(e,t){let s=E.resolve(e);for(;;){let f=E.join(s,"tsconfig.json");if(t(f))return f;let i=E.dirname(s);if(i===s)return;s=i}}function ie(e,t,s){let f=$e(e,s);if(!f)return;let i=new Set,p=(g)=>{if(i.has(g))return;i.add(g);let d=t(g);if(!d)return;let y=d.compilerOptions?.plugins;if(Array.isArray(y)){let r=y.find((u)=>u?.name===we),o=Array.isArray(r?.libs)?r.libs.filter((u)=>typeof u==="string"):[];return r?{configPath:g,libs:o.map((u)=>E.resolve(E.dirname(g),u))}:null}let b=typeof d.extends==="string"?[d.extends]:Array.isArray(d.extends)?d.extends:[];for(let r of[...b].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let o=E.resolve(E.dirname(g),r.endsWith(".json")?r:`${r}.json`),u=p(o);if(u!==void 0)return u}return};return p(f)??void 0}function da(e,t="",s=""){let f=e.startLine>1?`
|
|
5
|
-
`.repeat(e.startLine-1):"",i=fi(mi(e)+e.code,t),p=zs(i.code),g=e.kind==="client"||e.kind==="plain"?Bc(t,e.code):"",d=(f+p).split(`
|
|
6
|
-
`),y=d.length,b=new Map;for(let o of i.declarations)for(let[u,S]of o.text.split(`
|
|
7
|
-
`).entries())if(d.push(S),o.origin)b.set(d.length,{...o.origin,line:e.startLine+o.origin.line-1+u,column:u===0?o.origin.column:1});d.push(g,"export {}","");let r=Hs(d.join(`
|
|
8
|
-
`),s);return{text:r.code,sourceLineCount:y,lineMap:b,scriptColumns:new Map([...i.columns].map(([o,u])=>[o+e.startLine-1,u])),importColumns:r.columns}}function om(e,t="",s=""){return da(e,t,s).text}var ve=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function Te(e){if(e.length===0)return"";let t=["// Generated \u2014 the composables the runtime publishes as bare globals."],s=new Set(k),f=[];for(let{file:i,names:p}of e){let g=JSON.stringify(i.replace(/\\/g,"/").replace(/\.ts$/,""));f.push(` export * from ${g}`);for(let d of p){if(s.has(d)||ve.has(d))continue;s.add(d),t.push(`declare const ${d}: typeof import(${g})[${JSON.stringify(d)}]`)}}return t.push("declare module '@composables' {",...f,"}"),t.join(`
|
|
9
|
-
`)}function pa(e,t,s){return`${e}.__stx_${t}${s}.ts`}function im(e){return e.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function Vl(){return se("stx.d.ts")}function Ul(){return se("stx-module.d.ts")}function se(e){for(let t of[h.resolve(import.meta.dir,"..",e),h.resolve(import.meta.dir,"..","..",e)])if(B(t))return t;return null}var De=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function re(e){return e>=1000&&e<2000}function oe(e){let t="",s=!1,f=!1;for(let i=0;i<e.length;i++){let p=e[i];if(s){if(t+=p,f)f=!1;else if(p==="\\")f=!0;else if(p==='"')s=!1;continue}if(p==='"'){s=!0,t+=p;continue}if(p==="/"&&e[i+1]==="/"){while(i<e.length&&e[i]!==`
|
|
10
|
-
`)i++;t+=`
|
|
11
|
-
`;continue}if(p==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=p}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Ne(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(B(r)){s=r;break}let o=h.dirname(t);if(o===t)break;t=o}if(!s)return{};let f=new Set,i=s,p,g,d=s;while(i&&!f.has(i)){f.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let o=r?.compilerOptions??{};if(!p&&o.paths&&typeof o.paths==="object")p=o.paths,d=i;if(!g&&typeof o.baseUrl==="string")g=h.resolve(h.dirname(i),o.baseUrl);if(p&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!p)return{};let y=g??h.dirname(d),b={};for(let[r,o]of Object.entries(p)){if(!Array.isArray(o))continue;b[r]=o.map((u)=>typeof u==="string"&&!h.isAbsolute(u)?h.resolve(y,u):u)}return{paths:b}}async function am(e,t={}){let s=t.client!==!1,f=t.server!==!1,i=t.templates!==!1,p=t.componentsDir??(i?(await a()).componentsDir:void 0),g=new Map,d=new Map,y=[],b=[],r=0,o=0,u=Vl();for(let n of e){let l=await Bun.file(n).text(),x=Ot(l).filter((m)=>{if(m.kind==="server")return f;return s}),w=Ot(l).filter((m)=>m.kind==="server").map((m)=>m.code).join(`
|
|
12
|
-
`);for(let m of ne(l,x))y.push({file:n,line:m.line,column:m.column,code:0,message:m.message,category:"error",blockKind:m.kind});if(s&&w){let m=x.filter((v)=>v.kind!=="server"),O=[...new Set(m.flatMap((v)=>Fc(w,v.code)))];if(O.length>0)d.set(n,{names:O,line:m[0].startLine,kind:m[0].kind})}let N=h.dirname(h.resolve(n)),D=i?zc(l,{runtimeGlobals:!u,originDir:N,filePath:h.resolve(n),componentsDir:p}):null,R=D?[...D.lineMap.values()].filter((m)=>m.expression).length:0;if(x.length===0&&R===0)continue;if(b.push(n),r+=x.length,o+=R,x.forEach((m,O)=>{let v=da(m,w,N);g.set(pa(n,m.kind,O),{virtual:v,source:v.text,origin:n,kind:m.kind})}),D&&R>0)g.set(pa(n,"template",0),{source:D.text,origin:n,kind:"template",virtual:D})}if(g.size===0)return{diagnostics:y,checkedFiles:b,blockCount:0,expressionCount:0};let S=(t.extraLibs??[]).map((n)=>h.resolve(n)),ce=ie(e.length>0?h.dirname(h.resolve(e[0])):process.cwd(),Ee,B);for(let n of ce?.libs??[])if(!S.includes(n)&&B(n))S.push(n);if(u)S.push(u);let F=u?Ul():null;if(F)S.push(F);let G=`${c()}/typecheck/__stx_globals.d.ts`,ae=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",Lc(u?jc(K(u,"utf8")):void 0),...u?[]:["declare const window: any",...k.map((n)=>`declare const ${n}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...Se.map((n)=>`declare const ${n}: any`)].join(`
|
|
13
|
-
`),Te(await ko())].filter(Boolean).join(`
|
|
14
|
-
`),C=`${c()}/typecheck`;await Bun.$`rm -rf ${C}`.quiet().nothrow(),await Bun.$`mkdir -p ${C}`.quiet().nothrow(),await Bun.write(G,ae);let M=new Map,le=0;for(let[n,l]of g){let x=`${le++}_${n.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${C}/${x}`,l.source),M.set(x,l)}let ue={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...Ne(e.length>0?h.dirname(h.resolve(e[0])):process.cwd()),...t.compilerOptions??{}},V=async(n,l)=>{let x=`${C}/tsconfig${l===1?"":`.${l}`}.json`;await Bun.write(x,JSON.stringify({compilerOptions:ue,files:n.map((N)=>`${C}/${N}`).concat(G,...S)},null,2));let w=Bun.spawnSync(["bun","x","tsc","-p",x,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(w.stdout)+new TextDecoder().decode(w.stderr),exitCode:w.exitCode??0}},X=await V([...M.keys()],1),J=X.output,P=[],U=X.exitCode,W=0,pe=new Set(S.map((n)=>n.split("/").pop())),z=0,j=new Set,q=(n)=>{for(let l of n.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
|
|
15
|
-
`)){let x=l.match(De);if(!x)continue;if(W++,pe.has(x[1].split("/").pop()))z++;let[,w,N,D,R,m,O]=x,v=w.split("/").pop(),T=M.get(v);if(!T)continue;if(re(Number(m)))j.add(v);let L=Number(N),A=Number(D),Q;if(T.virtual){let _=hi(T.virtual,L,A)??(T.kind!=="template"&&re(Number(m))?hi(T.virtual,T.virtual.sourceLineCount,1):null);if(!_||T.kind==="template"&&!_.expression)continue;if(Hc(_,Number(m)))continue;L=_.line,A=_.column,Q=_.expression?.code.trim()}P.push({file:T.origin,line:L,column:A,code:Number(m),message:O,category:R==="error"?"error":"warning",blockKind:T.kind,expression:Q})}};q(J);let de=W,fe=z;if(j.size>0&&j.size<M.size){let n=[...M.keys()].filter((l)=>!j.has(l));q((await V(n,2)).output)}if(s)for(let[n,l]of d){if(l.names.length===0)continue;P.push({file:n,line:l.line,column:1,code:0,message:`${l.names.length===1?"1 value reaches":`${l.names.length} values reach`} this block on the implicit bridge and ${l.names.length===1?"is":"are"} untyped: ${l.names.join(", ")}. Declare them with defineClientPayload({ ${l.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:l.kind})}P.push(...y);let H=new Set,I=P.filter((n)=>{let l=`${n.file}:${n.line}:${n.column}:${n.code}:${n.message}`;if(H.has(l))return!1;return H.add(l),!0});I.sort((n,l)=>n.file.localeCompare(l.file)||n.line-l.line||n.column-l.column);let Z=fe>0&&I.length===0,me=Z||U!==0&&de===0?`${Z?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${U} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
|
|
16
|
-
${J.trim().split(`
|
|
17
|
-
`).slice(0,12).join(`
|
|
18
|
-
`)||"(no output)"}`:void 0;return{diagnostics:I,checkedFiles:b,blockCount:r,expressionCount:o,failure:me}}function cm(e){return e.map((t)=>{let s=t.blockKind==="template"?`[template: ${t.expression??""}]`:`[${t.blockKind==="plain"?"<script>":`<script ${t.blockKind}>`}]`;return`${t.file}:${t.line}:${t.column} ${t.category} TS${t.code} ${t.message} ${s}`}).join(`
|
|
19
|
-
`)}
|
|
20
|
-
export{da,om,pa,im,Vl,Ul,am,cm};
|
package/dist/chunk-0d4zhbjz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{um,dm,pm,fm,Wl,gm,mm,hm,ym,bm,wm,vm}from"./chunk-y1cneng3.js";export{wm as Broadcast,vm as BroadcastServer,Wl as broadcast,ym as broadcastPresence,hm as broadcastPrivate,bm as channel,um as getBroadcastServer,fm as loadChannels,dm as startBroadcasting,pm as stopBroadcasting,gm as toUser,mm as toUsers};
|
package/dist/chunk-0ey7kc6t.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dc,r,ge}from"./chunk-ynnd6nnt.js";import{rt}from"./chunk-car6nhfe.js";import{c}from"./chunk-p2fkggw4.js";import o from"fs";import l from"path";var Uf=new Map,m=new Map;async function Hh(e){let n;for(let i=0;i<3;i++)try{let g=(await o.promises.stat(e)).mtime.getTime(),a=m.get(e);if(a&&a.mtime===g)return a.content;let h=await Bun.file(e).text(),w=(await o.promises.stat(e)).mtime.getTime();if(w!==g)continue;return m.set(e,{content:h,mtime:w}),h}catch(s){n=s;break}throw m.delete(e),Error(`File not found: ${e}${n?` (${n.message})`:""}`)}function Vh(e){m.delete(e)}function Uh(e){for(let t of m.keys())if(t.startsWith(e))m.delete(t)}var f=null,B=null,x=null;function Wh(e){x=e}async function Wf(e=!1){let t=x??await import("./chunk-r6085mp4.js");if(e)return t.generateSignalsRuntimeDev();if(f===null)f=t.generateSignalsRuntime();return f}var S=null;async function qf(){if(S===null){let{getRouterScript:e}=await import("./chunk-f8wmxwa3.js");S=e()}return S}var y={};async function qh(e,t=!1){let n=e==="runtime"?await Wf(t):await qf(),i=e==="runtime"&&t?"runtime-debug":e,s=y[i];if(!s||s.content!==n)s={content:n,hash:Bun.hash(n).toString(16).padStart(16,"0").slice(0,16)},y[i]=s;return{content:n,hash:s.hash,url:`/_stx/${e}.${s.hash}.js`}}var E=500,T=33554432,u=new Map,p=0;function C(e){return c(process.cwd(),"module-bundles",`${e}.js`)}function Kh(e){let t=Bun.hash(e).toString(16).padStart(16,"0").slice(0,16),n=u.get(t),i=n!==void 0;if(i)u.delete(t),p-=n.length*2;u.set(t,e),p+=e.length*2;while(u.size>1&&(u.size>E||p>T)){let s=u.keys().next().value;p-=u.get(s).length*2,u.delete(s)}if(!i)try{let s=C(t);if(!o.existsSync(s))o.mkdirSync(l.dirname(s),{recursive:!0}),o.writeFileSync(s,e)}catch{}return`/_stx/modules.${t}.js`}function Qo(e){if(!/^[0-9a-f]{16}$/.test(e))return;let t=u.get(e);if(t!==void 0)return t;try{return o.readFileSync(C(e),"utf8")}catch{return}}function Xh(){m.clear(),ge(),Dc(),f=null,B=null,S=null}function v(e){let t={debug:e.debug===!0,middleware:(e.middleware??[]).map((n)=>({name:n.name,timing:n.timing,handler:String(n.handler)})),customDirectives:(e.customDirectives??[]).map((n)=>({name:n.name,hasEndTag:n.hasEndTag===!0,rawParams:n.rawParams===!0,handler:String(n.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(t)).digest("hex")}async function fr(e,t){try{if(!t.cachePath)return null;let n=l.resolve(t.cachePath),i=l.join(n,`${ks(e)}.html`),s=l.join(n,`${ks(e)}.meta.json`);if(!await r(i)||!await r(s))return null;let g=await Bun.file(s).text(),a=JSON.parse(g);if(a.cacheVersion!==t.cacheVersion)return null;if(a.engine!==rt())return null;if(a.optionsSignature!==v(t))return null;if((await o.promises.stat(e)).mtime.getTime()>a.mtime)return null;for(let d of a.dependencies)if(await r(d)){if((await o.promises.stat(d)).mtime.getTime()>a.mtime)return null}else return null;return await Bun.file(i).text()}catch(n){return console.warn(`Cache error for ${e}:`,n),null}}async function gr(e,t,n,i){try{if(!i.cachePath)return;let s=l.resolve(i.cachePath);await o.promises.mkdir(s,{recursive:!0});let g=l.join(s,`${ks(e)}.html`),a=l.join(s,`${ks(e)}.meta.json`),h=await o.promises.stat(e);await Bun.write(g,t);let d={sourcePath:e,mtime:h.mtime.getTime(),dependencies:Array.from(n),cacheVersion:i.cacheVersion,engine:rt(),optionsSignature:v(i),generatedAt:Date.now()};await Bun.write(a,JSON.stringify(d,null,2)),Uf.set(e,{output:t,mtime:h.mtime.getTime(),dependencies:n})}catch(s){console.warn(`Failed to cache template ${e}:`,s)}}var _=16;function ks(e){return new Bun.CryptoHasher("sha1").update(e).digest("hex").substring(0,_)}
|
|
3
|
-
export{Uf,Hh,Vh,Uh,Wh,Wf,qf,qh,Kh,Qo,Xh,fr,gr,ks};
|
package/dist/chunk-11snc6n0.js
DELETED
package/dist/chunk-1menbxwb.js
DELETED
package/dist/chunk-1pf4y2yr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bi,Fi,zi,jg,Bg,Fg,Rl,zg,Hg}from"./chunk-jaf44web.js";export{Bi as ImageProcessorCache,Rl as applyTransformations,jg as clearImageCache,zg as generateResponsiveVariants,Hg as generateSrcset,Fi as getCachedImageResult,Fg as optimizeImage,Bg as processImage,zi as setCachedImageResult};
|
package/dist/chunk-2sxmmjt1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zh,ys,Xo,bs,ur,Go,Jo,Hf,ws,vs,xs,Yo,gc,Vf,vt}from"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{V}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Hf as bindLoopInterpolations,zh as clearScriptScanCache,ws as convertServerLoopAttributesToDirectives,Go as convertSignalDirectivesToAttributes,vs as convertSignalLoopsToAttributes,ur as extractClientSignalNames,V as extractExports,gc as findMarkupIndexOutsideScripts,bs as hasSignalsSyntax,Xo as parseLoopExpression,Jo as preEvalLiteralReactiveIfs,xs as processScriptSetup,Yo as processSignals,Vf as rewriteStxImportSpecifiers,ys as scanScriptTags,vt as stripStxRuntimeImports};
|
package/dist/chunk-34afrhts.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{em}from"./chunk-tbcvarvy.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{em as buildApp};
|
package/dist/chunk-37bzsnr7.js
DELETED
package/dist/chunk-3m6n90sk.js
DELETED
package/dist/chunk-4q4mtrc5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kl,Sm,Xl,Gl,km,_m}from"./chunk-tj533808.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{_m as applySlots,km as extractSlotContent,Sm as parseSlotElement,Kl as parseSlots,Gl as processSlots,Xl as renderSlot};
|
package/dist/chunk-5bm8hmwd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dl,ca,Ml,Ll,la,jl,Bl,Fl,zl,ua,Hl,sm}from"./chunk-6xcmeev9.js";import{wa,ql}from"./chunk-2ts9pb6s.js";import{ee,te,ne,jn,he,$e,Yr,mt,Jt,Bn,Fn,zn,re,Hn,Vn,Zr}from"./chunk-jh36gqcq.js";import{Yl}from"./chunk-81ysx0tc.js";import"./chunk-fez9828r.js";export{te as DEFAULT_FORMATS,ne as DEFAULT_QUALITY,ee as DEFAULT_WIDTHS,Zr as ImageProcessingError,Ll as clearImageCache,la as createImageDirective,ql as createImageHandler,Bl as createImagePlugin,sm as defaultImageConfig,Vn as formatSize,ua as generateImageManifest,Jt as generateSizes,mt as generateSrcSet,Bn as getFallbackVariant,Yr as getImageMetadata,re as getMimeType,Hn as getTotalSize,Fn as groupVariantsByFormat,wa as handleImageRequest,jl as imageDirective,he as isImageBackendAvailable,zn as isImageFile,jn as isSharpAvailable,zl as optimizeDirectory,Fl as optimizeImage,ca as parseImageComponent,$e as processImage,Ml as processImageComponents,Dl as renderImageComponent,Yl as rewriteImagesWithSiblings,Hl as writeImageManifest};
|
package/dist/chunk-5r2z29n8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Se,vi,xi,pg,Mt,Qc,fg,el,ny,Le,vn,je}from"./chunk-ynnd6nnt.js";import{al,s}from"./chunk-jm0qsr3s.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Se as BROWSER_CORE_IMPORTS,pg as STX_AUTO_IMPORTS,vi as extractAndStripCssImports,Le as extractBridgeData,al as findInterpolationEnd,el as generateAutoImportDestructuring,ny as generateBrowserAutoImportDestructuring,vn as generateServerDataBridge,Mt as injectBrowserCoreAutoImports,je as processClientScript,fg as referencesName,xi as renderVendorStyleTags,s as stripCommentsAndLiterals,Qc as transformAutoImports};
|
package/dist/chunk-660preb9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Il,Ol}from"./chunk-k7e3e149.js";import"./chunk-trgbdydw.js";import"./chunk-b147ejha.js";import"./chunk-tbcvarvy.js";import"./chunk-bsw6hd14.js";import"./chunk-r96ahk8s.js";import"./chunk-6xcmeev9.js";import"./chunk-056rsqc6.js";import"./chunk-3m5v3ynh.js";import"./chunk-ke76eaat.js";import"./chunk-y1cneng3.js";import"./chunk-2ts9pb6s.js";import"./chunk-2j3gttzf.js";import"./chunk-tj533808.js";import"./chunk-jh36gqcq.js";import"./chunk-81ysx0tc.js";import"./chunk-fa3ygt8c.js";import"./chunk-4fc8zs15.js";import"./chunk-9qxx2teq.js";import"./chunk-3qyz80d6.js";import"./chunk-8bxws458.js";import"./chunk-yqjmqndq.js";import"./chunk-tb5h85ag.js";import"./chunk-zfb2wnha.js";import"./chunk-93c08def.js";import"./chunk-25m74mh1.js";import"./chunk-9mbyhepc.js";import"./chunk-y6wbbmp3.js";import"./chunk-ga650crj.js";import"./chunk-jmshgw0t.js";import"./chunk-fez9828r.js";import"./chunk-tm5t3hh3.js";import{tn}from"./chunk-rwc322gq.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import{Ae,i}from"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import{ve}from"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import{fr,gr}from"./chunk-0ey7kc6t.js";import{Cs,F,a}from"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{m,je}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";import"./chunk-jaf44web.js";import"./chunk-qpz9jrvw.js";export{Cs as buildWebComponents,gr as cacheTemplate,fr as checkCache,tn as classifyAllScripts,Il as createMiddleware,Ol as createRoute,F as defaultConfig,m as extractVariables,ve as injectRouterScript,a as loadStxConfig,je as processClientScript,i as processDirectives,Ae as readMarkdownFile};
|
package/dist/chunk-6hd83cj4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ri,si,oi,ii,$s,Rs,Yh,Zh,Qh,ey,As,ty}from"./chunk-09412heg.js";import"./chunk-eg2p1cyw.js";export{ty as generateDefaultRobotsTxt,As as generateRobotsTxt,Zh as generateSitemap,Qh as generateSitemapIndex,ii as injectSeoTags,$s as metaDirective,ri as processMetaDirectives,oi as processSeoDirective,si as processStructuredData,Yh as registerSeoDirectives,ey as scanForSitemapEntries,Rs as structuredDataDirective};
|
package/dist/chunk-740njbwc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pa,Ia,Oa,Na,Rh}from"./chunk-1k12cc65.js";import"./chunk-rqjskxpw.js";import"./chunk-jmshgw0t.js";import"./chunk-fez9828r.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Pa as buildNative,Rh as default,Ia as findCraftBinary,Na as getAvailableFormats,Oa as getAvailableTargets};
|
package/dist/chunk-77fs8281.js
DELETED
package/dist/chunk-7c73t536.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{tm}from"./chunk-bsw6hd14.js";import"./chunk-ke76eaat.js";import"./chunk-rwc322gq.js";import"./chunk-54p27ney.js";import"./chunk-xa2qfe51.js";import"./chunk-0zgxxhvs.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{tm as startProductionServer};
|
package/dist/chunk-84gg2atb.js
DELETED
package/dist/chunk-86z8zrn9.js
DELETED
package/dist/chunk-9c6yvh3p.js
DELETED
package/dist/chunk-9f0pv6sz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ef,Tf,ye,$f,ic,nn,rn,Ah,ac,sn,rr,Rf,Af,Pf,cs,on,If,an,cc,Ph}from"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{rr as MODULE_SPECIFIER_PREFIX,Ef as bundleCacheDir,Tf as bundleCacheEntryLimit,Ph as bundleClientEntriesSplit,an as bundleClientScript,rn as clearBundleFailures,ye as clientBundleDependencies,nn as getBundleFailures,sn as hasUserImports,on as moduleSubstitutionKey,Af as normalizeRegistrySpecifiers,If as queueClientBundleBuild,ic as recordBundleFailure,Rf as registryIdForPath,ac as resolveBundlerFallback,Pf as rewriteRegistryImports,Ah as setBundlerFallbackMode,$f as shouldLogBundlerDiagnostics,cc as tempBuildName,cs as withModuleSubstitutes};
|
package/dist/chunk-9fxeqf0e.js
DELETED
package/dist/chunk-atsjexk0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vu,$o,Yn,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,id,ad,cd,ld,ud,dd,Zt,Da,pd,fd,gd,Ma,md,hd,yd,bd,wd,vd,La,xd,Sd,kd,_d,Cd,Ed,Td,$d,Rd,Zn,Ad,Pd,Id,Od,Nd,Dd,Md,Ld,jd,Bd,Fd,zd,Ro,Hd,Vd,Ud,Wd,qd,rs,ss,Kd,Xd,Gd,Jd,Yd,ja,Zd,Qd,ep,Ba,Ao,tp,np,Fa,za,os,Ha,rp,Qt,sp,Va,Ua,Po,op,Io,ip,ap,cp,lp,up,dp,pp,Wa,fp,gp,qa,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,Op,Np,Dp,Mp,Lp,jp,Ka,Bp,Fp,zp,Hp,Vp,Up,Wp,qp,Kp,Xp,Gp,Qn,Xa,Ga,Jp,er,Yp,Zp,Qp,Ja,Ya,is,as,ef,Oo,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,hf,yf,bf,wf,vf,xf,Za,Sf,kf,Qa,ec,_f,Cf}from"./chunk-rqjskxpw.js";export{ud as AVAILABLE_COMPONENTS,ja as AutoUpdater,dd as COMPONENT_STYLES,is as DEFAULT_WATCH_INTERVAL_MS,Ya as MAX_WATCH_INTERVAL_MS,Ja as MIN_WATCH_INTERVAL_MS,vd as MODAL_STYLES,Ru as TOAST_STYLES,Td as TRAY_MENU_STYLES,Fa as UPDATE_MANIFEST_ASSET,hd as alert,Dp as appInfo,af as appleScript,Cf as applicationDataDirectory,of as audio,kf as backgroundDelay,Pp as battery,sf as biometric,Xp as bluetooth,pf as bonjour,Qt as bundlePathForExecutable,op as caffeinate,Zd as canReplaceBundle,Qd as clearQuarantine,Sp as clipboard,wd as closeAllModals,zd as closeAllWindows,md as confirm,jp as contextMenu,bf as continuityCamera,yf as coreml,Jd as craftBinaryNotFoundMessage,Ro as craftWindowArguments,Qn as crashReporter,Zu as createAccordion,Wu as createAutocomplete,Mu as createAvatar,Du as createBadge,Au as createButton,Lu as createCard,od as createChart,Iu as createCheckbox,Xu as createChip,id as createCodeEditor,Hu as createColorPicker,sd as createDataGrid,Vu as createDatePicker,ss as createDiskImage,Bu as createDropdown,cd as createFileExplorer,rp as createGitHubUpdateManifest,Ha as createGitHubUpdater,Ku as createImageView,bp as createInterval,qu as createLabel,td as createListView,ad as createMediaPlayer,xd as createMenubar,ed as createModalComponent,_f as createNativeUpdateApi,ec as createPantrySelfUpdater,up as createPreferences,Nu as createProgressBar,zu as createRadioButton,Fu as createRating,Ju as createScrollView,Po as createSelfUpdater,Ou as createSlider,Yu as createSplitView,Qu as createStepper,La as createSystemTray,nd as createTable,ju as createTabs,Pu as createTextInput,Uu as createTimePicker,yp as createTimer,Gu as createTooltip,rd as createTreeView,ld as createWebView,Hd as createWindow,Ud as createWindowWithHTML,Io as decaffeinate,Ap as deepLinks,wp as delay,Eu as dismissAlertById,Tu as dismissAllAlerts,$p as dragOut,ep as extractBundle,cf as fileAssociations,Oo as focus,nf as focusShortcutsReady,xp as formatCompact,lp as formatDuration,cp as formatRemainingTime,fp as formatShortcut,vp as formatTime,_p as fs,Ba as generateUpdateManifest,$u as getActiveAlertCount,bd as getActiveModalCount,Sd as getActiveTrayInstances,Bd as getActiveWindowIds,ap as getCaffeinateStatus,xf as getCapabilities,Za as getCapability,Ld as getDesktopConfig,Dd as getDialogBridgeScript,hp as getRegisteredHotkeys,Cd as getSimulatedTrayHTML,Ed as getTrayBridgeScript,kd as getTrayInstance,Fd as getWindow,qd as getWindowBridgeScript,za as githubLatestAssetUrl,os as githubReleaseAssetUrl,Ep as globalShortcuts,er as handoff,tf as hasFocusShortcuts,Jp as iap,pp as isAutoLaunchEnabled,Sf as isAvailable,ip as isCaffeinated,Rp as isDragOutAvailable,Wd as isWebviewAvailable,zp as keychain,Yp as liveActivities,rf as localServer,Zp as location,df as log,Kd as macOSRuntimeExecutablePath,Lp as menu,hf as midi,Up as nativeAutoLaunch,Wp as nativeTray,qp as nativeWindow,Ip as network,kp as notifications,Cu as notify,Vd as openDevWindow,Xd as pack,Gd as packageApp,Qa as parsePantryUpdateManifest,Wa as parseShortcut,uf as pdf,Hp as permissions,Vp as printing,yd as prompt,Va as quitLauncher,Ao as readBundleIdentity,Xa as redactPII,gp as registerHotkey,Ua as relaunchBundle,vu as requestNotificationPermission,jd as resetDesktopConfig,Yd as resolveCraftBinary,rs as resolveCraftExecutablePath,sp as runningBundleTeamId,Fp as screen,Qp as screenCapture,as as screenSharing,vf as serial,wf as serviceMenu,dp as setAutoLaunch,Md as setDesktopConfig,Cp as shell,$o as showAlert,Pd as showAlertDialog,Ad as showColorPicker,Id as showConfirmDialog,Od as showErrorDialog,fd as showErrorModal,_u as showErrorToast,Da as showInfoModal,xu as showInfoToast,Zn as showMessageBox,Zt as showModal,$d as showOpenDialog,Ma as showQuestionModal,Rd as showSaveDialog,gd as showSuccessModal,Su as showSuccessToast,Yn as showToast,Nd as showWarningDialog,pd as showWarningModal,ku as showWarningToast,Ka as sidebar,Ga as signPayload,Gp as speech,gf as speechRecognition,ff as spotlight,Mp as standardMenus,tp as swapBundle,Bp as system,lf as tags,Tp as theme,Kp as touchbar,_d as triggerTrayAction,mp as unregisterAllHotkeys,qa as unregisterHotkey,Op as updater,np as verifyBundleTrust,mf as vision,ef as watchScreenSharing,Np as windowEvents};
|
package/dist/chunk-bcefawtc.js
DELETED
package/dist/chunk-bkqqa8aw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xe,Xs,Sg,sy,kg,oy,Sn,p,W,Q,kn,ke,_g,_i,Cg,iy,E,Ci,Eg,ay,A,cy}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Eg as applyFilters,oy as clearCustomFilters,_g as clientLoopScopes,Xs as defaultFilters,kn as escapeAttributeValue,p as escapeHtml,W as escapeHtmlValue,Q as escapeInterpolatedHtmlValue,A as evaluateExpression,xe as findMustacheEnd,kg as getAllFilters,Cg as interpolateScriptAttributes,_i as interpolateScriptExpressions,iy as interpolateScriptsInTemplate,E as processExpressions,Ci as processExpressionsChunked,Sg as registerFilter,sy as registerFilters,Sn as replaceInterpolations,ay as resetRejectedExpressionWarnings,cy as unescapeHtml,ke as usesSignalsInScript};
|
package/dist/chunk-bmds786f.js
DELETED
package/dist/chunk-c0azgkss.js
DELETED
package/dist/chunk-cbz7jtzf.js
DELETED
package/dist/chunk-e1n286mv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Uf,Hh,Vh,Uh,Wh,Wf,qf,qh,Kh,Qo,Xh,fr,gr,ks}from"./chunk-0ey7kc6t.js";import{rt}from"./chunk-car6nhfe.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Wh as __setSignalsGeneratorsForTest,rt as cacheEngineFingerprint,gr as cacheTemplate,fr as checkCache,Xh as clearDevCaches,qf as getCachedRouterScript,Wf as getCachedSignalsRuntime,qh as getServeClientAsset,Qo as getServeModuleBundle,ks as hashFilePath,Vh as invalidateFileCache,Uh as invalidateFileCacheByDir,Hh as readFileCached,Kh as registerServeModuleBundle,Uf as templateCache};
|
package/dist/chunk-evdskc25.js
DELETED
package/dist/chunk-f8akfzzn.js
DELETED
package/dist/chunk-f8wmxwa3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ai,ci,kt,de,hr,Ps,yr,Is,Os,Gf,Jf,Yf,br,Zf,Qf,eg,tg,Rc,Ac,Pc,li,Ic,ng,_t,Ct,Et,Tt,$t,Rt,nt,rg}from"./chunk-t4dkcf28.js";export{yr as Router,eg as abortNavigation,Ps as bracketPathToRegex,_t as clearMiddleware,Ac as createClientCookieManager,$t as createMiddlewareContext,Tt as createRouteLocation,Rc as createServerCookieManager,Pc as createStorageManager,tg as defineMiddleware,Jf as defineRoute,Yf as defineRoutes,Is as findErrorPage,Os as formatRoutes,ci as generateRouteManifest,ai as generateRouteTypes,Ic as getMiddleware,Ct as getMiddlewareNames,nt as getRouterScript,rg as getRouterScriptDev,ng as hasMiddleware,kt as isFileRequestPath,Et as loadMiddlewareFromDirectory,hr as matchRoute,Qf as navigateTo,de as patternToRegex,li as registerMiddleware,Zf as resetRoutes,br as route,Rt as runMiddleware,Gf as setAppUrl};
|
package/dist/chunk-fseqwysr.js
DELETED
package/dist/chunk-gg48cgx3.js
DELETED
package/dist/chunk-h8zb6cek.js
DELETED
package/dist/chunk-hc4ydhw0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Of,uc,Oh,dc,Nf,Df,un,cr,Nh,Mf,Lf,Dh,b}from"./chunk-8vkywnpx.js";import"./chunk-0ey7kc6t.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{un as buildCss,Mf as extractClassNames,Df as fingerprintConfig,Lf as generateCss,Nh as getCachedCSS,Of as getCssServeAsset,b as injectCss,uc as loadCssEngine,dc as loadCssEngineConfig,cr as rebuildCss,Oh as resetCssCache,Nf as resolveUserCssConfig,Dh as withLinkedModuleBundles};
|
package/dist/chunk-j08r18x1.js
DELETED
package/dist/chunk-j539dz72.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nu,ru,su,ou,iu,au,cu,lu,uu,du,jm}from"./chunk-3qyz80d6.js";export{nu as createIslandRegistry,jm as default,du as generateIslandManifest,su as generatePartialHydrationCSS,au as hydrateAll,iu as hydrateByStrategy,ou as hydrateIsland,cu as isHydrated,lu as onHydrated,ru as processPartialHydrationDirectives,uu as processStaticDirectives};
|
package/dist/chunk-jqngvqby.js
DELETED
package/dist/chunk-k33kgf8a.js
DELETED
package/dist/chunk-kz7ha54c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Qg}from"./chunk-b147ejha.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Qg as startInteractive};
|
package/dist/chunk-m7cbkrz6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zm,_a,hu,Hm,Vm,Um,Wm,qm,yu,bu,Km,Xm,Gm,Jm}from"./chunk-yqjmqndq.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{hu as SUSPENSE_RESOLVER_RUNTIME,_a as buildSuspenseResolveScript,qm as createStreamRenderer,Um as extractStreamBoundaries,Jm as generateHydrationRuntime,bu as islandDirective,Xm as processSectionDirectives,Vm as processStreamDirectives,Km as registerStreamingDirectives,Hm as renderStreamingPage,zm as streamTemplate,Wm as streamTemplateSimple,Gm as streamToResponse,yu as streamingSuspenseDirective};
|
package/dist/chunk-md8dj6tb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn,No,Do,Mo,Ih,Lo}from"./chunk-54p27ney.js";import"./chunk-nws4zm4k.js";import"./chunk-t4dkcf28.js";import"./chunk-46t924aw.js";export{Do as buildServerApi,Ih as createServerApi,cn as discoverServerApi,No as generateApiTypes,Lo as isServerApiSource,Mo as productionApiDispatcher};
|
package/dist/chunk-na1v2jcy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wn,og,ig,ag,cg,lg,m,ug,wi,dg,Yc,Zc}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{wn as STX_ENGINE_BINDING_NAMES,wi as convertToCommonJS,Yc as extractScriptFromTemplate,m as extractVariables,Zc as hasVariables,ug as isCompleteImport,lg as isMissingBindingFailure,ag as isModuleResolutionFailure,cg as isSyntaxFailure,dg as splitDeclaration,og as stripTypeScript,ig as withoutStxReferrer};
|
package/dist/chunk-p2fkggw4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var pn=".stx",o="STX_DIR",e=null;function Oc(t){e=t?.trim()||null}function wr(){return process.env[o]?.trim()||e||pn}function c(t=process.cwd(),...n){let r=wr();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function vr(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==pn&&!n.startsWith(`${pn}/`))return t;let r=n.slice(pn.length+1);return r?i.join(wr(),r):wr()}
|
|
3
|
-
export{pn,Oc,wr,c,vr};
|
package/dist/chunk-pqqyjvq9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ka,pu,Un,Bm,fu,gu,mu,Fm}from"./chunk-8bxws458.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Un as Validator,pu as defineForm,fu as processErrorDirective,gu as processErrorsDirective,Fm as processFormValidationDirectives,mu as processHasErrorsDirective,ka as useForm,Bm as v};
|
package/dist/chunk-q18508s2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Hi,Vi,Ui,Vg,Wi,qi,Ug,Ki,Xi,Al,Wg}from"./chunk-qpz9jrvw.js";export{Hi as VideoProcessorCache,Al as analyzeVideo,Vg as clearVideoCache,Xi as generateDASHManifest,Ki as generateHLSManifest,Wi as generatePoster,Ug as generateSpriteSheet,qi as generateThumbnails,Vi as getCachedVideoResult,Wg as processVideo,Ui as setCachedVideoResult};
|
package/dist/chunk-qczgdzjk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fh,Bf,ms}from"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-cww1zk8y.js";import"./chunk-he9dzchk.js";import{Tr}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import{ot}from"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{ot as freeIdentifiers,ms as processComponents,Bf as processESImports,Tr as rendersAsElement,Fh as resetTemplateLoopWarnings};
|
package/dist/chunk-r40g6785.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ko,hh,yh}from"./chunk-y6wbbmp3.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{yh as clearComposableCache,hh as getComposableScript,ko as listComposableModules};
|
package/dist/chunk-r6085mp4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yt,qn,bh}from"./chunk-ga650crj.js";import{ue,Kn,wh,Xn,_o,Qr,es,vh,xh,Sh,Gn,Jn,Co,ts,kh}from"./chunk-jcwtw3hd.js";import"./chunk-0wms5teg.js";export{_o as batch,bh as default,Kn as derived,Xn as effect,yt as generateSignalsRuntime,qn as generateSignalsRuntimeDev,Jn as isDerived,Gn as isSignal,wh as memo,es as onDestroy,Qr as onMount,ts as peek,Sh as pendingLifecycleCounts,xh as runDestroyCallbacks,vh as runMountCallbacks,ue as state,Co as untrack,kh as useOptimistic};
|
package/dist/chunk-rke4q3jk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{go,ia,Kr,mo,ho,On,Xt,aa,Xr,Gr,yo,bo,nm,rm,ft}from"./chunk-r96ahk8s.js";export{ft as DeployError,ia as calculateSha1,Kr as collectDeployFiles,Gr as createDefaultNetlifyConfig,mo as createFileManifest,go as createNetlifyClient,nm as deploy,Xr as detectProjectConfig,ho as filterRequiredFiles,On as formatSize,aa as generateNetlifyToml,Xt as getTotalSize,bo as hasNetlifyConfig,rm as initNetlify,yo as writeNetlifyConfig};
|
package/dist/chunk-rrnvbwac.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hs,Ff,Uo,zf}from"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{It}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{zf as declareBareLoopHead,It as parseLoopBinding,Ff as processLoops,Uo as processLoopsAsync,hs as reportDeferredLoopWarnings};
|
package/dist/chunk-shnw9geh.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wl,vl}from"./chunk-0wms5teg.js";import{f,P,ot,d}from"./chunk-eg2p1cyw.js";import{U,xr,Ls,js,ui,di,Bs,gn,De,fe,J,_r,Cr,ie,Y,N,st,Er,gi,Rr,ze,r,p,W,kn}from"./chunk-ynnd6nnt.js";import{n}from"./chunk-xa2qfe51.js";import{oe}from"./chunk-cww1zk8y.js";import{lr}from"./chunk-14cvwsy1.js";import{s}from"./chunk-jm0qsr3s.js";import{g}from"./chunk-0dve54ne.js";import{createHash as St}from"crypto";import Q from"fs";import Z from"path";import je from"fs";function Ce(e,i,t){let o=Buffer.alloc(t),a=je.readSync(e,o,0,t,i);return o.subarray(0,a)}function Me(e){if(e.length<25)return!1;let i=(o,a)=>String.fromCharCode(...e.subarray(o,a));if(i(0,4)!=="RIFF"||i(8,12)!=="WEBP")return!1;let t=i(12,16);if(t==="VP8X")return(e[20]&16)!==0;if(t==="VP8L")return((e[21]|e[22]<<8|e[23]<<16|e[24]<<24)>>>28&1)===1;return!1}function Le(e){let i;try{i=je.openSync(e,"r");let t=Ce(i,0,33);if(t.length>=3&&t[0]===255&&t[1]===216&&t[2]===255)return"none";if(t.length>=26&&t[0]===137&&t.toString("latin1",1,4)==="PNG"){let o=t[25];if(o===4||o===6)return"possible";let a=8;for(let c=0;c<64;c++){let l=Ce(i,a,8);if(l.length<8)return"unknown";let u=l.toString("latin1",4,8);if(u==="tRNS")return"possible";if(u==="IDAT"||u==="IEND")return"none";a+=12+l.readUInt32BE(0)}return"unknown"}if(t.length>=25&&t.toString("latin1",0,4)==="RIFF"&&t.toString("latin1",8,12)==="WEBP"){if(Me(t))return"possible";let o=t.toString("latin1",12,16);return o==="VP8 "||o==="VP8X"?"none":"unknown"}return"unknown"}catch{return"unknown"}finally{if(i!==void 0)je.closeSync(i)}}import Jt from"fs";import Fe from"os";import{fileURLToPath as pt}from"url";var Ae=Symbol("stx.image-worker.unavailable");function Yt(e=typeof Fe.availableParallelism==="function"?Fe.availableParallelism():Fe.cpus().length){return Math.max(1,Math.min(2,e-1))}var ke=0,ht=[];async function Qt(){if(ke<Yt()){ke++;return}await new Promise((e)=>ht.push(e)),ke++}function en(){ke--,ht.shift()?.()}var tn="@stacksjs/stx/builtins/image-warmup-worker";function nn(e=process.cwd()){let i=import.meta.url.endsWith(".ts")?"ts":"js";try{let t=new URL(`./image-warmup-worker.${i}`,import.meta.url);if(t.protocol==="file:"&&Jt.existsSync(pt(t)))return pt(t)}catch{}return lr(tn,e)}var mt=!1;function ue(e){if(!mt)mt=!0,console.warn(`[stx] image worker unavailable (${e}); running the image pass on the serving thread instead. Results are the same, but requests may stall while it runs.`);return Ae}function Re(e){return e instanceof Error?e.message:String(e)}async function Ue(e,i){let t;try{t=(await import("worker_threads")).Worker}catch(a){return ue(`could not load node:worker_threads: ${Re(a)}`)}if(typeof t!=="function")return ue("node:worker_threads has no Worker in this runtime");let o=nn();if(!o)return ue("no image-warmup-worker entry beside this module or in the installed @stacksjs/stx");await Qt();try{return await new Promise((a,c)=>{let l;try{l=new t(o)}catch(y){a(ue(`could not start ${o}: ${Re(y)}`));return}let u=!1,m=!1,v=(y)=>{if(m)return;m=!0,y(),l.terminate()};l.on("message",(y)=>{if(y.type==="ready"){u=!0,l.postMessage({task:e,args:i});return}if(y.type==="result"){v(()=>a(y.value));return}let h=Error(y.error?.message??"image worker failed");if(y.error?.name)h.name=y.error.name;if(y.error?.stack)h.stack=y.error.stack;v(()=>c(h))}),l.on("error",(y)=>{v(()=>u?c(y instanceof Error?y:Error(Re(y)||"image worker crashed")):a(ue(`the worker failed before it was ready: ${Re(y)}`)))}),l.on("exit",(y)=>{v(()=>u?c(Error("image worker exited before it finished")):a(ue(`the worker exited with code ${y} before it was ready`)))})})}finally{en()}}var rn=new Set([".avif",".jpeg",".jpg",".png",".webp"]),sn=[320,640,960,1280,1920],ye="/_stx/images",on=`stx:${ye}:alpha-1`,an=`stx:${ye}:opaque-1`,cn=["@stacksjs/ts-webp","@stacksjs/ts-avif","ts-images"],Pe;function ln(e,i){let t=Z.dirname(Bun.resolveSync(e,i));while(t!==Z.dirname(t)){let o=Z.join(t,"package.json");if(Q.existsSync(o)){let a=JSON.parse(Q.readFileSync(o,"utf8"));if(a.name===e)return a.version}t=Z.dirname(t)}return}function yt(){if(Pe!==void 0)return Pe;let e;try{e=Z.dirname(Bun.resolveSync("ts-images",import.meta.dir))}catch{}return Pe=cn.map((i)=>{let t;try{t=e?ln(i,e):void 0}catch{}return`${i.replace("@stacksjs/","")}@${t??"unknown"}`}).join("+"),Pe}var bt=Symbol.for("stx.image-delivery");function be(){let e=globalThis;return e[bt]??={catalog:new Map,transparent:new Set},e[bt]}var vt=new Set;function un(e){return`/${e.split(Z.sep).map(encodeURIComponent).join("/")}`}function fn(e){let i=Z.extname(e),t=e.slice(0,-i.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),o=St("sha256").update(e).digest("hex").slice(0,8);return`${t||"image"}-${o}`}function xt(e,i=`stx:${ye}`){let t=(o)=>`${ye}/${o.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:i,async stat(o){let a=Z.join(e,o);try{let c=await Q.promises.stat(a);return c.size>0?{bytes:c.size,path:a,url:t(o)}:null}catch{return null}},async write(o,a){let c=Z.join(e,o);await Q.promises.mkdir(Z.dirname(c),{recursive:!0});let l=`${c}.${process.pid}.tmp`;return await Q.promises.writeFile(l,a),await Q.promises.rename(l,c),{bytes:a.byteLength,path:c,url:t(o)}},url:t}}async function Ct(e,i=e){let t=await Q.promises.readdir(i,{withFileTypes:!0});t.sort((a,c)=>a.name.localeCompare(c.name));let o=[];for(let a of t){let c=Z.join(i,a.name);if(a.isDirectory()){o.push(...await Ct(e,c));continue}if(!a.isFile()||!rn.has(Z.extname(a.name).toLowerCase()))continue;o.push({absolutePath:c,relativePath:Z.relative(e,c)})}return o}function wt(e,i){return e.map((t)=>({key:un(t.relativePath),input:t.absolutePath,name:fn(t.relativePath),...dn(t.absolutePath)?{options:{storage:i}}:{}}))}function dn(e){return Le(e)==="possible"}function pn(e){for(let i=3;i<e.length;i+=4)if(e[i]!==255)return!0;return!1}async function mn(e){let i=Object.entries(e).filter(([,c])=>c.fallback.format==="png"),t=new Set,o=8;if(i.length===0)return t;let{decode:a}=await import("ts-images");for(let c=0;c<i.length;c+=8)await Promise.all(i.slice(c,c+8).map(async([l,u])=>{let m=u.variants.filter((v)=>v.format==="png").sort((v,y)=>v.width-y.width)[0];try{let v=await a(new Uint8Array(await Q.promises.readFile(m?.path??u.fallback.path)));if(pn(v.data))t.add(l)}catch{t.add(l)}}));return t}function hn(e,i){let t=[];for(let o of i){let a=e[o],c=a?.variants.filter((u)=>u.format==="webp")??[];if(!a||c.length===0)continue;if(!c.some((u)=>{let m;try{return m=Q.openSync(u.path,"r"),!Me(Ce(m,0,32))}catch{return!0}finally{if(m!==void 0)Q.closeSync(m)}}))continue;if(a.variants=a.variants.filter((u)=>u.format!=="webp"),delete a.sources.webp,t.push(o),!vt.has(o))vt.add(o),console.warn(`[stx-images] ${o} is transparent but its WebP variants have no alpha channel; serving PNG instead. Upgrade @stacksjs/ts-webp to 0.1.6 or later.`)}return t}async function yn(e){let i=[],t=8;if(e.length===0)return i;let{generateThumbHash:o}=await import("ts-images");for(let a=0;a<e.length;a+=8){let c=e.slice(a,a+8),l=await Promise.all(c.map(async(u)=>{try{return await o(u.absolutePath),u}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${u.relativePath}`),null}}));i.push(...l.filter((u)=>u!==null))}return i}function We(e){return Z.join(e,"undecodable.json")}function bn(e){try{let i=Q.readFileSync(We(e),"utf-8"),t=JSON.parse(i);return t&&typeof t==="object"?t:{}}catch{return{}}}function vn(e,i){try{Q.mkdirSync(Z.dirname(We(e)),{recursive:!0}),Q.writeFileSync(We(e),JSON.stringify(i))}catch{}}function $t(e){try{let i=Q.statSync(e);return{mtimeMs:i.mtimeMs,size:i.size}}catch{return}}function Rt(e){if(!e||e.startsWith("data:")||e.startsWith("blob:")||/^https?:\/\//i.test(e)||e.startsWith("//"))return;let i=e.split(/[?#]/,1)[0];if(!i)return;try{return`/${i.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function zo(e){let i=Rt(e);return i?be().catalog.get(i):void 0}function Ho(e){let i=Rt(e);return i?be().transparent.has(i):!1}function Vo(e){let i=(o)=>e.variants.filter((a)=>a.format===o).reduce((a,c)=>a+c.bytes,0),t=i(e.fallback.format);return["avif","webp"].map((o)=>({format:o,srcset:e.sources[o]||"",bytes:i(o)})).filter((o)=>o.srcset&&o.bytes>0&&o.bytes<t).sort((o,a)=>o.bytes-a.bytes).map(({format:o,srcset:a})=>({format:o,srcset:a}))}function jh(e){let i=zo(e);if(!i)return;return{src:i.fallback.url,srcset:i.sources[i.fallback.format]||"",sources:Vo(i).map(({format:t,srcset:o})=>({type:`image/${t}`,srcset:o})),width:i.source.width,height:i.source.height,placeholder:Ho(e)?void 0:i.placeholder?.dataUrl}}function gs(){let e=be();e.catalog=new Map,e.transparent=new Set}function xn(e){let i=be();i.catalog=new Map(e.entries),i.transparent=new Set(e.transparent)}async function Bh(e,i,t={}){if(!e||!Q.existsSync(e))return gs(),{count:0,fingerprint:""};if(t.offThread){let b=await Ue("delivery",{publicDir:e,outputDir:i});if(b!==Ae)return xn(b.state),b.result}let o=await Ct(e);if(o.length===0)return gs(),{count:0,fingerprint:""};let a=bn(i),c=o.filter((b)=>{let w=a[b.relativePath];if(!w)return!0;let A=$t(b.absolutePath);return!A||A.mtimeMs!==w.mtimeMs||A.size!==w.size});if(c.length===0)return gs(),{count:0,fingerprint:""};let l=xt(Z.join(i,"_stx","images"),`${on}:${yt()}`),u={outDir:Z.join(i,"_stx","images"),storage:xt(Z.join(i,"_stx","images"),`${an}:${yt()}`),baseUrl:ye,widths:sn,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},{createImageDeliveryCatalog:m}=await import("ts-images/delivery"),v=c,y;try{y=await m({...u,entries:wt(c,l)})}catch(b){if(v=await yn(c),v.length===c.length)throw b;let w=new Set(v.map((k)=>k.relativePath)),A=!1;for(let k of c){if(w.has(k.relativePath))continue;let R=$t(k.absolutePath);if(!R)continue;a[k.relativePath]=R,A=!0}if(A)vn(i,a);if(v.length===0)return gs(),{count:0,fingerprint:""};y=await m({...u,entries:wt(v,l)})}let h=await mn(y.entries),C=hn(y.entries,h),x=be();x.catalog=new Map(Object.entries(y.entries)),x.transparent=h;let S=h.size===0&&C.length===0?y.fingerprint:St("sha256").update(y.fingerprint).update(JSON.stringify({transparent:[...h].sort(),droppedWebp:C.sort()})).digest("hex");return{count:v.length,fingerprint:S}}class kt{builtins=new Map;registerBuiltin(e){this.builtins.set(e.name.toLowerCase(),e);for(let i of e.aliases)this.builtins.set(i.toLowerCase(),e)}isBuiltin(e){return this.builtins.has(e.toLowerCase())}getBuiltin(e){return this.builtins.get(e.toLowerCase())??null}async resolveFile(e,i,t,o){let a=ui(e,o);if(a!==void 0)return a;for(let c of di(e,i,t,o))if(await r(c))return c;return null}}var de=new kt;var re="\x00stx-boolean-attribute";function He(e){return e.indexOf("\x00")===-1?e:e.replace(/\0/g,"")}var wn=new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","role","slot","spellcheck","style","tabindex","title","translate","accept","action","alt","autocomplete","capture","cite","cols","colspan","content","controls","datetime","default","download","enctype","for","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","href","hreflang","kind","label","loading","loop","max","maxlength","media","method","min","minlength","multiple","muted","name","open","pattern","placeholder","playsinline","poster","preload","readonly","referrerpolicy","rel","required","reversed","rows","rowspan","scope","selected","shape","size","span","src","srcdoc","srclang","srcset","start","step","target","type","usemap","value","width","wrap"]);function qe(e){let i=e.toLowerCase();return i.startsWith("aria-")||i.startsWith("data-")||wn.has(i)}function se(e,i){let t=[];for(let[o,a]of Object.entries(e.static)){if(i.has(o))continue;let c=e.staticNames?.[o]??o;if(typeof a==="boolean"){if(a)t.push(p(c));continue}if(a===re){t.push(p(c));continue}t.push(`${p(c)}="${kn(c,He(String(a)))}"`)}return t}function ae(e,i){let t=[];for(let[o,a]of Object.entries(e.serverDynamic??{})){if(i.has(o))continue;if(a===null||a===void 0||a===!1)continue;let c=e.serverDynamicNames?.[o]??o;if(a===!0){t.push(p(c));continue}if(typeof a==="object")continue;t.push(`${p(c)}="${kn(c,He(String(a)))}"`)}return t}function $n(e){if(e.clientReactive.to)return{value:e.clientReactive.to,reactive:!0};if(e.serverDynamic.to!==void 0)return{value:String(e.serverDynamic.to),reactive:!1};if(typeof e.static.to==="string")return{value:e.static.to,reactive:!1};return{value:"#",reactive:!1}}var Xe={name:"StxLink",aliases:["stx-link"],render(e,i,t){let o=$n(e),a=(typeof e.static.class==="string"?e.static.class:"")||(typeof e.static.className==="string"?e.static.className:""),c=typeof e.static.activeClass==="string"?e.static.activeClass:"active",l=typeof e.static.exactActiveClass==="string"?e.static.exactActiveClass:"exact-active",u=e.static.prefetch===!0||e.static.prefetch==="true"||e.serverDynamic.prefetch===!0,m=[];if(o.reactive)m.push(`:href="${n(o.value)}"`);else m.push(`href="${n(_r(o.value,"navigable"))}"`);if(a)m.push(`class="${n(a)}"`);if(m.push("data-stx-link"),m.push(`data-stx-active-class="${n(c)}"`),m.push(`data-stx-exact-active-class="${n(l)}"`),u)m.push("data-stx-prefetch");let v=typeof e.static.activeMatch==="string"?e.static.activeMatch.trim():"";if(v)m.push(`data-stx-active-match="${n(v)}"`);let y=new Set(["to","class","className","activeClass","exactActiveClass","activeMatch","prefetch"]);return m.push(...se(e,y)),m.push(...ae(e,y)),`<a ${m.join(" ")}>${i}</a>`}};var Sn=new Map;function Ve(e){if(!e)return;let i=e.split("?")[0].split("#")[0];return Sn.get(i)}var Cn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Ze=[320,640,768,1024,1280,1536,1920];function V(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function Ie(e,i,t=!1){let o=e.serverDynamic[i];if(o!==void 0)return o!==!1&&o!=="false";let a=e.static[i];if(a!==void 0)return a!=="false"&&a!==!1;return t}function Ge(e){if(e.includes("(")||e.includes(","))return e;let i=e.trim().split(/\s+/),t=[];for(let o of i)if(o.includes(":")){let[a,c]=o.split(":"),l=Cn[a];if(l)t.push(`(max-width: ${l}px) ${c}`);else{let u=Number.parseInt(a);if(!Number.isNaN(u))t.push(`(max-width: ${u}px) ${c}`)}}else t.push(o);return t.join(", ")}function Ke(e,i,t,o){return i.map((a)=>`${ve(e,a,void 0,t,o)} ${a}w`).join(", ")}function Rn(e,i,t,o,a){return i.map((c)=>{let l=t?t*c:void 0;return`${ve(e,l,void 0,o,a)} ${c}x`}).join(", ")}function ve(e,i,t,o,a){if(!o||o==="local"||o==="static")return e;if(o==="cloudinary"){let c=[];if(i)c.push(`w_${i}`);if(t)c.push(`h_${t}`);if(a)c.push(`f_${a}`);c.push("q_auto");let l=c.join(",");return e.replace("/upload/",`/upload/${l}/`)}if(o==="imgix"){let c=new URLSearchParams;if(i)c.set("w",String(i));if(t)c.set("h",String(t));if(a)c.set("fm",a);c.set("auto","format");let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}if(o==="bunny"){let c=new URLSearchParams;if(i)c.set("width",String(i));if(t)c.set("height",String(t));if(a)c.set("format",a);let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}return e}function An(e){return`var s=this.style;${e.map((i)=>`s.${i}=''`).join(";")}`}function Pn(e,i,t="#e5e7eb"){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${i}"><rect width="100%" height="100%" fill="${t}"/></svg>`;return`data:image/svg+xml;base64,${btoa(o)}`}var Je={name:"StxImage",aliases:["Image","stx-image","stx-img"],render(e,i,t){let o=V(e,"src")||"",a=zo(o),c=V(e,"alt")||"",l=V(e,"width")||(a?String(a.source.width):void 0),u=V(e,"height")||(a?String(a.source.height):void 0),m=V(e,"sizes"),v=V(e,"srcset"),y=V(e,"densities"),h=V(e,"format"),C=Ho(o)||Ve(o)?.transparent===!0,x=V(e,"placeholder")||(a&&!C?"thumbhash":void 0),S=V(e,"placeholderColor")||"#e5e7eb",b=V(e,"provider"),w=V(e,"class")||V(e,"className")||"",A=V(e,"style")||"",k=V(e,"objectFit")||V(e,"fit"),R=V(e,"objectPosition")||V(e,"position"),T=V(e,"quality"),G=Ie(e,"lazy",!0),M=Ie(e,"preload",!1),F=Ie(e,"priority",!1),H=V(e,"loading"),E=V(e,"decoding")||"async",O=!!a||Ie(e,"picture",!1)||!!h,B=l?Number.parseInt(l):void 0,q=u?Number.parseInt(u):void 0,L=v||"",X="";if(a)L=a.sources[a.fallback.format]||"",X=m?Ge(m):"100vw";else if(!L&&m&&b&&b!=="local"&&b!=="static")L=Ke(o,Ze,b,h),X=Ge(m);else if(!L&&y){let I=y.split(/\s+/).map((_)=>Number.parseFloat(_.replace("x","")));L=Rn(o,I,B,b,h)}else if(m)X=Ge(m);let z=[];if(A)z.push(A);if(k)z.push(`object-fit:${k}`);if(R)z.push(`object-position:${R}`);if(B&&q)z.push(`aspect-ratio:${B}/${q}`);let D=[],ce=x==="blur"||x==="color"||x==="thumbhash";if(ce&&!C){let I=a?.placeholder?{dataUrl:a.placeholder.dataUrl,color:S}:Ve(o);if(I&&x==="color")z.push(`background-color:${I.color}`),D.push("backgroundColor");else if(I)z.push(`background-color:${I.color}`),z.push(`background-image:url(${I.dataUrl})`),z.push("background-size:cover"),z.push("background-repeat:no-repeat"),D.push("backgroundColor","backgroundImage");else{let _=Pn(B||16,q||9,S);z.push(`background-image:url(${_})`),z.push("background-size:cover"),z.push("background-repeat:no-repeat"),D.push("backgroundImage")}}else if(!ce&&x&&x!=="empty"&&x!=="none")z.push(`background-image:url(${n(x)})`),z.push("background-size:cover"),z.push("background-repeat:no-repeat"),D.push("backgroundImage");let $e=a?.fallback.url||ve(o,B,q,b,h),K=[];if(K.push(`src="${n(_r($e,"fetched"))}"`),K.push(`alt="${n(c)}"`),l)K.push(`width="${n(l)}"`);if(u)K.push(`height="${n(u)}"`);let le=H||(F||M?"eager":G?"lazy":"");if(le)K.push(`loading="${n(le)}"`);if(F)K.push('fetchpriority="high"');if(K.push(`decoding="${n(E)}"`),w)K.push(`class="${n(w)}"`);if(z.length>0)K.push(`style="${n(z.join(";"))}"`);if(L)K.push(`srcset="${n(_r(L,"fetched"))}"`);if(X)K.push(`sizes="${n(X)}"`);let te=new Set(["src","alt","width","height","lazy","sizes","srcset","placeholder","placeholderColor","class","className","style","objectFit","objectPosition","fit","position","format","provider","quality","densities","preload","priority","picture","loading","decoding"]);if(D.length>0){let I=typeof e.static.onload==="string"?e.static.onload:"",_=An(D)+(I?`;${I}`:"");K.push(`onload="${n(_)}"`),te.add("onload")}K.push(...se(e,te)),K.push(...ae(e,te));let Te=`<img ${K.join(" ")} />`,j="";if(M){let _=h==="webp"?"image/webp":h==="avif"?"image/avif":"";j=`<link rel="preload" as="image" href="${n($e)}"${_?` type="${_}"`:""}${L?` imagesrcset="${n(L)}"`:""}${X?` imagesizes="${n(X)}"`:""} />
|
|
3
|
-
`}if(O){let I=[];if(a)for(let _ of Vo(a))I.push(`<source type="image/${_.format}" srcset="${n(_.srcset)}"${X?` sizes="${n(X)}"`:""} />`);if(!a&&(h==="avif"||h==="auto")){let _=ve(o,B,q,b,"avif"),ee=L?Ke(o,Ze,b,"avif"):`${_}`;I.push(`<source type="image/avif" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}if(!a&&(h==="webp"||h==="auto")){let _=ve(o,B,q,b,"webp"),ee=L?Ke(o,Ze,b,"webp"):`${_}`;I.push(`<source type="image/webp" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}return`${j}<picture>
|
|
4
|
-
${I.join(`
|
|
5
|
-
`)}
|
|
6
|
-
${Te}
|
|
7
|
-
</picture>`}return`${j}${Te}`}};var At="/images/safe-image-default.svg";function ge(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var In=`<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'${At}';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>`,Ye={name:"SafeImage",aliases:["safe-image","safe-img"],render(e,i,t){let o=ge(e,"src")||"",a=ge(e,"alt")||"",c=ge(e,"fallback")||At,l=ge(e,"class")||ge(e,"className")||"",u=ge(e,"fallbackClassName")||"",m=[];if(m.push(`src="${n(o)}"`),m.push(`alt="${n(a)}"`),l)m.push(`class="${n(l)}"`);if(m.push(`data-fallback="${n(c)}"`),u)m.push(`data-fallback-class="${n(u)}"`);m.push('onerror="window.__stxSafeImageHandler(this)"');let v=new Set(["src","alt","fallback","class","className","fallbackClassName"]);m.push(...se(e,v)),m.push(...ae(e,v));let y=`<img ${m.join(" ")} />`,h=t.context;if(!h.__safeImageHandlerEmitted)return h.__safeImageHandlerEmitted=!0,`${In}${y}`;return y}};function Qe(e){return e.replace(/[;{}()]/g,"").replace(/url/gi,"")}function xe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function _e(e,i,t){let o=xe(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var et={name:"StxLoadingIndicator",aliases:["stx-loading-indicator"],render(e,i,t){let o=Qe(xe(e,"color")||"#6366f1"),a=Qe(xe(e,"initialColor")||xe(e,"initial-color")||""),c=Qe(xe(e,"height")||"3px"),l=_e(e,"duration",2000),u=_e(e,"throttle",200),m=_e(e,"zIndex",999999)||_e(e,"z-index",999999),v=a?`linear-gradient(to right, ${a}, ${o})`:o;return`
|
|
8
|
-
<div id="stx-loading-indicator" style="position:fixed;top:0;left:0;right:0;height:${c};background:${v};z-index:${m};transform:scaleX(0);transform-origin:left;transition:transform 0.1s ease-out,opacity 0.3s ease;opacity:0;pointer-events:none">
|
|
9
|
-
<div style="position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.4) 50%,transparent 100%);animation:stx-shimmer 1.5s infinite"></div>
|
|
10
|
-
</div>
|
|
11
|
-
<style>@keyframes stx-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}</style>
|
|
12
|
-
<script>
|
|
13
|
-
(function(){var el=document.getElementById('stx-loading-indicator'),p=0,l=!1,i=null;function u(v){p=Math.min(Math.max(v,0),100);if(el){el.style.opacity=p>0?'1':'0';el.style.transform='scaleX('+(p/100)+')'}}window.stxLoading={start:function(){l=!0;p=0;u(10);if(i)clearInterval(i);i=setInterval(function(){if(!l)return;var r=90-p,inc=Math.max(0.5,r*0.1);if(p<90)u(p+inc)},${u})},finish:function(){l=!1;if(i){clearInterval(i);i=null}u(100);setTimeout(function(){if(el)el.style.opacity='0';setTimeout(function(){p=0;if(el)el.style.transform='scaleX(0)'},300)},200)},set:function(v){u(v)},clear:function(){l=!1;p=0;if(i){clearInterval(i);i=null}if(el){el.style.opacity='0';el.style.transform='scaleX(0)'}}};document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a');if(!a)return;var h=a.getAttribute('href');if(!h||h.startsWith('http')||h.startsWith('#')||h.startsWith('mailto:')||h.startsWith('tel:')||a.target==='_blank')return;window.stxLoading.start()});window.addEventListener('popstate',function(){window.stxLoading.start()});window.addEventListener('load',function(){window.stxLoading.finish()})})();
|
|
14
|
-
</script>`}};function It(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function _n(e,i,t){let o=It(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var Pt={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},tt={name:"StxToast",aliases:["stx-toast"],render(e,i,t){let o=n(It(e,"position")||"top-right"),a=_n(e,"max",5),c=Pt[o]||Pt["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${o}" data-stx-toast-max="${a}" style="position:fixed;${c};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
|
|
15
|
-
<style>
|
|
16
|
-
@keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
|
|
17
|
-
@keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
|
|
18
|
-
@keyframes stx-toast-in-left{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}
|
|
19
|
-
@keyframes stx-toast-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-100%)}}
|
|
20
|
-
@keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
|
|
21
|
-
@keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
|
|
22
|
-
</style>`}};function Ee(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var _t={sm:"max-width:24rem",md:"max-width:32rem",lg:"max-width:42rem",xl:"max-width:56rem",full:"max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)"},nt={name:"StxModal",aliases:["stx-modal"],render(e,i,t){let o=Ee(e,"id");if(!o)return console.warn('[stx] <StxModal> requires an "id" prop'),"<!-- StxModal: missing id prop -->";let a=n(o),c=Ee(e,"size")||"md",l=Ee(e,"closeOnBackdrop")!=="false",u=Ee(e,"closeOnEscape")!=="false",m=_t[c]||_t.md;return`<div id="stx-modal-${a}" class="stx-modal-backdrop" data-stx-modal="${a}" data-close-backdrop="${l}" data-close-escape="${u}" style="display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);backdrop-filter:blur(2px);opacity:0;transition:opacity 0.2s ease" aria-modal="true" role="dialog">
|
|
23
|
-
<div class="stx-modal-panel" style="${m};width:100%;margin:1rem;border-radius:0.75rem;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden;transform:scale(0.95) translateY(8px);transition:transform 0.2s ease,opacity 0.2s ease;opacity:0;background:var(--stx-modal-bg,#fff);color:var(--stx-modal-text,#1f2937)">
|
|
24
|
-
<div style="padding:1.5rem">${i}</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<style>
|
|
28
|
-
@media(prefers-color-scheme:dark){[data-stx-modal]{--stx-modal-bg:#1f2937;--stx-modal-text:#f3f4f6}}
|
|
29
|
-
.stx-modal-backdrop[data-stx-modal-open]{display:flex!important;opacity:1}
|
|
30
|
-
.stx-modal-backdrop[data-stx-modal-open] .stx-modal-panel{transform:scale(1) translateY(0);opacity:1}
|
|
31
|
-
</style>`}};function pe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var Et={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},rt={name:"StxDrawer",aliases:["stx-drawer"],render(e,i,t){let o=pe(e,"id");if(!o)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let a=n(o),c=pe(e,"side")||"right",l=pe(e,"size")||"md",u=pe(e,"closeOnBackdrop")!=="false",m=pe(e,"closeOnEscape")!=="false",v=pe(e,"overlay")!=="false",y=Et[l]||Et.md,h=c==="left",C=h?"left:0":"right:0",x=h?"translateX(-100%)":"translateX(100%)",S=h?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${a}" class="stx-drawer-backdrop" data-stx-drawer="${a}" data-close-backdrop="${u}" data-close-escape="${m}" style="display:none;position:fixed;inset:0;z-index:99999;${v?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
|
|
32
|
-
<div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${C};width:${y};max-width:100vw;transform:${x};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
|
|
33
|
-
<div style="padding:1.5rem">${i}</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<style>
|
|
37
|
-
@media(prefers-color-scheme:dark){[data-stx-drawer]{--stx-drawer-bg:#1f2937;--stx-drawer-text:#f3f4f6}}
|
|
38
|
-
.stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
|
|
39
|
-
.stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
|
|
40
|
-
</style>`}};import{existsSync as En,readFileSync as Nn}from"fs";var Ne=new Map,Nt=new Set;function On(e){if(Nt.has(e))return;Nt.add(e),console.warn(`[stx] icon collection "${e}" is not installed, so its icons render as nothing. Install it with \`bun add -d @iconify-json/${e}\`.`)}function Bn(e){let i=process.cwd();for(let t of[`${i}/node_modules/@iconify-json/${e}/icons.json`,`${i}/pantry/@iconify-json/${e}/icons.json`,`${i}/node_modules/@iconify/json/json/${e}.json`,`${i}/pantry/@iconify/json/json/${e}.json`])if(En(t))return t;for(let t of[`@iconify-json/${e}/icons.json`,`@iconify/json/json/${e}.json`])try{return g.resolve(t)}catch{}return null}function Tn(e){if(Ne.has(e))return Ne.get(e);let i=Bn(e);if(!i)return On(e),null;try{let t=JSON.parse(Nn(i,"utf8"));return Ne.set(e,t),t}catch{return null}}function Dn(e,i,t,o){let a=[];if(i.rotate)a.push(`rotate(${i.rotate*90} ${t/2} ${o/2})`);if(i.hFlip)a.push(`translate(${t} 0) scale(-1 1)`);if(i.vFlip)a.push(`translate(0 ${o}) scale(1 -1)`);return a.length?`<g transform="${a.join(" ")}">${e}</g>`:e}function jn(e,i){let t=i,o=e.icons[t],a={hFlip:!1,vFlip:!1,rotate:0};for(let u=0;!o&&u<8;u++){let m=e.aliases?.[t];if(!m)return null;if(m.hFlip)a.hFlip=!a.hFlip;if(m.vFlip)a.vFlip=!a.vFlip;if(m.rotate)a.rotate=((a.rotate+m.rotate)%4+4)%4;t=m.parent,o=e.icons[t]}if(!o)return null;let c=o.width??e.width??24,l=o.height??e.height??24;return{body:Dn(o.body,a,c,l),width:c,height:l}}function me(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);if(e.static[i]!==void 0)return String(e.static[i]);if(e.clientReactive[i]!==void 0)return e.clientReactive[i];return}var it={name:"Icon",aliases:["icon","stx-icon"],render(e,i,t){let o=me(e,"name")??me(e,"icon");if(!o)return"<!-- Icon: missing name/icon prop -->";let a="lucide",c=o;if(o.includes(":")){let w=o.split(":");a=w[0],c=w[1]}let l=n(me(e,"size")||"24"),u=n(me(e,"color")||"currentColor"),m=n(me(e,"class")||""),v=n(me(e,"style")||""),y=Ne.get(a)??Tn(a);if(!y)return`<!-- Icon: collection "${a}" not loaded -->`;let h=jn(y,c);if(!h)return`<!-- Icon: "${c}" not found in ${a} -->`;let C=`0 0 ${h.width} ${h.height}`,x=h.body;if(u!=="currentColor")x=x.replace(/currentColor/g,u);let S=m?` class="${m}"`:"",b=v?` style="${v}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="${C}" fill="none"${S}${b}>${x}</svg>`}};function Ot(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}function Bt(e,i){let t=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${i}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),o=e.match(t);if(!o)return{region:null,rest:e};return{region:o[2],rest:e.replace(o[0],"")}}var at={name:"Suspense",aliases:["suspense"],render(e,i,t){let o=Bt(i,"fallback"),a=o.rest,c=Bt(a,"error"),l=c.rest,u=o.region??Ot(e,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',m=c.region??Ot(e,"errorFallback","error-fallback")??'<div class="stx-suspense-error">Something went wrong.</div>';return`<div data-stx-suspense><div data-stx-suspense-fallback>${u}</div><div data-stx-suspense-error hidden>${m}</div><div data-stx-suspense-content hidden>${l}</div></div>`}};function Oe(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}var ct={name:"TransitionGroup",aliases:["transition-group"],render(e,i,t){let o=(Oe(e,"name")||"v").replace(/["'<>]/g,""),a=(Oe(e,"tag")||"div").replace(/[^a-z0-9-]/gi,"")||"div",c=Oe(e,"class"),l=Oe(e,"id"),u=[`data-stx-transition-group="${o}"`,c?`class="${c}"`:"",l?`id="${l}"`:""].filter(Boolean).join(" ");return`<${a} ${u}>${i}</${a}>`}};function Tt(e=de){e.registerBuiltin(Xe),e.registerBuiltin(Je),e.registerBuiltin(Ye),e.registerBuiltin(et),e.registerBuiltin(tt),e.registerBuiltin(nt),e.registerBuiltin(rt),e.registerBuiltin(it),e.registerBuiltin(at),e.registerBuiltin(ct)}var Dt=new Map;function Mn(e){let i=Dt.get(e.source);if(!i)i=new RegExp(`(${e.source})(?![\\w.:-])`,"y"),Dt.set(e.source,i);return i}var jt=new WeakMap;function Mt(e){let i=jt.get(e);if(!i)i=new Set([...e].map((o)=>o.toLowerCase())),jt.set(e,i);let t=i;return(o)=>!/[a-z]/.test(o)&&t.has(o.toLowerCase())}function Ln(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function Lt(e,i,t){let o=[],a=0,c=typeof t==="function"?t:t?(l)=>t.has(l.toLowerCase()):void 0;while(a<e.length){let l=e.indexOf("<",a);if(l===-1)break;let u=Mn(i);u.lastIndex=l+1;let m=u.exec(e);if(!m){a=l+1;continue}let v=m[1];if(c&&c(v)){let w=l+1+v.length;while(w<e.length&&e[w]!==">")w++;a=w+1;continue}let y=l+1+v.length,h=null,C=y,x=-1,S=!1;while(y<e.length){let w=e[y];if(h){if(w==="\\"&&y+1<e.length){y+=2;continue}if(w===h)h=null;y++;continue}if(w==='"'||w==="'"){h=w,y++;continue}if(w==="/"&&y+1<e.length&&e[y+1]===">"){x=y+2,S=!0;break}if(w===">"){x=y+1;break}y++}if(x===-1){a=l+1;continue}let b=e.slice(C,S?x-2:x-1).trim();if(S)o.push({fullMatch:e.slice(l,x),tagName:v,attributes:b,content:"",startIndex:l,endIndex:x,isSelfClosing:!0}),a=x;else{let w=`<${v}`,A=`</${v}>`,k=1,R=x,T=-1;while(k>0&&R<e.length){let F=e.indexOf(w,R),H=e.indexOf(A,R);if(H===-1)break;if(F!==-1&&F<H){let E=e[F+w.length];if(E===" "||E===">"||E==="/"||E===`
|
|
41
|
-
`||E==="\t"){let O=Ln(e,F+w.length);if(e[O-1]!=="/")k++;R=O+1}else R=F+w.length}else{if(k--,k===0){T=H;break}R=H+A.length}}if(T===-1){a=x;continue}let G=e.slice(x,T),M=T+A.length;o.push({fullMatch:e.slice(l,M),tagName:v,attributes:b,content:G,startIndex:l,endIndex:M,isSelfClosing:!1}),a=M}}return o}function lt(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/'/gi,"'").replace(/&/g,"&")}function zt(e,i){try{let t=Buffer.from(e,"base64").toString("utf8");return JSON.parse(t)}catch{}try{let t=e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");return JSON.parse(t)}catch(t){if(i?.debug)console.error("Error decoding __stx_ prop:",t);return e}}function Be(e,i){let t=0,o="",a=i;while(a<e.length){let c=e[a];if(o){if(c==="\\")a++;else if(c===o)o=""}else if(c==='"'||c==="'"||c==="`")o=c;else if(c==="{")t++;else if(c==="}"){if(t--,t===0)return e.slice(i,a+1)}a++}return e.slice(i)}function Ft(e){let i=e.trim();if(!i.startsWith("{")||!i.endsWith("}"))return null;if(Be(i,0).length!==i.length)return null;return i.slice(1,-1).trim()}function Ut(e){let i=[],t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o&&e[t]!==l){if(e[t]==="\\"&&t+1<o)t++,c+=e[t];else c+=e[t];t++}if(t<o)t++}else if(e[t]==="{")c=Be(e,t),t+=c.length;else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i.push({name:a,value:c})}else i.push({name:a,value:!0})}return i}var zn=new Set(["disabled","checked","readonly","required","autofocus","autoplay","controls","default","defer","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","reversed","selected"]),Fn=new Set([":for","x-for","v-for","@for"]),Un=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Wn(e){return ut(e).map((i)=>[i.start,i.end])}function ut(e){let i=[],t=new Map;for(let o of gn(e)){let a=o.name.toLowerCase();if(o.closing){let v=t.get(a)?.pop();if(v)v.end=o.end;continue}let l=/(?::for|x-for|v-for|@for)\s*=/.test(o.attributes)?Ut(o.attributes).find((v)=>Fn.has(v.name)):void 0,u=typeof l?.value==="string"?l.value:null,m=u!==null?{start:o.start,end:o.end,names:Y(u),tag:a}:null;if(m)i.push(m);if(!o.selfClosing&&!Un.has(a)){let v=t.get(a);if(!v)v=[],t.set(a,v);v.push(m)}}return i}function Wt(e){if(typeof e==="string")return e;if(Array.isArray(e))return e.filter(Boolean).map((i)=>Wt(i)).join(" ");if(e&&typeof e==="object")return Object.entries(e).filter(([,i])=>i).map(([i])=>i).join(" ");return e?String(e):""}function fc(e,i){if(!/:[\w-]+=/.test(e))return e;let t=e,o=/<(script|style)\b[^>]*>[\s\S]*?<\/\1>/gi,a=[],c;while((c=o.exec(e))!==null)a.push([c.index,c.index+c[0].length]);a.push(...Wn(e));let l=new Set([...st(i),...Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]]);function u(h){return a.some(([C,x])=>h>=C&&h<x)}let m=[],v=new Map,y=256;for(let h of gn(t)){if(h.closing||u(h.start))continue;let C=h.attributes.trimEnd();if(!C||!C.includes(":"))continue;let x=/(?:^|\s)data-native(?:\s|=|$)/i.test(C.replace(/"[^"]*"|'[^']*'/g,"")),S=/\s:([a-zA-Z_][\w-]*)\s*=\s*"([^"]*)"/g,b,w=C,A=!1;while((b=S.exec(C))!==null){if(Cr(C,b.index,!0)?.kind==="attribute")continue;let k=b[1],R=b[2];if(wl(k))continue;if(N(R,l))continue;if(R.includes("()")&&!R.includes(".get(")||R.includes("$store")||R.includes("$ref"))continue;try{let T=Object.keys(i),G=Object.values(i),M=R.match(/^([a-zA-Z_$][\w$]*)/);if(M&&!T.includes(M[1])&&!["true","false","null","undefined","Math","JSON","String","Number","Array","Object","Date","parseInt","parseFloat"].includes(M[1]))continue;let F=JSON.stringify([T,R]),H=v.get(F);if(!H){if(H=Function(...T,`return (${R})`),v.size>=y)v.clear();v.set(F,H)}let E=H(...G);if(k==="class"){let O=W(Wt(E));if(O){let B=w.match(/\sclass="([^"]*)"/);if(B)w=w.replace(B[0],()=>` class="${B[1]} ${O}"`);else w=w.replace(b[0],()=>` class="${O}"`)}else w=w.replace(b[0],"");A=!0;continue}if(zn.has(k)){if(E)w=w.replace(b[0],` ${k}`);else w=w.replace(b[0],"");A=!0;continue}if(E===null||E===void 0||E===!1)w=w.replace(b[0],"");else{let O=x&&typeof E==="object"?JSON.stringify(E):String(E),B=kn(k,O);w=w.replace(b[0],()=>` ${k}="${B}"`)}A=!0}catch(T){if(T instanceof ie)throw T;continue}}if(A){let k=h.selfClosing?" /":"",T=`<${h.name}${w}${k}>`;m.push({start:h.start,end:h.end,replacement:T})}}if(m.length>0){let h=Array(m.length*2+1),C=0;for(let x=0;x<m.length;x++){let{start:S,end:b,replacement:w}=m[x];h[x*2]=t.slice(C,S),h[x*2+1]=w,C=b}h[m.length*2]=t.slice(C),t=h.join("")}return t}import Ht from"fs";import qt from"path";var Xt=!1;function Hn(e,i,t,o=!1,a=new Set){let c={static:{},staticNames:{},serverDynamic:{},serverDynamicNames:{},clientReactive:{},events:{}},l=new Set(Array.isArray(i.__stx_client_signal_names)?i.__stx_client_signal_names:[]),u=(h)=>{if(l.size===0)return!1;let C=s(h),x=C.match(/^\s*[!+~(-]*\s*([a-zA-Z_$][\w$]*)/)?.[1];if(x&&l.has(x))return!0;for(let S of l){let b=S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(?:^|[^\\w$.])${b}\\s*\\(`).test(C))return!0}return!1},m=new Set(vl),v=(h)=>{if(!h.includes("-")||h.startsWith("@")||h.startsWith(":")||h.startsWith("x-")||h.startsWith("__"))return h;if(h.startsWith("aria-")||h.startsWith("data-"))return h;return h.replace(/-([a-z0-9])/g,(C,x)=>x.toUpperCase())},y=(h,C)=>{let x=v(h);if(c.static[x]=C,x!==h)c.staticNames[x]=h};for(let[h,C]of Object.entries(e)){let x=h.startsWith("x-")&&!m.has(h)&&!h.startsWith("x-bind:")&&!h.startsWith("x-on:")?`:${h.slice(2)}`:h;if(x.startsWith("@")){c.events[x]=C;continue}if(x.startsWith("__stx_")){let S=v(x.slice(6));c.serverDynamic[S]=zt(C,t);continue}if(x.startsWith(":")){let S=v(x.slice(1)),b=C===re?S:C;if(S==="if"||S==="for"||S==="show"){c.clientReactive[S]=b;continue}if(o){c.clientReactive[S]=b;continue}if(N(b,a)){c.clientReactive[S]=b;continue}if(u(b)){c.clientReactive[S]=b;continue}try{if(!f(b)){if(t.debug)console.error(`Unsafe expression in :${S} binding: ${b}`);c.clientReactive[S]=b;continue}let w=Object.keys(i),A=new Set(["true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","if","else"]),k=new Set(Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]);if(ot(b).some((M)=>!A.has(M)&&!w.includes(M)&&(!(M in globalThis)||k.has(M)))){c.clientReactive[S]=b;continue}let G=d(b,w)(...Object.values(i));if(c.serverDynamic[S]=G,S!==x.slice(1)&&c.serverDynamicNames)c.serverDynamicNames[S]=x.slice(1)}catch{c.clientReactive[S]=b}continue}if(typeof C==="string"&&C.includes("{{")&&C.includes("}}")){let S=Xn(C,a);if(S!==null){c.clientReactive[v(x)]=S;continue}let b=C.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(b)try{let w=b[1];if(f(w)){let k=d(w,Object.keys(i))(...Object.values(i));y(x,k!=null?String(k):"")}else{if(t.debug)console.error(`Unsafe expression in ${x}: ${w}`);y(x,C)}}catch(w){if(t.debug)console.error(`Error evaluating expression for ${x}:`,w);y(x,C)}else{let w=C,A=/\{\{\s*([\s\S]+?)\s*\}\}/g,k;while((k=A.exec(C))!==null)try{let R=k[1];if(!f(R)){if(t.debug)console.error(`Unsafe expression in ${x}: ${R}`);continue}let G=d(R,Object.keys(i))(...Object.values(i));w=w.replace(k[0],String(G??""))}catch(R){if(t.debug)console.error(`Error evaluating expression in ${x}:`,R)}y(x,w)}continue}y(x,C===re?"true":lt(C))}return c}var ft=new Set;function Fh(){ft.clear()}function qn(e,i){let t=`${i}\x00${e}`;if(ft.has(t))return;ft.add(t),console.warn(`[stx] <${e}> in ${i} is inside a <template :for>, so its props and slot expressions will not see the loop variables and render empty. Put the directive on the element the loop repeats instead -- <tr :for="..."> or <span :for="..." class="contents"> -- which binds correctly.`)}function Xn(e,i){if(i.size===0)return null;let t=/\{\{\s*([\s\S]+?)\s*\}\}/g,o=[...e.matchAll(t)];if(!o.some((u)=>N(u[1],i)))return null;let a=e.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(a&&o.length===1)return a[1];let c="",l=0;for(let u of o)c+=e.slice(l,u.index).replace(/[`\\$]/g,(m)=>`\\${m}`),c+=`\${${u[1]}}`,l=u.index+u[0].length;return c+=e.slice(l).replace(/[`\\$]/g,(u)=>`\\${u}`),`\`${c}\``}var Vn=[[/@if\s*\(/,"@endif"],[/@unless\s*\(/,"@endunless"]];function Zn(e,i,t){if(!e.includes("@"))return e;if(!Vn.some(([a,c])=>a.test(e)&&e.includes(c)))return e;try{return oe(e,i,t)}catch{return e}}function he(e){let i={},t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o){let u=e[t];if(u==="\\"&&t+1<o){t++,c+=e[t],t++;continue}if(u===l){t++;break}c+=u,t++}}else if(e[t]==="{"){c=Be(e,t),t+=c.length;let l=Ft(c);if(l!==null){i[`:${a}`]=l;continue}}else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i[a]=c}else i[a]=re}return i}function Vt(e){return Object.entries(e).map(([i,t])=>t===re?i:`${i}="${Gn(t)}"`).join(" ")}function Gn(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Kn(e){let i=new Set,t=/<([A-Z][A-Za-z0-9]*|stx-[a-z0-9-]+)\b[^>]*>/g,o;while((o=t.exec(e))!==null){let a=o[1];if(de.isBuiltin(a))i.add(a)}return[...i].sort()}async function Bf(e,i,t,o,a){if(!/import\s/.test(e))return e;if(!i.__importedComponents)i.__importedComponents=new Map;let c=i.__importedComponents,l=qt.dirname(t),u=[],m=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;for(let h of e.matchAll(m)){let[C,x,S]=h,b=/import\s+(?:(\{[^}]*\})|([A-Za-z_$][\w$]*))\s+from\s+['"]([^'"]+)['"]\s*;?\s*\n?/g,w=S,A,k=[];while((A=b.exec(S))!==null){let[R,T,G,M]=A,F=null,H=null;if(M.startsWith(".")||M.startsWith("/")){let B=qt.resolve(l,M);if(B.endsWith(".stx"))H=B;else{let q=`${B}.stx`;try{if(Ht.statSync(q).isFile())H=q}catch{try{if(Ht.statSync(B).isDirectory())F=B}catch{}}}}else F=Ls(M,l);if(!F&&!H)continue;let E=!1,O=(B,q)=>{c.set(B,q),c.set(B.toLowerCase(),q);let L=B.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();c.set(L,q),a.add(q)};if(G&&H)O(G,H),E=!0;else if(T){let B=T.slice(1,-1).split(",").map((L)=>L.trim()).filter(Boolean).map((L)=>{let X=L.match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(X)return{source:X[1],local:X[2]};return{source:L,local:L}}),q=F?xr(F):null;for(let{source:L,local:X}of B){let z=null;if(H)z=H;else if(q)z=q.get(L)??q.get(L.toLowerCase())??q.get(L.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())??null;if(z)O(X,z),E=!0}}if(E)k.push({start:A.index,end:A.index+R.length})}if(k.length===0)continue;for(let R=k.length-1;R>=0;R--)w=w.slice(0,k[R].start)+w.slice(k[R].end);u.push({start:h.index,end:h.index+C.length,value:`<script${x}>${w}</script>`})}if(u.length===0)return e;let v=[],y=0;for(let h of u)v.push(e.slice(y,h.start),h.value),y=h.end;return v.push(e.slice(y)),v.join("")}async function Jn(e,i,t,o,a){let c=e;if(!i.__importedComponents)i.__importedComponents=new Map;let l=i.__importedComponents,u=/@import\s*\(\s*([^)]+)\s*\)/g,m;while((m=u.exec(c))!==null){let[v,y]=m,h=y.split(",").map((C)=>C.trim().replace(/^['"]|['"]$/g,"")).filter((C)=>C.length>0);for(let C of h){let x=C.split("/"),b=x[x.length-1].replace(/\.stx$/,""),w=b.includes("-")?b.split("-").map((R)=>R.charAt(0).toUpperCase()+R.slice(1)).join(""):b.charAt(0).toUpperCase()+b.slice(1),A=null,k=js(C,t,o);for(let R of k)try{if(await Bun.file(R).exists()){A=R;break}}catch{}if(A){l.set(w,A),l.set(b,A),l.set(b.toLowerCase(),A);let R=w.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();if(l.set(R,A),a.add(A),o.debug)console.log(`Imported component: ${w} -> ${A}`)}else if(o.debug)console.warn(`Could not resolve imported component: ${C}`)}c=c.replace(v,""),u.lastIndex=0}return c}async function Yn(e,i,t,o,a){let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let u=i.__processedComponents,m=/@component\s*\(/g,v;while((v=m.exec(c))!==null){let y=v.index,h=y+v[0].length-1,C=1,x=h+1;while(x<c.length&&C>0){if(c[x]==="(")C++;else if(c[x]===")"){if(C--,C===0)break}x++}if(C!==0)break;let S=c.substring(h+1,x),b=x+1,w=S.match(/^\s*['"]([^'"]+)['"]/);if(!w){m.lastIndex=b;continue}let A=w[1],k,R=S.slice(w[0].length),T=R.match(/^\s*,\s*/);if(T)k=R.slice(T[0].length).trim();let G={};if(k)try{G=P(k,i)}catch(B){let q=B instanceof Error?B.message:String(B);c=c.replace(c.substring(y,b),`[Error parsing component props: ${q}]`);continue}let M="",F=b,E=c.substring(b).match(/^([\s\S]*?)@endcomponent/);if(E)M=E[1].trim(),F=b+E[0].length;let O=await ze(A,G,M,l,i,t,o,u,a);c=c.substring(0,y)+O+c.substring(F),m.lastIndex=0}return c}async function Qn(e,i,t,o,a){if(!e)return e;let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let u=i.__processedComponents,m=nr(c);if(m.size>0){let b=Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[];i.__stx_client_declared_names=[...new Set([...b,...m])]}let v=J(c);c=v.output;let y=st(i);return c=await S(c,/[a-z][a-z0-9]*-[a-z0-9-]*/,!1),c=await S(c,/[A-Z][a-zA-Z0-9]*/,!0,Mt(Er)),c=await S(c,/[a-z][a-z0-9]*/,!1,Er),c=v.restore(c),c;async function S(b,w,A,k){if(!b)return b;let R=b,T=Lt(R,w,k),G=ut(R),M=new Map;for(let E=T.length-1;E>=0;E--){let O=T[E],B=A?U(O.tagName):O.tagName,q=he(Zn(O.attributes,i,t)),L=G.filter(({start:I,end:_})=>O.startIndex>=I&&O.startIndex<_);if(L.some((I)=>I.tag==="template"))qn(O.tagName,t);let X=L.length>0,z=new Set(y);for(let I of L)for(let _ of I.names)z.add(_);let D=Hn(q,i,o,X,z);if(typeof D.clientReactive.for==="string")for(let I of Y(D.clientReactive.for))z.add(I);let ce=de.getBuiltin(O.tagName),$e=ce?await Rr(O.tagName,l,i,t,o):!1,K=O.tagName==="Image"&&Bs([...Object.keys(D.static),...Object.keys(D.serverDynamic),...Object.keys(D.clientReactive)],Object.keys(D.events),{...D.static,...D.serverDynamic})&&(o._pluginComponentDirs??[]).some((I)=>xr(I).has("Image"));if(ce&&!$e&&!K){let I={context:i,filePath:t,options:o,dependencies:a},_=ce.render(D,O.content,I);if(Object.keys(D.events).length>0){let ee=Vt(D.events);_=_.replace(/^(\s*<[a-zA-Z][a-zA-Z0-9-]*)/,`$1 ${ee}`)}if(Object.keys(D.clientReactive).length>0)_=Zt(_,D.clientReactive);M.set(E,_);continue}if(!A&&O.tagName.includes("-")&&!await Rr(B,l,i,t,o))continue;let le={};for(let[I,_]of Object.entries(D.static))le[I]=_;for(let[I,_]of Object.entries(D.serverDynamic))le[I]=_;let te={declaredProps:new Set,consumedProps:new Set,reactiveProps:Object.keys(D.clientReactive),events:Object.keys(D.events)},j=await ze(B,le,v.restore(O.content),l,i,t,o,u,a,[...z],te,O.tagName);if(j=er(j,D,te.declaredProps,te.consumedProps,o._nativeHostAttrs),o._nativeHostAttrs){let I=te.reactiveProps.filter((ne)=>!te.consumedProps.has(ne)&&!["if","for","show","key","ref"].includes(ne)).map(U),_=dt(j,!0);if(I.length&&_){if(!Object.hasOwn(he(j.slice(_.insertPos,_.tagEnd)),"data-stx-native-host-root"))j=j.slice(0,_.insertPos)+' data-stx-native-host-root="true"'+j.slice(_.insertPos);let ne=we(j);j=j.slice(0,ne.insertPos)+` data-stx-native-forward="${I.join(" ")}"`+j.slice(ne.insertPos)}let ee=dt(j,!0);if(ee){let ne=he(j.slice(ee.insertPos,ee.tagEnd)),Se=we(j),Kt=he(j.slice(Se.insertPos,Se.tagEnd));if(Object.hasOwn(ne,"data-stx-native-host-root")&&!Object.hasOwn(Kt,"data-stx-native-host-owner"))j=j.slice(0,Se.insertPos)+" data-stx-native-host-owner"+j.slice(Se.insertPos)}}if(Object.keys(D.events).length>0){let I=we(j);if(I){let _=Vt(D.events),ee=Object.keys(D.events).map((ne)=>ne.replace(/^@/,"").split(".")[0]).join(" ");j=j.substring(0,I.insertPos)+` data-stx-parent-events="${ee}" ${_}`+j.substring(I.insertPos)}}if(Object.keys(D.clientReactive).length>0)j=Zt(j,D.clientReactive);M.set(E,j)}if(M.size===0)return R;let F="",H=0;for(let E=0;E<T.length;E++){let O=M.get(E);if(O===void 0)continue;F+=R.slice(H,T[E].startIndex),F+=O,H=T[E].endIndex}return F+=R.slice(H),F}}function Zt(e,i){let t=new Set(["if","for"]),o=new Set(["show"]),a=Object.entries(i).filter(([y])=>!t.has(y)),c=a.filter(([y])=>!o.has(y)).map(([y])=>U(y)).join(" "),l=e,u=a.length>0?we(l):null;if(u){let y=a.map(([C,x])=>`:${U(C)}="${x.replace(/"/g,""")}"`).join(" "),h=c?` data-stx-parent-bindings="${c}"`:"";l=l.substring(0,u.insertPos)+`${h} ${y}`+l.substring(u.insertPos)}let m=i.if;if(m)l=`<template :if="${m.replace(/"/g,""")}">${l}</template>`;let v=i.for;if(v){let y=i.key,h=y?` :key="${y.replace(/"/g,""")}"`:"";l=`<template :for="${v.replace(/"/g,""")}"${h}>${l}</template>`}return l}function er(e,i,t=new Set,o=new Set,a=!1){let c=dt(e,a);if(!c)return e;let l=e.slice(c.insertPos,c.tagEnd),u=i.serverDynamic.class??i.static.class;if(a&&typeof u==="string"&&u&&!o.has("class")){let S=/(^|\s)class\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i,b=S.test(l)?l.replace(S,(w,A,k,R,T)=>`${A}class="${n(`${lt(k??R??T)} ${u}`)}"`):` class="${n(u)}"${l}`;e=e.slice(0,c.insertPos)+b+e.slice(c.tagEnd),c.tagEnd+=b.length-l.length,l=b}let m=a||/\bdata-native(?:\s|=)/i.test(l),v=m?o:t,y=new Set(Object.keys(he(l))),h=new Set(["class","className"]);for(let S of Object.keys(i.static)){let b=i.staticNames[S]??S;if(y.has(b)||v.has(S)||!m&&!qe(b))h.add(S)}for(let S of Object.keys(i.serverDynamic)){let b=i.serverDynamicNames?.[S]??S;if(y.has(b)||v.has(S)||!m&&!qe(b))h.add(S)}let C=[];if(m){for(let[S,b]of Object.entries(i.static)){if(h.has(S)||b!==!0&&b!==re)continue;h.add(S),C.push(`${n(i.staticNames?.[S]??S)}="true"`)}for(let[S,b]of Object.entries(i.serverDynamic)){if(h.has(S)||b!==!0)continue;h.add(S),C.push(`${n(i.serverDynamicNames?.[S]??S)}="true"`)}}let x=[...se(i,h),...ae(i,h),...C];if(m){for(let[S,b]of Object.entries(i.serverDynamic)){if(h.has(S)||b!==!1)continue;let w=i.serverDynamicNames?.[S]??S;x.push(`${n(w)}="false"`)}for(let[S,b]of Object.entries(i.serverDynamic)){if(h.has(S)||b===null||typeof b!=="object")continue;let w=JSON.stringify(b);if(w!==void 0){let A=i.serverDynamicNames?.[S]??S;x.push(`${n(A)}="${n(w)}"`)}}}if(x.length===0)return e;return`${e.slice(0,c.insertPos)} ${x.join(" ")}${e.slice(c.insertPos)}`}function we(e){let i=Gt(e,0);if(i)return i;let t=/<([a-zA-Z][a-zA-Z0-9-]*)\b[^>]*\bdata-stx-scope(?:\s|=|>)/i.exec(e);if(t)return{insertPos:t.index+1+t[1].length,tagEnd:gt(e,t.index+1+t[1].length)};return null}function dt(e,i=!1){let t=we(e);if(!t)return null;let o=e.slice(t.insertPos,t.tagEnd),a=/\bdata-stx-component-wrapper(?:\s|=|>|$)/i.test(o)?Gt(e,t.tagEnd+1):t;return a&&i?tr(e,a)??a:a}function tr(e,i){if(!e.includes("data-stx-native-host-root"))return null;let t=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),o=e.lastIndexOf("<",i.insertPos),a=0,c;while(o>=0&&o<e.length){if(e.startsWith("<!--",o)){let y=e.indexOf("-->",o+4);if(y<0)return null;o=e.indexOf("<",y+3);continue}let l=/^<(\/?)([a-z][\w-]*)\b/i.exec(e.slice(o));if(!l){o=e.indexOf("<",o+1);continue}let u=l[2].toLowerCase(),m=o+l[0].length,v=gt(e,m);if(l[1]){if(a--,c!==void 0&&a<c)c=void 0;if(a<=0)return null}else if(u==="script"||u==="style"){let y=new RegExp(`</${u}\\s*>`,"gi");if(y.lastIndex=v+1,!y.exec(e))return null;o=e.indexOf("<",y.lastIndex);continue}else{let y=he(e.slice(m,v)),h=a>0&&(Object.hasOwn(y,"data-stx-component-wrapper")||Object.hasOwn(y,"data-stx-native-host-owner"));if(c===void 0&&!h&&Object.hasOwn(y,"data-stx-native-host-root"))return{insertPos:m,tagEnd:v};if(!t.has(u)&&e[v-1]!=="/"){if(a++,c===void 0&&h)c=a}else if(a===0)return null}o=e.indexOf("<",v+1)}return null}function Gt(e,i){let t=i;while(t<e.length){let o=e.slice(t),a=o.match(/^\s+/);if(a){t+=a[0].length;continue}if(o.startsWith("<!--")){let u=e.indexOf("-->",t+4);if(u===-1)return null;t=u+3;continue}let c=o.match(/^<(script|style)\b[^>]*>/i);if(c){let u=`</${c[1].toLowerCase()}>`,m=e.toLowerCase().indexOf(u,t+c[0].length);if(m===-1)return null;t=m+u.length;continue}let l=o.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(?:\s|>|\/)/);if(!l)return null;return{insertPos:t+1+l[1].length,tagEnd:gt(e,t+1+l[1].length)}}return null}function gt(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function nr(e){let i=new Set;for(let t of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi)){let o=t[1];if(!/\bclient\b/.test(o)||/\bserver\b/.test(o))continue;for(let a of gi(t[2]))i.add(a);for(let a of t[2].matchAll(/^\s*import\s+(?:type\s+)?(?:([\w$]+)\s*,?\s*)?(?:\{([^}]*)\}|\*\s+as\s+([\w$]+))?\s*from\s/gm)){if(a[1])i.add(a[1]);if(a[3])i.add(a[3]);for(let c of(a[2]??"").split(",")){let l=c.replace(/^\s*type\s+/,"").split(/\s+as\s+/).pop().trim();if(/^[A-Za-z_$][\w$]*$/.test(l))i.add(l)}}}return i}async function ms(e,i,t,o,a){if(!Xt)Tt(de),Xt=!0;let c=await Bf(e,i,t,o,a);c=await Jn(c,i,t,o,a),c=await Yn(c,i,t,o,a);let l=[];for(let u=0;u<3;u++){let m=l.length,v=fe(c,De,(h,C)=>`\x00STX_COMPONENT_COMMENT_${m+C}\x00`,`STX_COMPONENT_COMMENT:${m}`);l.push(...v.tokens);let y=c;if(c=await Qn(v.output,i,t,o,a),c===y)break}if(l.length>0)c=c.replace(/\x00STX_COMPONENT_COMMENT_(\d+)\x00/g,(u,m)=>l[Number(m)]??"");if(o.debug){let u=Kn(c);if(u.length>0)console.warn(`[stx] ${t}: unresolved component tag(s) after render passes: ${u.join(", ")}. Check nested component output for malformed root tags or recursive component markup.`)}return c}
|
|
42
|
-
export{zo,Ho,Vo,jh,gs,Bh,fc,Fh,Bf,ms};
|
package/dist/chunk-te1wksa0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mh,jf,Ye,pc,Lh,us,ds,ps}from"./chunk-f2zgh4xr.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-cww1zk8y.js";import"./chunk-he9dzchk.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Lh as clearOnceStore,pc as onceStore,Ye as partialsCache,us as processIncludes,ds as processStackPushDirectives,ps as processStackReplacements,Mh as resetUnscopedSignalWarnings,jf as topLevelElements};
|
package/dist/chunk-v11hvvxc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{dh,So,ph,fh,gh,mh}from"./chunk-9mbyhepc.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{mh as clearStoreCache,dh as getStoreScript,gh as getStoreScriptFor,fh as pageStoresAll,So as storesRead,ph as storesReadInFiles};
|
package/dist/chunk-vasvns9e.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lm}from"./chunk-3m5v3ynh.js";import"./chunk-ke76eaat.js";import"./chunk-ga650crj.js";import"./chunk-rwc322gq.js";import"./chunk-54p27ney.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{lm as buildForProduction};
|
package/dist/chunk-vdb3p2v3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oi,ly,uy,ml,Ue,Tg,to,dy,py,fy,gy,my,hy,yy,by,wy}from"./chunk-eg2p1cyw.js";export{hy as applyHead,dy as definePageMeta,Oi as getHead,ly as getPageMeta,Ue as mergeHeadConfigs,yy as processHeadDirective,wy as processMetaDirective,by as processTitleDirective,my as renderBodyAttrs,fy as renderHead,gy as renderHtmlAttrs,uy as resetHead,to as seoMetaToHeadConfig,ml as useHead,py as usePageTitle,Tg as useSeoMeta,py as useTitle};
|
package/dist/chunk-vm2y05sr.js
DELETED
package/dist/chunk-x2wn6mpd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{m,wi,Yc,Zc,gg,mg,hg,yg,bg,Ks,wg,Be,Z,Fe,vg,Rr,xg,tl,nl,Si,ze,r,xn,rl,h,ge,ry}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{nl as SIGNAL_COMPOSABLE_CALL,ge as clearComponentCache,Si as componentClientSignalNames,wi as convertToCommonJS,h as createDetailedErrorMessage,bg as extractDirectiveNames,Yc as extractScriptFromTemplate,m as extractVariables,r as fileExists,ry as getComponentCacheStats,mg as getPositionInfo,Z as getSharedTranspiler,rl as getSourceLineInfo,yg as hasDirectives,Zc as hasVariables,xg as isHydrateTrigger,wg as isJavaScriptScript,ze as renderComponentWithSlot,xn as resolveTemplatePath,vg as scopeOnRootElement,Ks as scopeSequenceKey,Be as shouldTranspileTypeScript,tl as slotContentHasExpressions,Fe as transpileTypeScript,Rr as userComponentFileExists,hg as validateDirective,gg as validateTemplate};
|
package/dist/chunk-x45mp78q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{da,om,pa,im,Vl,Ul,am,cm}from"./chunk-056rsqc6.js";import"./chunk-y6wbbmp3.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{Ot,sg}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{da as buildScriptVirtualFile,om as buildVirtualSource,Ot as extractScriptBlocks,sg as extractTemplateExpressions,Vl as findRuntimeTypeDeclarations,Ul as findStxModuleDeclarations,cm as formatTypecheckDiagnostics,im as sourcePathFor,am as typecheckStxFiles,pa as virtualPathFor};
|
package/dist/chunk-xa2qfe51.js
DELETED
package/dist/chunk-xsmyhp5f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{F,Kf,ei,a,O,Gh,Jh}from"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{O as config,F as defaultConfig,Gh as defineStxConfig,ei as discoverConfig,a as loadStxConfig,Kf as resolveStxDirectories,Jh as validateConfig};
|
package/dist/chunk-zecffe6a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{or,i}from"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import{ve}from"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{Ne,Ws,qs}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{or as buildModulesTag,ve as injectRouterScript,i as processDirectives,Ws as processJsonDirective,qs as processOnceDirective,Ne as validateClientScript};
|