@qwik.dev/core 2.0.0-beta.32 → 2.0.0-beta.34
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.
- package/dist/backpatch/index.mjs +2 -2
- package/dist/backpatch/package.json +1 -1
- package/dist/backpatch-executor.debug.js +12 -6
- package/dist/backpatch-executor.js +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +71 -5
- package/dist/core.min.mjs +2 -2
- package/dist/core.mjs +97 -94
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +2159 -2164
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +724 -719
- package/dist/preloader.mjs +64 -89
- package/dist/server.d.ts +0 -54
- package/dist/server.mjs +112 -487
- package/dist/server.prod.mjs +204 -616
- package/dist/testing/index.d.ts +2 -1
- package/dist/testing/index.mjs +766 -3522
- package/dist/testing/package.json +1 -1
- package/package.json +3 -3
package/dist/optimizer.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Lt = (e, n = 0) => {
|
|
2
2
|
for (let i = 0; i < e.length; i++) {
|
|
3
3
|
const r = e.charCodeAt(i);
|
|
4
4
|
n = (n << 5) - n + r, n |= 0;
|
|
5
5
|
}
|
|
6
6
|
return Number(Math.abs(n)).toString(36);
|
|
7
|
-
},
|
|
8
|
-
function
|
|
7
|
+
}, Ut = /* @__PURE__ */ new Set(["_chk", "_rsc", "_res", "_run", "_task", "_val", "_eaC", "_eaT"]);
|
|
8
|
+
function Rt(e) {
|
|
9
9
|
const n = e.symbols;
|
|
10
10
|
return Object.keys(n).sort((i, r) => {
|
|
11
11
|
const o = n[i], u = n[r];
|
|
@@ -14,27 +14,27 @@ function Bt(e) {
|
|
|
14
14
|
if (o.ctxKind !== "eventHandler" && u.ctxKind === "eventHandler")
|
|
15
15
|
return 1;
|
|
16
16
|
if (o.ctxKind === "eventHandler" && u.ctxKind === "eventHandler") {
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
if (
|
|
17
|
+
const l = Ze.indexOf(o.ctxName.toLowerCase()), c = Ze.indexOf(u.ctxName.toLowerCase());
|
|
18
|
+
if (l > -1 && c > -1) {
|
|
19
|
+
if (l < c)
|
|
20
20
|
return -1;
|
|
21
|
-
if (
|
|
21
|
+
if (l > c)
|
|
22
22
|
return 1;
|
|
23
23
|
} else {
|
|
24
|
-
if (
|
|
24
|
+
if (l > -1)
|
|
25
25
|
return -1;
|
|
26
26
|
if (c > -1)
|
|
27
27
|
return 1;
|
|
28
28
|
}
|
|
29
29
|
} else if (o.ctxKind === "function" && u.ctxKind === "function") {
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
if (
|
|
30
|
+
const l = et.indexOf(o.ctxName.toLowerCase()), c = et.indexOf(u.ctxName.toLowerCase());
|
|
31
|
+
if (l > -1 && c > -1) {
|
|
32
|
+
if (l < c)
|
|
33
33
|
return -1;
|
|
34
|
-
if (
|
|
34
|
+
if (l > c)
|
|
35
35
|
return 1;
|
|
36
36
|
} else {
|
|
37
|
-
if (
|
|
37
|
+
if (l > -1)
|
|
38
38
|
return -1;
|
|
39
39
|
if (c > -1)
|
|
40
40
|
return 1;
|
|
@@ -102,21 +102,21 @@ const Ze = [
|
|
|
102
102
|
].map((e) => `on${e.toLowerCase()}$`), et = ["useTask$", "useVisibleTask$", "component$", "useStyles$", "useStylesScoped$"].map(
|
|
103
103
|
(e) => e.toLowerCase()
|
|
104
104
|
);
|
|
105
|
-
function
|
|
105
|
+
function Bt(e) {
|
|
106
106
|
return Object.keys(e.bundles).sort($e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const n =
|
|
110
|
-
for (const
|
|
111
|
-
i[
|
|
112
|
-
const o =
|
|
113
|
-
for (const
|
|
114
|
-
u[
|
|
115
|
-
const c = e.bundles[
|
|
108
|
+
function Ft(e) {
|
|
109
|
+
const n = Rt(e), i = {}, r = {};
|
|
110
|
+
for (const l of n)
|
|
111
|
+
i[l] = e.symbols[l], r[l] = e.mapping[l];
|
|
112
|
+
const o = Bt(e), u = {};
|
|
113
|
+
for (const l of o) {
|
|
114
|
+
u[l] = e.bundles[l];
|
|
115
|
+
const c = e.bundles[l];
|
|
116
116
|
Array.isArray(c.imports) && c.imports.sort($e), Array.isArray(c.dynamicImports) && c.dynamicImports.sort($e);
|
|
117
117
|
const f = [];
|
|
118
118
|
for (const t of n)
|
|
119
|
-
|
|
119
|
+
l === r[t] && f.push(t);
|
|
120
120
|
f.length > 0 && (f.sort($e), c.symbols = f);
|
|
121
121
|
}
|
|
122
122
|
return e.symbols = i, e.mapping = r, e.bundles = u, e;
|
|
@@ -128,7 +128,7 @@ function tt(e) {
|
|
|
128
128
|
if (e != null && e.mapping != null && typeof e.mapping == "object" && e.symbols != null && typeof e.symbols == "object" && e.bundles != null && typeof e.bundles == "object")
|
|
129
129
|
return e;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const $t = (e, n) => {
|
|
132
132
|
let i = 0;
|
|
133
133
|
if (e.symbols)
|
|
134
134
|
for (const r of e.symbols) {
|
|
@@ -138,35 +138,35 @@ const zt = (e, n) => {
|
|
|
138
138
|
}
|
|
139
139
|
return i;
|
|
140
140
|
};
|
|
141
|
-
function
|
|
141
|
+
function zt(e) {
|
|
142
142
|
let n = 0;
|
|
143
|
-
const i = [], r = [], o = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(),
|
|
143
|
+
const i = [], r = [], o = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
|
|
144
144
|
function c(s) {
|
|
145
|
-
o.set(s, n), u.set(s, n), n++, i.push(s),
|
|
145
|
+
o.set(s, n), u.set(s, n), n++, i.push(s), l.add(s);
|
|
146
146
|
const p = e[s].imports || [];
|
|
147
|
-
for (const
|
|
148
|
-
o.has(
|
|
147
|
+
for (const a of p)
|
|
148
|
+
o.has(a) ? l.has(a) && u.set(s, Math.min(u.get(s), o.get(a))) : (c(a), u.set(s, Math.min(u.get(s), u.get(a))));
|
|
149
149
|
if (u.get(s) === o.get(s)) {
|
|
150
|
-
const
|
|
150
|
+
const a = [];
|
|
151
151
|
let y;
|
|
152
152
|
do
|
|
153
|
-
y = i.pop(),
|
|
153
|
+
y = i.pop(), l.delete(y), a.push(y);
|
|
154
154
|
while (y !== s);
|
|
155
|
-
r.push(
|
|
155
|
+
r.push(a);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
for (const s of Object.keys(e))
|
|
159
159
|
o.has(s) || c(s);
|
|
160
160
|
const f = /* @__PURE__ */ new Map();
|
|
161
161
|
r.forEach((s, p) => {
|
|
162
|
-
for (const
|
|
163
|
-
f.set(
|
|
162
|
+
for (const a of s)
|
|
163
|
+
f.set(a, p);
|
|
164
164
|
});
|
|
165
165
|
const t = Array.from({ length: r.length }, () => /* @__PURE__ */ new Set());
|
|
166
166
|
for (const s of Object.keys(e)) {
|
|
167
167
|
const p = f.get(s);
|
|
168
|
-
for (const
|
|
169
|
-
const y = f.get(
|
|
168
|
+
for (const a of e[s].imports || []) {
|
|
169
|
+
const y = f.get(a);
|
|
170
170
|
p !== y && t[p].add(y);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -183,25 +183,25 @@ function At(e) {
|
|
|
183
183
|
const d = new Array(r.length).fill(0);
|
|
184
184
|
for (let s = 0; s < r.length; s++) {
|
|
185
185
|
let p = 0;
|
|
186
|
-
for (const
|
|
187
|
-
p += e[
|
|
186
|
+
for (const a of r[s])
|
|
187
|
+
p += e[a].size;
|
|
188
188
|
d[s] = p;
|
|
189
189
|
}
|
|
190
190
|
for (let s = m.length - 1; s >= 0; s--) {
|
|
191
191
|
const p = m[s];
|
|
192
|
-
let
|
|
192
|
+
let a = d[p];
|
|
193
193
|
for (const y of t[p])
|
|
194
|
-
|
|
195
|
-
d[p] =
|
|
194
|
+
a += d[y];
|
|
195
|
+
d[p] = a;
|
|
196
196
|
}
|
|
197
197
|
for (let s = 0; s < r.length; s++) {
|
|
198
198
|
const p = d[s];
|
|
199
|
-
for (const
|
|
200
|
-
e[
|
|
199
|
+
for (const a of r[s])
|
|
200
|
+
e[a].total = p;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
const nt = /[/\\](core|qwik)[/\\]dist[/\\]preloader\.(|c|m)js$/, rt = /[/\\](core|qwik)[/\\]dist[/\\]core(\.min|\.prod)?\.(|c|m)js$/, ot = /[/\\](core|qwik)[/\\](dist[/\\])?qwikloader(\.debug)?\.[^/]*js$/;
|
|
204
|
-
function
|
|
204
|
+
function At(e, n, i, r, o, u, l) {
|
|
205
205
|
const c = {
|
|
206
206
|
version: "1",
|
|
207
207
|
manifestHash: "",
|
|
@@ -227,7 +227,7 @@ function Ht(e, n, i, r, o, u, a) {
|
|
|
227
227
|
console.warn(`Client manifest generation: skipping external import "${d}"`);
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
return
|
|
230
|
+
return l(s.fileName);
|
|
231
231
|
};
|
|
232
232
|
let t, g, m;
|
|
233
233
|
for (const d of Object.values(r)) {
|
|
@@ -243,18 +243,18 @@ function Ht(e, n, i, r, o, u, a) {
|
|
|
243
243
|
});
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
const s =
|
|
246
|
+
const s = l(d.fileName), a = {
|
|
247
247
|
size: d.code.length,
|
|
248
248
|
total: -1
|
|
249
249
|
};
|
|
250
250
|
for (const k of d.exports)
|
|
251
251
|
v.has(k) && (!c.mapping[k] || d.exports.length !== 1) && (c.mapping[k] = s);
|
|
252
252
|
const y = d.imports.filter((k) => d.code.includes(e.basename(k))).map((k) => f(k)).filter((k) => k !== g && k !== t && k !== m).filter(Boolean);
|
|
253
|
-
y.length > 0 && (
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
|
|
253
|
+
y.length > 0 && (a.imports = y);
|
|
254
|
+
const C = d.dynamicImports.filter((k) => d.code.includes(e.basename(k))).map((k) => f(k)).filter(Boolean);
|
|
255
|
+
C.length > 0 && (a.dynamicImports = C), d.facadeModuleId && (nt.test(d.facadeModuleId) ? c.preloader = s : rt.test(d.facadeModuleId) ? c.core = s : ot.test(d.facadeModuleId) && (c.qwikLoader = s));
|
|
256
|
+
const N = (d.moduleIds || Object.keys(d.modules)).filter((k) => !k.startsWith("\0")).map((k) => e.relative(o.rootDir, k));
|
|
257
|
+
N.length > 0 && (a.origins = N, !c.preloader && N.some((k) => nt.test(k)) && (c.preloader = s), !c.core && N.some((k) => rt.test(k)) && (c.core = s), !c.qwikLoader && N.some((k) => ot.test(k)) && (c.qwikLoader = s)), c.bundles[s] = a;
|
|
258
258
|
}
|
|
259
259
|
for (const d of n) {
|
|
260
260
|
const s = d.name, p = c.mapping[s];
|
|
@@ -277,7 +277,7 @@ function Ht(e, n, i, r, o, u, a) {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
if (m)
|
|
280
|
-
for (const d of
|
|
280
|
+
for (const d of Ut)
|
|
281
281
|
c.symbols[d] = {
|
|
282
282
|
origin: "Qwik core",
|
|
283
283
|
displayName: d,
|
|
@@ -292,16 +292,16 @@ function Ht(e, n, i, r, o, u, a) {
|
|
|
292
292
|
else
|
|
293
293
|
console.error("Qwik core bundle not found, is Qwik actually used in this project?");
|
|
294
294
|
for (const d of Object.values(c.bundles)) {
|
|
295
|
-
const s =
|
|
295
|
+
const s = $t(d, c);
|
|
296
296
|
d.interactivity = s;
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return zt(c.bundles), Ft(c);
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const Ht = 300, Wt = 0.5 / (Ht * 1024 / 8), Gt = (e) => {
|
|
301
301
|
const n = e.lastIndexOf("_");
|
|
302
302
|
return n > -1 ? e.slice(n + 1) : e;
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function Kt(e, n) {
|
|
305
305
|
const i = [];
|
|
306
306
|
if (!e.bundles)
|
|
307
307
|
return [];
|
|
@@ -309,7 +309,7 @@ function Qt(e, n) {
|
|
|
309
309
|
for (const [f, t] of Object.entries(e.mapping)) {
|
|
310
310
|
if (f.startsWith("_") && f.length < 10)
|
|
311
311
|
continue;
|
|
312
|
-
const g =
|
|
312
|
+
const g = Gt(f);
|
|
313
313
|
g && (r[g] = { dynamicImports: [t] });
|
|
314
314
|
}
|
|
315
315
|
if (n) {
|
|
@@ -344,7 +344,7 @@ function Qt(e, n) {
|
|
|
344
344
|
const t = r[f];
|
|
345
345
|
!t.imports?.length && !t.dynamicImports?.length && delete r[f];
|
|
346
346
|
}
|
|
347
|
-
const u = Object.keys(r),
|
|
347
|
+
const u = Object.keys(r), l = /* @__PURE__ */ new Map(), c = (f, t, g = /* @__PURE__ */ new Set()) => {
|
|
348
348
|
const m = r[t];
|
|
349
349
|
for (const v of m.imports)
|
|
350
350
|
f.has(v) && f.delete(v), g.has(v) || (g.add(v), c(f, v, g));
|
|
@@ -357,32 +357,32 @@ function Qt(e, n) {
|
|
|
357
357
|
for (const s of m) {
|
|
358
358
|
c(m, s);
|
|
359
359
|
const p = r[s];
|
|
360
|
-
let
|
|
361
|
-
if (
|
|
360
|
+
let a = 0.5;
|
|
361
|
+
if (a += (p.interactivity || 0) * 0.08, t.origins && p.origins) {
|
|
362
362
|
for (const y of t.origins)
|
|
363
|
-
if (p.origins.some((
|
|
364
|
-
|
|
363
|
+
if (p.origins.some((C) => C.startsWith(y))) {
|
|
364
|
+
a += 0.25;
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
p.total > Wt && (
|
|
368
|
+
p.total > Wt && (a += a > 0.5 ? 0.02 : -0.02), p.total < 1e3 && (a += 0.15), v.set(s, Math.min(a, 0.99));
|
|
369
369
|
}
|
|
370
370
|
if (m.size > 0) {
|
|
371
371
|
const s = Array.from(m).sort(
|
|
372
|
-
(
|
|
372
|
+
(a, y) => v.get(y) - v.get(a)
|
|
373
373
|
);
|
|
374
374
|
let p = -1;
|
|
375
|
-
for (const
|
|
376
|
-
v.get(
|
|
375
|
+
for (const a of s)
|
|
376
|
+
v.get(a) !== p && (p = v.get(a), g.add(-Math.round(p * 10))), g.add(a);
|
|
377
377
|
}
|
|
378
378
|
const d = i.length;
|
|
379
379
|
i.push(f);
|
|
380
380
|
for (let s = 0; s < g.size; s++)
|
|
381
381
|
i.push(null);
|
|
382
|
-
|
|
382
|
+
l.set(f, { index: d, deps: g });
|
|
383
383
|
}
|
|
384
384
|
for (const f of u) {
|
|
385
|
-
const t =
|
|
385
|
+
const t = l.get(f);
|
|
386
386
|
let { index: g, deps: m } = t;
|
|
387
387
|
g++;
|
|
388
388
|
for (const v of m) {
|
|
@@ -390,13 +390,13 @@ function Qt(e, n) {
|
|
|
390
390
|
i[g++] = v;
|
|
391
391
|
continue;
|
|
392
392
|
}
|
|
393
|
-
const s =
|
|
393
|
+
const s = l.get(v).index;
|
|
394
394
|
i[g++] = s;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
return i;
|
|
398
398
|
}
|
|
399
|
-
async function
|
|
399
|
+
async function Qt(e, n, i) {
|
|
400
400
|
const r = await e.dynamicImport("eslint");
|
|
401
401
|
let o = new r.ESLint({ cache: !0 });
|
|
402
402
|
if ((await o.calculateConfigForFile("no-real-file.tsx")).parser === null) {
|
|
@@ -421,7 +421,7 @@ async function Jt(e, n, i) {
|
|
|
421
421
|
return {
|
|
422
422
|
async lint(c, f, t) {
|
|
423
423
|
try {
|
|
424
|
-
const g =
|
|
424
|
+
const g = Jt(t);
|
|
425
425
|
if (await o.isPathIgnored(g))
|
|
426
426
|
return null;
|
|
427
427
|
(await o.lintText(f, {
|
|
@@ -430,7 +430,7 @@ async function Jt(e, n, i) {
|
|
|
430
430
|
for (const d of v.messages) {
|
|
431
431
|
if (d.ruleId != null && !d.ruleId.startsWith("qwik/"))
|
|
432
432
|
continue;
|
|
433
|
-
const s =
|
|
433
|
+
const s = Yt(v.filePath, d);
|
|
434
434
|
c.warn(s);
|
|
435
435
|
}
|
|
436
436
|
});
|
|
@@ -440,10 +440,10 @@ async function Jt(e, n, i) {
|
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Jt(e) {
|
|
444
444
|
return e.split("?", 2)[0];
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Yt(e, n) {
|
|
447
447
|
return Object.assign(new Error(n.message), {
|
|
448
448
|
id: e,
|
|
449
449
|
plugin: "vite-plugin-eslint",
|
|
@@ -455,21 +455,21 @@ function Xt(e, n) {
|
|
|
455
455
|
stack: ""
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
async function
|
|
458
|
+
async function Xt(e, n) {
|
|
459
459
|
const i = n;
|
|
460
460
|
let r = i.loc;
|
|
461
|
-
if (!i.frame && !i.plugin && (r || (r =
|
|
461
|
+
if (!i.frame && !i.plugin && (r || (r = Vt(i)), r && (i.loc = r, r.file))) {
|
|
462
462
|
const o = await e.dynamicImport("node:fs"), { normalizePath: u } = await e.dynamicImport("vite");
|
|
463
463
|
i.id = u(i.loc.file);
|
|
464
464
|
try {
|
|
465
|
-
const
|
|
466
|
-
i.frame =
|
|
465
|
+
const l = o.readFileSync(i.loc.file, "utf-8");
|
|
466
|
+
i.frame = en(l, i.loc);
|
|
467
467
|
} catch {
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
return n;
|
|
471
471
|
}
|
|
472
|
-
const
|
|
472
|
+
const Vt = (e) => {
|
|
473
473
|
const n = e.stack;
|
|
474
474
|
if (typeof n == "string") {
|
|
475
475
|
const i = n.split(`
|
|
@@ -477,9 +477,9 @@ const Zt = (e) => {
|
|
|
477
477
|
for (let r = 1; r < i.length; r++) {
|
|
478
478
|
const o = i[r].replace("file:///", "/");
|
|
479
479
|
if (/^\s+at/.test(o)) {
|
|
480
|
-
const u = o.indexOf("/"),
|
|
480
|
+
const u = o.indexOf("/"), l = o.lastIndexOf(")", u);
|
|
481
481
|
if (u > 0) {
|
|
482
|
-
const f = o.slice(u,
|
|
482
|
+
const f = o.slice(u, l).split(":"), t = it(f[f.length - 1]), g = it(f[f.length - 2]);
|
|
483
483
|
return typeof t == "number" && typeof g == "number" ? (f.length -= 2, {
|
|
484
484
|
file: f.join(":"),
|
|
485
485
|
line: g,
|
|
@@ -497,41 +497,41 @@ const Zt = (e) => {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
},
|
|
500
|
+
}, ne = (e) => e.startsWith("\0"), it = (e) => {
|
|
501
501
|
try {
|
|
502
502
|
return parseInt(e, 10);
|
|
503
503
|
} catch {
|
|
504
504
|
return;
|
|
505
505
|
}
|
|
506
506
|
}, _t = /\r?\n/, st = 2;
|
|
507
|
-
function
|
|
507
|
+
function Zt(e, n) {
|
|
508
508
|
if (typeof n == "number")
|
|
509
509
|
return n;
|
|
510
510
|
if (n.lo != null)
|
|
511
511
|
return n.lo;
|
|
512
512
|
const i = e.split(_t), { line: r, column: o } = n;
|
|
513
513
|
let u = 0;
|
|
514
|
-
for (let
|
|
515
|
-
u += i[
|
|
514
|
+
for (let l = 0; l < r - 1 && l < i.length; l++)
|
|
515
|
+
u += i[l].length + 1;
|
|
516
516
|
return u + o;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
n =
|
|
518
|
+
function en(e, n = 0, i) {
|
|
519
|
+
n = Zt(e, n), i = i || n;
|
|
520
520
|
const r = e.split(_t);
|
|
521
521
|
let o = 0;
|
|
522
522
|
const u = [];
|
|
523
|
-
for (let
|
|
524
|
-
if (o += r[
|
|
525
|
-
for (let c =
|
|
523
|
+
for (let l = 0; l < r.length; l++)
|
|
524
|
+
if (o += r[l].length + 1, o >= n) {
|
|
525
|
+
for (let c = l - st; c <= l + st || i > o; c++) {
|
|
526
526
|
if (c < 0 || c >= r.length)
|
|
527
527
|
continue;
|
|
528
528
|
const f = c + 1;
|
|
529
529
|
u.push(`${f}${" ".repeat(Math.max(3 - String(f).length, 0))}| ${r[c]}`);
|
|
530
530
|
const t = r[c].length;
|
|
531
|
-
if (c ===
|
|
531
|
+
if (c === l) {
|
|
532
532
|
const g = Math.max(n - (o - t) + 1, 0), m = Math.max(1, i > o ? t - g : i - n);
|
|
533
533
|
u.push(" | " + " ".repeat(g) + "^".repeat(m));
|
|
534
|
-
} else if (c >
|
|
534
|
+
} else if (c > l) {
|
|
535
535
|
if (i > o) {
|
|
536
536
|
const g = Math.max(Math.min(i - o, t), 1);
|
|
537
537
|
u.push(" | " + "^".repeat(g));
|
|
@@ -544,7 +544,7 @@ function tn(e, n = 0, i) {
|
|
|
544
544
|
return u.join(`
|
|
545
545
|
`);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function tn(e) {
|
|
548
548
|
return e === "win32";
|
|
549
549
|
}
|
|
550
550
|
function Be(e) {
|
|
@@ -556,7 +556,7 @@ function Be(e) {
|
|
|
556
556
|
params: new URLSearchParams(r)
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const nn = ["server"], rn = [
|
|
560
560
|
"onGet",
|
|
561
561
|
"onPost",
|
|
562
562
|
"onPut",
|
|
@@ -566,7 +566,7 @@ const rn = ["server"], on = [
|
|
|
566
566
|
"onOptions",
|
|
567
567
|
"onPatch",
|
|
568
568
|
"onStaticGenerate"
|
|
569
|
-
],
|
|
569
|
+
], on = [
|
|
570
570
|
"useServer",
|
|
571
571
|
"route",
|
|
572
572
|
"server",
|
|
@@ -575,7 +575,7 @@ const rn = ["server"], on = [
|
|
|
575
575
|
"zod$",
|
|
576
576
|
"validator$",
|
|
577
577
|
"globalAction$"
|
|
578
|
-
],
|
|
578
|
+
], sn = [
|
|
579
579
|
"useClient",
|
|
580
580
|
"useBrowser",
|
|
581
581
|
"useVisibleTask",
|
|
@@ -586,7 +586,7 @@ const rn = ["server"], on = [
|
|
|
586
586
|
var Tt = /* @__PURE__ */ ((e) => (e.each = "each", e.preventNavigate = "preventNavigate", e.valibot = "valibot", e.noSPA = "noSPA", e.enableRequestRewrite = "enableRequestRewrite", e.webWorker = "webWorker", e.insights = "insights", e))(Tt || {});
|
|
587
587
|
function Ct(e = {}) {
|
|
588
588
|
const n = `${Math.round(Math.random() * 899) + 100}`, i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
589
|
-
let
|
|
589
|
+
let l = null, c, f = () => {
|
|
590
590
|
};
|
|
591
591
|
const t = {
|
|
592
592
|
csr: !1,
|
|
@@ -620,85 +620,81 @@ function Ct(e = {}) {
|
|
|
620
620
|
};
|
|
621
621
|
let g, m;
|
|
622
622
|
const v = async () => {
|
|
623
|
-
if (!
|
|
623
|
+
if (!l) {
|
|
624
624
|
const w = (e._optimizer || await import("@qwik.dev/optimizer")).createOptimizer;
|
|
625
|
-
if (
|
|
625
|
+
if (l = await w(e), g = an(l.sys), l.sys.env !== "browsermain" && l.sys.env !== "webworker")
|
|
626
626
|
try {
|
|
627
|
-
m === void 0 && (m = await
|
|
627
|
+
m === void 0 && (m = await l.sys.dynamicImport("node:fs"));
|
|
628
628
|
} catch {
|
|
629
629
|
console.log("node:fs not available, disabling automatic manifest reading"), m = null;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
}, d = () => {
|
|
633
|
-
if (!
|
|
633
|
+
if (!l)
|
|
634
634
|
throw new Error("Qwik plugin has not been initialized");
|
|
635
|
-
return
|
|
635
|
+
return l;
|
|
636
636
|
}, s = () => d().sys, p = () => d().sys.path;
|
|
637
|
-
let
|
|
637
|
+
let a;
|
|
638
638
|
const y = (w) => {
|
|
639
|
-
|
|
640
|
-
},
|
|
641
|
-
const h = Object.assign({}, w), E = d(),
|
|
639
|
+
a = w;
|
|
640
|
+
}, C = async (w) => {
|
|
641
|
+
const h = Object.assign({}, w), E = d(), T = E.sys.path, D = (...P) => U(T.resolve(...P));
|
|
642
642
|
t.debug = !!h.debug, h.devTools && (t.devTools = {
|
|
643
643
|
...t.devTools,
|
|
644
644
|
...h.devTools
|
|
645
|
-
}), h.assetsDir && (t.assetsDir = h.assetsDir), h.target === "ssr" || h.target === "client" || h.target === "lib" || h.target === "test" ? t.target = h.target : t.target ||= "client", t.target === "lib" ? t.buildMode = "development" : h.buildMode === "production" || h.buildMode === "development" ? t.buildMode = h.buildMode : t.buildMode ||= "development", t.csr = !!h.csr, h.entryStrategy && typeof h.entryStrategy == "object" && (t.entryStrategy = { ...h.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 h.rootDir == "string" && (t.rootDir = h.rootDir), typeof t.rootDir != "string" && (t.rootDir ||= E.sys.cwd()), t.rootDir =
|
|
646
|
-
let
|
|
647
|
-
if (typeof h.srcDir == "string" ? (t.srcDir =
|
|
645
|
+
}), h.assetsDir && (t.assetsDir = h.assetsDir), h.target === "ssr" || h.target === "client" || h.target === "lib" || h.target === "test" ? t.target = h.target : t.target ||= "client", t.target === "lib" ? t.buildMode = "development" : h.buildMode === "production" || h.buildMode === "development" ? t.buildMode = h.buildMode : t.buildMode ||= "development", t.csr = !!h.csr, h.entryStrategy && typeof h.entryStrategy == "object" && (t.entryStrategy = { ...h.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 h.rootDir == "string" && (t.rootDir = h.rootDir), typeof t.rootDir != "string" && (t.rootDir ||= E.sys.cwd()), t.rootDir = D(E.sys.cwd(), t.rootDir);
|
|
646
|
+
let S = D(t.rootDir, dn);
|
|
647
|
+
if (typeof h.srcDir == "string" ? (t.srcDir = D(t.rootDir, h.srcDir), S = t.srcDir) : t.srcDir ||= S, t.srcDir = D(t.rootDir, t.srcDir), Array.isArray(h.tsconfigFileNames) && h.tsconfigFileNames.length > 0 && (t.tsconfigFileNames = h.tsconfigFileNames), !t.csr && !h.input && !t.input && (t.target === "ssr" ? t.input = [D(S, "entry.ssr")] : t.target === "client" ? t.input = [D(S, "root")] : t.input = void 0), h.outDir && (t.outDir = D(t.rootDir, h.outDir)), t.clientOutDir = D(t.rootDir, h.clientOutDir || at), t.ssrOutDir = D(t.rootDir, h.ssrOutDir || un), t.target === "ssr" ? t.outDir ||= t.ssrOutDir : t.target === "lib" ? t.outDir ||= D(t.rootDir, fn) : t.outDir ||= t.clientOutDir, typeof h.manifestOutput == "function" && (t.manifestOutput = h.manifestOutput), h.manifestInput && (t.manifestInput = tt(h.manifestInput) || null), typeof h.transformedModuleOutput == "function" && (t.transformedModuleOutput = h.transformedModuleOutput), h.scope !== void 0)
|
|
648
648
|
t.scope = h.scope;
|
|
649
649
|
else if (!t.scope && m) {
|
|
650
|
-
let
|
|
650
|
+
let P = "";
|
|
651
651
|
try {
|
|
652
|
-
let
|
|
653
|
-
for (;
|
|
654
|
-
const
|
|
655
|
-
if (
|
|
652
|
+
let R = t.rootDir;
|
|
653
|
+
for (; P = T.resolve(R, "package.json"), !await m.promises.stat(P).catch(() => !1); ) {
|
|
654
|
+
const O = T.resolve(R, "..");
|
|
655
|
+
if (O === R)
|
|
656
656
|
break;
|
|
657
|
-
|
|
657
|
+
R = O, P = "";
|
|
658
658
|
}
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
typeof
|
|
659
|
+
if (P) {
|
|
660
|
+
const O = await m.promises.readFile(P, "utf-8"), q = JSON.parse(O);
|
|
661
|
+
typeof q.name == "string" && (t.scope = q.name);
|
|
662
662
|
}
|
|
663
|
-
} catch (
|
|
663
|
+
} catch (R) {
|
|
664
664
|
console.warn(
|
|
665
|
-
`could not read ${
|
|
665
|
+
`could not read ${P || "package.json"} to determine package name, ignoring. (${R})`
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
if (typeof h.resolveQwikBuild == "boolean" && (t.resolveQwikBuild = h.resolveQwikBuild), typeof h.devTools == "object" && ("imageDevTools" in h.devTools && (t.devTools.imageDevTools = h.devTools.imageDevTools), "clickToSource" in h.devTools && (t.devTools.clickToSource = h.devTools.clickToSource)), "inlineStylesUpToBytes" in e && (typeof e.inlineStylesUpToBytes == "number" ? t.inlineStylesUpToBytes = e.inlineStylesUpToBytes : (typeof t.inlineStylesUpToBytes != "number" || t.inlineStylesUpToBytes < 0) && (t.inlineStylesUpToBytes = 0)), typeof h.lint == "boolean" && (t.lint = h.lint), "experimental" in h) {
|
|
670
670
|
t.experimental = void 0;
|
|
671
|
-
for (const
|
|
672
|
-
Tt[
|
|
671
|
+
for (const P of h.experimental ?? [])
|
|
672
|
+
Tt[P] ? (t.experimental ||= {})[P] = !0 : console.error(`Qwik plugin: Unknown experimental feature: ${P}`);
|
|
673
673
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
if (
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
if (
|
|
687
|
-
throw new Error(`Qwik
|
|
688
|
-
for (const [C, T] of Object.entries(t.input || {}))
|
|
689
|
-
if (!await w(T))
|
|
690
|
-
throw new Error(`Qwik input "${T}" not found.`);
|
|
691
|
-
}
|
|
674
|
+
return t.input ||= h.input, t.input && typeof t.input == "string" && (t.input = [t.input]), Array.isArray(t.input) && (t.input = t.input.map(
|
|
675
|
+
(P) => P.startsWith("@") || P.startsWith("\0") || T.isAbsolute(P) ? P : U(T.resolve(t.rootDir, P))
|
|
676
|
+
)), { ...t };
|
|
677
|
+
}, K = async (w) => {
|
|
678
|
+
const h = s();
|
|
679
|
+
if (h.env === "node") {
|
|
680
|
+
const E = await h.dynamicImport("node:fs");
|
|
681
|
+
if (!E.existsSync(t.rootDir))
|
|
682
|
+
throw new Error(`Qwik rootDir "${t.rootDir}" not found.`);
|
|
683
|
+
if (typeof t.srcDir == "string" && !E.existsSync(t.srcDir))
|
|
684
|
+
throw new Error(`Qwik srcDir "${t.srcDir}" not found.`);
|
|
685
|
+
for (const [T, D] of Object.entries(t.input || {}))
|
|
686
|
+
if (!await w(D))
|
|
687
|
+
throw new Error(`Qwik input "${D}" not found.`);
|
|
692
688
|
}
|
|
693
689
|
};
|
|
694
|
-
let
|
|
695
|
-
const
|
|
696
|
-
if (M("buildStart()", t.buildMode, t.scope, t.target, t.rootDir, t.srcDir),
|
|
690
|
+
let N, k = !1;
|
|
691
|
+
const b = async (w) => {
|
|
692
|
+
if (M("buildStart()", t.buildMode, t.scope, t.target, t.rootDir, t.srcDir), N = d(), k = !a, N.sys.env === "node" && t.target === "ssr" && t.lint)
|
|
697
693
|
try {
|
|
698
|
-
c = await
|
|
694
|
+
c = await Qt(N.sys, t.rootDir, t.tsconfigFileNames);
|
|
699
695
|
} catch {
|
|
700
696
|
}
|
|
701
|
-
if (M("transformedOutputs.clear()"), r.clear(), o.clear(), t.target === "client" && !
|
|
697
|
+
if (M("transformedOutputs.clear()"), r.clear(), o.clear(), t.target === "client" && !a) {
|
|
702
698
|
const h = await w.resolve("@qwik.dev/core/qwikloader.js", void 0, {
|
|
703
699
|
skipSelf: !0
|
|
704
700
|
});
|
|
@@ -708,50 +704,50 @@ function Ct(e = {}) {
|
|
|
708
704
|
preserveSignature: "allow-extension"
|
|
709
705
|
});
|
|
710
706
|
}
|
|
711
|
-
},
|
|
712
|
-
let
|
|
713
|
-
const
|
|
714
|
-
if (
|
|
707
|
+
}, I = (w, h) => w.environment ? w.environment.config.consumer === "server" : a ? !!h?.ssr : t.target === "ssr" || t.target === "test";
|
|
708
|
+
let x = 0, L = !1;
|
|
709
|
+
const _ = async (w, h, E, T) => {
|
|
710
|
+
if (ne(h))
|
|
715
711
|
return;
|
|
716
|
-
const
|
|
717
|
-
if (
|
|
718
|
-
if (!
|
|
719
|
-
|
|
720
|
-
const [, $, z] =
|
|
721
|
-
if (
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
724
|
-
const
|
|
712
|
+
const D = a && /^(.*)\?editor(:(\d+)(:\d+)?)?$/.exec(h);
|
|
713
|
+
if (D) {
|
|
714
|
+
if (!L) {
|
|
715
|
+
L = !0, setTimeout(() => L = !1, 500);
|
|
716
|
+
const [, $, z] = D, ae = await w.resolve($, E);
|
|
717
|
+
if (ae) {
|
|
718
|
+
const oe = w.environment.moduleGraph.getModuleById(ae.id)?.file;
|
|
719
|
+
if (oe) {
|
|
720
|
+
const V = `${oe}${z}`;
|
|
725
721
|
try {
|
|
726
|
-
console.warn(`Opening in editor: ${
|
|
727
|
-
const
|
|
728
|
-
V
|
|
729
|
-
} catch (
|
|
730
|
-
console.error(`Failed to open editor: ${
|
|
722
|
+
console.warn(`Opening in editor: ${V}`);
|
|
723
|
+
const Y = (await import("launch-editor")).default;
|
|
724
|
+
Y(V);
|
|
725
|
+
} catch (Y) {
|
|
726
|
+
console.error(`Failed to open editor: ${Y.message}`);
|
|
731
727
|
}
|
|
732
728
|
}
|
|
733
729
|
}
|
|
734
730
|
}
|
|
735
731
|
return { id: "\0editor" };
|
|
736
732
|
}
|
|
737
|
-
const
|
|
738
|
-
M(`resolveId(${
|
|
739
|
-
const
|
|
740
|
-
if (E =
|
|
741
|
-
const $ = p(), z = $.dirname(
|
|
733
|
+
const S = x++, F = I(w, T);
|
|
734
|
+
M(`resolveId(${S})`, `begin ${h} | ${F ? "server" : "client"} | ${E}`);
|
|
735
|
+
const P = E && Be(E);
|
|
736
|
+
if (E = P && U(P.pathId), h.startsWith(".") && P) {
|
|
737
|
+
const $ = p(), z = $.dirname(P.pathId);
|
|
742
738
|
z && (h = $.resolve(z, h));
|
|
743
739
|
}
|
|
744
|
-
const
|
|
745
|
-
let
|
|
740
|
+
const R = Be(h), O = U(R.pathId);
|
|
741
|
+
let q;
|
|
746
742
|
if (
|
|
747
743
|
/**
|
|
748
744
|
* Check if we know the QRL. During regular builds, we'll encounter and build parents before
|
|
749
745
|
* their QRLs, so this will always match.
|
|
750
746
|
*/
|
|
751
|
-
u.get(
|
|
747
|
+
u.get(O)
|
|
752
748
|
)
|
|
753
|
-
M(`resolveId(${
|
|
754
|
-
id:
|
|
749
|
+
M(`resolveId(${S}) Resolved already known ${O}`), q = {
|
|
750
|
+
id: O + R.query,
|
|
755
751
|
moduleSideEffects: !1
|
|
756
752
|
};
|
|
757
753
|
else if (
|
|
@@ -760,19 +756,19 @@ function Ct(e = {}) {
|
|
|
760
756
|
* been transformed yet.
|
|
761
757
|
*/
|
|
762
758
|
// We test with endsWith because the dev server adds the base pathname
|
|
763
|
-
|
|
759
|
+
O.endsWith(te)
|
|
764
760
|
)
|
|
765
|
-
t.resolveQwikBuild && (M(`resolveId(${
|
|
766
|
-
id:
|
|
761
|
+
t.resolveQwikBuild && (M(`resolveId(${S})`, "Resolved", te), q = {
|
|
762
|
+
id: te,
|
|
767
763
|
moduleSideEffects: !1
|
|
768
764
|
});
|
|
769
|
-
else if (
|
|
770
|
-
M(`resolveId(${
|
|
771
|
-
id:
|
|
765
|
+
else if (O.endsWith(ie))
|
|
766
|
+
M(`resolveId(${S})`, "Resolved", ie), q = {
|
|
767
|
+
id: ie,
|
|
772
768
|
moduleSideEffects: !1
|
|
773
769
|
};
|
|
774
|
-
else if (!
|
|
775
|
-
M(`resolveId(${
|
|
770
|
+
else if (!a && !F && O.endsWith(He)) {
|
|
771
|
+
M(`resolveId(${S})`, "Resolved", He);
|
|
776
772
|
const $ = await w.resolve(He, E, {
|
|
777
773
|
skipSelf: !0
|
|
778
774
|
});
|
|
@@ -782,14 +778,14 @@ function Ct(e = {}) {
|
|
|
782
778
|
type: "chunk",
|
|
783
779
|
preserveSignature: "allow-extension"
|
|
784
780
|
}), $;
|
|
785
|
-
} else if (
|
|
786
|
-
M(`resolveId(${
|
|
781
|
+
} else if (O.endsWith(ve))
|
|
782
|
+
M(`resolveId(${S})`, "Resolved", ve), q = {
|
|
787
783
|
id: ve,
|
|
788
784
|
moduleSideEffects: !1
|
|
789
785
|
};
|
|
790
786
|
else {
|
|
791
|
-
if (!
|
|
792
|
-
|
|
787
|
+
if (!F && k && h.endsWith("@qwik.dev/core")) {
|
|
788
|
+
k = !1;
|
|
793
789
|
const z = await w.resolve("@qwik.dev/core/handlers.mjs", E, {
|
|
794
790
|
skipSelf: !0
|
|
795
791
|
});
|
|
@@ -803,100 +799,100 @@ function Ct(e = {}) {
|
|
|
803
799
|
}
|
|
804
800
|
const $ = /^(?<parent>.*\.[mc]?[jt]sx?)_(?<name>[^/]+)\.js(?<query>$|\?.*$)/.exec(h)?.groups;
|
|
805
801
|
if ($) {
|
|
806
|
-
const { parent: z, name:
|
|
807
|
-
if (
|
|
808
|
-
const
|
|
809
|
-
M(`resolveId(${
|
|
802
|
+
const { parent: z, name: ae, query: he } = $, oe = await w.resolve(z, E, { skipSelf: !0 });
|
|
803
|
+
if (oe) {
|
|
804
|
+
const V = oe.id.split("?")[0], ue = a && E?.endsWith(".html") ? `${V}_${ae}.js` : O;
|
|
805
|
+
M(`resolveId(${S})`, `resolved to QRL ${ae} of ${V}`), u.set(ue, V), q = {
|
|
810
806
|
id: ue + he,
|
|
811
807
|
// QRL segments can't have side effects. Probably never useful, but it's here for consistency
|
|
812
808
|
moduleSideEffects: !1
|
|
813
809
|
};
|
|
814
810
|
} else
|
|
815
|
-
console.error(`resolveId(${
|
|
811
|
+
console.error(`resolveId(${S})`, `QRL parent ${z} does not exist!`);
|
|
816
812
|
} else if (E) {
|
|
817
813
|
const z = u.get(E);
|
|
818
814
|
if (z)
|
|
819
|
-
return M(`resolveId(${
|
|
815
|
+
return M(`resolveId(${S}) end`, `resolving via ${z}`), w.resolve(h, z, { skipSelf: !0 });
|
|
820
816
|
}
|
|
821
817
|
}
|
|
822
|
-
return M(`resolveId(${
|
|
818
|
+
return M(`resolveId(${S}) end`, q?.id || q), q;
|
|
823
819
|
};
|
|
824
|
-
let
|
|
825
|
-
const
|
|
820
|
+
let j = 0;
|
|
821
|
+
const W = async (w, h, E) => {
|
|
826
822
|
if (h === "\0editor")
|
|
827
823
|
return '"opening in editor"';
|
|
828
|
-
if (
|
|
824
|
+
if (ne(h) || h.startsWith("/@fs/"))
|
|
829
825
|
return;
|
|
830
|
-
const
|
|
831
|
-
if (t.resolveQwikBuild && h ===
|
|
832
|
-
return M(`load(${
|
|
826
|
+
const T = j++, D = I(w, E);
|
|
827
|
+
if (t.resolveQwikBuild && h === te)
|
|
828
|
+
return M(`load(${T})`, te, t.buildMode), {
|
|
833
829
|
moduleSideEffects: !1,
|
|
834
|
-
code:
|
|
830
|
+
code: re(D, t.target)
|
|
835
831
|
};
|
|
836
|
-
if (h ===
|
|
837
|
-
return M(`load(${
|
|
832
|
+
if (h === ie)
|
|
833
|
+
return M(`load(${T})`, ie, t.buildMode), {
|
|
838
834
|
moduleSideEffects: !1,
|
|
839
|
-
code: await
|
|
835
|
+
code: await Z(D)
|
|
840
836
|
};
|
|
841
837
|
if (h === ve)
|
|
842
|
-
return M(`load(${
|
|
838
|
+
return M(`load(${T})`, ve, t.buildMode), {
|
|
843
839
|
moduleSideEffects: !1,
|
|
844
840
|
code: "export * from '@qwik.dev/core';"
|
|
845
841
|
};
|
|
846
|
-
const
|
|
847
|
-
h =
|
|
848
|
-
const
|
|
849
|
-
if (
|
|
850
|
-
const
|
|
851
|
-
if (
|
|
852
|
-
const
|
|
853
|
-
if (
|
|
854
|
-
if (M(`load(${
|
|
855
|
-
return M(`load(${
|
|
842
|
+
const S = Be(h);
|
|
843
|
+
h = U(S.pathId);
|
|
844
|
+
const F = D ? o : r;
|
|
845
|
+
if (a && !F.has(h)) {
|
|
846
|
+
const R = u.get(h);
|
|
847
|
+
if (R) {
|
|
848
|
+
const O = a.moduleGraph.getModuleById(R);
|
|
849
|
+
if (O) {
|
|
850
|
+
if (M(`load(${T})`, "transforming QRL parent", R), await a.transformRequest(O.url), !F.has(h))
|
|
851
|
+
return M(`load(${T})`, `QRL segment ${h} not found in ${R}`), null;
|
|
856
852
|
} else
|
|
857
|
-
console.error(`load(${
|
|
853
|
+
console.error(`load(${T})`, `module ${R} does not exist in the build graph!`);
|
|
858
854
|
}
|
|
859
855
|
}
|
|
860
|
-
const
|
|
861
|
-
if (
|
|
862
|
-
M(`load(${
|
|
863
|
-
let { code:
|
|
864
|
-
const { map:
|
|
865
|
-
if (
|
|
856
|
+
const P = F.get(h);
|
|
857
|
+
if (P) {
|
|
858
|
+
M(`load(${T})`, "Found", h);
|
|
859
|
+
let { code: R } = P[0];
|
|
860
|
+
const { map: O, segment: q } = P[0], $ = P[1];
|
|
861
|
+
if (a?.hot && $ && t.devTools.hmr) {
|
|
866
862
|
const z = $.startsWith(t.rootDir) ? $.slice(t.rootDir.length) : $;
|
|
867
|
-
|
|
863
|
+
R += `
|
|
868
864
|
if (import.meta.hot) {import.meta.hot.accept(()=>{document.dispatchEvent(new CustomEvent('qHmr', {detail: {files:[${JSON.stringify(z)}], t: document.__hmrT}}));});}`;
|
|
869
865
|
}
|
|
870
|
-
return { code:
|
|
866
|
+
return { code: R, map: O, meta: { segment: q } };
|
|
871
867
|
}
|
|
872
|
-
return M(`load(${
|
|
868
|
+
return M(`load(${T})`, "Not a QRL or virtual module", h), null;
|
|
873
869
|
};
|
|
874
|
-
let
|
|
875
|
-
const
|
|
876
|
-
if (
|
|
870
|
+
let G = 0;
|
|
871
|
+
const B = async function(w, h, E, T = {}) {
|
|
872
|
+
if (ne(E))
|
|
877
873
|
return;
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
874
|
+
const D = G++, S = I(w, T), F = S ? o : r;
|
|
875
|
+
if (F.has(E))
|
|
880
876
|
return;
|
|
881
|
-
const
|
|
882
|
-
let
|
|
883
|
-
if (he !== "lib" && (h = h.replaceAll(/__EXPERIMENTAL__\.(\w+)/g, (
|
|
884
|
-
const
|
|
877
|
+
const P = d(), R = p(), { pathId: O } = Be(E), q = R.parse(O), $ = q.dir, z = q.base, ae = q.ext.toLowerCase(), he = t.target === "lib" ? "lib" : t.buildMode === "development" ? a?.hot && t.devTools.hmr ? "hmr" : "dev" : "prod";
|
|
878
|
+
let oe = !1;
|
|
879
|
+
if (he !== "lib" && (h = h.replaceAll(/__EXPERIMENTAL__\.(\w+)/g, (V, Y) => (oe = !0, t.experimental?.[Y] ? "true" : "false"))), ae in cn || Dt.test(O)) {
|
|
880
|
+
const V = t.target === "client" || t.target === "ssr";
|
|
885
881
|
M(
|
|
886
|
-
`transform(${
|
|
887
|
-
`Transforming ${E} (for: ${
|
|
882
|
+
`transform(${D})`,
|
|
883
|
+
`Transforming ${E} (for: ${S ? "server" : "client"}${V ? ", strip" : ""})`
|
|
888
884
|
);
|
|
889
|
-
let
|
|
890
|
-
t.srcDir && (
|
|
891
|
-
const ue = t.srcDir ? t.srcDir :
|
|
892
|
-
let
|
|
893
|
-
if (
|
|
894
|
-
const
|
|
895
|
-
ge.startsWith(
|
|
885
|
+
let Y = z;
|
|
886
|
+
t.srcDir && (Y = R.relative(t.srcDir, O)), Y = U(Y);
|
|
887
|
+
const ue = t.srcDir ? t.srcDir : U($), jt = t.entryStrategy;
|
|
888
|
+
let le;
|
|
889
|
+
if (a && (le = (w.environment?.moduleGraph ?? a.moduleGraph).getModuleById(O)?.url, !le && t.rootDir)) {
|
|
890
|
+
const ee = U(t.rootDir), ge = U(O);
|
|
891
|
+
ge.startsWith(ee) && (le = ge.slice(ee.length), le.startsWith("/") || (le = "/" + le));
|
|
896
892
|
}
|
|
897
893
|
const fe = {
|
|
898
|
-
input: [{ code: h, path:
|
|
899
|
-
entryStrategy:
|
|
894
|
+
input: [{ code: h, path: Y, devPath: le }],
|
|
895
|
+
entryStrategy: S ? { type: "hoist" } : jt,
|
|
900
896
|
minify: "simplify",
|
|
901
897
|
// Always enable sourcemaps in dev for click-to-source
|
|
902
898
|
sourceMaps: t.sourcemap || t.buildMode === "development",
|
|
@@ -908,23 +904,23 @@ if (import.meta.hot) {import.meta.hot.accept(()=>{document.dispatchEvent(new Cus
|
|
|
908
904
|
rootDir: t.rootDir,
|
|
909
905
|
mode: he,
|
|
910
906
|
scope: t.scope || void 0,
|
|
911
|
-
isServer:
|
|
907
|
+
isServer: S
|
|
912
908
|
};
|
|
913
|
-
|
|
914
|
-
const
|
|
915
|
-
M(`transform(${
|
|
916
|
-
const Re = me.modules.find((
|
|
917
|
-
f(me.diagnostics,
|
|
909
|
+
V && (S ? (fe.stripCtxName = sn, fe.stripEventHandlers = !0, fe.regCtxName = nn) : (fe.stripCtxName = on, fe.stripExports = rn));
|
|
910
|
+
const qt = Date.now(), me = await P.transformModules(fe);
|
|
911
|
+
M(`transform(${D})`, `done in ${Date.now() - qt}ms`);
|
|
912
|
+
const Re = me.modules.find((ce) => !ln(ce));
|
|
913
|
+
f(me.diagnostics, P, ue), S ? me.diagnostics.length === 0 && c && c.lint(w, h, E) : i.set(E, me);
|
|
918
914
|
const Ve = /* @__PURE__ */ new Set();
|
|
919
|
-
for (const
|
|
920
|
-
if (
|
|
921
|
-
const
|
|
922
|
-
if (M(`transform(${
|
|
923
|
-
const ge =
|
|
924
|
-
ge &&
|
|
915
|
+
for (const ce of me.modules)
|
|
916
|
+
if (ce !== Re) {
|
|
917
|
+
const ee = U(R.join(ue, ce.path));
|
|
918
|
+
if (M(`transform(${D})`, `segment ${ee}`, ce.segment.displayName), u.set(ee, E), F.set(ee, [ce, E]), Ve.add(ee), a) {
|
|
919
|
+
const ge = a.moduleGraph.getModuleById(ee);
|
|
920
|
+
ge && a.moduleGraph.invalidateModule(ge);
|
|
925
921
|
}
|
|
926
|
-
t.target === "client" && !
|
|
927
|
-
id:
|
|
922
|
+
t.target === "client" && !a && w.emitFile({
|
|
923
|
+
id: ee,
|
|
928
924
|
type: "chunk",
|
|
929
925
|
preserveSignature: "allow-extension"
|
|
930
926
|
});
|
|
@@ -938,38 +934,38 @@ if (import.meta.hot) {import.meta.hot.accept(()=>{document.dispatchEvent(new Cus
|
|
|
938
934
|
}
|
|
939
935
|
};
|
|
940
936
|
}
|
|
941
|
-
return M(`transform(${
|
|
942
|
-
},
|
|
937
|
+
return M(`transform(${D})`, "Not transforming", E), oe ? { code: h } : null;
|
|
938
|
+
}, Q = (w) => {
|
|
943
939
|
const h = [], E = {
|
|
944
|
-
addInjection: (
|
|
940
|
+
addInjection: (T) => h.push(T)
|
|
945
941
|
};
|
|
946
|
-
return E.generateManifest = async (
|
|
947
|
-
const
|
|
948
|
-
E.canonPath =
|
|
949
|
-
const
|
|
950
|
-
|
|
951
|
-
|
|
942
|
+
return E.generateManifest = async (T) => {
|
|
943
|
+
const S = d().sys.path, F = S.resolve(t.rootDir, t.outDir, "build"), P = (q) => S.relative(F, S.resolve(t.rootDir, t.outDir, q));
|
|
944
|
+
E.canonPath = P;
|
|
945
|
+
const R = Array.from(i.values()).flatMap((q) => q.modules).map((q) => q.segment).filter((q) => !!q), O = At(
|
|
946
|
+
S,
|
|
947
|
+
R,
|
|
952
948
|
h,
|
|
953
949
|
w,
|
|
954
950
|
t,
|
|
955
951
|
M,
|
|
956
|
-
|
|
952
|
+
P
|
|
957
953
|
);
|
|
958
|
-
|
|
959
|
-
for (const
|
|
960
|
-
|
|
961
|
-
for (const
|
|
962
|
-
|
|
963
|
-
return
|
|
954
|
+
T && Object.assign(O, T);
|
|
955
|
+
for (const q of Object.values(O.symbols))
|
|
956
|
+
q.origin && (q.origin = U(q.origin));
|
|
957
|
+
for (const q of Object.values(O.bundles))
|
|
958
|
+
q.origins && (q.origins = q.origins.sort());
|
|
959
|
+
return O.manifestHash = Lt(JSON.stringify(O)), O;
|
|
964
960
|
}, E;
|
|
965
|
-
},
|
|
961
|
+
}, J = () => t, X = () => Array.from(r.values()).map((w) => w[0]), M = (...w) => {
|
|
966
962
|
t.debug && console.debug(`[QWIK PLUGIN: ${n}]`, ...w);
|
|
967
|
-
},
|
|
963
|
+
}, de = (...w) => {
|
|
968
964
|
console.log(`[QWIK PLUGIN: ${n}]`, ...w);
|
|
969
|
-
},
|
|
965
|
+
}, pe = (w) => {
|
|
970
966
|
f = w;
|
|
971
|
-
},
|
|
972
|
-
function
|
|
967
|
+
}, U = (w) => g(w);
|
|
968
|
+
function re(w, h) {
|
|
973
969
|
const E = t.buildMode === "development";
|
|
974
970
|
return `// @qwik.dev/core/build
|
|
975
971
|
export const isServer = ${JSON.stringify(w)};
|
|
@@ -977,22 +973,22 @@ export const isBrowser = ${JSON.stringify(!w)};
|
|
|
977
973
|
export const isDev = ${JSON.stringify(E)};
|
|
978
974
|
`;
|
|
979
975
|
}
|
|
980
|
-
async function
|
|
976
|
+
async function Z(w) {
|
|
981
977
|
if (!t.manifestInput && t.target === "ssr" && t.buildMode === "production" && m) {
|
|
982
|
-
const
|
|
983
|
-
let
|
|
984
|
-
await m.promises.stat(
|
|
978
|
+
const T = p();
|
|
979
|
+
let D = t.manifestInputPath || T.resolve(t.clientOutDir, We);
|
|
980
|
+
await m.promises.stat(D).catch(() => !1) || (D = T.resolve(t.rootDir, at, We));
|
|
985
981
|
try {
|
|
986
|
-
const
|
|
987
|
-
t.manifestInput = tt(JSON.parse(
|
|
988
|
-
} catch (
|
|
982
|
+
const S = await m.promises.readFile(D, "utf-8");
|
|
983
|
+
t.manifestInput = tt(JSON.parse(S)) || null, console.info("Read client manifest from", D);
|
|
984
|
+
} catch (S) {
|
|
989
985
|
console.warn(
|
|
990
986
|
`
|
|
991
987
|
==========
|
|
992
|
-
Could not read Qwik client manifest ${
|
|
988
|
+
Could not read Qwik client manifest ${D}.
|
|
993
989
|
Make sure you provide it to the qwikVite plugin via the \`manifestInput\` \`manifestInputPath\` arguments, or to the SSR renderer via the \`manifest\` argument, or define it in \`globalThis.__QWIK_MANIFEST__\` before the server bundle is loaded, or embed it in the server bundle by replacing \`globalThis.__QWIK_MANIFEST__\`.
|
|
994
990
|
Without the manifest, the SSR renderer will not be able to generate event handlers.
|
|
995
|
-
(${
|
|
991
|
+
(${S})
|
|
996
992
|
==========
|
|
997
993
|
`
|
|
998
994
|
);
|
|
@@ -1013,27 +1009,27 @@ Without the manifest, the SSR renderer will not be able to generate event handle
|
|
|
1013
1009
|
export const manifest = ${E ? JSON.stringify(E) : "globalThis.__QWIK_MANIFEST__"};
|
|
1014
1010
|
`;
|
|
1015
1011
|
}
|
|
1016
|
-
function
|
|
1012
|
+
function Ue(w) {
|
|
1017
1013
|
t.sourcemap = w;
|
|
1018
1014
|
}
|
|
1019
|
-
function
|
|
1015
|
+
function Nt(w, h) {
|
|
1020
1016
|
const E = w.name === "ssr";
|
|
1021
1017
|
M("hotUpdate()", h.file, w.name);
|
|
1022
|
-
const
|
|
1023
|
-
for (const
|
|
1024
|
-
const { id:
|
|
1025
|
-
if (
|
|
1026
|
-
M("hotUpdate()", `invalidate ${
|
|
1027
|
-
for (const [
|
|
1028
|
-
if (
|
|
1029
|
-
M("hotUpdate()", `invalidate ${
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1018
|
+
const T = E ? o : r;
|
|
1019
|
+
for (const D of h.modules) {
|
|
1020
|
+
const { id: S } = D;
|
|
1021
|
+
if (S) {
|
|
1022
|
+
M("hotUpdate()", `invalidate ${S}`), i.delete(S);
|
|
1023
|
+
for (const [F, [P, R]] of T)
|
|
1024
|
+
if (R === S) {
|
|
1025
|
+
M("hotUpdate()", `invalidate ${S} segment ${F}`), T.delete(F);
|
|
1026
|
+
const O = w.moduleGraph.getModuleById(F);
|
|
1027
|
+
O && w.moduleGraph.invalidateModule(O);
|
|
1032
1028
|
}
|
|
1033
1029
|
}
|
|
1034
1030
|
}
|
|
1035
1031
|
}
|
|
1036
|
-
const
|
|
1032
|
+
const Mt = (w, { getModuleInfo: h }) => {
|
|
1037
1033
|
if (t.target === "client") {
|
|
1038
1034
|
if (
|
|
1039
1035
|
// The preloader has to stay in a separate chunk if it's a client build
|
|
@@ -1051,77 +1047,77 @@ export const manifest = ${E ? JSON.stringify(E) : "globalThis.__QWIK_MANIFEST__"
|
|
|
1051
1047
|
}
|
|
1052
1048
|
const E = h(w);
|
|
1053
1049
|
if (E) {
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
if (["qwikify$", "useVisibleTask$", "useComputed$"].includes(
|
|
1050
|
+
const T = E.meta.segment;
|
|
1051
|
+
if (T) {
|
|
1052
|
+
if (["qwikify$", "useVisibleTask$", "useComputed$"].includes(T.ctxName))
|
|
1057
1053
|
return null;
|
|
1058
|
-
const { hash:
|
|
1059
|
-
if (
|
|
1060
|
-
return
|
|
1054
|
+
const { hash: D } = T, S = t.entryStrategy.manual?.[D] || T.entry;
|
|
1055
|
+
if (S)
|
|
1056
|
+
return S;
|
|
1061
1057
|
}
|
|
1062
1058
|
}
|
|
1063
1059
|
return null;
|
|
1064
1060
|
};
|
|
1065
|
-
async function
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1068
|
-
...
|
|
1061
|
+
async function Ot(w, h, E, T) {
|
|
1062
|
+
const S = await Q(h).generateManifest(T);
|
|
1063
|
+
S.platform = {
|
|
1064
|
+
...T?.platform,
|
|
1069
1065
|
rollup: w.meta?.rollupVersion || "",
|
|
1070
|
-
env:
|
|
1071
|
-
os:
|
|
1072
|
-
},
|
|
1073
|
-
const
|
|
1066
|
+
env: N.sys.env,
|
|
1067
|
+
os: N.sys.os
|
|
1068
|
+
}, N.sys.env === "node" && (S.platform.node = process.versions.node);
|
|
1069
|
+
const F = Kt(S, E), P = w.emitFile({
|
|
1074
1070
|
type: "asset",
|
|
1075
1071
|
name: "bundle-graph.json",
|
|
1076
|
-
source: JSON.stringify(
|
|
1077
|
-
}),
|
|
1078
|
-
|
|
1072
|
+
source: JSON.stringify(F)
|
|
1073
|
+
}), R = w.getFileName(P);
|
|
1074
|
+
S.bundleGraphAsset = R, S.assets[R] = {
|
|
1079
1075
|
name: "bundle-graph.json",
|
|
1080
|
-
size:
|
|
1076
|
+
size: F.length
|
|
1081
1077
|
};
|
|
1082
|
-
const
|
|
1078
|
+
const O = JSON.stringify(S, null, " ");
|
|
1083
1079
|
w.emitFile({
|
|
1084
|
-
fileName:
|
|
1080
|
+
fileName: We,
|
|
1085
1081
|
type: "asset",
|
|
1086
|
-
source:
|
|
1087
|
-
}), typeof t.manifestOutput == "function" && await t.manifestOutput(
|
|
1082
|
+
source: O
|
|
1083
|
+
}), typeof t.manifestOutput == "function" && await t.manifestOutput(S), typeof t.transformedModuleOutput == "function" && await t.transformedModuleOutput(X());
|
|
1088
1084
|
}
|
|
1089
1085
|
return {
|
|
1090
|
-
buildStart:
|
|
1091
|
-
createOutputAnalyzer:
|
|
1092
|
-
getQwikBuildModule:
|
|
1086
|
+
buildStart: b,
|
|
1087
|
+
createOutputAnalyzer: Q,
|
|
1088
|
+
getQwikBuildModule: re,
|
|
1093
1089
|
getOptimizer: d,
|
|
1094
|
-
getOptions:
|
|
1090
|
+
getOptions: J,
|
|
1095
1091
|
getPath: p,
|
|
1096
1092
|
getSys: s,
|
|
1097
1093
|
getTransformedOutputs: X,
|
|
1098
1094
|
init: v,
|
|
1099
|
-
load:
|
|
1095
|
+
load: W,
|
|
1100
1096
|
debug: M,
|
|
1101
|
-
log:
|
|
1102
|
-
normalizeOptions:
|
|
1103
|
-
normalizePath:
|
|
1104
|
-
onDiagnostics:
|
|
1105
|
-
resolveId:
|
|
1106
|
-
transform:
|
|
1107
|
-
validateSource:
|
|
1108
|
-
setSourceMapSupport:
|
|
1097
|
+
log: de,
|
|
1098
|
+
normalizeOptions: C,
|
|
1099
|
+
normalizePath: U,
|
|
1100
|
+
onDiagnostics: pe,
|
|
1101
|
+
resolveId: _,
|
|
1102
|
+
transform: B,
|
|
1103
|
+
validateSource: K,
|
|
1104
|
+
setSourceMapSupport: Ue,
|
|
1109
1105
|
configureServer: y,
|
|
1110
|
-
hotUpdate:
|
|
1111
|
-
manualChunks:
|
|
1112
|
-
generateManifest:
|
|
1106
|
+
hotUpdate: Nt,
|
|
1107
|
+
manualChunks: Mt,
|
|
1108
|
+
generateManifest: Ot
|
|
1113
1109
|
};
|
|
1114
1110
|
}
|
|
1115
|
-
const
|
|
1116
|
-
function
|
|
1111
|
+
const an = (e) => (n) => typeof n == "string" ? tn(e.os) ? (n.startsWith("\\\\?\\") || /[^\u0000-\u0080]+/.test(n) || (n = n.replace(/\\/g, "/")), e.path.posix.normalize(n)) : e.path.normalize(n) : n;
|
|
1112
|
+
function ln(e) {
|
|
1117
1113
|
return e.isEntry || e.segment;
|
|
1118
1114
|
}
|
|
1119
|
-
const
|
|
1115
|
+
const cn = {
|
|
1120
1116
|
".jsx": !0,
|
|
1121
1117
|
".ts": !0,
|
|
1122
1118
|
".tsx": !0
|
|
1123
|
-
}, Dt = /\.qwik\.[mc]?js$/, qe = "@qwik.dev/core", Le = "@qwik.dev/core/internal",
|
|
1124
|
-
async function
|
|
1119
|
+
}, Dt = /\.qwik\.[mc]?js$/, qe = "@qwik.dev/core", Le = "@qwik.dev/core/internal", te = "@qwik.dev/core/build", Je = "@qwik.dev/core/jsx-runtime", Ye = "@qwik.dev/core/jsx-dev-runtime", Fe = "@qwik.dev/core/server", ie = "@qwik-client-manifest", He = "@qwik.dev/core/preloader", ve = "@qwik-handlers", dn = "src", at = "dist", un = "server", fn = "lib", We = "q-manifest.json";
|
|
1120
|
+
async function pn(e, n, i) {
|
|
1125
1121
|
if (e.env === "browsermain" || e.env === "webworker")
|
|
1126
1122
|
return;
|
|
1127
1123
|
const r = await e.dynamicImport("node:fs");
|
|
@@ -1132,13 +1128,13 @@ async function hn(e, n, i) {
|
|
|
1132
1128
|
return await r.promises.access(u), r.promises.realpath(u);
|
|
1133
1129
|
} catch {
|
|
1134
1130
|
}
|
|
1135
|
-
const
|
|
1136
|
-
if (
|
|
1131
|
+
const l = e.path.dirname(o);
|
|
1132
|
+
if (l === o)
|
|
1137
1133
|
break;
|
|
1138
|
-
o =
|
|
1134
|
+
o = l;
|
|
1139
1135
|
}
|
|
1140
1136
|
}
|
|
1141
|
-
function
|
|
1137
|
+
function Lr(e = {}) {
|
|
1142
1138
|
const n = Ct(e.optimizerOptions);
|
|
1143
1139
|
return {
|
|
1144
1140
|
name: "rollup-plugin-qwik",
|
|
@@ -1171,35 +1167,35 @@ function Ur(e = {}) {
|
|
|
1171
1167
|
experimental: e.experimental
|
|
1172
1168
|
};
|
|
1173
1169
|
await n.normalizeOptions(u);
|
|
1174
|
-
const { input:
|
|
1175
|
-
return r.input =
|
|
1170
|
+
const { input: l } = n.getOptions();
|
|
1171
|
+
return r.input = l, r;
|
|
1176
1172
|
},
|
|
1177
1173
|
outputOptions(r) {
|
|
1178
1174
|
return Xe(n, r, !1);
|
|
1179
1175
|
},
|
|
1180
1176
|
async buildStart() {
|
|
1181
1177
|
n.onDiagnostics((r, o, u) => {
|
|
1182
|
-
r.forEach((
|
|
1183
|
-
const c = n.normalizePath(o.sys.path.join(u,
|
|
1184
|
-
|
|
1178
|
+
r.forEach((l) => {
|
|
1179
|
+
const c = n.normalizePath(o.sys.path.join(u, l.file));
|
|
1180
|
+
l.category === "error" ? this.error(ze(c, l)) : this.warn(ze(c, l));
|
|
1185
1181
|
});
|
|
1186
1182
|
}), await n.buildStart(this);
|
|
1187
1183
|
},
|
|
1188
1184
|
resolveId(r, o) {
|
|
1189
|
-
return
|
|
1185
|
+
return ne(r) ? null : n.resolveId(this, r, o);
|
|
1190
1186
|
},
|
|
1191
1187
|
load(r) {
|
|
1192
|
-
return
|
|
1188
|
+
return ne(r) ? null : n.load(this, r);
|
|
1193
1189
|
},
|
|
1194
1190
|
transform(r, o) {
|
|
1195
|
-
return
|
|
1191
|
+
return ne(o) ? null : n.transform(this, r, o);
|
|
1196
1192
|
},
|
|
1197
1193
|
async generateBundle(r, o) {
|
|
1198
1194
|
n.getOptions().target === "client" && await n.generateManifest(this, o);
|
|
1199
1195
|
}
|
|
1200
1196
|
};
|
|
1201
1197
|
}
|
|
1202
|
-
async function
|
|
1198
|
+
async function hn(e, n, i, r) {
|
|
1203
1199
|
return Array.isArray(n) ? (n.length || n.push({}), await Promise.all(
|
|
1204
1200
|
n.map(async (o) => ({
|
|
1205
1201
|
...await Xe(e, o, i),
|
|
@@ -1210,28 +1206,28 @@ async function mn(e, n, i, r) {
|
|
|
1210
1206
|
dir: r || n?.dir
|
|
1211
1207
|
};
|
|
1212
1208
|
}
|
|
1213
|
-
const
|
|
1214
|
-
if (r.moduleIds?.some((
|
|
1209
|
+
const mn = (e, n, i) => n.buildMode === "production" && !n.debug ? `${e}build/q-[hash].js` : (r) => {
|
|
1210
|
+
if (r.moduleIds?.some((l) => /core\.(prod|min)\.mjs$/.test(l)))
|
|
1215
1211
|
return `${e}build/core.js`;
|
|
1216
|
-
if (r.moduleIds?.some((
|
|
1212
|
+
if (r.moduleIds?.some((l) => /qwik-router\/lib\/index\.qwik\.mjs$/.test(l)))
|
|
1217
1213
|
return `${e}build/qwik-router.js`;
|
|
1218
1214
|
const u = i.sys.path.relative(i.sys.cwd(), r.name).replace(/^(\.\.\/)+/, "").replace(/^\/+/, "").replace(/\//g, "-");
|
|
1219
1215
|
return `${e}build/${u}.js`;
|
|
1220
1216
|
};
|
|
1221
1217
|
async function Xe(e, n, i) {
|
|
1222
|
-
const r = { ...n }, o = e.getOptions(), u = e.getOptimizer(),
|
|
1218
|
+
const r = { ...n }, o = e.getOptions(), u = e.getOptimizer(), l = e.manualChunks;
|
|
1223
1219
|
r.assetFileNames || (r.assetFileNames = `${i ? `${o.assetsDir}/` : ""}assets/[hash]-[name].[ext]`);
|
|
1224
|
-
const c =
|
|
1220
|
+
const c = mn(i ? `${o.assetsDir}` : "", o, u);
|
|
1225
1221
|
if (o.target === "client") {
|
|
1226
1222
|
r.entryFileNames || (r.entryFileNames = c), r.chunkFileNames || (r.chunkFileNames = c), r.format = "es";
|
|
1227
1223
|
const t = r.manualChunks;
|
|
1228
1224
|
if (t && typeof t != "function")
|
|
1229
1225
|
throw new Error("manualChunks must be a function");
|
|
1230
|
-
r.manualChunks = t ? (g, m) => t(g, m) ||
|
|
1226
|
+
r.manualChunks = t ? (g, m) => t(g, m) || l(g, m) : l;
|
|
1231
1227
|
} else
|
|
1232
1228
|
r.chunkFileNames || (r.chunkFileNames = c);
|
|
1233
1229
|
r.dir || (r.dir = o.outDir), r.format === "cjs" && typeof r.exports != "string" && (r.exports = "auto"), r.hoistTransitiveImports = !1;
|
|
1234
|
-
const f = await
|
|
1230
|
+
const f = await pn(u.sys, "rollup", u.sys.cwd());
|
|
1235
1231
|
if (f)
|
|
1236
1232
|
try {
|
|
1237
1233
|
const g = await (await u.sys.dynamicImport("node:fs")).promises.readFile(f, "utf-8"), m = JSON.parse(g), v = String(m?.version || ""), [d, s, p] = v.split(".").map((y) => parseInt(y, 10));
|
|
@@ -1254,7 +1250,7 @@ function ze(e, n) {
|
|
|
1254
1250
|
stack: ""
|
|
1255
1251
|
});
|
|
1256
1252
|
}
|
|
1257
|
-
const vn = `"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'"))`, yn = '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}`,{cache:"no-cache"}).then(e=>{r.style.removeProperty("cursor"),e.blob()})}}}}},{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)}', bn = `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)})}`, wn = '[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}', xn = '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><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)}', In = `<style>
|
|
1253
|
+
const gn = `"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'"))`, vn = '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}`,{cache:"no-cache"}).then(e=>{r.style.removeProperty("cursor"),e.blob()})}}}}},{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)}', yn = `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)})}`, bn = '[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}', wn = '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><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)}', xn = `<style>
|
|
1258
1254
|
:host {
|
|
1259
1255
|
position: absolute;
|
|
1260
1256
|
border: 1px solid red;
|
|
@@ -1418,13 +1414,13 @@ const vn = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikVite
|
|
|
1418
1414
|
<p class="action-container"></p>
|
|
1419
1415
|
</div>
|
|
1420
1416
|
</dialog>
|
|
1421
|
-
`,
|
|
1422
|
-
async function
|
|
1417
|
+
`, In = `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}`, Sn = "#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;-webkit-backdrop-filter:blur(4px);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}}";
|
|
1418
|
+
async function En(e, n, i, r) {
|
|
1423
1419
|
const o = await i.dynamicImport("node:fs"), u = await i.dynamicImport("node:url"), c = ["mjs", "cjs", "js"].map(
|
|
1424
1420
|
(f) => r.join(n, `entry.preview.${f}`)
|
|
1425
1421
|
).find((f) => o.existsSync(f));
|
|
1426
1422
|
if (!c)
|
|
1427
|
-
return
|
|
1423
|
+
return Ge(
|
|
1428
1424
|
e,
|
|
1429
1425
|
`Unable to find output "${n}/entry.preview" module.
|
|
1430
1426
|
|
|
@@ -1434,16 +1430,16 @@ Please ensure "src/entry.preview.tsx" has been built before the "preview" comman
|
|
|
1434
1430
|
const f = u.pathToFileURL(c).href, t = await i.strictDynamicImport(f);
|
|
1435
1431
|
let g = null;
|
|
1436
1432
|
if (t.default && (typeof t.default == "function" ? g = t.default : typeof t.default == "object" && (g = t.default.router)), typeof g != "function")
|
|
1437
|
-
return
|
|
1433
|
+
return Ge(
|
|
1438
1434
|
e,
|
|
1439
1435
|
`Entry preview module "${c}" does not export a default middleware function`
|
|
1440
1436
|
);
|
|
1441
1437
|
e.use(g);
|
|
1442
1438
|
} catch (f) {
|
|
1443
|
-
return
|
|
1439
|
+
return Ge(e, String(f));
|
|
1444
1440
|
}
|
|
1445
1441
|
}
|
|
1446
|
-
function
|
|
1442
|
+
function Ge(e, n) {
|
|
1447
1443
|
console.log(`
|
|
1448
1444
|
❌ ${n}
|
|
1449
1445
|
`), e.use((i, r) => {
|
|
@@ -1452,25 +1448,25 @@ function We(e, n) {
|
|
|
1452
1448
|
}), r.end(n);
|
|
1453
1449
|
});
|
|
1454
1450
|
}
|
|
1455
|
-
const
|
|
1451
|
+
const kn = (e, n) => {
|
|
1456
1452
|
const i = [
|
|
1453
|
+
{ tag: "style", children: In, injectTo: "body" },
|
|
1457
1454
|
{ tag: "style", children: Sn, injectTo: "body" },
|
|
1458
|
-
{ tag: "
|
|
1459
|
-
{ tag: "script", attrs: { type: "module" }, children:
|
|
1460
|
-
{ tag: "script", attrs: { type: "module" }, children: vn, injectTo: "body" }
|
|
1455
|
+
{ tag: "script", attrs: { type: "module" }, children: yn, injectTo: "body" },
|
|
1456
|
+
{ tag: "script", attrs: { type: "module" }, children: gn, injectTo: "body" }
|
|
1461
1457
|
];
|
|
1462
1458
|
if ((e.devTools?.imageDevTools ?? !0) && i.push(
|
|
1463
1459
|
{
|
|
1464
1460
|
tag: "style",
|
|
1465
|
-
children:
|
|
1461
|
+
children: bn,
|
|
1466
1462
|
injectTo: "body"
|
|
1467
1463
|
},
|
|
1468
1464
|
{
|
|
1469
1465
|
tag: "script",
|
|
1470
1466
|
attrs: { type: "module" },
|
|
1471
|
-
children:
|
|
1467
|
+
children: wn.replace(
|
|
1472
1468
|
"globalThis.__TEMPLATE__",
|
|
1473
|
-
JSON.stringify(
|
|
1469
|
+
JSON.stringify(xn)
|
|
1474
1470
|
),
|
|
1475
1471
|
injectTo: "body"
|
|
1476
1472
|
}
|
|
@@ -1479,39 +1475,39 @@ const _n = (e, n) => {
|
|
|
1479
1475
|
n.endsWith("/") && (n = n.slice(0, -1)), i.push({
|
|
1480
1476
|
tag: "script",
|
|
1481
1477
|
attrs: { type: "module" },
|
|
1482
|
-
children:
|
|
1478
|
+
children: vn.replace("globalThis.__HOTKEYS__", JSON.stringify(r)).replace("globalThis.__BASE__", JSON.stringify(n)),
|
|
1483
1479
|
injectTo: "body"
|
|
1484
1480
|
});
|
|
1485
1481
|
}
|
|
1486
1482
|
return i;
|
|
1487
1483
|
};
|
|
1488
|
-
function
|
|
1484
|
+
function A(e) {
|
|
1489
1485
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1490
1486
|
}
|
|
1491
1487
|
var ye = {}, Ke = {}, lt;
|
|
1492
|
-
function
|
|
1488
|
+
function H() {
|
|
1493
1489
|
return lt || (lt = 1, (function(e) {
|
|
1494
1490
|
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;
|
|
1495
|
-
const n = new TextDecoder(), i = (p,
|
|
1491
|
+
const n = new TextDecoder(), i = (p, a = 0, y = p.length) => n.decode(p.slice(a, y));
|
|
1496
1492
|
e.toUTF8String = i;
|
|
1497
|
-
const r = (p,
|
|
1493
|
+
const r = (p, a = 0, y = p.length) => p.slice(a, y).reduce((C, K) => C + ("0" + K.toString(16)).slice(-2), "");
|
|
1498
1494
|
e.toHexString = r;
|
|
1499
|
-
const o = (p,
|
|
1500
|
-
const y = p[
|
|
1495
|
+
const o = (p, a = 0) => {
|
|
1496
|
+
const y = p[a] + p[a + 1] * 256;
|
|
1501
1497
|
return y | (y & 2 ** 15) * 131070;
|
|
1502
1498
|
};
|
|
1503
1499
|
e.readInt16LE = o;
|
|
1504
|
-
const u = (p,
|
|
1500
|
+
const u = (p, a = 0) => p[a] * 2 ** 8 + p[a + 1];
|
|
1505
1501
|
e.readUInt16BE = u;
|
|
1506
|
-
const
|
|
1507
|
-
e.readUInt16LE =
|
|
1508
|
-
const c = (p,
|
|
1502
|
+
const l = (p, a = 0) => p[a] + p[a + 1] * 2 ** 8;
|
|
1503
|
+
e.readUInt16LE = l;
|
|
1504
|
+
const c = (p, a = 0) => p[a] + p[a + 1] * 2 ** 8 + p[a + 2] * 2 ** 16;
|
|
1509
1505
|
e.readUInt24LE = c;
|
|
1510
|
-
const f = (p,
|
|
1506
|
+
const f = (p, a = 0) => p[a] + p[a + 1] * 2 ** 8 + p[a + 2] * 2 ** 16 + (p[a + 3] << 24);
|
|
1511
1507
|
e.readInt32LE = f;
|
|
1512
|
-
const t = (p,
|
|
1508
|
+
const t = (p, a = 0) => p[a] * 2 ** 24 + p[a + 1] * 2 ** 16 + p[a + 2] * 2 ** 8 + p[a + 3];
|
|
1513
1509
|
e.readUInt32BE = t;
|
|
1514
|
-
const g = (p,
|
|
1510
|
+
const g = (p, a = 0) => p[a] + p[a + 1] * 2 ** 8 + p[a + 2] * 2 ** 16 + p[a + 3] * 2 ** 24;
|
|
1515
1511
|
e.readUInt32LE = g;
|
|
1516
1512
|
const m = {
|
|
1517
1513
|
readUInt16BE: e.readUInt16BE,
|
|
@@ -1519,41 +1515,41 @@ function G() {
|
|
|
1519
1515
|
readUInt32BE: e.readUInt32BE,
|
|
1520
1516
|
readUInt32LE: e.readUInt32LE
|
|
1521
1517
|
};
|
|
1522
|
-
function v(p,
|
|
1518
|
+
function v(p, a, y, C) {
|
|
1523
1519
|
y = y || 0;
|
|
1524
|
-
const
|
|
1525
|
-
return m[
|
|
1520
|
+
const K = C ? "BE" : "LE", N = "readUInt" + a + K;
|
|
1521
|
+
return m[N](p, y);
|
|
1526
1522
|
}
|
|
1527
1523
|
e.readUInt = v;
|
|
1528
|
-
function d(p,
|
|
1529
|
-
if (p.length -
|
|
1524
|
+
function d(p, a) {
|
|
1525
|
+
if (p.length - a < 4)
|
|
1530
1526
|
return;
|
|
1531
|
-
const y = (0, e.readUInt32BE)(p,
|
|
1532
|
-
if (!(p.length -
|
|
1527
|
+
const y = (0, e.readUInt32BE)(p, a);
|
|
1528
|
+
if (!(p.length - a < y))
|
|
1533
1529
|
return {
|
|
1534
|
-
name: (0, e.toUTF8String)(p, 4 +
|
|
1535
|
-
offset:
|
|
1530
|
+
name: (0, e.toUTF8String)(p, 4 + a, 8 + a),
|
|
1531
|
+
offset: a,
|
|
1536
1532
|
size: y
|
|
1537
1533
|
};
|
|
1538
1534
|
}
|
|
1539
|
-
function s(p,
|
|
1535
|
+
function s(p, a, y) {
|
|
1540
1536
|
for (; y < p.length; ) {
|
|
1541
|
-
const
|
|
1542
|
-
if (!
|
|
1537
|
+
const C = d(p, y);
|
|
1538
|
+
if (!C)
|
|
1543
1539
|
break;
|
|
1544
|
-
if (
|
|
1545
|
-
return
|
|
1546
|
-
y +=
|
|
1540
|
+
if (C.name === a)
|
|
1541
|
+
return C;
|
|
1542
|
+
y += C.size > 0 ? C.size : 8;
|
|
1547
1543
|
}
|
|
1548
1544
|
}
|
|
1549
1545
|
e.findBox = s;
|
|
1550
1546
|
})(Ke)), Ke;
|
|
1551
1547
|
}
|
|
1552
1548
|
var ct;
|
|
1553
|
-
function
|
|
1549
|
+
function _n() {
|
|
1554
1550
|
if (ct) return ye;
|
|
1555
1551
|
ct = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.BMP = void 0;
|
|
1556
|
-
const e =
|
|
1552
|
+
const e = H();
|
|
1557
1553
|
return ye.BMP = {
|
|
1558
1554
|
validate: (n) => (0, e.toUTF8String)(n, 0, 2) === "BM",
|
|
1559
1555
|
calculate: (n) => ({
|
|
@@ -1562,36 +1558,36 @@ function Tn() {
|
|
|
1562
1558
|
})
|
|
1563
1559
|
}, ye;
|
|
1564
1560
|
}
|
|
1565
|
-
var
|
|
1566
|
-
const
|
|
1561
|
+
var Tn = _n();
|
|
1562
|
+
const Cn = /* @__PURE__ */ A(Tn);
|
|
1567
1563
|
var be = {}, we = {}, dt;
|
|
1568
1564
|
function Pt() {
|
|
1569
1565
|
if (dt) return we;
|
|
1570
1566
|
dt = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.ICO = void 0;
|
|
1571
|
-
const e =
|
|
1572
|
-
function o(
|
|
1573
|
-
const f =
|
|
1567
|
+
const e = H(), n = 1, i = 6, r = 16;
|
|
1568
|
+
function o(l, c) {
|
|
1569
|
+
const f = l[c];
|
|
1574
1570
|
return f === 0 ? 256 : f;
|
|
1575
1571
|
}
|
|
1576
|
-
function u(
|
|
1572
|
+
function u(l, c) {
|
|
1577
1573
|
const f = i + c * r;
|
|
1578
1574
|
return {
|
|
1579
|
-
height: o(
|
|
1580
|
-
width: o(
|
|
1575
|
+
height: o(l, f + 1),
|
|
1576
|
+
width: o(l, f)
|
|
1581
1577
|
};
|
|
1582
1578
|
}
|
|
1583
1579
|
return we.ICO = {
|
|
1584
|
-
validate(
|
|
1585
|
-
const c = (0, e.readUInt16LE)(
|
|
1586
|
-
return c !== 0 || f === 0 ? !1 : (0, e.readUInt16LE)(
|
|
1580
|
+
validate(l) {
|
|
1581
|
+
const c = (0, e.readUInt16LE)(l, 0), f = (0, e.readUInt16LE)(l, 4);
|
|
1582
|
+
return c !== 0 || f === 0 ? !1 : (0, e.readUInt16LE)(l, 2) === n;
|
|
1587
1583
|
},
|
|
1588
|
-
calculate(
|
|
1589
|
-
const c = (0, e.readUInt16LE)(
|
|
1584
|
+
calculate(l) {
|
|
1585
|
+
const c = (0, e.readUInt16LE)(l, 4), f = u(l, 0);
|
|
1590
1586
|
if (c === 1)
|
|
1591
1587
|
return f;
|
|
1592
1588
|
const t = [f];
|
|
1593
1589
|
for (let g = 1; g < c; g += 1)
|
|
1594
|
-
t.push(u(
|
|
1590
|
+
t.push(u(l, g));
|
|
1595
1591
|
return {
|
|
1596
1592
|
height: f.height,
|
|
1597
1593
|
images: t,
|
|
@@ -1601,10 +1597,10 @@ function Pt() {
|
|
|
1601
1597
|
}, we;
|
|
1602
1598
|
}
|
|
1603
1599
|
var ut;
|
|
1604
|
-
function
|
|
1600
|
+
function Dn() {
|
|
1605
1601
|
if (ut) return be;
|
|
1606
1602
|
ut = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.CUR = void 0;
|
|
1607
|
-
const e = Pt(), n =
|
|
1603
|
+
const e = Pt(), n = H(), i = 2;
|
|
1608
1604
|
return be.CUR = {
|
|
1609
1605
|
validate(r) {
|
|
1610
1606
|
const o = (0, n.readUInt16LE)(r, 0), u = (0, n.readUInt16LE)(r, 4);
|
|
@@ -1613,13 +1609,13 @@ function Pn() {
|
|
|
1613
1609
|
calculate: (r) => e.ICO.calculate(r)
|
|
1614
1610
|
}, be;
|
|
1615
1611
|
}
|
|
1616
|
-
var
|
|
1617
|
-
const
|
|
1612
|
+
var Pn = Dn();
|
|
1613
|
+
const Nn = /* @__PURE__ */ A(Pn);
|
|
1618
1614
|
var xe = {}, ft;
|
|
1619
|
-
function
|
|
1615
|
+
function Mn() {
|
|
1620
1616
|
if (ft) return xe;
|
|
1621
1617
|
ft = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.DDS = void 0;
|
|
1622
|
-
const e =
|
|
1618
|
+
const e = H();
|
|
1623
1619
|
return xe.DDS = {
|
|
1624
1620
|
validate: (n) => (0, e.readUInt32LE)(n, 0) === 542327876,
|
|
1625
1621
|
calculate: (n) => ({
|
|
@@ -1628,13 +1624,13 @@ function On() {
|
|
|
1628
1624
|
})
|
|
1629
1625
|
}, xe;
|
|
1630
1626
|
}
|
|
1631
|
-
var
|
|
1632
|
-
const
|
|
1627
|
+
var On = Mn();
|
|
1628
|
+
const jn = /* @__PURE__ */ A(On);
|
|
1633
1629
|
var Ie = {}, pt;
|
|
1634
|
-
function
|
|
1630
|
+
function qn() {
|
|
1635
1631
|
if (pt) return Ie;
|
|
1636
1632
|
pt = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.GIF = void 0;
|
|
1637
|
-
const e =
|
|
1633
|
+
const e = H(), n = /^GIF8[79]a/;
|
|
1638
1634
|
return Ie.GIF = {
|
|
1639
1635
|
validate: (i) => n.test((0, e.toUTF8String)(i, 0, 6)),
|
|
1640
1636
|
calculate: (i) => ({
|
|
@@ -1643,13 +1639,13 @@ function Ln() {
|
|
|
1643
1639
|
})
|
|
1644
1640
|
}, Ie;
|
|
1645
1641
|
}
|
|
1646
|
-
var
|
|
1647
|
-
const
|
|
1642
|
+
var Ln = qn();
|
|
1643
|
+
const Un = /* @__PURE__ */ A(Ln);
|
|
1648
1644
|
var Se = {}, ht;
|
|
1649
|
-
function
|
|
1645
|
+
function Rn() {
|
|
1650
1646
|
if (ht) return Se;
|
|
1651
1647
|
ht = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.ICNS = void 0;
|
|
1652
|
-
const e =
|
|
1648
|
+
const e = H(), n = 8, i = 4, r = 4, o = {
|
|
1653
1649
|
ICON: 32,
|
|
1654
1650
|
"ICN#": 32,
|
|
1655
1651
|
// m => 16 x 16
|
|
@@ -1698,7 +1694,7 @@ function Bn() {
|
|
|
1698
1694
|
(0, e.readUInt32BE)(c, t)
|
|
1699
1695
|
];
|
|
1700
1696
|
}
|
|
1701
|
-
function
|
|
1697
|
+
function l(c) {
|
|
1702
1698
|
const f = o[c];
|
|
1703
1699
|
return { width: f, height: f, type: c };
|
|
1704
1700
|
}
|
|
@@ -1706,7 +1702,7 @@ function Bn() {
|
|
|
1706
1702
|
validate: (c) => (0, e.toUTF8String)(c, 0, 4) === "icns",
|
|
1707
1703
|
calculate(c) {
|
|
1708
1704
|
const f = c.length, t = (0, e.readUInt32BE)(c, i);
|
|
1709
|
-
let g = n, m = u(c, g), v =
|
|
1705
|
+
let g = n, m = u(c, g), v = l(m[0]);
|
|
1710
1706
|
if (g += m[1], g === t)
|
|
1711
1707
|
return v;
|
|
1712
1708
|
const d = {
|
|
@@ -1715,20 +1711,20 @@ function Bn() {
|
|
|
1715
1711
|
width: v.width
|
|
1716
1712
|
};
|
|
1717
1713
|
for (; g < t && g < f; )
|
|
1718
|
-
m = u(c, g), v =
|
|
1714
|
+
m = u(c, g), v = l(m[0]), g += m[1], d.images.push(v);
|
|
1719
1715
|
return d;
|
|
1720
1716
|
}
|
|
1721
1717
|
}, Se;
|
|
1722
1718
|
}
|
|
1723
|
-
var
|
|
1724
|
-
const
|
|
1725
|
-
var
|
|
1726
|
-
const
|
|
1719
|
+
var Bn = Rn();
|
|
1720
|
+
const Fn = /* @__PURE__ */ A(Bn);
|
|
1721
|
+
var $n = Pt();
|
|
1722
|
+
const zn = /* @__PURE__ */ A($n);
|
|
1727
1723
|
var Ee = {}, mt;
|
|
1728
|
-
function
|
|
1724
|
+
function An() {
|
|
1729
1725
|
if (mt) return Ee;
|
|
1730
1726
|
mt = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.J2C = void 0;
|
|
1731
|
-
const e =
|
|
1727
|
+
const e = H();
|
|
1732
1728
|
return Ee.J2C = {
|
|
1733
1729
|
// TODO: this doesn't seem right. SIZ marker doesn't have to be right after the SOC
|
|
1734
1730
|
validate: (n) => (0, e.readUInt32BE)(n, 0) === 4283432785,
|
|
@@ -1738,13 +1734,13 @@ function Hn() {
|
|
|
1738
1734
|
})
|
|
1739
1735
|
}, Ee;
|
|
1740
1736
|
}
|
|
1741
|
-
var
|
|
1742
|
-
const Wn = /* @__PURE__ */
|
|
1737
|
+
var Hn = An();
|
|
1738
|
+
const Wn = /* @__PURE__ */ A(Hn);
|
|
1743
1739
|
var ke = {}, gt;
|
|
1744
|
-
function
|
|
1740
|
+
function Gn() {
|
|
1745
1741
|
if (gt) return ke;
|
|
1746
1742
|
gt = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.JP2 = void 0;
|
|
1747
|
-
const e =
|
|
1743
|
+
const e = H();
|
|
1748
1744
|
return ke.JP2 = {
|
|
1749
1745
|
validate(n) {
|
|
1750
1746
|
if ((0, e.toUTF8String)(n, 4, 8) !== "jP ")
|
|
@@ -1763,13 +1759,13 @@ function Kn() {
|
|
|
1763
1759
|
}
|
|
1764
1760
|
}, ke;
|
|
1765
1761
|
}
|
|
1766
|
-
var
|
|
1767
|
-
const
|
|
1762
|
+
var Kn = Gn();
|
|
1763
|
+
const Qn = /* @__PURE__ */ A(Kn);
|
|
1768
1764
|
var _e = {}, vt;
|
|
1769
|
-
function
|
|
1765
|
+
function Jn() {
|
|
1770
1766
|
if (vt) return _e;
|
|
1771
1767
|
vt = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.JPG = void 0;
|
|
1772
|
-
const e =
|
|
1768
|
+
const e = H(), n = "45786966", i = 2, r = 6, o = 2, u = "4d4d", l = "4949", c = 12, f = 2;
|
|
1773
1769
|
function t(s) {
|
|
1774
1770
|
return (0, e.toHexString)(s, 2, 6) === n;
|
|
1775
1771
|
}
|
|
@@ -1780,20 +1776,20 @@ function Yn() {
|
|
|
1780
1776
|
};
|
|
1781
1777
|
}
|
|
1782
1778
|
function m(s, p) {
|
|
1783
|
-
const y = r + 8,
|
|
1784
|
-
for (let
|
|
1785
|
-
const
|
|
1786
|
-
if (
|
|
1779
|
+
const y = r + 8, C = (0, e.readUInt)(s, 16, y, p);
|
|
1780
|
+
for (let K = 0; K < C; K++) {
|
|
1781
|
+
const N = y + f + K * c, k = N + c;
|
|
1782
|
+
if (N > s.length)
|
|
1787
1783
|
return;
|
|
1788
|
-
const b = s.slice(
|
|
1784
|
+
const b = s.slice(N, k);
|
|
1789
1785
|
if ((0, e.readUInt)(b, 16, 0, p) === 274)
|
|
1790
1786
|
return (0, e.readUInt)(b, 16, 2, p) !== 3 || (0, e.readUInt)(b, 32, 4, p) !== 1 ? void 0 : (0, e.readUInt)(b, 16, 8, p);
|
|
1791
1787
|
}
|
|
1792
1788
|
}
|
|
1793
1789
|
function v(s, p) {
|
|
1794
|
-
const
|
|
1795
|
-
if (
|
|
1796
|
-
return m(
|
|
1790
|
+
const a = s.slice(i, p), y = (0, e.toHexString)(a, r, r + o), C = y === u;
|
|
1791
|
+
if (C || y === l)
|
|
1792
|
+
return m(a, C);
|
|
1797
1793
|
}
|
|
1798
1794
|
function d(s, p) {
|
|
1799
1795
|
if (p > s.length)
|
|
@@ -1803,20 +1799,20 @@ function Yn() {
|
|
|
1803
1799
|
validate: (s) => (0, e.toHexString)(s, 0, 2) === "ffd8",
|
|
1804
1800
|
calculate(s) {
|
|
1805
1801
|
s = s.slice(4);
|
|
1806
|
-
let p,
|
|
1802
|
+
let p, a;
|
|
1807
1803
|
for (; s.length; ) {
|
|
1808
1804
|
const y = (0, e.readUInt16BE)(s, 0);
|
|
1809
1805
|
if (s[y] !== 255) {
|
|
1810
1806
|
s = s.slice(1);
|
|
1811
1807
|
continue;
|
|
1812
1808
|
}
|
|
1813
|
-
if (t(s) && (p = v(s, y)), d(s, y),
|
|
1814
|
-
const
|
|
1809
|
+
if (t(s) && (p = v(s, y)), d(s, y), a = s[y + 1], a === 192 || a === 193 || a === 194) {
|
|
1810
|
+
const C = g(s, y + 5);
|
|
1815
1811
|
return p ? {
|
|
1816
|
-
height:
|
|
1812
|
+
height: C.height,
|
|
1817
1813
|
orientation: p,
|
|
1818
|
-
width:
|
|
1819
|
-
} :
|
|
1814
|
+
width: C.width
|
|
1815
|
+
} : C;
|
|
1820
1816
|
}
|
|
1821
1817
|
s = s.slice(y + 2);
|
|
1822
1818
|
}
|
|
@@ -1824,13 +1820,13 @@ function Yn() {
|
|
|
1824
1820
|
}
|
|
1825
1821
|
}, _e;
|
|
1826
1822
|
}
|
|
1827
|
-
var
|
|
1828
|
-
const
|
|
1823
|
+
var Yn = Jn();
|
|
1824
|
+
const Xn = /* @__PURE__ */ A(Yn);
|
|
1829
1825
|
var Te = {}, yt;
|
|
1830
|
-
function
|
|
1826
|
+
function Vn() {
|
|
1831
1827
|
if (yt) return Te;
|
|
1832
1828
|
yt = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.KTX = void 0;
|
|
1833
|
-
const e =
|
|
1829
|
+
const e = H();
|
|
1834
1830
|
return Te.KTX = {
|
|
1835
1831
|
validate: (n) => {
|
|
1836
1832
|
const i = (0, e.toUTF8String)(n, 1, 7);
|
|
@@ -1846,13 +1842,13 @@ function Zn() {
|
|
|
1846
1842
|
}
|
|
1847
1843
|
}, Te;
|
|
1848
1844
|
}
|
|
1849
|
-
var
|
|
1850
|
-
const
|
|
1845
|
+
var Zn = Vn();
|
|
1846
|
+
const er = /* @__PURE__ */ A(Zn);
|
|
1851
1847
|
var Ce = {}, bt;
|
|
1852
|
-
function
|
|
1848
|
+
function tr() {
|
|
1853
1849
|
if (bt) return Ce;
|
|
1854
1850
|
bt = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.PNG = void 0;
|
|
1855
|
-
const e =
|
|
1851
|
+
const e = H(), n = `PNG\r
|
|
1856
1852
|
|
|
1857
1853
|
`, i = "IHDR", r = "CgBI";
|
|
1858
1854
|
return Ce.PNG = {
|
|
@@ -1876,13 +1872,13 @@ function nr() {
|
|
|
1876
1872
|
}
|
|
1877
1873
|
}, Ce;
|
|
1878
1874
|
}
|
|
1879
|
-
var
|
|
1880
|
-
const
|
|
1875
|
+
var nr = tr();
|
|
1876
|
+
const rr = /* @__PURE__ */ A(nr);
|
|
1881
1877
|
var De = {}, wt;
|
|
1882
|
-
function
|
|
1878
|
+
function or() {
|
|
1883
1879
|
if (wt) return De;
|
|
1884
1880
|
wt = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.PNM = void 0;
|
|
1885
|
-
const e =
|
|
1881
|
+
const e = H(), n = {
|
|
1886
1882
|
P1: "pbm/ascii",
|
|
1887
1883
|
P2: "pgm/ascii",
|
|
1888
1884
|
P3: "ppm/ascii",
|
|
@@ -1914,8 +1910,8 @@ function ir() {
|
|
|
1914
1910
|
const u = r.shift();
|
|
1915
1911
|
if (u.length > 16 || u.charCodeAt(0) > 128)
|
|
1916
1912
|
continue;
|
|
1917
|
-
const [
|
|
1918
|
-
if (
|
|
1913
|
+
const [l, c] = u.split(" ");
|
|
1914
|
+
if (l && c && (o[l.toLowerCase()] = parseInt(c, 10)), o.height && o.width)
|
|
1919
1915
|
break;
|
|
1920
1916
|
}
|
|
1921
1917
|
if (o.height && o.width)
|
|
@@ -1929,18 +1925,18 @@ function ir() {
|
|
|
1929
1925
|
return De.PNM = {
|
|
1930
1926
|
validate: (r) => (0, e.toUTF8String)(r, 0, 2) in n,
|
|
1931
1927
|
calculate(r) {
|
|
1932
|
-
const o = (0, e.toUTF8String)(r, 0, 2), u = n[o],
|
|
1933
|
-
return (i[u] || i.default)(
|
|
1928
|
+
const o = (0, e.toUTF8String)(r, 0, 2), u = n[o], l = (0, e.toUTF8String)(r, 3).split(/[\r\n]+/);
|
|
1929
|
+
return (i[u] || i.default)(l);
|
|
1934
1930
|
}
|
|
1935
1931
|
}, De;
|
|
1936
1932
|
}
|
|
1937
|
-
var
|
|
1938
|
-
const
|
|
1933
|
+
var ir = or();
|
|
1934
|
+
const sr = /* @__PURE__ */ A(ir);
|
|
1939
1935
|
var Pe = {}, xt;
|
|
1940
|
-
function
|
|
1936
|
+
function ar() {
|
|
1941
1937
|
if (xt) return Pe;
|
|
1942
1938
|
xt = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.PSD = void 0;
|
|
1943
|
-
const e =
|
|
1939
|
+
const e = H();
|
|
1944
1940
|
return Pe.PSD = {
|
|
1945
1941
|
validate: (n) => (0, e.toUTF8String)(n, 0, 4) === "8BPS",
|
|
1946
1942
|
calculate: (n) => ({
|
|
@@ -1949,13 +1945,13 @@ function lr() {
|
|
|
1949
1945
|
})
|
|
1950
1946
|
}, Pe;
|
|
1951
1947
|
}
|
|
1952
|
-
var
|
|
1953
|
-
const
|
|
1948
|
+
var lr = ar();
|
|
1949
|
+
const cr = /* @__PURE__ */ A(lr);
|
|
1954
1950
|
var Ne = {}, It;
|
|
1955
|
-
function
|
|
1951
|
+
function dr() {
|
|
1956
1952
|
if (It) return Ne;
|
|
1957
1953
|
It = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.SVG = void 0;
|
|
1958
|
-
const e =
|
|
1954
|
+
const e = H(), n = /<svg\s([^>"']|"[^"]*"|'[^']*')*>/, i = {
|
|
1959
1955
|
height: /\sheight=(['"])([^%]+?)\1/,
|
|
1960
1956
|
root: n,
|
|
1961
1957
|
viewbox: /\sviewBox=(['"])(.+?)\1/i,
|
|
@@ -1971,7 +1967,7 @@ function ur() {
|
|
|
1971
1967
|
pt: 96 / 72,
|
|
1972
1968
|
px: 1
|
|
1973
1969
|
}, u = new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(o).join("|")})?$`);
|
|
1974
|
-
function
|
|
1970
|
+
function l(m) {
|
|
1975
1971
|
const v = u.exec(m);
|
|
1976
1972
|
if (v)
|
|
1977
1973
|
return Math.round(Number(v[1]) * (o[v[2]] || 1));
|
|
@@ -1979,16 +1975,16 @@ function ur() {
|
|
|
1979
1975
|
function c(m) {
|
|
1980
1976
|
const v = m.split(" ");
|
|
1981
1977
|
return {
|
|
1982
|
-
height:
|
|
1983
|
-
width:
|
|
1978
|
+
height: l(v[3]),
|
|
1979
|
+
width: l(v[2])
|
|
1984
1980
|
};
|
|
1985
1981
|
}
|
|
1986
1982
|
function f(m) {
|
|
1987
1983
|
const v = m.match(i.width), d = m.match(i.height), s = m.match(i.viewbox);
|
|
1988
1984
|
return {
|
|
1989
|
-
height: d &&
|
|
1985
|
+
height: d && l(d[2]),
|
|
1990
1986
|
viewbox: s && c(s[2]),
|
|
1991
|
-
width: v &&
|
|
1987
|
+
width: v && l(v[2])
|
|
1992
1988
|
};
|
|
1993
1989
|
}
|
|
1994
1990
|
function t(m) {
|
|
@@ -2026,13 +2022,13 @@ function ur() {
|
|
|
2026
2022
|
}
|
|
2027
2023
|
}, Ne;
|
|
2028
2024
|
}
|
|
2029
|
-
var
|
|
2030
|
-
const
|
|
2025
|
+
var ur = dr();
|
|
2026
|
+
const fr = /* @__PURE__ */ A(ur);
|
|
2031
2027
|
var Me = {}, St;
|
|
2032
|
-
function
|
|
2028
|
+
function pr() {
|
|
2033
2029
|
if (St) return Me;
|
|
2034
2030
|
St = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.TGA = void 0;
|
|
2035
|
-
const e =
|
|
2031
|
+
const e = H();
|
|
2036
2032
|
return Me.TGA = {
|
|
2037
2033
|
validate(n) {
|
|
2038
2034
|
return (0, e.readUInt16LE)(n, 0) === 0 && (0, e.readUInt16LE)(n, 4) === 0;
|
|
@@ -2045,13 +2041,13 @@ function hr() {
|
|
|
2045
2041
|
}
|
|
2046
2042
|
}, Me;
|
|
2047
2043
|
}
|
|
2048
|
-
var
|
|
2049
|
-
const
|
|
2044
|
+
var hr = pr();
|
|
2045
|
+
const mr = /* @__PURE__ */ A(hr);
|
|
2050
2046
|
var Oe = {}, Et;
|
|
2051
|
-
function
|
|
2047
|
+
function gr() {
|
|
2052
2048
|
if (Et) return Oe;
|
|
2053
2049
|
Et = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.WEBP = void 0;
|
|
2054
|
-
const e =
|
|
2050
|
+
const e = H();
|
|
2055
2051
|
function n(o) {
|
|
2056
2052
|
return {
|
|
2057
2053
|
height: 1 + (0, e.readUInt24LE)(o, 7),
|
|
@@ -2072,8 +2068,8 @@ function vr() {
|
|
|
2072
2068
|
}
|
|
2073
2069
|
return Oe.WEBP = {
|
|
2074
2070
|
validate(o) {
|
|
2075
|
-
const u = (0, e.toUTF8String)(o, 0, 4) === "RIFF",
|
|
2076
|
-
return u &&
|
|
2071
|
+
const u = (0, e.toUTF8String)(o, 0, 4) === "RIFF", l = (0, e.toUTF8String)(o, 8, 12) === "WEBP", c = (0, e.toUTF8String)(o, 12, 15) === "VP8";
|
|
2072
|
+
return u && l && c;
|
|
2077
2073
|
},
|
|
2078
2074
|
calculate(o) {
|
|
2079
2075
|
const u = (0, e.toUTF8String)(o, 12, 16);
|
|
@@ -2085,20 +2081,20 @@ function vr() {
|
|
|
2085
2081
|
}
|
|
2086
2082
|
if (u === "VP8 " && o[0] !== 47)
|
|
2087
2083
|
return r(o);
|
|
2088
|
-
const
|
|
2089
|
-
if (u === "VP8L" &&
|
|
2084
|
+
const l = (0, e.toHexString)(o, 3, 6);
|
|
2085
|
+
if (u === "VP8L" && l !== "9d012a")
|
|
2090
2086
|
return i(o);
|
|
2091
2087
|
throw new TypeError("Invalid WebP");
|
|
2092
2088
|
}
|
|
2093
2089
|
}, Oe;
|
|
2094
2090
|
}
|
|
2095
|
-
var
|
|
2096
|
-
const
|
|
2091
|
+
var vr = gr();
|
|
2092
|
+
const yr = /* @__PURE__ */ A(vr);
|
|
2097
2093
|
var je = {}, kt;
|
|
2098
|
-
function
|
|
2094
|
+
function br() {
|
|
2099
2095
|
if (kt) return je;
|
|
2100
2096
|
kt = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.HEIF = void 0;
|
|
2101
|
-
const e =
|
|
2097
|
+
const e = H(), n = {
|
|
2102
2098
|
avif: "avif",
|
|
2103
2099
|
mif1: "heif",
|
|
2104
2100
|
msf1: "heif",
|
|
@@ -2118,19 +2114,19 @@ function wr() {
|
|
|
2118
2114
|
return o ? (0, e.toUTF8String)(i, o.offset + 8, o.offset + 12) in n : !1;
|
|
2119
2115
|
},
|
|
2120
2116
|
calculate(i) {
|
|
2121
|
-
const r = (0, e.findBox)(i, "meta", 0), o = r && (0, e.findBox)(i, "iprp", r.offset + 12), u = o && (0, e.findBox)(i, "ipco", o.offset + 8),
|
|
2122
|
-
if (
|
|
2117
|
+
const r = (0, e.findBox)(i, "meta", 0), o = r && (0, e.findBox)(i, "iprp", r.offset + 12), u = o && (0, e.findBox)(i, "ipco", o.offset + 8), l = u && (0, e.findBox)(i, "ispe", u.offset + 8);
|
|
2118
|
+
if (l)
|
|
2123
2119
|
return {
|
|
2124
|
-
height: (0, e.readUInt32BE)(i,
|
|
2125
|
-
width: (0, e.readUInt32BE)(i,
|
|
2120
|
+
height: (0, e.readUInt32BE)(i, l.offset + 16),
|
|
2121
|
+
width: (0, e.readUInt32BE)(i, l.offset + 12),
|
|
2126
2122
|
type: (0, e.toUTF8String)(i, 8, 12)
|
|
2127
2123
|
};
|
|
2128
2124
|
throw new TypeError("Invalid HEIF, no size found");
|
|
2129
2125
|
}
|
|
2130
2126
|
}, je;
|
|
2131
2127
|
}
|
|
2132
|
-
var
|
|
2133
|
-
const
|
|
2128
|
+
var wr = br();
|
|
2129
|
+
const xr = /* @__PURE__ */ A(wr), Ir = {
|
|
2134
2130
|
56: "psd",
|
|
2135
2131
|
66: "bmp",
|
|
2136
2132
|
68: "dds",
|
|
@@ -2140,37 +2136,37 @@ const Ir = /* @__PURE__ */ H(xr), Sr = {
|
|
|
2140
2136
|
137: "png",
|
|
2141
2137
|
255: "jpg"
|
|
2142
2138
|
}, Ae = {
|
|
2143
|
-
webp:
|
|
2144
|
-
jpg:
|
|
2145
|
-
png:
|
|
2146
|
-
svg:
|
|
2147
|
-
gif:
|
|
2148
|
-
avif:
|
|
2149
|
-
bmp:
|
|
2150
|
-
cur:
|
|
2151
|
-
dds:
|
|
2152
|
-
icns:
|
|
2153
|
-
ico:
|
|
2139
|
+
webp: yr.WEBP,
|
|
2140
|
+
jpg: Xn.JPG,
|
|
2141
|
+
png: rr.PNG,
|
|
2142
|
+
svg: fr.SVG,
|
|
2143
|
+
gif: Un.GIF,
|
|
2144
|
+
avif: xr.HEIF,
|
|
2145
|
+
bmp: Cn.BMP,
|
|
2146
|
+
cur: Nn.CUR,
|
|
2147
|
+
dds: jn.DDS,
|
|
2148
|
+
icns: Fn.ICNS,
|
|
2149
|
+
ico: zn.ICO,
|
|
2154
2150
|
j2c: Wn.J2C,
|
|
2155
|
-
jp2:
|
|
2156
|
-
ktx:
|
|
2157
|
-
pnm:
|
|
2158
|
-
psd:
|
|
2159
|
-
tga:
|
|
2160
|
-
},
|
|
2161
|
-
function
|
|
2162
|
-
const n = e[0], i =
|
|
2163
|
-
return i && Ae[i].validate(e) ? i :
|
|
2151
|
+
jp2: Qn.JP2,
|
|
2152
|
+
ktx: er.KTX,
|
|
2153
|
+
pnm: sr.PNM,
|
|
2154
|
+
psd: cr.PSD,
|
|
2155
|
+
tga: mr.TGA
|
|
2156
|
+
}, Sr = Object.keys(Ae);
|
|
2157
|
+
function Er(e) {
|
|
2158
|
+
const n = e[0], i = Ir[n];
|
|
2159
|
+
return i && Ae[i].validate(e) ? i : Sr.find((r) => Ae[r].validate(e));
|
|
2164
2160
|
}
|
|
2165
|
-
function
|
|
2166
|
-
const n =
|
|
2161
|
+
function kr(e) {
|
|
2162
|
+
const n = Er(e);
|
|
2167
2163
|
if (typeof n < "u") {
|
|
2168
2164
|
const i = Ae[n].calculate(e);
|
|
2169
2165
|
if (i !== void 0)
|
|
2170
2166
|
return i.type = n, i;
|
|
2171
2167
|
}
|
|
2172
2168
|
}
|
|
2173
|
-
async function
|
|
2169
|
+
async function _r(e) {
|
|
2174
2170
|
if (/^(https?|file|capacitor):/.test(e))
|
|
2175
2171
|
try {
|
|
2176
2172
|
const n = await fetch(e, {
|
|
@@ -2180,7 +2176,7 @@ async function Tr(e) {
|
|
|
2180
2176
|
console.error("can not fetch", e);
|
|
2181
2177
|
return;
|
|
2182
2178
|
}
|
|
2183
|
-
const i = await n.arrayBuffer(), r =
|
|
2179
|
+
const i = await n.arrayBuffer(), r = kr(Buffer.from(i));
|
|
2184
2180
|
if (r)
|
|
2185
2181
|
return {
|
|
2186
2182
|
width: r.width,
|
|
@@ -2193,9 +2189,9 @@ async function Tr(e) {
|
|
|
2193
2189
|
return;
|
|
2194
2190
|
}
|
|
2195
2191
|
}
|
|
2196
|
-
const
|
|
2192
|
+
const Tr = (e, n, i) => async (r, o, u) => {
|
|
2197
2193
|
try {
|
|
2198
|
-
const
|
|
2194
|
+
const l = await e.dynamicImport("node:fs"), c = await e.dynamicImport("node:path");
|
|
2199
2195
|
let f;
|
|
2200
2196
|
try {
|
|
2201
2197
|
f = new URL(r.url, "http://localhost:3000/");
|
|
@@ -2206,7 +2202,7 @@ const Cr = (e, n, i) => async (r, o, u) => {
|
|
|
2206
2202
|
if (r.method === "GET" && f.pathname === "/__image_info") {
|
|
2207
2203
|
const t = f.searchParams.get("url");
|
|
2208
2204
|
if (o.setHeader("content-type", "application/json"), t) {
|
|
2209
|
-
const g = await
|
|
2205
|
+
const g = await _r(t);
|
|
2210
2206
|
o.setHeader("cache-control", "public, max-age=31536000, immutable"), g ? o.write(JSON.stringify(g)) : o.statusCode = 404;
|
|
2211
2207
|
} else {
|
|
2212
2208
|
o.statusCode = 500;
|
|
@@ -2217,77 +2213,77 @@ const Cr = (e, n, i) => async (r, o, u) => {
|
|
|
2217
2213
|
return;
|
|
2218
2214
|
} else if (r.method === "POST" && f.pathname === "/__image_fix") {
|
|
2219
2215
|
const t = f.searchParams.get("loc"), g = f.searchParams.get("width"), m = f.searchParams.get("height"), v = f.searchParams.get("src"), d = f.searchParams.get("currentHref"), s = t.split(":"), p = parseInt(s[s.length - 1], 10) - 1;
|
|
2220
|
-
let
|
|
2221
|
-
const y = c.resolve(i, s.slice(0, s.length - 2).join(":")),
|
|
2222
|
-
let
|
|
2223
|
-
for (; k <
|
|
2224
|
-
if (
|
|
2216
|
+
let a = parseInt(s[s.length - 2], 10) - 1;
|
|
2217
|
+
const y = c.resolve(i, s.slice(0, s.length - 2).join(":")), C = c.extname(y).toLowerCase();
|
|
2218
|
+
let N = l.readFileSync(y).toString("utf-8"), k = 0;
|
|
2219
|
+
for (; k < N.length; k++)
|
|
2220
|
+
if (a === 0) {
|
|
2225
2221
|
k += p;
|
|
2226
2222
|
break;
|
|
2227
|
-
} else if (
|
|
2223
|
+
} else if (N[k] === `
|
|
2228
2224
|
`) {
|
|
2229
|
-
|
|
2225
|
+
a--;
|
|
2230
2226
|
continue;
|
|
2231
2227
|
}
|
|
2232
|
-
if (
|
|
2228
|
+
if (N.slice(k, k + 4) !== "<img") {
|
|
2233
2229
|
console.error(
|
|
2234
2230
|
"Could not apply auto fix, because it was not possible to find the original <img> tag"
|
|
2235
2231
|
), o.statusCode = 500;
|
|
2236
2232
|
return;
|
|
2237
2233
|
}
|
|
2238
|
-
const b =
|
|
2234
|
+
const b = N.indexOf(">", k) + 1;
|
|
2239
2235
|
if (b < k) {
|
|
2240
2236
|
console.error(
|
|
2241
2237
|
"Could not apply auto fix, because it was not possible to find the original <img> tag"
|
|
2242
2238
|
), o.statusCode = 500;
|
|
2243
2239
|
return;
|
|
2244
2240
|
}
|
|
2245
|
-
const
|
|
2246
|
-
let x =
|
|
2247
|
-
if (v && d &&
|
|
2248
|
-
const
|
|
2249
|
-
if (
|
|
2250
|
-
const
|
|
2251
|
-
let
|
|
2252
|
-
if (
|
|
2253
|
-
const
|
|
2254
|
-
await
|
|
2255
|
-
|
|
2256
|
-
c.join(i, "media",
|
|
2257
|
-
),
|
|
2258
|
-
} else if (
|
|
2259
|
-
|
|
2241
|
+
const I = [".ts", ".tsx", ".js", ".jsx", ".mdx"].includes(C);
|
|
2242
|
+
let x = N.slice(k, b);
|
|
2243
|
+
if (v && d && I) {
|
|
2244
|
+
const L = new URL(v), _ = new URL(d);
|
|
2245
|
+
if (L.origin === _.origin) {
|
|
2246
|
+
const j = c.join(n, "public", L.pathname), W = c.join(n, L.pathname);
|
|
2247
|
+
let G;
|
|
2248
|
+
if (l.existsSync(j)) {
|
|
2249
|
+
const M = c.join(i, "media", c.dirname(L.pathname));
|
|
2250
|
+
await l.promises.mkdir(M, { recursive: !0 }), await l.promises.copyFile(
|
|
2251
|
+
j,
|
|
2252
|
+
c.join(i, "media", L.pathname)
|
|
2253
|
+
), G = "~/media" + L.pathname;
|
|
2254
|
+
} else if (l.existsSync(W))
|
|
2255
|
+
G = L.pathname.replace("/src/", "~/");
|
|
2260
2256
|
else
|
|
2261
2257
|
return;
|
|
2262
|
-
const
|
|
2263
|
-
x = x.replace(/^<img/, `<${
|
|
2258
|
+
const B = Cr(L.pathname), Q = `${G}?jsx`;
|
|
2259
|
+
x = x.replace(/^<img/, `<${B}`), x = x.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), x = x.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), x = x.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, "");
|
|
2264
2260
|
let J = 0;
|
|
2265
|
-
if (
|
|
2261
|
+
if (C === ".mdx" && N.startsWith("---") && (J = N.indexOf("---", 4) + 3, J === -1))
|
|
2266
2262
|
return;
|
|
2267
|
-
const
|
|
2268
|
-
import ${
|
|
2269
|
-
|
|
2263
|
+
const X = `
|
|
2264
|
+
import ${B} from '${Q}';`;
|
|
2265
|
+
N = `${N.slice(0, J)}${X}${N.slice(
|
|
2270
2266
|
J,
|
|
2271
2267
|
k
|
|
2272
|
-
)}${x}${
|
|
2268
|
+
)}${x}${N.slice(b)}`, l.writeFileSync(y, N);
|
|
2273
2269
|
return;
|
|
2274
2270
|
}
|
|
2275
2271
|
}
|
|
2276
|
-
x = x.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/, `width="${g}"`), x = x.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/, `height="${m}"`), x.includes("height=") || (x = x.replace(/<img/, `<img height="${m}"`)), x.includes("width=") || (x = x.replace(/<img/, `<img width="${g}"`)),
|
|
2272
|
+
x = x.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))/, `width="${g}"`), x = x.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))/, `height="${m}"`), x.includes("height=") || (x = x.replace(/<img/, `<img height="${m}"`)), x.includes("width=") || (x = x.replace(/<img/, `<img width="${g}"`)), N = N.slice(0, k) + x + N.slice(b), l.writeFileSync(y, N);
|
|
2277
2273
|
} else
|
|
2278
2274
|
u();
|
|
2279
|
-
} catch (
|
|
2280
|
-
|
|
2275
|
+
} catch (l) {
|
|
2276
|
+
l instanceof Error && await Xt(e, l), u(l);
|
|
2281
2277
|
}
|
|
2282
2278
|
};
|
|
2283
|
-
function
|
|
2279
|
+
function Cr(e) {
|
|
2284
2280
|
const n = e.lastIndexOf("."), i = e.lastIndexOf("/");
|
|
2285
|
-
return e = e.substring(i + 1, n), `Img${
|
|
2281
|
+
return e = e.substring(i + 1, n), `Img${Dr(e)}`;
|
|
2286
2282
|
}
|
|
2287
|
-
function
|
|
2283
|
+
function Dr(e) {
|
|
2288
2284
|
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());
|
|
2289
2285
|
}
|
|
2290
|
-
const
|
|
2286
|
+
const Pr = [
|
|
2291
2287
|
qe,
|
|
2292
2288
|
Je,
|
|
2293
2289
|
Ye,
|
|
@@ -2295,7 +2291,7 @@ const Nr = [
|
|
|
2295
2291
|
"@builder.io/qwik",
|
|
2296
2292
|
"@builder.io/qwik/jsx-runtime",
|
|
2297
2293
|
"@builder.io/qwik/jsx-dev-runtime"
|
|
2298
|
-
],
|
|
2294
|
+
], Nr = [".css", ".scss", ".sass", ".less", ".styl", ".stylus"], Mr = [".woff", ".woff2", ".ttf"], Qe = "@qwik-hmr-bridge", Or = `
|
|
2299
2295
|
// HMR bridge: connects Vite HMR events to Qwik's component re-rendering.
|
|
2300
2296
|
if (import.meta.hot) {
|
|
2301
2297
|
let timeout;
|
|
@@ -2320,11 +2316,11 @@ const Nr = [
|
|
|
2320
2316
|
});
|
|
2321
2317
|
}
|
|
2322
2318
|
`;
|
|
2323
|
-
function
|
|
2324
|
-
let n = "serve", i = null, r = null, o = "/", u = null,
|
|
2319
|
+
function Ur(e = {}) {
|
|
2320
|
+
let n = "serve", i = null, r = null, o = "/", u = null, l, c = null, f = null, t = null, g = "development", m;
|
|
2325
2321
|
const v = e.client?.outDir;
|
|
2326
2322
|
let d = null;
|
|
2327
|
-
const s = e.fileFilter ? (b,
|
|
2323
|
+
const s = e.fileFilter ? (b, I) => Dt.test(b) || e.fileFilter(b, I) : () => !0, p = e.disableFontPreload ?? !1, a = [], y = Ct(e.optimizerOptions), C = /* @__PURE__ */ new Set();
|
|
2328
2324
|
return [{
|
|
2329
2325
|
name: "vite-plugin-qwik",
|
|
2330
2326
|
enforce: "pre",
|
|
@@ -2335,18 +2331,18 @@ function Rr(e = {}) {
|
|
|
2335
2331
|
getRootDir: () => y.getOptions().rootDir,
|
|
2336
2332
|
getClientOutDir: () => r,
|
|
2337
2333
|
getClientPublicOutDir: () => u,
|
|
2338
|
-
getAssetsDir: () =>
|
|
2339
|
-
registerBundleGraphAdder: (b) =>
|
|
2334
|
+
getAssetsDir: () => l,
|
|
2335
|
+
registerBundleGraphAdder: (b) => C.add(b),
|
|
2340
2336
|
_oldDevSsrServer: () => e.devSsrServer
|
|
2341
2337
|
},
|
|
2342
|
-
async config(b,
|
|
2338
|
+
async config(b, I) {
|
|
2343
2339
|
await y.init();
|
|
2344
2340
|
let x;
|
|
2345
|
-
|
|
2346
|
-
const
|
|
2347
|
-
let
|
|
2348
|
-
|
|
2349
|
-
const W = x === "client" && !!
|
|
2341
|
+
I.mode === "lib" ? x = "lib" : b.build?.ssr || I.mode === "ssr" ? x = "ssr" : I.mode === "test" || I.mode === "benchmark" ? x = "test" : x = "client", n = I.command, I.mode === "production" ? g = "production" : I.mode === "development" ? g = "development" : n === "build" && x === "client" ? g = "production" : g = "development", y.debug(`vite config(), command: ${n}, env.mode: ${I.mode}`), n === "serve" ? e.entryStrategy = { type: "segment" } : x === "ssr" ? e.entryStrategy = { type: "hoist" } : x === "lib" && (e.entryStrategy = { type: "inline" });
|
|
2342
|
+
const L = x === "ssr" ? typeof b.build?.ssr == "string" ? b.build.ssr : e.ssr?.input : void 0, _ = x === "client" ? e.client?.input : void 0;
|
|
2343
|
+
let j = b.build?.rollupOptions?.input || _ || L;
|
|
2344
|
+
j && typeof j == "string" && (j = [j]), l = b.build?.assetsDir;
|
|
2345
|
+
const W = x === "client" && !!l && l !== "_astro", G = {
|
|
2350
2346
|
target: x,
|
|
2351
2347
|
buildMode: g,
|
|
2352
2348
|
csr: e.csr,
|
|
@@ -2362,25 +2358,25 @@ function Rr(e = {}) {
|
|
|
2362
2358
|
clientOutDir: v || // When ssr is true, this is probably an adapter build and not where the client build is
|
|
2363
2359
|
// However, if client.outDir was explicitly set, always use it
|
|
2364
2360
|
(b.build?.ssr && !v ? void 0 : b.build?.outDir),
|
|
2365
|
-
assetsDir: W ?
|
|
2361
|
+
assetsDir: W ? l : void 0,
|
|
2366
2362
|
devTools: e.devTools,
|
|
2367
2363
|
sourcemap: !!b.build?.sourcemap,
|
|
2368
2364
|
lint: e.lint,
|
|
2369
2365
|
experimental: e.experimental,
|
|
2370
|
-
input:
|
|
2366
|
+
input: j,
|
|
2371
2367
|
manifestInput: e.ssr?.manifestInput,
|
|
2372
2368
|
manifestInputPath: e.ssr?.manifestInputPath,
|
|
2373
2369
|
manifestOutput: e.client?.manifestOutput
|
|
2374
|
-
},
|
|
2375
|
-
|
|
2376
|
-
const
|
|
2370
|
+
}, B = await y.normalizeOptions(G);
|
|
2371
|
+
j = B.input, d = G, i = B.manifestInput, c = B.srcDir, f = B.rootDir, e.csr || (r = B.clientOutDir, u = r, t = B.ssrOutDir);
|
|
2372
|
+
const Q = g === "development", J = "globalThis.qDev", X = "globalThis.qTest", M = "globalThis.qInspector", de = b?.define?.[J] ?? Q, pe = b?.define?.[M] ?? Q, U = {
|
|
2377
2373
|
// Duplicated in configEnvironment to support legacy vite build --ssr compatibility
|
|
2378
2374
|
ssr: {
|
|
2379
|
-
noExternal: [qe, Le, Fe,
|
|
2375
|
+
noExternal: [qe, Le, Fe, te]
|
|
2380
2376
|
},
|
|
2381
2377
|
envPrefix: ["VITE_", "PUBLIC_"],
|
|
2382
2378
|
resolve: {
|
|
2383
|
-
dedupe: [...
|
|
2379
|
+
dedupe: [...Pr],
|
|
2384
2380
|
alias: {
|
|
2385
2381
|
"@builder.io/qwik": "@qwik.dev/core",
|
|
2386
2382
|
"@builder.io/qwik/build": "@qwik.dev/core/build",
|
|
@@ -2404,12 +2400,12 @@ function Rr(e = {}) {
|
|
|
2404
2400
|
Fe,
|
|
2405
2401
|
Je,
|
|
2406
2402
|
Ye,
|
|
2407
|
-
|
|
2408
|
-
|
|
2403
|
+
te,
|
|
2404
|
+
ie,
|
|
2409
2405
|
"@builder.io/qwik"
|
|
2410
2406
|
],
|
|
2411
2407
|
// Enforce scanning our input even when overridden later
|
|
2412
|
-
entries:
|
|
2408
|
+
entries: j && (typeof j == "string" ? [j] : typeof j == "object" ? Object.values(j) : j)
|
|
2413
2409
|
},
|
|
2414
2410
|
build: {
|
|
2415
2411
|
modulePreload: !1,
|
|
@@ -2419,51 +2415,51 @@ function Rr(e = {}) {
|
|
|
2419
2415
|
rollupOptions: {
|
|
2420
2416
|
external: ["node:async_hooks"],
|
|
2421
2417
|
// This will amend the existing input
|
|
2422
|
-
input:
|
|
2418
|
+
input: j
|
|
2423
2419
|
// temporary fix for rolldown-vite types
|
|
2424
2420
|
}
|
|
2425
2421
|
},
|
|
2426
2422
|
define: {
|
|
2427
|
-
[J]:
|
|
2428
|
-
[
|
|
2429
|
-
[
|
|
2423
|
+
[J]: de,
|
|
2424
|
+
[M]: pe,
|
|
2425
|
+
[X]: JSON.stringify(process.env.NODE_ENV === "test")
|
|
2430
2426
|
}
|
|
2431
2427
|
};
|
|
2432
2428
|
if (!e.csr) {
|
|
2433
|
-
|
|
2434
|
-
const
|
|
2435
|
-
|
|
2436
|
-
...
|
|
2437
|
-
output: await
|
|
2429
|
+
U.build.cssCodeSplit = !1, B.outDir && (U.build.outDir = B.outDir);
|
|
2430
|
+
const re = U.build.rollupOptions?.onwarn;
|
|
2431
|
+
U.build.rollupOptions = {
|
|
2432
|
+
...U.build.rollupOptions,
|
|
2433
|
+
output: await hn(
|
|
2438
2434
|
y,
|
|
2439
2435
|
b.build?.rollupOptions?.output,
|
|
2440
2436
|
W,
|
|
2441
|
-
|
|
2437
|
+
B.outDir
|
|
2442
2438
|
),
|
|
2443
2439
|
preserveEntrySignatures: "exports-only",
|
|
2444
2440
|
onwarn: (Z, Ue) => {
|
|
2445
|
-
Z.plugin === "typescript" && Z.message.includes("outputToFilesystem") || (
|
|
2441
|
+
Z.plugin === "typescript" && Z.message.includes("outputToFilesystem") || (re ? re(Z, Ue) : Ue(Z));
|
|
2446
2442
|
}
|
|
2447
|
-
},
|
|
2443
|
+
}, B.target === "ssr" ? n === "build" && (U.publicDir = !1, U.build.ssr = !0, b.build?.minify == null && g === "production" && (U.build.minify = !0)) : B.target === "client" || (B.target === "lib" ? (U.build.minify = !1, U.build.rollupOptions.external = [
|
|
2448
2444
|
qe,
|
|
2449
2445
|
Le,
|
|
2450
2446
|
Fe,
|
|
2451
2447
|
Je,
|
|
2452
2448
|
Ye,
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
]) :
|
|
2449
|
+
te,
|
|
2450
|
+
ie
|
|
2451
|
+
]) : U.define = {
|
|
2456
2452
|
[J]: !0,
|
|
2457
|
-
[
|
|
2458
|
-
[
|
|
2459
|
-
}), globalThis.qDev =
|
|
2453
|
+
[X]: !0,
|
|
2454
|
+
[M]: !1
|
|
2455
|
+
}), globalThis.qDev = de, globalThis.qTest = !0, globalThis.qInspector = pe;
|
|
2460
2456
|
}
|
|
2461
|
-
return
|
|
2457
|
+
return U;
|
|
2462
2458
|
},
|
|
2463
|
-
configEnvironment(b,
|
|
2459
|
+
configEnvironment(b, I, x) {
|
|
2464
2460
|
return b === "ssr" ? {
|
|
2465
2461
|
resolve: {
|
|
2466
|
-
noExternal: [qe, Le, Fe,
|
|
2462
|
+
noExternal: [qe, Le, Fe, te]
|
|
2467
2463
|
}
|
|
2468
2464
|
} : g === "production" ? {
|
|
2469
2465
|
resolve: {
|
|
@@ -2477,32 +2473,32 @@ function Rr(e = {}) {
|
|
|
2477
2473
|
b.build.sourcemap && e.optimizerOptions?.sourcemap === void 0 && y.setSourceMapSupport(!0), d ? y.normalizeOptions(d) : y.normalizeOptions(e);
|
|
2478
2474
|
},
|
|
2479
2475
|
async buildStart() {
|
|
2480
|
-
|
|
2476
|
+
a.length = 0;
|
|
2481
2477
|
const b = this.resolve.bind(this);
|
|
2482
|
-
await y.validateSource(b), y.onDiagnostics((
|
|
2483
|
-
|
|
2484
|
-
const
|
|
2485
|
-
_.category === "error" ? this.error(ze(
|
|
2478
|
+
await y.validateSource(b), y.onDiagnostics((I, x, L) => {
|
|
2479
|
+
I.forEach((_) => {
|
|
2480
|
+
const j = y.normalizePath(x.sys.path.join(L, _.file));
|
|
2481
|
+
_.category === "error" ? this.error(ze(j, _)) : this.warn(ze(j, _));
|
|
2486
2482
|
});
|
|
2487
2483
|
}), await y.buildStart(this);
|
|
2488
2484
|
},
|
|
2489
|
-
resolveId(b,
|
|
2485
|
+
resolveId(b, I, x) {
|
|
2490
2486
|
if (b.endsWith(Qe))
|
|
2491
2487
|
return Qe;
|
|
2492
|
-
const
|
|
2493
|
-
return
|
|
2488
|
+
const L = s(b, "resolveId");
|
|
2489
|
+
return ne(b) || !L ? null : y.resolveId(this, b, I, x);
|
|
2494
2490
|
},
|
|
2495
|
-
load(b,
|
|
2491
|
+
load(b, I) {
|
|
2496
2492
|
if (b === Qe)
|
|
2497
|
-
return { code:
|
|
2493
|
+
return { code: Or };
|
|
2498
2494
|
const x = s(b, "load");
|
|
2499
|
-
return
|
|
2495
|
+
return ne(b) || !x ? null : (b = y.normalizePath(b), n === "serve" && b.endsWith(ie) ? {
|
|
2500
2496
|
code: "export const manifest = undefined;"
|
|
2501
|
-
} : y.load(this, b,
|
|
2497
|
+
} : y.load(this, b, I));
|
|
2502
2498
|
},
|
|
2503
|
-
transform(b,
|
|
2504
|
-
if (
|
|
2505
|
-
const
|
|
2499
|
+
transform(b, I, x) {
|
|
2500
|
+
if (I.includes(".vite/deps/") && b.slice(0, 5e3).includes("qwik") && /import[^\n]*qwik[^\n]*\n/.test(b)) {
|
|
2501
|
+
const j = f && I.startsWith(f) ? I.slice(f.length) : I;
|
|
2506
2502
|
throw new Error(
|
|
2507
2503
|
`
|
|
2508
2504
|
|
|
@@ -2511,36 +2507,36 @@ function Rr(e = {}) {
|
|
|
2511
2507
|
⚠️ IMPORTANT: This dependency was pre-bundled by Vite, but it seems to use Qwik, which needs processing by the optimizer.
|
|
2512
2508
|
|
|
2513
2509
|
👉 Please add the original modulename to the "optimizeDeps.exclude" array in your Vite config
|
|
2514
|
-
👉 ${
|
|
2510
|
+
👉 ${j}
|
|
2515
2511
|
|
|
2516
2512
|
==============
|
|
2517
2513
|
|
|
2518
2514
|
`
|
|
2519
2515
|
);
|
|
2520
2516
|
}
|
|
2521
|
-
const
|
|
2522
|
-
return
|
|
2517
|
+
const L = s(I, "transform"), _ = I.includes("?raw");
|
|
2518
|
+
return ne(I) || !L || _ ? null : y.transform(this, b, I, x);
|
|
2523
2519
|
}
|
|
2524
2520
|
}, {
|
|
2525
2521
|
name: "vite-plugin-qwik-post",
|
|
2526
2522
|
enforce: "post",
|
|
2527
2523
|
generateBundle: {
|
|
2528
2524
|
order: "post",
|
|
2529
|
-
async handler(b,
|
|
2525
|
+
async handler(b, I) {
|
|
2530
2526
|
if (this.environment.config.consumer === "client") {
|
|
2531
|
-
const
|
|
2532
|
-
for (const [_,
|
|
2533
|
-
if (
|
|
2527
|
+
const L = y.getOptions();
|
|
2528
|
+
for (const [_, j] of Object.entries(I))
|
|
2529
|
+
if (j.type === "asset") {
|
|
2534
2530
|
const W = o + _;
|
|
2535
|
-
if (
|
|
2536
|
-
typeof
|
|
2531
|
+
if (Nr.some((G) => _.endsWith(G)))
|
|
2532
|
+
typeof j.source == "string" && j.source.length < L.inlineStylesUpToBytes ? a.push({
|
|
2537
2533
|
tag: "style",
|
|
2538
2534
|
location: "head",
|
|
2539
2535
|
attributes: {
|
|
2540
2536
|
"data-src": W,
|
|
2541
|
-
dangerouslySetInnerHTML:
|
|
2537
|
+
dangerouslySetInnerHTML: j.source
|
|
2542
2538
|
}
|
|
2543
|
-
}) :
|
|
2539
|
+
}) : a.push({
|
|
2544
2540
|
tag: "link",
|
|
2545
2541
|
location: "head",
|
|
2546
2542
|
attributes: {
|
|
@@ -2549,79 +2545,79 @@ function Rr(e = {}) {
|
|
|
2549
2545
|
}
|
|
2550
2546
|
});
|
|
2551
2547
|
else {
|
|
2552
|
-
const
|
|
2553
|
-
|
|
2548
|
+
const G = Mr.find((B) => _.endsWith(B));
|
|
2549
|
+
G && !p && a.unshift({
|
|
2554
2550
|
tag: "link",
|
|
2555
2551
|
location: "head",
|
|
2556
2552
|
attributes: {
|
|
2557
2553
|
rel: "preload",
|
|
2558
2554
|
href: W,
|
|
2559
2555
|
as: "font",
|
|
2560
|
-
type: `font/${
|
|
2556
|
+
type: `font/${G.slice(1)}`,
|
|
2561
2557
|
crossorigin: ""
|
|
2562
2558
|
}
|
|
2563
2559
|
});
|
|
2564
2560
|
}
|
|
2565
2561
|
}
|
|
2566
|
-
await y.generateManifest(this,
|
|
2567
|
-
injections:
|
|
2562
|
+
await y.generateManifest(this, I, C, {
|
|
2563
|
+
injections: a,
|
|
2568
2564
|
platform: { vite: "" }
|
|
2569
2565
|
});
|
|
2570
2566
|
}
|
|
2571
2567
|
}
|
|
2572
2568
|
},
|
|
2573
|
-
async writeBundle(b,
|
|
2569
|
+
async writeBundle(b, I) {
|
|
2574
2570
|
const x = y.getOptions();
|
|
2575
2571
|
if (this.environment.config.consumer === "server") {
|
|
2576
2572
|
const _ = y.getSys();
|
|
2577
2573
|
if (_.env === "node" || _.env === "bun" || _.env === "deno") {
|
|
2578
|
-
const
|
|
2574
|
+
const j = Object.keys(I), W = async (G) => {
|
|
2579
2575
|
try {
|
|
2580
|
-
const
|
|
2581
|
-
if ((
|
|
2582
|
-
const
|
|
2583
|
-
if (!
|
|
2584
|
-
const
|
|
2585
|
-
await
|
|
2586
|
-
_.path.join(Z,
|
|
2587
|
-
`export * from "./${
|
|
2576
|
+
const B = _.path.basename(G), Q = _.path.extname(B);
|
|
2577
|
+
if ((B.startsWith("entry.") || B.startsWith("entry_")) && !B.includes("preview") && (Q === ".mjs" || Q === ".cjs")) {
|
|
2578
|
+
const X = _.path.basename(B, Q), M = `${X}.js`, de = X + Q;
|
|
2579
|
+
if (!j.some((U) => _.path.basename(U) === M)) {
|
|
2580
|
+
const U = _.path.dirname(G), re = await _.dynamicImport("node:fs"), Z = _.path.join(x.outDir, U);
|
|
2581
|
+
await re.promises.mkdir(Z, { recursive: !0 }), await re.promises.writeFile(
|
|
2582
|
+
_.path.join(Z, M),
|
|
2583
|
+
`export * from "./${de}";`
|
|
2588
2584
|
);
|
|
2589
2585
|
}
|
|
2590
2586
|
}
|
|
2591
|
-
} catch (
|
|
2592
|
-
console.error("patchModuleFormat",
|
|
2587
|
+
} catch (B) {
|
|
2588
|
+
console.error("patchModuleFormat", B);
|
|
2593
2589
|
}
|
|
2594
2590
|
};
|
|
2595
|
-
await Promise.all(
|
|
2591
|
+
await Promise.all(j.map(W));
|
|
2596
2592
|
}
|
|
2597
2593
|
}
|
|
2598
2594
|
},
|
|
2599
2595
|
transformIndexHtml() {
|
|
2600
2596
|
if (n === "serve")
|
|
2601
|
-
return
|
|
2597
|
+
return kn(y.getOptions(), o);
|
|
2602
2598
|
},
|
|
2603
2599
|
configureServer(b) {
|
|
2604
|
-
m = b, y.configureServer(b), (e?.devTools?.imageDevTools ?? !0) && b.middlewares.use(
|
|
2600
|
+
m = b, y.configureServer(b), (e?.devTools?.imageDevTools ?? !0) && b.middlewares.use(Tr(y.getSys(), f, c));
|
|
2605
2601
|
},
|
|
2606
2602
|
configurePreviewServer(b) {
|
|
2607
2603
|
return async () => {
|
|
2608
|
-
const
|
|
2609
|
-
await
|
|
2604
|
+
const I = y.getSys(), x = y.getPath();
|
|
2605
|
+
await En(b.middlewares, t, I, x);
|
|
2610
2606
|
};
|
|
2611
2607
|
},
|
|
2612
2608
|
hotUpdate(b) {
|
|
2613
2609
|
y.hotUpdate(this.environment, b);
|
|
2614
|
-
const
|
|
2610
|
+
const I = e?.devTools?.hmr ?? !0;
|
|
2615
2611
|
if (this.environment.name === "ssr" && b.modules.length)
|
|
2616
|
-
if (
|
|
2617
|
-
const x = /* @__PURE__ */ new Set(),
|
|
2612
|
+
if (I) {
|
|
2613
|
+
const x = /* @__PURE__ */ new Set(), L = (_) => /\.([mc]?[jt]sx?|mdx?)$/.test(_.split("?")[0]);
|
|
2618
2614
|
for (const _ of b.modules) {
|
|
2619
|
-
const
|
|
2620
|
-
if (_.type === "js" &&
|
|
2621
|
-
x.add(
|
|
2615
|
+
const j = _.url.split("?")[0];
|
|
2616
|
+
if (_.type === "js" && L(_.url))
|
|
2617
|
+
x.add(j);
|
|
2622
2618
|
else
|
|
2623
2619
|
for (const W of _.importers)
|
|
2624
|
-
W.type === "js" &&
|
|
2620
|
+
W.type === "js" && L(W.url) && x.add(W.url.split("?")[0]);
|
|
2625
2621
|
}
|
|
2626
2622
|
x.size > 0 && m && m.environments.client.hot.send({
|
|
2627
2623
|
type: "custom",
|
|
@@ -2631,29 +2627,29 @@ function Rr(e = {}) {
|
|
|
2631
2627
|
} else
|
|
2632
2628
|
m?.environments.client.hot.send({ type: "full-reload" });
|
|
2633
2629
|
},
|
|
2634
|
-
onLog(b,
|
|
2635
|
-
if (
|
|
2636
|
-
const x =
|
|
2630
|
+
onLog(b, I) {
|
|
2631
|
+
if (I.plugin == "vite-plugin-qwik") {
|
|
2632
|
+
const x = qr[b] || se.White, L = (I.frame || "").split(`
|
|
2637
2633
|
`).map(
|
|
2638
|
-
(_) => (_.match(/^\s*\^\s*$/) ?
|
|
2634
|
+
(_) => (_.match(/^\s*\^\s*$/) ? se.BrightWhite : se.BrightBlack) + _
|
|
2639
2635
|
);
|
|
2640
2636
|
return console[b](
|
|
2641
2637
|
`${x}%s
|
|
2642
|
-
${
|
|
2643
|
-
%s${
|
|
2644
|
-
`[${
|
|
2638
|
+
${se.BrightWhite}%s
|
|
2639
|
+
%s${se.RESET}`,
|
|
2640
|
+
`[${I.plugin}](${b}): ${I.message}
|
|
2645
2641
|
`,
|
|
2646
|
-
` ${
|
|
2642
|
+
` ${I?.loc?.file}:${I?.loc?.line}:${I?.loc?.column}
|
|
2647
2643
|
`,
|
|
2648
|
-
` ${
|
|
2644
|
+
` ${L.join(`
|
|
2649
2645
|
`)}
|
|
2650
2646
|
`
|
|
2651
2647
|
), !1;
|
|
2652
2648
|
}
|
|
2653
2649
|
}
|
|
2654
|
-
},
|
|
2650
|
+
}, jr()];
|
|
2655
2651
|
}
|
|
2656
|
-
async function
|
|
2652
|
+
async function jr() {
|
|
2657
2653
|
let e, n, i = !1;
|
|
2658
2654
|
async function r() {
|
|
2659
2655
|
if (i)
|
|
@@ -2665,19 +2661,28 @@ async function qr() {
|
|
|
2665
2661
|
}
|
|
2666
2662
|
}
|
|
2667
2663
|
const o = /* @__PURE__ */ new Set(), u = [];
|
|
2668
|
-
let
|
|
2664
|
+
let l;
|
|
2669
2665
|
const c = "@qwik.dev/core", f = "@builder.io/qwik";
|
|
2670
2666
|
async function t(m) {
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2667
|
+
const v = /* @__PURE__ */ new Set();
|
|
2668
|
+
let d = m;
|
|
2669
|
+
for (; d; ) {
|
|
2670
|
+
try {
|
|
2671
|
+
const p = n.join(d, "package.json"), a = await e.readFile(p, { encoding: "utf-8" }), y = JSON.parse(a);
|
|
2672
|
+
for (const C of Object.keys(y.dependencies || {}))
|
|
2673
|
+
v.add(C);
|
|
2674
|
+
for (const C of Object.keys(y.devDependencies || {}))
|
|
2675
|
+
v.add(C);
|
|
2676
|
+
for (const C of Object.keys(y.optionalDependencies || {}))
|
|
2677
|
+
v.add(C);
|
|
2678
|
+
} catch {
|
|
2679
|
+
}
|
|
2680
|
+
const s = n.dirname(d);
|
|
2681
|
+
if (s === d)
|
|
2682
|
+
break;
|
|
2683
|
+
d = s;
|
|
2680
2684
|
}
|
|
2685
|
+
return [...v];
|
|
2681
2686
|
}
|
|
2682
2687
|
async function g(m, v) {
|
|
2683
2688
|
for (; v; ) {
|
|
@@ -2686,8 +2691,8 @@ async function qr() {
|
|
|
2686
2691
|
await e.access(d);
|
|
2687
2692
|
const p = await e.readFile(d, {
|
|
2688
2693
|
encoding: "utf-8"
|
|
2689
|
-
}),
|
|
2690
|
-
return !!(
|
|
2694
|
+
}), a = JSON.parse(p);
|
|
2695
|
+
return !!(a.qwik || a.dependencies?.[c] || a.peerDependencies?.[c] || a.devDependencies?.[c] || a.dependencies?.[f] || a.peerDependencies?.[f] || a.devDependencies?.[f]);
|
|
2691
2696
|
} catch {
|
|
2692
2697
|
}
|
|
2693
2698
|
const s = n.dirname(v);
|
|
@@ -2701,7 +2706,7 @@ async function qr() {
|
|
|
2701
2706
|
name: "checkQwikExternals",
|
|
2702
2707
|
enforce: "pre",
|
|
2703
2708
|
configResolved: (m) => {
|
|
2704
|
-
|
|
2709
|
+
l = m.root;
|
|
2705
2710
|
},
|
|
2706
2711
|
// Attempt to mark the Qwik dependencies as non-optimizeable
|
|
2707
2712
|
config: {
|
|
@@ -2711,9 +2716,9 @@ async function qr() {
|
|
|
2711
2716
|
return;
|
|
2712
2717
|
const v = m.root || process.cwd(), d = m.optimizeDeps?.exclude ?? [], s = await t(v);
|
|
2713
2718
|
u.length = 0;
|
|
2714
|
-
for (const
|
|
2715
|
-
await g(
|
|
2716
|
-
const p = u.filter((
|
|
2719
|
+
for (const a of s)
|
|
2720
|
+
await g(a, v) && u.push(a);
|
|
2721
|
+
const p = u.filter((a) => !d.includes(a));
|
|
2717
2722
|
return {
|
|
2718
2723
|
optimizeDeps: { exclude: p },
|
|
2719
2724
|
ssr: { noExternal: p }
|
|
@@ -2742,13 +2747,13 @@ async function qr() {
|
|
|
2742
2747
|
if (o.has(p))
|
|
2743
2748
|
return;
|
|
2744
2749
|
o.add(m), o.add(p);
|
|
2745
|
-
let
|
|
2750
|
+
let a;
|
|
2746
2751
|
try {
|
|
2747
|
-
|
|
2752
|
+
a = await this.resolve(p, v, { ...d, skipSelf: !0 });
|
|
2748
2753
|
} catch {
|
|
2749
2754
|
return;
|
|
2750
2755
|
}
|
|
2751
|
-
if (
|
|
2756
|
+
if (a?.external && await g(p, v ? n.dirname(v) : l))
|
|
2752
2757
|
throw new Error(
|
|
2753
2758
|
`
|
|
2754
2759
|
==============
|
|
@@ -2758,24 +2763,24 @@ Please add the package to "ssr.noExternal[]" as well as "optimizeDeps.exclude[]"
|
|
|
2758
2763
|
`
|
|
2759
2764
|
);
|
|
2760
2765
|
if (p === m)
|
|
2761
|
-
return
|
|
2766
|
+
return a;
|
|
2762
2767
|
}
|
|
2763
2768
|
}
|
|
2764
2769
|
};
|
|
2765
2770
|
}
|
|
2766
|
-
const
|
|
2771
|
+
const se = {
|
|
2767
2772
|
Yellow: "\x1B[33m",
|
|
2768
2773
|
Cyan: "\x1B[36m",
|
|
2769
2774
|
White: "\x1B[37m",
|
|
2770
2775
|
BrightBlack: "\x1B[90m",
|
|
2771
2776
|
BrightWhite: "\x1B[97m",
|
|
2772
2777
|
RESET: "\x1B[0m"
|
|
2773
|
-
},
|
|
2774
|
-
warn:
|
|
2775
|
-
info:
|
|
2776
|
-
debug:
|
|
2778
|
+
}, qr = {
|
|
2779
|
+
warn: se.Yellow,
|
|
2780
|
+
info: se.Cyan,
|
|
2781
|
+
debug: se.BrightBlack
|
|
2777
2782
|
};
|
|
2778
2783
|
export {
|
|
2779
|
-
|
|
2780
|
-
|
|
2784
|
+
Lr as qwikRollup,
|
|
2785
|
+
Ur as qwikVite
|
|
2781
2786
|
};
|