@stacksjs/stx 0.2.711 → 0.2.714

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 (225) hide show
  1. package/dist/chunk-00bf81ep.js +2 -0
  2. package/dist/chunk-04bhg3nn.js +2 -0
  3. package/dist/{chunk-vstvadc2.js → chunk-05qf3e2p.js} +3 -3
  4. package/dist/{chunk-nxmrbz95.js → chunk-0babpwqd.js} +22 -22
  5. package/dist/chunk-0g9a1kks.js +2 -0
  6. package/dist/{chunk-xt85pfwm.js → chunk-0k1nwbch.js} +9 -9
  7. package/dist/{chunk-twrkqpfm.js → chunk-142z94rk.js} +4 -4
  8. package/dist/chunk-19vshytp.js +2 -0
  9. package/dist/{chunk-qzbvxq1f.js → chunk-1kpfkjy7.js} +18 -18
  10. package/dist/{chunk-9n0rkv8n.js → chunk-1ncmrzk1.js} +2 -2
  11. package/dist/chunk-2fmn23mb.js +2 -0
  12. package/dist/{chunk-3ps07041.js → chunk-2mqzpzy7.js} +4 -4
  13. package/dist/{chunk-wbfg7p3k.js → chunk-2t00wxz0.js} +1 -1
  14. package/dist/chunk-336t7zzz.js +2 -0
  15. package/dist/{chunk-467r9gpt.js → chunk-35br675g.js} +4 -4
  16. package/dist/chunk-362sjw8c.js +2 -0
  17. package/dist/{chunk-dxqvv686.js → chunk-39nkd53v.js} +2 -2
  18. package/dist/{chunk-yw66yks2.js → chunk-3e40sm05.js} +4 -4
  19. package/dist/{chunk-zjw6j2x0.js → chunk-3fwdxxh1.js} +4 -4
  20. package/dist/chunk-3j8x8mhx.js +2 -0
  21. package/dist/chunk-3nbvr34s.js +2 -0
  22. package/dist/chunk-3r0zha0y.js +2 -0
  23. package/dist/{chunk-zav8yrtp.js → chunk-3xyvc3g1.js} +5 -5
  24. package/dist/{chunk-stvw8y3c.js → chunk-4c86wr9a.js} +2 -2
  25. package/dist/chunk-4ee5msma.js +2 -0
  26. package/dist/chunk-54a60nh2.js +2 -0
  27. package/dist/chunk-5d1c504j.js +2 -0
  28. package/dist/chunk-5wpgbwap.js +2 -0
  29. package/dist/{chunk-d06q5k8r.js → chunk-5zg56hwd.js} +5 -5
  30. package/dist/{chunk-qa9t9k6z.js → chunk-62awa752.js} +1 -1
  31. package/dist/{chunk-mr3r8crk.js → chunk-630yrhzv.js} +2 -2
  32. package/dist/{chunk-kxf8z7vp.js → chunk-6fx89gvg.js} +2 -2
  33. package/dist/chunk-6h1qa3hw.js +2 -0
  34. package/dist/chunk-6jn0p1a9.js +2 -0
  35. package/dist/chunk-6vj7vx7z.js +2 -0
  36. package/dist/{chunk-ckrmrdjp.js → chunk-72hfqwvk.js} +5 -5
  37. package/dist/{chunk-hh7wx4pv.js → chunk-7407ac26.js} +5 -5
  38. package/dist/{chunk-cwhzk2n3.js → chunk-74fepz6h.js} +2 -2
  39. package/dist/{chunk-ahjeegyv.js → chunk-77rjnavp.js} +13 -13
  40. package/dist/{chunk-42w6snem.js → chunk-78x8qfvt.js} +4 -4
  41. package/dist/chunk-79sjdpfy.js +2 -0
  42. package/dist/{chunk-8k139g1q.js → chunk-7nmrycrz.js} +4 -4
  43. package/dist/{chunk-jvbzeeqr.js → chunk-87zvjhp9.js} +10 -10
  44. package/dist/{chunk-zecgd1wz.js → chunk-88rftjjk.js} +4 -4
  45. package/dist/chunk-8dfq934n.js +2 -0
  46. package/dist/{chunk-t6ayy0t5.js → chunk-8fazd6fr.js} +2 -2
  47. package/dist/chunk-8w1ep4w3.js +2 -0
  48. package/dist/chunk-918xy0ra.js +2 -0
  49. package/dist/{chunk-tvcr9sct.js → chunk-9chqvq23.js} +3 -3
  50. package/dist/chunk-a0r5011d.js +2 -0
  51. package/dist/chunk-a49at1ah.js +2 -0
  52. package/dist/{chunk-q82n06dy.js → chunk-a9kxcdkz.js} +2 -2
  53. package/dist/chunk-agjysd2b.js +2 -0
  54. package/dist/chunk-ajcb0z8k.js +2 -0
  55. package/dist/chunk-ak04tgvw.js +2 -0
  56. package/dist/chunk-anew18ct.js +2 -0
  57. package/dist/chunk-azatpcm0.js +2 -0
  58. package/dist/chunk-c1481efw.js +2 -0
  59. package/dist/chunk-c510b95e.js +2 -0
  60. package/dist/chunk-c8yrvpr7.js +2 -0
  61. package/dist/chunk-cbbjepfk.js +2 -0
  62. package/dist/{chunk-kbc92p7a.js → chunk-cgpf1fva.js} +2 -2
  63. package/dist/{chunk-6cz1sbb1.js → chunk-d9hw6n2d.js} +3 -3
  64. package/dist/{chunk-zjaw79zp.js → chunk-dhy6n39n.js} +2 -2
  65. package/dist/{chunk-edka95zp.js → chunk-dmnncw90.js} +3 -3
  66. package/dist/chunk-dn8x6c98.js +2 -0
  67. package/dist/{chunk-b7j48bq9.js → chunk-dnqzrktd.js} +2 -2
  68. package/dist/chunk-dph9dzzs.js +2 -0
  69. package/dist/{chunk-hr3emvsh.js → chunk-dxzs589r.js} +3 -3
  70. package/dist/chunk-ez35607j.js +3 -0
  71. package/dist/{chunk-768evhvm.js → chunk-f2c3t1ky.js} +2 -2
  72. package/dist/{chunk-x2gxx8eg.js → chunk-f4gqzg1y.js} +2 -2
  73. package/dist/chunk-f9smbpkp.js +2 -0
  74. package/dist/chunk-fb8sw7fc.js +2 -0
  75. package/dist/{chunk-029qng4p.js → chunk-fsz9k5k0.js} +5 -5
  76. package/dist/chunk-g8fg3kq8.js +2 -0
  77. package/dist/{chunk-fnk16531.js → chunk-g8ve8pag.js} +6 -6
  78. package/dist/{chunk-0b77b7e0.js → chunk-gjfgmhpw.js} +1 -1
  79. package/dist/chunk-gw4pycg0.js +2 -0
  80. package/dist/{chunk-an387127.js → chunk-h16qbyjd.js} +2 -2
  81. package/dist/chunk-h5srt1gz.js +2 -0
  82. package/dist/{chunk-t63f15yh.js → chunk-hez09ssh.js} +2 -2
  83. package/dist/{chunk-2aarvd3a.js → chunk-hnqpqtk2.js} +6 -6
  84. package/dist/chunk-hrb9fmq0.js +2 -0
  85. package/dist/{chunk-q4t69m06.js → chunk-hx2s1j09.js} +8 -8
  86. package/dist/{chunk-zcs0nh8b.js → chunk-j0sj81bg.js} +6 -6
  87. package/dist/{chunk-fcbd7kwj.js → chunk-j28r2d0q.js} +2 -2
  88. package/dist/chunk-jb5najk3.js +1101 -0
  89. package/dist/chunk-jc7823qy.js +2 -0
  90. package/dist/chunk-jresy8fn.js +2 -0
  91. package/dist/{chunk-pdz9xm5s.js → chunk-jtgb1s62.js} +2 -2
  92. package/dist/{chunk-netw39rp.js → chunk-k3j8kd19.js} +5 -5
  93. package/dist/{chunk-34hsn8tn.js → chunk-k93mp66m.js} +144 -136
  94. package/dist/{chunk-791gt3mj.js → chunk-m1n9re2p.js} +6 -6
  95. package/dist/{chunk-8v2vbc4y.js → chunk-m5nzpjej.js} +1 -1
  96. package/dist/chunk-m6d2bq3y.js +2 -0
  97. package/dist/chunk-m8r7v1js.js +2 -0
  98. package/dist/{chunk-64hrtvvq.js → chunk-mpphyb4g.js} +1 -1
  99. package/dist/{chunk-s9b6abkb.js → chunk-mwxbdpb1.js} +2 -2
  100. package/dist/chunk-mymb85q5.js +3 -0
  101. package/dist/{chunk-83p5k4eb.js → chunk-narz7105.js} +2 -2
  102. package/dist/chunk-ngahc72q.js +2 -0
  103. package/dist/{chunk-khrckvwn.js → chunk-nqfpvejh.js} +1 -1
  104. package/dist/chunk-nvtp22qp.js +2 -0
  105. package/dist/{chunk-3y0bmmgq.js → chunk-ny5j5jhm.js} +3 -3
  106. package/dist/{chunk-4ckxs446.js → chunk-pd89jnqk.js} +3 -3
  107. package/dist/{chunk-9gdb9a7z.js → chunk-q73xkgn0.js} +76 -76
  108. package/dist/{chunk-3t3p2c1t.js → chunk-q7fh1xka.js} +6 -6
  109. package/dist/{chunk-5n4qg8za.js → chunk-qc93ce5h.js} +2 -2
  110. package/dist/{chunk-3457kk19.js → chunk-qf2aa8qe.js} +6 -6
  111. package/dist/{chunk-jb5sftzz.js → chunk-r3hden6p.js} +2 -2
  112. package/dist/{chunk-7dc3n69c.js → chunk-r3j4m04w.js} +2 -2
  113. package/dist/chunk-r5re2zj0.js +2 -0
  114. package/dist/{chunk-wp6q0geg.js → chunk-rbmt5w9v.js} +2 -2
  115. package/dist/chunk-rgv7rjrs.js +2 -0
  116. package/dist/{chunk-67abad76.js → chunk-rj4j7qcj.js} +1 -1
  117. package/dist/chunk-s9hw4vcx.js +2 -0
  118. package/dist/{chunk-g1tq4xdb.js → chunk-serrx31a.js} +2 -2
  119. package/dist/{chunk-tr33tzts.js → chunk-sfkexejc.js} +2 -2
  120. package/dist/{chunk-0eym6mhw.js → chunk-snxzvyz3.js} +1 -1
  121. package/dist/chunk-sx1aer4p.js +2 -0
  122. package/dist/{chunk-p3dkhz9v.js → chunk-tdrcn1mn.js} +30 -30
  123. package/dist/chunk-tdvmf3ge.js +2 -0
  124. package/dist/{chunk-2t85t7zc.js → chunk-tz4wh90e.js} +5 -5
  125. package/dist/chunk-tzhm09xq.js +2 -0
  126. package/dist/{chunk-vx14d8zm.js → chunk-tzk4cmvm.js} +5 -5
  127. package/dist/{chunk-9dg5ja4w.js → chunk-v402swbm.js} +1 -1
  128. package/dist/chunk-vf9s563f.js +2 -0
  129. package/dist/chunk-vpmk1w2t.js +2 -0
  130. package/dist/chunk-wj5j2ekg.js +2 -0
  131. package/dist/{chunk-b6318vv3.js → chunk-wk50m71x.js} +1 -1
  132. package/dist/{chunk-nvmdwrz4.js → chunk-wv412s1h.js} +7 -7
  133. package/dist/{chunk-rb2a1qxb.js → chunk-x5dc06p5.js} +6 -6
  134. package/dist/chunk-x7z2s532.js +2 -0
  135. package/dist/{chunk-ap30qs8p.js → chunk-x9wwd2ee.js} +2 -2
  136. package/dist/{chunk-ncs2j5kc.js → chunk-xaddgvkx.js} +2 -2
  137. package/dist/{chunk-6n11z33h.js → chunk-y3w2rc1y.js} +5 -5
  138. package/dist/chunk-ye3yyq6n.js +12 -0
  139. package/dist/{chunk-d9pxe492.js → chunk-yen9xzzg.js} +6 -6
  140. package/dist/chunk-yg1wcsbj.js +2 -0
  141. package/dist/{chunk-hf4hsdep.js → chunk-z4dpz6dh.js} +3 -3
  142. package/dist/{chunk-9qqzxd5y.js → chunk-z5pm69w1.js} +39 -39
  143. package/dist/{chunk-xyyt8v1r.js → chunk-zkx2m308.js} +12 -12
  144. package/dist/cli.js +19 -19
  145. package/dist/client/signals-public-api-runtime.js +1 -0
  146. package/dist/composables/use-broadcast-stream.d.ts +1 -1
  147. package/dist/craft-bridge.d.ts +0 -18
  148. package/dist/craft-bridge.js +12 -7
  149. package/dist/craft-components.d.ts +0 -20
  150. package/dist/craft-components.js +5 -13
  151. package/dist/craft-entry.js +2 -2
  152. package/dist/craft.js +2 -2
  153. package/dist/document-injection.d.ts +2 -0
  154. package/dist/document-injection.js +8 -0
  155. package/dist/native-build.js +2 -1
  156. package/dist/pwa.js +3 -3
  157. package/dist/runtime-globals.js +1 -0
  158. package/dist/signals.js +3 -0
  159. package/dist/ssg.js +15 -15
  160. package/dist/stx-module.d.ts +1 -0
  161. package/dist/unresolved-identifiers.js +0 -1
  162. package/package.json +5 -5
  163. package/stx-module.d.ts +1 -0
  164. package/stx.d.ts +1 -0
  165. package/dist/chunk-12vjp2gr.js +0 -2
  166. package/dist/chunk-18fr730w.js +0 -2
  167. package/dist/chunk-29sapda2.js +0 -2
  168. package/dist/chunk-2qf6kd9r.js +0 -2
  169. package/dist/chunk-2snfd93r.js +0 -2
  170. package/dist/chunk-2zd7v9xw.js +0 -2
  171. package/dist/chunk-48ye65g0.js +0 -2
  172. package/dist/chunk-4c1fbthr.js +0 -2
  173. package/dist/chunk-4fxg20je.js +0 -2
  174. package/dist/chunk-58v34kba.js +0 -2
  175. package/dist/chunk-5z8bc75p.js +0 -2
  176. package/dist/chunk-8s4rxgs8.js +0 -2
  177. package/dist/chunk-8ssryq8y.js +0 -2
  178. package/dist/chunk-9736003n.js +0 -2
  179. package/dist/chunk-97r557ws.js +0 -2
  180. package/dist/chunk-9kxykbg7.js +0 -2
  181. package/dist/chunk-bcr8sq50.js +0 -2
  182. package/dist/chunk-cn692w5v.js +0 -2
  183. package/dist/chunk-d6anxge7.js +0 -2
  184. package/dist/chunk-dhdt7e54.js +0 -2
  185. package/dist/chunk-e8n0x8dt.js +0 -2
  186. package/dist/chunk-ew7sdykm.js +0 -3033
  187. package/dist/chunk-fn4a8fja.js +0 -2
  188. package/dist/chunk-fvk1xr5a.js +0 -2
  189. package/dist/chunk-fxvxkb55.js +0 -2
  190. package/dist/chunk-g6wd49b5.js +0 -2
  191. package/dist/chunk-gk0nq2ky.js +0 -2
  192. package/dist/chunk-h8kbcz9t.js +0 -2
  193. package/dist/chunk-hj72xfv9.js +0 -2
  194. package/dist/chunk-hvytbft6.js +0 -2
  195. package/dist/chunk-hw70h16g.js +0 -2
  196. package/dist/chunk-j1f39jyb.js +0 -12
  197. package/dist/chunk-jjwfksv0.js +0 -2
  198. package/dist/chunk-kk8y8yba.js +0 -2
  199. package/dist/chunk-mfp4563h.js +0 -2
  200. package/dist/chunk-mzwa2478.js +0 -2
  201. package/dist/chunk-nq13s6sd.js +0 -2
  202. package/dist/chunk-pwaby9gk.js +0 -2
  203. package/dist/chunk-pxh3x1m6.js +0 -2
  204. package/dist/chunk-r6bc2q44.js +0 -2
  205. package/dist/chunk-rdj74dqc.js +0 -2
  206. package/dist/chunk-rn7s8h5j.js +0 -2
  207. package/dist/chunk-rtbkjq0y.js +0 -2
  208. package/dist/chunk-rwjgpmrw.js +0 -2
  209. package/dist/chunk-rwxtmr96.js +0 -2
  210. package/dist/chunk-sy1btryy.js +0 -2
  211. package/dist/chunk-t3m5bkqq.js +0 -2
  212. package/dist/chunk-t7mbaf69.js +0 -2
  213. package/dist/chunk-tjstkc0v.js +0 -2
  214. package/dist/chunk-vcssgx5z.js +0 -2
  215. package/dist/chunk-w2h6nn70.js +0 -2
  216. package/dist/chunk-w8b2jt4q.js +0 -2
  217. package/dist/chunk-wan4x3sg.js +0 -2
  218. package/dist/chunk-wjvhhy95.js +0 -2
  219. package/dist/chunk-wt18wv6x.js +0 -3
  220. package/dist/chunk-x5h95nnq.js +0 -2
  221. package/dist/chunk-ykmcnk3x.js +0 -2
  222. package/dist/chunk-z05dbey1.js +0 -2
  223. package/dist/chunk-z3anq3t4.js +0 -2
  224. package/dist/chunk-zgnfah3n.js +0 -2
  225. package/dist/chunk-zqhcdzby.js +0 -3
@@ -1,5 +1,10 @@
1
1
  // @bun
2
- import{Yc,Zc,Qc}from"./chunk-wt18wv6x.js";import{le,Fn,zn,so,Hr,Vr,Hn,Vn,oo,Ur}from"./chunk-jb5sftzz.js";function z(t,a,i,r,d,y){let o=!0,u=new Set,f=(p)=>r.get?r.get(p):p,l=()=>f(t());return Object.defineProperty(l,"_isSignal",{value:!0}),Object.defineProperty(l,"modifiers",{get:a}),l.set=(p)=>{if(!o)return;let h=a(),e=r.set?r.set(p,h):p;if(h.trim&&typeof e==="string")e=e.trim();if(h.number&&typeof e==="string"&&e!==""){let s=Number(e);if(!Number.isNaN(s))e=s}if(Object.is(t(),e))return;t.set(e),i(e)},l.update=(p)=>l.set(p(l())),l.input=(p)=>{if(!a().lazy)l.set(p)},l.change=(p)=>{if(a().lazy)l.set(p)},l.subscribe=(p)=>{if(!o)return()=>{};let h=t.subscribe((e,s)=>p(f(e),f(s)));return u.add(h),()=>{h(),u.delete(h)}},Object.defineProperty(l,"value",{get:l,set:l.set}),d(()=>{o=!1,u.forEach((p)=>p()),u.clear()}),y?.(()=>{o=!0}),l}function X(t,a=!0,i){if(!a||!t||typeof window>"u")return;let r=window;if(!r.__STX_DATA__){let y=document.querySelector("script[data-stx-server-data]");try{let o=JSON.parse(y?.textContent||"{}");r.__STX_DATA__=o&&typeof o==="object"&&!Array.isArray(o)?o:{}}catch{r.__STX_DATA__={}}}let d=r.__STX_DATA__;if(d&&Object.prototype.hasOwnProperty.call(d,t))try{return{data:i?i(d[t]):d[t]}}catch(y){return{data:null,error:y instanceof Error?y:Error(String(y))}}return}function Q(t){if(typeof window>"u")return;let a=window;if(t===void 0)a.__STX_DATA__={};else{if(!a.__STX_DATA__)try{let i=JSON.parse(document.querySelector("script[data-stx-server-data]")?.textContent||"{}");a.__STX_DATA__=i&&typeof i==="object"&&!Array.isArray(i)?i:{}}catch{a.__STX_DATA__={}}if(a.__STX_DATA__)delete a.__STX_DATA__[t]}}function Y(t){let a=null;try{a=typeof indexedDB<"u"?indexedDB:null}catch{a=null}if(!a)return null;let i=a,r=t||"stx-kept",d=null,y=()=>{if(!d)d=new Promise((u,f)=>{let l=i.open(r,1);l.onupgradeneeded=()=>{l.result.createObjectStore("kv")},l.onsuccess=()=>u(l.result),l.onerror=()=>f(l.error),l.onblocked=()=>f(Error("blocked"))}),d.catch(()=>{d=null});return d},o=(u,f)=>y().then((l)=>new Promise((p,h)=>{let e=l.transaction("kv",u),s=f(e.objectStore("kv"));e.oncomplete=()=>p(s?s.result:void 0),e.onerror=()=>h(e.error),e.onabort=()=>h(e.error)}));return{get:(u)=>o("readonly",(f)=>f.get(u)),set:(u,f)=>o("readwrite",(l)=>{l.put(f,u)}),remove:(u)=>o("readwrite",(f)=>{f.delete(u)}),removePrefix:(u)=>o("readwrite",(f)=>{f.delete(IDBKeyRange.bound(u,`${u}\uFFFF`))})}}function J(t,a){let i=t||{},r=null;if(i.storage!==void 0)r=i.storage;else try{r=typeof localStorage<"u"?localStorage:null}catch{r=null}let d=null,y=i.backend!==void 0;if(y)d=i.backend||null;let o=()=>{if(y)return d;y=!0;try{d=a?a():null}catch{d=null}if(d){let n=d;n.get("__stx_probe__").catch(()=>{if(d===n)d=null})}return d},u=i.limit||32768,f=i.defer||((n)=>{let c=typeof requestIdleCallback==="function"?requestIdleCallback:null;if(c)c(n,{timeout:200});else setTimeout(n,16)}),l=new Map,p=new Set,h=new Map,e=!1,s=Promise.resolve(),v=(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}},E=(n)=>{try{if(r)r.removeItem(n)}catch{}},S=()=>{if(e=!1,!h.size)return s;let n=Array.from(h.entries());return h.clear(),s=s.then(()=>Promise.all(n.map(([c,g])=>{if(!d){p.delete(c);try{m(c,JSON.stringify(g===void 0?null:g))}catch{}return}let _;try{return _={v:g},d.set(c,_).catch(()=>{let x;try{x=JSON.stringify(g)}catch{return}return d?d.set(c,{j:x}).catch(()=>{m(c,x)}):void 0})}catch{return}}))).then(()=>{}),s},N=(n,c)=>{if(h.set(n,c),p.add(n),e)return;e=!0,f(()=>{S()})},D=(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:v(c.j)};return},k={peek(n){if(l.has(n))return{value:l.get(n)};let c=null;try{c=r?r.getItem(n):null}catch{c=null}if(c===null||c===void 0)return;let g=v(c);return l.set(n,g),{value:g}},load(n){let c=k.peek(n),g=c?null:o();if(c||!g)return Promise.resolve(c);return g.get(n).then((_)=>{if(l.has(n))return{value:l.get(n)};let x=D(_);if(x)l.set(n,x.value),p.add(n);return x},()=>{return})},set(n,c){if(l.set(n,c),d&&p.has(n)){N(n,c);return}let g;try{g=JSON.stringify(c===void 0?null:c)}catch{return}if(g.length<=u&&m(n,g))return;if(!o()){if(g.length>u)m(n,g);return}E(n),N(n,c)},forget(n){for(let g of Array.from(l.keys()))if(g.indexOf(n)===0)l.delete(g);for(let g of Array.from(h.keys()))if(g.indexOf(n)===0)h.delete(g);for(let g of Array.from(p))if(g.indexOf(n)===0)p.delete(g);try{if(r)for(let g=r.length-1;g>=0;g--){let _=r.key(g);if(_&&_.indexOf(n)===0)r.removeItem(_)}}catch{}let c=o();if(!c)return s;return s=s.then(()=>c.removePrefix(n)).catch(()=>{}),s},flush(){return S()}};try{if(typeof document<"u"&&document.addEventListener)document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")S()});if(typeof addEventListener==="function")addEventListener("pagehide",()=>{S()})}catch{}return k}function Z(t,a){if(!t)return!1;if(t===a.key)return!0;if(!a.url)return!1;if(t===a.url)return!0;try{let i=typeof location<"u"&&location.origin&&location.origin!=="null"?location.origin:"http://localhost",r=new URL(t,i),d=new URL(a.url,i);if(r.origin!==d.origin||r.pathname!==d.pathname)return!1;return!r.search||r.search===d.search}catch{return!1}}function ee(t){let a=t.prefix||"stx:kept:",i=t.matches||((e,s)=>e===s.key||e===s.url),r=new Set,d=new Map,y,o=(e)=>e===void 0?y:e,u=(e,s)=>{let v=o(s);if(v===!1||v===null||v==="")return null;return`${a}${v===void 0?"":`${v}:`}query:${e}`},f=(e)=>{let s=e&&e.value;if(!s||typeof s!=="object"||!("d"in s))return;return{data:s.d,at:Number(s.at)||0}},l=()=>{let e=globalThis;return e.__stx_outboxes instanceof Map?e.__stx_outboxes:null},p={setScope(e){y=e},scope:()=>y,keyFor:u,seed(e,s){let v=u(e,s);return v?f(t.kept.peek(v)):void 0},restore(e,s){let v=u(e,s);return v?t.kept.load(v).then(f):Promise.resolve(void 0)},persist(e,s,v){let m=u(e,v);if(m)t.kept.set(m,{d:s,at:Date.now()})},overlay(e,s,v){let m=l();if(!m||!m.size)return s;let E=s;return m.forEach((S)=>{try{E=S.overlay(e,E,v)}catch{}}),E},watch(e){return r.add(e),()=>{r.delete(e)}},cachedQuery(e,s){let v=d.get(e);if(v){if(s&&v.__options)v.__options(s);return v}let m=s||{},E=m.initial===void 0?null:m.initial,S=()=>typeof m.scope==="function"?m.scope():m.scope,N=()=>(typeof m.url==="function"?m.url():m.url)||null,D=()=>({key:e,url:N()}),k=S(),n=E,c=0,g=t.sharedRequest(),_=0,x=p.seed(e,k);if(x)n=x.data;let I=t.state(p.overlay(D(),n)),U=t.state(!1),q=t.state(!1),K=t.state(null),P=t.state(x?x.at:0),R=0,F=()=>{I.set(p.overlay(D(),n))},W=(b)=>{let w=R;p.restore(e,b).then((T)=>{if(!T||w!==R||c)return;n=T.data,P.set(T.at),F()})};if(!x)W(k);let wt=()=>{let b=S();if(b===k)return;k=b,R++,_=0,q.set(!1),U.set(!1),c=0;let w=p.seed(e,k);if(n=w?w.data:E,P.set(w?w.at:0),F(),!w)W(k)},_t=(b,w)=>{let T=m.timeoutMs||15000,C=typeof AbortController<"u"?new AbortController:null,O=null,V=new Promise((M,j)=>{O=setTimeout(()=>{if(C)C.abort();j(Error("The request took too long."))},T)}),A;if(m.load)A=m.load({force:b,url:w,signal:C?C.signal:void 0});else if(w){let M=m.fetch||((L,H)=>fetch(L,H)),j={method:"GET",headers:{Accept:"application/json"}};if(b)j.cache="no-cache";if(C)j.signal=C.signal;A=M(w,j).then((L)=>{if(!L.ok)return L.json().catch(()=>null).then((H)=>{throw Error(H&&(H.error||H.message)||`Request failed (${L.status})`)});return L.json()})}else return Promise.resolve(I());return Promise.race([A,V]).then((M)=>{if(O)clearTimeout(O);return m.transform?m.transform(M):M},(M)=>{if(O)clearTimeout(O);throw M})},G=(b)=>{let w=R,T=N(),C=()=>{if(w!==R)return Promise.resolve(I());if(_++,q.set(!0),c===0&&!P())U.set(!0);let V=()=>{if(w!==R)return;if(_=Math.max(0,_-1),!_)q.set(!1),U.set(!1)};return _t(b,T).then((A)=>{if(w!==R||T!==N())return V(),I();return n=A,c=Date.now(),P.set(c),K.set(null),p.persist(e,A,k),F(),V(),I()},(A)=>{if(w===R&&T===N())K.set(A&&A.message?A.message:"Could not load.");return V(),I()})},O=`${w} ${T||""}`;return b?g.fresh(O,C):g.run(O,C)},B={data:I,loading:U,isFetching:q,error:K,updatedAt:P,get key(){return e},load(b){if(wt(),!b&&c&&Date.now()-c<(m.staleTime||0))return Promise.resolve(I());return G(!!b)},refresh(){return B.load(!0)},set(b){n=typeof b==="function"?b(n):b,p.persist(e,n,k),F()},invalidate(){c=0},__options(b){m={...m,...b}}};if(r.add({target:D,updated:()=>{if(c||P())G(!1)},outbox:(b)=>{if(b)n=p.overlay(D(),n,b.id),c=0,G(!0);F()}}),d.set(e,B),m.immediate)B.load();return B}},h=typeof window<"u"?window:typeof addEventListener==="function"?globalThis:null;if(t.listen!==!1&&h&&typeof h.addEventListener==="function")h.addEventListener("stx:updated",(e)=>{let s=e.detail||{};if(s.kind!=="api"||typeof s.url!=="string")return;r.forEach((v)=>{if(i(s.url,v.target()))v.updated()})}),h.addEventListener("stx:outbox",(e)=>{let s=e.detail||{},v=s.sent&&typeof s.sent.id==="string"?s.sent:null;r.forEach((m)=>{if(v){let E=Array.isArray(v.affects)?v.affects:[],S=m.target();if(!E.some((N)=>i(N,S)))return}m.outbox(v)})});return p}function te(t){let a=t&&t.covers||((o,u)=>Object.is(o,u)),i=[],r=[],d=0,y=(o,u)=>{let f;try{f=Promise.resolve(u())}catch(h){f=Promise.reject(h)}let l={key:o,promise:f};i.push(l);let p=()=>{let h=i.indexOf(l);if(h!==-1)i.splice(h,1)};return f.then(p,p),f};return{run(o,u){for(let f of i)if(a(f.key,o))return f.promise;for(let f of r)if(a(f.key,o))return f.promise;return y(o,u)},fresh(o,u){for(let h of r)if(a(h.key,o))return h.promise;let f=i.filter((h)=>a(h.key,o)).map((h)=>h.promise);if(!f.length)return y(o,u);let l={key:o,promise:null},p=()=>{};return l.promise=Promise.all(f.map((h)=>h.then(p,p))).then(()=>{let h=r.indexOf(l);if(h!==-1)r.splice(h,1);return y(o,u)}),r.push(l),l.promise},latest(){let o=++d;return()=>o===d},get busy(){return i.length>0||r.length>0}}}var ne=` function useColorMode(options) {
2
+ import{Zc,Qc,el}from"./chunk-ez35607j.js";import{le,Fn,zn,oo,Hr,Vr,Hn,Vn,io,Ur}from"./chunk-r3hden6p.js";function z(e,s,i,a,d,y){let r=!0,u=new Set,h=(p)=>a.get?a.get(p):p,o=()=>h(e());return Object.defineProperty(o,"_isSignal",{value:!0}),Object.defineProperty(o,"modifiers",{get:s}),o.set=(p)=>{if(!r)return;let f=s(),t=a.set?a.set(p,f):p;if(f.trim&&typeof t==="string")t=t.trim();if(f.number&&typeof t==="string"&&t!==""){let l=Number(t);if(!Number.isNaN(l))t=l}if(Object.is(e(),t))return;e.set(t),i(t)},o.update=(p)=>o.set(p(o())),o.input=(p)=>{if(!s().lazy)o.set(p)},o.change=(p)=>{if(s().lazy)o.set(p)},o.subscribe=(p)=>{if(!r)return()=>{};let f=e.subscribe((t,l)=>p(h(t),h(l)));return u.add(f),()=>{f(),u.delete(f)}},Object.defineProperty(o,"value",{get:o,set:o.set}),d(()=>{r=!1,u.forEach((p)=>p()),u.clear()}),y?.(()=>{r=!0}),o}function X(e,s=!0,i){if(!s||!e||typeof window>"u")return;let a=window;if(!a.__STX_DATA__){let y=document.querySelector("script[data-stx-server-data]");try{let r=JSON.parse(y?.textContent||"{}");a.__STX_DATA__=r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{a.__STX_DATA__={}}}let d=a.__STX_DATA__;if(d&&Object.prototype.hasOwnProperty.call(d,e))try{return{data:i?i(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 s=window;if(e===void 0)s.__STX_DATA__={};else{if(!s.__STX_DATA__)try{let i=JSON.parse(document.querySelector("script[data-stx-server-data]")?.textContent||"{}");s.__STX_DATA__=i&&typeof i==="object"&&!Array.isArray(i)?i:{}}catch{s.__STX_DATA__={}}if(s.__STX_DATA__)delete s.__STX_DATA__[e]}}function Y(e){let s=null;try{s=typeof indexedDB<"u"?indexedDB:null}catch{s=null}if(!s)return null;let i=s,a=e||"stx-kept",d=null,y=()=>{if(!d)d=new Promise((u,h)=>{let o=i.open(a,1);o.onupgradeneeded=()=>{o.result.createObjectStore("kv")},o.onsuccess=()=>u(o.result),o.onerror=()=>h(o.error),o.onblocked=()=>h(Error("blocked"))}),d.catch(()=>{d=null});return d},r=(u,h)=>y().then((o)=>new Promise((p,f)=>{let t=o.transaction("kv",u),l=h(t.objectStore("kv"));t.oncomplete=()=>p(l?l.result:void 0),t.onerror=()=>f(t.error),t.onabort=()=>f(t.error)}));return{get:(u)=>r("readonly",(h)=>h.get(u)),set:(u,h)=>r("readwrite",(o)=>{o.put(h,u)}),remove:(u)=>r("readwrite",(h)=>{h.delete(u)}),removePrefix:(u)=>r("readwrite",(h)=>{h.delete(IDBKeyRange.bound(u,`${u}\uFFFF`))})}}function J(e,s){let i=e||{},a=null;if(i.storage!==void 0)a=i.storage;else try{a=typeof localStorage<"u"?localStorage:null}catch{a=null}let d=null,y=i.backend!==void 0;if(y)d=i.backend||null;let r=()=>{if(y)return d;y=!0;try{d=s?s():null}catch{d=null}if(d){let n=d;n.get("__stx_probe__").catch(()=>{if(d===n)d=null})}return d},u=i.limit||32768,h=i.defer||((n)=>{let c=typeof requestIdleCallback==="function"?requestIdleCallback:null;if(c)c(n,{timeout:200});else setTimeout(n,16)}),o=new Map,p=new Set,f=new Map,t=!1,l=Promise.resolve(),g=(n)=>{try{return JSON.parse(n)}catch{return n}},m=(n,c)=>{if(!a)return!1;try{return a.setItem(n,c),!0}catch{return!1}},_=(n)=>{try{if(a)a.removeItem(n)}catch{}},k=()=>{if(t=!1,!f.size)return l;let n=Array.from(f.entries());return f.clear(),l=l.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(()=>{}),l},N=(n,c)=>{if(f.set(n,c),p.add(n),t)return;t=!0,h(()=>{k()})},D=(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(o.has(n))return{value:o.get(n)};let c=null;try{c=a?a.getItem(n):null}catch{c=null}if(c===null||c===void 0)return;let v=g(c);return o.set(n,v),{value:v}},load(n){let c=E.peek(n),v=c?null:r();if(c||!v)return Promise.resolve(c);return v.get(n).then((x)=>{if(o.has(n))return{value:o.get(n)};let S=D(x);if(S)o.set(n,S.value),p.add(n);return S},()=>{return})},set(n,c){if(o.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(!r()){if(v.length>u)m(n,v);return}_(n),N(n,c)},forget(n){for(let v of Array.from(o.keys()))if(v.indexOf(n)===0)o.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(a)for(let v=a.length-1;v>=0;v--){let x=a.key(v);if(x&&x.indexOf(n)===0)a.removeItem(x)}}catch{}let c=r();if(!c)return l;return l=l.then(()=>c.removePrefix(n)).catch(()=>{}),l},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,s){if(!e)return!1;if(e===s.key)return!0;if(!s.url)return!1;if(e===s.url)return!0;try{let i=typeof location<"u"&&location.origin&&location.origin!=="null"?location.origin:"http://localhost",a=new URL(e,i),d=new URL(s.url,i);if(a.origin!==d.origin||a.pathname!==d.pathname)return!1;return!a.search||a.search===d.search}catch{return!1}}function ee(e){let s=e.prefix||"stx:kept:",i=e.matches||((t,l)=>t===l.key||t===l.url),a=new Set,d=new Map,y,r=(t)=>t===void 0?y:t,u=(t,l)=>{let g=r(l);if(g===!1||g===null||g==="")return null;return`${s}${g===void 0?"":`${g}:`}query:${t}`},h=(t)=>{let l=t&&t.value;if(!l||typeof l!=="object"||!("d"in l))return;return{data:l.d,at:Number(l.at)||0}},o=()=>{let t=globalThis;return t.__stx_outboxes instanceof Map?t.__stx_outboxes:null},p={setScope(t){y=t},scope:()=>y,keyFor:u,seed(t,l){let g=u(t,l);return g?h(e.kept.peek(g)):void 0},restore(t,l){let g=u(t,l);return g?e.kept.load(g).then(h):Promise.resolve(void 0)},persist(t,l,g){let m=u(t,g);if(m)e.kept.set(m,{d:l,at:Date.now()})},overlay(t,l,g){let m=o();if(!m||!m.size)return l;let _=l;return m.forEach((k)=>{try{_=k.overlay(t,_,g)}catch{}}),_},watch(t){return a.add(t),()=>{a.delete(t)}},cachedQuery(t,l){let g=d.get(t);if(g){if(l&&g.__options)g.__options(l);return g}let m=l||{},_=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,D=()=>({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 I=e.state(p.overlay(D(),n)),U=e.state(!1),q=e.state(!1),K=e.state(null),P=e.state(S?S.at:0),R=0,F=()=>{I.set(p.overlay(D(),n))},W=(b)=>{let w=R;p.restore(t,b).then((T)=>{if(!T||w!==R||c)return;n=T.data,P.set(T.at),F()})};if(!S)W(E);let _t=()=>{let b=k();if(b===E)return;E=b,R++,x=0,q.set(!1),U.set(!1),c=0;let w=p.seed(t,E);if(n=w?w.data:_,P.set(w?w.at:0),F(),!w)W(E)},xt=(b,w)=>{let T=m.timeoutMs||15000,C=typeof AbortController<"u"?new AbortController:null,O=null,V=new Promise((M,j)=>{O=setTimeout(()=>{if(C)C.abort();j(Error("The request took too long."))},T)}),A;if(m.load)A=m.load({force:b,url:w,signal:C?C.signal:void 0});else if(w){let M=m.fetch||((L,H)=>fetch(L,H)),j={method:"GET",headers:{Accept:"application/json"}};if(b)j.cache="no-cache";if(C)j.signal=C.signal;A=M(w,j).then((L)=>{if(!L.ok)return L.json().catch(()=>null).then((H)=>{throw Error(H&&(H.error||H.message)||`Request failed (${L.status})`)});return L.json()})}else return Promise.resolve(I());return Promise.race([A,V]).then((M)=>{if(O)clearTimeout(O);return m.transform?m.transform(M):M},(M)=>{if(O)clearTimeout(O);throw M})},G=(b)=>{let w=R,T=N(),C=()=>{if(w!==R)return Promise.resolve(I());if(x++,q.set(!0),c===0&&!P())U.set(!0);let V=()=>{if(w!==R)return;if(x=Math.max(0,x-1),!x)q.set(!1),U.set(!1)};return xt(b,T).then((A)=>{if(w!==R||T!==N())return V(),I();return n=A,c=Date.now(),P.set(c),K.set(null),p.persist(t,A,E),F(),V(),I()},(A)=>{if(w===R&&T===N())K.set(A&&A.message?A.message:"Could not load.");return V(),I()})},O=`${w} ${T||""}`;return b?v.fresh(O,C):v.run(O,C)},B={data:I,loading:U,isFetching:q,error:K,updatedAt:P,get key(){return t},load(b){if(_t(),!b&&c&&Date.now()-c<(m.staleTime||0))return Promise.resolve(I());return G(!!b)},refresh(){return B.load(!0)},set(b){n=typeof b==="function"?b(n):b,p.persist(t,n,E),F()},invalidate(){c=0},__options(b){m={...m,...b}}};if(a.add({target:D,updated:()=>{if(c||P())G(!1)},outbox:(b)=>{if(b)n=p.overlay(D(),n,b.id),c=0,G(!0);F()}}),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 l=t.detail||{};if(l.kind!=="api"||typeof l.url!=="string")return;a.forEach((g)=>{if(i(l.url,g.target()))g.updated()})}),f.addEventListener("stx:outbox",(t)=>{let l=t.detail||{},g=l.sent&&typeof l.sent.id==="string"?l.sent:null;a.forEach((m)=>{if(g){let _=Array.isArray(g.affects)?g.affects:[],k=m.target();if(!_.some((N)=>i(N,k)))return}m.outbox(g)})});return p}function te(e){let s=e&&e.covers||((r,u)=>Object.is(r,u)),i=[],a=[],d=0,y=(r,u)=>{let h;try{h=Promise.resolve(u())}catch(f){h=Promise.reject(f)}let o={key:r,promise:h};i.push(o);let p=()=>{let f=i.indexOf(o);if(f!==-1)i.splice(f,1)};return h.then(p,p),h};return{run(r,u){for(let h of i)if(s(h.key,r))return h.promise;for(let h of a)if(s(h.key,r))return h.promise;return y(r,u)},fresh(r,u){for(let f of a)if(s(f.key,r))return f.promise;let h=i.filter((f)=>s(f.key,r)).map((f)=>f.promise);if(!h.length)return y(r,u);let o={key:r,promise:null},p=()=>{};return o.promise=Promise.all(h.map((f)=>f.then(p,p))).then(()=>{let f=a.indexOf(o);if(f!==-1)a.splice(f,1);return y(r,u)}),a.push(o),o.promise},latest(){let r=++d;return()=>r===d},get busy(){return i.length>0||a.length>0}}}function ne(e){let s=!1,i=null,a=null,d=0;async function y(){if(s)return;i=new AbortController;try{let r=await e.request(e.endpoint,{signal:i.signal,cache:"no-store",headers:{Accept:"text/event-stream"}});if(!r.ok||!r.body||!r.headers.get("content-type")?.includes("text/event-stream"))throw Error("Broadcast stream unavailable");if(s){await r.body.cancel();return}let u=r.body.getReader(),h=new TextDecoder,o="";d=0,e.onStatus?.(!0),e.onConnected?.();try{while(!s){let{done:p,value:f}=await u.read();if(p)break;if(o+=h.decode(f,{stream:!0}).replace(/\r\n/g,`
3
+ `),o.length>1048576)throw Error("Broadcast frame too large");let t;while((t=o.indexOf(`
4
+
5
+ `))!==-1){let l=o.slice(0,t);o=o.slice(t+2);let g=l.split(`
6
+ `).filter((_)=>_.startsWith("data:")).map((_)=>_.slice(5).trimStart()).join(`
7
+ `);if(!g)continue;let m=JSON.parse(g);if(typeof m.channel==="string"&&typeof m.event==="string")e.onMessage(m)}}}finally{await u.cancel().catch(()=>{}),u.releaseLock()}}catch{}finally{if(e.onStatus?.(!1),!s)a=setTimeout(y,Math.min((e.reconnectDelay??1000)*2**d++,30000))}}return y(),{close(){if(s=!0,i?.abort(),a)clearTimeout(a);e.onStatus?.(!1)}}}var re=` function useColorMode(options) {
3
8
  options = options || {};
4
9
  // The pre-paint boot script (stacksjs/stx#1794) publishes the app's
5
10
  // configured options here. Reading them makes a bare useColorMode() agree
@@ -281,7 +286,7 @@ catch (e) {} }
281
286
  function usePreferredLight() { return useMediaQuery('(prefers-color-scheme: light)'); }
282
287
  function usePreferredReducedMotion() { return useMediaQuery('(prefers-reduced-motion: reduce)'); }
283
288
  function usePreferredContrast() { return useMediaQuery('(prefers-contrast: more)'); }
284
- `;function re(t){return` var __stxGeneratedIdCounter = 0;
289
+ `;function oe(e){return` var __stxGeneratedIdCounter = 0;
285
290
 
286
291
  // Stable, scope-aware DOM ids for component authoring. A component setup
287
292
  // runs with window.__STX_CURRENT_ELEMENT__ pointing at its compiled root, so
@@ -305,7 +310,7 @@ catch (e) {} }
305
310
  return normalizedPrefix + '-' + __stxGeneratedIdCounter;
306
311
  }
307
312
 
308
- var createModelSignal = ${t};
313
+ var createModelSignal = ${e};
309
314
  function useModel(name, options) {
310
315
  if (typeof name !== 'string') { options = name || {}; name = 'modelValue'; }
311
316
  options = options || {};
@@ -483,7 +488,7 @@ catch (e) {} }
483
488
  target.addEventListener(event, handler, opts);
484
489
  onDestroy(function() { target.removeEventListener(event, handler, opts); });
485
490
  }
486
- `}var oe=` // Minimal attribute-only pass for the host element of a deferred subtree.
491
+ `}var se=` // Minimal attribute-only pass for the host element of a deferred subtree.
487
492
  // The full walk happens on children via processElement.
488
493
  function processAttributesOnly(el, scope) {
489
494
  // Just call processElement but mark it as already visited to prevent
@@ -641,7 +646,7 @@ catch (e) {} }
641
646
  if (!Object.is(peek(function() { return propSignal(); }), value))
642
647
  propSignal.set(value);
643
648
  }
644
- `;var se=`
649
+ `;var ae=`
645
650
  // STX Signals Runtime (Development Build)
646
651
  console.log('[stx] signals runtime loading');
647
652
  // Pre-initialization shim: capture onMount/onDestroy calls made before the runtime IIFE runs
@@ -654,7 +659,7 @@ console.log('[stx] entering IIFE');
654
659
  (function() {
655
660
  'use strict';
656
661
 
657
- `,ae=` // Inject x-cloak CSS to prevent FOUC (Flash of Unstyled Content)
662
+ `,ie=` // Inject x-cloak CSS to prevent FOUC (Flash of Unstyled Content)
658
663
  // Elements with x-cloak are hidden until the runtime removes the attribute after mount
659
664
  var cloakStyle = document.getElementById ? document.getElementById('stx-cloak-style') : null;
660
665
  if (!cloakStyle) {
@@ -664,7 +669,7 @@ console.log('[stx] entering IIFE');
664
669
  document.head.appendChild(cloakStyle);
665
670
  }
666
671
 
667
- `;var ie=` function bindClass(el, expr, passedScope = componentScope, isVisible) {
672
+ `;var ce=` function bindClass(el, expr, passedScope = componentScope, isVisible) {
668
673
  const originalClasses = el.className;
669
674
  const capturedScope = mergeTemplateScopes(globalHelpers, passedScope, (findElementScope(el) || {}));
670
675
  const keys = Object.keys(capturedScope);
@@ -732,7 +737,7 @@ else {
732
737
  }
733
738
  });
734
739
  }
735
- `;var ce=` // ==========================================================================
740
+ `;var de=` // ==========================================================================
736
741
  // Public API
737
742
  // ==========================================================================
738
743
 
@@ -979,7 +984,7 @@ else {
979
984
  if (name in window) return window[name];
980
985
  return defaultValue;
981
986
  }
982
- `;var de=` function bindParentComponentProps(el, callerScope) {
987
+ `;var ue=` function bindParentComponentProps(el, callerScope) {
983
988
  if (!el || !el.getAttribute || el.__stx_parent_props_bound) return;
984
989
  var names = (el.getAttribute('data-stx-parent-bindings') || '').split(/\\s+/).filter(Boolean);
985
990
  if (!names.length) return;
@@ -1068,7 +1073,7 @@ else {
1068
1073
  });
1069
1074
  return resolved;
1070
1075
  }
1071
- `;var ue=` /*
1076
+ `;var pe=` /*
1072
1077
  * Run a component setup for one clone. The compiled setup finds its root by
1073
1078
  * the template's scope id, so the clone answers to that id while it runs,
1074
1079
  * and the scope it registers is moved to the clone's own id afterwards.
@@ -1242,7 +1247,7 @@ else {
1242
1247
  }
1243
1248
  });
1244
1249
  }
1245
- `;var pe=` // Component composition API (Phase 4)
1250
+ `;var fe=` // Component composition API (Phase 4)
1246
1251
  defineProps: function(definitions) {
1247
1252
  var props = window.__STX_CURRENT_PROPS__ || {};
1248
1253
  if (!definitions) return props;
@@ -1338,7 +1343,7 @@ else {
1338
1343
  }
1339
1344
  return chain;
1340
1345
  }
1341
- `;var fe=` // A false :if detaches its subtree before the DOMContentLoaded scope walk
1346
+ `;var me=` // A false :if detaches its subtree before the DOMContentLoaded scope walk
1342
1347
  // reaches nested components. Capture and bind their caller-owned props while
1343
1348
  // the ancestor chain is still connected, otherwise resolveComponentCallerScope
1344
1349
  // can no longer see the component that declared expressions such as
@@ -1419,7 +1424,7 @@ else {
1419
1424
  }
1420
1425
  return scripts;
1421
1426
  }
1422
- `;var me=` // ==========================================================================
1427
+ `;var ge=` // ==========================================================================
1423
1428
  // Container Cleanup (for SPA navigation)
1424
1429
  // ==========================================================================
1425
1430
 
@@ -1460,7 +1465,7 @@ else {
1460
1465
  // querySelectorAll. Without this the registry grew every navigation (#1775).
1461
1466
  sweepOrphanedScopes();
1462
1467
  }
1463
- `;var ge=` // Reactive cookie binding. Mirrors useLocalStorage's shape: returns a string-
1468
+ `;var ve=` // Reactive cookie binding. Mirrors useLocalStorage's shape: returns a string-
1464
1469
  // valued signal, writes on .set(), and respects cookie attributes via opts.
1465
1470
  // Setting the signal to '' deletes the cookie (max-age=0). Cookies don't fire
1466
1471
  // a 'storage' event, so cross-tab updates aren't auto-reflected; consumers
@@ -1515,7 +1520,7 @@ else {
1515
1520
  });
1516
1521
  return s;
1517
1522
  }
1518
- `;var ve=` // \u2500\u2500 Alert & Confirm dialogs \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
1523
+ `;var ye=` // \u2500\u2500 Alert & Confirm dialogs \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
1519
1524
  // Styled replacements for window.alert() and window.confirm().
1520
1525
  // Both return Promises and render into a temporary modal overlay.
1521
1526
 
@@ -1709,7 +1714,7 @@ else {
1709
1714
  function stxConfirm(message, options) {
1710
1715
  return _createDialog(message, options, true);
1711
1716
  }
1712
- `;var ye=` // ==========================================================================
1717
+ `;var be=` // ==========================================================================
1713
1718
  // DevTools introspection (stacksjs/stx#1747, Phase 1)
1714
1719
  // ==========================================================================
1715
1720
  // A read-only, console-usable inspector wired to the live runtime \u2014 no manual
@@ -1844,7 +1849,7 @@ else {
1844
1849
  return s ? __stxDevtoolsClassify(s) : null;
1845
1850
  },
1846
1851
  };
1847
- `;var be=` // ==========================================================================
1852
+ `;var we=` // ==========================================================================
1848
1853
  // Auto-initialization
1849
1854
  // ==========================================================================
1850
1855
 
@@ -2155,7 +2160,7 @@ catch (e) {
2155
2160
  window.__stxDomReadyHandler = stxDomReadyHandler;
2156
2161
  console.log('[stx] registering DOMContentLoaded handler');
2157
2162
  document.addEventListener('DOMContentLoaded', stxDomReadyHandler);
2158
- `;var we=` // \u2500\u2500 Drawer system \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
2163
+ `;var _e=` // \u2500\u2500 Drawer system \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
2159
2164
  // Same pattern as modal but slides from a side
2160
2165
  var drawer = {
2161
2166
  open: function(id) {
@@ -2193,7 +2198,7 @@ catch (e) {
2193
2198
  else drawer.open(id);
2194
2199
  }
2195
2200
  };
2196
- `;var _e=` // ==========================================================================
2201
+ `;var xe=` // ==========================================================================
2197
2202
  // Effect
2198
2203
  // ==========================================================================
2199
2204
 
@@ -2373,7 +2378,7 @@ finally {
2373
2378
  activeEffect = prev;
2374
2379
  }
2375
2380
  }
2376
- `;var xe=` // ==========================================================================
2381
+ `;var Se=` // ==========================================================================
2377
2382
  // Event Handler Shorthand (Feature #8)
2378
2383
  // ==========================================================================
2379
2384
 
@@ -2460,7 +2465,7 @@ finally {
2460
2465
 
2461
2466
  return null;
2462
2467
  }
2463
- `;var Se=` // Compiled expression functions, by parameter list and body. A binding was
2468
+ `;var ke=` // Compiled expression functions, by parameter list and body. A binding was
2464
2469
  // compiled with new Function on every evaluation: a page with a few hundred
2465
2470
  // names in scope rebuilt a function of a few hundred parameters for every
2466
2471
  // binding of every row, every time a row re-rendered. Opening a 386-message
@@ -2518,7 +2523,7 @@ finally {
2518
2523
  for (let i = 0; i < keys.length; i++) args[i] = scope[keys[i]];
2519
2524
  return args;
2520
2525
  }
2521
- `;var ke=` // Setup accessors refer to lexical variables assigned after mounting. Scope
2526
+ `;var Ee=` // Setup accessors refer to lexical variables assigned after mounting. Scope
2522
2527
  // copies preserve those accessors so rows and event closures do not freeze
2523
2528
  // their setup-time values. Data properties retain ordinary spread semantics.
2524
2529
  function assignTemplateScope(target, ...sources) {
@@ -2603,7 +2608,7 @@ catch (e) {
2603
2608
  return '';
2604
2609
  }
2605
2610
  }
2606
- `;var Ee=` // Short, ref-free repr of a value for the mutation log (so the buffer holds no
2611
+ `;var Te=` // Short, ref-free repr of a value for the mutation log (so the buffer holds no
2607
2612
  // live references and big objects don't bloat it).
2608
2613
  function __stxShort(v) {
2609
2614
  try {
@@ -2818,12 +2823,12 @@ catch (e) {
2818
2823
  }
2819
2824
  throw e;
2820
2825
  }
2821
- }`;function Te(t,a){return` // ==========================================================================
2826
+ }`;function Ae(e,s){return` // ==========================================================================
2822
2827
  // Declarative Data Fetching (Feature #6 - useFetch)
2823
2828
  // ==========================================================================
2824
2829
 
2825
- var readHydratedData = ${t};
2826
- var clearServerData = ${a};
2830
+ var readHydratedData = ${e};
2831
+ var clearServerData = ${s};
2827
2832
 
2828
2833
  function useFetch(urlOrFn, options = {}) {
2829
2834
  const hydrated = readHydratedData(options.key, options.hydrate !== false, options.transform);
@@ -2959,7 +2964,7 @@ else if (immediate) {
2959
2964
  get isEmpty() { return !loading() && !data(); }
2960
2965
  };
2961
2966
  }
2962
- `}var Ae=` function bindFor(el, passedScope = componentScope, attrName = '@for') {
2967
+ `}var Ne=` function bindFor(el, passedScope = componentScope, attrName = '@for') {
2963
2968
  if (el.__stx_for_bound) return;
2964
2969
  el.__stx_for_bound = true;
2965
2970
  const expr = el.getAttribute(attrName);
@@ -3665,7 +3670,7 @@ catch (e) {
3665
3670
  if (tgIsGroup) parent.__stx_tg_init = true;
3666
3671
  });
3667
3672
  }
3668
- `;var Ne=` // Also expose globally for convenience
3673
+ `;var Ce=` // Also expose globally for convenience
3669
3674
  window.state = state;
3670
3675
  window.derived = derived;
3671
3676
  window.memo = memo;
@@ -3732,7 +3737,7 @@ catch (e) {
3732
3737
  // Note: SPA Router and View Transitions CSS are provided by the canonical
3733
3738
  // router script (packages/router/src/client.ts) which is injected alongside
3734
3739
  // the signals runtime or via the @stxRouter directive.
3735
- `;var Ce=` function expressionUsesSignalApi(expression, name) {
3740
+ `;var Ie=` function expressionUsesSignalApi(expression, name) {
3736
3741
  var escapedName = name.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');
3737
3742
  return expressionUsesSignalMethod(expression, name)
3738
3743
  || expressionUsesSignalValue(expression, name);
@@ -3811,7 +3816,7 @@ catch (e) {
3811
3816
  console.warn('[STX] Handler error:', expr, e);
3812
3817
  }
3813
3818
  }
3814
- `;var Ie=` // ==========================================================================
3819
+ `;var Re=` // ==========================================================================
3815
3820
  // Client-side useHead / useSeoMeta
3816
3821
  // ==========================================================================
3817
3822
 
@@ -3903,7 +3908,7 @@ catch (e) {
3903
3908
  if (config.canonical) meta.push({ property: 'og:url', content: config.canonical });
3904
3909
  useHead({ title: config.title || config.ogTitle, meta: meta });
3905
3910
  }
3906
- `;var Re=` // ==========================================================================
3911
+ `;var Oe=` // ==========================================================================
3907
3912
  // Global Helpers (Feature #5)
3908
3913
  // ==========================================================================
3909
3914
 
@@ -4032,7 +4037,7 @@ catch (e) {
4032
4037
  const deps = depsMap.get(key);
4033
4038
  if (deps) notifySubscribers(deps);
4034
4039
  }
4035
- `;var Oe=` // \u2500\u2500 Host \u2500\u2500
4040
+ `;var Me=` // \u2500\u2500 Host \u2500\u2500
4036
4041
  //
4037
4042
  // The tree this runtime mutates. Every write the binding layer makes to a
4038
4043
  // node goes through here, so the same runtime can drive something that is not
@@ -4234,7 +4239,7 @@ catch (e) {
4234
4239
  return ids;
4235
4240
  }
4236
4241
  };
4237
- `;var Me=` // Hydrate a subtree inserted AFTER initial load \u2014 e.g. a streamed suspense
4242
+ `;var De=` // Hydrate a subtree inserted AFTER initial load \u2014 e.g. a streamed suspense
4238
4243
  // boundary (#1746 Phase 3). Mirrors the SPA re-init pass, scoped to the
4239
4244
  // container: (1) executes the subtree's scoped setup scripts (inert when
4240
4245
  // inserted via innerHTML, so they're cloned into fresh script elements to
@@ -4285,7 +4290,7 @@ catch (e) {
4285
4290
  }
4286
4291
  window.dispatchEvent(new CustomEvent('stx:hydrated', { detail: { el: container, trigger: 'stream' } }));
4287
4292
  }
4288
- `;var De=` // ==========================================================================
4293
+ `;var Pe=` // ==========================================================================
4289
4294
  // Post-hydration invariant sweep (stacksjs/stx#1773)
4290
4295
  // ==========================================================================
4291
4296
  //
@@ -4493,7 +4498,7 @@ catch (e) {
4493
4498
  _exprFailureCount = 0;
4494
4499
  }
4495
4500
  }
4496
- `;var Pe=` // Reactive if/else-if/else chain. A single effect drives mutual exclusion:
4501
+ `;var Le=` // Reactive if/else-if/else chain. A single effect drives mutual exclusion:
4497
4502
  // on each run it picks the first branch whose condition is truthy (the
4498
4503
  // trailing x-else always matches), inserts that branch, and removes
4499
4504
  // whichever branch was previously shown. One effect for the whole chain
@@ -4775,7 +4780,7 @@ catch (e) { /* a disposer of its own is not this branch's problem */ }
4775
4780
  // Shown branches whose deferred bind found them off the page: an enclosing
4776
4781
  // :if, bound later in the same pass, hid them between the queue and the run.
4777
4782
  // Their own condition has not changed, so their effect never runs again to
4778
- // retry; each resumes here when an enclosing branch puts it back.`;var Le=` const detachedBranches = new Set();
4783
+ // retry; each resumes here when an enclosing branch puts it back.`;var Fe=` const detachedBranches = new Set();
4779
4784
  function resumeDetachedBranches() {
4780
4785
  if (!detachedBranches.size) return;
4781
4786
  Array.from(detachedBranches).forEach(function(resume) {
@@ -5120,7 +5125,7 @@ else if (!value && isInserted) {
5120
5125
  }
5121
5126
  });
5122
5127
  }
5123
- `;function Fe(t,a,i,r,d){return` // One request for every caller that wants the same answer: run joins one
5128
+ `;function Ve(e,s,i,a,d){return` // One request for every caller that wants the same answer: run joins one
5124
5129
  // in flight, fresh waits one out and asks again, latest replaces a request
5125
5130
  // counter. See shared-request.ts; cached queries are built on it.
5126
5131
  var sharedRequest = (${d});
@@ -5139,8 +5144,8 @@ else if (!value && isInserted) {
5139
5144
  // off the critical path and read back asynchronously. Values kept before it
5140
5145
  // are read where they are.
5141
5146
  var STX_KEPT_PREFIX = 'stx:kept:';
5142
- var __stxKept = (${t})(undefined, ${a});
5143
- var __stxQueries = (${i})({ state: state, kept: __stxKept, prefix: STX_KEPT_PREFIX, matches: ${r}, sharedRequest: sharedRequest });
5147
+ var __stxKept = (${e})(undefined, ${s});
5148
+ var __stxQueries = (${i})({ state: state, kept: __stxKept, prefix: STX_KEPT_PREFIX, matches: ${a}, sharedRequest: sharedRequest });
5144
5149
  function stxKeptPrefix(scope) {
5145
5150
  return STX_KEPT_PREFIX + (scope === undefined || scope === null || scope === '' ? '' : String(scope) + ':');
5146
5151
  }
@@ -5184,7 +5189,7 @@ else if (!value && isInserted) {
5184
5189
  function cachedQuery(key, options) {
5185
5190
  return __stxQueries.cachedQuery(key, options);
5186
5191
  }
5187
- `}var Ve=` // Lazy hydration: defer processElement for subtrees marked with stx-hydrate.
5192
+ `}var je=` // Lazy hydration: defer processElement for subtrees marked with stx-hydrate.
5188
5193
  // Triggers: "visible" (IntersectionObserver), "idle" (requestIdleCallback),
5189
5194
  // "interaction" (mouseenter/click/focus), "media:<query>" (matchMedia).
5190
5195
  function deferHydration(el, trigger, scope) {
@@ -5316,7 +5321,7 @@ else if (!value && isInserted) {
5316
5321
  run();
5317
5322
  }
5318
5323
  }
5319
- `;var je=` // ==========================================================================
5324
+ `;var He=` // ==========================================================================
5320
5325
  // Lifecycle
5321
5326
  // ==========================================================================
5322
5327
 
@@ -5444,7 +5449,7 @@ else if (!value && isInserted) {
5444
5449
  // Drain any early mount/destroy calls captured by the pre-initialization shim
5445
5450
  if (window.__stx_early_mounts) { window.__stx_early_mounts.forEach(function(fn) { mountCallbacks.push(fn); }); window.__stx_early_mounts = null; }
5446
5451
  if (window.__stx_early_destroys) { window.__stx_early_destroys.forEach(function(fn) { destroyCallbacks.push(fn); }); window.__stx_early_destroys = null; }
5447
- `;var He=` var __forComponentScopeCounter = 0;
5452
+ `;var Ue=` var __forComponentScopeCounter = 0;
5448
5453
  var __forComponentSetupFactories = new Map();
5449
5454
 
5450
5455
  function forEachGroupElement(nodes, callback) {
@@ -5509,7 +5514,7 @@ else if (!value && isInserted) {
5509
5514
  }
5510
5515
  });
5511
5516
  }
5512
- `;var Ue=` // A :for row is a clone of its template, so a conditional element in the row
5517
+ `;var qe=` // A :for row is a clone of its template, so a conditional element in the row
5513
5518
  // is built for every row whether or not its condition ever holds; :if then
5514
5519
  // parks the false ones. In WebKit a <video> or <audio> sets up a media player
5515
5520
  // as it is created: a message list with one media slot per attachment took
@@ -5556,7 +5561,7 @@ else if (!value && isInserted) {
5556
5561
  holder.content.appendChild(el);
5557
5562
  }
5558
5563
  }
5559
- `;var qe=` // A loop row binds in its own iteration scope, and only its loop puts it
5564
+ `;var Be=` // A loop row binds in its own iteration scope, and only its loop puts it
5560
5565
  // there. A walk from further out (an enclosing :if hydrating the branch it
5561
5566
  // shows) carries no item, so it used to bind whatever in the row was still
5562
5567
  // unbound -- a conditional's children, waiting for their own deferred pass
@@ -5596,7 +5601,7 @@ else if (!value && isInserted) {
5596
5601
  }
5597
5602
  return now;
5598
5603
  }
5599
- `;var Be=` /**
5604
+ `;var Ke=` /**
5600
5605
  * Bind what the server said carries a binding, instead of looking for it.
5601
5606
  *
5602
5607
  * The walk exists because the runtime does not know where the bindings are.
@@ -5707,7 +5712,7 @@ else if (!value && isInserted) {
5707
5712
  }
5708
5713
  };
5709
5714
  }
5710
- `;var Ke=` function bindModel(el, expr, passedScope = componentScope, attrName = '@model') {
5715
+ `;var Ge=` function bindModel(el, expr, passedScope = componentScope, attrName = '@model') {
5711
5716
  if (el.__stx_model_bound) return;
5712
5717
  el.__stx_model_bound = true;
5713
5718
  const tag = el.tagName.toLowerCase();
@@ -5864,7 +5869,7 @@ else {
5864
5869
 
5865
5870
  el.removeAttribute(attrName);
5866
5871
  }
5867
- `;var Ge=` mountEl: function(selector, setupFn) {
5872
+ `;var $e=` mountEl: function(selector, setupFn) {
5868
5873
  function doMount() {
5869
5874
  var root = document.querySelector(selector);
5870
5875
  if (!root) { console.warn('[stx] mountEl: element not found:', selector); return; }
@@ -6110,7 +6115,7 @@ else {
6110
6115
  else {
6111
6116
  doMount();
6112
6117
  }
6113
- }`;var $e=` // ==========================================================================
6118
+ }`;var We=` // ==========================================================================
6114
6119
  // Navigation API
6115
6120
  // ==========================================================================
6116
6121
 
@@ -6307,7 +6312,7 @@ else {
6307
6312
  }
6308
6313
  };
6309
6314
  }
6310
- `;var We=` // ==========================================================================
6315
+ `;var ze=` // ==========================================================================
6311
6316
  // Optimistic State (useOptimistic) \u2014 stacksjs/stx#1742
6312
6317
  // ==========================================================================
6313
6318
  // Mirrors signals-api.ts useOptimistic. Shows base + pending actions while an
@@ -6340,7 +6345,7 @@ else {
6340
6345
  }
6341
6346
  return [optimistic, addOptimistic];
6342
6347
  }
6343
- `;var ze=` // \u2500\u2500 Overlay stack \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
6348
+ `;var Xe=` // \u2500\u2500 Overlay stack \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
6344
6349
  //
6345
6350
  // One stack for everything that takes over the page: stxAlert/stxConfirm,
6346
6351
  // the runtime modal and drawer, @stacksjs/components' Dialog and Drawer, and
@@ -6714,7 +6719,7 @@ else {
6714
6719
  else modal.open(id);
6715
6720
  }
6716
6721
  };
6717
- `;var Xe=` // ==========================================================================
6722
+ `;var Qe=` // ==========================================================================
6718
6723
  // Advanced Data Fetching (useQuery / useMutation)
6719
6724
  // ==========================================================================
6720
6725
 
@@ -7064,7 +7069,7 @@ finally {
7064
7069
  reset: function() { data.set(null); error.set(null); loading.set(false); }
7065
7070
  };
7066
7071
  }
7067
- `;var Qe=` // ==========================================================================
7072
+ `;var Ye=` // ==========================================================================
7068
7073
  // Notify
7069
7074
  // ==========================================================================
7070
7075
 
@@ -7089,16 +7094,16 @@ finally {
7089
7094
  collectSubscribers(subscribers, reached);
7090
7095
  reached.forEach(function(e) { e(); });
7091
7096
  }
7092
- `;function Ye(t,a,i){return`${t} // ==========================================================================
7097
+ `;function Je(e,s,i){return`${e} // ==========================================================================
7093
7098
  // Reactive Core
7094
7099
  // ==========================================================================
7095
7100
 
7096
- ${a}
7101
+ ${s}
7097
7102
  let activeEffect = null;
7098
7103
  const effectStack = [];
7099
7104
  const pendingEffects = new Set();
7100
7105
  let isBatching = false;
7101
- ${Qe}
7106
+ ${Ye}
7102
7107
 
7103
7108
  // DevTools Phase 2 (#1747): dev-mode reactivity instrumentation. OFF by
7104
7109
  // default \u2014 even in the dev runtime \u2014 so set()/effect-run stay zero-overhead
@@ -7117,7 +7122,7 @@ ${Qe}
7117
7122
  function __stxDevtoolsRecordQuery(rec) { if (!__stxDevtoolsTracking) return; __stxDevtoolsQueries.push(rec); if (__stxDevtoolsQueries.length > 100) __stxDevtoolsQueries.shift(); }
7118
7123
  ${i}
7119
7124
  let activeDisposers = null; // Array | null \u2014 when non-null, effects auto-register their dispose fn
7120
- const targetMap = new WeakMap();`}var Je=` // Vue-compat aliases
7125
+ const targetMap = new WeakMap();`}var Ze=` // Vue-compat aliases
7121
7126
  var ref = state;
7122
7127
 
7123
7128
  // reactive() used to be a bare alias of state(), which made it the most
@@ -7182,7 +7187,7 @@ ${i}
7182
7187
  return proxy;
7183
7188
  }
7184
7189
  var computed = derived;
7185
- var watchEffect = function(fn) { return effect(fn); };`;var Ze=` // ==========================================================================
7190
+ var watchEffect = function(fn) { return effect(fn); };`;var et=` // ==========================================================================
7186
7191
  // Pipe Syntax Support (Feature #2)
7187
7192
  // ==========================================================================
7188
7193
 
@@ -7358,7 +7363,7 @@ else {
7358
7363
 
7359
7364
  return value;
7360
7365
  }
7361
- `;function et(t,a,i){return` // skipChildren: this element's bindings only, because something else already
7366
+ `;function tt(e,s,i){return` // skipChildren: this element's bindings only, because something else already
7362
7367
  // knows where the rest are. The manifest path passes it for every entry, so
7363
7368
  // the tree is never walked; see processFromManifest.
7364
7369
  function processElement(el, scope = componentScope, skipChildren) {
@@ -7632,7 +7637,7 @@ catch (e2) {
7632
7637
  };
7633
7638
 
7634
7639
  // Known directive names to exclude from generic :attr binding
7635
- var DIRECTIVE_NAMES = ${t};
7640
+ var DIRECTIVE_NAMES = ${e};
7636
7641
 
7637
7642
  // A bound value cannot introduce a URL scheme the page did not ask for.
7638
7643
  // This is the client half of url-safety.ts: the server refuses a scheme
@@ -7667,7 +7672,7 @@ catch (e2) {
7667
7672
  // a dead duplicate attribute and the real viewBox never updates.
7668
7673
  var SVG_ATTR_CASE = {attributename:'attributeName', attributetype:'attributeType', basefrequency:'baseFrequency', baseprofile:'baseProfile', calcmode:'calcMode', clippathunits:'clipPathUnits', diffuseconstant:'diffuseConstant', edgemode:'edgeMode', filterunits:'filterUnits', glyphref:'glyphRef', gradienttransform:'gradientTransform', gradientunits:'gradientUnits', kernelmatrix:'kernelMatrix', kernelunitlength:'kernelUnitLength', keypoints:'keyPoints', keysplines:'keySplines', keytimes:'keyTimes', lengthadjust:'lengthAdjust', limitingconeangle:'limitingConeAngle', markerheight:'markerHeight', markerunits:'markerUnits', markerwidth:'markerWidth', maskcontentunits:'maskContentUnits', maskunits:'maskUnits', numoctaves:'numOctaves', pathlength:'pathLength', patterncontentunits:'patternContentUnits', patterntransform:'patternTransform', patternunits:'patternUnits', pointsatx:'pointsAtX', pointsaty:'pointsAtY', pointsatz:'pointsAtZ', preservealpha:'preserveAlpha', preserveaspectratio:'preserveAspectRatio', primitiveunits:'primitiveUnits', refx:'refX', refy:'refY', repeatcount:'repeatCount', repeatdur:'repeatDur', requiredextensions:'requiredExtensions', requiredfeatures:'requiredFeatures', specularconstant:'specularConstant', specularexponent:'specularExponent', spreadmethod:'spreadMethod', startoffset:'startOffset', stddeviation:'stdDeviation', stitchtiles:'stitchTiles', surfacescale:'surfaceScale', systemlanguage:'systemLanguage', tablevalues:'tableValues', targetx:'targetX', targety:'targetY', textlength:'textLength', viewbox:'viewBox', viewtarget:'viewTarget', xchannelselector:'xChannelSelector', ychannelselector:'yChannelSelector', zoomandpan:'zoomAndPan'};
7669
7674
  var SVG_NS = 'http://www.w3.org/2000/svg';
7670
- var EVENT_RE = ${a};
7675
+ var EVENT_RE = ${s};
7671
7676
  var KEY_MAP = {enter:'Enter', tab:'Tab', escape:'Escape', space:' ', up:'ArrowUp', down:'ArrowDown', left:'ArrowLeft', right:'ArrowRight', 'delete':'Delete', backspace:'Backspace'};
7672
7677
 
7673
7678
  // Handle attributes
@@ -8070,7 +8075,7 @@ catch (e) {
8070
8075
  processElement(child, scope);
8071
8076
  });
8072
8077
  }
8073
- }`}var tt=` // ==========================================================================
8078
+ }`}var nt=` // ==========================================================================
8074
8079
  // Auto-unwrap Signals (Feature #1)
8075
8080
  // ==========================================================================
8076
8081
 
@@ -8147,7 +8152,7 @@ catch (e) {
8147
8152
  },
8148
8153
  });
8149
8154
  }
8150
- `;function nt(t){return` // Component mount system
8155
+ `;function rt(e){return` // Component mount system
8151
8156
  var mountQueue = [];
8152
8157
 
8153
8158
  // MERGE, never replace (#1804). Three client bundles assign window.stx and
@@ -8224,6 +8229,7 @@ catch (e) {
8224
8229
  flushKeptState,
8225
8230
  cachedQuery,
8226
8231
  sharedRequest,
8232
+ useBroadcastStream,
8227
8233
  useCookie,
8228
8234
  useId,
8229
8235
  useReactiveProp,
@@ -8255,7 +8261,7 @@ catch (e) {
8255
8261
  confirm: stxConfirm,
8256
8262
  helpers: globalHelpers,
8257
8263
 
8258
- ${t}
8264
+ ${e}
8259
8265
 
8260
8266
  _mountCallbacks: mountCallbacks,
8261
8267
  // Internal adapter for the shared component library, not a DOM facade.
@@ -8270,7 +8276,7 @@ ${t}
8270
8276
  _scopes: {}, // Component-level scopes
8271
8277
  _scopeCounter: 0, // Counter for generating unique scope IDs during SPA navigation
8272
8278
  _latestSetup: window.__stx_latestSetup || null, // Latest SFC setup function (including scripts parsed before the runtime)
8273
- _stores: new Map(), // Global store registry \u2014 survives SPA navigation`}var rt=` // ==========================================================================
8279
+ _stores: new Map(), // Global store registry \u2014 survives SPA navigation`}var ot=` // ==========================================================================
8274
8280
  // Template Refs (useRef)
8275
8281
  // ==========================================================================
8276
8282
 
@@ -8302,7 +8308,7 @@ ${t}
8302
8308
  Object.defineProperty(read, 'value', { get: read, enumerable: true });
8303
8309
  return read;
8304
8310
  }
8305
- `;var ot=` // ==========================================================================
8311
+ `;var st=` // ==========================================================================
8306
8312
  // Scope Disposal
8307
8313
  // ==========================================================================
8308
8314
 
@@ -8510,7 +8516,7 @@ ${t}
8510
8516
  delete scopes[id];
8511
8517
  }
8512
8518
  }
8513
- `;var st=` // Helper to process elements while skipping already-processed scoped containers
8519
+ `;var at=` // Helper to process elements while skipping already-processed scoped containers
8514
8520
  function processElementSkipScopes(el, processedScopes) {
8515
8521
  if (processedScopes.has(el)) return;
8516
8522
  if (el.nodeType === Node.TEXT_NODE) {
@@ -8551,7 +8557,7 @@ ${t}
8551
8557
  if (el.tagName !== 'SCRIPT' && el.tagName !== 'STYLE') {
8552
8558
  Array.from(el.childNodes).forEach(child => processElementSkipScopes(child, processedScopes));
8553
8559
  }
8554
- }`;var at=` function bindShow(el, expr, passedScope = componentScope, attrName = '@show') {
8560
+ }`;var it=` function bindShow(el, expr, passedScope = componentScope, attrName = '@show') {
8555
8561
  if (el.__stx_show_bound) return;
8556
8562
  el.__stx_show_bound = true;
8557
8563
 
@@ -8604,7 +8610,7 @@ ${t}
8604
8610
  }
8605
8611
  el.removeAttribute(attrName);
8606
8612
  }
8607
- `;var it=` // Re-initialize components after SPA content swap.
8613
+ `;var lt=` // Re-initialize components after SPA content swap.
8608
8614
  // Debounce to handle rapid re-fires (HMR triggers navigate which triggers stx:load again).
8609
8615
  var _stxLoadTimer = null;
8610
8616
  if (window.__stxLoadHandler) {
@@ -8645,7 +8651,7 @@ ${t}
8645
8651
  var departingDestroys = null;
8646
8652
  function beginSwap() {
8647
8653
  departingDestroys = (departingDestroys || []).concat(destroyCallbacks.splice(0));
8648
- }`;var lt=` function _handleStxLoad() {
8654
+ }`;var ct=` function _handleStxLoad() {
8649
8655
  _stxLoadTimer = null;
8650
8656
  console.log('[stx:load] START. mountQueue:', mountQueue.length, '_latestSetup:', !!window.stx._latestSetup);
8651
8657
 
@@ -8831,7 +8837,7 @@ catch (e) { console.warn('[stx] destroy callback error:', e); }
8831
8837
  // Everything that should have hydrated has now had its chance (#1773).
8832
8838
  auditHydration(container, 'stx:load');
8833
8839
  }
8834
- `;var ct=` // ==========================================================================
8840
+ `;var dt=` // ==========================================================================
8835
8841
  // State Signal
8836
8842
  // ==========================================================================
8837
8843
 
@@ -8982,7 +8988,7 @@ finally {
8982
8988
  function memo(compute, equals) {
8983
8989
  return derived(compute, { equals: typeof equals === 'function' ? equals : Object.is });
8984
8990
  }
8985
- `;var dt=` // \u2500\u2500 Store System \u2500\u2500
8991
+ `;var ut=` // \u2500\u2500 Store System \u2500\u2500
8986
8992
  // Pinia-inspired, signals-based. Stores survive SPA navigation.
8987
8993
 
8988
8994
  defineStore: function(id, setupOrOptions, storeOptions) {
@@ -9442,7 +9448,7 @@ finally {
9442
9448
  }
9443
9449
  console.log('[stx:store] useStore:', id);
9444
9450
  return store;
9445
- },`;var ut=` // Storage access is guarded end to end (stacksjs/stx#1793). Every one of
9451
+ },`;var pt=` // Storage access is guarded end to end (stacksjs/stx#1793). Every one of
9446
9452
  // these can throw, and each throw took down the whole client script for the
9447
9453
  // page rather than just the composable:
9448
9454
  //
@@ -9520,7 +9526,7 @@ finally {
9520
9526
  window.addEventListener('storage', handler);
9521
9527
  onDestroy(function() { window.removeEventListener('storage', handler); });
9522
9528
  return s;
9523
- }`;var pt=` function bindStyle(el, expr, passedScope = componentScope, isVisible) {
9529
+ }`;var ft=` function bindStyle(el, expr, passedScope = componentScope, isVisible) {
9524
9530
  // Capture scope at setup time - use passed scope to preserve context
9525
9531
  const capturedScope = mergeTemplateScopes(globalHelpers, passedScope, (findElementScope(el) || {}));
9526
9532
 
@@ -9612,7 +9618,7 @@ catch (e2) {
9612
9618
  var contentRoot = (contentEl === el) ? el : contentEl;
9613
9619
  Array.from(contentRoot.childNodes).forEach(function(child) { processElement(child, scope); });
9614
9620
  }
9615
- `;var ft=` // ==========================================================================
9621
+ `;var mt=` // ==========================================================================
9616
9622
  // Timer & Utility Composables
9617
9623
  // ==========================================================================
9618
9624
 
@@ -10013,7 +10019,7 @@ else if (timer === null) {
10013
10019
  }
10014
10020
  };
10015
10021
  }
10016
- `;var mt=` // \u2500\u2500 Tooltip runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
10022
+ `;var vt=` // \u2500\u2500 Tooltip runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
10017
10023
  (function() {
10018
10024
  var tip = null;
10019
10025
  function createTip() {
@@ -10052,7 +10058,7 @@ else if (timer === null) {
10052
10058
  document.addEventListener('focusin', function(e) { var el = e.target.closest('[x-tooltip]'); if (el) show(el); });
10053
10059
  document.addEventListener('focusout', function(e) { var el = e.target.closest('[x-tooltip]'); if (el) hide(); });
10054
10060
  })();
10055
- `;var vt=` // ==========================================================================
10061
+ `;var yt=` // ==========================================================================
10056
10062
  // Toast notification system
10057
10063
  // ==========================================================================
10058
10064
 
@@ -10257,7 +10263,7 @@ else if (timer === null) {
10257
10263
  removeToast(tid);
10258
10264
  }
10259
10265
  }
10260
- };`;var yt=` // \u2500\u2500 <TransitionGroup> support (#1742) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
10266
+ };`;var bt=` // \u2500\u2500 <TransitionGroup> support (#1742) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
10261
10267
  // Class-driven enter/leave + FLIP move animations for keyed :for lists whose
10262
10268
  // parent is a [data-stx-transition-group]. All helpers are self-contained and
10263
10269
  // guarded (no-ops off the happy path), and every transition has a timeout
@@ -10348,7 +10354,7 @@ else if (timer === null) {
10348
10354
  });
10349
10355
  });
10350
10356
  }
10351
- `;var bt=` // ==========================================================================
10357
+ `;var wt=` // ==========================================================================
10352
10358
  // WebSocket Composable
10353
10359
  // ==========================================================================
10354
10360
 
@@ -10485,83 +10491,85 @@ else if (timer === null) {
10485
10491
  subscribe: subscribe
10486
10492
  };
10487
10493
  }
10488
- `;function gt(){let t=xt(Bn());try{let i=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t);return i=i.replace(/\}(var |let |const |function )/g,"};$1"),i}catch{return t}}function xt(t){let a=[],i=0,r="console.log(";while(i<t.length){let d=t.indexOf(r,i);if(d===-1){a.push(t.slice(i));break}a.push(t.slice(i,d));let y=1,o=d+r.length;while(o<t.length&&y>0){let u=t[o];if(u==='"'||u==="'"||u==="`"){let f=u;o++;while(o<t.length&&t[o]!==f){if(t[o]==="\\")o++;o++}o++;continue}if(u==="(")y++;else if(u===")")y--;o++}a.push("0"),i=o}return a.join("")}function Bn(){return`${se}${Oe}
10489
- ${Ye(ae,Se,Ee)}
10494
+ `;function gt(){let e=St(Bn());try{let i=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(e);return i=i.replace(/\}(var |let |const |function )/g,"};$1"),i}catch{return e}}function St(e){let s=[],i=0,a="console.log(";while(i<e.length){let d=e.indexOf(a,i);if(d===-1){s.push(e.slice(i));break}s.push(e.slice(i,d));let y=1,r=d+a.length;while(r<e.length&&y>0){let u=e[r];if(u==='"'||u==="'"||u==="`"){let h=u;r++;while(r<e.length&&e[r]!==h){if(e[r]==="\\")r++;r++}r++;continue}if(u==="(")y++;else if(u===")")y--;r++}s.push("0"),i=r}return s.join("")}function Bn(){return`${ae}${Me}
10495
+ ${Je(ie,ke,Te)}
10490
10496
 
10491
- ${Re}
10492
- ${tt}
10493
- ${Ze}
10494
- ${ct}
10495
- ${_e}
10496
- ${je}
10497
- ${bt}
10498
- ${Te(X.toString(),Q.toString())}
10499
- ${rt}
10500
- ${$e}
10501
- ${Xe}
10497
+ ${Oe}
10498
+ ${nt}
10499
+ ${et}
10500
+ ${dt}
10501
+ ${xe}
10502
+ ${He}
10503
+ ${wt}
10504
+ ${Ae(X.toString(),Q.toString())}
10505
+ ${ot}
10502
10506
  ${We}
10507
+ ${Qe}
10508
+ ${ze}
10503
10509
  // ==========================================================================
10504
10510
  // Template Binding
10505
10511
  // ==========================================================================
10506
10512
 
10507
- ${ke}
10508
- ${xe}
10509
- ${Ce}
10510
- ${Ve}
10511
- ${oe}
10512
- ${de}
10513
- ${fe}
10514
- ${Be}
10515
- ${et(Zc(),Qc(),Yc())}
10513
+ ${Ee}
10514
+ ${Se}
10515
+ ${Ie}
10516
+ ${je}
10517
+ ${se}
10518
+ ${ue}
10519
+ ${me}
10520
+ ${Ke}
10521
+ ${tt(Qc(),el(),Zc())}
10516
10522
 
10517
10523
  ${ht}
10518
- ${at}
10519
- ${Ke}
10520
- ${ie}
10521
- ${pt}
10522
- ${yt}
10523
- ${He}
10524
- ${ue}
10525
- ${qe}
10526
- ${Ae}
10524
+ ${it}
10525
+ ${Ge}
10526
+ ${ce}
10527
+ ${ft}
10528
+ ${bt}
10527
10529
  ${Ue}
10530
+ ${pe}
10531
+ ${Be}
10532
+ ${Ne}
10533
+ ${qe}
10528
10534
  ${he}
10529
- ${Pe}
10530
10535
  ${Le}
10531
- ${ce}
10532
- ${ft}
10533
- ${ne}
10534
- ${Je}
10536
+ ${Fe}
10537
+ ${de}
10538
+ ${mt}
10539
+ ${re}
10540
+ ${Ze}
10535
10541
 
10536
- ${ut}
10542
+ ${pt}
10537
10543
 
10538
- ${Fe(J.toString(),Y.toString(),ee.toString(),Z.toString(),te.toString())}
10539
- ${ge}
10540
- ${re(z.toString())}
10541
- ${Ie}
10542
- ${vt}
10544
+ var useBroadcastStream = ${ne.toString()};
10543
10545
 
10544
- ${ze}
10546
+ ${Ve(J.toString(),Y.toString(),ee.toString(),Z.toString(),te.toString())}
10545
10547
  ${ve}
10546
- ${we}
10547
- ${mt}
10548
- ${Me}
10549
- ${nt(pe)}
10548
+ ${oe(z.toString())}
10549
+ ${Re}
10550
+ ${yt}
10550
10551
 
10551
- ${dt}
10552
+ ${Xe}
10553
+ ${ye}
10554
+ ${_e}
10555
+ ${vt}
10556
+ ${De}
10557
+ ${rt(fe)}
10552
10558
 
10553
- ${Ge}
10559
+ ${ut}
10560
+
10561
+ ${$e}
10554
10562
  });
10555
10563
 
10556
- ${Ne}
10557
- ${ye}
10564
+ ${Ce}
10558
10565
  ${be}
10559
- ${ot}
10560
- ${De}
10561
- ${me}
10562
- ${it}
10563
- ${lt}
10566
+ ${we}
10564
10567
  ${st}
10568
+ ${Pe}
10569
+ ${ge}
10570
+ ${lt}
10571
+ ${ct}
10572
+ ${at}
10565
10573
  })();
10566
- `}var Nm={state:le,derived:Fn,effect:zn,batch:so,onMount:Hr,onDestroy:Vr,isSignal:Hn,isDerived:Vn,untrack:oo,peek:Ur,generateSignalsRuntime:gt,generateSignalsRuntimeDev:Bn};
10567
- export{gt,Bn,Nm};
10574
+ `}var Mm={state:le,derived:Fn,effect:zn,batch:oo,onMount:Hr,onDestroy:Vr,isSignal:Hn,isDerived:Vn,untrack:io,peek:Ur,generateSignalsRuntime:gt,generateSignalsRuntimeDev:Bn};
10575
+ export{gt,Bn,Mm};