@stacksjs/stx 0.2.396 → 0.2.398

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 (200) hide show
  1. package/dist/chunk-07syq64h.js +2 -0
  2. package/dist/{chunk-y4nzmkea.js → chunk-092qw0ps.js} +1 -1
  3. package/dist/{chunk-es9jp0c7.js → chunk-0rdhrgff.js} +1 -1
  4. package/dist/{chunk-cmzyyjwz.js → chunk-0trm18n0.js} +2 -2
  5. package/dist/{chunk-dj9capvb.js → chunk-0w6ghfqw.js} +2 -2
  6. package/dist/{chunk-3rg4ykrh.js → chunk-197z74b9.js} +1 -1
  7. package/dist/{chunk-pt8vq6be.js → chunk-1bdbrkt3.js} +1 -1
  8. package/dist/{chunk-q4jymqj3.js → chunk-1bdvnmxd.js} +3 -3
  9. package/dist/{chunk-q01hqekk.js → chunk-1ktxk84n.js} +1 -1
  10. package/dist/{chunk-fqq5k9ve.js → chunk-1t5vwavd.js} +1 -1
  11. package/dist/{chunk-qjvny3wf.js → chunk-2andsajh.js} +1 -1
  12. package/dist/{chunk-rxf0264w.js → chunk-2d0xzf2c.js} +2 -2
  13. package/dist/chunk-2vjkzrhy.js +2 -0
  14. package/dist/{chunk-1wm6zqj5.js → chunk-2weyb03p.js} +2 -2
  15. package/dist/{chunk-q9zsjgpf.js → chunk-3769e62c.js} +1 -1
  16. package/dist/{chunk-hbcf36nw.js → chunk-3wmdjemm.js} +2 -2
  17. package/dist/{chunk-ra1s4s6b.js → chunk-452k8psm.js} +1 -1
  18. package/dist/{chunk-c79nfdyj.js → chunk-4bb28mz5.js} +1 -1
  19. package/dist/{chunk-fc8471kb.js → chunk-4cv7bw5e.js} +2 -2
  20. package/dist/{chunk-9aj6v538.js → chunk-4eyzkbzj.js} +1 -1
  21. package/dist/chunk-4qm9rj1p.js +2 -0
  22. package/dist/chunk-4x73bm95.js +2 -0
  23. package/dist/{chunk-4dj5b57q.js → chunk-57yhrery.js} +1 -1
  24. package/dist/chunk-5h8q6dqb.js +2 -0
  25. package/dist/chunk-5zapxgys.js +2 -0
  26. package/dist/{chunk-mrnk4hbx.js → chunk-5zmppe0c.js} +1 -1
  27. package/dist/chunk-65y5abx7.js +2 -0
  28. package/dist/{chunk-y4zddt5r.js → chunk-683tfkz4.js} +1 -1
  29. package/dist/{chunk-atwrajjq.js → chunk-6b8j6812.js} +2 -2
  30. package/dist/chunk-6n0jamtd.js +2 -0
  31. package/dist/{chunk-bcpjhcpn.js → chunk-6rzwef28.js} +1 -1
  32. package/dist/{chunk-jea2901n.js → chunk-6s204hr5.js} +3 -3
  33. package/dist/{chunk-1c5w4nq4.js → chunk-76q768gt.js} +1 -1
  34. package/dist/{chunk-frp9fc7j.js → chunk-7eea1cse.js} +1 -1
  35. package/dist/{chunk-3wa1ybzj.js → chunk-7tgjn256.js} +1 -1
  36. package/dist/chunk-7vnkqnyh.js +2 -0
  37. package/dist/{chunk-jsggyhcg.js → chunk-81n38ak1.js} +1 -1
  38. package/dist/{chunk-qsq1eha8.js → chunk-88tt0qg0.js} +2 -2
  39. package/dist/{chunk-x45kj2fa.js → chunk-8ded3tn8.js} +2 -2
  40. package/dist/{chunk-pzhk6186.js → chunk-8qzc5n61.js} +1 -1
  41. package/dist/{chunk-ej8mv2k6.js → chunk-90zfg77v.js} +1 -1
  42. package/dist/{chunk-k33778kc.js → chunk-9368t9jm.js} +1 -1
  43. package/dist/{chunk-efsr5fbm.js → chunk-980w4zcq.js} +2 -2
  44. package/dist/chunk-9h3xq9j3.js +2 -0
  45. package/dist/chunk-9hh5eg8y.js +2 -0
  46. package/dist/{chunk-g7bpkpd4.js → chunk-9r2xgf5k.js} +1 -1
  47. package/dist/{chunk-634gaa9d.js → chunk-9vwpf0bk.js} +1 -1
  48. package/dist/chunk-a9702a2m.js +2 -0
  49. package/dist/{chunk-s7t37c7w.js → chunk-aeaf5nsy.js} +1 -1
  50. package/dist/{chunk-9wbys24b.js → chunk-aewsgyzc.js} +1 -1
  51. package/dist/chunk-ar5stjnb.js +2 -0
  52. package/dist/chunk-awrsqtve.js +2 -0
  53. package/dist/{chunk-5b8by1w4.js → chunk-azkk2n57.js} +1 -1
  54. package/dist/{chunk-pxy0wtn3.js → chunk-batgkbft.js} +145 -145
  55. package/dist/chunk-bd5gvhsw.js +2 -0
  56. package/dist/{chunk-3ha78evt.js → chunk-bdz7nznw.js} +2 -2
  57. package/dist/chunk-bj2aaf9j.js +2 -0
  58. package/dist/{chunk-zn70s4gs.js → chunk-c9kj8p6j.js} +1 -1
  59. package/dist/{chunk-tr02vys6.js → chunk-caj47vtj.js} +1 -1
  60. package/dist/chunk-cd6pe75s.js +2 -0
  61. package/dist/{chunk-ya5m5vbn.js → chunk-cks5rbzt.js} +1 -1
  62. package/dist/{chunk-vg8xrkbg.js → chunk-cq6e6de4.js} +3 -3
  63. package/dist/chunk-csgshaeh.js +3 -0
  64. package/dist/{chunk-y70wabha.js → chunk-cy8hgd86.js} +1 -1
  65. package/dist/{chunk-5mh3fpha.js → chunk-d0qy1ezf.js} +78 -11
  66. package/dist/{chunk-8np6m7vv.js → chunk-d4km7egg.js} +1 -1
  67. package/dist/{chunk-5y9tbnzb.js → chunk-dbfj1skz.js} +2 -2
  68. package/dist/chunk-dn6ayf7s.js +2 -0
  69. package/dist/{chunk-54323c6n.js → chunk-dvpk2rer.js} +1 -1
  70. package/dist/{chunk-j8jteztt.js → chunk-dz29q408.js} +1 -1
  71. package/dist/{chunk-3rf705aq.js → chunk-e1rv01pn.js} +2 -2
  72. package/dist/chunk-e8y26wfg.js +2 -0
  73. package/dist/{chunk-y33pm4g5.js → chunk-ekvejzvk.js} +1 -1
  74. package/dist/chunk-embs7re0.js +2 -0
  75. package/dist/{chunk-mvnjpwes.js → chunk-eqhsprr0.js} +1 -1
  76. package/dist/{chunk-n0d7nwhd.js → chunk-ewxbx67c.js} +1 -1
  77. package/dist/{chunk-1t80az59.js → chunk-ff6y270q.js} +2 -2
  78. package/dist/{chunk-cm5v3eep.js → chunk-fffbzsmv.js} +1 -1
  79. package/dist/{chunk-kaet6r9w.js → chunk-fj6fbqgb.js} +1 -1
  80. package/dist/{chunk-wf45k2yw.js → chunk-fsvkqeya.js} +2 -2
  81. package/dist/{chunk-0knxnyq6.js → chunk-g64qyhhb.js} +1 -1
  82. package/dist/{chunk-hestqebq.js → chunk-g7qmxjyc.js} +1 -1
  83. package/dist/chunk-gs4b132g.js +2 -0
  84. package/dist/{chunk-32vxn9kd.js → chunk-gtn2agxa.js} +2 -2
  85. package/dist/{chunk-y3vgzvwn.js → chunk-h01bbt3r.js} +1 -1
  86. package/dist/{chunk-apqq86bx.js → chunk-h55mae9h.js} +1 -1
  87. package/dist/{chunk-89tp5zsn.js → chunk-h8zp2fz9.js} +1 -1
  88. package/dist/chunk-h9eft9vj.js +2 -0
  89. package/dist/{chunk-58a6bzn0.js → chunk-hf784dsc.js} +2 -2
  90. package/dist/chunk-hfwknxbe.js +2 -0
  91. package/dist/{chunk-tdn55vs4.js → chunk-hm66z7e8.js} +1 -1
  92. package/dist/{chunk-khh1d2a9.js → chunk-hwzbc2v3.js} +2 -2
  93. package/dist/{chunk-tegrvgyn.js → chunk-j9x1hxhg.js} +1 -1
  94. package/dist/{chunk-nptdshhw.js → chunk-k2nydt80.js} +1 -1
  95. package/dist/{chunk-ehhqy624.js → chunk-kbyf95hm.js} +2 -2
  96. package/dist/{chunk-dct8xw04.js → chunk-kdwbpcm4.js} +2 -2
  97. package/dist/chunk-kp4ja0w3.js +2 -0
  98. package/dist/{chunk-7kw3grq5.js → chunk-kpg48dhw.js} +1 -1
  99. package/dist/chunk-kpqypx1g.js +2 -0
  100. package/dist/{chunk-z46czwd3.js → chunk-ky06aav6.js} +2 -2
  101. package/dist/{chunk-pv2trpk9.js → chunk-kyw2cbvn.js} +1 -1
  102. package/dist/{chunk-x21hdhjw.js → chunk-m3s6kzxv.js} +1 -1
  103. package/dist/{chunk-fb2cy0xx.js → chunk-m6par27a.js} +2 -2
  104. package/dist/chunk-macgqjre.js +2 -0
  105. package/dist/chunk-mhbexqwa.js +2 -0
  106. package/dist/chunk-mkfxc8ak.js +2 -0
  107. package/dist/{chunk-y32dbdta.js → chunk-mnk5mdwp.js} +1 -1
  108. package/dist/{chunk-g1vxsvqv.js → chunk-mwh3ymwc.js} +1 -1
  109. package/dist/{chunk-rc159ysy.js → chunk-n46e3gkr.js} +2 -2
  110. package/dist/{chunk-1260e2yv.js → chunk-p81zbym6.js} +1 -1
  111. package/dist/{chunk-n6fcg584.js → chunk-pdxbys31.js} +1 -1
  112. package/dist/{chunk-7hb89n3z.js → chunk-pkspqh0m.js} +1 -1
  113. package/dist/chunk-ppaqz92f.js +2 -0
  114. package/dist/{chunk-4byxvkzn.js → chunk-pvme0rs1.js} +3 -3
  115. package/dist/chunk-py5jmk33.js +2 -0
  116. package/dist/{chunk-pf80cwp6.js → chunk-qp4x0mwv.js} +185 -180
  117. package/dist/{chunk-jqq0h9sd.js → chunk-r1d9x0dy.js} +1 -1
  118. package/dist/{chunk-y9f2csr0.js → chunk-rwtj7j0r.js} +1 -1
  119. package/dist/{chunk-n0hrb3ek.js → chunk-rxz43r6k.js} +1 -1
  120. package/dist/{chunk-ys4hpkrp.js → chunk-st9vrfw7.js} +2 -2
  121. package/dist/{chunk-ats1a74d.js → chunk-tf964vs3.js} +33 -2
  122. package/dist/{chunk-rzp3bagj.js → chunk-v7q2nf37.js} +1 -1
  123. package/dist/chunk-vkg6rz7w.js +2 -0
  124. package/dist/chunk-vs4dafbz.js +2 -0
  125. package/dist/chunk-w4nmvn5v.js +2 -0
  126. package/dist/chunk-wfp942rp.js +2 -0
  127. package/dist/{chunk-m8z5450r.js → chunk-wh8vwykh.js} +1 -1
  128. package/dist/{chunk-8ph7mee2.js → chunk-x2wmn8m7.js} +2 -2
  129. package/dist/{chunk-k7f7391g.js → chunk-x86qttwm.js} +2 -2
  130. package/dist/{chunk-5mnj5ttg.js → chunk-xfedcdb2.js} +1 -1
  131. package/dist/{chunk-n98anpe9.js → chunk-yj5gkn17.js} +1 -1
  132. package/dist/chunk-ypxywr4x.js +2 -0
  133. package/dist/chunk-zc878avg.js +2 -0
  134. package/dist/chunk-zfy796r4.js +2 -0
  135. package/dist/{chunk-ra9hbqx4.js → chunk-zh3q10wd.js} +1 -1
  136. package/dist/{chunk-qvjhzwm8.js → chunk-zrnppyqz.js} +1 -1
  137. package/dist/{chunk-jzq847yd.js → chunk-ztffbc6a.js} +2 -2
  138. package/dist/cli.js +14 -14
  139. package/dist/composables/index.d.ts +4 -0
  140. package/dist/composables/index.js +3 -0
  141. package/dist/composables/use-storage.d.ts +20 -0
  142. package/dist/composables/use-storage.js +25 -0
  143. package/dist/craft-entry.js +1 -1
  144. package/dist/craft.js +1 -1
  145. package/dist/database.js +1 -1
  146. package/dist/index.d.ts +4 -0
  147. package/dist/index.js +3 -0
  148. package/dist/pwa.js +2 -2
  149. package/dist/runtime-globals.js +2 -0
  150. package/dist/script-validation.d.ts +2 -9
  151. package/dist/script-validation.js +87 -2
  152. package/dist/signal-processing.js +1 -1
  153. package/dist/signals.js +31 -0
  154. package/dist/ssg.js +2 -2
  155. package/dist/stx-module.d.ts +2 -0
  156. package/dist/stx.d.ts +6 -0
  157. package/dist/types/config-types.d.ts +16 -1
  158. package/dist/utils.js +1 -1
  159. package/dist/visual-testing.js +1 -1
  160. package/package.json +5 -5
  161. package/stx-module.d.ts +2 -0
  162. package/stx.d.ts +6 -0
  163. package/dist/chunk-0daceza4.js +0 -2
  164. package/dist/chunk-127ypa40.js +0 -2
  165. package/dist/chunk-2efz2s54.js +0 -2
  166. package/dist/chunk-2nt55z1b.js +0 -2
  167. package/dist/chunk-2xj61qk5.js +0 -2
  168. package/dist/chunk-3tde530g.js +0 -2
  169. package/dist/chunk-4pse0geh.js +0 -2
  170. package/dist/chunk-4rf7mxs6.js +0 -2
  171. package/dist/chunk-817833d8.js +0 -2
  172. package/dist/chunk-8axek0a6.js +0 -2
  173. package/dist/chunk-8hqayvjh.js +0 -3
  174. package/dist/chunk-8zeqzwsd.js +0 -2
  175. package/dist/chunk-a62080cs.js +0 -2
  176. package/dist/chunk-b2kagama.js +0 -2
  177. package/dist/chunk-b9tzp38b.js +0 -2
  178. package/dist/chunk-bkhxfr92.js +0 -2
  179. package/dist/chunk-bqajw5yd.js +0 -2
  180. package/dist/chunk-c10nf8ef.js +0 -2
  181. package/dist/chunk-c41zj3zg.js +0 -2
  182. package/dist/chunk-d2zrde0h.js +0 -2
  183. package/dist/chunk-dbxk0wym.js +0 -2
  184. package/dist/chunk-dpafnyqg.js +0 -2
  185. package/dist/chunk-em3jpym6.js +0 -2
  186. package/dist/chunk-er2twjr1.js +0 -2
  187. package/dist/chunk-fgqc5wne.js +0 -2
  188. package/dist/chunk-hh4vy76v.js +0 -2
  189. package/dist/chunk-kaaqzwqf.js +0 -2
  190. package/dist/chunk-km5t630j.js +0 -2
  191. package/dist/chunk-mayprgb9.js +0 -2
  192. package/dist/chunk-mv4b8b28.js +0 -2
  193. package/dist/chunk-rs70a3j6.js +0 -2
  194. package/dist/chunk-rz4vp8t9.js +0 -2
  195. package/dist/chunk-twtaa0nh.js +0 -2
  196. package/dist/chunk-vzt8h4vw.js +0 -2
  197. package/dist/chunk-w3ajb1nk.js +0 -2
  198. package/dist/chunk-w7zaavk8.js +0 -2
  199. package/dist/chunk-xhpjh1ja.js +0 -2
  200. package/dist/chunk-zmwj9r73.js +0 -2
@@ -128,6 +128,86 @@ export const PROHIBITED_DOM_PATTERNS = [
128
128
  suggestion: "Use navigate() instead"
129
129
  }
130
130
  ];
131
+ const STRICT_IGNORE = /(?:\/\/|\/\*|\{\{--)\s*stx-strict-ignore(-next-line)?([^\n*}]*)/g;
132
+ function commentsOnly(code) {
133
+ const out = Array.from(code, (char) => char === `
134
+ ` ? `
135
+ ` : " ");
136
+ let i = 0, quote = "";
137
+ while (i < code.length) {
138
+ const char = code[i], next = code[i + 1];
139
+ if (quote) {
140
+ if (char === "\\") {
141
+ i += 2;
142
+ continue;
143
+ }
144
+ if (char === quote)
145
+ quote = "";
146
+ i++;
147
+ continue;
148
+ }
149
+ if (char === '"' || char === "'" || char === "`") {
150
+ quote = char;
151
+ i++;
152
+ continue;
153
+ }
154
+ if (char === "/" && next === "/") {
155
+ while (i < code.length && code[i] !== `
156
+ `) {
157
+ out[i] = code[i];
158
+ i++;
159
+ }
160
+ continue;
161
+ }
162
+ if (char === "/" && next === "*") {
163
+ const end = code.indexOf("*/", i + 2), stop = end === -1 ? code.length : end + 2;
164
+ for (;i < stop; i++)
165
+ out[i] = code[i];
166
+ continue;
167
+ }
168
+ if (char === "{" && next === "{" && code.slice(i, i + 4) === "{{--") {
169
+ const end = code.indexOf("--}}", i + 4), stop = end === -1 ? code.length : end + 4;
170
+ for (;i < stop; i++)
171
+ out[i] = code[i];
172
+ continue;
173
+ }
174
+ i++;
175
+ }
176
+ return out.join("");
177
+ }
178
+ export function parseStrictIgnores(content) {
179
+ const suppressed = new Map, lines = commentsOnly(content).split(`
180
+ `), sourceLines = content.split(`
181
+ `);
182
+ lines.forEach((line, index) => {
183
+ STRICT_IGNORE.lastIndex = 0;
184
+ for (const match of line.matchAll(STRICT_IGNORE)) {
185
+ const nextLine = match[1] === "-next-line", beforeDirective = (sourceLines[index] ?? "").slice(0, match.index).trim(), target = nextLine || beforeDirective === "" ? index + 2 : index + 1, candidates = (match[2] ?? "").split("--")[0].split(/[\s,]+/).filter(Boolean), named = candidates.filter((name) => /\w/.test(name));
186
+ if (candidates.length > 0 && named.length === 0)
187
+ continue;
188
+ const existing = suppressed.get(target);
189
+ if (existing && existing.size === 0)
190
+ continue;
191
+ if (named.length === 0) {
192
+ suppressed.set(target, new Set);
193
+ continue;
194
+ }
195
+ if (existing)
196
+ named.forEach((name) => existing.add(name));
197
+ else
198
+ suppressed.set(target, new Set(named));
199
+ }
200
+ });
201
+ return suppressed;
202
+ }
203
+ function isSuppressed(suppressed, line, message) {
204
+ const names = suppressed.get(line);
205
+ if (!names)
206
+ return !1;
207
+ if (names.size === 0)
208
+ return !0;
209
+ return [...names].some((name) => message.includes(name));
210
+ }
131
211
  export function validateClientScript(content, filePath, strict, originFilePath) {
132
212
  const strictConfig = typeof strict === "boolean" ? { enabled: strict, failOnViolation: strict } : strict ?? { enabled: !1 };
133
213
  if (!strictConfig.enabled)
@@ -138,7 +218,7 @@ export function validateClientScript(content, filePath, strict, originFilePath)
138
218
  throw Error(remembered);
139
219
  return;
140
220
  }
141
- const allowPatterns = strictConfig.allowPatterns ?? [], errors = [], scannable = stripCommentsAndLiterals(content.replace(/\{\{--[\s\S]*?--\}\}/g, (match) => match.replace(/[^\n]/g, " ")));
221
+ const allowPatterns = strictConfig.allowPatterns ?? [], suppressed = parseStrictIgnores(content), errors = [], scannable = stripCommentsAndLiterals(content.replace(/\{\{--[\s\S]*?--\}\}/g, (match) => match.replace(/[^\n]/g, " ")));
142
222
  for (const { pattern, message, suggestion } of PROHIBITED_DOM_PATTERNS) {
143
223
  if (allowPatterns.some((allowed) => /\w/.test(allowed) && message.includes(allowed)))
144
224
  continue;
@@ -150,9 +230,14 @@ export function validateClientScript(content, filePath, strict, originFilePath)
150
230
  `), lineNumbers = [];
151
231
  lines.forEach((line, index) => {
152
232
  pattern.lastIndex = 0;
153
- if (pattern.test(line))
233
+ if (pattern.test(line) && !isSuppressed(suppressed, index + 1, message))
154
234
  lineNumbers.push(index + 1);
155
235
  });
236
+ if (lineNumbers.length === 0 && lines.some((line) => {
237
+ pattern.lastIndex = 0;
238
+ return pattern.test(line);
239
+ }))
240
+ continue;
156
241
  const locationInfo = lineNumbers.length > 0 ? ` (script line${lineNumbers.length > 1 ? "s" : ""} ${lineNumbers.join(", ")})` : "", quoted = lineNumbers.slice(0, 3).map((n) => ` ${n} | ${(sourceLines[n - 1] ?? "").trim().slice(0, 100)}`).join(`
157
242
  `), snippet = quoted ? `
158
243
  ${quoted}` : "";
@@ -764,7 +764,7 @@ function rebuildSetupOwner(template, ranges, markerAt, setupFnName) {
764
764
  export async function processScriptSetup(template, filePath, serverData) {
765
765
  const scripts = scanScriptTags(template, {
766
766
  skipAttrs: /\bserver\b|\bsrc\s*=|\bdata-stx-scoped\b|\bdata-stx-router\b/
767
- }), SIGNAL_API_RE = /\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useStore|useLocalStorage|useSessionStorage|useCookie|useId|useModel|useReactiveProp|useFetch|useRef|useEventListener|useDebounce|useDebouncedValue|useThrottle|useInterval|useTimeout|useToggle|useCounter|useClickOutside|useFocus|useAsync|useColorMode|useDark|useMediaQuery|useScrollLock|usePreferredDark|usePreferredLight|usePreferredReducedMotion|usePreferredContrast|useWebSocket|useRoute|useSearchParams|onMount|onDestroy|defineProps|withDefaults|defineEmits|defineExpose|defineSlots|useOptimistic)\s*(?:<[^>]*>)?\s*\(/, signalScripts = [], { hasUserImports, bundleClientScript } = await importOnce("stx/client-script-bundler", () => import("./client-script-bundler.js"));
767
+ }), SIGNAL_API_RE = /\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useStore|useLocalStorage|useSessionStorage|keptState|useCookie|useId|useModel|useReactiveProp|useFetch|useRef|useEventListener|useDebounce|useDebouncedValue|useThrottle|useInterval|useTimeout|useToggle|useCounter|useClickOutside|useFocus|useAsync|useColorMode|useDark|useMediaQuery|useScrollLock|usePreferredDark|usePreferredLight|usePreferredReducedMotion|usePreferredContrast|useWebSocket|useRoute|useSearchParams|onMount|onDestroy|defineProps|withDefaults|defineEmits|defineExpose|defineSlots|useOptimistic)\s*(?:<[^>]*>)?\s*\(/, signalScripts = [], { hasUserImports, bundleClientScript } = await importOnce("stx/client-script-bundler", () => import("./client-script-bundler.js"));
768
768
  for (const s of scripts) {
769
769
  let content = s.body;
770
770
  if (shouldTranspileTypeScript(s.attrs))
package/dist/signals.js CHANGED
@@ -6089,6 +6089,33 @@ catch (e) {} }
6089
6089
  return s;
6090
6090
  }
6091
6091
 
6092
+ // A value kept between visits, for a phone app between launches: the tab a
6093
+ // user opens right after starting the app draws last time's data at once
6094
+ // and the fresh answer replaces it. Kept in localStorage under stx:kept:,
6095
+ // in a scope such as the signed-in account, so one person's data is never
6096
+ // shown to another. A scope of false, null or '' keeps nothing (a plain
6097
+ // state), for a page or a visitor that should not leave data behind.
6098
+ // forgetKeptState(scope) removes a scope's values, or every kept value.
6099
+ var STX_KEPT_PREFIX = 'stx:kept:';
6100
+ function stxKeptPrefix(scope) {
6101
+ return STX_KEPT_PREFIX + (scope === undefined || scope === null || scope === '' ? '' : String(scope) + ':');
6102
+ }
6103
+ function keptState(name, initialValue, options) {
6104
+ var scope = options ? options.scope : undefined;
6105
+ if (scope === false || scope === null || scope === '') return state(initialValue);
6106
+ return useLocalStorage(stxKeptPrefix(scope) + name, initialValue);
6107
+ }
6108
+ function forgetKeptState(scope) {
6109
+ try {
6110
+ var prefix = stxKeptPrefix(scope);
6111
+ for (var i = localStorage.length - 1; i >= 0; i--) {
6112
+ var key = localStorage.key(i);
6113
+ if (key && key.indexOf(prefix) === 0) localStorage.removeItem(key);
6114
+ }
6115
+ }
6116
+ catch (e) {}
6117
+ }
6118
+
6092
6119
  // Reactive cookie binding. Mirrors useLocalStorage's shape: returns a string-
6093
6120
  // valued signal, writes on .set(), and respects cookie attributes via opts.
6094
6121
  // Setting the signal to '' deletes the cookie (max-age=0). Cookies don't fire
@@ -7149,6 +7176,8 @@ catch (e) {} }
7149
7176
  useAsync,
7150
7177
  useLocalStorage,
7151
7178
  useSessionStorage,
7179
+ keptState,
7180
+ forgetKeptState,
7152
7181
  useCookie,
7153
7182
  useId,
7154
7183
  useReactiveProp,
@@ -7981,6 +8010,8 @@ else {
7981
8010
  // bundled module that wasn't rewritten) found useLocalStorage defined and
7982
8011
  // useSessionStorage undefined.
7983
8012
  window.useSessionStorage = useSessionStorage;
8013
+ window.keptState = keptState;
8014
+ window.forgetKeptState = forgetKeptState;
7984
8015
  window.useEventListener = useEventListener;
7985
8016
  window.useWebSocket = useWebSocket;
7986
8017
  window.useColorMode = useColorMode;
package/dist/ssg.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ck as wq,xk as Uq,yk as Iq}from"./chunk-32vxn9kd.js";import{Dk as Eq,Ek as Tq,Fk as Dq}from"./chunk-frp9fc7j.js";import{_k as _q,bl as zq,cl as Aq}from"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import{Cr as n,Qp as C,Um as Oq,ko as l,no as Hq}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import{st as Xq}from"./chunk-q4jymqj3.js";import{xt as d}from"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import{cu as Bq}from"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import{Aw as jq,Bw as Gq,Cw as Lq,Dw as Nq,yw as Yq,zw as Vq}from"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import{Yw as P}from"./chunk-n0hrb3ek.js";import X from"fs";import j from"path";import{createHash as xq}from"crypto";function yq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var Pq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Cq(q){return Bun.hash(q).toString(16)}function Qq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(Pq,(J,W,_,z)=>{let L=z.trim();if(!L)return J;if(/\bdata-stx-src=/.test(_))return J;if(Z.minify)L=yq(L);let A=Cq(L);if(!$.has(A))$.set(A,L);let B=Z.integrity?` data-stx-integrity="sha384-${xq("sha384").update(L).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${A}.js"${B}${_}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var gq=new Set(["visible","idle"]);function Zq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(gq.has(Z.get(W[1])||""))K.add(W[2]);let _=q.lastIndexOf("</head>");if(K.size===0||_===-1)return q;let z=Array.from(K).filter((L)=>!q.includes(`rel="prefetch" href="${L}"`)).map((L)=>`<link rel="prefetch" href="${L}" as="script">`).join("");if(!z)return q;return q.slice(0,_)+z+q.slice(_)}var fq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function h(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function mq(q){for(let Z of fq){let $=q[Z];if(!$)continue;let Q=h($);if(Q)return{url:Q,source:"env",via:Z}}return null}function $q(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?h($):null}async function dq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=$q(J.default??J);if(W)return W}catch{}}return null}async function Kq(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=h(q.explicit);if(W)return{url:W,source:"option"}}let Q=$q(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await dq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=mq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Wq(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
2
+ import{Ak as Uq,Bk as Iq,Fk as wq}from"./chunk-gtn2agxa.js";import{Gk as Eq,Hk as Tq,Ik as Dq}from"./chunk-7eea1cse.js";import{bl as _q,el as zq,fl as Aq}from"./chunk-6b8j6812.js";import"./chunk-6s204hr5.js";import"./chunk-2andsajh.js";import{Fr as n,Tp as C,Xm as Oq,no as l,qo as Hq}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{vt as Xq}from"./chunk-1bdvnmxd.js";import{At as d}from"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import{fu as Bq}from"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import{Bw as Yq,Cw as Vq,Dw as jq,Ew as Gq,Fw as Lq,Gw as Nq}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as P}from"./chunk-rxz43r6k.js";import X from"fs";import j from"path";import{createHash as xq}from"crypto";function yq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var Pq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Cq(q){return Bun.hash(q).toString(16)}function Qq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(Pq,(J,W,_,z)=>{let L=z.trim();if(!L)return J;if(/\bdata-stx-src=/.test(_))return J;if(Z.minify)L=yq(L);let A=Cq(L);if(!$.has(A))$.set(A,L);let B=Z.integrity?` data-stx-integrity="sha384-${xq("sha384").update(L).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${A}.js"${B}${_}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var gq=new Set(["visible","idle"]);function Zq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(gq.has(Z.get(W[1])||""))K.add(W[2]);let _=q.lastIndexOf("</head>");if(K.size===0||_===-1)return q;let z=Array.from(K).filter((L)=>!q.includes(`rel="prefetch" href="${L}"`)).map((L)=>`<link rel="prefetch" href="${L}" as="script">`).join("");if(!z)return q;return q.slice(0,_)+z+q.slice(_)}var fq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function h(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function mq(q){for(let Z of fq){let $=q[Z];if(!$)continue;let Q=h($);if(Q)return{url:Q,source:"env",via:Z}}return null}function $q(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?h($):null}async function dq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=$q(J.default??J);if(W)return W}catch{}}return null}async function Kq(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=h(q.explicit);if(W)return{url:W,source:"option"}}let Q=$q(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await dq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=mq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Wq(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
3
3
  `)}class Fq{cacheDir;cache=new Map;loaded=!1;salt;constructor(q,Z=""){this.cacheDir=q,this.salt=Z}async load(){if(this.loaded)return;let q=j.join(this.cacheDir,"build-cache.json");if(await Bun.file(q).exists())try{let Z=JSON.parse(await Bun.file(q).text());for(let[$,Q]of Object.entries(Z))this.cache.set($,Q)}catch{}this.loaded=!0}async save(){await X.promises.mkdir(this.cacheDir,{recursive:!0});let q=j.join(this.cacheDir,"build-cache.json"),Z={};for(let[$,Q]of this.cache)Z[$]=Q;await Bun.write(q,JSON.stringify(Z))}getHash(q,Z){let $=X.statSync(q),Q=`${this.salt}|${q}:${$.mtimeMs}`;for(let J of Z)if(X.existsSync(J)){let W=X.statSync(J);Q+=`:${J}:${W.mtimeMs}`}let K=0;for(let J=0;J<Q.length;J++){let W=Q.charCodeAt(J);K=(K<<5)-K+W,K=K&K}return Math.abs(K).toString(36)}get(q,Z){let $=this.cache.get(q);if(!$)return null;let Q=this.getHash(Z,$.dependencies??[]);if($.hash!==Q)return this.cache.delete(q),null;return $.html}set(q,Z,$,Q){let K=this.getHash(Z,$);this.cache.set(q,{hash:K,html:Q,generatedAt:Date.now(),dependencies:$})}}class Rq{cacheDir;constructor(q){this.cacheDir=q}getFilePath(q){let Z=q.replace(/[^a-zA-Z0-9]/g,"_")+".json";return j.join(this.cacheDir,"isr",Z)}async get(q){let Z=this.getFilePath(q);if(!await Bun.file(Z).exists())return null;try{return JSON.parse(await Bun.file(Z).text())}catch{return null}}async set(q,Z){let $=this.getFilePath(q);await X.promises.mkdir(j.dirname($),{recursive:!0}),await Bun.write($,JSON.stringify(Z))}async invalidate(q){let Z=this.getFilePath(q);if(await Bun.file(Z).exists())await X.promises.unlink(Z)}async invalidatePattern(q){let Z=j.join(this.cacheDir,"isr");if(!X.existsSync(Z))return;let $=await X.promises.readdir(Z);for(let Q of $){let K=Q.replace(/_/g,"/").replace(".json","");if(q.test(K))await X.promises.unlink(j.join(Z,Q))}}async needsRevalidation(q){let Z=await this.get(q);if(!Z)return!0;return Date.now()>Z.revalidateAfter}}async function pq(q){try{let $=(await Bun.file(q).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!$)return null;let Q=$[1];if(!Q.includes("getStaticPaths"))return null;let K=Q.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!K)return null;return await Function(`
4
4
  return (async function getStaticPaths() {
5
5
  ${K[1]}
@@ -41,7 +41,7 @@ ${q.map((Q)=>{let K=new URL(Q.loc,Z).href,J=` <url>
41
41
  ${$.join(`
42
42
  `)}
43
43
  </channel>
44
- </rss>`}async function rq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,failOnServerScriptError:q.failOnServerScriptError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},_=new Set,z=0,L={},A={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&X.existsSync(J.outputDir))await X.promises.rm(J.outputDir,{recursive:!0});await X.promises.mkdir(J.outputDir,{recursive:!0});let U=J.cacheSalt;if(!U){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-jsggyhcg.js");try{U=N(await Y(process.cwd()))}catch{}}let{prepareImageDelivery:G}=await import("./chunk-9wbys24b.js"),H=await G(J.publicDir,J.outputDir);if(H.count>0)console.log(`Optimized ${H.count} image(s) for responsive delivery`),U=[U,H.fingerprint].filter(Boolean).join(":");let F=new Fq(J.cacheDir,U);if(J.cache)await F.load();try{let{generateCss:Y}=await import("./chunk-jsggyhcg.js");await Y('<div class="bg-black"></div>')}catch{}Yq();let kq=$?.routeMiddleware?.dir||"middleware";await jq(process.cwd(),kq);let p=Vq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let bq=$?.routeMiddleware?.global||[];wq($?.layoutsDir,d(process.cwd()));let i=l(".",{pagesDir:J.pagesDir,pagesDirs:$?._layerPageDirs});console.log(`Found ${i.length} routes`);let g=[];for(let Y of i){let N=await uq(Y);for(let O of N)g.push({route:Y,url:O.url,params:O.params,props:O.props,revalidate:O.revalidate??J.revalidate})}W.totalPages=g.length,console.log(`Generating ${W.totalPages} pages...`);let S=[],s=[];for(let Y=0;Y<g.length;Y+=J.concurrency)s.push(g.slice(Y,Y+J.concurrency));for(let Y of s)await Promise.all(Y.map(async(N)=>{let{route:O,url:V,params:v,props:Sq,revalidate:r}=N;try{await J.hooks.onPageStart?.(V);let R=await Bun.file(O.filePath).text(),M=JJ(R),vq=M?.middleware?Array.isArray(M.middleware)?M.middleware:[M.middleware]:[],t=[...bq,...vq];if(t.length>0){let T=Gq(V,v,M||{}),k=Lq(T,null,void 0,{isServer:!0}),D=await Nq(t,k);if(D.redirect){let I=typeof D.redirect==="string"?D.redirect:D.redirect.path||D.redirect,y=QJ(String(I),V),b=ZJ(V,J);await X.promises.mkdir(j.dirname(b),{recursive:!0}),await Bun.write(b,y),W.successCount++,W.pages.push({route:V,outputPath:b,size:Buffer.byteLength(y),cached:!1}),S.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${I}`);return}if(D.abort){let I=typeof D.abort==="string"?D.abort:D.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${I}`);return}}let e=R.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(e)try{if(!await Function("route",`
44
+ </rss>`}async function rq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,failOnServerScriptError:q.failOnServerScriptError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},_=new Set,z=0,L={},A={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&X.existsSync(J.outputDir))await X.promises.rm(J.outputDir,{recursive:!0});await X.promises.mkdir(J.outputDir,{recursive:!0});let U=J.cacheSalt;if(!U){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-81n38ak1.js");try{U=N(await Y(process.cwd()))}catch{}}let{prepareImageDelivery:G}=await import("./chunk-aewsgyzc.js"),H=await G(J.publicDir,J.outputDir);if(H.count>0)console.log(`Optimized ${H.count} image(s) for responsive delivery`),U=[U,H.fingerprint].filter(Boolean).join(":");let F=new Fq(J.cacheDir,U);if(J.cache)await F.load();try{let{generateCss:Y}=await import("./chunk-81n38ak1.js");await Y('<div class="bg-black"></div>')}catch{}Yq();let kq=$?.routeMiddleware?.dir||"middleware";await jq(process.cwd(),kq);let p=Vq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let bq=$?.routeMiddleware?.global||[];wq($?.layoutsDir,d(process.cwd()));let i=l(".",{pagesDir:J.pagesDir,pagesDirs:$?._layerPageDirs});console.log(`Found ${i.length} routes`);let g=[];for(let Y of i){let N=await uq(Y);for(let O of N)g.push({route:Y,url:O.url,params:O.params,props:O.props,revalidate:O.revalidate??J.revalidate})}W.totalPages=g.length,console.log(`Generating ${W.totalPages} pages...`);let S=[],s=[];for(let Y=0;Y<g.length;Y+=J.concurrency)s.push(g.slice(Y,Y+J.concurrency));for(let Y of s)await Promise.all(Y.map(async(N)=>{let{route:O,url:V,params:v,props:Sq,revalidate:r}=N;try{await J.hooks.onPageStart?.(V);let R=await Bun.file(O.filePath).text(),M=JJ(R),vq=M?.middleware?Array.isArray(M.middleware)?M.middleware:[M.middleware]:[],t=[...bq,...vq];if(t.length>0){let T=Gq(V,v,M||{}),k=Lq(T,null,void 0,{isServer:!0}),D=await Nq(t,k);if(D.redirect){let I=typeof D.redirect==="string"?D.redirect:D.redirect.path||D.redirect,y=QJ(String(I),V),b=ZJ(V,J);await X.promises.mkdir(j.dirname(b),{recursive:!0}),await Bun.write(b,y),W.successCount++,W.pages.push({route:V,outputPath:b,size:Buffer.byteLength(y),cached:!1}),S.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${I}`);return}if(D.abort){let I=typeof D.abort==="string"?D.abort:D.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${I}`);return}}let e=R.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(e)try{if(!await Function("route",`
45
45
  const validate = ${e[1]};
46
46
  return validate(route);
47
47
  `)({params:v})){console.warn(`Validation failed for ${V}, skipping...`);return}}catch{}let E=null,qq=!1;if(J.cache){if(E=F.get(V,O.filePath),E)qq=!0,W.cachedCount++}if(!E){let T=await Mq(O,v,Sq,J,$);if(E=T.html,J.failOnIncludeError&&T.includeFailures.length>0)throw Error(`${T.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
@@ -110,6 +110,8 @@ declare module 'stx' {
110
110
  export const useServerData: typeof globalThis.useServerData // <script server> only
111
111
  export const useServerRuntimeConfig: () => Readonly<{ public: Record<string, any>, private: Record<string, any> }> // <script server> only
112
112
  export const useSessionStorage: typeof globalThis.useSessionStorage
113
+ export const keptState: typeof globalThis.keptState
114
+ export const forgetKeptState: typeof globalThis.forgetKeptState
113
115
  export const useSlots: typeof globalThis.useSlots
114
116
  export const useStore: typeof globalThis.useStore
115
117
  export const useThrottle: typeof globalThis.useThrottle
package/dist/stx.d.ts CHANGED
@@ -481,6 +481,10 @@ declare function useAsync<T>(_fn: () => Promise<T>): {
481
481
 
482
482
  declare function useLocalStorage<T>(_key: string, _defaultValue: T): StxSignal<T>
483
483
  declare function useSessionStorage<T>(_key: string, _defaultValue: T): StxSignal<T>
484
+ /** A value kept between visits (a phone app between launches) in a scope such as the signed-in account; a scope of false keeps nothing. */
485
+ declare function keptState<T>(_name: string, _initialValue: T, _options?: { scope?: string | number | false | null }): StxSignal<T>
486
+ /** Remove a scope's kept values, or every kept value. */
487
+ declare function forgetKeptState(_scope?: string | number | false | null): void
484
488
 
485
489
  /**
486
490
  * Options accepted by the auto-imported `useCookie` global.
@@ -915,6 +919,8 @@ interface StxRuntimeRegistry {
915
919
  useModel: typeof useModel
916
920
  useLocalStorage: typeof useLocalStorage
917
921
  useSessionStorage: typeof useSessionStorage
922
+ keptState: typeof keptState
923
+ forgetKeptState: typeof forgetKeptState
918
924
  useEventListener: typeof useEventListener
919
925
  useScrollLock: typeof useScrollLock
920
926
  useWebSocket: typeof useWebSocket
@@ -364,7 +364,22 @@ export interface StrictModeConfig {
364
364
  enabled: boolean;
365
365
  /** Throw errors instead of warnings (default: false) */
366
366
  failOnViolation?: boolean;
367
- /** Pattern strings to allow through validation (matched against message or regex source) */
367
+ /**
368
+ * Rule names to allow through validation, matched against the rule's message.
369
+ *
370
+ * RULE-GLOBAL: an entry here turns that rule off for every file. For one
371
+ * justified call site, write the exemption at the site instead, which keeps
372
+ * the rule enforced everywhere else and records WHY where a reviewer will
373
+ * see it (stacksjs/stx#2049):
374
+ *
375
+ * // stx-strict-ignore-next-line getElementById -- pre-hydration guard
376
+ * var form = document.getElementById('signin')
377
+ *
378
+ * A bare `stx-strict-ignore-next-line` exempts every rule on the next line;
379
+ * a trailing `// stx-strict-ignore` exempts the line it sits on. Suppression
380
+ * is per line, so a file can exempt one call and stay in breach three lines
381
+ * down -- which is what lets an app reach `failOnViolation: true` at all.
382
+ */
368
383
  allowPatterns?: string[];
369
384
  /**
370
385
  * What to do when a `<script client>` block does not bundle.
package/dist/utils.js CHANGED
@@ -526,7 +526,7 @@ function unresolvedComponentMarkup(componentPath) {
526
526
  return `<!-- stx: component "${componentPath.replace(/--+/g, "-")}" could not be resolved; see the server log -->`;
527
527
  }
528
528
  export function componentClientSignalNames(scripts) {
529
- const names = new Set, declaration = /\b(?:const|let|var)\s+([a-zA-Z_$][\w$]*)\s*=\s*(?:state|derived|computed|ref|reactive|signal|useModel|useReactiveProp|useLocalStorage|useSessionStorage|useCookie|useDebouncedValue)\s*(?:<[^>]*>)?\s*\(/g;
529
+ const names = new Set, declaration = /\b(?:const|let|var)\s+([a-zA-Z_$][\w$]*)\s*=\s*(?:state|derived|computed|ref|reactive|signal|useModel|useReactiveProp|useLocalStorage|useSessionStorage|keptState|useCookie|useDebouncedValue)\s*(?:<[^>]*>)?\s*\(/g;
530
530
  for (const script of scripts) {
531
531
  let match;
532
532
  while ((match = declaration.exec(script)) !== null)
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-n0hrb3ek.js";import B from"fs";import $ from"path";import k from"crypto";var V=[{name:"mobile",width:375,height:667,isMobile:!0,hasTouch:!0},{name:"tablet",width:768,height:1024,isMobile:!0,hasTouch:!0},{name:"desktop",width:1280,height:800,isMobile:!1,hasTouch:!1},{name:"wide",width:1920,height:1080,isMobile:!1,hasTouch:!1}];function J(N={}){let Y={snapshotDir:N.snapshotDir||"__snapshots__",screenshotDir:N.screenshotDir||"__screenshots__",updateSnapshots:N.updateSnapshots||process.env.UPDATE_SNAPSHOTS==="true",threshold:N.threshold??0.01,viewports:N.viewports||V,generateDiff:N.generateDiff??!0,diffDir:N.diffDir||"__diffs__",compare:N.compare||b,ci:N.ci??process.env.CI==="true",retries:N.retries??(N.ci?3:1)};return{async snapshot(M,X){let q=$.join(Y.snapshotDir,`${X}.html`),G=C(M),Q=K(G);if(await Bun.file(q).exists()){let W=await Bun.file(q).text(),Z=K(C(W));if(Q===Z)return{passed:!0,snapshotPath:q,message:"Snapshot matches"};if(Y.updateSnapshots)return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};let F=$.join(Y.diffDir,`${X}.actual.html`),U=$.join(Y.diffDir,`${X}.diff.html`);return await B.promises.mkdir(Y.diffDir,{recursive:!0}),await Bun.write(F,G),await Bun.write(U,I(W,G)),{passed:!1,snapshotPath:q,actualPath:F,diffPath:U,message:"Snapshot does not match"}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},async snapshotJson(M,X){let q=$.join(Y.snapshotDir,`${X}.json`),G=JSON.stringify(M,null,2);if(await Bun.file(q).exists()){let Q=await Bun.file(q).text();if(G===Q)return{passed:!0,snapshotPath:q};if(Y.updateSnapshots)return await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};return{passed:!1,snapshotPath:q,message:`JSON snapshot mismatch:
2
+ import"./chunk-rxz43r6k.js";import B from"fs";import $ from"path";import k from"crypto";var V=[{name:"mobile",width:375,height:667,isMobile:!0,hasTouch:!0},{name:"tablet",width:768,height:1024,isMobile:!0,hasTouch:!0},{name:"desktop",width:1280,height:800,isMobile:!1,hasTouch:!1},{name:"wide",width:1920,height:1080,isMobile:!1,hasTouch:!1}];function J(N={}){let Y={snapshotDir:N.snapshotDir||"__snapshots__",screenshotDir:N.screenshotDir||"__screenshots__",updateSnapshots:N.updateSnapshots||process.env.UPDATE_SNAPSHOTS==="true",threshold:N.threshold??0.01,viewports:N.viewports||V,generateDiff:N.generateDiff??!0,diffDir:N.diffDir||"__diffs__",compare:N.compare||b,ci:N.ci??process.env.CI==="true",retries:N.retries??(N.ci?3:1)};return{async snapshot(M,X){let q=$.join(Y.snapshotDir,`${X}.html`),G=C(M),Q=K(G);if(await Bun.file(q).exists()){let W=await Bun.file(q).text(),Z=K(C(W));if(Q===Z)return{passed:!0,snapshotPath:q,message:"Snapshot matches"};if(Y.updateSnapshots)return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};let F=$.join(Y.diffDir,`${X}.actual.html`),U=$.join(Y.diffDir,`${X}.diff.html`);return await B.promises.mkdir(Y.diffDir,{recursive:!0}),await Bun.write(F,G),await Bun.write(U,I(W,G)),{passed:!1,snapshotPath:q,actualPath:F,diffPath:U,message:"Snapshot does not match"}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},async snapshotJson(M,X){let q=$.join(Y.snapshotDir,`${X}.json`),G=JSON.stringify(M,null,2);if(await Bun.file(q).exists()){let Q=await Bun.file(q).text();if(G===Q)return{passed:!0,snapshotPath:q};if(Y.updateSnapshots)return await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};return{passed:!1,snapshotPath:q,message:`JSON snapshot mismatch:
3
3
  ${z(Q,G)}`}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},matchInlineSnapshot(M,X){let q=C(M);if(X===void 0)return{passed:!0,expected:q};let G=C(X);return{passed:q===G,expected:q}},getConfig(){return Y}}}function D(N={}){let Y=J(N),M=Y.getConfig();return{async compareScreenshots(X,q,G="desktop"){let Q=$.join(M.screenshotDir,G,`${X}.png`),W=$.join(M.diffDir,G,`${X}.actual.png`),Z=$.join(M.diffDir,G,`${X}.diff.png`);if(await Bun.file(Q).exists()){let F=await Bun.file(Q).arrayBuffer(),U=Buffer.from(F),_=await M.compare(q,U);if(_.match||_.diffPercentage<=M.threshold)return{viewport:G,passed:!0,baselinePath:Q};if(M.updateSnapshots)return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q};if(await B.promises.mkdir($.dirname(W),{recursive:!0}),await Bun.write(W,q),_.diffImage&&M.generateDiff)await Bun.write(Z,_.diffImage);return{viewport:G,passed:!1,baselinePath:Q,actualPath:W,diffPath:M.generateDiff?Z:void 0,diffPercentage:_.diffPercentage}}return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q}},async testViewports(X,q,G=M.viewports){let Q=[];for(let W of G){let Z=null;for(let F=0;F<M.retries;F++)try{let U=await q(W),_=await this.compareScreenshots(X,U,W.name);Q.push(_),Z=null;break}catch(U){if(Z=U,F<M.retries-1)await new Promise((_)=>setTimeout(_,100*(F+1)))}if(Z)Q.push({viewport:W.name,passed:!1,baselinePath:"",diffPercentage:100})}return Q},getSnapshotTester(){return Y}}}function L(N={}){let M=D(N).getSnapshotTester(),X=new Map;return{addStory(q){X.set(`${q.component}/${q.name}`,q)},addStories(q){for(let G of q)this.addStory(G)},getStories(){return Array.from(X.values())},getStoriesForComponent(q){return Array.from(X.values()).filter((G)=>G.component===q)},async testStory(q){let G=X.get(q);if(!G)return{name:q,passed:!1,duration:0,snapshots:[],screenshots:[],errors:[Error(`Story not found: ${q}`)]};let Q=Date.now(),W={name:q,passed:!0,duration:0,snapshots:[],screenshots:[],errors:[]};try{let Z=await G.render(),F=await M.snapshot(Z,q.replace(/\//g,"-"));if(W.snapshots.push(F),!F.passed)W.passed=!1}catch(Z){W.passed=!1,W.errors.push(Z)}return W.duration=Date.now()-Q,W},async testAllStories(){let q=[];for(let G of X.keys()){let Q=await this.testStory(G);q.push(Q)}return q},async generateStoryIndex(){let q={};for(let G of X.values()){if(!q[G.component])q[G.component]=[];q[G.component].push({name:G.name,args:G.args})}return JSON.stringify(q,null,2)}}}async function S(N,Y={}){let M={outputDir:Y.outputDir||"visual-test-report",format:Y.format||"html",title:Y.title||"Visual Test Report",includeScreenshots:Y.includeScreenshots??!0};await B.promises.mkdir(M.outputDir,{recursive:!0});let X=N.length,q=N.filter((F)=>F.passed).length,G=X-q,Q=N.reduce((F,U)=>F+U.duration,0);if(M.format==="json"){let F={title:M.title,summary:{total:X,passed:q,failed:G,duration:Q},results:N,generatedAt:new Date().toISOString()},U=$.join(M.outputDir,"report.json");return await Bun.write(U,JSON.stringify(F,null,2)),U}if(M.format==="markdown"){let F=`# ${M.title}
4
4
 
5
5
  `;F+=`## Summary
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx",
3
3
  "type": "module",
4
- "version": "0.2.396",
4
+ "version": "0.2.398",
5
5
  "description": "A performant UI Framework. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -118,12 +118,12 @@
118
118
  "dependencies": {
119
119
  "@stacksjs/ts-css": "^0.3.2",
120
120
  "@stacksjs/clapp": "^0.2.16",
121
- "@stacksjs/desktop": "0.2.396",
122
- "@stacksjs/sanitizer": "0.2.396",
121
+ "@stacksjs/desktop": "0.2.398",
122
+ "@stacksjs/sanitizer": "0.2.398",
123
123
  "@stacksjs/ts-i18n": "^0.1.11",
124
- "bun-plugin-stx": "0.2.396",
124
+ "bun-plugin-stx": "0.2.398",
125
125
  "bunfig": "^0.15.19",
126
- "stx-router": "0.2.396",
126
+ "stx-router": "0.2.398",
127
127
  "ts-broadcasting": "^0.0.11",
128
128
  "ts-images": "^0.2.22",
129
129
  "ts-syntax-highlighter": "^0.2.1"
package/stx-module.d.ts CHANGED
@@ -110,6 +110,8 @@ declare module 'stx' {
110
110
  export const useServerData: typeof globalThis.useServerData // <script server> only
111
111
  export const useServerRuntimeConfig: () => Readonly<{ public: Record<string, any>, private: Record<string, any> }> // <script server> only
112
112
  export const useSessionStorage: typeof globalThis.useSessionStorage
113
+ export const keptState: typeof globalThis.keptState
114
+ export const forgetKeptState: typeof globalThis.forgetKeptState
113
115
  export const useSlots: typeof globalThis.useSlots
114
116
  export const useStore: typeof globalThis.useStore
115
117
  export const useThrottle: typeof globalThis.useThrottle
package/stx.d.ts CHANGED
@@ -481,6 +481,10 @@ declare function useAsync<T>(_fn: () => Promise<T>): {
481
481
 
482
482
  declare function useLocalStorage<T>(_key: string, _defaultValue: T): StxSignal<T>
483
483
  declare function useSessionStorage<T>(_key: string, _defaultValue: T): StxSignal<T>
484
+ /** A value kept between visits (a phone app between launches) in a scope such as the signed-in account; a scope of false keeps nothing. */
485
+ declare function keptState<T>(_name: string, _initialValue: T, _options?: { scope?: string | number | false | null }): StxSignal<T>
486
+ /** Remove a scope's kept values, or every kept value. */
487
+ declare function forgetKeptState(_scope?: string | number | false | null): void
484
488
 
485
489
  /**
486
490
  * Options accepted by the auto-imported `useCookie` global.
@@ -915,6 +919,8 @@ interface StxRuntimeRegistry {
915
919
  useModel: typeof useModel
916
920
  useLocalStorage: typeof useLocalStorage
917
921
  useSessionStorage: typeof useSessionStorage
922
+ keptState: typeof keptState
923
+ forgetKeptState: typeof forgetKeptState
918
924
  useEventListener: typeof useEventListener
919
925
  useScrollLock: typeof useScrollLock
920
926
  useWebSocket: typeof useWebSocket
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$h as d,Yh as a,Zh as b,_h as c,ai as e,bi as f,ci as g,di as h}from"./chunk-ys4hpkrp.js";import"./chunk-y32dbdta.js";import"./chunk-n0hrb3ek.js";export{d as v,a as useForm,g as processHasErrorsDirective,h as processFormValidationDirectives,f as processErrorsDirective,e as processErrorDirective,b as defineForm,c as Validator};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as Qn,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Rn,Db as Zo,Dc as eq,Dd as er,De as ks,E as Tl,Ea as Sn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as Ul,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as Vl,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Zn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as _n,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as $n,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,N as am,Na as co,Nb as op,Nc as oq,Nd as or,O as bm,Oa as eo,Ob as pp,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as qp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Kr,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Lr,da as sm,db as vo,dc as Gp,dd as Gq,de as Mr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Ho,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Io,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as rn,pb as Jo,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as sn,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as tn,rb as Mo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as No,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as Oo,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Ro,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as So,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as To,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-pxy0wtn3.js";import{Le as hp,Me as ip,Ne as jp,Oe as kp,Pe as lp,Qe as mp,Re as np}from"./chunk-fb2cy0xx.js";import{Se as Fo,Te as Go}from"./chunk-7hb89n3z.js";import{Ue as Lo}from"./chunk-khh1d2a9.js";import{Ve as qn}from"./chunk-rxf0264w.js";import{We as Wn,Xe as Xn,Ye as Yn,Ze as Qo}from"./chunk-1wm6zqj5.js";import{$e as dl,_e as cl,af as el,bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql}from"./chunk-n0d7nwhd.js";import{nf as Hl,of as Il,pf as Jl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl}from"./chunk-dct8xw04.js";import{Af as Gl,zf as Fl}from"./chunk-wf45k2yw.js";import{Bf as rl,Cf as sl,Df as tl,Ef as ul,Ff as vl,Gf as wl,Hf as xl,Jf as yl,Kf as zl,Lf as Al,Mf as Bl,Nf as Cl,Of as Dl,Rf as El}from"./chunk-efsr5fbm.js";import{Sf as _m,Tf as $m,Uf as an,Vf as bn,Wf as cn,Xf as pn}from"./chunk-ehhqy624.js";import{$f as Hm,Yf as Em,Zf as Fm,_f as Gm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as dn,ng as en,og as fn,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on}from"./chunk-4byxvkzn.js";import{xg as Um,yg as Vm}from"./chunk-0knxnyq6.js";import{Ag as Fn,Bg as Gn,Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,zg as En}from"./chunk-634gaa9d.js";import{Lg as ui,Mg as vi,Ng as wi,Og as xi,Pg as yi,Qg as zi}from"./chunk-jzq847yd.js";import{Rg as Pj,Sg as Qj,Tg as Rj,Xg as Sj,Yg as Tj,Zg as Uj}from"./chunk-nptdshhw.js";import{$g as $j,_g as _j,ah as ak,bh as bk,ch as ck,dh as dk,eh as ek,fh as fk,gh as gk,hh as hk,ih as ik}from"./chunk-k7f7391g.js";import{jh as Fj,kh as Gj,lh as Hj,mh as Ij,nh as Jj,ph as Kj,qh as Lj,rh as Mj,sh as Nj,th as Oj}from"./chunk-bcpjhcpn.js";import{uh as Ak,wh as Bk}from"./chunk-y4zddt5r.js";import{Ch as Ph,Dh as Qh,Eh as Rh,Fh as Sh,Gh as Th,Hh as Uh}from"./chunk-g7bpkpd4.js";import{Jh as Vh,Kh as Wh,Lh as Xh,Mh as Yh,Nh as Zh,Oh as _h,Ph as $h,Qh as ai,Rh as bi,Sh as ci,Th as di,Uh as ei,Vh as fi,Wh as gi}from"./chunk-k33778kc.js";import{$h as ki,Yh as hi,Zh as ii,_h as ji}from"./chunk-ys4hpkrp.js";import{ei as li}from"./chunk-g1vxsvqv.js";import{hi as oh}from"./chunk-rc159ysy.js";import{ii as ph}from"./chunk-fqq5k9ve.js";import{ji as qh,ki as rh}from"./chunk-ya5m5vbn.js";import{li as sh,mi as th,ni as uh,oi as vh,pi as wh,qi as xh}from"./chunk-y4nzmkea.js";import{ri as yh,si as zh,ti as Ah,ui as Bh,vi as Ch}from"./chunk-7kw3grq5.js";import{Ai as Hh,wi as Dh,xi as Eh,yi as Fh,zi as Gh}from"./chunk-c79nfdyj.js";import{Bi as Ih,Ci as Jh,Di as Kh,Ei as Lh,Fi as Mh,Gi as Nh,Hi as Oh}from"./chunk-ej8mv2k6.js";import{Ii as mh,Ji as nh}from"./chunk-dj9capvb.js";import"./chunk-ra1s4s6b.js";import{Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e,_i as af}from"./chunk-5y9tbnzb.js";import{$i as sf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf,pj as If}from"./chunk-ats1a74d.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,Jj as rf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-y32dbdta.js";import{Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf,Xj as Wf}from"./chunk-1t80az59.js";import{pk as Er,qk as Fr,rk as Gr,sk as Hr,tk as Ir,uk as Jr}from"./chunk-vg8xrkbg.js";import{Ak as Xm,Bk as Ym,Ck as Zm,vk as Uk,wk as Vk,xk as Wk,yk as Xk,zk as Wm}from"./chunk-32vxn9kd.js";import"./chunk-frp9fc7j.js";import"./chunk-atwrajjq.js";import{nl as ec,ol as fc,sl as gc}from"./chunk-jea2901n.js";import{ul as bc}from"./chunk-qjvny3wf.js";import{$l as Qb,$m as ld,$o as xg,$q as Aj,Al as Ca,Am as Ec,An as Qd,Ap as Yg,Aq as $i,Ar as Ck,Bl as Da,Bm as Fc,Bn as Rd,Bp as Zg,Bq as aj,Br as Dk,Cl as Ea,Cm as Gc,Cn as Sd,Co as Yf,Cp as _g,Cq as bj,Cr as Ek,Dl as Fa,Dm as Hc,Dn as Td,Dp as $g,Dq as cj,Dr as Fk,El as Ga,Em as Ic,En as Ud,Ep as ah,Eq as dj,Er as Gk,Fl as Ha,Fm as Jc,Fn as Vd,Fp as bh,Fq as ej,Fr as Hk,Gl as Ia,Gm as Kc,Gn as Wd,Gp as ch,Gq as fj,Gr as Ik,Hl as Ja,Hm as Lc,Hn as Xd,Hp as dh,Hq as gj,Hr as Jk,Il as Ka,Im as Mc,In as Yd,Ip as eh,Iq as hj,Ir as Kk,Jl as La,Jm as Nc,Jn as Zd,Jp as fh,Jq as ij,Kl as Ma,Km as Oc,Kn as _d,Ko as Zf,Kp as gh,Kq as jj,Ll as Na,Lm as Pc,Ln as $d,Lp as hh,Lq as kj,Ml as Oa,Mm as Qc,Mn as ae,Mo as _f,Mp as ih,Mq as lj,Nl as ib,Nm as _c,Nn as re,Np as jh,Nq as mj,Ol as jb,Om as $c,On as se,Oo as $f,Op as kh,Oq as nj,Pl as kb,Pm as ad,Pn as te,Po as ag,Pp as lh,Pq as oj,Ql as lb,Qm as bd,Qn as ue,Qo as bg,Qp as mi,Qq as pj,Rl as mb,Rm as cd,Rn as ve,Ro as cg,Rp as ni,Rq as qj,Sl as nb,Sm as dd,Sn as we,So as dg,Sq as rj,Tm as ed,Tn as xe,To as eg,Tq as sj,Un as ye,Uo as qg,Up as oi,Uq as tj,Vl as Kb,Vm as fd,Vn as ze,Vo as rg,Vq as uj,Wl as Lb,Wm as gd,Wn as Ae,Wo as sg,Wq as vj,Xl as Mb,Xm as hd,Xn as Be,Xo as tg,Xq as wj,Yl as Nb,Ym as id,Yn as Ce,Yo as ug,Yq as xj,Zl as Ob,Zm as jd,Zn as De,Zo as vg,Zq as yj,_l as Pb,_m as kd,_n as Ee,_o as wg,_q as zj,am as Ub,an as md,ao as Ie,ap as yg,ar as Bj,bm as Vb,bn as nd,bo as Je,bp as zg,br as Cj,cm as Wb,cn as od,co as Ke,cp as Ag,cr as Dj,dm as hc,dn as pd,do as Le,dp as Bg,dq as pi,dr as Ej,em as ic,en as qd,eo as Me,ep as Cg,eq as qi,er as Vj,fm as jc,fn as vd,fo as Ne,fp as Dg,fq as ri,fr as Wj,gm as kc,gn as wd,go as Oe,gp as Eg,gq as si,gr as Xj,hm as lc,hn as xd,hp as Fg,hq as ti,hr as Yj,im as mc,in as yd,ip as Gg,iq as Ai,ir as Zj,jm as nc,jn as zd,jp as Hg,jq as Bi,jr as jk,km as oc,kn as Ad,ko as bf,kp as Ig,kq as Ci,kr as kk,lm as pc,ln as Bd,lo as cf,lp as Jg,lq as Di,lr as lk,mm as qc,mn as Cd,mp as Kg,mq as Ei,mr as mk,nm as rc,nn as Dd,no as Xf,np as Lg,nq as Fi,nr as nk,om as sc,on as Ed,op as Mg,oq as Gi,or as ok,pm as tc,pn as Fd,pp as Ng,pq as Hi,pr as pk,qm as uc,qn as Gd,qp as Og,qq as Ii,qr as qk,rm as vc,rn as Hd,rp as Pg,rq as Ji,rr as rk,sm as wc,sn as Id,sp as Qg,sq as Ki,sr as sk,tm as xc,tn as Jd,tp as Rg,tq as Li,tr as tk,um as yc,un as Kd,up as Sg,uq as Mi,ur as uk,vl as xa,vm as zc,vn as Ld,vp as Tg,vq as Ni,vr as vk,wl as ya,wm as Ac,wn as Md,wp as Ug,wq as Oi,wr as wk,xl as za,xm as Bc,xn as Nd,xp as Vg,xq as Pi,xr as xk,yl as Aa,ym as Cc,yn as Od,yp as Wg,yq as Qi,yr as yk,zl as Ba,zm as Dc,zn as Pd,zp as Xg,zq as Ri,zr as zk}from"./chunk-pf80cwp6.js";import{$r as ca,Jr as M,Kr as N,Lr as O,Mr as P,Nr as Q,Or as R,Pr as S,Qr as T,Rr as U,Sr as V,Tr as W,Ur as X,Vr as Y,Wr as Z,Xr as _,Yr as $,Zr as aa,_r as ba,as as da,bs as ea,cs as fa,ds as ia,es as ja,fs as ka,gs as la,hs as ma,is as na,js as oa,ks as pa,ls as qa,ms as ra,ns as sa,os as ta,ps as ua,qs as va,rs as wa}from"./chunk-fc8471kb.js";import{ss as ga,ts as ha}from"./chunk-3wa1ybzj.js";import{us as Rb,vs as Sb,ws as Tb}from"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import{Ds as Si,Es as Ti,Fs as Ui,Gs as Vi,Hs as Wi,Is as Xi,Js as Yi,Ks as Zi,Ls as _i}from"./chunk-q9zsjgpf.js";import{bt as Rc,ct as Sc,dt as Tc,et as Uc,ft as Vc,ht as Wc,qt as Xc,rt as Yc,st as Zc}from"./chunk-q4jymqj3.js";import{tt as Xb,ut as Yb,vt as Zb,wt as _b,xt as $b,yt as ac}from"./chunk-n98anpe9.js";import{Ft as Fe,Ht as Ge,Kt as He}from"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import{Pt as cc,Qt as dc}from"./chunk-hestqebq.js";import{Ut as fg,Vt as gg,Wt as hg,Xt as ig,Yt as jg,Zt as kg,_t as lg,au as mg,bu as ng,cu as og,du as pg}from"./chunk-qsq1eha8.js";import{Au as ke,Bu as le,Cu as me,Du as ne,Eu as oe,Fu as pe,Gu as qe,eu as rd,fu as sd,gu as td,hu as ud,ru as be,su as ce,tu as de,uu as ee,vu as fe,wu as ge,xu as he,yu as ie,zu as je}from"./chunk-3rf705aq.js";import{$u as y,Hu as b,Iu as c,Ju as d,Ku as e,Lu as f,Mu as g,Nu as h,Ou as i,Pu as m,Qu as n,Ru as o,Su as p,Tu as q,Uu as r,Vu as s,Wu as t,Xu as u,Yu as v,Zu as w,_u as x,av as z,bv as A,cv as B,dv as C,ev as D,fv as E,gv as F,hv as G,iv as H,jv as I,kv as J,lv as K,mv as L}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import{Cv as ob,Dv as pb,Ev as qb,Fv as rb,Gv as sb,Hv as tb,Iv as ub,Jv as vb,Kv as wb,Lv as xb,Mv as yb,Nv as zb,Ov as Ab,Pv as Bb,Qv as Cb,Rv as Db,Sv as Eb,Tv as Fb,Uv as Gb,Vv as Hb,Wv as Ib,Xv as Jb}from"./chunk-8hqayvjh.js";import{$v as Pa,Aw as db,Bw as eb,Cw as fb,Dw as gb,Fw as hb,aw as Qa,dw as Ra,iw as Sa,jw as Ta,pw as Ua,qw as Va,rw as Wa,sw as Xa,tw as Ya,uw as Za,vw as _a,ww as $a,xw as ab,yw as bb,zw as cb}from"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import{Rw as j,Sw as k,Tw as l}from"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{ml as writeNetlifyConfig,en as writeManifest,Rl as writeImageManifest,xp as wrapComponentForHMR,es as withDefaults,zk as webComponentDirectiveHandler,mq as watermark,or as watchViews,$l as watchMultiple,am as watchEffect,_l as watch,Me as warmImagePlaceholders,nm as waitForStore,X as waitForLocale,ip as virtualPathFor,mk as videoDirective,G as validators,is as validated,Ce as validateValueEnhanced,pi as validateTemplate,Um as validateRouteRules,rq as validateParams,De as validateFormEnhanced,dr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,sn as validateComponentScripts,Qn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,mm as useStoreOrThrow,Pp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,om as useRouteParams,qm as useRouteParamOrThrow,pm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,sm as useMiddlewareValue,rm as useMiddlewareState,Zk as useLocalStorage,qp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,fr as uploadFiles,er as uploadFile,jm as updateInstance,pf as untrack,Vi as unregisterDirective,km as unmountInstance,Qc as unescapeHtml,mp as typecheckStxFiles,Di as transpileTypeScript,Tr as translate,Ba as transitionDirective,lc as transformAutoImports,Kn as toUsers,Jn as toUser,Xp as thumbnail,Yq as thumbHashToRGBA,Zq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,up as stxClientHelpers,kg as structuredDataDirective,Wr as stripLocalePrefix,Rm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,vo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Gn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Qo as startProductionServer,Lo as startInteractive,Fn as startBroadcasting,Yr as stampLocaleLayoutGroup,Ia as staggerDirective,pq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Nm as spaNavVaryHeaders,jp as sourcePathFor,wq as smartBatchSign,Hi as slotContentHasExpressions,uq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,zq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,$p as sharpen,ls as shape,Zb as setStateDir,wm as setRouteParams,xm as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Tl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,os as serveStxFile,qs as serveMultipleStxFiles,Lk as serveMarkdownFile,$o as serveFile,rs as serveApp,_o as serve,Ap as serializeState,gn as serializeSetCookie,bq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,fq as saturation,sq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,kn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,hm as runHooks,Mr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,gq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Sr as resolveI18n,Vp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,zp as resetHMRHandler,o as resetErrorConfig,gs as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,mr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,vr as renderToString,wr as renderToStream,xr as renderToDOM,Xq as renderThumbhashToCanvas,Jr as renderTemplateString,Hr as renderTemplate,Ir as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Hq as renderProtectedVideo,Gq as renderProtectedImg,tq as renderMediaUpload,Gr as renderMarkdownView,Ym as renderLayoutTypes,Vj as renderImgComponent,Hl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,pr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Kp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Rp as registerStoresClient,um as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Tn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Xl as ref,Do as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,Yl as reactive,kq as quality,Eq as pruneSignatureCache,Oj as pruneCache,sf as provide,Fr as protectCodeBlocks,fs as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Pm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Iq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Jl as processImageComponents,wl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ms as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,pp as preloadIslandHandlers,Ne as preloadIconCollection,Bn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Tp as parseUrl,_q as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Jq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Il as parseImageComponent,hn as parseFormBody,Cd as parseExpressionWithFilters,Un as parseDefaults,Ao as parseCookies,Gm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,hs as optional,Cn as optimizeTemplate,Ol as optimizeImage,Pl as optimizeDirectory,js as oneOf,sg as onceStore,em as onUpdated,_c as onUpdate,gm as onUnmounted,Bm as onServer,cm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Am as onClient,dm as onBeforeUpdate,fm as onBeforeUnmount,bm as onBeforeMount,Nh as onActivated,Tq as observeElement,Eo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,Xn as negotiateEncoding,Ua as navigateTo,im as mountInstance,Ea as motionDirective,Md as moderateCspPreset,An as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Up as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Vr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,fn as loadManifest,Pq as loadElement,Hn as loadChannels,Lb as listensPassively,as as lintStxStrict,Rq as lazyLoadAll,Qq as lazyLoad,Ha as keyframeDirective,tr as jsxs,ur as jsxDEV,sr as jsx,Co as jsonResponse,Ye as islandDirective,l as isTest,Sm as isSpaNavigation,Lm as isSpaNavRequest,xq as isSignatureValid,nf as isSignal,ul as isSharpAvailable,oo as isServerEnvironment,ym as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Mq as isNativeLazySupported,Er as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Nq as isIntersectionObserverSupported,Cl as isImageFile,vl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,no as isEdgeEnvironment,bs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Wn as isCompressible,zm as isClient,Fh as isAsyncComponent,jn as isActionableMethod,cq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Rr as injectThemeBootstrap,ig as injectSeoTags,Or as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,tm as initStoreRegistry,pl as initNetlify,rp as initLoadingIndicator,Oq as initLazyLoading,Ko as initFile,Wq as initBlurUp,ar as initAllBlurUp,Zj as imgDirective,Ml as imageDirective,nn as hydrateTemplateStream,mn as hydrateTemplate,op as hydrateIslands,ai as hydrateIsland,on as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Hp as hydrate,Zo as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Mp as hasStore,xc as hasPlaceholders,nl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Fl as handleImageRequest,zf as handleError,Br as h,Bl as groupVariantsByFormat,aq as grayscale,So as gitHash,un as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,il as getTotalSize,yq as getTimeUntilExpiry,mh as getStoreScript,Np as getStoreNames,Lp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Dl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,xl as getImageMetadata,Fe as getImageDelivery,Gp as getHydrationRuntime,vm as getHydratedStoreState,Sk as getHmrServer,be as getHead,yp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Al as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Ul as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Cq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,En as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,hr as generateVideoPreview,Ee as generateValidationScript,ir as generateUploadRuntime,vn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,fo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Bp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,yl as generateSrcSet,ek as generateSpriteSheet,qr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,zl as generateSizes,mg as generateSitemapIndex,Pr as generateSitemap,Lq as generateSimpleMediaPicker,Fq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Qr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,jl as generateNetlifyToml,kr as generateMinifiedMediaRuntime,jr as generateMediaRuntime,Kq as generateMediaManagerEmbed,dn as generateManifest,tp as generateLoadingIndicatorHtml,Vq as generateLazyLoadRuntime,Zm as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,gr as generateImagePreview,Ql as generateImageManifest,Fp as generateHydrationScript,af as generateHydrationRuntime,Ip as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,wp as generateHMRClientScript,fk as generateHLSManifest,Cp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ko as generateDocs,go as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,eo as generateComponentsDocs,Wh as generateComponentManifest,bo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,lm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,br as generateBlurUpRuntime,cr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,np as formatTypecheckDiagnostics,gp as formatTypeErrors,Ho as formatStxContent,hl as formatSize,Ta as formatRoutes,Io as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Nr as formatDoctorReport,ho as formatDocsAsMarkdown,jo as formatDocsAsJson,io as formatDocsAsHtml,jq as format,zn as foldConstants,iq as flipVertical,hq as flipHorizontal,_m as fingerprint,lp as findStxModuleDeclarations,kp as findRuntimeTypeDeclarations,Lr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,wn as findDeadCode,wn as findDeadBranches,Hm as findContainerRegion,co as findComponentFiles,ps as findCommonDir,gl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Dp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Tm as extractContainerContent,$n as extractComponentProps,Xh as extractComponentName,ao as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,yn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,Zn as enableDevTools,xn as eliminateDeadCode,ff as effect,qq as dprUrls,lo as docsCommand,ec as discoverServerApi,Xm as discoverLayoutNames,Uq as disconnectObserver,_n as disableDevTools,F as devHelpers,Om as detectShell,mo as detectRuntime,kl as detectProjectConfig,rj as detectFormat,rn as detectBuildMode,ef as derived,ol as deploy,Gk as defineStxConfig,Qp as defineStore,Bf as defineSlots,$r as defineSiteConfig,ds as definePropsWithValidation,cs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Dr as defineCustomElement,Po as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Ro as defineApiHandler,lr as defaultMediaConfig,Sl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,ns as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Km as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,$q as crossfadeTransition,Wp as crop,Ph as createVirtualList,lk as createVideoDirective,yo as createVercelHandler,dp as createTypeChecker,fa as createTranslateFilter,uo as createTextEncoderStream,Cr as createStxApp,to as createStreamingResponse,We as createStreamRenderer,Op as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Wl as createScope,zh as createSSRSuspense,bf as createRouter,Vm as createRouteRuleResolver,eb as createRouteLocation,bp as createRoute,Xl as createRef,Yl as createReactive,Df as createProvideContext,Uo as createProject,Oo as createProductionBuild,tc as createPlaceholder,Dn as createOptimizedBuild,zo as createNetlifyHandler,cl as createNetlifyClient,fb as createMiddlewareContext,ap as createMiddleware,Sq as createLazyObserver,Jh as createKeepAliveCache,qo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Nl as createImagePlugin,Gl as createImageHandler,Ll as createImageDirective,nb as createHeatmapAggregator,fl as createFileManifest,po as createEnvAccessor,z as createEnhancedError,so as createEdgeHandler,ro as createEdgeCache,Ni as createDetailedErrorMessage,xo as createDenoHandler,ll as createDefaultNetlifyConfig,Zd as createCspHeaders,Bo as createCookie,Zl as createComputed,Vl as createComponentInstance,wo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Cr as createApp,Ka as createAnimationTimeline,Zp as cover,_f as convertToCommonJS,eq as contrast,Yp as contain,y as consoleError,m as configureErrorHandling,Fk as config,Zl as computed,Yn as compressResponse,Bg as composerPattern,Ag as composer,Qm as composeShellWithPage,Sn as componentDirective,Ii as componentClientSignalNames,cn as compileTemplate,a as collectRepeatedFlag,el as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Dq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Kl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,sp as cleanupLoadingIndicator,Em as classifyScript,Fm as classifyAllScripts,ep as checkTemplateFile,fp as checkTemplate,Uf as checkCache,Aq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Nn as channel,Go as captureScreenshots,Fo as captureScreenshot,Z as cancelPendingLoads,dl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,hp as buildVirtualSource,nr as buildViews,Sp as buildUrl,Qe as buildSuspenseResolveScript,_r as buildStaticSite,qb as buildRuntimeGlobalsDestructure,$m as buildRuntimeAsset,an as buildRouterAsset,Zr as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,pn as buildForProduction,Vn as buildComponentLibrary,Bq as buildAuthParams,qn as buildApp,Xr as buildAlternateLinks,No as build,Ln as broadcastPrivate,Mn as broadcastPresence,In as broadcast,dq as brightness,Tb as bracketDepths,_p as blur,Jb as blankInertHtmlRegions,vq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,lq as auto,ja as attributeValue,bn as assetTags,Mb as asInvocableStatement,ks as arrayOf,Ur as applyTranslations,Sj as applyTransformations,zi as applySlots,Rn as applyPropDefaults,oq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Mm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,tn as analyzeUsage,Cm as analyzeTemplate,Dm as analyzeProject,tn as analyzeDirectiveUsage,ed as analyticsDirective,Xo as addStore,Wo as addPage,Sd as addNonceToInlineContent,Yo as addLayout,Vo as addComponent,ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,cp as TemplateTypeChecker,Jo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,yr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Im as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mo as ProductionBuild,Ar as Portal,To as PROJECT_TEMPLATES,nq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Jp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Wm as LAYOUT_TYPES_FILE,Pj as ImageProcessorCache,El as ImageProcessingError,Ep as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,rr as Fragment,zr as For,Jm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,ql as DeployError,rl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,tl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,sl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,vp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Pn as BroadcastServer,On as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Kr as $path};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xv as a,yv as b}from"./chunk-y9f2csr0.js";import"./chunk-n0hrb3ek.js";export{a as transformStoreImports,b as stripModuleImports};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ho as b,io as c,jo as d}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import{tv as a}from"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Af as b,zf as a}from"./chunk-wf45k2yw.js";import"./chunk-efsr5fbm.js";import"./chunk-n0hrb3ek.js";export{a as handleImageRequest,b as createImageHandler};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Se as a,Te as b}from"./chunk-7hb89n3z.js";import"./chunk-n0hrb3ek.js";export{b as captureScreenshots,a as captureScreenshot};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kj as b,Lj as c,Mj as d,Nj as e,Oj as f,Pj as g,Qj as h,Rj as i,Sj as j,Tj as k,Uj as l,Vj as m,Wj as n,Xj as o}from"./chunk-1t80az59.js";import{ul as a}from"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Lt as a,Mt as b}from"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-n0hrb3ek.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Np as b,Op as c,Pp as d,Qp as e,no as a}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$k as b,_k as a,al as c,bl as d,cl as e,dl as f,el as g,fl as h,gl as i,hl as j,il as k,jl as l,kl as m,ll as n,ml as o}from"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import F from"fs";import y from"path";var U=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,g=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,D=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],H=3;function k(j,q){let J=y.resolve(y.dirname(q),j);for(let Q of D){let z=J+Q;try{if(F.statSync(z).isFile())return z}catch{}}return null}function K(j,q,J=0,Q=new Set){if(!q||J>=H)return!1;for(let z of j.matchAll(g)){let Z=k(z[1],q);if(!Z||Q.has(Z))continue;Q.add(Z);let $;try{$=F.readFileSync(Z,"utf8")}catch{continue}if(U.test($))return!0;if(K($,Z,J+1,Q))return!0}return!1}var Y=["batch","clearServerData","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","useDocumentVisibility","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","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"],d=["onMount","onDestroy"];function p(j="const",q=[],J){let Q=q.length?Y.filter((z)=>!q.includes(z)):Y;if(J!==void 0)Q=Q.filter((z)=>{let Z=z.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${Z}(?![\\w$])`).test(J)});return`${j} { ${Q.join(", ")} } = window.stx;`}var x=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"],T={useServerData:{category:"server-only",reason:"loads and serializes request-scoped data from <script server>; clients consume it through a keyed useFetch/useAsyncData."},redirect:{category:"server-only",reason:"returns an HTTP Response for <script server>/edge/build; use navigate() on the client."},useAsyncData:{category:"browser-composable",reason:"inlined on demand from src/composables when a script references it; reachable, not a bare global."},Teleport:{category:"compile-time-directive",reason:"template tag resolved by processTeleportDirectives; not a script callable."},StxModalBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; drive open/close from the modal store."},StxToastBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; push toasts via the toast store."},useForm:{category:"browser-composable",reason:"reactive form primitive; lives in src/composables/use-form.ts and is inlined on demand when a <script client> references it (#1846)."},defineForm:{category:"browser-composable",reason:"deprecated alias of useForm, kept for a minor (#1843). Same delivery path \u2014 inlined on demand from src/composables/use-form.ts."},validateFields:{category:"isomorphic-import",reason:"pure validation helper; import it directly, not auto-delivered to <script client> (per client-api-delivery.test.ts)."},validateField:{category:"isomorphic-import",reason:"singular pure validation helper; same explicit-import boundary as validateFields."}},O=Y.filter((j)=>!x.includes(j));function P(j){if(!j)return!1;return O.some((q)=>new RegExp(`\\b${q}\\s*(?:<[^>]*>)?\\s*\\(`).test(j))}var C=[/@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/],u=/\s@[a-z][\w.:-]*\s*=/i;function _(j,q){if(!j)return!1;let J=X(j);return G(J,q)}function G(j,q){if(C.some((J)=>J.test(j)))return!0;if(P(j))return!0;return M(j,q)}function M(j,q){if(!q)return!1;for(let J of j.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(K(J[1],q))return!0;return!1}function E(j,q){if(!j)return!1;let J=X(j);return u.test(J)||G(J,q)}var b=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function c(j){return b.includes(j.toLowerCase())}var V=["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"],f=["x-init","x-transition","x-effect","x-on"],r=[...V,...f];function h(){return`{${V.map((j)=>`'${j}':1`).join(",")}}`}var L=["class","style","text","html","show","model","if","ref"];function o(){return`{${L.map((j)=>j==="if"?"'if':1":`${j}:1`).join(",")}}`}var B=["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","keydown","keyup","keypress","input","change","submit","focus","blur","scroll","resize","touchstart","touchend","touchmove","contextmenu","wheel","pointerdown","pointerup","pointermove"];function i(){return`/^(${B.join("|")})/`}function s(j){return B.some((q)=>j===q||j.startsWith(`${q}.`))}var S=65536,v=4,w=new Map;function m(){w.clear()}function X(j){if(!j)return j;if(!j.includes("<!--")&&!/<(?:pre|code)\b/i.test(j))return j;let q=j.length>=S;if(q){let z=w.get(j);if(z!==void 0)return z}let J=(z)=>z.replace(/(<[^>]*>)|([^<]+)/g,(Z,$,W)=>$??" ".repeat(W.length)),Q=j.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/<!--[\s\S]*?-->/g,(z)=>" ".repeat(z.length));if(q){while(w.size>=v){let z=w.keys().next();if(z.done)break;w.delete(z.value)}w.set(j,Q)}return Q}
3
- export{K as Bv,Y as Cv,d as Dv,p as Ev,x as Fv,T as Gv,O as Hv,P as Iv,_ as Jv,E as Kv,b as Lv,c as Mv,V as Nv,f as Ov,r as Pv,h as Qv,L as Rv,o as Sv,B as Tv,i as Uv,s as Vv,m as Wv,X as Xv};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ii as a,Ji as b}from"./chunk-dj9capvb.js";import"./chunk-ra1s4s6b.js";import"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Av as b,zv as a}from"./chunk-mvnjpwes.js";import"./chunk-n0hrb3ek.js";export{b as warnUnbalancedTags,a as findUnbalancedTags};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ze as a}from"./chunk-1wm6zqj5.js";import"./chunk-4byxvkzn.js";import"./chunk-0knxnyq6.js";import"./chunk-jea2901n.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{a as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ji as a,ki as b}from"./chunk-ya5m5vbn.js";import"./chunk-n0hrb3ek.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ri as a,si as b,ti as c,ui as d,vi as e}from"./chunk-7kw3grq5.js";import"./chunk-n0hrb3ek.js";export{c as renderSSRSuspense,a as processSuspenseDirectives,e as generateSuspenseRuntime,d as generateSuspenseCSS,b as createSSRSuspense};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ei as a}from"./chunk-g1vxsvqv.js";import"./chunk-n0hrb3ek.js";export{a as rewriteImagesWithSiblings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h,Re as i}from"./chunk-fb2cy0xx.js";import"./chunk-rc159ysy.js";import"./chunk-ra1s4s6b.js";import"./chunk-atwrajjq.js";import"./chunk-jea2901n.js";import"./chunk-qjvny3wf.js";import{Rp as a,Up as b}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ii as a}from"./chunk-fqq5k9ve.js";import"./chunk-n0hrb3ek.js";export{a as processDeferDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Am as g,Bm as h,Cm as i,Dm as j,Em as k,Fm as l,Gm as m,Hm as n,Im as o,Jm as p,Km as q,Lm as r,Mm as s,um as a,vm as b,wm as c,xm as d,ym as e,zm as f}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Qo as a,Ro as b,So as c,To as d}from"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ni as a,Oi as b,Pi as c,Qi as d,Ri as e,Si as f,Ti as g,Ui as h,Vi as i,Wi as j,Xi as k,Yi as l,Zi as m,_i as n}from"./chunk-5y9tbnzb.js";import"./chunk-pf80cwp6.js";import"./chunk-fc8471kb.js";import"./chunk-3wa1ybzj.js";import"./chunk-89tp5zsn.js";import"./chunk-y33pm4g5.js";import"./chunk-q9zsjgpf.js";import"./chunk-q4jymqj3.js";import"./chunk-n98anpe9.js";import"./chunk-y70wabha.js";import"./chunk-hbcf36nw.js";import"./chunk-hestqebq.js";import"./chunk-qsq1eha8.js";import"./chunk-3rf705aq.js";import"./chunk-3ha78evt.js";import"./chunk-y9f2csr0.js";import"./chunk-mvnjpwes.js";import"./chunk-8hqayvjh.js";import"./chunk-5mh3fpha.js";import"./chunk-zn70s4gs.js";import"./chunk-8ph7mee2.js";import"./chunk-n0hrb3ek.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};