@stacksjs/stx 0.2.795 → 0.2.799

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 (228) hide show
  1. package/dist/{chunk-7y73txmp.js → chunk-00w4ccrz.js} +2 -2
  2. package/dist/{chunk-wa7fzgw7.js → chunk-0y7h27ga.js} +4 -4
  3. package/dist/{chunk-g4n0bjfb.js → chunk-116ajzvm.js} +46 -46
  4. package/dist/chunk-16htz6k0.js +18 -0
  5. package/dist/chunk-1ayk62gk.js +2 -0
  6. package/dist/chunk-1rwfgmmk.js +2 -0
  7. package/dist/chunk-24aq9yrk.js +2 -0
  8. package/dist/chunk-2by8tphv.js +2 -0
  9. package/dist/chunk-2ehn5r6d.js +2 -0
  10. package/dist/chunk-2r3e3m9m.js +2 -0
  11. package/dist/{chunk-y2jqx5k4.js → chunk-2xa05bav.js} +1 -1
  12. package/dist/{chunk-azqf0ps0.js → chunk-2yb1rwmy.js} +2 -2
  13. package/dist/{chunk-baj6w8ja.js → chunk-33vr7x2t.js} +3 -3
  14. package/dist/chunk-3dgkdmj0.js +2 -0
  15. package/dist/chunk-3qqjhb4e.js +2 -0
  16. package/dist/chunk-4p42q0wa.js +2 -0
  17. package/dist/{chunk-7y29q1ng.js → chunk-4rny8rf5.js} +2 -2
  18. package/dist/{chunk-p3ej3954.js → chunk-549end3k.js} +2 -2
  19. package/dist/chunk-5fzvcr9v.js +2 -0
  20. package/dist/{chunk-zmr0pvcd.js → chunk-5pzcd5jh.js} +59 -59
  21. package/dist/{chunk-wzwfbehm.js → chunk-600xzcs0.js} +12 -12
  22. package/dist/chunk-6fq522rd.js +2 -0
  23. package/dist/chunk-6gt07bzy.js +2 -0
  24. package/dist/chunk-6hrfmvkn.js +2 -0
  25. package/dist/{chunk-axjfaere.js → chunk-6n5cbyes.js} +127 -40
  26. package/dist/chunk-77v7g18n.js +2 -0
  27. package/dist/chunk-7m4eesp0.js +2 -0
  28. package/dist/{chunk-2bvaakcv.js → chunk-7svwyjxb.js} +7 -7
  29. package/dist/{chunk-6s9bk98p.js → chunk-7yb82rm6.js} +2 -2
  30. package/dist/{chunk-d50vw81s.js → chunk-83myk906.js} +4 -4
  31. package/dist/chunk-87p1av24.js +2 -0
  32. package/dist/chunk-8adf5x29.js +2 -0
  33. package/dist/{chunk-nyer6v3y.js → chunk-8c81cgyb.js} +5 -5
  34. package/dist/{chunk-yjnaqahd.js → chunk-8ey61ppd.js} +5 -5
  35. package/dist/chunk-8m0khhe5.js +2 -0
  36. package/dist/{chunk-hp10khyy.js → chunk-8tb3cmhv.js} +49 -49
  37. package/dist/chunk-9736003n.js +2 -0
  38. package/dist/{chunk-x8ghjw9b.js → chunk-99aqp5ss.js} +3 -3
  39. package/dist/chunk-9d2cgsn2.js +2 -0
  40. package/dist/{chunk-bzhzp4f4.js → chunk-9gwhs0gk.js} +2 -2
  41. package/dist/{chunk-aksrh8je.js → chunk-9hn0zpxj.js} +3 -3
  42. package/dist/{chunk-jmbh26gv.js → chunk-9kadf7pv.js} +1 -1
  43. package/dist/{chunk-pnddmgjf.js → chunk-9y6vdjy5.js} +7 -7
  44. package/dist/chunk-a3vbwkjh.js +2 -0
  45. package/dist/{chunk-qnxctfdf.js → chunk-akcyaxwv.js} +2 -2
  46. package/dist/{chunk-ectx5ar9.js → chunk-b0ct7x3p.js} +3 -3
  47. package/dist/{chunk-m081078c.js → chunk-b3xmheq9.js} +3 -3
  48. package/dist/{chunk-3vpgr6nk.js → chunk-b9d70mgr.js} +3 -3
  49. package/dist/{chunk-bwf8b4e4.js → chunk-bbt09ebh.js} +3 -3
  50. package/dist/{chunk-r3a15pax.js → chunk-bfm5cedw.js} +1 -1
  51. package/dist/chunk-bj6ax0he.js +2 -0
  52. package/dist/{chunk-7k6hd10j.js → chunk-bphwhfbd.js} +5 -5
  53. package/dist/{chunk-1hq3y7ss.js → chunk-brhas9mp.js} +2 -2
  54. package/dist/{chunk-mcj5qtpp.js → chunk-bs8xype1.js} +3 -3
  55. package/dist/{chunk-rdymnn2t.js → chunk-c1bsagbe.js} +6 -6
  56. package/dist/{chunk-12jjf2me.js → chunk-c84pxd2k.js} +2 -2
  57. package/dist/chunk-cas0vn5m.js +2 -0
  58. package/dist/chunk-cbx7qght.js +2 -0
  59. package/dist/{chunk-ayd635jf.js → chunk-cccf42yy.js} +5 -5
  60. package/dist/{chunk-zv3zpmv1.js → chunk-cezw6q40.js} +1 -1
  61. package/dist/{chunk-3f8w1x6w.js → chunk-cm0f5aj3.js} +7 -7
  62. package/dist/chunk-cxpnkgvw.js +2 -0
  63. package/dist/chunk-d1c1qggs.js +2 -0
  64. package/dist/{chunk-3em44jbm.js → chunk-d8rcba53.js} +2 -2
  65. package/dist/chunk-dd1vqndp.js +2 -0
  66. package/dist/{chunk-cfbpvm5e.js → chunk-ddhkhhc7.js} +2 -2
  67. package/dist/{chunk-tmfrq4nq.js → chunk-dq87xd5c.js} +40 -40
  68. package/dist/chunk-dwydz68f.js +2 -0
  69. package/dist/{chunk-ennzzth4.js → chunk-e32pjcyd.js} +17 -17
  70. package/dist/chunk-enpx5t99.js +2 -0
  71. package/dist/chunk-eszpqrxy.js +2 -0
  72. package/dist/{chunk-h656zg6k.js → chunk-fn3q1gtr.js} +3 -3
  73. package/dist/{chunk-hwcfgs3e.js → chunk-gjf8cjdt.js} +3 -3
  74. package/dist/{chunk-4s0ye933.js → chunk-gqjb1y7c.js} +2 -2
  75. package/dist/chunk-gv0bp9ve.js +2 -0
  76. package/dist/{chunk-8zf87cc5.js → chunk-gvnfb6s2.js} +2 -2
  77. package/dist/{chunk-fcqxa38q.js → chunk-gzfvj15b.js} +1 -1
  78. package/dist/{chunk-90zswh9v.js → chunk-hcwjdpzv.js} +5 -5
  79. package/dist/chunk-hdsccfga.js +2 -0
  80. package/dist/{chunk-r1vkk7qp.js → chunk-hp9e8nz6.js} +2 -2
  81. package/dist/{chunk-7s1kerhs.js → chunk-hrrrf46j.js} +2 -2
  82. package/dist/{chunk-dstzvtvk.js → chunk-j0bbr6ee.js} +3 -3
  83. package/dist/{chunk-6wpwpk3c.js → chunk-j2v9f2dk.js} +4 -4
  84. package/dist/{chunk-4p5g7v9g.js → chunk-j3st59hv.js} +2 -2
  85. package/dist/chunk-jn6g5n02.js +2 -0
  86. package/dist/chunk-js4t4825.js +2 -0
  87. package/dist/{chunk-pm8a4kdf.js → chunk-jzxh4y5j.js} +5 -5
  88. package/dist/chunk-kgn911k7.js +2 -0
  89. package/dist/{chunk-8t8e75xm.js → chunk-krjd21ws.js} +4 -4
  90. package/dist/{chunk-thpwk6ya.js → chunk-kvz01wzc.js} +2 -2
  91. package/dist/{chunk-9b9tvhmh.js → chunk-kyb43mnq.js} +5 -5
  92. package/dist/{chunk-f4j7nsj1.js → chunk-kydgndkt.js} +1 -1
  93. package/dist/chunk-mshnt7y9.js +3 -0
  94. package/dist/chunk-mt95md1e.js +2 -0
  95. package/dist/chunk-nbb9btn0.js +2 -0
  96. package/dist/chunk-nm20k22y.js +2 -0
  97. package/dist/chunk-nq4d91zm.js +2 -0
  98. package/dist/{chunk-y64f5t74.js → chunk-nxdgvtgc.js} +5 -5
  99. package/dist/chunk-p5efqqtk.js +2 -0
  100. package/dist/chunk-pjs4q88m.js +2 -0
  101. package/dist/chunk-pm8d60n0.js +2 -0
  102. package/dist/chunk-ps9fcjyg.js +2 -0
  103. package/dist/chunk-q38vjqv2.js +2 -0
  104. package/dist/{chunk-ata5wp2m.js → chunk-q3dsjk2b.js} +6 -6
  105. package/dist/chunk-q78jxqnr.js +2 -0
  106. package/dist/chunk-q8xw7yye.js +2 -0
  107. package/dist/chunk-qkck7zx0.js +2 -0
  108. package/dist/{chunk-hnbx1t3t.js → chunk-qkfdp97k.js} +2 -2
  109. package/dist/{chunk-53v4cby3.js → chunk-qpvwxppw.js} +4 -4
  110. package/dist/{chunk-427mhgje.js → chunk-qxt6hdat.js} +1 -1
  111. package/dist/{chunk-1q16p7t2.js → chunk-r32pqvpq.js} +5 -5
  112. package/dist/{chunk-2e5tvryz.js → chunk-r50b54a8.js} +2 -2
  113. package/dist/chunk-rd3pek52.js +2 -0
  114. package/dist/chunk-rxc1076r.js +2 -0
  115. package/dist/{chunk-cepctq7e.js → chunk-s2vnydq0.js} +81 -81
  116. package/dist/{chunk-dxe94pwy.js → chunk-s90m43sm.js} +4 -4
  117. package/dist/{chunk-vkn133cs.js → chunk-s9b6abkb.js} +2 -2
  118. package/dist/{chunk-88acqv2r.js → chunk-sbe6xr6h.js} +4 -4
  119. package/dist/{chunk-624xpap6.js → chunk-se44tmvx.js} +17 -17
  120. package/dist/{chunk-w76cve9j.js → chunk-sprgkk9j.js} +31 -31
  121. package/dist/{chunk-ka8sk5qa.js → chunk-sxee2rxz.js} +1 -1
  122. package/dist/{chunk-2xprqx2v.js → chunk-t4gmj0nd.js} +6 -6
  123. package/dist/{chunk-vpzdqbw7.js → chunk-t5vjt37c.js} +6 -6
  124. package/dist/{chunk-b58n1kfe.js → chunk-t65tn8ee.js} +2 -2
  125. package/dist/{chunk-tqvw1673.js → chunk-tb4wmzzd.js} +5 -5
  126. package/dist/chunk-tjn7htz7.js +2 -0
  127. package/dist/chunk-tkb335d7.js +2 -0
  128. package/dist/chunk-tx75gjzg.js +2 -0
  129. package/dist/{chunk-538d185r.js → chunk-v1xtm49w.js} +2 -2
  130. package/dist/{chunk-c5vzr1va.js → chunk-w0zayhmg.js} +2 -2
  131. package/dist/chunk-w4jymx0v.js +2 -0
  132. package/dist/{chunk-njk5db1q.js → chunk-w5dw3c8m.js} +4 -4
  133. package/dist/chunk-w5sbp9ry.js +2 -0
  134. package/dist/{chunk-reb7rddz.js → chunk-w9hpdka1.js} +1 -1
  135. package/dist/chunk-whq40bdm.js +2 -0
  136. package/dist/chunk-wkrep5sj.js +2 -0
  137. package/dist/{chunk-xqjat573.js → chunk-x82zksaj.js} +2 -2
  138. package/dist/chunk-xgqyzkt2.js +2 -0
  139. package/dist/{chunk-w6e30qkz.js → chunk-xkrcte91.js} +37 -37
  140. package/dist/{chunk-zva4a7xq.js → chunk-xystfx25.js} +2 -2
  141. package/dist/{chunk-7xs45trj.js → chunk-y9bj3566.js} +2 -2
  142. package/dist/chunk-ys46rqxg.js +2 -0
  143. package/dist/chunk-z5650kd0.js +2 -0
  144. package/dist/{chunk-sphc7xzx.js → chunk-znx5m1jv.js} +1 -1
  145. package/dist/chunk-zvfw1h3f.js +2 -0
  146. package/dist/cli.js +18 -18
  147. package/dist/client/signals-authoring-runtime.js +4 -1
  148. package/dist/client/signals-handler-runtime.js +25 -4
  149. package/dist/client/signals-helpers-runtime.js +12 -0
  150. package/dist/client/signals-native-row-runtime.js +58 -23
  151. package/dist/client/signals-pipe-runtime.js +16 -0
  152. package/dist/craft-entry.js +2 -2
  153. package/dist/craft.js +2 -2
  154. package/dist/dev-server/serve-css-assets.d.ts +5 -0
  155. package/dist/dev-server/serve-css-assets.js +60 -0
  156. package/dist/dev-server/ts-css.d.ts +1 -1
  157. package/dist/dev-server/ts-css.js +5 -20
  158. package/dist/info-plist.d.ts +4 -0
  159. package/dist/info-plist.js +42 -0
  160. package/dist/native/compiler/inline-style.js +91 -39
  161. package/dist/native/runtime/native-host.js +138 -17
  162. package/dist/native-build.d.ts +3 -1
  163. package/dist/native-build.js +3 -41
  164. package/dist/pwa.js +3 -3
  165. package/dist/ssg.js +19 -19
  166. package/package.json +6 -6
  167. package/dist/chunk-027hdpgv.js +0 -2
  168. package/dist/chunk-054h7ktz.js +0 -2
  169. package/dist/chunk-09nyt9c5.js +0 -2
  170. package/dist/chunk-0d3ncyqh.js +0 -2
  171. package/dist/chunk-1yew6rw9.js +0 -2
  172. package/dist/chunk-211kxm18.js +0 -2
  173. package/dist/chunk-26y92p8r.js +0 -2
  174. package/dist/chunk-3ep9h16p.js +0 -2
  175. package/dist/chunk-49tn6yst.js +0 -2
  176. package/dist/chunk-4b7dwwn6.js +0 -2
  177. package/dist/chunk-4ncbq4bx.js +0 -2
  178. package/dist/chunk-4srnxp3b.js +0 -2
  179. package/dist/chunk-6z4bza9z.js +0 -2
  180. package/dist/chunk-75y9heas.js +0 -2
  181. package/dist/chunk-7ckdvsmj.js +0 -3
  182. package/dist/chunk-8w1wxr96.js +0 -2
  183. package/dist/chunk-98kjk52z.js +0 -2
  184. package/dist/chunk-9jcqbgq9.js +0 -18
  185. package/dist/chunk-9sea317f.js +0 -2
  186. package/dist/chunk-9tpv4cg7.js +0 -2
  187. package/dist/chunk-9wmjmas8.js +0 -2
  188. package/dist/chunk-ak10vygz.js +0 -2
  189. package/dist/chunk-axq3c7cb.js +0 -2
  190. package/dist/chunk-c5trhqpg.js +0 -2
  191. package/dist/chunk-c692kj5v.js +0 -2
  192. package/dist/chunk-cfr7cd88.js +0 -2
  193. package/dist/chunk-dsh5q9bg.js +0 -2
  194. package/dist/chunk-emnphnz7.js +0 -2
  195. package/dist/chunk-epcdgn78.js +0 -2
  196. package/dist/chunk-etegf4zj.js +0 -2
  197. package/dist/chunk-ewzdsksb.js +0 -2
  198. package/dist/chunk-ey8bgg6x.js +0 -2
  199. package/dist/chunk-f03sg8b0.js +0 -2
  200. package/dist/chunk-gf04pgaa.js +0 -2
  201. package/dist/chunk-ghn8vhet.js +0 -2
  202. package/dist/chunk-gywp6kd8.js +0 -2
  203. package/dist/chunk-k6sjqb7g.js +0 -2
  204. package/dist/chunk-me71d5w5.js +0 -2
  205. package/dist/chunk-nvytej81.js +0 -2
  206. package/dist/chunk-p1txw41y.js +0 -2
  207. package/dist/chunk-p8gekf4b.js +0 -2
  208. package/dist/chunk-px0qsd38.js +0 -2
  209. package/dist/chunk-qr23snrp.js +0 -2
  210. package/dist/chunk-s151a2dj.js +0 -2
  211. package/dist/chunk-sqettc34.js +0 -2
  212. package/dist/chunk-srgbv05n.js +0 -2
  213. package/dist/chunk-t0d4rsfx.js +0 -2
  214. package/dist/chunk-t0k0yk24.js +0 -2
  215. package/dist/chunk-tdcgskyy.js +0 -2
  216. package/dist/chunk-te3hr6d7.js +0 -2
  217. package/dist/chunk-tes8fdv6.js +0 -2
  218. package/dist/chunk-v6j5vkce.js +0 -2
  219. package/dist/chunk-vmp876q6.js +0 -2
  220. package/dist/chunk-vwp5fchy.js +0 -2
  221. package/dist/chunk-wes5fdpe.js +0 -2
  222. package/dist/chunk-wfnfb4fr.js +0 -2
  223. package/dist/chunk-wfrqwtar.js +0 -2
  224. package/dist/chunk-xbhb8102.js +0 -2
  225. package/dist/chunk-xv4paxmt.js +0 -2
  226. package/dist/chunk-yeaqebnd.js +0 -2
  227. package/dist/chunk-yj20tq3s.js +0 -2
  228. package/dist/chunk-yjm7c78z.js +0 -2
@@ -1,20 +1,20 @@
1
1
  // @bun
2
- import{k}from"./chunk-b58n1kfe.js";import{xe,It,ai,Ls,Pc,Ic,Oc,Nc,_r,li,Mc,Dc,ui,hn}from"./chunk-zmr0pvcd.js";import{a}from"./chunk-g4n0bjfb.js";import{bo}from"./chunk-ectx5ar9.js";import{l}from"./chunk-1hq3y7ss.js";import{existsSync as B,readFileSync as K}from"fs";import h from"path";var ge=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ee=hn.filter((e)=>!ge.has(e)).sort(),te=[...k].sort(),he=[...new Set([...ee,...te])].sort(),be=new Set(ee),ye=new Set(te),Se=new Set(he),Y=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function ke(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ne(e,t){let s=[];for(let d of t){if(d.offset===void 0)continue;let i=d.kind==="server"?be:ye;Y.lastIndex=0;for(let c of d.code.matchAll(Y)){let g=c.index+c[0].indexOf("{")+1;for(let u of c[1].matchAll(/[^,]+/g)){let y=u[0];if(/^\s*type\s/.test(y))continue;let b=/^\s*([A-Za-z_$][\w$]*)/.exec(y);if(!b)continue;let r=b[1];if(!Se.has(r)||i.has(r))continue;let p=d.offset+g+u.index+b[0].length-r.length,f=e.slice(0,p),T=f.split(`
2
+ import{k}from"./chunk-t65tn8ee.js";import{xe,It,ci,js,Ic,Oc,Nc,Mc,_r,ui,Dc,Lc,di,hn}from"./chunk-5pzcd5jh.js";import{a}from"./chunk-116ajzvm.js";import{wo}from"./chunk-b0ct7x3p.js";import{c}from"./chunk-brhas9mp.js";import{existsSync as B,readFileSync as K}from"fs";import h from"path";var ge=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ee=hn.filter((e)=>!ge.has(e)).sort(),te=[...k].sort(),he=[...new Set([...ee,...te])].sort(),be=new Set(ee),ye=new Set(te),Se=new Set(he),Y=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function ke(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ne(e,t){let s=[];for(let d of t){if(d.offset===void 0)continue;let i=d.kind==="server"?be:ye;Y.lastIndex=0;for(let l of d.code.matchAll(Y)){let g=l.index+l[0].indexOf("{")+1;for(let u of l[1].matchAll(/[^,]+/g)){let y=u[0];if(/^\s*type\s/.test(y))continue;let b=/^\s*([A-Za-z_$][\w$]*)/.exec(y);if(!b)continue;let r=b[1];if(!Se.has(r)||i.has(r))continue;let p=d.offset+g+u.index+b[0].length-r.length,f=e.slice(0,p),T=f.split(`
3
3
  `).length;s.push({line:T,column:p-(f.lastIndexOf(`
4
- `)+1)+1,offset:p,length:r.length,name:r,kind:d.kind,message:ke(r,d.kind)})}}}return s}import E from"path";var we="@stacksjs/stx-typescript-plugin";function $e(e,t){let s=E.resolve(e);for(;;){let d=E.join(s,"tsconfig.json");if(t(d))return d;let i=E.dirname(s);if(i===s)return;s=i}}function ie(e,t,s){let d=$e(e,s);if(!d)return;let i=new Set,c=(g)=>{if(i.has(g))return;i.add(g);let u=t(g);if(!u)return;let y=u.compilerOptions?.plugins;if(Array.isArray(y)){let r=y.find((f)=>f?.name===we),p=Array.isArray(r?.libs)?r.libs.filter((f)=>typeof f==="string"):[];return r?{configPath:g,libs:p.map((f)=>E.resolve(E.dirname(g),f))}:null}let b=typeof u.extends==="string"?[u.extends]:Array.isArray(u.extends)?u.extends:[];for(let r of[...b].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let p=E.resolve(E.dirname(g),r.endsWith(".json")?r:`${r}.json`),f=c(p);if(f!==void 0)return f}return};return c(d)??void 0}function oa(e,t="",s=""){let d=e.startLine>1?`
5
- `.repeat(e.startLine-1):"",i=ai(li(e)+e.code,t),c=Ls(i.code),g=e.kind==="client"||e.kind==="plain"?Oc(t,e.code):"",u=(d+c).split(`
4
+ `)+1)+1,offset:p,length:r.length,name:r,kind:d.kind,message:ke(r,d.kind)})}}}return s}import E from"path";var we="@stacksjs/stx-typescript-plugin";function $e(e,t){let s=E.resolve(e);for(;;){let d=E.join(s,"tsconfig.json");if(t(d))return d;let i=E.dirname(s);if(i===s)return;s=i}}function ie(e,t,s){let d=$e(e,s);if(!d)return;let i=new Set,l=(g)=>{if(i.has(g))return;i.add(g);let u=t(g);if(!u)return;let y=u.compilerOptions?.plugins;if(Array.isArray(y)){let r=y.find((f)=>f?.name===we),p=Array.isArray(r?.libs)?r.libs.filter((f)=>typeof f==="string"):[];return r?{configPath:g,libs:p.map((f)=>E.resolve(E.dirname(g),f))}:null}let b=typeof u.extends==="string"?[u.extends]:Array.isArray(u.extends)?u.extends:[];for(let r of[...b].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let p=E.resolve(E.dirname(g),r.endsWith(".json")?r:`${r}.json`),f=l(p);if(f!==void 0)return f}return};return l(d)??void 0}function ia(e,t="",s=""){let d=e.startLine>1?`
5
+ `.repeat(e.startLine-1):"",i=ci(ui(e)+e.code,t),l=js(i.code),g=e.kind==="client"||e.kind==="plain"?Nc(t,e.code):"",u=(d+l).split(`
6
6
  `),y=u.length,b=new Map;for(let r of i.declarations)for(let[p,f]of r.text.split(`
7
7
  `).entries())if(u.push(f),r.origin)b.set(u.length,{...r.origin,line:e.startLine+r.origin.line-1+p,column:p===0?r.origin.column:1});return u.push(g,"export {}",""),{text:_r(u.join(`
8
- `),s),sourceLineCount:y,lineMap:b,scriptColumns:new Map([...i.columns].map(([r,p])=>[r+e.startLine-1,p]))}}function Gg(e,t="",s=""){return oa(e,t,s).text}var ve=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function Te(e){if(e.length===0)return"";let t=["// Generated \u2014 the composables the runtime publishes as bare globals."],s=new Set(k),d=[];for(let{file:i,names:c}of e){let g=JSON.stringify(i.replace(/\\/g,"/").replace(/\.ts$/,""));d.push(` export * from ${g}`);for(let u of c){if(s.has(u)||ve.has(u))continue;s.add(u),t.push(`declare const ${u}: typeof import(${g})[${JSON.stringify(u)}]`)}}return t.push("declare module '@composables' {",...d,"}"),t.join(`
9
- `)}function ia(e,t,s){return`${e}.__stx_${t}${s}.ts`}function Jg(e){return e.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function Dl(){return se("stx.d.ts")}function Ll(){return se("stx-module.d.ts")}function se(e){for(let t of[h.resolve(import.meta.dir,"..",e),h.resolve(import.meta.dir,"..","..",e)])if(B(t))return t;return null}var De=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function re(e){return e>=1000&&e<2000}function oe(e){let t="",s=!1,d=!1;for(let i=0;i<e.length;i++){let c=e[i];if(s){if(t+=c,d)d=!1;else if(c==="\\")d=!0;else if(c==='"')s=!1;continue}if(c==='"'){s=!0,t+=c;continue}if(c==="/"&&e[i+1]==="/"){while(i<e.length&&e[i]!==`
8
+ `),s),sourceLineCount:y,lineMap:b,scriptColumns:new Map([...i.columns].map(([r,p])=>[r+e.startLine-1,p]))}}function Yg(e,t="",s=""){return ia(e,t,s).text}var ve=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function Te(e){if(e.length===0)return"";let t=["// Generated \u2014 the composables the runtime publishes as bare globals."],s=new Set(k),d=[];for(let{file:i,names:l}of e){let g=JSON.stringify(i.replace(/\\/g,"/").replace(/\.ts$/,""));d.push(` export * from ${g}`);for(let u of l){if(s.has(u)||ve.has(u))continue;s.add(u),t.push(`declare const ${u}: typeof import(${g})[${JSON.stringify(u)}]`)}}return t.push("declare module '@composables' {",...d,"}"),t.join(`
9
+ `)}function aa(e,t,s){return`${e}.__stx_${t}${s}.ts`}function Zg(e){return e.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function Ll(){return se("stx.d.ts")}function jl(){return se("stx-module.d.ts")}function se(e){for(let t of[h.resolve(import.meta.dir,"..",e),h.resolve(import.meta.dir,"..","..",e)])if(B(t))return t;return null}var De=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function re(e){return e>=1000&&e<2000}function oe(e){let t="",s=!1,d=!1;for(let i=0;i<e.length;i++){let l=e[i];if(s){if(t+=l,d)d=!1;else if(l==="\\")d=!0;else if(l==='"')s=!1;continue}if(l==='"'){s=!0,t+=l;continue}if(l==="/"&&e[i+1]==="/"){while(i<e.length&&e[i]!==`
10
10
  `)i++;t+=`
11
- `;continue}if(c==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=c}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Ne(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(B(r)){s=r;break}let p=h.dirname(t);if(p===t)break;t=p}if(!s)return{};let d=new Set,i=s,c,g,u=s;while(i&&!d.has(i)){d.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let p=r?.compilerOptions??{};if(!c&&p.paths&&typeof p.paths==="object")c=p.paths,u=i;if(!g&&typeof p.baseUrl==="string")g=h.resolve(h.dirname(i),p.baseUrl);if(c&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!c)return{};let y=g??h.dirname(u),b={};for(let[r,p]of Object.entries(c)){if(!Array.isArray(p))continue;b[r]=p.map((f)=>typeof f==="string"&&!h.isAbsolute(f)?h.resolve(y,f):f)}return{paths:b}}async function Yg(e,t={}){let s=t.client!==!1,d=t.server!==!1,i=t.templates!==!1,c=t.componentsDir??(i?(await a()).componentsDir:void 0),g=new Map,u=new Map,y=[],b=[],r=0,p=0,f=Dl();for(let n of e){let o=await Bun.file(n).text(),x=It(o).filter((m)=>{if(m.kind==="server")return d;return s}),S=It(o).filter((m)=>m.kind==="server").map((m)=>m.code).join(`
12
- `);for(let m of ne(o,x))y.push({file:n,line:m.line,column:m.column,code:0,message:m.message,category:"error",blockKind:m.kind});if(s&&S){let m=x.filter((w)=>w.kind!=="server"),O=[...new Set(m.flatMap((w)=>Nc(S,w.code)))];if(O.length>0)u.set(n,{names:O,line:m[0].startLine,kind:m[0].kind})}let N=h.dirname(h.resolve(n)),D=i?Mc(o,{runtimeGlobals:!f,originDir:N,filePath:h.resolve(n),componentsDir:c}):null,R=D?[...D.lineMap.values()].filter((m)=>m.expression).length:0;if(x.length===0&&R===0)continue;if(b.push(n),r+=x.length,p+=R,x.forEach((m,O)=>{let w=oa(m,S,N);g.set(ia(n,m.kind,O),{virtual:w,source:w.text,origin:n,kind:m.kind})}),D&&R>0)g.set(ia(n,"template",0),{source:D.text,origin:n,kind:"template",virtual:D})}if(g.size===0)return{diagnostics:y,checkedFiles:b,blockCount:0,expressionCount:0};let T=(t.extraLibs??[]).map((n)=>h.resolve(n)),ce=ie(e.length>0?h.dirname(h.resolve(e[0])):process.cwd(),Ee,B);for(let n of ce?.libs??[])if(!T.includes(n)&&B(n))T.push(n);if(f)T.push(f);let F=f?Ll():null;if(F)T.push(F);let G=`${l()}/typecheck/__stx_globals.d.ts`,ae=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",Pc(f?Ic(K(f,"utf8")):void 0),...f?[]:["declare const window: any",...k.map((n)=>`declare const ${n}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...xe.map((n)=>`declare const ${n}: any`)].join(`
13
- `),Te(await bo())].filter(Boolean).join(`
14
- `),C=`${l()}/typecheck`;await Bun.$`rm -rf ${C}`.quiet().nothrow(),await Bun.$`mkdir -p ${C}`.quiet().nothrow(),await Bun.write(G,ae);let M=new Map,le=0;for(let[n,o]of g){let x=`${le++}_${n.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${C}/${x}`,o.source),M.set(x,o)}let ue={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...Ne(e.length>0?h.dirname(h.resolve(e[0])):process.cwd()),...t.compilerOptions??{}},V=async(n,o)=>{let x=`${C}/tsconfig${o===1?"":`.${o}`}.json`;await Bun.write(x,JSON.stringify({compilerOptions:ue,files:n.map((N)=>`${C}/${N}`).concat(G,...T)},null,2));let S=Bun.spawnSync(["bun","x","tsc","-p",x,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(S.stdout)+new TextDecoder().decode(S.stderr),exitCode:S.exitCode??0}},X=await V([...M.keys()],1),J=X.output,P=[],U=X.exitCode,W=0,pe=new Set(T.map((n)=>n.split("/").pop())),z=0,j=new Set,q=(n)=>{for(let o of n.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
15
- `)){let x=o.match(De);if(!x)continue;if(W++,pe.has(x[1].split("/").pop()))z++;let[,S,N,D,R,m,O]=x,w=S.split("/").pop(),v=M.get(w);if(!v)continue;if(re(Number(m)))j.add(w);let L=Number(N),A=Number(D),Q;if(v.virtual){let _=ui(v.virtual,L,A)??(v.kind!=="template"&&re(Number(m))?ui(v.virtual,v.virtual.sourceLineCount,1):null);if(!_||v.kind==="template"&&!_.expression)continue;if(Dc(_,Number(m)))continue;L=_.line,A=_.column,Q=_.expression?.code.trim()}P.push({file:v.origin,line:L,column:A,code:Number(m),message:O,category:R==="error"?"error":"warning",blockKind:v.kind,expression:Q})}};q(J);let de=W,fe=z;if(j.size>0&&j.size<M.size){let n=[...M.keys()].filter((o)=>!j.has(o));q((await V(n,2)).output)}if(s)for(let[n,o]of u){if(o.names.length===0)continue;P.push({file:n,line:o.line,column:1,code:0,message:`${o.names.length===1?"1 value reaches":`${o.names.length} values reach`} this block on the implicit bridge and ${o.names.length===1?"is":"are"} untyped: ${o.names.join(", ")}. Declare them with defineClientPayload({ ${o.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:o.kind})}P.push(...y);let H=new Set,I=P.filter((n)=>{let o=`${n.file}:${n.line}:${n.column}:${n.code}:${n.message}`;if(H.has(o))return!1;return H.add(o),!0});I.sort((n,o)=>n.file.localeCompare(o.file)||n.line-o.line||n.column-o.column);let Z=fe>0&&I.length===0,me=Z||U!==0&&de===0?`${Z?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${U} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
11
+ `;continue}if(l==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=l}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Ne(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(B(r)){s=r;break}let p=h.dirname(t);if(p===t)break;t=p}if(!s)return{};let d=new Set,i=s,l,g,u=s;while(i&&!d.has(i)){d.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let p=r?.compilerOptions??{};if(!l&&p.paths&&typeof p.paths==="object")l=p.paths,u=i;if(!g&&typeof p.baseUrl==="string")g=h.resolve(h.dirname(i),p.baseUrl);if(l&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!l)return{};let y=g??h.dirname(u),b={};for(let[r,p]of Object.entries(l)){if(!Array.isArray(p))continue;b[r]=p.map((f)=>typeof f==="string"&&!h.isAbsolute(f)?h.resolve(y,f):f)}return{paths:b}}async function Qg(e,t={}){let s=t.client!==!1,d=t.server!==!1,i=t.templates!==!1,l=t.componentsDir??(i?(await a()).componentsDir:void 0),g=new Map,u=new Map,y=[],b=[],r=0,p=0,f=Ll();for(let n of e){let o=await Bun.file(n).text(),x=It(o).filter((m)=>{if(m.kind==="server")return d;return s}),S=It(o).filter((m)=>m.kind==="server").map((m)=>m.code).join(`
12
+ `);for(let m of ne(o,x))y.push({file:n,line:m.line,column:m.column,code:0,message:m.message,category:"error",blockKind:m.kind});if(s&&S){let m=x.filter((w)=>w.kind!=="server"),O=[...new Set(m.flatMap((w)=>Mc(S,w.code)))];if(O.length>0)u.set(n,{names:O,line:m[0].startLine,kind:m[0].kind})}let N=h.dirname(h.resolve(n)),D=i?Dc(o,{runtimeGlobals:!f,originDir:N,filePath:h.resolve(n),componentsDir:l}):null,R=D?[...D.lineMap.values()].filter((m)=>m.expression).length:0;if(x.length===0&&R===0)continue;if(b.push(n),r+=x.length,p+=R,x.forEach((m,O)=>{let w=ia(m,S,N);g.set(aa(n,m.kind,O),{virtual:w,source:w.text,origin:n,kind:m.kind})}),D&&R>0)g.set(aa(n,"template",0),{source:D.text,origin:n,kind:"template",virtual:D})}if(g.size===0)return{diagnostics:y,checkedFiles:b,blockCount:0,expressionCount:0};let T=(t.extraLibs??[]).map((n)=>h.resolve(n)),ce=ie(e.length>0?h.dirname(h.resolve(e[0])):process.cwd(),Ee,B);for(let n of ce?.libs??[])if(!T.includes(n)&&B(n))T.push(n);if(f)T.push(f);let F=f?jl():null;if(F)T.push(F);let G=`${c()}/typecheck/__stx_globals.d.ts`,ae=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",Ic(f?Oc(K(f,"utf8")):void 0),...f?[]:["declare const window: any",...k.map((n)=>`declare const ${n}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...xe.map((n)=>`declare const ${n}: any`)].join(`
13
+ `),Te(await wo())].filter(Boolean).join(`
14
+ `),C=`${c()}/typecheck`;await Bun.$`rm -rf ${C}`.quiet().nothrow(),await Bun.$`mkdir -p ${C}`.quiet().nothrow(),await Bun.write(G,ae);let M=new Map,le=0;for(let[n,o]of g){let x=`${le++}_${n.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${C}/${x}`,o.source),M.set(x,o)}let ue={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...Ne(e.length>0?h.dirname(h.resolve(e[0])):process.cwd()),...t.compilerOptions??{}},V=async(n,o)=>{let x=`${C}/tsconfig${o===1?"":`.${o}`}.json`;await Bun.write(x,JSON.stringify({compilerOptions:ue,files:n.map((N)=>`${C}/${N}`).concat(G,...T)},null,2));let S=Bun.spawnSync(["bun","x","tsc","-p",x,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(S.stdout)+new TextDecoder().decode(S.stderr),exitCode:S.exitCode??0}},X=await V([...M.keys()],1),J=X.output,P=[],U=X.exitCode,W=0,pe=new Set(T.map((n)=>n.split("/").pop())),z=0,j=new Set,q=(n)=>{for(let o of n.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
15
+ `)){let x=o.match(De);if(!x)continue;if(W++,pe.has(x[1].split("/").pop()))z++;let[,S,N,D,R,m,O]=x,w=S.split("/").pop(),v=M.get(w);if(!v)continue;if(re(Number(m)))j.add(w);let L=Number(N),A=Number(D),Q;if(v.virtual){let _=di(v.virtual,L,A)??(v.kind!=="template"&&re(Number(m))?di(v.virtual,v.virtual.sourceLineCount,1):null);if(!_||v.kind==="template"&&!_.expression)continue;if(Lc(_,Number(m)))continue;L=_.line,A=_.column,Q=_.expression?.code.trim()}P.push({file:v.origin,line:L,column:A,code:Number(m),message:O,category:R==="error"?"error":"warning",blockKind:v.kind,expression:Q})}};q(J);let de=W,fe=z;if(j.size>0&&j.size<M.size){let n=[...M.keys()].filter((o)=>!j.has(o));q((await V(n,2)).output)}if(s)for(let[n,o]of u){if(o.names.length===0)continue;P.push({file:n,line:o.line,column:1,code:0,message:`${o.names.length===1?"1 value reaches":`${o.names.length} values reach`} this block on the implicit bridge and ${o.names.length===1?"is":"are"} untyped: ${o.names.join(", ")}. Declare them with defineClientPayload({ ${o.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:o.kind})}P.push(...y);let H=new Set,I=P.filter((n)=>{let o=`${n.file}:${n.line}:${n.column}:${n.code}:${n.message}`;if(H.has(o))return!1;return H.add(o),!0});I.sort((n,o)=>n.file.localeCompare(o.file)||n.line-o.line||n.column-o.column);let Z=fe>0&&I.length===0,me=Z||U!==0&&de===0?`${Z?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${U} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
16
16
  ${J.trim().split(`
17
17
  `).slice(0,12).join(`
18
- `)||"(no output)"}`:void 0;return{diagnostics:I,checkedFiles:b,blockCount:r,expressionCount:p,failure:me}}function Zg(e){return e.map((t)=>{let s=t.blockKind==="template"?`[template: ${t.expression??""}]`:`[${t.blockKind==="plain"?"<script>":`<script ${t.blockKind}>`}]`;return`${t.file}:${t.line}:${t.column} ${t.category} TS${t.code} ${t.message} ${s}`}).join(`
18
+ `)||"(no output)"}`:void 0;return{diagnostics:I,checkedFiles:b,blockCount:r,expressionCount:p,failure:me}}function em(e){return e.map((t)=>{let s=t.blockKind==="template"?`[template: ${t.expression??""}]`:`[${t.blockKind==="plain"?"<script>":`<script ${t.blockKind}>`}]`;return`${t.file}:${t.line}:${t.column} ${t.category} TS${t.code} ${t.message} ${s}`}).join(`
19
19
  `)}
20
- export{oa,Gg,ia,Jg,Dl,Ll,Yg,Zg};
20
+ export{ia,Yg,aa,Zg,Ll,jl,Qg,em};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Jl,Yl,Zl,Ql,eu,tu,nu,ru,su,ou,Am}from"./chunk-c1bsagbe.js";export{Jl as createIslandRegistry,Am as default,ou as generateIslandManifest,Zl as generatePartialHydrationCSS,tu as hydrateAll,eu as hydrateByStrategy,Ql as hydrateIsland,nu as isHydrated,ru as onHydrated,Yl as processPartialHydrationDirectives,su as processStaticDirectives};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Lf,Oh,Nh,Mh,Dh,jf,Bf,Lh,jh,Ko,Bh,lr,ur,vs}from"./chunk-v1xtm49w.js";import{nt}from"./chunk-5emrarpf.js";import"./chunk-5pzcd5jh.js";import"./chunk-qkfdp97k.js";import"./chunk-akcyaxwv.js";import"./chunk-se44tmvx.js";import"./chunk-2yxva96k.js";import"./chunk-t65tn8ee.js";export{Dh as __setSignalsGeneratorsForTest,nt as cacheEngineFingerprint,ur as cacheTemplate,lr as checkCache,Bh as clearDevCaches,Bf as getCachedRouterScript,jf as getCachedSignalsRuntime,Lh as getServeClientAsset,Ko as getServeModuleBundle,vs as hashFilePath,Nh as invalidateFileCache,Mh as invalidateFileCacheByDir,Oh as readFileCached,jh as registerServeModuleBundle,Lf as templateCache};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ve,Us,gg,Gh,mg,Jh,Dt,p,V,Z,wn,Se,hg,vi,yg,Yh,_,bg,Zh,T,Qh}from"./chunk-5pzcd5jh.js";import"./chunk-qkfdp97k.js";import"./chunk-akcyaxwv.js";import"./chunk-se44tmvx.js";import"./chunk-2yxva96k.js";import"./chunk-t65tn8ee.js";export{bg as applyFilters,Jh as clearCustomFilters,hg as clientLoopScopes,Us as defaultFilters,wn as escapeAttributeValue,p as escapeHtml,V as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,T as evaluateExpression,ve as findMustacheEnd,mg as getAllFilters,yg as interpolateScriptAttributes,vi as interpolateScriptExpressions,Yh as interpolateScriptsInTemplate,_ as processExpressions,gg as registerFilter,Gh as registerFilters,Dt as replaceInterpolations,Zh as resetRejectedExpressionWarnings,Qh as unescapeHtml,Se as usesSignalsInScript};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{gl,ml,hl}from"./chunk-b58n1kfe.js";import{le,Vn,Un,wo,Jr,Yr,Wn,qn,vo,Zr}from"./chunk-thpwk6ya.js";function z(e,o,l,r,d,y){let s=!0,u=new Set,h=(p)=>r.get?r.get(p):p,a=()=>h(e());return Object.defineProperty(a,"_isSignal",{value:!0}),Object.defineProperty(a,"modifiers",{get:o}),a.set=(p)=>{if(!s)return;let f=o(),t=r.set?r.set(p,f):p;if(f.trim&&typeof t==="string")t=t.trim();if(f.number&&typeof t==="string"&&t!==""){let i=Number(t);if(!Number.isNaN(i))t=i}if(Object.is(e(),t))return;e.set(t),l(t)},a.update=(p)=>a.set(p(a())),a.input=(p)=>{if(!o().lazy)a.set(p)},a.change=(p)=>{if(o().lazy)a.set(p)},a.subscribe=(p)=>{if(!s)return()=>{};let f=e.subscribe((t,i)=>p(h(t),h(i)));return u.add(f),()=>{f(),u.delete(f)}},Object.defineProperty(a,"value",{get:a,set:a.set}),d(()=>{s=!1,u.forEach((p)=>p()),u.clear()}),y?.(()=>{s=!0}),a}function X(e,o=!0,l){if(!o||!e||typeof window>"u")return;let r=window;if(!r.__STX_DATA__){let y=document.querySelector("script[data-stx-server-data]");try{let s=JSON.parse(y?.textContent||"{}");r.__STX_DATA__=s&&typeof s==="object"&&!Array.isArray(s)?s:{}}catch{r.__STX_DATA__={}}}let d=r.__STX_DATA__;if(d&&Object.prototype.hasOwnProperty.call(d,e))try{return{data:l?l(d[e]):d[e]}}catch(y){return{data:null,error:y instanceof Error?y:Error(String(y))}}return}function Q(e){if(typeof window>"u")return;let o=window;if(e===void 0)o.__STX_DATA__={};else{if(!o.__STX_DATA__)try{let l=JSON.parse(document.querySelector("script[data-stx-server-data]")?.textContent||"{}");o.__STX_DATA__=l&&typeof l==="object"&&!Array.isArray(l)?l:{}}catch{o.__STX_DATA__={}}if(o.__STX_DATA__)delete o.__STX_DATA__[e]}}function Y(e){let o=null;try{o=typeof indexedDB<"u"?indexedDB:null}catch{o=null}if(!o)return null;let l=o,r=e||"stx-kept",d=null,y=()=>{if(!d)d=new Promise((u,h)=>{let a=l.open(r,1);a.onupgradeneeded=()=>{a.result.createObjectStore("kv")},a.onsuccess=()=>u(a.result),a.onerror=()=>h(a.error),a.onblocked=()=>h(Error("blocked"))}),d.catch(()=>{d=null});return d},s=(u,h)=>y().then((a)=>new Promise((p,f)=>{let t=a.transaction("kv",u),i=h(t.objectStore("kv"));t.oncomplete=()=>p(i?i.result:void 0),t.onerror=()=>f(t.error),t.onabort=()=>f(t.error)}));return{get:(u)=>s("readonly",(h)=>h.get(u)),set:(u,h)=>s("readwrite",(a)=>{a.put(h,u)}),remove:(u)=>s("readwrite",(h)=>{h.delete(u)}),removePrefix:(u)=>s("readwrite",(h)=>{h.delete(IDBKeyRange.bound(u,`${u}\uFFFF`))})}}function J(e,o){let l=e||{},r=null;if(l.storage!==void 0)r=l.storage;else try{r=typeof localStorage<"u"?localStorage:null}catch{r=null}let d=null,y=l.backend!==void 0;if(y)d=l.backend||null;let s=()=>{if(y)return d;y=!0;try{d=o?o():null}catch{d=null}if(d){let n=d;n.get("__stx_probe__").catch(()=>{if(d===n)d=null})}return d},u=l.limit||32768,h=l.defer||((n)=>{let c=typeof requestIdleCallback==="function"?requestIdleCallback:null;if(c)c(n,{timeout:200});else setTimeout(n,16)}),a=new Map,p=new Set,f=new Map,t=!1,i=Promise.resolve(),g=(n)=>{try{return JSON.parse(n)}catch{return n}},m=(n,c)=>{if(!r)return!1;try{return r.setItem(n,c),!0}catch{return!1}},_=(n)=>{try{if(r)r.removeItem(n)}catch{}},k=()=>{if(t=!1,!f.size)return i;let n=Array.from(f.entries());return f.clear(),i=i.then(()=>Promise.all(n.map(([c,v])=>{if(!d){p.delete(c);try{m(c,JSON.stringify(v===void 0?null:v))}catch{}return}let x;try{return x={v},d.set(c,x).catch(()=>{let S;try{S=JSON.stringify(v)}catch{return}return d?d.set(c,{j:S}).catch(()=>{m(c,S)}):void 0})}catch{return}}))).then(()=>{}),i},N=(n,c)=>{if(f.set(n,c),p.add(n),t)return;t=!0,h(()=>{k()})},M=(n)=>{if(!n||typeof n!=="object")return;let c=n;if("v"in c)return{value:c.v};if(typeof c.j==="string")return{value:g(c.j)};return},E={peek(n){if(a.has(n))return{value:a.get(n)};let c=null;try{c=r?r.getItem(n):null}catch{c=null}if(c===null||c===void 0)return;let v=g(c);return a.set(n,v),{value:v}},load(n){let c=E.peek(n),v=c?null:s();if(c||!v)return Promise.resolve(c);return v.get(n).then((x)=>{if(a.has(n))return{value:a.get(n)};let S=M(x);if(S)a.set(n,S.value),p.add(n);return S},()=>{return})},set(n,c){if(a.set(n,c),d&&p.has(n)){N(n,c);return}let v;try{v=JSON.stringify(c===void 0?null:c)}catch{return}if(v.length<=u&&m(n,v))return;if(!s()){if(v.length>u)m(n,v);return}_(n),N(n,c)},forget(n){for(let v of Array.from(a.keys()))if(v.indexOf(n)===0)a.delete(v);for(let v of Array.from(f.keys()))if(v.indexOf(n)===0)f.delete(v);for(let v of Array.from(p))if(v.indexOf(n)===0)p.delete(v);try{if(r)for(let v=r.length-1;v>=0;v--){let x=r.key(v);if(x&&x.indexOf(n)===0)r.removeItem(x)}}catch{}let c=s();if(!c)return i;return i=i.then(()=>c.removePrefix(n)).catch(()=>{}),i},flush(){return k()}};try{if(typeof document<"u"&&document.addEventListener)document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")k()});if(typeof addEventListener==="function")addEventListener("pagehide",()=>{k()})}catch{}return E}function Z(e,o){if(!e)return!1;if(e===o.key)return!0;if(!o.url)return!1;if(e===o.url)return!0;try{let l=typeof location<"u"&&location.origin&&location.origin!=="null"?location.origin:"http://localhost",r=new URL(e,l),d=new URL(o.url,l);if(r.origin!==d.origin||r.pathname!==d.pathname)return!1;return!r.search||r.search===d.search}catch{return!1}}function ee(e){let o=e.prefix||"stx:kept:",l=e.matches||((t,i)=>t===i.key||t===i.url),r=new Set,d=new Map,y,s=(t)=>t===void 0?y:t,u=(t,i)=>{let g=s(i);if(g===!1||g===null||g==="")return null;return`${o}${g===void 0?"":`${g}:`}query:${t}`},h=(t)=>{let i=t&&t.value;if(!i||typeof i!=="object"||!("d"in i))return;return{data:i.d,at:Number(i.at)||0}},a=()=>{let t=globalThis;return t.__stx_outboxes instanceof Map?t.__stx_outboxes:null},p={setScope(t){y=t},scope:()=>y,keyFor:u,seed(t,i){let g=u(t,i);return g?h(e.kept.peek(g)):void 0},restore(t,i){let g=u(t,i);return g?e.kept.load(g).then(h):Promise.resolve(void 0)},persist(t,i,g){let m=u(t,g);if(m)e.kept.set(m,{d:i,at:Date.now()})},overlay(t,i,g){let m=a();if(!m||!m.size)return i;let _=i;return m.forEach((k)=>{try{_=k.overlay(t,_,g)}catch{}}),_},watch(t){return r.add(t),()=>{r.delete(t)}},cachedQuery(t,i){let g=d.get(t);if(g){if(i&&g.__options)g.__options(i);return g}let m=i||{},_=m.initial===void 0?null:m.initial,k=()=>typeof m.scope==="function"?m.scope():m.scope,N=()=>(typeof m.url==="function"?m.url():m.url)||null,M=()=>({key:t,url:N()}),E=k(),n=_,c=0,v=e.sharedRequest(),x=0,S=p.seed(t,E);if(S)n=S.data;let C=e.state(p.overlay(M(),n)),U=e.state(!1),q=e.state(!1),K=e.state(null),P=e.state(S?S.at:0),R=0,V=()=>{C.set(p.overlay(M(),n))},W=(w)=>{let b=R;p.restore(t,w).then((T)=>{if(!T||b!==R||c)return;n=T.data,P.set(T.at),V()})};if(!S)W(E);let xt=()=>{let w=k();if(w===E)return;E=w,R++,x=0,q.set(!1),U.set(!1),c=0;let b=p.seed(t,E);if(n=b?b.data:_,P.set(b?b.at:0),V(),!b)W(E)},St=(w,b)=>{let T=m.timeoutMs||15000,I=typeof AbortController<"u"?new AbortController:null,O=null,F=new Promise((D,H)=>{O=setTimeout(()=>{if(I)I.abort();H(Error("The request took too long."))},T)}),A;if(m.load)A=m.load({force:w,url:b,signal:I?I.signal:void 0});else if(b){let D=m.fetch||((L,j)=>fetch(L,j)),H={method:"GET",headers:{Accept:"application/json"}};if(w)H.cache="no-cache";if(I)H.signal=I.signal;A=D(b,H).then((L)=>{if(!L.ok)return L.json().catch(()=>null).then((j)=>{throw Error(j&&(j.error||j.message)||`Request failed (${L.status})`)});return L.json()})}else return Promise.resolve(C());return Promise.race([A,F]).then((D)=>{if(O)clearTimeout(O);return m.transform?m.transform(D):D},(D)=>{if(O)clearTimeout(O);throw D})},G=(w)=>{let b=R,T=N(),I=()=>{if(b!==R)return Promise.resolve(C());if(x++,q.set(!0),c===0&&!P())U.set(!0);let F=()=>{if(b!==R)return;if(x=Math.max(0,x-1),!x)q.set(!1),U.set(!1)};return St(w,T).then((A)=>{if(b!==R||T!==N())return F(),C();return n=A,c=Date.now(),P.set(c),K.set(null),p.persist(t,A,E),V(),F(),C()},(A)=>{if(b===R&&T===N())K.set(A&&A.message?A.message:"Could not load.");return F(),C()})},O=`${b} ${T||""}`;return w?v.fresh(O,I):v.run(O,I)},B={data:C,loading:U,isFetching:q,error:K,updatedAt:P,get key(){return t},load(w){if(xt(),!w&&c&&Date.now()-c<(m.staleTime||0))return Promise.resolve(C());return G(!!w)},refresh(){return B.load(!0)},set(w){n=typeof w==="function"?w(n):w,p.persist(t,n,E),V()},invalidate(){c=0},__options(w){m={...m,...w}}};if(r.add({target:M,updated:()=>{if(c||P())G(!1)},outbox:(w)=>{if(w)n=p.overlay(M(),n,w.id),c=0,G(!0);V()}}),d.set(t,B),m.immediate)B.load();return B}},f=typeof window<"u"?window:typeof addEventListener==="function"?globalThis:null;if(e.listen!==!1&&f&&typeof f.addEventListener==="function")f.addEventListener("stx:updated",(t)=>{let i=t.detail||{};if(i.kind!=="api"||typeof i.url!=="string")return;r.forEach((g)=>{if(l(i.url,g.target()))g.updated()})}),f.addEventListener("stx:outbox",(t)=>{let i=t.detail||{},g=i.sent&&typeof i.sent.id==="string"?i.sent:null;r.forEach((m)=>{if(g){let _=Array.isArray(g.affects)?g.affects:[],k=m.target();if(!_.some((N)=>l(N,k)))return}m.outbox(g)})});return p}function te(e){let o=e&&e.covers||((s,u)=>Object.is(s,u)),l=[],r=[],d=0,y=(s,u)=>{let h;try{h=Promise.resolve(u())}catch(f){h=Promise.reject(f)}let a={key:s,promise:h};l.push(a);let p=()=>{let f=l.indexOf(a);if(f!==-1)l.splice(f,1)};return h.then(p,p),h};return{run(s,u){for(let h of l)if(o(h.key,s))return h.promise;for(let h of r)if(o(h.key,s))return h.promise;return y(s,u)},fresh(s,u){for(let f of r)if(o(f.key,s))return f.promise;let h=l.filter((f)=>o(f.key,s)).map((f)=>f.promise);if(!h.length)return y(s,u);let a={key:s,promise:null},p=()=>{};return a.promise=Promise.all(h.map((f)=>f.then(p,p))).then(()=>{let f=r.indexOf(a);if(f!==-1)r.splice(f,1);return y(s,u)}),r.push(a),a.promise},latest(){let s=++d;return()=>s===d},get busy(){return l.length>0||r.length>0}}}function ne(e){let o=!1,l=null,r=null,d=0;async function y(){if(o)return;l=new AbortController;try{let s=await e.request(e.endpoint,{signal:l.signal,cache:"no-store",headers:{Accept:"text/event-stream"}});if(!s.ok||!s.body||!s.headers.get("content-type")?.includes("text/event-stream"))throw Error("Broadcast stream unavailable");if(o){await s.body.cancel();return}let u=s.body.getReader(),h=new TextDecoder,a="";d=0,e.onStatus?.(!0),e.onConnected?.();try{while(!o){let{done:p,value:f}=await u.read();if(p)break;if(a+=h.decode(f,{stream:!0}).replace(/\r\n/g,`
2
+ import{ml,hl,yl}from"./chunk-t65tn8ee.js";import{le,Vn,Un,vo,Jr,Yr,Wn,qn,xo,Zr}from"./chunk-kvz01wzc.js";function z(e,o,l,r,d,y){let s=!0,u=new Set,h=(p)=>r.get?r.get(p):p,a=()=>h(e());return Object.defineProperty(a,"_isSignal",{value:!0}),Object.defineProperty(a,"modifiers",{get:o}),a.set=(p)=>{if(!s)return;let f=o(),t=r.set?r.set(p,f):p;if(f.trim&&typeof t==="string")t=t.trim();if(f.number&&typeof t==="string"&&t!==""){let i=Number(t);if(!Number.isNaN(i))t=i}if(Object.is(e(),t))return;e.set(t),l(t)},a.update=(p)=>a.set(p(a())),a.input=(p)=>{if(!o().lazy)a.set(p)},a.change=(p)=>{if(o().lazy)a.set(p)},a.subscribe=(p)=>{if(!s)return()=>{};let f=e.subscribe((t,i)=>p(h(t),h(i)));return u.add(f),()=>{f(),u.delete(f)}},Object.defineProperty(a,"value",{get:a,set:a.set}),d(()=>{s=!1,u.forEach((p)=>p()),u.clear()}),y?.(()=>{s=!0}),a}function X(e,o=!0,l){if(!o||!e||typeof window>"u")return;let r=window;if(!r.__STX_DATA__){let y=document.querySelector("script[data-stx-server-data]");try{let s=JSON.parse(y?.textContent||"{}");r.__STX_DATA__=s&&typeof s==="object"&&!Array.isArray(s)?s:{}}catch{r.__STX_DATA__={}}}let d=r.__STX_DATA__;if(d&&Object.prototype.hasOwnProperty.call(d,e))try{return{data:l?l(d[e]):d[e]}}catch(y){return{data:null,error:y instanceof Error?y:Error(String(y))}}return}function Q(e){if(typeof window>"u")return;let o=window;if(e===void 0)o.__STX_DATA__={};else{if(!o.__STX_DATA__)try{let l=JSON.parse(document.querySelector("script[data-stx-server-data]")?.textContent||"{}");o.__STX_DATA__=l&&typeof l==="object"&&!Array.isArray(l)?l:{}}catch{o.__STX_DATA__={}}if(o.__STX_DATA__)delete o.__STX_DATA__[e]}}function Y(e){let o=null;try{o=typeof indexedDB<"u"?indexedDB:null}catch{o=null}if(!o)return null;let l=o,r=e||"stx-kept",d=null,y=()=>{if(!d)d=new Promise((u,h)=>{let a=l.open(r,1);a.onupgradeneeded=()=>{a.result.createObjectStore("kv")},a.onsuccess=()=>u(a.result),a.onerror=()=>h(a.error),a.onblocked=()=>h(Error("blocked"))}),d.catch(()=>{d=null});return d},s=(u,h)=>y().then((a)=>new Promise((p,f)=>{let t=a.transaction("kv",u),i=h(t.objectStore("kv"));t.oncomplete=()=>p(i?i.result:void 0),t.onerror=()=>f(t.error),t.onabort=()=>f(t.error)}));return{get:(u)=>s("readonly",(h)=>h.get(u)),set:(u,h)=>s("readwrite",(a)=>{a.put(h,u)}),remove:(u)=>s("readwrite",(h)=>{h.delete(u)}),removePrefix:(u)=>s("readwrite",(h)=>{h.delete(IDBKeyRange.bound(u,`${u}\uFFFF`))})}}function J(e,o){let l=e||{},r=null;if(l.storage!==void 0)r=l.storage;else try{r=typeof localStorage<"u"?localStorage:null}catch{r=null}let d=null,y=l.backend!==void 0;if(y)d=l.backend||null;let s=()=>{if(y)return d;y=!0;try{d=o?o():null}catch{d=null}if(d){let n=d;n.get("__stx_probe__").catch(()=>{if(d===n)d=null})}return d},u=l.limit||32768,h=l.defer||((n)=>{let c=typeof requestIdleCallback==="function"?requestIdleCallback:null;if(c)c(n,{timeout:200});else setTimeout(n,16)}),a=new Map,p=new Set,f=new Map,t=!1,i=Promise.resolve(),g=(n)=>{try{return JSON.parse(n)}catch{return n}},m=(n,c)=>{if(!r)return!1;try{return r.setItem(n,c),!0}catch{return!1}},_=(n)=>{try{if(r)r.removeItem(n)}catch{}},k=()=>{if(t=!1,!f.size)return i;let n=Array.from(f.entries());return f.clear(),i=i.then(()=>Promise.all(n.map(([c,v])=>{if(!d){p.delete(c);try{m(c,JSON.stringify(v===void 0?null:v))}catch{}return}let x;try{return x={v},d.set(c,x).catch(()=>{let S;try{S=JSON.stringify(v)}catch{return}return d?d.set(c,{j:S}).catch(()=>{m(c,S)}):void 0})}catch{return}}))).then(()=>{}),i},N=(n,c)=>{if(f.set(n,c),p.add(n),t)return;t=!0,h(()=>{k()})},P=(n)=>{if(!n||typeof n!=="object")return;let c=n;if("v"in c)return{value:c.v};if(typeof c.j==="string")return{value:g(c.j)};return},E={peek(n){if(a.has(n))return{value:a.get(n)};let c=null;try{c=r?r.getItem(n):null}catch{c=null}if(c===null||c===void 0)return;let v=g(c);return a.set(n,v),{value:v}},load(n){let c=E.peek(n),v=c?null:s();if(c||!v)return Promise.resolve(c);return v.get(n).then((x)=>{if(a.has(n))return{value:a.get(n)};let S=P(x);if(S)a.set(n,S.value),p.add(n);return S},()=>{return})},set(n,c){if(a.set(n,c),d&&p.has(n)){N(n,c);return}let v;try{v=JSON.stringify(c===void 0?null:c)}catch{return}if(v.length<=u&&m(n,v))return;if(!s()){if(v.length>u)m(n,v);return}_(n),N(n,c)},forget(n){for(let v of Array.from(a.keys()))if(v.indexOf(n)===0)a.delete(v);for(let v of Array.from(f.keys()))if(v.indexOf(n)===0)f.delete(v);for(let v of Array.from(p))if(v.indexOf(n)===0)p.delete(v);try{if(r)for(let v=r.length-1;v>=0;v--){let x=r.key(v);if(x&&x.indexOf(n)===0)r.removeItem(x)}}catch{}let c=s();if(!c)return i;return i=i.then(()=>c.removePrefix(n)).catch(()=>{}),i},flush(){return k()}};try{if(typeof document<"u"&&document.addEventListener)document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")k()});if(typeof addEventListener==="function")addEventListener("pagehide",()=>{k()})}catch{}return E}function Z(e,o){if(!e)return!1;if(e===o.key)return!0;if(!o.url)return!1;if(e===o.url)return!0;try{let l=typeof location<"u"&&location.origin&&location.origin!=="null"?location.origin:"http://localhost",r=new URL(e,l),d=new URL(o.url,l);if(r.origin!==d.origin||r.pathname!==d.pathname)return!1;return!r.search||r.search===d.search}catch{return!1}}function ee(e){let o=e.prefix||"stx:kept:",l=e.matches||((t,i)=>t===i.key||t===i.url),r=new Set,d=new Map,y,s=(t)=>t===void 0?y:t,u=(t,i)=>{let g=s(i);if(g===!1||g===null||g==="")return null;return`${o}${g===void 0?"":`${g}:`}query:${t}`},h=(t)=>{let i=t&&t.value;if(!i||typeof i!=="object"||!("d"in i))return;return{data:i.d,at:Number(i.at)||0}},a=()=>{let t=globalThis;return t.__stx_outboxes instanceof Map?t.__stx_outboxes:null},p={setScope(t){y=t},scope:()=>y,keyFor:u,seed(t,i){let g=u(t,i);return g?h(e.kept.peek(g)):void 0},restore(t,i){let g=u(t,i);return g?e.kept.load(g).then(h):Promise.resolve(void 0)},persist(t,i,g){let m=u(t,g);if(m)e.kept.set(m,{d:i,at:Date.now()})},overlay(t,i,g){let m=a();if(!m||!m.size)return i;let _=i;return m.forEach((k)=>{try{_=k.overlay(t,_,g)}catch{}}),_},watch(t){return r.add(t),()=>{r.delete(t)}},cachedQuery(t,i){let g=d.get(t);if(g){if(i&&g.__options)g.__options(i);return g}let m=i||{},_=m.initial===void 0?null:m.initial,k=()=>typeof m.scope==="function"?m.scope():m.scope,N=()=>(typeof m.url==="function"?m.url():m.url)||null,P=()=>({key:t,url:N()}),E=k(),n=_,c=0,v=e.sharedRequest(),x=0,S=p.seed(t,E);if(S)n=S.data;let C=e.state(p.overlay(P(),n)),U=e.state(!1),q=e.state(!1),K=e.state(null),M=e.state(S?S.at:0),R=0,V=()=>{C.set(p.overlay(P(),n))},W=(w)=>{let b=R;p.restore(t,w).then((T)=>{if(!T||b!==R||c)return;n=T.data,M.set(T.at),V()})};if(!S)W(E);let xt=()=>{let w=k();if(w===E)return;E=w,R++,x=0,q.set(!1),U.set(!1),c=0;let b=p.seed(t,E);if(n=b?b.data:_,M.set(b?b.at:0),V(),!b)W(E)},St=(w,b)=>{let T=m.timeoutMs||15000,I=typeof AbortController<"u"?new AbortController:null,O=null,H=new Promise((D,F)=>{O=setTimeout(()=>{if(I)I.abort();F(Error("The request took too long."))},T)}),A;if(m.load)A=m.load({force:w,url:b,signal:I?I.signal:void 0});else if(b){let D=m.fetch||((L,j)=>fetch(L,j)),F={method:"GET",headers:{Accept:"application/json"}};if(w)F.cache="no-cache";if(I)F.signal=I.signal;A=D(b,F).then((L)=>{if(!L.ok)return L.json().catch(()=>null).then((j)=>{throw Error(j&&(j.error||j.message)||`Request failed (${L.status})`)});return L.json()})}else return Promise.resolve(C());return Promise.race([A,H]).then((D)=>{if(O)clearTimeout(O);return m.transform?m.transform(D):D},(D)=>{if(O)clearTimeout(O);throw D})},G=(w)=>{let b=R,T=N(),I=()=>{if(b!==R)return Promise.resolve(C());if(x++,q.set(!0),c===0&&!M())U.set(!0);let H=()=>{if(b!==R)return;if(x=Math.max(0,x-1),!x)q.set(!1),U.set(!1)};return St(w,T).then((A)=>{if(b!==R||T!==N())return H(),C();return n=A,c=Date.now(),M.set(c),K.set(null),p.persist(t,A,E),V(),H(),C()},(A)=>{if(b===R&&T===N())K.set(A&&A.message?A.message:"Could not load.");return H(),C()})},O=`${b} ${T||""}`;return w?v.fresh(O,I):v.run(O,I)},B={data:C,loading:U,isFetching:q,error:K,updatedAt:M,get key(){return t},load(w){if(xt(),!w&&c&&Date.now()-c<(m.staleTime||0))return Promise.resolve(C());return G(!!w)},refresh(){return B.load(!0)},set(w){n=typeof w==="function"?w(n):w,p.persist(t,n,E),V()},invalidate(){c=0},__options(w){m={...m,...w}}};if(r.add({target:P,updated:()=>{if(c||M())G(!1)},outbox:(w)=>{if(w)n=p.overlay(P(),n,w.id),c=0,G(!0);V()}}),d.set(t,B),m.immediate)B.load();return B}},f=typeof window<"u"?window:typeof addEventListener==="function"?globalThis:null;if(e.listen!==!1&&f&&typeof f.addEventListener==="function")f.addEventListener("stx:updated",(t)=>{let i=t.detail||{};if(i.kind!=="api"||typeof i.url!=="string")return;r.forEach((g)=>{if(l(i.url,g.target()))g.updated()})}),f.addEventListener("stx:outbox",(t)=>{let i=t.detail||{},g=i.sent&&typeof i.sent.id==="string"?i.sent:null;r.forEach((m)=>{if(g){let _=Array.isArray(g.affects)?g.affects:[],k=m.target();if(!_.some((N)=>l(N,k)))return}m.outbox(g)})});return p}function te(e){let o=e&&e.covers||((s,u)=>Object.is(s,u)),l=[],r=[],d=0,y=(s,u)=>{let h;try{h=Promise.resolve(u())}catch(f){h=Promise.reject(f)}let a={key:s,promise:h};l.push(a);let p=()=>{let f=l.indexOf(a);if(f!==-1)l.splice(f,1)};return h.then(p,p),h};return{run(s,u){for(let h of l)if(o(h.key,s))return h.promise;for(let h of r)if(o(h.key,s))return h.promise;return y(s,u)},fresh(s,u){for(let f of r)if(o(f.key,s))return f.promise;let h=l.filter((f)=>o(f.key,s)).map((f)=>f.promise);if(!h.length)return y(s,u);let a={key:s,promise:null},p=()=>{};return a.promise=Promise.all(h.map((f)=>f.then(p,p))).then(()=>{let f=r.indexOf(a);if(f!==-1)r.splice(f,1);return y(s,u)}),r.push(a),a.promise},latest(){let s=++d;return()=>s===d},get busy(){return l.length>0||r.length>0}}}function ne(e){let o=!1,l=null,r=null,d=0;async function y(){if(o)return;l=new AbortController;try{let s=await e.request(e.endpoint,{signal:l.signal,cache:"no-store",headers:{Accept:"text/event-stream"}});if(!s.ok||!s.body||!s.headers.get("content-type")?.includes("text/event-stream"))throw Error("Broadcast stream unavailable");if(o){await s.body.cancel();return}let u=s.body.getReader(),h=new TextDecoder,a="";d=0,e.onStatus?.(!0),e.onConnected?.();try{while(!o){let{done:p,value:f}=await u.read();if(p)break;if(a+=h.decode(f,{stream:!0}).replace(/\r\n/g,`
3
3
  `),a.length>1048576)throw Error("Broadcast frame too large");let t;while((t=a.indexOf(`
4
4
 
5
5
  `))!==-1){let i=a.slice(0,t);a=a.slice(t+2);let g=i.split(`
@@ -383,10 +383,13 @@ catch (e) {} }
383
383
  var serializedProps = root.getAttribute('data-stx-props');
384
384
  if (serializedProps) {
385
385
  try {
386
- var parsedProps = JSON.parse(serializedProps);
386
+ var parsedProps = __stxParsedProps(serializedProps);
387
387
  var camelName = __stxCamel(name);
388
388
  if (Object.prototype.hasOwnProperty.call(parsedProps, name)) staticValue = parsedProps[name];
389
389
  else if (Object.prototype.hasOwnProperty.call(parsedProps, camelName)) staticValue = parsedProps[camelName];
390
+ // A structured value is this instance's own, as a fresh parse made it.
391
+ if (staticValue && typeof staticValue === 'object' && staticValue !== defaultValue)
392
+ staticValue = JSON.parse(JSON.stringify(staticValue));
390
393
  }
391
394
  catch (e) {}
392
395
  }
@@ -3920,6 +3923,10 @@ catch (e) {
3920
3923
 
3921
3924
  function __stxAlwaysVisible() { return true; }
3922
3925
 
3926
+ // What planning throws for a template it leaves to the generic path: one
3927
+ // object, not an Error with a stack to capture for every refusal.
3928
+ var ROW_UNPLANNED = { unplanned: true };
3929
+
3923
3930
  // A plan for rows cloned from \`template\`, or null where the generic path
3924
3931
  // has to make them.
3925
3932
  function planNativeRow(template) {
@@ -3957,14 +3964,13 @@ catch (e) {
3957
3964
  : 'return ' + raw;
3958
3965
  var source = kind === 'attr' || kind === 'text' || kind === 'if' ? expr : raw;
3959
3966
  var group = kind === 'prop' ? plan.prop : plan.eval;
3960
- if (parsePipeExpression(source, {}) !== null) throw new Error('pipe');
3961
- if (plan.component && raw.indexOf(plan.scopeId) !== -1) throw new Error('scope id in an expression');
3967
+ if (parsePipeExpression(source, {}) !== null) throw ROW_UNPLANNED;
3968
+ if (plan.component && raw.indexOf(plan.scopeId) !== -1) throw ROW_UNPLANNED;
3962
3969
  // The names the expression can read: not the words of its quoted strings
3963
3970
  // (a class list in a ternary) nor keywords, which every row would
3964
3971
  // otherwise look up in its scope for nothing.
3965
- var names = __stxNamesIn(source.replace(__STX_QUOTED, ' ')).filter(function(k) {
3966
- return !__STX_KEYWORDS[k] && /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(k);
3967
- });
3972
+ var unquoted = source.indexOf("'") === -1 && source.indexOf('"') === -1 ? source : source.replace(__STX_QUOTED, ' ');
3973
+ var names = __stxNamesIn(unquoted).filter(function(k) { return !__STX_KEYWORDS[k]; });
3968
3974
  for (var i = 0; i < names.length; i++) {
3969
3975
  if (group.nameIndex[names[i]] === undefined) {
3970
3976
  group.nameIndex[names[i]] = group.names.length;
@@ -3979,8 +3985,8 @@ catch (e) {
3979
3985
  // One element of the template: its bindings, the attributes a row's copy
3980
3986
  // keeps, and its children. Throws where the template needs the generic path;
3981
3987
  // returns { generic: true } for an :if branch whose content does.
3982
- function planRowNode(plan, tmpl, isRoot, inBranch) {
3983
- var node = { tmpl: tmpl, attrs: [], ops: [], children: [], ifSite: null, generic: false, inert: false, remap: [] };
3988
+ function planRowNode(plan, tmpl, isRoot, inBranch, gated) {
3989
+ var node = { tmpl: tmpl, attrs: [], ops: [], children: [], ifSite: null, generic: false, inert: false, remap: [], gated: !!(gated || inBranch) };
3984
3990
  var attrs = getElementAttributes(tmpl);
3985
3991
  var parentEvents = __stxWords(tmpl.getAttribute('data-stx-parent-events') || '');
3986
3992
  var parentBindings = isRoot && plan.component ? __stxWords(tmpl.getAttribute('data-stx-parent-bindings') || '') : [];
@@ -4000,22 +4006,23 @@ catch (e) {
4000
4006
  delete deferredProps[propName];
4001
4007
  }
4002
4008
  }
4009
+ if (getElseAttrInfo(tmpl)) throw ROW_UNPLANNED;
4003
4010
  var generic = false;
4004
4011
  for (var i = 0; i < attrs.length; i++) {
4005
4012
  var name = attrs[i].name;
4006
4013
  var value = attrs[i].value;
4007
4014
  if (!name) continue;
4008
4015
  if (name === ':if' || name === '@if') {
4009
- if (isRoot) throw new Error('root if');
4010
- if (getElseAttrInfo(tmpl.nextElementSibling)) throw new Error('if chain');
4016
+ if (isRoot) throw ROW_UNPLANNED;
4017
+ if (getElseAttrInfo(tmpl.nextElementSibling)) throw ROW_UNPLANNED;
4011
4018
  node.ifSite = planRowSite(plan, value, 'if');
4012
4019
  continue;
4013
4020
  }
4014
- if (name === 'x-if' || getElseAttrInfo(tmpl)) throw new Error('chain');
4015
- if ((name === ':for' || name === '@for' || name === 'x-for') && isForDirectiveExpression(value)) throw new Error('nested for');
4021
+ if (name === 'x-if') throw ROW_UNPLANNED;
4022
+ if ((name === ':for' || name === '@for' || name === 'x-for') && isForDirectiveExpression(value)) throw ROW_UNPLANNED;
4016
4023
  if (name === 'x-cloak') continue;
4017
4024
  if (name === 'data-stx-scope' || name === 'data-stx-template-scope') {
4018
- if (!isRoot) throw new Error('nested component');
4025
+ if (!isRoot) throw ROW_UNPLANNED;
4019
4026
  continue;
4020
4027
  }
4021
4028
  if (__STX_ROW_GENERIC_ATTRS[name] || name.startsWith('::') || name.startsWith('x-') || name.startsWith('@bind:')) { generic = true; continue; }
@@ -4044,7 +4051,7 @@ catch (e) {
4044
4051
  var parts = name.slice(1).split('.');
4045
4052
  var eventName = parentEvents.find(function(event) { return event.toLowerCase() === parts[0].toLowerCase(); }) || parts[0];
4046
4053
  if (__STX_ROW_SKIPPED_EVENTS[eventName]) { generic = true; continue; }
4047
- if (plan.component && value.indexOf(plan.scopeId) !== -1) throw new Error('scope id in a handler');
4054
+ if (plan.component && value.indexOf(plan.scopeId) !== -1) throw ROW_UNPLANNED;
4048
4055
  node.ops.push({
4049
4056
  kind: 'event',
4050
4057
  eventName: eventName,
@@ -4063,15 +4070,15 @@ catch (e) {
4063
4070
  node.attrs.push(attrs[i]);
4064
4071
  }
4065
4072
  if (generic) {
4066
- if (!inBranch || !node.ifSite) throw new Error('generic content');
4073
+ if (!inBranch || !node.ifSite) throw ROW_UNPLANNED;
4067
4074
  return { tmpl: tmpl, generic: true, ifSite: node.ifSite };
4068
4075
  }
4069
4076
  var kids = tmpl.childNodes || [];
4070
4077
  for (var k = 0; k < kids.length; k++) {
4071
4078
  var child = kids[k];
4072
- if (child.nodeType !== 1 || child.tagName === 'SCRIPT' || child.tagName === 'TEMPLATE' || child.__stx_scope) throw new Error('child kind');
4079
+ if (child.nodeType !== 1 || child.tagName === 'SCRIPT' || child.tagName === 'TEMPLATE' || child.__stx_scope) throw ROW_UNPLANNED;
4073
4080
  var hasIf = child.hasAttribute(':if') || child.hasAttribute('@if');
4074
- node.children.push(planRowNode(plan, child, false, hasIf));
4081
+ node.children.push(planRowNode(plan, child, false, hasIf, node.gated));
4075
4082
  }
4076
4083
  return node;
4077
4084
  }
@@ -4080,10 +4087,29 @@ catch (e) {
4080
4087
  // compiled for that answer. Rows of one loop nearly always share one.
4081
4088
  function rowShape(group, own, layers) {
4082
4089
  var names = group.names;
4090
+ var stack = own[__STX_LAYERS];
4091
+ // A row's scope is its loop's layers (the same objects for every row)
4092
+ // and a few of its own (its item, its component's variables), which hold
4093
+ // the same names from row to row. When this row's are the last row's or
4094
+ // hold the same names, every name lives where it did: nothing to look up.
4095
+ var last = group.last;
4096
+ if (last && stack.length === last.stack.length && own[__STX_HIDDEN] === undefined && Object.keys(own).length === 0) {
4097
+ var same = true;
4098
+ for (var j = 0; j < stack.length && same; j++) {
4099
+ if (stack[j] !== last.stack[j]) same = Object.keys(stack[j]).join('\x01') === last.names[j];
4100
+ }
4101
+ if (same) {
4102
+ for (var n = 0; n < names.length; n++) layers[n] = last.at[n] < 0 ? null : stack[last.at[n]];
4103
+ last.stack = stack;
4104
+ return last.shape;
4105
+ }
4106
+ }
4083
4107
  var signature = '';
4108
+ var at = new Array(names.length);
4084
4109
  for (var i = 0; i < names.length; i++) {
4085
4110
  var layer = __stxLayerOf(own, names[i]);
4086
4111
  layers[i] = layer;
4112
+ at[i] = layer === null ? -1 : stack.lastIndexOf(layer);
4087
4113
  signature += layer === null ? '0' : '1';
4088
4114
  }
4089
4115
  var shape = group.shapes.get(signature);
@@ -4091,6 +4117,13 @@ catch (e) {
4091
4117
  shape = { signature: signature, compiled: [] };
4092
4118
  group.shapes.set(signature, shape);
4093
4119
  }
4120
+ // Remembered for the next row only when every name was found in a layer
4121
+ // (not on the scope's own object, which differs per row).
4122
+ var ownless = Object.keys(own).length === 0 && own[__STX_HIDDEN] === undefined;
4123
+ if (ownless) {
4124
+ for (var k = 0; k < names.length; k++) if (layers[k] !== null && at[k] < 0) ownless = false;
4125
+ }
4126
+ group.last = ownless ? { stack: stack, names: stack.map(function(layer) { return Object.keys(layer).join('\x01'); }), at: at, shape: shape } : null;
4094
4127
  return shape;
4095
4128
  }
4096
4129
 
@@ -4214,7 +4247,10 @@ catch (e) {
4214
4247
 
4215
4248
  // The visibility gates an element's attribute bindings wait on: every :if
4216
4249
  // around it, the row's own and those around the loop.
4217
- function rowVisibility(el, row) {
4250
+ function rowVisibility(el, row, pnode) {
4251
+ // Outside every :if of the row, in a loop no :if hides: always visible,
4252
+ // without walking up to find that out.
4253
+ if (!pnode.gated && !row.outer.length && !row.inserted) return __stxAlwaysVisible;
4218
4254
  var gates = [];
4219
4255
  for (var node = el; node; node = node.parentNode) {
4220
4256
  if (node.__stx_if_visible) gates.push(node.__stx_if_visible);
@@ -4265,16 +4301,16 @@ catch (e) {
4265
4301
  for (var i = 0; i < ops.length; i++) {
4266
4302
  var op = ops[i];
4267
4303
  if (op.kind === 'attr') {
4268
- if (!visible) visible = rowVisibility(el, row);
4304
+ if (!visible) visible = rowVisibility(el, row, pnode);
4269
4305
  if (!urlWarning) urlWarning = { warned: false };
4270
4306
  bindRowAttribute(el, op, row, visible, urlWarning);
4271
4307
  }
4272
4308
  else if (op.kind === 'class') {
4273
- if (!visible) visible = rowVisibility(el, row);
4309
+ if (!visible) visible = rowVisibility(el, row, pnode);
4274
4310
  bindRowClass(el, op.site, row, visible);
4275
4311
  }
4276
4312
  else if (op.kind === 'style') {
4277
- if (!visible) visible = rowVisibility(el, row);
4313
+ if (!visible) visible = rowVisibility(el, row, pnode);
4278
4314
  bindRowStyle(el, op.site, row, visible);
4279
4315
  }
4280
4316
  else if (op.kind === 'text') {
@@ -4285,8 +4321,10 @@ catch (e) {
4285
4321
  if (el[op.key]) continue;
4286
4322
  el[op.key] = true;
4287
4323
  var forwarded = op.forwarded && !!el.__stx_parent_scope;
4288
- listenTemplateEvent(el, op.eventName, op.modifiers, op.value,
4289
- forwarded ? layerTemplateScopes(globalHelpers, el.__stx_parent_scope) : row.evalScope, forwarded);
4324
+ // A forwarded handler runs in its caller's scope, which the listener
4325
+ // layers again when it fires; one layering serves all of the row's.
4326
+ if (forwarded && row.forwardedScope === null) row.forwardedScope = layerTemplateScopes(globalHelpers, el.__stx_parent_scope);
4327
+ listenTemplateEvent(el, op.eventName, op.modifiers, op.value, forwarded ? row.forwardedScope : row.evalScope, forwarded);
4290
4328
  }
4291
4329
  }
4292
4330
  if (pnode.inert) return;
@@ -4486,7 +4524,7 @@ catch (e) {
4486
4524
  // A row of \`plan\`, bound before it is inserted. \`parent\` is where it will
4487
4525
  // go; the caller inserts it and then calls finishNativeRow.
4488
4526
  function createNativeRow(plan, itemScope, parent) {
4489
- var row = { plan: plan, root: null, scope: null, evalScope: null, local: null, caller: null, outer: [], after: [], inserted: false, scopeVars: null, scopeId: null };
4527
+ var row = { plan: plan, root: null, scope: null, evalScope: null, local: null, caller: null, forwardedScope: null, outer: [], after: [], inserted: false, scopeVars: null, scopeId: null };
4490
4528
  for (var node = parent; node; node = node.parentNode) if (node.__stx_if_visible) row.outer.push(node.__stx_if_visible);
4491
4529
  if (plan.component) row.scopeId = plan.scopeId + '_for_' + (++__forComponentScopeCounter);
4492
4530
  var made = buildRowNode(plan.root, row);
@@ -4599,10 +4637,27 @@ catch (e) {
4599
4637
  // Note: SPA Router and View Transitions CSS are provided by the canonical
4600
4638
  // router script (packages/router/src/client.ts) which is injected alongside
4601
4639
  // the signals runtime or via the @stxRouter directive.
4602
- `;var Re=` function expressionUsesSignalApi(expression, name) {
4603
- var escapedName = name.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');
4604
- return expressionUsesSignalMethod(expression, name)
4605
- || expressionUsesSignalValue(expression, name);
4640
+ `;var Re=` // Each answer depends only on the expression and the name, and each is a
4641
+ // regular expression built for the pair: asked for every signal a binding
4642
+ // or prop reads, so it is kept (and a name the expression does not hold
4643
+ // is answered without one).
4644
+ const __stxSignalPatterns = new Map();
4645
+ function rememberedSignalPattern(kind, expression, name, test) {
4646
+ if (expression.indexOf(name) === -1) return false;
4647
+ var key = kind + '\\u0001' + name + '\\u0001' + expression;
4648
+ var known = __stxSignalPatterns.get(key);
4649
+ if (known === undefined) {
4650
+ if (__stxSignalPatterns.size >= 5000) __stxSignalPatterns.clear();
4651
+ known = test(expression, name);
4652
+ __stxSignalPatterns.set(key, known);
4653
+ }
4654
+ return known;
4655
+ }
4656
+
4657
+ function expressionUsesSignalApi(expression, name) {
4658
+ return rememberedSignalPattern('api', expression, name, function(text, signalName) {
4659
+ return expressionUsesSignalMethod(text, signalName) || expressionUsesSignalValue(text, signalName);
4660
+ });
4606
4661
  }
4607
4662
 
4608
4663
  function expressionUsesSignalMethod(expression, name) {
@@ -4616,6 +4671,10 @@ catch (e) {
4616
4671
  }
4617
4672
 
4618
4673
  function expressionCallsSignal(expression, name) {
4674
+ return rememberedSignalPattern('call', expression, name, expressionCallsSignalNow);
4675
+ }
4676
+
4677
+ function expressionCallsSignalNow(expression, name) {
4619
4678
  var escapedName = name.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');
4620
4679
  return new RegExp('(?:^|[^\\\\w$])' + escapedName + '\\\\s*\\\\(').test(expression);
4621
4680
  }
@@ -4824,6 +4883,18 @@ catch (e) {
4824
4883
  }
4825
4884
  return camel;
4826
4885
  }
4886
+ // A component's static props, as its wrapper carries them: the same text
4887
+ // for every row of a list, parsed once. Callers only read the result.
4888
+ var __stxPropTexts = new Map();
4889
+ function __stxParsedProps(text) {
4890
+ var parsed = __stxPropTexts.get(text);
4891
+ if (parsed === undefined) {
4892
+ parsed = JSON.parse(text);
4893
+ if (__stxPropTexts.size >= 2000) __stxPropTexts.clear();
4894
+ __stxPropTexts.set(text, parsed);
4895
+ }
4896
+ return parsed;
4897
+ }
4827
4898
  var __stxKebabNames = new Map();
4828
4899
  function __stxKebab(name) {
4829
4900
  var kebab = __stxKebabNames.get(name);
@@ -4964,7 +5035,7 @@ catch (e) {
4964
5035
  const deps = depsMap.get(key);
4965
5036
  if (deps) notifySubscribers(deps);
4966
5037
  }
4967
- `;var Me=` // \u2500\u2500 Host \u2500\u2500
5038
+ `;var Pe=` // \u2500\u2500 Host \u2500\u2500
4968
5039
  //
4969
5040
  // The tree this runtime mutates. Every write the binding layer makes to a
4970
5041
  // node goes through here, so the same runtime can drive something that is not
@@ -5215,7 +5286,7 @@ catch (e) {
5215
5286
  return ids;
5216
5287
  }
5217
5288
  };
5218
- `;var Pe=` // Hydrate a subtree inserted AFTER initial load \u2014 e.g. a streamed suspense
5289
+ `;var Me=` // Hydrate a subtree inserted AFTER initial load \u2014 e.g. a streamed suspense
5219
5290
  // boundary (#1746 Phase 3). Mirrors the SPA re-init pass, scoped to the
5220
5291
  // container: (1) executes the subtree's scoped setup scripts (inert when
5221
5292
  // inserted via innerHTML, so they're cloned into fresh script elements to
@@ -5762,7 +5833,7 @@ catch (e) { /* a disposer of its own is not this branch's problem */ }
5762
5833
  // Shown branches whose deferred bind found them off the page: an enclosing
5763
5834
  // :if, bound later in the same pass, hid them between the queue and the run.
5764
5835
  // Their own condition has not changed, so their effect never runs again to
5765
- // retry; each resumes here when an enclosing branch puts it back.`;var Fe=` const detachedBranches = new Set();
5836
+ // retry; each resumes here when an enclosing branch puts it back.`;var He=` const detachedBranches = new Set();
5766
5837
  function resumeDetachedBranches() {
5767
5838
  if (!detachedBranches.size) return;
5768
5839
  Array.from(detachedBranches).forEach(function(resume) {
@@ -6114,7 +6185,7 @@ else if (!value && isInserted) {
6114
6185
  }
6115
6186
  });
6116
6187
  }
6117
- `;function He(e,o,l,r,d){return` // One request for every caller that wants the same answer: run joins one
6188
+ `;function Fe(e,o,l,r,d){return` // One request for every caller that wants the same answer: run joins one
6118
6189
  // in flight, fresh waits one out and asks again, latest replaces a request
6119
6190
  // counter. See shared-request.ts; cached queries are built on it.
6120
6191
  var sharedRequest = (${d});
@@ -8261,6 +8332,22 @@ ${l}
8261
8332
  if (expr.indexOf('|') === -1) return null;
8262
8333
  const known = __stxPipeIndex.get(expr);
8263
8334
  if (known === -1) return null;
8335
+ // Nearly every bar is half of a ||: when no bar stands alone, there is no
8336
+ // pipe, and the character scan below (slow in an interpreter, for an
8337
+ // expression of any length) has nothing to find.
8338
+ if (known === undefined) {
8339
+ let bar = expr.indexOf('|');
8340
+ while (bar !== -1) {
8341
+ if (expr.charCodeAt(bar + 1) === 124) { bar = expr.indexOf('|', bar + 2); continue; }
8342
+ if (bar > 0 && expr.charCodeAt(bar - 1) === 63) { bar = expr.indexOf('|', bar + 1); continue; }
8343
+ break;
8344
+ }
8345
+ if (bar === -1) {
8346
+ if (__stxPipeIndex.size >= 5000) __stxPipeIndex.clear();
8347
+ __stxPipeIndex.set(expr, -1);
8348
+ return null;
8349
+ }
8350
+ }
8264
8351
  // Find pipe operators: single | that's not part of || or preceded by ?
8265
8352
  // We need to find | that is:
8266
8353
  // 1. Not preceded by | or ?
@@ -11633,7 +11720,7 @@ else if (timer === null) {
11633
11720
  subscribe: subscribe
11634
11721
  };
11635
11722
  }
11636
- `;function ht(e={}){let o=kt(Hn(e));try{let r=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(o);return r=r.replace(/\}(var |let |const |function )/g,"};$1"),r}catch{return o}}function kt(e){let o=[],l=0,r="console.log(";while(l<e.length){let d=e.indexOf(r,l);if(d===-1){o.push(e.slice(l));break}o.push(e.slice(l,d));let y=1,s=d+r.length;while(s<e.length&&y>0){let u=e[s];if(u==='"'||u==="'"||u==="`"){let h=u;s++;while(s<e.length&&e[s]!==h){if(e[s]==="\\")s++;s++}s++;continue}if(u==="(")y++;else if(u===")")y--;s++}o.push("0"),l=s}return o.join("")}function Hn(e={}){return`${ae}${Me}
11723
+ `;function ht(e={}){let o=kt(Hn(e));try{let r=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(o);return r=r.replace(/\}(var |let |const |function )/g,"};$1"),r}catch{return o}}function kt(e){let o=[],l=0,r="console.log(";while(l<e.length){let d=e.indexOf(r,l);if(d===-1){o.push(e.slice(l));break}o.push(e.slice(l,d));let y=1,s=d+r.length;while(s<e.length&&y>0){let u=e[s];if(u==='"'||u==="'"||u==="`"){let h=u;s++;while(s<e.length&&e[s]!==h){if(e[s]==="\\")s++;s++}s++;continue}if(u==="(")y++;else if(u===")")y--;s++}o.push("0"),l=s}return o.join("")}function Hn(e={}){return`${ae}${Pe}
11637
11724
  ${Ze(ie,ke,Te)}
11638
11725
 
11639
11726
  ${De}
@@ -11660,7 +11747,7 @@ ${se}
11660
11747
  ${ue}
11661
11748
  ${me}
11662
11749
  ${Ge}
11663
- ${nt(ml(),hl(),gl())}
11750
+ ${nt(hl(),yl(),ml())}
11664
11751
 
11665
11752
  ${gt}
11666
11753
  ${lt}
@@ -11676,7 +11763,7 @@ ${e.native?Ie:""}
11676
11763
  ${Be}
11677
11764
  ${he}
11678
11765
  ${Ve}
11679
- ${Fe}
11766
+ ${He}
11680
11767
  ${de}
11681
11768
  ${vt}
11682
11769
  ${re}
@@ -11686,7 +11773,7 @@ ${ft}
11686
11773
 
11687
11774
  var useBroadcastStream = ${ne.toString()};
11688
11775
 
11689
- ${He(J.toString(),Y.toString(),ee.toString(),Z.toString(),te.toString())}
11776
+ ${Fe(J.toString(),Y.toString(),ee.toString(),Z.toString(),te.toString())}
11690
11777
  ${ve}
11691
11778
  ${oe(z.toString())}
11692
11779
  ${Oe}
@@ -11696,7 +11783,7 @@ ${Qe}
11696
11783
  ${ye}
11697
11784
  ${_e}
11698
11785
  ${yt}
11699
- ${Pe}
11786
+ ${Me}
11700
11787
  ${ot(fe)}
11701
11788
 
11702
11789
  ${pt}
@@ -11714,5 +11801,5 @@ ${ct}
11714
11801
  ${dt}
11715
11802
  ${it}
11716
11803
  })();
11717
- `}var ch={state:le,derived:Vn,effect:Un,batch:wo,onMount:Jr,onDestroy:Yr,isSignal:Wn,isDerived:qn,untrack:vo,peek:Zr,generateSignalsRuntime:ht,generateSignalsRuntimeDev:Hn};
11718
- export{ht,Hn,ch};
11804
+ `}var uh={state:le,derived:Vn,effect:Un,batch:vo,onMount:Jr,onDestroy:Yr,isSignal:Wn,isDerived:qn,untrack:xo,peek:Zr,generateSignalsRuntime:ht,generateSignalsRuntimeDev:Hn};
11805
+ export{ht,Hn,uh};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{So,va,xa,hh}from"./chunk-bbt09ebh.js";export{So as NATIVE_COMPONENTS,va as compileToNative,xa as createHotReloadServer,hh as default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ga,Fl}from"./chunk-hp9e8nz6.js";import"./chunk-ddhkhhc7.js";import"./chunk-33vr7x2t.js";export{Fl as createImageHandler,ga as handleImageRequest};