@stacksjs/stx 0.2.445 → 0.2.447

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/app-service-worker.d.ts +6 -0
  2. package/dist/{chunk-qa7j3j71.js → chunk-0tchj3ct.js} +4 -4
  3. package/dist/{chunk-7676qzab.js → chunk-0xztxj98.js} +3 -3
  4. package/dist/{chunk-5mxr3acg.js → chunk-13raxes0.js} +1 -1
  5. package/dist/{chunk-hkx8pggg.js → chunk-19h1j59a.js} +1 -1
  6. package/dist/chunk-21ypr4t0.js +2 -0
  7. package/dist/{chunk-1g91pegz.js → chunk-237psdsd.js} +1 -1
  8. package/dist/{chunk-mx9wp3va.js → chunk-26wmppja.js} +1 -1
  9. package/dist/chunk-2tpvt1c5.js +2 -0
  10. package/dist/chunk-4gjc61wn.js +2 -0
  11. package/dist/{chunk-9ad04ksh.js → chunk-4yyzje7d.js} +1 -1
  12. package/dist/{chunk-f85dyf2f.js → chunk-538h1sfc.js} +2 -2
  13. package/dist/{chunk-vxgtq00t.js → chunk-56rk985x.js} +3 -3
  14. package/dist/{chunk-1qnyn82e.js → chunk-5cyme1g0.js} +2 -2
  15. package/dist/chunk-5ftzrjpd.js +2 -0
  16. package/dist/{chunk-vyw0csez.js → chunk-5vgdbqbz.js} +3 -3
  17. package/dist/{chunk-56hvemdx.js → chunk-5xj1df83.js} +17 -17
  18. package/dist/{chunk-b5emjcf1.js → chunk-7417f610.js} +2 -2
  19. package/dist/chunk-78wsn958.js +2 -0
  20. package/dist/chunk-7aspn183.js +2 -0
  21. package/dist/{chunk-gvefw19e.js → chunk-7vdsd9rn.js} +1 -1
  22. package/dist/{chunk-r3f9jcf7.js → chunk-849wf19d.js} +3 -3
  23. package/dist/{chunk-j0nyamyf.js → chunk-8ah8npj3.js} +1 -1
  24. package/dist/chunk-8bzc2v6z.js +2 -0
  25. package/dist/{chunk-8nsmx2w4.js → chunk-8fj8sm1a.js} +2 -2
  26. package/dist/chunk-8gk34047.js +2 -0
  27. package/dist/{chunk-dvja1k84.js → chunk-8nsfkr5n.js} +1 -1
  28. package/dist/chunk-8y4wrp43.js +2 -0
  29. package/dist/{chunk-cm875f73.js → chunk-90562q79.js} +2 -2
  30. package/dist/{chunk-bbnyq3gm.js → chunk-9ndzk9r4.js} +2 -2
  31. package/dist/{chunk-97tb2m44.js → chunk-9xf7yk65.js} +2 -2
  32. package/dist/{chunk-224x6rsx.js → chunk-a5695s8k.js} +1 -1
  33. package/dist/{chunk-2xnwsavq.js → chunk-afhkvj3k.js} +2 -2
  34. package/dist/{chunk-m4q2e418.js → chunk-b1q5sh7x.js} +2 -2
  35. package/dist/{chunk-w9ebf2rb.js → chunk-bderms43.js} +1 -1
  36. package/dist/{chunk-gmzaknjp.js → chunk-bqc07550.js} +1 -1
  37. package/dist/chunk-brtvd5bs.js +2 -0
  38. package/dist/{chunk-cmctzee2.js → chunk-bxhzs857.js} +2 -2
  39. package/dist/{chunk-fbhgabf2.js → chunk-cs3507d0.js} +1 -1
  40. package/dist/chunk-cwc3p6p7.js +2 -0
  41. package/dist/chunk-d3yrvve4.js +2 -0
  42. package/dist/chunk-dk3zazaw.js +2 -0
  43. package/dist/{chunk-ye27ept1.js → chunk-e593pr1r.js} +1 -1
  44. package/dist/chunk-e8y69gg0.js +2 -0
  45. package/dist/chunk-es85mgdw.js +2 -0
  46. package/dist/chunk-fhpfe2s3.js +2 -0
  47. package/dist/chunk-fmc9fj4a.js +2 -0
  48. package/dist/chunk-fn863yek.js +2 -0
  49. package/dist/{chunk-ean2kjmg.js → chunk-fp6v2dq5.js} +4 -4
  50. package/dist/{chunk-egaknprm.js → chunk-frv8bhmz.js} +82 -82
  51. package/dist/{chunk-rvbcnahe.js → chunk-g2afpsw0.js} +2 -2
  52. package/dist/{chunk-dn9thd0h.js → chunk-g3h7j2n7.js} +2 -2
  53. package/dist/chunk-g4hv6v3e.js +2 -0
  54. package/dist/{chunk-aa7w63xc.js → chunk-g8k5rsqq.js} +32 -32
  55. package/dist/{chunk-4mppjen3.js → chunk-get6k573.js} +1 -1
  56. package/dist/{chunk-7v163hb5.js → chunk-gm7ewgf4.js} +1 -1
  57. package/dist/{chunk-csjm1z0c.js → chunk-h3gdfbmf.js} +1 -1
  58. package/dist/chunk-hdat2brj.js +2 -0
  59. package/dist/{chunk-81zfdd95.js → chunk-hhjff2r8.js} +3 -3
  60. package/dist/{chunk-j3gcjbnm.js → chunk-hz6a476h.js} +1 -1
  61. package/dist/chunk-j19s8n7w.js +2 -0
  62. package/dist/chunk-j1h2z4wh.js +2 -0
  63. package/dist/chunk-j3se49h7.js +2 -0
  64. package/dist/{chunk-xq4jdzje.js → chunk-jn8tj4kn.js} +3 -3
  65. package/dist/chunk-kwsw9tc4.js +2 -0
  66. package/dist/{chunk-xgwempyb.js → chunk-m5298269.js} +2 -2
  67. package/dist/{chunk-41fbr3m6.js → chunk-mmp7x8f0.js} +1 -1
  68. package/dist/chunk-mtctv02d.js +2 -0
  69. package/dist/{chunk-4rpfmh9w.js → chunk-n5w8nwec.js} +1 -1
  70. package/dist/{chunk-b3e0hcw0.js → chunk-n7n9zxmh.js} +100 -100
  71. package/dist/chunk-nkzn1hqq.js +2 -0
  72. package/dist/{chunk-06qhvtsv.js → chunk-ns7e951g.js} +1 -1
  73. package/dist/{chunk-ca24g1fa.js → chunk-p7m673vn.js} +4 -4
  74. package/dist/chunk-p9shre7t.js +2 -0
  75. package/dist/chunk-pgnr089q.js +2 -0
  76. package/dist/{chunk-0xntpjmp.js → chunk-pkpmyr0x.js} +2 -2
  77. package/dist/{chunk-ybk279xj.js → chunk-qmfwhvcr.js} +4 -4
  78. package/dist/{chunk-sgxjqqvd.js → chunk-qmp7j5h4.js} +1 -1
  79. package/dist/chunk-rp69az5a.js +2 -0
  80. package/dist/{chunk-h7ny0py8.js → chunk-s6e8mmk1.js} +1 -1
  81. package/dist/chunk-sfvyfvbm.js +2 -0
  82. package/dist/{chunk-9tbevvm3.js → chunk-t01a2dfe.js} +12 -12
  83. package/dist/chunk-t6d5zq7d.js +2 -0
  84. package/dist/{chunk-mcgpeyy8.js → chunk-tehvry9a.js} +4 -4
  85. package/dist/{chunk-t9tg1syw.js → chunk-vbzeeeax.js} +8 -8
  86. package/dist/{chunk-3yws0k28.js → chunk-vnq2c0tg.js} +5 -5
  87. package/dist/{chunk-ak7eyyka.js → chunk-w8ek4fe8.js} +2 -2
  88. package/dist/chunk-wf09xg7j.js +2 -0
  89. package/dist/{chunk-bh432b7n.js → chunk-x4ztj64h.js} +2 -2
  90. package/dist/{chunk-b7x7099z.js → chunk-y6zm894z.js} +5 -5
  91. package/dist/{chunk-9f0srtmg.js → chunk-yfd0e7dr.js} +1 -1
  92. package/dist/{chunk-39726w03.js → chunk-yn3w9g2z.js} +4 -4
  93. package/dist/chunk-ytq686vx.js +2 -0
  94. package/dist/{chunk-5zpt78j4.js → chunk-yx37nrgr.js} +4 -4
  95. package/dist/{chunk-3wdarmh7.js → chunk-z4b0kr1z.js} +4 -4
  96. package/dist/{chunk-12mzd0gf.js → chunk-z72wwstp.js} +3 -3
  97. package/dist/chunk-zj80vrv6.js +2 -0
  98. package/dist/{chunk-cs15xqf0.js → chunk-zqzv5jy2.js} +4 -4
  99. package/dist/cli.js +12 -12
  100. package/dist/craft-entry.js +2 -2
  101. package/dist/craft.js +2 -2
  102. package/dist/offline/app-service-worker.d.ts +6 -0
  103. package/dist/offline/app-service-worker.js +10 -3
  104. package/dist/pwa.js +3 -3
  105. package/dist/ssg.js +16 -16
  106. package/dist/utils.js +24 -9
  107. package/package.json +2 -2
  108. package/dist/chunk-0e6da0m4.js +0 -2
  109. package/dist/chunk-2b66v3yx.js +0 -2
  110. package/dist/chunk-4awtqfv7.js +0 -2
  111. package/dist/chunk-4ct5vj9n.js +0 -2
  112. package/dist/chunk-66czf70n.js +0 -2
  113. package/dist/chunk-7cdrpkzz.js +0 -2
  114. package/dist/chunk-7kyr2atb.js +0 -2
  115. package/dist/chunk-8bsy7r0w.js +0 -2
  116. package/dist/chunk-93wp5h7v.js +0 -2
  117. package/dist/chunk-a14zkmbp.js +0 -2
  118. package/dist/chunk-a8hjvjb8.js +0 -2
  119. package/dist/chunk-e1n2t5tk.js +0 -2
  120. package/dist/chunk-frys2748.js +0 -2
  121. package/dist/chunk-gy7t9wd0.js +0 -2
  122. package/dist/chunk-h15q5qan.js +0 -2
  123. package/dist/chunk-hvawaf7a.js +0 -2
  124. package/dist/chunk-k2k6engs.js +0 -2
  125. package/dist/chunk-kp7r61aj.js +0 -2
  126. package/dist/chunk-kr2phxhf.js +0 -2
  127. package/dist/chunk-m2k2b81v.js +0 -2
  128. package/dist/chunk-p2b0r3qn.js +0 -2
  129. package/dist/chunk-p46gy056.js +0 -2
  130. package/dist/chunk-p5hrdsk9.js +0 -2
  131. package/dist/chunk-qy8wb31b.js +0 -2
  132. package/dist/chunk-qzyfjyna.js +0 -2
  133. package/dist/chunk-rwdkh7c0.js +0 -2
  134. package/dist/chunk-sjgg6r0a.js +0 -2
  135. package/dist/chunk-tq441vbg.js +0 -2
  136. package/dist/chunk-vn09wm09.js +0 -2
  137. package/dist/chunk-xex4nkgq.js +0 -2
  138. package/dist/chunk-xr03p49w.js +0 -2
  139. package/dist/chunk-y8kz05mn.js +0 -2
  140. package/dist/chunk-ycmc1zpt.js +0 -2
  141. package/dist/chunk-ymvdbs80.js +0 -2
package/dist/pwa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{An,Ie,Ii,Oa}from"./chunk-xq4jdzje.js";import{Rn,Br,Pa,Ia,Da}from"./chunk-h7ny0py8.js";import{Ri,Ai,Pi,Ra,Aa}from"./chunk-1qnyn82e.js";import{ie,pt,Fr}from"./chunk-bbnyq3gm.js";import{Nc,Lc,jc,Bc,lr,rd}from"./chunk-tn85vr56.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-hvawaf7a.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>
2
+ import{An,Ie,Do,Oa}from"./chunk-jn8tj4kn.js";import{Rn,Br,Pa,Ia,Da}from"./chunk-s6e8mmk1.js";import{Ao,Po,Io,Ra,Aa}from"./chunk-5cyme1g0.js";import{oe,pt,Fr}from"./chunk-9ndzk9r4.js";import{Nc,Lc,jc,Bc,lr,rd}from"./chunk-tn85vr56.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-j19s8n7w.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}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=ie(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=An(n,t);if(a){let s=Ie(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 Br(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,Ai as auditBuildOutput,Ri as auditConfig,re as buildPwaAssets,Pi as calculateAuditResult,Aa as formatAuditResult,Fr as formatSize,j as generateManifest,_ as generateManifestJson,Ia as generateManifestLink,F as generateOfflinePage,ie as generatePrecacheManifest,pt as generatePrecacheManifestJs,M as generatePwaIcons,Rn as generatePwaTags,An as generateServiceWorker,Oa as generateServiceWorkerAuto,Pa as generateSwRegistrationScript,Da as generateThemeColorMeta,N as getExpectedIconPaths,Ie as getServiceWorkerFileName,Br as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,Ii as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,lr as pwaDirectives,Nc as pwaInstallDirective,jc as pwaOfflineDirective,Bc as pwaPushDirective,Lc as pwaUpdateDirective,rd as registerPwaDirectives,Ra as runPwaAudit,D as validateManifest};
236
+ </html>`}function b(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}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=oe(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=An(n,t);if(a){let s=Ie(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 Br(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,Po as auditBuildOutput,Ao as auditConfig,re as buildPwaAssets,Io as calculateAuditResult,Aa as formatAuditResult,Fr as formatSize,j as generateManifest,_ as generateManifestJson,Ia as generateManifestLink,F as generateOfflinePage,oe as generatePrecacheManifest,pt as generatePrecacheManifestJs,M as generatePwaIcons,Rn as generatePwaTags,An as generateServiceWorker,Oa as generateServiceWorkerAuto,Pa as generateSwRegistrationScript,Da as generateThemeColorMeta,N as getExpectedIconPaths,Ie as getServiceWorkerFileName,Br as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,Do as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,lr as pwaDirectives,Nc as pwaInstallDirective,jc as pwaOfflineDirective,Bc as pwaPushDirective,Lc as pwaUpdateDirective,rd as registerPwaDirectives,Ra as runPwaAudit,D as validateManifest};
package/dist/ssg.js CHANGED
@@ -1,26 +1,26 @@
1
1
  // @bun
2
- import"./chunk-56hvemdx.js";import"./chunk-73h7qjgq.js";import{Qe,et,tt,nt,rt,st}from"./chunk-b5emjcf1.js";import"./chunk-2xnwsavq.js";import"./chunk-axydabse.js";import{f,je,M,q,n,i}from"./chunk-b3e0hcw0.js";import"./chunk-cs15xqf0.js";import{Zn}from"./chunk-aa7w63xc.js";import"./chunk-jwpcck1b.js";import"./chunk-7v163hb5.js";import"./chunk-dqr5n49p.js";import"./chunk-5zpt78j4.js";import"./chunk-vyw0csez.js";import{oe,ft,gt}from"./chunk-3yws0k28.js";import{Ei,Ti,_i}from"./chunk-r3f9jcf7.js";import{dt,Xt,Gt}from"./chunk-yd50awqp.js";import"./chunk-7676qzab.js";import{a}from"./chunk-cm875f73.js";import x from"fs";import g from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function lt(t,s={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let o=new Map,r=t.replace(Rt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(s.minify)h=Dt(h);let S=kt(h);if(!o.has(S))o.set(S,h);let P=s.integrity?` data-stx-integrity="sha384-${$t("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(o,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var Ct=new Set(["visible","idle"]);function ut(t){if(!t.includes("data-stx-src="))return t;let s=new Map,o=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=o.exec(t))!==null)s.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(Ct.has(s.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 J(t){let s=t.trim();if(!s)return null;let o=/^https?:\/\//i.test(s)?s:`https://${s}`;try{return new URL(o).origin+new URL(o).pathname.replace(/\/$/,"")}catch{return null}}function It(t){for(let s of Et){let o=t[s];if(!o)continue;let r=J(o);if(r)return{url:r,source:"env",via:s}}return null}function pt(t){if(!t||typeof t!=="object")return null;let s=t,o=s.site?.url??s.url??s.app?.url;return typeof o==="string"?J(o):null}async function Bt(t){let{existsSync:s}=await import("fs"),o=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=o.resolve(t,r);if(!s(c))continue;try{let e=await import(c),l=pt(e.default??e);if(l)return l}catch{}}return null}async function ht(t={}){let s=t.cwd??process.cwd(),o=t.env??process.env;if(t.explicit){let l=J(t.explicit);if(l)return{url:l,source:"option"}}let r=pt(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await Bt(s);if(c)return{url:c,source:"site.config",via:"url"};let e=It(o);if(e)return e;return{url:"http://localhost",source:"fallback"}}function mt(){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
- `)}class wt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,s=""){this.cacheDir=t,this.salt=s}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let s=JSON.parse(await Bun.file(t).text());for(let[o,r]of Object.entries(s))this.cache.set(o,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),s={};for(let[o,r]of this.cache)s[o]=r;await Bun.write(t,JSON.stringify(s))}getHash(t,s){let o=x.statSync(t),r=`${this.salt}|${t}:${o.mtimeMs}`;for(let e of s)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,s){let o=this.cache.get(t);if(!o)return null;let r=this.getHash(s,o.dependencies??[]);if(o.hash!==r)return this.cache.delete(t),null;return o.html}set(t,s,o,r){let c=this.getHash(s,o);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:o})}}class yt{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let s=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",s)}async get(t){let s=this.getFilePath(t);if(!await Bun.file(s).exists())return null;try{return JSON.parse(await Bun.file(s).text())}catch{return null}}async set(t,s){let o=this.getFilePath(t);await x.promises.mkdir(g.dirname(o),{recursive:!0}),await Bun.write(o,JSON.stringify(s))}async invalidate(t){let s=this.getFilePath(t);if(await Bun.file(s).exists())await x.promises.unlink(s)}async invalidatePattern(t){let s=g.join(this.cacheDir,"isr");if(!x.existsSync(s))return;let o=await x.promises.readdir(s);for(let r of o){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(s,r))}}async needsRevalidation(t){let s=await this.get(t);if(!s)return!0;return Date.now()>s.revalidateAfter}}async function jt(t){try{let o=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!o)return null;let r=o[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(`
2
+ import"./chunk-5xj1df83.js";import"./chunk-73h7qjgq.js";import{Qe,et,tt,nt,rt,st}from"./chunk-7417f610.js";import"./chunk-afhkvj3k.js";import"./chunk-axydabse.js";import{f,je,M,q,n,o}from"./chunk-n7n9zxmh.js";import"./chunk-zqzv5jy2.js";import{Zn}from"./chunk-g8k5rsqq.js";import"./chunk-jwpcck1b.js";import"./chunk-gm7ewgf4.js";import"./chunk-dqr5n49p.js";import"./chunk-yx37nrgr.js";import"./chunk-5vgdbqbz.js";import{ie,ft,gt}from"./chunk-vnq2c0tg.js";import{To,_o,Ro}from"./chunk-849wf19d.js";import{dt,Xt,Gt}from"./chunk-yd50awqp.js";import"./chunk-0xztxj98.js";import{a}from"./chunk-90562q79.js";import x from"fs";import g from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function lt(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Rt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Dt(h);let S=kt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${$t("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 Ct=new Set(["visible","idle"]);function ut(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(Ct.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 J(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=J(s);if(r)return{url:r,source:"env",via:i}}return null}function pt(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?J(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=pt(e.default??e);if(l)return l}catch{}}return null}async function ht(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=J(t.explicit);if(l)return{url:l,source:"option"}}let r=pt(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 mt(){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
+ `)}class wt{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 yt{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]}
6
6
  })()
7
- `)()}catch(s){return console.error(`Error extracting static paths from ${t}:`,s),null}}async function Ft(t){let s=[];if(!t.isDynamic)s.push({url:t.pattern,params:{}});else{let o=await jt(t.filePath);if(!o||o.paths.length===0)return console.warn(`Warning: Dynamic route ${t.pattern} has no getStaticPaths or returned empty paths`),s;for(let r of o.paths){let c=t.pattern;for(let[e,l]of Object.entries(r.params))c=c.replace(`:${e}`,l).replace(`:${e}*`,l);s.push({url:c,params:r.params,props:r.props,revalidate:r.revalidate})}}return s}async function Ot(t){let s=[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"];for(let o of s)if(await Bun.file(o).exists())try{let r=await import(o);if(typeof r.default==="function")return await r.default();else if(typeof r.default==="object")return r.default;else if(typeof r.getData==="function")return await r.getData();else{let{default:c,...e}=r;return e}}catch(r){console.error(`Error loading data file ${o}:`,r)}return null}async function Tt(t,s,o){let r=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!r)return null;let c=r[1];if(!c.includes("getStaticProps"))return null;try{let e=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
7
+ `)()}catch(i){return console.error(`Error extracting static paths from ${t}:`,i),null}}async function Ft(t){let i=[];if(!t.isDynamic)i.push({url:t.pattern,params:{}});else{let s=await jt(t.filePath);if(!s||s.paths.length===0)return console.warn(`Warning: Dynamic route ${t.pattern} has no getStaticPaths or returned empty paths`),i;for(let r of s.paths){let c=t.pattern;for(let[e,l]of Object.entries(r.params))c=c.replace(`:${e}`,l).replace(`:${e}*`,l);i.push({url:c,params:r.params,props:r.props,revalidate:r.revalidate})}}return i}async function Ot(t){let i=[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"];for(let s of i)if(await Bun.file(s).exists())try{let r=await import(s);if(typeof r.default==="function")return await r.default();else if(typeof r.default==="object")return r.default;else if(typeof r.getData==="function")return await r.getData();else{let{default:c,...e}=r;return e}}catch(r){console.error(`Error loading data file ${s}:`,r)}return null}async function Tt(t,i,s){let r=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!r)return null;let c=r[1];if(!c.includes("getStaticProps"))return null;try{let e=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
8
8
  return (async function getStaticProps() {
9
9
  ${e[1]}
10
10
  })()
11
- `)(s)}catch(e){return console.error(`Error executing getStaticProps in ${o}:`,e),null}}function At(t){return/(?:^|[^\w$.])(?:export\s+)?(?:async\s+)?function\s+action\s*\(/.test(t)||/(?:^|[^\w$.])(?:export\s+)?(?:const|let|var)\s+action\s*=/.test(t)}async function St(t,s,o={},r,c){let e=await Bun.file(t.filePath).text(),l=await Ot(t.filePath),w=await Tt(e,s,t.filePath),y={...l||{},...w||{},...o,params:s,$route:{path:t.pattern,params:s}},h=new Set,S=[],P=[],D={...c,...r.partialsDir?{partialsDir:r.partialsDir}:{},...r.componentsDir?{componentsDir:r.componentsDir}:{},debug:!1,cache:!1,autoShell:!0,onIncludeError:(b)=>{S.push(`${g.relative(process.cwd(),b.templatePath)}: ${b.message}
12
- resolved against partialsDir: ${b.partialsDir}`)},onServerScriptError:(b)=>{P.push(`${g.relative(process.cwd(),b.sourcePath)} (${b.kind}): ${b.message}`)}};if(At(e))console.warn(`Warning: ${t.pattern} exports a page action, which cannot run in a static build. Its form will submit to a file. Serve this route with the production server, or point the form's action at a route handler.`);let p=await n(e,y,t.filePath,D,h);for(let b of[t.filePath,...h])for(let B of oe(b))h.add(B);if(Object.keys(s).length>0){let b=`<script>if(window.stx)window.stx._rp=${JSON.stringify(s)};else window.__stx_rp=${JSON.stringify(s)};</script>`;if(p.includes("</head>"))p=p.replace("</head>",`${b}
11
+ `)(i)}catch(e){return console.error(`Error executing getStaticProps in ${s}:`,e),null}}function At(t){return/(?:^|[^\w$.])(?:export\s+)?(?:async\s+)?function\s+action\s*\(/.test(t)||/(?:^|[^\w$.])(?:export\s+)?(?:const|let|var)\s+action\s*=/.test(t)}async function St(t,i,s={},r,c){let e=await Bun.file(t.filePath).text(),l=await Ot(t.filePath),w=await Tt(e,i,t.filePath),y={...l||{},...w||{},...s,params:i,$route:{path:t.pattern,params:i}},h=new Set,S=[],P=[],D={...c,...r.partialsDir?{partialsDir:r.partialsDir}:{},...r.componentsDir?{componentsDir:r.componentsDir}:{},debug:!1,cache:!1,autoShell:!0,onIncludeError:(b)=>{S.push(`${g.relative(process.cwd(),b.templatePath)}: ${b.message}
12
+ resolved against partialsDir: ${b.partialsDir}`)},onServerScriptError:(b)=>{P.push(`${g.relative(process.cwd(),b.sourcePath)} (${b.kind}): ${b.message}`)}};if(At(e))console.warn(`Warning: ${t.pattern} exports a page action, which cannot run in a static build. Its form will submit to a file. Serve this route with the production server, or point the form's action at a route handler.`);let p=await n(e,y,t.filePath,D,h);for(let b of[t.filePath,...h])for(let B of ie(b))h.add(B);if(Object.keys(i).length>0){let b=`<script>if(window.stx)window.stx._rp=${JSON.stringify(i)};else window.__stx_rp=${JSON.stringify(i)};</script>`;if(p.includes("</head>"))p=p.replace("</head>",`${b}
13
13
  </head>`);else p=`${b}
14
- ${p}`}if(p=await q(p,{router:r.router}),p=await f(p),r.minify!==!1)return{html:Lt(p),dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P};return{html:p,dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P}}function Lt(t){let s=[],o=0,r=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,c;while((c=r.exec(t))!==null){let l=t.slice(o,c.index);s.push(l.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let w=c[1],y=c[2],h=c[3];y=y.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),s.push(w+y+h),o=c.index+c[0].length}let e=t.slice(o);return s.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),s.join("").trim()}function Mt(t){let s=0;for(let o=0;o<t.length;o++){let r=t.charCodeAt(o);s=(s<<5)-s+r,s=s&s}return`"${Math.abs(s).toString(36)}"`}function Ut(t,s,o,r){if(o?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(s))return!0;return r.some((c)=>{if(c instanceof RegExp)return c.test(t);return c.endsWith("/")?t===c.slice(0,-1)||t.startsWith(c):t===c})}function _t(t,s){return`<?xml version="1.0" encoding="UTF-8"?>
14
+ ${p}`}if(p=await q(p,{router:r.router}),p=await f(p),r.minify!==!1)return{html:Lt(p),dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P};return{html:p,dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P}}function Lt(t){let i=[],s=0,r=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,c;while((c=r.exec(t))!==null){let l=t.slice(s,c.index);i.push(l.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let w=c[1],y=c[2],h=c[3];y=y.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),i.push(w+y+h),s=c.index+c[0].length}let e=t.slice(s);return i.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),i.join("").trim()}function Mt(t){let i=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);i=(i<<5)-i+r,i=i&i}return`"${Math.abs(i).toString(36)}"`}function Ut(t,i,s,r){if(s?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(i))return!0;return r.some((c)=>{if(c instanceof RegExp)return c.test(t);return c.endsWith("/")?t===c.slice(0,-1)||t.startsWith(c):t===c})}function _t(t,i){return`<?xml version="1.0" encoding="UTF-8"?>
15
15
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
16
- ${t.map((r)=>{let c=new URL(r.loc,s).href,e=` <url>
16
+ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
17
17
  <loc>${I(c)}</loc>`;if(r.lastmod)e+=`
18
18
  <lastmod>${r.lastmod}</lastmod>`;if(r.changefreq)e+=`
19
19
  <changefreq>${r.changefreq}</changefreq>`;if(r.priority!==void 0)e+=`
20
20
  <priority>${r.priority}</priority>`;return e+=`
21
21
  </url>`,e}).join(`
22
22
  `)}
23
- </urlset>`}function I(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Nt(t,s){let o=s.map((r)=>{let c=" <item>";if(c+=`
23
+ </urlset>`}function I(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Nt(t,i){let s=i.map((r)=>{let c=" <item>";if(c+=`
24
24
  <title>${I(r.title)}</title>`,c+=`
25
25
  <link>${I(r.link)}</link>`,r.description)c+=`
26
26
  <description>${I(r.description)}</description>`;if(r.pubDate)c+=`
@@ -38,13 +38,13 @@ ${t.map((r)=>{let c=new URL(r.loc,s).href,e=` <url>
38
38
  ${t.copyright?`<copyright>${I(t.copyright)}</copyright>`:""}
39
39
  <lastBuildDate>${new Date().toUTCString()}</lastBuildDate>
40
40
  <atom:link href="${t.link}/rss.xml" rel="self" type="application/rss+xml"/>
41
- ${o.join(`
41
+ ${s.join(`
42
42
  `)}
43
43
  </channel>
44
- </rss>`}async function zt(t={}){let s=Date.now();gt();let o=await i(process.cwd()),r=o.build||{},c=await ht({explicit:t.domain||r.domain,stxConfig:o});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(mt());let e={router:t.router??o?.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||o?.partialsDir||"",componentsDir:t.componentsDir||o?.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-7kyr2atb.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-5mxr3acg.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 wt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-7kyr2atb.js");await u('<div class="bg-black"></div>')}catch{}Qe();let xt=o?.routeMiddleware?.dir||"middleware";await tt(process.cwd(),xt);let H=et();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let vt=o?.routeMiddleware?.global||[];_i(o?.layoutsDir,a(process.cwd()));let K=M(".",{pagesDir:e.pagesDir,pagesDirs:o?._layerPageDirs});console.log(`Found ${K.length} routes`);let G=[];for(let u of K){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 A=[],X=[];for(let u=0;u<G.length;u+=e.concurrency)X.push(G.slice(u,u+e.concurrency));for(let u of X)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:bt,revalidate:Q}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Jt(j),Pt=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],it=[...vt,...Pt];if(it.length>0){let C=nt(d,L,F||{}),O=rt(C,null,void 0,{isServer:!0}),E=await st(it,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,_=Vt(String(R),d),T=Kt(d,e);await x.promises.mkdir(g.dirname(T),{recursive:!0}),await Bun.write(T,_),l.successCount++,l.pages.push({route:d,outputPath:T,size:Buffer.byteLength(_),cached:!1}),A.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 at=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(at)try{if(!await Function("route",`
44
+ </rss>`}async function zt(t={}){let i=Date.now();gt();let s=await o(process.cwd()),r=s.build||{},c=await ht({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(mt());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-pgnr089q.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-13raxes0.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 wt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-pgnr089q.js");await u('<div class="bg-black"></div>')}catch{}Qe();let xt=s?.routeMiddleware?.dir||"middleware";await tt(process.cwd(),xt);let H=et();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let vt=s?.routeMiddleware?.global||[];Ro(s?.layoutsDir,a(process.cwd()));let K=M(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${K.length} routes`);let G=[];for(let u of K){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 A=[],X=[];for(let u=0;u<G.length;u+=e.concurrency)X.push(G.slice(u,u+e.concurrency));for(let u of X)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:bt,revalidate:Q}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Jt(j),Pt=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],it=[...vt,...Pt];if(it.length>0){let C=nt(d,L,F||{}),O=rt(C,null,void 0,{isServer:!0}),E=await st(it,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,_=Vt(String(R),d),T=Kt(d,e);await x.promises.mkdir(g.dirname(T),{recursive:!0}),await Bun.write(T,_),l.successCount++,l.pages.push({route:d,outputPath:T,size:Buffer.byteLength(_),cached:!1}),A.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 at=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(at)try{if(!await Function("route",`
45
45
  const validate = ${at[1]};
46
46
  return validate(route);
47
- `)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,ot=!1;if(e.cache){if(k=B.get(d,v.filePath),k)ot=!0,l.cachedCount++}if(!k){let C=await St(v,L,bt,e,o);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:
47
+ `)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,ot=!1;if(e.cache){if(k=B.get(d,v.filePath),k)ot=!0,l.cachedCount++}if(!k){let C=await St(v,L,bt,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:
48
48
  ${C.includeFailures.join(`
49
49
  `)}
50
50
  Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptError&&C.serverScriptFailures.length>0)throw Error(`${C.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
@@ -52,7 +52,7 @@ Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptEr
52
52
  `)}
53
53
  Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)B.set(d,v.filePath,C.dependencies,k)}let U;if(e.trailingSlash)U=g.join(e.outputDir,d,"index.html");else U=d==="/"?g.join(e.outputDir,"index.html"):g.join(e.outputDir,`${d}.html`);if(e.chunkIslands){let{html:C,chunks:O}=lt(k,{integrity:e.integrityIslands,minify:e.minify});if(O.length>0){let E=g.join(e.outputDir,"_stx","islands");await x.promises.mkdir(E,{recursive:!0});for(let R of O){let _=g.join(E,`${R.hash}.js`);if(!await Bun.file(_).exists())await Bun.write(_,R.code);if(!w.has(R.hash)){w.add(R.hash);let T=Buffer.byteLength(R.code,"utf8");y+=T,h[R.hash]={bytes:T,file:`/_stx/islands/${R.hash}.js`}}}if(S[d]=O.map((R)=>R.hash),k=C,e.prefetchIslands)k=ut(k)}}if(await x.promises.mkdir(g.dirname(U),{recursive:!0}),await Bun.write(U,k),!Ut(d,k,F,e.sitemapExclude))A.push({loc:d,lastmod:new Date().toISOString().split("T")[0],priority:d==="/"?1:0.8});let ct={route:d,outputPath:U,size:Buffer.byteLength(k,"utf8"),cached:ot};if(Q!==!1)ct.revalidateAt=Date.now()+Q*1000;l.pages.push(ct),l.successCount++,await e.hooks.onPageEnd?.(d,k)}catch(j){l.failedCount++,l.errors.push({route:d,error:j}),await e.hooks.onError?.(j,d),console.error(`Error generating ${d}:`,j)}}));let Y=ft();if(Y.length>0){let u=Y.map((m)=>`${m.filePath}: ${m.message}`).join(`
54
54
  `);throw Error(`Client script bundling failed:
55
- ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.stx");if(await Bun.file(u).exists()){let m=new Set,v={...o,debug:!1,cache:!1},d=await n(await Bun.file(u).text(),{},u,v,m);await Bun.write(g.join(e.outputDir,"404.html"),d)}else await Bun.write(g.join(e.outputDir,"404.html"),`<!DOCTYPE html>
55
+ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.stx");if(await Bun.file(u).exists()){let m=new Set,v={...s,debug:!1,cache:!1},d=await n(await Bun.file(u).text(),{},u,v,m);await Bun.write(g.join(e.outputDir,"404.html"),d)}else await Bun.write(g.join(e.outputDir,"404.html"),`<!DOCTYPE html>
56
56
  <html lang="en">
57
57
  <head>
58
58
  <meta charset="UTF-8">
@@ -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={...o,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...o,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&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.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=Zn({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=Ei(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=Ti(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 V(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Z=Gt();if(Z)await V(Z,g.join(e.outputDir,Xt)),console.log(`Copied assets from ${dt}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-s,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?`
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},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}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&&A.length>0){let u=_t(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.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=Zn({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=To(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=_o(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 V(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Z=Gt();if(Z)await V(Z,g.join(e.outputDir,Xt)),console.log(`Copied assets from ${dt}`)}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
@@ -81,8 +81,8 @@ Build complete!
81
81
  Cached: ${l.cachedCount}
82
82
  Failed: ${l.failedCount}
83
83
  Time: ${l.buildTime}ms${P}
84
- `),l}async function V(t,s){await x.promises.mkdir(s,{recursive:!0});let o=await x.promises.readdir(t,{withFileTypes:!0});for(let r of o){let c=g.join(t,r.name),e=g.join(s,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await V(c,e);else await x.promises.copyFile(c,e)}}function Ht(t={}){let s=t.cacheDir||a(process.cwd(),"ssg-cache"),o=new yt(s),r=t.revalidate||3600;return{async get(c){let e=await o.get(c);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(c).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${r}, stale-while-revalidate=${r*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(c){let l=M(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>c.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${c}`);return}let w=c.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let h=await i(),{html:S}=await St(l,y,{},t,h);await o.set(c,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:Mt(S)}),console.log(`Revalidated: ${c}`)},async invalidate(c){if(typeof c==="string")await o.invalidate(c);else await o.invalidatePattern(c)}}}function Wt(t){return async()=>({paths:await t(),fallback:!1})}function qt(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let s=await Bun.file(t).text(),o=s.match(/^---\n([\s\S]*?)\n---/),r={},c=s;if(o){let h=o[1];c=s.slice(o[0].length).trim();for(let S of h.split(`
85
- `)){let P=S.indexOf(":");if(P>0){let D=S.slice(0,P).trim(),p=S.slice(P+1).trim();if(p==="true")p=!0;else if(p==="false")p=!1;else if(/^\d+$/.test(p))p=parseInt(p,10);else if(/^\d+\.\d+$/.test(p))p=parseFloat(p);else if(p.startsWith("[")&&p.endsWith("]"))p=p.slice(1,-1).split(",").map((b)=>b.trim().replace(/^['"]|['"]$/g,""));r[D]=p}}}let e=c.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),l=[],w=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,y;while((y=w.exec(e))!==null){let h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function Jt(t){return je(t)}function Vt(t,s){return`<!DOCTYPE html>
84
+ `),l}async function V(t,i){await x.promises.mkdir(i,{recursive:!0});let s=await x.promises.readdir(t,{withFileTypes:!0});for(let r of s){let c=g.join(t,r.name),e=g.join(i,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await V(c,e);else await x.promises.copyFile(c,e)}}function Ht(t={}){let i=t.cacheDir||a(process.cwd(),"ssg-cache"),s=new yt(i),r=t.revalidate||3600;return{async get(c){let e=await s.get(c);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(c).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${r}, stale-while-revalidate=${r*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(c){let l=M(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>c.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${c}`);return}let w=c.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let h=await o(),{html:S}=await St(l,y,{},t,h);await s.set(c,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:Mt(S)}),console.log(`Revalidated: ${c}`)},async invalidate(c){if(typeof c==="string")await s.invalidate(c);else await s.invalidatePattern(c)}}}function Wt(t){return async()=>({paths:await t(),fallback:!1})}function qt(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let i=await Bun.file(t).text(),s=i.match(/^---\n([\s\S]*?)\n---/),r={},c=i;if(s){let h=s[1];c=i.slice(s[0].length).trim();for(let S of h.split(`
85
+ `)){let P=S.indexOf(":");if(P>0){let D=S.slice(0,P).trim(),p=S.slice(P+1).trim();if(p==="true")p=!0;else if(p==="false")p=!1;else if(/^\d+$/.test(p))p=parseInt(p,10);else if(/^\d+\.\d+$/.test(p))p=parseFloat(p);else if(p.startsWith("[")&&p.endsWith("]"))p=p.slice(1,-1).split(",").map((b)=>b.trim().replace(/^['"]|['"]$/g,""));r[D]=p}}}let e=c.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),l=[],w=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,y;while((y=w.exec(e))!==null){let h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function Jt(t){return je(t)}function Vt(t,i){return`<!DOCTYPE html>
86
86
  <html>
87
87
  <head>
88
88
  <meta charset="utf-8">
@@ -94,4 +94,4 @@ Build complete!
94
94
  <p>Redirecting to <a href="${t}">${t}</a>...</p>
95
95
  <script>window.location.replace('${t}')</script>
96
96
  </body>
97
- </html>`}function Kt(t,s){if(t==="/"||t==="")return g.join(s.outputDir,"index.html");let o=t.replace(/^\/|\/$/g,"");if(s.trailingSlash)return g.join(s.outputDir,o,"index.html");return g.join(s.outputDir,`${o}.html`)}var Se={generateStaticSite:zt,createISRHandler:Ht,defineStaticPaths:Wt,createMarkdownLoader:qt};export{Ht as createISRHandler,qt as createMarkdownLoader,At as declaresPageAction,Se as default,Wt as defineStaticPaths,zt as generateStaticSite,Ut as isExcludedFromSitemap};
97
+ </html>`}function Kt(t,i){if(t==="/"||t==="")return g.join(i.outputDir,"index.html");let s=t.replace(/^\/|\/$/g,"");if(i.trailingSlash)return g.join(i.outputDir,s,"index.html");return g.join(i.outputDir,`${s}.html`)}var Se={generateStaticSite:zt,createISRHandler:Ht,defineStaticPaths:Wt,createMarkdownLoader:qt};export{Ht as createISRHandler,qt as createMarkdownLoader,At as declaresPageAction,Se as default,Wt as defineStaticPaths,zt as generateStaticSite,Ut as isExcludedFromSitemap};
package/dist/utils.js CHANGED
@@ -64,20 +64,34 @@ function serializeComponentRenderInput(value) {
64
64
  if (seen.has(input))
65
65
  throw TypeError("Circular component input");
66
66
  seen.add(input);
67
- if (input instanceof Date)
68
- return { __stxType: "date", value: input.toISOString() };
69
- if (Array.isArray(input))
70
- return input.map(normalize);
71
- const normalized = {};
72
- for (const key of Object.keys(input).sort())
73
- normalized[key] = normalize(input[key]);
74
- return normalized;
67
+ try {
68
+ if (input instanceof Date)
69
+ return { __stxType: "date", value: input.toISOString() };
70
+ if (Array.isArray(input))
71
+ return input.map(normalize);
72
+ const prototype = Object.getPrototypeOf(input);
73
+ if (prototype !== Object.prototype && prototype !== null)
74
+ throw TypeError("Non-plain component input");
75
+ const normalized = {};
76
+ for (const key of Object.keys(input).sort())
77
+ normalized[key] = normalize(input[key]);
78
+ return normalized;
79
+ } finally {
80
+ seen.delete(input);
81
+ }
75
82
  };
76
83
  return JSON.stringify(normalize(value));
77
84
  } catch {
78
85
  return null;
79
86
  }
80
87
  }
88
+ function componentSlotCacheContext(context) {
89
+ const result = {};
90
+ for (const [key, value] of Object.entries(context))
91
+ if (!key.startsWith("__") || key === "__stxServeContext")
92
+ result[key] = value;
93
+ return result;
94
+ }
81
95
  function escapeAttr(str) {
82
96
  return str.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
83
97
  }
@@ -780,7 +794,8 @@ export async function renderComponentWithSlot(componentPath, props, slotContent,
780
794
  if (cacheableServerComponent && appliedComponentRenderCacheBytes > 0) {
781
795
  const serializedInput = serializeComponentRenderInput({
782
796
  props,
783
- slot: slotContent,
797
+ slot: callerSlotContent,
798
+ slotContext: slotContent.trim() ? componentSlotCacheContext(filteredParentContext) : void 0,
784
799
  buildMode: options.buildMode ?? "",
785
800
  skipEventDirectives: options.skipEventDirectives === !0,
786
801
  layers: options._layerGraph?.layers.map((layer) => layer.configFile),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx",
3
3
  "type": "module",
4
- "version": "0.2.445",
4
+ "version": "0.2.447",
5
5
  "description": "A performant UI Framework. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -125,7 +125,7 @@
125
125
  "@stacksjs/desktop": "0.2.445",
126
126
  "@stacksjs/sanitizer": "0.2.445",
127
127
  "@stacksjs/ts-i18n": "^0.1.11",
128
- "bun-plugin-stx": "0.2.445",
128
+ "bun-plugin-stx": "0.2.447",
129
129
  "bunfig": "^0.15.19",
130
130
  "stx-router": "0.2.445",
131
131
  "ts-broadcasting": "^0.0.11",
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Rn,Br,Pa,Ia,Da}from"./chunk-h7ny0py8.js";import"./chunk-xq4jdzje.js";export{Ia as generateManifestLink,Rn as generatePwaTags,Pa as generateSwRegistrationScript,Da as generateThemeColorMeta,Br as injectPwaTags};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{tn,nc,es}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import{ve}from"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{ve as freeIdentifiers,es as processComponents,nc as processESImports,tn as rendersAsElement};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{St,oc,ac,cc,lc,uc,d,dc,is,pc,Xi,Gi}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{St as STX_ENGINE_BINDING_NAMES,is as convertToCommonJS,Xi as extractScriptFromTemplate,d as extractVariables,Gi as hasVariables,dc as isCompleteImport,uc as isMissingBindingFailure,cc as isModuleResolutionFailure,lc as isSyntaxFailure,pc as splitDeclaration,oc as stripTypeScript,ac as withoutStxReferrer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Er,Tr,_r,sa,Rr,Ar,ia,Pr,Ir,di,oa}from"./chunk-m4q2e418.js";export{Er as VideoProcessorCache,di as analyzeVideo,sa as clearVideoCache,Ir as generateDASHManifest,Pr as generateHLSManifest,Rr as generatePoster,ia as generateSpriteSheet,Ar as generateThumbnails,Tr as getCachedVideoResult,oa as processVideo,_r as setCachedVideoResult};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kc}from"./chunk-gmzaknjp.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Kc as startInteractive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ds,Os,Ze,X,gn,ir,mn,or,ar,Tc,_c,Rc,hn,Ac,Pc,Ic,Dc,Ro,Ao,Po,Ms,Io,Oc,Qe,et,tt,nt,rt,st,Se,Mc}from"./chunk-b5emjcf1.js";export{mn as Router,Ic as abortNavigation,ir as bracketPathToRegex,Qe as clearMiddleware,Ao as createClientCookieManager,rt as createMiddlewareContext,nt as createRouteLocation,Ro as createServerCookieManager,Po as createStorageManager,Dc as defineMiddleware,_c as defineRoute,Rc as defineRoutes,or as findErrorPage,ar as formatRoutes,Os as generateRouteManifest,Ds as generateRouteTypes,Io as getMiddleware,et as getMiddlewareNames,Se as getRouterScript,Mc as getRouterScriptDev,Oc as hasMiddleware,Ze as isFileRequestPath,tt as loadMiddlewareFromDirectory,gn as matchRoute,Pc as navigateTo,X as patternToRegex,Ms as registerMiddleware,Ac as resetRoutes,hn as route,st as runMiddleware,Tc as setAppUrl};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Au,zi,Pu,Hi,Ya,Za,vt,en,Iu,Qa,ec,tc,f}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{vt as buildCss,Qa as extractClassNames,Za as fingerprintConfig,ec as generateCss,Iu as getCachedCSS,Au as getCssServeAsset,f as injectCss,zi as loadCssEngine,Hi as loadCssEngineConfig,en as rebuildCss,Pu as resetCssCache,Ya as resolveUserCssConfig,tc as withLinkedModuleBundles};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jo,ll,Yo,Zo,ul,dl}from"./chunk-cmctzee2.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{dl as applySlots,ul as extractSlotContent,ll as parseSlotElement,Jo as parseSlots,Zo as processSlots,Yo as renderSlot};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{yt,zr,Hr,Vr,hu,Ur}from"./chunk-vyw0csez.js";import"./chunk-5zpt78j4.js";import"./chunk-jwpcck1b.js";import"./chunk-b5emjcf1.js";export{Hr as buildServerApi,hu as createServerApi,yt as discoverServerApi,zr as generateApiTypes,Ur as isServerApiSource,Vr as productionApiDispatcher};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{oe,Ma,Di,ft,gt,mu,Oi,mt,Jt,Na,La,ja,Ba,ht,Fa}from"./chunk-3yws0k28.js";import"./chunk-vyw0csez.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Jt as MODULE_SPECIFIER_PREFIX,ht as bundleClientScript,gt as clearBundleFailures,oe as clientBundleDependencies,ft as getBundleFailures,mt as hasUserImports,La as normalizeRegistrySpecifiers,Ba as queueClientBundleBuild,Di as recordBundleFailure,Na as registryIdForPath,Oi as resolveBundlerFallback,ja as rewriteRegistryImports,mu as setBundlerFallbackMode,Ma as shouldLogBundlerDiagnostics,Fa as tempBuildName};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{An,Ie,Ii,Oa}from"./chunk-xq4jdzje.js";export{An as generateServiceWorker,Oa as generateServiceWorkerAuto,Ie as getServiceWorkerFileName,Ii as isWorkboxEnabled};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{qo,qc}from"./chunk-8nsmx2w4.js";export{qo as captureScreenshot,qc as captureScreenshots};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Mu,rc,ts,ns,Ui,Wi,rs,ss,jn,sc,qi,Ki,ic,ze}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Mu as clearScriptScanCache,rs as convertServerLoopAttributesToDirectives,Ui as convertSignalDirectivesToAttributes,ss as convertSignalLoopsToAttributes,sc as extractExports,Ki as findMarkupIndexOutsideScripts,ns as hasSignalsSyntax,ts as parseLoopExpression,Wi as preEvalLiteralReactiveIfs,jn as processScriptSetup,qi as processSignals,ic as rewriteStxImportSpecifiers,rc as scanScriptTags,ze as stripStxRuntimeImports};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Do,Oo}from"./chunk-egaknprm.js";import"./chunk-fmj4xvqm.js";import"./chunk-mcgpeyy8.js";import"./chunk-9tbevvm3.js";import"./chunk-8nsmx2w4.js";import"./chunk-gmzaknjp.js";import"./chunk-w9ebf2rb.js";import"./chunk-rvbcnahe.js";import"./chunk-bh432b7n.js";import"./chunk-xgwempyb.js";import"./chunk-4mppjen3.js";import{ti}from"./chunk-3wdarmh7.js";import"./chunk-9f0srtmg.js";import"./chunk-dn9thd0h.js";import"./chunk-cmctzee2.js";import"./chunk-hkx8pggg.js";import"./chunk-m4q2e418.js";import"./chunk-qa7j3j71.js";import"./chunk-s5drjm2j.js";import"./chunk-0xntpjmp.js";import"./chunk-7mbx7dzg.js";import"./chunk-97tb2m44.js";import"./chunk-n9jn3qzw.js";import"./chunk-dwp3knc4.js";import"./chunk-hqywyyez.js";import"./chunk-mnz6bdp3.js";import"./chunk-0vbpcef6.js";import"./chunk-nw8p8eg9.js";import"./chunk-12mzd0gf.js";import"./chunk-ca24g1fa.js";import"./chunk-b7x7099z.js";import"./chunk-39726w03.js";import"./chunk-r3f9jcf7.js";import"./chunk-3yws0k28.js";import"./chunk-vyw0csez.js";import{me,Zt,Qt,q,d,n,qn,A,i,ce}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{qn as buildWebComponents,Qt as cacheTemplate,Zt as checkCache,ti as classifyAllScripts,Do as createMiddleware,Oo as createRoute,A as defaultConfig,d as extractVariables,q as injectRouterScript,i as loadStxConfig,me as processClientScript,n as processDirectives,ce as readMarkdownFile};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Me,Xa,ku,Cu,$u,Eu,Ga,Ja,Tu,_u,Fi,Ru,Zt,Qt,On}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Eu as __setSignalsGeneratorsForTest,Me as cacheEngineFingerprint,Qt as cacheTemplate,Zt as checkCache,Ru as clearDevCaches,Ja as getCachedRouterScript,Ga as getCachedSignalsRuntime,Tu as getServeClientAsset,Fi as getServeModuleBundle,On as hashFilePath,Cu as invalidateFileCache,$u as invalidateFileCacheByDir,ku as readFileCached,_u as registerServeModuleBundle,Xa as templateCache};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{q,ds,ps,gs,n}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{q as injectRouterScript,n as processDirectives,ds as processJsonDirective,ps as processOnceDirective,gs as validateClientScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Mo,Js,No,Lo,Ys,jo,Bo,Fo,zo,Zs,Ho,Hc}from"./chunk-mcgpeyy8.js";import{ei,Xo}from"./chunk-bh432b7n.js";import{L,j,B,Dt,G,se,Cn,Re,ut,Ot,Mt,Nt,F,Lt,jt,$n}from"./chunk-dn9thd0h.js";import{$a}from"./chunk-7mbx7dzg.js";export{j as DEFAULT_FORMATS,B as DEFAULT_QUALITY,L as DEFAULT_WIDTHS,$n as ImageProcessingError,Lo as clearImageCache,Ys as createImageDirective,Xo as createImageHandler,Bo as createImagePlugin,Hc as defaultImageConfig,jt as formatSize,Zs as generateImageManifest,ut as generateSizes,Re as generateSrcSet,Ot as getFallbackVariant,Cn as getImageMetadata,F as getMimeType,Lt as getTotalSize,Mt as groupVariantsByFormat,ei as handleImageRequest,jo as imageDirective,G as isImageBackendAvailable,Nt as isImageFile,Dt as isSharpAvailable,zo as optimizeDirectory,Fo as optimizeImage,Js as parseImageComponent,se as processImage,No as processImageComponents,Mo as renderImageComponent,$a as rewriteImagesWithSiblings,Ho as writeImageManifest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{al}from"./chunk-4mppjen3.js";import"./chunk-3wdarmh7.js";import"./chunk-vyw0csez.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{al as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ei,Xo}from"./chunk-bh432b7n.js";import"./chunk-dn9thd0h.js";export{Xo as createImageHandler,ei as handleImageRequest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ol}from"./chunk-xgwempyb.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{ol as buildApp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Yl,mi,Ea,Zl,Ql,eu,tu,nu,Ta,_a,ru,su,iu,ou}from"./chunk-b7x7099z.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Ea as SUSPENSE_RESOLVER_RUNTIME,mi as buildSuspenseResolveScript,nu as createStreamRenderer,eu as extractStreamBoundaries,ou as generateHydrationRuntime,_a as islandDirective,su as processSectionDirectives,Ql as processStreamDirectives,ru as registerStreamingDirectives,Zl as renderStreamingPage,Yl as streamTemplate,tu as streamTemplateSimple,iu as streamToResponse,Ta as streamingSuspenseDirective};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{d,is,Xi,Gi,mc,hc,yc,bc,wc,vc,Ve,N,Ue,xc,Un,Sc,oo,kc,We,r,Wn,ao,g,ee,ju}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{ee as clearComponentCache,kc as componentClientSignalNames,is as convertToCommonJS,g as createDetailedErrorMessage,wc as extractDirectiveNames,Xi as extractScriptFromTemplate,d as extractVariables,r as fileExists,ju as getComponentCacheStats,hc as getPositionInfo,N as getSharedTranspiler,ao as getSourceLineInfo,bc as hasDirectives,Gi as hasVariables,Sc as isHydrateTrigger,vc as isJavaScriptScript,We as renderComponentWithSlot,Wn as resolveTemplatePath,xc as scopeOnRootElement,Ve as shouldTranspileTypeScript,oo as slotContentHasExpressions,Ue as transpileTypeScript,Un as userComponentFileExists,yc as validateDirective,mc as validateTemplate};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ul,Wl}from"./chunk-12mzd0gf.js";import"./chunk-3yws0k28.js";import"./chunk-vyw0csez.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Wl as clearStoreCache,Ul as getStoreScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{li,cl}from"./chunk-9f0srtmg.js";export{li as definePlugin,cl as pluginManager};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Dr,hl,yl}from"./chunk-97tb2m44.js";import"./chunk-3yws0k28.js";import"./chunk-vyw0csez.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{yl as clearComposableCache,hl as getComposableScript,Dr as listComposableModules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jr,ki,Ci,gu}from"./chunk-81zfdd95.js";export{jr as NATIVE_COMPONENTS,ki as compileToNative,Ci as createHotReloadServer,gu as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Vo,Qs,Vc,Uo,Wo,Uc,Wc}from"./chunk-9tbevvm3.js";import"./chunk-97tb2m44.js";import"./chunk-3yws0k28.js";import"./chunk-vyw0csez.js";import{He,gc}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Vo as buildVirtualSource,He as extractScriptBlocks,gc as extractTemplateExpressions,Uo as findRuntimeTypeDeclarations,Wo as findStxModuleDeclarations,Wc as formatTypecheckDiagnostics,Vc as sourcePathFor,Uc as typecheckStxFiles,Qs as virtualPathFor};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{H,Wr,qr,za,bt,Mi,Kr,Ni,yu,Ne,Xr,me}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import{go,s}from"./chunk-vxgtq00t.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{H as BROWSER_CORE_IMPORTS,za as STX_AUTO_IMPORTS,Wr as extractAndStripCssImports,Ne as extractBridgeData,go as findInterpolationEnd,Ni as generateAutoImportDestructuring,yu as generateBrowserAutoImportDestructuring,Xr as generateServerDataBridge,bt as injectBrowserCoreAutoImports,me as processClientScript,Kr as referencesName,qr as renderVendorStyleTags,s as stripCommentsAndLiterals,Mi as transformAutoImports};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{vi,xi,Si,fu}from"./chunk-t9tg1syw.js";import"./chunk-39726w03.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{vi as buildNative,fu as default,Si as getAvailableFormats,xi as getAvailableTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{kt,os,Ji,fc}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{fc as declareBareLoopHead,kt as parseLoopBinding,Ji as processLoops,os as reportDeferredLoopWarnings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Nu,ye,Yi,Lu,as,cs,ls}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Lu as clearOnceStore,Yi as onceStore,ye as partialsCache,as as processIncludes,cs as processStackPushDirectives,ls as processStackReplacements,Nu as resetUnscopedSignalWarnings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{A,Cc,i,T,Bu,Fu}from"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{T as config,A as defaultConfig,Bu as defineStxConfig,i as loadStxConfig,Cc as resolveStxDirectories,Fu as validateConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Xc}from"./chunk-w9ebf2rb.js";import"./chunk-3wdarmh7.js";import"./chunk-ca24g1fa.js";import"./chunk-vyw0csez.js";import"./chunk-b3e0hcw0.js";import"./chunk-7676qzab.js";import"./chunk-73h7qjgq.js";import"./chunk-5zpt78j4.js";import"./chunk-7v163hb5.js";import"./chunk-jwpcck1b.js";import"./chunk-aa7w63xc.js";import"./chunk-cs15xqf0.js";import"./chunk-56hvemdx.js";import"./chunk-axydabse.js";import"./chunk-2xnwsavq.js";import"./chunk-b5emjcf1.js";import"./chunk-dqr5n49p.js";export{Xc as buildForProduction};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ri,Ai,Pi,Ra,Aa}from"./chunk-1qnyn82e.js";export{Ai as auditBuildOutput,Ri as auditConfig,Pi as calculateAuditResult,Aa as formatAuditResult,Ra as runPwaAudit};