@jasonshimmy/custom-elements-runtime 1.2.0 → 1.2.1
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/custom-elements-runtime.cjs.js +7 -7
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +1027 -966
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +10 -10
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/directives.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const tn = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
2
|
+
let we = !1;
|
|
3
|
+
try {
|
|
4
|
+
const e = globalThis.process;
|
|
5
|
+
e && e.env ? we = e.env.NODE_ENV !== "production" : typeof import.meta < "u" && tn ? we = !1 : we = typeof window < "u";
|
|
6
|
+
} catch {
|
|
7
|
+
we = !0;
|
|
8
|
+
}
|
|
2
9
|
function H(e, ...t) {
|
|
3
|
-
|
|
10
|
+
we && console.error(e, ...t);
|
|
4
11
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
12
|
+
function Q(e, ...t) {
|
|
13
|
+
we && console.warn(e, ...t);
|
|
7
14
|
}
|
|
8
|
-
class
|
|
15
|
+
class nn {
|
|
9
16
|
pendingUpdates = /* @__PURE__ */ new Map();
|
|
10
17
|
isFlushScheduled = !1;
|
|
11
18
|
/**
|
|
@@ -36,12 +43,12 @@ class tn {
|
|
|
36
43
|
return this.pendingUpdates.size;
|
|
37
44
|
}
|
|
38
45
|
}
|
|
39
|
-
const
|
|
46
|
+
const rn = new nn();
|
|
40
47
|
function ve(e, t) {
|
|
41
|
-
|
|
48
|
+
rn.schedule(e, t);
|
|
42
49
|
}
|
|
43
|
-
const
|
|
44
|
-
class
|
|
50
|
+
const wt = /* @__PURE__ */ new WeakSet();
|
|
51
|
+
class on {
|
|
45
52
|
static cache = /* @__PURE__ */ new WeakMap();
|
|
46
53
|
static arrayHandlerCache = /* @__PURE__ */ new WeakMap();
|
|
47
54
|
static objectHandlerCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -78,8 +85,8 @@ class rn {
|
|
|
78
85
|
"fill",
|
|
79
86
|
"copyWithin"
|
|
80
87
|
].includes(o) ? function(...a) {
|
|
81
|
-
const
|
|
82
|
-
return t.triggerUpdate(),
|
|
88
|
+
const u = s.apply(r, a);
|
|
89
|
+
return t.triggerUpdate(), u;
|
|
83
90
|
} : s;
|
|
84
91
|
},
|
|
85
92
|
set: (r, o, i) => (r[o] = t.makeReactiveValue(i), t.triggerUpdate(), !0),
|
|
@@ -136,7 +143,7 @@ class Wt {
|
|
|
136
143
|
*/
|
|
137
144
|
static createReactiveProxy(t, n, r) {
|
|
138
145
|
try {
|
|
139
|
-
if (
|
|
146
|
+
if (wt.has(t)) return t;
|
|
140
147
|
} catch {
|
|
141
148
|
}
|
|
142
149
|
const o = Array.isArray(t);
|
|
@@ -146,7 +153,7 @@ class Wt {
|
|
|
146
153
|
return s || (s = {
|
|
147
154
|
triggerUpdate: n,
|
|
148
155
|
makeReactiveValue: r
|
|
149
|
-
}, i.set(r, s)),
|
|
156
|
+
}, i.set(r, s)), on.getOrCreateProxy(t, s, o);
|
|
150
157
|
}
|
|
151
158
|
/**
|
|
152
159
|
* Mark an object as a proxy (for optimization)
|
|
@@ -154,12 +161,12 @@ class Wt {
|
|
|
154
161
|
static markAsProxy(t) {
|
|
155
162
|
if (t)
|
|
156
163
|
try {
|
|
157
|
-
|
|
164
|
+
wt.add(t);
|
|
158
165
|
} catch {
|
|
159
166
|
}
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
|
-
class
|
|
169
|
+
class sn {
|
|
163
170
|
currentComponent = null;
|
|
164
171
|
// Consolidated component data: stores dependencies, render function, state index, and last warning time
|
|
165
172
|
componentData = /* @__PURE__ */ new Map();
|
|
@@ -234,13 +241,13 @@ class on {
|
|
|
234
241
|
*/
|
|
235
242
|
getOrCreateState(t) {
|
|
236
243
|
if (!this.currentComponent)
|
|
237
|
-
return new
|
|
244
|
+
return new Ze(t);
|
|
238
245
|
const n = this.componentData.get(this.currentComponent);
|
|
239
246
|
if (!n)
|
|
240
|
-
return new
|
|
247
|
+
return new Ze(t);
|
|
241
248
|
const r = `${this.currentComponent}:${n.stateIndex++}`;
|
|
242
249
|
let o = this.stateStorage.get(r);
|
|
243
|
-
return o || (o = new
|
|
250
|
+
return o || (o = new Ze(t), this.stateStorage.set(r, o)), o;
|
|
244
251
|
}
|
|
245
252
|
/**
|
|
246
253
|
* Track a dependency for the current component
|
|
@@ -275,8 +282,8 @@ class on {
|
|
|
275
282
|
o.startsWith(r) && this.stateStorage.delete(o);
|
|
276
283
|
}
|
|
277
284
|
}
|
|
278
|
-
const Y = new
|
|
279
|
-
class
|
|
285
|
+
const Y = new sn();
|
|
286
|
+
class Ze {
|
|
280
287
|
_value;
|
|
281
288
|
dependents = /* @__PURE__ */ new Set();
|
|
282
289
|
constructor(t) {
|
|
@@ -291,7 +298,7 @@ class Ve {
|
|
|
291
298
|
return Y.trackDependency(this), this._value;
|
|
292
299
|
}
|
|
293
300
|
set value(t) {
|
|
294
|
-
Y.isRenderingComponent() && Y.shouldEmitRenderWarning() &&
|
|
301
|
+
Y.isRenderingComponent() && Y.shouldEmitRenderWarning() && Q(
|
|
295
302
|
`🚨 State modification detected during render! This can cause infinite loops.
|
|
296
303
|
• Move state updates to event handlers
|
|
297
304
|
• Use useEffect/watch for side effects
|
|
@@ -315,7 +322,7 @@ class Ve {
|
|
|
315
322
|
);
|
|
316
323
|
}
|
|
317
324
|
}
|
|
318
|
-
function
|
|
325
|
+
function ir(e) {
|
|
319
326
|
return Y.getOrCreateState(e === void 0 ? null : e);
|
|
320
327
|
}
|
|
321
328
|
function R(e) {
|
|
@@ -327,15 +334,15 @@ function R(e) {
|
|
|
327
334
|
return !1;
|
|
328
335
|
}
|
|
329
336
|
}
|
|
330
|
-
function
|
|
331
|
-
const t = new
|
|
337
|
+
function sr(e) {
|
|
338
|
+
const t = new Ze(e());
|
|
332
339
|
return {
|
|
333
340
|
get value() {
|
|
334
341
|
return Y.trackDependency(t), e();
|
|
335
342
|
}
|
|
336
343
|
};
|
|
337
344
|
}
|
|
338
|
-
function
|
|
345
|
+
function ar(e, t, n = {}) {
|
|
339
346
|
let r = e();
|
|
340
347
|
n.immediate && t(r, r);
|
|
341
348
|
const o = `watch-${Math.random().toString(36).substr(2, 9)}`, i = () => {
|
|
@@ -347,30 +354,30 @@ function sr(e, t, n = {}) {
|
|
|
347
354
|
Y.cleanup(o);
|
|
348
355
|
};
|
|
349
356
|
}
|
|
350
|
-
const
|
|
357
|
+
const P = (e) => {
|
|
351
358
|
try {
|
|
352
359
|
e();
|
|
353
360
|
} catch {
|
|
354
361
|
}
|
|
355
|
-
},
|
|
356
|
-
let
|
|
357
|
-
const
|
|
362
|
+
}, Ie = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map(), bt = 500;
|
|
363
|
+
let xt, Bt, kt = !1, $t = !1, Et;
|
|
364
|
+
const an = !!(globalThis.process && globalThis.process.versions && globalThis.process.versions.node);
|
|
358
365
|
function oe(e) {
|
|
359
|
-
if (He.has(e))
|
|
360
|
-
return He.get(e);
|
|
361
|
-
const t = e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
362
|
-
return He.size < mt && He.set(e, t), t;
|
|
363
|
-
}
|
|
364
|
-
function yt(e) {
|
|
365
366
|
if (Ie.has(e))
|
|
366
367
|
return Ie.get(e);
|
|
368
|
+
const t = e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
369
|
+
return Ie.size < bt && Ie.set(e, t), t;
|
|
370
|
+
}
|
|
371
|
+
function vt(e) {
|
|
372
|
+
if (Fe.has(e))
|
|
373
|
+
return Fe.get(e);
|
|
367
374
|
const t = e.replace(/-([a-z])/g, (n, r) => r.toUpperCase());
|
|
368
|
-
return
|
|
375
|
+
return Fe.size < bt && Fe.set(e, t), t;
|
|
369
376
|
}
|
|
370
|
-
function
|
|
377
|
+
function Be(e) {
|
|
371
378
|
if (typeof e == "string") {
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
379
|
+
if (We.has(e))
|
|
380
|
+
return We.get(e);
|
|
374
381
|
const t = e.replace(
|
|
375
382
|
/[&<>"']/g,
|
|
376
383
|
(n) => ({
|
|
@@ -381,7 +388,7 @@ function We(e) {
|
|
|
381
388
|
"'": "'"
|
|
382
389
|
})[n]
|
|
383
390
|
);
|
|
384
|
-
return t !== e &&
|
|
391
|
+
return t !== e && We.size < bt && We.set(e, t), t;
|
|
385
392
|
}
|
|
386
393
|
return e;
|
|
387
394
|
}
|
|
@@ -389,16 +396,16 @@ function ue(e) {
|
|
|
389
396
|
if (!e) return "";
|
|
390
397
|
const t = String(e);
|
|
391
398
|
if (typeof document < "u" && typeof document.createElement == "function") {
|
|
392
|
-
const c = t.replace(/</g, "").replace(/>/g, ""), a =
|
|
399
|
+
const c = t.replace(/</g, "").replace(/>/g, ""), a = Et || (Et = document.createElement("div"));
|
|
393
400
|
try {
|
|
394
401
|
ue._el = a;
|
|
395
402
|
} catch {
|
|
396
403
|
}
|
|
397
404
|
return a.innerHTML = c, (a.textContent || "").replace(new RegExp("", "g"), "<").replace(new RegExp("", "g"), ">");
|
|
398
405
|
}
|
|
399
|
-
const n = { lt: "<", gt: ">", amp: "&", quot: '"', apos: "'", nbsp: " " }, r =
|
|
406
|
+
const n = { lt: "<", gt: ">", amp: "&", quot: '"', apos: "'", nbsp: " " }, r = xt ?? ue._namedMap;
|
|
400
407
|
let o = r;
|
|
401
|
-
if (!o &&
|
|
408
|
+
if (!o && an)
|
|
402
409
|
try {
|
|
403
410
|
const i = globalThis.require;
|
|
404
411
|
if (typeof i == "function") {
|
|
@@ -425,14 +432,14 @@ function ue(e) {
|
|
|
425
432
|
} catch {
|
|
426
433
|
}
|
|
427
434
|
if (!o) {
|
|
428
|
-
o = n,
|
|
435
|
+
o = n, kt = !0;
|
|
429
436
|
try {
|
|
430
437
|
ue._usedFallback = !0;
|
|
431
438
|
} catch {
|
|
432
439
|
}
|
|
433
440
|
const i = ue._namedMapLoader ?? Bt;
|
|
434
441
|
i && i().then((s) => {
|
|
435
|
-
|
|
442
|
+
xt = s;
|
|
436
443
|
try {
|
|
437
444
|
ue._namedMap = s;
|
|
438
445
|
} catch {
|
|
@@ -440,21 +447,21 @@ function ue(e) {
|
|
|
440
447
|
}).catch(() => {
|
|
441
448
|
});
|
|
442
449
|
}
|
|
443
|
-
if ((
|
|
444
|
-
|
|
450
|
+
if ((kt || ue._usedFallback) && !($t || ue._warnedFallback)) {
|
|
451
|
+
$t = !0;
|
|
445
452
|
try {
|
|
446
453
|
ue._warnedFallback = !0;
|
|
447
454
|
} catch {
|
|
448
455
|
}
|
|
449
456
|
try {
|
|
450
|
-
|
|
457
|
+
Q("decodeEntities: using small SSR fallback entity map. Register the full entities.json via registerEntityMap(entities) on the server to enable full HTML5 named-entity decoding.");
|
|
451
458
|
} catch {
|
|
452
459
|
}
|
|
453
460
|
}
|
|
454
461
|
return t.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g, (i, s) => {
|
|
455
462
|
if (s.charCodeAt(0) === 35) {
|
|
456
|
-
const
|
|
457
|
-
return Number.isNaN(
|
|
463
|
+
const u = (s.charAt(1) || "").toLowerCase() === "x" ? parseInt(s.slice(2), 16) : parseInt(s.slice(1), 10);
|
|
464
|
+
return Number.isNaN(u) ? `&${s};` : String.fromCodePoint(u);
|
|
458
465
|
}
|
|
459
466
|
const c = o[s] ?? (r && r[s]);
|
|
460
467
|
return c !== void 0 ? c : `&${s};`;
|
|
@@ -463,7 +470,10 @@ function ue(e) {
|
|
|
463
470
|
async function zt() {
|
|
464
471
|
const e = ["@jasonshimmy", "custom-elements-runtime", "entities.json"].join("/");
|
|
465
472
|
try {
|
|
466
|
-
const t = await import(
|
|
473
|
+
const t = await import(
|
|
474
|
+
/* @vite-ignore */
|
|
475
|
+
e
|
|
476
|
+
);
|
|
467
477
|
return t && (t.default || t);
|
|
468
478
|
} catch {
|
|
469
479
|
try {
|
|
@@ -476,7 +486,10 @@ async function zt() {
|
|
|
476
486
|
];
|
|
477
487
|
for (const n of t)
|
|
478
488
|
try {
|
|
479
|
-
const r = await import(
|
|
489
|
+
const r = await import(
|
|
490
|
+
/* @vite-ignore */
|
|
491
|
+
n
|
|
492
|
+
);
|
|
480
493
|
if (r) return r && (r.default || r);
|
|
481
494
|
} catch {
|
|
482
495
|
}
|
|
@@ -488,11 +501,11 @@ async function zt() {
|
|
|
488
501
|
}
|
|
489
502
|
Bt = zt;
|
|
490
503
|
ue._namedMapLoader = zt;
|
|
491
|
-
function
|
|
504
|
+
function cr(e) {
|
|
492
505
|
const t = String(e);
|
|
493
506
|
return { __unsafeHTML: t, __rawHTML: t };
|
|
494
507
|
}
|
|
495
|
-
function
|
|
508
|
+
function Ct(e) {
|
|
496
509
|
return !!e && (typeof e.__unsafeHTML == "string" || typeof e.__rawHTML == "string");
|
|
497
510
|
}
|
|
498
511
|
function J(e, t) {
|
|
@@ -502,13 +515,13 @@ function J(e, t) {
|
|
|
502
515
|
}
|
|
503
516
|
return t;
|
|
504
517
|
}
|
|
505
|
-
function
|
|
518
|
+
function Je(e, t, n) {
|
|
506
519
|
const r = String(t).split("."), o = r.pop();
|
|
507
520
|
if (!o) return;
|
|
508
521
|
const i = r.reduce((s, c) => (s[c] == null && (s[c] = {}), s[c]), e);
|
|
509
522
|
R(i[o]) ? i[o].value = n : i[o] = n;
|
|
510
523
|
}
|
|
511
|
-
function
|
|
524
|
+
function cn(e, t, n) {
|
|
512
525
|
if (n)
|
|
513
526
|
for (const [r, o] of Object.entries(n)) {
|
|
514
527
|
let i, s = {};
|
|
@@ -525,14 +538,14 @@ function an(e, t, n) {
|
|
|
525
538
|
}
|
|
526
539
|
}
|
|
527
540
|
}
|
|
528
|
-
function
|
|
541
|
+
function ln(e, t, n, r) {
|
|
529
542
|
const o = (s, c) => {
|
|
530
543
|
if (s === c) return !0;
|
|
531
544
|
if (typeof s != typeof c || typeof s != "object" || s === null || c === null) return !1;
|
|
532
545
|
if (Array.isArray(s) && Array.isArray(c))
|
|
533
546
|
return s.length !== c.length ? !1 : s.every((m, y) => o(m, c[y]));
|
|
534
|
-
const a = Object.keys(s),
|
|
535
|
-
return a.length !==
|
|
547
|
+
const a = Object.keys(s), u = Object.keys(c);
|
|
548
|
+
return a.length !== u.length ? !1 : a.every((m) => o(s[m], c[m]));
|
|
536
549
|
}, i = t.get(n);
|
|
537
550
|
if (i && !o(r, i.oldValue))
|
|
538
551
|
try {
|
|
@@ -549,28 +562,28 @@ function cn(e, t, n, r) {
|
|
|
549
562
|
H(`Error in deep watcher for "${s}":`, a);
|
|
550
563
|
}
|
|
551
564
|
}
|
|
552
|
-
function
|
|
565
|
+
function _t(e, t) {
|
|
553
566
|
return t === Boolean ? e === "" || e === "true" : t === Number ? Number(e) : e;
|
|
554
567
|
}
|
|
555
|
-
function
|
|
568
|
+
function un(e, t, n) {
|
|
556
569
|
if (t)
|
|
557
570
|
for (const r in t) {
|
|
558
571
|
const o = t[r], i = oe(r), s = e.getAttribute(i);
|
|
559
572
|
if (o.type === Function && typeof e[r] == "function")
|
|
560
573
|
n[r] = e[r];
|
|
561
574
|
else if (s !== null)
|
|
562
|
-
n[r] =
|
|
575
|
+
n[r] = _t(s, o.type);
|
|
563
576
|
else if (typeof e[r] < "u")
|
|
564
577
|
try {
|
|
565
578
|
const c = e[r];
|
|
566
|
-
o.type === Boolean && typeof c == "boolean" || o.type === Number && typeof c == "number" || o.type === Function && typeof c == "function" ? n[r] = c : n[r] =
|
|
579
|
+
o.type === Boolean && typeof c == "boolean" || o.type === Number && typeof c == "number" || o.type === Function && typeof c == "function" ? n[r] = c : n[r] = _t(String(c), o.type);
|
|
567
580
|
} catch {
|
|
568
581
|
n[r] = e[r];
|
|
569
582
|
}
|
|
570
583
|
else "default" in o && o.default !== void 0 && (n[r] = o.default);
|
|
571
584
|
}
|
|
572
585
|
}
|
|
573
|
-
function
|
|
586
|
+
function fn(e, t, n) {
|
|
574
587
|
if (!t.props) {
|
|
575
588
|
try {
|
|
576
589
|
const r = n && n._hookCallbacks && n._hookCallbacks.props || {}, o = Array.from(/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(r)]));
|
|
@@ -584,9 +597,9 @@ function un(e, t, n) {
|
|
|
584
597
|
configurable: !0,
|
|
585
598
|
get() {
|
|
586
599
|
try {
|
|
587
|
-
const a = oe(i),
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
600
|
+
const a = oe(i), u = e.getAttribute(a);
|
|
601
|
+
if (u !== null)
|
|
602
|
+
return u;
|
|
590
603
|
const m = e[i];
|
|
591
604
|
let y;
|
|
592
605
|
return R(m) || m && typeof m == "object" && "value" in m && !(m instanceof Node) ? y = m.value : y = m, y;
|
|
@@ -602,18 +615,18 @@ function un(e, t, n) {
|
|
|
602
615
|
}
|
|
603
616
|
return;
|
|
604
617
|
}
|
|
605
|
-
|
|
618
|
+
un(e, t.props, n);
|
|
606
619
|
}
|
|
607
|
-
function
|
|
620
|
+
function dn(e, t, n, r) {
|
|
608
621
|
e.onConnected && !n && (e.onConnected(t), r(!0));
|
|
609
622
|
}
|
|
610
|
-
function
|
|
623
|
+
function pn(e, t, n, r, o, i, s, c) {
|
|
611
624
|
e.onDisconnected && e.onDisconnected(t), n.forEach((a) => a()), r(), o(), i(!1), s(null), c(!1);
|
|
612
625
|
}
|
|
613
|
-
function
|
|
626
|
+
function hn(e, t, n, r, o) {
|
|
614
627
|
e.onAttributeChanged && e.onAttributeChanged(t, n, r, o);
|
|
615
628
|
}
|
|
616
|
-
class
|
|
629
|
+
class gn {
|
|
617
630
|
static cache = /* @__PURE__ */ new Map();
|
|
618
631
|
static maxCacheSize = 1e3;
|
|
619
632
|
// Dangerous patterns to block
|
|
@@ -638,7 +651,7 @@ class hn {
|
|
|
638
651
|
const r = this.cache.get(t);
|
|
639
652
|
if (r) {
|
|
640
653
|
if (!r.isSecure) {
|
|
641
|
-
|
|
654
|
+
Q("Blocked cached dangerous expression:", t);
|
|
642
655
|
return;
|
|
643
656
|
}
|
|
644
657
|
return r.evaluator(n);
|
|
@@ -649,7 +662,7 @@ class hn {
|
|
|
649
662
|
i && this.cache.delete(i);
|
|
650
663
|
}
|
|
651
664
|
if (this.cache.set(t, o), !o.isSecure) {
|
|
652
|
-
|
|
665
|
+
Q("Blocked dangerous expression:", t);
|
|
653
666
|
return;
|
|
654
667
|
}
|
|
655
668
|
return o.evaluator(n);
|
|
@@ -664,7 +677,7 @@ class hn {
|
|
|
664
677
|
try {
|
|
665
678
|
return { evaluator: this.createSafeEvaluator(t), isSecure: !0 };
|
|
666
679
|
} catch (n) {
|
|
667
|
-
return
|
|
680
|
+
return Q("Failed to create evaluator for expression:", t, n), { evaluator: () => {
|
|
668
681
|
}, isSecure: !1 };
|
|
669
682
|
}
|
|
670
683
|
}
|
|
@@ -718,8 +731,8 @@ class hn {
|
|
|
718
731
|
for (const y of i) {
|
|
719
732
|
const p = y.slice(4), k = J(n, p);
|
|
720
733
|
if (k === void 0) return;
|
|
721
|
-
const
|
|
722
|
-
r = r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${
|
|
734
|
+
const d = o.push(JSON.stringify(k)) - 1;
|
|
735
|
+
r = r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${d}#>>`);
|
|
723
736
|
}
|
|
724
737
|
const s = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = r.match(s) || [];
|
|
725
738
|
for (const y of c) {
|
|
@@ -730,16 +743,16 @@ class hn {
|
|
|
730
743
|
r = r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${k}#>>`);
|
|
731
744
|
}
|
|
732
745
|
const a = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
|
|
733
|
-
let
|
|
746
|
+
let u;
|
|
734
747
|
const m = /* @__PURE__ */ new Set();
|
|
735
|
-
for (; (
|
|
736
|
-
const y =
|
|
748
|
+
for (; (u = a.exec(r)) !== null; ) {
|
|
749
|
+
const y = u[1];
|
|
737
750
|
if (["true", "false", "null", "undefined"].includes(y) || /^[0-9]+$/.test(y) || y === "ctx" || m.has(y)) continue;
|
|
738
751
|
m.add(y);
|
|
739
752
|
const p = J(n, y);
|
|
740
753
|
if (p === void 0) return;
|
|
741
|
-
const k = JSON.stringify(p),
|
|
742
|
-
y.includes(".") ? r = r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${
|
|
754
|
+
const k = JSON.stringify(p), d = o.push(k) - 1;
|
|
755
|
+
y.includes(".") ? r = r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), `<<#${d}#>>`) : r = r.replace(new RegExp("\\b" + y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b", "g"), `<<#${d}#>>`);
|
|
743
756
|
}
|
|
744
757
|
r = r.replace(/<<#(\d+)#>>/g, (y, p) => o[Number(p)]);
|
|
745
758
|
try {
|
|
@@ -786,15 +799,15 @@ class hn {
|
|
|
786
799
|
return l;
|
|
787
800
|
}
|
|
788
801
|
function a() {
|
|
789
|
-
let l =
|
|
802
|
+
let l = u();
|
|
790
803
|
for (; o() && o().value === "||"; ) {
|
|
791
804
|
i("OP");
|
|
792
|
-
const g =
|
|
805
|
+
const g = u();
|
|
793
806
|
l = l || g;
|
|
794
807
|
}
|
|
795
808
|
return l;
|
|
796
809
|
}
|
|
797
|
-
function
|
|
810
|
+
function u() {
|
|
798
811
|
let l = m();
|
|
799
812
|
for (; o() && o().value === "&&"; ) {
|
|
800
813
|
i("OP");
|
|
@@ -854,9 +867,9 @@ class hn {
|
|
|
854
867
|
return l;
|
|
855
868
|
}
|
|
856
869
|
function k() {
|
|
857
|
-
let l =
|
|
870
|
+
let l = d();
|
|
858
871
|
for (; o() && (o().value === "*" || o().value === "/" || o().value === "%"); ) {
|
|
859
|
-
const g = i("OP").value, v =
|
|
872
|
+
const g = i("OP").value, v = d();
|
|
860
873
|
switch (g) {
|
|
861
874
|
case "*":
|
|
862
875
|
l = l * v;
|
|
@@ -871,10 +884,10 @@ class hn {
|
|
|
871
884
|
}
|
|
872
885
|
return l;
|
|
873
886
|
}
|
|
874
|
-
function
|
|
875
|
-
return o() && o().value === "!" ? (i("OP"), !
|
|
887
|
+
function d() {
|
|
888
|
+
return o() && o().value === "!" ? (i("OP"), !d()) : o() && o().value === "-" ? (i("OP"), -d()) : f();
|
|
876
889
|
}
|
|
877
|
-
function
|
|
890
|
+
function f() {
|
|
878
891
|
const l = o();
|
|
879
892
|
if (l) {
|
|
880
893
|
if (l.type === "NUMBER")
|
|
@@ -993,10 +1006,10 @@ class se {
|
|
|
993
1006
|
return n ? n.map((r) => ({ event: r.event, handler: r.handler, wrapper: r.wrapper, options: r.options })) : [];
|
|
994
1007
|
}
|
|
995
1008
|
}
|
|
996
|
-
function
|
|
1009
|
+
function ze(e, t) {
|
|
997
1010
|
return Array.isArray(e) && Array.isArray(t) ? JSON.stringify([...e].sort()) !== JSON.stringify([...t].sort()) : e !== t;
|
|
998
1011
|
}
|
|
999
|
-
function
|
|
1012
|
+
function St(e, t, n, r, o) {
|
|
1000
1013
|
if (e)
|
|
1001
1014
|
if (o && typeof t.value == "object" && t.value !== null) {
|
|
1002
1015
|
const i = { ...t.value };
|
|
@@ -1005,16 +1018,16 @@ function Ct(e, t, n, r, o) {
|
|
|
1005
1018
|
t.value = n;
|
|
1006
1019
|
else {
|
|
1007
1020
|
const i = r._state || r;
|
|
1008
|
-
|
|
1021
|
+
Je(i, t, n);
|
|
1009
1022
|
}
|
|
1010
1023
|
}
|
|
1011
|
-
function
|
|
1024
|
+
function Ue(e, t, n, r) {
|
|
1012
1025
|
if (e._requestRender && e._requestRender(), e._triggerWatchers) {
|
|
1013
1026
|
const o = t ? "reactiveState" : n;
|
|
1014
1027
|
e._triggerWatchers(o, r);
|
|
1015
1028
|
}
|
|
1016
1029
|
}
|
|
1017
|
-
function
|
|
1030
|
+
function mn(e, t, n) {
|
|
1018
1031
|
const r = `update:${oe(t)}`, o = `update:${t}`, i = new CustomEvent(r, {
|
|
1019
1032
|
detail: n,
|
|
1020
1033
|
bubbles: !0,
|
|
@@ -1026,20 +1039,20 @@ function gn(e, t, n) {
|
|
|
1026
1039
|
});
|
|
1027
1040
|
e.dispatchEvent(i), e.dispatchEvent(s);
|
|
1028
1041
|
}
|
|
1029
|
-
function
|
|
1042
|
+
function At(e, t, n, r) {
|
|
1030
1043
|
const o = n;
|
|
1031
|
-
|
|
1044
|
+
P(() => {
|
|
1032
1045
|
e[t] = o;
|
|
1033
|
-
}),
|
|
1046
|
+
}), P(() => {
|
|
1034
1047
|
const i = oe(t);
|
|
1035
1048
|
typeof o == "boolean" ? o ? e.setAttribute(i, "true") : e.setAttribute(i, "false") : o != null && (typeof o == "string" || typeof o == "number") ? e.setAttribute(i, String(o)) : e.removeAttribute?.(i);
|
|
1036
|
-
}),
|
|
1049
|
+
}), P(() => {
|
|
1037
1050
|
e._applyProps?.(e._cfg);
|
|
1038
|
-
}),
|
|
1051
|
+
}), P(() => {
|
|
1039
1052
|
e._requestRender?.();
|
|
1040
1053
|
});
|
|
1041
1054
|
}
|
|
1042
|
-
function
|
|
1055
|
+
function yn(e, t, n, r) {
|
|
1043
1056
|
if (e) {
|
|
1044
1057
|
const i = t.value;
|
|
1045
1058
|
return r && typeof i == "object" && i !== null ? i[r] : i;
|
|
@@ -1047,38 +1060,38 @@ function mn(e, t, n, r) {
|
|
|
1047
1060
|
const o = n._state || n;
|
|
1048
1061
|
return J(o, t);
|
|
1049
1062
|
}
|
|
1050
|
-
function
|
|
1063
|
+
function $e(e) {
|
|
1051
1064
|
return e ? e.split(/\s+/).filter(Boolean) : [];
|
|
1052
1065
|
}
|
|
1053
|
-
function
|
|
1066
|
+
function Ee(e, t) {
|
|
1054
1067
|
if (t.length === 0) return;
|
|
1055
1068
|
const n = t.filter((r) => r && !e.classList.contains(r));
|
|
1056
1069
|
n.length > 0 && e.classList.add(...n);
|
|
1057
1070
|
}
|
|
1058
|
-
function
|
|
1071
|
+
function xe(e, t) {
|
|
1059
1072
|
if (t.length === 0) return;
|
|
1060
1073
|
const n = t.filter(Boolean);
|
|
1061
1074
|
n.length > 0 && e.classList.remove(...n);
|
|
1062
1075
|
}
|
|
1063
|
-
let
|
|
1064
|
-
async function
|
|
1065
|
-
if (!
|
|
1076
|
+
let Ye = !1;
|
|
1077
|
+
async function bn(e, t, n = 10) {
|
|
1078
|
+
if (!Ye) {
|
|
1066
1079
|
if (!e.isConnected) {
|
|
1067
|
-
|
|
1080
|
+
Q("⚠️ Element not connected to DOM, skipping style wait");
|
|
1068
1081
|
return;
|
|
1069
1082
|
}
|
|
1070
1083
|
for (let r = 0; r < n; r++) {
|
|
1071
1084
|
const o = window.getComputedStyle(e), i = o.transform && o.transform !== "", s = o.opacity && o.opacity !== "";
|
|
1072
1085
|
if (i || s) {
|
|
1073
|
-
|
|
1086
|
+
Ye = !0;
|
|
1074
1087
|
return;
|
|
1075
1088
|
}
|
|
1076
1089
|
await new Promise((c) => requestAnimationFrame(() => c(void 0)));
|
|
1077
1090
|
}
|
|
1078
|
-
|
|
1091
|
+
Ye = !0, Q("⚠️ Styles did not load in time for transition, continuing anyway");
|
|
1079
1092
|
}
|
|
1080
1093
|
}
|
|
1081
|
-
function
|
|
1094
|
+
function vn(e) {
|
|
1082
1095
|
const t = window.getComputedStyle(e), n = t.transitionDuration || "0s", r = t.transitionDelay || "0s", o = (i) => {
|
|
1083
1096
|
const s = parseFloat(i);
|
|
1084
1097
|
return i.includes("ms") ? s : s * 1e3;
|
|
@@ -1087,7 +1100,7 @@ function bn(e) {
|
|
|
1087
1100
|
}
|
|
1088
1101
|
function Ut(e, t) {
|
|
1089
1102
|
return new Promise((n) => {
|
|
1090
|
-
const r = t ??
|
|
1103
|
+
const r = t ?? vn(e);
|
|
1091
1104
|
if (r <= 0) {
|
|
1092
1105
|
n();
|
|
1093
1106
|
return;
|
|
@@ -1099,54 +1112,54 @@ function Ut(e, t) {
|
|
|
1099
1112
|
e.addEventListener("transitionend", s), e.addEventListener("transitioncancel", s), setTimeout(i, r + 50);
|
|
1100
1113
|
});
|
|
1101
1114
|
}
|
|
1102
|
-
async function
|
|
1115
|
+
async function Te(e, t) {
|
|
1103
1116
|
const { classes: n, hooks: r, css: o, duration: i } = t;
|
|
1104
1117
|
if (r?.onBeforeEnter)
|
|
1105
1118
|
try {
|
|
1106
1119
|
r.onBeforeEnter(e);
|
|
1107
|
-
} catch (
|
|
1108
|
-
H("Transition onBeforeEnter error:",
|
|
1120
|
+
} catch (d) {
|
|
1121
|
+
H("Transition onBeforeEnter error:", d);
|
|
1109
1122
|
}
|
|
1110
1123
|
if (!o)
|
|
1111
|
-
return r?.onEnter ? new Promise((
|
|
1124
|
+
return r?.onEnter ? new Promise((d) => {
|
|
1112
1125
|
r.onEnter(e, () => {
|
|
1113
1126
|
if (r?.onAfterEnter)
|
|
1114
1127
|
try {
|
|
1115
1128
|
r.onAfterEnter(e);
|
|
1116
|
-
} catch (
|
|
1117
|
-
H("Transition onAfterEnter error:",
|
|
1129
|
+
} catch (f) {
|
|
1130
|
+
H("Transition onAfterEnter error:", f);
|
|
1118
1131
|
}
|
|
1119
|
-
|
|
1132
|
+
d();
|
|
1120
1133
|
});
|
|
1121
1134
|
}) : void 0;
|
|
1122
|
-
const s =
|
|
1123
|
-
|
|
1124
|
-
let
|
|
1135
|
+
const s = $e(n?.enterFrom), c = $e(n?.enterActive), a = $e(n?.enterTo);
|
|
1136
|
+
Ee(e, s), e.offsetHeight, Ee(e, c), e.offsetHeight;
|
|
1137
|
+
let u;
|
|
1125
1138
|
if (r?.onEnter) {
|
|
1126
|
-
const
|
|
1127
|
-
|
|
1139
|
+
const d = new Promise((f) => {
|
|
1140
|
+
u = f;
|
|
1128
1141
|
});
|
|
1129
1142
|
try {
|
|
1130
1143
|
r.onEnter(e, () => {
|
|
1131
|
-
|
|
1144
|
+
u && u();
|
|
1132
1145
|
});
|
|
1133
|
-
} catch (
|
|
1134
|
-
H("Transition onEnter error:",
|
|
1146
|
+
} catch (f) {
|
|
1147
|
+
H("Transition onEnter error:", f);
|
|
1135
1148
|
}
|
|
1136
|
-
|
|
1149
|
+
u && await d;
|
|
1137
1150
|
}
|
|
1138
|
-
await new Promise((
|
|
1151
|
+
await new Promise((d) => requestAnimationFrame(() => d(void 0))), e.offsetHeight;
|
|
1139
1152
|
const m = window.getComputedStyle(e), y = m.transform, p = m.opacity;
|
|
1140
|
-
|
|
1153
|
+
xe(e, s), y && y !== "none" && (e.style.transform = y), p && p !== "" && (e.style.opacity = p), e.offsetHeight, await new Promise((d) => requestAnimationFrame(() => d(void 0))), e.style.transform = "", e.style.opacity = "", Ee(e, a), e.offsetHeight, await new Promise((d) => requestAnimationFrame(() => d(void 0)));
|
|
1141
1154
|
let k;
|
|
1142
|
-
if (typeof i == "number" ? k = i : i && typeof i == "object" && "enter" in i && (k = i.enter), await Ut(e, k),
|
|
1155
|
+
if (typeof i == "number" ? k = i : i && typeof i == "object" && "enter" in i && (k = i.enter), await Ut(e, k), xe(e, c), r?.onAfterEnter)
|
|
1143
1156
|
try {
|
|
1144
1157
|
r.onAfterEnter(e);
|
|
1145
|
-
} catch (
|
|
1146
|
-
H("Transition onAfterEnter error:",
|
|
1158
|
+
} catch (d) {
|
|
1159
|
+
H("Transition onAfterEnter error:", d);
|
|
1147
1160
|
}
|
|
1148
1161
|
}
|
|
1149
|
-
async function
|
|
1162
|
+
async function Qe(e, t) {
|
|
1150
1163
|
const { classes: n, hooks: r, css: o, duration: i } = t;
|
|
1151
1164
|
if (r?.onBeforeLeave)
|
|
1152
1165
|
try {
|
|
@@ -1166,35 +1179,35 @@ async function Ye(e, t) {
|
|
|
1166
1179
|
y();
|
|
1167
1180
|
});
|
|
1168
1181
|
}) : void 0;
|
|
1169
|
-
const s =
|
|
1170
|
-
|
|
1171
|
-
let
|
|
1182
|
+
const s = $e(n?.leaveFrom), c = $e(n?.leaveActive), a = $e(n?.leaveTo);
|
|
1183
|
+
Ee(e, s), e.offsetHeight, Ee(e, c);
|
|
1184
|
+
let u;
|
|
1172
1185
|
if (r?.onLeave) {
|
|
1173
1186
|
const y = new Promise((p) => {
|
|
1174
|
-
|
|
1187
|
+
u = p;
|
|
1175
1188
|
});
|
|
1176
1189
|
try {
|
|
1177
1190
|
r.onLeave(e, () => {
|
|
1178
|
-
|
|
1191
|
+
u && u();
|
|
1179
1192
|
});
|
|
1180
1193
|
} catch (p) {
|
|
1181
1194
|
H("Transition onLeave error:", p);
|
|
1182
1195
|
}
|
|
1183
|
-
|
|
1196
|
+
u && await y;
|
|
1184
1197
|
}
|
|
1185
|
-
await new Promise((y) => requestAnimationFrame(() => y(void 0))), await
|
|
1198
|
+
await new Promise((y) => requestAnimationFrame(() => y(void 0))), await bn(e, [...s, ...c]), xe(e, s), Ee(e, a);
|
|
1186
1199
|
let m;
|
|
1187
|
-
if (typeof i == "number" ? m = i : i && typeof i == "object" && "leave" in i && (m = i.leave), await Ut(e, m),
|
|
1200
|
+
if (typeof i == "number" ? m = i : i && typeof i == "object" && "leave" in i && (m = i.leave), await Ut(e, m), xe(e, c), xe(e, a), xe(e, s), r?.onAfterLeave)
|
|
1188
1201
|
try {
|
|
1189
1202
|
r.onAfterLeave(e);
|
|
1190
1203
|
} catch (y) {
|
|
1191
1204
|
H("Transition onAfterLeave error:", y);
|
|
1192
1205
|
}
|
|
1193
1206
|
}
|
|
1194
|
-
const
|
|
1195
|
-
function
|
|
1207
|
+
const qt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap();
|
|
1208
|
+
function qe(e) {
|
|
1196
1209
|
if (!e) return;
|
|
1197
|
-
const t =
|
|
1210
|
+
const t = qt.get(e);
|
|
1198
1211
|
if (t !== void 0) return t;
|
|
1199
1212
|
try {
|
|
1200
1213
|
const n = e;
|
|
@@ -1206,9 +1219,9 @@ function Ue(e) {
|
|
|
1206
1219
|
if (n) return n;
|
|
1207
1220
|
}
|
|
1208
1221
|
}
|
|
1209
|
-
function
|
|
1222
|
+
function ee(e, t) {
|
|
1210
1223
|
try {
|
|
1211
|
-
|
|
1224
|
+
qt.set(e, t);
|
|
1212
1225
|
} catch {
|
|
1213
1226
|
}
|
|
1214
1227
|
try {
|
|
@@ -1220,9 +1233,9 @@ function Q(e, t) {
|
|
|
1220
1233
|
} catch {
|
|
1221
1234
|
}
|
|
1222
1235
|
}
|
|
1223
|
-
function
|
|
1236
|
+
function wn(e) {
|
|
1224
1237
|
if (!e) return;
|
|
1225
|
-
const t =
|
|
1238
|
+
const t = Kt.get(e);
|
|
1226
1239
|
if (t !== void 0) return t;
|
|
1227
1240
|
try {
|
|
1228
1241
|
const n = e;
|
|
@@ -1230,9 +1243,9 @@ function vn(e) {
|
|
|
1230
1243
|
} catch {
|
|
1231
1244
|
}
|
|
1232
1245
|
}
|
|
1233
|
-
function
|
|
1246
|
+
function xn(e, t) {
|
|
1234
1247
|
try {
|
|
1235
|
-
|
|
1248
|
+
Kt.set(e, t);
|
|
1236
1249
|
} catch {
|
|
1237
1250
|
}
|
|
1238
1251
|
try {
|
|
@@ -1240,10 +1253,10 @@ function wn(e, t) {
|
|
|
1240
1253
|
} catch {
|
|
1241
1254
|
}
|
|
1242
1255
|
}
|
|
1243
|
-
function
|
|
1256
|
+
function re(e) {
|
|
1244
1257
|
return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement;
|
|
1245
1258
|
}
|
|
1246
|
-
function
|
|
1259
|
+
function Ce(e) {
|
|
1247
1260
|
return e === "" ? !0 : typeof e == "string" ? e === "false" ? !1 : e === "true" ? !0 : e !== "" : e && typeof e == "object" ? R(e) || "value" in e ? !!e.value : !1 : !!e;
|
|
1248
1261
|
}
|
|
1249
1262
|
function be(e, t) {
|
|
@@ -1260,28 +1273,28 @@ function Le(e, t, n) {
|
|
|
1260
1273
|
const r = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), o = e.props?.ref ?? (e.props?.props && e.props.props.ref);
|
|
1261
1274
|
r ? r.value = t : o && n && (n[o] = t);
|
|
1262
1275
|
}
|
|
1263
|
-
function
|
|
1276
|
+
function kn(e, t, n, r, o, i, s, c) {
|
|
1264
1277
|
if (!i) return;
|
|
1265
|
-
const a = t.includes("lazy"),
|
|
1278
|
+
const a = t.includes("lazy"), u = t.includes("trim"), m = t.includes("number"), y = e && typeof e == "object" && "value" in e && typeof e.value < "u", p = () => {
|
|
1266
1279
|
if (y) {
|
|
1267
1280
|
const x = e.value;
|
|
1268
1281
|
return c && s && (s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement) && typeof x == "object" && x !== null ? x[c] : x;
|
|
1269
1282
|
}
|
|
1270
1283
|
return J(i._state || i, e);
|
|
1271
1284
|
}, k = p();
|
|
1272
|
-
let
|
|
1273
|
-
s instanceof HTMLInputElement ?
|
|
1274
|
-
const
|
|
1275
|
-
if (
|
|
1285
|
+
let d = "text";
|
|
1286
|
+
s instanceof HTMLInputElement ? d = r?.type || s.type || "text" : s instanceof HTMLSelectElement ? d = "select" : s instanceof HTMLTextAreaElement && (d = "textarea");
|
|
1287
|
+
const f = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement, l = f ? d === "checkbox" || d === "radio" ? "checked" : "value" : c ?? "modelValue";
|
|
1288
|
+
if (d === "checkbox")
|
|
1276
1289
|
if (Array.isArray(k))
|
|
1277
1290
|
n[l] = k.includes(String(s?.getAttribute("value") ?? r?.value ?? ""));
|
|
1278
1291
|
else {
|
|
1279
1292
|
const x = s?.getAttribute("true-value") ?? !0;
|
|
1280
1293
|
n[l] = k === x;
|
|
1281
1294
|
}
|
|
1282
|
-
else if (
|
|
1295
|
+
else if (d === "radio")
|
|
1283
1296
|
n[l] = k === (r?.value ?? "");
|
|
1284
|
-
else if (
|
|
1297
|
+
else if (d === "select")
|
|
1285
1298
|
if (s && s.hasAttribute("multiple") && s instanceof HTMLSelectElement) {
|
|
1286
1299
|
const x = Array.isArray(k) ? k.map(String) : [];
|
|
1287
1300
|
setTimeout(() => {
|
|
@@ -1292,21 +1305,21 @@ function xn(e, t, n, r, o, i, s, c) {
|
|
|
1292
1305
|
} else
|
|
1293
1306
|
n[l] = k;
|
|
1294
1307
|
else {
|
|
1295
|
-
!
|
|
1308
|
+
!f && y ? n[l] = e : n[l] = k;
|
|
1296
1309
|
try {
|
|
1297
1310
|
const x = oe(l);
|
|
1298
1311
|
r && (r[x] = k);
|
|
1299
1312
|
} catch {
|
|
1300
1313
|
}
|
|
1301
1314
|
}
|
|
1302
|
-
const g = a ||
|
|
1315
|
+
const g = a || d === "checkbox" || d === "radio" || d === "select" ? "change" : "input", v = (x) => {
|
|
1303
1316
|
if (x.isComposing || o._isComposing) return;
|
|
1304
1317
|
const S = typeof globalThis.process < "u" && globalThis.process.env?.NODE_ENV === "test" || typeof window < "u" && window.__vitest__;
|
|
1305
1318
|
if (x.isTrusted === !1 && !S) return;
|
|
1306
1319
|
const E = x.target;
|
|
1307
1320
|
if (!E || E._modelUpdating) return;
|
|
1308
1321
|
let C = E.value;
|
|
1309
|
-
if (
|
|
1322
|
+
if (d === "checkbox") {
|
|
1310
1323
|
const $ = p();
|
|
1311
1324
|
if (Array.isArray($)) {
|
|
1312
1325
|
const b = E.getAttribute("value") ?? "", _ = Array.from($);
|
|
@@ -1321,25 +1334,25 @@ function xn(e, t, n, r, o, i, s, c) {
|
|
|
1321
1334
|
const b = E.getAttribute("true-value") ?? !0, _ = E.getAttribute("false-value") ?? !1;
|
|
1322
1335
|
C = E.checked ? b : _;
|
|
1323
1336
|
}
|
|
1324
|
-
} else if (
|
|
1337
|
+
} else if (d === "radio")
|
|
1325
1338
|
C = E.getAttribute("value") ?? E.value;
|
|
1326
|
-
else if (
|
|
1339
|
+
else if (d === "select" && E.multiple)
|
|
1327
1340
|
C = Array.from(E.selectedOptions).map(($) => $.value);
|
|
1328
|
-
else if (
|
|
1341
|
+
else if (u && typeof C == "string" && (C = C.trim()), m) {
|
|
1329
1342
|
const $ = Number(C);
|
|
1330
1343
|
isNaN($) || (C = $);
|
|
1331
1344
|
}
|
|
1332
1345
|
const w = p();
|
|
1333
|
-
if (
|
|
1346
|
+
if (ze(C, w)) {
|
|
1334
1347
|
E._modelUpdating = !0;
|
|
1335
1348
|
try {
|
|
1336
|
-
|
|
1349
|
+
St(y, e, C, i, c), Ue(i, y, e, C), E && mn(E, l, C);
|
|
1337
1350
|
} finally {
|
|
1338
1351
|
setTimeout(() => E._modelUpdating = !1, 0);
|
|
1339
1352
|
}
|
|
1340
1353
|
}
|
|
1341
1354
|
};
|
|
1342
|
-
if (
|
|
1355
|
+
if (f) {
|
|
1343
1356
|
if (o[g]) {
|
|
1344
1357
|
const x = o[g];
|
|
1345
1358
|
s && se.removeListener(s, g, x);
|
|
@@ -1356,11 +1369,11 @@ function xn(e, t, n, r, o, i, s, c) {
|
|
|
1356
1369
|
s && se.removeListener(s, S, E);
|
|
1357
1370
|
}
|
|
1358
1371
|
if (o[x] = (E) => {
|
|
1359
|
-
const C = E.detail !== void 0 ? E.detail : E.target?.value, w =
|
|
1360
|
-
if (
|
|
1361
|
-
|
|
1372
|
+
const C = E.detail !== void 0 ? E.detail : E.target?.value, w = yn(y, e, i, c);
|
|
1373
|
+
if (ze(C, w)) {
|
|
1374
|
+
St(y, e, C, i, c), Ue(i, y, e, C);
|
|
1362
1375
|
const $ = E.target;
|
|
1363
|
-
$ &&
|
|
1376
|
+
$ && At($, l, y ? e : C, y);
|
|
1364
1377
|
}
|
|
1365
1378
|
}, y && typeof e.value == "object" && e.value !== null) {
|
|
1366
1379
|
let E = [];
|
|
@@ -1374,34 +1387,34 @@ function xn(e, t, n, r, o, i, s, c) {
|
|
|
1374
1387
|
const T = `update:${oe(w)}`, $ = `update:${w}`;
|
|
1375
1388
|
o[T] || (o[T] = (b) => {
|
|
1376
1389
|
const _ = b.detail !== void 0 ? b.detail : b.target?.value, O = y ? e.value[w] : J(i._state || i, e);
|
|
1377
|
-
if (!
|
|
1390
|
+
if (!ze(_, O)) return;
|
|
1378
1391
|
if (y) {
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1392
|
+
const M = { ...e.value };
|
|
1393
|
+
M[w] = _, e.value = M;
|
|
1381
1394
|
} else
|
|
1382
|
-
|
|
1383
|
-
|
|
1395
|
+
Je(i._state || i, e, _);
|
|
1396
|
+
Ue(i, y, e, _);
|
|
1384
1397
|
const A = b.currentTarget || s || b.target;
|
|
1385
|
-
A &&
|
|
1398
|
+
A && At(A, l, y ? e : _, y);
|
|
1386
1399
|
}, o[$] = o[T]);
|
|
1387
1400
|
}
|
|
1388
1401
|
}
|
|
1389
1402
|
o[S] = o[x];
|
|
1390
1403
|
}
|
|
1391
|
-
(
|
|
1404
|
+
(d === "text" || d === "textarea") && (o.compositionstart = (() => o._isComposing = !0), o.compositionend = (x) => {
|
|
1392
1405
|
o._isComposing = !1;
|
|
1393
1406
|
const S = x.target;
|
|
1394
1407
|
S && setTimeout(() => {
|
|
1395
1408
|
const E = S.value, C = i._state || i, w = J(C, e);
|
|
1396
1409
|
let T = E;
|
|
1397
|
-
if (
|
|
1410
|
+
if (u && (T = T.trim()), m) {
|
|
1398
1411
|
const b = Number(T);
|
|
1399
1412
|
isNaN(b) || (T = b);
|
|
1400
1413
|
}
|
|
1401
|
-
if (
|
|
1414
|
+
if (ze(T, w)) {
|
|
1402
1415
|
S._modelUpdating = !0;
|
|
1403
1416
|
try {
|
|
1404
|
-
|
|
1417
|
+
Je(C, e, T), Ue(i, y, e, T);
|
|
1405
1418
|
} finally {
|
|
1406
1419
|
setTimeout(() => S._modelUpdating = !1, 0);
|
|
1407
1420
|
}
|
|
@@ -1413,12 +1426,12 @@ function Vt(e) {
|
|
|
1413
1426
|
const t = e.slice(2);
|
|
1414
1427
|
return t ? t.charAt(0).toLowerCase() + t.slice(1) : "";
|
|
1415
1428
|
}
|
|
1416
|
-
function
|
|
1429
|
+
function $n(e, t, n, r, o) {
|
|
1417
1430
|
if (typeof e == "object" && e !== null)
|
|
1418
1431
|
for (const [i, s] of Object.entries(e))
|
|
1419
1432
|
if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
|
|
1420
1433
|
n[i] = s;
|
|
1421
|
-
else if (i === "disabled" && o &&
|
|
1434
|
+
else if (i === "disabled" && o && re(o)) {
|
|
1422
1435
|
const c = s && typeof s == "object" && "value" in s;
|
|
1423
1436
|
(() => {
|
|
1424
1437
|
try {
|
|
@@ -1432,12 +1445,12 @@ function kn(e, t, n, r, o) {
|
|
|
1432
1445
|
else if (typeof e == "string") {
|
|
1433
1446
|
if (!r) return;
|
|
1434
1447
|
try {
|
|
1435
|
-
const i =
|
|
1448
|
+
const i = De(e, r);
|
|
1436
1449
|
if (typeof i == "object" && i !== null) {
|
|
1437
1450
|
for (const [s, c] of Object.entries(i))
|
|
1438
1451
|
if (s.startsWith("data-") || s.startsWith("aria-") || s === "class")
|
|
1439
1452
|
n[s] = c;
|
|
1440
|
-
else if (s === "disabled" && o &&
|
|
1453
|
+
else if (s === "disabled" && o && re(o)) {
|
|
1441
1454
|
const a = c && typeof c == "object" && "value" in c;
|
|
1442
1455
|
(() => {
|
|
1443
1456
|
try {
|
|
@@ -1459,11 +1472,11 @@ function kn(e, t, n, r, o) {
|
|
|
1459
1472
|
}
|
|
1460
1473
|
}
|
|
1461
1474
|
}
|
|
1462
|
-
function
|
|
1475
|
+
function En(e, t, n) {
|
|
1463
1476
|
let r;
|
|
1464
1477
|
if (typeof e == "string") {
|
|
1465
1478
|
if (!n) return;
|
|
1466
|
-
r =
|
|
1479
|
+
r = De(e, n);
|
|
1467
1480
|
} else
|
|
1468
1481
|
r = e;
|
|
1469
1482
|
const o = t.style || "";
|
|
@@ -1484,14 +1497,14 @@ function $n(e, t, n) {
|
|
|
1484
1497
|
i = "display: none";
|
|
1485
1498
|
i !== o && (i ? t.style = i : delete t.style);
|
|
1486
1499
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return
|
|
1500
|
+
function De(e, t) {
|
|
1501
|
+
return gn.evaluate(e, t);
|
|
1489
1502
|
}
|
|
1490
|
-
function
|
|
1503
|
+
function Cn(e, t, n) {
|
|
1491
1504
|
let r;
|
|
1492
1505
|
if (typeof e == "string") {
|
|
1493
1506
|
if (!n) return;
|
|
1494
|
-
r =
|
|
1507
|
+
r = De(e, n);
|
|
1495
1508
|
} else
|
|
1496
1509
|
r = e;
|
|
1497
1510
|
let o = [];
|
|
@@ -1505,7 +1518,7 @@ function En(e, t, n) {
|
|
|
1505
1518
|
const i = t.class || "", s = o.join(" ");
|
|
1506
1519
|
t.class = i ? `${i} ${s}`.trim() : s;
|
|
1507
1520
|
}
|
|
1508
|
-
function
|
|
1521
|
+
function ht(e) {
|
|
1509
1522
|
if (e === !0 || e === !1) return !0;
|
|
1510
1523
|
if (e == null) return !1;
|
|
1511
1524
|
if (typeof e === "string") return e === "" || e === "true" || e === "false";
|
|
@@ -1518,11 +1531,11 @@ function dt(e) {
|
|
|
1518
1531
|
}
|
|
1519
1532
|
return !1;
|
|
1520
1533
|
}
|
|
1521
|
-
function
|
|
1534
|
+
function _n(e, t, n) {
|
|
1522
1535
|
let r;
|
|
1523
1536
|
if (typeof e == "string") {
|
|
1524
1537
|
if (!n) return;
|
|
1525
|
-
r =
|
|
1538
|
+
r = De(e, n);
|
|
1526
1539
|
} else
|
|
1527
1540
|
r = e;
|
|
1528
1541
|
let o = "";
|
|
@@ -1532,7 +1545,7 @@ function Cn(e, t, n) {
|
|
|
1532
1545
|
const s = [];
|
|
1533
1546
|
for (const [c, a] of Object.entries(r))
|
|
1534
1547
|
if (a != null && a !== "") {
|
|
1535
|
-
const
|
|
1548
|
+
const u = c.replace(
|
|
1536
1549
|
/[A-Z]/g,
|
|
1537
1550
|
(p) => `-${p.toLowerCase()}`
|
|
1538
1551
|
), m = [
|
|
@@ -1562,25 +1575,25 @@ function Cn(e, t, n) {
|
|
|
1562
1575
|
"max-height"
|
|
1563
1576
|
];
|
|
1564
1577
|
let y = String(a);
|
|
1565
|
-
typeof a == "number" && m.includes(
|
|
1578
|
+
typeof a == "number" && m.includes(u) && (y = `${a}px`), s.push(`${u}: ${y}`);
|
|
1566
1579
|
}
|
|
1567
1580
|
o = s.join("; ") + (s.length > 0 ? ";" : "");
|
|
1568
1581
|
}
|
|
1569
1582
|
const i = t.style || "";
|
|
1570
1583
|
t.style = i + (i && !i.endsWith(";") ? "; " : "") + o;
|
|
1571
1584
|
}
|
|
1572
|
-
function
|
|
1585
|
+
function Sn(e, t, n) {
|
|
1573
1586
|
let r = e;
|
|
1574
|
-
typeof e == "string" && n && (r =
|
|
1587
|
+
typeof e == "string" && n && (r = De(e, n)), R(r) ? t.reactiveRef = r : t.ref = r;
|
|
1575
1588
|
}
|
|
1576
1589
|
function Zt(e, t, n, r) {
|
|
1577
1590
|
const o = {}, i = { ...r || {} }, s = {};
|
|
1578
1591
|
for (const [c, a] of Object.entries(e)) {
|
|
1579
|
-
const { value:
|
|
1592
|
+
const { value: u, modifiers: m, arg: y } = a;
|
|
1580
1593
|
if (c === "model" || c.startsWith("model:")) {
|
|
1581
1594
|
const p = c.split(":"), k = p.length > 1 ? p[1] : y;
|
|
1582
|
-
|
|
1583
|
-
|
|
1595
|
+
kn(
|
|
1596
|
+
u,
|
|
1584
1597
|
// Pass the original value (could be string or reactive state object)
|
|
1585
1598
|
m,
|
|
1586
1599
|
o,
|
|
@@ -1594,32 +1607,32 @@ function Zt(e, t, n, r) {
|
|
|
1594
1607
|
}
|
|
1595
1608
|
switch (c) {
|
|
1596
1609
|
case "bind":
|
|
1597
|
-
|
|
1610
|
+
$n(u, o, i, t, n);
|
|
1598
1611
|
break;
|
|
1599
1612
|
case "show":
|
|
1600
|
-
|
|
1613
|
+
En(u, i, t);
|
|
1601
1614
|
break;
|
|
1602
1615
|
case "class":
|
|
1603
|
-
|
|
1616
|
+
Cn(u, i, t);
|
|
1604
1617
|
break;
|
|
1605
1618
|
case "style":
|
|
1606
|
-
|
|
1619
|
+
_n(u, i, t);
|
|
1607
1620
|
break;
|
|
1608
1621
|
case "ref":
|
|
1609
|
-
|
|
1622
|
+
Sn(u, o, t);
|
|
1610
1623
|
break;
|
|
1611
1624
|
}
|
|
1612
1625
|
}
|
|
1613
1626
|
try {
|
|
1614
|
-
if (Object.prototype.hasOwnProperty.call(o, "disabled") && n &&
|
|
1615
|
-
const a = o.disabled,
|
|
1627
|
+
if (Object.prototype.hasOwnProperty.call(o, "disabled") && n && re(n)) {
|
|
1628
|
+
const a = o.disabled, u = a && typeof a == "object" && "value" in a;
|
|
1616
1629
|
let m = !1;
|
|
1617
1630
|
try {
|
|
1618
1631
|
m = R(a);
|
|
1619
1632
|
} catch {
|
|
1620
1633
|
m = !1;
|
|
1621
1634
|
}
|
|
1622
|
-
if (!
|
|
1635
|
+
if (!u && !m)
|
|
1623
1636
|
try {
|
|
1624
1637
|
i.disabled = a, delete o.disabled;
|
|
1625
1638
|
const y = globalThis;
|
|
@@ -1631,7 +1644,7 @@ function Zt(e, t, n, r) {
|
|
|
1631
1644
|
}
|
|
1632
1645
|
return { props: o, attrs: i, listeners: s };
|
|
1633
1646
|
}
|
|
1634
|
-
function
|
|
1647
|
+
function gt(e, t) {
|
|
1635
1648
|
if (Array.isArray(e)) {
|
|
1636
1649
|
const i = /* @__PURE__ */ new Set();
|
|
1637
1650
|
return e.map((s) => {
|
|
@@ -1648,22 +1661,22 @@ function pt(e, t) {
|
|
|
1648
1661
|
s.props?.props?.name,
|
|
1649
1662
|
s.props?.props?.dataKey,
|
|
1650
1663
|
s.props?.props?.["data-key"]
|
|
1651
|
-
].find((
|
|
1664
|
+
].find((d) => d != null) ?? "";
|
|
1652
1665
|
c = k ? `${t}:${y}:${k}` : `${t}:${y}`;
|
|
1653
1666
|
}
|
|
1654
|
-
let a = c,
|
|
1667
|
+
let a = c, u = 1;
|
|
1655
1668
|
for (; i.has(a); )
|
|
1656
|
-
a = `${c}#${
|
|
1669
|
+
a = `${c}#${u++}`;
|
|
1657
1670
|
i.add(a);
|
|
1658
1671
|
let m = s.children;
|
|
1659
|
-
return Array.isArray(m) && (m =
|
|
1672
|
+
return Array.isArray(m) && (m = gt(m, a)), { ...s, key: a, children: m };
|
|
1660
1673
|
});
|
|
1661
1674
|
}
|
|
1662
1675
|
const n = e;
|
|
1663
1676
|
let r = n.props?.key ?? n.key ?? t, o = n.children;
|
|
1664
|
-
return Array.isArray(o) && (o =
|
|
1677
|
+
return Array.isArray(o) && (o = gt(o, r)), { ...n, key: r, children: o };
|
|
1665
1678
|
}
|
|
1666
|
-
function
|
|
1679
|
+
function Tt(e, t, n, r) {
|
|
1667
1680
|
const o = n.directives ?? {}, i = Zt(
|
|
1668
1681
|
o,
|
|
1669
1682
|
r,
|
|
@@ -1677,28 +1690,28 @@ function St(e, t, n, r) {
|
|
|
1677
1690
|
...t.attrs,
|
|
1678
1691
|
...n.attrs,
|
|
1679
1692
|
...i.attrs
|
|
1680
|
-
}, a = t.props ?? {},
|
|
1693
|
+
}, a = t.props ?? {}, u = s, m = n?.isCustomElement ?? t?.isCustomElement ?? !1;
|
|
1681
1694
|
let y = !1;
|
|
1682
|
-
for (const
|
|
1683
|
-
const
|
|
1684
|
-
let l =
|
|
1685
|
-
if (
|
|
1686
|
-
(R(
|
|
1687
|
-
}),
|
|
1695
|
+
for (const d in { ...a, ...u }) {
|
|
1696
|
+
const f = a[d], h = u[d];
|
|
1697
|
+
let l = f, g = h;
|
|
1698
|
+
if (P(() => {
|
|
1699
|
+
(R(f) || f && typeof f == "object" && "value" in f) && (l = f.value);
|
|
1700
|
+
}), P(() => {
|
|
1688
1701
|
(R(h) || h && typeof h == "object" && "value" in h) && (g = h.value);
|
|
1689
|
-
}), !(
|
|
1690
|
-
if (y = !0,
|
|
1702
|
+
}), !(f === h && l === g))
|
|
1703
|
+
if (y = !0, d === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
|
|
1691
1704
|
const v = typeof h == "object" && h !== null && R(h) || h && typeof h == "object" && "value" in h ? h.value : h;
|
|
1692
1705
|
e.value !== v && (e.value = v ?? "");
|
|
1693
|
-
} else if (
|
|
1706
|
+
} else if (d === "checked" && e instanceof HTMLInputElement) {
|
|
1694
1707
|
const v = typeof h == "object" && h !== null && R(h) || h && typeof h == "object" && "value" in h ? h.value : h;
|
|
1695
1708
|
e.checked = !!v;
|
|
1696
|
-
} else if (
|
|
1697
|
-
const v = Vt(
|
|
1698
|
-
typeof
|
|
1709
|
+
} else if (d.startsWith("on") && typeof h == "function") {
|
|
1710
|
+
const v = Vt(d);
|
|
1711
|
+
typeof f == "function" && se.removeListener(e, v, f), se.addListener(e, v, h);
|
|
1699
1712
|
try {
|
|
1700
1713
|
if (v && v.startsWith("update:")) {
|
|
1701
|
-
const x = v.split(":", 2)[1], S =
|
|
1714
|
+
const x = v.split(":", 2)[1], S = u[x];
|
|
1702
1715
|
let E = [];
|
|
1703
1716
|
try {
|
|
1704
1717
|
if (R(S)) {
|
|
@@ -1711,12 +1724,12 @@ function St(e, t, n, r) {
|
|
|
1711
1724
|
const C = E.filter((w) => typeof w == "string" && !w.startsWith("_") && w !== "constructor");
|
|
1712
1725
|
for (const w of C) {
|
|
1713
1726
|
const T = `update:${w}`, $ = (b) => {
|
|
1714
|
-
const _ = b.detail !== void 0 ? b.detail : b.target?.value,
|
|
1715
|
-
|
|
1716
|
-
h({ detail:
|
|
1727
|
+
const _ = b.detail !== void 0 ? b.detail : b.target?.value, j = { ...R(S) ? S.value || {} : u[x] || {}, [w]: _ };
|
|
1728
|
+
P(() => {
|
|
1729
|
+
h({ detail: j });
|
|
1717
1730
|
});
|
|
1718
1731
|
};
|
|
1719
|
-
|
|
1732
|
+
P(() => {
|
|
1720
1733
|
se.addListener(e, T, $);
|
|
1721
1734
|
});
|
|
1722
1735
|
}
|
|
@@ -1724,123 +1737,123 @@ function St(e, t, n, r) {
|
|
|
1724
1737
|
} catch {
|
|
1725
1738
|
}
|
|
1726
1739
|
} else if (h == null)
|
|
1727
|
-
e.removeAttribute(
|
|
1740
|
+
e.removeAttribute(d);
|
|
1728
1741
|
else {
|
|
1729
1742
|
const v = n?.isCustomElement ?? t?.isCustomElement ?? !1;
|
|
1730
|
-
if (v ||
|
|
1743
|
+
if (v || d in e)
|
|
1731
1744
|
try {
|
|
1732
|
-
e[
|
|
1745
|
+
e[d] = h, d === "disabled" && h === !1 && !v && re(e) && e.removeAttribute("disabled");
|
|
1733
1746
|
} catch {
|
|
1734
1747
|
}
|
|
1735
1748
|
else
|
|
1736
|
-
h === !1 && e.removeAttribute(
|
|
1749
|
+
h === !1 && e.removeAttribute(d);
|
|
1737
1750
|
}
|
|
1738
1751
|
}
|
|
1739
|
-
for (const [
|
|
1752
|
+
for (const [d, f] of Object.entries(
|
|
1740
1753
|
i.listeners || {}
|
|
1741
1754
|
)) {
|
|
1742
|
-
se.addListener(e,
|
|
1755
|
+
se.addListener(e, d, f);
|
|
1743
1756
|
try {
|
|
1744
1757
|
const h = e && e.parentElement;
|
|
1745
|
-
h && h !== e && se.addListener(h,
|
|
1758
|
+
h && h !== e && se.addListener(h, d, f);
|
|
1746
1759
|
} catch {
|
|
1747
1760
|
}
|
|
1748
1761
|
}
|
|
1749
1762
|
const p = t.attrs ?? {}, k = c;
|
|
1750
|
-
for (const
|
|
1751
|
-
const
|
|
1752
|
-
let l =
|
|
1753
|
-
if (R(
|
|
1763
|
+
for (const d in { ...p, ...k }) {
|
|
1764
|
+
const f = p[d], h = k[d];
|
|
1765
|
+
let l = f, g = h;
|
|
1766
|
+
if (R(f) && (l = f.value), R(h) && (g = h.value), l !== g)
|
|
1754
1767
|
if (y = !0, g == null || g === !1)
|
|
1755
|
-
|
|
1756
|
-
e.removeAttribute(
|
|
1757
|
-
}),
|
|
1768
|
+
P(() => {
|
|
1769
|
+
e.removeAttribute(d);
|
|
1770
|
+
}), d === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? P(() => {
|
|
1758
1771
|
e.value = "";
|
|
1759
|
-
}) : e instanceof HTMLSelectElement ?
|
|
1772
|
+
}) : e instanceof HTMLSelectElement ? P(() => {
|
|
1760
1773
|
e.value = "";
|
|
1761
|
-
}) : e instanceof HTMLProgressElement &&
|
|
1774
|
+
}) : e instanceof HTMLProgressElement && P(() => {
|
|
1762
1775
|
e.value = 0;
|
|
1763
|
-
})),
|
|
1776
|
+
})), d === "checked" && e instanceof HTMLInputElement && P(() => {
|
|
1764
1777
|
e.checked = !1;
|
|
1765
|
-
}),
|
|
1778
|
+
}), d === "disabled" && re(e) && P(() => {
|
|
1766
1779
|
e.disabled = !1;
|
|
1767
1780
|
});
|
|
1768
1781
|
else {
|
|
1769
|
-
if (
|
|
1782
|
+
if (d === "value") {
|
|
1770
1783
|
if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
|
|
1771
|
-
|
|
1784
|
+
P(() => {
|
|
1772
1785
|
e.value = g ?? "";
|
|
1773
1786
|
});
|
|
1774
1787
|
continue;
|
|
1775
1788
|
} else if (e instanceof HTMLSelectElement) {
|
|
1776
|
-
|
|
1789
|
+
P(() => {
|
|
1777
1790
|
e.value = g ?? "";
|
|
1778
1791
|
});
|
|
1779
1792
|
continue;
|
|
1780
1793
|
} else if (e instanceof HTMLProgressElement) {
|
|
1781
|
-
|
|
1794
|
+
P(() => {
|
|
1782
1795
|
e.value = Number(g);
|
|
1783
1796
|
});
|
|
1784
1797
|
continue;
|
|
1785
1798
|
}
|
|
1786
1799
|
}
|
|
1787
|
-
if (
|
|
1788
|
-
|
|
1800
|
+
if (d === "checked" && e instanceof HTMLInputElement) {
|
|
1801
|
+
P(() => {
|
|
1789
1802
|
e.checked = !!g;
|
|
1790
1803
|
});
|
|
1791
1804
|
continue;
|
|
1792
1805
|
}
|
|
1793
|
-
if (
|
|
1794
|
-
e.setAttribute(
|
|
1806
|
+
if (d === "style") {
|
|
1807
|
+
e.setAttribute(d, String(g));
|
|
1795
1808
|
continue;
|
|
1796
1809
|
}
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1799
|
-
e.disabled =
|
|
1800
|
-
}),
|
|
1801
|
-
e.setAttribute(
|
|
1802
|
-
}) :
|
|
1803
|
-
e.removeAttribute(
|
|
1810
|
+
if (d === "disabled" && re(e)) {
|
|
1811
|
+
P(() => {
|
|
1812
|
+
e.disabled = Ce(g);
|
|
1813
|
+
}), Ce(g) ? P(() => {
|
|
1814
|
+
e.setAttribute(d, "");
|
|
1815
|
+
}) : P(() => {
|
|
1816
|
+
e.removeAttribute(d);
|
|
1804
1817
|
});
|
|
1805
1818
|
continue;
|
|
1806
1819
|
}
|
|
1807
1820
|
const v = e.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1808
|
-
if (m && !v &&
|
|
1809
|
-
const x =
|
|
1821
|
+
if (m && !v && d.includes("-")) {
|
|
1822
|
+
const x = vt(d);
|
|
1810
1823
|
try {
|
|
1811
1824
|
R(h) ? e[x] = h : e[x] = g;
|
|
1812
1825
|
} catch {
|
|
1813
|
-
e.setAttribute(
|
|
1826
|
+
e.setAttribute(d, String(g));
|
|
1814
1827
|
}
|
|
1815
|
-
} else if (!v &&
|
|
1828
|
+
} else if (!v && d in e)
|
|
1816
1829
|
try {
|
|
1817
|
-
R(h) ? e[
|
|
1830
|
+
R(h) ? e[d] = h : e[d] = g;
|
|
1818
1831
|
} catch {
|
|
1819
|
-
e.setAttribute(
|
|
1832
|
+
e.setAttribute(d, String(g));
|
|
1820
1833
|
}
|
|
1821
1834
|
else
|
|
1822
|
-
e.setAttribute(
|
|
1835
|
+
e.setAttribute(d, String(g));
|
|
1823
1836
|
}
|
|
1824
1837
|
}
|
|
1825
1838
|
try {
|
|
1826
|
-
if (
|
|
1827
|
-
const
|
|
1828
|
-
let
|
|
1839
|
+
if (re(e)) {
|
|
1840
|
+
const d = s.disabled;
|
|
1841
|
+
let f;
|
|
1829
1842
|
try {
|
|
1830
|
-
const l = Object.prototype.hasOwnProperty.call(i.props || {}, "disabled"), g =
|
|
1843
|
+
const l = Object.prototype.hasOwnProperty.call(i.props || {}, "disabled"), g = d && typeof d == "object" && "value" in d;
|
|
1831
1844
|
let v = !1;
|
|
1832
|
-
|
|
1833
|
-
v = !!R(
|
|
1845
|
+
P(() => {
|
|
1846
|
+
v = !!R(d);
|
|
1834
1847
|
});
|
|
1835
|
-
const x =
|
|
1836
|
-
v || g || l || x ?
|
|
1848
|
+
const x = ht(d);
|
|
1849
|
+
v || g || l || x ? f = d : f = c.disabled;
|
|
1837
1850
|
} catch {
|
|
1838
|
-
|
|
1851
|
+
f = c.disabled;
|
|
1839
1852
|
}
|
|
1840
|
-
const h =
|
|
1841
|
-
|
|
1853
|
+
const h = Ce(f);
|
|
1854
|
+
P(() => {
|
|
1842
1855
|
e.disabled = h;
|
|
1843
|
-
}),
|
|
1856
|
+
}), P(h ? () => {
|
|
1844
1857
|
e.setAttribute("disabled", "");
|
|
1845
1858
|
} : () => {
|
|
1846
1859
|
e.removeAttribute("disabled");
|
|
@@ -1848,82 +1861,82 @@ function St(e, t, n, r) {
|
|
|
1848
1861
|
}
|
|
1849
1862
|
} catch {
|
|
1850
1863
|
}
|
|
1851
|
-
m && y && (
|
|
1864
|
+
m && y && (P(() => {
|
|
1852
1865
|
e._applyProps?.(e._cfg);
|
|
1853
|
-
}),
|
|
1866
|
+
}), P(() => {
|
|
1854
1867
|
typeof e.requestRender == "function" ? e.requestRender() : typeof e._render == "function" && e._render(e._cfg);
|
|
1855
1868
|
}));
|
|
1856
1869
|
}
|
|
1857
|
-
function
|
|
1870
|
+
function te(e, t, n) {
|
|
1858
1871
|
if (typeof e == "string")
|
|
1859
1872
|
return document.createTextNode(e);
|
|
1860
1873
|
if (e.tag === "#text") {
|
|
1861
1874
|
const p = document.createTextNode(
|
|
1862
1875
|
typeof e.children == "string" ? e.children : ""
|
|
1863
1876
|
);
|
|
1864
|
-
return e.key != null &&
|
|
1877
|
+
return e.key != null && ee(p, e.key), p;
|
|
1865
1878
|
}
|
|
1866
1879
|
if (e.tag === "#raw") {
|
|
1867
1880
|
const p = typeof e.children == "string" ? e.children : "";
|
|
1868
1881
|
return document.createRange().createContextualFragment(p);
|
|
1869
1882
|
}
|
|
1870
1883
|
if (e.tag === "#anchor") {
|
|
1871
|
-
const p = e, k = Array.isArray(p.children) ? p.children : [],
|
|
1872
|
-
p.key != null && (
|
|
1884
|
+
const p = e, k = Array.isArray(p.children) ? p.children : [], d = document.createTextNode(""), f = document.createTextNode("");
|
|
1885
|
+
p.key != null && (ee(d, `${p.key}:start`), ee(f, `${p.key}:end`)), p._startNode = d, p._endNode = f;
|
|
1873
1886
|
const h = document.createDocumentFragment();
|
|
1874
|
-
h.appendChild(
|
|
1887
|
+
h.appendChild(d);
|
|
1875
1888
|
for (const l of k) {
|
|
1876
|
-
const g =
|
|
1889
|
+
const g = te(l, t);
|
|
1877
1890
|
if (p.key != null && g instanceof Element && !g.hasAttribute("data-anchor-key")) {
|
|
1878
1891
|
const v = l;
|
|
1879
|
-
v && typeof v == "object" && v.key != null ||
|
|
1892
|
+
v && typeof v == "object" && v.key != null || ee(g, p.key);
|
|
1880
1893
|
}
|
|
1881
1894
|
h.appendChild(g);
|
|
1882
1895
|
}
|
|
1883
|
-
return h.appendChild(
|
|
1896
|
+
return h.appendChild(f), h;
|
|
1884
1897
|
}
|
|
1885
1898
|
const r = document.createElement(e.tag);
|
|
1886
|
-
e.key != null &&
|
|
1899
|
+
e.key != null && ee(r, e.key), e.props && e.props._transitionGroup && xn(r, e.props._transitionGroup);
|
|
1887
1900
|
const { props: o = {}, attrs: i = {}, directives: s = {} } = e.props ?? {}, c = Zt(s, t, r, i), a = {
|
|
1888
1901
|
...o,
|
|
1889
1902
|
...c.props
|
|
1890
|
-
},
|
|
1903
|
+
}, u = {
|
|
1891
1904
|
...i,
|
|
1892
1905
|
...c.attrs
|
|
1893
1906
|
};
|
|
1894
1907
|
try {
|
|
1895
|
-
if (a.disabled !== void 0 && r &&
|
|
1908
|
+
if (a.disabled !== void 0 && r && re(r)) {
|
|
1896
1909
|
const p = a.disabled, k = p && typeof p == "object" && "value" in p;
|
|
1897
|
-
let
|
|
1910
|
+
let d = !1;
|
|
1898
1911
|
try {
|
|
1899
|
-
|
|
1912
|
+
d = R(p);
|
|
1900
1913
|
} catch {
|
|
1901
|
-
|
|
1914
|
+
d = !1;
|
|
1902
1915
|
}
|
|
1903
|
-
!k && !
|
|
1904
|
-
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1916
|
+
!k && !d && P(() => {
|
|
1917
|
+
u.disabled = p, delete a.disabled;
|
|
1918
|
+
const f = globalThis;
|
|
1919
|
+
f.__VDOM_DISABLED_PROMOTIONS || (f.__VDOM_DISABLED_PROMOTIONS = []), f.__VDOM_DISABLED_PROMOTIONS.push({ phase: "createElement:move-prop-to-attr", location: "attrs", key: "disabled", value: p, time: Date.now(), stack: new Error().stack });
|
|
1907
1920
|
});
|
|
1908
1921
|
}
|
|
1909
1922
|
} catch {
|
|
1910
1923
|
}
|
|
1911
1924
|
const m = r.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1912
|
-
for (const p in
|
|
1913
|
-
const k =
|
|
1925
|
+
for (const p in u) {
|
|
1926
|
+
const k = u[p];
|
|
1914
1927
|
if (typeof p != "string" || /\[object Object\]/.test(p))
|
|
1915
1928
|
continue;
|
|
1916
|
-
const
|
|
1917
|
-
if (typeof
|
|
1918
|
-
|
|
1929
|
+
const d = typeof k == "object" && k !== null && R(k) || k && typeof k == "object" && "value" in k ? k.value : k;
|
|
1930
|
+
if (typeof d == "boolean")
|
|
1931
|
+
d ? r.setAttribute(p, "") : P(() => {
|
|
1919
1932
|
r.removeAttribute(p);
|
|
1920
1933
|
});
|
|
1921
|
-
else if (
|
|
1922
|
-
if (p === "disabled" &&
|
|
1923
|
-
const
|
|
1924
|
-
|
|
1934
|
+
else if (d != null) {
|
|
1935
|
+
if (p === "disabled" && re(r)) {
|
|
1936
|
+
const f = a.disabled, h = ht(f) ? f : d, l = Ce(h);
|
|
1937
|
+
P(() => {
|
|
1925
1938
|
r.disabled = l;
|
|
1926
|
-
}),
|
|
1939
|
+
}), P(l ? () => {
|
|
1927
1940
|
r.setAttribute(p, "");
|
|
1928
1941
|
} : () => {
|
|
1929
1942
|
r.removeAttribute(p);
|
|
@@ -1932,44 +1945,44 @@ function ee(e, t, n) {
|
|
|
1932
1945
|
}
|
|
1933
1946
|
if (!m && p === "value" && (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement || r instanceof HTMLProgressElement))
|
|
1934
1947
|
try {
|
|
1935
|
-
r instanceof HTMLProgressElement ? r.value = Number(
|
|
1948
|
+
r instanceof HTMLProgressElement ? r.value = Number(d) : r.value = d ?? "";
|
|
1936
1949
|
} catch {
|
|
1937
|
-
r.setAttribute(p, String(
|
|
1950
|
+
r.setAttribute(p, String(d));
|
|
1938
1951
|
}
|
|
1939
1952
|
else if (!m && p === "checked" && r instanceof HTMLInputElement)
|
|
1940
1953
|
try {
|
|
1941
|
-
r.checked = !!
|
|
1954
|
+
r.checked = !!d;
|
|
1942
1955
|
} catch {
|
|
1943
|
-
r.setAttribute(p, String(
|
|
1956
|
+
r.setAttribute(p, String(d));
|
|
1944
1957
|
}
|
|
1945
1958
|
else if (!m && p in r)
|
|
1946
1959
|
try {
|
|
1947
|
-
r[p] =
|
|
1960
|
+
r[p] = d, p === "disabled" && d === !1 && re(r) && r.removeAttribute("disabled");
|
|
1948
1961
|
} catch {
|
|
1949
|
-
r.setAttribute(p, String(
|
|
1962
|
+
r.setAttribute(p, String(d));
|
|
1950
1963
|
}
|
|
1951
1964
|
else if ((e.props?.isCustomElement ?? !1) && !m && p.includes("-")) {
|
|
1952
|
-
const h =
|
|
1965
|
+
const h = vt(p);
|
|
1953
1966
|
try {
|
|
1954
|
-
r[h] =
|
|
1967
|
+
r[h] = d;
|
|
1955
1968
|
} catch {
|
|
1956
|
-
r.setAttribute(p, String(
|
|
1969
|
+
r.setAttribute(p, String(d));
|
|
1957
1970
|
}
|
|
1958
1971
|
} else
|
|
1959
|
-
r.setAttribute(p, String(
|
|
1972
|
+
r.setAttribute(p, String(d));
|
|
1960
1973
|
}
|
|
1961
1974
|
}
|
|
1962
1975
|
for (const p in a) {
|
|
1963
1976
|
const k = a[p];
|
|
1964
1977
|
if (!(typeof p != "string" || /\[object Object\]/.test(p)))
|
|
1965
1978
|
if (p === "value" && (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement)) {
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1968
|
-
r.value =
|
|
1979
|
+
const d = typeof k == "object" && k !== null && typeof k.value < "u" ? k.value : k;
|
|
1980
|
+
P(() => {
|
|
1981
|
+
r.value = d ?? "";
|
|
1969
1982
|
});
|
|
1970
1983
|
} else if (p.startsWith("on") && typeof k == "function") {
|
|
1971
|
-
const
|
|
1972
|
-
const h =
|
|
1984
|
+
const d = Vt(p), f = d.includes(":") ? (() => {
|
|
1985
|
+
const h = d.split(":"), l = h[1];
|
|
1973
1986
|
if (l.includes("-")) {
|
|
1974
1987
|
const g = l.split("-").map((v, x) => x === 0 ? v : v.charAt(0).toUpperCase() + v.slice(1)).join("");
|
|
1975
1988
|
return `${h[0]}:${g}`;
|
|
@@ -1977,8 +1990,8 @@ function ee(e, t, n) {
|
|
|
1977
1990
|
const g = l.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1978
1991
|
return `${h[0]}:${g}`;
|
|
1979
1992
|
}
|
|
1980
|
-
})() :
|
|
1981
|
-
c.listeners && (c.listeners[
|
|
1993
|
+
})() : d;
|
|
1994
|
+
c.listeners && (c.listeners[d] || c.listeners[f]) || se.addListener(r, d, k);
|
|
1982
1995
|
} else {
|
|
1983
1996
|
if (p.startsWith("on") && k === void 0)
|
|
1984
1997
|
continue;
|
|
@@ -1986,12 +1999,12 @@ function ee(e, t, n) {
|
|
|
1986
1999
|
r.removeAttribute(p);
|
|
1987
2000
|
else if ((e.props?.isCustomElement ?? !1) || p in r)
|
|
1988
2001
|
try {
|
|
1989
|
-
const
|
|
1990
|
-
if (p === "disabled" &&
|
|
1991
|
-
const h = a.disabled !== void 0 ? a.disabled :
|
|
1992
|
-
|
|
2002
|
+
const f = typeof k == "object" && k !== null && R(k) ? k : typeof k == "object" && k !== null && typeof k.value < "u" ? k.value : k;
|
|
2003
|
+
if (p === "disabled" && re(r)) {
|
|
2004
|
+
const h = a.disabled !== void 0 ? a.disabled : f, l = Ce(h);
|
|
2005
|
+
P(() => {
|
|
1993
2006
|
r.disabled = l;
|
|
1994
|
-
}),
|
|
2007
|
+
}), P(l ? () => {
|
|
1995
2008
|
r.setAttribute(p, "");
|
|
1996
2009
|
} : () => {
|
|
1997
2010
|
r.removeAttribute(p);
|
|
@@ -2000,12 +2013,12 @@ function ee(e, t, n) {
|
|
|
2000
2013
|
}
|
|
2001
2014
|
try {
|
|
2002
2015
|
if (typeof r[p] == "boolean") {
|
|
2003
|
-
let l =
|
|
2004
|
-
typeof
|
|
2016
|
+
let l = f;
|
|
2017
|
+
typeof f == "string" ? f === "false" ? l = !1 : f === "true" ? l = !0 : l = !!f && f !== "" : l = !!f, r[p] = l;
|
|
2005
2018
|
} else
|
|
2006
|
-
r[p] =
|
|
2019
|
+
r[p] = f;
|
|
2007
2020
|
} catch {
|
|
2008
|
-
r[p] =
|
|
2021
|
+
r[p] = f;
|
|
2009
2022
|
}
|
|
2010
2023
|
} catch {
|
|
2011
2024
|
}
|
|
@@ -2034,29 +2047,29 @@ function ee(e, t, n) {
|
|
|
2034
2047
|
}
|
|
2035
2048
|
if (Array.isArray(e.children))
|
|
2036
2049
|
for (const p of e.children)
|
|
2037
|
-
r.appendChild(
|
|
2050
|
+
r.appendChild(te(p, t, n));
|
|
2038
2051
|
else typeof e.children == "string" && (r.textContent = e.children);
|
|
2039
2052
|
try {
|
|
2040
|
-
if (r instanceof HTMLSelectElement &&
|
|
2053
|
+
if (r instanceof HTMLSelectElement && u && u.hasOwnProperty("value"))
|
|
2041
2054
|
try {
|
|
2042
|
-
r.value =
|
|
2055
|
+
r.value = u.value ?? "";
|
|
2043
2056
|
} catch {
|
|
2044
2057
|
}
|
|
2045
2058
|
} catch {
|
|
2046
2059
|
}
|
|
2047
2060
|
try {
|
|
2048
|
-
if (
|
|
2049
|
-
const p = a.disabled, k =
|
|
2050
|
-
let
|
|
2061
|
+
if (re(r)) {
|
|
2062
|
+
const p = a.disabled, k = u.disabled, d = p && typeof p == "object" && "value" in p;
|
|
2063
|
+
let f = !1;
|
|
2051
2064
|
try {
|
|
2052
|
-
|
|
2065
|
+
f = !!R(p);
|
|
2053
2066
|
} catch {
|
|
2054
|
-
|
|
2067
|
+
f = !1;
|
|
2055
2068
|
}
|
|
2056
|
-
const l =
|
|
2057
|
-
|
|
2069
|
+
const l = f || d || ht(p) ? p : k, g = Ce(l);
|
|
2070
|
+
P(() => {
|
|
2058
2071
|
r.disabled = g;
|
|
2059
|
-
}),
|
|
2072
|
+
}), P(g ? () => {
|
|
2060
2073
|
r.setAttribute("disabled", "");
|
|
2061
2074
|
} : () => {
|
|
2062
2075
|
r.removeAttribute("disabled");
|
|
@@ -2066,34 +2079,34 @@ function ee(e, t, n) {
|
|
|
2066
2079
|
}
|
|
2067
2080
|
return r;
|
|
2068
2081
|
}
|
|
2069
|
-
function
|
|
2082
|
+
function An(e, t, n, r, o) {
|
|
2070
2083
|
if (typeof n == "string") {
|
|
2071
2084
|
e.textContent !== n && (e.textContent = n);
|
|
2072
2085
|
return;
|
|
2073
2086
|
}
|
|
2074
2087
|
if (!Array.isArray(n)) return;
|
|
2075
2088
|
const i = e.childNodes, s = [];
|
|
2076
|
-
for (let
|
|
2077
|
-
s.push(i[
|
|
2078
|
-
const c = Array.isArray(t) ? t : [], a =
|
|
2089
|
+
for (let f = 0; f < i.length; f++)
|
|
2090
|
+
s.push(i[f]);
|
|
2091
|
+
const c = Array.isArray(t) ? t : [], a = wn(e);
|
|
2079
2092
|
if (a) {
|
|
2080
|
-
const
|
|
2093
|
+
const f = (v) => typeof v == "string" && v.startsWith("each-") ? v.substring(5) : v, h = [], l = [];
|
|
2081
2094
|
for (const v of n)
|
|
2082
2095
|
if (v && v.tag === "#anchor") {
|
|
2083
2096
|
const x = Array.isArray(v.children) ? v.children : [];
|
|
2084
2097
|
for (const S of x) {
|
|
2085
|
-
const E =
|
|
2098
|
+
const E = f(S.key || v.key || "unknown");
|
|
2086
2099
|
h.push({ ...S, key: E });
|
|
2087
2100
|
}
|
|
2088
|
-
} else v && h.push({ ...v, key:
|
|
2101
|
+
} else v && h.push({ ...v, key: f(v.key) });
|
|
2089
2102
|
for (const v of c)
|
|
2090
2103
|
if (v && v.tag === "#anchor") {
|
|
2091
2104
|
const x = Array.isArray(v.children) ? v.children : [];
|
|
2092
2105
|
for (const S of x) {
|
|
2093
|
-
const E =
|
|
2106
|
+
const E = f(S.key || v.key || "unknown");
|
|
2094
2107
|
l.push({ ...S, key: E });
|
|
2095
2108
|
}
|
|
2096
|
-
} else v && l.push({ ...v, key:
|
|
2109
|
+
} else v && l.push({ ...v, key: f(v.key) });
|
|
2097
2110
|
if (h.some((v) => v && v.key != null) || l.some((v) => v && v.key != null)) {
|
|
2098
2111
|
const v = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
2099
2112
|
for (const $ of l)
|
|
@@ -2103,8 +2116,8 @@ function Sn(e, t, n, r, o) {
|
|
|
2103
2116
|
}
|
|
2104
2117
|
for (let $ = 0; $ < s.length; $++) {
|
|
2105
2118
|
const b = s[$];
|
|
2106
|
-
let _ =
|
|
2107
|
-
if (_ =
|
|
2119
|
+
let _ = qe(b);
|
|
2120
|
+
if (_ = f(_), _ != null && b instanceof Element && b.nodeType === Node.ELEMENT_NODE) {
|
|
2108
2121
|
let O = typeof _ == "string" && _.includes(":") ? _.substring(0, _.lastIndexOf(":")) : _;
|
|
2109
2122
|
O = String(O), x.set(O, b);
|
|
2110
2123
|
}
|
|
@@ -2126,28 +2139,28 @@ function Sn(e, t, n, r, o) {
|
|
|
2126
2139
|
const _ = v.get(b);
|
|
2127
2140
|
let O = x.get(b);
|
|
2128
2141
|
if (O && _) {
|
|
2129
|
-
const
|
|
2142
|
+
const j = Oe(O, _, $, r);
|
|
2130
2143
|
S.add(O);
|
|
2131
2144
|
const A = String(b);
|
|
2132
|
-
|
|
2145
|
+
ee(j, A), w.push({ node: j, key: b, newVNode: $, oldVNode: _, isNew: !1 });
|
|
2133
2146
|
} else {
|
|
2134
|
-
O =
|
|
2135
|
-
const
|
|
2136
|
-
O instanceof HTMLElement &&
|
|
2147
|
+
O = te($, r), ee(O, b), e.appendChild(O);
|
|
2148
|
+
const j = C || a.appear === !0;
|
|
2149
|
+
O instanceof HTMLElement && j && Te(O, a).catch((A) => {
|
|
2137
2150
|
H("Enter transition error:", A);
|
|
2138
2151
|
}), w.push({ node: O, key: b, newVNode: $, isNew: !0 });
|
|
2139
2152
|
}
|
|
2140
2153
|
}
|
|
2141
2154
|
const T = [];
|
|
2142
2155
|
for (let $ = 0; $ < s.length; $++) {
|
|
2143
|
-
const b = s[$], _ =
|
|
2156
|
+
const b = s[$], _ = qe(b);
|
|
2144
2157
|
if (!S.has(b) && _ != null && b instanceof HTMLElement) {
|
|
2145
|
-
const
|
|
2158
|
+
const j = Qe(b, a).then(() => {
|
|
2146
2159
|
e.contains(b) && e.removeChild(b);
|
|
2147
2160
|
}).catch((A) => {
|
|
2148
2161
|
H("Leave transition error:", A), e.contains(b) && e.removeChild(b);
|
|
2149
2162
|
});
|
|
2150
|
-
T.push(
|
|
2163
|
+
T.push(j);
|
|
2151
2164
|
}
|
|
2152
2165
|
}
|
|
2153
2166
|
if (T.length === 0) {
|
|
@@ -2158,33 +2171,33 @@ function Sn(e, t, n, r, o) {
|
|
|
2158
2171
|
const b = [];
|
|
2159
2172
|
for (const { node: _, isNew: O } of w)
|
|
2160
2173
|
if (!O && _ instanceof HTMLElement) {
|
|
2161
|
-
const
|
|
2162
|
-
if (
|
|
2163
|
-
const A = _.getBoundingClientRect(),
|
|
2164
|
-
if (
|
|
2174
|
+
const j = E.get(_);
|
|
2175
|
+
if (j) {
|
|
2176
|
+
const A = _.getBoundingClientRect(), M = j.left - A.left, N = j.top - A.top;
|
|
2177
|
+
if (M !== 0 || N !== 0) {
|
|
2165
2178
|
const fe = a.moveClass.split(/\s+/).filter((Z) => Z);
|
|
2166
|
-
b.push({ node: _, deltaX:
|
|
2179
|
+
b.push({ node: _, deltaX: M, deltaY: N, moveClasses: fe });
|
|
2167
2180
|
}
|
|
2168
2181
|
}
|
|
2169
2182
|
}
|
|
2170
2183
|
if (b.length > 0) {
|
|
2171
|
-
for (const { node: _, deltaX: O, deltaY:
|
|
2172
|
-
_.style.transform = `translate(${O}px, ${
|
|
2184
|
+
for (const { node: _, deltaX: O, deltaY: j } of b)
|
|
2185
|
+
_.style.transform = `translate(${O}px, ${j}px)`, _.style.transitionProperty = "none";
|
|
2173
2186
|
e.offsetHeight, requestAnimationFrame(() => {
|
|
2174
2187
|
requestAnimationFrame(() => {
|
|
2175
2188
|
for (const { node: _, moveClasses: O } of b)
|
|
2176
|
-
for (const
|
|
2177
|
-
_.classList.add(
|
|
2189
|
+
for (const j of O)
|
|
2190
|
+
_.classList.add(j);
|
|
2178
2191
|
requestAnimationFrame(() => {
|
|
2179
|
-
const _ = a.moveClass || "", O = _.match(/duration-(\d+)/),
|
|
2192
|
+
const _ = a.moveClass || "", O = _.match(/duration-(\d+)/), j = O ? `${O[1]}ms` : "300ms", A = _.match(/ease-(out|in|in-out|linear)/), M = A ? `ease-${A[1]}` : "ease-out";
|
|
2180
2193
|
for (const { node: N } of b)
|
|
2181
|
-
N.style.transition = `transform ${
|
|
2194
|
+
N.style.transition = `transform ${j} ${M}`;
|
|
2182
2195
|
requestAnimationFrame(() => {
|
|
2183
2196
|
for (const { node: N, moveClasses: fe } of b) {
|
|
2184
2197
|
N.style.removeProperty("transform");
|
|
2185
2198
|
const Z = () => {
|
|
2186
|
-
for (const
|
|
2187
|
-
N.classList.remove(
|
|
2199
|
+
for (const U of fe)
|
|
2200
|
+
N.classList.remove(U);
|
|
2188
2201
|
N.style.removeProperty("transition"), N.removeEventListener("transitionend", Z), N.removeEventListener("transitioncancel", Z);
|
|
2189
2202
|
};
|
|
2190
2203
|
N.addEventListener("transitionend", Z, { once: !0 }), N.addEventListener("transitioncancel", Z, { once: !0 });
|
|
@@ -2199,79 +2212,79 @@ function Sn(e, t, n, r, o) {
|
|
|
2199
2212
|
return;
|
|
2200
2213
|
}
|
|
2201
2214
|
}
|
|
2202
|
-
const
|
|
2203
|
-
for (const
|
|
2204
|
-
|
|
2215
|
+
const u = /* @__PURE__ */ new Map();
|
|
2216
|
+
for (const f of c)
|
|
2217
|
+
f && f.key != null && u.set(f.key, f);
|
|
2205
2218
|
const m = /* @__PURE__ */ new Map();
|
|
2206
|
-
for (let
|
|
2207
|
-
const h = s[
|
|
2219
|
+
for (let f = 0; f < s.length; f++) {
|
|
2220
|
+
const h = s[f], l = qe(h);
|
|
2208
2221
|
l != null && m.set(l, h);
|
|
2209
2222
|
}
|
|
2210
2223
|
const y = /* @__PURE__ */ new Set();
|
|
2211
2224
|
let p = e.firstChild;
|
|
2212
|
-
function k(
|
|
2213
|
-
let l =
|
|
2225
|
+
function k(f, h) {
|
|
2226
|
+
let l = f;
|
|
2214
2227
|
for (; l && (y.add(l), l !== h); )
|
|
2215
2228
|
l = l.nextSibling;
|
|
2216
2229
|
}
|
|
2217
|
-
function f
|
|
2230
|
+
function d(f, h, l, g, v, x = !0) {
|
|
2218
2231
|
const S = [];
|
|
2219
|
-
let E =
|
|
2232
|
+
let E = f.nextSibling;
|
|
2220
2233
|
for (; E && E !== h; )
|
|
2221
2234
|
S.push(E), E = E.nextSibling;
|
|
2222
2235
|
const C = Array.isArray(l) ? l : [];
|
|
2223
2236
|
if (g.some((T) => T && T.key != null) || C.some((T) => T && T.key != null)) {
|
|
2224
2237
|
const T = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
|
|
2225
|
-
for (const
|
|
2226
|
-
|
|
2227
|
-
for (const
|
|
2228
|
-
const A =
|
|
2229
|
-
A != null && $.set(A,
|
|
2238
|
+
for (const j of C)
|
|
2239
|
+
j && j.key != null && T.set(j.key, j);
|
|
2240
|
+
for (const j of S) {
|
|
2241
|
+
const A = qe(j);
|
|
2242
|
+
A != null && $.set(A, j);
|
|
2230
2243
|
}
|
|
2231
2244
|
const b = v && v.state === "visible" && C.length === 0 && g.length > 0, _ = /* @__PURE__ */ new Set();
|
|
2232
|
-
let O =
|
|
2233
|
-
for (const
|
|
2245
|
+
let O = f.nextSibling;
|
|
2246
|
+
for (const j of g) {
|
|
2234
2247
|
let A;
|
|
2235
|
-
if (
|
|
2236
|
-
const
|
|
2237
|
-
A =
|
|
2238
|
-
$.get(
|
|
2239
|
-
|
|
2240
|
-
|
|
2248
|
+
if (j.key != null && $.has(j.key)) {
|
|
2249
|
+
const M = T.get(j.key);
|
|
2250
|
+
A = Oe(
|
|
2251
|
+
$.get(j.key),
|
|
2252
|
+
M,
|
|
2253
|
+
j,
|
|
2241
2254
|
r
|
|
2242
|
-
), _.add(A), v && A instanceof HTMLElement && b && v.appear &&
|
|
2255
|
+
), _.add(A), v && A instanceof HTMLElement && b && v.appear && Te(A, v).catch((N) => {
|
|
2243
2256
|
H("Transition enter error (appear):", N);
|
|
2244
2257
|
}), A !== O && e.contains(A) && e.insertBefore(A, O);
|
|
2245
2258
|
} else
|
|
2246
|
-
A =
|
|
2247
|
-
H("Transition enter error:",
|
|
2259
|
+
A = te(j, r), e.insertBefore(A, O), _.add(A), v && A instanceof HTMLElement && x && Te(A, v).catch((M) => {
|
|
2260
|
+
H("Transition enter error:", M);
|
|
2248
2261
|
});
|
|
2249
2262
|
O = A.nextSibling;
|
|
2250
2263
|
}
|
|
2251
|
-
for (const
|
|
2252
|
-
!_.has(
|
|
2253
|
-
e.contains(
|
|
2264
|
+
for (const j of S)
|
|
2265
|
+
!_.has(j) && e.contains(j) && (v && j instanceof HTMLElement && x ? Qe(j, v).then(() => {
|
|
2266
|
+
e.contains(j) && e.removeChild(j);
|
|
2254
2267
|
}).catch((A) => {
|
|
2255
|
-
H("Transition leave error:", A), e.contains(
|
|
2256
|
-
}) : e.removeChild(
|
|
2268
|
+
H("Transition leave error:", A), e.contains(j) && e.removeChild(j);
|
|
2269
|
+
}) : e.removeChild(j));
|
|
2257
2270
|
} else {
|
|
2258
2271
|
const T = Math.min(
|
|
2259
2272
|
C.length,
|
|
2260
2273
|
g.length
|
|
2261
2274
|
);
|
|
2262
2275
|
for (let $ = 0; $ < T; $++) {
|
|
2263
|
-
const b = C[$], _ = g[$], O =
|
|
2276
|
+
const b = C[$], _ = g[$], O = Oe(S[$], b, _, r);
|
|
2264
2277
|
O !== S[$] && (e.insertBefore(O, S[$]), e.removeChild(S[$]));
|
|
2265
2278
|
}
|
|
2266
2279
|
for (let $ = T; $ < g.length; $++) {
|
|
2267
|
-
const b =
|
|
2268
|
-
e.insertBefore(b, h), v && b instanceof HTMLElement && x &&
|
|
2280
|
+
const b = te(g[$], r);
|
|
2281
|
+
e.insertBefore(b, h), v && b instanceof HTMLElement && x && Te(b, v).catch((_) => {
|
|
2269
2282
|
H("Transition enter error:", _);
|
|
2270
2283
|
});
|
|
2271
2284
|
}
|
|
2272
2285
|
for (let $ = T; $ < S.length; $++) {
|
|
2273
2286
|
const b = S[$];
|
|
2274
|
-
v && b instanceof HTMLElement && x ?
|
|
2287
|
+
v && b instanceof HTMLElement && x ? Qe(b, v).then(() => {
|
|
2275
2288
|
e.contains(b) && e.removeChild(b);
|
|
2276
2289
|
}).catch((_) => {
|
|
2277
2290
|
H("Transition leave error:", _), e.contains(b) && e.removeChild(b);
|
|
@@ -2279,28 +2292,28 @@ function Sn(e, t, n, r, o) {
|
|
|
2279
2292
|
}
|
|
2280
2293
|
}
|
|
2281
2294
|
}
|
|
2282
|
-
for (const
|
|
2295
|
+
for (const f of n) {
|
|
2283
2296
|
let h;
|
|
2284
|
-
if (
|
|
2285
|
-
const l =
|
|
2297
|
+
if (f.tag === "#anchor") {
|
|
2298
|
+
const l = f.key, g = `${l}:start`, v = `${l}:end`;
|
|
2286
2299
|
let x = m.get(g), S = m.get(v);
|
|
2287
|
-
const E = Array.isArray(
|
|
2288
|
-
if (x || (x = document.createTextNode(""),
|
|
2300
|
+
const E = Array.isArray(f.children) ? f.children : [];
|
|
2301
|
+
if (x || (x = document.createTextNode(""), ee(x, g)), S || (S = document.createTextNode(""), ee(S, v)), f._startNode = x, f._endNode = S, !e.contains(x) || !e.contains(S)) {
|
|
2289
2302
|
e.insertBefore(x, p);
|
|
2290
|
-
const C =
|
|
2303
|
+
const C = f._transition, T = !(C && C.state === "visible" && E.length > 0) || C.appear;
|
|
2291
2304
|
for (const $ of E) {
|
|
2292
|
-
const b =
|
|
2293
|
-
e.insertBefore(b, p), C && b instanceof HTMLElement && T &&
|
|
2305
|
+
const b = te($, r);
|
|
2306
|
+
e.insertBefore(b, p), C && b instanceof HTMLElement && T && Te(b, C).catch((_) => {
|
|
2294
2307
|
H("Transition enter error:", _);
|
|
2295
2308
|
});
|
|
2296
2309
|
}
|
|
2297
2310
|
e.insertBefore(S, p);
|
|
2298
2311
|
} else {
|
|
2299
|
-
const C =
|
|
2300
|
-
|
|
2312
|
+
const C = f._transition, T = u.get(l)?._transition, $ = T && T.state !== C?.state, b = C && C.state === "visible" && E.length > 0 && !$, _ = $ || !b || C?.appear === !0;
|
|
2313
|
+
d(
|
|
2301
2314
|
x,
|
|
2302
2315
|
S,
|
|
2303
|
-
|
|
2316
|
+
u.get(l)?.children,
|
|
2304
2317
|
E,
|
|
2305
2318
|
C,
|
|
2306
2319
|
_
|
|
@@ -2309,25 +2322,25 @@ function Sn(e, t, n, r, o) {
|
|
|
2309
2322
|
k(x, S), p = S.nextSibling;
|
|
2310
2323
|
continue;
|
|
2311
2324
|
}
|
|
2312
|
-
if (
|
|
2313
|
-
const l =
|
|
2314
|
-
h =
|
|
2315
|
-
m.get(
|
|
2325
|
+
if (f.key != null && m.has(f.key)) {
|
|
2326
|
+
const l = u.get(f.key);
|
|
2327
|
+
h = Oe(
|
|
2328
|
+
m.get(f.key),
|
|
2316
2329
|
l,
|
|
2317
|
-
|
|
2330
|
+
f,
|
|
2318
2331
|
r,
|
|
2319
2332
|
o
|
|
2320
2333
|
), y.add(h), h !== p && e.contains(h) && (p && !e.contains(p) && (p = null), e.insertBefore(h, p));
|
|
2321
2334
|
} else
|
|
2322
|
-
h =
|
|
2335
|
+
h = te(f, r, o), p && !e.contains(p) && (p = null), e.insertBefore(h, p), y.add(h);
|
|
2323
2336
|
p = h.nextSibling;
|
|
2324
2337
|
}
|
|
2325
|
-
for (let
|
|
2326
|
-
const h = s[
|
|
2338
|
+
for (let f = 0; f < s.length; f++) {
|
|
2339
|
+
const h = s[f];
|
|
2327
2340
|
!y.has(h) && e.contains(h) && (be(h, o), e.removeChild(h));
|
|
2328
2341
|
}
|
|
2329
2342
|
}
|
|
2330
|
-
function
|
|
2343
|
+
function Oe(e, t, n, r, o) {
|
|
2331
2344
|
if (t && typeof t != "string" && t.props?.ref && o && be(e, o), t === n) return e;
|
|
2332
2345
|
if (typeof n == "string") {
|
|
2333
2346
|
if (e.nodeType === Node.TEXT_NODE)
|
|
@@ -2338,15 +2351,15 @@ function je(e, t, n, r, o) {
|
|
|
2338
2351
|
}
|
|
2339
2352
|
}
|
|
2340
2353
|
if (n && typeof n != "string" && n.tag === "#anchor") {
|
|
2341
|
-
const s = n, c = Array.isArray(s.children) ? s.children : [], a = s._startNode ?? document.createTextNode(""),
|
|
2342
|
-
s.key != null && (
|
|
2354
|
+
const s = n, c = Array.isArray(s.children) ? s.children : [], a = s._startNode ?? document.createTextNode(""), u = s._endNode ?? document.createTextNode("");
|
|
2355
|
+
s.key != null && (ee(a, `${s.key}:start`), ee(u, `${s.key}:end`)), s._startNode = a, s._endNode = u;
|
|
2343
2356
|
const m = document.createDocumentFragment();
|
|
2344
2357
|
m.appendChild(a);
|
|
2345
2358
|
for (const y of c) {
|
|
2346
|
-
const p =
|
|
2359
|
+
const p = te(y, r);
|
|
2347
2360
|
m.appendChild(p);
|
|
2348
2361
|
}
|
|
2349
|
-
return m.appendChild(
|
|
2362
|
+
return m.appendChild(u), e.parentNode?.replaceChild(m, e), a;
|
|
2350
2363
|
}
|
|
2351
2364
|
if (!n) {
|
|
2352
2365
|
be(e, o);
|
|
@@ -2355,64 +2368,64 @@ function je(e, t, n, r, o) {
|
|
|
2355
2368
|
}
|
|
2356
2369
|
if (!t || typeof t == "string") {
|
|
2357
2370
|
be(e, o);
|
|
2358
|
-
const s =
|
|
2371
|
+
const s = te(n, r, o);
|
|
2359
2372
|
return Le(n, s, o), e.parentNode?.replaceChild(s, e), s;
|
|
2360
2373
|
}
|
|
2361
2374
|
if (n.tag === "#anchor") {
|
|
2362
2375
|
const s = Array.isArray(n.children) ? n.children : [], c = n._startNode ?? document.createTextNode(""), a = n._endNode ?? document.createTextNode("");
|
|
2363
|
-
n.key != null && (
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2376
|
+
n.key != null && (ee(c, `${n.key}:start`), ee(a, `${n.key}:end`)), n._startNode = c, n._endNode = a;
|
|
2377
|
+
const u = document.createDocumentFragment();
|
|
2378
|
+
u.appendChild(c);
|
|
2366
2379
|
for (const m of s)
|
|
2367
|
-
|
|
2368
|
-
return
|
|
2380
|
+
u.appendChild(te(m, r));
|
|
2381
|
+
return u.appendChild(a), e.parentNode?.replaceChild(u, e), c;
|
|
2369
2382
|
}
|
|
2370
2383
|
if (typeof t != "string" && typeof n != "string" && t.tag === n.tag && t.key === n.key) {
|
|
2371
2384
|
const s = e;
|
|
2372
|
-
return
|
|
2385
|
+
return Tt(s, t.props || {}, n.props || {}, r), An(s, t.children, n.children, r, o), Le(n, s, o), s;
|
|
2373
2386
|
}
|
|
2374
2387
|
if (typeof t != "string" && typeof n != "string" && t.tag === n.tag && (t.tag && String(t.tag).includes("-") || n.props && n.props.isCustomElement || t.props && t.props.isCustomElement))
|
|
2375
2388
|
try {
|
|
2376
2389
|
const c = e;
|
|
2377
|
-
return
|
|
2390
|
+
return Tt(c, t.props || {}, n.props || {}, r), Le(n, c, o), c;
|
|
2378
2391
|
} catch {
|
|
2379
2392
|
}
|
|
2380
2393
|
be(e, o);
|
|
2381
|
-
const i =
|
|
2394
|
+
const i = te(n, r, o);
|
|
2382
2395
|
return Le(n, i, o), e.parentNode?.replaceChild(i, e), i;
|
|
2383
2396
|
}
|
|
2384
|
-
function
|
|
2397
|
+
function Tn(e, t, n, r) {
|
|
2385
2398
|
let o;
|
|
2386
2399
|
Array.isArray(t) ? t.length === 1 ? (o = t[0], o && typeof o == "object" && o.key == null && (o = { ...o, key: "__root__" })) : o = { tag: "div", key: "__root__", children: t } : (o = t, o && typeof o == "object" && o.key == null && (o = { ...o, key: "__root__" })), o && typeof o == "object" && o.tag === "#anchor" && (o = {
|
|
2387
2400
|
tag: "div",
|
|
2388
2401
|
key: "__anchor_root__",
|
|
2389
2402
|
props: { attrs: { "data-anchor-block-root": "", key: "__anchor_root__" } },
|
|
2390
2403
|
children: [o]
|
|
2391
|
-
}), o =
|
|
2404
|
+
}), o = gt(o, String(o.key ?? "root"));
|
|
2392
2405
|
const i = e._prevVNode ?? null, s = e._prevDom ?? e.firstChild ?? null;
|
|
2393
2406
|
let c;
|
|
2394
|
-
i && s ? typeof i != "string" && typeof o != "string" && i.tag === o.tag && i.key === o.key ? c =
|
|
2407
|
+
i && s ? typeof i != "string" && typeof o != "string" && i.tag === o.tag && i.key === o.key ? c = Oe(s, i, o, n, r) : (c = te(o, n, r), e.replaceChild(c, s)) : (c = te(o, n, r), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
|
|
2395
2408
|
const a = [];
|
|
2396
|
-
for (let
|
|
2397
|
-
const m = e.childNodes[
|
|
2409
|
+
for (let u = 0; u < e.childNodes.length; u++) {
|
|
2410
|
+
const m = e.childNodes[u];
|
|
2398
2411
|
m !== c && m.nodeName !== "STYLE" && (be(m, r), a.push(m));
|
|
2399
2412
|
}
|
|
2400
|
-
a.forEach((
|
|
2413
|
+
a.forEach((u) => e.removeChild(u)), e._prevVNode = o, e._prevDom = c;
|
|
2401
2414
|
}
|
|
2402
|
-
function
|
|
2403
|
-
if (typeof e == "string") return
|
|
2415
|
+
function et(e) {
|
|
2416
|
+
if (typeof e == "string") return Be(e);
|
|
2404
2417
|
if (e.tag === "#text")
|
|
2405
|
-
return typeof e.children == "string" ?
|
|
2418
|
+
return typeof e.children == "string" ? Be(e.children) : "";
|
|
2406
2419
|
if (e.tag === "#anchor")
|
|
2407
|
-
return (Array.isArray(e.children) ? e.children.filter(Boolean) : []).map(
|
|
2420
|
+
return (Array.isArray(e.children) ? e.children.filter(Boolean) : []).map(et).join("");
|
|
2408
2421
|
if (e.tag === "#raw")
|
|
2409
2422
|
return typeof e.children == "string" ? e.children : "";
|
|
2410
2423
|
let t = "";
|
|
2411
|
-
e.props && e.props.attrs && (t = Object.entries(e.props.attrs).map(([r, o]) => ` ${r}="${
|
|
2412
|
-
const n = Array.isArray(e.children) ? e.children.filter(Boolean).map(
|
|
2424
|
+
e.props && e.props.attrs && (t = Object.entries(e.props.attrs).map(([r, o]) => ` ${r}="${Be(String(o))}"`).join(""));
|
|
2425
|
+
const n = Array.isArray(e.children) ? e.children.filter(Boolean).map(et).join("") : typeof e.children == "string" ? Be(e.children) : e.children ? et(e.children) : "";
|
|
2413
2426
|
return `<${e.tag}${t}>${n}</${e.tag}>`;
|
|
2414
2427
|
}
|
|
2415
|
-
function
|
|
2428
|
+
function jn(e, ...t) {
|
|
2416
2429
|
let n = "";
|
|
2417
2430
|
for (let r = 0; r < e.length; r++)
|
|
2418
2431
|
n += e[r], r < t.length && (n += t[r]);
|
|
@@ -2422,13 +2435,13 @@ function Gt(e) {
|
|
|
2422
2435
|
return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
|
|
2423
2436
|
}
|
|
2424
2437
|
let Ke = null;
|
|
2425
|
-
function
|
|
2426
|
-
return Ke || (Ke = new CSSStyleSheet(), Ke.replaceSync(Gt(
|
|
2438
|
+
function jt() {
|
|
2439
|
+
return Ke || (Ke = new CSSStyleSheet(), Ke.replaceSync(Gt(On))), Ke;
|
|
2427
2440
|
}
|
|
2428
2441
|
function Ln(e) {
|
|
2429
2442
|
return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
|
|
2430
2443
|
}
|
|
2431
|
-
const
|
|
2444
|
+
const On = jn`
|
|
2432
2445
|
:host,
|
|
2433
2446
|
*,
|
|
2434
2447
|
::before,
|
|
@@ -2541,7 +2554,7 @@ const jn = Tn`
|
|
|
2541
2554
|
[hidden] {
|
|
2542
2555
|
display: none;
|
|
2543
2556
|
}
|
|
2544
|
-
`,
|
|
2557
|
+
`, Pn = {
|
|
2545
2558
|
// Existing semantic colors
|
|
2546
2559
|
neutral: {
|
|
2547
2560
|
50: "#fafafa",
|
|
@@ -2640,7 +2653,7 @@ const jn = Tn`
|
|
|
2640
2653
|
transparent: { DEFAULT: "transparent" },
|
|
2641
2654
|
current: { DEFAULT: "currentColor" }
|
|
2642
2655
|
}, Jt = Object.fromEntries(
|
|
2643
|
-
Object.entries(
|
|
2656
|
+
Object.entries(Pn).map(([e, t]) => [
|
|
2644
2657
|
e,
|
|
2645
2658
|
Object.fromEntries(
|
|
2646
2659
|
Object.entries(t).map(([n, r]) => [
|
|
@@ -2663,7 +2676,7 @@ const jn = Tn`
|
|
|
2663
2676
|
"5xl": 256,
|
|
2664
2677
|
"6xl": 288,
|
|
2665
2678
|
"7xl": 320
|
|
2666
|
-
},
|
|
2679
|
+
}, tt = {
|
|
2667
2680
|
m: ["margin"],
|
|
2668
2681
|
mx: ["margin-inline"],
|
|
2669
2682
|
my: ["margin-block"],
|
|
@@ -2694,7 +2707,7 @@ const jn = Tn`
|
|
|
2694
2707
|
gap: ["gap"],
|
|
2695
2708
|
"gap-x": ["column-gap"],
|
|
2696
2709
|
"gap-y": ["row-gap"]
|
|
2697
|
-
},
|
|
2710
|
+
}, Nn = () => {
|
|
2698
2711
|
const e = {};
|
|
2699
2712
|
e["@container"] = "container-type:inline-size;", [
|
|
2700
2713
|
"block",
|
|
@@ -2818,8 +2831,8 @@ const jn = Tn`
|
|
|
2818
2831
|
["text-7xl", "4.5rem", "1"],
|
|
2819
2832
|
["text-8xl", "6rem", "1"],
|
|
2820
2833
|
["text-9xl", "8rem", "1"]
|
|
2821
|
-
].forEach(([a,
|
|
2822
|
-
e[a] = `font-size:${
|
|
2834
|
+
].forEach(([a, u, m]) => {
|
|
2835
|
+
e[a] = `font-size:${u};line-height:var(--ce-line-height,${m});`;
|
|
2823
2836
|
}), [
|
|
2824
2837
|
["tracking-tighter", "-0.05em"],
|
|
2825
2838
|
["tracking-tight", "-0.025em"],
|
|
@@ -2827,8 +2840,8 @@ const jn = Tn`
|
|
|
2827
2840
|
["tracking-wide", "0.025em"],
|
|
2828
2841
|
["tracking-wider", "0.05em"],
|
|
2829
2842
|
["tracking-widest", "0.1em"]
|
|
2830
|
-
].forEach(([a,
|
|
2831
|
-
e[a] = `letter-spacing:${
|
|
2843
|
+
].forEach(([a, u]) => {
|
|
2844
|
+
e[a] = `letter-spacing:${u};`;
|
|
2832
2845
|
}), [
|
|
2833
2846
|
["leading-3", "0.75rem"],
|
|
2834
2847
|
["leading-4", "1rem"],
|
|
@@ -2844,13 +2857,13 @@ const jn = Tn`
|
|
|
2844
2857
|
["leading-normal", "1.5"],
|
|
2845
2858
|
["leading-relaxed", "1.625"],
|
|
2846
2859
|
["leading-loose", "2"]
|
|
2847
|
-
].forEach(([a,
|
|
2848
|
-
e[a] = `line-height:${
|
|
2860
|
+
].forEach(([a, u]) => {
|
|
2861
|
+
e[a] = `line-height:${u};--ce-line-height:${u};line-height:var(--ce-line-height,${u});`;
|
|
2849
2862
|
});
|
|
2850
2863
|
const i = [0, 1, 2, 4, 6, 8];
|
|
2851
2864
|
for (const a of i) {
|
|
2852
|
-
const
|
|
2853
|
-
e[`border-${a}`] = `border-width:${
|
|
2865
|
+
const u = `${a}px`;
|
|
2866
|
+
e[`border-${a}`] = `border-width:${u};`, e[`border-t-${a}`] = `border-top-width:${u};`, e[`border-r-${a}`] = `border-right-width:${u};`, e[`border-b-${a}`] = `border-bottom-width:${u};`, e[`border-l-${a}`] = `border-left-width:${u};`, e[`border-x-${a}`] = `border-left-width:${u};border-right-width:${u};`, e[`border-y-${a}`] = `border-top-width:${u};border-bottom-width:${u};`;
|
|
2854
2867
|
}
|
|
2855
2868
|
Object.assign(e, {
|
|
2856
2869
|
"font-sans": "font-family:var(--font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
@@ -2881,8 +2894,8 @@ const jn = Tn`
|
|
|
2881
2894
|
"4xl": 32,
|
|
2882
2895
|
full: 9999
|
|
2883
2896
|
};
|
|
2884
|
-
for (const [a,
|
|
2885
|
-
const m =
|
|
2897
|
+
for (const [a, u] of Object.entries(s)) {
|
|
2898
|
+
const m = u === 9999 ? "9999px" : `${u / 16}rem`;
|
|
2886
2899
|
e[`rounded-${a}`] = `border-radius:${m};`, e[`rounded-t-${a}`] = `border-top-left-radius:${m};border-top-right-radius:${m};`, e[`rounded-r-${a}`] = `border-top-right-radius:${m};border-bottom-right-radius:${m};`, e[`rounded-b-${a}`] = `border-bottom-left-radius:${m};border-bottom-right-radius:${m};`, e[`rounded-l-${a}`] = `border-top-left-radius:${m};border-bottom-left-radius:${m};`, e[`rounded-tl-${a}`] = `border-top-left-radius:${m};`, e[`rounded-tr-${a}`] = `border-top-right-radius:${m};`, e[`rounded-br-${a}`] = `border-bottom-right-radius:${m};`, e[`rounded-bl-${a}`] = `border-bottom-left-radius:${m};`;
|
|
2887
2900
|
}
|
|
2888
2901
|
Object.assign(e, {
|
|
@@ -2948,8 +2961,8 @@ const jn = Tn`
|
|
|
2948
2961
|
"mx-auto": "margin-inline:auto;",
|
|
2949
2962
|
"my-auto": "margin-block:auto;"
|
|
2950
2963
|
});
|
|
2951
|
-
for (const [a,
|
|
2952
|
-
e[`max-w-${a}`] = `max-width:calc(${ge} * ${
|
|
2964
|
+
for (const [a, u] of Object.entries(Mn))
|
|
2965
|
+
e[`max-w-${a}`] = `max-width:calc(${ge} * ${u});`, e[`min-w-${a}`] = `min-width:calc(${ge} * ${u});`, e[`w-${a}`] = `width:calc(${ge} * ${u});`, e[`max-h-${a}`] = `max-height:calc(${ge} * ${u});`, e[`min-h-${a}`] = `min-height:calc(${ge} * ${u});`, e[`h-${a}`] = `height:calc(${ge} * ${u});`;
|
|
2953
2966
|
Object.assign(e, {
|
|
2954
2967
|
transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
|
|
2955
2968
|
"transition-none": "transition-property:none;",
|
|
@@ -3066,8 +3079,8 @@ const jn = Tn`
|
|
|
3066
3079
|
"bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--ce-gradient-stops));",
|
|
3067
3080
|
"bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--ce-gradient-stops));"
|
|
3068
3081
|
}), e;
|
|
3069
|
-
},
|
|
3070
|
-
function
|
|
3082
|
+
}, nt = Nn();
|
|
3083
|
+
function ne(e, t) {
|
|
3071
3084
|
let n = 0;
|
|
3072
3085
|
for (let r = 0; r < e.length; r++) {
|
|
3073
3086
|
const o = e[r];
|
|
@@ -3078,21 +3091,21 @@ function te(e, t) {
|
|
|
3078
3091
|
}
|
|
3079
3092
|
return e + t;
|
|
3080
3093
|
}
|
|
3081
|
-
const
|
|
3094
|
+
const Rn = {
|
|
3082
3095
|
before: (e, t) => `${e}::before{${t}}`,
|
|
3083
3096
|
after: (e, t) => `${e}::after{${t}}`,
|
|
3084
|
-
hover: (e, t) => `${
|
|
3085
|
-
focus: (e, t) => `${
|
|
3086
|
-
active: (e, t) => `${
|
|
3087
|
-
disabled: (e, t) => `${
|
|
3088
|
-
visited: (e, t) => `${
|
|
3089
|
-
checked: (e, t) => `${
|
|
3090
|
-
first: (e, t) => `${
|
|
3091
|
-
last: (e, t) => `${
|
|
3092
|
-
odd: (e, t) => `${
|
|
3093
|
-
even: (e, t) => `${
|
|
3094
|
-
"focus-within": (e, t) => `${
|
|
3095
|
-
"focus-visible": (e, t) => `${
|
|
3097
|
+
hover: (e, t) => `${ne(e, ":hover")}{${t}}`,
|
|
3098
|
+
focus: (e, t) => `${ne(e, ":focus")}{${t}}`,
|
|
3099
|
+
active: (e, t) => `${ne(e, ":active")}{${t}}`,
|
|
3100
|
+
disabled: (e, t) => `${ne(e, ":disabled")}{${t}}`,
|
|
3101
|
+
visited: (e, t) => `${ne(e, ":visited")}{${t}}`,
|
|
3102
|
+
checked: (e, t) => `${ne(e, ":checked")}{${t}}`,
|
|
3103
|
+
first: (e, t) => `${ne(e, ":first-child")}{${t}}`,
|
|
3104
|
+
last: (e, t) => `${ne(e, ":last-child")}{${t}}`,
|
|
3105
|
+
odd: (e, t) => `${ne(e, ":nth-child(odd)")}{${t}}`,
|
|
3106
|
+
even: (e, t) => `${ne(e, ":nth-child(even)")}{${t}}`,
|
|
3107
|
+
"focus-within": (e, t) => `${ne(e, ":focus-within")}{${t}}`,
|
|
3108
|
+
"focus-visible": (e, t) => `${ne(e, ":focus-visible")}{${t}}`,
|
|
3096
3109
|
"group-hover": (e, t) => `.group:hover ${e}{${t}}`,
|
|
3097
3110
|
"group-focus": (e, t) => `.group:focus ${e}{${t}}`,
|
|
3098
3111
|
"group-active": (e, t) => `.group:active ${e}{${t}}`,
|
|
@@ -3101,14 +3114,14 @@ const Nn = {
|
|
|
3101
3114
|
"peer-focus": (e, t) => `.peer:focus ~ ${e}{${t}}`,
|
|
3102
3115
|
"peer-checked": (e, t) => `.peer:checked ~ ${e}{${t}}`,
|
|
3103
3116
|
"peer-disabled": (e, t) => `.peer:disabled ~ ${e}{${t}}`
|
|
3104
|
-
},
|
|
3117
|
+
}, rt = {
|
|
3105
3118
|
sm: "(min-width:640px)",
|
|
3106
3119
|
md: "(min-width:768px)",
|
|
3107
3120
|
lg: "(min-width:1024px)",
|
|
3108
3121
|
xl: "(min-width:1280px)",
|
|
3109
3122
|
"2xl": "(min-width:1536px)",
|
|
3110
3123
|
dark: "(prefers-color-scheme: dark)"
|
|
3111
|
-
},
|
|
3124
|
+
}, Lt = {
|
|
3112
3125
|
xs: "(min-width:20rem)",
|
|
3113
3126
|
sm: "(min-width:24rem)",
|
|
3114
3127
|
md: "(min-width:28rem)",
|
|
@@ -3120,7 +3133,7 @@ const Nn = {
|
|
|
3120
3133
|
"5xl": "(min-width:64rem)",
|
|
3121
3134
|
"6xl": "(min-width:72rem)",
|
|
3122
3135
|
"7xl": "(min-width:80rem)"
|
|
3123
|
-
},
|
|
3136
|
+
}, ot = ["sm", "md", "lg", "xl", "2xl"], it = [
|
|
3124
3137
|
"xs",
|
|
3125
3138
|
"sm",
|
|
3126
3139
|
"md",
|
|
@@ -3133,31 +3146,31 @@ const Nn = {
|
|
|
3133
3146
|
"6xl",
|
|
3134
3147
|
"7xl"
|
|
3135
3148
|
];
|
|
3136
|
-
function
|
|
3149
|
+
function st(e) {
|
|
3137
3150
|
const t = e.startsWith("-"), n = t ? e.slice(1) : e, r = n.lastIndexOf("-");
|
|
3138
3151
|
if (r === -1) return null;
|
|
3139
3152
|
const o = n.slice(0, r), i = n.slice(r + 1);
|
|
3140
|
-
if (!
|
|
3153
|
+
if (!tt[o]) return null;
|
|
3141
3154
|
if (i.includes("/")) {
|
|
3142
|
-
const [a,
|
|
3143
|
-
if (Number.isNaN(a) || Number.isNaN(
|
|
3155
|
+
const [a, u] = i.split("/").map((y) => parseFloat(y));
|
|
3156
|
+
if (Number.isNaN(a) || Number.isNaN(u) || u === 0)
|
|
3144
3157
|
return null;
|
|
3145
|
-
const m = a /
|
|
3146
|
-
return
|
|
3158
|
+
const m = a / u * 100;
|
|
3159
|
+
return tt[o].map((y) => `${y}:${m}%;`).join("");
|
|
3147
3160
|
}
|
|
3148
3161
|
const s = parseFloat(i);
|
|
3149
3162
|
if (Number.isNaN(s)) return null;
|
|
3150
3163
|
const c = t ? "-" : "";
|
|
3151
|
-
return
|
|
3164
|
+
return tt[o].map((a) => `${a}:calc(${c}${ge} * ${s});`).join("");
|
|
3152
3165
|
}
|
|
3153
|
-
function
|
|
3166
|
+
function at(e) {
|
|
3154
3167
|
const t = e.startsWith("-"), r = (t ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
3155
3168
|
if (!r) return null;
|
|
3156
3169
|
const [, o, i] = r, s = o === "x";
|
|
3157
3170
|
if (i === "reverse")
|
|
3158
3171
|
return s ? "--ce-space-x-reverse:1;" : "--ce-space-y-reverse:1;";
|
|
3159
3172
|
if (i.includes("/")) {
|
|
3160
|
-
const [m, y] = i.split("/").map((
|
|
3173
|
+
const [m, y] = i.split("/").map((d) => parseFloat(d));
|
|
3161
3174
|
if (Number.isNaN(m) || Number.isNaN(y) || y === 0)
|
|
3162
3175
|
return null;
|
|
3163
3176
|
const p = m / y * 100, k = t ? "-" : "";
|
|
@@ -3165,14 +3178,14 @@ function st(e) {
|
|
|
3165
3178
|
}
|
|
3166
3179
|
const c = parseFloat(i);
|
|
3167
3180
|
if (Number.isNaN(c)) return null;
|
|
3168
|
-
const
|
|
3169
|
-
return s ? `--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${
|
|
3181
|
+
const u = `calc(${t ? "-" : ""}${ge} * ${c})`;
|
|
3182
|
+
return s ? `--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${u} * calc(1 - var(--ce-space-x-reverse)));margin-inline-end:calc(${u} * var(--ce-space-x-reverse));}` : `--ce-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${u} * calc(1 - var(--ce-space-y-reverse)));margin-bottom:calc(${u} * var(--ce-space-y-reverse));}`;
|
|
3170
3183
|
}
|
|
3171
|
-
function
|
|
3184
|
+
function Ot(e) {
|
|
3172
3185
|
const t = e.replace("#", ""), n = parseInt(t, 16);
|
|
3173
3186
|
return `${n >> 16 & 255} ${n >> 8 & 255} ${n & 255}`;
|
|
3174
3187
|
}
|
|
3175
|
-
const
|
|
3188
|
+
const Dn = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Hn = {
|
|
3176
3189
|
bg: "background-color",
|
|
3177
3190
|
decoration: "text-decoration-color",
|
|
3178
3191
|
text: "color",
|
|
@@ -3183,36 +3196,36 @@ const Rn = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)
|
|
|
3183
3196
|
fill: "fill",
|
|
3184
3197
|
stroke: "stroke"
|
|
3185
3198
|
};
|
|
3186
|
-
function
|
|
3187
|
-
const t =
|
|
3199
|
+
function In(e) {
|
|
3200
|
+
const t = Dn.exec(e);
|
|
3188
3201
|
if (!t) return null;
|
|
3189
3202
|
const [, n, r, o = "DEFAULT"] = t, i = Jt[r]?.[o];
|
|
3190
3203
|
if (!i) return null;
|
|
3191
3204
|
if (n === "shadow") return `--ce-shadow-color:${i};`;
|
|
3192
|
-
const s =
|
|
3205
|
+
const s = Hn[n];
|
|
3193
3206
|
return s ? `${s}:${i};` : null;
|
|
3194
3207
|
}
|
|
3195
|
-
function
|
|
3208
|
+
function Fn(e) {
|
|
3196
3209
|
const t = e.indexOf("/");
|
|
3197
3210
|
if (t === -1) return { base: e };
|
|
3198
3211
|
const n = e.slice(0, t), r = e.slice(t + 1), o = parseInt(r, 10);
|
|
3199
3212
|
return isNaN(o) || o < 0 || o > 100 ? { base: n } : { base: n, opacity: o / 100 };
|
|
3200
3213
|
}
|
|
3201
|
-
function
|
|
3202
|
-
const { base: t, opacity: n } =
|
|
3214
|
+
function ct(e) {
|
|
3215
|
+
const { base: t, opacity: n } = Fn(e), r = In(t);
|
|
3203
3216
|
if (r && n !== void 0) {
|
|
3204
3217
|
const i = /#([0-9a-f]{6})/i.exec(r);
|
|
3205
3218
|
if (i) {
|
|
3206
|
-
const s =
|
|
3219
|
+
const s = Ot(i[0]);
|
|
3207
3220
|
return r.replace(/#([0-9a-f]{6})/i, `rgb(${s} / ${n})`);
|
|
3208
3221
|
}
|
|
3209
3222
|
}
|
|
3210
3223
|
if (r) return r;
|
|
3211
|
-
const o =
|
|
3224
|
+
const o = Ge(t);
|
|
3212
3225
|
if (o && n !== void 0) {
|
|
3213
3226
|
const i = /#([0-9a-f]{6})/i.exec(o);
|
|
3214
3227
|
if (i) {
|
|
3215
|
-
const s =
|
|
3228
|
+
const s = Ot(i[0]);
|
|
3216
3229
|
return o.replace(
|
|
3217
3230
|
/#([0-9a-f]{6})/i,
|
|
3218
3231
|
`rgb(${s} / ${n})`
|
|
@@ -3221,7 +3234,7 @@ function at(e) {
|
|
|
3221
3234
|
}
|
|
3222
3235
|
return o;
|
|
3223
3236
|
}
|
|
3224
|
-
function
|
|
3237
|
+
function lt(e) {
|
|
3225
3238
|
const t = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
3226
3239
|
if (!t) return null;
|
|
3227
3240
|
const [, n, r, o = "DEFAULT"] = t, i = Jt[r]?.[o];
|
|
@@ -3237,19 +3250,19 @@ function ct(e) {
|
|
|
3237
3250
|
return null;
|
|
3238
3251
|
}
|
|
3239
3252
|
}
|
|
3240
|
-
function
|
|
3253
|
+
function ut(e) {
|
|
3241
3254
|
const t = /^opacity-(\d{1,3})$/.exec(e);
|
|
3242
3255
|
if (!t) return null;
|
|
3243
3256
|
const n = parseInt(t[1], 10);
|
|
3244
3257
|
return n < 0 || n > 100 ? null : `opacity:${n / 100};`;
|
|
3245
3258
|
}
|
|
3246
|
-
function
|
|
3259
|
+
function Ge(e) {
|
|
3247
3260
|
if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
|
|
3248
3261
|
const s = e.slice(1, -1).trim(), c = s.indexOf(":");
|
|
3249
3262
|
if (c === -1) return null;
|
|
3250
3263
|
const a = s.slice(0, c).trim();
|
|
3251
|
-
let
|
|
3252
|
-
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(a) ? (
|
|
3264
|
+
let u = s.slice(c + 1).trim();
|
|
3265
|
+
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(a) ? (u = u.replace(/_/g, " "), u = u.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), u = u.replace(/^'([^']*)'$/g, '"$1"'), `${a}:${u};`) : null;
|
|
3253
3266
|
}
|
|
3254
3267
|
const t = e.indexOf("-[");
|
|
3255
3268
|
if (t <= 0 || !e.endsWith("]")) return null;
|
|
@@ -3304,7 +3317,7 @@ function Ze(e) {
|
|
|
3304
3317
|
const i = o[n] ?? n.replace(/_/g, "-");
|
|
3305
3318
|
return i && r ? `${i}:${r};` : null;
|
|
3306
3319
|
}
|
|
3307
|
-
function
|
|
3320
|
+
function Wn(e) {
|
|
3308
3321
|
if (e.startsWith("[") && e.endsWith("]")) {
|
|
3309
3322
|
const n = e.slice(1, -1);
|
|
3310
3323
|
return n.includes("&") ? n : e;
|
|
@@ -3316,10 +3329,10 @@ function Fn(e) {
|
|
|
3316
3329
|
}
|
|
3317
3330
|
return null;
|
|
3318
3331
|
}
|
|
3319
|
-
function
|
|
3332
|
+
function Pt(e) {
|
|
3320
3333
|
return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, "\\$1");
|
|
3321
3334
|
}
|
|
3322
|
-
function
|
|
3335
|
+
function Bn(e) {
|
|
3323
3336
|
const t = /class\s*=\s*(['"])([\s\S]*?)\1/g, n = [];
|
|
3324
3337
|
let r;
|
|
3325
3338
|
for (; r = t.exec(e); ) {
|
|
@@ -3328,28 +3341,28 @@ function Wn(e) {
|
|
|
3328
3341
|
}
|
|
3329
3342
|
return n;
|
|
3330
3343
|
}
|
|
3331
|
-
const
|
|
3344
|
+
const je = /* @__PURE__ */ new Map(), zn = 16, Mt = 1e3;
|
|
3332
3345
|
function Xt(e) {
|
|
3333
|
-
const t = Date.now(), n =
|
|
3334
|
-
if (n && t - n.timestamp <
|
|
3346
|
+
const t = Date.now(), n = je.get(e);
|
|
3347
|
+
if (n && t - n.timestamp < zn)
|
|
3335
3348
|
return n.css;
|
|
3336
|
-
const r =
|
|
3349
|
+
const r = Bn(e);
|
|
3337
3350
|
if (!r.length) return "";
|
|
3338
|
-
const o = new Set(r), i = [[], [], [], []], s = {}, c = (
|
|
3339
|
-
const l = h ? `dark|${
|
|
3351
|
+
const o = new Set(r), i = [[], [], [], []], s = {}, c = (f, h = !1) => {
|
|
3352
|
+
const l = h ? `dark|${f}` : f;
|
|
3340
3353
|
if (l in s) return s[l];
|
|
3341
|
-
const g = y(
|
|
3354
|
+
const g = y(f, h);
|
|
3342
3355
|
return s[l] = g, g;
|
|
3343
|
-
}, a = (
|
|
3344
|
-
const h =
|
|
3345
|
-
(v) => v.startsWith("@") && (
|
|
3346
|
-
), g =
|
|
3347
|
-
return
|
|
3348
|
-
},
|
|
3356
|
+
}, a = (f) => {
|
|
3357
|
+
const h = f.some((v) => ot.includes(v)), l = f.some(
|
|
3358
|
+
(v) => v.startsWith("@") && (it.includes(v.slice(1)) || v.match(/^@\[.+\]$/))
|
|
3359
|
+
), g = f.includes("dark");
|
|
3360
|
+
return f.length ? !h && !g && !l ? 1 : g && (h || l) ? 3 : 2 : 0;
|
|
3361
|
+
}, u = (f) => {
|
|
3349
3362
|
const h = [];
|
|
3350
3363
|
let l = "", g = 0;
|
|
3351
|
-
for (let v = 0; v <
|
|
3352
|
-
const x =
|
|
3364
|
+
for (let v = 0; v < f.length; v++) {
|
|
3365
|
+
const x = f[v];
|
|
3353
3366
|
x === "[" || x === "(" ? g++ : (x === "]" || x === ")") && g--, x === ":" && g === 0 ? (h.push(l), l = "") : l += x;
|
|
3354
3367
|
}
|
|
3355
3368
|
return l && h.push(l), h;
|
|
@@ -3366,131 +3379,131 @@ function Xt(e) {
|
|
|
3366
3379
|
even: ":nth-child(even)",
|
|
3367
3380
|
"focus-within": ":focus-within",
|
|
3368
3381
|
"focus-visible": ":focus-visible"
|
|
3369
|
-
}, y = (
|
|
3370
|
-
const l =
|
|
3382
|
+
}, y = (f, h = !1) => {
|
|
3383
|
+
const l = u(f);
|
|
3371
3384
|
let g = "", v = !1;
|
|
3372
|
-
for (const
|
|
3373
|
-
let F =
|
|
3374
|
-
if (F.startsWith("!") && (v = !0, F = F.slice(1)),
|
|
3375
|
-
g =
|
|
3385
|
+
for (const L of l) {
|
|
3386
|
+
let F = L;
|
|
3387
|
+
if (F.startsWith("!") && (v = !0, F = F.slice(1)), nt[F] || st(F) || at(F) || ut(F) || ct(F) || lt(F) || Ge(F)) {
|
|
3388
|
+
g = L;
|
|
3376
3389
|
break;
|
|
3377
3390
|
}
|
|
3378
3391
|
}
|
|
3379
3392
|
if (!g) return null;
|
|
3380
|
-
const x = g.replace(/^!/, ""), S =
|
|
3393
|
+
const x = g.replace(/^!/, ""), S = nt[x] ?? st(x) ?? at(x) ?? ut(x) ?? ct(x) ?? lt(x) ?? Ge(x);
|
|
3381
3394
|
if (!S) return null;
|
|
3382
3395
|
const E = l.indexOf(g);
|
|
3383
3396
|
let C = E >= 0 ? l.slice(0, E) : [];
|
|
3384
|
-
h && (C = C.filter((
|
|
3385
|
-
const w = `.${
|
|
3397
|
+
h && (C = C.filter((L) => L !== "dark"));
|
|
3398
|
+
const w = `.${Pt(f)}`, T = v ? S.replace(/;/g, " !important;") : S, $ = "__SUBJECT__";
|
|
3386
3399
|
let b = $;
|
|
3387
3400
|
const _ = [];
|
|
3388
|
-
for (const
|
|
3389
|
-
|
|
3401
|
+
for (const L of C)
|
|
3402
|
+
L.startsWith("group-") ? (b = `.group:${L.slice(6)} ${b}`, _.push(L)) : L.startsWith("peer-") && (b = b.replace(
|
|
3390
3403
|
$,
|
|
3391
|
-
`.peer:${
|
|
3392
|
-
), _.push(
|
|
3393
|
-
C = C.filter((
|
|
3394
|
-
const O = [],
|
|
3404
|
+
`.peer:${L.slice(5)}~${$}`
|
|
3405
|
+
), _.push(L));
|
|
3406
|
+
C = C.filter((L) => !_.includes(L));
|
|
3407
|
+
const O = [], j = [];
|
|
3395
3408
|
let A = null;
|
|
3396
|
-
for (const
|
|
3397
|
-
if (
|
|
3409
|
+
for (const L of C) {
|
|
3410
|
+
if (L === "dark" || ot.includes(L) || L.startsWith("@") && (it.includes(L.slice(1)) || L.match(/^@\[.+\]$/)))
|
|
3398
3411
|
continue;
|
|
3399
|
-
const F =
|
|
3412
|
+
const F = Wn(L);
|
|
3400
3413
|
if (F) {
|
|
3401
3414
|
A = F;
|
|
3402
3415
|
continue;
|
|
3403
3416
|
}
|
|
3404
|
-
const V = m[
|
|
3417
|
+
const V = m[L];
|
|
3405
3418
|
if (V) {
|
|
3406
|
-
A ?
|
|
3419
|
+
A ? j.push(V) : O.push(V);
|
|
3407
3420
|
continue;
|
|
3408
3421
|
}
|
|
3409
|
-
const B =
|
|
3422
|
+
const B = Rn[L];
|
|
3410
3423
|
typeof B == "function" && (b = B(b, T).split("{")[0]);
|
|
3411
3424
|
}
|
|
3412
|
-
const
|
|
3413
|
-
function fe(
|
|
3414
|
-
if (!F) return
|
|
3425
|
+
const M = O.join(""), N = j.join("");
|
|
3426
|
+
function fe(L, F) {
|
|
3427
|
+
if (!F) return L;
|
|
3415
3428
|
let V = 0, B = 0;
|
|
3416
|
-
if (
|
|
3417
|
-
let
|
|
3418
|
-
for (;
|
|
3419
|
-
for (;
|
|
3420
|
-
const G =
|
|
3421
|
-
if (G === "[" ? V++ : G === "]" && V > 0 ? V-- : G === "(" ? B++ : G === ")" && B > 0 && B--, V === 0 && B === 0 && (
|
|
3422
|
-
return
|
|
3429
|
+
if (L.length && (L[0] === ">" || L[0] === "+" || L[0] === "~" || L[0] === " ")) {
|
|
3430
|
+
let q = 1;
|
|
3431
|
+
for (; q < L.length && L[q] === " "; ) q++;
|
|
3432
|
+
for (; q < L.length; q++) {
|
|
3433
|
+
const G = L[q];
|
|
3434
|
+
if (G === "[" ? V++ : G === "]" && V > 0 ? V-- : G === "(" ? B++ : G === ")" && B > 0 && B--, V === 0 && B === 0 && (L[q] === ">" || L[q] === "+" || L[q] === "~" || L[q] === " "))
|
|
3435
|
+
return L.slice(0, q) + F + L.slice(q);
|
|
3423
3436
|
}
|
|
3424
|
-
return
|
|
3437
|
+
return L + F;
|
|
3425
3438
|
}
|
|
3426
|
-
for (let
|
|
3427
|
-
const G =
|
|
3439
|
+
for (let q = 0; q < L.length; q++) {
|
|
3440
|
+
const G = L[q];
|
|
3428
3441
|
if (G === "[" ? V++ : G === "]" && V > 0 ? V-- : G === "(" ? B++ : G === ")" && B > 0 && B--, V === 0 && B === 0 && (G === ">" || G === "+" || G === "~" || G === " "))
|
|
3429
|
-
return
|
|
3442
|
+
return L.slice(0, q) + F + L.slice(q);
|
|
3430
3443
|
}
|
|
3431
|
-
return
|
|
3444
|
+
return L + F;
|
|
3432
3445
|
}
|
|
3433
3446
|
if (A)
|
|
3434
3447
|
if (A.includes("&")) {
|
|
3435
|
-
const
|
|
3448
|
+
const L = A.indexOf("&"), F = A.slice(0, L), V = A.slice(L + 1), B = $ + M;
|
|
3436
3449
|
if (O.length === 0)
|
|
3437
3450
|
b = b.replace(
|
|
3438
3451
|
$,
|
|
3439
3452
|
F + B + N + V
|
|
3440
3453
|
);
|
|
3441
3454
|
else {
|
|
3442
|
-
const
|
|
3455
|
+
const q = fe(V, N);
|
|
3443
3456
|
b = b.replace(
|
|
3444
3457
|
$,
|
|
3445
|
-
F + B +
|
|
3458
|
+
F + B + q
|
|
3446
3459
|
);
|
|
3447
3460
|
}
|
|
3448
3461
|
} else
|
|
3449
3462
|
b = b.replace(
|
|
3450
3463
|
$,
|
|
3451
|
-
`${A}${$ +
|
|
3464
|
+
`${A}${$ + M}`
|
|
3452
3465
|
), N && (b = b.replace($, `${$}${N}`));
|
|
3453
3466
|
else
|
|
3454
3467
|
b = b.replace(
|
|
3455
3468
|
$,
|
|
3456
|
-
$ +
|
|
3469
|
+
$ + M + N
|
|
3457
3470
|
);
|
|
3458
3471
|
b = b.replace(new RegExp($, "g"), w);
|
|
3459
3472
|
let Z = `${b}{${T}}`;
|
|
3460
|
-
const
|
|
3461
|
-
(
|
|
3473
|
+
const U = C.filter(
|
|
3474
|
+
(L) => ot.includes(L)
|
|
3462
3475
|
), D = C.filter(
|
|
3463
|
-
(
|
|
3464
|
-
),
|
|
3476
|
+
(L) => L.startsWith("@") && (it.includes(L.slice(1)) || L.match(/^@\[.+\]$/))
|
|
3477
|
+
), K = U.length ? U[U.length - 1] : null, ie = D.length ? D[D.length - 1] : null, Ae = C.includes("dark");
|
|
3465
3478
|
let I = "", ae = "";
|
|
3466
|
-
if (
|
|
3479
|
+
if (Ae && K ? I = `@media (prefers-color-scheme: dark) and ${rt[K]}` : Ae ? I = "@media (prefers-color-scheme: dark)" : K && (I = `@media ${rt[K]}`), ie)
|
|
3467
3480
|
if (ie.startsWith("@[") && ie.endsWith("]")) {
|
|
3468
|
-
const
|
|
3469
|
-
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
|
|
3481
|
+
const L = ie.slice(2, -1);
|
|
3482
|
+
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(L))
|
|
3470
3483
|
return null;
|
|
3471
|
-
ae = `@container (min-width:${
|
|
3484
|
+
ae = `@container (min-width:${L})`;
|
|
3472
3485
|
} else {
|
|
3473
|
-
const
|
|
3474
|
-
ae = `@container ${
|
|
3486
|
+
const L = ie.slice(1);
|
|
3487
|
+
ae = `@container ${Lt[L] || `(min-width:${L})`}`;
|
|
3475
3488
|
}
|
|
3476
3489
|
return I && ae ? Z = `${I}${ae}{${Z}}` : I ? Z = `${I}{${Z}}` : ae && (Z = `${ae}{${Z}}`), Z;
|
|
3477
3490
|
};
|
|
3478
|
-
for (const
|
|
3479
|
-
const h =
|
|
3480
|
-
(E) =>
|
|
3491
|
+
for (const f of o) {
|
|
3492
|
+
const h = u(f), l = h.find(
|
|
3493
|
+
(E) => nt[E.replace(/^!/, "")] || st(E.replace(/^!/, "")) || at(E.replace(/^!/, "")) || ut(E.replace(/^!/, "")) || ct(E.replace(/^!/, "")) || lt(E.replace(/^!/, "")) || Ge(E.replace(/^!/, ""))
|
|
3481
3494
|
);
|
|
3482
3495
|
if (!l) continue;
|
|
3483
|
-
const g = h.indexOf(l), v = g >= 0 ? h.slice(0, g) : [], x = a(v), S = c(
|
|
3496
|
+
const g = h.indexOf(l), v = g >= 0 ? h.slice(0, g) : [], x = a(v), S = c(f);
|
|
3484
3497
|
S && i[x].push(S);
|
|
3485
3498
|
}
|
|
3486
3499
|
const p = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
|
|
3487
|
-
for (const
|
|
3488
|
-
if (p.test(
|
|
3489
|
-
if (i.flat().join("").includes(`.${
|
|
3490
|
-
const l = c(
|
|
3500
|
+
for (const f of o)
|
|
3501
|
+
if (p.test(f)) {
|
|
3502
|
+
if (i.flat().join("").includes(`.${Pt(f)}`)) continue;
|
|
3503
|
+
const l = c(f);
|
|
3491
3504
|
l && i[0].push(l);
|
|
3492
3505
|
}
|
|
3493
|
-
const k = (
|
|
3506
|
+
const k = (f) => f.sort((h, l) => {
|
|
3494
3507
|
const g = (w) => {
|
|
3495
3508
|
const T = {
|
|
3496
3509
|
sm: 640,
|
|
@@ -3500,7 +3513,7 @@ function Xt(e) {
|
|
|
3500
3513
|
"2xl": 1536
|
|
3501
3514
|
};
|
|
3502
3515
|
for (const [$, b] of Object.entries(T))
|
|
3503
|
-
if (w.includes(`@media ${
|
|
3516
|
+
if (w.includes(`@media ${rt[$]}`)) return b;
|
|
3504
3517
|
return -1;
|
|
3505
3518
|
}, v = (w) => {
|
|
3506
3519
|
const T = {
|
|
@@ -3528,7 +3541,7 @@ function Xt(e) {
|
|
|
3528
3541
|
// 80rem
|
|
3529
3542
|
};
|
|
3530
3543
|
for (const [$, b] of Object.entries(T))
|
|
3531
|
-
if (w.includes(`@container ${
|
|
3544
|
+
if (w.includes(`@container ${Lt[$]}`)) return b;
|
|
3532
3545
|
if (w.includes("@container (min-width:")) {
|
|
3533
3546
|
const $ = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(w);
|
|
3534
3547
|
if ($) {
|
|
@@ -3541,22 +3554,23 @@ function Xt(e) {
|
|
|
3541
3554
|
return x >= 0 && S >= 0 && x !== S ? x - S : E >= 0 && C >= 0 && E !== C ? E - C : 0;
|
|
3542
3555
|
});
|
|
3543
3556
|
i[2] = k(i[2]), i[3] = k(i[3]);
|
|
3544
|
-
const
|
|
3545
|
-
return
|
|
3557
|
+
const d = i.flat().join("");
|
|
3558
|
+
return je.size >= Mt && Array.from(je.keys()).slice(
|
|
3546
3559
|
0,
|
|
3547
|
-
Math.floor(
|
|
3548
|
-
).forEach((h) =>
|
|
3560
|
+
Math.floor(Mt / 2)
|
|
3561
|
+
).forEach((h) => je.delete(h)), je.set(e, { css: d, timestamp: t }), d;
|
|
3549
3562
|
}
|
|
3550
|
-
function
|
|
3551
|
-
|
|
3563
|
+
function Xe(e, t) {
|
|
3564
|
+
const n = "when-block";
|
|
3565
|
+
return z(typeof t == "function" ? e ? t() : [] : e ? t : [], n);
|
|
3552
3566
|
}
|
|
3553
|
-
function
|
|
3567
|
+
function lr(e, t) {
|
|
3554
3568
|
return e.map((n, r) => {
|
|
3555
3569
|
const o = typeof n == "object" ? n?.key ?? n?.id ?? `idx-${r}` : String(n);
|
|
3556
|
-
return
|
|
3570
|
+
return z(t(n, r), `each-${o}`);
|
|
3557
3571
|
});
|
|
3558
3572
|
}
|
|
3559
|
-
function
|
|
3573
|
+
function Un() {
|
|
3560
3574
|
const e = [];
|
|
3561
3575
|
return {
|
|
3562
3576
|
when(t, n) {
|
|
@@ -3566,26 +3580,29 @@ function zn() {
|
|
|
3566
3580
|
return e.push([!0, t]), this;
|
|
3567
3581
|
},
|
|
3568
3582
|
done() {
|
|
3569
|
-
return
|
|
3583
|
+
return qn(...e);
|
|
3570
3584
|
}
|
|
3571
3585
|
};
|
|
3572
3586
|
}
|
|
3573
|
-
function
|
|
3587
|
+
function qn(...e) {
|
|
3574
3588
|
for (let t = 0; t < e.length; t++) {
|
|
3575
3589
|
const [n, r] = e[t];
|
|
3576
|
-
if (n)
|
|
3590
|
+
if (n) {
|
|
3591
|
+
const o = typeof r == "function" ? r() : r;
|
|
3592
|
+
return [z(o, `whenChain-branch-${t}`)];
|
|
3593
|
+
}
|
|
3577
3594
|
}
|
|
3578
|
-
return [
|
|
3595
|
+
return [z([], "whenChain-empty")];
|
|
3579
3596
|
}
|
|
3580
|
-
function
|
|
3581
|
-
const n = e ? Array.isArray(e) ? e.filter(
|
|
3597
|
+
function z(e, t) {
|
|
3598
|
+
const n = e ? Array.isArray(e) ? e.filter((r) => r != null) : [e].filter((r) => r != null) : [];
|
|
3582
3599
|
return {
|
|
3583
3600
|
tag: "#anchor",
|
|
3584
3601
|
key: t,
|
|
3585
3602
|
children: n
|
|
3586
3603
|
};
|
|
3587
3604
|
}
|
|
3588
|
-
const
|
|
3605
|
+
const Re = {
|
|
3589
3606
|
/** Simple fade in/out */
|
|
3590
3607
|
fade: {
|
|
3591
3608
|
enterFrom: "opacity-0",
|
|
@@ -3677,7 +3694,7 @@ const Ne = {
|
|
|
3677
3694
|
leaveTo: "rotate-[90deg] opacity-0"
|
|
3678
3695
|
}
|
|
3679
3696
|
};
|
|
3680
|
-
function
|
|
3697
|
+
function ur(e, t) {
|
|
3681
3698
|
const {
|
|
3682
3699
|
preset: n,
|
|
3683
3700
|
show: r,
|
|
@@ -3686,13 +3703,13 @@ function lr(e, t) {
|
|
|
3686
3703
|
appear: s = !1,
|
|
3687
3704
|
css: c = !0,
|
|
3688
3705
|
name: a,
|
|
3689
|
-
enterFrom:
|
|
3706
|
+
enterFrom: u,
|
|
3690
3707
|
enterActive: m,
|
|
3691
3708
|
enterTo: y,
|
|
3692
3709
|
leaveFrom: p,
|
|
3693
3710
|
leaveActive: k,
|
|
3694
|
-
leaveTo:
|
|
3695
|
-
onBeforeEnter:
|
|
3711
|
+
leaveTo: d,
|
|
3712
|
+
onBeforeEnter: f,
|
|
3696
3713
|
onEnter: h,
|
|
3697
3714
|
onAfterEnter: l,
|
|
3698
3715
|
onEnterCancelled: g,
|
|
@@ -3702,15 +3719,15 @@ function lr(e, t) {
|
|
|
3702
3719
|
onLeaveCancelled: E
|
|
3703
3720
|
} = e;
|
|
3704
3721
|
let C;
|
|
3705
|
-
n &&
|
|
3706
|
-
enterFrom:
|
|
3722
|
+
n && Re[n] ? (C = { ...Re[n] }, u && (C.enterFrom = u), m && (C.enterActive = m), y && (C.enterTo = y), p && (C.leaveFrom = p), k && (C.leaveActive = k), d && (C.leaveTo = d)) : C = {
|
|
3723
|
+
enterFrom: u,
|
|
3707
3724
|
enterActive: m,
|
|
3708
3725
|
enterTo: y,
|
|
3709
3726
|
leaveFrom: p,
|
|
3710
3727
|
leaveActive: k,
|
|
3711
|
-
leaveTo:
|
|
3728
|
+
leaveTo: d
|
|
3712
3729
|
};
|
|
3713
|
-
const w = a || (n ? `transition-${n}` : "transition"), T =
|
|
3730
|
+
const w = a || (n ? `transition-${n}` : "transition"), T = z(r ? t : [], w);
|
|
3714
3731
|
return T._transition = {
|
|
3715
3732
|
name: w,
|
|
3716
3733
|
classes: C,
|
|
@@ -3720,7 +3737,7 @@ function lr(e, t) {
|
|
|
3720
3737
|
css: c,
|
|
3721
3738
|
state: r ? "visible" : "hidden",
|
|
3722
3739
|
hooks: {
|
|
3723
|
-
onBeforeEnter:
|
|
3740
|
+
onBeforeEnter: f,
|
|
3724
3741
|
onEnter: h,
|
|
3725
3742
|
onAfterEnter: l,
|
|
3726
3743
|
onEnterCancelled: g,
|
|
@@ -3731,7 +3748,7 @@ function lr(e, t) {
|
|
|
3731
3748
|
}
|
|
3732
3749
|
}, T;
|
|
3733
3750
|
}
|
|
3734
|
-
function
|
|
3751
|
+
function fr(e, t) {
|
|
3735
3752
|
const {
|
|
3736
3753
|
tag: n = "div",
|
|
3737
3754
|
moveClass: r = "transition-transform duration-300",
|
|
@@ -3740,13 +3757,13 @@ function ur(e, t) {
|
|
|
3740
3757
|
mode: s = "default",
|
|
3741
3758
|
duration: c,
|
|
3742
3759
|
appear: a = !1,
|
|
3743
|
-
css:
|
|
3760
|
+
css: u = !0,
|
|
3744
3761
|
name: m,
|
|
3745
3762
|
class: y,
|
|
3746
3763
|
style: p,
|
|
3747
3764
|
enterFrom: k,
|
|
3748
|
-
enterActive:
|
|
3749
|
-
enterTo:
|
|
3765
|
+
enterActive: d,
|
|
3766
|
+
enterTo: f,
|
|
3750
3767
|
leaveFrom: h,
|
|
3751
3768
|
leaveActive: l,
|
|
3752
3769
|
leaveTo: g,
|
|
@@ -3760,34 +3777,34 @@ function ur(e, t) {
|
|
|
3760
3777
|
onLeaveCancelled: $
|
|
3761
3778
|
} = e;
|
|
3762
3779
|
let b;
|
|
3763
|
-
o &&
|
|
3780
|
+
o && Re[o] ? (b = { ...Re[o] }, k && (b.enterFrom = k), d && (b.enterActive = d), f && (b.enterTo = f), h && (b.leaveFrom = h), l && (b.leaveActive = l), g && (b.leaveTo = g)) : b = {
|
|
3764
3781
|
enterFrom: k,
|
|
3765
|
-
enterActive:
|
|
3766
|
-
enterTo:
|
|
3782
|
+
enterActive: d,
|
|
3783
|
+
enterTo: f,
|
|
3767
3784
|
leaveFrom: h,
|
|
3768
3785
|
leaveActive: l,
|
|
3769
3786
|
leaveTo: g
|
|
3770
3787
|
};
|
|
3771
3788
|
const _ = m || (o ? `transition-group-${o}` : "transition-group"), O = [];
|
|
3772
|
-
for (const
|
|
3773
|
-
if (
|
|
3774
|
-
const A = Array.isArray(
|
|
3775
|
-
for (const
|
|
3776
|
-
if (
|
|
3789
|
+
for (const j of i ? t : [])
|
|
3790
|
+
if (j && typeof j == "object" && j.tag === "#anchor") {
|
|
3791
|
+
const A = Array.isArray(j.children) ? j.children : [];
|
|
3792
|
+
for (const M of A)
|
|
3793
|
+
if (M && typeof M == "object") {
|
|
3777
3794
|
const N = {
|
|
3778
|
-
...
|
|
3779
|
-
key:
|
|
3795
|
+
...M,
|
|
3796
|
+
key: j.key || M.key,
|
|
3780
3797
|
props: {
|
|
3781
|
-
...
|
|
3782
|
-
_anchorKey:
|
|
3798
|
+
...M.props,
|
|
3799
|
+
_anchorKey: j.key
|
|
3783
3800
|
// Preserve original anchor key
|
|
3784
3801
|
}
|
|
3785
3802
|
};
|
|
3786
3803
|
O.push(N);
|
|
3787
3804
|
} else
|
|
3788
|
-
O.push(
|
|
3805
|
+
O.push(M);
|
|
3789
3806
|
} else
|
|
3790
|
-
O.push(
|
|
3807
|
+
O.push(j);
|
|
3791
3808
|
return {
|
|
3792
3809
|
tag: n,
|
|
3793
3810
|
children: O,
|
|
@@ -3804,7 +3821,7 @@ function ur(e, t) {
|
|
|
3804
3821
|
mode: s,
|
|
3805
3822
|
duration: c,
|
|
3806
3823
|
appear: a,
|
|
3807
|
-
css:
|
|
3824
|
+
css: u,
|
|
3808
3825
|
hooks: {
|
|
3809
3826
|
onBeforeEnter: v,
|
|
3810
3827
|
onEnter: x,
|
|
@@ -3819,57 +3836,57 @@ function ur(e, t) {
|
|
|
3819
3836
|
}
|
|
3820
3837
|
};
|
|
3821
3838
|
}
|
|
3822
|
-
function
|
|
3839
|
+
function dr(e) {
|
|
3823
3840
|
return { ...e };
|
|
3824
3841
|
}
|
|
3825
|
-
let
|
|
3826
|
-
function
|
|
3827
|
-
if (!
|
|
3842
|
+
let Ve = null;
|
|
3843
|
+
function mt() {
|
|
3844
|
+
if (!Ve) {
|
|
3828
3845
|
const e = [];
|
|
3829
|
-
Object.values(
|
|
3846
|
+
Object.values(Re).forEach((r) => {
|
|
3830
3847
|
r.enterFrom && e.push(r.enterFrom), r.enterActive && e.push(r.enterActive), r.enterTo && e.push(r.enterTo), r.leaveFrom && e.push(r.leaveFrom), r.leaveActive && e.push(r.leaveActive), r.leaveTo && e.push(r.leaveTo);
|
|
3831
3848
|
});
|
|
3832
3849
|
const t = `<div class="${e.join(" ")}"></div>`, n = Xt(t);
|
|
3833
|
-
|
|
3850
|
+
Ve = new CSSStyleSheet(), Ve.replaceSync(n);
|
|
3834
3851
|
}
|
|
3835
|
-
return
|
|
3852
|
+
return Ve;
|
|
3836
3853
|
}
|
|
3837
3854
|
function Kn() {
|
|
3838
|
-
|
|
3855
|
+
mt();
|
|
3839
3856
|
}
|
|
3840
3857
|
Kn();
|
|
3841
3858
|
const Me = [];
|
|
3842
|
-
function
|
|
3859
|
+
function Vn(e, t, n, r, o, i, s, c) {
|
|
3843
3860
|
if (e) {
|
|
3844
3861
|
Me.push(n);
|
|
3845
3862
|
try {
|
|
3846
3863
|
const a = t.render(n);
|
|
3847
3864
|
if (a instanceof Promise) {
|
|
3848
|
-
i(!0), a.then((
|
|
3849
|
-
i(!1), s(null),
|
|
3850
|
-
}).catch((
|
|
3851
|
-
i(!1), s(
|
|
3865
|
+
i(!0), a.then((u) => {
|
|
3866
|
+
i(!1), s(null), Nt(e, u, n, r, o), c(e.innerHTML);
|
|
3867
|
+
}).catch((u) => {
|
|
3868
|
+
i(!1), s(u);
|
|
3852
3869
|
});
|
|
3853
3870
|
return;
|
|
3854
3871
|
}
|
|
3855
|
-
|
|
3872
|
+
Nt(e, a, n, r, o), c(e.innerHTML);
|
|
3856
3873
|
} finally {
|
|
3857
3874
|
Me.pop();
|
|
3858
3875
|
}
|
|
3859
3876
|
}
|
|
3860
3877
|
}
|
|
3861
|
-
function
|
|
3862
|
-
e && (
|
|
3878
|
+
function Nt(e, t, n, r, o) {
|
|
3879
|
+
e && (Tn(
|
|
3863
3880
|
e,
|
|
3864
3881
|
Array.isArray(t) ? t : [t],
|
|
3865
3882
|
n,
|
|
3866
3883
|
r
|
|
3867
3884
|
), o(e.innerHTML));
|
|
3868
3885
|
}
|
|
3869
|
-
function
|
|
3886
|
+
function Zn(e, t, n, r, o, i, s) {
|
|
3870
3887
|
if (i !== null && clearTimeout(i), Date.now() - t < 16) {
|
|
3871
3888
|
if (o(n + 1), n === 15)
|
|
3872
|
-
|
|
3889
|
+
Q(
|
|
3873
3890
|
`⚠️ Component is re-rendering rapidly. This might indicate:
|
|
3874
3891
|
Common causes:
|
|
3875
3892
|
• Event handler calling a function immediately: @click="\${fn()}" should be @click="\${fn}"
|
|
@@ -3888,16 +3905,16 @@ Stopping runaway component render to prevent browser freeze`
|
|
|
3888
3905
|
}
|
|
3889
3906
|
} else
|
|
3890
3907
|
o(0);
|
|
3891
|
-
const
|
|
3908
|
+
const u = setTimeout(() => {
|
|
3892
3909
|
r(Date.now()), e(), s(null);
|
|
3893
3910
|
}, n > 10 ? 100 : 0);
|
|
3894
|
-
s(
|
|
3911
|
+
s(u);
|
|
3895
3912
|
}
|
|
3896
|
-
function
|
|
3913
|
+
function Gn(e, t, n, r, o) {
|
|
3897
3914
|
if (!e) return;
|
|
3898
3915
|
const i = Xt(n);
|
|
3899
3916
|
if ((!i || i.trim() === "") && !t._computedStyle) {
|
|
3900
|
-
o(null), e.adoptedStyleSheets = [
|
|
3917
|
+
o(null), e.adoptedStyleSheets = [jt(), mt()];
|
|
3901
3918
|
return;
|
|
3902
3919
|
}
|
|
3903
3920
|
let s = "";
|
|
@@ -3907,22 +3924,22 @@ ${i}
|
|
|
3907
3924
|
`);
|
|
3908
3925
|
c = Gt(c);
|
|
3909
3926
|
let a = r;
|
|
3910
|
-
a || (a = new CSSStyleSheet()), (a.cssRules.length === 0 || a.cssRules.length > 0 && Array.from(a.cssRules).map((m) => m.cssText).join("") !== c) && a.replaceSync(c), e.adoptedStyleSheets = [
|
|
3927
|
+
a || (a = new CSSStyleSheet()), (a.cssRules.length === 0 || a.cssRules.length > 0 && Array.from(a.cssRules).map((m) => m.cssText).join("") !== c) && a.replaceSync(c), e.adoptedStyleSheets = [jt(), mt(), a], o(a);
|
|
3911
3928
|
}
|
|
3912
3929
|
let W = null;
|
|
3913
|
-
function
|
|
3930
|
+
function Rt(e) {
|
|
3914
3931
|
W = e;
|
|
3915
3932
|
}
|
|
3916
|
-
function
|
|
3933
|
+
function ft() {
|
|
3917
3934
|
W = null;
|
|
3918
3935
|
}
|
|
3919
|
-
function
|
|
3936
|
+
function pr() {
|
|
3920
3937
|
if (!W)
|
|
3921
3938
|
throw new Error("useEmit must be called during component render");
|
|
3922
3939
|
const e = W.emit;
|
|
3923
3940
|
return (t, n) => e(t, n);
|
|
3924
3941
|
}
|
|
3925
|
-
function
|
|
3942
|
+
function Se(e) {
|
|
3926
3943
|
e._hookCallbacks || Object.defineProperty(e, "_hookCallbacks", {
|
|
3927
3944
|
value: {},
|
|
3928
3945
|
writable: !0,
|
|
@@ -3930,30 +3947,30 @@ function _e(e) {
|
|
|
3930
3947
|
configurable: !1
|
|
3931
3948
|
});
|
|
3932
3949
|
}
|
|
3933
|
-
function
|
|
3950
|
+
function hr(e) {
|
|
3934
3951
|
if (!W)
|
|
3935
3952
|
throw new Error("useOnConnected must be called during component render");
|
|
3936
|
-
|
|
3953
|
+
Se(W), W._hookCallbacks.onConnected = e;
|
|
3937
3954
|
}
|
|
3938
|
-
function
|
|
3955
|
+
function gr(e) {
|
|
3939
3956
|
if (!W)
|
|
3940
3957
|
throw new Error("useOnDisconnected must be called during component render");
|
|
3941
|
-
|
|
3958
|
+
Se(W), W._hookCallbacks.onDisconnected = e;
|
|
3942
3959
|
}
|
|
3943
|
-
function
|
|
3960
|
+
function mr(e) {
|
|
3944
3961
|
if (!W)
|
|
3945
3962
|
throw new Error("useOnAttributeChanged must be called during component render");
|
|
3946
|
-
|
|
3963
|
+
Se(W), W._hookCallbacks.onAttributeChanged = e;
|
|
3947
3964
|
}
|
|
3948
|
-
function
|
|
3965
|
+
function yr(e) {
|
|
3949
3966
|
if (!W)
|
|
3950
3967
|
throw new Error("useOnError must be called during component render");
|
|
3951
|
-
|
|
3968
|
+
Se(W), W._hookCallbacks.onError = e;
|
|
3952
3969
|
}
|
|
3953
|
-
function
|
|
3970
|
+
function br(e) {
|
|
3954
3971
|
if (!W)
|
|
3955
3972
|
throw new Error("useProps must be called during component render");
|
|
3956
|
-
|
|
3973
|
+
Se(W), W._hookCallbacks.props = {
|
|
3957
3974
|
...W._hookCallbacks.props || {},
|
|
3958
3975
|
...e
|
|
3959
3976
|
};
|
|
@@ -3973,7 +3990,7 @@ function yr(e) {
|
|
|
3973
3990
|
try {
|
|
3974
3991
|
const a = t && t._host;
|
|
3975
3992
|
if (a) {
|
|
3976
|
-
const
|
|
3993
|
+
const u = oe(o), m = a.getAttribute(u);
|
|
3977
3994
|
if (m !== null) {
|
|
3978
3995
|
const y = typeof e[o];
|
|
3979
3996
|
return y === "boolean" ? m === "" || m === "true" : y === "number" ? Number(m) : m;
|
|
@@ -4004,7 +4021,7 @@ function yr(e) {
|
|
|
4004
4021
|
const c = t && t._host;
|
|
4005
4022
|
if (c) {
|
|
4006
4023
|
if (c instanceof HTMLElement || typeof c.getAttribute == "function" && typeof c.hasAttribute == "function") {
|
|
4007
|
-
const
|
|
4024
|
+
const u = o.replace(/([A-Z])/g, "-$1").toLowerCase(), m = c.getAttribute(u);
|
|
4008
4025
|
if (m !== null)
|
|
4009
4026
|
return typeof i == "boolean" ? m === "" || m === "true" : typeof i == "number" ? Number(m) : m;
|
|
4010
4027
|
}
|
|
@@ -4028,10 +4045,10 @@ function yr(e) {
|
|
|
4028
4045
|
}
|
|
4029
4046
|
});
|
|
4030
4047
|
}
|
|
4031
|
-
function
|
|
4048
|
+
function vr(e) {
|
|
4032
4049
|
if (!W)
|
|
4033
4050
|
throw new Error("useStyle must be called during component render");
|
|
4034
|
-
|
|
4051
|
+
Se(W);
|
|
4035
4052
|
try {
|
|
4036
4053
|
const t = e();
|
|
4037
4054
|
Object.defineProperty(W, "_computedStyle", {
|
|
@@ -4041,7 +4058,7 @@ function br(e) {
|
|
|
4041
4058
|
configurable: !0
|
|
4042
4059
|
});
|
|
4043
4060
|
} catch (t) {
|
|
4044
|
-
|
|
4061
|
+
Q("Error in useStyle callback:", t), Object.defineProperty(W, "_computedStyle", {
|
|
4045
4062
|
value: "",
|
|
4046
4063
|
writable: !0,
|
|
4047
4064
|
enumerable: !1,
|
|
@@ -4049,12 +4066,12 @@ function br(e) {
|
|
|
4049
4066
|
});
|
|
4050
4067
|
}
|
|
4051
4068
|
}
|
|
4052
|
-
const
|
|
4069
|
+
const _e = /* @__PURE__ */ new Map(), Dt = Symbol.for("cer.registry");
|
|
4053
4070
|
if (typeof window < "u") {
|
|
4054
4071
|
const e = globalThis;
|
|
4055
|
-
e[
|
|
4072
|
+
e[Dt] || (e[Dt] = _e);
|
|
4056
4073
|
}
|
|
4057
|
-
function
|
|
4074
|
+
function Jn(e, t) {
|
|
4058
4075
|
if (!t.render)
|
|
4059
4076
|
throw new Error("Component must have a render function");
|
|
4060
4077
|
return typeof window > "u" ? class {
|
|
@@ -4097,11 +4114,11 @@ function Gn(e, t) {
|
|
|
4097
4114
|
_templateLoading = !1;
|
|
4098
4115
|
_templateError = null;
|
|
4099
4116
|
constructor() {
|
|
4100
|
-
super(), this.attachShadow({ mode: "open" }), this._cfg =
|
|
4117
|
+
super(), this.attachShadow({ mode: "open" }), this._cfg = _e.get(e) || t, this._componentId = `${e}-${Math.random().toString(36).substr(2, 9)}`;
|
|
4101
4118
|
const n = this._initContext(t), r = (i, s, c) => {
|
|
4102
4119
|
Object.defineProperty(i, s, { value: c, writable: !1, enumerable: !1, configurable: !1 });
|
|
4103
4120
|
};
|
|
4104
|
-
r(n, "refs", this._refs), r(n, "requestRender", () => this.requestRender()), r(n, "_requestRender", () => this._requestRender()), r(n, "_componentId", this._componentId), r(n, "_triggerWatchers", (i, s) => this._triggerWatchers(i, s)), this.context = n,
|
|
4121
|
+
r(n, "refs", this._refs), r(n, "requestRender", () => this.requestRender()), r(n, "_requestRender", () => this._requestRender()), r(n, "_componentId", this._componentId), r(n, "_triggerWatchers", (i, s) => this._triggerWatchers(i, s)), this.context = n, P(() => {
|
|
4105
4122
|
r(n, "_host", this);
|
|
4106
4123
|
}), r(this.context, "emit", (i, s, c) => {
|
|
4107
4124
|
const a = {
|
|
@@ -4109,18 +4126,18 @@ function Gn(e, t) {
|
|
|
4109
4126
|
bubbles: !0,
|
|
4110
4127
|
composed: !0,
|
|
4111
4128
|
...c || {}
|
|
4112
|
-
},
|
|
4113
|
-
this.dispatchEvent(
|
|
4129
|
+
}, u = new CustomEvent(i, a);
|
|
4130
|
+
this.dispatchEvent(u);
|
|
4114
4131
|
const m = i.indexOf(":");
|
|
4115
4132
|
if (m > 0) {
|
|
4116
|
-
const y = i.substring(0, m), p = i.substring(m + 1), k = p.includes("-") ? `${y}:${p.split("-").map((
|
|
4117
|
-
k !== i &&
|
|
4133
|
+
const y = i.substring(0, m), p = i.substring(m + 1), k = p.includes("-") ? `${y}:${p.split("-").map((d, f) => f === 0 ? d : d.charAt(0).toUpperCase() + d.slice(1)).join("")}` : `${y}:${p.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
4134
|
+
k !== i && P(() => {
|
|
4118
4135
|
this.dispatchEvent(new CustomEvent(k, a));
|
|
4119
4136
|
});
|
|
4120
4137
|
}
|
|
4121
|
-
return !
|
|
4138
|
+
return !u.defaultPrevented;
|
|
4122
4139
|
});
|
|
4123
|
-
const o =
|
|
4140
|
+
const o = _e.get(e) || t;
|
|
4124
4141
|
for (const i in o) {
|
|
4125
4142
|
const s = o[i];
|
|
4126
4143
|
typeof s == "function" && (this.context[i] = (...c) => s(...c, this.context));
|
|
@@ -4144,14 +4161,14 @@ function Gn(e, t) {
|
|
|
4144
4161
|
}
|
|
4145
4162
|
connectedCallback() {
|
|
4146
4163
|
this._runLogicWithinErrorBoundary(t, () => {
|
|
4147
|
-
this._applyProps(t), this._requestRender(),
|
|
4164
|
+
this._applyProps(t), this._requestRender(), dn(t, this.context, this._mounted, (n) => {
|
|
4148
4165
|
this._mounted = n;
|
|
4149
4166
|
});
|
|
4150
4167
|
});
|
|
4151
4168
|
}
|
|
4152
4169
|
disconnectedCallback() {
|
|
4153
4170
|
this._runLogicWithinErrorBoundary(t, () => {
|
|
4154
|
-
|
|
4171
|
+
pn(
|
|
4155
4172
|
t,
|
|
4156
4173
|
this.context,
|
|
4157
4174
|
this._listeners,
|
|
@@ -4175,7 +4192,7 @@ function Gn(e, t) {
|
|
|
4175
4192
|
}
|
|
4176
4193
|
attributeChangedCallback(n, r, o) {
|
|
4177
4194
|
this._runLogicWithinErrorBoundary(t, () => {
|
|
4178
|
-
this._applyProps(t), r !== o && this._requestRender(),
|
|
4195
|
+
this._applyProps(t), r !== o && this._requestRender(), hn(t, n, r, o, this.context);
|
|
4179
4196
|
});
|
|
4180
4197
|
}
|
|
4181
4198
|
static get observedAttributes() {
|
|
@@ -4184,7 +4201,7 @@ function Gn(e, t) {
|
|
|
4184
4201
|
// --- Render ---
|
|
4185
4202
|
_render(n) {
|
|
4186
4203
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
4187
|
-
|
|
4204
|
+
Vn(
|
|
4188
4205
|
this.shadowRoot,
|
|
4189
4206
|
n,
|
|
4190
4207
|
this.context,
|
|
@@ -4208,7 +4225,7 @@ function Gn(e, t) {
|
|
|
4208
4225
|
_requestRender() {
|
|
4209
4226
|
this._runLogicWithinErrorBoundary(this._cfg, () => {
|
|
4210
4227
|
ve(() => {
|
|
4211
|
-
|
|
4228
|
+
Zn(
|
|
4212
4229
|
() => this._render(this._cfg),
|
|
4213
4230
|
this._lastRenderTime,
|
|
4214
4231
|
this._renderCount,
|
|
@@ -4229,7 +4246,7 @@ function Gn(e, t) {
|
|
|
4229
4246
|
// --- Style ---
|
|
4230
4247
|
_applyStyle(n, r) {
|
|
4231
4248
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
4232
|
-
|
|
4249
|
+
Gn(
|
|
4233
4250
|
this.shadowRoot,
|
|
4234
4251
|
this.context,
|
|
4235
4252
|
r,
|
|
@@ -4246,7 +4263,21 @@ function Gn(e, t) {
|
|
|
4246
4263
|
try {
|
|
4247
4264
|
r();
|
|
4248
4265
|
} catch (o) {
|
|
4249
|
-
this._hasError = !0
|
|
4266
|
+
this._hasError = !0;
|
|
4267
|
+
try {
|
|
4268
|
+
const i = n && n.tag || this.tagName?.toLowerCase?.() || "<unknown>", s = this._componentId || "<unknown-id>", c = {};
|
|
4269
|
+
if (n && n.props)
|
|
4270
|
+
for (const a of Object.keys(n.props))
|
|
4271
|
+
try {
|
|
4272
|
+
const u = this.context[a];
|
|
4273
|
+
u instanceof Node ? c[a] = `[DOM Node: ${u.nodeName}]` : typeof u == "object" && u !== null ? c[a] = Object.keys(u).length > 5 ? `[object(${Object.keys(u).length} keys)]` : u : c[a] = u;
|
|
4274
|
+
} catch {
|
|
4275
|
+
c[a] = "[unreadable]";
|
|
4276
|
+
}
|
|
4277
|
+
H(`Error rendering component <${i}> (id=${s}):`, o), H("Component props snapshot:", c), Q("Common causes: accessing properties of null/undefined inside template interpolations; expensive or throwing expressions inside templates that evaluate eagerly. Fixes: use optional chaining (obj?.prop), guard with ternary, or use the runtime lazy overload: when(cond, () => html`...`).");
|
|
4278
|
+
} catch {
|
|
4279
|
+
}
|
|
4280
|
+
n.onError && n.onError(o, this.context);
|
|
4250
4281
|
}
|
|
4251
4282
|
}
|
|
4252
4283
|
// --- State, props, computed ---
|
|
@@ -4255,8 +4286,8 @@ function Gn(e, t) {
|
|
|
4255
4286
|
let r = function(i, s = "") {
|
|
4256
4287
|
if (Array.isArray(i))
|
|
4257
4288
|
return new Proxy(i, {
|
|
4258
|
-
get(c, a,
|
|
4259
|
-
const m = Reflect.get(c, a,
|
|
4289
|
+
get(c, a, u) {
|
|
4290
|
+
const m = Reflect.get(c, a, u);
|
|
4260
4291
|
return typeof m == "function" && typeof a == "string" && [
|
|
4261
4292
|
"push",
|
|
4262
4293
|
"pop",
|
|
@@ -4268,8 +4299,8 @@ function Gn(e, t) {
|
|
|
4268
4299
|
].includes(a) ? function(...p) {
|
|
4269
4300
|
const k = m.apply(c, p);
|
|
4270
4301
|
if (!o._initializing) {
|
|
4271
|
-
const
|
|
4272
|
-
o._triggerWatchers(
|
|
4302
|
+
const d = s || "root";
|
|
4303
|
+
o._triggerWatchers(d, c), ve(
|
|
4273
4304
|
() => o._render(n),
|
|
4274
4305
|
o._componentId
|
|
4275
4306
|
);
|
|
@@ -4277,17 +4308,17 @@ function Gn(e, t) {
|
|
|
4277
4308
|
return k;
|
|
4278
4309
|
} : m;
|
|
4279
4310
|
},
|
|
4280
|
-
set(c, a,
|
|
4281
|
-
if (c[a] =
|
|
4311
|
+
set(c, a, u) {
|
|
4312
|
+
if (c[a] = u, !o._initializing) {
|
|
4282
4313
|
const m = s ? `${s}.${String(a)}` : String(a);
|
|
4283
|
-
o._triggerWatchers(m,
|
|
4314
|
+
o._triggerWatchers(m, u), ve(() => o._render(n), o._componentId);
|
|
4284
4315
|
}
|
|
4285
4316
|
return !0;
|
|
4286
4317
|
},
|
|
4287
4318
|
deleteProperty(c, a) {
|
|
4288
4319
|
if (delete c[a], !o._initializing) {
|
|
4289
|
-
const
|
|
4290
|
-
o._triggerWatchers(
|
|
4320
|
+
const u = s ? `${s}.${String(a)}` : String(a);
|
|
4321
|
+
o._triggerWatchers(u, void 0), ve(() => o._render(n), o._componentId);
|
|
4291
4322
|
}
|
|
4292
4323
|
return !0;
|
|
4293
4324
|
}
|
|
@@ -4300,12 +4331,12 @@ function Gn(e, t) {
|
|
|
4300
4331
|
i[c] = r(i[c], a);
|
|
4301
4332
|
}
|
|
4302
4333
|
return new Proxy(i, {
|
|
4303
|
-
set(c, a,
|
|
4334
|
+
set(c, a, u) {
|
|
4304
4335
|
const m = s ? `${s}.${String(a)}` : String(a);
|
|
4305
|
-
return c[a] = r(
|
|
4336
|
+
return c[a] = r(u, m), o._initializing || (o._triggerWatchers(m, c[a]), ve(() => o._render(n), o._componentId)), !0;
|
|
4306
4337
|
},
|
|
4307
|
-
get(c, a,
|
|
4308
|
-
return Reflect.get(c, a,
|
|
4338
|
+
get(c, a, u) {
|
|
4339
|
+
return Reflect.get(c, a, u);
|
|
4309
4340
|
}
|
|
4310
4341
|
});
|
|
4311
4342
|
}
|
|
@@ -4328,7 +4359,7 @@ function Gn(e, t) {
|
|
|
4328
4359
|
}
|
|
4329
4360
|
_initWatchers(n) {
|
|
4330
4361
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
4331
|
-
|
|
4362
|
+
cn(
|
|
4332
4363
|
this.context,
|
|
4333
4364
|
this._watchers,
|
|
4334
4365
|
{}
|
|
@@ -4337,12 +4368,12 @@ function Gn(e, t) {
|
|
|
4337
4368
|
});
|
|
4338
4369
|
}
|
|
4339
4370
|
_triggerWatchers(n, r) {
|
|
4340
|
-
|
|
4371
|
+
ln(this.context, this._watchers, n, r);
|
|
4341
4372
|
}
|
|
4342
4373
|
_applyProps(n) {
|
|
4343
4374
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
4344
4375
|
try {
|
|
4345
|
-
|
|
4376
|
+
fn(this, n, this.context);
|
|
4346
4377
|
} catch (r) {
|
|
4347
4378
|
this._hasError = !0, n.onError && n.onError(r, this.context);
|
|
4348
4379
|
}
|
|
@@ -4350,7 +4381,7 @@ function Gn(e, t) {
|
|
|
4350
4381
|
}
|
|
4351
4382
|
};
|
|
4352
4383
|
}
|
|
4353
|
-
function
|
|
4384
|
+
function Ht(e, t) {
|
|
4354
4385
|
let n = oe(e);
|
|
4355
4386
|
n.includes("-") || (n = `cer-${n}`);
|
|
4356
4387
|
let r = {};
|
|
@@ -4376,45 +4407,75 @@ function Dt(e, t) {
|
|
|
4376
4407
|
i.requestRender && i.requestRender();
|
|
4377
4408
|
});
|
|
4378
4409
|
try {
|
|
4379
|
-
|
|
4380
|
-
|
|
4410
|
+
Rt(i);
|
|
4411
|
+
let c;
|
|
4412
|
+
try {
|
|
4413
|
+
c = t();
|
|
4414
|
+
} catch (a) {
|
|
4415
|
+
try {
|
|
4416
|
+
const u = i?._hookCallbacks;
|
|
4417
|
+
if (u && typeof u.onError == "function")
|
|
4418
|
+
try {
|
|
4419
|
+
u.onError(a);
|
|
4420
|
+
} catch {
|
|
4421
|
+
}
|
|
4422
|
+
} catch {
|
|
4423
|
+
}
|
|
4424
|
+
throw a;
|
|
4425
|
+
}
|
|
4381
4426
|
if (i._hookCallbacks) {
|
|
4382
4427
|
const a = i._hookCallbacks;
|
|
4383
4428
|
if (a.onConnected && (r.onConnected = a.onConnected), a.onDisconnected && (r.onDisconnected = a.onDisconnected), a.onAttributeChanged && (r.onAttributeChanged = a.onAttributeChanged), a.onError && (r.onError = a.onError), a.style && (i._styleCallback = a.style), a.props) {
|
|
4384
|
-
const
|
|
4429
|
+
const u = a.props;
|
|
4385
4430
|
o.props = Object.fromEntries(
|
|
4386
|
-
Object.entries(
|
|
4387
|
-
),
|
|
4431
|
+
Object.entries(u).map(([m, y]) => [m, { type: typeof y == "boolean" ? Boolean : typeof y == "number" ? Number : typeof y == "string" ? String : Function, default: y }])
|
|
4432
|
+
), _e.set(n, o);
|
|
4388
4433
|
}
|
|
4389
4434
|
}
|
|
4390
4435
|
return c;
|
|
4391
4436
|
} finally {
|
|
4392
|
-
|
|
4437
|
+
ft(), Y.clearCurrentComponent();
|
|
4393
4438
|
}
|
|
4394
4439
|
}
|
|
4395
4440
|
};
|
|
4396
|
-
if (
|
|
4441
|
+
if (_e.set(n, o), typeof window < "u") {
|
|
4397
4442
|
try {
|
|
4398
4443
|
const i = {
|
|
4399
4444
|
_hookCallbacks: {},
|
|
4400
4445
|
requestRender: () => {
|
|
4401
4446
|
}
|
|
4402
4447
|
};
|
|
4403
|
-
|
|
4448
|
+
Rt(i);
|
|
4449
|
+
try {
|
|
4450
|
+
t();
|
|
4451
|
+
} catch (s) {
|
|
4452
|
+
try {
|
|
4453
|
+
const c = i?._hookCallbacks;
|
|
4454
|
+
if (c && typeof c.onError == "function")
|
|
4455
|
+
try {
|
|
4456
|
+
c.onError(s);
|
|
4457
|
+
} catch {
|
|
4458
|
+
}
|
|
4459
|
+
H(`Error during component discovery render <${n}>:`, s), Q("Error occurred during initial component discovery render. Consider guarding expensive expressions or using lazy factories for directives like when().");
|
|
4460
|
+
} catch {
|
|
4461
|
+
}
|
|
4462
|
+
throw ft(), s;
|
|
4463
|
+
}
|
|
4464
|
+
if (ft(), i._hookCallbacks?.props) {
|
|
4404
4465
|
const s = i._hookCallbacks.props;
|
|
4405
4466
|
o.props = Object.fromEntries(
|
|
4406
4467
|
Object.entries(s).map(([c, a]) => [c, { type: typeof a == "boolean" ? Boolean : typeof a == "number" ? Number : typeof a == "string" ? String : Function, default: a }])
|
|
4407
|
-
),
|
|
4468
|
+
), _e.set(n, o);
|
|
4408
4469
|
}
|
|
4409
4470
|
} catch {
|
|
4410
4471
|
}
|
|
4411
4472
|
customElements.get(n) || customElements.define(
|
|
4412
4473
|
n,
|
|
4413
|
-
|
|
4474
|
+
Jn(n, o)
|
|
4414
4475
|
);
|
|
4415
4476
|
}
|
|
4416
4477
|
}
|
|
4417
|
-
class
|
|
4478
|
+
class Xn {
|
|
4418
4479
|
map = /* @__PURE__ */ new Map();
|
|
4419
4480
|
maxSize;
|
|
4420
4481
|
constructor(t) {
|
|
@@ -4438,17 +4499,17 @@ class Jn {
|
|
|
4438
4499
|
this.map.clear();
|
|
4439
4500
|
}
|
|
4440
4501
|
}
|
|
4441
|
-
const
|
|
4442
|
-
function
|
|
4502
|
+
const dt = new Xn(500);
|
|
4503
|
+
function Yn(e, t) {
|
|
4443
4504
|
if (e == null) {
|
|
4444
|
-
|
|
4505
|
+
Q(
|
|
4445
4506
|
`⚠️ Event handler for '@${t}' is ${e}. This will prevent the event from working. Use a function reference instead: @${t}="\${functionName}"`
|
|
4446
4507
|
);
|
|
4447
4508
|
return;
|
|
4448
4509
|
}
|
|
4449
|
-
typeof e != "function" &&
|
|
4510
|
+
typeof e != "function" && Q(
|
|
4450
4511
|
`🚨 Potential infinite loop detected! Event handler for '@${t}' appears to be the result of a function call (${typeof e}) instead of a function reference. Change @${t}="\${functionName()}" to @${t}="\${functionName}" to pass the function reference instead of calling it immediately.`
|
|
4451
|
-
), e === void 0 && typeof e != "function" &&
|
|
4512
|
+
), e === void 0 && typeof e != "function" && Q(
|
|
4452
4513
|
`💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${t}="\${fn}" not @${t}="\${fn()}"`
|
|
4453
4514
|
);
|
|
4454
4515
|
}
|
|
@@ -4456,51 +4517,51 @@ function he(e, t = {}, n, r) {
|
|
|
4456
4517
|
const o = r ?? t.key;
|
|
4457
4518
|
return { tag: e, key: o, props: t, children: n };
|
|
4458
4519
|
}
|
|
4459
|
-
function
|
|
4520
|
+
function Ne(e) {
|
|
4460
4521
|
return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
|
|
4461
4522
|
}
|
|
4462
|
-
function
|
|
4463
|
-
return typeof e == "object" && e !== null && "tag" in e && !
|
|
4523
|
+
function Pe(e) {
|
|
4524
|
+
return typeof e == "object" && e !== null && "tag" in e && !Ne(e);
|
|
4464
4525
|
}
|
|
4465
|
-
function
|
|
4526
|
+
function Qn(e, t) {
|
|
4466
4527
|
return e.key != null ? e : { ...e, key: t };
|
|
4467
4528
|
}
|
|
4468
|
-
function
|
|
4529
|
+
function er(e, t = [], n = {}) {
|
|
4469
4530
|
const r = {}, o = {}, i = {}, s = [], c = /([:@#]?)([a-zA-Z0-9-:\.]+)(?:=("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'))?/g;
|
|
4470
4531
|
let a;
|
|
4471
4532
|
for (; a = c.exec(e); ) {
|
|
4472
|
-
const
|
|
4473
|
-
let
|
|
4474
|
-
k || (
|
|
4475
|
-
const
|
|
4476
|
-
if (
|
|
4533
|
+
const u = a[1], m = a[2], y = (a[4] || a[6]) ?? "", p = a[3] === void 0 && a[6] === void 0, k = y.match(/^{{(\d+)}}$/);
|
|
4534
|
+
let d = p ? !0 : k ? t[Number(k[1])] ?? null : y;
|
|
4535
|
+
k || (d === "true" ? d = !0 : d === "false" ? d = !1 : d === "null" ? d = null : isNaN(Number(d)) || (d = Number(d)));
|
|
4536
|
+
const f = ["model", "bind", "show", "class", "style", "ref", "when"];
|
|
4537
|
+
if (u === ":") {
|
|
4477
4538
|
const [h, l] = m.split(":"), [g, ...v] = h.split(".");
|
|
4478
|
-
if (
|
|
4539
|
+
if (f.includes(g)) {
|
|
4479
4540
|
const x = [...v], S = g === "model" && l ? `model:${l}` : g;
|
|
4480
4541
|
i[S] = {
|
|
4481
|
-
value:
|
|
4542
|
+
value: d,
|
|
4482
4543
|
modifiers: x,
|
|
4483
4544
|
arg: l
|
|
4484
4545
|
};
|
|
4485
4546
|
} else if (m === "disabled") {
|
|
4486
|
-
let x =
|
|
4547
|
+
let x = d;
|
|
4487
4548
|
x && R(x) && (x = x.value);
|
|
4488
4549
|
const S = typeof x;
|
|
4489
4550
|
if (x === "" || S === "boolean" || S === "string" && (x === "true" || x === "false") || x == null || S === "number")
|
|
4490
4551
|
r[m] = x;
|
|
4491
4552
|
else {
|
|
4492
|
-
let w =
|
|
4553
|
+
let w = d;
|
|
4493
4554
|
w && R(w) && (w = w.value), o[m] = w;
|
|
4494
4555
|
}
|
|
4495
4556
|
s.push(m);
|
|
4496
4557
|
} else {
|
|
4497
|
-
let x =
|
|
4558
|
+
let x = d;
|
|
4498
4559
|
x && R(x) && (x = x.value), o[m] = x, s.push(m);
|
|
4499
4560
|
}
|
|
4500
|
-
} else if (
|
|
4561
|
+
} else if (u === "@") {
|
|
4501
4562
|
const [h, ...l] = m.split("."), g = l;
|
|
4502
|
-
|
|
4503
|
-
const v = typeof
|
|
4563
|
+
Yn(d, h);
|
|
4564
|
+
const v = typeof d == "function" ? d : typeof n[d] == "function" ? n[d] : void 0;
|
|
4504
4565
|
if (v) {
|
|
4505
4566
|
const x = (E) => {
|
|
4506
4567
|
if (g.includes("prevent") && E.preventDefault(), g.includes("stop") && E.stopPropagation(), !(g.includes("self") && E.target !== E.currentTarget))
|
|
@@ -4508,32 +4569,32 @@ function Qn(e, t = [], n = {}) {
|
|
|
4508
4569
|
}, S = "on" + h.charAt(0).toUpperCase() + h.slice(1);
|
|
4509
4570
|
r[S] = x;
|
|
4510
4571
|
}
|
|
4511
|
-
} else m === "ref" ? r.ref =
|
|
4572
|
+
} else m === "ref" ? r.ref = d : o[m] = d;
|
|
4512
4573
|
}
|
|
4513
4574
|
return { props: r, attrs: o, directives: i, bound: s };
|
|
4514
4575
|
}
|
|
4515
|
-
function
|
|
4516
|
-
if (!
|
|
4576
|
+
function yt(e) {
|
|
4577
|
+
if (!Pe(e) || Ne(e))
|
|
4517
4578
|
return e;
|
|
4518
4579
|
const t = e.props?.directives;
|
|
4519
4580
|
if (t && t.when) {
|
|
4520
|
-
const n = t.when.value, { when:
|
|
4521
|
-
Object.keys(
|
|
4522
|
-
const
|
|
4581
|
+
const n = t.when.value, r = R(n) ? n.value : n, { when: o, ...i } = t, s = { ...e.props };
|
|
4582
|
+
Object.keys(i).length > 0 ? s.directives = i : delete s.directives;
|
|
4583
|
+
const c = {
|
|
4523
4584
|
...e,
|
|
4524
|
-
props:
|
|
4585
|
+
props: s
|
|
4525
4586
|
};
|
|
4526
|
-
return Array.isArray(
|
|
4527
|
-
(
|
|
4587
|
+
return Array.isArray(c.children) && (c.children = c.children.map(
|
|
4588
|
+
(u) => typeof u == "object" && u !== null ? yt(u) : u
|
|
4528
4589
|
)), {
|
|
4529
4590
|
tag: "#anchor",
|
|
4530
4591
|
key: e.key != null ? `when-${e.key}` : `when-${e.tag}`,
|
|
4531
|
-
children:
|
|
4592
|
+
children: r ? [c] : []
|
|
4532
4593
|
};
|
|
4533
4594
|
}
|
|
4534
4595
|
if (Array.isArray(e.children)) {
|
|
4535
4596
|
const n = e.children.map(
|
|
4536
|
-
(r) => typeof r == "object" && r !== null ?
|
|
4597
|
+
(r) => typeof r == "object" && r !== null ? yt(r) : r
|
|
4537
4598
|
);
|
|
4538
4599
|
return {
|
|
4539
4600
|
...e,
|
|
@@ -4542,10 +4603,10 @@ function gt(e) {
|
|
|
4542
4603
|
}
|
|
4543
4604
|
return e;
|
|
4544
4605
|
}
|
|
4545
|
-
function
|
|
4606
|
+
function tr(e, t, n) {
|
|
4546
4607
|
const r = Me.length > 0 ? Me[Me.length - 1] : void 0, o = n ?? r, i = !n && t.length === 0, s = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
|
|
4547
4608
|
if (i && s) {
|
|
4548
|
-
const w =
|
|
4609
|
+
const w = dt.get(s);
|
|
4549
4610
|
if (w) return w;
|
|
4550
4611
|
}
|
|
4551
4612
|
function c(w, T) {
|
|
@@ -4555,31 +4616,31 @@ function er(e, t, n) {
|
|
|
4555
4616
|
const $ = typeof w == "string" ? ue(w) : w;
|
|
4556
4617
|
return he("#text", {}, $, T);
|
|
4557
4618
|
}
|
|
4558
|
-
let
|
|
4619
|
+
let u = "";
|
|
4559
4620
|
for (let w = 0; w < e.length; w++)
|
|
4560
|
-
|
|
4621
|
+
u += e[w], w < t.length && (u += `{{${w}}}`);
|
|
4561
4622
|
const m = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, y = [];
|
|
4562
|
-
let p, k = [],
|
|
4623
|
+
let p, k = [], d = null, f = {}, h, l = 0, g = [];
|
|
4563
4624
|
function v(w) {
|
|
4564
|
-
!w || typeof w != "object" ||
|
|
4565
|
-
if (T === "style" &&
|
|
4566
|
-
const $ =
|
|
4625
|
+
!w || typeof w != "object" || Ne(w) || (w.props || w.attrs ? (w.props && (f.props || (f.props = {}), Object.assign(f.props, w.props)), w.attrs && (f.attrs || (f.attrs = {}), Object.keys(w.attrs).forEach((T) => {
|
|
4626
|
+
if (T === "style" && f.attrs.style) {
|
|
4627
|
+
const $ = f.attrs.style.replace(
|
|
4567
4628
|
/;?\s*$/,
|
|
4568
4629
|
""
|
|
4569
4630
|
), b = w.attrs.style.replace(/^;?\s*/, "");
|
|
4570
|
-
|
|
4571
|
-
} else if (T === "class" &&
|
|
4572
|
-
const $ =
|
|
4631
|
+
f.attrs.style = $ + "; " + b;
|
|
4632
|
+
} else if (T === "class" && f.attrs.class) {
|
|
4633
|
+
const $ = f.attrs.class.trim().split(/\s+/).filter(Boolean), b = w.attrs.class.trim().split(/\s+/).filter(Boolean), _ = [
|
|
4573
4634
|
.../* @__PURE__ */ new Set([...$, ...b])
|
|
4574
4635
|
];
|
|
4575
|
-
|
|
4636
|
+
f.attrs.class = _.join(" ");
|
|
4576
4637
|
} else
|
|
4577
|
-
|
|
4578
|
-
}))) : (
|
|
4638
|
+
f.attrs[T] = w.attrs[T];
|
|
4639
|
+
}))) : (f.props || (f.props = {}), Object.assign(f.props, w)));
|
|
4579
4640
|
}
|
|
4580
4641
|
function x(w, T) {
|
|
4581
|
-
const $ =
|
|
4582
|
-
if (
|
|
4642
|
+
const $ = d ? k : g;
|
|
4643
|
+
if (Ne(w)) {
|
|
4583
4644
|
const b = w.key ?? T;
|
|
4584
4645
|
let _ = w.children;
|
|
4585
4646
|
$.push({
|
|
@@ -4589,20 +4650,20 @@ function er(e, t, n) {
|
|
|
4589
4650
|
});
|
|
4590
4651
|
return;
|
|
4591
4652
|
}
|
|
4592
|
-
if (
|
|
4593
|
-
$.push(
|
|
4653
|
+
if (Pe(w)) {
|
|
4654
|
+
$.push(Qn(w, void 0));
|
|
4594
4655
|
return;
|
|
4595
4656
|
}
|
|
4596
4657
|
if (Array.isArray(w)) {
|
|
4597
4658
|
if (w.length === 0) return;
|
|
4598
4659
|
for (let b = 0; b < w.length; b++) {
|
|
4599
4660
|
const _ = w[b];
|
|
4600
|
-
|
|
4661
|
+
Ne(_) || Pe(_) || Array.isArray(_) ? x(_, `${T}-${b}`) : _ !== null && typeof _ == "object" ? Ct(_) ? $.push(he("#raw", {}, _.__rawHTML, `${T}-${b}`)) : v(_) : $.push(c(String(_), `${T}-${b}`));
|
|
4601
4662
|
}
|
|
4602
4663
|
return;
|
|
4603
4664
|
}
|
|
4604
4665
|
if (w !== null && typeof w == "object") {
|
|
4605
|
-
if (
|
|
4666
|
+
if (Ct(w)) {
|
|
4606
4667
|
const b = w.__rawHTML ?? "";
|
|
4607
4668
|
$.push(he("#raw", {}, b, T));
|
|
4608
4669
|
return;
|
|
@@ -4628,22 +4689,22 @@ function er(e, t, n) {
|
|
|
4628
4689
|
"track",
|
|
4629
4690
|
"wbr"
|
|
4630
4691
|
]);
|
|
4631
|
-
for (; p = m.exec(
|
|
4692
|
+
for (; p = m.exec(u); )
|
|
4632
4693
|
if (!(p[0].startsWith("<!--") && p[0].endsWith("-->"))) {
|
|
4633
4694
|
if (p[1]) {
|
|
4634
4695
|
const w = p[1], T = p[0][1] === "/", $ = p[0][p[0].length - 2] === "/" || S.has(w), {
|
|
4635
4696
|
props: b,
|
|
4636
4697
|
attrs: _,
|
|
4637
4698
|
directives: O,
|
|
4638
|
-
bound:
|
|
4639
|
-
} =
|
|
4640
|
-
for (const
|
|
4641
|
-
for (const
|
|
4642
|
-
A.attrs && Object.prototype.hasOwnProperty.call(A.attrs, "key") && !(A.props && Object.prototype.hasOwnProperty.call(A.props, "key")) &&
|
|
4699
|
+
bound: j
|
|
4700
|
+
} = er(p[2] || "", t, o), A = { props: {}, attrs: {} };
|
|
4701
|
+
for (const M in b) A.props[M] = b[M];
|
|
4702
|
+
for (const M in _) A.attrs[M] = _[M];
|
|
4703
|
+
A.attrs && Object.prototype.hasOwnProperty.call(A.attrs, "key") && !(A.props && Object.prototype.hasOwnProperty.call(A.props, "key")) && P(() => {
|
|
4643
4704
|
A.props.key = A.attrs.key;
|
|
4644
4705
|
});
|
|
4645
4706
|
try {
|
|
4646
|
-
const
|
|
4707
|
+
const M = {
|
|
4647
4708
|
input: ["value", "checked", "readonly", "required", "placeholder", "maxlength", "minlength"],
|
|
4648
4709
|
textarea: ["value", "readonly", "required", "placeholder", "maxlength", "minlength"],
|
|
4649
4710
|
select: ["value", "required", "multiple"],
|
|
@@ -4652,42 +4713,42 @@ function er(e, t, n) {
|
|
|
4652
4713
|
audio: ["muted", "autoplay", "controls", "loop"],
|
|
4653
4714
|
img: ["src", "alt", "width", "height"],
|
|
4654
4715
|
button: ["type", "name", "value", "autofocus", "form"]
|
|
4655
|
-
}, N = w.toLowerCase(), fe =
|
|
4716
|
+
}, N = w.toLowerCase(), fe = M[N] ?? [];
|
|
4656
4717
|
if (A.attrs) {
|
|
4657
|
-
for (const
|
|
4658
|
-
if (
|
|
4659
|
-
let D = A.attrs[
|
|
4718
|
+
for (const U of fe)
|
|
4719
|
+
if (j && j.includes(U) && U in A.attrs && !(A.props && U in A.props)) {
|
|
4720
|
+
let D = A.attrs[U];
|
|
4660
4721
|
if (D && R(D))
|
|
4661
|
-
D = D.value, A.props[
|
|
4722
|
+
D = D.value, A.props[U] = D, delete A.attrs[U];
|
|
4662
4723
|
else {
|
|
4663
|
-
const
|
|
4664
|
-
|
|
4724
|
+
const K = typeof D;
|
|
4725
|
+
U === "disabled" ? (D === "" || K === "boolean" || K === "string" && (D === "true" || D === "false") || D == null || K === "number") && (A.props[U] = D, P(() => {
|
|
4665
4726
|
const I = globalThis;
|
|
4666
|
-
I.__VDOM_DISABLED_PROMOTIONS || (I.__VDOM_DISABLED_PROMOTIONS = []), I.__VDOM_DISABLED_PROMOTIONS.push({ phase: "compiler-promotion", tag: w, propName:
|
|
4667
|
-
}), delete A.attrs[
|
|
4727
|
+
I.__VDOM_DISABLED_PROMOTIONS || (I.__VDOM_DISABLED_PROMOTIONS = []), I.__VDOM_DISABLED_PROMOTIONS.push({ phase: "compiler-promotion", tag: w, propName: U, value: D, time: Date.now(), stack: new Error().stack });
|
|
4728
|
+
}), delete A.attrs[U]) : (D === "" || K === "string" || K === "number" || K === "boolean" || D == null) && (A.props[U] = D, delete A.attrs[U]);
|
|
4668
4729
|
}
|
|
4669
4730
|
}
|
|
4670
4731
|
}
|
|
4671
|
-
if ((w.includes("-") || !!o?.__customElements?.has?.(w)) && (A.isCustomElement = !0,
|
|
4672
|
-
const
|
|
4673
|
-
for (const D of
|
|
4732
|
+
if ((w.includes("-") || !!o?.__customElements?.has?.(w)) && (A.isCustomElement = !0, j && A.attrs)) {
|
|
4733
|
+
const U = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
|
|
4734
|
+
for (const D of j)
|
|
4674
4735
|
if (D in A.attrs && !(A.props && D in A.props)) {
|
|
4675
|
-
const
|
|
4736
|
+
const K = D.includes("-") ? vt(D) : D;
|
|
4676
4737
|
let ie = A.attrs[D];
|
|
4677
|
-
A.props[
|
|
4738
|
+
A.props[K] = ie, U.has(D) || delete A.attrs[D];
|
|
4678
4739
|
}
|
|
4679
4740
|
}
|
|
4680
4741
|
} catch {
|
|
4681
4742
|
}
|
|
4682
|
-
if (O && Object.keys(O).some((
|
|
4743
|
+
if (O && Object.keys(O).some((M) => M === "model" || M.startsWith("model:")))
|
|
4683
4744
|
try {
|
|
4684
|
-
const
|
|
4745
|
+
const M = Symbol.for("cer.registry"), N = globalThis[M], fe = !!(N && typeof N.has == "function" && N.has(w)), Z = !!(o && (o.__customElements instanceof Set && o.__customElements.has(w) || Array.isArray(o.__isCustomElements) && o.__isCustomElements.includes(w)));
|
|
4685
4746
|
if (!!(w.includes("-") || Z || fe))
|
|
4686
|
-
for (const
|
|
4687
|
-
if (
|
|
4688
|
-
const ie = O[
|
|
4747
|
+
for (const K of Object.keys(O)) {
|
|
4748
|
+
if (K !== "model" && !K.startsWith("model:")) continue;
|
|
4749
|
+
const ie = O[K], Ae = ie.arg ?? (K.includes(":") ? K.split(":", 2)[1] : void 0), I = ie.value, ae = Ae ?? "modelValue", L = J, F = Je, V = o ? o._state || o : void 0;
|
|
4689
4750
|
let B;
|
|
4690
|
-
typeof I == "string" && o ? B =
|
|
4751
|
+
typeof I == "string" && o ? B = L(V, I) : B = I, A.props[ae] = B;
|
|
4691
4752
|
try {
|
|
4692
4753
|
const pe = oe(ae);
|
|
4693
4754
|
A.attrs || (A.attrs = {}), B != null && (typeof B == "string" || typeof B == "number" || typeof B == "boolean") && (A.attrs[pe] = B);
|
|
@@ -4702,38 +4763,38 @@ function er(e, t, n) {
|
|
|
4702
4763
|
const me = I.value;
|
|
4703
4764
|
(Array.isArray(ce) && Array.isArray(me) ? JSON.stringify([...ce].sort()) !== JSON.stringify([...me].sort()) : ce !== me) && (I.value = ce, o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
|
|
4704
4765
|
} else {
|
|
4705
|
-
const me =
|
|
4766
|
+
const me = L(V, typeof I == "string" ? I : String(I));
|
|
4706
4767
|
(Array.isArray(ce) && Array.isArray(me) ? JSON.stringify([...ce].sort()) !== JSON.stringify([...me].sort()) : ce !== me) && (F(V, typeof I == "string" ? I : String(I), ce), o?.requestRender ? o.requestRender() : o?._requestRender && o._requestRender());
|
|
4707
4768
|
}
|
|
4708
|
-
}, delete O[
|
|
4769
|
+
}, delete O[K];
|
|
4709
4770
|
}
|
|
4710
4771
|
} catch {
|
|
4711
4772
|
}
|
|
4712
4773
|
if (Object.keys(O).length > 0 && (A.directives = { ...O }), T) {
|
|
4713
|
-
const
|
|
4774
|
+
const M = he(
|
|
4775
|
+
d,
|
|
4714
4776
|
f,
|
|
4715
|
-
|
|
4716
|
-
k.length === 1 && Oe(k[0]) && k[0].tag === "#text" ? typeof k[0].children == "string" ? k[0].children : "" : k.length ? k : void 0,
|
|
4777
|
+
k.length === 1 && Pe(k[0]) && k[0].tag === "#text" ? typeof k[0].children == "string" ? k[0].children : "" : k.length ? k : void 0,
|
|
4717
4778
|
h
|
|
4718
4779
|
), N = y.pop();
|
|
4719
|
-
N ? (
|
|
4720
|
-
} else $ ?
|
|
4721
|
-
tag:
|
|
4722
|
-
props:
|
|
4780
|
+
N ? (d = N.tag, f = N.props, h = N.key, k = N.children, k.push(M)) : (g.push(M), d = null, f = {}, h = void 0, k = []);
|
|
4781
|
+
} else $ ? d ? k.push(he(w, A, void 0, void 0)) : g.push(he(w, A, void 0, void 0)) : (d && y.push({
|
|
4782
|
+
tag: d,
|
|
4783
|
+
props: f,
|
|
4723
4784
|
children: k,
|
|
4724
4785
|
key: h
|
|
4725
|
-
}),
|
|
4786
|
+
}), d = w, f = A, k = []);
|
|
4726
4787
|
} else if (typeof p[3] < "u") {
|
|
4727
4788
|
const w = Number(p[3]), T = t[w], $ = `interp-${w}`;
|
|
4728
4789
|
x(T, $);
|
|
4729
4790
|
} else if (p[4]) {
|
|
4730
|
-
const w = p[4], T =
|
|
4791
|
+
const w = p[4], T = d ? k : g, $ = w.split(/({{\d+}})/);
|
|
4731
4792
|
for (const b of $) {
|
|
4732
4793
|
if (!b) continue;
|
|
4733
4794
|
const _ = b.match(/^{{(\d+)}}$/);
|
|
4734
4795
|
if (_) {
|
|
4735
|
-
const O = Number(_[1]),
|
|
4736
|
-
x(
|
|
4796
|
+
const O = Number(_[1]), j = t[O], A = `interp-${O}`;
|
|
4797
|
+
x(j, A);
|
|
4737
4798
|
} else {
|
|
4738
4799
|
const O = `text-${l++}`;
|
|
4739
4800
|
T.push(a(b, O));
|
|
@@ -4741,67 +4802,67 @@ function er(e, t, n) {
|
|
|
4741
4802
|
}
|
|
4742
4803
|
}
|
|
4743
4804
|
}
|
|
4744
|
-
const C = g.filter((w) =>
|
|
4805
|
+
const C = g.filter((w) => Pe(w) && w.tag === "#text" ? typeof w.children == "string" && w.children.trim() !== "" : !0).map((w) => yt(w));
|
|
4745
4806
|
if (C.length === 1) {
|
|
4746
4807
|
const w = C[0];
|
|
4747
|
-
return i && s &&
|
|
4808
|
+
return i && s && dt.set(s, w), w;
|
|
4748
4809
|
} else if (C.length > 1) {
|
|
4749
4810
|
const w = C;
|
|
4750
|
-
return i && s &&
|
|
4811
|
+
return i && s && dt.set(s, w), w;
|
|
4751
4812
|
}
|
|
4752
4813
|
return he("div", {}, "", "fallback-root");
|
|
4753
4814
|
}
|
|
4754
4815
|
function ye(e, ...t) {
|
|
4755
4816
|
const n = t[t.length - 1], r = typeof n == "object" && n && !Array.isArray(n) ? n : void 0;
|
|
4756
|
-
return
|
|
4757
|
-
}
|
|
4758
|
-
function vr(e, t) {
|
|
4759
|
-
return Je(!e, t);
|
|
4817
|
+
return tr(e, t, r);
|
|
4760
4818
|
}
|
|
4761
4819
|
function wr(e, t) {
|
|
4762
|
-
|
|
4763
|
-
return Je(n, t);
|
|
4820
|
+
return Xe(!e, t);
|
|
4764
4821
|
}
|
|
4765
4822
|
function xr(e, t) {
|
|
4823
|
+
const n = !e || e.length === 0;
|
|
4824
|
+
return Xe(n, t);
|
|
4825
|
+
}
|
|
4826
|
+
function kr(e, t) {
|
|
4766
4827
|
const n = !!(e && e.length > 0);
|
|
4767
|
-
return
|
|
4828
|
+
return Xe(n, t);
|
|
4768
4829
|
}
|
|
4769
|
-
function
|
|
4830
|
+
function $r(e, t, n) {
|
|
4770
4831
|
const r = [];
|
|
4771
4832
|
return e.forEach((o, i) => {
|
|
4772
4833
|
t(o, i) && r.push({ item: o, originalIndex: i });
|
|
4773
4834
|
}), r.map(({ item: o, originalIndex: i }, s) => {
|
|
4774
4835
|
const c = typeof o == "object" && o != null ? o?.key ?? o?.id ?? `filtered-${i}` : `filtered-${i}`;
|
|
4775
|
-
return
|
|
4836
|
+
return z(n(o, i, s), `each-where-${c}`);
|
|
4776
4837
|
});
|
|
4777
4838
|
}
|
|
4778
|
-
function
|
|
4839
|
+
function Er(e, t) {
|
|
4779
4840
|
const n = e?.length ?? 0;
|
|
4780
|
-
return n === 0 && t.empty ?
|
|
4841
|
+
return n === 0 && t.empty ? z(t.empty, "switch-length-empty") : n === 1 && t.one ? z(t.one(e[0]), "switch-length-one") : t.exactly?.[n] ? z(t.exactly[n](e), `switch-length-${n}`) : n > 1 && t.many ? z(t.many(e), "switch-length-many") : z([], "switch-length-fallback");
|
|
4781
4842
|
}
|
|
4782
|
-
function
|
|
4843
|
+
function Cr(e, t, n) {
|
|
4783
4844
|
const r = /* @__PURE__ */ new Map();
|
|
4784
4845
|
return e.forEach((o) => {
|
|
4785
4846
|
const i = t(o);
|
|
4786
4847
|
r.has(i) || r.set(i, []), r.get(i).push(o);
|
|
4787
|
-
}), Array.from(r.entries()).map(([o, i], s) =>
|
|
4848
|
+
}), Array.from(r.entries()).map(([o, i], s) => z(
|
|
4788
4849
|
n(o, i, s),
|
|
4789
4850
|
`each-group-${o}`
|
|
4790
4851
|
));
|
|
4791
4852
|
}
|
|
4792
|
-
function
|
|
4853
|
+
function _r(e, t, n, r) {
|
|
4793
4854
|
const o = n * t, i = Math.min(o + t, e.length);
|
|
4794
4855
|
return e.slice(o, i).map((c, a) => {
|
|
4795
|
-
const
|
|
4796
|
-
return
|
|
4856
|
+
const u = o + a, m = typeof c == "object" && c != null ? c?.key ?? c?.id ?? `page-${u}` : `page-${u}`;
|
|
4857
|
+
return z(r(c, u, a), `each-page-${m}`);
|
|
4797
4858
|
});
|
|
4798
4859
|
}
|
|
4799
|
-
function
|
|
4800
|
-
return e.loading && t.loading ?
|
|
4860
|
+
function Sr(e, t) {
|
|
4861
|
+
return e.loading && t.loading ? z(t.loading, "promise-loading") : e.error && t.error ? z(t.error(e.error), "promise-error") : e.data !== void 0 && t.success ? z(t.success(e.data), "promise-success") : t.idle ? z(t.idle, "promise-idle") : z([], "promise-fallback");
|
|
4801
4862
|
}
|
|
4802
4863
|
function X(e, t) {
|
|
4803
4864
|
const n = typeof window < "u" && window.matchMedia?.(e)?.matches;
|
|
4804
|
-
return
|
|
4865
|
+
return Xe(!!n, t);
|
|
4805
4866
|
}
|
|
4806
4867
|
const de = {
|
|
4807
4868
|
// Responsive breakpoints (matching style.ts)
|
|
@@ -4812,7 +4873,7 @@ const de = {
|
|
|
4812
4873
|
"2xl": "(min-width:1536px)",
|
|
4813
4874
|
// Dark mode (matching style.ts)
|
|
4814
4875
|
dark: "(prefers-color-scheme: dark)"
|
|
4815
|
-
}, Yt = ["sm", "md", "lg", "xl", "2xl"],
|
|
4876
|
+
}, Yt = ["sm", "md", "lg", "xl", "2xl"], nr = {
|
|
4816
4877
|
// Breakpoint-based rendering (matching style.ts exactly)
|
|
4817
4878
|
sm: (e) => X(de.sm, e),
|
|
4818
4879
|
md: (e) => X(de.md, e),
|
|
@@ -4831,7 +4892,7 @@ const de = {
|
|
|
4831
4892
|
portrait: (e) => X("(orientation: portrait)", e),
|
|
4832
4893
|
landscape: (e) => X("(orientation: landscape)", e)
|
|
4833
4894
|
};
|
|
4834
|
-
function
|
|
4895
|
+
function Ar(e, t) {
|
|
4835
4896
|
const n = [];
|
|
4836
4897
|
e.includes("dark") ? n.push(de.dark) : e.includes("light") && n.push("(prefers-color-scheme: light)");
|
|
4837
4898
|
const r = e.filter(
|
|
@@ -4841,14 +4902,14 @@ function Sr(e, t) {
|
|
|
4841
4902
|
const i = n.length > 0 ? n.join(" and ") : "all";
|
|
4842
4903
|
return X(i, t);
|
|
4843
4904
|
}
|
|
4844
|
-
function
|
|
4905
|
+
function Tr(e) {
|
|
4845
4906
|
const t = [];
|
|
4846
|
-
return e.base && t.push(
|
|
4907
|
+
return e.base && t.push(z(e.base, "responsive-base")), Yt.forEach((n) => {
|
|
4847
4908
|
const r = e[n];
|
|
4848
|
-
r && t.push(
|
|
4909
|
+
r && t.push(nr[n](r));
|
|
4849
4910
|
}), t;
|
|
4850
4911
|
}
|
|
4851
|
-
function
|
|
4912
|
+
function jr(e) {
|
|
4852
4913
|
const t = [];
|
|
4853
4914
|
let n = null;
|
|
4854
4915
|
return {
|
|
@@ -4866,13 +4927,13 @@ function Tr(e) {
|
|
|
4866
4927
|
for (let r = 0; r < t.length; r++) {
|
|
4867
4928
|
const { condition: o, content: i } = t[r];
|
|
4868
4929
|
if (o(e))
|
|
4869
|
-
return
|
|
4930
|
+
return z(i, `switch-case-${r}`);
|
|
4870
4931
|
}
|
|
4871
|
-
return
|
|
4932
|
+
return z(n || [], "switch-otherwise");
|
|
4872
4933
|
}
|
|
4873
4934
|
};
|
|
4874
4935
|
}
|
|
4875
|
-
class
|
|
4936
|
+
class ke extends EventTarget {
|
|
4876
4937
|
handlers = {};
|
|
4877
4938
|
static instance;
|
|
4878
4939
|
eventCounters = /* @__PURE__ */ new Map();
|
|
@@ -4880,7 +4941,7 @@ class xe extends EventTarget {
|
|
|
4880
4941
|
* Returns the singleton instance of GlobalEventBus
|
|
4881
4942
|
*/
|
|
4882
4943
|
static getInstance() {
|
|
4883
|
-
return
|
|
4944
|
+
return ke.instance || (ke.instance = new ke()), ke.instance;
|
|
4884
4945
|
}
|
|
4885
4946
|
/**
|
|
4886
4947
|
* Emit a global event with optional data. Includes event storm protection.
|
|
@@ -4993,8 +5054,8 @@ class xe extends EventTarget {
|
|
|
4993
5054
|
this.eventCounters.clear();
|
|
4994
5055
|
}
|
|
4995
5056
|
}
|
|
4996
|
-
const
|
|
4997
|
-
function
|
|
5057
|
+
const He = ke.getInstance(), Lr = (e, t) => He.emit(e, t), Or = (e, t) => He.on(e, t), Pr = (e, t) => He.off(e, t), Mr = (e, t) => He.once(e, t), Nr = (e, t, n) => He.listen(e, t, n);
|
|
5058
|
+
function It(e) {
|
|
4998
5059
|
let t = { ...e };
|
|
4999
5060
|
const n = [];
|
|
5000
5061
|
function r(c) {
|
|
@@ -5012,66 +5073,66 @@ function Ht(e) {
|
|
|
5012
5073
|
}
|
|
5013
5074
|
return { subscribe: r, getState: o, setState: i };
|
|
5014
5075
|
}
|
|
5015
|
-
const
|
|
5076
|
+
const Ft = (e) => e ? typeof URLSearchParams > "u" ? {} : Object.fromEntries(new URLSearchParams(e)) : {}, le = (e, t) => {
|
|
5016
5077
|
for (const n of e) {
|
|
5017
5078
|
const r = [], o = n.path.replace(/:[^/]+/g, (c) => (r.push(c.slice(1)), "([^/]+)")), i = new RegExp(`^${o}$`), s = t.match(i);
|
|
5018
5079
|
if (s) {
|
|
5019
5080
|
const c = {};
|
|
5020
|
-
return r.forEach((a,
|
|
5021
|
-
c[a] = s[
|
|
5081
|
+
return r.forEach((a, u) => {
|
|
5082
|
+
c[a] = s[u + 1];
|
|
5022
5083
|
}), { route: n, params: c };
|
|
5023
5084
|
}
|
|
5024
5085
|
}
|
|
5025
5086
|
return { route: null, params: {} };
|
|
5026
|
-
},
|
|
5027
|
-
async function
|
|
5087
|
+
}, pt = {};
|
|
5088
|
+
async function rr(e) {
|
|
5028
5089
|
if (e.component) return e.component;
|
|
5029
5090
|
if (e.load) {
|
|
5030
|
-
if (
|
|
5091
|
+
if (pt[e.path]) return pt[e.path];
|
|
5031
5092
|
try {
|
|
5032
5093
|
const t = await e.load();
|
|
5033
|
-
return
|
|
5094
|
+
return pt[e.path] = t.default, t.default;
|
|
5034
5095
|
} catch {
|
|
5035
5096
|
throw new Error(`Failed to load component for route: ${e.path}`);
|
|
5036
5097
|
}
|
|
5037
5098
|
}
|
|
5038
5099
|
throw new Error(`No component or loader defined for route: ${e.path}`);
|
|
5039
5100
|
}
|
|
5040
|
-
function
|
|
5101
|
+
function or(e) {
|
|
5041
5102
|
const { routes: t, base: n = "", initialUrl: r } = e;
|
|
5042
|
-
let o, i, s, c, a,
|
|
5043
|
-
const y = async (
|
|
5044
|
-
const l = t.find((g) => le([g],
|
|
5103
|
+
let o, i, s, c, a, u, m;
|
|
5104
|
+
const y = async (f, h) => {
|
|
5105
|
+
const l = t.find((g) => le([g], f.path).route !== null);
|
|
5045
5106
|
if (l?.beforeEnter)
|
|
5046
5107
|
try {
|
|
5047
|
-
const g = await l.beforeEnter(
|
|
5048
|
-
return typeof g == "string" ? (await
|
|
5108
|
+
const g = await l.beforeEnter(f, h);
|
|
5109
|
+
return typeof g == "string" ? (await d(g, !0), !1) : g !== !1;
|
|
5049
5110
|
} catch (g) {
|
|
5050
5111
|
return H("beforeEnter error", g), !1;
|
|
5051
5112
|
}
|
|
5052
5113
|
return !0;
|
|
5053
|
-
}, p = async (
|
|
5054
|
-
const l = t.find((g) => le([g],
|
|
5114
|
+
}, p = async (f, h) => {
|
|
5115
|
+
const l = t.find((g) => le([g], f.path).route !== null);
|
|
5055
5116
|
if (l?.onEnter)
|
|
5056
5117
|
try {
|
|
5057
|
-
const g = await l.onEnter(
|
|
5058
|
-
return typeof g == "string" ? (await
|
|
5118
|
+
const g = await l.onEnter(f, h);
|
|
5119
|
+
return typeof g == "string" ? (await d(g, !0), !1) : g !== !1;
|
|
5059
5120
|
} catch (g) {
|
|
5060
5121
|
return H("onEnter error", g), !1;
|
|
5061
5122
|
}
|
|
5062
5123
|
return !0;
|
|
5063
|
-
}, k = (
|
|
5064
|
-
const l = t.find((g) => le([g],
|
|
5124
|
+
}, k = (f, h) => {
|
|
5125
|
+
const l = t.find((g) => le([g], f.path).route !== null);
|
|
5065
5126
|
if (l?.afterEnter)
|
|
5066
5127
|
try {
|
|
5067
|
-
l.afterEnter(
|
|
5128
|
+
l.afterEnter(f, h);
|
|
5068
5129
|
} catch (g) {
|
|
5069
5130
|
H("afterEnter error", g);
|
|
5070
5131
|
}
|
|
5071
|
-
},
|
|
5132
|
+
}, d = async (f, h = !1) => {
|
|
5072
5133
|
try {
|
|
5073
5134
|
const l = {
|
|
5074
|
-
path:
|
|
5135
|
+
path: f.replace(n, "") || "/",
|
|
5075
5136
|
query: {}
|
|
5076
5137
|
}, g = le(t, l.path);
|
|
5077
5138
|
if (!g) throw new Error(`No route found for ${l.path}`);
|
|
@@ -5081,34 +5142,34 @@ function rr(e) {
|
|
|
5081
5142
|
query: l.query
|
|
5082
5143
|
};
|
|
5083
5144
|
if (!await y(x, v) || !await p(x, v)) return;
|
|
5084
|
-
typeof window < "u" && typeof document < "u" && (h ? window.history.replaceState({}, "", n +
|
|
5145
|
+
typeof window < "u" && typeof document < "u" && (h ? window.history.replaceState({}, "", n + f) : window.history.pushState({}, "", n + f)), s.setState(x), k(x, v);
|
|
5085
5146
|
} catch (l) {
|
|
5086
5147
|
H("Navigation error:", l);
|
|
5087
5148
|
}
|
|
5088
5149
|
};
|
|
5089
5150
|
if (typeof window < "u" && typeof document < "u" && typeof r > "u") {
|
|
5090
5151
|
o = () => {
|
|
5091
|
-
const h = new URL(window.location.href), l = h.pathname.replace(n, "") || "/", g =
|
|
5152
|
+
const h = new URL(window.location.href), l = h.pathname.replace(n, "") || "/", g = Ft(h.search);
|
|
5092
5153
|
return { path: l, query: g };
|
|
5093
5154
|
}, i = o();
|
|
5094
|
-
const
|
|
5095
|
-
s =
|
|
5155
|
+
const f = le(t, i.path);
|
|
5156
|
+
s = It({
|
|
5096
5157
|
path: i.path,
|
|
5097
|
-
params:
|
|
5158
|
+
params: f.params,
|
|
5098
5159
|
query: i.query
|
|
5099
5160
|
}), c = async (h = !1) => {
|
|
5100
5161
|
const l = o();
|
|
5101
|
-
await
|
|
5102
|
-
}, window.addEventListener("popstate", () => c(!0)), a = (h) =>
|
|
5162
|
+
await d(l.path, h);
|
|
5163
|
+
}, window.addEventListener("popstate", () => c(!0)), a = (h) => d(h, !1), u = (h) => d(h, !0), m = () => window.history.back();
|
|
5103
5164
|
} else {
|
|
5104
5165
|
o = () => {
|
|
5105
|
-
const l = new URL(r || "/", "http://localhost"), g = l.pathname.replace(n, "") || "/", v =
|
|
5166
|
+
const l = new URL(r || "/", "http://localhost"), g = l.pathname.replace(n, "") || "/", v = Ft(l.search);
|
|
5106
5167
|
return { path: g, query: v };
|
|
5107
5168
|
}, i = o();
|
|
5108
|
-
const
|
|
5109
|
-
s =
|
|
5169
|
+
const f = le(t, i.path);
|
|
5170
|
+
s = It({
|
|
5110
5171
|
path: i.path,
|
|
5111
|
-
params:
|
|
5172
|
+
params: f.params,
|
|
5112
5173
|
query: i.query
|
|
5113
5174
|
}), c = async () => {
|
|
5114
5175
|
const l = o();
|
|
@@ -5156,26 +5217,26 @@ function rr(e) {
|
|
|
5156
5217
|
} catch {
|
|
5157
5218
|
}
|
|
5158
5219
|
};
|
|
5159
|
-
a = async (l) => h(l),
|
|
5220
|
+
a = async (l) => h(l), u = async (l) => h(l), m = () => {
|
|
5160
5221
|
};
|
|
5161
5222
|
}
|
|
5162
5223
|
return {
|
|
5163
5224
|
store: s,
|
|
5164
5225
|
push: a,
|
|
5165
|
-
replace:
|
|
5226
|
+
replace: u,
|
|
5166
5227
|
back: m,
|
|
5167
5228
|
subscribe: s.subscribe,
|
|
5168
|
-
matchRoute: (
|
|
5229
|
+
matchRoute: (f) => le(t, f),
|
|
5169
5230
|
getCurrent: () => s.getState(),
|
|
5170
|
-
resolveRouteComponent:
|
|
5231
|
+
resolveRouteComponent: rr
|
|
5171
5232
|
};
|
|
5172
5233
|
}
|
|
5173
|
-
function
|
|
5234
|
+
function Rr(e, t) {
|
|
5174
5235
|
return le(e, t);
|
|
5175
5236
|
}
|
|
5176
|
-
function
|
|
5177
|
-
const t =
|
|
5178
|
-
return
|
|
5237
|
+
function Dr(e) {
|
|
5238
|
+
const t = or(e);
|
|
5239
|
+
return Ht("router-view", (n = {}, r = {}) => {
|
|
5179
5240
|
const { onConnected: o } = r;
|
|
5180
5241
|
if (o && o(() => {
|
|
5181
5242
|
t && typeof t.subscribe == "function" && t.subscribe(() => {
|
|
@@ -5186,30 +5247,30 @@ function Rr(e) {
|
|
|
5186
5247
|
if (typeof a == "string")
|
|
5187
5248
|
return { tag: a, props: {}, children: [] };
|
|
5188
5249
|
if (typeof a == "function") {
|
|
5189
|
-
const
|
|
5190
|
-
return (
|
|
5250
|
+
const u = a();
|
|
5251
|
+
return (u instanceof Promise ? u : Promise.resolve(u)).then((y) => typeof y == "string" ? { tag: y, props: {}, children: [] } : y);
|
|
5191
5252
|
}
|
|
5192
5253
|
return ye`<div>Invalid route component</div>`;
|
|
5193
5254
|
}).catch(() => ye`<div>Invalid route component</div>`) : ye`<div>Not found</div>`;
|
|
5194
|
-
}),
|
|
5255
|
+
}), Ht("router-link", (n = {}, r = {}) => {
|
|
5195
5256
|
const {
|
|
5196
5257
|
to: o = "",
|
|
5197
5258
|
tag: i = "a",
|
|
5198
5259
|
replace: s = !1,
|
|
5199
5260
|
exact: c = !1,
|
|
5200
5261
|
activeClass: a = "active",
|
|
5201
|
-
exactActiveClass:
|
|
5262
|
+
exactActiveClass: u = "exact-active",
|
|
5202
5263
|
ariaCurrentValue: m = "page",
|
|
5203
5264
|
disabled: y = !1,
|
|
5204
5265
|
external: p = !1,
|
|
5205
5266
|
class: k = ""
|
|
5206
|
-
} = n,
|
|
5267
|
+
} = n, d = t.getCurrent(), f = d.path === o, h = c ? f : d && typeof d.path == "string" ? d.path.startsWith(o) : !1, l = f ? `aria-current="${m}"` : "", g = (k || "").split(/\s+/).filter(Boolean), v = {};
|
|
5207
5268
|
for (const T of g) v[T] = !0;
|
|
5208
5269
|
const x = {
|
|
5209
5270
|
...v,
|
|
5210
5271
|
// Also include the configurable names (may duplicate the above)
|
|
5211
5272
|
[a]: h,
|
|
5212
|
-
[
|
|
5273
|
+
[u]: f
|
|
5213
5274
|
}, S = i === "button", E = y ? S ? 'disabled aria-disabled="true" tabindex="-1"' : 'aria-disabled="true" tabindex="-1"' : "", C = p && (i === "a" || !i) ? 'target="_blank" rel="noopener noreferrer"' : "", w = (T) => {
|
|
5214
5275
|
if (y) {
|
|
5215
5276
|
T.preventDefault();
|
|
@@ -5218,7 +5279,7 @@ function Rr(e) {
|
|
|
5218
5279
|
p && (i === "a" || !i) || (T.preventDefault(), s ? t.replace(o) : t.push(o));
|
|
5219
5280
|
};
|
|
5220
5281
|
return ye`
|
|
5221
|
-
${
|
|
5282
|
+
${Un().when(S, ye`
|
|
5222
5283
|
<button
|
|
5223
5284
|
part="button"
|
|
5224
5285
|
:class="${x}"
|
|
@@ -5242,59 +5303,59 @@ function Rr(e) {
|
|
|
5242
5303
|
}), t;
|
|
5243
5304
|
}
|
|
5244
5305
|
export {
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5306
|
+
ke as GlobalEventBus,
|
|
5307
|
+
ur as Transition,
|
|
5308
|
+
fr as TransitionGroup,
|
|
5309
|
+
z as anchorBlock,
|
|
5310
|
+
Ht as component,
|
|
5311
|
+
sr as computed,
|
|
5312
|
+
It as createStore,
|
|
5313
|
+
dr as createTransitionPreset,
|
|
5314
|
+
jn as css,
|
|
5254
5315
|
ue as decodeEntities,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5316
|
+
lr as each,
|
|
5317
|
+
Cr as eachGroup,
|
|
5318
|
+
_r as eachPage,
|
|
5319
|
+
$r as eachWhere,
|
|
5259
5320
|
Lr as emit,
|
|
5260
|
-
|
|
5261
|
-
|
|
5321
|
+
He as eventBus,
|
|
5322
|
+
mt as getTransitionStyleSheet,
|
|
5262
5323
|
ye as html,
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5324
|
+
Dr as initRouter,
|
|
5325
|
+
Nr as listen,
|
|
5326
|
+
Un as match,
|
|
5266
5327
|
le as matchRoute,
|
|
5267
|
-
|
|
5328
|
+
Rr as matchRouteSSR,
|
|
5268
5329
|
de as mediaVariants,
|
|
5269
|
-
|
|
5270
|
-
|
|
5330
|
+
Pr as off,
|
|
5331
|
+
Or as on,
|
|
5271
5332
|
Mr as once,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5333
|
+
Ft as parseQuery,
|
|
5334
|
+
ir as ref,
|
|
5335
|
+
et as renderToString,
|
|
5336
|
+
rr as resolveRouteComponent,
|
|
5337
|
+
nr as responsive,
|
|
5277
5338
|
Yt as responsiveOrder,
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5339
|
+
Tr as responsiveSwitch,
|
|
5340
|
+
jr as switchOn,
|
|
5341
|
+
Er as switchOnLength,
|
|
5342
|
+
Sr as switchOnPromise,
|
|
5343
|
+
Re as transitionPresets,
|
|
5344
|
+
wr as unless,
|
|
5345
|
+
cr as unsafeHTML,
|
|
5346
|
+
pr as useEmit,
|
|
5347
|
+
mr as useOnAttributeChanged,
|
|
5348
|
+
hr as useOnConnected,
|
|
5349
|
+
gr as useOnDisconnected,
|
|
5350
|
+
yr as useOnError,
|
|
5351
|
+
br as useProps,
|
|
5352
|
+
or as useRouter,
|
|
5353
|
+
vr as useStyle,
|
|
5354
|
+
ar as watch,
|
|
5355
|
+
Xe as when,
|
|
5356
|
+
xr as whenEmpty,
|
|
5296
5357
|
X as whenMedia,
|
|
5297
|
-
|
|
5298
|
-
|
|
5358
|
+
kr as whenNotEmpty,
|
|
5359
|
+
Ar as whenVariants
|
|
5299
5360
|
};
|
|
5300
5361
|
//# sourceMappingURL=custom-elements-runtime.es.js.map
|