@stacksjs/stx 0.2.706 → 0.2.708

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 (266) hide show
  1. package/dist/app-shell.d.ts +2 -1
  2. package/dist/app-shell.js +5 -2
  3. package/dist/{chunk-e3yhx053.js → chunk-029qng4p.js} +5 -5
  4. package/dist/chunk-03p4w958.js +2 -0
  5. package/dist/chunk-0dve54ne.js +3 -0
  6. package/dist/chunk-0jtrdgyv.js +422 -0
  7. package/dist/{chunk-m4j9gedb.js → chunk-0myrwz84.js} +48 -8
  8. package/dist/chunk-12vjp2gr.js +2 -0
  9. package/dist/chunk-18fr730w.js +2 -0
  10. package/dist/chunk-19knw8c6.js +2 -0
  11. package/dist/{chunk-5bgkb4vm.js → chunk-1kwsnqr1.js} +3 -3
  12. package/dist/{chunk-n2ema4wf.js → chunk-1xjv71dw.js} +2 -2
  13. package/dist/chunk-27catnpa.js +2 -0
  14. package/dist/chunk-29sapda2.js +2 -0
  15. package/dist/{chunk-d597d0dp.js → chunk-2aarvd3a.js} +6 -6
  16. package/dist/chunk-2k6d8s6h.js +2 -0
  17. package/dist/chunk-2qf6kd9r.js +2 -0
  18. package/dist/chunk-2snfd93r.js +2 -0
  19. package/dist/chunk-2srb5f7t.js +2 -0
  20. package/dist/{chunk-y91rz3rq.js → chunk-3457kk19.js} +7 -7
  21. package/dist/chunk-3907sad1.js +2 -0
  22. package/dist/chunk-3nsdb1fg.js +2 -0
  23. package/dist/chunk-3qnke2jb.js +2 -0
  24. package/dist/chunk-3sg2ardr.js +2 -0
  25. package/dist/chunk-3t3p2c1t.js +65 -0
  26. package/dist/chunk-3vsnnr1b.js +2 -0
  27. package/dist/{chunk-3850m7ab.js → chunk-3wkgd883.js} +1 -1
  28. package/dist/{chunk-epnpst9q.js → chunk-3xmt01wr.js} +11 -11
  29. package/dist/{chunk-t27fecet.js → chunk-42w6snem.js} +4 -4
  30. package/dist/chunk-48936paw.js +2 -0
  31. package/dist/chunk-4c1fbthr.js +2 -0
  32. package/dist/{chunk-zggdhtmn.js → chunk-4ckxs446.js} +3 -3
  33. package/dist/chunk-4cs5t287.js +2 -0
  34. package/dist/chunk-4fxg20je.js +2 -0
  35. package/dist/chunk-58v34kba.js +2 -0
  36. package/dist/chunk-5n4qg8za.js +3 -0
  37. package/dist/{chunk-j9h41w8b.js → chunk-609pekf5.js} +2 -2
  38. package/dist/chunk-65fcex5r.js +42 -0
  39. package/dist/{chunk-1kr1mpft.js → chunk-67abad76.js} +1 -1
  40. package/dist/{chunk-7smgebdq.js → chunk-6cz1sbb1.js} +3 -3
  41. package/dist/{chunk-4sesw88b.js → chunk-6n11z33h.js} +5 -5
  42. package/dist/chunk-6ndeycxk.js +2 -0
  43. package/dist/{chunk-tp4eqfxq.js → chunk-6ts3sthp.js} +2 -2
  44. package/dist/chunk-75n3vbtk.js +2 -0
  45. package/dist/{chunk-8w4y3dx3.js → chunk-768evhvm.js} +2 -2
  46. package/dist/chunk-7dc3n69c.js +3 -0
  47. package/dist/{chunk-66cfnzem.js → chunk-7kaadsd1.js} +5 -5
  48. package/dist/{chunk-ccqe741j.js → chunk-83p5k4eb.js} +2 -2
  49. package/dist/chunk-86775qk0.js +2 -0
  50. package/dist/chunk-8c4zbq1k.js +2 -0
  51. package/dist/chunk-8s4rxgs8.js +2 -0
  52. package/dist/chunk-8t9em8md.js +2 -0
  53. package/dist/{chunk-vfjenjez.js → chunk-8v2vbc4y.js} +1 -1
  54. package/dist/chunk-8z469777.js +2 -0
  55. package/dist/{chunk-9p452mq6.js → chunk-90kfvtf6.js} +114 -114
  56. package/dist/{chunk-rcdjse0z.js → chunk-93y8zwcz.js} +5 -5
  57. package/dist/chunk-9736003n.js +2 -0
  58. package/dist/chunk-97r557ws.js +2 -0
  59. package/dist/chunk-9adx6f4k.js +3 -0
  60. package/dist/{chunk-5w1erc2m.js → chunk-9dg5ja4w.js} +1 -1
  61. package/dist/chunk-9nvywf05.js +3 -0
  62. package/dist/chunk-9wgvn5rn.js +24 -0
  63. package/dist/chunk-9whmbfwx.js +2 -0
  64. package/dist/{chunk-2e2qnce5.js → chunk-9xb33nz0.js} +2 -2
  65. package/dist/chunk-a32xsr61.js +11 -0
  66. package/dist/{chunk-3hxd5td3.js → chunk-am4wadh7.js} +2 -2
  67. package/dist/{chunk-wqe98032.js → chunk-an387127.js} +2 -2
  68. package/dist/{chunk-bsr9wnq4.js → chunk-ap30qs8p.js} +2 -2
  69. package/dist/chunk-avr65xra.js +2 -0
  70. package/dist/chunk-axwwhdtt.js +2 -0
  71. package/dist/chunk-b6318vv3.js +2 -0
  72. package/dist/{chunk-7kn0d1f1.js → chunk-b7j48bq9.js} +2 -2
  73. package/dist/chunk-bcr8sq50.js +2 -0
  74. package/dist/chunk-bhpsr1mt.js +20 -0
  75. package/dist/{chunk-3ja845kw.js → chunk-c2b5p621.js} +171 -171
  76. package/dist/{chunk-11mjqfde.js → chunk-c71f6mfr.js} +45 -45
  77. package/dist/chunk-ccty08sm.js +32 -0
  78. package/dist/chunk-cjx11tgd.js +2 -0
  79. package/dist/{chunk-njhd845r.js → chunk-ckrmrdjp.js} +5 -5
  80. package/dist/chunk-cqnpjdc9.js +2 -0
  81. package/dist/{chunk-k296qq0p.js → chunk-cwhzk2n3.js} +2 -2
  82. package/dist/{chunk-nv886zy6.js → chunk-d2xnkt8m.js} +10 -10
  83. package/dist/chunk-dedmk383.js +2 -0
  84. package/dist/chunk-dhdt7e54.js +2 -0
  85. package/dist/chunk-dxqvv686.js +3 -0
  86. package/dist/chunk-e5vsw0fw.js +4 -0
  87. package/dist/{chunk-qef5mz20.js → chunk-e8brwwp1.js} +105 -105
  88. package/dist/{chunk-b3sw5ykg.js → chunk-edka95zp.js} +3 -3
  89. package/dist/{chunk-y7xsjr28.js → chunk-erqsgfdj.js} +1 -1
  90. package/dist/chunk-eywx2f4h.js +2 -0
  91. package/dist/chunk-f6ybdjt0.js +14 -0
  92. package/dist/{chunk-0qtygx7m.js → chunk-f9b7847f.js} +4 -4
  93. package/dist/{chunk-44c1mbye.js → chunk-fcbd7kwj.js} +3 -3
  94. package/dist/chunk-fj3pct59.js +2 -0
  95. package/dist/chunk-fvk1xr5a.js +2 -0
  96. package/dist/{chunk-b2j7s1a2.js → chunk-g1tq4xdb.js} +2 -2
  97. package/dist/chunk-g6wd49b5.js +2 -0
  98. package/dist/chunk-gk0nq2ky.js +2 -0
  99. package/dist/{chunk-z9csfarm.js → chunk-gvs17jd0.js} +11 -11
  100. package/dist/chunk-h6pmg82p.js +4 -0
  101. package/dist/chunk-h8kbcz9t.js +2 -0
  102. package/dist/chunk-h9n71rdn.js +2 -0
  103. package/dist/{chunk-eb3xg8an.js → chunk-hb77kw66.js} +1 -1
  104. package/dist/{chunk-a8erwxng.js → chunk-hmkg3xy0.js} +3 -3
  105. package/dist/{chunk-yn9kvsk1.js → chunk-j2mpqa4p.js} +2 -2
  106. package/dist/chunk-j7gg6xrc.js +2 -0
  107. package/dist/{chunk-gp9k0t3g.js → chunk-jb5sftzz.js} +2 -2
  108. package/dist/{chunk-t8d33x9w.js → chunk-khrckvwn.js} +4 -4
  109. package/dist/{chunk-4x2gnvz1.js → chunk-kxf8z7vp.js} +2 -2
  110. package/dist/{chunk-ygtfjnqj.js → chunk-kxwfrdt3.js} +2 -2
  111. package/dist/{chunk-ah5ch04j.js → chunk-mr3r8crk.js} +2 -2
  112. package/dist/chunk-mzwa2478.js +2 -0
  113. package/dist/chunk-n6carvxa.js +2 -0
  114. package/dist/chunk-ncs2j5kc.js +3 -0
  115. package/dist/{chunk-b1a79hgk.js → chunk-nde9yj3n.js} +2 -2
  116. package/dist/{chunk-2gzrx4ma.js → chunk-p3dkhz9v.js} +56 -56
  117. package/dist/{chunk-3ys3sa08.js → chunk-qa9t9k6z.js} +1 -1
  118. package/dist/{chunk-p4czdmrr.js → chunk-qcw1neka.js} +2 -2
  119. package/dist/chunk-r5k21k3x.js +54 -0
  120. package/dist/chunk-r6bc2q44.js +2 -0
  121. package/dist/{chunk-sxf17xfc.js → chunk-rb2a1qxb.js} +6 -6
  122. package/dist/chunk-rdj74dqc.js +2 -0
  123. package/dist/chunk-rswg7xsg.js +18 -0
  124. package/dist/chunk-rtbkjq0y.js +2 -0
  125. package/dist/chunk-rwjgpmrw.js +2 -0
  126. package/dist/chunk-s1vj8gtz.js +21 -0
  127. package/dist/{chunk-416jy1m5.js → chunk-s9b6abkb.js} +2 -2
  128. package/dist/{chunk-2p34qf9c.js → chunk-stvw8y3c.js} +2 -2
  129. package/dist/chunk-sy1btryy.js +2 -0
  130. package/dist/chunk-sz0e6tpq.js +20 -0
  131. package/dist/{chunk-9ra3ne11.js → chunk-t63f15yh.js} +3 -3
  132. package/dist/{chunk-2v7t87n8.js → chunk-t6ayy0t5.js} +2 -2
  133. package/dist/chunk-t7mbaf69.js +2 -0
  134. package/dist/{chunk-x7rtrdqq.js → chunk-tvcr9sct.js} +3 -3
  135. package/dist/chunk-v5s6r2b3.js +130 -0
  136. package/dist/chunk-vqratjvb.js +33 -0
  137. package/dist/chunk-vstvadc2.js +12 -0
  138. package/dist/chunk-w2h6nn70.js +2 -0
  139. package/dist/chunk-w8yv9hnf.js +2 -0
  140. package/dist/{chunk-ktkmv1j8.js → chunk-wbfg7p3k.js} +4 -4
  141. package/dist/chunk-weaxr0qe.js +2 -0
  142. package/dist/{chunk-3392k9vm.js → chunk-wp6q0geg.js} +2 -2
  143. package/dist/{chunk-2nqt1m3m.js → chunk-wt18wv6x.js} +2 -2
  144. package/dist/{chunk-jkywbfb0.js → chunk-x2gxx8eg.js} +2 -2
  145. package/dist/chunk-xw8wwcr8.js +25 -0
  146. package/dist/{chunk-xc03cdet.js → chunk-xyyt8v1r.js} +28 -28
  147. package/dist/chunk-ykmcnk3x.js +2 -0
  148. package/dist/chunk-yw66yks2.js +43 -0
  149. package/dist/chunk-z05dbey1.js +2 -0
  150. package/dist/chunk-zaj3gzet.js +2 -0
  151. package/dist/{chunk-w7e28p74.js → chunk-zav8yrtp.js} +9 -9
  152. package/dist/{chunk-ywzh979k.js → chunk-zecgd1wz.js} +4 -4
  153. package/dist/{chunk-c3hr5mm2.js → chunk-zjaw79zp.js} +2 -2
  154. package/dist/chunk-zjcmybab.js +3 -0
  155. package/dist/{chunk-fgr56q3w.js → chunk-zjw6j2x0.js} +4 -4
  156. package/dist/{chunk-k7pmzreg.js → chunk-zn3c0ew5.js} +3 -3
  157. package/dist/chunk-ztckg7a3.js +2 -0
  158. package/dist/cli.js +46 -46
  159. package/dist/craft-entry.js +2 -2
  160. package/dist/craft.js +2 -2
  161. package/dist/dev-server/serve-app.js +1 -1
  162. package/dist/expressions.js +6 -2
  163. package/dist/index.d.ts +1 -0
  164. package/dist/index.js +1 -0
  165. package/dist/island-chunking.js +5 -1
  166. package/dist/native/accessibility.d.ts +2 -2
  167. package/dist/native/accessibility.js +5 -3
  168. package/dist/native/compiler/html-to-ir.js +1 -1
  169. package/dist/native/runtime/native-host.js +5 -5
  170. package/dist/page-head.d.ts +2 -0
  171. package/dist/page-head.js +35 -0
  172. package/dist/production-builder.js +1 -1
  173. package/dist/production-server.js +2 -2
  174. package/dist/pwa.js +3 -3
  175. package/dist/site-builder/i18n.js +1 -1
  176. package/dist/ssg.js +36 -36
  177. package/dist/template-compiler.js +2 -1
  178. package/dist/utils.js +41 -0
  179. package/package.json +5 -5
  180. package/dist/chunk-09801kkv.js +0 -2
  181. package/dist/chunk-0s55c880.js +0 -2
  182. package/dist/chunk-0ys97vq8.js +0 -2
  183. package/dist/chunk-13jg9qpq.js +0 -2
  184. package/dist/chunk-1e79xcc8.js +0 -2
  185. package/dist/chunk-1yt4ynxh.js +0 -2
  186. package/dist/chunk-2whqx2c0.js +0 -2
  187. package/dist/chunk-2xtzzx00.js +0 -2
  188. package/dist/chunk-4t9cggwf.js +0 -2
  189. package/dist/chunk-5g7m27e1.js +0 -21
  190. package/dist/chunk-5h1ahj7m.js +0 -2
  191. package/dist/chunk-5zqxzyxk.js +0 -2
  192. package/dist/chunk-68wezwr7.js +0 -2
  193. package/dist/chunk-7gw96jpj.js +0 -2
  194. package/dist/chunk-7w2mrg3s.js +0 -2
  195. package/dist/chunk-8hhyp9p6.js +0 -2
  196. package/dist/chunk-926fs6g7.js +0 -2
  197. package/dist/chunk-93ft5jea.js +0 -3
  198. package/dist/chunk-94gp1g2f.js +0 -2
  199. package/dist/chunk-983zpa57.js +0 -3
  200. package/dist/chunk-98yf0aq9.js +0 -4
  201. package/dist/chunk-9wq145yr.js +0 -2
  202. package/dist/chunk-a4r93m1q.js +0 -2
  203. package/dist/chunk-aea12k73.js +0 -2
  204. package/dist/chunk-b378jpbp.js +0 -2
  205. package/dist/chunk-b7e07ybq.js +0 -3
  206. package/dist/chunk-bfhks7zf.js +0 -43
  207. package/dist/chunk-bhnq6xr5.js +0 -2
  208. package/dist/chunk-bksjh409.js +0 -2
  209. package/dist/chunk-c4sskkv6.js +0 -421
  210. package/dist/chunk-ca0vn95n.js +0 -18
  211. package/dist/chunk-cbdyns7r.js +0 -3
  212. package/dist/chunk-cknbhyw6.js +0 -2
  213. package/dist/chunk-csx3zne1.js +0 -3
  214. package/dist/chunk-d7vmzkjy.js +0 -2
  215. package/dist/chunk-djwat8vn.js +0 -2
  216. package/dist/chunk-dm7am3p3.js +0 -2
  217. package/dist/chunk-dpjs0ajs.js +0 -2
  218. package/dist/chunk-e41h5yrz.js +0 -11
  219. package/dist/chunk-f498cdg5.js +0 -2
  220. package/dist/chunk-fazw6sxz.js +0 -2
  221. package/dist/chunk-ffddd2t8.js +0 -14
  222. package/dist/chunk-fk71r3h6.js +0 -2
  223. package/dist/chunk-g1bed7se.js +0 -2
  224. package/dist/chunk-gbgbhpms.js +0 -2
  225. package/dist/chunk-gxtmq5r2.js +0 -130
  226. package/dist/chunk-h1fpjmr8.js +0 -2
  227. package/dist/chunk-ha4vb9a6.js +0 -2
  228. package/dist/chunk-hadbgke6.js +0 -2
  229. package/dist/chunk-hkmewh5h.js +0 -12
  230. package/dist/chunk-hmnj2hrh.js +0 -20
  231. package/dist/chunk-htyee0b7.js +0 -3
  232. package/dist/chunk-hz5vabap.js +0 -25
  233. package/dist/chunk-j10dhha2.js +0 -2
  234. package/dist/chunk-kjc1f6af.js +0 -2
  235. package/dist/chunk-m28d7w2s.js +0 -54
  236. package/dist/chunk-mv4wfsc5.js +0 -2
  237. package/dist/chunk-mwwd425n.js +0 -33
  238. package/dist/chunk-nbzy9m6a.js +0 -2
  239. package/dist/chunk-nmcgyxcg.js +0 -2
  240. package/dist/chunk-p4e7x4f6.js +0 -2
  241. package/dist/chunk-p6sdrq1y.js +0 -2
  242. package/dist/chunk-p78v88ng.js +0 -65
  243. package/dist/chunk-pbtr7w5e.js +0 -2
  244. package/dist/chunk-q13cp39b.js +0 -42
  245. package/dist/chunk-qfk2gh5y.js +0 -20
  246. package/dist/chunk-qqj8n8s9.js +0 -4
  247. package/dist/chunk-qtr1660m.js +0 -2
  248. package/dist/chunk-r0nm6sz0.js +0 -2
  249. package/dist/chunk-rb8g9nnc.js +0 -2
  250. package/dist/chunk-rhm7wg6p.js +0 -2
  251. package/dist/chunk-tjf1eajh.js +0 -2
  252. package/dist/chunk-ttn2hvze.js +0 -24
  253. package/dist/chunk-w42v5j1j.js +0 -2
  254. package/dist/chunk-w9kak6aj.js +0 -2
  255. package/dist/chunk-wr6z8z70.js +0 -2
  256. package/dist/chunk-xy3p6d2m.js +0 -2
  257. package/dist/chunk-yfppczrm.js +0 -2
  258. package/dist/chunk-yhf7pj12.js +0 -2
  259. package/dist/chunk-ympp4tja.js +0 -2
  260. package/dist/chunk-yyx89zxs.js +0 -2
  261. package/dist/chunk-z00ysspf.js +0 -31
  262. package/dist/chunk-z0x54ynx.js +0 -3
  263. package/dist/chunk-za6teyn1.js +0 -2
  264. package/dist/chunk-zgyw04pj.js +0 -2
  265. package/dist/chunk-zmnqha0x.js +0 -2
  266. package/dist/chunk-zw924mfr.js +0 -2
@@ -1,30 +1,30 @@
1
1
  // @bun
2
- import S from"fs";import _ from"path";function qs(e){let{token:t,baseUrl:i="https://api.netlify.com/api/v1"}=e;async function s(n,r,l={}){let p=`${i}${r}`,f={Authorization:`Bearer ${t}`,"User-Agent":"stx-deploy/1.0"},u;if(l.rawBody)f["Content-Type"]=l.contentType||"application/octet-stream",u=l.rawBody;else if(l.body)f["Content-Type"]="application/json",u=JSON.stringify(l.body);let o=await fetch(p,{method:n,headers:f,body:u});if(!o.ok){let g=Error(`Netlify API error: ${o.status} ${o.statusText}`);g.status=o.status;try{let b=await o.json();g.message=b.message||g.message,g.code=b.code,g.details=b}catch{}throw g}let a=await o.text();if(!a)return{};return JSON.parse(a)}return{async getSite(n){return s("GET",`/sites/${n}`)},async listSites(){return s("GET","/sites")},async createSite(n){let r={};if(n)r.name=n;return s("POST","/sites",{body:r})},async createDeploy(n,r){let l={files:r.files,draft:r.draft??!0,async:r.async??!0};if(r.title)l.title=r.title;if(r.branch)l.branch=r.branch;if(r.functions)l.functions=r.functions;return s("POST",`/sites/${n}/deploys`,{body:l})},async uploadFile(n,r,l){let p=r.startsWith("/")?r.slice(1):r;await s("PUT",`/deploys/${n}/files/${p}`,{rawBody:l,contentType:"application/octet-stream"})},async uploadFiles(n,r){let p=[...r],f=async()=>{while(p.length>0){let o=p.shift();if(o)await this.uploadFile(n,o.path,o.content)}},u=Array.from({length:Math.min(5,r.length)},()=>f());await Promise.all(u)},async getDeploy(n){return s("GET",`/deploys/${n}`)},async waitForDeploy(n,r={}){let{timeout:l=300000,pollInterval:p=2000,onProgress:f}=r,u=Date.now();while(!0){let o=await this.getDeploy(n);if(f)f(o);if(o.state==="ready")return o;if(o.state==="error"){let a=Error(`Deploy failed: ${o.error_message||"Unknown error"}`);throw a.status=500,a.details=o,a}if(Date.now()-u>l){let a=Error(`Deploy timed out after ${l}ms`);throw a.status=408,a.details=o,a}await new Promise((a)=>setTimeout(a,p))}},async lockDeploy(n){return s("POST",`/deploys/${n}/lock`)},async unlockDeploy(n){return s("POST",`/deploys/${n}/unlock`)}}}async function Li(e){let t=await crypto.subtle.digest("SHA-1",e);return Array.from(new Uint8Array(t)).map((s)=>s.toString(16).padStart(2,"0")).join("")}async function Or(e,t={}){let{ignore:i=["node_modules",".git",".env*","*.map"]}=t,s=[],n=new Bun.Glob("**/*");for await(let r of n.scan({cwd:e,onlyFiles:!0,dot:!1})){if(i.some((a)=>{if(a.includes("*"))return new RegExp(`^${a.replace(/\*/g,".*")}$`).test(r);return r.includes(a)}))continue;let p=`${e}/${r}`,u=await Bun.file(p).arrayBuffer(),o=await Li(u);s.push({path:r,content:new Uint8Array(u),sha1:o})}return s}function Gs(e){let t={};for(let i of e)t[`/${i.path}`]=i.sha1;return t}function Ks(e,t){let i=new Set(t.map((s)=>s.startsWith("/")?s.slice(1):s));return e.filter((s)=>i.has(s.path))}function Cn(e){if(e<1024)return`${e} B`;if(e<1048576)return`${(e/1024).toFixed(1)} KB`;if(e<1073741824)return`${(e/1048576).toFixed(1)} MB`;return`${(e/1073741824).toFixed(1)} GB`}function Ut(e){return e.reduce((t,i)=>t+i.content.byteLength,0)}import m from"fs";import y from"path";function ji(e){let t=[];if(t.push("[build]"),t.push(` command = "${d(e.build.command)}"`),t.push(` publish = "${d(e.build.publish)}"`),e.build.functions)t.push(` functions = "${d(e.build.functions)}"`);if(e.build.edge_functions)t.push(` edge_functions = "${d(e.build.edge_functions)}"`);if(e.build.environment&&Object.keys(e.build.environment).length>0){t.push(""),t.push("[build.environment]");for(let[i,s]of Object.entries(e.build.environment))t.push(` ${i} = "${d(s)}"`)}if(e.functions){if(t.push(""),t.push("[functions]"),e.functions.directory)t.push(` directory = "${d(e.functions.directory)}"`);if(e.functions.node_bundler)t.push(` node_bundler = "${e.functions.node_bundler}"`);if(e.functions.external_node_modules&&e.functions.external_node_modules.length>0)t.push(` external_node_modules = [${e.functions.external_node_modules.map((i)=>`"${i}"`).join(", ")}]`)}if(e.edge_functions&&e.edge_functions.length>0){t.push("");for(let i of e.edge_functions)t.push("[[edge_functions]]"),t.push(` function = "${d(i.function)}"`),t.push(` path = "${d(i.path)}"`)}if(e.redirects&&e.redirects.length>0){t.push("");for(let i of e.redirects){if(t.push("[[redirects]]"),t.push(` from = "${d(i.from)}"`),t.push(` to = "${d(i.to)}"`),i.status!==void 0)t.push(` status = ${i.status}`);if(i.force!==void 0)t.push(` force = ${i.force}`);if(i.conditions&&Object.keys(i.conditions).length>0){t.push(" [redirects.conditions]");for(let[s,n]of Object.entries(i.conditions))t.push(` ${s} = "${d(n)}"`)}}}if(e.headers&&e.headers.length>0){t.push("");for(let i of e.headers){t.push("[[headers]]"),t.push(` for = "${d(i.for)}"`),t.push(" [headers.values]");for(let[s,n]of Object.entries(i.values))t.push(` ${s} = "${d(n)}"`)}}if(e.plugins&&e.plugins.length>0){t.push("");for(let i of e.plugins)if(t.push("[[plugins]]"),t.push(` package = "${d(i.package)}"`),i.inputs&&Object.keys(i.inputs).length>0){t.push(" [plugins.inputs]");for(let[s,n]of Object.entries(i.inputs))if(typeof n==="string")t.push(` ${s} = "${d(n)}"`);else if(typeof n==="boolean"||typeof n==="number")t.push(` ${s} = ${n}`)}}if(e.context&&Object.keys(e.context).length>0)for(let[i,s]of Object.entries(e.context)){if(t.push(""),t.push(`[context.${i}]`),s.command)t.push(` command = "${d(s.command)}"`);if(s.publish)t.push(` publish = "${d(s.publish)}"`);if(s.environment&&Object.keys(s.environment).length>0){t.push(` [context.${i}.environment]`);for(let[n,r]of Object.entries(s.environment))t.push(` ${n} = "${d(r)}"`)}}return t.join(`
2
+ import S from"fs";import _ from"path";function Xs(e){let{token:t,baseUrl:i="https://api.netlify.com/api/v1"}=e;async function s(n,r,l={}){let p=`${i}${r}`,f={Authorization:`Bearer ${t}`,"User-Agent":"stx-deploy/1.0"},u;if(l.rawBody)f["Content-Type"]=l.contentType||"application/octet-stream",u=l.rawBody;else if(l.body)f["Content-Type"]="application/json",u=JSON.stringify(l.body);let o=await fetch(p,{method:n,headers:f,body:u});if(!o.ok){let g=Error(`Netlify API error: ${o.status} ${o.statusText}`);g.status=o.status;try{let b=await o.json();g.message=b.message||g.message,g.code=b.code,g.details=b}catch{}throw g}let a=await o.text();if(!a)return{};return JSON.parse(a)}return{async getSite(n){return s("GET",`/sites/${n}`)},async listSites(){return s("GET","/sites")},async createSite(n){let r={};if(n)r.name=n;return s("POST","/sites",{body:r})},async createDeploy(n,r){let l={files:r.files,draft:r.draft??!0,async:r.async??!0};if(r.title)l.title=r.title;if(r.branch)l.branch=r.branch;if(r.functions)l.functions=r.functions;return s("POST",`/sites/${n}/deploys`,{body:l})},async uploadFile(n,r,l){let p=r.startsWith("/")?r.slice(1):r;await s("PUT",`/deploys/${n}/files/${p}`,{rawBody:l,contentType:"application/octet-stream"})},async uploadFiles(n,r){let p=[...r],f=async()=>{while(p.length>0){let o=p.shift();if(o)await this.uploadFile(n,o.path,o.content)}},u=Array.from({length:Math.min(5,r.length)},()=>f());await Promise.all(u)},async getDeploy(n){return s("GET",`/deploys/${n}`)},async waitForDeploy(n,r={}){let{timeout:l=300000,pollInterval:p=2000,onProgress:f}=r,u=Date.now();while(!0){let o=await this.getDeploy(n);if(f)f(o);if(o.state==="ready")return o;if(o.state==="error"){let a=Error(`Deploy failed: ${o.error_message||"Unknown error"}`);throw a.status=500,a.details=o,a}if(Date.now()-u>l){let a=Error(`Deploy timed out after ${l}ms`);throw a.status=408,a.details=o,a}await new Promise((a)=>setTimeout(a,p))}},async lockDeploy(n){return s("POST",`/deploys/${n}/lock`)},async unlockDeploy(n){return s("POST",`/deploys/${n}/unlock`)}}}async function Fi(e){let t=await crypto.subtle.digest("SHA-1",e);return Array.from(new Uint8Array(t)).map((s)=>s.toString(16).padStart(2,"0")).join("")}async function Mr(e,t={}){let{ignore:i=["node_modules",".git",".env*","*.map"]}=t,s=[],n=new Bun.Glob("**/*");for await(let r of n.scan({cwd:e,onlyFiles:!0,dot:!1})){if(i.some((a)=>{if(a.includes("*"))return new RegExp(`^${a.replace(/\*/g,".*")}$`).test(r);return r.includes(a)}))continue;let p=`${e}/${r}`,u=await Bun.file(p).arrayBuffer(),o=await Fi(u);s.push({path:r,content:new Uint8Array(u),sha1:o})}return s}function Js(e){let t={};for(let i of e)t[`/${i.path}`]=i.sha1;return t}function Ys(e,t){let i=new Set(t.map((s)=>s.startsWith("/")?s.slice(1):s));return e.filter((s)=>i.has(s.path))}function En(e){if(e<1024)return`${e} B`;if(e<1048576)return`${(e/1024).toFixed(1)} KB`;if(e<1073741824)return`${(e/1048576).toFixed(1)} MB`;return`${(e/1073741824).toFixed(1)} GB`}function Wt(e){return e.reduce((t,i)=>t+i.content.byteLength,0)}import m from"fs";import y from"path";function zi(e){let t=[];if(t.push("[build]"),t.push(` command = "${d(e.build.command)}"`),t.push(` publish = "${d(e.build.publish)}"`),e.build.functions)t.push(` functions = "${d(e.build.functions)}"`);if(e.build.edge_functions)t.push(` edge_functions = "${d(e.build.edge_functions)}"`);if(e.build.environment&&Object.keys(e.build.environment).length>0){t.push(""),t.push("[build.environment]");for(let[i,s]of Object.entries(e.build.environment))t.push(` ${i} = "${d(s)}"`)}if(e.functions){if(t.push(""),t.push("[functions]"),e.functions.directory)t.push(` directory = "${d(e.functions.directory)}"`);if(e.functions.node_bundler)t.push(` node_bundler = "${e.functions.node_bundler}"`);if(e.functions.external_node_modules&&e.functions.external_node_modules.length>0)t.push(` external_node_modules = [${e.functions.external_node_modules.map((i)=>`"${i}"`).join(", ")}]`)}if(e.edge_functions&&e.edge_functions.length>0){t.push("");for(let i of e.edge_functions)t.push("[[edge_functions]]"),t.push(` function = "${d(i.function)}"`),t.push(` path = "${d(i.path)}"`)}if(e.redirects&&e.redirects.length>0){t.push("");for(let i of e.redirects){if(t.push("[[redirects]]"),t.push(` from = "${d(i.from)}"`),t.push(` to = "${d(i.to)}"`),i.status!==void 0)t.push(` status = ${i.status}`);if(i.force!==void 0)t.push(` force = ${i.force}`);if(i.conditions&&Object.keys(i.conditions).length>0){t.push(" [redirects.conditions]");for(let[s,n]of Object.entries(i.conditions))t.push(` ${s} = "${d(n)}"`)}}}if(e.headers&&e.headers.length>0){t.push("");for(let i of e.headers){t.push("[[headers]]"),t.push(` for = "${d(i.for)}"`),t.push(" [headers.values]");for(let[s,n]of Object.entries(i.values))t.push(` ${s} = "${d(n)}"`)}}if(e.plugins&&e.plugins.length>0){t.push("");for(let i of e.plugins)if(t.push("[[plugins]]"),t.push(` package = "${d(i.package)}"`),i.inputs&&Object.keys(i.inputs).length>0){t.push(" [plugins.inputs]");for(let[s,n]of Object.entries(i.inputs))if(typeof n==="string")t.push(` ${s} = "${d(n)}"`);else if(typeof n==="boolean"||typeof n==="number")t.push(` ${s} = ${n}`)}}if(e.context&&Object.keys(e.context).length>0)for(let[i,s]of Object.entries(e.context)){if(t.push(""),t.push(`[context.${i}]`),s.command)t.push(` command = "${d(s.command)}"`);if(s.publish)t.push(` publish = "${d(s.publish)}"`);if(s.environment&&Object.keys(s.environment).length>0){t.push(` [context.${i}.environment]`);for(let[n,r]of Object.entries(s.environment))t.push(` ${n} = "${d(r)}"`)}}return t.join(`
3
3
  `)+`
4
- `}function d(e){return e.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}async function Nr(e){let t={framework:"stx",buildCommand:"bun run build",outputDir:"dist"},i=y.join(e,"package.json");if(await Bun.file(i).exists())try{let u=JSON.parse(await Bun.file(i).text());if(u.scripts?.build)t.buildCommand="bun run build";let o={...u.dependencies,...u.devDependencies};if(o["@stacksjs/stx"]||o.stx)t.framework="stx"}catch{}let s=y.join(e,"stx.config.ts"),n=y.join(e,".config","stx.config.ts");if(await Bun.file(s).exists()||await Bun.file(n).exists())t.framework="stx";let r=["dist","build","out","public",".output"];for(let u of r){let o=y.join(e,u);if(m.existsSync(o)&&m.statSync(o).isDirectory()){t.outputDir=u;break}}let l=["functions","netlify/functions","api"];for(let u of l){let o=y.join(e,u);if(m.existsSync(o)&&m.statSync(o).isDirectory()){t.functionsDir=u;break}}let p=y.join(e,"netlify","edge-functions");if(m.existsSync(p))t.edgeFunctionsDir="netlify/edge-functions";let f=y.join(e,t.outputDir||"dist");if(m.existsSync(f)){let u=m.existsSync(y.join(f,"index.html")),o=m.readdirSync(f).filter((a)=>a.endsWith(".html"));t.isSPA=u&&o.length===1}return t}function Dr(e={}){let t={build:{command:e.buildCommand||"bun run build",publish:e.outputDir||"dist"}};if(e.functionsDir)t.build.functions=e.functionsDir,t.functions={directory:e.functionsDir,node_bundler:"esbuild"};if(e.edgeFunctionsDir)t.build.edge_functions=e.edgeFunctionsDir;if(t.headers=[{for:"/*",values:{"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin"}},{for:"/assets/*",values:{"Cache-Control":"public, max-age=31536000, immutable"}}],e.isSPA!==!1)t.redirects=[{from:"/*",to:"/index.html",status:200}];return t.context={production:{environment:{NODE_ENV:"production"}},"deploy-preview":{environment:{NODE_ENV:"development"}}},t}async function Xs(e,t){let i=await Nr(e),s=t||Dr(i),n=ji(s),r=y.join(e,"netlify.toml");return await Bun.write(r,n),r}function Js(e){return m.existsSync(y.join(e,"netlify.toml"))}async function bg(e={}){let t=Date.now(),i=[],s=e.cwd||process.cwd(),n=(c)=>{i.push(c)},r=(c)=>{if(e.onProgress)e.onProgress(c)},l=_.resolve(s,e.directory||"dist"),p=e.token||process.env.NETLIFY_AUTH_TOKEN,f=e.siteId||process.env.NETLIFY_SITE_ID;if(!p)throw new lt(`No Netlify auth token found.
4
+ `}function d(e){return e.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}async function Lr(e){let t={framework:"stx",buildCommand:"bun run build",outputDir:"dist"},i=y.join(e,"package.json");if(await Bun.file(i).exists())try{let u=JSON.parse(await Bun.file(i).text());if(u.scripts?.build)t.buildCommand="bun run build";let o={...u.dependencies,...u.devDependencies};if(o["@stacksjs/stx"]||o.stx)t.framework="stx"}catch{}let s=y.join(e,"stx.config.ts"),n=y.join(e,".config","stx.config.ts");if(await Bun.file(s).exists()||await Bun.file(n).exists())t.framework="stx";let r=["dist","build","out","public",".output"];for(let u of r){let o=y.join(e,u);if(m.existsSync(o)&&m.statSync(o).isDirectory()){t.outputDir=u;break}}let l=["functions","netlify/functions","api"];for(let u of l){let o=y.join(e,u);if(m.existsSync(o)&&m.statSync(o).isDirectory()){t.functionsDir=u;break}}let p=y.join(e,"netlify","edge-functions");if(m.existsSync(p))t.edgeFunctionsDir="netlify/edge-functions";let f=y.join(e,t.outputDir||"dist");if(m.existsSync(f)){let u=m.existsSync(y.join(f,"index.html")),o=m.readdirSync(f).filter((a)=>a.endsWith(".html"));t.isSPA=u&&o.length===1}return t}function jr(e={}){let t={build:{command:e.buildCommand||"bun run build",publish:e.outputDir||"dist"}};if(e.functionsDir)t.build.functions=e.functionsDir,t.functions={directory:e.functionsDir,node_bundler:"esbuild"};if(e.edgeFunctionsDir)t.build.edge_functions=e.edgeFunctionsDir;if(t.headers=[{for:"/*",values:{"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin"}},{for:"/assets/*",values:{"Cache-Control":"public, max-age=31536000, immutable"}}],e.isSPA!==!1)t.redirects=[{from:"/*",to:"/index.html",status:200}];return t.context={production:{environment:{NODE_ENV:"production"}},"deploy-preview":{environment:{NODE_ENV:"development"}}},t}async function Zs(e,t){let i=await Lr(e),s=t||jr(i),n=zi(s),r=y.join(e,"netlify.toml");return await Bun.write(r,n),r}function Qs(e){return m.existsSync(y.join(e,"netlify.toml"))}async function wg(e={}){let t=Date.now(),i=[],s=e.cwd||process.cwd(),n=(c)=>{i.push(c)},r=(c)=>{if(e.onProgress)e.onProgress(c)},l=_.resolve(s,e.directory||"dist"),p=e.token||process.env.NETLIFY_AUTH_TOKEN,f=e.siteId||process.env.NETLIFY_SITE_ID;if(!p)throw new ut(`No Netlify auth token found.
5
5
 
6
6
  To deploy to Netlify:
7
7
  1. Create account at https://app.netlify.com
8
8
  2. Get token at https://app.netlify.com/user/applications#personal-access-tokens
9
9
  3. Set NETLIFY_AUTH_TOKEN environment variable
10
10
 
11
- export NETLIFY_AUTH_TOKEN=your_token_here`,"NO_TOKEN");if(!f)throw new lt(`No Netlify site ID found.
11
+ export NETLIFY_AUTH_TOKEN=your_token_here`,"NO_TOKEN");if(!f)throw new ut(`No Netlify site ID found.
12
12
 
13
13
  Either:
14
14
  1. Set NETLIFY_SITE_ID environment variable
15
15
  2. Pass --site-id option
16
16
  3. Run \`stx deploy --init\` to set up
17
17
 
18
- Find your site ID at: https://app.netlify.com/sites/YOUR_SITE/settings/general`,"NO_SITE_ID");if(!S.existsSync(l))throw new lt(`Build directory not found: ${l}
18
+ Find your site ID at: https://app.netlify.com/sites/YOUR_SITE/settings/general`,"NO_SITE_ID");if(!S.existsSync(l))throw new ut(`Build directory not found: ${l}
19
19
 
20
- Run \`stx build\` first or specify a different directory with --directory`,"NO_BUILD_DIR");if(!(S.readdirSync(l).length>0))throw new lt(`Build directory is empty: ${l}
20
+ Run \`stx build\` first or specify a different directory with --directory`,"NO_BUILD_DIR");if(!(S.readdirSync(l).length>0))throw new ut(`Build directory is empty: ${l}
21
21
 
22
- Run \`stx build\` to generate files`,"EMPTY_BUILD_DIR");if(e.dryRun){r({stage:"collect",message:"Collecting files..."});let c=await Or(l),w=Ut(c);return n(`Would deploy ${c.length} files (${Cn(w)})`),n(`From: ${l}`),n(`To: Site ${f}`),n(`Mode: ${e.production?"production":"draft"}`),{success:!0,url:`https://${f}.netlify.app (dry-run)`,deployId:"dry-run",logs:i,duration:Date.now()-t,filesUploaded:c.length,totalSize:w}}let o=qs({token:p});r({stage:"collect",message:"Verifying site..."});try{let c=await o.getSite(f);n(`Deploying to: ${c.name} (${c.url})`)}catch(c){if(c.status===404)throw new lt(`Site not found: ${f}
22
+ Run \`stx build\` to generate files`,"EMPTY_BUILD_DIR");if(e.dryRun){r({stage:"collect",message:"Collecting files..."});let c=await Mr(l),w=Wt(c);return n(`Would deploy ${c.length} files (${En(w)})`),n(`From: ${l}`),n(`To: Site ${f}`),n(`Mode: ${e.production?"production":"draft"}`),{success:!0,url:`https://${f}.netlify.app (dry-run)`,deployId:"dry-run",logs:i,duration:Date.now()-t,filesUploaded:c.length,totalSize:w}}let o=Xs({token:p});r({stage:"collect",message:"Verifying site..."});try{let c=await o.getSite(f);n(`Deploying to: ${c.name} (${c.url})`)}catch(c){if(c.status===404)throw new ut(`Site not found: ${f}
23
23
 
24
- Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FOUND");throw c}r({stage:"collect",message:"Collecting files..."});let a=await Or(l),g=Ut(a);if(n(`Found ${a.length} files (${Cn(g)})`),a.length===0)throw new lt(`No files found in ${l}`,"NO_FILES");let b=Gs(a);r({stage:"upload",message:"Creating deploy...",percent:0});let D=await o.createDeploy(f,{title:e.message||"Deploy from stx CLI",draft:!e.production,files:b});n(`Created deploy: ${D.id}`);let h=Ks(a,D.required||[]);if(n(`Uploading ${h.length} files...`),h.length>0){let c=0,w=Ut(h);for(let x of h){await o.uploadFile(D.id,x.path,x.content),c++;let C=Math.round(c/h.length*100);r({stage:"upload",message:`Uploading: ${x.path}`,percent:C,details:{uploaded:c,total:h.length}})}n(`Uploaded ${Cn(w)}`)}else n("All files already on CDN (no upload needed)");r({stage:"process",message:"Processing deploy..."});let N=await o.waitForDeploy(D.id,{onProgress:(c)=>{r({stage:"process",message:`Status: ${c.state}`,details:c})}}),P=Date.now()-t;if(r({stage:"done",message:"Deploy complete!"}),n(`Deploy complete in ${(P/1000).toFixed(1)}s`),n(`URL: ${N.deploy_ssl_url}`),e.production)n(`Site: ${N.ssl_url}`);if(e.open){let c=e.production?N.ssl_url:N.deploy_ssl_url;I(c)}return{success:!0,url:N.deploy_ssl_url,siteUrl:e.production?N.ssl_url:void 0,deployId:N.id,logs:i,duration:P,filesUploaded:h.length,totalSize:Ut(h)}}async function vg(e={}){let t=e.directory||process.cwd(),i;if(Js(t))i=_.join(t,"netlify.toml");else{let s=await Nr(t);i=await Xs(t,Dr(s))}if(e.siteId){let s=_.join(t,".env.local"),n="";if(await Bun.file(s).exists()){if(n=await Bun.file(s).text(),n=n.split(`
24
+ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FOUND");throw c}r({stage:"collect",message:"Collecting files..."});let a=await Mr(l),g=Wt(a);if(n(`Found ${a.length} files (${En(g)})`),a.length===0)throw new ut(`No files found in ${l}`,"NO_FILES");let b=Js(a);r({stage:"upload",message:"Creating deploy...",percent:0});let D=await o.createDeploy(f,{title:e.message||"Deploy from stx CLI",draft:!e.production,files:b});n(`Created deploy: ${D.id}`);let h=Ys(a,D.required||[]);if(n(`Uploading ${h.length} files...`),h.length>0){let c=0,w=Wt(h);for(let x of h){await o.uploadFile(D.id,x.path,x.content),c++;let C=Math.round(c/h.length*100);r({stage:"upload",message:`Uploading: ${x.path}`,percent:C,details:{uploaded:c,total:h.length}})}n(`Uploaded ${En(w)}`)}else n("All files already on CDN (no upload needed)");r({stage:"process",message:"Processing deploy..."});let N=await o.waitForDeploy(D.id,{onProgress:(c)=>{r({stage:"process",message:`Status: ${c.state}`,details:c})}}),P=Date.now()-t;if(r({stage:"done",message:"Deploy complete!"}),n(`Deploy complete in ${(P/1000).toFixed(1)}s`),n(`URL: ${N.deploy_ssl_url}`),e.production)n(`Site: ${N.ssl_url}`);if(e.open){let c=e.production?N.ssl_url:N.deploy_ssl_url;I(c)}return{success:!0,url:N.deploy_ssl_url,siteUrl:e.production?N.ssl_url:void 0,deployId:N.id,logs:i,duration:P,filesUploaded:h.length,totalSize:Wt(h)}}async function xg(e={}){let t=e.directory||process.cwd(),i;if(Qs(t))i=_.join(t,"netlify.toml");else{let s=await Lr(t);i=await Zs(t,jr(s))}if(e.siteId){let s=_.join(t,".env.local"),n="";if(await Bun.file(s).exists()){if(n=await Bun.file(s).text(),n=n.split(`
25
25
  `).filter((r)=>!r.startsWith("NETLIFY_SITE_ID=")).join(`
26
26
  `),n&&!n.endsWith(`
27
27
  `))n+=`
28
28
  `}n+=`NETLIFY_SITE_ID=${e.siteId}
29
- `,await Bun.write(s,n)}return{configPath:i,siteId:e.siteId}}class lt extends Error{code;constructor(e,t){super(e);this.name="DeployError",this.code=t}}function I(e){let t=process.platform,i=t==="darwin"?"open":t==="win32"?"start":"xdg-open";Bun.spawn([i,e],{stdio:["ignore","ignore","ignore"]})}
30
- export{qs,Li,Or,Gs,Ks,Cn,Ut,ji,Nr,Dr,Xs,Js,bg,vg,lt};
29
+ `,await Bun.write(s,n)}return{configPath:i,siteId:e.siteId}}class ut extends Error{code;constructor(e,t){super(e);this.name="DeployError",this.code=t}}function I(e){let t=process.platform,i=t==="darwin"?"open":t==="win32"?"start":"xdg-open";Bun.spawn([i,e],{stdio:["ignore","ignore","ignore"]})}
30
+ export{Xs,Fi,Mr,Js,Ys,En,Wt,zi,Lr,jr,Zs,Qs,wg,xg,ut};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{He,kn,mi}from"./chunk-44c1mbye.js";function Bs(e,a){let t=e.pwa;if(!t?.enabled)return"";let c=t.serviceWorker||{},d=t.routes||[],i=c.cacheVersion||"1.0.0",o=t.offline,l=o?.page?"/offline.html":"/offline.html",{push:r,backgroundSync:s,cacheStorage:n}=t,u=a?He(a,e):null,h=u?kn(u):"[]",f=["/","/manifest.json",...o?.enabled?[l]:[],...o?.precacheAssets||[]];return`/**
2
+ import{Ve,_n,bi}from"./chunk-fcbd7kwj.js";function Hs(e,a){let t=e.pwa;if(!t?.enabled)return"";let c=t.serviceWorker||{},d=t.routes||[],i=c.cacheVersion||"1.0.0",o=t.offline,l=o?.page?"/offline.html":"/offline.html",{push:r,backgroundSync:s,cacheStorage:n}=t,u=a?Ve(a,e):null,h=u?_n(u):"[]",f=["/","/manifest.json",...o?.enabled?[l]:[],...o?.precacheAssets||[]];return`/**
3
3
  * Service Worker - Auto-generated by stx
4
4
  * Cache Version: ${i}
5
5
  *
@@ -13,7 +13,7 @@ import{He,kn,mi}from"./chunk-44c1mbye.js";function Bs(e,a){let t=e.pwa;if(!t?.en
13
13
  * Additional features:
14
14
  * - Push notifications: ${r?.enabled?"enabled":"disabled"}
15
15
  * - Background sync: ${s?.enabled?"enabled":"disabled"}
16
- * - Cache limits: ${n?.maxSize?`${mi(n.maxSize*1024*1024)}`:"unlimited"}
16
+ * - Cache limits: ${n?.maxSize?`${bi(n.maxSize*1024*1024)}`:"unlimited"}
17
17
  */
18
18
 
19
19
  const CACHE_VERSION = '${i}';
@@ -825,5 +825,5 @@ self.addEventListener('message', (event) => {
825
825
  event.waitUntil(registerFormSync(event.data.payload));
826
826
  }
827
827
  });
828
- `}function Bt(e){return e.pwa?.serviceWorker?.fileName||"sw.js"}function nl(e){return e.pwa?.enabled===!0&&e.pwa?.serviceWorker?.useWorkbox===!0}function rg(e,a){if(!e.pwa?.enabled)return"";if(nl(e)){let{generateWorkboxServiceWorker:t}=import.meta.require("./chunk-t8d33x9w.js");return t(e,a)}return Bs(e,a)}
829
- export{Bs,Bt,nl,rg};
828
+ `}function Ft(e){return e.pwa?.serviceWorker?.fileName||"sw.js"}function sl(e){return e.pwa?.enabled===!0&&e.pwa?.serviceWorker?.useWorkbox===!0}function og(e,a){if(!e.pwa?.enabled)return"";if(sl(e)){let{generateWorkboxServiceWorker:t}=import.meta.require("./chunk-khrckvwn.js");return t(e,a)}return Hs(e,a)}
829
+ export{Hs,Ft,sl,og};
@@ -298,5 +298,5 @@ catch (error) {
298
298
  init();
299
299
  }
300
300
  })();
301
- </script>`}var sg={name:"pwa.installButton",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return r(t,n)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},og={name:"pwa.updatePrompt",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return p(t,n)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},ig={name:"pwa.offlineIndicator",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return d(t,n)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},ag={name:"pwa.pushSubscribe",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return l(t,n)},hasEndTag:!0,description:"Renders a push notification subscription button"},Fs=[sg,og,ig,ag];function Dh(t){return[...t,...Fs]}
302
- export{sg,og,ig,ag,Fs,Dh};
301
+ </script>`}var ig={name:"pwa.installButton",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return r(t,n)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},ag={name:"pwa.updatePrompt",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return p(t,n)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},cg={name:"pwa.offlineIndicator",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return d(t,n)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},lg={name:"pwa.pushSubscribe",handler:(t,i,e,a)=>{let n=e.__stx_options||{};return l(t,n)},hasEndTag:!0,description:"Renders a push notification subscription button"},Vs=[ig,ag,cg,lg];function Lh(t){return[...t,...Vs]}
302
+ export{ig,ag,cg,lg,Vs,Lh};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{pc,r,fe}from"./chunk-0jtrdgyv.js";import{et}from"./chunk-j2mpqa4p.js";import{l}from"./chunk-5n4qg8za.js";import o from"fs";import u from"path";var yf=new Map,m=new Map;async function oh(e){let n;for(let i=0;i<3;i++)try{let g=(await o.promises.stat(e)).mtime.getTime(),a=m.get(e);if(a&&a.mtime===g)return a.content;let h=await Bun.file(e).text(),w=(await o.promises.stat(e)).mtime.getTime();if(w!==g)continue;return m.set(e,{content:h,mtime:w}),h}catch(s){n=s;break}throw m.delete(e),Error(`File not found: ${e}${n?` (${n.message})`:""}`)}function ih(e){m.delete(e)}function ah(e){for(let t of m.keys())if(t.startsWith(e))m.delete(t)}var f=null,B=null,x=null;function ch(e){x=e}async function bf(e=!1){let t=x??await import("./chunk-cjx11tgd.js");if(e)return t.generateSignalsRuntimeDev();if(f===null)f=t.generateSignalsRuntime();return f}var S=null;async function vf(){if(S===null){let{getRouterScript:e}=await import("./chunk-avr65xra.js");S=e()}return S}var y={};async function lh(e,t=!1){let n=e==="runtime"?await bf(t):await vf(),i=e==="runtime"&&t?"runtime-debug":e,s=y[i];if(!s||s.content!==n)s={content:n,hash:Bun.hash(n).toString(16).padStart(16,"0").slice(0,16)},y[i]=s;return{content:n,hash:s.hash,url:`/_stx/${e}.${s.hash}.js`}}var E=500,T=33554432,c=new Map,p=0;function C(e){return l(process.cwd(),"module-bundles",`${e}.js`)}function uh(e){let t=Bun.hash(e).toString(16).padStart(16,"0").slice(0,16),n=c.get(t),i=n!==void 0;if(i)c.delete(t),p-=n.length*2;c.set(t,e),p+=e.length*2;while(c.size>1&&(c.size>E||p>T)){let s=c.keys().next().value;p-=c.get(s).length*2,c.delete(s)}if(!i)try{let s=C(t);if(!o.existsSync(s))o.mkdirSync(u.dirname(s),{recursive:!0}),o.writeFileSync(s,e)}catch{}return`/_stx/modules.${t}.js`}function Oo(e){if(!/^[0-9a-f]{16}$/.test(e))return;let t=c.get(e);if(t!==void 0)return t;try{return o.readFileSync(C(e),"utf8")}catch{return}}function dh(){m.clear(),fe(),pc(),f=null,B=null,S=null}function v(e){let t={debug:e.debug===!0,middleware:(e.middleware??[]).map((n)=>({name:n.name,timing:n.timing,handler:String(n.handler)})),customDirectives:(e.customDirectives??[]).map((n)=>({name:n.name,hasEndTag:n.hasEndTag===!0,rawParams:n.rawParams===!0,handler:String(n.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(t)).digest("hex")}async function ir(e,t){try{if(!t.cachePath)return null;let n=u.resolve(t.cachePath),i=u.join(n,`${as(e)}.html`),s=u.join(n,`${as(e)}.meta.json`);if(!await r(i)||!await r(s))return null;let g=await Bun.file(s).text(),a=JSON.parse(g);if(a.cacheVersion!==t.cacheVersion)return null;if(a.engine!==et())return null;if(a.optionsSignature!==v(t))return null;if((await o.promises.stat(e)).mtime.getTime()>a.mtime)return null;for(let d of a.dependencies)if(await r(d)){if((await o.promises.stat(d)).mtime.getTime()>a.mtime)return null}else return null;return await Bun.file(i).text()}catch(n){return console.warn(`Cache error for ${e}:`,n),null}}async function ar(e,t,n,i){try{if(!i.cachePath)return;let s=u.resolve(i.cachePath);await o.promises.mkdir(s,{recursive:!0});let g=u.join(s,`${as(e)}.html`),a=u.join(s,`${as(e)}.meta.json`),h=await o.promises.stat(e);await Bun.write(g,t);let d={sourcePath:e,mtime:h.mtime.getTime(),dependencies:Array.from(n),cacheVersion:i.cacheVersion,engine:et(),optionsSignature:v(i),generatedAt:Date.now()};await Bun.write(a,JSON.stringify(d,null,2)),yf.set(e,{output:t,mtime:h.mtime.getTime(),dependencies:n})}catch(s){console.warn(`Failed to cache template ${e}:`,s)}}var _=16;function as(e){return new Bun.CryptoHasher("sha1").update(e).digest("hex").substring(0,_)}
3
+ export{yf,oh,ih,ah,ch,bf,vf,lh,uh,Oo,dh,ir,ar,as};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import c from"fs";import i from"path";import{createHash as k}from"crypto";var j=["pages","components","layouts","partials","composables"],w=new Set;function tc(e){try{return w.has(c.realpathSync(e))}catch{return w.has(i.resolve(e))}}var _=new Set(["extends","root",...j.map((e)=>`${e}Dir`),"publicDir","stateDir","cachePath"]),x=(e)=>e!==null&&typeof e==="object"&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null);function b(e,n,r=""){if(Array.isArray(n))return["middleware","plugins"].includes(r)?[...Array.isArray(e)?e:[],...n]:[...n];if(!x(n))return n;let o={...x(e)?e:{}};for(let[s,a]of Object.entries(n)){if(["__proto__","constructor","prototype"].includes(s))throw Error(`Invalid layer config key: ${s}`);o[s]=b(o[s],a,s)}return o}function v(e){for(let n of["stx.config.ts","stx.config.js","stx.config.mjs",".config/stx.config.ts",".config/stx.ts","ui.config.ts"]){let r=i.join(e,n);if(c.existsSync(r))return c.realpathSync(r)}throw Error(`Application layer has no stx.config.ts: ${e}`)}function E(e,n,r){if(typeof e!=="string"||!e||/^(?:https?:|git[+:])/.test(e))throw Error(`Invalid application layer ${JSON.stringify(e)} in ${n}; use a local path or installed package`);if(e.startsWith(".")||i.isAbsolute(e)){let s=i.resolve(n,e);return c.statSync(s).isDirectory()?v(s):c.realpathSync(s)}let o=n;while(!0){let s=i.join(o,"node_modules",e),a=i.join(s,"package.json");if(c.existsSync(a)){r.add(c.realpathSync(a));let g=JSON.parse(c.readFileSync(a,"utf8"));return g.stx?.layer?c.realpathSync(i.resolve(s,g.stx.layer)):v(s)}let p=i.dirname(o);if(p===o)break;o=p}throw Error(`Cannot resolve application layer ${JSON.stringify(e)} from ${n}`)}async function C(e,n){let r=await Bun.build({entrypoints:[e],target:"bun",format:"esm",splitting:!1,plugins:[{name:"stx-layer-config",setup(a){a.onResolve({filter:/^[^./]/},(p)=>{if(p.path.startsWith("node:"))return{path:p.path,external:!0};return{path:Bun.resolveSync(p.path,p.resolveDir),external:!0}}),a.onLoad({filter:/./},(p)=>{let g=c.realpathSync(p.path);n.add(g),w.add(g);return})}}]});if(!r.success)throw Error(`Cannot load layer ${e}: ${r.logs.join(`
3
- `)}`);let o=r.outputs.find((a)=>a.kind==="entry-point");if(!o||r.outputs.length!==1)throw Error(`Unsupported layer config output: ${e}`);let s=(await import(`data:text/javascript;base64,${Buffer.from(await o.text()).toString("base64")}`)).default;if(!x(s))throw Error(`Layer ${e} must default-export a config object`);return s}async function nc(e,n){let r=new Set,o=[],s=[],a=new Set,p=[];async function g(t,l){if(t=c.realpathSync(t),p.includes(t))throw Error(`Application layer cycle: ${[...p,t].join(" -> ")}`);if(a.has(t))return;a.add(t),p.push(t);let d=await C(t,r);l??=i.basename(i.dirname(t))===".config"?i.dirname(i.dirname(t)):i.dirname(t),l=c.realpathSync(l);let D=i.resolve(l,d.root??"."),L=Object.fromEntries(j.map((y)=>[y,i.resolve(D,d[`${y}Dir`]??(y==="composables"?"functions":y))]));o.push({root:l,configFile:t,resources:L});let u={...d};if(u.plugins)u.plugins=u.plugins.map((y)=>{let h=typeof y==="string"?y:y[0],S=h.startsWith(".")?i.resolve(l,h):i.isAbsolute(h)?h:Bun.resolveSync(h,l);return r.add(c.realpathSync(S)),typeof y==="string"?S:[S,y[1]]});if(typeof u.css==="string")u.css=i.resolve(l,u.css);if(u.serverApi)u.serverApi={...typeof u.serverApi==="object"?u.serverApi:{},dir:i.resolve(l,typeof u.serverApi==="object"?u.serverApi.dir??"server/api":"server/api")};if(s.push(u),d.extends!==void 0&&!Array.isArray(d.extends))throw Error(`extends in ${t} must be an array`);for(let y of d.extends??[])await g(E(y,l,r));p.pop()}await g(v(e),e);for(let t of["package.json","bun.lock","package-lock.json","pnpm-lock.yaml"]){let l=i.join(e,t);if(c.existsSync(l))r.add(c.realpathSync(l))}let f=b({},n);for(let t=s.length-1;t>=0;t--){let l=t===0?s[t]:Object.fromEntries(Object.entries(s[t]).filter(([d])=>!_.has(d)));f=b(f,l)}let m={layers:o,configDependencies:[...r].sort()};return f._layerGraph=m,f._layerPageDirs=o.map((t)=>t.resources.pages),f._layerComponentDirs=o.map((t)=>t.resources.components),f._layerLayoutDirs=o.map((t)=>t.resources.layouts),f._layerPartialDirs=o.map((t)=>t.resources.partials),f._layerComposableDirs=o.map((t)=>t.resources.composables),await Oo(m,e),{config:f,graph:m}}async function Oo(e,n){let r=new Map,o=[];for(let s of e.layers)for(let[a,p]of Object.entries(s.resources)){if(!c.existsSync(p))continue;let g=new Bun.Glob(a==="composables"?"**/*.ts":"**/*.stx");for(let f of[...g.scanSync({cwd:p})].sort()){let m=`${a}/${f}`,t=i.join(p,f),l=r.get(m);if(l)o.push({resource:m,winner:l,shadowed:t});else r.set(m,t)}}Object.assign(e,{overrides:o}),await Bun.write(i.join(n,".stx/layers.json"),JSON.stringify(e,null,2))}function A(e){let n=new Set(e.configDependencies);function r(o){if(!c.existsSync(o))return;n.add(o);for(let s of c.readdirSync(o,{withFileTypes:!0}).sort((a,p)=>a.name.localeCompare(p.name))){if(s.name.startsWith(".")||s.name==="node_modules")continue;let a=i.join(o,s.name);if(s.isDirectory())r(a);else if(s.isFile())n.add(a)}}for(let o of e.layers)for(let s of Object.values(o.resources))r(s);return[...n].sort()}function is(e){return O(A(e))}function as(e){return O(e.configDependencies)}function O(e){return e.map((n)=>{try{let r=c.statSync(n);return`${n}:${r.mtimeMs}:${r.size}`}catch{return`${n}:missing`}}).join(`
4
- `)}function rc(e){return e.layers.map((n)=>({config:i.relative(n.root,n.configFile),files:A({layers:[n],configDependencies:e.configDependencies.filter((r)=>r.startsWith(`${n.root}${i.sep}`))}).filter((r)=>c.statSync(r).isFile()).map((r)=>({path:i.relative(n.root,r).replaceAll(i.sep,"/"),sha256:k("sha256").update(c.readFileSync(r)).digest("hex")}))}))}
5
- export{tc,nc,Oo,is,as,rc};
2
+ import c from"fs";import i from"path";import{createHash as k}from"crypto";var j=["pages","components","layouts","partials","composables"],w=new Set;function rc(e){try{return w.has(c.realpathSync(e))}catch{return w.has(i.resolve(e))}}var _=new Set(["extends","root",...j.map((e)=>`${e}Dir`),"publicDir","stateDir","cachePath"]),x=(e)=>e!==null&&typeof e==="object"&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null);function b(e,n,r=""){if(Array.isArray(n))return["middleware","plugins"].includes(r)?[...Array.isArray(e)?e:[],...n]:[...n];if(!x(n))return n;let o={...x(e)?e:{}};for(let[s,a]of Object.entries(n)){if(["__proto__","constructor","prototype"].includes(s))throw Error(`Invalid layer config key: ${s}`);o[s]=b(o[s],a,s)}return o}function v(e){for(let n of["stx.config.ts","stx.config.js","stx.config.mjs",".config/stx.config.ts",".config/stx.ts","ui.config.ts"]){let r=i.join(e,n);if(c.existsSync(r))return c.realpathSync(r)}throw Error(`Application layer has no stx.config.ts: ${e}`)}function E(e,n,r){if(typeof e!=="string"||!e||/^(?:https?:|git[+:])/.test(e))throw Error(`Invalid application layer ${JSON.stringify(e)} in ${n}; use a local path or installed package`);if(e.startsWith(".")||i.isAbsolute(e)){let s=i.resolve(n,e);return c.statSync(s).isDirectory()?v(s):c.realpathSync(s)}let o=n;while(!0){let s=i.join(o,"node_modules",e),a=i.join(s,"package.json");if(c.existsSync(a)){r.add(c.realpathSync(a));let g=JSON.parse(c.readFileSync(a,"utf8"));return g.stx?.layer?c.realpathSync(i.resolve(s,g.stx.layer)):v(s)}let p=i.dirname(o);if(p===o)break;o=p}throw Error(`Cannot resolve application layer ${JSON.stringify(e)} from ${n}`)}async function C(e,n){let r=await Bun.build({entrypoints:[e],target:"bun",format:"esm",splitting:!1,plugins:[{name:"stx-layer-config",setup(a){a.onResolve({filter:/^[^./]/},(p)=>{if(p.path.startsWith("node:"))return{path:p.path,external:!0};return{path:Bun.resolveSync(p.path,p.resolveDir),external:!0}}),a.onLoad({filter:/./},(p)=>{let g=c.realpathSync(p.path);n.add(g),w.add(g);return})}}]});if(!r.success)throw Error(`Cannot load layer ${e}: ${r.logs.join(`
3
+ `)}`);let o=r.outputs.find((a)=>a.kind==="entry-point");if(!o||r.outputs.length!==1)throw Error(`Unsupported layer config output: ${e}`);let s=(await import(`data:text/javascript;base64,${Buffer.from(await o.text()).toString("base64")}`)).default;if(!x(s))throw Error(`Layer ${e} must default-export a config object`);return s}async function sc(e,n){let r=new Set,o=[],s=[],a=new Set,p=[];async function g(t,l){if(t=c.realpathSync(t),p.includes(t))throw Error(`Application layer cycle: ${[...p,t].join(" -> ")}`);if(a.has(t))return;a.add(t),p.push(t);let d=await C(t,r);l??=i.basename(i.dirname(t))===".config"?i.dirname(i.dirname(t)):i.dirname(t),l=c.realpathSync(l);let D=i.resolve(l,d.root??"."),L=Object.fromEntries(j.map((y)=>[y,i.resolve(D,d[`${y}Dir`]??(y==="composables"?"functions":y))]));o.push({root:l,configFile:t,resources:L});let u={...d};if(u.plugins)u.plugins=u.plugins.map((y)=>{let h=typeof y==="string"?y:y[0],S=h.startsWith(".")?i.resolve(l,h):i.isAbsolute(h)?h:Bun.resolveSync(h,l);return r.add(c.realpathSync(S)),typeof y==="string"?S:[S,y[1]]});if(typeof u.css==="string")u.css=i.resolve(l,u.css);if(u.serverApi)u.serverApi={...typeof u.serverApi==="object"?u.serverApi:{},dir:i.resolve(l,typeof u.serverApi==="object"?u.serverApi.dir??"server/api":"server/api")};if(s.push(u),d.extends!==void 0&&!Array.isArray(d.extends))throw Error(`extends in ${t} must be an array`);for(let y of d.extends??[])await g(E(y,l,r));p.pop()}await g(v(e),e);for(let t of["package.json","bun.lock","package-lock.json","pnpm-lock.yaml"]){let l=i.join(e,t);if(c.existsSync(l))r.add(c.realpathSync(l))}let f=b({},n);for(let t=s.length-1;t>=0;t--){let l=t===0?s[t]:Object.fromEntries(Object.entries(s[t]).filter(([d])=>!_.has(d)));f=b(f,l)}let m={layers:o,configDependencies:[...r].sort()};return f._layerGraph=m,f._layerPageDirs=o.map((t)=>t.resources.pages),f._layerComponentDirs=o.map((t)=>t.resources.components),f._layerLayoutDirs=o.map((t)=>t.resources.layouts),f._layerPartialDirs=o.map((t)=>t.resources.partials),f._layerComposableDirs=o.map((t)=>t.resources.composables),await Mo(m,e),{config:f,graph:m}}async function Mo(e,n){let r=new Map,o=[];for(let s of e.layers)for(let[a,p]of Object.entries(s.resources)){if(!c.existsSync(p))continue;let g=new Bun.Glob(a==="composables"?"**/*.ts":"**/*.stx");for(let f of[...g.scanSync({cwd:p})].sort()){let m=`${a}/${f}`,t=i.join(p,f),l=r.get(m);if(l)o.push({resource:m,winner:l,shadowed:t});else r.set(m,t)}}Object.assign(e,{overrides:o}),await Bun.write(i.join(n,".stx/layers.json"),JSON.stringify(e,null,2))}function A(e){let n=new Set(e.configDependencies);function r(o){if(!c.existsSync(o))return;n.add(o);for(let s of c.readdirSync(o,{withFileTypes:!0}).sort((a,p)=>a.name.localeCompare(p.name))){if(s.name.startsWith(".")||s.name==="node_modules")continue;let a=i.join(o,s.name);if(s.isDirectory())r(a);else if(s.isFile())n.add(a)}}for(let o of e.layers)for(let s of Object.values(o.resources))r(s);return[...n].sort()}function ls(e){return O(A(e))}function us(e){return O(e.configDependencies)}function O(e){return e.map((n)=>{try{let r=c.statSync(n);return`${n}:${r.mtimeMs}:${r.size}`}catch{return`${n}:missing`}}).join(`
4
+ `)}function oc(e){return e.layers.map((n)=>({config:i.relative(n.root,n.configFile),files:A({layers:[n],configDependencies:e.configDependencies.filter((r)=>r.startsWith(`${n.root}${i.sep}`))}).filter((r)=>c.statSync(r).isFile()).map((r)=>({path:i.relative(n.root,r).replaceAll(i.sep,"/"),sha256:k("sha256").update(c.readFileSync(r)).digest("hex")}))}))}
5
+ export{rc,sc,Mo,ls,us,oc};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- function T(s){let o=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;s=s.replace(o,(e,t)=>`const { ${t.split(",").map((r)=>r.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
2
+ function A(s){let o=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;s=s.replace(o,(e,t)=>`const { ${t.split(",").map((r)=>r.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
3
3
  `);let n=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return s=s.replace(n,(e,t)=>`const { ${t.split(",").map((r)=>r.trim()).filter(Boolean).join(", ")} } = window.__composables
4
- `),s}function Sn(s){return s.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
5
- export{T,Sn};
4
+ `),s}function kn(s){return s.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
5
+ export{A,kn};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ro,Im,Om}from"./chunk-vqratjvb.js";import"./chunk-sz0e6tpq.js";import"./chunk-7kaadsd1.js";import"./chunk-1xjv71dw.js";import"./chunk-s1vj8gtz.js";import"./chunk-f6ybdjt0.js";import"./chunk-8v2vbc4y.js";import"./chunk-90kfvtf6.js";import"./chunk-hmkg3xy0.js";import"./chunk-stvw8y3c.js";import"./chunk-zjw6j2x0.js";import"./chunk-3t3p2c1t.js";import"./chunk-0myrwz84.js";import"./chunk-0jtrdgyv.js";import"./chunk-qcw1neka.js";import"./chunk-wp6q0geg.js";import"./chunk-xyyt8v1r.js";import"./chunk-zn3c0ew5.js";import"./chunk-wt18wv6x.js";export{Om as clearComposableCache,Im as getComposableScript,ro as listComposableModules};