@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,420 +0,0 @@
1
- // @bun
2
- function F(){return`
3
- /**
4
- * Reactive mixin for stx web components
5
- * Adds reactive state management to custom elements
6
- */
7
- function StxReactive(Base) {
8
- return class extends Base {
9
- #state = {};
10
- #watchers = new Map();
11
- #computed = new Map();
12
- #dirty = new Set();
13
- #updateScheduled = false;
14
-
15
- constructor() {
16
- super();
17
- this.#initializeState();
18
- }
19
-
20
- #initializeState() {
21
- // Initialize reactive properties from static definition
22
- const props = this.constructor.reactiveProperties || {};
23
- for (const [name, config] of Object.entries(props)) {
24
- this.#state[name] = config.default;
25
- this.#defineProperty(name, config);
26
- }
27
- }
28
-
29
- #defineProperty(name, config) {
30
- Object.defineProperty(this, name, {
31
- get: () => this.#state[name],
32
- set: (value) => {
33
- const oldValue = this.#state[name];
34
- if (oldValue !== value) {
35
- this.#state[name] = value;
36
- this.#markDirty(name);
37
- this.#notifyWatchers(name, value, oldValue);
38
- if (config.reflect) {
39
- this.#reflectAttribute(name, value);
40
- }
41
- }
42
- },
43
- enumerable: true,
44
- configurable: true
45
- });
46
- }
47
-
48
- #reflectAttribute(name, value) {
49
- const attrName = name.replace(/([A-Z])/g, '-$1').toLowerCase();
50
- if (value === null || value === undefined || value === false) {
51
- this.removeAttribute(attrName);
52
- }
53
- else if (value === true) {
54
- this.setAttribute(attrName, '');
55
- }
56
- else {
57
- this.setAttribute(attrName, String(value));
58
- }
59
- }
60
-
61
- #markDirty(name) {
62
- this.#dirty.add(name);
63
- this.#scheduleUpdate();
64
- }
65
-
66
- #scheduleUpdate() {
67
- if (!this.#updateScheduled) {
68
- this.#updateScheduled = true;
69
- queueMicrotask(() => {
70
- this.#updateScheduled = false;
71
- this.#performUpdate();
72
- });
73
- }
74
- }
75
-
76
- #performUpdate() {
77
- // Recompute computed properties that depend on dirty state
78
- for (const [name, { deps, getter }] of this.#computed) {
79
- if (deps.some(dep => this.#dirty.has(dep))) {
80
- this.#state[name] = getter.call(this);
81
- }
82
- }
83
-
84
- // Clear dirty set and trigger re-render
85
- this.#dirty.clear();
86
- if (typeof this.render === 'function') {
87
- this.render();
88
- }
89
- }
90
-
91
- #notifyWatchers(name, newValue, oldValue) {
92
- const handlers = this.#watchers.get(name) || [];
93
- for (const handler of handlers) {
94
- try {
95
- handler.call(this, newValue, oldValue);
96
- }
97
- catch (e) {
98
- console.error(\`Watcher error for "\${name}":\`, e);
99
- }
100
- }
101
- }
102
-
103
- $watch(property, handler, options = {}) {
104
- if (!this.#watchers.has(property)) {
105
- this.#watchers.set(property, []);
106
- }
107
- this.#watchers.get(property).push(handler);
108
-
109
- if (options.immediate) {
110
- handler.call(this, this.#state[property], undefined);
111
- }
112
-
113
- // Return unwatch function
114
- return () => {
115
- const handlers = this.#watchers.get(property);
116
- const index = handlers.indexOf(handler);
117
- if (index > -1) {
118
- handlers.splice(index, 1);
119
- }
120
- };
121
- }
122
-
123
- $computed(name, deps, getter) {
124
- this.#computed.set(name, { deps, getter });
125
- Object.defineProperty(this, name, {
126
- get: () => {
127
- if (!(name in this.#state)) {
128
- this.#state[name] = getter.call(this);
129
- }
130
- return this.#state[name];
131
- },
132
- enumerable: true,
133
- configurable: true
134
- });
135
- }
136
-
137
- $set(property, value) {
138
- this[property] = value;
139
- }
140
-
141
- $batch(fn) {
142
- // Temporarily disable updates during batch
143
- const prevScheduled = this.#updateScheduled;
144
- this.#updateScheduled = true;
145
- try {
146
- fn();
147
- }
148
- finally {
149
- this.#updateScheduled = prevScheduled;
150
- if (!prevScheduled) {
151
- this.#scheduleUpdate();
152
- }
153
- }
154
- }
155
- };
156
- }
157
- `}function R(q,K,L={}){let{properties:J=[],computed:O=[],watchers:P=[],methods:Q={},lifecycle:B={}}=L,z=q.name,U=q.tag,H=q.shadowDOM!==!1,W=J.map((k)=>{let j=k.default!==void 0?JSON.stringify(k.default):V(k.type);return` ${k.name}: { type: '${k.type}', default: ${j}, reflect: ${!!k.reflect} }`}).join(`,
158
- `),X=O.map((k)=>{let j=JSON.stringify(k.dependencies);return` this.$computed('${k.name}', ${j}, ${k.getter});`}).join(`
159
- `),Y=P.map((k)=>{let j=k.immediate||k.deep?`, { immediate: ${!!k.immediate}, deep: ${!!k.deep} }`:"";return` this.$watch('${k.property}', ${k.handler}${j});`}).join(`
160
- `),Z=Object.entries(Q).map(([k,j])=>` ${k}${j}`).join(`
161
-
162
- `),_=B.connected||"",$=B.disconnected||"",G=B.adopted||"",I=B.attributeChanged||"",A=K.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$/g,"\\$");return`
163
- ${F()}
164
-
165
- class ${z} extends StxReactive(HTMLElement) {
166
- static reactiveProperties = {
167
- ${W}
168
- };
169
-
170
- static get observedAttributes() {
171
- return ${JSON.stringify(q.attributes||[])};
172
- }
173
-
174
- #shadowRoot;
175
-
176
- constructor() {
177
- super();
178
- ${H?"this.#shadowRoot = this.attachShadow({ mode: 'open' });":""}
179
- this.#setupComputed();
180
- this.#setupWatchers();
181
- }
182
-
183
- #setupComputed() {
184
- ${X}
185
- }
186
-
187
- #setupWatchers() {
188
- ${Y}
189
- }
190
-
191
- connectedCallback() {
192
- this.render();
193
- ${_}
194
- }
195
-
196
- disconnectedCallback() {
197
- ${$}
198
- }
199
-
200
- adoptedCallback() {
201
- ${G}
202
- }
203
-
204
- attributeChangedCallback(name, oldValue, newValue) {
205
- // Convert attribute name to property name (kebab-case to camelCase)
206
- const propName = name.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
207
-
208
- // Get the property type
209
- const propConfig = ${z}.reactiveProperties[propName];
210
- if (propConfig) {
211
- let value = newValue;
212
-
213
- // Convert based on type
214
- switch (propConfig.type) {
215
- case 'number':
216
- value = newValue !== null ? Number(newValue) : propConfig.default;
217
- break;
218
- case 'boolean':
219
- value = newValue !== null;
220
- break;
221
- case 'object':
222
- case 'array':
223
- try {
224
- value = newValue !== null ? JSON.parse(newValue) : propConfig.default;
225
- }
226
- catch (e) {
227
- value = propConfig.default;
228
- }
229
- break;
230
- }
231
-
232
- this[propName] = value;
233
- }
234
-
235
- ${I}
236
- }
237
-
238
- render() {
239
- const root = ${H?"this.#shadowRoot":"this"};
240
- root.innerHTML = this.#template();
241
- }
242
-
243
- #template() {
244
- return \`${A}\`;
245
- }
246
-
247
- ${Z}
248
- }
249
-
250
- customElements.define('${U}', ${z});
251
-
252
- export { ${z} };
253
- `}function v(q,K,L={}){let{properties:J=[],computed:O=[],watchers:P=[],methods:Q={},lifecycle:B={}}=L,z=q.name,U=q.tag,H=q.shadowDOM!==!1,W=J.map((j)=>{let E=x(j.type);return` ${j.name}: ${E};`}).join(`
254
- `),X=J.map((j)=>{let E=j.default!==void 0?JSON.stringify(j.default):V(j.type);return` ${j.name}: { type: '${j.type}' as const, default: ${E}, reflect: ${!!j.reflect} }`}).join(`,
255
- `),Y=O.map((j)=>{let E=JSON.stringify(j.dependencies);return` this.$computed('${j.name}', ${E}, ${j.getter});`}).join(`
256
- `),Z=P.map((j)=>{let E=j.immediate||j.deep?`, { immediate: ${!!j.immediate}, deep: ${!!j.deep} }`:"";return` this.$watch('${j.property}', ${j.handler}${E});`}).join(`
257
- `),_=Object.entries(Q).map(([j,E])=>` ${j}${E}`).join(`
258
-
259
- `),$=B.connected||"",G=B.disconnected||"",I=B.adopted||"",A=B.attributeChanged||"",k=K.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$/g,"\\$");return`
260
- interface ${z}Props {
261
- ${W}
262
- }
263
-
264
- interface ReactivePropertyConfig {
265
- type: 'string' | 'number' | 'boolean' | 'object' | 'array';
266
- default: unknown;
267
- reflect: boolean;
268
- }
269
-
270
- interface ReactiveElement extends HTMLElement {
271
- $watch(property: string, handler: (newVal: unknown, oldVal: unknown) => void, options?: { immediate?: boolean; deep?: boolean }): () => void;
272
- $computed(name: string, deps: string[], getter: () => unknown): void;
273
- $set(property: string, value: unknown): void;
274
- $batch(fn: () => void): void;
275
- }
276
-
277
- ${F()}
278
-
279
- class ${z} extends StxReactive(HTMLElement) implements ReactiveElement {
280
- static reactiveProperties: Record<string, ReactivePropertyConfig> = {
281
- ${X}
282
- };
283
-
284
- static get observedAttributes(): string[] {
285
- return ${JSON.stringify(q.attributes||[])};
286
- }
287
-
288
- #shadowRoot: ShadowRoot | null = null;
289
-
290
- constructor() {
291
- super();
292
- ${H?"this.#shadowRoot = this.attachShadow({ mode: 'open' });":""}
293
- this.#setupComputed();
294
- this.#setupWatchers();
295
- }
296
-
297
- #setupComputed(): void {
298
- ${Y}
299
- }
300
-
301
- #setupWatchers(): void {
302
- ${Z}
303
- }
304
-
305
- connectedCallback(): void {
306
- this.render();
307
- ${$}
308
- }
309
-
310
- disconnectedCallback(): void {
311
- ${G}
312
- }
313
-
314
- adoptedCallback(): void {
315
- ${I}
316
- }
317
-
318
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void {
319
- const propName = name.replace(/-([a-z])/g, (_: string, c: string) => c.toUpperCase());
320
-
321
- const propConfig = ${z}.reactiveProperties[propName];
322
- if (propConfig) {
323
- let value: unknown = newValue;
324
-
325
- switch (propConfig.type) {
326
- case 'number':
327
- value = newValue !== null ? Number(newValue) : propConfig.default;
328
- break;
329
- case 'boolean':
330
- value = newValue !== null;
331
- break;
332
- case 'object':
333
- case 'array':
334
- try {
335
- value = newValue !== null ? JSON.parse(newValue) : propConfig.default;
336
- }
337
- catch {
338
- value = propConfig.default;
339
- }
340
- break;
341
- }
342
-
343
- (this as Record<string, unknown>)[propName] = value;
344
- }
345
-
346
- ${A}
347
- }
348
-
349
- render(): void {
350
- const root = ${H?"this.#shadowRoot":"this"};
351
- if (root) {
352
- root.innerHTML = this.#template();
353
- }
354
- }
355
-
356
- #template(): string {
357
- return \`${k}\`;
358
- }
359
-
360
- ${_}
361
- }
362
-
363
- customElements.define('${U}', ${z});
364
-
365
- export { ${z} };
366
- export type { ${z}Props };
367
- `}function V(q){switch(q){case"string":return"''";case"number":return"0";case"boolean":return"false";case"array":return"[]";case"object":return"{}";default:return"undefined"}}function x(q){switch(q){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"array":return"unknown[]";case"object":return"Record<string, unknown>";default:return"unknown"}}function D(){return`
368
- (function() {
369
- 'use strict';
370
-
371
- // StxReactive mixin for dynamic component creation
372
- window.StxReactive = ${F().replace(/\n/g," ").replace(/\s+/g," ")};
373
-
374
- // Helper to create reactive components dynamically
375
- window.createReactiveComponent = function(tag, config) {
376
- const { properties = {}, template, methods = {}, lifecycle = {} } = config;
377
-
378
- class DynamicComponent extends StxReactive(HTMLElement) {
379
- static reactiveProperties = properties;
380
- static get observedAttributes() {
381
- return Object.keys(properties).map(p =>
382
- p.replace(/([A-Z])/g, '-$1').toLowerCase()
383
- );
384
- }
385
-
386
- constructor() {
387
- super();
388
- if (config.shadow !== false) {
389
- this.attachShadow({ mode: 'open' });
390
- }
391
- }
392
-
393
- connectedCallback() {
394
- this.render();
395
- if (lifecycle.connected) lifecycle.connected.call(this);
396
- }
397
-
398
- disconnectedCallback() {
399
- if (lifecycle.disconnected) lifecycle.disconnected.call(this);
400
- }
401
-
402
- render() {
403
- const root = this.shadowRoot || this;
404
- root.innerHTML = typeof template === 'function'
405
- ? template.call(this)
406
- : template;
407
- }
408
- }
409
-
410
- // Add methods
411
- Object.entries(methods).forEach(([name, fn]) => {
412
- DynamicComponent.prototype[name] = fn;
413
- });
414
-
415
- customElements.define(tag, DynamicComponent);
416
- return DynamicComponent;
417
- };
418
- })();
419
- `}
420
- export{F as a,R as b,v as c,D as d};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function $(I={}){let{target:J=typeof window<"u"?window:null,touch:F=!0,resetOnLeave:G=!1}=I,q={x:0,y:0,pageX:0,pageY:0,clientX:0,clientY:0,movementX:0,movementY:0,buttons:0,isPressed:!1,isInside:!1},z=[],B=null,H=()=>{z.forEach((b)=>b(q))},K=(b,x=!1)=>{let A=b;q={x:A.pageX??A.clientX,y:A.pageY??A.clientY,pageX:A.pageX??0,pageY:A.pageY??0,clientX:A.clientX??0,clientY:A.clientY??0,movementX:x?0:A.movementX??0,movementY:x?0:A.movementY??0,buttons:x?1:A.buttons??0,isPressed:x||(A.buttons??0)>0,isInside:!0},H()},Q=(b)=>K(b),j=(b)=>{if(b.touches.length>0)K(b.touches[0],!0)},N=(b)=>{q={...q,buttons:b.buttons,isPressed:!0},H()},S=(b)=>{q={...q,buttons:b.buttons,isPressed:!1},H()},V=()=>{q={...q,isInside:!0},H()},R=()=>{q={...q,isInside:!1,...G?{x:0,y:0,pageX:0,pageY:0,clientX:0,clientY:0}:{}},H()},C=()=>{if(!J)return;let b=J;if(b.addEventListener("mousemove",Q),b.addEventListener("mousedown",N),b.addEventListener("mouseup",S),b.addEventListener("mouseenter",V),b.addEventListener("mouseleave",R),F)b.addEventListener("touchmove",j),b.addEventListener("touchstart",V),b.addEventListener("touchend",R);B=()=>{if(b.removeEventListener("mousemove",Q),b.removeEventListener("mousedown",N),b.removeEventListener("mouseup",S),b.removeEventListener("mouseenter",V),b.removeEventListener("mouseleave",R),F)b.removeEventListener("touchmove",j),b.removeEventListener("touchstart",V),b.removeEventListener("touchend",R)}};return{get:()=>q,subscribe:(b)=>{if(z.length===0)C();return z.push(b),b(q),()=>{if(z=z.filter((x)=>x!==b),z.length===0&&B)B(),B=null}},stop:()=>{if(B)B(),B=null;z=[]}}}function k(I,J={}){let{touch:F=!0,resetOnLeave:G=!0}=J,q={x:0,y:0,pageX:0,pageY:0,clientX:0,clientY:0,movementX:0,movementY:0,buttons:0,isPressed:!1,isInside:!1,elementX:0,elementY:0,elementWidth:0,elementHeight:0,isOutside:!0},z=[],B=null,H=()=>{z.forEach((C)=>C(q))},K=()=>{if(typeof I==="function")return I();return I},Q=(C,b)=>{let x=K();if(!x)return;let A=x.getBoundingClientRect(),W=C-A.left,Z=b-A.top,_=W<0||Z<0||W>A.width||Z>A.height;q={...q,elementX:W,elementY:Z,elementWidth:A.width,elementHeight:A.height,isOutside:_,isInside:!_}},j=(C,b=!1)=>{let x=C;q={...q,x:x.pageX??x.clientX,y:x.pageY??x.clientY,pageX:x.pageX??0,pageY:x.pageY??0,clientX:x.clientX??0,clientY:x.clientY??0,movementX:b?0:x.movementX??0,movementY:b?0:x.movementY??0,buttons:b?1:x.buttons??0,isPressed:b||(x.buttons??0)>0},Q(x.clientX,x.clientY),H()},N=(C)=>j(C),S=(C)=>{if(C.touches.length>0)j(C.touches[0],!0)},V=()=>{q={...q,isInside:!1,isOutside:!0,...G?{elementX:0,elementY:0}:{}},H()},R=()=>{if(typeof window>"u")return;if(window.addEventListener("mousemove",N),F)window.addEventListener("touchmove",S);B=()=>{if(window.removeEventListener("mousemove",N),F)window.removeEventListener("touchmove",S)}};return{get:()=>q,subscribe:(C)=>{if(z.length===0)R();return z.push(C),C(q),()=>{if(z=z.filter((b)=>b!==C),z.length===0&&B)B(),B=null}},stop:()=>{if(B)B(),B=null;z=[]}}}function w(I={}){let{target:J=typeof window<"u"?window:null}=I,F={x:0,y:0,pageX:0,pageY:0,clientX:0,clientY:0,movementX:0,movementY:0,buttons:0,isPressed:!1,isInside:!1},G=[],q=null,z=()=>{G.forEach((j)=>j(F))},B=(j)=>{F={x:j.pageX,y:j.pageY,pageX:j.pageX,pageY:j.pageY,clientX:j.clientX,clientY:j.clientY,movementX:j.movementX,movementY:j.movementY,buttons:j.buttons,isPressed:j.buttons>0||j.pressure>0,isInside:!0},z()},H=(j)=>{F={...F,buttons:j.buttons,isPressed:!0},z()},K=(j)=>{F={...F,buttons:j.buttons,isPressed:!1},z()},Q=()=>{if(!J)return;let j=J;j.addEventListener("pointermove",B),j.addEventListener("pointerdown",H),j.addEventListener("pointerup",K),q=()=>{j.removeEventListener("pointermove",B),j.removeEventListener("pointerdown",H),j.removeEventListener("pointerup",K)}};return{get:()=>F,subscribe:(j)=>{if(G.length===0)Q();return G.push(j),j(F),()=>{if(G=G.filter((N)=>N!==j),G.length===0&&q)q(),q=null}},stop:()=>{if(q)q(),q=null;G=[]}}}
3
- export{$ as zq,k as Aq,w as Bq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function Q(){return typeof window<"u"&&"EyeDropper"in window}function U(M={}){let{onPick:G,onAbort:L,onError:B}=M,I=Q(),z=new Set,q={isSupported:I,isOpen:!1,sRGBHex:null,error:null},K=null;function J(){z.forEach((j)=>j(q))}async function O(){if(!I||!window.EyeDropper){let j=Error("EyeDropper API not supported");return q={...q,error:j},J(),B?.(j),null}K?.abort(),K=new AbortController,q={...q,isOpen:!0,error:null},J();try{let N=await new window.EyeDropper().open({signal:K.signal});return q={...q,isOpen:!1,sRGBHex:N.sRGBHex},J(),G?.(N.sRGBHex),N.sRGBHex}catch(j){if(q={...q,isOpen:!1},j.name==="AbortError")return L?.(),J(),null;return q={...q,error:j},J(),B?.(j),null}}return{get:()=>q,subscribe:(j)=>{return z.add(j),j(q),()=>{if(z.delete(j),z.size===0)K?.abort()}},open:O,isSupported:()=>I}}async function W(){if(!Q()||!window.EyeDropper)return null;try{return(await new window.EyeDropper().open()).sRGBHex}catch{return null}}function V(M){let G=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M);return G?{r:Number.parseInt(G[1],16),g:Number.parseInt(G[2],16),b:Number.parseInt(G[3],16)}:null}function X(M){let G=V(M);if(!G)return null;let L=G.r/255,B=G.g/255,I=G.b/255,z=Math.max(L,B,I),q=Math.min(L,B,I),K=(z+q)/2;if(z===q)return{h:0,s:0,l:Math.round(K*100)};let J=z-q,O=K>0.5?J/(2-z-q):J/(z+q),j=0;switch(z){case L:j=((B-I)/J+(B<I?6:0))/6;break;case B:j=((I-L)/J+2)/6;break;case I:j=((L-B)/J+4)/6;break}return{h:Math.round(j*360),s:Math.round(O*100),l:Math.round(K*100)}}function Y(M={}){let{maxHistory:G=20,onPick:L}=M,B=U({onPick:L}),I=new Set,z=[];function q(){let j={current:B.get().sRGBHex,history:z};I.forEach((N)=>N(j))}B.subscribe((j)=>{if(j.sRGBHex&&!z.includes(j.sRGBHex))z=[j.sRGBHex,...z].slice(0,G),q()});async function K(){return B.open()}function J(){z=[],q()}function O(j){z=z.filter((N)=>N!==j),q()}return{get:()=>({current:B.get().sRGBHex,history:z}),subscribe:(j)=>{return I.add(j),j({current:B.get().sRGBHex,history:z}),()=>{I.delete(j)}},pick:K,clearHistory:J,removeFromHistory:O,isSupported:B.isSupported}}
3
- export{Q as _q,U as $q,W as ar,V as br,X as cr,Y as dr};
@@ -1 +0,0 @@
1
- // @bun
@@ -1,3 +0,0 @@
1
- // @bun
2
- function y(f){if(typeof window<"u")if(window.stxRouter?.navigate)window.stxRouter.navigate(f);else window.location.href=f}function z(){if(typeof window<"u")window.history.back()}function B(){if(typeof window<"u")window.history.forward()}function C(){if(typeof window>"u")return{path:"/",fullPath:"/",hash:"",query:{},params:{}};if(window.stx?.useRoute)return window.stx.useRoute();return{get path(){return window.location.pathname},get fullPath(){return window.location.pathname+window.location.search+window.location.hash},get hash(){return window.location.hash},get query(){let f={};return new URLSearchParams(window.location.search).forEach((j,q)=>{f[q]=j}),f},get params(){return window.stx?._rp??{}}}}function D(f){if(typeof window<"u"&&window.stx?.setRouteParams)window.stx.setRouteParams(f)}function E(){return{data:Object.assign(()=>({}),{set:()=>{}}),get:()=>{return},set:()=>{},setAll:()=>{}}}
3
- export{y as Bp,z as Cp,B as Dp,C as Ep,D as Fp,E as Gp};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function J(){return typeof window<"u"&&"DeviceOrientationEvent"in window}function K(){return typeof window<"u"&&"DeviceMotionEvent"in window}async function Q(){if(typeof window>"u")return!1;let k=window.DeviceOrientationEvent;if(typeof k?.requestPermission==="function")try{return await k.requestPermission()==="granted"}catch{return!1}return!0}async function R(){if(typeof window>"u")return!1;let k=window.DeviceMotionEvent;if(typeof k?.requestPermission==="function")try{return await k.requestPermission()==="granted"}catch{return!1}return!0}function T(){let k=J(),B=new Set,A={isSupported:k,isAbsolute:!1,alpha:null,beta:null,gamma:null},w=null;function C(){B.forEach((j)=>j(A))}function F(j){A={...A,isAbsolute:j.absolute,alpha:j.alpha,beta:j.beta,gamma:j.gamma},C()}function G(){if(!k||w)return;window.addEventListener("deviceorientation",F,!0),w=()=>{window.removeEventListener("deviceorientation",F,!0)}}function H(){w?.(),w=null}async function I(){let j=await Q();if(j)G();return j}if(k)G();return{get:()=>A,subscribe:(j)=>{return B.add(j),j(A),()=>{if(B.delete(j),B.size===0)H()}},isSupported:()=>k,requestPermission:I}}function U(){let k=K(),B=new Set,A={isSupported:k,acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:0},w=null;function C(){B.forEach((j)=>j(A))}function F(j){A={...A,acceleration:{x:j.acceleration?.x??null,y:j.acceleration?.y??null,z:j.acceleration?.z??null},accelerationIncludingGravity:{x:j.accelerationIncludingGravity?.x??null,y:j.accelerationIncludingGravity?.y??null,z:j.accelerationIncludingGravity?.z??null},rotationRate:{alpha:j.rotationRate?.alpha??null,beta:j.rotationRate?.beta??null,gamma:j.rotationRate?.gamma??null},interval:j.interval},C()}function G(){if(!k||w)return;window.addEventListener("devicemotion",F,!0),w=()=>{window.removeEventListener("devicemotion",F,!0)}}function H(){w?.(),w=null}async function I(){let j=await R();if(j)G();return j}if(k)G();return{get:()=>A,subscribe:(j)=>{return B.add(j),j(A),()=>{if(B.delete(j),B.size===0)H()}},isSupported:()=>k,requestPermission:I}}function V(){let k=T(),B=new Set,A={x:0,y:0};return k.subscribe((w)=>{if(w.gamma!==null&&w.beta!==null)A={x:Math.max(-1,Math.min(1,(w.gamma||0)/45)),y:Math.max(-1,Math.min(1,(w.beta||0)/45))},B.forEach((C)=>C(A))}),{get:()=>A,subscribe:(w)=>{return B.add(w),w(A),()=>{B.delete(w)}},isSupported:k.isSupported,requestPermission:k.requestPermission}}
3
- export{J as Xr,K as Yr,Q as Zr,R as _r,T as $r,U as as,V as bs};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function F(q){if(typeof document>"u")return{setMeta:()=>{},setOgMeta:()=>{},removeMeta:()=>{},setTitle:()=>{}};function E(b,j){let z=document.querySelector(`meta[${b}="${j}"]`);if(!z)z=document.createElement("meta"),z.setAttribute(b,j),document.head.appendChild(z);return z}let B={setMeta(b,j){E("name",b).setAttribute("content",j)},setOgMeta(b,j){let z=b.startsWith("og:")?b:`og:${b}`;E("property",z).setAttribute("content",j)},removeMeta(b){let j=document.querySelector(`meta[name="${b}"]`);if(j)j.remove()},setTitle(b){document.title=b}};if(q){if(q.title)B.setTitle(q.title);if(q.description)B.setMeta("description",q.description);if(q.meta)for(let[b,j]of Object.entries(q.meta))B.setMeta(b,j);if(q.og)for(let[b,j]of Object.entries(q.og))B.setOgMeta(b,j)}return B}
3
- export{F as yq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function R(){return typeof window<"u"&&"WebSocket"in window}function T($,q={}){let{protocols:M,autoReconnect:J=!1,heartbeat:N=!1,immediate:O=!0,onOpen:W,onMessage:S,onClose:x,onError:D}=q,V=new Set,K=new Map,A={status:"closed",data:null,error:null,ws:null},P=0,Q=null,F=null,X=!1;function G(){V.forEach((j)=>j(A))}function U(j,z){let B=K.get(j);if(B)B.forEach((_)=>_(z))}function Y(){if(Q)clearInterval(Q),Q=null;if(F)clearTimeout(F),F=null}function H(j){if(!N)return;let z=typeof N==="object"?N:{message:"ping",interval:30000,pongTimeout:1e4};Y(),Q=setInterval(()=>{if(j.readyState===WebSocket.OPEN)j.send(z.message||"ping"),F=setTimeout(()=>{j.close()},z.pongTimeout||1e4)},z.interval||30000)}function I(){if(typeof J==="object")return{retries:J.retries??3,delay:J.delay??1000,maxDelay:J.maxDelay??1e4,onFailed:J.onFailed};return{retries:3,delay:1000,maxDelay:1e4,onFailed:void 0}}function Z(){if(!R())return;X=!1,A={...A,status:"connecting"},G();try{let j=new WebSocket($,M);A={...A,ws:j},j.onopen=(z)=>{A={...A,status:"open"},P=0,G(),H(j),U("open",z),W?.(z)},j.onmessage=(z)=>{if(N&&F)clearTimeout(F),F=null;let B;try{B=JSON.parse(z.data)}catch{B=z.data}A={...A,data:B},G(),U("message",z),S?.(z)},j.onclose=(z)=>{if(Y(),A={...A,status:"closed",ws:null},G(),U("close",z),x?.(z),J&&!X){let B=I();if(P<B.retries){let _=Math.min(B.delay*2**P,B.maxDelay);P++,setTimeout(Z,_)}else B.onFailed?.()}},j.onerror=(z)=>{A={...A,error:z},G(),U("error",z),D?.(z)}}catch(j){A={...A,status:"closed",error:j},G()}}function k(j){if(A.ws&&A.status==="open"){let z=typeof j==="object"&&!(j instanceof ArrayBuffer)&&!(j instanceof Blob)?JSON.stringify(j):j;return A.ws.send(z),!0}return!1}function E(j,z){if(X=!0,Y(),A.ws)A={...A,status:"closing"},G(),A.ws.close(j,z)}function L(j,z){if(!K.has(j))K.set(j,new Set);return K.get(j).add(z),()=>{K.get(j)?.delete(z)}}if(O)Z();return{get:()=>A,subscribe:(j)=>{return V.add(j),j(A),()=>{V.delete(j)}},send:k,open:Z,close:E,ws:()=>A.ws,on:L}}
3
- export{R as qp,T as rp};
@@ -1,3 +0,0 @@
1
- // @bun
2
- var A=new Map;function K(){let j=typeof window<"u"&&"Notification"in window,b={permission:j?Notification.permission:"denied",isSupported:j},z=[],G=()=>{z.forEach((k)=>k(b))},L=()=>{if(!j)return;b={...b,permission:Notification.permission},G()};return{get:()=>b,subscribe:(k)=>{return z.push(k),k(b),()=>{z=z.filter((q)=>q!==k)}},isSupported:()=>b.isSupported,permission:()=>b.permission,requestPermission:async()=>{if(!j)return"denied";try{let k=await Notification.requestPermission();return b={...b,permission:k},G(),k}catch{return b.permission}},show:(k,q={})=>{if(!j||b.permission!=="granted")return null;let{autoClose:F,...J}=q;try{let B=new Notification(k,J);if(q.tag){let H=A.get(q.tag);if(H)H.close();A.set(q.tag,B),B.addEventListener("close",()=>{A.delete(q.tag)})}if(F&&F>0)setTimeout(()=>{B.close()},F);return B}catch{return null}},close:(k)=>{let q=A.get(k);if(q)q.close(),A.delete(k)}}}async function D(j,b){let z=K();if(z.permission()==="default")await z.requestPermission();return z.show(j,b)}function R(){return typeof window<"u"&&"Notification"in window&&Notification.permission==="granted"}async function T(){if(typeof window>"u"||!("Notification"in window))return"denied";return Notification.requestPermission()}var U={success:(j,b)=>D("Success",{body:j,icon:"\u2705",...b}),error:(j,b)=>D("Error",{body:j,icon:"\u274C",...b}),warning:(j,b)=>D("Warning",{body:j,icon:"\u26A0\uFE0F",...b}),info:(j,b)=>D("Info",{body:j,icon:"\u2139\uFE0F",...b})};
3
- export{K as Jq,D as Kq,R as Lq,T as Mq,U as Nq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function h(b,g){return b.kind===g}
3
- export{h as Mf};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function K(R={}){let{storageKey:F="stx-color-mode",initialMode:H="auto",darkClass:N="dark",attribute:X,disableTransitions:Y=!0}=R,G=H,A="light",I=new Set,U=[],J=typeof window<"u";function Z(){if(!J)return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _(z){return z==="auto"?Z():z}function V(z){if(!J)return;let E=document.documentElement;if(Y)E.style.setProperty("transition","none","important");if(X)E.setAttribute(X,z);else if(z==="dark")E.classList.add(N);else E.classList.remove(N);if(Y)E.offsetHeight,E.style.removeProperty("transition")}function j(z){if(!J)return;try{localStorage.setItem(F,z)}catch{}}function x(){if(!J)return null;try{let z=localStorage.getItem(F);if(z==="light"||z==="dark"||z==="auto")return z}catch{}return null}function W(z){G=z,A=_(z),V(A),j(z),I.forEach((E)=>E(A,G))}let h=x();if(W(h??H),J){let z=window.matchMedia("(prefers-color-scheme: dark)"),E=()=>{if(G==="auto")A=Z(),V(A),I.forEach((Q)=>Q(A,G))};z.addEventListener("change",E),U.push(()=>z.removeEventListener("change",E));let $=(Q)=>{if(Q.key!==F)return;let L=Q.newValue;if(L==="light"||L==="dark"||L==="auto")G=L,A=_(L),V(A),I.forEach((q)=>q(A,G))};window.addEventListener("storage",$),U.push(()=>window.removeEventListener("storage",$))}if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(()=>{U.forEach((z)=>z()),I.clear()});return{get mode(){return A},get preference(){return G},get isDark(){return A==="dark"},set(z){W(z)},toggle(){W(A==="dark"?"light":"dark")},subscribe(z){return I.add(z),()=>{I.delete(z)}}}}function O(R={}){let F=K(R);return{get isDark(){return F.isDark},toggle(){F.toggle()},set(H){F.set(H?"dark":"light")},subscribe(H){return F.subscribe((N)=>H(N==="dark"))}}}
3
- export{K as Or,O as Pr};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function D(){return typeof navigator<"u"&&"getBattery"in navigator}function K(){return{charging:!1,chargingTime:0,dischargingTime:0,level:1}}function L(){let q=D(),j=K(),x=[],g=null,E=!1,F=()=>{x.forEach((m)=>m(j))},w=()=>{if(g)j={charging:g.charging,chargingTime:g.chargingTime,dischargingTime:g.dischargingTime,level:g.level},F()},G=async()=>{if(E||!q)return;try{let m=navigator;if(m.getBattery)g=await m.getBattery(),j={charging:g.charging,chargingTime:g.chargingTime,dischargingTime:g.dischargingTime,level:g.level},g.addEventListener("chargingchange",w),g.addEventListener("chargingtimechange",w),g.addEventListener("dischargingtimechange",w),g.addEventListener("levelchange",w),E=!0,F()}catch{}},H=()=>{if(g)g.removeEventListener("chargingchange",w),g.removeEventListener("chargingtimechange",w),g.removeEventListener("dischargingtimechange",w),g.removeEventListener("levelchange",w),g=null;E=!1};return{get:()=>j,subscribe:(m)=>{if(x.length===0)G();return x.push(m),m(j),()=>{if(x=x.filter((J)=>J!==m),x.length===0)H()}},isSupported:()=>q,getPercentage:()=>Math.round(j.level*100),isLow:(m=0.2)=>j.level<=m&&!j.charging,isCritical:()=>j.level<=0.1&&!j.charging}}async function M(){if(!D())return null;try{let q=navigator;if(q.getBattery){let j=await q.getBattery();return Math.round(j.level*100)}}catch{}return null}async function N(){if(!D())return null;try{let q=navigator;if(q.getBattery)return(await q.getBattery()).charging}catch{}return null}function O(){return D()}
3
- export{L as Er,M as Fr,N as Gr,O as Hr};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function H(){return typeof navigator<"u"&&"share"in navigator}function I(){return typeof navigator<"u"&&"canShare"in navigator}function G(){let q=H(),z=I(),A=(j)=>{if(!q)return!1;if(!j)return!0;if(j.files&&j.files.length>0){if(!z)return!1;try{return navigator.canShare(j)}catch{return!1}}return!!(j.title||j.text||j.url)};return{isSupported:()=>q,isFileShareSupported:()=>z,canShare:A,share:async(j)=>{if(!q)return{success:!1,error:Error("Web Share API is not supported")};if(!j.title&&!j.text&&!j.url&&(!j.files||j.files.length===0))return{success:!1,error:Error("Share data must include at least one of: title, text, url, or files")};if(!A(j))return{success:!1,error:Error("This content cannot be shared on this device")};try{return await navigator.share(j),{success:!0}}catch(B){if(B instanceof Error&&B.name==="AbortError")return{success:!1,cancelled:!0};return{success:!1,error:B instanceof Error?B:Error(String(B))}}}}}async function D(q){return G().share(q)}async function J(q,z,A){return D({url:q,title:z,text:A})}async function K(q,z){return D({text:q,title:z})}async function L(q,z,A){return D({files:q,title:z,text:A})}function N(q,z,A){return new File([q],z,{type:A||q.type})}async function O(q){if(typeof document>"u"||typeof location>"u")return{success:!1,error:Error("Not in browser environment")};return D({title:document.title,url:location.href,text:q})}async function P(q,z){let A=G();if(A.isSupported()&&A.canShare(q)){let j=await A.share(q);if(j.success||j.cancelled)return j}let E=q.url||q.text||q.title||"";if(!E)return{success:!1,error:Error("Nothing to copy")};try{if(await navigator.clipboard.writeText(E),z)alert(z);return{success:!0,usedFallback:!0}}catch(j){return{success:!1,error:j instanceof Error?j:Error(String(j)),usedFallback:!0}}}
3
- export{G as Hp,D as Ip,J as Jp,K as Kp,L as Lp,N as Mp,O as Np,P as Op};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function K(D,G=250){let j=null,q=null,z=(...B)=>{if(q=B,j!==null)clearTimeout(j);j=setTimeout(()=>{j=null,q=null,D(...B)},G)};if(z.cancel=()=>{if(j!==null)clearTimeout(j),j=null,q=null},z.flush=()=>{if(j!==null&&q!==null){clearTimeout(j),j=null;let B=q;q=null,D(...B)}},z.pending=()=>j!==null,typeof globalThis.onDestroy==="function")globalThis.onDestroy(z.cancel);return z}function L(D,G=250){let j=D(),q=new Set,z=null;(()=>{if(z!==null)clearTimeout(z);z=setTimeout(()=>{z=null;let C=D();if(C!==j)j=C,q.forEach((E)=>E(j))},G)})();let F=()=>{if(z!==null)clearTimeout(z);q.clear()};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(F);return{get value(){return j},subscribe(C){return q.add(C),()=>{q.delete(C)}}}}function M(D,G=250){let j=null,q=0,z=(...B)=>{let F=Date.now(),C=G-(F-q);if(C<=0){if(j!==null)clearTimeout(j),j=null;q=F,D(...B)}else if(j===null)j=setTimeout(()=>{q=Date.now(),j=null,D(...B)},C)};if(z.cancel=()=>{if(j!==null)clearTimeout(j),j=null},typeof globalThis.onDestroy==="function")globalThis.onDestroy(z.cancel);return z}function N(D=1000,G={}){let j=0,q=null,z=!1,B=new Set,F=()=>{j++,B.forEach((H)=>H(j))},C=()=>{if(z)return;if(z=!0,q=setInterval(F,D),G.immediate)F()},E=()=>{if(!z)return;if(z=!1,q!==null)clearInterval(q),q=null},I=()=>{E(),j=0,B.forEach((H)=>H(j)),C()};C();let J=()=>{E(),B.clear()};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(J);return{get counter(){return j},pause:E,resume:C,reset:I,subscribe(H){return B.add(H),()=>{B.delete(H)}}}}function Q(D,G=1000){let j=null,q=!1,z=new Set,B=(E)=>{if(E!==q)q=E,z.forEach((I)=>I(q))},F=()=>{C(),B(!0),j=setTimeout(()=>{j=null,B(!1),D()},G)},C=()=>{if(j!==null)clearTimeout(j),j=null;B(!1)};if(F(),typeof globalThis.onDestroy==="function")globalThis.onDestroy(C);return{get isPending(){return q},start:F,stop:C,subscribe(E){return z.add(E),()=>{z.delete(E)}}}}
3
- export{K as eq,L as fq,M as gq,N as hq,Q as iq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function x(){let F=typeof window<"u"?window.__stx_broadcasting:void 0;return{host:F?.host??(typeof window<"u"?window.location.hostname:"localhost"),port:F?.port??6001,scheme:F?.scheme??"ws"}}function T(F,H={}){let O=x(),Y=H.host??O.host,Z=H.port??O.port,_=H.scheme??O.scheme,$=H.autoConnect??!0,A=H.autoReconnect??!0,E=H.maxReconnectAttempts??Number.POSITIVE_INFINITY,D=H.reconnectDelay??1000,P=new Set,I=new Map,B={data:null,event:null,isSubscribed:!1,isConnected:!1,socketId:null},G=null,K=0,M=null,Q=!1;function J(){for(let z of P)z(B)}function j(z,q){let W=I.get(z);if(W)for(let U of W)U(q);let X=I.get("*");if(X)for(let U of X)U(q)}function S(){if(typeof WebSocket>"u")return;Q=!1;try{G=new WebSocket(`${_}://${Y}:${Z}/ws`)}catch{V();return}G.onmessage=(z)=>{try{let q=JSON.parse(z.data);if(q.event==="connection_established"){B={...B,isConnected:!0,socketId:q.data?.socket_id??null},J(),G.send(JSON.stringify({event:"subscribe",channel:F}));return}if(q.event==="subscription_succeeded"&&q.channel===F){B={...B,isSubscribed:!0},K=0,J();return}if(q.event==="subscription_error"&&q.channel===F){console.warn(`[stx] Channel subscription failed: ${F}`,q.data);return}if(q.channel===F&&q.event)B={...B,data:q.data,event:q.event},J(),j(q.event,q.data)}catch{}},G.onclose=()=>{let z=B.isSubscribed;if(B={...B,isConnected:!1,isSubscribed:!1,socketId:null},G=null,J(),!Q&&A)V()},G.onerror=()=>{}}function V(){if(K>=E)return;let z=Math.min(D*2**K,30000);K++,M=setTimeout(S,z)}function R(){if(Q=!0,M)clearTimeout(M),M=null;if(G){if(B.isSubscribed)try{G.send(JSON.stringify({event:"unsubscribe",channel:F}))}catch{}G.close(),G=null}B={data:null,event:null,isSubscribed:!1,isConnected:!1,socketId:null},J()}if($)S();return{get:()=>B,subscribe:(z)=>{return P.add(z),z(B),()=>{P.delete(z)}},on:(z,q)=>{if(!I.has(z))I.set(z,new Set);return I.get(z).add(q),()=>{I.get(z)?.delete(q)}},close:R,open:S}}
3
- export{T as Lr};
@@ -1,5 +0,0 @@
1
- // @bun
2
- function Z(G={}){let{onSelect:N,onClear:Q}=G,I=new Set,z={text:"",rects:[],ranges:[],isCollapsed:!0},K=null;function D(){I.forEach((B)=>B(z))}function E(B){if(!B||B.rangeCount===0)return[];let J=[];for(let U=0;U<B.rangeCount;U++)J.push(B.getRangeAt(U).cloneRange());return J}function V(B){let J=[];for(let U of B){let X=U.getClientRects();for(let Y=0;Y<X.length;Y++)J.push(X[Y])}return J}function _(){let B=window.getSelection();if(!B)return;let J=B.toString(),U=B.isCollapsed,X=E(B),Y=V(X),$=z.text;if(z={text:J,rects:Y,ranges:X,isCollapsed:U},D(),J&&J!==$)N?.(z);else if(!J&&$)Q?.()}function q(){if(typeof document>"u"||K)return;document.addEventListener("selectionchange",_),K=()=>{document.removeEventListener("selectionchange",_)}}function H(){K?.(),K=null}function v(){return z.text}function F(){let B=window.getSelection();if(B)B.removeAllRanges()}function M(B){let J=window.getSelection();if(!J)return;let U=document.createRange();if(B)U.selectNodeContents(B);else U.selectNodeContents(document.body);J.removeAllRanges(),J.addRange(U)}function P(){return z.rects}if(typeof document<"u")q();return{get:()=>z,subscribe:(B)=>{return I.add(B),B(z),()=>{if(I.delete(B),I.size===0)H()}},getText:v,clear:F,selectAll:M,getRects:P}}function j(G){let N=Z(),Q=new Set,I="";return N.subscribe((z)=>{if(!G||!z.text){if(I)I="",Q.forEach((E)=>E(""));return}let K=window.getSelection();if(!K||K.rangeCount===0)return;let D=K.getRangeAt(0);if(G.contains(D.commonAncestorContainer))I=z.text,Q.forEach((E)=>E(z.text));else if(I)I="",Q.forEach((E)=>E(""))}),{get:()=>I,subscribe:(z)=>{return Q.add(z),z(I),()=>{Q.delete(z)}},clear:N.clear,selectAll:()=>G&&N.selectAll(G)}}function A(G){let{onShow:N,onHide:Q,minLength:I=1}=G,z=!1,K=Z({onSelect:(D)=>{if(D.text.length>=I&&D.rects.length>0){let E=D.rects[D.rects.length-1],V={x:E.left+E.width/2,y:E.top-10};z=!0,N?.(D.text,V)}},onClear:()=>{if(z)z=!1,Q?.()}});return{get:K.get,subscribe:K.subscribe,isShowing:()=>z}}function L(){let G=Z();async function N(D){try{return await navigator.clipboard.writeText(D),!0}catch{return!1}}async function Q(){let D=G.getText();if(!D)return!1;return N(D)}async function I(){let D=G.getText();if(!D)return!1;let E=D.split(`
3
- `).map((V)=>`> ${V}`).join(`
4
- `);return N(E)}async function z(D){let E=G.getText();if(!E)return!1;return N(D+E)}async function K(D,E){let V=G.getText();if(!V)return!1;return N(D+V+E)}return{get:G.get,subscribe:G.subscribe,copy:Q,copyAsMarkdown:I,copyWithPrefix:z,copyWithWrapper:K,getText:G.getText,clear:G.clear}}
5
- export{Z as aq,j as bq,A as cq,L as dq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function Z(B){return new Promise((J,C)=>{if(!navigator.geolocation){C(Error("Geolocation is not supported"));return}navigator.geolocation.getCurrentPosition(J,C,B)})}function _(B,J,C,M){let F=B*Math.PI/180,q=C*Math.PI/180,z=(C-B)*Math.PI/180,D=(M-J)*Math.PI/180,K=Math.sin(z/2)*Math.sin(z/2)+Math.cos(F)*Math.cos(q)*Math.sin(D/2)*Math.sin(D/2);return 6371000*(2*Math.atan2(Math.sqrt(K),Math.sqrt(1-K)))}function Y(B={}){let{enableHighAccuracy:J=!0,timeout:C=1e4,maximumAge:M=0,immediate:N=!0}=B,F=typeof navigator<"u"&&"geolocation"in navigator,q={coords:null,timestamp:null,error:null,loading:!1,supported:F},z=[],D=null,K=!0,L=()=>{z.forEach((k)=>k(q))},Q=(k)=>{q={...q,coords:{latitude:k.coords.latitude,longitude:k.coords.longitude,altitude:k.coords.altitude,accuracy:k.coords.accuracy,altitudeAccuracy:k.coords.altitudeAccuracy,heading:k.coords.heading,speed:k.coords.speed},timestamp:k.timestamp,error:null,loading:!1},L()},R=(k)=>{q={...q,error:k,loading:!1},L()},O=()=>{if(!F||D!==null)return;q={...q,loading:!0},L(),D=navigator.geolocation.watchPosition(Q,R,{enableHighAccuracy:J,timeout:C,maximumAge:M})},S=()=>{if(D!==null)navigator.geolocation.clearWatch(D),D=null},T=()=>{if(!F)return;q={...q,loading:!0},L(),navigator.geolocation.getCurrentPosition(Q,R,{enableHighAccuracy:J,timeout:C,maximumAge:M})},U=()=>{K=!1,S()},V=()=>{if(K=!0,z.length>0)O()};if(N&&F)O();return{get:()=>q,subscribe:(k)=>{if(z.push(k),k(q),z.length===1&&K&&F&&!N)O();return()=>{if(z=z.filter((X)=>X!==k),z.length===0)S()}},refresh:T,pause:U,resume:V}}function $(B){return Y({...B,immediate:!0})}
3
- export{Z as mr,_ as nr,Y as or,$ as pr};
@@ -1,3 +0,0 @@
1
- // @bun
2
- var $={read:(q)=>{try{return JSON.parse(q)}catch{return q}},write:(q)=>{return JSON.stringify(q)}};function W(q,A,I={}){let{storage:J="local",serializer:L=$,mergeDefaults:X=!1,listenToStorageChanges:Y=!0}=I,M=new Set,Q=typeof window<"u",K=()=>{if(!Q)return null;return J==="session"?sessionStorage:localStorage},Z=()=>{let j=K();if(!j)return A;try{let B=j.getItem(q);if(B===null)return A;let E=L.read(B);if(X&&typeof A==="object"&&A!==null)return{...A,...E};return E}catch{return A}},_=(j)=>{let B=K();if(!B)return;try{if(j===null||j===void 0)B.removeItem(q);else B.setItem(q,L.write(j))}catch(E){console.warn(`[useStorage] Failed to write key "${q}":`,E)}},H=Z(),N=(j,B)=>{for(let E of M)try{E(j,B)}catch(P){console.error("[useStorage] Subscriber error:",P)}};if(Q&&Y){let j=(E)=>{if(E.key===q&&E.storageArea===K()){let P=H;H=E.newValue?L.read(E.newValue):A,N(H,P)}};window.addEventListener("storage",j);let B=globalThis.onDestroy;if(typeof B==="function")B(()=>window.removeEventListener("storage",j))}let R={get value(){return H},set value(j){let B=H;H=j,_(j),N(j,B)},get:()=>H,set:(j)=>{R.value=j},remove:()=>{let j=K();if(j){j.removeItem(q);let B=H;H=A,N(A,B)}},subscribe:(j)=>{return M.add(j),j(H,void 0),()=>M.delete(j)}};return R}function x(q,A,I){return W(q,A,{...I,storage:"local"})}function F(q,A,I){return W(q,A,{...I,storage:"session"})}function G(q="local"){if(typeof window>"u")return;(q==="session"?sessionStorage:localStorage).clear()}function U(q="local"){if(typeof window>"u")return[];let A=q==="session"?sessionStorage:localStorage;return Object.keys(A)}function h(q="local"){if(typeof window>"u")return 0;let A=q==="session"?sessionStorage:localStorage,I=0;for(let J in A)if(Object.prototype.hasOwnProperty.call(A,J))I+=(J.length+(A.getItem(J)?.length||0))*2;return I}
3
- export{W as Wp,x as Xp,F as Yp,G as Zp,U as _p,h as $p};
@@ -1 +0,0 @@
1
- // @bun
@@ -1,3 +0,0 @@
1
- // @bun
2
- var _=["mousemove","mousedown","keydown","touchstart","scroll","wheel","resize","visibilitychange"];function x(z={}){let{timeout:k=60000,events:M=_,listenTo:B=typeof document<"u"?document:null,initialState:P=!1,onIdle:G,onActive:Q}=z,J=new Set,j={isIdle:P,lastActive:Date.now(),idleTime:0},H=null,O=null,R=null;function Z(){J.forEach((q)=>q(j))}function $(q){let K=j.isIdle;if(q&&!K)j={...j,isIdle:!0},Z(),G?.(),O=setInterval(()=>{j={...j,idleTime:Date.now()-j.lastActive},Z()},1000);else if(!q&&K){if(j={...j,isIdle:!1,lastActive:Date.now(),idleTime:0},Z(),Q?.(),O)clearInterval(O),O=null}}function X(){if(H)clearTimeout(H);if(!j.isIdle)j={...j,lastActive:Date.now()};$(!1),H=setTimeout(()=>{$(!0)},k)}function C(){X()}function D(){if(document.hidden){if(H)clearTimeout(H);H=setTimeout(()=>{$(!0)},Math.min(k,5000))}else X()}function F(){if(!B||R)return;let q=[];for(let K of M){let Y=K==="visibilitychange"?D:C;B.addEventListener(K,Y,{passive:!0}),q.push([K,Y])}X(),R=()=>{for(let[K,Y]of q)B.removeEventListener(K,Y);if(H)clearTimeout(H),H=null;if(O)clearInterval(O),O=null}}function N(){R?.(),R=null}function U(){X()}if(typeof document<"u")F();return{get:()=>j,subscribe:(q)=>{return J.add(q),q(j),()=>{if(J.delete(q),J.size===0)N()}},reset:U,isIdle:()=>j.isIdle}}function V(z=60000){let k=x({timeout:z});return{get:()=>k.get().isIdle,subscribe:(M)=>{return k.subscribe((B)=>M(B.isIdle))},reset:k.reset}}function E(){let z=x({timeout:Number.POSITIVE_INFINITY});return{get:()=>z.get().lastActive,subscribe:(k)=>{return z.subscribe((M)=>k(M.lastActive))},reset:z.reset}}function W(z,k,M={}){let{warningTime:B=30000,onWarning:P}=M,G=null,Q=!1,J=x({timeout:z-B,onIdle:()=>{if(P){Q=!0;let j=B;P(j),G=setInterval(()=>{if(j-=1000,j<=0){if(G)clearInterval(G),G=null;k()}else P(j)},1000)}else setTimeout(k,B)},onActive:()=>{if(Q){if(Q=!1,G)clearInterval(G),G=null}}});return{reset:J.reset,get:J.get,subscribe:J.subscribe}}
3
- export{x as qr,V as rr,E as sr,W as tr};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function Q(){return typeof navigator<"u"&&"wakeLock"in navigator}function M(){let z=Q(),D=new Set,j={isSupported:z,isActive:!1,type:null,error:null},E=null,G=null;function H(){D.forEach((F)=>F(j))}function N(){j={...j,isActive:!1,type:null},E=null,H()}function J(){if(document.visibilityState==="visible"&&j.isActive===!1&&E===null);}async function K(){if(!z)return j={...j,error:Error("Wake Lock API not supported")},H(),!1;try{if(E=await navigator.wakeLock.request("screen"),E.addEventListener("release",N),!G)document.addEventListener("visibilitychange",J),G=()=>{document.removeEventListener("visibilitychange",J)};return j={...j,isActive:!0,type:"screen",error:null},H(),!0}catch(F){return j={...j,isActive:!1,error:F},H(),!1}}async function I(){if(E)await E.release(),E=null;j={...j,isActive:!1,type:null},H()}async function O(){if(j.isActive)return await I(),!1;else return K()}return{get:()=>j,subscribe:(F)=>{return D.add(F),F(j),()=>{if(D.delete(F),D.size===0)I(),G?.(),G=null}},request:K,release:I,toggle:O,isSupported:()=>z,isActive:()=>j.isActive}}function T(){let z=M();if(z.isSupported())z.request();if(typeof document<"u"){let D=async()=>{if(document.visibilityState==="visible"&&!z.isActive())await z.request()};document.addEventListener("visibilitychange",D);let j=z.subscribe;return{...z,subscribe:(E)=>{let G=j(E);return()=>{G(),document.removeEventListener("visibilitychange",D),z.release()}}}}return z}function U(z){let D=M();async function j(){let E=z();if(E&&!D.isActive())await D.request();else if(!E&&D.isActive())await D.release()}return{...D,check:j}}
3
- export{Q as mp,M as np,T as op,U as pp};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function C(q,w,j){if(typeof window>"u")return{remove:()=>{}};let k=window;if(j?.target)if(typeof j.target==="string"){let B=document.querySelector(j.target);if(!B)return console.warn(`[stx] useEventListener: selector "${j.target}" did not match any element. Listener not attached.`),{remove:()=>{}};k=B}else k=j.target;let x={capture:j?.capture,passive:j?.passive,once:j?.once};k.addEventListener(q,w,x);let z=()=>{k.removeEventListener(q,w,x)};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(z);return{remove:z}}
3
- export{C as cs};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function O(){return typeof window<"u"&&"EventSource"in window}function k(T,G={}){let{withCredentials:I=!1,autoReconnect:B=!0,immediate:Z=!0,events:Y=[],onOpen:_,onMessage:$,onError:h}=G,U=new Set,K=new Map,q={status:"closed",data:null,event:null,lastEventId:null,error:null},A=null,Q=0,V=!1;function H(){U.forEach((j)=>j(q))}function W(j,z){let F=K.get(j);if(F)F.forEach((P)=>P(z))}function w(){if(typeof B==="object")return{retries:B.retries??3,delay:B.delay??1000,onFailed:B.onFailed};return{retries:3,delay:1000,onFailed:void 0}}function X(){if(!O())return;V=!1,q={...q,status:"connecting"},H();try{A=new EventSource(T.toString(),{withCredentials:I}),A.onopen=(j)=>{q={...q,status:"open"},Q=0,H(),_?.(j)},A.onmessage=(j)=>{let z;try{z=JSON.parse(j.data)}catch{z=j.data}q={...q,data:z,event:"message",lastEventId:j.lastEventId||null},H(),W("message",j),$?.(j)},A.onerror=(j)=>{if(q={...q,status:"error",error:j},H(),h?.(j),A?.readyState===EventSource.CLOSED){if(q={...q,status:"closed"},H(),B&&!V){let z=w();if(Q<z.retries)Q++,setTimeout(X,z.delay*Q);else z.onFailed?.()}}};for(let j of Y)A.addEventListener(j,(z)=>{let F=z,P;try{P=JSON.parse(F.data)}catch{P=F.data}q={...q,data:P,event:j,lastEventId:F.lastEventId||null},H(),W(j,F)})}catch(j){q={...q,status:"error",error:j},H()}}function J(){if(V=!0,A)A.close(),A=null,q={...q,status:"closed"},H()}function M(j,z){if(!K.has(j)){if(K.set(j,new Set),A&&!Y.includes(j))A.addEventListener(j,(F)=>{W(j,F)})}return K.get(j).add(z),()=>{K.get(j)?.delete(z)}}if(Z)X();return{get:()=>q,subscribe:(j)=>{return U.add(j),j(q),()=>{U.delete(j)}},open:X,close:J,eventSource:()=>A,on:M}}function x(T){let G=k(T);return{data:{get:()=>G.get().data,subscribe:(I)=>{return G.subscribe((B)=>I(B.data))}},status:{get:()=>G.get().status,subscribe:(I)=>{return G.subscribe((B)=>I(B.status))}},close:G.close,open:G.open}}
3
- export{O as Xq,k as Yq,x as Zq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function G(){if(typeof window>"u")return null;return window.SpeechRecognition||window.webkitSpeechRecognition||null}function V(){return G()!==null}function R(I={}){let F=G(),w=F!==null,q={isListening:!1,transcript:"",finalTranscript:"",interimTranscript:"",confidence:0,isSupported:w,error:null},z=null,Q=[],J={result:[],error:[],start:[],end:[]},K=()=>{Q.forEach((A)=>A(q))},P=(A,H)=>{J[A]?.forEach((j)=>j(H))};if(w&&F){if(z=new F,z.continuous=I.continuous??!1,z.interimResults=I.interimResults??!0,z.lang=I.lang??"en-US",z.maxAlternatives=I.maxAlternatives??1,I.grammars)z.grammars=I.grammars;z.onstart=()=>{q={...q,isListening:!0,error:null},K(),P("start")},z.onresult=(A)=>{let H="",j="",D=0;for(let B=0;B<A.results.length;B++){let N=A.results[B],W=N[0].transcript;if(D=Math.max(D,N[0].confidence||0),N.isFinal)H+=W;else j+=W}q={...q,finalTranscript:q.finalTranscript+H,interimTranscript:j,transcript:q.finalTranscript+H+j,confidence:D},K(),P("result",{transcript:q.transcript,finalTranscript:q.finalTranscript,interimTranscript:j,confidence:D,isFinal:H.length>0})},z.onerror=(A)=>{let H=C(A.error);q={...q,error:H,isListening:!1},K(),P("error",{code:A.error,message:H})},z.onend=()=>{q={...q,isListening:!1},K(),P("end",{transcript:q.transcript})}}let X=()=>{if(!w||!z||q.isListening)return;q={...q,transcript:"",finalTranscript:"",interimTranscript:"",confidence:0,error:null};try{z.start()}catch(A){q={...q,error:"Failed to start speech recognition"},K()}},Y=()=>{if(!z||!q.isListening)return;try{z.stop()}catch{}};return{get:()=>q,subscribe:(A)=>{return Q.push(A),A(q),()=>{Q=Q.filter((H)=>H!==A)}},start:X,stop:Y,abort:()=>{if(!z)return;try{z.abort()}catch{}q={...q,isListening:!1},K()},toggle:()=>{if(q.isListening)Y();else X()},isSupported:()=>w,on:(A,H)=>{if(J[A])return J[A].push(H),()=>{J[A]=J[A].filter((j)=>j!==H)};return()=>{}}}}function C(I){return{"no-speech":"No speech was detected","audio-capture":"No microphone was found or microphone is disabled","not-allowed":"Microphone permission denied",network:"Network error - speech recognition requires internet",aborted:"Speech recognition was aborted","service-not-allowed":"Speech recognition service not allowed","bad-grammar":"Speech grammar error","language-not-supported":"Language not supported"}[I]||`Speech recognition error: ${I}`}function _(){return typeof window<"u"&&"speechSynthesis"in window}function M(I={}){let F=_(),w={isSpeaking:!1,isPaused:!1,isSupported:F,voices:[],currentText:""},q=[],z={start:[],end:[],pause:[],resume:[],error:[]},Q=null,J=()=>{q.forEach((j)=>j(w))},K=(j,D)=>{z[j]?.forEach((B)=>B(D))},P=()=>{if(!F)return;w={...w,voices:window.speechSynthesis.getVoices()},J()};if(F){if(P(),window.speechSynthesis.onvoiceschanged!==void 0)window.speechSynthesis.onvoiceschanged=P}let X=(j)=>{if(j===void 0)return null;if(typeof j==="number")return w.voices[j]||null;return w.voices.find((D)=>D.name.toLowerCase().includes(j.toLowerCase())||D.lang.toLowerCase().includes(j.toLowerCase()))||null},Y=(j,D={})=>{if(!F||!j.trim())return;window.speechSynthesis.cancel();let B=new SpeechSynthesisUtterance(j),N={...I,...D};if(B.rate=N.rate??1,B.pitch=N.pitch??1,B.volume=N.volume??1,N.lang)B.lang=N.lang;let W=X(N.voice);if(W)B.voice=W;B.onstart=()=>{w={...w,isSpeaking:!0,isPaused:!1,currentText:j},J(),K("start",{text:j})},B.onend=()=>{w={...w,isSpeaking:!1,isPaused:!1,currentText:""},J(),K("end",{text:j})},B.onpause=()=>{w={...w,isPaused:!0},J(),K("pause")},B.onresume=()=>{w={...w,isPaused:!1},J(),K("resume")},B.onerror=(U)=>{w={...w,isSpeaking:!1,isPaused:!1},J(),K("error",{error:U.error})},Q=B,window.speechSynthesis.speak(B)},$=()=>{if(!F)return;window.speechSynthesis.cancel(),w={...w,isSpeaking:!1,isPaused:!1,currentText:""},J()},Z=()=>{if(!F||!w.isSpeaking)return;window.speechSynthesis.pause()},A=()=>{if(!F||!w.isPaused)return;window.speechSynthesis.resume()};return{get:()=>w,subscribe:(j)=>{return q.push(j),j(w),()=>{q=q.filter((D)=>D!==j)}},speak:Y,stop:$,pause:Z,resume:A,toggle:()=>{if(w.isPaused)A();else if(w.isSpeaking)Z()},getVoices:()=>w.voices,isSupported:()=>F,on:(j,D)=>{if(z[j])return z[j].push(D),()=>{z[j]=z[j].filter((B)=>B!==D)};return()=>{}}}}function T(I,F){M(F).speak(I)}function b(){if(_())window.speechSynthesis.cancel()}function k(){if(!_())return[];return window.speechSynthesis.getVoices()}
3
- export{V as Pp,R as Qp,_ as Rp,M as Sp,T as Tp,b as Up,k as Vp};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function K(H=!1){let E=H,k=new Set,q=()=>k.forEach((C)=>C(E));return[{get value(){return E},subscribe(C){return k.add(C),()=>{k.delete(C)}}},()=>{E=!E,q()},(C)=>{if(C!==E)E=C,q()}]}function M(H=0,E={}){let{min:k=-1/0,max:q=1/0}=E,z=C(H,k,q),G=new Set,I=()=>G.forEach((D)=>D(z));function C(D,b,J){return Math.min(J,Math.max(b,D))}return{get count(){return z},inc(D=1){z=C(z+D,k,q),I()},dec(D=1){z=C(z-D,k,q),I()},set(D){z=C(D,k,q),I()},reset(){z=C(H,k,q),I()},subscribe(D){return G.add(D),()=>{G.delete(D)}}}}function N(H,E){if(typeof window>"u")return{remove:()=>{}};let k=(z)=>{let G=typeof H==="string"?document.querySelector(H):H;if(!G)return;if(G===z.target||G.contains(z.target))return;E(z)};document.addEventListener("pointerdown",k,!0);let q=()=>{document.removeEventListener("pointerdown",k,!0)};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(q);return{remove:q}}function O(H){if(typeof window>"u")return{get isFocused(){return!1},focus:()=>{},blur:()=>{},subscribe:()=>()=>{}};let E=!1,k=new Set,q=()=>typeof H==="string"?document.querySelector(H):H,z=(b)=>{if(b!==E)E=b,k.forEach((J)=>J(E))},G=()=>z(!0),I=()=>z(!1),C=q();if(C)C.addEventListener("focus",G),C.addEventListener("blur",I),E=document.activeElement===C;let D=()=>{let b=q();if(b)b.removeEventListener("focus",G),b.removeEventListener("blur",I);k.clear()};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(D);return{get isFocused(){return E},focus(){let b=q();if(b&&typeof b.focus==="function")b.focus()},blur(){let b=q();if(b&&typeof b.blur==="function")b.blur()},subscribe(b){return k.add(b),()=>{k.delete(b)}}}}function P(H,E={}){let k="idle",q=null,z=null,G=new Set,I=()=>{let D={state:k,data:q,error:z};G.forEach((b)=>b(D))},C=async(...D)=>{k="loading",z=null,I();try{return q=await H(...D),k="success",I(),q}catch(b){return z=b instanceof Error?b:Error(String(b)),k="error",I(),null}};if(E.immediate)C();return{get state(){return k},get isLoading(){return k==="loading"},get error(){return z},get data(){return q},execute:C,subscribe(D){return G.add(D),()=>{G.delete(D)}}}}
3
- export{K as jq,M as kq,N as lq,O as mq,P as nq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function U(){return typeof window<"u"&&"MutationObserver"in window}function D(A={}){let G=U(),z=new Set,{attributes:H=!0,attributeFilter:C,attributeOldValue:j=!1,characterData:K=!0,characterDataOldValue:Q=!1,childList:B=!0,subtree:E=!0,onMutate:I}=A,J={isSupported:G,isObserving:!1,mutations:[]},P=null,Z=null;function X(){z.forEach((q)=>q(J))}function L(q){J={...J,mutations:q},X(),I?.(q)}function R(q){if(!G||!q)return;Y(),P=new MutationObserver(L);let _={attributes:H,attributeOldValue:j,characterData:K,characterDataOldValue:Q,childList:B,subtree:E};if(C)_.attributeFilter=C;P.observe(q,_),Z=q,J={...J,isObserving:!0},X()}function Y(){if(P)P.disconnect(),P=null,Z=null,J={...J,isObserving:!1,mutations:[]},X()}function W(){if(P)return P.takeRecords();return[]}return{get:()=>J,subscribe:(q)=>{return z.add(q),q(J),()=>{if(z.delete(q),z.size===0)Y()}},observe:R,disconnect:Y,takeRecords:W,isSupported:()=>G}}function F(A,G,z){if(!A||!U())return()=>{};let H=new MutationObserver((C)=>{for(let j of C)if(j.type==="attributes"&&j.attributeName){let K=j.target.getAttribute(j.attributeName);z(j.attributeName,j.oldValue,K)}});return H.observe(A,{attributes:!0,attributeFilter:G,attributeOldValue:!0}),()=>H.disconnect()}function N(A,G,z={}){if(!A||!U())return()=>{};let H=new MutationObserver((C)=>{let j=[],K=[];for(let Q of C)if(Q.type==="childList")j.push(...Array.from(Q.addedNodes)),K.push(...Array.from(Q.removedNodes));if(j.length>0||K.length>0)G(j,K)});return H.observe(A,{childList:!0,subtree:z.subtree??!1}),()=>H.disconnect()}function $(A,G){if(!A||!U())return()=>{};let z=new MutationObserver((H)=>{for(let C of H)if(C.type==="characterData")G(C.oldValue,C.target.textContent||"")});return z.observe(A,{characterData:!0,characterDataOldValue:!0,subtree:!0}),()=>z.disconnect()}
3
- export{U as Cq,D as Dq,F as Eq,N as Fq,$ as Gq};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function F(x){let j=x.toLowerCase().split("+").map((O)=>O.trim());return{key:j[j.length-1],ctrl:j.includes("ctrl")||j.includes("control"),alt:j.includes("alt")||j.includes("option"),shift:j.includes("shift"),meta:j.includes("meta")||j.includes("cmd")||j.includes("command")||j.includes("win")}}function L(x,j){let Q=x.key.toLowerCase(),O=x.code.toLowerCase();return(Q===j.key||O===j.key||O===`key${j.key}`||O===`digit${j.key}`||j.key==="space"&&x.code==="Space"||j.key==="enter"&&x.key==="Enter"||j.key==="escape"&&x.key==="Escape"||j.key==="esc"&&x.key==="Escape"||j.key==="tab"&&x.key==="Tab"||j.key==="backspace"&&x.key==="Backspace"||j.key==="delete"&&x.key==="Delete"||j.key==="up"&&x.key==="ArrowUp"||j.key==="down"&&x.key==="ArrowDown"||j.key==="left"&&x.key==="ArrowLeft"||j.key==="right"&&x.key==="ArrowRight")&&x.ctrlKey===j.ctrl&&x.altKey===j.alt&&x.shiftKey===j.shift&&x.metaKey===j.meta}function M(){let x=document.activeElement;if(!x)return!1;let j=x.tagName.toLowerCase();return j==="input"||j==="textarea"||j==="select"||x.isContentEditable}function R(x={}){let{target:j=typeof window<"u"?window:null,capture:Q=!1,passive:O=!0}=x,A={pressed:new Set,lastKey:null,lastEvent:null,ctrl:!1,alt:!1,shift:!1,meta:!1,timestamp:0},E=[],J=null,S=()=>{E.forEach((z)=>z(A))},W=(z)=>{let G=new Set(A.pressed);G.add(z.key.toLowerCase()),G.add(z.code.toLowerCase()),A={pressed:G,lastKey:z.key,lastEvent:z,ctrl:z.ctrlKey,alt:z.altKey,shift:z.shiftKey,meta:z.metaKey,timestamp:Date.now()},S()},X=(z)=>{let G=new Set(A.pressed);G.delete(z.key.toLowerCase()),G.delete(z.code.toLowerCase()),A={pressed:G,lastKey:z.key,lastEvent:z,ctrl:z.ctrlKey,alt:z.altKey,shift:z.shiftKey,meta:z.metaKey,timestamp:Date.now()},S()},Y=()=>{A={...A,pressed:new Set,ctrl:!1,alt:!1,shift:!1,meta:!1},S()},Z=()=>{if(!j)return;let z=j,G={capture:Q,passive:O};if(z.addEventListener("keydown",W,G),z.addEventListener("keyup",X,G),typeof window<"u")window.addEventListener("blur",Y);J=()=>{if(z.removeEventListener("keydown",W,G),z.removeEventListener("keyup",X,G),typeof window<"u")window.removeEventListener("blur",Y)}};return{get:()=>A,subscribe:(z)=>{if(E.length===0)Z();return E.push(z),z(A),()=>{if(E=E.filter((G)=>G!==z),E.length===0&&J)J(),J=null}},isPressed:(z)=>{let G=z.toLowerCase();return A.pressed.has(G)},stop:()=>{if(J)J(),J=null;E=[]}}}function I(x,j,Q={}){let{target:O=typeof window<"u"?window:null,preventDefault:A=!0,stopPropagation:E=!1,ignoreRepeat:J=!0,keyup:S=!1,ignoreInputs:W=!0}=Q;if(!O)return()=>{};let Y=(Array.isArray(x)?x:[x]).map(F),Z=(_)=>{if(J&&_.repeat)return;if(W&&M())return;if(!Y.some(($)=>L(_,$)))return;if(A)_.preventDefault();if(E)_.stopPropagation();j(_)},z=S?"keyup":"keydown",G=O;return G.addEventListener(z,Z),()=>{G.removeEventListener(z,Z)}}function U(x,j={}){let Q=R(j),O=x.toLowerCase(),A=[],E=!1,J=null;return{get:()=>Q.isPressed(O),subscribe:(S)=>{if(A.length===0)J=Q.subscribe((W)=>{let X=W.pressed.has(O);if(X!==E)E=X,A.forEach((Y)=>Y(X))});return A.push(S),S(Q.isPressed(O)),()=>{if(A=A.filter((W)=>W!==S),A.length===0&&J)J(),J=null}}}}function V(x,j,Q={}){let{timeout:O=1000,target:A=typeof window<"u"?window:null}=Q;if(!A)return()=>{};let E=[],J=0,S=(X)=>{let Y=Date.now();if(Y-J>O)E=[];if(J=Y,E.push(X.key.toLowerCase()),E.length>x.length)E=E.slice(-x.length);if(E.length===x.length){if(E.every((z,G)=>z===x[G].toLowerCase()))j(),E=[]}},W=A;return W.addEventListener("keydown",S),()=>{W.removeEventListener("keydown",S)}}var D={save:"ctrl+s",undo:"ctrl+z",redo:"ctrl+shift+z",copy:"ctrl+c",paste:"ctrl+v",cut:"ctrl+x",selectAll:"ctrl+a",find:"ctrl+f",replace:"ctrl+h",newTab:"ctrl+t",closeTab:"ctrl+w",refresh:"ctrl+r",escape:"escape",enter:"enter",saveMac:"meta+s",undoMac:"meta+z",redoMac:"meta+shift+z",copyMac:"meta+c",pasteMac:"meta+v",cutMac:"meta+x"};
3
- export{R as zr,I as Ar,U as Br,V as Cr,D as Dr};