@stacksjs/stx 0.2.217 → 0.2.219

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 (177) hide show
  1. package/dist/{chunk-pdh79z63.js → chunk-02e5r50t.js} +1 -1
  2. package/dist/chunk-03t9yevc.js +2 -0
  3. package/dist/{chunk-z47tw39z.js → chunk-0kj7rses.js} +2 -2
  4. package/dist/{chunk-c0p9kf53.js → chunk-0m7mt6zc.js} +1 -1
  5. package/dist/{chunk-wbq7cp57.js → chunk-0wwbjhs2.js} +1 -1
  6. package/dist/chunk-1339ynfv.js +2 -0
  7. package/dist/{chunk-96kpqgh3.js → chunk-1b0yfasc.js} +1 -1
  8. package/dist/{chunk-b6jhznkh.js → chunk-1t7cy4zb.js} +1 -1
  9. package/dist/{chunk-808qy9cq.js → chunk-27crt28c.js} +196 -196
  10. package/dist/{chunk-xwc4pg5w.js → chunk-29y9cskh.js} +2 -2
  11. package/dist/{chunk-st5qggks.js → chunk-2v9qzeb5.js} +1 -1
  12. package/dist/{chunk-1bvstnz4.js → chunk-2w1qaf5b.js} +2 -2
  13. package/dist/chunk-395dm3a0.js +3 -0
  14. package/dist/{chunk-w0ng9e1m.js → chunk-3q8c4kex.js} +1 -1
  15. package/dist/{chunk-xkd164zg.js → chunk-3tm1df07.js} +1 -1
  16. package/dist/chunk-3v9drr1f.js +2 -0
  17. package/dist/chunk-40zvzck0.js +2 -0
  18. package/dist/chunk-4cm1n157.js +2 -0
  19. package/dist/{chunk-j0tfxbns.js → chunk-4q17c8sg.js} +2 -2
  20. package/dist/chunk-4v8358s4.js +2 -0
  21. package/dist/{chunk-j5vyt8wd.js → chunk-54cefpt2.js} +1 -1
  22. package/dist/chunk-55yz6apk.js +2 -0
  23. package/dist/chunk-5xg4y72b.js +2 -0
  24. package/dist/chunk-62ypndze.js +2 -0
  25. package/dist/{chunk-x8b16v5q.js → chunk-6b80avmh.js} +1 -1
  26. package/dist/chunk-6shcpcn9.js +2 -0
  27. package/dist/{chunk-s7dqawk0.js → chunk-6v2pfq30.js} +2 -2
  28. package/dist/{chunk-n8zpm7xb.js → chunk-6xtajfpz.js} +1 -1
  29. package/dist/{chunk-bsr7yrxh.js → chunk-71kpxn5y.js} +1 -1
  30. package/dist/{chunk-mxqp7x07.js → chunk-7az4zfm8.js} +2 -2
  31. package/dist/{chunk-7md45k52.js → chunk-7ftn4dpc.js} +2 -2
  32. package/dist/{chunk-y4hkqsgw.js → chunk-81jqzypz.js} +2 -2
  33. package/dist/{chunk-q8szpd6w.js → chunk-8dz63q4e.js} +1 -1
  34. package/dist/chunk-8ksdma43.js +2 -0
  35. package/dist/{chunk-weajy31v.js → chunk-937b32gs.js} +2 -2
  36. package/dist/{chunk-crmk2jzf.js → chunk-97t2tj98.js} +1 -1
  37. package/dist/chunk-99ncmbh8.js +2 -0
  38. package/dist/{chunk-9064gyt5.js → chunk-9k6890an.js} +2 -2
  39. package/dist/{chunk-pezxve4a.js → chunk-9tmcj4y7.js} +3 -3
  40. package/dist/{chunk-ymccpdg6.js → chunk-a39thx3m.js} +1 -1
  41. package/dist/{chunk-cqt6ry1e.js → chunk-a53v1er1.js} +1 -1
  42. package/dist/chunk-a7zjfav5.js +2 -0
  43. package/dist/chunk-aca3hetd.js +2 -0
  44. package/dist/{chunk-7mst8kqm.js → chunk-ags8t27c.js} +1 -1
  45. package/dist/{chunk-zgvga8rc.js → chunk-ap23bgyb.js} +1 -1
  46. package/dist/chunk-b9kdezkq.js +2 -0
  47. package/dist/{chunk-1nnpwrqj.js → chunk-bbrm07kg.js} +2 -2
  48. package/dist/{chunk-y2jr10y8.js → chunk-bhqcp8b0.js} +2 -2
  49. package/dist/{chunk-fnkxbnka.js → chunk-bx766t25.js} +1 -1
  50. package/dist/{chunk-ht51fz7w.js → chunk-c23nyjd0.js} +1 -1
  51. package/dist/chunk-c6pb88k7.js +2 -0
  52. package/dist/{chunk-47pge5gz.js → chunk-ch5n6w31.js} +1 -1
  53. package/dist/chunk-cmz46x9n.js +2 -0
  54. package/dist/{chunk-m2mhtpwy.js → chunk-cnkex10g.js} +1 -1
  55. package/dist/{chunk-3es366z4.js → chunk-dve5ehgr.js} +1 -1
  56. package/dist/{chunk-vgk5v31k.js → chunk-e31kcmmd.js} +1 -1
  57. package/dist/{chunk-gvm4dw6p.js → chunk-e4mj16za.js} +2 -2
  58. package/dist/chunk-e5s2b5z3.js +2 -0
  59. package/dist/{chunk-msjzqne1.js → chunk-es9ygzeh.js} +1 -1
  60. package/dist/{chunk-p7qqbw2k.js → chunk-ests3gcx.js} +2 -2
  61. package/dist/{chunk-jmnftb29.js → chunk-fc33v1qf.js} +2 -2
  62. package/dist/{chunk-q4se9rtw.js → chunk-fk1qyjdw.js} +1 -1
  63. package/dist/chunk-gdaq67k8.js +2 -0
  64. package/dist/{chunk-f6jm4hy3.js → chunk-gfvb1926.js} +1 -1
  65. package/dist/{chunk-9b82d4g5.js → chunk-gnmft4dz.js} +1 -1
  66. package/dist/{chunk-74gc1x9x.js → chunk-gzjnkskc.js} +2 -2
  67. package/dist/chunk-h8s4n9vj.js +2 -0
  68. package/dist/chunk-hdy6e3yf.js +2 -0
  69. package/dist/chunk-hkh1d5m5.js +18 -0
  70. package/dist/{chunk-53ajah3v.js → chunk-hnrtm6xb.js} +2 -2
  71. package/dist/chunk-hzg9r43r.js +2 -0
  72. package/dist/{chunk-zxb128xa.js → chunk-j0bcnfbq.js} +2 -2
  73. package/dist/chunk-jde8jz10.js +2 -0
  74. package/dist/chunk-jn7g22fd.js +2 -0
  75. package/dist/{chunk-hncp9gz6.js → chunk-jw93tsxz.js} +1 -1
  76. package/dist/{chunk-3twce5kp.js → chunk-jzavbzn8.js} +1 -1
  77. package/dist/{chunk-3wd9kfyz.js → chunk-k0cqdptr.js} +1 -1
  78. package/dist/{chunk-qd1nadff.js → chunk-khxs70kb.js} +2 -2
  79. package/dist/{chunk-8anh6d36.js → chunk-kqdrjd0e.js} +1 -1
  80. package/dist/{chunk-fvjh7rx0.js → chunk-kw311y8k.js} +1 -1
  81. package/dist/{chunk-zat2ndst.js → chunk-m3dcd2j3.js} +347 -347
  82. package/dist/{chunk-yckd6ks5.js → chunk-m9tpk603.js} +1 -1
  83. package/dist/{chunk-yf3bmmkk.js → chunk-mt7htpvg.js} +1 -1
  84. package/dist/{chunk-1nm2xrvq.js → chunk-n09vpazf.js} +1 -1
  85. package/dist/{chunk-dmb6t0qj.js → chunk-n98pfm3h.js} +2 -2
  86. package/dist/{chunk-6xg3j487.js → chunk-n98zvmdq.js} +1 -1
  87. package/dist/{chunk-khrtzbxd.js → chunk-p5ktexx3.js} +1 -1
  88. package/dist/{chunk-fvpaf9v5.js → chunk-p6dtgqeq.js} +2 -2
  89. package/dist/{chunk-yk1smsev.js → chunk-p9mx8rh4.js} +1 -1
  90. package/dist/{chunk-ne8sygmy.js → chunk-q98bqfzh.js} +1 -1
  91. package/dist/chunk-rr6scjzr.js +2 -0
  92. package/dist/{chunk-9xh78snm.js → chunk-s6yn1mbm.js} +1 -1
  93. package/dist/{chunk-1306tswx.js → chunk-sgncfrb3.js} +1 -1
  94. package/dist/chunk-t1fqr070.js +2 -0
  95. package/dist/{chunk-rg6v68ya.js → chunk-t9mf6ddw.js} +1 -1
  96. package/dist/{chunk-css1sfnr.js → chunk-ta43eqe0.js} +1 -1
  97. package/dist/{chunk-rczpw37w.js → chunk-tmfrweee.js} +1 -1
  98. package/dist/{chunk-j3njy10j.js → chunk-tpjekhep.js} +2 -2
  99. package/dist/chunk-tvcf5760.js +2 -0
  100. package/dist/chunk-tw2ydyww.js +4 -0
  101. package/dist/chunk-vcw2ft8z.js +2 -0
  102. package/dist/{chunk-p8pyqr7p.js → chunk-vdqbbqe2.js} +1 -1
  103. package/dist/chunk-vg9xvtqz.js +2 -0
  104. package/dist/{chunk-a2rj5ce0.js → chunk-vgtcj29n.js} +2 -2
  105. package/dist/chunk-vh7h37mn.js +2 -0
  106. package/dist/chunk-vhajz6q3.js +2 -0
  107. package/dist/{chunk-x13f5bbe.js → chunk-vhx0v4jv.js} +1 -1
  108. package/dist/{chunk-c7pvwvse.js → chunk-vswv49x0.js} +1 -1
  109. package/dist/{chunk-zj44h5kk.js → chunk-vwn8hkr2.js} +1 -1
  110. package/dist/{chunk-z2sp0k8d.js → chunk-vx8zk4yt.js} +1 -1
  111. package/dist/{chunk-aw9z3m10.js → chunk-wzjcw1h6.js} +1 -1
  112. package/dist/{chunk-tryt2h85.js → chunk-xdq4zkqk.js} +1 -1
  113. package/dist/{chunk-3fwn9edg.js → chunk-xvh1k1a4.js} +1 -1
  114. package/dist/chunk-y2j14rjd.js +2 -0
  115. package/dist/chunk-yd3rg2be.js +2 -0
  116. package/dist/{chunk-7zk48rd8.js → chunk-ynqc1gyr.js} +1 -1
  117. package/dist/{chunk-hyrjade7.js → chunk-z2gv9n8s.js} +1 -1
  118. package/dist/{chunk-trtm887x.js → chunk-z3cgw8j4.js} +1 -1
  119. package/dist/{chunk-whxregkn.js → chunk-zbww31ss.js} +1 -1
  120. package/dist/cli.js +14 -14
  121. package/dist/craft-entry.js +1 -1
  122. package/dist/craft.js +1 -1
  123. package/dist/database.js +1 -1
  124. package/dist/dev-server/serve-app.js +29 -7
  125. package/dist/page-response.d.ts +113 -0
  126. package/dist/page-response.js +106 -1
  127. package/dist/process.js +2 -0
  128. package/dist/production-server.js +7 -3
  129. package/dist/pwa.js +2 -2
  130. package/dist/render.d.ts +14 -0
  131. package/dist/render.js +3 -19
  132. package/dist/serve.js +19 -10
  133. package/dist/ssg.js +2 -2
  134. package/dist/template-compiler.d.ts +1 -0
  135. package/dist/template-compiler.js +2 -0
  136. package/dist/template-hydrator.d.ts +1 -1
  137. package/dist/template-hydrator.js +4 -3
  138. package/dist/variable-extractor.d.ts +1 -1
  139. package/dist/variable-extractor.js +6 -2
  140. package/dist/visual-testing.js +1 -1
  141. package/package.json +5 -5
  142. package/dist/chunk-10yft4b7.js +0 -2
  143. package/dist/chunk-17atrbv2.js +0 -2
  144. package/dist/chunk-23vxz3hp.js +0 -2
  145. package/dist/chunk-2me28xee.js +0 -2
  146. package/dist/chunk-2w5d5tw1.js +0 -2
  147. package/dist/chunk-2xeq5xnf.js +0 -2
  148. package/dist/chunk-2z6k7gsa.js +0 -2
  149. package/dist/chunk-3fxcwk6a.js +0 -2
  150. package/dist/chunk-4vwxgmg0.js +0 -2
  151. package/dist/chunk-5gr4vv7m.js +0 -2
  152. package/dist/chunk-775fabj4.js +0 -2
  153. package/dist/chunk-8cyv5316.js +0 -2
  154. package/dist/chunk-8xtvmwpr.js +0 -2
  155. package/dist/chunk-9db2f09j.js +0 -2
  156. package/dist/chunk-9h908knr.js +0 -2
  157. package/dist/chunk-a1ydhf5t.js +0 -3
  158. package/dist/chunk-ba18hn7n.js +0 -2
  159. package/dist/chunk-bd0yv6a0.js +0 -2
  160. package/dist/chunk-cr7s8q08.js +0 -2
  161. package/dist/chunk-d48tzd8c.js +0 -2
  162. package/dist/chunk-dcy8hg45.js +0 -2
  163. package/dist/chunk-e6377wfq.js +0 -4
  164. package/dist/chunk-jnjxf5t2.js +0 -2
  165. package/dist/chunk-n4smz31k.js +0 -18
  166. package/dist/chunk-njkv35c3.js +0 -2
  167. package/dist/chunk-q3ea7q6t.js +0 -2
  168. package/dist/chunk-qwzfdq8q.js +0 -2
  169. package/dist/chunk-r153ybwd.js +0 -2
  170. package/dist/chunk-tg0w29j1.js +0 -2
  171. package/dist/chunk-tqhwzjj7.js +0 -2
  172. package/dist/chunk-vgr8kykv.js +0 -2
  173. package/dist/chunk-w670sde5.js +0 -2
  174. package/dist/chunk-x9bsft57.js +0 -2
  175. package/dist/chunk-y05vd24g.js +0 -2
  176. package/dist/chunk-yrqnsd3a.js +0 -2
  177. package/dist/chunk-z0hkt5sk.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import k from"fs";import q from"path";var x="resources/assets",D="assets";function F(m=process.cwd()){let g=q.resolve(m,x);return k.existsSync(g)&&k.statSync(g).isDirectory()?g:null}
3
- export{x as yk,D as zk,F as Ak};
3
+ export{x as xk,D as yk,F as zk};
@@ -5,4 +5,4 @@ import Q from"fs";import U from"path";function W(H){let v=[],j=H.pwa;if(v.push({
5
5
  `);let J=["required","recommended","optional"];for(let L of J){let N=H.checks.filter((K)=>K.category===L);if(N.length===0)continue;v.push(`
6
6
  ${L.toUpperCase()}:`);for(let K of N){let T=K.passed?"\x1B[32m\u2713\x1B[0m":"\x1B[31m\u2717\x1B[0m";if(v.push(` ${T} ${K.name}: ${K.message}`),K.details)v.push(` ${K.details}`)}}return v.push(""),v.join(`
7
7
  `)}
8
- export{W as Bk,X as Ck,Y as Dk,A as Ek,B as Fk};
8
+ export{W as Ak,X as Bk,Y as Ck,A as Dk,B as Ek};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var j=["batch","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refresh","registerStoresClient","setRouteParams","state","untrack","useAsync","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebouncedValue","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useMutation","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useTimeout","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],X=["onMount","onDestroy"];function B(z="const",F=[],J){let Z=F.length?j.filter((Q)=>!F.includes(Q)):j;if(J!==void 0)Z=Z.filter((Q)=>{let $=Q.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${$}(?![\\w$])`).test(J)});return`${z} { ${Z.join(", ")} } = window.stx;`}var W=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"];var Y=j.filter((z)=>!W.includes(z));function V(z){if(!z)return!1;return Y.some((F)=>new RegExp(`\\b${F}\\s*(?:<[^>]*>)?\\s*\\(`).test(z))}var P=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],C=/\s@[a-z][\w.:-]*\s*=/i;function G(z){if(!z)return!1;let F=K(z);if(P.some((J)=>J.test(F)))return!0;return V(F)}function D(z){if(!z)return!1;return C.test(K(z))||G(z)}var f=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function H(z){return f.includes(z.toLowerCase())}var q=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],U=["x-init","x-transition","x-effect","x-on"],w=[...q,...U];function M(){return`{${q.map((z)=>`'${z}':1`).join(",")}}`}function K(z){if(!z)return z;let F=(J)=>J.replace(/(<[^>]*>)|([^<]+)/g,(Z,Q,$)=>Q??" ".repeat($.length));return z.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(J,Z,Q,$)=>Z+F(Q)+$).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(J,Z,Q,$)=>Z+F(Q)+$).replace(/<!--[\s\S]*?-->/g,(J)=>" ".repeat(J.length))}
3
- export{j as et,X as ft,B as gt,V as ht,G as it,D as jt,H as kt,w as lt,M as mt};
3
+ export{j as ot,X as pt,B as qt,V as rt,G as st,D as tt,H as ut,w as vt,M as wt};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{bl as _,cl as h}from"./chunk-zgvga8rc.js";import{Kl as g,Mr as p}from"./chunk-zat2ndst.js";import{Ms as N}from"./chunk-m2mhtpwy.js";import W from"path";import q from"fs";var l=5,u=1;function t(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function L(...J){if(t())console.log("[stx:bundler]",...J)}var D=[];function v(J,K,$){D.push({filePath:J||"<inline>",message:K,details:$})}function Yz(){return D.slice()}function Zz(){D.length=0}var F;function $z(J){F=J}function b(){if(F)return F;try{let J=p.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var f=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function wz(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let M=$[1];if(!f.some((z)=>z.test(M)))return L("detected user import:",M),!0}let Q=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=Q.exec(J))!==null){let M=$[1];if(/\.css(?:\?.*)?$/.test(M))continue;if(!f.some((z)=>z.test(M)))return L("detected side-effect import:",M),!0}return!1}function i(J,K,$,Q){let M=(Z,z)=>{let G=Z===$?K:W.dirname(Z),Y=W.resolve(G,z),H=[Y,`${Y}.ts`,`${Y}.tsx`,`${Y}.js`,`${Y}.mjs`,`${Y}.jsx`,W.join(Y,"index.ts"),W.join(Y,"index.tsx"),W.join(Y,"index.js"),W.join(Y,"index.mjs")];for(let j of H)try{if(q.existsSync(j)&&q.statSync(j,{throwIfNoEntry:!1})?.isFile())return j}catch{}return Y};return{name:"stx-client-bundle",setup(Z){Z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^\//},(z)=>{if(q.existsSync(z.path))return{path:z.path};return{path:z.path,external:!0}}),Z.onResolve({filter:/^\.\.?\//},(z)=>{let G=M(z.importer,z.path);return Q.add(G),{path:G}}),Z.onResolve({filter:/^[@~]\//},(z)=>{let G=W.resolve(J,z.path.slice(2)),Y=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,W.join(G,"index.ts"),W.join(G,"index.tsx"),W.join(G,"index.js"),W.join(G,"index.mjs")];for(let H of Y)if(q.existsSync(H)&&q.statSync(H,{throwIfNoEntry:!1})?.isFile())return L(`resolved ${z.path[0]}/ import:`,z.path,"\u2192",H),Q.add(H),{path:H};return console.warn(`[stx:bundler] could not resolve ${z.path[0]}/ import:`,z.path),{path:G}}),Z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(z)=>{let G=W.extname(z.path).toLowerCase(),Y=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(z.path!==$)Q.add(z.path);return{contents:q.readFileSync(z.path,"utf8"),loader:Y}})}}}var R=new Map,m=Symbol.for("stx.client-bundle-build-queue");function s(J){let K=globalThis,Q=(K[m]??Promise.resolve()).then(J,J);return K[m]=Q.then(()=>{return},()=>{return}),Q}async function Qz(J,K,$={}){let Q=$.projectRoot||process.cwd(),M=$.minify??!1,Z=$.cacheDir||N(Q,"bundle-cache"),z=new Bun.CryptoHasher("md5");z.update(`${l}\x00${J}\x00${K}`);let G=z.digest("hex").slice(0,12),Y=W.join(Z,`${G}.js`),H=W.join(Z,`${G}.deps.json`),j=Bun.file(Y);if(await j.exists()){let V=Bun.file(H),k=!0;if(await V.exists())try{let T=JSON.parse(await V.text());if(T.metadataVersion!==u||!Array.isArray(T.files))k=!1;for(let S of Array.isArray(T.files)?T.files:[])try{if(q.statSync(S.path).mtimeMs!==S.mtimeMs){k=!1;break}}catch{k=!1;break}}catch{k=!1}if(k)return L("cache hit:",G),await j.text();L("cache invalidated by dep change:",G)}let y=R.get(G);if(y)return await y;let x=s(()=>a(J,K,{projectRoot:Q,minify:M,cacheDir:Z,hash:G,cachePath:Y,depsPath:H}));R.set(G,x);try{return await x}finally{R.delete(G)}}async function a(J,K,$){let{projectRoot:Q,minify:M,cacheDir:Z,hash:z,cachePath:G,depsPath:Y}=$,H=N(Q,"bundle-tmp"),j=W.join(H,`${z}.ts`),y=W.join(H,"out",z);q.mkdirSync(H,{recursive:!0}),q.mkdirSync(y,{recursive:!0});let x=W.dirname(K),V=[],k=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,T=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,S;while((S=k.exec(J))!==null){if(S[1])continue;if(S[2])S[2].split(",").forEach((I)=>{let X=I.split(":")[0].trim();if(X)V.push(X)});else if(S[3])V.push(S[3])}while((S=T.exec(J))!==null){if(S[1])continue;V.push(S[2])}let B=V.length>0?`
2
+ import{al as _,bl as h}from"./chunk-ap23bgyb.js";import{Jl as g,Wr as p}from"./chunk-m3dcd2j3.js";import{Ws as N}from"./chunk-cnkex10g.js";import W from"path";import q from"fs";var l=5,u=1;function t(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function L(...J){if(t())console.log("[stx:bundler]",...J)}var D=[];function v(J,K,$){D.push({filePath:J||"<inline>",message:K,details:$})}function Yz(){return D.slice()}function Zz(){D.length=0}var F;function $z(J){F=J}function b(){if(F)return F;try{let J=p.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var f=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function wz(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let M=$[1];if(!f.some((z)=>z.test(M)))return L("detected user import:",M),!0}let Q=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=Q.exec(J))!==null){let M=$[1];if(/\.css(?:\?.*)?$/.test(M))continue;if(!f.some((z)=>z.test(M)))return L("detected side-effect import:",M),!0}return!1}function i(J,K,$,Q){let M=(Z,z)=>{let G=Z===$?K:W.dirname(Z),Y=W.resolve(G,z),H=[Y,`${Y}.ts`,`${Y}.tsx`,`${Y}.js`,`${Y}.mjs`,`${Y}.jsx`,W.join(Y,"index.ts"),W.join(Y,"index.tsx"),W.join(Y,"index.js"),W.join(Y,"index.mjs")];for(let j of H)try{if(q.existsSync(j)&&q.statSync(j,{throwIfNoEntry:!1})?.isFile())return j}catch{}return Y};return{name:"stx-client-bundle",setup(Z){Z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^\//},(z)=>{if(q.existsSync(z.path))return{path:z.path};return{path:z.path,external:!0}}),Z.onResolve({filter:/^\.\.?\//},(z)=>{let G=M(z.importer,z.path);return Q.add(G),{path:G}}),Z.onResolve({filter:/^[@~]\//},(z)=>{let G=W.resolve(J,z.path.slice(2)),Y=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,W.join(G,"index.ts"),W.join(G,"index.tsx"),W.join(G,"index.js"),W.join(G,"index.mjs")];for(let H of Y)if(q.existsSync(H)&&q.statSync(H,{throwIfNoEntry:!1})?.isFile())return L(`resolved ${z.path[0]}/ import:`,z.path,"\u2192",H),Q.add(H),{path:H};return console.warn(`[stx:bundler] could not resolve ${z.path[0]}/ import:`,z.path),{path:G}}),Z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(z)=>{let G=W.extname(z.path).toLowerCase(),Y=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(z.path!==$)Q.add(z.path);return{contents:q.readFileSync(z.path,"utf8"),loader:Y}})}}}var R=new Map,m=Symbol.for("stx.client-bundle-build-queue");function s(J){let K=globalThis,Q=(K[m]??Promise.resolve()).then(J,J);return K[m]=Q.then(()=>{return},()=>{return}),Q}async function Qz(J,K,$={}){let Q=$.projectRoot||process.cwd(),M=$.minify??!1,Z=$.cacheDir||N(Q,"bundle-cache"),z=new Bun.CryptoHasher("md5");z.update(`${l}\x00${J}\x00${K}`);let G=z.digest("hex").slice(0,12),Y=W.join(Z,`${G}.js`),H=W.join(Z,`${G}.deps.json`),j=Bun.file(Y);if(await j.exists()){let V=Bun.file(H),k=!0;if(await V.exists())try{let T=JSON.parse(await V.text());if(T.metadataVersion!==u||!Array.isArray(T.files))k=!1;for(let S of Array.isArray(T.files)?T.files:[])try{if(q.statSync(S.path).mtimeMs!==S.mtimeMs){k=!1;break}}catch{k=!1;break}}catch{k=!1}if(k)return L("cache hit:",G),await j.text();L("cache invalidated by dep change:",G)}let y=R.get(G);if(y)return await y;let x=s(()=>a(J,K,{projectRoot:Q,minify:M,cacheDir:Z,hash:G,cachePath:Y,depsPath:H}));R.set(G,x);try{return await x}finally{R.delete(G)}}async function a(J,K,$){let{projectRoot:Q,minify:M,cacheDir:Z,hash:z,cachePath:G,depsPath:Y}=$,H=N(Q,"bundle-tmp"),j=W.join(H,`${z}.ts`),y=W.join(H,"out",z);q.mkdirSync(H,{recursive:!0}),q.mkdirSync(y,{recursive:!0});let x=W.dirname(K),V=[],k=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,T=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,S;while((S=k.exec(J))!==null){if(S[1])continue;if(S[2])S[2].split(",").forEach((I)=>{let X=I.split(":")[0].trim();if(X)V.push(X)});else if(S[3])V.push(S[3])}while((S=T.exec(J))!==null){if(S[1])continue;V.push(S[2])}let B=V.length>0?`
3
3
  export { ${V.join(", ")} }`:"";await Bun.write(j,J+B),L("bundling:",z,"from:",W.basename(K));let P=new Set;try{let I=await Bun.build({entrypoints:[j],outdir:y,target:"browser",format:"esm",minify:M,plugins:[i(Q,x,j,P)],define:{"process.env.NODE_ENV":M?'"production"':'"development"',...g()},root:Q});if(!I.success){let U=I.logs.filter((C)=>C.level==="error").map((C)=>C.message).join(", ")||`Unable to bundle ${W.basename(K)}`,A=_(I.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",U),v(K||"",U,A),b()==="error")throw Error(U);return J}let X="";for(let w of I.outputs){X=await w.text();break}let O=[];for(let w of X.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let U of w[1].split(",")){let A=U.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(A){O.push([A[2],A[1]]);continue}let C=U.trim();if(/^[A-Za-z_$][\w$]*$/.test(C))O.push([C,C])}let c=X.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];X=X.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let E=`__stxBundle_${z}`,n=O.map(([w,U])=>`${JSON.stringify(w)}: ${U}`).join(", "),o=O.map(([w])=>`var ${w} = undefined;`).join(`
4
4
  `),r=O.map(([w])=>`${w} = ${E}[${JSON.stringify(w)}];`).join(`
5
5
  `);if(X=`${c.join(`
@@ -10,4 +10,4 @@ ${X}
10
10
  return { ${n} };
11
11
  })();
12
12
  ${r}`.trim(),L("bundled:",z,"output:",X.length,"bytes"),V.length>0&&O.length===0)return console.warn(`[stx:bundler] dropped every binding for ${W.basename(K)} (${z}); serving the unbundled source and not caching this result`),J;q.mkdirSync(Z,{recursive:!0}),await Bun.write(G,X);let d=Array.from(P).map((w)=>{try{return{path:w,mtimeMs:q.statSync(w).mtimeMs}}catch{return null}}).filter((w)=>w!==null);return await Bun.write(Y,JSON.stringify({metadataVersion:u,files:d})),X}catch(I){let X=_(I,K||void 0),O=h(I,K||void 0);if(console.warn(`[stx:bundler] error: ${O}`),v(K||"",O,X),b()==="error")throw I;return J}finally{try{q.rmSync(j,{force:!0}),q.rmSync(y,{recursive:!0,force:!0})}catch{}}}
13
- export{t as Uk,v as Vk,Yz as Wk,Zz as Xk,$z as Yk,b as Zk,wz as _k,s as $k,Qz as al};
13
+ export{t as Tk,v as Uk,Yz as Vk,Zz as Wk,$z as Xk,b as Yk,wz as Zk,s as _k,Qz as $k};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  var K={},Y=[],O={};function I(){return K}function h(){return O}function D(){K={},Y.length=0,O={}}function U(j){K=Q(K,j)}function Q(j,z){return{title:z.title??j.title,titleTemplate:z.titleTemplate??j.titleTemplate,base:z.base??j.base,meta:[...j.meta||[],...z.meta||[]],link:[...j.link||[],...z.link||[]],script:[...j.script||[],...z.script||[]],style:[...j.style||[],...z.style||[]],htmlAttrs:{...j.htmlAttrs,...z.htmlAttrs},bodyAttrs:{...j.bodyAttrs,...z.bodyAttrs}}}function Z(j){U(_(j))}function _(j){let z=[];if(j.description)z.push({name:"description",content:j.description});if(j.keywords){let L=Array.isArray(j.keywords)?j.keywords.join(", "):j.keywords;z.push({name:"keywords",content:L})}if(j.author)z.push({name:"author",content:j.author});if(j.robots)z.push({name:"robots",content:j.robots});let A=j.ogTitle??j.title,B=j.ogDescription??j.description;if(A)z.push({property:"og:title",content:A});if(B)z.push({property:"og:description",content:B});if(j.ogImage)z.push({property:"og:image",content:j.ogImage});if(j.ogUrl)z.push({property:"og:url",content:j.ogUrl});if(j.ogType)z.push({property:"og:type",content:j.ogType});if(j.ogSiteName)z.push({property:"og:site_name",content:j.ogSiteName});if(j.ogLocale)z.push({property:"og:locale",content:j.ogLocale});let E=j.twitterTitle??j.title,F=j.twitterDescription??j.description,J=j.twitterImage??j.ogImage;if(j.twitterCard)z.push({name:"twitter:card",content:j.twitterCard});if(E)z.push({name:"twitter:title",content:E});if(F)z.push({name:"twitter:description",content:F});if(J)z.push({name:"twitter:image",content:J});if(j.twitterSite)z.push({name:"twitter:site",content:j.twitterSite});if(j.twitterCreator)z.push({name:"twitter:creator",content:j.twitterCreator});if(j.articleAuthor)z.push({property:"article:author",content:j.articleAuthor});if(j.articlePublishedTime)z.push({property:"article:published_time",content:j.articlePublishedTime});if(j.articleModifiedTime)z.push({property:"article:modified_time",content:j.articleModifiedTime});if(j.articleSection)z.push({property:"article:section",content:j.articleSection});if(j.articleTags)for(let L of j.articleTags)z.push({property:"article:tag",content:L});let G=[];if(j.canonical)G.push({rel:"canonical",href:j.canonical});return{title:j.title,titleTemplate:j.titleTemplate,meta:z,link:G}}function S(j){if(O={...O,...j},j.title||j.description)Z({title:j.title,description:j.description})}function P(j){let z=typeof j==="function"?j():j;U({title:z})}function C(j=K){let z=[];if(j.title){let A=j.title;if(j.titleTemplate)A=typeof j.titleTemplate==="function"?j.titleTemplate(A):j.titleTemplate.replace("%s",A);z.push(`<title>${N(A)}</title>`)}if(j.base){let A=Object.entries(j.base).map(([B,E])=>`${B}="${N(E)}"`).join(" ");z.push(`<base ${A}>`)}for(let A of j.meta||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>{return`${E==="httpEquiv"?"http-equiv":E}="${N(String(F))}"`}).join(" ");z.push(`<meta ${B}>`)}for(let A of j.link||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>`${E}="${N(String(F))}"`).join(" ");z.push(`<link ${B}>`)}for(let A of j.script||[]){let{content:B,...E}=A,F=Object.entries(E).filter(([J,G])=>G!==void 0).map(([J,G])=>{if(typeof G==="boolean")return G?J:"";return`${J}="${N(String(G))}"`}).filter(Boolean).join(" ");if(B)z.push(`<script ${F}>${B}</script>`);else z.push(`<script ${F}></script>`)}for(let A of j.style||[]){let B=A.type?` type="${A.type}"`:"";z.push(`<style${B}>${A.content}</style>`)}return z.join(`
3
3
  `)}function M(j=K){if(!j.htmlAttrs)return"";return Object.entries(j.htmlAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function V(j=K){if(!j.bodyAttrs)return"";return Object.entries(j.bodyAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function N(j){return j.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function w(j=K){if(typeof document>"u")return;if(j.title){let z=j.title;if(j.titleTemplate)z=typeof j.titleTemplate==="function"?j.titleTemplate(z):j.titleTemplate.replace("%s",z);document.title=z}for(let z of j.meta||[]){let A=z.name?`meta[name="${z.name}"]`:z.property?`meta[property="${z.property}"]`:null;if(A){let B=document.querySelector(A);if(!B){if(B=document.createElement("meta"),z.name)B.setAttribute("name",z.name);if(z.property)B.setAttribute("property",z.property);document.head.appendChild(B)}B.setAttribute("content",z.content)}}for(let z of j.link||[]){let A=`link[rel="${z.rel}"]${z.href?`[href="${z.href}"]`:""}`,B=document.querySelector(A);if(!B)B=document.createElement("link"),document.head.appendChild(B);for(let[E,F]of Object.entries(z))if(F!==void 0)B.setAttribute(E,String(F))}if(j.htmlAttrs)for(let[z,A]of Object.entries(j.htmlAttrs))if(z==="class")for(let B of String(A).split(/\s+/).filter(Boolean))document.documentElement.classList.add(B);else document.documentElement.setAttribute(z,A);if(j.bodyAttrs)for(let[z,A]of Object.entries(j.bodyAttrs))document.body.setAttribute(z,A)}function y(j){let z="";return{content:j.replace(/@head\s*([\s\S]*?)@endhead/g,(B,E)=>{return z+=E.trim()+`
4
- `,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let J=B?E:z[(F||"").trim()]??F,G=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(G,{title:J}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,J,G)=>{let L=F?J:G,R=F?L:z[(L||"").trim()]??L,W=E.includes(":")?{property:E,content:R}:{name:E,content:R},X=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(X,{meta:[W]}),""})}export{I as Os,h as Ps,D as Qs,U as Rs,Q as Ss,Z as Ts,_ as Us,S as Vs,P as Ws,C as Xs,M as Ys,V as Zs,w as _s,y as $s,x as at,T as bt};
4
+ `,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let J=B?E:z[(F||"").trim()]??F,G=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(G,{title:J}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,J,G)=>{let L=F?J:G,R=F?L:z[(L||"").trim()]??L,W=E.includes(":")?{property:E,content:R}:{name:E,content:R},X=z.__stx_runtime_head??{};return z.__stx_runtime_head=Q(X,{meta:[W]}),""})}export{I as Ys,h as Zs,D as _s,U as $s,Q as at,Z as bt,_ as ct,S as dt,P as et,C as ft,M as gt,V as ht,w as it,y as jt,x as kt,T as lt};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
3
- export{X as fs,$ as gs};
3
+ export{X as ps,$ as qs};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{mq as X,qm as W}from"./chunk-zat2ndst.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
2
+ import{pm as W,wq as X}from"./chunk-m3dcd2j3.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
3
3
  ${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
4
4
  `)}else{console.log(`
5
5
  ${j.bold}Available Commands:${j.reset}
@@ -21,4 +21,4 @@ ${j.bold}${j.blue}stx Interactive Mode${j.reset}
21
21
  ${j.dim}Type 'help' for available commands, 'exit' to quit${j.reset}
22
22
  `);let B=()=>{let G=z.cwd.replace(process.env.HOME||"","~");A.question(`${j.cyan}stx${j.reset} ${j.dim}${G}${j.reset} ${j.green}>${j.reset} `,async(I)=>{let K=I.trim();if(!K){if(z.running)B();return}z.history.push(K);let L=K.match(/(?:[^\s"]|"[^"]*")+/g)||[],J=L[0]?.toLowerCase(),O=L.slice(1).map((U)=>U.replace(/^"|"$/g,""));if(J&&Q[J])try{await Q[J].handler(O,z)}catch(U){console.log(`${j.red}Error:${j.reset}`,U)}else if(J)if(K.includes("{{")||K.includes("}}"))try{let U=await W(K,z.context,"eval");console.log(`${j.green}\u2192${j.reset} ${U}`)}catch{console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`)}else console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`);if(z.running)B();else A.close()})};A.on("SIGINT",()=>{console.log(`
23
23
  ${j.dim}(Use 'exit' to quit)${j.reset}`),B()}),B()}
24
- export{R as ef};
24
+ export{R as df};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{iu as v}from"./chunk-trtm887x.js";function D4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function zZ(){return typeof window<"u"&&typeof document<"u"}async function M4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var y=new Map;function T4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function _4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function N4(Z="top-right"){if(!zZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function E4(Z){let{options:Y}=Z,$=_4(Y.type),J=Y.type||"info",G=Y.duration!==0;return`
2
+ import{su as v}from"./chunk-z3cgw8j4.js";function D4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function zZ(){return typeof window<"u"&&typeof document<"u"}async function M4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var y=new Map;function T4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function _4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function N4(Z="top-right"){if(!zZ())throw Error("Toast container requires browser environment");try{let $=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if($)return $}catch{}let Y=document.createElement("div");Y.className=`stx-toast-container ${Z}`,Y.dataset.position=Z;try{if(document.body)document.body.appendChild(Y)}catch{}return Y}function E4(Z){let{options:Y}=Z,$=_4(Y.type),J=Y.type||"info",G=Y.duration!==0;return`
3
3
  <div class="stx-toast ${J}" data-alert-id="${Z.id}" role="alert" aria-live="polite">
4
4
  <div class="stx-toast-icon">${$}</div>
5
5
  <div class="stx-toast-content">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{dj as a,ej as b,fj as c,gj as d,hj as e,ij as f}from"./chunk-hyrjade7.js";import"./chunk-trtm887x.js";export{c as processTransitionDirectives,f as processTransitionAttributes,b as performLeave,a as performEnter,e as generateTransitionRuntime,d as generateTransitionCSS};
2
+ import{cj as a,dj as b,ej as c,fj as d,gj as e,hj as f}from"./chunk-z2gv9n8s.js";import"./chunk-z3cgw8j4.js";export{c as processTransitionDirectives,f as processTransitionAttributes,b as performLeave,a as performEnter,e as generateTransitionRuntime,d as generateTransitionCSS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Sf as a,Tf as b}from"./chunk-6v2pfq30.js";import"./chunk-vgtcj29n.js";import"./chunk-z3cgw8j4.js";export{a as handleImageRequest,b as createImageHandler};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var{WebView:F}=globalThis.Bun;import{existsSync as V,mkdirSync as k,readdirSync as O,statSync as E}from"fs";import $ from"path";var C=16384;function X(j){if(/^https?:\/\//.test(j)||j.startsWith("file://"))return j;return`file://${$.resolve(j)}`}function K(j,B,z,L){return new Promise((Q)=>{let J=!1,G,Y,R=()=>{if(!J){if(J=!0,clearTimeout(Y),G)clearTimeout(G);j.onNavigated=void 0,Q()}};Y=setTimeout(R,L),j.onNavigated=()=>{if(!J)G=setTimeout(R,z)};try{let Z=j.navigate(B);if(Z&&typeof Z.catch==="function")Z.catch(R)}catch{R()}})}async function U(j,B,z){let L=`!!document.querySelector(${JSON.stringify(B)})`,Q=Date.now()+z;while(Date.now()<Q){try{if(await j.evaluate(L))return}catch{}await new Promise((J)=>setTimeout(J,100))}}async function _(j){try{let B=await j.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof B==="number"&&Number.isFinite(B)&&B>0?Math.min(B,C):0}catch{return 0}}async function x(j,B,z={}){let L=Math.min(z.width??1440,C),Q=Math.min(z.height??2200,C),J=z.waitMs??800,G=z.timeoutMs??15000,Y=z.format??"png",R=X(j),Z=(q)=>new F({width:L,height:q,headless:!0,...z.backend?{backend:z.backend}:{}}),P=Z(Q);try{if(await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G);if(z.fullPage){let H=await _(P);if(H>Q){if(P.close(),P=Z(H),await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G)}}let q=await P.screenshot({encoding:"buffer",format:Y});k($.dirname($.resolve(B)),{recursive:!0}),await Bun.write(B,q)}finally{P.close()}if(!V(B))throw Error(`Screenshot was not produced for ${j}`);return{input:j,output:B,bytes:E(B).size}}async function W(j,B,z={}){k(B,{recursive:!0});let L;if(!/^https?:\/\//.test(j)&&V(j)&&E(j).isDirectory())L=O(j).filter((G)=>G.endsWith(".html")).map((G)=>$.join(j,G));else L=[j];let Q=z.format??"png",J=[];for(let G of L){let Y=/^https?:\/\//.test(G)?new URL(G).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":$.basename(G).replace(/\.html?$/,"");J.push(await x(G,$.join(B,`${Y}.${Q}`),z))}return J}
3
- export{x as cf,W as df};
3
+ export{x as bf,W as cf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Yr as Q}from"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import{Ms as R}from"./chunk-m2mhtpwy.js";import"./chunk-trtm887x.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
2
+ import{gs as Q}from"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import{Ws as R}from"./chunk-cnkex10g.js";import"./chunk-z3cgw8j4.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
3
3
  `)}async function S(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}export{A as updateSnapshots,W as runVisualTests,S as runA11yTests,I as formatTestResults};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{wg as a}from"./chunk-tw2ydyww.js";import"./chunk-ests3gcx.js";import"./chunk-khxs70kb.js";import"./chunk-tpjekhep.js";import"./chunk-dve5ehgr.js";import"./chunk-m9tpk603.js";import"./chunk-m3dcd2j3.js";import"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import"./chunk-kqdrjd0e.js";import"./chunk-xvh1k1a4.js";import"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{a as buildForProduction};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$s as n,Os as a,Ps as b,Qs as c,Rs as d,Ss as e,Ts as f,Us as g,Vs as h,Ws as i,Xs as j,Ys as k,Zs as l,_s as m,at as o,bt as p}from"./chunk-6xg3j487.js";import"./chunk-trtm887x.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
2
+ import{$s as d,Ys as a,Zs as b,_s as c,at as e,bt as f,ct as g,dt as h,et as i,ft as j,gt as k,ht as l,it as m,jt as n,kt as o,lt as p}from"./chunk-n98zvmdq.js";import"./chunk-z3cgw8j4.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{As as f,Bs as g,Cs as h,Ds as i,Es as j,Fs as k,Gs as l,Hs as m,vs as a,ws as b,xs as c,ys as d,zs as e}from"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-trtm887x.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
2
+ import{Fs as a,Gs as b,Hs as c,Is as d,Js as e,Ks as f,Ls as g,Ms as h,Ns as i,Os as j,Ps as k,Qs as l,Rs as m}from"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-z3cgw8j4.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Vh as a,Wh as b,Xh as c,Yh as d,Zh as e}from"./chunk-x13f5bbe.js";import"./chunk-trtm887x.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
2
+ import{Uh as a,Vh as b,Wh as c,Xh as d,Yh as e}from"./chunk-vhx0v4jv.js";import"./chunk-z3cgw8j4.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Fj as K,Gj as N,Hj as O,Ij as P,Jj as Q,Kj as T,Oj as U,Pj as V,Qj as W,Rj as Y}from"./chunk-3es366z4.js";import{mt as J}from"./chunk-1nm2xrvq.js";function $(){let w=q(Z());try{let z=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(w);return z=z.replace(/\}(var |let |const |function )/g,"};$1"),z}catch{return w}}function q(w){let E=[],z=0,I="console.log(";while(z<w.length){let F=w.indexOf(I,z);if(F===-1){E.push(w.slice(z));break}E.push(w.slice(z,F));let G=1,x=F+I.length;while(x<w.length&&G>0){let B=w[x];if(B==='"'||B==="'"||B==="`"){let _=B;x++;while(x<w.length&&w[x]!==_){if(w[x]==="\\")x++;x++}x++;continue}if(B==="(")G++;else if(B===")")G--;x++}E.push("0"),z=x}return E.join("")}function Z(){return`
2
+ import{Ej as K,Fj as N,Gj as O,Hj as P,Ij as Q,Jj as T,Nj as U,Oj as V,Pj as W,Qj as Y}from"./chunk-dve5ehgr.js";import{wt as J}from"./chunk-n09vpazf.js";function $(){let w=q(Z());try{let z=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(w);return z=z.replace(/\}(var |let |const |function )/g,"};$1"),z}catch{return w}}function q(w){let E=[],z=0,I="console.log(";while(z<w.length){let F=w.indexOf(I,z);if(F===-1){E.push(w.slice(z));break}E.push(w.slice(z,F));let G=1,x=F+I.length;while(x<w.length&&G>0){let B=w[x];if(B==='"'||B==="'"||B==="`"){let _=B;x++;while(x<w.length&&w[x]!==_){if(w[x]==="\\")x++;x++}x++;continue}if(B==="(")G++;else if(B===")")G--;x++}E.push("0"),z=x}return E.join("")}function Z(){return`
3
3
  // STX Signals Runtime (Development Build)
4
4
  console.log('[stx] signals runtime loading');
5
5
  // Pre-initialization shim: capture onMount/onDestroy calls made before the runtime IIFE runs
@@ -7995,4 +7995,4 @@ catch (e) { console.warn('[stx] destroy callback error:', e); }
7995
7995
  }
7996
7996
  })();
7997
7997
  `}var C={state:K,derived:N,effect:O,batch:P,onMount:Q,onDestroy:T,isSignal:U,isDerived:V,untrack:W,peek:Y,generateSignalsRuntime:$,generateSignalsRuntimeDev:Z};
7998
- export{$ as xj,Z as yj,C as zj};
7998
+ export{$ as wj,Z as xj,C as yj};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{aj as a,bj as b}from"./chunk-1t7cy4zb.js";import"./chunk-z3cgw8j4.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ import{Bg as p}from"./chunk-ests3gcx.js";import{Ng as a,Pg as JF,Qg as ZF,Rg as qF}from"./chunk-khxs70kb.js";import{wj as C,xj as D}from"./chunk-tpjekhep.js";import{xk as QF,yk as XF,zk as YF}from"./chunk-m9tpk603.js";import{Fm as u,Kp as o,Tr as n,Vr as N,Yl as l,Yp as e,_l as d,dq as t,eq as FF,wq as c}from"./chunk-m3dcd2j3.js";import{Rs as r}from"./chunk-9tmcj4y7.js";import{gu as S,iu as WF}from"./chunk-0kj7rses.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=FF(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=t(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=o(F.html,W);if(k.htmlAttrs)F.html=e(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
3
+ [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
+ export{g as rg,f as sg,m as tg,UF as ug,i as vg,lF as wg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{bp as a,cp as b}from"./chunk-m3dcd2j3.js";import"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import"./chunk-kqdrjd0e.js";import"./chunk-xvh1k1a4.js";import"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{b as processLoops,a as parseLoopBinding};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$f as g,Vf as a,Wf as b,Xf as c,Yf as d,Zf as e,_f as f,ag as h}from"./chunk-9b82d4g5.js";import"./chunk-trtm887x.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
2
+ import{$f as h,Uf as a,Vf as b,Wf as c,Xf as d,Yf as e,Zf as f,_f as g}from"./chunk-gnmft4dz.js";import"./chunk-z3cgw8j4.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{em as a,fm as b,gm as c,hm as d,im as e,jm as f,km as g,lm as h,mm as i,nm as j,om as k,pm as l,qm as m,rm as n,sm as o}from"./chunk-m3dcd2j3.js";import"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import"./chunk-kqdrjd0e.js";import"./chunk-xvh1k1a4.js";import"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{iu as l}from"./chunk-trtm887x.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
3
- export{d as bg,h as cg,b as dg,e as eg,t as fg,JJ as gg,O as hg,n as ig,KJ as jg,ZJ as kg,$J as lg,qJ as mg,CJ as ng,QJ as og,VJ as pg,XJ as qg,L as rg};
2
+ import{su as l}from"./chunk-z3cgw8j4.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
3
+ export{d as ag,h as bg,b as cg,e as dg,t as eg,JJ as fg,O as gg,n as hg,KJ as ig,ZJ as jg,$J as kg,qJ as lg,CJ as mg,QJ as ng,VJ as og,XJ as pg,L as qg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$o as i,To as a,Uo as b,Vo as c,Wo as d,Xo as e,Yo as f,Zo as g,_o as h,ap as j}from"./chunk-m3dcd2j3.js";import"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import"./chunk-kqdrjd0e.js";import"./chunk-xvh1k1a4.js";import"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as Rk,$a as Dm,$b as Vn,$c as Wo,$d as Wp,A as Bj,Aa as Ol,Ab as on,Ac as vo,Ad as vp,Ae as Bq,B as Cj,Ba as Pl,Bb as pn,Bc as wo,Bd as wp,Be as Cq,C as Dj,Ca as am,Cb as qn,Cc as xo,Cd as xp,Ce as Dq,D as Ej,Da as bm,Db as rn,Dc as yo,Dd as yp,De as Eq,E as uk,Ea as cm,Eb as sn,Ec as zo,Ed as zp,Ee as Fq,F as vk,Fa as dm,Fb as tn,Fc as Ao,Fd as Ap,Fe as Gq,G as wk,Ga as em,Gb as un,Gc as Bo,Gd as Bp,Ge as Hq,H as xk,Ha as im,Hb as vn,Hc as Co,Hd as Cp,He as Iq,I as yk,Ia as jm,Ib as wn,Ic as Do,Id as Dp,Ie as Jq,J as zk,Ja as km,Jb as xn,Jc as Eo,Jd as Ep,Je as Kq,K as Ak,Ka as lm,Kb as yn,Kc as Fo,Kd as Fp,Ke as Lq,L as Bk,La as mm,Lb as zn,Lc as Go,Ld as Gp,Le as Mq,M as Ck,Ma as nm,Mb as An,Mc as Ho,Md as Hp,Me as Nq,N as Dk,Na as om,Nb as Hn,Nc as Io,Nd as Ip,Ne as Oq,O as Ek,Oa as pm,Ob as In,Oc as Jo,Od as Jp,Oe as Pq,P as Fk,Pa as qm,Pb as Jn,Pc as Ko,Pd as Kp,Pe as Qq,Q as Gk,Qa as rm,Qb as Kn,Qc as Lo,Qd as Lp,Qe as Rq,R as Hk,Ra as sm,Rb as Ln,Rc as Mo,Rd as Mp,Re as Sq,S as Ik,Sa as tm,Sb as Mn,Sc as No,Sd as Np,Se as Tq,T as Jk,Ta as um,Tb as Nn,Tc as Oo,Td as Op,Te as Uq,U as Kk,Ua as vm,Ub as On,Uc as Po,Ud as Pp,Ue as Vq,V as Lk,Va as wm,Vb as Pn,Vc as Qo,Vd as Qp,Ve as Wq,W as Mk,Wa as xm,Wb as Qn,Wc as Ro,Wd as Rp,We as Xq,X as Nk,Xa as zm,Xb as Rn,Xc as So,Xd as Sp,Y as Ok,Ya as Am,Yb as Sn,Yc as To,Yd as Tp,Z as Pk,Za as Bm,Zb as Tn,Zc as Uo,Zd as Up,_ as Qk,_a as Cm,_b as Un,_c as Vo,_d as Vp,aa as Sk,ab as Em,ac as Wn,ad as Xo,ae as Xp,ba as Tk,bb as Fm,bc as Xn,bd as Yo,be as Yp,ca as Uk,cb as Gm,cc as Yn,cd as Zo,ce as Zp,da as Vk,db as Hm,dc as Zn,dd as _o,de as _p,ea as Wk,eb as Im,ec as _n,ed as $o,ee as $p,fa as Xk,fb as Jm,fc as $n,fd as ap,fe as aq,ga as Yk,gb as Km,gc as ao,gd as bp,ge as bq,ha as Zk,hb as Lm,hc as bo,hd as cp,he as cq,ia as _k,ib as Mm,ic as co,id as dp,ie as dq,ja as $k,jb as Nm,jc as eo,jd as ep,je as eq,ka as al,kb as Om,kc as fo,kd as fp,ke as fq,la as bl,lb as Pm,lc as go,ld as gp,le as gq,ma as cl,mb as Qm,mc as ho,md as hp,me as hq,na as dl,nb as Rm,nc as io,nd as ip,ne as iq,o as a,oa as el,ob as Um,oc as jo,od as jp,oe as pq,p as mj,pa as Dl,pb as Vm,pc as ko,pd as kp,pe as qq,q as nj,qa as El,qb as Wm,qc as lo,qd as lp,qe as rq,r as oj,ra as Fl,rb as Xm,rc as mo,rd as mp,re as sq,s as pj,sa as Gl,sb as bn,sc as no,sd as np,se as tq,t as qj,ta as Hl,tb as cn,tc as oo,td as op,te as uq,u as rj,ua as Il,ub as dn,uc as po,ud as pp,ue as vq,v as sj,va as Jl,vb as en,vc as qo,vd as qp,ve as wq,w as tj,wa as Kl,wb as kn,wc as ro,wd as rp,we as xq,x as uj,xa as Ll,xb as ln,xc as so,xd as sp,xe as yq,y as zj,ya as Ml,yb as mn,yc as to,yd as tp,ye as zq,z as Aj,za as Nl,zb as nn,zc as uo,zd as up,ze as Aq}from"./chunk-27crt28c.js";import{$e as Fn,Xe as Bn,Ye as Cn,Ze as Dn,_e as En,af as Gn}from"./chunk-29y9cskh.js";import{bf as Sm,cf as Tm}from"./chunk-s6yn1mbm.js";import{df as Ym}from"./chunk-p6dtgqeq.js";import{ef as Cl}from"./chunk-9k6890an.js";import{ff as fm,gf as gm,hf as hm,if as ym,jf as Zm,kf as _m,lf as $m,mf as an,nf as fn,of as gn,pf as hn,qf as jn}from"./chunk-395dm3a0.js";import{Af as Oj,Bf as Pj,Cf as Qj,Df as Rj,Ef as Sj,Ff as Tj,rf as Fj,sf as Gj,tf as Hj,uf as Ij,vf as Jj,wf as Kj,xf as Lj,yf as Mj,zf as Nj}from"./chunk-bx766t25.js";import{Gf as ik,Hf as jk,If as kk,Jf as lk,Kf as mk,Lf as nk,Mf as ok,Nf as pk,Of as qk,Pf as rk,Qf as sk,Rf as tk}from"./chunk-j0bcnfbq.js";import{Sf as gk,Tf as hk}from"./chunk-6v2pfq30.js";import{Uf as bj,Wf as cj}from"./chunk-gnmft4dz.js";import{ag as Uj,bg as Vj,cg as Wj,dg as Xj,eg as Yj,fg as Zj,gg as _j,ig as $j,jg as ak,kg as bk,lg as ck,mg as dk,ng as ek,qg as fk}from"./chunk-vgtcj29n.js";import{rg as rl,sg as sl,tg as tl,ug as ul,vg as xl,wg as Bl}from"./chunk-tw2ydyww.js";import{Ag as wl,xg as vl}from"./chunk-ests3gcx.js";import{Ig as fl,Jg as gl,Kg as hl,Lg as il,Mg as jl,Ng as kl,Og as ll,Pg as ml,Qg as yl,Rg as zl,Sg as Al}from"./chunk-khxs70kb.js";import{$g as Yl,Tg as Ql,Ug as Rl,Vg as Sl,Wg as Tl,Xg as Ul,Yg as Vl,Zg as Wl,_g as Xl,ah as Zl,bh as _l,ch as $l}from"./chunk-2v9qzeb5.js";import{dh as Rg}from"./chunk-vx8zk4yt.js";import{eh as Yg,fh as Zg,gh as _g,hh as $g,ih as ah,jh as bh}from"./chunk-e4mj16za.js";import{kh as qi,lh as ri,mh as si,qh as ti,rh as ui,sh as vi}from"./chunk-es9ygzeh.js";import{Ah as Ii,Bh as Ji,Ch as Ki,Dh as Li,th as Bi,uh as Ci,vh as Di,wh as Ei,xh as Fi,yh as Gi,zh as Hi}from"./chunk-bhqcp8b0.js";import{Eh as gi,Fh as hi,Gh as ii,Hh as ji,Ih as ki,Kh as li,Lh as mi,Mh as ni,Nh as oi,Oh as pi}from"./chunk-8dz63q4e.js";import{Ph as cg,Qh as dg,Rh as eg,Sh as fg,Th as gg}from"./chunk-3q8c4kex.js";import{Uh as hg,Vh as ig,Wh as jg,Xh as kg,Yh as lg}from"./chunk-vhx0v4jv.js";import{$h as og,Zh as mg,_h as ng,ai as pg,bi as qg,ci as rg,di as sg}from"./chunk-a39thx3m.js";import{ei as tg,fi as ug,gi as vg,hi as wg,ii as xg,ji as yg}from"./chunk-e31kcmmd.js";import{li as zg,mi as Ag,ni as Bg,oi as Cg,pi as Dg,qi as Eg,ri as Fg,si as Gg,ti as Hg,ui as Ig,vi as Jg,wi as Kg,xi as Lg,yi as Mg}from"./chunk-6xtajfpz.js";import{Ai as Ng,Bi as Og,Ci as Pg,Di as Qg}from"./chunk-81jqzypz.js";import{Ii as Df,Ji as Ef,Ki as Ff,Li as Gf,Mi as Hf,Ni as If,Oi as Jf,Pi as Kf,Qi as Lf,Ri as Mf,Si as Nf}from"./chunk-2w1qaf5b.js";import{Ti as Sf,Ui as Tf}from"./chunk-937b32gs.js";import{Xi as Uf}from"./chunk-7az4zfm8.js";import"./chunk-c23nyjd0.js";import{$i as Vf}from"./chunk-kw311y8k.js";import{aj as Wf,bj as Xf}from"./chunk-1t7cy4zb.js";import{cj as Yf,dj as Zf,ej as _f,fj as $f,gj as ag,hj as bg}from"./chunk-z2gv9n8s.js";import{ij as Qd,jj as Rd,kj as Sd,lj as Td,mj as Ud,nj as Vd,oj as Wd,pj as Xd,qj as Yd,rj as Zd,sj as _d,tj as $d,uj as ae,vj as be}from"./chunk-fc33v1qf.js";import{wj as Bf,xj as Cf}from"./chunk-tpjekhep.js";import{Ej as nf,Fj as of,Gj as pf,Hj as qf,Ij as rf,Jj as sf,Kj as tf,Lj as uf,Mj as vf,Nj as wf,Oj as xf,Pj as yf,Qj as zf,Rj as Af}from"./chunk-dve5ehgr.js";import{jk as jq,kk as kq,lk as lq,mk as mq,nk as nq,ok as oq}from"./chunk-hkh1d5m5.js";import{pk as vj,qk as wj,rk as xj,sk as yj,tk as nl,uk as ol,vk as pl,wk as ql}from"./chunk-bbrm07kg.js";import"./chunk-m9tpk603.js";import"./chunk-ap23bgyb.js";import{$l as Ka,$m as Mb,$n as Mc,$o as fe,$p as ff,$q as Kh,$r as lj,Am as mb,An as lc,Ao as Bd,Ap as Ge,Aq as Wg,Ar as zi,Bn as mc,Bo as Cd,Bp as He,Bq as Xg,Br as Ai,Cl as ja,Cm as nb,Cn as nc,Co as Dd,Cp as Ie,Cq as ch,Cr as Mi,Dl as ka,Dm as ob,Dn as oc,Do as Ed,Dp as Je,Dq as dh,Dr as Ni,El as la,Em as pb,En as pc,Eo as Fd,Ep as Ke,Eq as eh,Er as Oi,Fl as ma,Fm as qb,Fn as qc,Fo as Gd,Fp as Le,Fq as fh,Fr as Pi,Gl as na,Gm as rb,Gn as rc,Go as Hd,Gp as Me,Gq as gh,Gr as Qi,Hm as sb,Hn as sc,Ho as Id,Hp as Ne,Hq as hh,Hr as Ri,Im as tb,In as tc,Io as Jd,Ip as Oe,Iq as ih,Ir as Si,Jl as qa,Jm as ub,Jn as uc,Jo as Kd,Jp as Pe,Jq as jh,Jr as Ti,Kl as ra,Km as vb,Kn as vc,Ko as Ld,Kp as Qe,Kq as kh,Kr as Ui,Ll as ya,Lm as wb,Ln as wc,Lo as Md,Lp as Re,Lq as lh,Lr as Vi,Ml as za,Mm as xb,Mn as xc,Mo as Nd,Mp as Se,Mq as mh,Mr as Wi,Nl as Aa,Nm as yb,Nn as yc,No as Od,Np as Te,Nq as nh,Nr as Xi,Ol as Ba,Om as zb,On as zc,Oo as Pd,Op as Ue,Oq as oh,Or as Yi,Pl as Ca,Pm as Ab,Pn as Ac,Pp as Ve,Pq as ph,Pr as Zi,Ql as Da,Qm as Bb,Qn as Bc,Qo as ce,Qp as We,Qq as qh,Qr as _i,Rl as Ea,Rm as Cb,Rn as Cc,Rp as Xe,Rq as rh,Rr as $i,Sl as Fa,Sm as Db,Sn as Dc,Sp as Ye,Sq as sh,Sr as aj,Tl as Ga,Tm as Eb,Tn as Ec,Tp as Ze,Tq as Ch,Tr as dj,Um as Fb,Un as Fc,Up as _e,Uq as Dh,Ur as ej,Vm as Gb,Vn as Gc,Vp as $e,Vq as Eh,Vr as fj,Wm as Hb,Wn as Hc,Wp as af,Wq as Fh,Wr as gj,Xm as Ib,Xn as Ic,Xo as de,Xp as bf,Xq as Gh,Xr as hj,Yl as Ha,Ym as Jb,Yn as Jc,Yp as cf,Yq as Hh,Yr as ij,Zl as Ia,Zm as Kb,Zn as Kc,Zo as ee,Zp as df,Zq as Ih,Zr as jj,_l as Ja,_m as Lb,_n as Lc,_p as ef,_q as Jh,_r as kj,am as La,an as Nb,ao as Nc,ap as ge,aq as gf,ar as Lh,bm as Ma,bn as Ob,bo as Oc,bp as he,bq as hf,br as Mh,cl as s,cn as Pb,co as Pc,cp as ie,cq as jf,cr as Nh,dl as t,dn as Qb,do as Qc,dp as je,dq as kf,dr as Oh,el as u,em as Na,en as Rb,eo as Rc,ep as ke,eq as lf,er as Ph,fl as v,fm as Oa,fn as Sb,fo as Sc,fp as le,fq as mf,fr as Qh,gl as w,gm as Pa,gn as Tb,go as Tc,gp as me,gr as Rh,hl as x,hm as Qa,hn as Ub,ho as id,hp as ne,hq as Of,hr as Sh,il as y,im as Ra,in as Vb,io as jd,ip as oe,ir as Th,jl as z,jm as Sa,jn as Wb,jo as kd,jp as pe,jr as Uh,kl as A,km as Ta,kn as Xb,ko as ld,kp as qe,kr as Vh,ll as B,lm as Ua,ln as Yb,lo as md,lp as re,lr as Wh,ml as C,mm as Va,mn as Zb,mo as nd,mp as se,mr as Xh,nl as D,nm as Wa,nn as _b,no as od,np as te,nr as Yh,ol as E,om as Xa,on as $b,oo as pd,op as ue,or as Zh,pl as F,pm as Ya,pn as ac,po as qd,pp as ve,pr as _h,ql as G,qm as Za,qn as bc,qo as rd,qp as we,qr as $h,rl as H,rm as _a,rn as cc,ro as sd,rp as xe,rr as ai,sl as I,sm as $a,sn as dc,so as td,sp as ye,sr as bi,tl as J,tn as ec,to as ud,tp as ze,tq as Pf,tr as ci,ul as da,um as gb,un as fc,uo as vd,up as Ae,uq as Qf,ur as di,vl as ea,vm as hb,vn as gc,vo as wd,vp as Be,vq as Rf,vr as ei,wl as fa,wm as ib,wn as hc,wo as xd,wp as Ce,wq as Sg,wr as fi,xl as ga,xm as jb,xn as ic,xo as yd,xp as De,xq as Tg,xr as wi,yl as ha,ym as kb,yn as jc,yo as zd,yp as Ee,yq as Ug,yr as xi,zl as ia,zm as lb,zn as kc,zo as Ad,zp as Fe,zq as Vg,zr as yi}from"./chunk-m3dcd2j3.js";import{as as d,bs as e,cs as f,ds as g,es as h,fs as i,gs as j,hs as k,is as l,js as m,ks as n,ls as o,ms as p,ns as q,os as r}from"./chunk-4q17c8sg.js";import{ps as b,qs as c}from"./chunk-p5ktexx3.js";import{rs as oa,ss as pa}from"./chunk-kqdrjd0e.js";import{As as Ah,Bs as Bh,ts as th,us as uh,vs as vh,ws as wh,xs as xh,ys as yh,zs as zh}from"./chunk-xvh1k1a4.js";import{Cs as ab,Ds as bb,Fs as cb,Ps as db,Qs as eb,Rs as fb}from"./chunk-9tmcj4y7.js";import{Ss as sa,Ts as ta,Us as ua,Vs as va,Ws as wa,Xs as xa}from"./chunk-cnkex10g.js";import{$s as Xc,Ys as Uc,Zs as Vc,_s as Wc,at as Yc,bt as Zc,ct as _c,dt as $c,et as ad,ft as bd,gt as cd,ht as dd,it as ed,jt as fd,kt as gd,lt as hd}from"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import{$t as _,At as K,Bt as L,Et as M,Jt as N,Kt as O,Qt as P,Rt as Q,St as R,Tt as S,Ut as T,Vt as U,Wt as V,Xt as W,Yt as X,Zt as Y,_t as Z,au as $,bu as aa,cu as ba,eu as ca}from"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{Pj as writeNetlifyConfig,zl as writeManifest,sk as writeImageManifest,Qn as wrapComponentForHMR,Kq as withDefaults,aj as webComponentDirectiveHandler,Go as watermark,Ip as watchViews,Ck as watchMultiple,Dk as watchEffect,Bk as watch,Qk as waitForStore,Hd as waitForLocale,Cn as virtualPathFor,Pi as videoDirective,cc as validators,Oq as validated,td as validateValueEnhanced,Tg as validateTemplate,Lo as validateParams,ud as validateFormEnhanced,xp as validateFile,pd as validateFields,od as validateField,Vg as validateDirective,Oc as validateCspDirectives,ij as validateConfig,El as validateComponentScripts,am as validateComponentProps,Rf as validateClientScript,Qg as v,Ua as usesSignalsInScript,gh as userComponentFileExists,wg as useVirtualList,ad as useTitle,Pk as useStoreOrThrow,ho as useStore,zj as useStorage,Tp as useSlots,Bj as useSessionStorage,Zc as useSeoMeta,Rk as useRouteParams,Tk as useRouteParamOrThrow,Sk as useRouteParam,ad as usePageTitle,Af as useOptimistic,Vk as useMiddlewareValue,Uk as useMiddlewareState,Aj as useLocalStorage,Jn as useLoadingIndicator,Xc as useHead,Ng as useForm,Vp as useAttrs,zp as uploadFiles,yp as uploadFile,Mk as updateInstance,yf as untrack,wh as unregisterDirective,Nk as unmountInstance,$a as unescapeHtml,Fn as typecheckStxFiles,fh as transpileTypeScript,yq as translate,w as transitionDirective,Wl as toUsers,Vl as toUser,po as thumbnail,qp as thumbHashToRGBA,rp as thumbHashToDataURL,Df as templateCache,vb as syncRecordedResponse,Nn as stxClientHelpers,xe as structuredDataDirective,Bq as stripLocalePrefix,kl as stripDocumentWrapper,pa as stripCommentsAndLiterals,Im as stringToStream,Cc as strictCspPreset,Yd as streamingSuspenseDirective,ae as streamToResponse,Wd as streamTemplateSimple,Qd as streamTemplate,uj as stopHmrServer,Sl as stopBroadcasting,va as stateDirName,wa as stateDir,nf as state,gf as startsDocument,jn as startProductionServer,Ym as startInteractive,Rl as startBroadcasting,D as staggerDirective,Jo as srcsetUrls,E as springDirective,lc as splitByPipe,Dn as sourcePathFor,Qo as smartBatchSign,ih as slotContentHasExpressions,Oo as signUrl,dh as shouldTranspileTypeScript,rj as shouldReloadOnChange,To as shouldRefreshSignature,sj as shouldIgnoreFile,og as shouldCacheComponent,to as sharpen,Rq as shape,ua as setStateDir,Zk as setRouteParams,_k as setMiddlewareState,Np as setGlobalProvide,zb as setErrorLocale,uk as setCurrentInstance,Di as setCachedVideoResult,si as setCachedImageResult,mi as setCached,Uq as serveStxFile,Wq as serveMultipleStxFiles,mj as serveMarkdownFile,tn as serveFile,Xq as serveApp,sn as serve,Tn as serializeState,ym as serializeSetCookie,vo as sepia,_c as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ti as scopeHTML,Si as scopeCSS,Ae as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,zo as saturation,Mo as sanitizeParams,ec as sanitizeFilePath,fc as sanitizeExpression,gc as sanitizeDirectiveParams,dc as sanitizeDirectiveParam,hc as sanitizeComponentProps,Zb as safeExecuteAsync,Yb as safeExecute,qe as runPreProcessingMiddleware,re as runPostProcessingMiddleware,$m as runPageAction,tf as runMountCallbacks,ba as runMiddleware,Kk as runHooks,rq as runDoctor,uf as runDestroyCallbacks,Fe as runComposers,Ao as rotate,Rg as rewriteImagesWithSiblings,wb as responseBindings,mh as resolveTemplatePath,c as resolveStxTargets,ej as resolveStxDirectories,xq as resolveI18n,no as resize,Ha as resetPlaceholders,Wc as resetHead,Sn as resetHMRHandler,Mb as resetErrorConfig,Mq as required,La as replacePlaceholders,Gp as renderView,Mi as renderVideoComponent,za as renderVendorStyleTags,aq as renderToString,bq as renderToStream,cq as renderToDOM,pp as renderThumbhashToCanvas,oq as renderTemplateString,mq as renderTemplate,nq as renderString,Td as renderStreamingPage,_g as renderSlot,eg as renderSSRSuspense,$o as renderProtectedVideo,_o as renderProtectedImg,No as renderMediaUpload,lq as renderMarkdownView,pl as renderLayoutTypes,wi as renderImgComponent,ik as renderImageComponent,cd as renderHtmlAttrs,bd as renderHead,Jp as renderEmail,kh as renderComponentWithSlot,dd as renderBodyAttrs,bo as render,Ec as relaxedCspPreset,nd as registerValidationRule,_d as registerStreamingDirectives,jo as registerStoresClient,Xk as registerStore,ye as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,Bb as registerErrorMessages,sd as registerEnhancedValidationRule,th as registerDirective,Nc as registerCspDirectives,dm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,yk as ref,Qm as redirect,rb as recordResponseStatus,sb as recordResponseHeader,xa as rebaseOntoStateDir,tb as readResponseStatus,ub as readResponseHeaders,kj as readMarkdownFile,Ef as readFileCached,zk as reactive,Eo as quality,Yo as pruneSignatureCache,pi as pruneCache,Lp as provide,kq as protectCodeBlocks,Lq as prop,Je as processVueTemplate,ug as processVirtualListDirectives,yg as processVirtualGridDirectives,Li as processVideo,qd as processValidateDirective,Od as processTranslateDirective,_f as processTransitionDirectives,bg as processTransitionAttributes,gd as processTitleDirective,jb as processTemplateBindings,Wf as processTeleportDirectives,cg as processSuspenseDirectives,te as processStructuredData,Ud as processStreamDirectives,xb as processStatusDirective,Lg as processStaticDirectives,oe as processStackReplacements,ne as processStackPushDirectives,$g as processSlots,il as processShell,He as processServerBindings,ue as processSeoDirective,$d as processSectionDirectives,Me as processScopedStyles,hb as processReactiveBindings,ap as processProtectedMedia,Eg as processPartialHydrationDirectives,Qf as processOnceDirective,pe as processMiddleware,se as processMetaDirectives,hd as processMetaDirective,lj as processMarkdownFileDirectives,rh as processMarkdownDirectives,ie as processLoops,mg as processKeepAliveDirectives,Pf as processJsonDirective,xg as processInfiniteListDirectives,me as processIncludes,yi as processImgComponents,kk as processImageComponents,Zj as processImage,fd as processHeadDirective,jd as processForms,ld as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,md as processErrorDirective,Ke as processDynamicComponents,Sg as processDirectives,Bh as processDirectiveAttributes,Vf as processDeferDirectives,Sc as processCustomDirectives,Kc as processCspDirectives,Sq as processComponentProps,Ga as processClientScript,kd as processBasicFormDirectives,hg as processAsyncDirectives,Tc as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Dd as preloadTranslationsBackground,Cd as preloadTranslations,In as preloadIslandHandlers,ce as preloadIconCollection,Nl as poolStrings,cj as pluginManager,Zf as performLeave,Yf as performEnter,vf as pendingLifecycleCounts,zf as peek,je as partialsCache,Ni as parseVideoDirectiveOptions,lo as parseUrl,sp as parseThumbhashString,rc as parseSwitchBlock,Yg as parseSlots,Zg as parseSlotElement,wc as parseScriptDeclarations,_i as parseSFCComponent,bp as parseProtectedArgs,he as parseLoopBinding,xi as parseImgComponent,Ph as parseImageUrl,jk as parseImageComponent,Zm as parseFormBody,tc as parseExpressionWithFilters,Nm as parseCookies,im as parseContainerSelector,oc as parseConditionalBlock,uc as parseArguments,H as parseAnimationShorthand,Nq as optional,Ol as optimizeTemplate,pk as optimizeImage,qk as optimizeDirectory,Pq as oneOf,ke as onceStore,Hk as onUpdated,gb as onUpdate,Jk as onUnmounted,cl as onServer,Fk as onMounted,rf as onMount,Kg as onHydrated,Rp as onErrorCaptured,sf as onDestroy,sg as onDeactivated,bl as onClient,Gk as onBeforeUpdate,Ik as onBeforeUnmount,Ek as onBeforeMount,rg as onActivated,lp as observeElement,Rm as notFound,Re as normalizeCriticalHeadOrder,Qp as nextTick,gm as negotiateEncoding,P as navigateTo,Lk as mountInstance,z as motionDirective,Dc as moderateCspPreset,Ml as minifyHtml,we as metaDirective,$e as metaDedupKey,mo as mergeParams,bf as mergeHtmlAttrs,Yc as mergeHeadConfigs,Hc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,sh as markdownDirectiveHandler,jj as markdownCache,b as looksLikeGlob,Aq as localizePath,Ed as loadTranslationLazy,Kd as loadTranslation,fj as loadStxConfig,_ as loadMiddlewareFromDirectory,Al as loadManifest,hp as loadElement,Tl as loadChannels,Gq as lintStxStrict,jp as lazyLoadAll,ip as lazyLoad,C as keyframeDirective,_p as jsxs,$p as jsxDEV,Zp as jsx,Pm as jsonResponse,Zd as islandDirective,Jb as isTest,ll as isSpaNavigation,Ro as isSignatureValid,wf as isSignal,Xj as isSharpAvailable,Bm as isServerEnvironment,$k as isServer,Hb as isProduction,d as isPresentationalRole,ep as isNativeLazySupported,jq as isMarkdownPath,Ad as isLoading,Bd as isLoaded,ch as isJavaScriptScript,fp as isIntersectionObserverSupported,dk as isImageFile,Yj as isImageBackendAvailable,Md as isICUFormat,Jg as isHydrated,hh as isHydrateTrigger,pb as isHttpStatus,Am as isEdgeEnvironment,Hq as isDirectiveKind,Ib as isDevelopment,xf as isDerived,qj as isCssOnlyChange,fm as isCompressible,al as isClient,jg as isAsyncComponent,_m as isActionableMethod,wo as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Vb as inlineError,wq as injectThemeBootstrap,ve as injectSeoTags,tq as injectSeo,Of as injectRouterScript,pj as injectHotReload,fa as injectHeatmap,Ic as injectCspMetaTag,fb as injectCrosswindCSS,jf as injectConfigHeadTags,Qe as injectColorModeBootScript,df as injectCloakStyle,Xe as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Mp as inject,Wk as initStoreRegistry,Sj as initNetlify,Kn as initLoadingIndicator,gp as initLazyLoading,Xm as initFile,op as initBlurUp,up as initAllBlurUp,Ai as imgDirective,nk as imageDirective,gn as hydrateTemplateStream,fn as hydrateTemplate,Hn as hydrateIslands,Gg as hydrateIsland,hn as hydrateFragment,Hg as hydrateByStrategy,Ig as hydrateAll,_n as hydrate,rn as htmlResponse,ef as hoistLeadingHeadTags,Se as hoistColorModeBootScript,ga as heatmapDirective,ii as hashString,Nf as hashFilePath,gi as hashFile,hi as hashBuffer,Ie as hasVueTemplateSyntax,ge as hasVariables,eo as hasStore,Ma as hasPlaceholders,Qj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,hf as hasDocumentShell,Wg as hasDirectives,h as hasDOMSupport,gk as handleImageRequest,Sp as handleError,gq as h,ck as groupVariantsByFormat,uo as grayscale,kn as gitHash,Gl as getUnusedDirectives,Fd as getTranslationSync,yd as getTranslationCacheStats,Gd as getTranslationAsync,Nd as getTranslation,Lj as getTotalSize,So as getTimeUntilExpiry,Sf as getStoreScript,fo as getStoreNames,co as getStore,Ej as getStorageSize,Dj as getStorageKeys,nh as getSourceLineInfo,eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ui as getScopeAttribute,mf as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Ug as getPositionInfo,Ja as getPlaceholderRegistry,fi as getPlaceholderCacheStats,Vc as getPageMeta,yc as getNonce,ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,zd as getLoadingState,Id as getLoadingLocales,_j as getImageMetadata,Zn as getHydrationRuntime,Yk as getHydratedStoreState,tj as getHmrServer,Uc as getHead,Rn as getHMRHandler,Th as getFormatExtension,ki as getFileMtime,bk as getFallbackVariant,Db as getErrorMessage,Ab as getErrorLocale,Lb as getErrorConfig,Gb as getErrorCodeName,vh as getDirectives,uh as getDirective,vk as getCurrentInstance,Gc as getCspPreset,Pc as getCspHeaderName,cb as getCrosswindServeAsset,qh as getComponentCacheStats,Ci as getCachedVideoResult,Wo as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,di as getCachedPlaceholder,ri as getCachedImageResult,li as getCached,oi as getCacheStats,Ve as getBuildId,Ql as getBroadcastServer,Sh as getBestVariant,Qa as getAllFilters,Gh as generateWidthSrcset,vg as generateVirtualListCSS,Bp as generateVideoPreview,vd as generateValidationScript,Cp as generateUploadRuntime,Hl as generateTreeShakenBundle,ag as generateTransitionRuntime,$f as generateTransitionCSS,Gi as generateThumbnails,Yh as generateThumbhashPlaceholder,rm as generateTemplatesDocs,gg as generateSuspenseRuntime,fg as generateSuspenseCSS,Un as generateStateScript,Qh as generateSrcsetData,vi as generateSrcset,$j as generateSrcSet,Hi as generateSpriteSheet,Kp as generateSpaShell,Rh as generateSourceTags,Mh as generateSizesFromBreakpoints,Lh as generateSizesAttribute,ak as generateSizes,ze as generateSitemapIndex,uq as generateSitemap,dp as generateSimpleMediaPicker,Zo as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,Fa as generateServerDataBridge,Ri as generateScopeId,$i as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Be as generateRobotsTxt,vq as generateRobots,ui as generateResponsiveVariants,Xi as generateReactiveWebComponentTS,Wi as generateReactiveWebComponent,Zi as generateReactiveRuntime,Yi as generateReactiveMixin,Fi as generatePoster,ci as generatePlaceholderStyle,bi as generatePlaceholderCSS,Xh as generatePlaceholder,Fg as generatePartialHydrationCSS,xc as generateNonce,Mj as generateNetlifyToml,Ep as generateMinifiedMediaRuntime,Dp as generateMediaRuntime,cp as generateMediaManagerEmbed,yl as generateManifest,Mn as generateLoadingIndicatorHtml,np as generateLazyLoadRuntime,ql as generateLayoutTypes,_h as generateLQIP,qg as generateKeepAliveRuntime,pg as generateKeepAliveCSS,Mg as generateIslandManifest,Ap as generateImagePreview,rk as generateImageManifest,Yn as generateHydrationScript,be as generateHydrationRuntime,$n as generateHydrationCSS,zg as generateHydrationBootstrap,oj as generateHotReloadScript,ea as generateHeatmapScript,Pn as generateHMRClientScript,Ii as generateHLSManifest,Vn as generateEventBindings,Kh as generateDprSrcsetWithVariableQuality,Jh as generateDprSrcset,ff as generateDocumentShell,wm as generateDocs,sm as generateDirectivesDocs,Ah as generateDirectiveRuntime,Ce as generateDefaultRobotsTxt,Ji as generateDASHManifest,Bc as generateCspMetaTag,Ac as generateCspHeader,eb as generateCrosswindCSS,Xp as generateCompositionRuntime,qm as generateComponentsDocs,Ag as generateComponentManifest,om as generateComponentDoc,ai as generateColorPlaceholder,Pe as generateColorModeBootScript,Ok as generateClientRuntime,ji as generateCacheKey,Da as generateBrowserAutoImportDestructuring,vp as generateBlurUpRuntime,wp as generateBlurUpCSS,ib as generateBindingsRuntime,Hh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,lg as generateAsyncComponentRuntime,kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,Gn as formatTypecheckDiagnostics,An as formatTypeErrors,Um as formatStxContent,Kj as formatSize,O as formatRoutes,Vm as formatMarkdownContent,Eb as formatLocalizedError,Ld as formatICU,Nb as formatFilePath,Ub as formatError,sq as formatDoctorReport,tm as formatDocsAsMarkdown,vm as formatDocsAsJson,um as formatDocsAsHtml,Do as format,Ll as foldConstants,Co as flipVertical,Bo as flipHorizontal,rl as fingerprint,En as findRuntimeTypeDeclarations,qq as findPantryPackage,nc as findMatchingEndTag,jc as findMatchingDelimiter,oa as findInterpolationEnd,pc as findIfBlocks,sc as findExpressions,N as findErrorPage,qc as findDirectiveBlocks,Il as findDeadCode,Il as findDeadBranches,jm as findContainerRegion,pm as findComponentFiles,Vq as findCommonDir,Jj as filterRequiredFiles,lh as fileExists,de as extractVariables,wl as extractTemplateExpressions,Vd as extractStreamBoundaries,Wn as extractState,ah as extractSlotContent,fe as extractScriptFromTemplate,vl as extractScriptBlocks,Ka as extractPlaceholders,mc as extractParenthesizedExpression,qb as extractPageResponseStatus,ca as extractLayoutMetadata,$h as extractDominantColor,vc as extractDirectiveParams,Xg as extractDirectiveNames,ml as extractContainerContent,mm as extractComponentProps,Bg as extractComponentName,nm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,Cg as extractBoundProps,kc as extractBalancedExpression,ya as extractAndStripCssImports,Vi as extractAndScopeStyles,la as extractAndProcessEvents,xj as externalizeSharedAssets,yj as externalizeRepeatedAssets,wj as externalizeHtml,_a as evaluateExpression,Kl as evaluateConstant,yb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,_b as errorRecovery,ac as errorLogger,Xf as ensureTeleportTargets,kf as ensureDocumentShell,rd as enhancedValidationRules,km as enableDevTools,Jl as eliminateDeadCode,pf as effect,Ko as dprUrls,xm as docsCommand,ol as discoverLayoutNames,mp as disconnectObserver,lm as disableDevTools,bc as devHelpers,hl as detectShell,zm as detectRuntime,Nj as detectProjectConfig,Uh as detectFormat,Dl as detectBuildMode,of as derived,Rj as deploy,hj as defineStxConfig,io as defineStore,Up as defineSlots,Fq as defineSiteConfig,Jq as definePropsWithValidation,Iq as defineProps,bj as definePlugin,$c as definePageMeta,R as defineMiddleware,Og as defineForm,Pp as defineExpose,Op as defineEmits,xh as defineDirective,iq as defineCustomElement,en as defineConfig,yh as defineClientDirective,ig as defineAsyncComponent,Fp as defaultMediaConfig,tk as defaultImageConfig,wd as defaultI18nConfig,da as defaultHeatmapConfig,id as defaultFormClasses,Na as defaultFilters,Rc as defaultCspConfig,dj as defaultConfig,Tq as default,ab as deepMergeThemes,Le as dedupeScopedStyles,Zh as decodeThumbhash,Mc as cspNonceDirective,Lc as cspDirective,tp as crossfadeTransition,oo as crop,tg as createVirtualList,Oi as createVideoDirective,Lm as createVercelHandler,xn as createTypeChecker,Pd as createTranslateFilter,Hm as createTextEncoderStream,hq as createStxApp,Gm as createStreamingResponse,Xd as createStreamRenderer,go as createStore,U as createStorageManager,S as createServerCookieManager,xk as createScope,dg as createSSRSuspense,lf as createRouter,$ as createRouteLocation,vn as createRoute,yk as createRef,zk as createReactive,Wp as createProvideContext,mn as createProject,dn as createProductionBuild,Ia as createPlaceholder,Pl as createOptimizedBuild,Mm as createNetlifyHandler,Fj as createNetlifyClient,aa as createMiddlewareContext,un as createMiddleware,kp as createLazyObserver,ng as createKeepAliveCache,Dm as createKVNamespace,Dg as createIslandRegistry,zi as createImgDirective,ok as createImagePlugin,hk as createImageHandler,mk as createImageDirective,ia as createHeatmapAggregator,Ij as createFileManifest,Cm as createEnvAccessor,Xb as createEnhancedError,Fm as createEdgeHandler,Em as createEdgeCache,oh as createDetailedErrorMessage,Km as createDenoHandler,Oj as createDefaultNetlifyConfig,Qc as createCspHeaders,Om as createCookie,Ak as createComputed,wk as createComponentInstance,Jm as createCloudflareHandler,T as createClientCookieManager,zh as createBuiltinDirectives,hq as createApp,F as createAnimationTimeline,ro as cover,ee as convertToCommonJS,yo as contrast,qo as contain,Wb as consoleError,Kb as configureErrorHandling,gj as config,Ak as computed,hm as compressResponse,Ee as composerPattern,De as composer,jl as composeShellWithPage,cm as componentDirective,jh as componentClientSignalNames,xl as compileTemplate,a as collectRepeatedFlag,Hj as collectDeployFiles,Ei as clearVideoCache,xd as clearTranslationCache,Tf as clearStoreCache,Cj as clearStorage,Xo as clearSignatureCache,ei as clearPlaceholderCache,le as clearOnceStore,zc as clearNonce,Y as clearMiddleware,lk as clearImageCache,Cb as clearErrorMessages,Kf as clearDevCaches,Ra as clearCustomFilters,Ge as clearComposers,Uf as clearComposableCache,ph as clearComponentCache,ni as clearCache,Ln as cleanupLoadingIndicator,fl as classifyScript,gl as classifyAllScripts,yn as checkTemplateFile,zn as checkTemplate,Lf as checkCache,Uo as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Zl as channel,Tm as captureScreenshots,Sm as captureScreenshot,Jd as cancelPendingLoads,Gj as calculateSha1,Ih as calculateOptimalWidths,Mf as cacheTemplate,Qi as buildWebComponents,Bn as buildVirtualSource,Hp as buildViews,ko as buildUrl,Rd as buildSuspenseResolveScript,Eq as buildStaticSite,sl as buildRuntimeAsset,tl as buildRouterAsset,Dq as buildLangPickerScript,Oh as buildImageUrl,af as buildHtmlAttrs,Bl as buildForProduction,em as buildComponentLibrary,Vo as buildAuthParams,Cl as buildApp,Cq as buildAlternateLinks,cn as build,Xl as broadcastPrivate,Yl as broadcastPresence,Ul as broadcast,xo as brightness,so as blur,Po as batchSignUrls,qf as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,Fo as auto,e as attributeValue,ul as assetTags,ja as asInvocableStatement,Qq as arrayOf,zq as applyTranslations,ti as applyTransformations,bh as applySlots,bm as applyPropDefaults,Io as applyPreset,cf as applyHtmlAttrs,ed as applyHead,Za as applyFilters,Fc as apiCspPreset,y as animationGroupDirective,Ki as analyzeVideo,Fl as analyzeUsage,dl as analyzeTemplate,el as analyzeProject,Fl as analyzeDirectiveUsage,mb as analyticsDirective,pn as addStore,on as addPage,Jc as addNonceToInlineContent,qn as addLayout,nn as addComponent,an as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Hf as __setSignalsGeneratorsForTest,We as __setBuildIdForTest,Bi as VideoProcessorCache,Pg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,ic as Tokenizer,wn as TemplateTypeChecker,Wm as TEMPLATE_PRESETS,Tb as StxValidationError,Pb as StxSyntaxError,Rb as StxSecurityError,Qb as StxRuntimeError,Sb as StxFileError,Ob as StxError,dq as Show,Sd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,nb as RESPONSE_STATUS_KEY,ob as RESPONSE_HEADERS_KEY,bn as ProductionBuild,fq as Portal,ln as PROJECT_TEMPLATES,Ho as PRESETS,ao as MemorySessionStore,Fh as MIME_TYPES,Ch as MEDIA_DEFAULT_WIDTHS,Eh as MEDIA_DEFAULT_FORMATS,nl as LAYOUT_TYPES_FILE,qi as ImageProcessorCache,fk as ImageProcessingError,Xn as HydrationRuntime,nj as HotReloadServer,ha as HeatmapAggregator,_e as HTML_CLASS_MARKER,Ze as HTML_ATTRS_MARKER,Yp as Fragment,eq as For,$b as ErrorLogger,Fb as ErrorCodes,vj as EXTERNALIZED_ASSET_DIR,Tj as DeployError,Uj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Wj as DEFAULT_QUALITY,Vh as DEFAULT_PLACEHOLDER_OPTIONS,Vj as DEFAULT_FORMATS,Dh as DEFAULT_DPR_VALUES,On as ComponentHMRHandler,Nh as COMMON_SIZES,Ne as COLOR_MODE_BOOT_MARKER,Oe as COLOR_MODE_BOOT_GLOBAL,Ye as CLOAK_STYLE,$l as BroadcastServer,_l as Broadcast,Te as BUILD_ID_META,Ue as BUILD_ID_HEADER,Wh as BLUR_UP_CSS,pq as $path};
@@ -355,4 +355,4 @@ catch (error) {
355
355
  console.log('[stx] Async component runtime initialized');
356
356
  })();
357
357
  `}
358
- export{X as Vh,Y as Wh,Z as Xh,_ as Yh,$ as Zh};
358
+ export{X as Uh,Y as Vh,Z as Wh,_ as Xh,$ as Yh};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$h as b,_h as a,ai as c,bi as d,ci as e,di as f,ei as g}from"./chunk-ymccpdg6.js";import"./chunk-trtm887x.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
2
+ import{$h as c,Zh as a,_h as b,ai as d,bi as e,ci as f,di as g}from"./chunk-a39thx3m.js";import"./chunk-z3cgw8j4.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Af as i,Bf as j,Cf as k,Df as l,Ef as m,Ff as n,Gf as o,sf as a,tf as b,uf as c,vf as d,wf as e,xf as f,yf as g,zf as h}from"./chunk-fnkxbnka.js";import"./chunk-trtm887x.js";export{k as writeNetlifyConfig,n as initNetlify,l as hasNetlifyConfig,g as getTotalSize,h as generateNetlifyToml,f as formatSize,e as filterRequiredFiles,i as detectProjectConfig,m as deploy,a as createNetlifyClient,d as createFileManifest,j as createDefaultNetlifyConfig,c as collectDeployFiles,b as calculateSha1,o as DeployError};
2
+ import{Af as j,Bf as k,Cf as l,Df as m,Ef as n,Ff as o,rf as a,sf as b,tf as c,uf as d,vf as e,wf as f,xf as g,yf as h,zf as i}from"./chunk-bx766t25.js";import"./chunk-z3cgw8j4.js";export{k as writeNetlifyConfig,n as initNetlify,l as hasNetlifyConfig,g as getTotalSize,h as generateNetlifyToml,f as formatSize,e as filterRequiredFiles,i as detectProjectConfig,m as deploy,a as createNetlifyClient,d as createFileManifest,j as createDefaultNetlifyConfig,c as collectDeployFiles,b as calculateSha1,o as DeployError};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import G from"path";var L=new Set([".jpg",".jpeg",".png",".gif"]),O=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function M(j,z){let H=z.formats??O;if(!z.publicDir)return j;let C=N(j),J=[],Y=/<img\b[^>]*?>/gi,K=[],Q;while((Q=Y.exec(j))!==null){let q=Q[0],y=q.match(/\bsrc=["']([^"']+)["']/i);if(!y)continue;if(_(Q.index,C))continue;K.push({idx:Q.index,length:q.length,src:y[1],raw:q})}if(K.length===0)return j;let Z=await Promise.all(K.map(async(q)=>{let y=await X(q.src,z.publicDir,H);return{match:q,sources:y}}));for(let{match:q,sources:y}of Z){if(y.length===0)continue;let I=`<picture>${y.map(($)=>`<source type="${$.mime}" srcset="${w($.url)}">`).join("")}${q.raw}</picture>`;J.push({start:q.idx,end:q.idx+q.length,replacement:I})}if(J.length===0)return j;let V="",W=0;for(let q of J)V+=j.slice(W,q.start),V+=q.replacement,W=q.end;return V+=j.slice(W),V}async function X(j,z,H){if(!F(j))return[];let C=G.extname(j).toLowerCase();if(!L.has(C))return[];if(!j.startsWith("/"))return[];let J=G.join(z,j.slice(1)),Y=G.dirname(J),K=G.basename(J,C),Q=G.resolve(Y),Z=G.resolve(z);if(!Q.startsWith(Z))return[];let V=G.posix.dirname(j),W=H.map(async(y)=>{let k=G.join(Y,`${K}${y.ext}`);if(!await Bun.file(k).exists())return null;return{url:G.posix.join(V,`${K}${y.ext}`),mime:y.mime}});return(await Promise.all(W)).filter((y)=>y!==null)}function F(j){if(!j)return!1;if(j.startsWith("http://")||j.startsWith("https://"))return!1;if(j.startsWith("//"))return!1;if(j.startsWith("data:"))return!1;return!0}function N(j){let z=[],H=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,C;while((C=H.exec(j))!==null)z.push([C.index,C.index+C[0].length]);return z}function _(j,z){for(let[H,C]of z)if(j>=H&&j<C)return!0;return!1}function w(j){return j.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}
3
- export{M as eh};
3
+ export{M as dh};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{At as n,Bt as o,Ct as p,Dt as q,Et as r,Ft as s,Gt as t,Ht as u,It as v,Jt as w,Kt as x,Lt as y,Mt as z,Nt as A,Ot as B,Pt as C,Qt as D,Rt as E,St as F,Tt as G,Ut as H,Vt as I,Wt as J,Yt as K,_t as L,nt as a,ot as b,pt as c,qt as d,rt as e,st as f,tt as g,ut as h,vt as i,wt as j,xt as k,yt as l,zt as m}from"./chunk-z47tw39z.js";import"./chunk-trtm887x.js";L();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
2
+ import{$t as E,At as d,Bt as e,Ct as f,Dt as g,Et as h,Ft as i,Gt as j,Ht as k,It as l,Jt as m,Kt as n,Lt as o,Mt as p,Nt as q,Ot as r,Pt as s,Qt as t,Rt as u,St as v,Tt as w,Ut as x,Vt as y,Wt as z,Xt as A,Yt as B,Zt as C,_t as D,au as F,bu as G,cu as H,du as I,eu as J,gu as K,iu as L,xt as a,yt as b,zt as c}from"./chunk-0kj7rses.js";import"./chunk-z3cgw8j4.js";L();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-trtm887x.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
2
+ import"./chunk-z3cgw8j4.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
3
3
  <div class="stx-error-boundary" data-boundary-id="${q}" data-has-error="false">
4
4
  <div class="stx-error-boundary-content" data-boundary-content="${q}">
5
5
  ${z}
@@ -144,4 +144,4 @@ var N=new Map,Q=new Map;function T(A){if(N.set(A.name,A),A.client)Q.set(A.name,A
144
144
  console.log('[stx] Directive runtime initialized');
145
145
  })();
146
146
  `}function $(A){let B=/v-(\w+)(?::(\w+))?(?:\.([\w.]+))?="([^"]*)"/g;return A.replace(B,(C,F,H,L,J)=>{let E=(L?L.split("."):[]).reduce((M,S)=>{return M[S]=!0,M},{});return`data-stx-directive="${F}:${J}" data-stx-directive-arg="${H||""}" data-stx-directive-modifiers='${JSON.stringify(E)}'`})}
147
- export{T as js,V as ks,W as ls,X as ms,G as ns,Y as os,Z as ps,_ as qs,$ as rs};
147
+ export{T as ts,V as us,W as vs,X as ws,G as xs,Y as ys,Z as zs,_ as As,$ as Bs};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{iq as a,jq as b,kq as c,lq as d,mq as e,nq as f,oq as g,pq as h,qq as i,rq as j,sq as k}from"./chunk-m3dcd2j3.js";import"./chunk-4q17c8sg.js";import"./chunk-p5ktexx3.js";import"./chunk-kqdrjd0e.js";import"./chunk-xvh1k1a4.js";import"./chunk-9tmcj4y7.js";import"./chunk-cnkex10g.js";import"./chunk-n98zvmdq.js";import"./chunk-fk1qyjdw.js";import"./chunk-n09vpazf.js";import"./chunk-0kj7rses.js";import"./chunk-k0cqdptr.js";import"./chunk-z3cgw8j4.js";export{a as scanScriptTags,k as rewriteStxImportSpecifiers,i as processSignals,g as processScriptSetup,e as preEvalLiteralReactiveIfs,b as parseLoopExpression,c as hasSignalsSyntax,j as findMarkupIndexOutsideScripts,h as extractExports,f as convertSignalLoopsToAttributes,d as convertSignalDirectivesToAttributes};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ps as a,qs as b}from"./chunk-p5ktexx3.js";import"./chunk-z3cgw8j4.js";export{b as resolveStxTargets,a as looksLikeGlob};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-trtm887x.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
2
+ import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-z3cgw8j4.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -318,4 +318,4 @@ else {
318
318
  console.log('[stx] Transition runtime initialized');
319
319
  })();
320
320
  `}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
321
- export{W as dj,X as ej,Y as fj,Z as gj,_ as hj,$ as ij};
321
+ export{W as cj,X as dj,Y as ej,Z as fj,_ as gj,$ as hj};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
3
- export{m as fu,n as gu,o as hu,p as iu};
3
+ export{m as pu,n as qu,o as ru,p as su};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$g as h,Ug as a,Vg as b,Wg as c,Xg as d,Yg as e,Zg as f,_g as g,ah as i,bh as j,ch as k,dh as l}from"./chunk-st5qggks.js";import"./chunk-trtm887x.js";export{g as toUsers,f as toUser,c as stopBroadcasting,b as startBroadcasting,d as loadChannels,a as getBroadcastServer,j as channel,h as broadcastPrivate,i as broadcastPresence,e as broadcast,l as BroadcastServer,k as Broadcast};
2
+ import{$g as i,Tg as a,Ug as b,Vg as c,Wg as d,Xg as e,Yg as f,Zg as g,_g as h,ah as j,bh as k,ch as l}from"./chunk-2v9qzeb5.js";import"./chunk-z3cgw8j4.js";export{g as toUsers,f as toUser,c as stopBroadcasting,b as startBroadcasting,d as loadChannels,a as getBroadcastServer,j as channel,h as broadcastPrivate,i as broadcastPresence,e as broadcast,l as BroadcastServer,k as Broadcast};