@stacksjs/stx 0.2.631 → 0.2.633
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-hc1m2psz.js → chunk-0hs8jgw5.js} +2 -2
- package/dist/chunk-0mgtrbaa.js +2 -0
- package/dist/{chunk-myhxapnn.js → chunk-0qt1887j.js} +2 -2
- package/dist/{chunk-b5cv9xp7.js → chunk-0xc6rncm.js} +206 -206
- package/dist/chunk-1tpr8d8n.js +2 -0
- package/dist/chunk-20kjbf3h.js +2 -0
- package/dist/{chunk-776f05vk.js → chunk-236twqn4.js} +3 -3
- package/dist/chunk-27784ceh.js +20 -0
- package/dist/{chunk-nz6bzffm.js → chunk-2bxsc7gf.js} +4 -4
- package/dist/chunk-3gcg3gvy.js +2 -0
- package/dist/{chunk-1ma56c2h.js → chunk-3kkf43fv.js} +2 -2
- package/dist/chunk-3wsrhj0k.js +2 -0
- package/dist/{chunk-z6fb4m1j.js → chunk-3yh585yv.js} +3 -3
- package/dist/chunk-575cqc6z.js +2 -0
- package/dist/{chunk-s0ar60ng.js → chunk-5x59qjzs.js} +6 -6
- package/dist/chunk-5x836mv3.js +2 -0
- package/dist/chunk-5yceay9n.js +2 -0
- package/dist/{chunk-7ky2ny63.js → chunk-6bhaa9g7.js} +7 -7
- package/dist/{chunk-vfbdxxbf.js → chunk-6dzqjbsz.js} +2 -2
- package/dist/chunk-6pg2kxsq.js +2 -0
- package/dist/{chunk-qpbd2fwp.js → chunk-72p9brmx.js} +4 -4
- package/dist/{chunk-b9kn62k3.js → chunk-7gq7w95h.js} +4 -4
- package/dist/chunk-7nthebqr.js +2 -0
- package/dist/{chunk-xrj3tekf.js → chunk-7q55jxf5.js} +2 -2
- package/dist/chunk-7s5304ae.js +2 -0
- package/dist/{chunk-a669q9b8.js → chunk-86zj56pf.js} +5 -5
- package/dist/{chunk-evs5gb3q.js → chunk-8b2452m1.js} +8 -8
- package/dist/chunk-8dybd0g5.js +2 -0
- package/dist/chunk-8em788gc.js +2 -0
- package/dist/{chunk-fskpdva4.js → chunk-8hjrr8j3.js} +16 -16
- package/dist/{chunk-1e25xd0z.js → chunk-8kc6byaz.js} +4 -4
- package/dist/{chunk-9b4e815s.js → chunk-8qrhz7n7.js} +4 -4
- package/dist/{chunk-8gksvwsm.js → chunk-90pe63me.js} +2 -2
- package/dist/{chunk-q2p6y0cn.js → chunk-923vrf9c.js} +4 -4
- package/dist/{chunk-179c1rdn.js → chunk-94yycjz8.js} +2 -2
- package/dist/{chunk-88d5s6v3.js → chunk-968jp303.js} +3 -3
- package/dist/chunk-9svygzeg.js +2 -0
- package/dist/chunk-9z4qr5w9.js +2 -0
- package/dist/{chunk-av9zf0zb.js → chunk-a887js9p.js} +4 -4
- package/dist/chunk-af4ss0p5.js +2 -0
- package/dist/chunk-aj34t5h3.js +2 -0
- package/dist/chunk-atcy4zq6.js +2 -0
- package/dist/{chunk-hfe8g644.js → chunk-avt9cske.js} +6 -6
- package/dist/chunk-az28kd7f.js +2 -0
- package/dist/{chunk-q7t2mtn4.js → chunk-bd5na0h0.js} +5 -5
- package/dist/{chunk-6684b8ym.js → chunk-bng1ayzm.js} +9 -9
- package/dist/chunk-cncdgxk3.js +2 -0
- package/dist/{chunk-70npkeh2.js → chunk-cy1j2zpr.js} +2 -2
- package/dist/{chunk-rns21kkv.js → chunk-d2t2pq1s.js} +2 -2
- package/dist/chunk-dcx2t3sy.js +2 -0
- package/dist/chunk-dn28q0m3.js +2 -0
- package/dist/chunk-dn89zg1v.js +2 -0
- package/dist/chunk-dwddzp5f.js +2 -0
- package/dist/chunk-enchx79c.js +2 -0
- package/dist/chunk-ev8ma4ph.js +2 -0
- package/dist/{chunk-27h1xs4k.js → chunk-fdy0hka5.js} +9 -9
- package/dist/{chunk-4y06ekvt.js → chunk-ftkrsvqp.js} +1 -1
- package/dist/chunk-ftrsaag8.js +2 -0
- package/dist/{chunk-6mtth8d1.js → chunk-g2rxbaah.js} +3 -3
- package/dist/{chunk-a2ztn8cr.js → chunk-g35zftfn.js} +1 -1
- package/dist/chunk-g6efz3ww.js +2 -0
- package/dist/{chunk-7f1dw9r4.js → chunk-gd59tkhr.js} +1 -1
- package/dist/{chunk-8e9hd2jq.js → chunk-gqdh68vx.js} +2 -2
- package/dist/{chunk-604hzs2x.js → chunk-gv15dd41.js} +3 -3
- package/dist/{chunk-xh98er3b.js → chunk-gxpgwpq7.js} +2 -2
- package/dist/chunk-h1g9m148.js +2 -0
- package/dist/chunk-h8tew5mz.js +2 -0
- package/dist/{chunk-x17fpc0x.js → chunk-hdrcgepx.js} +3 -3
- package/dist/chunk-hn64343d.js +2 -0
- package/dist/chunk-j5jkh05f.js +2 -0
- package/dist/chunk-j90yng9b.js +2 -0
- package/dist/chunk-jabb3v4c.js +2 -0
- package/dist/{chunk-7a8jkwah.js → chunk-jbmjcs83.js} +2 -2
- package/dist/chunk-jczvjn7z.js +2 -0
- package/dist/{chunk-qvqgbvfa.js → chunk-jq7ymh7q.js} +6 -6
- package/dist/{chunk-62kxavc5.js → chunk-jzmz66a3.js} +3 -3
- package/dist/{chunk-7cw0wkbx.js → chunk-k5atee35.js} +1 -1
- package/dist/{chunk-2wvz3fd2.js → chunk-kpxty3pe.js} +2 -2
- package/dist/chunk-kqkhcbrx.js +2 -0
- package/dist/chunk-mgzegkvk.js +2 -0
- package/dist/chunk-mk71833d.js +2 -0
- package/dist/chunk-n3s3w1f5.js +2 -0
- package/dist/{chunk-yq9rfnd6.js → chunk-nh7bcc4h.js} +2 -2
- package/dist/chunk-nj0b4ryt.js +2 -0
- package/dist/{chunk-wp3qcfb4.js → chunk-ny6enm8b.js} +2 -2
- package/dist/{chunk-y5hdc1sb.js → chunk-p4hmv654.js} +2 -2
- package/dist/{chunk-85g35me6.js → chunk-p77g4mhy.js} +2 -2
- package/dist/chunk-p8ndfekp.js +2 -0
- package/dist/{chunk-w9c7z8p3.js → chunk-pbphq5pj.js} +2 -2
- package/dist/{chunk-85bbtv3m.js → chunk-pk757m0k.js} +1 -1
- package/dist/{chunk-tmbqz710.js → chunk-pxpmx8vc.js} +1 -1
- package/dist/{chunk-7zwsgjy4.js → chunk-q6evk3a4.js} +2 -2
- package/dist/chunk-qhjm9hvz.js +2 -0
- package/dist/chunk-qzy34xmt.js +2 -0
- package/dist/chunk-ra40trfh.js +2 -0
- package/dist/chunk-rjq597cn.js +2 -0
- package/dist/{chunk-dz4hrgw8.js → chunk-rq1c46zb.js} +4 -4
- package/dist/chunk-rrdwynz4.js +2 -0
- package/dist/{chunk-cbj2hmx5.js → chunk-sg5zgq5v.js} +4 -4
- package/dist/chunk-shhtbdnj.js +2 -0
- package/dist/chunk-t4g97h08.js +2 -0
- package/dist/{chunk-qfppetcn.js → chunk-t7e9y46s.js} +1 -1
- package/dist/chunk-t7f9zmy8.js +2 -0
- package/dist/{chunk-t84ww3qb.js → chunk-tc7gm68a.js} +1 -1
- package/dist/{chunk-kf2vas4j.js → chunk-tn7hgtyn.js} +4 -4
- package/dist/{chunk-pfas39mf.js → chunk-tx4xxpgg.js} +3 -3
- package/dist/{chunk-0jeqp6yz.js → chunk-v4tmwamd.js} +2 -2
- package/dist/{chunk-y2t8xd39.js → chunk-vhktd16g.js} +2 -2
- package/dist/{chunk-2vqz7v37.js → chunk-w8bf4mbw.js} +3 -3
- package/dist/{chunk-mer3aea0.js → chunk-w9e17a74.js} +3 -3
- package/dist/chunk-x1xx8qt0.js +2 -0
- package/dist/{chunk-h4ashx84.js → chunk-xm911f1g.js} +1 -1
- package/dist/chunk-xmfhb2v0.js +2 -0
- package/dist/{chunk-7mpv1a02.js → chunk-xrkechs8.js} +4 -4
- package/dist/{chunk-3p2b88pd.js → chunk-xrrkf04f.js} +2 -2
- package/dist/chunk-xsw183n7.js +2 -0
- package/dist/chunk-xtwe2rnp.js +2 -0
- package/dist/{chunk-b7p3yca7.js → chunk-y04hzz4w.js} +2 -2
- package/dist/chunk-y84n0dvg.js +2 -0
- package/dist/{chunk-d1ya7f79.js → chunk-y89m80pf.js} +4 -4
- package/dist/{chunk-aqra0qcg.js → chunk-ygpa12ez.js} +2 -2
- package/dist/chunk-zr0k9pz5.js +2 -0
- package/dist/{chunk-e6ccfmx9.js → chunk-zs7t42b5.js} +5 -5
- package/dist/chunk-zytcxy8p.js +2 -0
- package/dist/cli.js +19 -19
- package/dist/client-script-bundler.d.ts +11 -0
- package/dist/client-script-bundler.js +31 -8
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/native/components/primitives.d.ts +1 -0
- package/dist/process.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +3 -3
- package/dist/utils.d.ts +10 -0
- package/dist/utils.js +24 -2
- package/package.json +5 -5
- package/dist/chunk-05zhvg8t.js +0 -20
- package/dist/chunk-0c31twby.js +0 -2
- package/dist/chunk-0nvb2x2f.js +0 -2
- package/dist/chunk-2aj6bjyd.js +0 -2
- package/dist/chunk-3jda301z.js +0 -2
- package/dist/chunk-46qg1tqe.js +0 -2
- package/dist/chunk-4eb02a0z.js +0 -2
- package/dist/chunk-5fjb6avv.js +0 -2
- package/dist/chunk-5kprybdd.js +0 -2
- package/dist/chunk-6n6nnt33.js +0 -2
- package/dist/chunk-6per0k6j.js +0 -2
- package/dist/chunk-7zjv015g.js +0 -2
- package/dist/chunk-87nt0kty.js +0 -2
- package/dist/chunk-8a3sdg2y.js +0 -2
- package/dist/chunk-8vbfbtke.js +0 -2
- package/dist/chunk-8yycg9pb.js +0 -2
- package/dist/chunk-91ranpvz.js +0 -2
- package/dist/chunk-96ypgjm4.js +0 -2
- package/dist/chunk-9cg6q8mw.js +0 -2
- package/dist/chunk-9e1vjey6.js +0 -2
- package/dist/chunk-ag4eck6d.js +0 -2
- package/dist/chunk-aq02drjz.js +0 -2
- package/dist/chunk-ayt4qd82.js +0 -2
- package/dist/chunk-b3mazye4.js +0 -2
- package/dist/chunk-bn6sarwd.js +0 -2
- package/dist/chunk-c7xt5gyb.js +0 -2
- package/dist/chunk-cac98pkx.js +0 -2
- package/dist/chunk-czg6ewy3.js +0 -2
- package/dist/chunk-dcwmcqbr.js +0 -2
- package/dist/chunk-ed1qn902.js +0 -2
- package/dist/chunk-ev479f3z.js +0 -2
- package/dist/chunk-gmg6aj7y.js +0 -2
- package/dist/chunk-j2jm2nqz.js +0 -2
- package/dist/chunk-jb8d4n60.js +0 -2
- package/dist/chunk-kdnbxwkb.js +0 -2
- package/dist/chunk-khzdk7q9.js +0 -2
- package/dist/chunk-kt5mzw2w.js +0 -2
- package/dist/chunk-kt994306.js +0 -2
- package/dist/chunk-mezphhpa.js +0 -2
- package/dist/chunk-n7d69a2q.js +0 -2
- package/dist/chunk-qz3tnvwm.js +0 -2
- package/dist/chunk-rq9cbw2y.js +0 -2
- package/dist/chunk-spvr2vvh.js +0 -2
- package/dist/chunk-t91250ag.js +0 -2
- package/dist/chunk-txkc9w9q.js +0 -2
- package/dist/chunk-ty1c2276.js +0 -2
- package/dist/chunk-vepjs3tg.js +0 -2
- package/dist/chunk-w21444rc.js +0 -2
- package/dist/chunk-wfp754ya.js +0 -2
- package/dist/chunk-x3sbsxdq.js +0 -2
- package/dist/chunk-xdcvp8tt.js +0 -2
- package/dist/chunk-y4egzqqf.js +0 -2
- package/dist/chunk-y4nm9wq4.js +0 -2
- package/dist/chunk-ygx0akfn.js +0 -2
- package/dist/chunk-yn9fwnq2.js +0 -2
- package/dist/chunk-z0gfb7b4.js +0 -2
- package/dist/chunk-z3e54btj.js +0 -2
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rr,We,
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
2
|
+
import{rr,We,ci,mc}from"./chunk-y04hzz4w.js";import{nr,ls,pc,fc,gc}from"./chunk-923vrf9c.js";import{oi,ii,ai,uc,dc}from"./chunk-6dzqjbsz.js";import{de,Et,us}from"./chunk-j1rnhv0w.js";import{yl,bl,vl,wl,Nr,Fd}from"./chunk-p4hmv654.js";import B from"fs";import w from"path";import O from"fs";import u from"path";var v=[72,96,128,144,152,192,384,512],S=[120,152,167,180],P=[16,32];async function M(n,t){let e={success:!0,generatedFiles:[],errors:[],warnings:[]},r=n.pwa?.icons;if(!r?.src)return e.errors.push("No source icon specified in pwa.icons.src"),e.success=!1,e;let o=u.isAbsolute(r.src)?r.src:u.resolve(process.cwd(),r.src);if(!await Bun.file(o).exists())return e.errors.push(`Source icon not found: ${o}`),e.success=!1,e;let a=u.resolve(t,r.outputDir||"pwa-icons");try{O.mkdirSync(a,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${a}`),e.success=!1,e}let s=r.sizes||v,l=r.generateWebP??!0,p=r.generateAppleIcons??!0;try{let c;try{c=await import("sharp")}catch{return e.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-rrdwynz4.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
|
@@ -233,4 +233,4 @@ Icon generation requires the sharp package for image processing.`),e.success=!1,
|
|
|
233
233
|
}, 5000);
|
|
234
234
|
</script>
|
|
235
235
|
</body>
|
|
236
|
-
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=de(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=rr(n,t);if(a){let s=We(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return ls(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,
|
|
236
|
+
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=de(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=rr(n,t);if(a){let s=We(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return ls(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,ii as auditBuildOutput,oi as auditConfig,re as buildPwaAssets,ai as calculateAuditResult,dc as formatAuditResult,us as formatSize,j as generateManifest,_ as generateManifestJson,fc as generateManifestLink,F as generateOfflinePage,de as generatePrecacheManifest,Et as generatePrecacheManifestJs,M as generatePwaIcons,nr as generatePwaTags,rr as generateServiceWorker,mc as generateServiceWorkerAuto,pc as generateSwRegistrationScript,gc as generateThemeColorMeta,N as getExpectedIconPaths,We as getServiceWorkerFileName,ls as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,ci as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,Nr as pwaDirectives,yl as pwaInstallDirective,vl as pwaOfflineDirective,wl as pwaPushDirective,bl as pwaUpdateDirective,Fd as registerPwaDirectives,uc as runPwaAudit,D as validateManifest};
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-gh34r6qb.js";import"./chunk-
|
|
2
|
+
import"./chunk-gh34r6qb.js";import"./chunk-8qrhz7n7.js";import"./chunk-kpxty3pe.js";import{pt,ft,gt,mt,ht,yt}from"./chunk-y89m80pf.js";import"./chunk-d2t2pq1s.js";import"./chunk-4fv3jq16.js";import{f,Je,j,Q,n,o}from"./chunk-0xc6rncm.js";import"./chunk-8b2452m1.js";import{Sr}from"./chunk-6bhaa9g7.js";import"./chunk-xrrkf04f.js";import"./chunk-cy1j2zpr.js";import"./chunk-3kkf43fv.js";import"./chunk-2bxsc7gf.js";import"./chunk-8kc6byaz.js";import{pe,Tt,$t}from"./chunk-27784ceh.js";import{ni,ri,si}from"./chunk-3yh585yv.js";import{Ct,gn,mn}from"./chunk-tme29zh9.js";import"./chunk-jzmz66a3.js";import{a}from"./chunk-ny6enm8b.js";import x from"fs";import g from"path";import{createHash as bt}from"crypto";function Pt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Rt(t){return Bun.hash(t).toString(16)}function it(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Dt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Pt(h);let S=Rt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${bt("sha384").update(h).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),c=Array.from(s,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var kt=new Set(["visible","idle"]);function st(t){if(!t.includes("data-stx-src="))return t;let i=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=s.exec(t))!==null)i.set(r[1],r[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if(kt.has(i.get(l[1])||""))c.add(l[2]);let w=t.lastIndexOf("</head>");if(c.size===0||w===-1)return t;let y=Array.from(c).filter((h)=>!t.includes(`rel="prefetch" href="${h}"`)).map((h)=>`<link rel="prefetch" href="${h}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var Et=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function q(t){let i=t.trim();if(!i)return null;let s=/^https?:\/\//i.test(i)?i:`https://${i}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function It(t){for(let i of Et){let s=t[i];if(!s)continue;let r=q(s);if(r)return{url:r,source:"env",via:i}}return null}function at(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?q(s):null}async function Bt(t){let{existsSync:i}=await import("fs"),s=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(t,r);if(!i(c))continue;try{let e=await import(c),l=at(e.default??e);if(l)return l}catch{}}return null}async function ot(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=q(t.explicit);if(l)return{url:l,source:"option"}}let r=at(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await Bt(i);if(c)return{url:c,source:"site.config",via:"url"};let e=It(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ct(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class lt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,i=""){this.cacheDir=t,this.salt=i}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let i=JSON.parse(await Bun.file(t).text());for(let[s,r]of Object.entries(i))this.cache.set(s,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),i={};for(let[s,r]of this.cache)i[s]=r;await Bun.write(t,JSON.stringify(i))}getHash(t,i){let s=x.statSync(t),r=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of i)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let c=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);c=(c<<5)-c+l,c=c&c}return Math.abs(c).toString(36)}get(t,i){let s=this.cache.get(t);if(!s)return null;let r=this.getHash(i,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(t),null;return s.html}set(t,i,s,r){let c=this.getHash(i,s);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:s})}}class ut{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let i=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",i)}async get(t){let i=this.getFilePath(t);if(!await Bun.file(i).exists())return null;try{return JSON.parse(await Bun.file(i).text())}catch{return null}}async set(t,i){let s=this.getFilePath(t);await x.promises.mkdir(g.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(i))}async invalidate(t){let i=this.getFilePath(t);if(await Bun.file(i).exists())await x.promises.unlink(i)}async invalidatePattern(t){let i=g.join(this.cacheDir,"isr");if(!x.existsSync(i))return;let s=await x.promises.readdir(i);for(let r of s){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(i,r))}}async needsRevalidation(t){let i=await this.get(t);if(!i)return!0;return Date.now()>i.revalidateAfter}}async function jt(t){try{let s=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let r=s[1];if(!r.includes("getStaticPaths"))return null;let c=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!c)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${c[1]}
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
|
41
41
|
${s.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function zt(t={}){let i=Date.now();$t();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();$t();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-dwddzp5f.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-dn89zg1v.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new lt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-dwddzp5f.js");await u('<div class="bg-black"></div>')}catch{}pt();let wt=s?.routeMiddleware?.dir||"middleware";await gt(process.cwd(),wt);let H=ft();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let St=s?.routeMiddleware?.global||[];si(s?.layoutsDir,a(process.cwd()));let V=j(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let G=[];for(let u of V){let m=await Ft(u);for(let v of m)G.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=G.length,console.log(`Generating ${l.totalPages} pages...`);let L=[],K=[];for(let u=0;u<G.length;u+=e.concurrency)K.push(G.slice(u,u+e.concurrency));for(let u of K)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:M,props:xt,revalidate:Z}=m;try{await e.hooks.onPageStart?.(d);let F=await Bun.file(v.filePath).text(),O=Jt(F),vt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],tt=[...St,...vt];if(tt.length>0){let C=mt(d,M,O||{}),T=ht(C,null,void 0,{isServer:!0}),E=await yt(tt,T);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,_=Vt(String(R),d),A=Kt(d,e);await x.promises.mkdir(g.dirname(A),{recursive:!0}),await Bun.write(A,_),l.successCount++,l.pages.push({route:d,outputPath:A,size:Buffer.byteLength(_),cached:!1}),L.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let et=F.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(et)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${et[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:M})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,rt=!1;if(e.cache){if(k=B.get(d,v.filePath),k)rt=!0,l.cachedCount++}if(!k){let C=await dt(v,M,xt,e,s);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -73,7 +73,7 @@ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.
|
|
|
73
73
|
<a href="/">Go home</a>
|
|
74
74
|
</div>
|
|
75
75
|
</body>
|
|
76
|
-
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},M=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),M)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&L.length>0){let u=Gt(L,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${L.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Sr({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let N=
|
|
76
|
+
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},M=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),M)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&L.length>0){let u=Gt(L,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${L.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Sr({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let N=ni(e.outputDir);if(N.assets>0)console.log(`Externalized ${N.assets} asset(s) from ${N.pages} page(s) (${(N.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let z=ri(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} repeated asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await J(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Y=mn();if(Y)await J(Y,g.join(e.outputDir,gn)),console.log(`Copied assets from ${Ct}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-i,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:h,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
package/dist/utils.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ export type {
|
|
|
3
3
|
TemplateValidationError,
|
|
4
4
|
TemplateValidationResult,
|
|
5
5
|
} from './validator';
|
|
6
|
+
/**
|
|
7
|
+
* The scope-id suffix for a render of `file`, the same in every copy of the
|
|
8
|
+
* project. Scope ids are written into a page's client scripts, and those
|
|
9
|
+
* scripts key the client bundle cache, so a suffix hashed from the absolute
|
|
10
|
+
* path gave every deploy's new release directory different script bytes for
|
|
11
|
+
* the same page: every bundle missed the cache the previous release had
|
|
12
|
+
* filled. Hashed from the project-relative path (against `process.cwd()`, as
|
|
13
|
+
* module registry ids are), a page keys alike wherever the project lives.
|
|
14
|
+
*/
|
|
15
|
+
export declare function scopeSequenceKey(file: string): string;
|
|
6
16
|
/**
|
|
7
17
|
* Check if script should be treated as plain JavaScript (opt-out from TypeScript)
|
|
8
18
|
* By default ALL scripts are TypeScript. Use <script js> or <script lang="js"> to opt-out.
|
package/dist/utils.js
CHANGED
|
@@ -101,6 +101,28 @@ function componentSlotCacheContext(context) {
|
|
|
101
101
|
function escapeAttr(str) {
|
|
102
102
|
return str.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
103
103
|
}
|
|
104
|
+
export function scopeSequenceKey(file) {
|
|
105
|
+
const root = process.cwd(), cacheKey = `${root}\x00${file}`;
|
|
106
|
+
let key = scopeSequenceKeys.get(cacheKey);
|
|
107
|
+
if (key === void 0) {
|
|
108
|
+
key = Bun.hash(projectRelative(file, root).split(path.sep).join("/")).toString(36).slice(0, 6);
|
|
109
|
+
scopeSequenceKeys.set(cacheKey, key);
|
|
110
|
+
}
|
|
111
|
+
return key;
|
|
112
|
+
}
|
|
113
|
+
const scopeSequenceKeys = new Map;
|
|
114
|
+
function projectRelative(file, root) {
|
|
115
|
+
if (!path.isAbsolute(file))
|
|
116
|
+
return file;
|
|
117
|
+
const real = (p) => {
|
|
118
|
+
try {
|
|
119
|
+
return fs.realpathSync(p);
|
|
120
|
+
} catch {
|
|
121
|
+
return p;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
return path.relative(real(root), real(file));
|
|
125
|
+
}
|
|
104
126
|
export function isJavaScriptScript(attrs) {
|
|
105
127
|
return /\bjs\b/.test(attrs) || /\blang\s*=\s*["']?(js|javascript)["']?/i.test(attrs);
|
|
106
128
|
}
|
|
@@ -810,8 +832,8 @@ export async function renderComponentWithSlot(componentPath, props, slotContent,
|
|
|
810
832
|
$slots[slotName] = slotDef.content;
|
|
811
833
|
const scopeSeq = parentContext.__stx_scope_seq ??= {
|
|
812
834
|
n: 0,
|
|
813
|
-
key:
|
|
814
|
-
}, componentUid = `stx_${(
|
|
835
|
+
key: scopeSequenceKey(String(parentContext.__filename ?? parentFilePath))
|
|
836
|
+
}, componentName = projectRelative(componentPath, process.cwd()), componentUid = `stx_${(componentName.endsWith(".stx") ? componentName.slice(0, -4) : componentName).replace(/[^a-zA-Z0-9]/g, "_")}_${++scopeSeq.n}_${scopeSeq.key}`, componentContext = {
|
|
815
837
|
...filteredParentContext,
|
|
816
838
|
$uid: componentUid,
|
|
817
839
|
...props,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.633",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.633",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.633",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.633",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.633",
|
|
137
137
|
"ts-broadcasting": "^0.0.11",
|
|
138
138
|
"ts-images": "^0.2.22",
|
|
139
139
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-05zhvg8t.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yn,fe}from"./chunk-gh34r6qb.js";import{M,m,bn,or,w,Ge,o,P}from"./chunk-b5cv9xp7.js";import{hs}from"./chunk-1e25xd0z.js";import{s,Re}from"./chunk-mer3aea0.js";import{a}from"./chunk-wp3qcfb4.js";import d from"path";import S from"fs";import{AsyncLocalStorage as gt}from"async_hooks";var ht=11;function W(t,e,n){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(d.basename(t))||hs(t,e,n)}var it=2;function mc(t){let e=process.env.STX_BUNDLE_CACHE_DIR?.trim();return e?d.resolve(e):a(t,"bundle-cache")}function nt(t,e){let n=d.resolve(e);return n===d.sep?t:t.split(n).join("\x00root")}function xt(t,e){try{let n=S.statSync(t),c=d.resolve(e),u=t.startsWith(`${c}${d.sep}`);return{path:u?d.relative(c,t):t,...u?{inRoot:!0}:{},mtimeMs:n.mtimeMs,size:n.size,hash:Bun.hash(S.readFileSync(t)).toString(36)}}catch{return null}}function ot(t,e){return t.inRoot?d.join(d.resolve(e),t.path):t.path}function yt(t,e){for(let n of t){let c=ot(n,e);try{let u=S.statSync(c);if(u.size!==n.size)return!1;if(u.mtimeMs!==n.mtimeMs&&Bun.hash(S.readFileSync(c)).toString(36)!==n.hash)return!1}catch{return!1}}return!0}var at=new Map,X=600,bt=100,G=new Map;async function wt(t){let e=G.get(t)??0;if(e>0&&e<bt){G.set(t,e+1);return}G.set(t,1);try{let n=(await S.promises.readdir(t)).filter((p)=>p.endsWith(".js"));if(n.length<=X)return;let u=(await Promise.all(n.map(async(p)=>{try{return{name:p,at:(await S.promises.stat(d.join(t,p))).mtimeMs}}catch{return null}}))).filter((p)=>p!==null);u.sort((p,l)=>l.at-p.at);for(let p of u.slice(X)){let l=p.name.slice(0,-3);await S.promises.rm(d.join(t,`${l}.js`),{force:!0}),await S.promises.rm(d.join(t,`${l}.deps.json`),{force:!0})}C("pruned bundle cache to",X,"entries")}catch{}}function pe(t){return at.get(t)??[]}function q(t,e){if(t)at.set(t,e)}function hc(t=process.env){return t.STX_DEBUG==="true"||t.STX_DEBUG==="1"}function C(...t){if(hc())console.log("[stx:bundler]",...t)}var Q=[];function ci(t,e,n){Q.push({filePath:t||"<inline>",message:e,details:n})}function Tt(){return Q.slice()}function $t(){Q.length=0}var Z;function Xu(t){Z=t}function li(){if(Z)return Z;try{let t=P.strict;return typeof t==="object"&&t!==null?t.bundlerFallback??"warn":"warn"}catch{return"warn"}}var Y=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function Rt(t){let e=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,n;while((n=e.exec(t))!==null){let u=n[1];if(!Y.some((l)=>l.test(u)))return C("detected user import:",u),!0}let c=/^[ \t]*import[ \t]*['"]([^'"]+)['"]/gm;while((n=c.exec(t))!==null){let u=n[1];if(/\.css(?:\?.*)?$/.test(u))continue;if(!Y.some((l)=>l.test(u)))return C("detected side-effect import:",u),!0}return!1}var hn="stx-module:",St=/\.(?:[cm]?[jt]sx?|json)$/i;function yc(t,e){return d.relative(t,e).split(d.sep).join("/")}function bc(t,e){if(e.size===0)return t;return t.replace(/^([ \t]*import(?:(?:\s+|(?=[{*]))[^;"']*?\s*from\s*|\s*))(["'])([^"']+)\2/gm,(n,c,u,p)=>{let l=e.get(p);return l&&!p.startsWith(hn)?`${c}${u}${l}${u}`:n})}function vc(t,e){let n=0,c=(p)=>{let l=`__stxMod${n++}`,_=JSON.stringify(p);return e.push(`var ${l} = globalThis.__stxModules && globalThis.__stxModules[${_}];`,`if (${l} === undefined) throw new Error("[stx] module " + ${JSON.stringify(_)} + " is not registered on this page (#1957)");`),l},u=(p,l)=>{for(let _ of p.split(",")){let I=_.trim();if(!I)continue;let B=I.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!B)continue;let f=B[1].startsWith('"')?JSON.parse(B[1]):B[1],r=B[2]??f;e.push(`var ${r} = ${l}[${JSON.stringify(f)}];`)}};return t=t.replace(/^[ \t]*import(?:\s+|(?=[{*]))([^;"']+?)\s*from\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(p,l,_)=>{let I=_.slice(hn.length),B=c(I),f=l.trim(),r=f.match(/^([\w$]+)\s*(?:,\s*|$)/);if(r&&!f.startsWith("{")&&!f.startsWith("*"))e.push(`var ${r[1]} = ${B}.default;`),f=f.slice(r[0].length).trim();let i=f.match(/^\*\s*as\s+([\w$]+)$/);if(i)e.push(`var ${i[1]} = ${B};`);else if(f.startsWith("{"))u(f.replace(/^\{|\}$/g,""),B);return""}),t=t.replace(/^[ \t]*import\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(p,l)=>(c(l.slice(hn.length)),"")),t}function st(t){let e=[t,`${t}.ts`,`${t}.tsx`,`${t}.js`,`${t}.mjs`,`${t}.jsx`,d.join(t,"index.ts"),d.join(t,"index.tsx"),d.join(t,"index.js"),d.join(t,"index.mjs")];for(let n of e)try{if(S.existsSync(n)&&S.statSync(n,{throwIfNoEntry:!1})?.isFile())return n}catch{}return}var K=new gt;function ds(t,e){let n=new Bun.CryptoHasher("md5");for(let[c,u]of[...t].sort(([p],[l])=>p<l?-1:p>l?1:0))n.update(`${c}\x00${u}\x00`);return K.run({modules:t,key:n.digest("hex").slice(0,12)},e)}function At(){return K.getStore()?.key??""}function vt(t,e,n,c,u,p=new Map,l,_){let I=(f,r,i)=>{if(W(r,t,l))return null;if(!u||f!==n||!St.test(r))return null;try{if(!S.statSync(r,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}c.add(r);let x=`${hn}${yc(process.cwd(),r)}`;return p.set(i,x),{path:x,external:!0}},B=(f,r)=>{let i=f===n?e:d.dirname(f),x=d.resolve(i,r);return st(x)??x};return{name:"stx-client-bundle",setup(f){if(f.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(r)=>({path:r.path,external:!0})),f.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(r)=>({path:r.path,external:!0})),f.onResolve({filter:/^\//},(r)=>{let i=st(r.path);if(i){let x=I(r.importer,i,r.path);if(x)return x;if(i!==n)c.add(i);return{path:i}}return{path:r.path,external:!0}}),f.onResolve({filter:/^\.\.?\//},(r)=>{let i=B(r.importer,r.path),x=I(r.importer,i,r.path);if(x)return x;return c.add(i),{path:i}}),f.onResolve({filter:/^[@~]\//},(r)=>{let i=d.resolve(t,r.path.slice(2)),x=[i,`${i}.ts`,`${i}.tsx`,`${i}.js`,`${i}.mjs`,`${i}.jsx`,d.join(i,"index.ts"),d.join(i,"index.tsx"),d.join(i,"index.js"),d.join(i,"index.mjs")];for(let F of x)if(S.existsSync(F)&&S.statSync(F,{throwIfNoEntry:!1})?.isFile()){let j=I(r.importer,F,r.path);if(j)return j;return C(`resolved ${r.path[0]}/ import:`,r.path,"\u2192",F),c.add(F),{path:F}}return console.warn(`[stx:bundler] could not resolve ${r.path[0]}/ import:`,r.path),{path:i}}),u)f.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(r)=>{if(r.importer!==n)return;let i=`${hn}npm:${r.path}`;return p.set(r.path,i),{path:i,external:!0}});f.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(r)=>{if(W(r.path,t,l))throw Error(`Server-only API source cannot be imported by a client script: ${r.path}`);let i=d.extname(r.path).toLowerCase(),x=i===".json"?"json":i===".tsx"?"tsx":i===".jsx"?"jsx":i===".ts"||i===".mts"||i===".cts"?"ts":"js";if(r.path!==n)c.add(r.path);let F=_?.get(r.path);if(F!==void 0)return{contents:F,loader:"js"};return{contents:S.readFileSync(r.path,"utf8"),loader:x}})}}}var H=new Map,k=m(64),rt=Symbol.for("stx.client-bundle-build-queue");function wc(t){let e=globalThis,c=(e[rt]??Promise.resolve()).then(t,t);return e[rt]=c.then(()=>{return},()=>{return}),c}async function Pt(t,e,n={}){let c=n.projectRoot||process.cwd(),u=(await o(c)).serverApi,p=n.minify??!1,l=n.externalizeUserModules??!0,_=n.expose?.length?[...new Set(n.expose)].sort():void 0,I=n.cacheDir||mc(c),B=K.getStore(),f=new Bun.CryptoHasher("md5");f.update(`${ht}\x00${Ge()}\x00${JSON.stringify(u??!1)}\x00${l?"registry":"inline"}\x00${_?_.join(","):"*"}\x00${p?"minified":"readable"}\x00${B?.key??""}\x00${nt(t,c)}\x00${nt(e,c)}`);let r=f.digest("hex").slice(0,12),i=d.join(I,`${r}.js`),x=k.get(i);if(x){if(or(x.files)&&x.files.every((R)=>!W(R.path,c,u))){C("memo hit:",r);let R=x.files.map((A)=>A.path);return q(e,R),n.collectInputs?.push(...R),x.code}k.delete(i),C("memo invalidated by dep change:",r)}let F=d.join(I,`${r}.deps.json`),j=Bun.file(i);if(await j.exists()){let R=Bun.file(F),A=!1,D=null;if(await R.exists())try{let O=JSON.parse(await R.text());if(O.metadataVersion===it&&Array.isArray(O.files)&&yt(O.files,c))D=bn(O.files.map((g)=>ot(g,c))),A=D.length===O.files.length&&!D.some((g)=>W(g.path,c,u))}catch{A=!1}if(A){if(C("cache hit:",r),D)q(e,D.map((g)=>g.path)),n.collectInputs?.push(...D.map((g)=>g.path));let O=await j.text();if(D)k.set(i,{code:O,files:D});return O}C("cache invalidated by dep change:",r)}let U=H.get(r);if(U){let R=await U;if(n.collectInputs)n.collectInputs.push(...(k.get(i)?.files??[]).map((A)=>A.path));return R}let z=wc(()=>jt(t,e,{projectRoot:c,minify:p,cacheDir:I,hash:r,cachePath:i,depsPath:F,collectInputs:n.collectInputs,externalizeUserModules:l,serverApi:u,expose:_,throwOnFailure:n.throwOnFailure,substitutes:B?.modules}));H.set(r,z);try{return await z}finally{H.delete(r)}}var Bt=0;function xc(t){return`${t}-${process.pid}-${++Bt}`}async function jt(t,e,n){let{projectRoot:c,minify:u,cacheDir:p,hash:l,cachePath:_,depsPath:I,externalizeUserModules:B}=n,f=a(c,"bundle-tmp"),r=xc(l),i=d.join(f,`${r}.ts`),x=d.join(f,"out",r);S.mkdirSync(f,{recursive:!0}),S.mkdirSync(x,{recursive:!0});let F=d.dirname(e),j=new Set,U=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,z=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,R=s(t),{depths:A,balanced:D}=Re(R),O=(v)=>!D||A[v]===0,g;while((g=U.exec(R))!==null){if(g[1])continue;if(!O(g.index))continue;if(g[2])g[2].split(",").forEach((v)=>{let h=Et(v);if(h)j.add(h)});else if(g[3])j.add(g[3])}while((g=z.exec(R))!==null){if(g[1])continue;if(!O(g.index))continue;j.add(g[2])}let ct=/^[ \t]*import[ \t]+(?!type\b)(?:(\w+)\s*(?:,\s*)?)?(?:\*\s+as\s+(\w+)|\{([^}]+)\})?\s+from\b/gm;while((g=ct.exec(R))!==null){if(!O(g.index))continue;let v=/^\s*['"]([^'"]+)['"]/.exec(t.slice(g.index+g[0].length))?.[1];if(v&&Y.some((h)=>h.test(v)))continue;if(g[1])j.add(g[1]);if(g[2])j.add(g[2]);for(let h of(g[3]??"").split(",")){let b=h.trim();if(!b||/^type\s/.test(b))continue;let T=/\bas\s+(\w+)\s*$/.exec(b)?.[1]??/^\w+$/.exec(b)?.[0];if(T)j.add(T)}}for(let v of R.matchAll(/\bexport\s*\{([^}]+)\}/g))for(let h of v[1].split(",")){let b=/\bas\s+(\w+)\s*$/.exec(h)?.[1]??/^\s*(\w+)\s*$/.exec(h)?.[1];if(b)j.delete(b)}let lt=j.size>0?`
|
|
3
|
-
export { ${[...j].join(", ")} }`:"";await Bun.write(i,t+lt),C("bundling:",l,"from:",d.basename(e));let tt=new Set,et=new Map;try{let v=await Bun.build({entrypoints:[i],outdir:x,target:"browser",format:"esm",minify:u?{whitespace:!1,identifiers:!0,syntax:!0}:!1,plugins:[vt(c,F,i,tt,B,et,n.serverApi,n.substitutes)],define:{"process.env.NODE_ENV":u?'"production"':'"development"',...w()},root:c});if(!v.success){let E=v.logs.filter((N)=>N.level==="error").map((N)=>N.message).join(", ")||`Unable to bundle ${d.basename(e)}`,L=yn(v.logs,e||void 0);if(console.warn("[stx:bundler] build failed:",E),ci(e||"",E,L),n.throwOnFailure||li()==="error")throw Error(E);return t}let h="";for(let y of v.outputs){h=await y.text();break}let b=[];for(let y of h.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let E of y[1].split(",")){let L=E.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(L){b.push([L[2],L[1]]);continue}let N=E.trim();if(/^[A-Za-z_$][\w$]*$/.test(N))b.push([N,N])}if(n.expose){let y=new Set(n.expose);for(let E=b.length-1;E>=0;E--)if(!y.has(b[E][0]))b.splice(E,1)}let T=[];h=vc(bc(h,et),T);let ut=h.match(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm)||[];if(h=h.replace(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),u&&h)try{h=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(h)}catch{}let V=`__stxBundle_${l}`,dt=new Set(M(t,!0).split(",").map((y)=>y.trim())),pt=b.map(([y,E])=>`get ${JSON.stringify(y)}() { return ${E} }${dt.has(y)?`, set ${JSON.stringify(y)}(__stxValue_${E}) { ${E} = __stxValue_${E} }`:""}`).join(", "),ft=b.map(([y])=>`var ${y} = undefined;`).join(`
|
|
4
|
-
`),mt=b.map(([y])=>`${y} = ${V}[${JSON.stringify(y)}];`).join(`
|
|
5
|
-
`);if(h=`${ut.join(`
|
|
6
|
-
`)}
|
|
7
|
-
${ft}
|
|
8
|
-
var ${V} = (function() {
|
|
9
|
-
${T.join(`
|
|
10
|
-
`)}
|
|
11
|
-
${h}
|
|
12
|
-
return { ${pt} };
|
|
13
|
-
})();
|
|
14
|
-
${mt}
|
|
15
|
-
var __stxLiveBindings = typeof __stxLiveBindings === 'undefined' ? {} : __stxLiveBindings;
|
|
16
|
-
Object.keys(${V}).forEach(function(name) {
|
|
17
|
-
if (!Object.prototype.hasOwnProperty.call(__stxLiveBindings, name))
|
|
18
|
-
Object.defineProperty(__stxLiveBindings, name, Object.getOwnPropertyDescriptor(${V}, name));
|
|
19
|
-
});`.trim(),C("bundled:",l,"output:",h.length,"bytes"),j.size>0&&b.length===0)return console.warn(`[stx:bundler] dropped every binding for ${d.basename(e)} (${l}); serving the unbundled source and not caching this result`),t;S.mkdirSync(p,{recursive:!0}),await Bun.write(_,h);let J=bn(tt);return await Bun.write(I,JSON.stringify({metadataVersion:it,files:J.map((y)=>xt(y.path,c)).filter((y)=>y!==null)})),q(e,J.map((y)=>y.path)),n.collectInputs?.push(...J.map((y)=>y.path)),k.set(_,{code:h,files:J}),await wt(p),h}catch(v){let h=yn(v,e||void 0),b=fe(v,e||void 0);if(console.warn(`[stx:bundler] error: ${b}`),ci(e||"",b,h),n.throwOnFailure||li()==="error")throw v;return t}finally{try{S.rmSync(i,{force:!0}),S.rmSync(x,{recursive:!0,force:!0})}catch{}}}function Et(t){let e=t.trim();if(!e)return null;let n=e.indexOf("=");if(n!==-1)e=e.slice(0,n).trim();let c=e.indexOf(":");if(c!==-1)e=e.slice(c+1).trim();if(e.startsWith("..."))e=e.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(e)?e:null}
|
|
20
|
-
export{mc,pe,hc,ci,Tt,$t,Xu,li,Rt,hn,yc,bc,vc,ds,At,wc,Pt,xc};
|
package/dist/chunk-0c31twby.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fr,So,Gn,zr,Hr,Kt,St,ko,Kn,Xn,Vr,Ur,xl,Sl,Be}from"./chunk-qpbd2fwp.js";export{Be as DeployError,So as calculateSha1,Gn as collectDeployFiles,Xn as createDefaultNetlifyConfig,zr as createFileManifest,Fr as createNetlifyClient,xl as deploy,Kn as detectProjectConfig,Hr as filterRequiredFiles,Kt as formatSize,ko as generateNetlifyToml,St as getTotalSize,Ur as hasNetlifyConfig,Sl as initNetlify,Vr as writeNetlifyConfig};
|
package/dist/chunk-0nvb2x2f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vl}from"./chunk-6mtth8d1.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{vl as startInteractive};
|
package/dist/chunk-2aj6bjyd.js
DELETED
package/dist/chunk-3jda301z.js
DELETED
package/dist/chunk-46qg1tqe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{It,ps,gs,ms,Ju,hs}from"./chunk-1e25xd0z.js";import"./chunk-nz6bzffm.js";import"./chunk-3p2b88pd.js";import"./chunk-d1ya7f79.js";export{gs as buildServerApi,Ju as createServerApi,It as discoverServerApi,ps as generateApiTypes,hs as isServerApiSource,ms as productionApiDispatcher};
|
package/dist/chunk-4eb02a0z.js
DELETED
package/dist/chunk-5fjb6avv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ko,Xo,Jo,Gu}from"./chunk-27h1xs4k.js";import"./chunk-cbj2hmx5.js";import"./chunk-aqra0qcg.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Ko as buildNative,Gu as default,Jo as getAvailableFormats,Xo as getAvailableTargets};
|
package/dist/chunk-5kprybdd.js
DELETED
package/dist/chunk-6n6nnt33.js
DELETED
package/dist/chunk-6per0k6j.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{M,hd,jc,Rs,As,Ei,Ti,Ps,Is,pr,$i,Ri,Bc,tt}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{hd as clearScriptScanCache,Ps as convertServerLoopAttributesToDirectives,Ei as convertSignalDirectivesToAttributes,Is as convertSignalLoopsToAttributes,M as extractExports,Ri as findMarkupIndexOutsideScripts,As as hasSignalsSyntax,Rs as parseLoopExpression,Ti as preEvalLiteralReactiveIfs,pr as processScriptSetup,$i as processSignals,Bc as rewriteStxImportSpecifiers,jc as scanScriptTags,tt as stripStxRuntimeImports};
|
package/dist/chunk-7zjv015g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gs,Ks,Xs,Js,wr,xr,Sd,kd,_d,Cd,Sr,Ed}from"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";export{Ed as generateDefaultRobotsTxt,Sr as generateRobotsTxt,kd as generateSitemap,_d as generateSitemapIndex,Js as injectSeoTags,wr as metaDirective,Gs as processMetaDirectives,Xs as processSeoDirective,Ks as processStructuredData,Sd as registerSeoDirectives,Cd as scanForSitemapEntries,xr as structuredDataDirective};
|
package/dist/chunk-87nt0kty.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Wa,qa,Ga,Ka,Xa,Ja,Ya,Za,Qa,ec,Ql}from"./chunk-s0ar60ng.js";export{Wa as createIslandRegistry,Ql as default,ec as generateIslandManifest,Ga as generatePartialHydrationCSS,Ja as hydrateAll,Xa as hydrateByStrategy,Ka as hydrateIsland,Ya as isHydrated,Za as onHydrated,qa as processPartialHydrationDirectives,Qa as processStaticDirectives};
|
package/dist/chunk-8a3sdg2y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{u,Os,Ai,Pi,Xc,Jc,Yc,Zc,Qc,el,nt,B,rt,tl,gr,nl,Di,zs,st,r,mr,Mi,g,ie,vd}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{ie as clearComponentCache,zs as componentClientSignalNames,Os as convertToCommonJS,g as createDetailedErrorMessage,Qc as extractDirectiveNames,Ai as extractScriptFromTemplate,u as extractVariables,r as fileExists,vd as getComponentCacheStats,Jc as getPositionInfo,B as getSharedTranspiler,Mi as getSourceLineInfo,Zc as hasDirectives,Pi as hasVariables,nl as isHydrateTrigger,el as isJavaScriptScript,st as renderComponentWithSlot,mr as resolveTemplatePath,tl as scopeOnRootElement,nt as shouldTranspileTypeScript,Di as slotContentHasExpressions,rt as transpileTypeScript,gr as userComponentFileExists,Yc as validateDirective,Xc as validateTemplate};
|
package/dist/chunk-8vbfbtke.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fa,ga}from"./chunk-fskpdva4.js";import"./chunk-6mtth8d1.js";import"./chunk-hc1m2psz.js";import"./chunk-qpbd2fwp.js";import"./chunk-7mpv1a02.js";import"./chunk-6684b8ym.js";import"./chunk-xrj3tekf.js";import"./chunk-8e9hd2jq.js";import{$o}from"./chunk-kf2vas4j.js";import"./chunk-179c1rdn.js";import"./chunk-myhxapnn.js";import"./chunk-yq9rfnd6.js";import"./chunk-tmbqz710.js";import"./chunk-xh98er3b.js";import"./chunk-y2t8xd39.js";import"./chunk-85bbtv3m.js";import"./chunk-8gksvwsm.js";import"./chunk-e6ccfmx9.js";import"./chunk-hfe8g644.js";import"./chunk-s0ar60ng.js";import"./chunk-2vqz7v37.js";import"./chunk-w9c7z8p3.js";import"./chunk-pfas39mf.js";import"./chunk-7zwsgjy4.js";import"./chunk-604hzs2x.js";import"./chunk-q7t2mtn4.js";import"./chunk-a669q9b8.js";import"./chunk-b9kn62k3.js";import"./chunk-776f05vk.js";import"./chunk-dz4hrgw8.js";import"./chunk-qvqgbvfa.js";import"./chunk-cbj2hmx5.js";import"./chunk-aqra0qcg.js";import"./chunk-z6fb4m1j.js";import"./chunk-05zhvg8t.js";import"./chunk-1e25xd0z.js";import"./chunk-gh34r6qb.js";import{_e,wn,xn,Q,u,n,hr,A,o,ye}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{hr as buildWebComponents,xn as cacheTemplate,wn as checkCache,$o as classifyAllScripts,fa as createMiddleware,ga as createRoute,A as defaultConfig,u as extractVariables,Q as injectRouterScript,o as loadStxConfig,_e as processClientScript,n as processDirectives,ye as readMarkdownFile};
|
package/dist/chunk-8yycg9pb.js
DELETED
package/dist/chunk-91ranpvz.js
DELETED
package/dist/chunk-96ypgjm4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ss,nu,ru}from"./chunk-pfas39mf.js";import"./chunk-05zhvg8t.js";import"./chunk-1e25xd0z.js";import"./chunk-gh34r6qb.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{ru as clearComposableCache,nu as getComposableScript,ss as listComposableModules};
|
package/dist/chunk-9cg6q8mw.js
DELETED
package/dist/chunk-9e1vjey6.js
DELETED
package/dist/chunk-ag4eck6d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{io,ao,dt,ee,zn,Ar,Hn,Pr,Ir,il,al,cl,Vn,ll,ul,dl,pl,la,ua,da,co,pa,fl,pt,ft,gt,mt,ht,yt,Ne,gl}from"./chunk-d1ya7f79.js";export{Hn as Router,dl as abortNavigation,Ar as bracketPathToRegex,pt as clearMiddleware,ua as createClientCookieManager,ht as createMiddlewareContext,mt as createRouteLocation,la as createServerCookieManager,da as createStorageManager,pl as defineMiddleware,al as defineRoute,cl as defineRoutes,Pr as findErrorPage,Ir as formatRoutes,ao as generateRouteManifest,io as generateRouteTypes,pa as getMiddleware,ft as getMiddlewareNames,Ne as getRouterScript,gl as getRouterScriptDev,fl as hasMiddleware,dt as isFileRequestPath,gt as loadMiddlewareFromDirectory,zn as matchRoute,ul as navigateTo,ee as patternToRegex,co as registerMiddleware,ll as resetRoutes,Vn as route,yt as runMiddleware,il as setAppUrl};
|
package/dist/chunk-aq02drjz.js
DELETED
package/dist/chunk-ayt4qd82.js
DELETED
package/dist/chunk-b3mazye4.js
DELETED
package/dist/chunk-bn6sarwd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ve,ln,Cu}from"./chunk-dz4hrgw8.js";import{K,un,Eu,dn,os,Qn,er,Tu,$u,Ru,pn,fn,is,tr,Au}from"./chunk-0jeqp6yz.js";import"./chunk-rns21kkv.js";export{os as batch,Cu as default,un as derived,dn as effect,Ve as generateSignalsRuntime,ln as generateSignalsRuntimeDev,fn as isDerived,pn as isSignal,Eu as memo,er as onDestroy,Qn as onMount,tr as peek,Ru as pendingLifecycleCounts,$u as runDestroyCallbacks,Tu as runMountCallbacks,K as state,is as untrack,Au as useOptimistic};
|
package/dist/chunk-c7xt5gyb.js
DELETED
package/dist/chunk-cac98pkx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pu,Vo,ic,Iu,Ou,Nu,Du,Mu,ac,cc,Lu,ju,Bu,Fu}from"./chunk-qvqgbvfa.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{ic as SUSPENSE_RESOLVER_RUNTIME,Vo as buildSuspenseResolveScript,Mu as createStreamRenderer,Nu as extractStreamBoundaries,Fu as generateHydrationRuntime,cc as islandDirective,ju as processSectionDirectives,Ou as processStreamDirectives,Lu as registerStreamingDirectives,Iu as renderStreamingPage,Pu as streamTemplate,Du as streamTemplateSimple,Bu as streamToResponse,ac as streamingSuspenseDirective};
|
package/dist/chunk-czg6ewy3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wl}from"./chunk-hc1m2psz.js";import"./chunk-kf2vas4j.js";import"./chunk-1e25xd0z.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{wl as startProductionServer};
|
package/dist/chunk-dcwmcqbr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cn,Lc,$s}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import{Ie}from"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Ie as freeIdentifiers,$s as processComponents,Lc as processESImports,Cn as rendersAsElement};
|
package/dist/chunk-ed1qn902.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ge,Rc,rd,sd,od,id,Ac,Pc,ad,cd,mi,ld,wn,xn,cr}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{id as __setSignalsGeneratorsForTest,Ge as cacheEngineFingerprint,xn as cacheTemplate,wn as checkCache,ld as clearDevCaches,Pc as getCachedRouterScript,Ac as getCachedSignalsRuntime,ad as getServeClientAsset,mi as getServeModuleBundle,cr as hashFilePath,sd as invalidateFileCache,od as invalidateFileCacheByDir,rd as readFileCached,cd as registerServeModuleBundle,Rc as templateCache};
|
package/dist/chunk-ev479f3z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ir,kc,Zu,_c,Qu,Cc,ar,b,Mt,Ce,Ec,xs,Tc,ed,Z,$c,td,x,nd}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{$c as applyFilters,Qu as clearCustomFilters,Ec as clientLoopScopes,ir as defaultFilters,b as escapeHtml,Mt as escapeHtmlValue,x as evaluateExpression,Cc as findMustacheEnd,_c as getAllFilters,Tc as interpolateScriptAttributes,xs as interpolateScriptExpressions,ed as interpolateScriptsInTemplate,Z as processExpressions,kc as registerFilter,Zu as registerFilters,ar as replaceInterpolations,td as resetRejectedExpressionWarnings,nd as unescapeHtml,Ce as usesSignalsInScript};
|
package/dist/chunk-gmg6aj7y.js
DELETED
package/dist/chunk-j2jm2nqz.js
DELETED
package/dist/chunk-jb8d4n60.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Y,ys,bs,Sc,Nt,ui,vs,di,Yu,ke,vn,_e}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import{Hi,s}from"./chunk-mer3aea0.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Y as BROWSER_CORE_IMPORTS,Sc as STX_AUTO_IMPORTS,ys as extractAndStripCssImports,ke as extractBridgeData,Hi as findInterpolationEnd,di as generateAutoImportDestructuring,Yu as generateBrowserAutoImportDestructuring,vn as generateServerDataBridge,Nt as injectBrowserCoreAutoImports,_e as processClientScript,vs as referencesName,bs as renderVendorStyleTags,s as stripCommentsAndLiterals,ui as transformAutoImports};
|
package/dist/chunk-kdnbxwkb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Aa,Hl,Pa,Ia,Vl,Ul}from"./chunk-y2t8xd39.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Ul as applySlots,Vl as extractSlotContent,Hl as parseSlotElement,Aa as parseSlots,Ia as processSlots,Pa as renderSlot};
|
package/dist/chunk-khzdk7q9.js
DELETED
package/dist/chunk-kt5mzw2w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{mc,pe,hc,ci,Tt,$t,Xu,li,Rt,hn,yc,bc,vc,ds,At,wc,Pt,xc}from"./chunk-05zhvg8t.js";import"./chunk-1e25xd0z.js";import"./chunk-gh34r6qb.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{hn as MODULE_SPECIFIER_PREFIX,mc as bundleCacheDir,Pt as bundleClientScript,$t as clearBundleFailures,pe as clientBundleDependencies,Tt as getBundleFailures,Rt as hasUserImports,At as moduleSubstitutionKey,bc as normalizeRegistrySpecifiers,wc as queueClientBundleBuild,ci as recordBundleFailure,yc as registryIdForPath,li as resolveBundlerFallback,vc as rewriteRegistryImports,Xu as setBundlerFallbackMode,hc as shouldLogBundlerDiagnostics,xc as tempBuildName,ds as withModuleSubstitutes};
|
package/dist/chunk-kt994306.js
DELETED
package/dist/chunk-mezphhpa.js
DELETED
package/dist/chunk-n7d69a2q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fl}from"./chunk-yq9rfnd6.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Fl as buildApp};
|
package/dist/chunk-qz3tnvwm.js
DELETED
package/dist/chunk-rq9cbw2y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rl,Al,Pl,Il,Ta,Ol,Nl,Dl,Ml,Ll,jl,Bl}from"./chunk-179c1rdn.js";export{jl as Broadcast,Bl as BroadcastServer,Ta as broadcast,Ml as broadcastPresence,Dl as broadcastPrivate,Ll as channel,Rl as getBroadcastServer,Il as loadChannels,Al as startBroadcasting,Pl as stopBroadcasting,Ol as toUser,Nl as toUsers};
|
package/dist/chunk-spvr2vvh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$l}from"./chunk-8e9hd2jq.js";import"./chunk-kf2vas4j.js";import"./chunk-dz4hrgw8.js";import"./chunk-1e25xd0z.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{$l as buildForProduction};
|
package/dist/chunk-t91250ag.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ud,hi,dd,yi,Ic,Oc,jt,_n,pd,Nc,Dc,fd,f}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{jt as buildCss,Nc as extractClassNames,Oc as fingerprintConfig,Dc as generateCss,pd as getCachedCSS,ud as getCssServeAsset,f as injectCss,hi as loadCssEngine,yi as loadCssEngineConfig,_n as rebuildCss,dd as resetCssCache,Ic as resolveUserCssConfig,fd as withLinkedModuleBundles};
|
package/dist/chunk-txkc9w9q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yr,Zr,Qr,ja,es,ts,Ba,ns,rs,Bo,Fa}from"./chunk-8gksvwsm.js";export{Yr as VideoProcessorCache,Bo as analyzeVideo,ja as clearVideoCache,rs as generateDASHManifest,ns as generateHLSManifest,es as generatePoster,Ba as generateSpriteSheet,ts as generateThumbnails,Zr as getCachedVideoResult,Fa as processVideo,Qr as setCachedVideoResult};
|
package/dist/chunk-ty1c2276.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kr,Xr,Jr,Oa,Na,Da,jo,Ma,La}from"./chunk-85bbtv3m.js";export{Kr as ImageProcessorCache,jo as applyTransformations,Oa as clearImageCache,Ma as generateResponsiveVariants,La as generateSrcset,Xr as getCachedImageResult,Da as optimizeImage,Na as processImage,Jr as setCachedImageResult};
|
package/dist/chunk-vepjs3tg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ku,_u}from"./chunk-776f05vk.js";import"./chunk-05zhvg8t.js";import"./chunk-1e25xd0z.js";import"./chunk-gh34r6qb.js";import"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{_u as clearStoreCache,ku as getStoreScript};
|
package/dist/chunk-w21444rc.js
DELETED
package/dist/chunk-wfp754ya.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Qe,Q,Bs,Fs,n}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Q as injectRouterScript,n as processDirectives,Bs as processJsonDirective,Fs as processOnceDirective,Qe as validateClientScript};
|
package/dist/chunk-x3sbsxdq.js
DELETED
package/dist/chunk-xdcvp8tt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ka,To,_l,_a,Ca,Cl,El}from"./chunk-6684b8ym.js";import"./chunk-pfas39mf.js";import"./chunk-05zhvg8t.js";import"./chunk-1e25xd0z.js";import"./chunk-gh34r6qb.js";import{et,Mc}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{ka as buildVirtualSource,et as extractScriptBlocks,Mc as extractTemplateExpressions,_a as findRuntimeTypeDeclarations,Ca as findStxModuleDeclarations,El as formatTypecheckDiagnostics,_l as sourcePathFor,Cl as typecheckStxFiles,To as virtualPathFor};
|
package/dist/chunk-y4egzqqf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ft,Fc,zc,Hc,Vc,Uc,u,Wc,Os,qc,Ai,Pi}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Ft as STX_ENGINE_BINDING_NAMES,Os as convertToCommonJS,Ai as extractScriptFromTemplate,u as extractVariables,Pi as hasVariables,Wc as isCompleteImport,Uc as isMissingBindingFailure,Hc as isModuleResolutionFailure,Vc as isSyntaxFailure,qc as splitDeclaration,Fc as stripTypeScript,zc as withoutStxReferrer};
|
package/dist/chunk-y4nm9wq4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eo,Td,$d,Zi,xe,ol,Cr,Rd,Ad,Pd,Id,Od,Nd,Dd,Md,Ld}from"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";export{Nd as applyHead,Rd as definePageMeta,eo as getHead,Td as getPageMeta,xe as mergeHeadConfigs,Dd as processHeadDirective,Ld as processMetaDirective,Md as processTitleDirective,Od as renderBodyAttrs,Pd as renderHead,Id as renderHtmlAttrs,$d as resetHead,Cr as seoMetaToHeadConfig,Zi as useHead,Ad as usePageTitle,ol as useSeoMeta,Ad as useTitle};
|
package/dist/chunk-ygx0akfn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dt,Ns,Ii,Gc}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{Gc as declareBareLoopHead,Dt as parseLoopBinding,Ii as processLoops,Ns as reportDeferredLoopWarnings};
|
package/dist/chunk-yn9fwnq2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A,rl,Hs,o,P,wd,xd}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{P as config,A as defaultConfig,wd as defineStxConfig,Hs as discoverConfig,o as loadStxConfig,rl as resolveStxDirectories,xd as validateConfig};
|
package/dist/chunk-z0gfb7b4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yd,Kc,$e,Oi,bd,Ds,Ms,Ls}from"./chunk-b5cv9xp7.js";import"./chunk-62kxavc5.js";import"./chunk-2wvz3fd2.js";import"./chunk-nz6bzffm.js";import"./chunk-70npkeh2.js";import"./chunk-3p2b88pd.js";import"./chunk-7ky2ny63.js";import"./chunk-evs5gb3q.js";import"./chunk-9b4e815s.js";import"./chunk-4fv3jq16.js";import"./chunk-rns21kkv.js";import"./chunk-d1ya7f79.js";import"./chunk-1ma56c2h.js";export{bd as clearOnceStore,Oi as onceStore,$e as partialsCache,Ds as processIncludes,Ms as processStackPushDirectives,Ls as processStackReplacements,yd as resetUnscopedSignalWarnings,Kc as topLevelElements};
|
package/dist/chunk-z3e54btj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ma,_o,ha,ya,Co,ba,va,wa,xa,Eo,Sa,kl}from"./chunk-7mpv1a02.js";import{Mo,$a}from"./chunk-myhxapnn.js";import{F,z,H,Yt,te,ue,Yn,ze,kt,Zt,Qt,en,V,tn,nn,Zn}from"./chunk-xh98er3b.js";import{oc}from"./chunk-w9c7z8p3.js";import"./chunk-aqra0qcg.js";export{z as DEFAULT_FORMATS,H as DEFAULT_QUALITY,F as DEFAULT_WIDTHS,Zn as ImageProcessingError,ya as clearImageCache,Co as createImageDirective,$a as createImageHandler,va as createImagePlugin,kl as defaultImageConfig,nn as formatSize,Eo as generateImageManifest,kt as generateSizes,ze as generateSrcSet,Zt as getFallbackVariant,Yn as getImageMetadata,V as getMimeType,tn as getTotalSize,Qt as groupVariantsByFormat,Mo as handleImageRequest,ba as imageDirective,te as isImageBackendAvailable,en as isImageFile,Yt as isSharpAvailable,xa as optimizeDirectory,wa as optimizeImage,_o as parseImageComponent,ue as processImage,ha as processImageComponents,ma as renderImageComponent,oc as rewriteImagesWithSiblings,Sa as writeImageManifest};
|