@stacksjs/stx 0.2.91 → 0.2.93

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 (625) hide show
  1. package/dist/a11y.js +1 -1
  2. package/dist/analytics.js +1 -1
  3. package/dist/analyzer.js +1 -1
  4. package/dist/animation.js +1 -1
  5. package/dist/app-shell.js +1 -1
  6. package/dist/app.js +1 -1
  7. package/dist/assets.js +1 -1
  8. package/dist/ast.js +1 -1
  9. package/dist/async-components.js +1 -1
  10. package/dist/auth.js +1 -1
  11. package/dist/broadcasting.js +1 -1
  12. package/dist/browser-composables.js +1 -1
  13. package/dist/build-assets.js +1 -1
  14. package/dist/build-mode-detector.js +1 -1
  15. package/dist/build-optimizer.js +1 -1
  16. package/dist/build-views.js +1 -1
  17. package/dist/build.js +1 -1
  18. package/dist/builtins/drawer.js +1 -1
  19. package/dist/builtins/escape.js +1 -1
  20. package/dist/builtins/icon.js +1 -1
  21. package/dist/builtins/index.js +1 -1
  22. package/dist/builtins/modal.js +1 -1
  23. package/dist/builtins/safe-image.js +1 -1
  24. package/dist/builtins/stx-image.js +1 -1
  25. package/dist/builtins/stx-link.js +1 -1
  26. package/dist/builtins/stx-loading-indicator.js +1 -1
  27. package/dist/builtins/suspense.js +1 -1
  28. package/dist/builtins/toast.js +1 -1
  29. package/dist/builtins/tooltip.js +1 -1
  30. package/dist/builtins/transition-group.js +1 -1
  31. package/dist/bundle-analyzer/collector.js +1 -1
  32. package/dist/bundle-analyzer/index.js +1 -1
  33. package/dist/bundle-analyzer/report.js +1 -1
  34. package/dist/bundle-analyzer/treemap.js +1 -1
  35. package/dist/caching.js +1 -1
  36. package/dist/{chunk-5y4q9abj.js → chunk-04n64bnt.js} +1 -1
  37. package/dist/{chunk-7m6jbrky.js → chunk-06w68hyg.js} +2 -2
  38. package/dist/{chunk-ccgmxmjk.js → chunk-07y6m5xx.js} +1 -1
  39. package/dist/{chunk-j25swncq.js → chunk-095s3972.js} +1 -1
  40. package/dist/{chunk-ckz0ppkr.js → chunk-09k66d8a.js} +1 -1
  41. package/dist/{chunk-tqzv7g2r.js → chunk-0a61y94n.js} +2 -2
  42. package/dist/{chunk-exfw0aqe.js → chunk-0dx4q6yq.js} +1 -1
  43. package/dist/{chunk-t1dzvz5z.js → chunk-0dz85jrp.js} +1 -1
  44. package/dist/{chunk-k7yp9h17.js → chunk-0jd0pndq.js} +1 -1
  45. package/dist/{chunk-r738cjs3.js → chunk-0p0nyq50.js} +2 -2
  46. package/dist/{chunk-ke7rcrfm.js → chunk-0p1h3p3w.js} +1 -1
  47. package/dist/{chunk-9pzdyd8q.js → chunk-0qnz93q2.js} +2 -2
  48. package/dist/{chunk-j6d9ksyj.js → chunk-10debkj5.js} +1 -1
  49. package/dist/{chunk-pzc0bs5r.js → chunk-15nesxgt.js} +2 -2
  50. package/dist/{chunk-snj1hfpb.js → chunk-1sr54zp8.js} +1 -1
  51. package/dist/{chunk-3whqk46c.js → chunk-1v49fwr5.js} +1 -1
  52. package/dist/chunk-1xz0w746.js +1539 -0
  53. package/dist/{chunk-jmky0qzm.js → chunk-1z5nhbjt.js} +1 -1
  54. package/dist/{chunk-qhrcts5t.js → chunk-20swzkx3.js} +1 -1
  55. package/dist/{chunk-jm460jxs.js → chunk-27zsyhrd.js} +1 -1
  56. package/dist/{chunk-t88cgftn.js → chunk-29y0hk5z.js} +2 -2
  57. package/dist/{chunk-zv9jfm2f.js → chunk-2cdvw21b.js} +1 -1
  58. package/dist/{chunk-2rd0ykrg.js → chunk-2j21d3ka.js} +1 -1
  59. package/dist/chunk-2jxbwnkz.js +2 -0
  60. package/dist/{chunk-a2xzs4kd.js → chunk-31dr4bys.js} +2 -2
  61. package/dist/{chunk-08ncwhv7.js → chunk-35faj94w.js} +1 -1
  62. package/dist/{chunk-nv3k4bf9.js → chunk-39gm08bn.js} +1 -1
  63. package/dist/{chunk-dtcj9r7p.js → chunk-3a4qsygv.js} +2 -2
  64. package/dist/{chunk-xkzz5rb0.js → chunk-3te20hqw.js} +2 -2
  65. package/dist/{chunk-z06myqr1.js → chunk-43t7faps.js} +2 -2
  66. package/dist/{chunk-jcjzg6r5.js → chunk-47kpewks.js} +1 -1
  67. package/dist/{chunk-my0qmjw4.js → chunk-4d2y57k7.js} +2 -2
  68. package/dist/{chunk-c9f5k95v.js → chunk-4deg33rw.js} +2 -2
  69. package/dist/{chunk-t38vt890.js → chunk-4k7d8p8d.js} +1 -1
  70. package/dist/{chunk-n2wmny2b.js → chunk-4qcy5tx6.js} +2 -2
  71. package/dist/{chunk-9d0q9k3p.js → chunk-4x7kae4j.js} +2 -2
  72. package/dist/{chunk-qr72av66.js → chunk-55nwdnsd.js} +1 -1
  73. package/dist/{chunk-1vz36hw3.js → chunk-55yp0q8t.js} +1 -1
  74. package/dist/{chunk-rqwhb85x.js → chunk-5f43yz6z.js} +2 -2
  75. package/dist/{chunk-b0w1cm1s.js → chunk-5shey2e4.js} +1 -1
  76. package/dist/{chunk-b37f9ebf.js → chunk-6b5k6w2q.js} +1 -1
  77. package/dist/{chunk-zwdargbj.js → chunk-6djzdes9.js} +1 -1
  78. package/dist/{chunk-knefeadt.js → chunk-6e4c6g46.js} +2 -2
  79. package/dist/{chunk-0fsrhs3d.js → chunk-6eqbxcrd.js} +1 -1
  80. package/dist/{chunk-9p45wwff.js → chunk-7074g241.js} +1 -1
  81. package/dist/{chunk-88wdr7f3.js → chunk-7b6s3g65.js} +1 -1
  82. package/dist/{chunk-5wecgn5n.js → chunk-7cgmq685.js} +1 -1
  83. package/dist/{chunk-eghdf4qq.js → chunk-7dkz6z2s.js} +2 -2
  84. package/dist/{chunk-h6s1thg6.js → chunk-7ed3tean.js} +1 -1
  85. package/dist/{chunk-zr8631g4.js → chunk-7gd339hd.js} +1 -1
  86. package/dist/{chunk-vbysnq00.js → chunk-7j5e8sdj.js} +2 -2
  87. package/dist/{chunk-j55xkgq8.js → chunk-7n8g0nfn.js} +2 -2
  88. package/dist/{chunk-31w1xfs1.js → chunk-80g54ncj.js} +1 -1
  89. package/dist/{chunk-6wqrqn2x.js → chunk-8a5bxece.js} +2 -2
  90. package/dist/{chunk-nsbwxkj5.js → chunk-8ahwt6a4.js} +2 -2
  91. package/dist/{chunk-y92w0240.js → chunk-8b3z0zd5.js} +1 -1
  92. package/dist/{chunk-2hnv9414.js → chunk-8dhdpa5h.js} +2 -2
  93. package/dist/{chunk-04yrgvdd.js → chunk-8n9nnqr6.js} +1 -1
  94. package/dist/{chunk-h1035wzj.js → chunk-8qc1bsym.js} +1 -1
  95. package/dist/{chunk-0n11c9hw.js → chunk-8va64c9n.js} +2 -2
  96. package/dist/{chunk-yssvz8zs.js → chunk-8vtm0m84.js} +1 -1
  97. package/dist/{chunk-c23697dp.js → chunk-8xj7c3mf.js} +1 -1
  98. package/dist/{chunk-8g0jb444.js → chunk-988dw6q3.js} +2 -2
  99. package/dist/{chunk-ktvdeqjr.js → chunk-9b6cec0v.js} +1 -1
  100. package/dist/{chunk-m911bf2b.js → chunk-9cf97f9p.js} +2 -2
  101. package/dist/{chunk-xgmza98t.js → chunk-9ecv8aqj.js} +1 -1
  102. package/dist/{chunk-ydhza16t.js → chunk-9eq3ht5f.js} +1 -1
  103. package/dist/{chunk-sd2c11bp.js → chunk-9jtj77jx.js} +2 -2
  104. package/dist/{chunk-yywc3yge.js → chunk-9t14se2t.js} +1 -1
  105. package/dist/{chunk-w719zps0.js → chunk-9wmq2272.js} +1 -1
  106. package/dist/{chunk-wk7mgg5n.js → chunk-9zbk5zx5.js} +2 -2
  107. package/dist/{chunk-rdaavfsg.js → chunk-a2g2qb2y.js} +1 -1
  108. package/dist/{chunk-agzvhej1.js → chunk-a3hyn4we.js} +1 -1
  109. package/dist/{chunk-fk6ted7p.js → chunk-a87qqft6.js} +2 -2
  110. package/dist/{chunk-md4j8nch.js → chunk-ah88wzbg.js} +1 -1
  111. package/dist/{chunk-wdtanmx1.js → chunk-akf1r75r.js} +1 -1
  112. package/dist/{chunk-xw9skf0n.js → chunk-amaa1bev.js} +1 -1
  113. package/dist/{chunk-rth1890k.js → chunk-avx8aydt.js} +2 -2
  114. package/dist/{chunk-kh976zgv.js → chunk-ay9qf4zj.js} +1 -1
  115. package/dist/{chunk-aaaxvn5r.js → chunk-aywxfqev.js} +1 -1
  116. package/dist/{chunk-19f7xyy7.js → chunk-azkegjd8.js} +2 -2
  117. package/dist/{chunk-tgvekhwz.js → chunk-b77wjyn7.js} +1 -1
  118. package/dist/{chunk-tj9kmtnx.js → chunk-baf1hfwh.js} +2 -2
  119. package/dist/{chunk-zxxt0c9q.js → chunk-bdk6g1vj.js} +2 -2
  120. package/dist/{chunk-j1myedcr.js → chunk-bhqgmyqw.js} +1 -1
  121. package/dist/{chunk-13mkbvxc.js → chunk-bk3j0n82.js} +1 -1
  122. package/dist/{chunk-jtx73fsh.js → chunk-bndmdahk.js} +2 -2
  123. package/dist/{chunk-nacsxc1r.js → chunk-bpgg59wa.js} +1 -1
  124. package/dist/{chunk-xmjedbkt.js → chunk-bs3gmfxz.js} +1 -1
  125. package/dist/{chunk-dnkq5y2j.js → chunk-bxc7kjsk.js} +2 -2
  126. package/dist/{chunk-0qzxbxgp.js → chunk-c7jg8w13.js} +1 -1
  127. package/dist/{chunk-nh418dpm.js → chunk-ckxjqqn9.js} +2 -2
  128. package/dist/{chunk-tfjem6g3.js → chunk-d0zjtdw4.js} +2 -2
  129. package/dist/{chunk-4bpb2es7.js → chunk-d1qh1x2g.js} +2 -2
  130. package/dist/{chunk-6jhqq7es.js → chunk-djddhmcc.js} +1 -1
  131. package/dist/{chunk-5tv1swsr.js → chunk-dqn9gyhb.js} +1 -1
  132. package/dist/{chunk-krxvy5wr.js → chunk-drjq2zwg.js} +2 -2
  133. package/dist/{chunk-cf86cs0k.js → chunk-dvfs1h3c.js} +2 -2
  134. package/dist/{chunk-p4wm4a45.js → chunk-e2q9c5vq.js} +2 -2
  135. package/dist/{chunk-pthx7bxa.js → chunk-e98v1bc6.js} +2 -2
  136. package/dist/chunk-ejayeex8.js +2 -0
  137. package/dist/{chunk-a4zj7qpt.js → chunk-ejh8fyak.js} +1 -1
  138. package/dist/{chunk-fh1d8bxd.js → chunk-ek2w6zvy.js} +1 -1
  139. package/dist/{chunk-0m53nxvy.js → chunk-ewa88139.js} +1 -1
  140. package/dist/{chunk-pjaa8q7x.js → chunk-fjk3x41y.js} +2 -2
  141. package/dist/{chunk-6sx4d083.js → chunk-frg705zq.js} +1 -1
  142. package/dist/{chunk-acry1mfc.js → chunk-fzm3y0r3.js} +1 -1
  143. package/dist/{chunk-4wsmprpm.js → chunk-g1vt329s.js} +12 -12
  144. package/dist/{chunk-zxsqbve0.js → chunk-g4ps1dj8.js} +2 -2
  145. package/dist/{chunk-x6n8z1n8.js → chunk-gkzq8zw4.js} +1 -1
  146. package/dist/{chunk-hkjq64we.js → chunk-gz5fmp3q.js} +1 -1
  147. package/dist/{chunk-ddst5g08.js → chunk-h0hjy0kn.js} +1 -1
  148. package/dist/{chunk-e792k31a.js → chunk-h5jxydqq.js} +1 -1
  149. package/dist/{chunk-at9v5saf.js → chunk-h5wa62ek.js} +1 -1
  150. package/dist/{chunk-91gyjg5c.js → chunk-h7aq56qj.js} +2 -2
  151. package/dist/{chunk-ecabspxs.js → chunk-h82kjdr4.js} +1 -1
  152. package/dist/{chunk-xxgdw2s8.js → chunk-hbehnm18.js} +2 -2
  153. package/dist/{chunk-v9199ywv.js → chunk-hbgxbgam.js} +2 -2
  154. package/dist/{chunk-5e2khb7q.js → chunk-hc2mf5h6.js} +2 -2
  155. package/dist/{chunk-r7d26vjj.js → chunk-hjm2xab3.js} +1 -1
  156. package/dist/{chunk-y248bdr9.js → chunk-hrnnh4tq.js} +2 -2
  157. package/dist/{chunk-fze9db64.js → chunk-ht43ds42.js} +2 -2
  158. package/dist/{chunk-22xxm2x5.js → chunk-hxx3za24.js} +1 -1
  159. package/dist/{chunk-nqxqy9v2.js → chunk-hy8820vc.js} +1 -1
  160. package/dist/{chunk-fbbv5x9m.js → chunk-j447q024.js} +2 -2
  161. package/dist/{chunk-am5rtv86.js → chunk-j58vh0w6.js} +1 -1
  162. package/dist/{chunk-sgsb5xp4.js → chunk-j8tn8enq.js} +2 -2
  163. package/dist/{chunk-vwp4dw7e.js → chunk-jc0fc4ht.js} +1 -1
  164. package/dist/{chunk-kemb0fyc.js → chunk-jcs0ymw7.js} +1 -1
  165. package/dist/{chunk-fnt3srfr.js → chunk-jjamhxpm.js} +1 -1
  166. package/dist/{chunk-w7bgs9ze.js → chunk-jjb05d21.js} +2 -2
  167. package/dist/{chunk-g3f1xq76.js → chunk-jjdq01dv.js} +1 -1
  168. package/dist/{chunk-a33kr9b0.js → chunk-jnmgm2xw.js} +1 -1
  169. package/dist/{chunk-kqtchwz7.js → chunk-jpndqst5.js} +1 -1
  170. package/dist/{chunk-1hyk728h.js → chunk-jt0ezawy.js} +1 -1
  171. package/dist/{chunk-w4a3cvtp.js → chunk-jz73j3qs.js} +1 -1
  172. package/dist/{chunk-n3k3e9n5.js → chunk-k21df0pg.js} +1 -1
  173. package/dist/{chunk-dcp0znhd.js → chunk-k848dzsa.js} +1 -1
  174. package/dist/{chunk-4e3yxhkd.js → chunk-kdfe4t91.js} +2 -2
  175. package/dist/{chunk-7aph6rw7.js → chunk-keawsbpn.js} +1 -1
  176. package/dist/{chunk-jdy93c39.js → chunk-kgym7ch9.js} +1 -1
  177. package/dist/{chunk-1htmc8mb.js → chunk-khdn7jwe.js} +2 -2
  178. package/dist/{chunk-f9j3mr9z.js → chunk-km25cwz6.js} +1 -1
  179. package/dist/{chunk-r1m8g439.js → chunk-knm8a8yx.js} +1 -1
  180. package/dist/{chunk-zepv7y44.js → chunk-krqn0ddk.js} +2 -2
  181. package/dist/{chunk-2aydpj2n.js → chunk-kx6eb6ma.js} +1 -1
  182. package/dist/{chunk-syffx53n.js → chunk-kypas8vy.js} +2 -2
  183. package/dist/{chunk-npj33yqb.js → chunk-m167kjhv.js} +1 -1
  184. package/dist/{chunk-x4qr3b2z.js → chunk-m491r0rj.js} +1 -1
  185. package/dist/{chunk-ktpc2rc4.js → chunk-m8448qby.js} +1 -1
  186. package/dist/{chunk-fk0m346m.js → chunk-mgj88zeq.js} +2 -2
  187. package/dist/{chunk-7sd6c9wv.js → chunk-mhgk632d.js} +1 -1
  188. package/dist/{chunk-sn7pmfn4.js → chunk-n5kg7fpx.js} +1 -1
  189. package/dist/{chunk-02bd1cng.js → chunk-n98x35xd.js} +1 -1
  190. package/dist/{chunk-4ep9gk7d.js → chunk-n9dhs1dw.js} +1 -1
  191. package/dist/{chunk-8x58wmgs.js → chunk-nd9rmddh.js} +2 -2
  192. package/dist/{chunk-xm3hz63f.js → chunk-ngxfwzq3.js} +1 -1
  193. package/dist/{chunk-tavtph8x.js → chunk-nhv099jv.js} +1 -1
  194. package/dist/{chunk-1k3k1tf8.js → chunk-nm15ccsg.js} +2 -2
  195. package/dist/{chunk-2g16stee.js → chunk-npfmdb6y.js} +2 -2
  196. package/dist/{chunk-fngb9apr.js → chunk-nvwb4x04.js} +1 -1
  197. package/dist/{chunk-ydhrdatx.js → chunk-nw34xajc.js} +1 -1
  198. package/dist/{chunk-9v7q6xn4.js → chunk-p077sw22.js} +1 -1
  199. package/dist/{chunk-hrgg37a9.js → chunk-p1h8065h.js} +2 -2
  200. package/dist/{chunk-tb9c2mq7.js → chunk-p3e0cqtt.js} +2 -2
  201. package/dist/{chunk-gapx9vqm.js → chunk-p3fpb79v.js} +1 -1
  202. package/dist/{chunk-c7zedzbg.js → chunk-p52yzjq6.js} +2 -2
  203. package/dist/{chunk-wtgrc6ya.js → chunk-p73meypx.js} +1 -1
  204. package/dist/{chunk-9fj7hpwa.js → chunk-pa9zb7ty.js} +1 -1
  205. package/dist/{chunk-3wth4wa6.js → chunk-payfb24w.js} +1 -1
  206. package/dist/{chunk-tzehzwyr.js → chunk-pcm1vd8w.js} +1 -1
  207. package/dist/{chunk-h3mb2q51.js → chunk-pcntd9h4.js} +2 -2
  208. package/dist/{chunk-xecnz132.js → chunk-pg1fvqb9.js} +1 -1
  209. package/dist/{chunk-hdv4tnvh.js → chunk-psc3wfcf.js} +2 -2
  210. package/dist/{chunk-1qy4gac6.js → chunk-pznnww6k.js} +2 -2
  211. package/dist/{chunk-6e08xfzp.js → chunk-q6zhd9yf.js} +1 -1
  212. package/dist/{chunk-crjrbczd.js → chunk-qa59zejf.js} +3 -3
  213. package/dist/{chunk-r6sb1sm4.js → chunk-qvrbjpdc.js} +2 -2
  214. package/dist/{chunk-sk1gmrr8.js → chunk-qygvvygy.js} +2 -2
  215. package/dist/{chunk-wntaqqhz.js → chunk-r0jcmpv6.js} +1 -1
  216. package/dist/{chunk-t7ghqd7e.js → chunk-r5m9xtm7.js} +2 -2
  217. package/dist/{chunk-kpp2baaz.js → chunk-rkffm9sy.js} +1 -1
  218. package/dist/{chunk-xnf61ake.js → chunk-rpx5fa65.js} +2 -2
  219. package/dist/{chunk-1yg3x73j.js → chunk-rqxf5hns.js} +1 -1
  220. package/dist/{chunk-f7f4g33p.js → chunk-rtr974rc.js} +2 -2
  221. package/dist/{chunk-fyq5573f.js → chunk-rvptcndz.js} +2 -2
  222. package/dist/{chunk-bdp5z6mt.js → chunk-rw26rpek.js} +2 -2
  223. package/dist/{chunk-gfj0a29j.js → chunk-rw7937v4.js} +2 -2
  224. package/dist/{chunk-zvyc82ke.js → chunk-rwrv9wbf.js} +1 -1
  225. package/dist/{chunk-bg1xym0q.js → chunk-rz2ec6g7.js} +1 -1
  226. package/dist/{chunk-64bwamng.js → chunk-s6ja2bdg.js} +1 -1
  227. package/dist/{chunk-4ewrwqwn.js → chunk-scpkdrdb.js} +1 -1
  228. package/dist/{chunk-29qrr0nc.js → chunk-shv88d2d.js} +2 -2
  229. package/dist/{chunk-8xbj6dqe.js → chunk-t0c9wvpr.js} +1 -1
  230. package/dist/{chunk-f228sm5e.js → chunk-tffh3b1e.js} +1 -1
  231. package/dist/{chunk-3rgj1qn6.js → chunk-tg2f1mzq.js} +2 -2
  232. package/dist/{chunk-fcpxs8mm.js → chunk-trfswy66.js} +1 -1
  233. package/dist/{chunk-rkr7cgs8.js → chunk-tzwtg722.js} +1 -1
  234. package/dist/{chunk-a50svyjn.js → chunk-v7f8jj15.js} +1 -1
  235. package/dist/{chunk-qvmrwh8n.js → chunk-v8j49spx.js} +1 -1
  236. package/dist/{chunk-zwpm1pa8.js → chunk-vcr5pzpx.js} +1 -1
  237. package/dist/{chunk-j0mbt7fb.js → chunk-veeerpwa.js} +2 -2
  238. package/dist/{chunk-p993psbk.js → chunk-vg5kt6az.js} +1 -1
  239. package/dist/{chunk-hd27hhzr.js → chunk-vgv7jvyz.js} +1 -1
  240. package/dist/{chunk-9ezvda3j.js → chunk-vjbefncc.js} +1 -1
  241. package/dist/{chunk-e8x46y38.js → chunk-vmxjghsm.js} +1 -1
  242. package/dist/{chunk-dkt9p3bk.js → chunk-vw7vqd76.js} +1 -1
  243. package/dist/{chunk-p5j0686t.js → chunk-w3b6m427.js} +1 -1
  244. package/dist/{chunk-593x2ccf.js → chunk-wazkqv7n.js} +2 -2
  245. package/dist/{chunk-bgan5edn.js → chunk-wf7zrjsw.js} +1 -1
  246. package/dist/{chunk-b5xf2v7f.js → chunk-wfg2gm11.js} +1 -1
  247. package/dist/{chunk-1w3354fv.js → chunk-wg9k6h8w.js} +2 -2
  248. package/dist/{chunk-dcpbe8a1.js → chunk-wkz2vwkr.js} +2 -2
  249. package/dist/{chunk-mp9dsjrg.js → chunk-wvef3ngh.js} +1 -1
  250. package/dist/{chunk-w3e1fm1q.js → chunk-wvf31nzs.js} +1 -1
  251. package/dist/{chunk-1bzckhs2.js → chunk-x05nxhyv.js} +2 -2
  252. package/dist/{chunk-ybe2cpx1.js → chunk-x0770gt9.js} +1 -1
  253. package/dist/{chunk-ds6g241c.js → chunk-x24s4heg.js} +1 -1
  254. package/dist/{chunk-f6s1jx8c.js → chunk-x3r64r0c.js} +2 -2
  255. package/dist/{chunk-n7j8tczc.js → chunk-x5g9w4hh.js} +2 -2
  256. package/dist/{chunk-nsrqf0dg.js → chunk-xgkv66q5.js} +1 -1
  257. package/dist/{chunk-kyhq6hzp.js → chunk-xs03kc1h.js} +1 -1
  258. package/dist/{chunk-6r70w54p.js → chunk-xv34zbp4.js} +1 -1
  259. package/dist/{chunk-zhr3za7x.js → chunk-xw36p73h.js} +2 -2
  260. package/dist/{chunk-ms6793rw.js → chunk-xyg1r5w0.js} +2 -2
  261. package/dist/{chunk-1bknva4p.js → chunk-xys2sxh6.js} +1 -1
  262. package/dist/{chunk-vg97xcma.js → chunk-y0qg6rrv.js} +1 -1
  263. package/dist/{chunk-04jkv9xx.js → chunk-y1k17c8b.js} +2 -2
  264. package/dist/{chunk-zasq08k3.js → chunk-y5xz0jc4.js} +1 -1
  265. package/dist/{chunk-sx35cb80.js → chunk-y6xsqe9a.js} +2 -2
  266. package/dist/{chunk-7t4hkmxb.js → chunk-yb1t2h8h.js} +2 -2
  267. package/dist/{chunk-c03qara0.js → chunk-ygvyc6wv.js} +1 -1
  268. package/dist/{chunk-71n355cg.js → chunk-yj4x5ehw.js} +2 -2
  269. package/dist/{chunk-pdv5dhen.js → chunk-yn38c15w.js} +1 -1
  270. package/dist/{chunk-dgf2g708.js → chunk-ynhngsdh.js} +1 -1
  271. package/dist/{chunk-hkabmxjj.js → chunk-yrsb6j3z.js} +2 -2
  272. package/dist/chunk-yywfvfph.js +2 -0
  273. package/dist/{chunk-fp417rws.js → chunk-zcxzdrn7.js} +2 -2
  274. package/dist/{chunk-gcsqn7x9.js → chunk-zen6ax1y.js} +2 -2
  275. package/dist/{chunk-vawc9ak6.js → chunk-zf2pek72.js} +1 -1
  276. package/dist/{chunk-zmsj7wh8.js → chunk-zk3d0jjf.js} +1 -1
  277. package/dist/{chunk-6zhv4fcq.js → chunk-zy3rp1ab.js} +1 -1
  278. package/dist/cli.js +10934 -10934
  279. package/dist/client/directive.js +1 -1
  280. package/dist/client/index.js +1 -1
  281. package/dist/client-helpers.js +1 -1
  282. package/dist/client-script-bundler.js +1 -1
  283. package/dist/client-script.js +1 -1
  284. package/dist/client.js +0 -86
  285. package/dist/component-hmr.js +1 -1
  286. package/dist/component-processing.js +1 -1
  287. package/dist/component-registry.js +1 -1
  288. package/dist/component-renderer.js +1 -1
  289. package/dist/components.js +1 -1
  290. package/dist/composables/index.js +1 -1
  291. package/dist/composables/use-battery.js +1 -1
  292. package/dist/composables/use-broadcast-channel.js +1 -1
  293. package/dist/composables/use-channel.js +1 -1
  294. package/dist/composables/use-clipboard.js +1 -1
  295. package/dist/composables/use-color-mode.js +1 -1
  296. package/dist/composables/use-cookie.js +1 -1
  297. package/dist/composables/use-device-orientation.js +1 -1
  298. package/dist/composables/use-event-listener.js +1 -1
  299. package/dist/composables/use-event-source.js +1 -1
  300. package/dist/composables/use-eye-dropper.js +1 -1
  301. package/dist/composables/use-fetch.js +1 -1
  302. package/dist/composables/use-fullscreen.js +1 -1
  303. package/dist/composables/use-geolocation.js +1 -1
  304. package/dist/composables/use-idle.js +1 -1
  305. package/dist/composables/use-intersection-observer.js +1 -1
  306. package/dist/composables/use-keyboard.js +1 -1
  307. package/dist/composables/use-media-query.js +1 -1
  308. package/dist/composables/use-meta.js +1 -1
  309. package/dist/composables/use-mouse.js +1 -1
  310. package/dist/composables/use-mutation-observer.js +1 -1
  311. package/dist/composables/use-network.js +1 -1
  312. package/dist/composables/use-notification.js +1 -1
  313. package/dist/composables/use-permissions.js +1 -1
  314. package/dist/composables/use-resize-observer.js +1 -1
  315. package/dist/composables/use-router.js +1 -1
  316. package/dist/composables/use-share.js +1 -1
  317. package/dist/composables/use-speech.js +1 -1
  318. package/dist/composables/use-storage.js +1 -1
  319. package/dist/composables/use-text-selection.js +3 -1
  320. package/dist/composables/use-timer.js +1 -1
  321. package/dist/composables/use-utilities.js +1 -1
  322. package/dist/composables/use-wake-lock.js +1 -1
  323. package/dist/composables/use-websocket.js +1 -1
  324. package/dist/composables/use-window.js +1 -1
  325. package/dist/composables.js +1 -1
  326. package/dist/composition-api.js +1 -1
  327. package/dist/computed.js +1 -1
  328. package/dist/conditionals.js +1 -1
  329. package/dist/config.js +1 -1
  330. package/dist/craft-bridge.js +1 -1
  331. package/dist/craft-compiler.js +1 -1
  332. package/dist/craft-components.js +1 -1
  333. package/dist/craft-entry.js +1 -1
  334. package/dist/craft-ssr.js +1 -1
  335. package/dist/csp.js +1 -1
  336. package/dist/csrf.js +1 -1
  337. package/dist/custom-directives.js +1 -1
  338. package/dist/defer.js +1 -1
  339. package/dist/deploy/config-generators.js +1 -1
  340. package/dist/deploy/index.js +1 -1
  341. package/dist/deploy/netlify.js +1 -1
  342. package/dist/dev-server/crosswind.js +1 -1
  343. package/dist/dev-server/index.js +1 -1
  344. package/dist/dev-server/keyboard-shortcuts.js +1 -1
  345. package/dist/dev-server/native-window.js +1 -1
  346. package/dist/dev-server/port-utils.js +1 -1
  347. package/dist/dev-server/serve-app.js +1 -1
  348. package/dist/dev-server/serve-file.js +1 -1
  349. package/dist/dev-server/serve-markdown.js +1 -1
  350. package/dist/dev-server/serve-multi.js +1 -1
  351. package/dist/dev-server/terminal-colors.js +1 -1
  352. package/dist/dev-server/theme-selector.js +1 -1
  353. package/dist/dev-server/types.js +1 -1
  354. package/dist/dev-server.js +1 -1
  355. package/dist/devtools.js +1 -1
  356. package/dist/directive-api.js +1 -1
  357. package/dist/docs.js +1 -1
  358. package/dist/doctor.js +1 -1
  359. package/dist/document-shell.js +1 -1
  360. package/dist/dynamic-components.js +1 -1
  361. package/dist/edge-runtime.js +1 -1
  362. package/dist/env.js +1 -1
  363. package/dist/error-boundaries.js +1 -1
  364. package/dist/error-handling.js +1 -1
  365. package/dist/errors/codes.js +1 -1
  366. package/dist/errors/formatter.js +1 -1
  367. package/dist/errors/index.js +1 -1
  368. package/dist/errors/logger.js +1 -1
  369. package/dist/errors/sanitizer.js +1 -1
  370. package/dist/errors/types.js +1 -1
  371. package/dist/events.js +1 -1
  372. package/dist/expressions.js +1 -1
  373. package/dist/formatter.js +1 -1
  374. package/dist/forms-validation.js +1 -1
  375. package/dist/forms.js +1 -1
  376. package/dist/head.js +1 -1
  377. package/dist/heatmap.js +1 -1
  378. package/dist/hot-reload.js +1 -1
  379. package/dist/html-masking.js +1 -1
  380. package/dist/hydration-runtime.js +1 -1
  381. package/dist/hydration.js +1 -1
  382. package/dist/i18n.js +1 -1
  383. package/dist/image-optimization/auto-sibling.js +1 -1
  384. package/dist/image-optimization/build-plugin.js +1 -1
  385. package/dist/image-optimization/component.js +1 -1
  386. package/dist/image-optimization/directive.js +1 -1
  387. package/dist/image-optimization/index.js +1 -1
  388. package/dist/image-optimization/processor.js +1 -1
  389. package/dist/image-optimization/serve.js +1 -1
  390. package/dist/includes.js +1 -1
  391. package/dist/index.js +1 -1
  392. package/dist/init.js +1 -1
  393. package/dist/inline-assets.js +1 -1
  394. package/dist/interactive.js +1 -1
  395. package/dist/internal-markdown.js +1 -1
  396. package/dist/island-chunking.js +1 -1
  397. package/dist/js-ts.js +1 -1
  398. package/dist/jsx-runtime.js +1 -1
  399. package/dist/keep-alive.js +1 -1
  400. package/dist/lazy-loader.js +1 -1
  401. package/dist/loading-indicator.js +1 -1
  402. package/dist/loops.js +1 -1
  403. package/dist/manifest.js +1 -1
  404. package/dist/markdown.js +1 -1
  405. package/dist/media/client/blur-up.js +1 -1
  406. package/dist/media/client/index.js +1 -1
  407. package/dist/media/client/lazy-load.js +1 -1
  408. package/dist/media/client/upload-handler.js +1 -1
  409. package/dist/media/image/component.js +1 -1
  410. package/dist/media/image/directive.js +1 -1
  411. package/dist/media/image/editing.js +1 -1
  412. package/dist/media/image/index.js +1 -1
  413. package/dist/media/image/placeholder.js +1 -1
  414. package/dist/media/image/processor/cache.js +1 -1
  415. package/dist/media/image/processor/index.js +1 -1
  416. package/dist/media/image/processor/optimizer.js +1 -1
  417. package/dist/media/image/processor/responsive.js +1 -1
  418. package/dist/media/image/srcset.js +1 -1
  419. package/dist/media/index.js +1 -1
  420. package/dist/media/manager/embed.js +1 -1
  421. package/dist/media/protected/component.js +1 -1
  422. package/dist/media/protected/index.js +1 -1
  423. package/dist/media/protected/signature.js +1 -1
  424. package/dist/media/shared/cache.js +1 -1
  425. package/dist/media/shared/hash.js +1 -1
  426. package/dist/media/shared/index.js +1 -1
  427. package/dist/media/upload/component.js +1 -1
  428. package/dist/media/upload/index.js +1 -1
  429. package/dist/media/video/directive.js +1 -1
  430. package/dist/media/video/index.js +1 -1
  431. package/dist/media/video/processor/cache.js +1 -1
  432. package/dist/media/video/processor/index.js +1 -1
  433. package/dist/media/video/processor/streaming.js +1 -1
  434. package/dist/media/video/processor/thumbnail.js +1 -1
  435. package/dist/media/video/processor/transcoder.js +1 -1
  436. package/dist/method-spoofing.js +1 -1
  437. package/dist/middleware.js +1 -1
  438. package/dist/misc-directives.js +1 -1
  439. package/dist/native-build.js +1 -1
  440. package/dist/parser/directive-parser.js +1 -1
  441. package/dist/parser/expression-parser.js +1 -1
  442. package/dist/parser/index.js +1 -1
  443. package/dist/parser/tokenizer.js +1 -1
  444. package/dist/partial-hydration.js +1 -1
  445. package/dist/performance-utils.js +1 -1
  446. package/dist/placeholder.js +1 -1
  447. package/dist/plugin-system.js +1 -1
  448. package/dist/plugin.js +1 -1
  449. package/dist/precompiler.js +1 -1
  450. package/dist/process.js +1 -1
  451. package/dist/production-build.js +1 -1
  452. package/dist/production-builder.js +1 -1
  453. package/dist/production-server.js +1 -1
  454. package/dist/props.js +1 -1
  455. package/dist/public-env.js +1 -1
  456. package/dist/pwa/audit.js +1 -1
  457. package/dist/pwa/directives.js +1 -1
  458. package/dist/pwa/icons.js +1 -1
  459. package/dist/pwa/index.js +1 -1
  460. package/dist/pwa/inject.js +1 -1
  461. package/dist/pwa/manifest.js +1 -1
  462. package/dist/pwa/offline.js +1 -1
  463. package/dist/pwa/precache.js +1 -1
  464. package/dist/pwa/service-worker.js +1 -1
  465. package/dist/pwa/workbox-strategies.js +1 -1
  466. package/dist/pwa/workbox.js +1 -1
  467. package/dist/pwa.js +457 -457
  468. package/dist/reactive-bindings.js +1 -1
  469. package/dist/reactive.js +1 -1
  470. package/dist/reactivity.js +1 -1
  471. package/dist/release.js +1 -1
  472. package/dist/render.js +1 -1
  473. package/dist/route-middleware.js +1 -1
  474. package/dist/router.js +1 -1
  475. package/dist/routes.js +1 -1
  476. package/dist/runtime-injection.js +1 -1
  477. package/dist/runtime.js +1 -1
  478. package/dist/safe-evaluator.js +1 -1
  479. package/dist/scaffolding.js +1 -1
  480. package/dist/screenshot.js +1 -1
  481. package/dist/script-classifier.js +1 -1
  482. package/dist/script-validation.js +1 -1
  483. package/dist/seo.js +1 -1
  484. package/dist/serve.js +1 -1
  485. package/dist/server-bindings.js +1 -1
  486. package/dist/server-components.js +1 -1
  487. package/dist/signal-processing.js +1 -1
  488. package/dist/signals-api.js +1 -1
  489. package/dist/signals.js +1 -1
  490. package/dist/site-builder/build.js +1 -1
  491. package/dist/site-builder/i18n.js +1 -1
  492. package/dist/site-builder/index.js +1 -1
  493. package/dist/site-builder/robots.js +1 -1
  494. package/dist/site-builder/router.js +1 -1
  495. package/dist/site-builder/seo.js +1 -1
  496. package/dist/site-builder/sitemap.js +1 -1
  497. package/dist/site-builder/theme.js +1 -1
  498. package/dist/slots.js +1 -1
  499. package/dist/source-maps.js +1 -1
  500. package/dist/spa-shell.js +1 -1
  501. package/dist/ssg.js +425 -425
  502. package/dist/ssr.js +1 -1
  503. package/dist/state-management.js +1 -1
  504. package/dist/store-imports.js +1 -1
  505. package/dist/store-loader.js +1 -1
  506. package/dist/stores-client.js +1 -1
  507. package/dist/story/addons.js +1 -1
  508. package/dist/story/analytics.js +1 -1
  509. package/dist/story/auto-stories.js +1 -1
  510. package/dist/story/bookmarks.js +1 -1
  511. package/dist/story/bun-test.js +1 -1
  512. package/dist/story/cli.js +1 -1
  513. package/dist/story/collect/analyzer.js +1 -1
  514. package/dist/story/collect/index.js +1 -1
  515. package/dist/story/collect/parser.js +1 -1
  516. package/dist/story/collect/scanner.js +1 -1
  517. package/dist/story/collect/tree.js +1 -1
  518. package/dist/story/commands/build.js +1 -1
  519. package/dist/story/commands/dev.js +1 -1
  520. package/dist/story/commands/index.js +1 -1
  521. package/dist/story/commands/preview.js +1 -1
  522. package/dist/story/compiled-output.js +1 -1
  523. package/dist/story/composition.js +1 -1
  524. package/dist/story/config-watcher.js +1 -1
  525. package/dist/story/config.js +1 -1
  526. package/dist/story/context.js +1 -1
  527. package/dist/story/controls/index.js +1 -1
  528. package/dist/story/crosswind.js +1 -1
  529. package/dist/story/desktop-preview.js +1 -1
  530. package/dist/story/docs-generator.js +1 -1
  531. package/dist/story/errors.js +1 -1
  532. package/dist/story/figma-export.js +1 -1
  533. package/dist/story/generator.js +1 -1
  534. package/dist/story/hmr.js +1 -1
  535. package/dist/story/hot-swap.js +1 -1
  536. package/dist/story/index.js +1 -1
  537. package/dist/story/interactions.js +1 -1
  538. package/dist/story/keyboard-shortcuts.js +1 -1
  539. package/dist/story/output.js +1 -1
  540. package/dist/story/performance.js +1 -1
  541. package/dist/story/presets.js +1 -1
  542. package/dist/story/props-validation.js +1 -1
  543. package/dist/story/renderer.js +1 -1
  544. package/dist/story/search-index.js +1 -1
  545. package/dist/story/search.js +1 -1
  546. package/dist/story/server.js +1 -1
  547. package/dist/story/setup.js +1 -1
  548. package/dist/story/snapshots.js +1 -1
  549. package/dist/story/testing.js +1 -1
  550. package/dist/story/theme.js +1 -1
  551. package/dist/story/ui/code-panel.js +1 -1
  552. package/dist/story/ui/controls-panel.js +1 -1
  553. package/dist/story/ui/index.js +1 -1
  554. package/dist/story/ui/navigation.js +1 -1
  555. package/dist/story/ui/preview.js +1 -1
  556. package/dist/story/visual-testing.js +1 -1
  557. package/dist/streaming.js +1 -1
  558. package/dist/strict-lint.js +1 -1
  559. package/dist/style-scoping.js +1 -1
  560. package/dist/suspense.js +1 -1
  561. package/dist/teleport.js +1 -1
  562. package/dist/template-compiler.js +1 -1
  563. package/dist/template-hydrator.js +1 -1
  564. package/dist/template-tag-balance.js +1 -1
  565. package/dist/testing.js +1 -1
  566. package/dist/transitions.js +1 -1
  567. package/dist/type-checker.js +1 -1
  568. package/dist/types/directive-types.js +1 -1
  569. package/dist/types/index.js +1 -1
  570. package/dist/types.js +1 -1
  571. package/dist/typescript-templates.js +1 -1
  572. package/dist/utils.js +1 -1
  573. package/dist/validator.js +1 -1
  574. package/dist/variable-extractor.js +1 -1
  575. package/dist/view-composers.js +1 -1
  576. package/dist/virtual-scrolling.js +1 -1
  577. package/dist/visual-editor.js +1 -1
  578. package/dist/vue-template.js +1 -1
  579. package/dist/web-components/css-scoping.js +1 -1
  580. package/dist/web-components/index.js +1 -1
  581. package/dist/web-components/reactive-generator.js +418 -1
  582. package/dist/web-components.js +1 -1
  583. package/dist/x-element.js +1 -1
  584. package/package.json +8 -8
  585. package/dist/chunk-0fmsckh1.js +0 -420
  586. package/dist/chunk-2t4gywvz.js +0 -3
  587. package/dist/chunk-2yw4e0h0.js +0 -3
  588. package/dist/chunk-32ka7sdc.js +0 -1
  589. package/dist/chunk-36jjen8k.js +0 -3
  590. package/dist/chunk-37q6x951.js +0 -3
  591. package/dist/chunk-3c7q2vbq.js +0 -3
  592. package/dist/chunk-3tk0sr6m.js +0 -3
  593. package/dist/chunk-5kjk30re.js +0 -3
  594. package/dist/chunk-6x5p7rhz.js +0 -3
  595. package/dist/chunk-73x9a59t.js +0 -3
  596. package/dist/chunk-9a7ce9v1.js +0 -3
  597. package/dist/chunk-9njgv29x.js +0 -3
  598. package/dist/chunk-9zkb2dsx.js +0 -3
  599. package/dist/chunk-bs7qttx8.js +0 -3
  600. package/dist/chunk-bxp8ps0f.js +0 -5
  601. package/dist/chunk-cnchhkk2.js +0 -3
  602. package/dist/chunk-cwjdwzn3.js +0 -3
  603. package/dist/chunk-d3at6tp3.js +0 -1
  604. package/dist/chunk-egn85zmj.js +0 -3
  605. package/dist/chunk-fcrwjh47.js +0 -3
  606. package/dist/chunk-ftq6q3nx.js +0 -3
  607. package/dist/chunk-fxfmwbny.js +0 -3
  608. package/dist/chunk-h4k5wnbf.js +0 -3
  609. package/dist/chunk-kde1c2d4.js +0 -3
  610. package/dist/chunk-mf35r5h2.js +0 -3
  611. package/dist/chunk-mz4petzg.js +0 -3
  612. package/dist/chunk-qjn5xmeh.js +0 -1539
  613. package/dist/chunk-qpg9jdqb.js +0 -3
  614. package/dist/chunk-r5rx348z.js +0 -3
  615. package/dist/chunk-rs2ejj8f.js +0 -3
  616. package/dist/chunk-s7fg0jy2.js +0 -3
  617. package/dist/chunk-s9hpp0gd.js +0 -3
  618. package/dist/chunk-sajzecge.js +0 -3
  619. package/dist/chunk-sfp05afy.js +0 -3
  620. package/dist/chunk-srq3dkj8.js +0 -3
  621. package/dist/chunk-sydw4nm4.js +0 -3
  622. package/dist/chunk-t6z4b0x6.js +0 -3
  623. package/dist/chunk-wh2szb9t.js +0 -3
  624. package/dist/chunk-xzjrrd36.js +0 -1
  625. package/dist/chunk-zx35qm5v.js +0 -3
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{dB as U}from"./chunk-gcsqn7x9.js";import{FB as b}from"./chunk-jm460jxs.js";import{oC as M}from"./chunk-p5j0686t.js";import{jE as y}from"./chunk-6r70w54p.js";import T from"path";var E;async function v(){if(E!==void 0)return E;try{E=(await import("@stacksjs/ts-i18n")).loadLocale??null}catch{E=null}return E}var k={defaultLocale:"en",locale:"en",translationsDir:"translations",format:"yaml",fallbackToKey:!0,cache:!0},R={},N={},w={};function Rq(q){if(q)delete R[q];else for(let J of Object.keys(R))delete R[J]}function Yq(){let q=Object.entries(R).map(([J,H])=>({locale:J,loadedAt:new Date(H.loadedAt),keyCount:h(H.translations)}));return{size:Object.keys(R).length,locales:Object.keys(R),entries:q}}function h(q,J=0){for(let H of Object.values(q))if(J++,H&&typeof H==="object"&&!Array.isArray(H))J=h(H,J);return J}function g(q,J=0){if(J<=0)return!1;return Date.now()-q.loadedAt>J}function zq(q){if(R[q])return"loaded";return w[q]||"idle"}function Dq(q){return w[q]==="loading"}function Nq(q){return!!R[q]}async function d(q,J){let{locales:H,parallel:G=!0,priority:Q={},onLocaleLoaded:W,onComplete:X,onError:Z}=q,Y=G?H:[...H].sort((z,$)=>(Q[$]||0)-(Q[z]||0));if(G){let z=Y.map(async($)=>{try{await V($,J),W?.($)}catch(_){Z?.($,_ instanceof Error?_:Error(String(_)))}});await Promise.all(z)}else for(let z of Y)try{await V(z,J),W?.(z)}catch($){Z?.(z,$ instanceof Error?$:Error(String($)))}X?.()}function Aq(q,J){queueMicrotask(()=>{d(q,J).catch((H)=>{if(J.debug)console.error("Background preload error:",H)})})}async function V(q,J){if({...k,...J.i18n}.cache&&R[q]){let Q=R[q],W=J.i18n?.cacheMaxAge??0;if(!g(Q,W))return Q.translations}if(N[q]?.state==="loading")return N[q].promise;w[q]="loading";let G=O(q,J).then((Q)=>{return w[q]="loaded",delete N[q],Q}).catch((Q)=>{throw w[q]="error",N[q]={promise:G,state:"error",error:Q instanceof Error?Q:Error(String(Q))},Q});return N[q]={promise:G,state:"loading"},G}function u(q){return R[q]?.translations}async function wq(q,J){let H=u(q);if(H)return H;return V(q,J)}async function Fq(q,J){if(R[q])return R[q].translations;if(N[q]){if(J)return Promise.race([N[q].promise,new Promise((H,G)=>setTimeout(()=>G(Error(`Timeout waiting for locale: ${q}`)),J))]);return N[q].promise}throw Error(`Locale "${q}" is not loading. Call loadTranslationLazy first.`)}function Eq(){return Object.entries(w).filter(([q,J])=>J==="loading").map(([q])=>q)}function Pq(q){if(q)delete N[q],delete w[q];else{for(let J of Object.keys(N))delete N[J];for(let J of Object.keys(w))delete w[J]}}async function O(q,J){let H={...k,...J.i18n},G=T.isAbsolute(H.translationsDir)?H.translationsDir:T.resolve(J.root||process.cwd(),H.translationsDir);try{let Q=await v(),W=Q?await Q(q,{translationsDir:G,defaultLocale:H.defaultLocale,sources:n(H.format)}):await m(q,H,G);if(W===void 0){if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}let X=W;if(H.cache)R[q]={translations:X,loadedAt:Date.now(),locale:q};return X}catch(Q){if(J.debug)console.error(`Error loading translation file for locale "${q}":`,Q);if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}}async function m(q,J,H){let G=T.join(H,`${q}${p(J.format)}`);try{let Q=await import(G);return Q.default||Q}catch(Q){try{let W=await Bun.file(G).text();if(J.format==="yaml"||J.format==="yml")return c(W);if(J.format==="json")return JSON.parse(W);throw Q}catch{return}}}function p(q){switch(q){case"yaml":return".yaml";case"yml":return".yml";case"js":return".js";case"ts":return".ts";case"json":default:return".json"}}function c(q){let J={},H=q.split(`
2
+ import{py as U}from"./chunk-zen6ax1y.js";import{Ry as b}from"./chunk-27zsyhrd.js";import{uz as M}from"./chunk-w3b6m427.js";import{pB as y}from"./chunk-xv34zbp4.js";import T from"path";var E;async function v(){if(E!==void 0)return E;try{E=(await import("@stacksjs/ts-i18n")).loadLocale??null}catch{E=null}return E}var k={defaultLocale:"en",locale:"en",translationsDir:"translations",format:"yaml",fallbackToKey:!0,cache:!0},R={},N={},w={};function Rq(q){if(q)delete R[q];else for(let J of Object.keys(R))delete R[J]}function Yq(){let q=Object.entries(R).map(([J,H])=>({locale:J,loadedAt:new Date(H.loadedAt),keyCount:h(H.translations)}));return{size:Object.keys(R).length,locales:Object.keys(R),entries:q}}function h(q,J=0){for(let H of Object.values(q))if(J++,H&&typeof H==="object"&&!Array.isArray(H))J=h(H,J);return J}function g(q,J=0){if(J<=0)return!1;return Date.now()-q.loadedAt>J}function zq(q){if(R[q])return"loaded";return w[q]||"idle"}function Dq(q){return w[q]==="loading"}function Nq(q){return!!R[q]}async function d(q,J){let{locales:H,parallel:G=!0,priority:Q={},onLocaleLoaded:W,onComplete:X,onError:Z}=q,Y=G?H:[...H].sort((z,$)=>(Q[$]||0)-(Q[z]||0));if(G){let z=Y.map(async($)=>{try{await V($,J),W?.($)}catch(_){Z?.($,_ instanceof Error?_:Error(String(_)))}});await Promise.all(z)}else for(let z of Y)try{await V(z,J),W?.(z)}catch($){Z?.(z,$ instanceof Error?$:Error(String($)))}X?.()}function Aq(q,J){queueMicrotask(()=>{d(q,J).catch((H)=>{if(J.debug)console.error("Background preload error:",H)})})}async function V(q,J){if({...k,...J.i18n}.cache&&R[q]){let Q=R[q],W=J.i18n?.cacheMaxAge??0;if(!g(Q,W))return Q.translations}if(N[q]?.state==="loading")return N[q].promise;w[q]="loading";let G=O(q,J).then((Q)=>{return w[q]="loaded",delete N[q],Q}).catch((Q)=>{throw w[q]="error",N[q]={promise:G,state:"error",error:Q instanceof Error?Q:Error(String(Q))},Q});return N[q]={promise:G,state:"loading"},G}function u(q){return R[q]?.translations}async function wq(q,J){let H=u(q);if(H)return H;return V(q,J)}async function Fq(q,J){if(R[q])return R[q].translations;if(N[q]){if(J)return Promise.race([N[q].promise,new Promise((H,G)=>setTimeout(()=>G(Error(`Timeout waiting for locale: ${q}`)),J))]);return N[q].promise}throw Error(`Locale "${q}" is not loading. Call loadTranslationLazy first.`)}function Eq(){return Object.entries(w).filter(([q,J])=>J==="loading").map(([q])=>q)}function Pq(q){if(q)delete N[q],delete w[q];else{for(let J of Object.keys(N))delete N[J];for(let J of Object.keys(w))delete w[J]}}async function O(q,J){let H={...k,...J.i18n},G=T.isAbsolute(H.translationsDir)?H.translationsDir:T.resolve(J.root||process.cwd(),H.translationsDir);try{let Q=await v(),W=Q?await Q(q,{translationsDir:G,defaultLocale:H.defaultLocale,sources:n(H.format)}):await m(q,H,G);if(W===void 0){if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}let X=W;if(H.cache)R[q]={translations:X,loadedAt:Date.now(),locale:q};return X}catch(Q){if(J.debug)console.error(`Error loading translation file for locale "${q}":`,Q);if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}}async function m(q,J,H){let G=T.join(H,`${q}${p(J.format)}`);try{let Q=await import(G);return Q.default||Q}catch(Q){try{let W=await Bun.file(G).text();if(J.format==="yaml"||J.format==="yml")return c(W);if(J.format==="json")return JSON.parse(W);throw Q}catch{return}}}function p(q){switch(q){case"yaml":return".yaml";case"yml":return".yml";case"js":return".js";case"ts":return".ts";case"json":default:return".json"}}function c(q){let J={},H=q.split(`
3
3
  `),G=[{obj:J,indent:-1}];for(let Q of H){let W=Q.replace(/#.*$/,"").trimEnd();if(!W.trim())continue;let X=W.search(/\S/);if(X===-1)continue;while(G.length>1&&G[G.length-1].indent>=X)G.pop();let Z=G[G.length-1].obj,Y=W.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(Y){let[,,z,$]=Y,_=z.trim(),B=$.trim();if(B==="")Z[_]={},G.push({obj:Z[_],indent:X});else Z[_]=i(B)}}return J}function i(q){if(q.startsWith("'")&&q.endsWith("'")||q.startsWith('"')&&q.endsWith('"'))return q.slice(1,-1);let J=q.toLowerCase();if(J==="true"||J==="yes")return!0;if(J==="false"||J==="no")return!1;if(J==="null"||J==="~")return null;let H=Number(q);if(!Number.isNaN(H)&&q!=="")return H;return q}function n(q){switch(q){case"yaml":case"yml":return["yaml"];case"js":case"ts":return["ts"];case"json":default:return["json"]}}async function s(q,J){return V(q,J)}function r(q,J){for(let H of q){let G=H.trim(),Q=G.match(/^\{(\d+)\}\s*(.*)$/);if(Q){let X=Number.parseInt(Q[1],10);if(J===X)return Q[2];continue}let W=G.match(/^\[(\d+),(\d+|\*)\]\s*(.*)$/);if(W){let X=Number.parseInt(W[1],10),Z=W[2]==="*"?Number.POSITIVE_INFINITY:Number.parseInt(W[2],10);if(J>=X&&J<=Z)return W[3];continue}}if(q.length===2)return J===1?q[0].trim():q[1].trim();if(J<q.length)return q[J].trim();return q[q.length-1].trim()}function l(q,J={}){return f(q,J)}function f(q,J){let H="",G=0;while(G<q.length)if(q[G]==="{"){let Q=t(q,G);if(Q===-1){H+=q[G],G++;continue}let W=q.slice(G+1,Q);H+=o(W,J),G=Q+1}else if(q[G]==="'"&&G+1<q.length)if(q[G+1]==="'")H+="'",G+=2;else if(q[G+1]==="{"||q[G+1]==="}")H+=q[G+1],G+=2;else H+=q[G],G++;else H+=q[G],G++;return H}function t(q,J){let H=0;for(let G=J;G<q.length;G++)if(q[G]==="{")H++;else if(q[G]==="}"){if(H--,H===0)return G}return-1}function o(q,J){let H=e(q);if(H.length===0)return`{${q}}`;let G=H[0].trim(),Q=J[G];if(H.length===1)return Q!==void 0?String(Q):`{${G}}`;switch(H[1].trim().toLowerCase()){case"plural":return a(Q,H.slice(2).join(","),J);case"select":return Gq(Q,H.slice(2).join(","));case"selectordinal":return Hq(Q,H.slice(2).join(","));case"number":return Qq(Q,H[2]?.trim());case"date":return Wq(Q,H[2]?.trim());case"time":return Xq(Q,H[2]?.trim());default:return Q!==void 0?String(Q):`{${q}}`}}function e(q){let J=[],H="",G=0;for(let Q=0;Q<q.length;Q++){let W=q[Q];if(W==="{")G++,H+=W;else if(W==="}")G--,H+=W;else if(W===","&&G===0)J.push(H),H="";else H+=W}if(H)J.push(H);return J}function a(q,J,H){let G=Number(q)||0,Q=S(J),W=`=${G}`;if(Q[W])return K(Q[W],G,H);let X=qq(G);if(Q[X])return K(Q[X],G,H);if(Q.other)return K(Q.other,G,H);return String(G)}function K(q,J,H){let G=q.replace(/#/g,String(J));return f(G,H)}function qq(q){let J=Math.abs(q),H=Math.floor(J),G=String(q).includes(".")?String(q).split(".")[1].length:0;if(H===1&&G===0)return"one";return"other"}function Gq(q,J){let H=String(q||""),G=S(J);if(G[H])return G[H];return G.other||String(q)}function Hq(q,J){let H=Number(q)||0,G=S(J),Q=Jq(H);if(G[Q])return G[Q].replace(/#/g,String(H));if(G.other)return G.other.replace(/#/g,String(H));return String(H)}function Jq(q){let J=Math.abs(q),H=J%10,G=J%100;if(H===1&&G!==11)return"one";if(H===2&&G!==12)return"two";if(H===3&&G!==13)return"few";return"other"}function S(q){let J={},H=/(\w+|=\d+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g,G=H.exec(q);while(G!==null)J[G[1]]=G[2],G=H.exec(q);return J}function Qq(q,J){let H=Number(q);if(Number.isNaN(H))return String(q);switch(J){case"integer":return Math.floor(H).toLocaleString();case"percent":return`${(H*100).toFixed(0)}%`;case"currency":return H.toLocaleString(void 0,{style:"currency",currency:"USD"});default:return H.toLocaleString()}}function Wq(q,J){let H=q instanceof Date?q:new Date(String(q));if(Number.isNaN(H.getTime()))return String(q);let G={};switch(J){case"short":G.dateStyle="short";break;case"medium":G.dateStyle="medium";break;case"long":G.dateStyle="long";break;case"full":G.dateStyle="full";break;default:G.dateStyle="medium"}return H.toLocaleDateString(void 0,G)}function Xq(q,J){let H=q instanceof Date?q:new Date(String(q));if(Number.isNaN(H.getTime()))return String(q);let G={};switch(J){case"short":G.timeStyle="short";break;case"medium":G.timeStyle="medium";break;case"long":G.timeStyle="long";break;case"full":G.timeStyle="full";break;default:G.timeStyle="short"}return H.toLocaleTimeString(void 0,G)}function Zq(q){return/\{[^}]+,\s*(?:plural|select|selectordinal|number|date|time)\s*,/.test(q)}function I(q,J,H=!0,G={}){let Q=q.split("."),W=J;for(let Z of Q){if(W===void 0||W===null)break;W=W[Z]}if(W===void 0||W===null)return H?q:"";let X=String(W);if(Zq(X))return l(X,G);if(X.includes("|")&&"count"in G){let Z=Number(G.count),Y=X.split("|");X=r(Y,Z)}for(let[Z,Y]of Object.entries(G)){let z=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");X=X.replace(new RegExp(`:${z}`,"g"),String(Y))}return X}async function Vq(q,J,H,G){let Q=q,W=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)([\s\S]*?)@endtranslate/g,X={...k,...G.i18n},Z=await s(X.locale,G);J.__translations=Z,J.__locale=X.locale,J.__i18nConfig=X,Q=await C(Q,W,async($,_,B,x,A)=>{try{let D={};if(B)try{let F=[()=>JSON.parse(B),()=>{let j=`{"data":${B}}`,L=JSON.parse(j);return typeof L.data==="object"?L.data:{}},()=>{return M(B,J)}];for(let j of F)try{if(D=j(),Object.keys(D).length>0)break}catch{}}catch(F){if(G.debug)console.error("Error parsing parameters for @translate directive:",F)}return I(_,Z,X.fallbackToKey,D)||x.trim()}catch(D){if(G.debug)console.error("Error processing @translate directive:",D);return U("Translate",`Error in @translate('${_}'): ${D instanceof Error?D.message:String(D)}`,b.EVALUATION_ERROR)}});let Y=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]+\})\s*)?\)/g;if(G.debug){console.warn(`Processing translations in template. Sections: ${Q.includes("<h2>Translation with Parameters</h2>")?"Parameters section found":"Parameters section missing"}`);let $=[...Q.matchAll(Y)];console.warn(`Found ${$.length} @translate matches`),$.forEach((_,B)=>console.warn(`Match ${B}: ${_[0]}, Key: ${_[1]}, Params: ${_[2]||"none"}`))}return Q=await C(Q,/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)/g,async($,_,B,x)=>{try{let A={};if(B)try{let D=[()=>JSON.parse(B),()=>{let P=`{"data":${B}}`,F=JSON.parse(P);return typeof F.data==="object"?F.data:{}},()=>{return M(B,J)}];for(let P of D)try{if(A=P(),Object.keys(A).length>0)break}catch{}}catch(D){if(G.debug)console.error("Error parsing parameters for @translate directive:",D)}return I(_,Z,X.fallbackToKey,A)}catch(A){if(G.debug)console.error("Error processing @translate directive:",A);return U("Translate",`Error in @translate('${_}'): ${A instanceof Error?A.message:String(A)}`,b.EVALUATION_ERROR)}}),Q}async function C(q,J,H){let G=[];return q.replace(J,(W,...X)=>{let Z=H(W,...X).then((Y)=>({match:W,replacement:Y}));return G.push(Z),W}),(await Promise.all(G)).reduce((W,{match:X,replacement:Z})=>W.replace(X,Z),q)}function jq(q,J=!0){return(H,G={})=>{return I(H,q,J,G)}}
4
- export{k as ky,Rq as ly,Yq as my,zq as ny,Dq as oy,Nq as py,d as qy,Aq as ry,V as sy,u as ty,wq as uy,Fq as vy,Eq as wy,Pq as xy,s as yy,l as zy,Zq as Ay,I as By,Vq as Cy,jq as Dy};
4
+ export{k as qv,Rq as rv,Yq as sv,zq as tv,Dq as uv,Nq as vv,d as wv,Aq as xv,V as yv,u as zv,wq as Av,Fq as Bv,Eq as Cv,Pq as Dv,s as Ev,l as Fv,Zq as Gv,I as Hv,Vq as Iv,jq as Jv};
@@ -13,4 +13,4 @@ ${q}
13
13
  export function isDirectiveActive(name: string): boolean {
14
14
  return name in activeDirectives
15
15
  }
16
- `}function k(K,j={}){let J=[],Q=/@if\(([^)]+)\)[\s\S]*?@endif/g,q=K.matchAll(Q);for(let X of q){let Z=X[1].trim();if(_(Z,j)===!1)J.push({start:X.index,end:X.index+X[0].length,reason:`@if condition always false: ${Z}`})}let G=/@unless\(([^)]+)\)[\s\S]*?@endunless/g,W=K.matchAll(G);for(let X of W){let Z=X[1].trim();if(_(Z,j)===!0)J.push({start:X.index,end:X.index+X[0].length,reason:`@unless condition always true: ${Z}`})}let Y=/@env\(['"]development['"]\)[\s\S]*?@endenv/g;if(j.__ENV__==="production"){let X=K.matchAll(Y);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Development-only code in production build"})}let $=/@debug[\s\S]*?@enddebug/g;if(j.__ENV__==="production"){let X=K.matchAll($);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Debug code in production build"})}return J}function I(K,j={}){let J=k(K,j),Q=[];J.sort((G,W)=>W.start-G.start);let q=K;for(let G of J)q=q.slice(0,G.start)+q.slice(G.end),Q.push(G.reason);return{content:q,removed:Q}}function _(K,j){if(K==="true")return!0;if(K==="false")return!1;if(K==="null")return null;if(/^\d+$/.test(K))return Number.parseInt(K,10);if(/^\d+\.\d+$/.test(K))return Number.parseFloat(K);if(/^['"].*['"]$/.test(K))return K.slice(1,-1);if(K in j)return j[K];let J=K.match(/^(\w+)\s*(===|!==|==|!=|>=|<=|>|<)\s*(.+)$/);if(J){let[,Q,q,G]=J,W=Q in j?j[Q]:void 0,Y=_(G,j);if(W!==void 0&&Y!==void 0)switch(q){case"==":case"===":return W===Y;case"!=":case"!==":return W!==Y;case">":return W>Y;case"<":return W<Y;case">=":return W>=Y;case"<=":return W<=Y}}return}function R(K,j){let J=[],Q=K;return Q=Q.replace(/\{\{\s*(\w+)\s*\}\}/g,(q,G)=>{if(G in j)return J.push(`{{ ${G} }} -> ${j[G]}`),String(j[G]);return q}),Q=Q.replace(/\{\{\s*(\d+)\s*([+\-*])\s*(\d+)\s*\}\}/g,(q,G,W,Y)=>{let $=Number.parseInt(G,10),X=Number.parseInt(Y,10),Z;switch(W){case"+":Z=$+X;break;case"-":Z=$-X;break;case"*":Z=$*X;break;default:return q}return J.push(`{{ ${G} ${W} ${Y} }} -> ${Z}`),String(Z)}),{content:Q,folded:J}}function M(K){let j=K,J=[],Q=0;j=j.replace(/<(pre|code|script|style)([^>]*)>([\s\S]*?)<\/\1>/gi,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{([\s\S]*?)\}\}/g,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{--([\s\S]*?)--\}\}/g,""),j=j.replace(/<!--[\s\S]*?-->/g,""),j=j.replace(/>\s+</g,"><"),j=j.replace(/^\s+/gm,""),j=j.replace(/\s+$/gm,""),j=j.replace(/\s{2,}/g," ");for(let{marker:q,content:G}of J){let W=j.indexOf(q);if(W!==-1)j=j.slice(0,W)+G+j.slice(W+q.length)}return j.trim()}function N(K){let j=new Map,J=new Map,Q=/(['"])([^'"]{10,})\1/g,q;while((q=Q.exec(K))!==null){let Y=q[2];J.set(Y,(J.get(Y)||0)+1)}let G=0,W=K;for(let[Y,$]of J)if($>1){let X=`__STR_${G++}__`;j.set(X,Y);let Z=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),F=new RegExp(`(['"])${Z}\\1`,"g");W=W.replace(F,X)}return{content:W,pool:j,count:j.size}}function b(K,j={}){let J={...E,...j},Q=new Blob([K]).size,q=K,G=[],W=[],Y=[],$=[],X=0;if(J.target==="production")J.constants={...J.constants,__ENV__:"production"};if(J.deadCodeElimination){let H=I(q,J.constants);if(q=H.content,H.removed.length>0)G.push("Dead code elimination"),W.push(...H.removed.map((y)=>`Removed: ${y}`))}if(J.constantFolding&&Object.keys(J.constants).length>0){let H=R(q,J.constants);if(q=H.content,$=H.folded,$.length>0)G.push("Constant folding")}if(J.treeShake){if(Y=T(q,J.preserveDirectives),Y.length>0)G.push("Tree shaking")}if(J.stringPooling){let H=N(q);if(q=H.content,X=H.count,X>0)G.push("String pooling")}if(J.minifyHtml){let H=M(q);if(H.length<q.length)q=H,G.push("HTML minification")}let Z=new Blob([q]).size,F=Q>0?Math.round((1-Z/Q)*100):0;return{content:q,originalSize:Q,optimizedSize:Z,reduction:F,appliedOptimizations:G,removedDirectives:Y,foldedConstants:$,pooledStrings:X,warnings:W}}async function B(K,j={}){let J={...E,...j},Q=new Map,q=[],G=0,W=0,Y=new Set;for(let[F,H]of K){let y=b(H,J);Q.set(F,y),G+=y.originalSize,W+=y.optimizedSize,q.push(...y.warnings.map((P)=>`${F}: ${P}`));let w=A(H);for(let P of w)Y.add(P.name)}let $;if(J.treeShake)$=U(Array.from(Y));let X;if(J.stringPooling)X=new Map;let Z=G>0?Math.round((1-W/G)*100):0;return{templates:Q,directiveBundle:$,stringPool:X,totalOriginalSize:G,totalOptimizedSize:W,overallReduction:Z,warnings:q}}function C(K){return K.charAt(0).toUpperCase()+K.slice(1)}export{A as kt,T as lt,U as mt,k as nt,I as ot,_ as pt,R as qt,M as rt,N as st,b as tt,B as ut};
16
+ `}function k(K,j={}){let J=[],Q=/@if\(([^)]+)\)[\s\S]*?@endif/g,q=K.matchAll(Q);for(let X of q){let Z=X[1].trim();if(_(Z,j)===!1)J.push({start:X.index,end:X.index+X[0].length,reason:`@if condition always false: ${Z}`})}let G=/@unless\(([^)]+)\)[\s\S]*?@endunless/g,W=K.matchAll(G);for(let X of W){let Z=X[1].trim();if(_(Z,j)===!0)J.push({start:X.index,end:X.index+X[0].length,reason:`@unless condition always true: ${Z}`})}let Y=/@env\(['"]development['"]\)[\s\S]*?@endenv/g;if(j.__ENV__==="production"){let X=K.matchAll(Y);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Development-only code in production build"})}let $=/@debug[\s\S]*?@enddebug/g;if(j.__ENV__==="production"){let X=K.matchAll($);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Debug code in production build"})}return J}function I(K,j={}){let J=k(K,j),Q=[];J.sort((G,W)=>W.start-G.start);let q=K;for(let G of J)q=q.slice(0,G.start)+q.slice(G.end),Q.push(G.reason);return{content:q,removed:Q}}function _(K,j){if(K==="true")return!0;if(K==="false")return!1;if(K==="null")return null;if(/^\d+$/.test(K))return Number.parseInt(K,10);if(/^\d+\.\d+$/.test(K))return Number.parseFloat(K);if(/^['"].*['"]$/.test(K))return K.slice(1,-1);if(K in j)return j[K];let J=K.match(/^(\w+)\s*(===|!==|==|!=|>=|<=|>|<)\s*(.+)$/);if(J){let[,Q,q,G]=J,W=Q in j?j[Q]:void 0,Y=_(G,j);if(W!==void 0&&Y!==void 0)switch(q){case"==":case"===":return W===Y;case"!=":case"!==":return W!==Y;case">":return W>Y;case"<":return W<Y;case">=":return W>=Y;case"<=":return W<=Y}}return}function R(K,j){let J=[],Q=K;return Q=Q.replace(/\{\{\s*(\w+)\s*\}\}/g,(q,G)=>{if(G in j)return J.push(`{{ ${G} }} -> ${j[G]}`),String(j[G]);return q}),Q=Q.replace(/\{\{\s*(\d+)\s*([+\-*])\s*(\d+)\s*\}\}/g,(q,G,W,Y)=>{let $=Number.parseInt(G,10),X=Number.parseInt(Y,10),Z;switch(W){case"+":Z=$+X;break;case"-":Z=$-X;break;case"*":Z=$*X;break;default:return q}return J.push(`{{ ${G} ${W} ${Y} }} -> ${Z}`),String(Z)}),{content:Q,folded:J}}function M(K){let j=K,J=[],Q=0;j=j.replace(/<(pre|code|script|style)([^>]*)>([\s\S]*?)<\/\1>/gi,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{([\s\S]*?)\}\}/g,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{--([\s\S]*?)--\}\}/g,""),j=j.replace(/<!--[\s\S]*?-->/g,""),j=j.replace(/>\s+</g,"><"),j=j.replace(/^\s+/gm,""),j=j.replace(/\s+$/gm,""),j=j.replace(/\s{2,}/g," ");for(let{marker:q,content:G}of J){let W=j.indexOf(q);if(W!==-1)j=j.slice(0,W)+G+j.slice(W+q.length)}return j.trim()}function N(K){let j=new Map,J=new Map,Q=/(['"])([^'"]{10,})\1/g,q;while((q=Q.exec(K))!==null){let Y=q[2];J.set(Y,(J.get(Y)||0)+1)}let G=0,W=K;for(let[Y,$]of J)if($>1){let X=`__STR_${G++}__`;j.set(X,Y);let Z=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),F=new RegExp(`(['"])${Z}\\1`,"g");W=W.replace(F,X)}return{content:W,pool:j,count:j.size}}function b(K,j={}){let J={...E,...j},Q=new Blob([K]).size,q=K,G=[],W=[],Y=[],$=[],X=0;if(J.target==="production")J.constants={...J.constants,__ENV__:"production"};if(J.deadCodeElimination){let H=I(q,J.constants);if(q=H.content,H.removed.length>0)G.push("Dead code elimination"),W.push(...H.removed.map((y)=>`Removed: ${y}`))}if(J.constantFolding&&Object.keys(J.constants).length>0){let H=R(q,J.constants);if(q=H.content,$=H.folded,$.length>0)G.push("Constant folding")}if(J.treeShake){if(Y=T(q,J.preserveDirectives),Y.length>0)G.push("Tree shaking")}if(J.stringPooling){let H=N(q);if(q=H.content,X=H.count,X>0)G.push("String pooling")}if(J.minifyHtml){let H=M(q);if(H.length<q.length)q=H,G.push("HTML minification")}let Z=new Blob([q]).size,F=Q>0?Math.round((1-Z/Q)*100):0;return{content:q,originalSize:Q,optimizedSize:Z,reduction:F,appliedOptimizations:G,removedDirectives:Y,foldedConstants:$,pooledStrings:X,warnings:W}}async function B(K,j={}){let J={...E,...j},Q=new Map,q=[],G=0,W=0,Y=new Set;for(let[F,H]of K){let y=b(H,J);Q.set(F,y),G+=y.originalSize,W+=y.optimizedSize,q.push(...y.warnings.map((P)=>`${F}: ${P}`));let w=A(H);for(let P of w)Y.add(P.name)}let $;if(J.treeShake)$=U(Array.from(Y));let X;if(J.stringPooling)X=new Map;let Z=G>0?Math.round((1-W/G)*100):0;return{templates:Q,directiveBundle:$,stringPool:X,totalOriginalSize:G,totalOptimizedSize:W,overallReduction:Z,warnings:q}}function C(K){return K.charAt(0).toUpperCase()+K.slice(1)}export{A as qq,T as rq,U as sq,k as tq,I as uq,_ as vq,R as wq,M as xq,N as yq,b as zq,B as Aq};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  function K(B,E){let C=E.treeFile||{title:E.fileName,path:E.relativePath};if(B.tree.file==="title")return C.title.split("/");if(B.tree.file==="path")return[...E.relativePath.split("/").slice(0,-1),C.title];if(typeof B.tree.file==="function")return B.tree.file(C);return[C.title]}function Q(B,E){for(let z of E)z.treePath=K(B,z);let C=(B.tree.groups||[]).map((z)=>({groupConfig:{id:z.id||z.title,title:z.title,include:z.include},treeObject:{}})),q={treeObject:{}};C.push(q);for(let z=0;z<E.length;z++){let H=E[z],J=L(H,C,q);M(H.treePath,z,J.treeObject)}let A=B.tree.order==="asc"?(z,H)=>z.localeCompare(H):B.tree.order,D=[];for(let z of C)if(z===q)D.push(...I(z.treeObject,A));else if(z.groupConfig&&Object.keys(z.treeObject).length>0)D.push({group:!0,id:z.groupConfig.id,title:z.groupConfig.title,children:I(z.treeObject,A)});return D}function L(B,E,C){let q=B.treeFile||{title:B.fileName,path:B.relativePath};for(let A of E)if(A.groupConfig?.include&&A.groupConfig.include(q))return A;return C}function M(B,E,C){let q=C;for(let A=0;A<B.length;A++){let D=B[A];if(A===B.length-1)if(q[D]!==void 0){let H=1;while(q[`${D}-${H}`]!==void 0)H++;q[`${D}-${H}`]=E}else q[D]=E;else{if(q[D]===void 0)q[D]={};else if(typeof q[D]==="number"){let H=q[D];q[D]={"":H}}q=q[D]}}}function I(B,E){let C=[];for(let[q,A]of Object.entries(B))if(typeof A==="number")C.push({title:q,index:A});else C.push({title:q,children:I(A,E)});return C.sort((q,A)=>E(q.title,A.title)),C}function R(B){let E=[];function C(q){for(let A of q)if("index"in A)E.push(A.index);else if("children"in A)C(A.children)}return C(B),E}function S(B,E){function C(q,A){for(let D of q)if("index"in D&&D.index===E)return{path:[...A,D.title],node:D};else if("children"in D){let z=C(D.children,[...A,D.title]);if(z)return z}return null}return C(B,[])}
3
- export{K as md,Q as nd,R as od,S as pd};
3
+ export{K as id,Q as jd,R as kd,S as ld};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{jE as W}from"./chunk-6r70w54p.js";function Y(k){if(k.includes("window.StacksBrowser")||k.includes("StacksBrowser ="))return k;let H=/<script\b(?![^>]*\bserver\b)[^>]*>([\s\S]*?)<\/script>/gi,q="",F;while((F=H.exec(k))!==null)q+=F[1]+`
2
+ import{pB as W}from"./chunk-xv34zbp4.js";function Y(k){if(k.includes("window.StacksBrowser")||k.includes("StacksBrowser ="))return k;let H=/<script\b(?![^>]*\bserver\b)[^>]*>([\s\S]*?)<\/script>/gi,q="",F;while((F=H.exec(k))!==null)q+=F[1]+`
3
3
  `;let G=/\{\{([\s\S]*?)\}\}/g;while((F=G.exec(k))!==null)q+=F[1]+`
4
4
  `;if(!q.trim())return k;let A=["browserQuery","BrowserQueryBuilder","configureBrowser","createBrowserModel"].some((N)=>{return new RegExp(`\\b${N}\\b`).test(q)}),z=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process"]),K=/\b([A-Z][a-zA-Z0-9]*)\s*\.\s*(all|find|first|get|where|orderBy|orderByDesc|limit|select|pluck|create|update|delete)\s*\(/g,T,V=!1;while((T=K.exec(q))!==null)if(!z.has(T[1])){V=!0;break}if(!A&&!V)return k;let L=`<script type="module">
5
5
  // STX: Auto-load @stacksjs/browser (auto-initializes API and loads models)
@@ -18,4 +18,4 @@ ${L}`);return L+`
18
18
  `+k}async function _(k,H){if(!k.includes("</body>"))return k;if(k.includes("__stxRouter)return")||k.includes("__stxRouter=true"))return k;let q=H?.router,F="";if(q){let z={};if(q.container)z.container=q.container;if(q.interceptAllLinks!==void 0)z.interceptAllLinks=q.interceptAllLinks;if(q.progress!==void 0)z.progress=q.progress;if(q.viewTransitions!==void 0)z.viewTransitions=q.viewTransitions;if(q.viewTransitionDuration!==void 0)z.viewTransitionDuration=q.viewTransitionDuration;if(q.viewTransitionEasing!==void 0)z.viewTransitionEasing=q.viewTransitionEasing;if(q.scrollToTop!==void 0)z.scrollToTop=q.scrollToTop;if(q.prefetch!==void 0)z.prefetch=q.prefetch;if(q.cache!==void 0)z.cache=q.cache;if(q.progressColor!==void 0)z.progressColor=q.progressColor;if(q.progressHeight!==void 0)z.progressHeight=q.progressHeight;if(Object.keys(z).length>0)F=`<script>window.__stxRouterConfig=${JSON.stringify(z)};</script>
19
19
  `}let{getCachedRouterScript:G}=await import("././caching.js"),J=H?.buildMode==="compile"?'<script src="/__stx/router.__STX_HASH__.js"></script>':`<script>${await G()}</script>`,A=k.lastIndexOf("</body>");return k.slice(0,A)+F+J+`
20
20
  </body>`+k.slice(A+7)}
21
- export{Y as Jw,Z as Kw,_ as Lw};
21
+ export{Y as Pt,Z as Qt,_ as Rt};
@@ -138,4 +138,4 @@ function K(w){let z=new Map;for(let b of w)z.set(b.name,{name:b.name,path:b.path
138
138
  </div>
139
139
  </div>
140
140
  `}
141
- export{K as ab,O as bb,P as cb,Q as db,R as eb,U as fb,V as gb};
141
+ export{K as Ya,O as Za,P as _a,Q as $a,R as ab,U as bb,V as cb};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ev as m,Su as C}from"./chunk-qjn5xmeh.js";import{Zv as x}from"./chunk-4wsmprpm.js";import{jE as c}from"./chunk-6r70w54p.js";var{serve:h}=globalThis.Bun;import K from"fs";import $ from"path";function jj(W,Z=200,G={}){return new Response(W,{status:Z,headers:{"Content-Type":"text/html; charset=utf-8",...G}})}async function i(W={}){let{port:Z=3000,root:G=".",stxOptions:E={},watch:v=!0,onRequest:V,routes:N={},middleware:D=[],on404:T,onError:g}=W,F=$.resolve(G),X=new Map;async function O(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;for(let J of X.keys())if(J.startsWith(`${A}:`)&&J!==L)X.delete(J);let j=await Bun.file(A).text(),Q=j,H=j.match(/<template\b(?![^>]*\b(?:id|x-for|x-if|@for|@if|:for|:if)\s*=)[^>]*>/i);if(H&&H.index!==void 0){let J=H.index+H[0].length,U=1,_=J;while(_<j.length&&U>0){let R=j.indexOf("<template",_),k=j.indexOf("</template>",_);if(k===-1)break;if(R!==-1&&R<k)U++,_=R+9;else{if(U--,U===0){Q=j.substring(J,k).trim();break}_=k+11}}}let y=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,b=[],d=[],I;while((I=y.exec(j))!==null){let J=I[1],U=I[2],_=I[0];if(J.includes("server"))d.push(U);else b.push(_)}let P=j.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],p=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),M={__filename:A,__dirname:$.dirname(A)};for(let J of d)await x(J,M,A);let Y=await m(p,M,A,E,new Set);if(P.length>0){let J=P.join(`
2
+ import{Ks as m,Yr as C}from"./chunk-1xz0w746.js";import{dt as x}from"./chunk-g1vt329s.js";import{pB as c}from"./chunk-xv34zbp4.js";var{serve:h}=globalThis.Bun;import K from"fs";import $ from"path";function jj(W,Z=200,G={}){return new Response(W,{status:Z,headers:{"Content-Type":"text/html; charset=utf-8",...G}})}async function i(W={}){let{port:Z=3000,root:G=".",stxOptions:E={},watch:v=!0,onRequest:V,routes:N={},middleware:D=[],on404:T,onError:g}=W,F=$.resolve(G),X=new Map;async function O(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;for(let J of X.keys())if(J.startsWith(`${A}:`)&&J!==L)X.delete(J);let j=await Bun.file(A).text(),Q=j,H=j.match(/<template\b(?![^>]*(?:\b(?:id|x-for|x-if|@for|@if|:for|:if)\s*=|\s#[\w-]|\bv-slot|\bslot\s*=))[^>]*>/i);if(H&&H.index!==void 0){let J=H.index+H[0].length,U=1,_=J;while(_<j.length&&U>0){let R=j.indexOf("<template",_),k=j.indexOf("</template>",_);if(k===-1)break;if(R!==-1&&R<k)U++,_=R+9;else{if(U--,U===0){Q=j.substring(J,k).trim();break}_=k+11}}}let y=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,b=[],d=[],I;while((I=y.exec(j))!==null){let J=I[1],U=I[2],_=I[0];if(J.includes("server"))d.push(U);else b.push(_)}let P=j.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],p=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),M={__filename:A,__dirname:$.dirname(A)};for(let J of d)await x(J,M,A);let Y=await m(p,M,A,E,new Set);if(P.length>0){let J=P.join(`
3
3
  `);if(Y.match(/(<\/head>)/i))Y=Y.replace(/(<\/head>)/i,`${J}
4
4
  $1`)}if(b.length>0){let{interpolateScriptsInTemplate:J}=await import("././expressions.js"),U=J(b.join(`
5
5
  `),M);if(Y.match(/(<\/body>)/i))Y=Y.replace(/(<\/body>)/i,`${U}
@@ -7,4 +7,4 @@ $1`);else Y+=`
7
7
  ${U}`}return X.set(L,{content:Y,mtime:B.mtimeMs}),Y}async function w(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;let{content:j}=await C(A,E);return X.set(L,{content:j,mtime:B.mtimeMs}),j}function u(A){let B=A.startsWith("/")?A.slice(1):A,L=[B,`${B}.stx`,`${B}.md`,`${B}.html`,$.join(B,"index.stx"),$.join(B,"index.md"),$.join(B,"index.html")];for(let z of L){let j=$.join(F,z);if(K.existsSync(j)&&K.statSync(j).isFile())return j}return null}async function f(A){let B=new URL(A.url),L=async()=>{if(N[B.pathname])return await N[B.pathname](A);if(V){let j=await V(A);if(j)return j}let z=u(B.pathname);if(!z){if(T)return await T(A);return new Response("Not Found",{status:404})}try{let j,Q="text/html";if(z.endsWith(".stx"))j=await O(z);else if(z.endsWith(".md"))j=await w(z);else if(z.endsWith(".html"))j=await Bun.file(z).text();else if(z.endsWith(".css"))j=await Bun.file(z).text(),Q="text/css";else if(z.endsWith(".js"))j=await Bun.file(z).text(),Q="text/javascript";else if(z.endsWith(".json"))j=await Bun.file(z).text(),Q="application/json";else return new Response(Bun.file(z));return new Response(j,{headers:{"Content-Type":Q}})}catch(j){if(g)return await g(j,A);let Q=j instanceof Error?j.message:String(j),y=E?.debug===!0?`<h1>Error</h1><pre>${Q}
8
8
  ${j instanceof Error?j.stack:""}</pre>`:"<h1>Internal Server Error</h1><p>An error occurred while processing your request.</p>";return new Response(y,{status:500,headers:{"Content-Type":"text/html"}})}};for(let z=D.length-1;z>=0;z--){let j=D[z],Q=L;L=async()=>await j(A,Q)}return await L()}let S=h({port:Z,fetch:f}),q=null;if(v)q=K.watch(F,{recursive:!0},(A,B)=>{if(B&&(B.endsWith(".stx")||B.endsWith(".md")||B.endsWith(".html")))X.clear()});return{server:S,url:S.url.toString(),stop(){if(q)q.close();S.stop()}}}async function zj(W,Z={}){let G=$.resolve(W);if(!await Bun.file(G).exists())throw Error(`File not found: ${G}`);let E=G.endsWith(".md"),v=G.endsWith(".stx");if(!E&&!v)throw Error(`Unsupported file type: ${G}. Only .stx and .md files are supported.`);return await i({...Z,root:$.dirname(G),routes:{"/":async()=>{let V;if(E){let{content:N}=await C(G,Z.stxOptions);V=N}else{let N=await Bun.file(G).text(),D=[],T=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=T.exec(N))!==null)if(g[1].includes("server"))D.push(g[2]);let F=D.join(`
9
9
  `),X=N.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),O={};if(F.trim())await x(F,O,G);let w=new Set;V=await m(X,O,G,Z.stxOptions||{},w)}return new Response(V,{headers:{"Content-Type":"text/html"}})},...Z.routes}})}function Aj(W){return W}function Bj(W){return W}
10
- export{jj as mh,i as nh,zj as oh,Aj as ph,Bj as qh};
10
+ export{jj as jh,i as kh,zj as lh,Aj as mh,Bj as nh};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{nB as J}from"./chunk-pjaa8q7x.js";import{xB as K}from"./chunk-b0w1cm1s.js";import{jE as I}from"./chunk-6r70w54p.js";var V={isEnabled(){return J().enableAutoRecovery},fixCommonSyntaxErrors(j){let k=J();if(!k.enableAutoRecovery)return{fixed:j,fixes:[]};let q=j,z=[],A=(q.match(/\{\{/g)||[]).length,H=(q.match(/\}\}/g)||[]).length;if(A>H){let G=A-H;q+="}}".repeat(G),z.push(`Added ${G} missing closing braces '}}'`)}let F=["if","foreach","for","switch","section"];for(let G of F){let M=(q.match(new RegExp(`@${G}\\b`,"g"))||[]).length,N=(q.match(new RegExp(`@end${G}\\b`,"g"))||[]).length;if(M>N){let O=M-N;for(let Q=0;Q<O;Q++)q+=`
2
+ import{zy as J}from"./chunk-fjk3x41y.js";import{Jy as K}from"./chunk-5shey2e4.js";import{pB as I}from"./chunk-xv34zbp4.js";var V={isEnabled(){return J().enableAutoRecovery},fixCommonSyntaxErrors(j){let k=J();if(!k.enableAutoRecovery)return{fixed:j,fixes:[]};let q=j,z=[],A=(q.match(/\{\{/g)||[]).length,H=(q.match(/\}\}/g)||[]).length;if(A>H){let G=A-H;q+="}}".repeat(G),z.push(`Added ${G} missing closing braces '}}'`)}let F=["if","foreach","for","switch","section"];for(let G of F){let M=(q.match(new RegExp(`@${G}\\b`,"g"))||[]).length,N=(q.match(new RegExp(`@end${G}\\b`,"g"))||[]).length;if(M>N){let O=M-N;for(let Q=0;Q<O;Q++)q+=`
3
3
  @end${G}`;z.push(`Added ${O} missing @end${G}`)}}if(z.length>0&&k.logRecoveryWarnings)console.warn("[stx] Auto-recovery applied fixes:"),z.forEach((G)=>console.warn(` - ${G}`)),console.warn(" Consider fixing these issues in your template.");return{fixed:q,fixes:z}},createFallbackContent(j,k){if(K())return`<!-- ${j} failed: ${k.message} -->`;return"<!-- stx rendering error -->"}};class R{errors=[];maxErrors;enableFileLogging;logFilePath;logFormat;maxFileSize;maxLogFiles;minLevel;writeQueue=Promise.resolve();constructor(j={}){this.maxErrors=j.maxErrors??1000,this.enableFileLogging=j.enableFileLogging??!1,this.logFilePath=j.logFilePath??".stx/errors.log",this.logFormat=j.logFormat??"json",this.maxFileSize=j.maxFileSize??10485760,this.maxLogFiles=j.maxLogFiles??5,this.minLevel=j.minLevel??"all"}configure(j){if(j.maxErrors!==void 0)this.maxErrors=j.maxErrors;if(j.enableFileLogging!==void 0)this.enableFileLogging=j.enableFileLogging;if(j.logFilePath!==void 0)this.logFilePath=j.logFilePath;if(j.logFormat!==void 0)this.logFormat=j.logFormat;if(j.maxFileSize!==void 0)this.maxFileSize=j.maxFileSize;if(j.maxLogFiles!==void 0)this.maxLogFiles=j.maxLogFiles;if(j.minLevel!==void 0)this.minLevel=j.minLevel}log(j,k,q="error"){let z={timestamp:new Date,error:j,context:k,level:q};if(this.errors.push(z),this.errors.length>this.maxErrors)this.errors=this.errors.slice(-this.maxErrors);if(this.enableFileLogging&&this.shouldLog(q))this.writeToFile(z)}shouldLog(j){if(this.minLevel==="all")return!0;if(this.minLevel==="warning")return j==="error"||j==="warning";if(this.minLevel==="error")return j==="error";return!0}formatEntry(j){if(this.logFormat==="json")return JSON.stringify({timestamp:j.timestamp.toISOString(),level:j.level||"error",type:j.error.constructor.name,message:j.error.message,stack:j.error.stack,context:j.context});let k=[`[${j.timestamp.toISOString()}] [${(j.level||"error").toUpperCase()}] ${j.error.constructor.name}: ${j.error.message}`];if(j.error.stack)k.push(` Stack: ${j.error.stack.split(`
4
4
  `).slice(1).join(`
5
5
  `)}`);if(j.context)k.push(` Context: ${JSON.stringify(j.context)}`);return k.join(`
@@ -8,4 +8,4 @@ import{nB as J}from"./chunk-pjaa8q7x.js";import{xB as K}from"./chunk-b0w1cm1s.js
8
8
 
9
9
  `),"utf-8")}}async flush(){await this.writeQueue}}var W=new R,X={isDevelopment(){return K()},logDetailedError(j,k){if(!this.isDevelopment())return;if(console.error("=== stx Detailed Error ==="),console.error("Error:",j.message),console.error("Stack:",j.stack),k)console.error("Context:",k);console.error("========================")},createErrorReport(j,k){let q=["=== stx Error Report ===",`Time: ${new Date().toISOString()}`,`Error: ${j.message}`,`Type: ${j.constructor.name}`,`Stack: ${j.stack}`];if(k)q.push(`Context: ${JSON.stringify(k,null,2)}`);return q.push("========================"),q.join(`
10
10
  `)}};
11
- export{V as iB,R as jB,W as kB,X as lB};
11
+ export{V as uy,R as vy,W as wy,X as xy};
@@ -87,4 +87,4 @@ else {
87
87
  --primary: ${f.primaryColor};
88
88
  }
89
89
  `}
90
- export{v as _,f as $,z as aa,A as ba,B as ca,F as da,H as ea,I as fa,J as ga,K as ha,L as ia,N as ja,O as ka};
90
+ export{v as W,f as X,z as Y,A as Z,B as _,F as $,H as aa,I as ba,J as ca,K as da,L as ea,N as fa,O as ga};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{iE as U}from"./chunk-6r70w54p.js";function K(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function V(j){return K(j).className}function X(j){return{className:"ExpirationPlugin",importFrom:"workbox-expiration",options:{...j.maxEntries&&{maxEntries:j.maxEntries},...j.maxAgeSeconds&&{maxAgeSeconds:j.maxAgeSeconds},...j.purgeOnQuotaError!==void 0&&{purgeOnQuotaError:j.purgeOnQuotaError}}}}function Y(j){return{className:"CacheableResponsePlugin",importFrom:"workbox-cacheable-response",options:{...j.statuses&&{statuses:j.statuses},...j.headers&&{headers:j.headers}}}}function d(j){return{className:"BackgroundSyncPlugin",importFrom:"workbox-background-sync",options:{name:j.name,...j.maxRetentionTime&&{maxRetentionTime:j.maxRetentionTime},...j.forceSyncFallback!==void 0&&{forceSyncFallback:j.forceSyncFallback}}}}function Z(j){let q=K(j.strategy),B=[];if(j.maxAgeSeconds||j.maxEntries)B.push(X({maxAgeSeconds:j.maxAgeSeconds,maxEntries:j.maxEntries,purgeOnQuotaError:!0}));if(j.strategy==="network-first"||j.strategy==="stale-while-revalidate")B.push(Y({statuses:[0,200]}));return{urlPattern:j.pattern,handler:q.className,options:{cacheName:j.cacheName,...B.length>0&&{plugins:B}}}}function A(j){return j.map((q)=>Z(q))}function N(j){let q=j.pwa;if(!q?.enabled)return"";let B=q.routes||[],G=q.cacheStorage,I=[];for(let z of B){let L=V(z.strategy),H=[];if(z.maxAgeSeconds||z.maxEntries||G?.maxEntries){let Q=z.maxEntries||G?.maxEntries||100,J=z.maxAgeSeconds||(G?.maxAge?G.maxAge*24*60*60:void 0);H.push(`new ExpirationPlugin({
2
+ import{oB as U}from"./chunk-xv34zbp4.js";function K(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function V(j){return K(j).className}function X(j){return{className:"ExpirationPlugin",importFrom:"workbox-expiration",options:{...j.maxEntries&&{maxEntries:j.maxEntries},...j.maxAgeSeconds&&{maxAgeSeconds:j.maxAgeSeconds},...j.purgeOnQuotaError!==void 0&&{purgeOnQuotaError:j.purgeOnQuotaError}}}}function Y(j){return{className:"CacheableResponsePlugin",importFrom:"workbox-cacheable-response",options:{...j.statuses&&{statuses:j.statuses},...j.headers&&{headers:j.headers}}}}function d(j){return{className:"BackgroundSyncPlugin",importFrom:"workbox-background-sync",options:{name:j.name,...j.maxRetentionTime&&{maxRetentionTime:j.maxRetentionTime},...j.forceSyncFallback!==void 0&&{forceSyncFallback:j.forceSyncFallback}}}}function Z(j){let q=K(j.strategy),B=[];if(j.maxAgeSeconds||j.maxEntries)B.push(X({maxAgeSeconds:j.maxAgeSeconds,maxEntries:j.maxEntries,purgeOnQuotaError:!0}));if(j.strategy==="network-first"||j.strategy==="stale-while-revalidate")B.push(Y({statuses:[0,200]}));return{urlPattern:j.pattern,handler:q.className,options:{cacheName:j.cacheName,...B.length>0&&{plugins:B}}}}function A(j){return j.map((q)=>Z(q))}function N(j){let q=j.pwa;if(!q?.enabled)return"";let B=q.routes||[],G=q.cacheStorage,I=[];for(let z of B){let L=V(z.strategy),H=[];if(z.maxAgeSeconds||z.maxEntries||G?.maxEntries){let Q=z.maxEntries||G?.maxEntries||100,J=z.maxAgeSeconds||(G?.maxAge?G.maxAge*24*60*60:void 0);H.push(`new ExpirationPlugin({
3
3
  maxEntries: ${Q},
4
4
  ${J?`maxAgeSeconds: ${J},`:""}
5
5
  purgeOnQuotaError: true,
@@ -18,4 +18,4 @@ registerRoute(
18
18
  })
19
19
  );`)}return I.join(`
20
20
  `)}function _(j){if(j.startsWith("*.")){let q=j.slice(2);return`({ request }) => request.destination === '${$(q)}'`}if(j.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${j.slice(0,-3)}')`;if(j.endsWith("/*")){let q=j.slice(0,-2);return`({ url }) => url.pathname.startsWith('${q}') && !url.pathname.slice(${q.length+1}).includes('/')`}if(j.includes("*")&&!j.startsWith("*")){let[q,B]=j.split("*");return`({ url }) => url.pathname.startsWith('${q}') && url.pathname.endsWith('${B}')`}if(j==="/"||!j.includes("*"))return`({ url }) => url.pathname === '${j}'`;return`new RegExp('${D(j).replace(/\\\*/g,".*")}')`}function $(j){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[j.toLowerCase()]||"empty"}function v(j){return"stx-"+j.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function D(j){return j.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var F=()=>{};
21
- export{K as _e,V as $e,X as af,Y as bf,d as cf,Z as df,A as ef,N as ff,_ as gf,F as hf};
21
+ export{K as We,V as Xe,X as Ye,Y as Ze,d as _e,Z as $e,A as af,N as bf,_ as cf,F as df};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  var S={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",brightRed:"\x1B[91m",brightGreen:"\x1B[92m",brightYellow:"\x1B[93m",brightBlue:"\x1B[94m",brightMagenta:"\x1B[95m",brightCyan:"\x1B[96m",brightWhite:"\x1B[97m"},V={bold:"\x1B[1m",dim:"\x1B[2m",italic:"\x1B[3m",underline:"\x1B[4m",inverse:"\x1B[7m",strikethrough:"\x1B[9m"};function J(j,q){return`${S[q]}${j}\x1B[0m`}function O(j,q){return`${V[q]}${j}\x1B[0m`}var K=(j)=>J(j,"red"),G=(j)=>J(j,"green"),M=(j)=>J(j,"yellow"),W=(j)=>J(j,"blue"),X=(j)=>J(j,"magenta"),A=(j)=>J(j,"cyan"),Y=(j)=>J(j,"white"),Z=(j)=>J(j,"gray"),B=(j)=>O(j,"bold"),L=(j)=>O(j,"dim"),_=(j)=>O(j,"italic"),$=(j)=>O(j,"underline");function h(){console.log(""),console.log(A(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557")),console.log(A(" \u2551")+B(" \uD83D\uDCD6 STX Story ")+A("\u2551")),console.log(A(" \u2551")+L(" Component Showcase & Testing ")+A("\u2551")),console.log(A(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D")),console.log("")}function z(j,q){if(console.log(B(" Server running at:")),console.log(""),console.log(` ${L("\u279C")} ${B("Local:")} ${A(j)}`),q)console.log(` ${L("\u279C")} ${B("Network:")} ${A(q)}`);console.log("")}function F(j){let q=j>0?"\u2713":"\u25CB",E=j>0?G:M;console.log(` ${E(q)} Found ${B(String(j))} story ${j===1?"file":"files"}`)}function p(j,q){let H={add:G("+"),change:M("~"),unlink:K("-")}[j]||"\u2022";console.log(` ${H} ${L(`[${j}]`)} ${q}`)}function D(j,q){if(console.log(""),console.log(` ${K("\u2717")} ${B(K("Error:"))} ${j}`),q)console.log(` ${L(q)}`);console.log("")}function C(j){console.log(` ${M("\u26A0")} ${M("Warning:")} ${j}`)}function I(j){console.log(` ${G("\u2713")} ${j}`)}function k(j){console.log(` ${W("\u2139")} ${j}`)}function N(j,q,E){console.log(""),console.log(A(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557")),console.log(A(" \u2551")+B(" Build Complete ")+A("\u2551")),console.log(A(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D")),console.log(""),console.log(` ${G("\u2713")} Stories: ${B(String(j))}`),console.log(` ${G("\u2713")} Output: ${B(q)}`),console.log(` ${G("\u2713")} Time: ${B(`${E}ms`)}`),console.log("")}function U(j,q,E,H){if(console.log(""),console.log(A(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557")),console.log(A(" \u2551")+B(" Test Results ")+A("\u2551")),console.log(A(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D")),console.log(""),console.log(` Total: ${B(String(j))}`),console.log(` Passed: ${G(String(q))} ${G("\u2713")}`),E>0)console.log(` Failed: ${K(String(E))} ${K("\u2717")}`);console.log(` Time: ${B(`${H}ms`)}`),console.log("")}function T(){console.log(""),console.log(B(" Keyboard Shortcuts:")),console.log(""),console.log(` ${A("h")} Show this help`),console.log(` ${A("o")} Open in browser`),console.log(` ${A("r")} Restart server`),console.log(` ${A("c")} Clear console`),console.log(` ${A("q")} Quit`),console.log("")}function v(){process.stdout.write("\x1Bc")}function w(j){let q=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],E=0,H=null,P=j;return{start(){H=setInterval(()=>{process.stdout.write(`\r ${A(q[E])} ${P}`),E=(E+1)%q.length},80)},stop(Q=!0){if(H)clearInterval(H),H=null;let R=Q?G("\u2713"):K("\u2717");process.stdout.write(`\r ${R} ${P}
3
3
  `)},update(Q){P=Q}}}function f(j){if(j<1000)return`${j}ms`;if(j<60000)return`${(j/1000).toFixed(1)}s`;let q=Math.floor(j/60000),E=(j%60000/1000).toFixed(0);return`${q}m ${E}s`}function g(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(1)} MB`}
4
- export{J as Ic,O as Jc,K as Kc,G as Lc,M as Mc,W as Nc,X as Oc,A as Pc,Y as Qc,Z as Rc,B as Sc,L as Tc,_ as Uc,$ as Vc,h as Wc,z as Xc,F as Yc,p as Zc,D as _c,C as $c,I as ad,k as bd,N as cd,U as dd,T as ed,v as fd,w as gd,f as hd,g as id};
4
+ export{J as Ec,O as Fc,K as Gc,G as Hc,M as Ic,W as Jc,X as Kc,A as Lc,Y as Mc,Z as Nc,B as Oc,L as Pc,_ as Qc,$ as Rc,h as Sc,z as Tc,F as Uc,p as Vc,D as Wc,C as Xc,I as Yc,k as Zc,N as _c,U as $c,T as ad,v as bd,w as cd,f as dd,g as ed};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{abortNavigation as r,clearMiddleware as t,createClientCookieManager as o,createMiddlewareContext as i,createRouteLocation as d,createServerCookieManager as l,createStorageManager as n,defineMiddleware as M,getMiddleware as g,getMiddlewareNames as w,hasMiddleware as s,loadMiddlewareFromDirectory as u,navigateTo as c,registerMiddleware as R,runMiddleware as v}from"stx-router";
3
- export{r as rh,t as sh,o as th,i as uh,d as vh,l as wh,n as xh,M as yh,g as zh,w as Ah,s as Bh,u as Ch,c as Dh,R as Eh,v as Fh};
3
+ export{r as oh,t as ph,o as qh,i as rh,d as sh,l as th,n as uh,M as vh,g as wh,w as xh,s as yh,u as zh,c as Ah,R as Bh,v as Ch};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{an as T}from"./chunk-my0qmjw4.js";import{jE as I}from"./chunk-6r70w54p.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./image-optimization/processor.js")}
3
- export{g as gm,l as hm};
2
+ import{Zm as T}from"./chunk-4d2y57k7.js";import{pB as I}from"./chunk-xv34zbp4.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./image-optimization/processor.js")}
3
+ export{g as dm,l as em};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ export{i as If};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ol as k,pl as q}from"./chunk-wdtanmx1.js";import{zl as j}from"./chunk-6zhv4fcq.js";import{Fl as A}from"./chunk-j6d9ksyj.js";function H(){return{script:[j(),k(),A()].join(`
2
+ import{ll as k,ml as q}from"./chunk-akf1r75r.js";import{wl as j}from"./chunk-zy3rp1ab.js";import{Cl as A}from"./chunk-10debkj5.js";function H(){return{script:[j(),k(),A()].join(`
3
3
 
4
4
  `),css:q()}}function y(){let{script:D,css:E}=H(),F=D.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/.*$/gm,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim(),G=E.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim();return{script:F,css:G}}
5
- export{H as fl,y as gl};
5
+ export{H as cl,y as dl};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{pB as w}from"./chunk-pjaa8q7x.js";import{GB as v}from"./chunk-jm460jxs.js";function F(j){let{type:B,message:D,code:q,filePath:G,line:I,column:U,template:M,offset:J,snippet:K,suggestion:Q,format:R="text"}=j,V=I,Y=U;if(!V&&M&&J!==void 0){let _=T(M,J);V=_.line,Y=_.column}let Z=G?w(G):void 0,b=q?v(q):void 0,W={type:B,code:q,codeName:b,message:D,filePath:Z,line:V,column:Y,snippet:K,suggestion:Q,timestamp:new Date().toISOString()},X;switch(R){case"html":X=O(W);break;case"json":X=JSON.stringify(W,null,2);break;case"console":X=N(W,M,J);break;case"text":default:X=k(W,M,J);break}return{formatted:X,data:W}}function k(j,B,D){let q=[],G=j.code?` [${j.codeName||j.code}]`:"";if(q.push(`[${j.type} Error${G}]`),j.filePath){let I=j.filePath;if(j.line){if(I+=`:${j.line}`,j.column)I+=`:${j.column}`}q.push(`at ${I}`)}if(q.push(`
2
+ import{By as w}from"./chunk-fjk3x41y.js";import{Sy as v}from"./chunk-27zsyhrd.js";function F(j){let{type:B,message:D,code:q,filePath:G,line:I,column:U,template:M,offset:J,snippet:K,suggestion:Q,format:R="text"}=j,V=I,Y=U;if(!V&&M&&J!==void 0){let _=T(M,J);V=_.line,Y=_.column}let Z=G?w(G):void 0,b=q?v(q):void 0,W={type:B,code:q,codeName:b,message:D,filePath:Z,line:V,column:Y,snippet:K,suggestion:Q,timestamp:new Date().toISOString()},X;switch(R){case"html":X=O(W);break;case"json":X=JSON.stringify(W,null,2);break;case"console":X=N(W,M,J);break;case"text":default:X=k(W,M,J);break}return{formatted:X,data:W}}function k(j,B,D){let q=[],G=j.code?` [${j.codeName||j.code}]`:"";if(q.push(`[${j.type} Error${G}]`),j.filePath){let I=j.filePath;if(j.line){if(I+=`:${j.line}`,j.column)I+=`:${j.column}`}q.push(`at ${I}`)}if(q.push(`
3
3
  ${j.message}`),B&&j.line){let I=A(B,j.line,2);if(I)q.push(`
4
4
  ${I}`)}if(j.snippet)q.push(`
5
5
  Snippet: ${j.snippet}`);if(j.suggestion)q.push(`
@@ -24,4 +24,4 @@ ${"\x1B[31m"}\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\
24
24
  `;for(let J=U;J<=M;J++){let K=J+1,Q=q[J]||"",R=J===G.line-1?">":" ";I+=`${R} ${K.toString().padStart(3)}: ${Q}
25
25
  `}if(G.line-1<q.length){let J=" ".repeat(G.column+5);I+=`${J}^
26
26
  `}return I}function C(j,B,D){try{return j()}catch(q){if(D&&q instanceof Error)D(q);return B}}async function S(j,B,D){try{return await j()}catch(q){if(D&&q instanceof Error)D(q);return B}}
27
- export{F as cB,h as dB,y as eB,H as fB,C as gB,S as hB};
27
+ export{F as oy,h as py,y as qy,H as ry,C as sy,S as ty};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import G from"path";var L=new Set([".jpg",".jpeg",".png",".gif"]),O=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function M(j,z){let H=z.formats??O;if(!z.publicDir)return j;let C=N(j),J=[],Y=/<img\b[^>]*?>/gi,K=[],Q;while((Q=Y.exec(j))!==null){let q=Q[0],y=q.match(/\bsrc=["']([^"']+)["']/i);if(!y)continue;if(_(Q.index,C))continue;K.push({idx:Q.index,length:q.length,src:y[1],raw:q})}if(K.length===0)return j;let Z=await Promise.all(K.map(async(q)=>{let y=await X(q.src,z.publicDir,H);return{match:q,sources:y}}));for(let{match:q,sources:y}of Z){if(y.length===0)continue;let I=`<picture>${y.map(($)=>`<source type="${$.mime}" srcset="${w($.url)}">`).join("")}${q.raw}</picture>`;J.push({start:q.idx,end:q.idx+q.length,replacement:I})}if(J.length===0)return j;let V="",W=0;for(let q of J)V+=j.slice(W,q.start),V+=q.replacement,W=q.end;return V+=j.slice(W),V}async function X(j,z,H){if(!F(j))return[];let C=G.extname(j).toLowerCase();if(!L.has(C))return[];if(!j.startsWith("/"))return[];let J=G.join(z,j.slice(1)),Y=G.dirname(J),K=G.basename(J,C),Q=G.resolve(Y),Z=G.resolve(z);if(!Q.startsWith(Z))return[];let V=G.posix.dirname(j),W=H.map(async(y)=>{let k=G.join(Y,`${K}${y.ext}`);if(!await Bun.file(k).exists())return null;return{url:G.posix.join(V,`${K}${y.ext}`),mime:y.mime}});return(await Promise.all(W)).filter((y)=>y!==null)}function F(j){if(!j)return!1;if(j.startsWith("http://")||j.startsWith("https://"))return!1;if(j.startsWith("//"))return!1;if(j.startsWith("data:"))return!1;return!0}function N(j){let z=[],H=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,C;while((C=H.exec(j))!==null)z.push([C.index,C.index+C[0].length]);return z}function _(j,z){for(let[H,C]of z)if(j>=H&&j<C)return!0;return!1}function w(j){return j.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}
3
- export{M as Gm};
3
+ export{M as Dm};
@@ -4,4 +4,4 @@ function K(b){if(b===String)return"string";if(b===Number)return"number";if(b===B
4
4
  ${D}`)}return{props:F,validation:C}}function Y(b,j){let q={...b};for(let[B,z]of Object.entries(j))if(q[B]===void 0)q[B]=typeof z==="function"?z():z;return q}function Z(b){return b}function _(b){return{type:b,required:!0}}function $(b,j){return{type:j,default:b}}function G(b,j={}){return{...j,validator:b}}function M(b,j={}){return{...j,validator:(q)=>b.includes(q)}}function S(b,j={}){return{...j,type:Array,validator:(q)=>{if(!Array.isArray(q))return!1;return!0}}}function U(b,j={}){return{...j,type:Object}}function h(b,j,q){if(!j)return b;let B={};for(let[z,A]of Object.entries(j)){let F=typeof A==="function"||Array.isArray(A)?{type:A}:A||{},C=b[z];if(C===void 0&&F.default!==void 0)C=typeof F.default==="function"?F.default():F.default;{let D=L(z,C,F,q);if(D)console.warn(D.message)}B[z]=C}for(let[z,A]of Object.entries(b))if(!(z in B))B[z]=A;return B}function E(){let b=globalThis.__STX_CURRENT_ELEMENT__;return(j,q)=>{if(b){let B=new CustomEvent(String(j),{detail:q,bubbles:!0,cancelable:!0});b.dispatchEvent(B)}else console.warn(`Cannot emit event "${String(j)}" - no element context`)}}function W(b){let j=globalThis.__STX_CURRENT_ELEMENT__;if(j)j.__stx_exposed__=b,j.setAttribute("data-stx-exposed",Object.keys(b).join(","))}function V(b,j){let q=[`interface ${b}Props {`];for(let[B,z]of Object.entries(j)){let A=typeof z==="function"||Array.isArray(z)?{type:z}:z||{},F=A.type?K(A.type):"unknown",C=A.required?"":"?",D=A.description?` /** ${A.description} */
5
5
  `:"";q.push(`${D} ${B}${C}: ${F}`)}return q.push("}"),q.join(`
6
6
  `)}
7
- export{R as Ui,X as Vi,Y as Wi,Z as Xi,_ as Yi,$ as Zi,G as _i,M as $i,S as aj,U as bj,h as cj,E as dj,W as ej,V as fj};
7
+ export{R as Ri,X as Si,Y as Ti,Z as Ui,_ as Vi,$ as Wi,G as Xi,M as Yi,S as Zi,U as _i,h as $i,E as aj,W as bj,V as cj};
@@ -90,4 +90,4 @@ else {
90
90
  window.STX.initLazyLoading = init;
91
91
  })();
92
92
  `.trim()}
93
- export{$ as ql,G as rl,A as sl,M as tl,D as ul,F as vl,P as wl,U as xl,_ as yl,N as zl};
93
+ export{$ as nl,G as ol,A as pl,M as ql,D as rl,F as sl,P as tl,U as ul,_ as vl,N as wl};