@qwik.dev/core 2.0.0-beta.21 → 2.0.0-beta.23

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.
@@ -1,19 +1,19 @@
1
- function jt(e = {}) {
1
+ function Lt(e = {}) {
2
2
  function n(h) {
3
3
  if (typeof h != "string")
4
4
  throw new TypeError("Path must be a string. Received " + JSON.stringify(h));
5
5
  }
6
6
  function i(h, c) {
7
- let m = "", k = 0, u = -1, b = 0, f;
7
+ let m = "", k = 0, u = -1, b = 0, p;
8
8
  for (let I = 0; I <= h.length; ++I) {
9
9
  if (I < h.length)
10
- f = h.charCodeAt(I);
10
+ p = h.charCodeAt(I);
11
11
  else {
12
- if (f === 47)
12
+ if (p === 47)
13
13
  break;
14
- f = 47;
14
+ p = 47;
15
15
  }
16
- if (f === 47) {
16
+ if (p === 47) {
17
17
  if (!(u === I - 1 || b === 1)) if (u !== I - 1 && b === 2) {
18
18
  if (m.length < 2 || k !== 2 || m.charCodeAt(m.length - 1) !== 46 || m.charCodeAt(m.length - 2) !== 46) {
19
19
  if (m.length > 2) {
@@ -31,7 +31,7 @@ function jt(e = {}) {
31
31
  } else
32
32
  m.length > 0 ? m += "/" + h.slice(u + 1, I) : m = h.slice(u + 1, I), k = I - u - 1;
33
33
  u = I, b = 0;
34
- } else f === 46 && b !== -1 ? ++b : b = -1;
34
+ } else p === 46 && b !== -1 ? ++b : b = -1;
35
35
  }
36
36
  return m;
37
37
  }
@@ -42,8 +42,8 @@ function jt(e = {}) {
42
42
  const o = function(...c) {
43
43
  let m = "", k = !1, u;
44
44
  for (let b = c.length - 1; b >= -1 && !k; b--) {
45
- let f;
46
- b >= 0 ? f = c[b] : (u === void 0 && (e && typeof e.cwd == "function" ? u = e.cwd() : typeof process < "u" && typeof process.cwd == "function" ? u = process.cwd() : u = "/"), f = u), n(f), f.length !== 0 && (m = f + "/" + m, k = f.charCodeAt(0) === 47);
45
+ let p;
46
+ b >= 0 ? p = c[b] : (u === void 0 && (e && typeof e.cwd == "function" ? u = e.cwd() : typeof process < "u" && typeof process.cwd == "function" ? u = process.cwd() : u = "/"), p = u), n(p), p.length !== 0 && (m = p + "/" + m, k = p.charCodeAt(0) === 47);
47
47
  }
48
48
  return m = i(m, !k), k ? m.length > 0 ? "/" + m : "/" : m.length > 0 ? m : ".";
49
49
  }, g = function(c) {
@@ -62,29 +62,29 @@ function jt(e = {}) {
62
62
  n(u), u.length > 0 && (m === void 0 ? m = u : m += "/" + u);
63
63
  }
64
64
  return m === void 0 ? "." : g(m);
65
- }, p = function(c, m) {
65
+ }, f = function(c, m) {
66
66
  if (n(c), n(m), c === m || (c = o(c), m = o(m), c === m))
67
67
  return "";
68
68
  let k = 1;
69
69
  for (; k < c.length && c.charCodeAt(k) === 47; ++k)
70
70
  ;
71
71
  const u = c.length, b = u - k;
72
- let f = 1;
73
- for (; f < m.length && m.charCodeAt(f) === 47; ++f)
72
+ let p = 1;
73
+ for (; p < m.length && m.charCodeAt(p) === 47; ++p)
74
74
  ;
75
- const S = m.length - f, q = b < S ? b : S;
75
+ const S = m.length - p, q = b < S ? b : S;
76
76
  let D = -1, P = 0;
77
77
  for (; P <= q; ++P) {
78
78
  if (P === q) {
79
79
  if (S > q) {
80
- if (m.charCodeAt(f + P) === 47)
81
- return m.slice(f + P + 1);
80
+ if (m.charCodeAt(p + P) === 47)
81
+ return m.slice(p + P + 1);
82
82
  if (P === 0)
83
- return m.slice(f + P);
83
+ return m.slice(p + P);
84
84
  } else b > q && (c.charCodeAt(k + P) === 47 ? D = P : P === 0 && (D = 0));
85
85
  break;
86
86
  }
87
- const A = c.charCodeAt(k + P), G = m.charCodeAt(f + P);
87
+ const A = c.charCodeAt(k + P), G = m.charCodeAt(p + P);
88
88
  if (A !== G)
89
89
  break;
90
90
  A === 47 && (D = P);
@@ -92,17 +92,17 @@ function jt(e = {}) {
92
92
  let $ = "";
93
93
  for (P = k + D + 1; P <= u; ++P)
94
94
  (P === u || c.charCodeAt(P) === 47) && ($.length === 0 ? $ += ".." : $ += "/..");
95
- return $.length > 0 ? $ + m.slice(f + D) : (f += D, m.charCodeAt(f) === 47 && ++f, m.slice(f));
95
+ return $.length > 0 ? $ + m.slice(p + D) : (p += D, m.charCodeAt(p) === 47 && ++p, m.slice(p));
96
96
  }, t = function(c) {
97
97
  if (n(c), c.length === 0)
98
98
  return ".";
99
99
  let m = c.charCodeAt(0);
100
100
  const k = m === 47;
101
101
  let u = -1, b = !0;
102
- for (let f = c.length - 1; f >= 1; --f)
103
- if (m = c.charCodeAt(f), m === 47) {
102
+ for (let p = c.length - 1; p >= 1; --p)
103
+ if (m = c.charCodeAt(p), m === 47) {
104
104
  if (!b) {
105
- u = f;
105
+ u = p;
106
106
  break;
107
107
  }
108
108
  } else
@@ -112,35 +112,35 @@ function jt(e = {}) {
112
112
  if (m !== void 0 && typeof m != "string")
113
113
  throw new TypeError('"ext" argument must be a string');
114
114
  n(c);
115
- let k = 0, u = -1, b = !0, f;
115
+ let k = 0, u = -1, b = !0, p;
116
116
  if (m !== void 0 && m.length > 0 && m.length <= c.length) {
117
117
  if (m.length === c.length && m === c)
118
118
  return "";
119
119
  let I = m.length - 1, S = -1;
120
- for (f = c.length - 1; f >= 0; --f) {
121
- const q = c.charCodeAt(f);
120
+ for (p = c.length - 1; p >= 0; --p) {
121
+ const q = c.charCodeAt(p);
122
122
  if (q === 47) {
123
123
  if (!b) {
124
- k = f + 1;
124
+ k = p + 1;
125
125
  break;
126
126
  }
127
127
  } else
128
- S === -1 && (b = !1, S = f + 1), I >= 0 && (q === m.charCodeAt(I) ? --I === -1 && (u = f) : (I = -1, u = S));
128
+ S === -1 && (b = !1, S = p + 1), I >= 0 && (q === m.charCodeAt(I) ? --I === -1 && (u = p) : (I = -1, u = S));
129
129
  }
130
130
  return k === u ? u = S : u === -1 && (u = c.length), c.slice(k, u);
131
131
  } else {
132
- for (f = c.length - 1; f >= 0; --f)
133
- if (c.charCodeAt(f) === 47) {
132
+ for (p = c.length - 1; p >= 0; --p)
133
+ if (c.charCodeAt(p) === 47) {
134
134
  if (!b) {
135
- k = f + 1;
135
+ k = p + 1;
136
136
  break;
137
137
  }
138
- } else u === -1 && (b = !1, u = f + 1);
138
+ } else u === -1 && (b = !1, u = p + 1);
139
139
  return u === -1 ? "" : c.slice(k, u);
140
140
  }
141
141
  }, w = function(c) {
142
142
  n(c);
143
- let m = -1, k = 0, u = -1, b = !0, f = 0;
143
+ let m = -1, k = 0, u = -1, b = !0, p = 0;
144
144
  for (let I = c.length - 1; I >= 0; --I) {
145
145
  const S = c.charCodeAt(I);
146
146
  if (S === 47) {
@@ -150,11 +150,11 @@ function jt(e = {}) {
150
150
  }
151
151
  continue;
152
152
  }
153
- u === -1 && (b = !1, u = I + 1), S === 46 ? m === -1 ? m = I : f !== 1 && (f = 1) : m !== -1 && (f = -1);
153
+ u === -1 && (b = !1, u = I + 1), S === 46 ? m === -1 ? m = I : p !== 1 && (p = 1) : m !== -1 && (p = -1);
154
154
  }
155
155
  return m === -1 || u === -1 || // We saw a non-dot character immediately before the dot
156
- f === 0 || // The (right-most) trimmed path component is exactly '..'
157
- f === 1 && m === u - 1 && m === k + 1 ? "" : c.slice(m, u);
156
+ p === 0 || // The (right-most) trimmed path component is exactly '..'
157
+ p === 1 && m === u - 1 && m === k + 1 ? "" : c.slice(m, u);
158
158
  }, x = function(c) {
159
159
  if (c === null || typeof c != "object")
160
160
  throw new TypeError(
@@ -175,7 +175,7 @@ function jt(e = {}) {
175
175
  let k = c.charCodeAt(0), u;
176
176
  const b = k === 47;
177
177
  b ? (m.root = "/", u = 1) : u = 0;
178
- let f = -1, I = 0, S = -1, q = !0, D = c.length - 1, P = 0;
178
+ let p = -1, I = 0, S = -1, q = !0, D = c.length - 1, P = 0;
179
179
  for (; D >= u; --D) {
180
180
  if (k = c.charCodeAt(D), k === 47) {
181
181
  if (!q) {
@@ -184,14 +184,14 @@ function jt(e = {}) {
184
184
  }
185
185
  continue;
186
186
  }
187
- S === -1 && (q = !1, S = D + 1), k === 46 ? f === -1 ? f = D : P !== 1 && (P = 1) : f !== -1 && (P = -1);
187
+ S === -1 && (q = !1, S = D + 1), k === 46 ? p === -1 ? p = D : P !== 1 && (P = 1) : p !== -1 && (P = -1);
188
188
  }
189
- return f === -1 || S === -1 || // We saw a non-dot character immediately before the dot
189
+ return p === -1 || S === -1 || // We saw a non-dot character immediately before the dot
190
190
  P === 0 || // The (right-most) trimmed path component is exactly '..'
191
- P === 1 && f === S - 1 && f === I + 1 ? S !== -1 && (I === 0 && b ? m.base = m.name = c.slice(1, S) : m.base = m.name = c.slice(I, S)) : (I === 0 && b ? (m.name = c.slice(1, f), m.base = c.slice(1, S)) : (m.name = c.slice(I, f), m.base = c.slice(I, S)), m.ext = c.slice(f, S)), I > 0 ? m.dir = c.slice(0, I - 1) : b && (m.dir = "/"), m;
191
+ P === 1 && p === S - 1 && p === I + 1 ? S !== -1 && (I === 0 && b ? m.base = m.name = c.slice(1, S) : m.base = m.name = c.slice(I, S)) : (I === 0 && b ? (m.name = c.slice(1, p), m.base = c.slice(1, S)) : (m.name = c.slice(I, p), m.base = c.slice(I, S)), m.ext = c.slice(p, S)), I > 0 ? m.dir = c.slice(0, I - 1) : b && (m.dir = "/"), m;
192
192
  }, s = "/", l = ":";
193
193
  return {
194
- relative: p,
194
+ relative: f,
195
195
  resolve: o,
196
196
  parse: _,
197
197
  format: x,
@@ -205,7 +205,7 @@ function jt(e = {}) {
205
205
  sep: s,
206
206
  win32: null,
207
207
  posix: {
208
- relative: p,
208
+ relative: f,
209
209
  resolve: o,
210
210
  parse: _,
211
211
  format: x,
@@ -222,7 +222,7 @@ function jt(e = {}) {
222
222
  }
223
223
  };
224
224
  }
225
- const Ut = {
225
+ const jt = {
226
226
  darwin: {
227
227
  arm64: [
228
228
  {
@@ -262,8 +262,8 @@ const Ut = {
262
262
  ]
263
263
  }
264
264
  };
265
- async function Bt() {
266
- const e = _t(), n = {
265
+ async function Ut() {
266
+ const e = Et(), n = {
267
267
  dynamicImport: (i) => {
268
268
  throw new Error(
269
269
  `Qwik Optimizer sys.dynamicImport() not implemented, trying to import: "${i}"`
@@ -279,17 +279,17 @@ async function Bt() {
279
279
  os: "unknown",
280
280
  env: e
281
281
  };
282
- if (n.path = jt(n), n.strictDynamicImport = n.dynamicImport = (i) => import(i), e !== "webworker" && e !== "browsermain")
282
+ if (n.path = Lt(n), n.strictDynamicImport = n.dynamicImport = (i) => import(i), e !== "webworker" && e !== "browsermain")
283
283
  try {
284
284
  n.path = await n.dynamicImport("node:path"), n.cwd = () => process.cwd(), n.os = process.platform;
285
285
  } catch {
286
286
  }
287
287
  return n;
288
288
  }
289
- async function At(e) {
290
- const n = _t();
289
+ async function Bt(e) {
290
+ const n = Et();
291
291
  if (n === "node" || n === "bun") {
292
- const i = Ut[process.platform];
292
+ const i = jt[process.platform];
293
293
  if (i) {
294
294
  const r = i[process.arch];
295
295
  if (r)
@@ -307,22 +307,22 @@ async function At(e) {
307
307
  }
308
308
  }
309
309
  if (n === "node" || n === "bun") {
310
- const i = await e.dynamicImport("node:url"), r = e.path.dirname(i.fileURLToPath(import.meta.url)), o = e.path.join(r, "..", "bindings", "qwik_wasm_bg.wasm"), g = await e.dynamicImport("../bindings/qwik.wasm.mjs"), a = await (await e.dynamicImport("node:fs")).promises.readFile(o), p = await WebAssembly.compile(a);
311
- return await g.default(p), g;
310
+ const i = await e.dynamicImport("node:url"), r = e.path.dirname(i.fileURLToPath(import.meta.url)), o = e.path.join(r, "..", "bindings", "qwik_wasm_bg.wasm"), g = await e.dynamicImport("../bindings/qwik.wasm.mjs"), a = await (await e.dynamicImport("node:fs")).promises.readFile(o), f = await WebAssembly.compile(a);
311
+ return await g.default(f), g;
312
312
  } else {
313
313
  const i = await e.dynamicImport("../bindings/qwik.wasm.mjs");
314
314
  return await i.default(), i;
315
315
  }
316
316
  }
317
- const _t = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof process < "u" && typeof global < "u" && process.versions && process.versions.node ? "node" : typeof self < "u" && typeof location < "u" && typeof navigator < "u" && typeof fetch == "function" && typeof WorkerGlobalScope == "function" && typeof self.importScripts == "function" ? "webworker" : typeof window < "u" && typeof document < "u" && typeof location < "u" && typeof navigator < "u" && typeof Window == "function" && typeof fetch == "function" ? "browsermain" : "unknown", Ft = async (e = {}) => {
318
- const n = e?.sys || await Bt(), i = e?.binding || await At(n);
317
+ const Et = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof process < "u" && typeof global < "u" && process.versions && process.versions.node ? "node" : typeof self < "u" && typeof location < "u" && typeof navigator < "u" && typeof fetch == "function" && typeof WorkerGlobalScope == "function" && typeof self.importScripts == "function" ? "webworker" : typeof window < "u" && typeof document < "u" && typeof location < "u" && typeof navigator < "u" && typeof Window == "function" && typeof fetch == "function" ? "browsermain" : "unknown", At = async (e = {}) => {
318
+ const n = e?.sys || await Ut(), i = e?.binding || await Bt(n);
319
319
  return {
320
320
  async transformModules(o) {
321
- return Rt(i, o);
321
+ return Ft(i, o);
322
322
  },
323
323
  sys: n
324
324
  };
325
- }, Rt = (e, n) => e.transform_modules($t(n)), $t = (e) => {
325
+ }, Ft = (e, n) => e.transform_modules(Rt(n)), Rt = (e) => {
326
326
  const n = {
327
327
  minify: "simplify",
328
328
  sourceMaps: !1,
@@ -343,16 +343,16 @@ const _t = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof
343
343
  return Object.entries(e).forEach(([i, r]) => {
344
344
  r != null && (n[i] = r);
345
345
  }), n.entryStrategy = e.entryStrategy?.type ?? "smart", n.manualChunks = e.entryStrategy?.manual ?? void 0, n;
346
- }, $r = {
347
- qwik: "2.0.0-beta.21-dev+c008e88"
348
- }, zt = (e, n = 0) => {
346
+ }, Rr = {
347
+ qwik: "2.0.0-beta.23-dev+03de42d"
348
+ }, $t = (e, n = 0) => {
349
349
  for (let i = 0; i < e.length; i++) {
350
350
  const r = e.charCodeAt(i);
351
351
  n = (n << 5) - n + r, n |= 0;
352
352
  }
353
353
  return Number(Math.abs(n)).toString(36);
354
- }, Ht = /* @__PURE__ */ new Set(["_chk", "_run", "_task", "_val"]);
355
- function Wt(e) {
354
+ }, zt = /* @__PURE__ */ new Set(["_chk", "_rsc", "_res", "_run", "_task", "_val"]);
355
+ function Ht(e) {
356
356
  const n = e.symbols;
357
357
  return Object.keys(n).sort((i, r) => {
358
358
  const o = n[i], g = n[r];
@@ -449,22 +449,22 @@ const Ve = [
449
449
  ].map((e) => `on${e.toLowerCase()}$`), Ze = ["useTask$", "useVisibleTask$", "component$", "useStyles$", "useStylesScoped$"].map(
450
450
  (e) => e.toLowerCase()
451
451
  );
452
- function Gt(e) {
452
+ function Wt(e) {
453
453
  return Object.keys(e.bundles).sort(je);
454
454
  }
455
- function Kt(e) {
456
- const n = Wt(e), i = {}, r = {};
455
+ function Gt(e) {
456
+ const n = Ht(e), i = {}, r = {};
457
457
  for (const d of n)
458
458
  i[d] = e.symbols[d], r[d] = e.mapping[d];
459
- const o = Gt(e), g = {};
459
+ const o = Wt(e), g = {};
460
460
  for (const d of o) {
461
461
  g[d] = e.bundles[d];
462
462
  const a = e.bundles[d];
463
463
  Array.isArray(a.imports) && a.imports.sort(je), Array.isArray(a.dynamicImports) && a.dynamicImports.sort(je);
464
- const p = [];
464
+ const f = [];
465
465
  for (const t of n)
466
- d === r[t] && p.push(t);
467
- p.length > 0 && (p.sort(je), a.symbols = p);
466
+ d === r[t] && f.push(t);
467
+ f.length > 0 && (f.sort(je), a.symbols = f);
468
468
  }
469
469
  return e.symbols = i, e.mapping = r, e.bundles = g, e;
470
470
  }
@@ -475,7 +475,7 @@ function et(e) {
475
475
  if (e != null && e.mapping != null && typeof e.mapping == "object" && e.symbols != null && typeof e.symbols == "object" && e.bundles != null && typeof e.bundles == "object")
476
476
  return e;
477
477
  }
478
- const Qt = (e, n) => {
478
+ const Kt = (e, n) => {
479
479
  let i = 0;
480
480
  if (e.symbols)
481
481
  for (const r of e.symbols) {
@@ -485,7 +485,7 @@ const Qt = (e, n) => {
485
485
  }
486
486
  return i;
487
487
  };
488
- function Jt(e) {
488
+ function Qt(e) {
489
489
  let n = 0;
490
490
  const i = [], r = [], o = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set();
491
491
  function a(s) {
@@ -504,16 +504,16 @@ function Jt(e) {
504
504
  }
505
505
  for (const s of Object.keys(e))
506
506
  o.has(s) || a(s);
507
- const p = /* @__PURE__ */ new Map();
507
+ const f = /* @__PURE__ */ new Map();
508
508
  r.forEach((s, l) => {
509
509
  for (const h of s)
510
- p.set(h, l);
510
+ f.set(h, l);
511
511
  });
512
512
  const t = Array.from({ length: r.length }, () => /* @__PURE__ */ new Set());
513
513
  for (const s of Object.keys(e)) {
514
- const l = p.get(s);
514
+ const l = f.get(s);
515
515
  for (const h of e[s].imports || []) {
516
- const c = p.get(h);
516
+ const c = f.get(h);
517
517
  l !== c && t[l].add(c);
518
518
  }
519
519
  }
@@ -547,8 +547,8 @@ function Jt(e) {
547
547
  e[h].total = l;
548
548
  }
549
549
  }
550
- const tt = /[/\\](core|qwik)[/\\]dist[/\\]preloader\.(|c|m)js$/, nt = /[/\\](core|qwik)[/\\]dist[/\\]core(\.min|\.prod)?\.(|c|m)js$/, rt = /[/\\](core|qwik)[/\\](dist[/\\])?qwikloader(\.debug)?\.[^/]*js$/, ot = /[/\\](core|qwik)[/\\]handlers\.(|c|m)js$/;
551
- function Yt(e, n, i, r, o, g, d) {
550
+ const tt = /[/\\](core|qwik)[/\\]dist[/\\]preloader\.(|c|m)js$/, nt = /[/\\](core|qwik)[/\\]dist[/\\]core(\.min|\.prod)?\.(|c|m)js$/, rt = /[/\\](core|qwik)[/\\](dist[/\\])?qwikloader(\.debug)?\.[^/]*js$/;
551
+ function Jt(e, n, i, r, o, g, d) {
552
552
  var _;
553
553
  const a = {
554
554
  version: "1",
@@ -569,7 +569,7 @@ function Yt(e, n, i, r, o, g, d) {
569
569
  assets: {},
570
570
  symbols: {},
571
571
  bundleGraph: void 0
572
- }, p = (s) => {
572
+ }, f = (s) => {
573
573
  const l = r[s];
574
574
  if (!l) {
575
575
  console.warn(`Client manifest generation: skipping external import "${s}"`);
@@ -577,12 +577,11 @@ function Yt(e, n, i, r, o, g, d) {
577
577
  }
578
578
  return d(l.fileName);
579
579
  };
580
- let t, v;
580
+ let t, v, w;
581
581
  for (const s of Object.values(r)) {
582
- const l = p(s.fileName);
583
- s.name === "core" && (t = l), s.name === "preloader" && (v = l);
582
+ const l = f(s.fileName);
583
+ s.name === "core" && (t = l), s.name === "preloader" && (v = l), s.name === "handlers" && (w = l);
584
584
  }
585
- let w;
586
585
  const x = new Set(n.map((s) => s.name));
587
586
  for (const s of Object.values(r)) {
588
587
  if (s.type === "asset") {
@@ -596,14 +595,14 @@ function Yt(e, n, i, r, o, g, d) {
596
595
  size: s.code.length,
597
596
  total: -1
598
597
  };
599
- for (const f of s.exports)
600
- x.has(f) && (!a.mapping[f] || s.exports.length !== 1) && (a.mapping[f] = l);
601
- const m = s.imports.filter((f) => s.code.includes(e.basename(f))).map((f) => p(f)).filter((f) => f !== v && f !== t).filter(Boolean);
598
+ for (const p of s.exports)
599
+ x.has(p) && (!a.mapping[p] || s.exports.length !== 1) && (a.mapping[p] = l);
600
+ const m = s.imports.filter((p) => s.code.includes(e.basename(p))).map((p) => f(p)).filter((p) => p !== v && p !== t && p !== w).filter(Boolean);
602
601
  m.length > 0 && (c.imports = m);
603
- const k = s.dynamicImports.filter((f) => s.code.includes(e.basename(f))).map((f) => p(f)).filter(Boolean);
604
- k.length > 0 && (c.dynamicImports = k), s.facadeModuleId && (tt.test(s.facadeModuleId) ? a.preloader = l : nt.test(s.facadeModuleId) ? a.core = l : rt.test(s.facadeModuleId) ? a.qwikLoader = l : ot.test(s.facadeModuleId) && (w = l));
605
- const b = (s.moduleIds || Object.keys(s.modules)).filter((f) => !f.startsWith("\0")).map((f) => e.relative(o.rootDir, f));
606
- b.length > 0 && (c.origins = b, !a.preloader && b.some((f) => tt.test(f)) && (a.preloader = l), !a.core && b.some((f) => nt.test(f)) && (a.core = l), !a.qwikLoader && b.some((f) => rt.test(f)) && (a.qwikLoader = l), !w && b.some((f) => ot.test(f)) && (w = l)), a.bundles[l] = c;
602
+ const k = s.dynamicImports.filter((p) => s.code.includes(e.basename(p))).map((p) => f(p)).filter(Boolean);
603
+ k.length > 0 && (c.dynamicImports = k), s.facadeModuleId && (tt.test(s.facadeModuleId) ? a.preloader = l : nt.test(s.facadeModuleId) ? a.core = l : rt.test(s.facadeModuleId) && (a.qwikLoader = l));
604
+ const b = (s.moduleIds || Object.keys(s.modules)).filter((p) => !p.startsWith("\0")).map((p) => e.relative(o.rootDir, p));
605
+ b.length > 0 && (c.origins = b, !a.preloader && b.some((p) => tt.test(p)) && (a.preloader = l), !a.core && b.some((p) => nt.test(p)) && (a.core = l), !a.qwikLoader && b.some((p) => rt.test(p)) && (a.qwikLoader = l)), a.bundles[l] = c;
607
606
  }
608
607
  for (const s of n) {
609
608
  const l = s.name, h = a.mapping[l];
@@ -626,7 +625,7 @@ function Yt(e, n, i, r, o, g, d) {
626
625
  };
627
626
  }
628
627
  if (w)
629
- for (const s of Ht)
628
+ for (const s of zt)
630
629
  a.symbols[s] = {
631
630
  origin: "Qwik core",
632
631
  displayName: s,
@@ -641,65 +640,65 @@ function Yt(e, n, i, r, o, g, d) {
641
640
  else
642
641
  console.error("Qwik core bundle not found, is Qwik actually used in this project?");
643
642
  for (const s of Object.values(a.bundles)) {
644
- const l = Qt(s, a);
643
+ const l = Kt(s, a);
645
644
  s.interactivity = l;
646
645
  }
647
- return Jt(a.bundles), Kt(a);
646
+ return Qt(a.bundles), Gt(a);
648
647
  }
649
- const Xt = 300, Vt = 0.5 / (Xt * 1024 / 8), Zt = (e) => {
648
+ const Yt = 300, Xt = 0.5 / (Yt * 1024 / 8), Vt = (e) => {
650
649
  const n = e.lastIndexOf("_");
651
650
  return n > -1 ? e.slice(n + 1) : e;
652
651
  };
653
- function en(e, n) {
652
+ function Zt(e, n) {
654
653
  const i = [];
655
654
  if (!e.bundles)
656
655
  return [];
657
656
  const r = { ...e.bundles };
658
- for (const [p, t] of Object.entries(e.mapping)) {
659
- if (p.startsWith("_") && p.length < 10)
657
+ for (const [f, t] of Object.entries(e.mapping)) {
658
+ if (f.startsWith("_") && f.length < 10)
660
659
  continue;
661
- const v = Zt(p);
660
+ const v = Vt(f);
662
661
  v && (r[v] = { dynamicImports: [t] });
663
662
  }
664
663
  if (n) {
665
- const p = { ...e, bundles: r };
664
+ const f = { ...e, bundles: r };
666
665
  for (const t of n) {
667
- const v = t(p);
666
+ const v = t(f);
668
667
  v && Object.assign(r, v);
669
668
  }
670
669
  }
671
- for (const p of Object.keys(r)) {
672
- const t = r[p], v = t.imports?.filter((x) => r[x]) || [], w = t.dynamicImports?.filter(
670
+ for (const f of Object.keys(r)) {
671
+ const t = r[f], v = t.imports?.filter((x) => r[x]) || [], w = t.dynamicImports?.filter(
673
672
  // we only want to include dynamic imports that belong to the app
674
673
  // e.g. not all languages supported by shiki
675
674
  (x) => r[x] && // either there are qrls
676
675
  (r[x].symbols || // or it's a dynamic import from the app source
677
676
  r[x].origins?.some((_) => !_.includes("node_modules")))
678
677
  ) || [];
679
- r[p] = {
678
+ r[f] = {
680
679
  ...t,
681
680
  imports: v,
682
681
  dynamicImports: w
683
682
  };
684
683
  }
685
684
  const o = new Set(Object.keys(r));
686
- for (const p of Object.keys(r)) {
687
- for (const t of r[p].imports)
685
+ for (const f of Object.keys(r)) {
686
+ for (const t of r[f].imports)
688
687
  o.delete(t);
689
- for (const t of r[p].dynamicImports)
688
+ for (const t of r[f].dynamicImports)
690
689
  o.delete(t);
691
690
  }
692
- for (const p of o) {
693
- const t = r[p];
694
- !t.imports?.length && !t.dynamicImports?.length && delete r[p];
691
+ for (const f of o) {
692
+ const t = r[f];
693
+ !t.imports?.length && !t.dynamicImports?.length && delete r[f];
695
694
  }
696
- const g = Object.keys(r), d = /* @__PURE__ */ new Map(), a = (p, t, v = /* @__PURE__ */ new Set()) => {
695
+ const g = Object.keys(r), d = /* @__PURE__ */ new Map(), a = (f, t, v = /* @__PURE__ */ new Set()) => {
697
696
  const w = r[t];
698
697
  for (const x of w.imports)
699
- p.has(x) && p.delete(x), v.has(x) || (v.add(x), a(p, x, v));
698
+ f.has(x) && f.delete(x), v.has(x) || (v.add(x), a(f, x, v));
700
699
  };
701
- for (const p of g) {
702
- const t = r[p], v = new Set(t.imports);
700
+ for (const f of g) {
701
+ const t = r[f], v = new Set(t.imports);
703
702
  for (const s of v)
704
703
  a(v, s);
705
704
  const w = new Set(t.dynamicImports), x = /* @__PURE__ */ new Map();
@@ -714,7 +713,7 @@ function en(e, n) {
714
713
  break;
715
714
  }
716
715
  }
717
- l.total > Vt && (h += h > 0.5 ? 0.02 : -0.02), l.total < 1e3 && (h += 0.15), x.set(s, Math.min(h, 0.99));
716
+ l.total > Xt && (h += h > 0.5 ? 0.02 : -0.02), l.total < 1e3 && (h += 0.15), x.set(s, Math.min(h, 0.99));
718
717
  }
719
718
  if (w.size > 0) {
720
719
  const s = Array.from(w).sort(
@@ -725,13 +724,13 @@ function en(e, n) {
725
724
  x.get(h) !== l && (l = x.get(h), v.add(-Math.round(l * 10))), v.add(h);
726
725
  }
727
726
  const _ = i.length;
728
- i.push(p);
727
+ i.push(f);
729
728
  for (let s = 0; s < v.size; s++)
730
729
  i.push(null);
731
- d.set(p, { index: _, deps: v });
730
+ d.set(f, { index: _, deps: v });
732
731
  }
733
- for (const p of g) {
734
- const t = d.get(p);
732
+ for (const f of g) {
733
+ const t = d.get(f);
735
734
  let { index: v, deps: w } = t;
736
735
  v++;
737
736
  for (const x of w) {
@@ -745,7 +744,7 @@ function en(e, n) {
745
744
  }
746
745
  return i;
747
746
  }
748
- async function tn(e, n, i) {
747
+ async function en(e, n, i) {
749
748
  const r = await e.dynamicImport("eslint");
750
749
  let o = new r.ESLint({ cache: !0 });
751
750
  if ((await o.calculateConfigForFile("no-real-file.tsx")).parser === null) {
@@ -768,18 +767,18 @@ async function tn(e, n, i) {
768
767
  o = new r.ESLint(a);
769
768
  }
770
769
  return {
771
- async lint(a, p, t) {
770
+ async lint(a, f, t) {
772
771
  try {
773
- const v = nn(t);
772
+ const v = tn(t);
774
773
  if (await o.isPathIgnored(v))
775
774
  return null;
776
- (await o.lintText(p, {
775
+ (await o.lintText(f, {
777
776
  filePath: v
778
777
  })).forEach((x) => {
779
778
  for (const _ of x.messages) {
780
779
  if (_.ruleId != null && !_.ruleId.startsWith("qwik/"))
781
780
  continue;
782
- const s = rn(x.filePath, _);
781
+ const s = nn(x.filePath, _);
783
782
  a.warn(s);
784
783
  }
785
784
  });
@@ -789,10 +788,10 @@ async function tn(e, n, i) {
789
788
  }
790
789
  };
791
790
  }
792
- function nn(e) {
791
+ function tn(e) {
793
792
  return e.split("?", 2)[0];
794
793
  }
795
- function rn(e, n) {
794
+ function nn(e, n) {
796
795
  return Object.assign(new Error(n.message), {
797
796
  id: e,
798
797
  plugin: "vite-plugin-eslint",
@@ -804,21 +803,21 @@ function rn(e, n) {
804
803
  stack: ""
805
804
  });
806
805
  }
807
- async function on(e, n) {
806
+ async function rn(e, n) {
808
807
  const i = n;
809
808
  let r = i.loc;
810
- if (!i.frame && !i.plugin && (r || (r = sn(i)), r && (i.loc = r, r.file))) {
809
+ if (!i.frame && !i.plugin && (r || (r = on(i)), r && (i.loc = r, r.file))) {
811
810
  const o = await e.dynamicImport("node:fs"), { normalizePath: g } = await e.dynamicImport("vite");
812
811
  i.id = g(i.loc.file);
813
812
  try {
814
813
  const d = o.readFileSync(i.loc.file, "utf-8");
815
- i.frame = ln(d, i.loc);
814
+ i.frame = an(d, i.loc);
816
815
  } catch {
817
816
  }
818
817
  }
819
818
  return n;
820
819
  }
821
- const sn = (e) => {
820
+ const on = (e) => {
822
821
  const n = e.stack;
823
822
  if (typeof n == "string") {
824
823
  const i = n.split(`
@@ -828,17 +827,17 @@ const sn = (e) => {
828
827
  if (/^\s+at/.test(o)) {
829
828
  const g = o.indexOf("/"), d = o.lastIndexOf(")", g);
830
829
  if (g > 0) {
831
- const p = o.slice(g, d).split(":"), t = it(p[p.length - 1]), v = it(p[p.length - 2]);
832
- return typeof t == "number" && typeof v == "number" ? (p.length -= 2, {
833
- file: p.join(":"),
830
+ const f = o.slice(g, d).split(":"), t = ot(f[f.length - 1]), v = ot(f[f.length - 2]);
831
+ return typeof t == "number" && typeof v == "number" ? (f.length -= 2, {
832
+ file: f.join(":"),
834
833
  line: v,
835
834
  column: t
836
- }) : typeof t == "number" ? (p.length -= 1, {
837
- file: p.join(":"),
835
+ }) : typeof t == "number" ? (f.length -= 1, {
836
+ file: f.join(":"),
838
837
  line: t,
839
838
  column: void 0
840
839
  }) : {
841
- file: p.join(":"),
840
+ file: f.join(":"),
842
841
  line: void 0,
843
842
  column: void 0
844
843
  };
@@ -846,36 +845,36 @@ const sn = (e) => {
846
845
  }
847
846
  }
848
847
  }
849
- }, Z = (e) => e.startsWith("\0"), it = (e) => {
848
+ }, Z = (e) => e.startsWith("\0"), ot = (e) => {
850
849
  try {
851
850
  return parseInt(e, 10);
852
851
  } catch {
853
852
  return;
854
853
  }
855
- }, Tt = /\r?\n/, st = 2;
856
- function an(e, n) {
854
+ }, _t = /\r?\n/, it = 2;
855
+ function sn(e, n) {
857
856
  if (typeof n == "number")
858
857
  return n;
859
858
  if (n.lo != null)
860
859
  return n.lo;
861
- const i = e.split(Tt), { line: r, column: o } = n;
860
+ const i = e.split(_t), { line: r, column: o } = n;
862
861
  let g = 0;
863
862
  for (let d = 0; d < r - 1 && d < i.length; d++)
864
863
  g += i[d].length + 1;
865
864
  return g + o;
866
865
  }
867
- function ln(e, n = 0, i) {
868
- n = an(e, n), i = i || n;
869
- const r = e.split(Tt);
866
+ function an(e, n = 0, i) {
867
+ n = sn(e, n), i = i || n;
868
+ const r = e.split(_t);
870
869
  let o = 0;
871
870
  const g = [];
872
871
  for (let d = 0; d < r.length; d++)
873
872
  if (o += r[d].length + 1, o >= n) {
874
- for (let a = d - st; a <= d + st || i > o; a++) {
873
+ for (let a = d - it; a <= d + it || i > o; a++) {
875
874
  if (a < 0 || a >= r.length)
876
875
  continue;
877
- const p = a + 1;
878
- g.push(`${p}${" ".repeat(Math.max(3 - String(p).length, 0))}| ${r[a]}`);
876
+ const f = a + 1;
877
+ g.push(`${f}${" ".repeat(Math.max(3 - String(f).length, 0))}| ${r[a]}`);
879
878
  const t = r[a].length;
880
879
  if (a === d) {
881
880
  const v = Math.max(n - (o - t) + 1, 0), w = Math.max(1, i > o ? t - v : i - n);
@@ -893,7 +892,7 @@ function ln(e, n = 0, i) {
893
892
  return g.join(`
894
893
  `);
895
894
  }
896
- function cn(e) {
895
+ function ln(e) {
897
896
  return e === "win32";
898
897
  }
899
898
  function Le(e) {
@@ -905,7 +904,7 @@ function Le(e) {
905
904
  params: new URLSearchParams(r)
906
905
  };
907
906
  }
908
- const dn = ["server"], un = [
907
+ const cn = ["server"], dn = [
909
908
  "onGet",
910
909
  "onPost",
911
910
  "onPut",
@@ -915,7 +914,7 @@ const dn = ["server"], un = [
915
914
  "onOptions",
916
915
  "onPatch",
917
916
  "onStaticGenerate"
918
- ], fn = [
917
+ ], un = [
919
918
  "useServer",
920
919
  "route",
921
920
  "server",
@@ -924,7 +923,7 @@ const dn = ["server"], un = [
924
923
  "zod$",
925
924
  "validator$",
926
925
  "globalAction$"
927
- ], pn = [
926
+ ], fn = [
928
927
  "useClient",
929
928
  "useBrowser",
930
929
  "useVisibleTask",
@@ -932,10 +931,10 @@ const dn = ["server"], un = [
932
931
  "browser",
933
932
  "event$"
934
933
  ];
935
- var Ct = /* @__PURE__ */ ((e) => (e.preventNavigate = "preventNavigate", e.valibot = "valibot", e.noSPA = "noSPA", e.enableRequestRewrite = "enableRequestRewrite", e.webWorker = "webWorker", e.insights = "insights", e))(Ct || {});
936
- function Pt(e = {}) {
934
+ var Tt = /* @__PURE__ */ ((e) => (e.preventNavigate = "preventNavigate", e.valibot = "valibot", e.noSPA = "noSPA", e.enableRequestRewrite = "enableRequestRewrite", e.webWorker = "webWorker", e.insights = "insights", e))(Tt || {});
935
+ function Ct(e = {}) {
937
936
  const n = `${Math.round(Math.random() * 899) + 100}`, i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
938
- let d = null, a, p = () => {
937
+ let d = null, a, f = () => {
939
938
  };
940
939
  const t = {
941
940
  csr: !1,
@@ -968,7 +967,7 @@ function Pt(e = {}) {
968
967
  };
969
968
  let v, w;
970
969
  const x = async () => {
971
- if (!d && (d = await Ft(e), v = hn(d.sys), d.sys.env !== "browsermain" && d.sys.env !== "webworker"))
970
+ if (!d && (d = await At(e), v = pn(d.sys), d.sys.env !== "browsermain" && d.sys.env !== "webworker"))
972
971
  try {
973
972
  w === void 0 && (w = await d.sys.dynamicImport("node:fs"));
974
973
  } catch {
@@ -985,8 +984,8 @@ function Pt(e = {}) {
985
984
  }, m = async (E) => {
986
985
  const y = Object.assign({}, E), T = _(), M = T.sys.path, N = (...U) => F(M.resolve(...U));
987
986
  t.debug = !!y.debug, y.assetsDir && (t.assetsDir = y.assetsDir), y.target === "ssr" || y.target === "client" || y.target === "lib" || y.target === "test" ? t.target = y.target : t.target || (t.target = "client"), t.target === "lib" ? t.buildMode = "development" : y.buildMode === "production" || y.buildMode === "development" ? t.buildMode = y.buildMode : t.buildMode || (t.buildMode = "development"), t.csr = !!y.csr, y.entryStrategy && typeof y.entryStrategy == "object" && (t.entryStrategy = { ...y.entryStrategy }), t.entryStrategy || (t.target === "ssr" || t.target === "test" ? t.entryStrategy = { type: "hoist" } : t.target === "lib" ? t.entryStrategy = { type: "inline" } : t.buildMode === "production" ? t.entryStrategy = { type: "smart" } : t.entryStrategy = { type: "segment" }), typeof y.rootDir == "string" && (t.rootDir = y.rootDir), typeof t.rootDir != "string" && (t.rootDir || (t.rootDir = T.sys.cwd())), t.rootDir = N(T.sys.cwd(), t.rootDir);
988
- let C = N(t.rootDir, yn);
989
- if (typeof y.srcDir == "string" ? (t.srcDir = N(t.rootDir, y.srcDir), C = t.srcDir) : t.srcDir || (t.srcDir = C), t.srcDir = N(t.rootDir, t.srcDir), Array.isArray(y.tsconfigFileNames) && y.tsconfigFileNames.length > 0 && (t.tsconfigFileNames = y.tsconfigFileNames), !t.csr && !y.input && !t.input && (t.target === "ssr" ? t.input = [N(C, "entry.ssr")] : t.target === "client" ? t.input = [N(C, "root")] : t.input = void 0), y.outDir && (t.outDir = N(t.rootDir, y.outDir)), t.clientOutDir = N(t.rootDir, y.clientOutDir || at), t.ssrOutDir = N(t.rootDir, y.ssrOutDir || bn), t.target === "ssr" ? t.outDir || (t.outDir = t.ssrOutDir) : t.target === "lib" ? t.outDir || (t.outDir = N(t.rootDir, vn)) : t.outDir || (t.outDir = t.clientOutDir), typeof y.manifestOutput == "function" && (t.manifestOutput = y.manifestOutput), y.manifestInput && (t.manifestInput = et(y.manifestInput) || null), typeof y.transformedModuleOutput == "function" && (t.transformedModuleOutput = y.transformedModuleOutput), y.scope !== void 0)
987
+ let C = N(t.rootDir, gn);
988
+ if (typeof y.srcDir == "string" ? (t.srcDir = N(t.rootDir, y.srcDir), C = t.srcDir) : t.srcDir || (t.srcDir = C), t.srcDir = N(t.rootDir, t.srcDir), Array.isArray(y.tsconfigFileNames) && y.tsconfigFileNames.length > 0 && (t.tsconfigFileNames = y.tsconfigFileNames), !t.csr && !y.input && !t.input && (t.target === "ssr" ? t.input = [N(C, "entry.ssr")] : t.target === "client" ? t.input = [N(C, "root")] : t.input = void 0), y.outDir && (t.outDir = N(t.rootDir, y.outDir)), t.clientOutDir = N(t.rootDir, y.clientOutDir || st), t.ssrOutDir = N(t.rootDir, y.ssrOutDir || yn), t.target === "ssr" ? t.outDir || (t.outDir = t.ssrOutDir) : t.target === "lib" ? t.outDir || (t.outDir = N(t.rootDir, bn)) : t.outDir || (t.outDir = t.clientOutDir), typeof y.manifestOutput == "function" && (t.manifestOutput = y.manifestOutput), y.manifestInput && (t.manifestInput = et(y.manifestInput) || null), typeof y.transformedModuleOutput == "function" && (t.transformedModuleOutput = y.transformedModuleOutput), y.scope !== void 0)
990
989
  t.scope = y.scope;
991
990
  else if (!t.scope && w) {
992
991
  let U = "";
@@ -1011,7 +1010,7 @@ function Pt(e = {}) {
1011
1010
  if (typeof y.resolveQwikBuild == "boolean" && (t.resolveQwikBuild = y.resolveQwikBuild), typeof y.devTools == "object" && ("imageDevTools" in y.devTools && (t.devTools.imageDevTools = y.devTools.imageDevTools), "clickToSource" in y.devTools && (t.devTools.clickToSource = y.devTools.clickToSource)), "inlineStylesUpToBytes" in e && (typeof e.inlineStylesUpToBytes == "number" ? t.inlineStylesUpToBytes = e.inlineStylesUpToBytes : (typeof t.inlineStylesUpToBytes != "number" || t.inlineStylesUpToBytes < 0) && (t.inlineStylesUpToBytes = 0)), typeof y.lint == "boolean" && (t.lint = y.lint), "experimental" in y) {
1012
1011
  t.experimental = void 0;
1013
1012
  for (const U of y.experimental ?? [])
1014
- Ct[U] ? (t.experimental || (t.experimental = {}))[U] = !0 : console.error(`Qwik plugin: Unknown experimental feature: ${U}`);
1013
+ Tt[U] ? (t.experimental || (t.experimental = {}))[U] = !0 : console.error(`Qwik plugin: Unknown experimental feature: ${U}`);
1015
1014
  }
1016
1015
  const R = { ...t };
1017
1016
  return t.input || (t.input = y.input), t.input && typeof t.input == "string" && (t.input = [t.input]), R;
@@ -1033,11 +1032,11 @@ function Pt(e = {}) {
1033
1032
  }
1034
1033
  }
1035
1034
  };
1036
- let b, f = !1;
1035
+ let b, p = !1;
1037
1036
  const I = async (E) => {
1038
- if (O("buildStart()", t.buildMode, t.scope, t.target, t.rootDir, t.srcDir), b = _(), f = !h, b.sys.env === "node" && t.target === "ssr" && t.lint)
1037
+ if (O("buildStart()", t.buildMode, t.scope, t.target, t.rootDir, t.srcDir), b = _(), p = !h, b.sys.env === "node" && t.target === "ssr" && t.lint)
1039
1038
  try {
1040
- a = await tn(b.sys, t.rootDir, t.tsconfigFileNames);
1039
+ a = await en(b.sys, t.rootDir, t.tsconfigFileNames);
1041
1040
  } catch {
1042
1041
  }
1043
1042
  if (O("transformedOutputs.clear()"), r.clear(), o.clear(), t.target === "client") {
@@ -1130,8 +1129,8 @@ function Pt(e = {}) {
1130
1129
  moduleSideEffects: !1
1131
1130
  };
1132
1131
  else {
1133
- if (!R && f && y.endsWith("@qwik.dev/core")) {
1134
- f = !1;
1132
+ if (!R && p && y.endsWith("@qwik.dev/core")) {
1133
+ p = !1;
1135
1134
  const W = await E.resolve("@qwik.dev/core/handlers.mjs", T, {
1136
1135
  skipSelf: !0
1137
1136
  });
@@ -1215,7 +1214,7 @@ function Pt(e = {}) {
1215
1214
  if (R.has(T))
1216
1215
  return;
1217
1216
  const U = _(), B = l(), { pathId: j } = Le(T), L = B.parse(j), K = L.dir, W = L.base;
1218
- if (L.ext.toLowerCase() in gn || Dt.test(j)) {
1217
+ if (L.ext.toLowerCase() in mn || Pt.test(j)) {
1219
1218
  const se = t.target === "client" || t.target === "ssr";
1220
1219
  O(
1221
1220
  `transform(${N})`,
@@ -1244,11 +1243,11 @@ function Pt(e = {}) {
1244
1243
  scope: t.scope || void 0,
1245
1244
  isServer: C
1246
1245
  };
1247
- se && (C ? (de.stripCtxName = pn, de.stripEventHandlers = !0, de.regCtxName = dn) : (de.stripCtxName = fn, de.stripExports = un));
1248
- const Lt = Date.now(), fe = await U.transformModules(de);
1249
- O(`transform(${N})`, `done in ${Date.now() - Lt}ms`);
1250
- const Oe = fe.modules.find((V) => !mn(V));
1251
- p(fe.diagnostics, U, Me), C ? fe.diagnostics.length === 0 && a && a.lint(E, y, T) : i.set(T, fe);
1246
+ se && (C ? (de.stripCtxName = fn, de.stripEventHandlers = !0, de.regCtxName = cn) : (de.stripCtxName = un, de.stripExports = dn));
1247
+ const Ot = Date.now(), fe = await U.transformModules(de);
1248
+ O(`transform(${N})`, `done in ${Date.now() - Ot}ms`);
1249
+ const Oe = fe.modules.find((V) => !hn(V));
1250
+ f(fe.diagnostics, U, Me), C ? fe.diagnostics.length === 0 && a && a.lint(E, y, T) : i.set(T, fe);
1252
1251
  const $e = /* @__PURE__ */ new Set();
1253
1252
  for (const V of fe.modules)
1254
1253
  if (V !== Oe) {
@@ -1276,7 +1275,7 @@ function Pt(e = {}) {
1276
1275
  return T.generateManifest = async (M) => {
1277
1276
  const C = _().sys.path, R = C.resolve(t.rootDir, t.outDir, "build"), U = (L) => C.relative(R, C.resolve(t.rootDir, t.outDir, L));
1278
1277
  T.canonPath = U;
1279
- const B = Array.from(i.values()).flatMap((L) => L.modules).map((L) => L.segment).filter((L) => !!L), j = Yt(
1278
+ const B = Array.from(i.values()).flatMap((L) => L.modules).map((L) => L.segment).filter((L) => !!L), j = Jt(
1280
1279
  C,
1281
1280
  B,
1282
1281
  y,
@@ -1290,14 +1289,14 @@ function Pt(e = {}) {
1290
1289
  L.origin && (L.origin = F(L.origin));
1291
1290
  for (const L of Object.values(j.bundles))
1292
1291
  L.origins && (L.origins = L.origins.sort());
1293
- return j.manifestHash = zt(JSON.stringify(j)), j;
1292
+ return j.manifestHash = $t(JSON.stringify(j)), j;
1294
1293
  }, T;
1295
1294
  }, ee = () => t, Y = () => Array.from(r.values()).map((E) => E[0]), O = (...E) => {
1296
1295
  t.debug && console.debug(`[QWIK PLUGIN: ${n}]`, ...E);
1297
1296
  }, ie = (...E) => {
1298
1297
  console.log(`[QWIK PLUGIN: ${n}]`, ...E);
1299
1298
  }, Re = (E) => {
1300
- p = E;
1299
+ f = E;
1301
1300
  }, F = (E) => v(E);
1302
1301
  function ue(E, y) {
1303
1302
  const T = t.buildMode === "development";
@@ -1311,7 +1310,7 @@ export const isDev = ${JSON.stringify(T)};
1311
1310
  if (!t.manifestInput && t.target === "ssr" && t.buildMode === "production" && w) {
1312
1311
  const M = l();
1313
1312
  let N = t.manifestInputPath || M.resolve(t.clientOutDir, We);
1314
- await w.promises.stat(N).catch(() => !1) || (N = M.resolve(t.rootDir, at, We));
1313
+ await w.promises.stat(N).catch(() => !1) || (N = M.resolve(t.rootDir, st, We));
1315
1314
  try {
1316
1315
  const C = await w.promises.readFile(N, "utf-8");
1317
1316
  t.manifestInput = et(JSON.parse(C)) || null, console.info("Read client manifest from", N);
@@ -1346,7 +1345,7 @@ export const manifest = ${T ? JSON.stringify(T) : "globalThis.__QWIK_MANIFEST__"
1346
1345
  function Ne(E) {
1347
1346
  t.sourcemap = E;
1348
1347
  }
1349
- function Mt(E) {
1348
+ function Nt(E) {
1350
1349
  O("handleHotUpdate()", E.file);
1351
1350
  for (const y of E.modules) {
1352
1351
  const { id: T } = y;
@@ -1362,7 +1361,7 @@ export const manifest = ${T ? JSON.stringify(T) : "globalThis.__QWIK_MANIFEST__"
1362
1361
  }
1363
1362
  }
1364
1363
  }
1365
- const qt = (E, { getModuleInfo: y }) => {
1364
+ const Mt = (E, { getModuleInfo: y }) => {
1366
1365
  if (t.target === "client") {
1367
1366
  if (
1368
1367
  // The preloader has to stay in a separate chunk if it's a client build
@@ -1391,7 +1390,7 @@ export const manifest = ${T ? JSON.stringify(T) : "globalThis.__QWIK_MANIFEST__"
1391
1390
  }
1392
1391
  return null;
1393
1392
  };
1394
- async function Ot(E, y, T, M) {
1393
+ async function qt(E, y, T, M) {
1395
1394
  const C = await Q(y).generateManifest(M);
1396
1395
  C.platform = {
1397
1396
  ...M?.platform,
@@ -1399,7 +1398,7 @@ export const manifest = ${T ? JSON.stringify(T) : "globalThis.__QWIK_MANIFEST__"
1399
1398
  env: b.sys.env,
1400
1399
  os: b.sys.os
1401
1400
  }, b.sys.env === "node" && (C.platform.node = process.versions.node);
1402
- const R = en(C, T), U = E.emitFile({
1401
+ const R = Zt(C, T), U = E.emitFile({
1403
1402
  type: "asset",
1404
1403
  name: "bundle-graph.json",
1405
1404
  source: JSON.stringify(R)
@@ -1436,21 +1435,21 @@ export const manifest = ${T ? JSON.stringify(T) : "globalThis.__QWIK_MANIFEST__"
1436
1435
  validateSource: u,
1437
1436
  setSourceMapSupport: Ne,
1438
1437
  configureServer: c,
1439
- handleHotUpdate: Mt,
1440
- manualChunks: qt,
1441
- generateManifest: Ot
1438
+ handleHotUpdate: Nt,
1439
+ manualChunks: Mt,
1440
+ generateManifest: qt
1442
1441
  };
1443
1442
  }
1444
- const hn = (e) => (n) => typeof n == "string" ? cn(e.os) ? (n.startsWith("\\\\?\\") || /[^\u0000-\u0080]+/.test(n) || (n = n.replace(/\\/g, "/")), e.path.posix.normalize(n)) : e.path.normalize(n) : n;
1445
- function mn(e) {
1443
+ const pn = (e) => (n) => typeof n == "string" ? ln(e.os) ? (n.startsWith("\\\\?\\") || /[^\u0000-\u0080]+/.test(n) || (n = n.replace(/\\/g, "/")), e.path.posix.normalize(n)) : e.path.normalize(n) : n;
1444
+ function hn(e) {
1446
1445
  return e.isEntry || e.segment;
1447
1446
  }
1448
- const gn = {
1447
+ const mn = {
1449
1448
  ".jsx": !0,
1450
1449
  ".ts": !0,
1451
1450
  ".tsx": !0
1452
- }, Dt = /\.qwik\.[mc]?js$/, Ue = "@qwik.dev/core", Be = "@qwik.dev/core/internal", ne = "@qwik.dev/core/build", Qe = "@qwik.dev/core/jsx-runtime", Je = "@qwik.dev/core/jsx-dev-runtime", ze = "@qwik.dev/core/server", re = "@qwik-client-manifest", He = "@qwik.dev/core/preloader", pe = "@qwik-handlers", yn = "src", at = "dist", bn = "server", vn = "lib", We = "q-manifest.json";
1453
- async function wn(e, n, i) {
1451
+ }, Pt = /\.qwik\.[mc]?js$/, Ue = "@qwik.dev/core", Be = "@qwik.dev/core/internal", ne = "@qwik.dev/core/build", Qe = "@qwik.dev/core/jsx-runtime", Je = "@qwik.dev/core/jsx-dev-runtime", ze = "@qwik.dev/core/server", re = "@qwik-client-manifest", He = "@qwik.dev/core/preloader", pe = "@qwik-handlers", gn = "src", st = "dist", yn = "server", bn = "lib", We = "q-manifest.json";
1452
+ async function vn(e, n, i) {
1454
1453
  if (e.env === "browsermain" || e.env === "webworker")
1455
1454
  return;
1456
1455
  const r = await e.dynamicImport("node:fs");
@@ -1467,8 +1466,8 @@ async function wn(e, n, i) {
1467
1466
  o = d;
1468
1467
  }
1469
1468
  }
1470
- function zr(e = {}) {
1471
- const n = Pt(e.optimizerOptions);
1469
+ function $r(e = {}) {
1470
+ const n = Ct(e.optimizerOptions);
1472
1471
  return {
1473
1472
  name: "rollup-plugin-qwik",
1474
1473
  api: {
@@ -1478,8 +1477,8 @@ function zr(e = {}) {
1478
1477
  async options(r) {
1479
1478
  await n.init();
1480
1479
  const o = r.onwarn;
1481
- r.onwarn = (a, p) => {
1482
- a.plugin === "typescript" && a.message.includes("outputToFilesystem") || (o ? o(a, p) : p(a));
1480
+ r.onwarn = (a, f) => {
1481
+ a.plugin === "typescript" && a.message.includes("outputToFilesystem") || (o ? o(a, f) : f(a));
1483
1482
  };
1484
1483
  const g = {
1485
1484
  csr: e.csr,
@@ -1528,7 +1527,7 @@ function zr(e = {}) {
1528
1527
  }
1529
1528
  };
1530
1529
  }
1531
- async function xn(e, n, i, r) {
1530
+ async function wn(e, n, i, r) {
1532
1531
  return Array.isArray(n) ? (n.length || n.push({}), await Promise.all(
1533
1532
  n.map(async (o) => ({
1534
1533
  ...await Ye(e, o, i),
@@ -1539,7 +1538,7 @@ async function xn(e, n, i, r) {
1539
1538
  dir: r || n?.dir
1540
1539
  };
1541
1540
  }
1542
- const In = (e, n, i) => n.buildMode === "production" && !n.debug ? `${e}build/q-[hash].js` : (r) => {
1541
+ const xn = (e, n, i) => n.buildMode === "production" && !n.debug ? `${e}build/q-[hash].js` : (r) => {
1543
1542
  if (r.moduleIds?.some((d) => /core\.(prod|min)\.mjs$/.test(d)))
1544
1543
  return `${e}build/core.js`;
1545
1544
  if (r.moduleIds?.some((d) => /qwik-router\/lib\/index\.qwik\.mjs$/.test(d)))
@@ -1550,7 +1549,7 @@ const In = (e, n, i) => n.buildMode === "production" && !n.debug ? `${e}build/q-
1550
1549
  async function Ye(e, n, i) {
1551
1550
  const r = { ...n }, o = e.getOptions(), g = e.getOptimizer(), d = e.manualChunks;
1552
1551
  r.assetFileNames || (r.assetFileNames = `${i ? `${o.assetsDir}/` : ""}assets/[hash]-[name].[ext]`);
1553
- const a = In(i ? `${o.assetsDir}` : "", o, g);
1552
+ const a = xn(i ? `${o.assetsDir}` : "", o, g);
1554
1553
  if (o.target === "client") {
1555
1554
  r.entryFileNames || (r.entryFileNames = a), r.chunkFileNames || (r.chunkFileNames = a), r.format = "es";
1556
1555
  const t = r.manualChunks;
@@ -1560,10 +1559,10 @@ async function Ye(e, n, i) {
1560
1559
  } else
1561
1560
  r.chunkFileNames || (r.chunkFileNames = a);
1562
1561
  r.dir || (r.dir = o.outDir), r.format === "cjs" && typeof r.exports != "string" && (r.exports = "auto"), r.hoistTransitiveImports = !1;
1563
- const p = await wn(g.sys, "rollup", g.sys.cwd());
1564
- if (p)
1562
+ const f = await vn(g.sys, "rollup", g.sys.cwd());
1563
+ if (f)
1565
1564
  try {
1566
- const v = await (await g.sys.dynamicImport("node:fs")).promises.readFile(p, "utf-8"), w = JSON.parse(v), x = String(w?.version || ""), [_, s, l] = x.split(".").map((c) => parseInt(c, 10));
1565
+ const v = await (await g.sys.dynamicImport("node:fs")).promises.readFile(f, "utf-8"), w = JSON.parse(v), x = String(w?.version || ""), [_, s, l] = x.split(".").map((c) => parseInt(c, 10));
1567
1566
  Number.isFinite(_) && (_ > 4 || _ === 4 && (s > 52 || s === 52 && (l || 0) >= 0)) ? r.onlyExplicitManualChunks = !0 : console.warn(
1568
1567
  `⚠️ We detected that you're using a Rollup version prior to 4.52.0 (${x}). For the latest and greatest, we recommend to let Vite install the latest version for you, or manually install the latest version of Rollup in your project if that doesn't work. It will enable the new Rollup \`outputOpts.onlyExplicitManualChunks\` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.`
1569
1568
  );
@@ -1586,9 +1585,9 @@ function Ae(e, n) {
1586
1585
  function z(e) {
1587
1586
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1588
1587
  }
1589
- var he = {}, Ge = {}, lt;
1588
+ var he = {}, Ge = {}, at;
1590
1589
  function H() {
1591
- return lt || (lt = 1, (function(e) {
1590
+ return at || (at = 1, (function(e) {
1592
1591
  Object.defineProperty(e, "__esModule", { value: !0 }), e.findBox = e.readUInt = e.readUInt32LE = e.readUInt32BE = e.readInt32LE = e.readUInt24LE = e.readUInt16LE = e.readUInt16BE = e.readInt16LE = e.toHexString = e.toUTF8String = void 0;
1593
1592
  const n = new TextDecoder(), i = (l, h = 0, c = l.length) => n.decode(l.slice(h, c));
1594
1593
  e.toUTF8String = i;
@@ -1605,8 +1604,8 @@ function H() {
1605
1604
  e.readUInt16LE = d;
1606
1605
  const a = (l, h = 0) => l[h] + l[h + 1] * 2 ** 8 + l[h + 2] * 2 ** 16;
1607
1606
  e.readUInt24LE = a;
1608
- const p = (l, h = 0) => l[h] + l[h + 1] * 2 ** 8 + l[h + 2] * 2 ** 16 + (l[h + 3] << 24);
1609
- e.readInt32LE = p;
1607
+ const f = (l, h = 0) => l[h] + l[h + 1] * 2 ** 8 + l[h + 2] * 2 ** 16 + (l[h + 3] << 24);
1608
+ e.readInt32LE = f;
1610
1609
  const t = (l, h = 0) => l[h] * 2 ** 24 + l[h + 1] * 2 ** 16 + l[h + 2] * 2 ** 8 + l[h + 3];
1611
1610
  e.readUInt32BE = t;
1612
1611
  const v = (l, h = 0) => l[h] + l[h + 1] * 2 ** 8 + l[h + 2] * 2 ** 16 + l[h + 3] * 2 ** 24;
@@ -1647,10 +1646,10 @@ function H() {
1647
1646
  e.findBox = s;
1648
1647
  })(Ge)), Ge;
1649
1648
  }
1650
- var ct;
1651
- function Sn() {
1652
- if (ct) return he;
1653
- ct = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.BMP = void 0;
1649
+ var lt;
1650
+ function In() {
1651
+ if (lt) return he;
1652
+ lt = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.BMP = void 0;
1654
1653
  const e = H();
1655
1654
  return he.BMP = {
1656
1655
  validate: (n) => (0, e.toUTF8String)(n, 0, 2) === "BM",
@@ -1660,49 +1659,49 @@ function Sn() {
1660
1659
  })
1661
1660
  }, he;
1662
1661
  }
1663
- var kn = Sn();
1664
- const En = /* @__PURE__ */ z(kn);
1665
- var me = {}, ge = {}, dt;
1666
- function Nt() {
1667
- if (dt) return ge;
1668
- dt = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.ICO = void 0;
1662
+ var Sn = In();
1663
+ const kn = /* @__PURE__ */ z(Sn);
1664
+ var me = {}, ge = {}, ct;
1665
+ function Dt() {
1666
+ if (ct) return ge;
1667
+ ct = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.ICO = void 0;
1669
1668
  const e = H(), n = 1, i = 6, r = 16;
1670
1669
  function o(d, a) {
1671
- const p = d[a];
1672
- return p === 0 ? 256 : p;
1670
+ const f = d[a];
1671
+ return f === 0 ? 256 : f;
1673
1672
  }
1674
1673
  function g(d, a) {
1675
- const p = i + a * r;
1674
+ const f = i + a * r;
1676
1675
  return {
1677
- height: o(d, p + 1),
1678
- width: o(d, p)
1676
+ height: o(d, f + 1),
1677
+ width: o(d, f)
1679
1678
  };
1680
1679
  }
1681
1680
  return ge.ICO = {
1682
1681
  validate(d) {
1683
- const a = (0, e.readUInt16LE)(d, 0), p = (0, e.readUInt16LE)(d, 4);
1684
- return a !== 0 || p === 0 ? !1 : (0, e.readUInt16LE)(d, 2) === n;
1682
+ const a = (0, e.readUInt16LE)(d, 0), f = (0, e.readUInt16LE)(d, 4);
1683
+ return a !== 0 || f === 0 ? !1 : (0, e.readUInt16LE)(d, 2) === n;
1685
1684
  },
1686
1685
  calculate(d) {
1687
- const a = (0, e.readUInt16LE)(d, 4), p = g(d, 0);
1686
+ const a = (0, e.readUInt16LE)(d, 4), f = g(d, 0);
1688
1687
  if (a === 1)
1689
- return p;
1690
- const t = [p];
1688
+ return f;
1689
+ const t = [f];
1691
1690
  for (let v = 1; v < a; v += 1)
1692
1691
  t.push(g(d, v));
1693
1692
  return {
1694
- height: p.height,
1693
+ height: f.height,
1695
1694
  images: t,
1696
- width: p.width
1695
+ width: f.width
1697
1696
  };
1698
1697
  }
1699
1698
  }, ge;
1700
1699
  }
1701
- var ut;
1702
- function _n() {
1703
- if (ut) return me;
1704
- ut = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.CUR = void 0;
1705
- const e = Nt(), n = H(), i = 2;
1700
+ var dt;
1701
+ function En() {
1702
+ if (dt) return me;
1703
+ dt = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.CUR = void 0;
1704
+ const e = Dt(), n = H(), i = 2;
1706
1705
  return me.CUR = {
1707
1706
  validate(r) {
1708
1707
  const o = (0, n.readUInt16LE)(r, 0), g = (0, n.readUInt16LE)(r, 4);
@@ -1711,12 +1710,12 @@ function _n() {
1711
1710
  calculate: (r) => e.ICO.calculate(r)
1712
1711
  }, me;
1713
1712
  }
1714
- var Tn = _n();
1715
- const Cn = /* @__PURE__ */ z(Tn);
1716
- var ye = {}, ft;
1717
- function Pn() {
1718
- if (ft) return ye;
1719
- ft = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.DDS = void 0;
1713
+ var _n = En();
1714
+ const Tn = /* @__PURE__ */ z(_n);
1715
+ var ye = {}, ut;
1716
+ function Cn() {
1717
+ if (ut) return ye;
1718
+ ut = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.DDS = void 0;
1720
1719
  const e = H();
1721
1720
  return ye.DDS = {
1722
1721
  validate: (n) => (0, e.readUInt32LE)(n, 0) === 542327876,
@@ -1726,12 +1725,12 @@ function Pn() {
1726
1725
  })
1727
1726
  }, ye;
1728
1727
  }
1729
- var Dn = Pn();
1730
- const Nn = /* @__PURE__ */ z(Dn);
1731
- var be = {}, pt;
1732
- function Mn() {
1733
- if (pt) return be;
1734
- pt = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.GIF = void 0;
1728
+ var Pn = Cn();
1729
+ const Dn = /* @__PURE__ */ z(Pn);
1730
+ var be = {}, ft;
1731
+ function Nn() {
1732
+ if (ft) return be;
1733
+ ft = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.GIF = void 0;
1735
1734
  const e = H(), n = /^GIF8[79]a/;
1736
1735
  return be.GIF = {
1737
1736
  validate: (i) => n.test((0, e.toUTF8String)(i, 0, 6)),
@@ -1741,12 +1740,12 @@ function Mn() {
1741
1740
  })
1742
1741
  }, be;
1743
1742
  }
1744
- var qn = Mn();
1745
- const On = /* @__PURE__ */ z(qn);
1746
- var ve = {}, ht;
1747
- function Ln() {
1748
- if (ht) return ve;
1749
- ht = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.ICNS = void 0;
1743
+ var Mn = Nn();
1744
+ const qn = /* @__PURE__ */ z(Mn);
1745
+ var ve = {}, pt;
1746
+ function On() {
1747
+ if (pt) return ve;
1748
+ pt = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.ICNS = void 0;
1750
1749
  const e = H(), n = 8, i = 4, r = 4, o = {
1751
1750
  ICON: 32,
1752
1751
  "ICN#": 32,
@@ -1789,21 +1788,21 @@ function Ln() {
1789
1788
  // . => 1024 x 1024
1790
1789
  ic10: 1024
1791
1790
  };
1792
- function g(a, p) {
1793
- const t = p + r;
1791
+ function g(a, f) {
1792
+ const t = f + r;
1794
1793
  return [
1795
- (0, e.toUTF8String)(a, p, t),
1794
+ (0, e.toUTF8String)(a, f, t),
1796
1795
  (0, e.readUInt32BE)(a, t)
1797
1796
  ];
1798
1797
  }
1799
1798
  function d(a) {
1800
- const p = o[a];
1801
- return { width: p, height: p, type: a };
1799
+ const f = o[a];
1800
+ return { width: f, height: f, type: a };
1802
1801
  }
1803
1802
  return ve.ICNS = {
1804
1803
  validate: (a) => (0, e.toUTF8String)(a, 0, 4) === "icns",
1805
1804
  calculate(a) {
1806
- const p = a.length, t = (0, e.readUInt32BE)(a, i);
1805
+ const f = a.length, t = (0, e.readUInt32BE)(a, i);
1807
1806
  let v = n, w = g(a, v), x = d(w[0]);
1808
1807
  if (v += w[1], v === t)
1809
1808
  return x;
@@ -1812,20 +1811,20 @@ function Ln() {
1812
1811
  images: [x],
1813
1812
  width: x.width
1814
1813
  };
1815
- for (; v < t && v < p; )
1814
+ for (; v < t && v < f; )
1816
1815
  w = g(a, v), x = d(w[0]), v += w[1], _.images.push(x);
1817
1816
  return _;
1818
1817
  }
1819
1818
  }, ve;
1820
1819
  }
1821
- var jn = Ln();
1822
- const Un = /* @__PURE__ */ z(jn);
1823
- var Bn = Nt();
1824
- const An = /* @__PURE__ */ z(Bn);
1825
- var we = {}, mt;
1826
- function Fn() {
1827
- if (mt) return we;
1828
- mt = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.J2C = void 0;
1820
+ var Ln = On();
1821
+ const jn = /* @__PURE__ */ z(Ln);
1822
+ var Un = Dt();
1823
+ const Bn = /* @__PURE__ */ z(Un);
1824
+ var we = {}, ht;
1825
+ function An() {
1826
+ if (ht) return we;
1827
+ ht = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.J2C = void 0;
1829
1828
  const e = H();
1830
1829
  return we.J2C = {
1831
1830
  // TODO: this doesn't seem right. SIZ marker doesn't have to be right after the SOC
@@ -1836,12 +1835,12 @@ function Fn() {
1836
1835
  })
1837
1836
  }, we;
1838
1837
  }
1839
- var Rn = Fn();
1840
- const $n = /* @__PURE__ */ z(Rn);
1841
- var xe = {}, gt;
1842
- function zn() {
1843
- if (gt) return xe;
1844
- gt = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.JP2 = void 0;
1838
+ var Fn = An();
1839
+ const Rn = /* @__PURE__ */ z(Fn);
1840
+ var xe = {}, mt;
1841
+ function $n() {
1842
+ if (mt) return xe;
1843
+ mt = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.JP2 = void 0;
1845
1844
  const e = H();
1846
1845
  return xe.JP2 = {
1847
1846
  validate(n) {
@@ -1861,13 +1860,13 @@ function zn() {
1861
1860
  }
1862
1861
  }, xe;
1863
1862
  }
1864
- var Hn = zn();
1865
- const Wn = /* @__PURE__ */ z(Hn);
1866
- var Ie = {}, yt;
1867
- function Gn() {
1868
- if (yt) return Ie;
1869
- yt = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.JPG = void 0;
1870
- const e = H(), n = "45786966", i = 2, r = 6, o = 2, g = "4d4d", d = "4949", a = 12, p = 2;
1863
+ var zn = $n();
1864
+ const Hn = /* @__PURE__ */ z(zn);
1865
+ var Ie = {}, gt;
1866
+ function Wn() {
1867
+ if (gt) return Ie;
1868
+ gt = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.JPG = void 0;
1869
+ const e = H(), n = "45786966", i = 2, r = 6, o = 2, g = "4d4d", d = "4949", a = 12, f = 2;
1871
1870
  function t(s) {
1872
1871
  return (0, e.toHexString)(s, 2, 6) === n;
1873
1872
  }
@@ -1880,12 +1879,12 @@ function Gn() {
1880
1879
  function w(s, l) {
1881
1880
  const c = r + 8, m = (0, e.readUInt)(s, 16, c, l);
1882
1881
  for (let k = 0; k < m; k++) {
1883
- const u = c + p + k * a, b = u + a;
1882
+ const u = c + f + k * a, b = u + a;
1884
1883
  if (u > s.length)
1885
1884
  return;
1886
- const f = s.slice(u, b);
1887
- if ((0, e.readUInt)(f, 16, 0, l) === 274)
1888
- return (0, e.readUInt)(f, 16, 2, l) !== 3 || (0, e.readUInt)(f, 32, 4, l) !== 1 ? void 0 : (0, e.readUInt)(f, 16, 8, l);
1885
+ const p = s.slice(u, b);
1886
+ if ((0, e.readUInt)(p, 16, 0, l) === 274)
1887
+ return (0, e.readUInt)(p, 16, 2, l) !== 3 || (0, e.readUInt)(p, 32, 4, l) !== 1 ? void 0 : (0, e.readUInt)(p, 16, 8, l);
1889
1888
  }
1890
1889
  }
1891
1890
  function x(s, l) {
@@ -1922,12 +1921,12 @@ function Gn() {
1922
1921
  }
1923
1922
  }, Ie;
1924
1923
  }
1925
- var Kn = Gn();
1926
- const Qn = /* @__PURE__ */ z(Kn);
1927
- var Se = {}, bt;
1928
- function Jn() {
1929
- if (bt) return Se;
1930
- bt = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.KTX = void 0;
1924
+ var Gn = Wn();
1925
+ const Kn = /* @__PURE__ */ z(Gn);
1926
+ var Se = {}, yt;
1927
+ function Qn() {
1928
+ if (yt) return Se;
1929
+ yt = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.KTX = void 0;
1931
1930
  const e = H();
1932
1931
  return Se.KTX = {
1933
1932
  validate: (n) => {
@@ -1944,12 +1943,12 @@ function Jn() {
1944
1943
  }
1945
1944
  }, Se;
1946
1945
  }
1947
- var Yn = Jn();
1948
- const Xn = /* @__PURE__ */ z(Yn);
1949
- var ke = {}, vt;
1950
- function Vn() {
1951
- if (vt) return ke;
1952
- vt = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.PNG = void 0;
1946
+ var Jn = Qn();
1947
+ const Yn = /* @__PURE__ */ z(Jn);
1948
+ var ke = {}, bt;
1949
+ function Xn() {
1950
+ if (bt) return ke;
1951
+ bt = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.PNG = void 0;
1953
1952
  const e = H(), n = `PNG\r
1954
1953
  
1955
1954
  `, i = "IHDR", r = "CgBI";
@@ -1974,12 +1973,12 @@ function Vn() {
1974
1973
  }
1975
1974
  }, ke;
1976
1975
  }
1977
- var Zn = Vn();
1978
- const er = /* @__PURE__ */ z(Zn);
1979
- var Ee = {}, wt;
1980
- function tr() {
1981
- if (wt) return Ee;
1982
- wt = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.PNM = void 0;
1976
+ var Vn = Xn();
1977
+ const Zn = /* @__PURE__ */ z(Vn);
1978
+ var Ee = {}, vt;
1979
+ function er() {
1980
+ if (vt) return Ee;
1981
+ vt = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.PNM = void 0;
1983
1982
  const e = H(), n = {
1984
1983
  P1: "pbm/ascii",
1985
1984
  P2: "pgm/ascii",
@@ -2032,12 +2031,12 @@ function tr() {
2032
2031
  }
2033
2032
  }, Ee;
2034
2033
  }
2035
- var nr = tr();
2036
- const rr = /* @__PURE__ */ z(nr);
2037
- var _e = {}, xt;
2038
- function or() {
2039
- if (xt) return _e;
2040
- xt = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.PSD = void 0;
2034
+ var tr = er();
2035
+ const nr = /* @__PURE__ */ z(tr);
2036
+ var _e = {}, wt;
2037
+ function rr() {
2038
+ if (wt) return _e;
2039
+ wt = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.PSD = void 0;
2041
2040
  const e = H();
2042
2041
  return _e.PSD = {
2043
2042
  validate: (n) => (0, e.toUTF8String)(n, 0, 4) === "8BPS",
@@ -2047,12 +2046,12 @@ function or() {
2047
2046
  })
2048
2047
  }, _e;
2049
2048
  }
2050
- var ir = or();
2051
- const sr = /* @__PURE__ */ z(ir);
2052
- var Te = {}, It;
2053
- function ar() {
2054
- if (It) return Te;
2055
- It = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.SVG = void 0;
2049
+ var or = rr();
2050
+ const ir = /* @__PURE__ */ z(or);
2051
+ var Te = {}, xt;
2052
+ function sr() {
2053
+ if (xt) return Te;
2054
+ xt = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.SVG = void 0;
2056
2055
  const e = H(), n = /<svg\s([^>"']|"[^"]*"|'[^']*')*>/, i = {
2057
2056
  height: /\sheight=(['"])([^%]+?)\1/,
2058
2057
  root: n,
@@ -2081,7 +2080,7 @@ function ar() {
2081
2080
  width: d(x[2])
2082
2081
  };
2083
2082
  }
2084
- function p(w) {
2083
+ function f(w) {
2085
2084
  const x = w.match(i.width), _ = w.match(i.height), s = w.match(i.viewbox);
2086
2085
  return {
2087
2086
  height: _ && d(_[2]),
@@ -2114,7 +2113,7 @@ function ar() {
2114
2113
  calculate(w) {
2115
2114
  const x = (0, e.toUTF8String)(w).match(i.root);
2116
2115
  if (x) {
2117
- const _ = p(x[0]);
2116
+ const _ = f(x[0]);
2118
2117
  if (_.width && _.height)
2119
2118
  return t(_);
2120
2119
  if (_.viewbox)
@@ -2124,12 +2123,12 @@ function ar() {
2124
2123
  }
2125
2124
  }, Te;
2126
2125
  }
2127
- var lr = ar();
2128
- const cr = /* @__PURE__ */ z(lr);
2129
- var Ce = {}, St;
2130
- function dr() {
2131
- if (St) return Ce;
2132
- St = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.TGA = void 0;
2126
+ var ar = sr();
2127
+ const lr = /* @__PURE__ */ z(ar);
2128
+ var Ce = {}, It;
2129
+ function cr() {
2130
+ if (It) return Ce;
2131
+ It = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.TGA = void 0;
2133
2132
  const e = H();
2134
2133
  return Ce.TGA = {
2135
2134
  validate(n) {
@@ -2143,12 +2142,12 @@ function dr() {
2143
2142
  }
2144
2143
  }, Ce;
2145
2144
  }
2146
- var ur = dr();
2147
- const fr = /* @__PURE__ */ z(ur);
2148
- var Pe = {}, kt;
2149
- function pr() {
2150
- if (kt) return Pe;
2151
- kt = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.WEBP = void 0;
2145
+ var dr = cr();
2146
+ const ur = /* @__PURE__ */ z(dr);
2147
+ var Pe = {}, St;
2148
+ function fr() {
2149
+ if (St) return Pe;
2150
+ St = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.WEBP = void 0;
2152
2151
  const e = H();
2153
2152
  function n(o) {
2154
2153
  return {
@@ -2176,8 +2175,8 @@ function pr() {
2176
2175
  calculate(o) {
2177
2176
  const g = (0, e.toUTF8String)(o, 12, 16);
2178
2177
  if (o = o.slice(20, 30), g === "VP8X") {
2179
- const a = o[0], p = (a & 192) === 0, t = (a & 1) === 0;
2180
- if (p && t)
2178
+ const a = o[0], f = (a & 192) === 0, t = (a & 1) === 0;
2179
+ if (f && t)
2181
2180
  return n(o);
2182
2181
  throw new TypeError("Invalid WebP");
2183
2182
  }
@@ -2190,12 +2189,12 @@ function pr() {
2190
2189
  }
2191
2190
  }, Pe;
2192
2191
  }
2193
- var hr = pr();
2194
- const mr = /* @__PURE__ */ z(hr);
2195
- var De = {}, Et;
2196
- function gr() {
2197
- if (Et) return De;
2198
- Et = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.HEIF = void 0;
2192
+ var pr = fr();
2193
+ const hr = /* @__PURE__ */ z(pr);
2194
+ var De = {}, kt;
2195
+ function mr() {
2196
+ if (kt) return De;
2197
+ kt = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.HEIF = void 0;
2199
2198
  const e = H(), n = {
2200
2199
  avif: "avif",
2201
2200
  mif1: "heif",
@@ -2227,8 +2226,8 @@ function gr() {
2227
2226
  }
2228
2227
  }, De;
2229
2228
  }
2230
- var yr = gr();
2231
- const br = /* @__PURE__ */ z(yr), vr = {
2229
+ var gr = mr();
2230
+ const yr = /* @__PURE__ */ z(gr), br = {
2232
2231
  56: "psd",
2233
2232
  66: "bmp",
2234
2233
  68: "dds",
@@ -2238,37 +2237,37 @@ const br = /* @__PURE__ */ z(yr), vr = {
2238
2237
  137: "png",
2239
2238
  255: "jpg"
2240
2239
  }, Fe = {
2241
- webp: mr.WEBP,
2242
- jpg: Qn.JPG,
2243
- png: er.PNG,
2244
- svg: cr.SVG,
2245
- gif: On.GIF,
2246
- avif: br.HEIF,
2247
- bmp: En.BMP,
2248
- cur: Cn.CUR,
2249
- dds: Nn.DDS,
2250
- icns: Un.ICNS,
2251
- ico: An.ICO,
2252
- j2c: $n.J2C,
2253
- jp2: Wn.JP2,
2254
- ktx: Xn.KTX,
2255
- pnm: rr.PNM,
2256
- psd: sr.PSD,
2257
- tga: fr.TGA
2258
- }, wr = Object.keys(Fe);
2259
- function xr(e) {
2260
- const n = e[0], i = vr[n];
2261
- return i && Fe[i].validate(e) ? i : wr.find((r) => Fe[r].validate(e));
2240
+ webp: hr.WEBP,
2241
+ jpg: Kn.JPG,
2242
+ png: Zn.PNG,
2243
+ svg: lr.SVG,
2244
+ gif: qn.GIF,
2245
+ avif: yr.HEIF,
2246
+ bmp: kn.BMP,
2247
+ cur: Tn.CUR,
2248
+ dds: Dn.DDS,
2249
+ icns: jn.ICNS,
2250
+ ico: Bn.ICO,
2251
+ j2c: Rn.J2C,
2252
+ jp2: Hn.JP2,
2253
+ ktx: Yn.KTX,
2254
+ pnm: nr.PNM,
2255
+ psd: ir.PSD,
2256
+ tga: ur.TGA
2257
+ }, vr = Object.keys(Fe);
2258
+ function wr(e) {
2259
+ const n = e[0], i = br[n];
2260
+ return i && Fe[i].validate(e) ? i : vr.find((r) => Fe[r].validate(e));
2262
2261
  }
2263
- function Ir(e) {
2264
- const n = xr(e);
2262
+ function xr(e) {
2263
+ const n = wr(e);
2265
2264
  if (typeof n < "u") {
2266
2265
  const i = Fe[n].calculate(e);
2267
2266
  if (i !== void 0)
2268
2267
  return i.type = n, i;
2269
2268
  }
2270
2269
  }
2271
- async function Sr(e) {
2270
+ async function Ir(e) {
2272
2271
  if (/^(https?|file|capacitor):/.test(e))
2273
2272
  try {
2274
2273
  const n = await fetch(e, {
@@ -2278,7 +2277,7 @@ async function Sr(e) {
2278
2277
  console.error("can not fetch", e);
2279
2278
  return;
2280
2279
  }
2281
- const i = await n.arrayBuffer(), r = Ir(Buffer.from(i));
2280
+ const i = await n.arrayBuffer(), r = xr(Buffer.from(i));
2282
2281
  if (r)
2283
2282
  return {
2284
2283
  width: r.width,
@@ -2291,20 +2290,20 @@ async function Sr(e) {
2291
2290
  return;
2292
2291
  }
2293
2292
  }
2294
- const kr = (e, n, i) => async (r, o, g) => {
2293
+ const Sr = (e, n, i) => async (r, o, g) => {
2295
2294
  try {
2296
2295
  const d = await e.dynamicImport("node:fs"), a = await e.dynamicImport("node:path");
2297
- let p;
2296
+ let f;
2298
2297
  try {
2299
- p = new URL(r.url, "http://localhost:3000/");
2298
+ f = new URL(r.url, "http://localhost:3000/");
2300
2299
  } catch {
2301
2300
  o.statusCode = 404, o.end();
2302
2301
  return;
2303
2302
  }
2304
- if (r.method === "GET" && p.pathname === "/__image_info") {
2305
- const t = p.searchParams.get("url");
2303
+ if (r.method === "GET" && f.pathname === "/__image_info") {
2304
+ const t = f.searchParams.get("url");
2306
2305
  if (o.setHeader("content-type", "application/json"), t) {
2307
- const v = await Sr(t);
2306
+ const v = await Ir(t);
2308
2307
  o.setHeader("cache-control", "public, max-age=31536000, immutable"), v ? o.write(JSON.stringify(v)) : o.statusCode = 404;
2309
2308
  } else {
2310
2309
  o.statusCode = 500;
@@ -2313,8 +2312,8 @@ const kr = (e, n, i) => async (r, o, g) => {
2313
2312
  }
2314
2313
  o.end();
2315
2314
  return;
2316
- } else if (r.method === "POST" && p.pathname === "/__image_fix") {
2317
- const t = p.searchParams.get("loc"), v = p.searchParams.get("width"), w = p.searchParams.get("height"), x = p.searchParams.get("src"), _ = p.searchParams.get("currentHref"), s = t.split(":"), l = parseInt(s[s.length - 1], 10) - 1;
2315
+ } else if (r.method === "POST" && f.pathname === "/__image_fix") {
2316
+ const t = f.searchParams.get("loc"), v = f.searchParams.get("width"), w = f.searchParams.get("height"), x = f.searchParams.get("src"), _ = f.searchParams.get("currentHref"), s = t.split(":"), l = parseInt(s[s.length - 1], 10) - 1;
2318
2317
  let h = parseInt(s[s.length - 2], 10) - 1;
2319
2318
  const c = a.resolve(i, s.slice(0, s.length - 2).join(":")), m = a.extname(c).toLowerCase();
2320
2319
  let u = d.readFileSync(c).toString("utf-8"), b = 0;
@@ -2333,15 +2332,15 @@ const kr = (e, n, i) => async (r, o, g) => {
2333
2332
  ), o.statusCode = 500;
2334
2333
  return;
2335
2334
  }
2336
- const f = u.indexOf(">", b) + 1;
2337
- if (f < b) {
2335
+ const p = u.indexOf(">", b) + 1;
2336
+ if (p < b) {
2338
2337
  console.error(
2339
2338
  "Could not apply auto fix, because it was not possible to find the original <img> tag"
2340
2339
  ), o.statusCode = 500;
2341
2340
  return;
2342
2341
  }
2343
2342
  const I = [".ts", ".tsx", ".js", ".jsx", ".mdx"].includes(m);
2344
- let S = u.slice(b, f);
2343
+ let S = u.slice(b, p);
2345
2344
  if (x && _ && I) {
2346
2345
  const q = new URL(x), D = new URL(_);
2347
2346
  if (q.origin === D.origin) {
@@ -2357,7 +2356,7 @@ const kr = (e, n, i) => async (r, o, g) => {
2357
2356
  A = q.pathname.replace("/src/", "~/");
2358
2357
  else
2359
2358
  return;
2360
- const G = Er(q.pathname), X = `${A}?jsx`;
2359
+ const G = kr(q.pathname), X = `${A}?jsx`;
2361
2360
  S = S.replace(/^<img/, `<${G}`), S = S.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), S = S.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), S = S.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, "");
2362
2361
  let Q = 0;
2363
2362
  if (m === ".mdx" && u.startsWith("---") && (Q = u.indexOf("---", 4) + 3, Q === -1))
@@ -2367,25 +2366,25 @@ import ${G} from '${X}';`;
2367
2366
  u = `${u.slice(0, Q)}${ee}${u.slice(
2368
2367
  Q,
2369
2368
  b
2370
- )}${S}${u.slice(f)}`, d.writeFileSync(c, u);
2369
+ )}${S}${u.slice(p)}`, d.writeFileSync(c, u);
2371
2370
  return;
2372
2371
  }
2373
2372
  }
2374
- S = S.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/, `width="${v}"`), S = S.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/, `height="${w}"`), S.includes("height=") || (S = S.replace(/<img/, `<img height="${w}"`)), S.includes("width=") || (S = S.replace(/<img/, `<img width="${v}"`)), u = u.slice(0, b) + S + u.slice(f), d.writeFileSync(c, u);
2373
+ S = S.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/, `width="${v}"`), S = S.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/, `height="${w}"`), S.includes("height=") || (S = S.replace(/<img/, `<img height="${w}"`)), S.includes("width=") || (S = S.replace(/<img/, `<img width="${v}"`)), u = u.slice(0, b) + S + u.slice(p), d.writeFileSync(c, u);
2375
2374
  } else
2376
2375
  g();
2377
2376
  } catch (d) {
2378
- d instanceof Error && await on(e, d), g(d);
2377
+ d instanceof Error && await rn(e, d), g(d);
2379
2378
  }
2380
2379
  };
2381
- function Er(e) {
2380
+ function kr(e) {
2382
2381
  const n = e.lastIndexOf("."), i = e.lastIndexOf("/");
2383
- return e = e.substring(i + 1, n), `Img${_r(e)}`;
2382
+ return e = e.substring(i + 1, n), `Img${Er(e)}`;
2384
2383
  }
2385
- function _r(e) {
2384
+ function Er(e) {
2386
2385
  return `${e}`.toLowerCase().replace(new RegExp(/[-_]+/, "g"), " ").replace(new RegExp(/[^\w\s]/, "g"), "").replace(new RegExp(/\s+(.)(\w*)/, "g"), (n, i, r) => `${i.toUpperCase() + r}`).replace(new RegExp(/\w/), (n) => n.toUpperCase());
2387
2386
  }
2388
- const Tr = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`, Cr = 'if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__,o=globalThis.__BASE__;let n=document.querySelector("#qwik-inspector-info-popup");n||(n=document.createElement("div"),n.id="qwik-inspector-info-popup",n["aria-hidden"]="true",document.body.appendChild(n)),n.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const r=document.body,i=document.createElement("div");function s(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function d(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&c()){const t=e.getBoundingClientRect();i.style.setProperty("height",t.height+"px"),i.style.setProperty("width",t.width+"px"),i.style.setProperty("top",t.top+"px"),i.style.setProperty("left",t.left+"px"),i.style.setProperty("visibility","visible"),r.style.setProperty("cursor","pointer")}else i.style.setProperty("height","0px"),i.style.setProperty("width","0px"),i.style.setProperty("visibility","hidden"),r.style.removeProperty("cursor")}function c(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}i.id="qwik-inspector-overlay",i.setAttribute("aria-hidden","true"),r.appendChild(i),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),d()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),d()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),d()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=s(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,d()},{capture:!0}),document.addEventListener("click",t=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();const n=s(t.target);if(n){t.preventDefault(),t.stopPropagation();const i=n.getAttribute(e);if("false"!==i){r.style.setProperty("cursor","progress");const e=i.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,n]=e;fetch(`${o}${t}?editor${n}`).then(()=>{r.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();s(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",d),document.addEventListener("scroll",d)};document.addEventListener("DOMContentLoaded",e)}', Pr = `if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`, Dr = '[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}', Nr = 'if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}', Mr = `<style>
2387
+ const _r = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`, Tr = 'if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__,o=globalThis.__BASE__;let n=document.querySelector("#qwik-inspector-info-popup");n||(n=document.createElement("div"),n.id="qwik-inspector-info-popup",n["aria-hidden"]="true",document.body.appendChild(n)),n.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const r=document.body,i=document.createElement("div");function s(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function d(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&c()){const t=e.getBoundingClientRect();i.style.setProperty("height",t.height+"px"),i.style.setProperty("width",t.width+"px"),i.style.setProperty("top",t.top+"px"),i.style.setProperty("left",t.left+"px"),i.style.setProperty("visibility","visible"),r.style.setProperty("cursor","pointer")}else i.style.setProperty("height","0px"),i.style.setProperty("width","0px"),i.style.setProperty("visibility","hidden"),r.style.removeProperty("cursor")}function c(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}i.id="qwik-inspector-overlay",i.setAttribute("aria-hidden","true"),r.appendChild(i),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),d()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),d()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),d()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=s(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,d()},{capture:!0}),document.addEventListener("click",t=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();const n=s(t.target);if(n){t.preventDefault(),t.stopPropagation();const i=n.getAttribute(e);if("false"!==i){r.style.setProperty("cursor","progress");const e=i.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,n]=e;fetch(`${o}${t}?editor${n}`).then(()=>{r.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();s(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",d),document.addEventListener("scroll",d)};document.addEventListener("DOMContentLoaded",e)}', Cr = `if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`, Pr = '[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}', Dr = 'if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}', Nr = `<style>
2389
2388
  :host {
2390
2389
  position: absolute;
2391
2390
  border: 1px solid red;
@@ -2549,11 +2548,11 @@ const Tr = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikVite
2549
2548
  <p class="action-container"></p>
2550
2549
  </div>
2551
2550
  </dialog>
2552
- `, qr = `vite-error-overlay{--color-bright: rgba(255, 255, 255, .8);--color-yellow: rgba(255, 246, 85, .8);--qwik-dark-blue: #006ce9;--qwik-light-blue: #3ec2f7;--qwik-light-purple: #ac7ff4;--qwik-dark-purple: #713fc2;--yellow: #fff;--purple: var(--color-bright);--red: var(--qwik-light-blue);--vertical-box-spacing: 15px;--box-padding: 20px;--box-margin: 0 0 var(--vertical-box-spacing) 0;--box-background: rgba(0, 0, 0, .5);--box-border-radius: 8px}vite-error-overlay::part(backdrop){background:#020b1199}vite-error-overlay::part(window){background:transparent;border:none;box-shadow:none;box-sizing:border-box;margin:50px auto;max-width:1200px;padding:var(--box-padding);width:90%}vite-error-overlay::part(message){display:flex;flex-direction:column;font-size:1.6rem;line-height:1.7;margin-bottom:30px}vite-error-overlay::part(plugin){font-size:.8rem;font-weight:100}vite-error-overlay::part(file),vite-error-overlay::part(frame),vite-error-overlay::part(stack),vite-error-overlay::part(tip){background:var(--box-background);border-left:5px solid transparent;border-radius:var(--box-border-radius);margin:var(--box-margin);min-height:50px;padding:var(--box-padding);position:relative}vite-error-overlay::part(file){border-left-color:#19b6f6;color:var(--color-bright)}vite-error-overlay::part(frame){border-left-color:var(--color-yellow);color:var(--color-yellow)}vite-error-overlay::part(stack){border-left-color:#ff5722}vite-error-overlay::part(tip){border-top:none;border-left-color:#ac7ff4}vite-error-overlay::part(file):before,vite-error-overlay::part(frame):before,vite-error-overlay::part(stack):before{border-bottom:1px solid #222;color:var(--color-bright);display:block;margin-bottom:15px;padding-bottom:5px;padding-left:30px;font-size:.8rem}vite-error-overlay::part(file):before{content:"File"}vite-error-overlay::part(frame):before{content:"Frame"}vite-error-overlay::part(stack):before{content:"Stack Trace"}vite-error-overlay::part(file):after,vite-error-overlay::part(frame):after,vite-error-overlay::part(stack):after{content:"";display:block;height:20px;position:absolute;left:var(--box-padding);top:var(--box-padding);width:20px}vite-error-overlay::part(file):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EFile-Generic%3C/title%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='File-Generic'%3E%3Crect id='Rectangle' fill-rule='nonzero' x='0' y='0' width='24' height='24'%3E%3C/rect%3E%3Cpath d='M4 5 C4 3.89543 4.89543 3 6 3 L15.1716 3 C15.702 3 16.2107 3.21071 16.5858 3.58579 L19.4142 6.41421 C19.7893 6.78929 20 7.29799 20 7.82843 L20 19 C20 20.1046 19.1046 21 18 21 L6 21 C4.89543 21 4 20.1046 4 19 L4 5 Z' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M15 4 L15 6 C15 7.10457 15.8954 8 17 8 L19 8' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}vite-error-overlay::part(frame):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.6602 2.84952H19.1516C20.2555 2.84952 21.1504 3.74444 21.1504 4.84839V8.3398' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M2.84949 8.33981L2.84949 4.8484C2.84949 3.74446 3.74441 2.84953 4.84836 2.84953L8.33977 2.84953' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M21.1505 15.6602L21.1505 19.1516C21.1505 20.2555 20.2556 21.1505 19.1516 21.1505L15.6602 21.1505' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M8.33984 21.1505L4.84843 21.1505C3.74449 21.1505 2.84956 20.2555 2.84956 19.1516L2.84956 15.6602' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3C/svg%3E")}vite-error-overlay::part(stack):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.78 20H9.78C7.98 20 4.58 19.09 4.58 15.64C4.58 12.19 7.98 11.28 9.78 11.28H14.22C14.37 11.28 17.92 11.23 17.92 8.42C17.92 5.61 14.37 5.56 14.22 5.56H9.22C9.02109 5.56 8.83032 5.48098 8.68967 5.34033C8.54902 5.19968 8.47 5.00891 8.47 4.81C8.47 4.61109 8.54902 4.42032 8.68967 4.27967C8.83032 4.13902 9.02109 4.06 9.22 4.06H14.22C16.02 4.06 19.42 4.97 19.42 8.42C19.42 11.87 16.02 12.78 14.22 12.78H9.78C9.63 12.78 6.08 12.83 6.08 15.64C6.08 18.45 9.63 18.5 9.78 18.5H14.78C14.9789 18.5 15.1697 18.579 15.3103 18.7197C15.451 18.8603 15.53 19.0511 15.53 19.25C15.53 19.4489 15.451 19.6397 15.3103 19.7803C15.1697 19.921 14.9789 20 14.78 20Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M6.44 8.31C5.74314 8.30407 5.06363 8.09202 4.48708 7.70056C3.91054 7.30909 3.46276 6.75573 3.20018 6.11021C2.93759 5.46469 2.87195 4.75589 3.01153 4.07312C3.1511 3.39036 3.48965 2.76418 3.9845 2.2735C4.47935 1.78281 5.10837 1.44958 5.79229 1.31579C6.47622 1.182 7.18444 1.25363 7.82771 1.52167C8.47099 1.78971 9.02054 2.24215 9.40711 2.82199C9.79368 3.40182 9.99998 4.08311 10 4.78C10 5.2461 9.90773 5.70759 9.72846 6.13783C9.54919 6.56808 9.28648 6.95856 8.95551 7.28675C8.62453 7.61494 8.23184 7.87433 7.80009 8.04995C7.36834 8.22558 6.90609 8.31396 6.44 8.31ZM6.44 2.75C6.04444 2.75 5.65776 2.86729 5.32886 3.08706C4.99996 3.30682 4.74362 3.61918 4.59224 3.98463C4.44087 4.35008 4.40126 4.75221 4.47843 5.14018C4.5556 5.52814 4.74609 5.8845 5.02579 6.16421C5.3055 6.44391 5.66186 6.6344 6.04982 6.71157C6.43779 6.78874 6.83992 6.74913 7.20537 6.59776C7.57082 6.44638 7.88318 6.19003 8.10294 5.86114C8.32271 5.53224 8.44 5.14556 8.44 4.75C8.44 4.48735 8.38827 4.22728 8.28776 3.98463C8.18725 3.74198 8.03993 3.5215 7.85422 3.33578C7.6685 3.15007 7.44802 3.00275 7.20537 2.90224C6.96272 2.80173 6.70265 2.75 6.44 2.75Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M17.56 22.75C16.8614 22.752 16.1779 22.5466 15.5961 22.1599C15.0143 21.7733 14.5603 21.2227 14.2916 20.5778C14.0229 19.933 13.9515 19.2229 14.0866 18.5375C14.2217 17.8521 14.5571 17.2221 15.0504 16.7275C15.5437 16.2328 16.1726 15.8956 16.8577 15.7586C17.5427 15.6215 18.253 15.6909 18.8986 15.9577C19.5442 16.2246 20.0961 16.6771 20.4844 17.2578C20.8727 17.8385 21.08 18.5214 21.08 19.22C21.08 20.1545 20.7095 21.0508 20.0496 21.7125C19.3898 22.3743 18.4945 22.7473 17.56 22.75ZM17.56 17.19C17.1644 17.19 16.7778 17.3073 16.4489 17.5271C16.12 17.7468 15.8636 18.0592 15.7122 18.4246C15.5609 18.7901 15.5213 19.1922 15.5984 19.5802C15.6756 19.9681 15.8661 20.3245 16.1458 20.6042C16.4255 20.8839 16.7819 21.0744 17.1698 21.1516C17.5578 21.2287 17.9599 21.1891 18.3254 21.0377C18.6908 20.8864 19.0032 20.63 19.2229 20.3011C19.4427 19.9722 19.56 19.5856 19.56 19.19C19.56 18.6596 19.3493 18.1508 18.9742 17.7758C18.5991 17.4007 18.0904 17.19 17.56 17.19Z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E")}vite-error-overlay::part(tip):before{content:"Not sure how to solve this? Visit https://qwik.dev or connect with the community on Discord.";display:block;margin-bottom:1em}`, Or = "#qwik-inspector-overlay{position:fixed;background:#18b6f645;pointer-events:none;box-sizing:border-box;border:2px solid rgba(172,126,244,.46);border-radius:4px;contain:strict;cursor:pointer;z-index:999999}#qwik-inspector-info-popup{position:fixed;bottom:10px;right:10px;font-family:monospace;background:#000000c2;color:#fff;padding:10px 20px;border-radius:8px;box-shadow:0 20px 25px -5px #00000057,0 8px 10px -6px #0000003d;backdrop-filter:blur(4px);-webkit-animation:fadeOut .3s 3s ease-in-out forwards;animation:fadeOut .3s 3s ease-in-out forwards;z-index:999999;contain:layout}#qwik-inspector-info-popup p{margin:0}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;visibility:hidden}}";
2553
- async function Lr(e, n, i, r) {
2551
+ `, Mr = `vite-error-overlay{--color-bright: rgba(255, 255, 255, .8);--color-yellow: rgba(255, 246, 85, .8);--qwik-dark-blue: #006ce9;--qwik-light-blue: #3ec2f7;--qwik-light-purple: #ac7ff4;--qwik-dark-purple: #713fc2;--yellow: #fff;--purple: var(--color-bright);--red: var(--qwik-light-blue);--vertical-box-spacing: 15px;--box-padding: 20px;--box-margin: 0 0 var(--vertical-box-spacing) 0;--box-background: rgba(0, 0, 0, .5);--box-border-radius: 8px}vite-error-overlay::part(backdrop){background:#020b1199}vite-error-overlay::part(window){background:transparent;border:none;box-shadow:none;box-sizing:border-box;margin:50px auto;max-width:1200px;padding:var(--box-padding);width:90%}vite-error-overlay::part(message){display:flex;flex-direction:column;font-size:1.6rem;line-height:1.7;margin-bottom:30px}vite-error-overlay::part(plugin){font-size:.8rem;font-weight:100}vite-error-overlay::part(file),vite-error-overlay::part(frame),vite-error-overlay::part(stack),vite-error-overlay::part(tip){background:var(--box-background);border-left:5px solid transparent;border-radius:var(--box-border-radius);margin:var(--box-margin);min-height:50px;padding:var(--box-padding);position:relative}vite-error-overlay::part(file){border-left-color:#19b6f6;color:var(--color-bright)}vite-error-overlay::part(frame){border-left-color:var(--color-yellow);color:var(--color-yellow)}vite-error-overlay::part(stack){border-left-color:#ff5722}vite-error-overlay::part(tip){border-top:none;border-left-color:#ac7ff4}vite-error-overlay::part(file):before,vite-error-overlay::part(frame):before,vite-error-overlay::part(stack):before{border-bottom:1px solid #222;color:var(--color-bright);display:block;margin-bottom:15px;padding-bottom:5px;padding-left:30px;font-size:.8rem}vite-error-overlay::part(file):before{content:"File"}vite-error-overlay::part(frame):before{content:"Frame"}vite-error-overlay::part(stack):before{content:"Stack Trace"}vite-error-overlay::part(file):after,vite-error-overlay::part(frame):after,vite-error-overlay::part(stack):after{content:"";display:block;height:20px;position:absolute;left:var(--box-padding);top:var(--box-padding);width:20px}vite-error-overlay::part(file):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EFile-Generic%3C/title%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='File-Generic'%3E%3Crect id='Rectangle' fill-rule='nonzero' x='0' y='0' width='24' height='24'%3E%3C/rect%3E%3Cpath d='M4 5 C4 3.89543 4.89543 3 6 3 L15.1716 3 C15.702 3 16.2107 3.21071 16.5858 3.58579 L19.4142 6.41421 C19.7893 6.78929 20 7.29799 20 7.82843 L20 19 C20 20.1046 19.1046 21 18 21 L6 21 C4.89543 21 4 20.1046 4 19 L4 5 Z' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3Cpath d='M15 4 L15 6 C15 7.10457 15.8954 8 17 8 L19 8' id='Path' stroke='rgba(255,255,255,0.7)' stroke-width='1' stroke-linecap='round'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}vite-error-overlay::part(frame):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.6602 2.84952H19.1516C20.2555 2.84952 21.1504 3.74444 21.1504 4.84839V8.3398' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M2.84949 8.33981L2.84949 4.8484C2.84949 3.74446 3.74441 2.84953 4.84836 2.84953L8.33977 2.84953' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M21.1505 15.6602L21.1505 19.1516C21.1505 20.2555 20.2556 21.1505 19.1516 21.1505L15.6602 21.1505' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3Cpath d='M8.33984 21.1505L4.84843 21.1505C3.74449 21.1505 2.84956 20.2555 2.84956 19.1516L2.84956 15.6602' stroke='rgba(255,255,255,0.7)' stroke-width='1.69904' stroke-linecap='round'/%3E%3C/svg%3E")}vite-error-overlay::part(stack):after{background-image:url("data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.78 20H9.78C7.98 20 4.58 19.09 4.58 15.64C4.58 12.19 7.98 11.28 9.78 11.28H14.22C14.37 11.28 17.92 11.23 17.92 8.42C17.92 5.61 14.37 5.56 14.22 5.56H9.22C9.02109 5.56 8.83032 5.48098 8.68967 5.34033C8.54902 5.19968 8.47 5.00891 8.47 4.81C8.47 4.61109 8.54902 4.42032 8.68967 4.27967C8.83032 4.13902 9.02109 4.06 9.22 4.06H14.22C16.02 4.06 19.42 4.97 19.42 8.42C19.42 11.87 16.02 12.78 14.22 12.78H9.78C9.63 12.78 6.08 12.83 6.08 15.64C6.08 18.45 9.63 18.5 9.78 18.5H14.78C14.9789 18.5 15.1697 18.579 15.3103 18.7197C15.451 18.8603 15.53 19.0511 15.53 19.25C15.53 19.4489 15.451 19.6397 15.3103 19.7803C15.1697 19.921 14.9789 20 14.78 20Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M6.44 8.31C5.74314 8.30407 5.06363 8.09202 4.48708 7.70056C3.91054 7.30909 3.46276 6.75573 3.20018 6.11021C2.93759 5.46469 2.87195 4.75589 3.01153 4.07312C3.1511 3.39036 3.48965 2.76418 3.9845 2.2735C4.47935 1.78281 5.10837 1.44958 5.79229 1.31579C6.47622 1.182 7.18444 1.25363 7.82771 1.52167C8.47099 1.78971 9.02054 2.24215 9.40711 2.82199C9.79368 3.40182 9.99998 4.08311 10 4.78C10 5.2461 9.90773 5.70759 9.72846 6.13783C9.54919 6.56808 9.28648 6.95856 8.95551 7.28675C8.62453 7.61494 8.23184 7.87433 7.80009 8.04995C7.36834 8.22558 6.90609 8.31396 6.44 8.31ZM6.44 2.75C6.04444 2.75 5.65776 2.86729 5.32886 3.08706C4.99996 3.30682 4.74362 3.61918 4.59224 3.98463C4.44087 4.35008 4.40126 4.75221 4.47843 5.14018C4.5556 5.52814 4.74609 5.8845 5.02579 6.16421C5.3055 6.44391 5.66186 6.6344 6.04982 6.71157C6.43779 6.78874 6.83992 6.74913 7.20537 6.59776C7.57082 6.44638 7.88318 6.19003 8.10294 5.86114C8.32271 5.53224 8.44 5.14556 8.44 4.75C8.44 4.48735 8.38827 4.22728 8.28776 3.98463C8.18725 3.74198 8.03993 3.5215 7.85422 3.33578C7.6685 3.15007 7.44802 3.00275 7.20537 2.90224C6.96272 2.80173 6.70265 2.75 6.44 2.75Z' fill='rgba(255,255,255,0.7)'/%3E%3Cpath d='M17.56 22.75C16.8614 22.752 16.1779 22.5466 15.5961 22.1599C15.0143 21.7733 14.5603 21.2227 14.2916 20.5778C14.0229 19.933 13.9515 19.2229 14.0866 18.5375C14.2217 17.8521 14.5571 17.2221 15.0504 16.7275C15.5437 16.2328 16.1726 15.8956 16.8577 15.7586C17.5427 15.6215 18.253 15.6909 18.8986 15.9577C19.5442 16.2246 20.0961 16.6771 20.4844 17.2578C20.8727 17.8385 21.08 18.5214 21.08 19.22C21.08 20.1545 20.7095 21.0508 20.0496 21.7125C19.3898 22.3743 18.4945 22.7473 17.56 22.75ZM17.56 17.19C17.1644 17.19 16.7778 17.3073 16.4489 17.5271C16.12 17.7468 15.8636 18.0592 15.7122 18.4246C15.5609 18.7901 15.5213 19.1922 15.5984 19.5802C15.6756 19.9681 15.8661 20.3245 16.1458 20.6042C16.4255 20.8839 16.7819 21.0744 17.1698 21.1516C17.5578 21.2287 17.9599 21.1891 18.3254 21.0377C18.6908 20.8864 19.0032 20.63 19.2229 20.3011C19.4427 19.9722 19.56 19.5856 19.56 19.19C19.56 18.6596 19.3493 18.1508 18.9742 17.7758C18.5991 17.4007 18.0904 17.19 17.56 17.19Z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E")}vite-error-overlay::part(tip):before{content:"Not sure how to solve this? Visit https://qwik.dev or connect with the community on Discord.";display:block;margin-bottom:1em}`, qr = "#qwik-inspector-overlay{position:fixed;background:#18b6f645;pointer-events:none;box-sizing:border-box;border:2px solid rgba(172,126,244,.46);border-radius:4px;contain:strict;cursor:pointer;z-index:999999}#qwik-inspector-info-popup{position:fixed;bottom:10px;right:10px;font-family:monospace;background:#000000c2;color:#fff;padding:10px 20px;border-radius:8px;box-shadow:0 20px 25px -5px #00000057,0 8px 10px -6px #0000003d;backdrop-filter:blur(4px);-webkit-animation:fadeOut .3s 3s ease-in-out forwards;animation:fadeOut .3s 3s ease-in-out forwards;z-index:999999;contain:layout}#qwik-inspector-info-popup p{margin:0}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;visibility:hidden}}";
2552
+ async function Or(e, n, i, r) {
2554
2553
  const o = await i.dynamicImport("node:fs"), g = await i.dynamicImport("node:url"), a = ["mjs", "cjs", "js"].map(
2555
- (p) => r.join(n, `entry.preview.${p}`)
2556
- ).find((p) => o.existsSync(p));
2554
+ (f) => r.join(n, `entry.preview.${f}`)
2555
+ ).find((f) => o.existsSync(f));
2557
2556
  if (!a)
2558
2557
  return Ke(
2559
2558
  e,
@@ -2562,7 +2561,7 @@ async function Lr(e, n, i, r) {
2562
2561
  Please ensure "src/entry.preview.tsx" has been built before the "preview" command.`
2563
2562
  );
2564
2563
  try {
2565
- const p = g.pathToFileURL(a).href, t = await i.strictDynamicImport(p);
2564
+ const f = g.pathToFileURL(a).href, t = await i.strictDynamicImport(f);
2566
2565
  let v = null, w = null;
2567
2566
  if (t.default && (typeof t.default == "function" ? v = t.default : typeof t.default == "object" && (v = t.default.router, w = t.default.notFound)), typeof v != "function")
2568
2567
  return Ke(
@@ -2570,8 +2569,8 @@ Please ensure "src/entry.preview.tsx" has been built before the "preview" comman
2570
2569
  `Entry preview module "${a}" does not export a default middleware function`
2571
2570
  );
2572
2571
  e.use(v), typeof w == "function" && e.use(w);
2573
- } catch (p) {
2574
- return Ke(e, String(p));
2572
+ } catch (f) {
2573
+ return Ke(e, String(f));
2575
2574
  }
2576
2575
  }
2577
2576
  function Ke(e, n) {
@@ -2583,25 +2582,25 @@ function Ke(e, n) {
2583
2582
  }), r.end(n);
2584
2583
  });
2585
2584
  }
2586
- const jr = (e, n) => {
2585
+ const Lr = (e, n) => {
2587
2586
  const i = [
2587
+ { tag: "style", children: Mr, injectTo: "body" },
2588
2588
  { tag: "style", children: qr, injectTo: "body" },
2589
- { tag: "style", children: Or, injectTo: "body" },
2590
- { tag: "script", attrs: { type: "module" }, children: Pr, injectTo: "body" },
2591
- { tag: "script", attrs: { type: "module" }, children: Tr, injectTo: "body" }
2589
+ { tag: "script", attrs: { type: "module" }, children: Cr, injectTo: "body" },
2590
+ { tag: "script", attrs: { type: "module" }, children: _r, injectTo: "body" }
2592
2591
  ];
2593
2592
  if ((e.devTools?.imageDevTools ?? !0) && i.push(
2594
2593
  {
2595
2594
  tag: "style",
2596
- children: Dr,
2595
+ children: Pr,
2597
2596
  injectTo: "body"
2598
2597
  },
2599
2598
  {
2600
2599
  tag: "script",
2601
2600
  attrs: { type: "module" },
2602
- children: Nr.replace(
2601
+ children: Dr.replace(
2603
2602
  "globalThis.__TEMPLATE__",
2604
- JSON.stringify(Mr)
2603
+ JSON.stringify(Nr)
2605
2604
  ),
2606
2605
  injectTo: "body"
2607
2606
  }
@@ -2610,12 +2609,12 @@ const jr = (e, n) => {
2610
2609
  n.endsWith("/") && (n = n.slice(0, -1)), i.push({
2611
2610
  tag: "script",
2612
2611
  attrs: { type: "module" },
2613
- children: Cr.replace("globalThis.__HOTKEYS__", JSON.stringify(r)).replace("globalThis.__BASE__", JSON.stringify(n)),
2612
+ children: Tr.replace("globalThis.__HOTKEYS__", JSON.stringify(r)).replace("globalThis.__BASE__", JSON.stringify(n)),
2614
2613
  injectTo: "body"
2615
2614
  });
2616
2615
  }
2617
2616
  return i;
2618
- }, Ur = [
2617
+ }, jr = [
2619
2618
  Ue,
2620
2619
  Qe,
2621
2620
  Je,
@@ -2623,12 +2622,12 @@ const jr = (e, n) => {
2623
2622
  "@builder.io/qwik",
2624
2623
  "@builder.io/qwik/jsx-runtime",
2625
2624
  "@builder.io/qwik/jsx-dev-runtime"
2626
- ], Br = [".css", ".scss", ".sass", ".less", ".styl", ".stylus"], Ar = [".woff", ".woff2", ".ttf"];
2627
- function Hr(e = {}) {
2628
- let n = "serve", i = null, r = null, o = "/", g = null, d, a = null, p = null, t = null;
2625
+ ], Ur = [".css", ".scss", ".sass", ".less", ".styl", ".stylus"], Br = [".woff", ".woff2", ".ttf"];
2626
+ function zr(e = {}) {
2627
+ let n = "serve", i = null, r = null, o = "/", g = null, d, a = null, f = null, t = null;
2629
2628
  const v = e.client?.outDir;
2630
2629
  let w = null;
2631
- const x = e.fileFilter ? (u, b) => Dt.test(u) || e.fileFilter(u, b) : () => !0, _ = e.disableFontPreload ?? !1, s = [], l = Pt(e.optimizerOptions), h = /* @__PURE__ */ new Set();
2630
+ const x = e.fileFilter ? (u, b) => Pt.test(u) || e.fileFilter(u, b) : () => !0, _ = e.disableFontPreload ?? !1, s = [], l = Ct(e.optimizerOptions), h = /* @__PURE__ */ new Set();
2632
2631
  return [{
2633
2632
  name: "vite-plugin-qwik",
2634
2633
  enforce: "pre",
@@ -2645,15 +2644,15 @@ function Hr(e = {}) {
2645
2644
  },
2646
2645
  async config(u, b) {
2647
2646
  await l.init();
2648
- let f;
2649
- u.build?.ssr || b.mode === "ssr" ? f = "ssr" : b.mode === "lib" ? f = "lib" : b.mode === "test" ? f = "test" : f = "client", n = b.command;
2647
+ let p;
2648
+ u.build?.ssr || b.mode === "ssr" ? p = "ssr" : b.mode === "lib" ? p = "lib" : b.mode === "test" ? p = "test" : p = "client", n = b.command;
2650
2649
  let I;
2651
- b.mode === "production" ? I = "production" : b.mode === "development" ? I = "development" : n === "build" && f === "client" ? I = "production" : I = "development", l.debug(`vite config(), command: ${n}, env.mode: ${b.mode}`), n === "serve" ? e.entryStrategy = { type: "segment" } : f === "ssr" ? e.entryStrategy = { type: "hoist" } : f === "lib" && (e.entryStrategy = { type: "inline" });
2652
- const S = f === "ssr" ? typeof u.build?.ssr == "string" ? u.build.ssr : e.ssr?.input : void 0, q = f === "client" ? e.client?.input : void 0;
2650
+ b.mode === "production" ? I = "production" : b.mode === "development" ? I = "development" : n === "build" && p === "client" ? I = "production" : I = "development", l.debug(`vite config(), command: ${n}, env.mode: ${b.mode}`), n === "serve" ? e.entryStrategy = { type: "segment" } : p === "ssr" ? e.entryStrategy = { type: "hoist" } : p === "lib" && (e.entryStrategy = { type: "inline" });
2651
+ const S = p === "ssr" ? typeof u.build?.ssr == "string" ? u.build.ssr : e.ssr?.input : void 0, q = p === "client" ? e.client?.input : void 0;
2653
2652
  let D = u.build?.rollupOptions?.input || q || S;
2654
2653
  D && typeof D == "string" && (D = [D]), d = u.build?.assetsDir;
2655
- const P = f === "client" && !!d && d !== "_astro", $ = {
2656
- target: f,
2654
+ const P = p === "client" && !!d && d !== "_astro", $ = {
2655
+ target: p,
2657
2656
  buildMode: I,
2658
2657
  csr: e.csr,
2659
2658
  debug: e.debug,
@@ -2678,15 +2677,15 @@ function Hr(e = {}) {
2678
2677
  manifestInputPath: e.ssr?.manifestInputPath,
2679
2678
  manifestOutput: e.client?.manifestOutput
2680
2679
  }, A = await l.normalizeOptions($);
2681
- D || (D = A.input), w = $, i = A.manifestInput, a = A.srcDir, p = A.rootDir, e.csr || (r = A.clientOutDir, g = r, t = A.ssrOutDir);
2680
+ D || (D = A.input), w = $, i = A.manifestInput, a = A.srcDir, f = A.rootDir, e.csr || (r = A.clientOutDir, g = r, t = A.ssrOutDir);
2682
2681
  const G = I === "development", X = "globalThis.qDev", Q = "globalThis.qTest", ee = "globalThis.qInspector", Y = "globalThis.qSerialize", O = u?.define?.[X] ?? G, ie = u?.define?.[ee] ?? G, Re = u?.define?.[Y] ?? G, F = {
2683
2682
  ssr: {
2684
2683
  noExternal: [Ue, Be, ze, ne]
2685
2684
  },
2686
2685
  envPrefix: ["VITE_", "PUBLIC_"],
2687
2686
  resolve: {
2688
- dedupe: [...Ur],
2689
- conditions: I === "production" && f === "client" ? ["min"] : [],
2687
+ dedupe: [...jr],
2688
+ conditions: I === "production" && p === "client" ? ["min"] : [],
2690
2689
  alias: {
2691
2690
  "@builder.io/qwik": "@qwik.dev/core",
2692
2691
  "@builder.io/qwik/build": "@qwik.dev/core/build",
@@ -2751,7 +2750,7 @@ function Hr(e = {}) {
2751
2750
  const ue = F.build.rollupOptions?.onwarn;
2752
2751
  F.build.rollupOptions = {
2753
2752
  ...F.build.rollupOptions,
2754
- output: await xn(
2753
+ output: await wn(
2755
2754
  l,
2756
2755
  u.build?.rollupOptions?.output,
2757
2756
  P,
@@ -2785,26 +2784,26 @@ function Hr(e = {}) {
2785
2784
  async buildStart() {
2786
2785
  s.length = 0;
2787
2786
  const u = this.resolve.bind(this);
2788
- await l.validateSource(u), l.onDiagnostics((b, f, I) => {
2787
+ await l.validateSource(u), l.onDiagnostics((b, p, I) => {
2789
2788
  b.forEach((S) => {
2790
- const q = l.normalizePath(f.sys.path.join(I, S.file));
2789
+ const q = l.normalizePath(p.sys.path.join(I, S.file));
2791
2790
  S.category === "error" ? this.error(Ae(q, S)) : this.warn(Ae(q, S));
2792
2791
  });
2793
2792
  }), await l.buildStart(this);
2794
2793
  },
2795
- resolveId(u, b, f) {
2794
+ resolveId(u, b, p) {
2796
2795
  const I = x(u, "resolveId");
2797
- return Z(u) || !I ? null : l.resolveId(this, u, b, f);
2796
+ return Z(u) || !I ? null : l.resolveId(this, u, b, p);
2798
2797
  },
2799
2798
  load(u, b) {
2800
- const f = x(u, "load");
2801
- return Z(u) || !f ? null : (u = l.normalizePath(u), n === "serve" && u.endsWith(re) ? {
2799
+ const p = x(u, "load");
2800
+ return Z(u) || !p ? null : (u = l.normalizePath(u), n === "serve" && u.endsWith(re) ? {
2802
2801
  code: "export const manifest = undefined;"
2803
2802
  } : l.load(this, u, b));
2804
2803
  },
2805
- transform(u, b, f) {
2804
+ transform(u, b, p) {
2806
2805
  if (b.includes(".vite/deps/") && u.slice(0, 5e3).includes("qwik") && /import[^\n]*qwik[^\n]*\n/.test(u)) {
2807
- const q = p && b.startsWith(p) ? b.slice(p.length) : b;
2806
+ const q = f && b.startsWith(f) ? b.slice(f.length) : b;
2808
2807
  throw new Error(
2809
2808
  `
2810
2809
 
@@ -2821,7 +2820,7 @@ function Hr(e = {}) {
2821
2820
  );
2822
2821
  }
2823
2822
  const I = x(b, "transform"), S = b.includes("?raw");
2824
- return Z(b) || !I || S ? null : l.transform(this, u, b, f);
2823
+ return Z(b) || !I || S ? null : l.transform(this, u, b, p);
2825
2824
  }
2826
2825
  }, {
2827
2826
  name: "vite-plugin-qwik-post",
@@ -2829,13 +2828,13 @@ function Hr(e = {}) {
2829
2828
  generateBundle: {
2830
2829
  order: "post",
2831
2830
  async handler(u, b) {
2832
- const f = l.getOptions();
2833
- if (f.target === "client") {
2831
+ const p = l.getOptions();
2832
+ if (p.target === "client") {
2834
2833
  for (const [I, S] of Object.entries(b))
2835
2834
  if (S.type === "asset") {
2836
2835
  const q = o + I;
2837
- if (Br.some((D) => I.endsWith(D)))
2838
- typeof S.source == "string" && S.source.length < f.inlineStylesUpToBytes ? s.push({
2836
+ if (Ur.some((D) => I.endsWith(D)))
2837
+ typeof S.source == "string" && S.source.length < p.inlineStylesUpToBytes ? s.push({
2839
2838
  tag: "style",
2840
2839
  location: "head",
2841
2840
  attributes: {
@@ -2851,7 +2850,7 @@ function Hr(e = {}) {
2851
2850
  }
2852
2851
  });
2853
2852
  else {
2854
- const D = Ar.find((P) => I.endsWith(P));
2853
+ const D = Br.find((P) => I.endsWith(P));
2855
2854
  D && !_ && s.unshift({
2856
2855
  tag: "link",
2857
2856
  location: "head",
@@ -2873,8 +2872,8 @@ function Hr(e = {}) {
2873
2872
  }
2874
2873
  },
2875
2874
  async writeBundle(u, b) {
2876
- const f = l.getOptions();
2877
- if (f.target === "ssr") {
2875
+ const p = l.getOptions();
2876
+ if (p.target === "ssr") {
2878
2877
  const I = l.getSys();
2879
2878
  if (I.env === "node" || I.env === "bun") {
2880
2879
  const S = Object.keys(b), q = async (D) => {
@@ -2883,7 +2882,7 @@ function Hr(e = {}) {
2883
2882
  if ((P.startsWith("entry.") || P.startsWith("entry_")) && !P.includes("preview") && ($ === ".mjs" || $ === ".cjs")) {
2884
2883
  const G = I.path.basename(P, $), X = `${G}.js`, Q = G + $;
2885
2884
  if (!S.some((Y) => I.path.basename(Y) === X)) {
2886
- const Y = I.path.dirname(D), O = await I.dynamicImport("node:fs"), ie = I.path.join(f.outDir, Y);
2885
+ const Y = I.path.dirname(D), O = await I.dynamicImport("node:fs"), ie = I.path.join(p.outDir, Y);
2887
2886
  await O.promises.mkdir(ie, { recursive: !0 }), await O.promises.writeFile(
2888
2887
  I.path.join(ie, X),
2889
2888
  `export * from "./${Q}";`
@@ -2900,15 +2899,15 @@ function Hr(e = {}) {
2900
2899
  },
2901
2900
  transformIndexHtml() {
2902
2901
  if (n === "serve")
2903
- return jr(l.getOptions(), o);
2902
+ return Lr(l.getOptions(), o);
2904
2903
  },
2905
2904
  configureServer(u) {
2906
- l.configureServer(u), (e?.devTools?.imageDevTools ?? !0) && u.middlewares.use(kr(l.getSys(), p, a));
2905
+ l.configureServer(u), (e?.devTools?.imageDevTools ?? !0) && u.middlewares.use(Sr(l.getSys(), f, a));
2907
2906
  },
2908
2907
  configurePreviewServer(u) {
2909
2908
  return async () => {
2910
- const b = l.getSys(), f = l.getPath();
2911
- await Lr(u.middlewares, t, b, f);
2909
+ const b = l.getSys(), p = l.getPath();
2910
+ await Or(u.middlewares, t, b, p);
2912
2911
  };
2913
2912
  },
2914
2913
  handleHotUpdate(u) {
@@ -2918,12 +2917,12 @@ function Hr(e = {}) {
2918
2917
  },
2919
2918
  onLog(u, b) {
2920
2919
  if (b.plugin == "vite-plugin-qwik") {
2921
- const f = Rr[u] || oe.White, I = (b.frame || "").split(`
2920
+ const p = Fr[u] || oe.White, I = (b.frame || "").split(`
2922
2921
  `).map(
2923
2922
  (S) => (S.match(/^\s*\^\s*$/) ? oe.BrightWhite : oe.BrightBlack) + S
2924
2923
  );
2925
2924
  return console[u](
2926
- `${f}%s
2925
+ `${p}%s
2927
2926
  ${oe.BrightWhite}%s
2928
2927
  %s${oe.RESET}`,
2929
2928
  `[${b.plugin}](${u}): ${b.message}
@@ -2936,9 +2935,9 @@ ${oe.BrightWhite}%s
2936
2935
  ), !1;
2937
2936
  }
2938
2937
  }
2939
- }, Fr()];
2938
+ }, Ar()];
2940
2939
  }
2941
- async function Fr() {
2940
+ async function Ar() {
2942
2941
  let e, n;
2943
2942
  try {
2944
2943
  e = await import("node:fs").then((a) => a.promises), n = await import("node:path");
@@ -2948,9 +2947,9 @@ async function Fr() {
2948
2947
  const i = /* @__PURE__ */ new Set();
2949
2948
  let r;
2950
2949
  const o = "@qwik-dev/core", g = "@builder.io/qwik";
2951
- async function d(a, p) {
2952
- for (; p; ) {
2953
- const t = n.join(p, "node_modules", a, "package.json");
2950
+ async function d(a, f) {
2951
+ for (; f; ) {
2952
+ const t = n.join(f, "node_modules", a, "package.json");
2954
2953
  try {
2955
2954
  await e.access(t);
2956
2955
  const w = await e.readFile(t, {
@@ -2959,10 +2958,10 @@ async function Fr() {
2959
2958
  return !!(x.qwik || x.dependencies?.[o] || x.peerDependencies?.[o] || x.dependencies?.[g] || x.peerDependencies?.[g]);
2960
2959
  } catch {
2961
2960
  }
2962
- const v = n.dirname(p);
2963
- if (v === p)
2961
+ const v = n.dirname(f);
2962
+ if (v === f)
2964
2963
  break;
2965
- p = v;
2964
+ f = v;
2966
2965
  }
2967
2966
  return !1;
2968
2967
  }
@@ -2976,16 +2975,16 @@ async function Fr() {
2976
2975
  config: {
2977
2976
  order: "post",
2978
2977
  async handler(a) {
2979
- const p = [], t = [a.ssr?.noExternal, a.environments?.ssr?.resolve?.noExternal].flat().filter((w) => typeof w == "string"), v = a.optimizeDeps?.exclude ?? [];
2978
+ const f = [], t = [a.ssr?.noExternal, a.environments?.ssr?.resolve?.noExternal].flat().filter((w) => typeof w == "string"), v = a.optimizeDeps?.exclude ?? [];
2980
2979
  for (const w of t)
2981
- v.includes(w) || await d(w, a.root || process.cwd()) && p.push(w);
2982
- return { optimizeDeps: { exclude: p } };
2980
+ v.includes(w) || await d(w, a.root || process.cwd()) && f.push(w);
2981
+ return { optimizeDeps: { exclude: f } };
2983
2982
  }
2984
2983
  },
2985
2984
  // We check all SSR build lookups for external Qwik deps
2986
2985
  resolveId: {
2987
2986
  order: "pre",
2988
- async handler(a, p, t) {
2987
+ async handler(a, f, t) {
2989
2988
  if (!t.ssr || /^([./]|node:|[^a-z@])/i.test(a) || i.has(a))
2990
2989
  return;
2991
2990
  const v = (a.startsWith("@") ? a.split("/").slice(0, 2).join("/") : a.split("/")[0]).split("?")[0];
@@ -2994,11 +2993,11 @@ async function Fr() {
2994
2993
  i.add(a), i.add(v);
2995
2994
  let w;
2996
2995
  try {
2997
- w = await this.resolve(v, p, { ...t, skipSelf: !0 });
2996
+ w = await this.resolve(v, f, { ...t, skipSelf: !0 });
2998
2997
  } catch {
2999
2998
  return;
3000
2999
  }
3001
- if (w?.external && await d(v, p ? n.dirname(p) : r))
3000
+ if (w?.external && await d(v, f ? n.dirname(f) : r))
3002
3001
  throw new Error(
3003
3002
  `
3004
3003
  ==============
@@ -3020,15 +3019,15 @@ const oe = {
3020
3019
  BrightBlack: "\x1B[90m",
3021
3020
  BrightWhite: "\x1B[97m",
3022
3021
  RESET: "\x1B[0m"
3023
- }, Rr = {
3022
+ }, Fr = {
3024
3023
  warn: oe.Yellow,
3025
3024
  info: oe.Cyan,
3026
3025
  debug: oe.BrightBlack
3027
- }, Wr = void 0;
3026
+ }, Hr = void 0;
3028
3027
  export {
3029
- Ft as createOptimizer,
3030
- zr as qwikRollup,
3031
- Hr as qwikVite,
3032
- Wr as symbolMapper,
3033
- $r as versions
3028
+ At as createOptimizer,
3029
+ $r as qwikRollup,
3030
+ zr as qwikVite,
3031
+ Hr as symbolMapper,
3032
+ Rr as versions
3034
3033
  };