@jasonshimmy/custom-elements-runtime 2.8.0 → 2.8.2
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 +1 -1
- package/dist/custom-elements-runtime.directives.cjs.js +1 -1
- package/dist/custom-elements-runtime.directives.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directives.es.js +57 -34
- package/dist/custom-elements-runtime.directives.es.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +2 -2
- package/dist/custom-elements-runtime.router.cjs.js +1 -1
- package/dist/custom-elements-runtime.router.es.js +1 -1
- package/dist/directives.d.ts +5 -5
- package/dist/{template-compiler-CVBKYu3j.js → template-compiler-Bvx02nAT.js} +540 -511
- package/dist/template-compiler-Bvx02nAT.js.map +1 -0
- package/dist/{template-compiler-G8h2OJbA.cjs → template-compiler-bj-MFC_Y.cjs} +9 -9
- package/dist/template-compiler-bj-MFC_Y.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/template-compiler-CVBKYu3j.js.map +0 -1
- package/dist/template-compiler-G8h2OJbA.cjs.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { a as
|
|
1
|
+
import { j as V, t as X, i as x, k as We, m as $, o as F, p as U, q as Y, T as Ct, v as Xe, S as kt, x as pt, y as we, z as Q, A as _t, B as tt, a as nt, C as rt, d as At } from "./namespace-helpers-DhLBqt-7.js";
|
|
2
|
+
import { a as te, d as W } from "./logger-BvkEbVM4.js";
|
|
3
3
|
import { resetWhenCounter as st } from "./custom-elements-runtime.directives.es.js";
|
|
4
|
-
import { j as wt, g as Tt, a as Re, b as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
4
|
+
import { j as wt, g as Tt, a as Re, b as ge, m as Te, s as Nt, d as ot } from "./transitions-DMJXs_tY.js";
|
|
5
|
+
const ve = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ Symbol.for("cer.registry");
|
|
6
|
+
function Lt() {
|
|
7
7
|
if (!(typeof window > "u" && typeof document > "u" && typeof navigator > "u"))
|
|
8
8
|
try {
|
|
9
9
|
const n = globalThis;
|
|
10
10
|
if (!n[Ke]) {
|
|
11
11
|
const t = crypto.randomUUID();
|
|
12
|
-
n[Ke] = new Map([...
|
|
12
|
+
n[Ke] = new Map([...ve.entries()]), n[Ke].__realmId = t;
|
|
13
13
|
}
|
|
14
14
|
} catch (n) {
|
|
15
|
-
|
|
15
|
+
te("Could not initialize global registry:", n);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
function Ot(e, n, t) {
|
|
@@ -22,13 +22,13 @@ function Ot(e, n, t) {
|
|
|
22
22
|
if (Array.isArray(r) ? (i = r[0], o = r[1] || {}) : i = r, n.set(s, {
|
|
23
23
|
callback: i,
|
|
24
24
|
options: o,
|
|
25
|
-
oldValue:
|
|
25
|
+
oldValue: V(e, s)
|
|
26
26
|
}), o.immediate)
|
|
27
27
|
try {
|
|
28
|
-
const c =
|
|
28
|
+
const c = V(e, s);
|
|
29
29
|
i(c, void 0, e);
|
|
30
30
|
} catch (c) {
|
|
31
|
-
|
|
31
|
+
W(`Error in immediate watcher for "${s}":`, c);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -45,15 +45,15 @@ function jt(e, n, t, s) {
|
|
|
45
45
|
try {
|
|
46
46
|
i.callback(s, i.oldValue, e), i.oldValue = s;
|
|
47
47
|
} catch (o) {
|
|
48
|
-
|
|
48
|
+
W(`Error in watcher for "${t}":`, o);
|
|
49
49
|
}
|
|
50
50
|
for (const [o, c] of n.entries())
|
|
51
51
|
if (c.options.deep && t.startsWith(o + "."))
|
|
52
52
|
try {
|
|
53
|
-
const f =
|
|
53
|
+
const f = V(e, o);
|
|
54
54
|
r(f, c.oldValue) || (c.callback(f, c.oldValue, e), c.oldValue = f);
|
|
55
55
|
} catch (f) {
|
|
56
|
-
|
|
56
|
+
W(`Error in deep watcher for "${o}":`, f);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function Ve(e, n) {
|
|
@@ -62,7 +62,7 @@ function Ve(e, n) {
|
|
|
62
62
|
function Mt(e, n, t) {
|
|
63
63
|
if (n)
|
|
64
64
|
for (const s in n) {
|
|
65
|
-
const r = n[s], i =
|
|
65
|
+
const r = n[s], i = X(s), o = e.getAttribute(i);
|
|
66
66
|
if (r.type === Function && typeof e[s] == "function")
|
|
67
67
|
t[s] = e[s];
|
|
68
68
|
else if (o !== null)
|
|
@@ -105,12 +105,12 @@ function Pt(e, n, t) {
|
|
|
105
105
|
configurable: !0,
|
|
106
106
|
get() {
|
|
107
107
|
try {
|
|
108
|
-
const f =
|
|
108
|
+
const f = X(i), u = e.getAttribute(f);
|
|
109
109
|
if (u !== null)
|
|
110
110
|
return u;
|
|
111
111
|
const h = e[i];
|
|
112
112
|
let p;
|
|
113
|
-
return
|
|
113
|
+
return x(h) || h && typeof h == "object" && "value" in h && !(h instanceof Node) ? p = h.value : p = h, p;
|
|
114
114
|
} catch {
|
|
115
115
|
return e[i];
|
|
116
116
|
}
|
|
@@ -125,16 +125,16 @@ function Pt(e, n, t) {
|
|
|
125
125
|
}
|
|
126
126
|
Mt(e, n.props, t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function xt(e, n, t, s) {
|
|
129
129
|
e.onConnected && !t && (e.onConnected(n), s(!0));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function $t(e, n, t, s, r, i, o, c) {
|
|
132
132
|
e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), i(!1), o(null), c(!1);
|
|
133
133
|
}
|
|
134
134
|
function Rt(e, n, t, s, r) {
|
|
135
135
|
e.onAttributeChanged && e.onAttributeChanged(n, t, s, r);
|
|
136
136
|
}
|
|
137
|
-
class
|
|
137
|
+
class re {
|
|
138
138
|
static cleanupFunctions = /* @__PURE__ */ new WeakMap();
|
|
139
139
|
/**
|
|
140
140
|
* Add an event listener with automatic cleanup tracking
|
|
@@ -238,7 +238,7 @@ class Ht {
|
|
|
238
238
|
const s = this.cache.get(n);
|
|
239
239
|
if (s) {
|
|
240
240
|
if (!s.isSecure) {
|
|
241
|
-
|
|
241
|
+
te("Blocked cached dangerous expression:", n);
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
try {
|
|
@@ -253,7 +253,7 @@ class Ht {
|
|
|
253
253
|
i && this.cache.delete(i);
|
|
254
254
|
}
|
|
255
255
|
if (this.cache.set(n, r), !r.isSecure) {
|
|
256
|
-
|
|
256
|
+
te("Blocked dangerous expression:", n);
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
259
|
return r.evaluator(t);
|
|
@@ -268,7 +268,7 @@ class Ht {
|
|
|
268
268
|
try {
|
|
269
269
|
return { evaluator: this.createSafeEvaluator(n), isSecure: !0 };
|
|
270
270
|
} catch (t) {
|
|
271
|
-
return
|
|
271
|
+
return te("Failed to create evaluator for expression:", n, t), { evaluator: () => {
|
|
272
272
|
}, isSecure: !1 };
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -281,9 +281,9 @@ class Ht {
|
|
|
281
281
|
return this.createObjectEvaluator(n);
|
|
282
282
|
if (/^ctx\.[a-zA-Z0-9_.]+$/.test(n.trim())) {
|
|
283
283
|
const s = n.trim().slice(4);
|
|
284
|
-
return (r) =>
|
|
284
|
+
return (r) => V(r, s);
|
|
285
285
|
}
|
|
286
|
-
return n.includes("ctx") || /[+\-*/%<>=&|?:[\]]/.test(n) ? this.createSimpleEvaluator(n) : (s) =>
|
|
286
|
+
return n.includes("ctx") || /[+\-*/%<>=&|?:[\]]/.test(n) ? this.createSimpleEvaluator(n) : (s) => V(s, n);
|
|
287
287
|
}
|
|
288
288
|
static createObjectEvaluator(n) {
|
|
289
289
|
const t = n.trim().slice(1, -1), s = this.parseObjectProperties(t);
|
|
@@ -293,7 +293,7 @@ class Ht {
|
|
|
293
293
|
try {
|
|
294
294
|
if (c.startsWith("ctx.")) {
|
|
295
295
|
const f = c.slice(4);
|
|
296
|
-
i[o] =
|
|
296
|
+
i[o] = V(r, f);
|
|
297
297
|
} else
|
|
298
298
|
i[o] = this.evaluateSimpleValue(c, r);
|
|
299
299
|
} catch {
|
|
@@ -323,7 +323,7 @@ class Ht {
|
|
|
323
323
|
);
|
|
324
324
|
const i = s.match(/ctx\.[\w.]+/g) || [];
|
|
325
325
|
for (const p of i) {
|
|
326
|
-
const d = p.slice(4), k =
|
|
326
|
+
const d = p.slice(4), k = V(t, d);
|
|
327
327
|
if (k === void 0) return;
|
|
328
328
|
const j = r.push(JSON.stringify(k)) - 1;
|
|
329
329
|
s = s.replace(
|
|
@@ -334,7 +334,7 @@ class Ht {
|
|
|
334
334
|
const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(o) || [];
|
|
335
335
|
for (const p of c) {
|
|
336
336
|
if (p.startsWith("ctx.")) continue;
|
|
337
|
-
const d =
|
|
337
|
+
const d = V(t, p);
|
|
338
338
|
if (d === void 0) return;
|
|
339
339
|
const k = r.push(JSON.stringify(d)) - 1;
|
|
340
340
|
s = s.replace(
|
|
@@ -349,7 +349,7 @@ class Ht {
|
|
|
349
349
|
const p = u[1];
|
|
350
350
|
if (["true", "false", "null", "undefined"].includes(p) || /^[0-9]+$/.test(p) || p === "ctx" || h.has(p)) continue;
|
|
351
351
|
h.add(p);
|
|
352
|
-
const d =
|
|
352
|
+
const d = V(t, p);
|
|
353
353
|
if (d === void 0) return;
|
|
354
354
|
const k = JSON.stringify(d), j = r.push(k) - 1;
|
|
355
355
|
p.includes(".") ? s = s.replace(
|
|
@@ -618,7 +618,7 @@ class Ht {
|
|
|
618
618
|
if (!isNaN(Number(n))) return Number(n);
|
|
619
619
|
if (n.startsWith("ctx.")) {
|
|
620
620
|
const s = n.slice(4);
|
|
621
|
-
return
|
|
621
|
+
return V(t, s);
|
|
622
622
|
}
|
|
623
623
|
return n.startsWith('"') && n.endsWith('"') || n.startsWith("'") && n.endsWith("'") ? n.slice(1, -1) : n;
|
|
624
624
|
}
|
|
@@ -652,7 +652,7 @@ function Ie(e, n, t, s) {
|
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
function It(e, n, t) {
|
|
655
|
-
const s = `update:${
|
|
655
|
+
const s = `update:${X(n)}`, r = `update:${n}`, i = new CustomEvent(s, {
|
|
656
656
|
detail: t,
|
|
657
657
|
bubbles: !0,
|
|
658
658
|
cancelable: !0
|
|
@@ -665,7 +665,7 @@ function It(e, n, t) {
|
|
|
665
665
|
}
|
|
666
666
|
function ct(e, n, t, s) {
|
|
667
667
|
const r = t;
|
|
668
|
-
if (
|
|
668
|
+
if ($(() => {
|
|
669
669
|
if (typeof e.setAttribute == "function")
|
|
670
670
|
try {
|
|
671
671
|
e[n] = r;
|
|
@@ -674,15 +674,15 @@ function ct(e, n, t, s) {
|
|
|
674
674
|
else
|
|
675
675
|
e[n] = r;
|
|
676
676
|
}), r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") {
|
|
677
|
-
const i =
|
|
678
|
-
i !== null ?
|
|
677
|
+
const i = F(r);
|
|
678
|
+
i !== null ? $(() => {
|
|
679
679
|
typeof e.setAttribute == "function" && U(
|
|
680
680
|
e,
|
|
681
|
-
|
|
681
|
+
X(n),
|
|
682
682
|
String(i)
|
|
683
683
|
);
|
|
684
|
-
}) :
|
|
685
|
-
typeof e.removeAttribute == "function" &&
|
|
684
|
+
}) : $(() => {
|
|
685
|
+
typeof e.removeAttribute == "function" && Y(e, X(n));
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
}
|
|
@@ -692,26 +692,26 @@ function Dt(e, n, t, s) {
|
|
|
692
692
|
return s && typeof r == "object" && r !== null ? r[s] : r;
|
|
693
693
|
} else {
|
|
694
694
|
const r = t._state || t;
|
|
695
|
-
return
|
|
695
|
+
return V(r, n);
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function je(e) {
|
|
699
699
|
return e != null && typeof e == "object" && "value" in e;
|
|
700
700
|
}
|
|
701
701
|
function Ge(e) {
|
|
702
702
|
return e != null && typeof e == "object" && "value" in e ? e.value : e;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function ie(e, n, t) {
|
|
705
705
|
if (!e) return;
|
|
706
706
|
e.attrs || (e.attrs = {});
|
|
707
707
|
const s = e.attrs;
|
|
708
708
|
s[n] = t;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function ee(e) {
|
|
711
711
|
return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
return e != null && typeof e == "object" && "value" in e ?
|
|
713
|
+
function he(e) {
|
|
714
|
+
return e != null && typeof e == "object" && "value" in e ? he(e.value) : !(e != null && typeof e == "object" || e === !1 || e === "false" || e === null || e === void 0 || e === 0);
|
|
715
715
|
}
|
|
716
716
|
function ht(e) {
|
|
717
717
|
return e.substring(2, 3).toLowerCase() + e.substring(3);
|
|
@@ -722,12 +722,12 @@ function Ze(e) {
|
|
|
722
722
|
function Bt(e, n, t, s, r, i, o, c) {
|
|
723
723
|
if (!i) return;
|
|
724
724
|
const f = n.includes("lazy"), u = n.includes("trim"), h = n.includes("number"), p = () => {
|
|
725
|
-
if (
|
|
725
|
+
if (x(e)) {
|
|
726
726
|
const v = e.value;
|
|
727
727
|
return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
|
|
728
728
|
}
|
|
729
729
|
const m = i?._state || i;
|
|
730
|
-
return
|
|
730
|
+
return V(m, e);
|
|
731
731
|
}, d = p();
|
|
732
732
|
let k = "text";
|
|
733
733
|
o instanceof HTMLInputElement ? k = s?.type || o.type || "text" : o instanceof HTMLSelectElement ? k = "select" : o instanceof HTMLTextAreaElement && (k = "textarea");
|
|
@@ -753,12 +753,12 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
753
753
|
}, 0), t[a] = Array.isArray(d) ? d : [];
|
|
754
754
|
} else
|
|
755
755
|
t[a] = d;
|
|
756
|
-
else if (!j &&
|
|
756
|
+
else if (!j && x(e))
|
|
757
757
|
t[a] = e;
|
|
758
758
|
else {
|
|
759
759
|
t[a] = d;
|
|
760
760
|
try {
|
|
761
|
-
const m =
|
|
761
|
+
const m = X(a);
|
|
762
762
|
s && (s[m] = d);
|
|
763
763
|
} catch {
|
|
764
764
|
}
|
|
@@ -780,8 +780,8 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
780
780
|
if (C.checked)
|
|
781
781
|
w.includes(y) || w.push(y);
|
|
782
782
|
else {
|
|
783
|
-
const
|
|
784
|
-
|
|
783
|
+
const N = w.indexOf(y);
|
|
784
|
+
N > -1 && w.splice(N, 1);
|
|
785
785
|
}
|
|
786
786
|
T = w;
|
|
787
787
|
} else {
|
|
@@ -802,7 +802,7 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
802
802
|
if (He(T, g)) {
|
|
803
803
|
C._modelUpdating = !0;
|
|
804
804
|
try {
|
|
805
|
-
it(
|
|
805
|
+
it(x(e), e, T, i, c), Ie(i, x(e), e, T), C && It(C, a, T);
|
|
806
806
|
} finally {
|
|
807
807
|
setTimeout(
|
|
808
808
|
() => C._modelUpdating = !1,
|
|
@@ -814,18 +814,18 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
814
814
|
if (j) {
|
|
815
815
|
if (r[b]) {
|
|
816
816
|
const m = r[b];
|
|
817
|
-
o &&
|
|
817
|
+
o && re.removeListener(o, b, m);
|
|
818
818
|
}
|
|
819
819
|
r[b] = E;
|
|
820
820
|
} else {
|
|
821
|
-
const m = `update:${
|
|
821
|
+
const m = `update:${X(a)}`, v = `update:${a}`;
|
|
822
822
|
if (r[m]) {
|
|
823
823
|
const S = r[m];
|
|
824
|
-
o &&
|
|
824
|
+
o && re.removeListener(o, m, S);
|
|
825
825
|
}
|
|
826
826
|
if (r[v]) {
|
|
827
827
|
const S = r[v];
|
|
828
|
-
o &&
|
|
828
|
+
o && re.removeListener(o, v, S);
|
|
829
829
|
}
|
|
830
830
|
if (r[m] = (S) => {
|
|
831
831
|
const C = S.detail;
|
|
@@ -840,22 +840,22 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
const g = Dt(
|
|
843
|
-
|
|
843
|
+
x(e),
|
|
844
844
|
e,
|
|
845
845
|
i,
|
|
846
846
|
c
|
|
847
847
|
);
|
|
848
848
|
if (He(T, g)) {
|
|
849
|
-
it(
|
|
849
|
+
it(x(e), e, T, i, c), Ie(i, x(e), e, T);
|
|
850
850
|
const l = S.target;
|
|
851
851
|
l && ct(
|
|
852
852
|
l,
|
|
853
853
|
a,
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
x(e) ? e : T,
|
|
855
|
+
x(e)
|
|
856
856
|
);
|
|
857
857
|
}
|
|
858
|
-
},
|
|
858
|
+
}, x(e) && typeof e.value == "object" && e.value !== null) {
|
|
859
859
|
let S;
|
|
860
860
|
try {
|
|
861
861
|
S = Reflect.ownKeys(e.value);
|
|
@@ -866,31 +866,31 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
866
866
|
(T) => typeof T == "string" && !String(T).startsWith("_") && T !== "constructor"
|
|
867
867
|
);
|
|
868
868
|
for (const T of C) {
|
|
869
|
-
const g = String(T), _ = `update:${
|
|
869
|
+
const g = String(T), _ = `update:${X(g)}`, l = `update:${g}`;
|
|
870
870
|
r[_] || (r[_] = (y) => {
|
|
871
|
-
const w = y.detail !== void 0 ? y.detail : y.target?.value,
|
|
871
|
+
const w = y.detail !== void 0 ? y.detail : y.target?.value, N = x(e) ? e.value[g] : V(
|
|
872
872
|
i?._state || i,
|
|
873
873
|
e
|
|
874
874
|
);
|
|
875
|
-
if (!He(w,
|
|
876
|
-
if (
|
|
877
|
-
const
|
|
875
|
+
if (!He(w, N)) return;
|
|
876
|
+
if (x(e)) {
|
|
877
|
+
const B = {
|
|
878
878
|
...e.value
|
|
879
879
|
};
|
|
880
|
-
|
|
880
|
+
B[g] = w, e.value = B;
|
|
881
881
|
} else
|
|
882
882
|
We(
|
|
883
883
|
i?._state || i,
|
|
884
884
|
e,
|
|
885
885
|
w
|
|
886
886
|
);
|
|
887
|
-
Ie(i,
|
|
887
|
+
Ie(i, x(e), e, w);
|
|
888
888
|
const M = y.currentTarget || o || y.target;
|
|
889
889
|
M && ct(
|
|
890
890
|
M,
|
|
891
891
|
a,
|
|
892
|
-
|
|
893
|
-
|
|
892
|
+
x(e) ? e : w,
|
|
893
|
+
x(e)
|
|
894
894
|
);
|
|
895
895
|
}, r[l] = r[_]);
|
|
896
896
|
}
|
|
@@ -901,7 +901,7 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
901
901
|
r._isComposing = !1;
|
|
902
902
|
const v = m.target;
|
|
903
903
|
v && setTimeout(() => {
|
|
904
|
-
const S = v.value, C = i?._state || i, T =
|
|
904
|
+
const S = v.value, C = i?._state || i, T = V(C, e);
|
|
905
905
|
let g = S;
|
|
906
906
|
if (u && (g = g.trim()), h) {
|
|
907
907
|
const l = Number(g);
|
|
@@ -910,7 +910,7 @@ function Bt(e, n, t, s, r, i, o, c) {
|
|
|
910
910
|
if (He(g, T)) {
|
|
911
911
|
v._modelUpdating = !0;
|
|
912
912
|
try {
|
|
913
|
-
We(C, e, g), Ie(i,
|
|
913
|
+
We(C, e, g), Ie(i, x(e), e, g);
|
|
914
914
|
} finally {
|
|
915
915
|
setTimeout(
|
|
916
916
|
() => v._modelUpdating = !1,
|
|
@@ -926,11 +926,11 @@ function Wt(e, n, t, s, r) {
|
|
|
926
926
|
for (const [i, o] of Object.entries(e))
|
|
927
927
|
if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
|
|
928
928
|
t[i] = o;
|
|
929
|
-
else if (i === "disabled" && r &&
|
|
929
|
+
else if (i === "disabled" && r && ee(r)) {
|
|
930
930
|
const c = o && typeof o == "object" && "value" in o;
|
|
931
931
|
(() => {
|
|
932
932
|
try {
|
|
933
|
-
return
|
|
933
|
+
return x(o);
|
|
934
934
|
} catch {
|
|
935
935
|
return !1;
|
|
936
936
|
}
|
|
@@ -940,16 +940,16 @@ function Wt(e, n, t, s, r) {
|
|
|
940
940
|
else if (typeof e == "string") {
|
|
941
941
|
if (!s) return;
|
|
942
942
|
try {
|
|
943
|
-
const i =
|
|
943
|
+
const i = $e(e, s);
|
|
944
944
|
if (typeof i == "object" && i !== null) {
|
|
945
945
|
for (const [o, c] of Object.entries(i))
|
|
946
946
|
if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
|
|
947
947
|
t[o] = c;
|
|
948
|
-
else if (o === "disabled" && r &&
|
|
948
|
+
else if (o === "disabled" && r && ee(r)) {
|
|
949
949
|
const f = c && typeof c == "object" && "value" in c;
|
|
950
950
|
(() => {
|
|
951
951
|
try {
|
|
952
|
-
return
|
|
952
|
+
return x(c);
|
|
953
953
|
} catch {
|
|
954
954
|
return !1;
|
|
955
955
|
}
|
|
@@ -962,7 +962,7 @@ function Wt(e, n, t, s, r) {
|
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
} catch {
|
|
965
|
-
const i =
|
|
965
|
+
const i = V(
|
|
966
966
|
s,
|
|
967
967
|
e
|
|
968
968
|
);
|
|
@@ -974,7 +974,7 @@ function Ut(e, n, t) {
|
|
|
974
974
|
let s;
|
|
975
975
|
if (typeof e == "string") {
|
|
976
976
|
if (!t) return;
|
|
977
|
-
s =
|
|
977
|
+
s = $e(e, t);
|
|
978
978
|
} else
|
|
979
979
|
s = e;
|
|
980
980
|
const r = String(n.style || "");
|
|
@@ -995,19 +995,19 @@ function Ut(e, n, t) {
|
|
|
995
995
|
i = "display: none";
|
|
996
996
|
i !== r && (i ? n.style = i : n.style = void 0);
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function $e(e, n) {
|
|
999
999
|
return Ht.evaluate(e, n);
|
|
1000
1000
|
}
|
|
1001
1001
|
function zt(e, n, t, s) {
|
|
1002
1002
|
let r;
|
|
1003
1003
|
if (typeof e == "string") {
|
|
1004
1004
|
if (!t) return;
|
|
1005
|
-
r =
|
|
1005
|
+
r = $e(e, t);
|
|
1006
1006
|
} else
|
|
1007
1007
|
r = e;
|
|
1008
1008
|
try {
|
|
1009
1009
|
if (r && typeof r == "object") {
|
|
1010
|
-
if (
|
|
1010
|
+
if (x(r))
|
|
1011
1011
|
r = r.value;
|
|
1012
1012
|
else if ("value" in r && typeof r.value < "u") {
|
|
1013
1013
|
const u = r.value;
|
|
@@ -1031,7 +1031,7 @@ function Kt(e, n, t) {
|
|
|
1031
1031
|
let s;
|
|
1032
1032
|
if (typeof e == "string") {
|
|
1033
1033
|
if (!t) return;
|
|
1034
|
-
s =
|
|
1034
|
+
s = $e(e, t);
|
|
1035
1035
|
} else
|
|
1036
1036
|
s = e;
|
|
1037
1037
|
let r = "";
|
|
@@ -1080,7 +1080,7 @@ function Kt(e, n, t) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function Vt(e, n, t) {
|
|
1082
1082
|
let s = e;
|
|
1083
|
-
typeof e == "string" && t && (s =
|
|
1083
|
+
typeof e == "string" && t && (s = $e(e, t)), x(s) ? n.reactiveRef = s : n.ref = s;
|
|
1084
1084
|
}
|
|
1085
1085
|
function yt(e, n, t, s) {
|
|
1086
1086
|
const r = {}, i = { ...s || {} }, o = {};
|
|
@@ -1120,11 +1120,11 @@ function yt(e, n, t, s) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
try {
|
|
1123
|
-
if (Object.prototype.hasOwnProperty.call(r, "disabled") && t &&
|
|
1123
|
+
if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && ee(t)) {
|
|
1124
1124
|
const f = r.disabled, u = f && typeof f == "object" && "value" in f;
|
|
1125
1125
|
let h = !1;
|
|
1126
1126
|
try {
|
|
1127
|
-
h =
|
|
1127
|
+
h = x(f);
|
|
1128
1128
|
} catch {
|
|
1129
1129
|
h = !1;
|
|
1130
1130
|
}
|
|
@@ -1147,17 +1147,17 @@ function yt(e, n, t, s) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
return { props: r, attrs: i, listeners: o };
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Ee(e) {
|
|
1151
1151
|
return e ? e.split(/\s+/).filter(Boolean) : [];
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Se(e, n) {
|
|
1154
1154
|
if (n.length === 0) return;
|
|
1155
1155
|
const t = n.filter(
|
|
1156
1156
|
(s) => s && !e.classList.contains(s)
|
|
1157
1157
|
);
|
|
1158
1158
|
t.length > 0 && e.classList.add(...t);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function be(e, n) {
|
|
1161
1161
|
if (n.length === 0) return;
|
|
1162
1162
|
const t = n.filter(Boolean);
|
|
1163
1163
|
t.length > 0 && e.classList.remove(...t);
|
|
@@ -1183,13 +1183,13 @@ function mt(e, n) {
|
|
|
1183
1183
|
e.addEventListener("transitionend", o), e.addEventListener("transitioncancel", o), setTimeout(i, s + 50);
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
|
-
async function
|
|
1186
|
+
async function Ne(e, n) {
|
|
1187
1187
|
const { classes: t, hooks: s, css: r, duration: i } = n;
|
|
1188
1188
|
if (s?.onBeforeEnter)
|
|
1189
1189
|
try {
|
|
1190
1190
|
s.onBeforeEnter(e);
|
|
1191
1191
|
} catch (p) {
|
|
1192
|
-
|
|
1192
|
+
W("Transition onBeforeEnter error:", p);
|
|
1193
1193
|
}
|
|
1194
1194
|
if (!r)
|
|
1195
1195
|
return s?.onEnter ? new Promise((p) => {
|
|
@@ -1199,13 +1199,13 @@ async function we(e, n) {
|
|
|
1199
1199
|
try {
|
|
1200
1200
|
s.onAfterEnter(e);
|
|
1201
1201
|
} catch (k) {
|
|
1202
|
-
|
|
1202
|
+
W("Transition onAfterEnter error:", k);
|
|
1203
1203
|
}
|
|
1204
1204
|
p();
|
|
1205
1205
|
}) : p();
|
|
1206
1206
|
}) : void 0;
|
|
1207
|
-
const o =
|
|
1208
|
-
|
|
1207
|
+
const o = Ee(t?.enterFrom), c = Ee(t?.enterActive), f = Ee(t?.enterTo);
|
|
1208
|
+
Se(e, o), e.offsetHeight, Se(e, c), e.offsetHeight;
|
|
1209
1209
|
let u;
|
|
1210
1210
|
if (s?.onEnter) {
|
|
1211
1211
|
const p = new Promise((d) => {
|
|
@@ -1217,17 +1217,17 @@ async function we(e, n) {
|
|
|
1217
1217
|
u && u();
|
|
1218
1218
|
});
|
|
1219
1219
|
} catch (d) {
|
|
1220
|
-
|
|
1220
|
+
W("Transition onEnter error:", d);
|
|
1221
1221
|
}
|
|
1222
1222
|
u && await p;
|
|
1223
1223
|
}
|
|
1224
|
-
await new Promise((p) => requestAnimationFrame(() => p())), e.offsetHeight,
|
|
1224
|
+
await new Promise((p) => requestAnimationFrame(() => p())), e.offsetHeight, be(e, o), Se(e, f), e.offsetHeight, await new Promise((p) => requestAnimationFrame(() => p()));
|
|
1225
1225
|
let h;
|
|
1226
|
-
if (typeof i == "number" ? h = i : i && typeof i == "object" && "enter" in i && (h = i.enter), await mt(e, h),
|
|
1226
|
+
if (typeof i == "number" ? h = i : i && typeof i == "object" && "enter" in i && (h = i.enter), await mt(e, h), be(e, c), s?.onAfterEnter)
|
|
1227
1227
|
try {
|
|
1228
1228
|
s.onAfterEnter(e);
|
|
1229
1229
|
} catch (p) {
|
|
1230
|
-
|
|
1230
|
+
W("Transition onAfterEnter error:", p);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
async function Fe(e, n) {
|
|
@@ -1236,7 +1236,7 @@ async function Fe(e, n) {
|
|
|
1236
1236
|
try {
|
|
1237
1237
|
s.onBeforeLeave(e);
|
|
1238
1238
|
} catch (p) {
|
|
1239
|
-
|
|
1239
|
+
W("Transition onBeforeLeave error:", p);
|
|
1240
1240
|
}
|
|
1241
1241
|
if (!r)
|
|
1242
1242
|
return s?.onLeave ? new Promise((p) => {
|
|
@@ -1246,13 +1246,13 @@ async function Fe(e, n) {
|
|
|
1246
1246
|
try {
|
|
1247
1247
|
s.onAfterLeave(e);
|
|
1248
1248
|
} catch (k) {
|
|
1249
|
-
|
|
1249
|
+
W("Transition onAfterLeave error:", k);
|
|
1250
1250
|
}
|
|
1251
1251
|
p();
|
|
1252
1252
|
}) : p();
|
|
1253
1253
|
}) : void 0;
|
|
1254
|
-
const o =
|
|
1255
|
-
|
|
1254
|
+
const o = Ee(t?.leaveFrom), c = Ee(t?.leaveActive), f = Ee(t?.leaveTo);
|
|
1255
|
+
Se(e, o), e.offsetHeight, Se(e, c);
|
|
1256
1256
|
let u;
|
|
1257
1257
|
if (s?.onLeave) {
|
|
1258
1258
|
const p = new Promise((d) => {
|
|
@@ -1264,17 +1264,17 @@ async function Fe(e, n) {
|
|
|
1264
1264
|
u && u();
|
|
1265
1265
|
});
|
|
1266
1266
|
} catch (d) {
|
|
1267
|
-
|
|
1267
|
+
W("Transition onLeave error:", d);
|
|
1268
1268
|
}
|
|
1269
1269
|
u && await p;
|
|
1270
1270
|
}
|
|
1271
|
-
await new Promise((p) => requestAnimationFrame(() => p())),
|
|
1271
|
+
await new Promise((p) => requestAnimationFrame(() => p())), be(e, o), Se(e, f);
|
|
1272
1272
|
let h;
|
|
1273
|
-
if (typeof i == "number" ? h = i : i && typeof i == "object" && "leave" in i && (h = i.leave), await mt(e, h),
|
|
1273
|
+
if (typeof i == "number" ? h = i : i && typeof i == "object" && "leave" in i && (h = i.leave), await mt(e, h), be(e, c), be(e, f), be(e, o), s?.onAfterLeave)
|
|
1274
1274
|
try {
|
|
1275
1275
|
s.onAfterLeave(e);
|
|
1276
1276
|
} catch (p) {
|
|
1277
|
-
|
|
1277
|
+
W("Transition onAfterLeave error:", p);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
const gt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap();
|
|
@@ -1292,7 +1292,7 @@ function De(e) {
|
|
|
1292
1292
|
if (t) return t;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Z(e, n) {
|
|
1296
1296
|
try {
|
|
1297
1297
|
gt.set(e, n);
|
|
1298
1298
|
} catch {
|
|
@@ -1303,7 +1303,7 @@ function G(e, n) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
try {
|
|
1305
1305
|
if (e instanceof Element) {
|
|
1306
|
-
const t =
|
|
1306
|
+
const t = F(n);
|
|
1307
1307
|
t !== null && U(e, "data-anchor-key", t);
|
|
1308
1308
|
}
|
|
1309
1309
|
} catch {
|
|
@@ -1330,10 +1330,10 @@ function Gt(e, n) {
|
|
|
1330
1330
|
} catch {
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function pe(e, n) {
|
|
1334
1334
|
if (n) {
|
|
1335
1335
|
if (e instanceof Element) {
|
|
1336
|
-
|
|
1336
|
+
re.cleanup(e);
|
|
1337
1337
|
const t = [];
|
|
1338
1338
|
for (const s in n)
|
|
1339
1339
|
n[s] === e && t.push(s);
|
|
@@ -1343,16 +1343,16 @@ function de(e, n) {
|
|
|
1343
1343
|
if (e.hasChildNodes()) {
|
|
1344
1344
|
const t = e.childNodes;
|
|
1345
1345
|
for (let s = t.length - 1; s >= 0; s--)
|
|
1346
|
-
|
|
1346
|
+
pe(t[s], n);
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Le(e, n, t) {
|
|
1351
1351
|
if (typeof e == "string") return;
|
|
1352
1352
|
const s = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), r = e.props?.ref ?? (e.props?.props && e.props.props.ref);
|
|
1353
1353
|
if (s)
|
|
1354
1354
|
try {
|
|
1355
|
-
if (
|
|
1355
|
+
if (x(s) || typeof s == "object" && "value" in s)
|
|
1356
1356
|
s.value = n;
|
|
1357
1357
|
else if (typeof s == "function")
|
|
1358
1358
|
s(n);
|
|
@@ -1421,10 +1421,10 @@ function at(e, n, t, s) {
|
|
|
1421
1421
|
for (const a in { ...u, ...h }) {
|
|
1422
1422
|
const b = u[a], E = h[a];
|
|
1423
1423
|
let m = b, v = E;
|
|
1424
|
-
if (
|
|
1425
|
-
(
|
|
1426
|
-
}),
|
|
1427
|
-
(
|
|
1424
|
+
if ($(() => {
|
|
1425
|
+
(x(b) || je(b)) && (m = b.value);
|
|
1426
|
+
}), $(() => {
|
|
1427
|
+
(x(E) || je(E)) && (v = E.value);
|
|
1428
1428
|
}), !(b === E && m === v))
|
|
1429
1429
|
if (d = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
|
|
1430
1430
|
const S = Ge(E), C = S == null ? "" : String(S);
|
|
@@ -1434,13 +1434,13 @@ function at(e, n, t, s) {
|
|
|
1434
1434
|
e.checked = !!S;
|
|
1435
1435
|
} else if (a.startsWith("on") && typeof E == "function") {
|
|
1436
1436
|
const S = ht(a);
|
|
1437
|
-
typeof b == "function" &&
|
|
1437
|
+
typeof b == "function" && re.removeListener(e, S, b), typeof E == "function" && re.addListener(e, S, E);
|
|
1438
1438
|
try {
|
|
1439
1439
|
if (S && S.startsWith("update:")) {
|
|
1440
1440
|
const C = S.split(":", 2)[1], T = h[C];
|
|
1441
1441
|
let g = [];
|
|
1442
1442
|
try {
|
|
1443
|
-
if (
|
|
1443
|
+
if (x(T)) {
|
|
1444
1444
|
const l = T.value;
|
|
1445
1445
|
g = l && typeof l == "object" ? Object.keys(l) : [];
|
|
1446
1446
|
} else T && typeof T == "object" && (g = Object.keys(T));
|
|
@@ -1451,42 +1451,42 @@ function at(e, n, t, s) {
|
|
|
1451
1451
|
(l) => typeof l == "string" && !l.startsWith("_") && l !== "constructor"
|
|
1452
1452
|
);
|
|
1453
1453
|
for (const l of _) {
|
|
1454
|
-
const y = `update:${l}`, w = (
|
|
1455
|
-
const
|
|
1454
|
+
const y = `update:${l}`, w = (N) => {
|
|
1455
|
+
const L = N.detail !== void 0 ? N.detail : N.target instanceof HTMLInputElement || N.target instanceof HTMLTextAreaElement || N.target instanceof HTMLSelectElement ? N.target.value : void 0, B = { ...x(T) ? T.value || {} : h[C] || {}, [l]: L };
|
|
1456
1456
|
try {
|
|
1457
1457
|
typeof E == "function" && E({
|
|
1458
|
-
detail:
|
|
1458
|
+
detail: B
|
|
1459
1459
|
});
|
|
1460
1460
|
} catch {
|
|
1461
1461
|
}
|
|
1462
1462
|
};
|
|
1463
|
-
|
|
1464
|
-
|
|
1463
|
+
$(() => {
|
|
1464
|
+
re.addListener(e, y, w);
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
} catch {
|
|
1469
1469
|
}
|
|
1470
1470
|
} else if (E == null)
|
|
1471
|
-
|
|
1471
|
+
Y(e, a);
|
|
1472
1472
|
else {
|
|
1473
1473
|
const S = t?.isCustomElement ?? n?.isCustomElement ?? !1;
|
|
1474
1474
|
if (S || a in e)
|
|
1475
1475
|
try {
|
|
1476
|
-
e[a] = E, a === "disabled" && E === !1 && !S &&
|
|
1476
|
+
e[a] = E, a === "disabled" && E === !1 && !S && ee(e) && Y(e, "disabled");
|
|
1477
1477
|
} catch {
|
|
1478
1478
|
}
|
|
1479
1479
|
else
|
|
1480
|
-
E === !1 &&
|
|
1480
|
+
E === !1 && Y(e, a);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
for (const [a, b] of Object.entries(
|
|
1484
1484
|
o.listeners || {}
|
|
1485
1485
|
)) {
|
|
1486
|
-
|
|
1486
|
+
re.addListener(e, a, b);
|
|
1487
1487
|
try {
|
|
1488
1488
|
const E = e && e.parentElement;
|
|
1489
|
-
E && E !== e &&
|
|
1489
|
+
E && E !== e && re.addListener(
|
|
1490
1490
|
E,
|
|
1491
1491
|
a,
|
|
1492
1492
|
b
|
|
@@ -1527,104 +1527,104 @@ function at(e, n, t, s) {
|
|
|
1527
1527
|
for (const a in { ...k, ...j }) {
|
|
1528
1528
|
const b = k[a], E = j[a];
|
|
1529
1529
|
let m = b, v = E;
|
|
1530
|
-
if (
|
|
1530
|
+
if (x(b) && (m = b.value), x(E) && (v = E.value), m !== v)
|
|
1531
1531
|
if (d = !0, v == null || v === !1)
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
}),
|
|
1532
|
+
$(() => {
|
|
1533
|
+
Y(e, a);
|
|
1534
|
+
}), ie(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? $(() => {
|
|
1535
1535
|
e.value = "";
|
|
1536
|
-
}) : e instanceof HTMLSelectElement ?
|
|
1536
|
+
}) : e instanceof HTMLSelectElement ? $(() => {
|
|
1537
1537
|
e.value = "";
|
|
1538
|
-
}) : e instanceof HTMLProgressElement &&
|
|
1538
|
+
}) : e instanceof HTMLProgressElement && $(() => {
|
|
1539
1539
|
e.value = 0;
|
|
1540
|
-
})), a === "checked" && e instanceof HTMLInputElement &&
|
|
1540
|
+
})), a === "checked" && e instanceof HTMLInputElement && $(() => {
|
|
1541
1541
|
e.checked = !1;
|
|
1542
|
-
}), a === "disabled" &&
|
|
1542
|
+
}), a === "disabled" && ee(e) && $(() => {
|
|
1543
1543
|
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = !1);
|
|
1544
1544
|
});
|
|
1545
1545
|
else {
|
|
1546
1546
|
if (a === "value") {
|
|
1547
1547
|
if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
|
|
1548
|
-
|
|
1548
|
+
$(() => {
|
|
1549
1549
|
e.value = v ?? "";
|
|
1550
1550
|
});
|
|
1551
1551
|
continue;
|
|
1552
1552
|
} else if (e instanceof HTMLSelectElement) {
|
|
1553
|
-
|
|
1553
|
+
$(() => {
|
|
1554
1554
|
e.value = v ?? "";
|
|
1555
1555
|
});
|
|
1556
1556
|
continue;
|
|
1557
1557
|
} else if (e instanceof HTMLProgressElement) {
|
|
1558
|
-
|
|
1558
|
+
$(() => {
|
|
1559
1559
|
e.value = Number(v);
|
|
1560
1560
|
});
|
|
1561
1561
|
continue;
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
if (a === "checked" && e instanceof HTMLInputElement) {
|
|
1565
|
-
|
|
1565
|
+
$(() => {
|
|
1566
1566
|
e.checked = !!v;
|
|
1567
1567
|
});
|
|
1568
1568
|
continue;
|
|
1569
1569
|
}
|
|
1570
1570
|
if (a === "style") {
|
|
1571
|
-
const C =
|
|
1572
|
-
C !== null && U(e, a, String(C)),
|
|
1571
|
+
const C = F(v);
|
|
1572
|
+
C !== null && U(e, a, String(C)), ie(n, a, v);
|
|
1573
1573
|
continue;
|
|
1574
1574
|
}
|
|
1575
1575
|
if (a === "class") {
|
|
1576
|
-
const C =
|
|
1577
|
-
C !== null && U(e, a, String(C)),
|
|
1576
|
+
const C = F(v);
|
|
1577
|
+
C !== null && U(e, a, String(C)), ie(n, a, v);
|
|
1578
1578
|
continue;
|
|
1579
1579
|
}
|
|
1580
|
-
if (a === "disabled" &&
|
|
1581
|
-
|
|
1582
|
-
const C =
|
|
1580
|
+
if (a === "disabled" && ee(e)) {
|
|
1581
|
+
$(() => {
|
|
1582
|
+
const C = he(v);
|
|
1583
1583
|
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = C);
|
|
1584
|
-
}),
|
|
1584
|
+
}), he(v) ? $(() => {
|
|
1585
1585
|
U(e, a, "");
|
|
1586
|
-
}) :
|
|
1587
|
-
|
|
1586
|
+
}) : $(() => {
|
|
1587
|
+
Y(e, a);
|
|
1588
1588
|
});
|
|
1589
1589
|
continue;
|
|
1590
1590
|
}
|
|
1591
1591
|
const S = e.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1592
1592
|
if (p && !S && a.includes("-"))
|
|
1593
1593
|
if (pt(a)) {
|
|
1594
|
-
const C =
|
|
1594
|
+
const C = F(E ?? v);
|
|
1595
1595
|
if (C !== null) {
|
|
1596
1596
|
try {
|
|
1597
1597
|
U(e, a, String(C));
|
|
1598
1598
|
} catch {
|
|
1599
1599
|
}
|
|
1600
|
-
|
|
1600
|
+
ie(n, a, v);
|
|
1601
1601
|
}
|
|
1602
1602
|
} else {
|
|
1603
1603
|
const C = Xe(a);
|
|
1604
1604
|
try {
|
|
1605
1605
|
const T = e;
|
|
1606
|
-
T[C] =
|
|
1606
|
+
T[C] = x(E) ? E : v, ie(n, a, v);
|
|
1607
1607
|
} catch {
|
|
1608
|
-
const T =
|
|
1608
|
+
const T = F(E ?? v);
|
|
1609
1609
|
T !== null && U(e, a, String(T));
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
else if (!S && a in e)
|
|
1613
1613
|
try {
|
|
1614
1614
|
const C = e;
|
|
1615
|
-
C[a] =
|
|
1615
|
+
C[a] = x(E) ? E : v, ie(n, a, v);
|
|
1616
1616
|
} catch {
|
|
1617
|
-
const C =
|
|
1618
|
-
C !== null && (U(e, a, String(C)),
|
|
1617
|
+
const C = F(v);
|
|
1618
|
+
C !== null && (U(e, a, String(C)), ie(n, a, v));
|
|
1619
1619
|
}
|
|
1620
1620
|
else {
|
|
1621
|
-
const C =
|
|
1622
|
-
C !== null && (U(e, a, String(C)),
|
|
1621
|
+
const C = F(v);
|
|
1622
|
+
C !== null && (U(e, a, String(C)), ie(n, a, v));
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
try {
|
|
1627
|
-
if (
|
|
1627
|
+
if (ee(e)) {
|
|
1628
1628
|
const a = c.disabled;
|
|
1629
1629
|
let b;
|
|
1630
1630
|
try {
|
|
@@ -1633,42 +1633,42 @@ function at(e, n, t, s) {
|
|
|
1633
1633
|
"disabled"
|
|
1634
1634
|
), v = a && typeof a == "object" && "value" in a;
|
|
1635
1635
|
let S = !1;
|
|
1636
|
-
|
|
1637
|
-
S = !!
|
|
1636
|
+
$(() => {
|
|
1637
|
+
S = !!x(a);
|
|
1638
1638
|
});
|
|
1639
1639
|
const C = Ze(a);
|
|
1640
1640
|
S || v || m || C ? b = a : b = f.disabled;
|
|
1641
1641
|
} catch {
|
|
1642
1642
|
b = f.disabled;
|
|
1643
1643
|
}
|
|
1644
|
-
const E =
|
|
1645
|
-
|
|
1644
|
+
const E = he(b);
|
|
1645
|
+
$(() => {
|
|
1646
1646
|
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = E);
|
|
1647
|
-
}), E ?
|
|
1647
|
+
}), E ? $(() => {
|
|
1648
1648
|
U(e, "disabled", "");
|
|
1649
|
-
}) :
|
|
1650
|
-
|
|
1649
|
+
}) : $(() => {
|
|
1650
|
+
Y(e, "disabled");
|
|
1651
1651
|
});
|
|
1652
1652
|
}
|
|
1653
1653
|
} catch {
|
|
1654
1654
|
}
|
|
1655
1655
|
if (p && d) {
|
|
1656
1656
|
const a = e;
|
|
1657
|
-
|
|
1657
|
+
$(() => {
|
|
1658
1658
|
a._applyProps?.(a._cfg);
|
|
1659
|
-
}),
|
|
1659
|
+
}), $(() => {
|
|
1660
1660
|
typeof a.requestRender == "function" ? a.requestRender() : typeof a._render == "function" && a._render?.(a._cfg);
|
|
1661
1661
|
});
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function J(e, n, t, s = null) {
|
|
1665
1665
|
if (typeof e == "string")
|
|
1666
1666
|
return document.createTextNode(e);
|
|
1667
1667
|
if (e.tag === "#text") {
|
|
1668
1668
|
const a = document.createTextNode(
|
|
1669
1669
|
typeof e.children == "string" ? e.children : ""
|
|
1670
1670
|
);
|
|
1671
|
-
return e.key != null &&
|
|
1671
|
+
return e.key != null && Z(a, e.key), a;
|
|
1672
1672
|
}
|
|
1673
1673
|
if (e.tag === "#raw") {
|
|
1674
1674
|
const a = typeof e.children == "string" ? e.children : "";
|
|
@@ -1676,11 +1676,11 @@ function Z(e, n, t, s = null) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
if (e.tag === "#anchor") {
|
|
1678
1678
|
const a = e, b = Array.isArray(a.children) ? a.children : [], E = document.createTextNode(""), m = document.createTextNode("");
|
|
1679
|
-
a.key != null && (
|
|
1679
|
+
a.key != null && (Z(E, `${a.key}:start`), Z(m, `${a.key}:end`)), a._startNode = E, a._endNode = m;
|
|
1680
1680
|
const v = document.createDocumentFragment();
|
|
1681
1681
|
v.appendChild(E);
|
|
1682
1682
|
for (const S of b) {
|
|
1683
|
-
const C =
|
|
1683
|
+
const C = J(
|
|
1684
1684
|
S,
|
|
1685
1685
|
n,
|
|
1686
1686
|
t,
|
|
@@ -1689,14 +1689,14 @@ function Z(e, n, t, s = null) {
|
|
|
1689
1689
|
);
|
|
1690
1690
|
if (a.key != null && C instanceof Element && !C.hasAttribute("data-anchor-key")) {
|
|
1691
1691
|
const T = S;
|
|
1692
|
-
T && typeof T == "object" && T.key != null ||
|
|
1692
|
+
T && typeof T == "object" && T.key != null || Z(C, String(a.key));
|
|
1693
1693
|
}
|
|
1694
1694
|
v.appendChild(C);
|
|
1695
1695
|
}
|
|
1696
1696
|
return v.appendChild(m), v;
|
|
1697
1697
|
}
|
|
1698
1698
|
const r = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, o = (r && typeof r.xmlns == "string" ? String(r.xmlns) : void 0) ?? s ?? Ct[e.tag] ?? null, c = o ? document.createElementNS(o, e.tag) : document.createElement(e.tag);
|
|
1699
|
-
e.key != null &&
|
|
1699
|
+
e.key != null && Z(c, e.key), e.props && e.props?._transitionGroup && Gt(
|
|
1700
1700
|
c,
|
|
1701
1701
|
e.props?._transitionGroup
|
|
1702
1702
|
);
|
|
@@ -1713,7 +1713,7 @@ function Z(e, n, t, s = null) {
|
|
|
1713
1713
|
...p.attrs
|
|
1714
1714
|
};
|
|
1715
1715
|
try {
|
|
1716
|
-
const a = (k && k.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), b =
|
|
1716
|
+
const a = (k && k.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), b = F(a);
|
|
1717
1717
|
if (b !== null) {
|
|
1718
1718
|
const E = String(b).trim();
|
|
1719
1719
|
E && U(c, "class", E);
|
|
@@ -1721,15 +1721,15 @@ function Z(e, n, t, s = null) {
|
|
|
1721
1721
|
} catch {
|
|
1722
1722
|
}
|
|
1723
1723
|
try {
|
|
1724
|
-
if (d.disabled !== void 0 && c &&
|
|
1724
|
+
if (d.disabled !== void 0 && c && ee(c)) {
|
|
1725
1725
|
const a = d.disabled, b = a && typeof a == "object" && "value" in a;
|
|
1726
1726
|
let E = !1;
|
|
1727
1727
|
try {
|
|
1728
|
-
E =
|
|
1728
|
+
E = x(a);
|
|
1729
1729
|
} catch {
|
|
1730
1730
|
E = !1;
|
|
1731
1731
|
}
|
|
1732
|
-
!b && !E &&
|
|
1732
|
+
!b && !E && $(() => {
|
|
1733
1733
|
k.disabled = a, delete d.disabled;
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
@@ -1742,18 +1742,18 @@ function Z(e, n, t, s = null) {
|
|
|
1742
1742
|
continue;
|
|
1743
1743
|
const E = Ge(b);
|
|
1744
1744
|
if (typeof E == "boolean")
|
|
1745
|
-
E ? U(c, a, "") :
|
|
1746
|
-
|
|
1745
|
+
E ? U(c, a, "") : $(() => {
|
|
1746
|
+
Y(c, a);
|
|
1747
1747
|
});
|
|
1748
1748
|
else if (E != null) {
|
|
1749
|
-
if (a === "disabled" &&
|
|
1750
|
-
const m = d.disabled, v = Ze(m) ? m : E, S =
|
|
1751
|
-
|
|
1749
|
+
if (a === "disabled" && ee(c)) {
|
|
1750
|
+
const m = d.disabled, v = Ze(m) ? m : E, S = he(v);
|
|
1751
|
+
$(() => {
|
|
1752
1752
|
c.disabled = S;
|
|
1753
|
-
}), S ?
|
|
1753
|
+
}), S ? $(() => {
|
|
1754
1754
|
U(c, a, "");
|
|
1755
|
-
}) :
|
|
1756
|
-
|
|
1755
|
+
}) : $(() => {
|
|
1756
|
+
Y(c, a);
|
|
1757
1757
|
});
|
|
1758
1758
|
continue;
|
|
1759
1759
|
}
|
|
@@ -1761,21 +1761,21 @@ function Z(e, n, t, s = null) {
|
|
|
1761
1761
|
try {
|
|
1762
1762
|
c instanceof HTMLProgressElement ? c.value = Number(E) : c.value = String(E ?? "");
|
|
1763
1763
|
} catch {
|
|
1764
|
-
const m =
|
|
1764
|
+
const m = F(E);
|
|
1765
1765
|
m !== null && U(c, a, String(m));
|
|
1766
1766
|
}
|
|
1767
1767
|
else if (!j && a === "checked" && c instanceof HTMLInputElement)
|
|
1768
1768
|
try {
|
|
1769
1769
|
c.checked = !!E;
|
|
1770
1770
|
} catch {
|
|
1771
|
-
const m =
|
|
1771
|
+
const m = F(E);
|
|
1772
1772
|
m !== null && U(c, a, String(m));
|
|
1773
1773
|
}
|
|
1774
1774
|
else if (!j && a in c)
|
|
1775
1775
|
try {
|
|
1776
|
-
c[a] = E, a === "disabled" && E === !1 &&
|
|
1776
|
+
c[a] = E, a === "disabled" && E === !1 && ee(c) && Y(c, "disabled"), ie(e.props, a, E);
|
|
1777
1777
|
} catch {
|
|
1778
|
-
const m =
|
|
1778
|
+
const m = F(E);
|
|
1779
1779
|
m !== null && U(c, a, String(m));
|
|
1780
1780
|
}
|
|
1781
1781
|
else if ((e.props?.isCustomElement ?? !1) && !j && a.includes("-")) {
|
|
@@ -1783,11 +1783,11 @@ function Z(e, n, t, s = null) {
|
|
|
1783
1783
|
try {
|
|
1784
1784
|
c[v] = E;
|
|
1785
1785
|
} catch {
|
|
1786
|
-
const S =
|
|
1786
|
+
const S = F(E);
|
|
1787
1787
|
S !== null && U(c, a, String(S));
|
|
1788
1788
|
}
|
|
1789
1789
|
} else {
|
|
1790
|
-
const v =
|
|
1790
|
+
const v = F(E);
|
|
1791
1791
|
v !== null && U(c, a, String(v));
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
@@ -1796,8 +1796,8 @@ function Z(e, n, t, s = null) {
|
|
|
1796
1796
|
const b = d[a];
|
|
1797
1797
|
if (!(typeof a != "string" || /\[object Object\]/.test(a)))
|
|
1798
1798
|
if (a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement)) {
|
|
1799
|
-
const E = typeof b == "object" && b !== null &&
|
|
1800
|
-
|
|
1799
|
+
const E = typeof b == "object" && b !== null && je(b) ? b.value : b;
|
|
1800
|
+
$(() => {
|
|
1801
1801
|
c.value = String(E ?? "");
|
|
1802
1802
|
});
|
|
1803
1803
|
} else if (a.startsWith("on") && typeof b == "function") {
|
|
@@ -1813,17 +1813,17 @@ function Z(e, n, t, s = null) {
|
|
|
1813
1813
|
return `${v[0]}:${C}`;
|
|
1814
1814
|
}
|
|
1815
1815
|
})() : E;
|
|
1816
|
-
p.listeners && (p.listeners[E] || p.listeners[m]) ||
|
|
1816
|
+
p.listeners && (p.listeners[E] || p.listeners[m]) || re.addListener(c, E, b);
|
|
1817
1817
|
} else {
|
|
1818
1818
|
if (a.startsWith("on") && b === void 0)
|
|
1819
1819
|
continue;
|
|
1820
1820
|
if (b == null || b === !1)
|
|
1821
|
-
|
|
1821
|
+
Y(c, a);
|
|
1822
1822
|
else {
|
|
1823
|
-
const E = e.props?.isCustomElement ?? !1, m = typeof b == "object" && b !== null &&
|
|
1823
|
+
const E = e.props?.isCustomElement ?? !1, m = typeof b == "object" && b !== null && x(b) ? b : je(b) && typeof b.value < "u" ? b.value : b;
|
|
1824
1824
|
if (a === "class" || a === "style") {
|
|
1825
1825
|
try {
|
|
1826
|
-
const v =
|
|
1826
|
+
const v = F(m);
|
|
1827
1827
|
v !== null && U(c, a, String(v));
|
|
1828
1828
|
} catch {
|
|
1829
1829
|
}
|
|
@@ -1831,15 +1831,15 @@ function Z(e, n, t, s = null) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
if (E || a in c)
|
|
1833
1833
|
try {
|
|
1834
|
-
const v = typeof b == "object" && b !== null &&
|
|
1835
|
-
if (a === "disabled" &&
|
|
1836
|
-
const S = d.disabled !== void 0 ? d.disabled : v, C =
|
|
1837
|
-
|
|
1834
|
+
const v = typeof b == "object" && b !== null && x(b) ? b : je(b) ? b.value : b;
|
|
1835
|
+
if (a === "disabled" && ee(c)) {
|
|
1836
|
+
const S = d.disabled !== void 0 ? d.disabled : v, C = he(S);
|
|
1837
|
+
$(() => {
|
|
1838
1838
|
c.disabled = C;
|
|
1839
|
-
}), C ?
|
|
1839
|
+
}), C ? $(() => {
|
|
1840
1840
|
U(c, a, "");
|
|
1841
|
-
}) :
|
|
1842
|
-
|
|
1841
|
+
}) : $(() => {
|
|
1842
|
+
Y(c, a);
|
|
1843
1843
|
});
|
|
1844
1844
|
continue;
|
|
1845
1845
|
}
|
|
@@ -1860,7 +1860,7 @@ function Z(e, n, t, s = null) {
|
|
|
1860
1860
|
for (const [a, b] of Object.entries(
|
|
1861
1861
|
p.listeners || {}
|
|
1862
1862
|
))
|
|
1863
|
-
|
|
1863
|
+
re.addListener(c, a, b);
|
|
1864
1864
|
const A = {
|
|
1865
1865
|
...e,
|
|
1866
1866
|
props: {
|
|
@@ -1868,7 +1868,7 @@ function Z(e, n, t, s = null) {
|
|
|
1868
1868
|
...p.props
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
|
-
|
|
1871
|
+
Le(A, c, t);
|
|
1872
1872
|
try {
|
|
1873
1873
|
const a = c;
|
|
1874
1874
|
if (typeof a._applyProps == "function")
|
|
@@ -1882,7 +1882,7 @@ function Z(e, n, t, s = null) {
|
|
|
1882
1882
|
if (Array.isArray(e.children)) {
|
|
1883
1883
|
const a = e.tag === "foreignObject" && o === kt ? null : c.namespaceURI ?? null;
|
|
1884
1884
|
for (const b of e.children)
|
|
1885
|
-
c.appendChild(
|
|
1885
|
+
c.appendChild(J(b, n, t, a));
|
|
1886
1886
|
} else typeof e.children == "string" && (c.textContent = e.children);
|
|
1887
1887
|
try {
|
|
1888
1888
|
if (c instanceof HTMLSelectElement && k && Object.prototype.hasOwnProperty.call(k, "value"))
|
|
@@ -1893,21 +1893,21 @@ function Z(e, n, t, s = null) {
|
|
|
1893
1893
|
} catch {
|
|
1894
1894
|
}
|
|
1895
1895
|
try {
|
|
1896
|
-
if (
|
|
1896
|
+
if (ee(c)) {
|
|
1897
1897
|
const a = d.disabled, b = k.disabled, E = a && typeof a == "object" && "value" in a;
|
|
1898
1898
|
let m = !1;
|
|
1899
1899
|
try {
|
|
1900
|
-
m = !!
|
|
1900
|
+
m = !!x(a);
|
|
1901
1901
|
} catch {
|
|
1902
1902
|
m = !1;
|
|
1903
1903
|
}
|
|
1904
|
-
const S = m || E || Ze(a) ? a : b, C =
|
|
1905
|
-
|
|
1904
|
+
const S = m || E || Ze(a) ? a : b, C = he(S);
|
|
1905
|
+
$(() => {
|
|
1906
1906
|
c.disabled = C;
|
|
1907
|
-
}), C ?
|
|
1907
|
+
}), C ? $(() => {
|
|
1908
1908
|
U(c, "disabled", "");
|
|
1909
|
-
}) :
|
|
1910
|
-
|
|
1909
|
+
}) : $(() => {
|
|
1910
|
+
Y(c, "disabled");
|
|
1911
1911
|
});
|
|
1912
1912
|
}
|
|
1913
1913
|
} catch {
|
|
@@ -1964,8 +1964,8 @@ function Zt(e, n, t, s, r) {
|
|
|
1964
1964
|
const y = o[l];
|
|
1965
1965
|
let w = De(y);
|
|
1966
1966
|
if (w = A(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
|
|
1967
|
-
let
|
|
1968
|
-
|
|
1967
|
+
let N = typeof w == "string" && w.includes(":") ? w.substring(0, w.lastIndexOf(":")) : w;
|
|
1968
|
+
N = String(N), v.set(N, y);
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = o.length > 0;
|
|
@@ -1983,41 +1983,41 @@ function Zt(e, n, t, s, r) {
|
|
|
1983
1983
|
if (y == null) continue;
|
|
1984
1984
|
y = String(y);
|
|
1985
1985
|
const w = m.get(y);
|
|
1986
|
-
let
|
|
1987
|
-
if (
|
|
1988
|
-
const
|
|
1989
|
-
S.add(
|
|
1986
|
+
let N = v.get(y);
|
|
1987
|
+
if (N && w) {
|
|
1988
|
+
const L = Oe(N, w, l, s);
|
|
1989
|
+
S.add(N);
|
|
1990
1990
|
const M = String(y);
|
|
1991
|
-
|
|
1992
|
-
node:
|
|
1991
|
+
Z(L, M), g.push({
|
|
1992
|
+
node: L,
|
|
1993
1993
|
key: y,
|
|
1994
1994
|
newVNode: l,
|
|
1995
1995
|
oldVNode: w,
|
|
1996
1996
|
isNew: !1
|
|
1997
1997
|
});
|
|
1998
1998
|
} else {
|
|
1999
|
-
|
|
1999
|
+
N = J(
|
|
2000
2000
|
l,
|
|
2001
2001
|
s,
|
|
2002
2002
|
void 0,
|
|
2003
2003
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2004
|
-
),
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
}), g.push({ node:
|
|
2004
|
+
), Z(N, String(y)), e.appendChild(N);
|
|
2005
|
+
const L = T || f.appear === !0;
|
|
2006
|
+
N instanceof HTMLElement && L && Ne(N, f).catch((M) => {
|
|
2007
|
+
W("Enter transition error:", M);
|
|
2008
|
+
}), g.push({ node: N, key: y, newVNode: l, isNew: !0 });
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
2011
|
const _ = [];
|
|
2012
2012
|
for (let l = 0; l < o.length; l++) {
|
|
2013
2013
|
const y = o[l], w = De(y);
|
|
2014
2014
|
if (!S.has(y) && w != null && y instanceof HTMLElement) {
|
|
2015
|
-
const
|
|
2015
|
+
const L = Fe(y, f).then(() => {
|
|
2016
2016
|
e.contains(y) && e.removeChild(y);
|
|
2017
2017
|
}).catch((M) => {
|
|
2018
|
-
|
|
2018
|
+
W("Leave transition error:", M), e.contains(y) && e.removeChild(y);
|
|
2019
2019
|
});
|
|
2020
|
-
_.push(
|
|
2020
|
+
_.push(L);
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
if (_.length === 0) {
|
|
@@ -2026,37 +2026,37 @@ function Zt(e, n, t, s, r) {
|
|
|
2026
2026
|
y !== l && e.insertBefore(y, l), l = y.nextSibling;
|
|
2027
2027
|
if (f.moveClass && C.size > 0) {
|
|
2028
2028
|
const y = [];
|
|
2029
|
-
for (const { node: w, isNew:
|
|
2030
|
-
if (!
|
|
2031
|
-
const
|
|
2032
|
-
if (
|
|
2033
|
-
const M = w.getBoundingClientRect(),
|
|
2034
|
-
if (
|
|
2029
|
+
for (const { node: w, isNew: N } of g)
|
|
2030
|
+
if (!N && w instanceof HTMLElement) {
|
|
2031
|
+
const L = C.get(w);
|
|
2032
|
+
if (L) {
|
|
2033
|
+
const M = w.getBoundingClientRect(), B = L.left - M.left, O = L.top - M.top;
|
|
2034
|
+
if (B !== 0 || O !== 0) {
|
|
2035
2035
|
const z = f.moveClass.split(/\s+/).filter((I) => I);
|
|
2036
|
-
y.push({ node: w, deltaX:
|
|
2036
|
+
y.push({ node: w, deltaX: B, deltaY: O, moveClasses: z });
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
if (y.length > 0) {
|
|
2041
|
-
for (const { node: w, deltaX:
|
|
2042
|
-
w.style.transform = `translate(${
|
|
2041
|
+
for (const { node: w, deltaX: N, deltaY: L } of y)
|
|
2042
|
+
w.style.transform = `translate(${N}px, ${L}px)`, w.style.transitionProperty = "none";
|
|
2043
2043
|
e.offsetHeight, requestAnimationFrame(() => {
|
|
2044
2044
|
requestAnimationFrame(() => {
|
|
2045
|
-
for (const { node: w, moveClasses:
|
|
2046
|
-
for (const
|
|
2047
|
-
w.classList.add(
|
|
2045
|
+
for (const { node: w, moveClasses: N } of y)
|
|
2046
|
+
for (const L of N)
|
|
2047
|
+
w.classList.add(L);
|
|
2048
2048
|
requestAnimationFrame(() => {
|
|
2049
|
-
const w = f.moveClass || "",
|
|
2049
|
+
const w = f.moveClass || "", N = w.match(/duration-(\d+)/), L = N ? `${N[1]}ms` : "300ms", M = w.match(
|
|
2050
2050
|
/ease-(out|in|in-out|linear)/
|
|
2051
|
-
),
|
|
2051
|
+
), B = M ? `ease-${M[1]}` : "ease-out";
|
|
2052
2052
|
for (const { node: O } of y)
|
|
2053
|
-
O.style.transition = `transform ${
|
|
2053
|
+
O.style.transition = `transform ${L} ${B}`;
|
|
2054
2054
|
requestAnimationFrame(() => {
|
|
2055
2055
|
for (const { node: O, moveClasses: z } of y) {
|
|
2056
2056
|
O.style.removeProperty("transform");
|
|
2057
2057
|
const I = () => {
|
|
2058
|
-
for (const
|
|
2059
|
-
O.classList.remove(
|
|
2058
|
+
for (const ne of z)
|
|
2059
|
+
O.classList.remove(ne);
|
|
2060
2060
|
O.style.removeProperty("transition"), O.removeEventListener("transitionend", I), O.removeEventListener("transitioncancel", I);
|
|
2061
2061
|
};
|
|
2062
2062
|
O.addEventListener("transitionend", I, {
|
|
@@ -2098,61 +2098,90 @@ function Zt(e, n, t, s, r) {
|
|
|
2098
2098
|
const T = Array.isArray(b) ? b : [];
|
|
2099
2099
|
if (E.some((_) => _ && _.key != null) || T.some((_) => _ && _.key != null)) {
|
|
2100
2100
|
const _ = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
2101
|
-
for (const
|
|
2102
|
-
|
|
2103
|
-
for (const
|
|
2104
|
-
const M = De(
|
|
2105
|
-
M != null && l.set(M,
|
|
2101
|
+
for (const L of T)
|
|
2102
|
+
L && L.key != null && _.set(L.key, L);
|
|
2103
|
+
for (const L of S) {
|
|
2104
|
+
const M = De(L);
|
|
2105
|
+
M != null && l.set(M, L);
|
|
2106
2106
|
}
|
|
2107
2107
|
const y = m && m.state === "visible" && T.length === 0 && E.length > 0, w = /* @__PURE__ */ new Set();
|
|
2108
|
-
let
|
|
2109
|
-
for (const
|
|
2108
|
+
let N = A.nextSibling;
|
|
2109
|
+
for (const L of E) {
|
|
2110
|
+
if (typeof L == "object" && L.tag === "#anchor") {
|
|
2111
|
+
const B = L.key, O = `${B}:start`, z = `${B}:end`, I = l.get(O), ne = l.get(z), q = Array.isArray(L.children) ? L.children : [], H = _.get(B);
|
|
2112
|
+
let P, D;
|
|
2113
|
+
if (I && ne && e.contains(I))
|
|
2114
|
+
P = I, D = ne, j(
|
|
2115
|
+
P,
|
|
2116
|
+
D,
|
|
2117
|
+
H?.children,
|
|
2118
|
+
q
|
|
2119
|
+
);
|
|
2120
|
+
else {
|
|
2121
|
+
P = document.createTextNode(""), D = document.createTextNode(""), Z(P, O), Z(D, z), e.insertBefore(P, N);
|
|
2122
|
+
for (const me of q) {
|
|
2123
|
+
const ae = J(
|
|
2124
|
+
me,
|
|
2125
|
+
s,
|
|
2126
|
+
void 0,
|
|
2127
|
+
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2128
|
+
);
|
|
2129
|
+
e.insertBefore(ae, N), w.add(ae);
|
|
2130
|
+
}
|
|
2131
|
+
e.insertBefore(D, N);
|
|
2132
|
+
}
|
|
2133
|
+
let K = P;
|
|
2134
|
+
for (; K && (w.add(K), K !== D); )
|
|
2135
|
+
K = K.nextSibling;
|
|
2136
|
+
L._startNode = P, L._endNode = D, N = D.nextSibling;
|
|
2137
|
+
continue;
|
|
2138
|
+
}
|
|
2110
2139
|
let M;
|
|
2111
|
-
if (
|
|
2112
|
-
const
|
|
2113
|
-
M =
|
|
2114
|
-
l.get(
|
|
2115
|
-
|
|
2116
|
-
|
|
2140
|
+
if (L.key != null && l.has(L.key)) {
|
|
2141
|
+
const B = _.get(L.key);
|
|
2142
|
+
M = Oe(
|
|
2143
|
+
l.get(L.key),
|
|
2144
|
+
B,
|
|
2145
|
+
L,
|
|
2117
2146
|
s
|
|
2118
|
-
), w.add(M), m && M instanceof HTMLElement && y && m.appear &&
|
|
2119
|
-
|
|
2120
|
-
}), M !==
|
|
2147
|
+
), w.add(M), m && M instanceof HTMLElement && y && m.appear && Ne(M, m).catch((O) => {
|
|
2148
|
+
W("Transition enter error (appear):", O);
|
|
2149
|
+
}), M !== N && e.contains(M) && e.insertBefore(M, N);
|
|
2121
2150
|
} else
|
|
2122
|
-
M =
|
|
2123
|
-
|
|
2151
|
+
M = J(
|
|
2152
|
+
L,
|
|
2124
2153
|
s,
|
|
2125
2154
|
void 0,
|
|
2126
2155
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2127
|
-
), e.insertBefore(M,
|
|
2128
|
-
|
|
2156
|
+
), e.insertBefore(M, N), w.add(M), m && M instanceof HTMLElement && v && Ne(M, m).catch((B) => {
|
|
2157
|
+
W("Transition enter error:", B);
|
|
2129
2158
|
});
|
|
2130
|
-
|
|
2159
|
+
N = M.nextSibling;
|
|
2131
2160
|
}
|
|
2132
|
-
for (const
|
|
2133
|
-
!w.has(
|
|
2134
|
-
e.contains(
|
|
2161
|
+
for (const L of S)
|
|
2162
|
+
!w.has(L) && e.contains(L) && (m && L instanceof HTMLElement && v ? Fe(L, m).then(() => {
|
|
2163
|
+
e.contains(L) && e.removeChild(L);
|
|
2135
2164
|
}).catch((M) => {
|
|
2136
|
-
|
|
2137
|
-
}) : e.removeChild(
|
|
2165
|
+
W("Transition leave error:", M), e.contains(L) && e.removeChild(L);
|
|
2166
|
+
}) : e.removeChild(L));
|
|
2138
2167
|
} else {
|
|
2139
2168
|
const _ = Math.min(
|
|
2140
2169
|
T.length,
|
|
2141
2170
|
E.length
|
|
2142
2171
|
);
|
|
2143
2172
|
for (let l = 0; l < _; l++) {
|
|
2144
|
-
const y = T[l], w = E[l],
|
|
2145
|
-
|
|
2173
|
+
const y = T[l], w = E[l], N = Oe(S[l], y, w, s);
|
|
2174
|
+
N !== S[l] && (e.insertBefore(N, S[l]), e.removeChild(S[l]));
|
|
2146
2175
|
}
|
|
2147
2176
|
for (let l = _; l < E.length; l++) {
|
|
2148
|
-
const y =
|
|
2177
|
+
const y = J(
|
|
2149
2178
|
E[l],
|
|
2150
2179
|
s,
|
|
2151
2180
|
void 0,
|
|
2152
2181
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2153
2182
|
);
|
|
2154
|
-
e.insertBefore(y, a), m && y instanceof HTMLElement && v &&
|
|
2155
|
-
|
|
2183
|
+
e.insertBefore(y, a), m && y instanceof HTMLElement && v && Ne(y, m).catch((w) => {
|
|
2184
|
+
W("Transition enter error:", w);
|
|
2156
2185
|
});
|
|
2157
2186
|
}
|
|
2158
2187
|
for (let l = _; l < S.length; l++) {
|
|
@@ -2160,7 +2189,7 @@ function Zt(e, n, t, s, r) {
|
|
|
2160
2189
|
m && y instanceof HTMLElement && v ? Fe(y, m).then(() => {
|
|
2161
2190
|
e.contains(y) && e.removeChild(y);
|
|
2162
2191
|
}).catch((w) => {
|
|
2163
|
-
|
|
2192
|
+
W("Transition leave error:", w), e.contains(y) && e.removeChild(y);
|
|
2164
2193
|
}) : e.removeChild(y);
|
|
2165
2194
|
}
|
|
2166
2195
|
}
|
|
@@ -2171,18 +2200,18 @@ function Zt(e, n, t, s, r) {
|
|
|
2171
2200
|
const b = A.key, E = `${b}:start`, m = `${b}:end`;
|
|
2172
2201
|
let v = h.get(E), S = h.get(m);
|
|
2173
2202
|
const C = Array.isArray(A.children) ? A.children : [];
|
|
2174
|
-
if (v || (v = document.createTextNode(""),
|
|
2203
|
+
if (v || (v = document.createTextNode(""), Z(v, E)), S || (S = document.createTextNode(""), Z(S, m)), A._startNode = v, A._endNode = S, !e.contains(v) || !e.contains(S)) {
|
|
2175
2204
|
e.insertBefore(v, d);
|
|
2176
2205
|
const T = A._transition, _ = !(T && T.state === "visible" && C.length > 0) || T.appear;
|
|
2177
2206
|
for (const l of C) {
|
|
2178
|
-
const y =
|
|
2207
|
+
const y = J(
|
|
2179
2208
|
l,
|
|
2180
2209
|
s,
|
|
2181
2210
|
r,
|
|
2182
2211
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2183
2212
|
);
|
|
2184
|
-
e.insertBefore(y, d), T && y instanceof HTMLElement && _ &&
|
|
2185
|
-
|
|
2213
|
+
e.insertBefore(y, d), T && y instanceof HTMLElement && _ && Ne(y, T).catch((w) => {
|
|
2214
|
+
W("Transition enter error:", w);
|
|
2186
2215
|
});
|
|
2187
2216
|
}
|
|
2188
2217
|
e.insertBefore(S, d);
|
|
@@ -2202,7 +2231,7 @@ function Zt(e, n, t, s, r) {
|
|
|
2202
2231
|
}
|
|
2203
2232
|
if (A.key != null && h.has(A.key)) {
|
|
2204
2233
|
const b = u.get(A.key);
|
|
2205
|
-
a =
|
|
2234
|
+
a = Oe(
|
|
2206
2235
|
h.get(A.key),
|
|
2207
2236
|
b,
|
|
2208
2237
|
A,
|
|
@@ -2210,7 +2239,7 @@ function Zt(e, n, t, s, r) {
|
|
|
2210
2239
|
r
|
|
2211
2240
|
), p.add(a), a !== d && e.contains(a) && (d && !e.contains(d) && (d = null), e.insertBefore(a, d));
|
|
2212
2241
|
} else
|
|
2213
|
-
a =
|
|
2242
|
+
a = J(
|
|
2214
2243
|
A,
|
|
2215
2244
|
s,
|
|
2216
2245
|
r,
|
|
@@ -2220,11 +2249,11 @@ function Zt(e, n, t, s, r) {
|
|
|
2220
2249
|
}
|
|
2221
2250
|
for (let A = 0; A < o.length; A++) {
|
|
2222
2251
|
const a = o[A];
|
|
2223
|
-
!p.has(a) && e.contains(a) && (
|
|
2252
|
+
!p.has(a) && e.contains(a) && (pe(a, r), e.removeChild(a));
|
|
2224
2253
|
}
|
|
2225
2254
|
}
|
|
2226
|
-
function
|
|
2227
|
-
if (n && typeof n != "string" && n.props?.ref && r &&
|
|
2255
|
+
function Oe(e, n, t, s, r) {
|
|
2256
|
+
if (n && typeof n != "string" && n.props?.ref && r && pe(e, r), n === t) return e;
|
|
2228
2257
|
if (typeof t == "string") {
|
|
2229
2258
|
if (e.nodeType === Node.TEXT_NODE)
|
|
2230
2259
|
return e.textContent !== t && (e.textContent = t), e;
|
|
@@ -2235,11 +2264,11 @@ function Le(e, n, t, s, r) {
|
|
|
2235
2264
|
}
|
|
2236
2265
|
if (t && typeof t != "string" && t.tag === "#anchor") {
|
|
2237
2266
|
const o = t, c = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), u = o._endNode ?? document.createTextNode("");
|
|
2238
|
-
o.key != null && (
|
|
2267
|
+
o.key != null && (Z(f, `${o.key}:start`), Z(u, `${o.key}:end`)), o._startNode = f, o._endNode = u;
|
|
2239
2268
|
const h = document.createDocumentFragment();
|
|
2240
2269
|
h.appendChild(f);
|
|
2241
2270
|
for (const p of c) {
|
|
2242
|
-
const d =
|
|
2271
|
+
const d = J(
|
|
2243
2272
|
p,
|
|
2244
2273
|
s,
|
|
2245
2274
|
r,
|
|
@@ -2250,28 +2279,28 @@ function Le(e, n, t, s, r) {
|
|
|
2250
2279
|
return h.appendChild(u), e.parentNode?.replaceChild(h, e), f;
|
|
2251
2280
|
}
|
|
2252
2281
|
if (!t) {
|
|
2253
|
-
|
|
2282
|
+
pe(e, r);
|
|
2254
2283
|
const o = document.createComment("removed");
|
|
2255
2284
|
return e.parentNode?.replaceChild(o, e), o;
|
|
2256
2285
|
}
|
|
2257
2286
|
if (!n || typeof n == "string") {
|
|
2258
|
-
|
|
2259
|
-
const o =
|
|
2287
|
+
pe(e, r);
|
|
2288
|
+
const o = J(
|
|
2260
2289
|
t,
|
|
2261
2290
|
s,
|
|
2262
2291
|
r,
|
|
2263
2292
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
2264
2293
|
);
|
|
2265
|
-
return
|
|
2294
|
+
return Le(t, o, r), e.parentNode?.replaceChild(o, e), o;
|
|
2266
2295
|
}
|
|
2267
2296
|
if (t.tag === "#anchor") {
|
|
2268
2297
|
const o = Array.isArray(t.children) ? t.children : [], c = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
|
|
2269
|
-
t.key != null && (
|
|
2298
|
+
t.key != null && (Z(c, `${t.key}:start`), Z(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
|
|
2270
2299
|
const u = document.createDocumentFragment();
|
|
2271
2300
|
u.appendChild(c);
|
|
2272
2301
|
for (const h of o)
|
|
2273
2302
|
u.appendChild(
|
|
2274
|
-
|
|
2303
|
+
J(
|
|
2275
2304
|
h,
|
|
2276
2305
|
s,
|
|
2277
2306
|
r,
|
|
@@ -2282,22 +2311,22 @@ function Le(e, n, t, s, r) {
|
|
|
2282
2311
|
}
|
|
2283
2312
|
if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && n.key === t.key) {
|
|
2284
2313
|
const o = e;
|
|
2285
|
-
return at(o, n.props || {}, t.props || {}, s), Zt(o, n.children, t.children, s, r),
|
|
2314
|
+
return at(o, n.props || {}, t.props || {}, s), Zt(o, n.children, t.children, s, r), Le(t, o, r), o;
|
|
2286
2315
|
}
|
|
2287
2316
|
if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && (n.tag && String(n.tag).includes("-") || t.props && t.props.isCustomElement || n.props && n.props.isCustomElement))
|
|
2288
2317
|
try {
|
|
2289
2318
|
const c = e;
|
|
2290
|
-
return at(c, n.props || {}, t.props || {}, s),
|
|
2319
|
+
return at(c, n.props || {}, t.props || {}, s), Le(t, c, r), c;
|
|
2291
2320
|
} catch {
|
|
2292
2321
|
}
|
|
2293
|
-
|
|
2294
|
-
const i =
|
|
2322
|
+
pe(e, r);
|
|
2323
|
+
const i = J(
|
|
2295
2324
|
t,
|
|
2296
2325
|
s,
|
|
2297
2326
|
r,
|
|
2298
2327
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
2299
2328
|
);
|
|
2300
|
-
return
|
|
2329
|
+
return Le(t, i, r), e.parentNode?.replaceChild(i, e), i;
|
|
2301
2330
|
}
|
|
2302
2331
|
function Jt(e, n, t, s) {
|
|
2303
2332
|
let r;
|
|
@@ -2311,12 +2340,12 @@ function Jt(e, n, t, s) {
|
|
|
2311
2340
|
}), r = Je(r, String(r.key ?? "root"));
|
|
2312
2341
|
const i = e._prevVNode ?? null, o = e._prevDom ?? e.firstChild ?? null;
|
|
2313
2342
|
let c;
|
|
2314
|
-
i && o ? typeof i != "string" && typeof r != "string" && i.tag === r.tag && i.key === r.key ? c =
|
|
2343
|
+
i && o ? typeof i != "string" && typeof r != "string" && i.tag === r.tag && i.key === r.key ? c = Oe(o, i, r, t, s) : (c = J(
|
|
2315
2344
|
r,
|
|
2316
2345
|
t,
|
|
2317
2346
|
s,
|
|
2318
2347
|
e.host instanceof Element ? e.host.namespaceURI ?? null : null
|
|
2319
|
-
), e.replaceChild(c, o)) : (c =
|
|
2348
|
+
), e.replaceChild(c, o)) : (c = J(
|
|
2320
2349
|
r,
|
|
2321
2350
|
t,
|
|
2322
2351
|
s,
|
|
@@ -2325,7 +2354,7 @@ function Jt(e, n, t, s) {
|
|
|
2325
2354
|
const f = [];
|
|
2326
2355
|
for (let h = 0; h < e.childNodes.length; h++) {
|
|
2327
2356
|
const p = e.childNodes[h];
|
|
2328
|
-
p !== c && p.nodeName !== "STYLE" && (
|
|
2357
|
+
p !== c && p.nodeName !== "STYLE" && (pe(p, s), f.push(p));
|
|
2329
2358
|
}
|
|
2330
2359
|
f.forEach((h) => e.removeChild(h));
|
|
2331
2360
|
const u = r && typeof r == "object" && r.props ? {
|
|
@@ -2338,17 +2367,17 @@ function Jt(e, n, t, s) {
|
|
|
2338
2367
|
} : r;
|
|
2339
2368
|
e._prevVNode = u, e._prevDom = c;
|
|
2340
2369
|
}
|
|
2341
|
-
const
|
|
2370
|
+
const Me = [], lt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap();
|
|
2342
2371
|
function Yt(e, n) {
|
|
2343
|
-
|
|
2372
|
+
Ce.has(e) || Ce.set(e, /* @__PURE__ */ new Set()), Ce.get(e).add(n);
|
|
2344
2373
|
}
|
|
2345
2374
|
function Xt(e, n) {
|
|
2346
|
-
const t =
|
|
2347
|
-
t && (t.delete(n), t.size === 0 &&
|
|
2375
|
+
const t = Ce.get(e);
|
|
2376
|
+
t && (t.delete(n), t.size === 0 && Ce.delete(e));
|
|
2348
2377
|
}
|
|
2349
2378
|
function Qt(e, n, t, s, r, i, o, c) {
|
|
2350
2379
|
if (e) {
|
|
2351
|
-
|
|
2380
|
+
Me.push(t);
|
|
2352
2381
|
try {
|
|
2353
2382
|
const f = n.render(t);
|
|
2354
2383
|
if (f instanceof Promise) {
|
|
@@ -2363,7 +2392,7 @@ function Qt(e, n, t, s, r, i, o, c) {
|
|
|
2363
2392
|
} catch (f) {
|
|
2364
2393
|
o(f instanceof Error ? f : new Error(String(f)));
|
|
2365
2394
|
} finally {
|
|
2366
|
-
|
|
2395
|
+
Me.pop();
|
|
2367
2396
|
}
|
|
2368
2397
|
}
|
|
2369
2398
|
}
|
|
@@ -2377,7 +2406,7 @@ function ft(e, n, t, s, r) {
|
|
|
2377
2406
|
s
|
|
2378
2407
|
), r(e.innerHTML);
|
|
2379
2408
|
} catch (i) {
|
|
2380
|
-
throw
|
|
2409
|
+
throw W("Error during VDOM rendering:", i), i;
|
|
2381
2410
|
}
|
|
2382
2411
|
}
|
|
2383
2412
|
function en(e, n, t, s, r, i, o) {
|
|
@@ -2400,7 +2429,7 @@ function en(e, n, t, s, r, i, o) {
|
|
|
2400
2429
|
r(A);
|
|
2401
2430
|
const a = d ? 50 : 10, b = d ? 100 : 25, E = p ? 12 : 50;
|
|
2402
2431
|
if (A === a && !d)
|
|
2403
|
-
|
|
2432
|
+
te(
|
|
2404
2433
|
`⚠️ Component rendering frequently. Performance may be impacted.
|
|
2405
2434
|
Common causes:
|
|
2406
2435
|
• State updates during render cycle
|
|
@@ -2408,7 +2437,7 @@ Common causes:
|
|
|
2408
2437
|
• Missing effect dependencies`
|
|
2409
2438
|
);
|
|
2410
2439
|
else if (A === b && !d)
|
|
2411
|
-
|
|
2440
|
+
te(
|
|
2412
2441
|
`⚠️ Component is re-rendering rapidly. Applying throttling.
|
|
2413
2442
|
This might indicate:
|
|
2414
2443
|
• Event handler calling function immediately: @click="\${fn()}" should be @click="\${fn}"
|
|
@@ -2416,7 +2445,7 @@ This might indicate:
|
|
|
2416
2445
|
• Missing dependencies in computed/watch`
|
|
2417
2446
|
);
|
|
2418
2447
|
else if (A >= E) {
|
|
2419
|
-
|
|
2448
|
+
W(
|
|
2420
2449
|
`🛑 Infinite render loop detected. Stopping to prevent browser freeze.
|
|
2421
2450
|
Possible causes:
|
|
2422
2451
|
• State updates triggering immediate re-renders
|
|
@@ -2434,7 +2463,7 @@ Possible causes:
|
|
|
2434
2463
|
try {
|
|
2435
2464
|
e();
|
|
2436
2465
|
} catch (A) {
|
|
2437
|
-
|
|
2466
|
+
W("Error during render execution:", A);
|
|
2438
2467
|
} finally {
|
|
2439
2468
|
o(null);
|
|
2440
2469
|
}
|
|
@@ -2447,7 +2476,7 @@ Possible causes:
|
|
|
2447
2476
|
function tn(e, n) {
|
|
2448
2477
|
let t = n;
|
|
2449
2478
|
try {
|
|
2450
|
-
const s =
|
|
2479
|
+
const s = Ce.get(e);
|
|
2451
2480
|
if (s?.size)
|
|
2452
2481
|
for (const r of s)
|
|
2453
2482
|
try {
|
|
@@ -2494,10 +2523,10 @@ function nn(e, n, t, s, r) {
|
|
|
2494
2523
|
if (r(null), ut(e))
|
|
2495
2524
|
e.adoptedStyleSheets = [
|
|
2496
2525
|
Re(),
|
|
2497
|
-
|
|
2526
|
+
ge()
|
|
2498
2527
|
];
|
|
2499
2528
|
else {
|
|
2500
|
-
const b =
|
|
2529
|
+
const b = Te(ot), E = ge();
|
|
2501
2530
|
let m = "";
|
|
2502
2531
|
try {
|
|
2503
2532
|
E?.cssRules && (m = Array.from(E.cssRules).map((S) => S.cssText).join(`
|
|
@@ -2505,11 +2534,11 @@ function nn(e, n, t, s, r) {
|
|
|
2505
2534
|
} catch {
|
|
2506
2535
|
m = "";
|
|
2507
2536
|
}
|
|
2508
|
-
const v =
|
|
2537
|
+
const v = Te(`${b}
|
|
2509
2538
|
${m}`);
|
|
2510
2539
|
dt(e, v);
|
|
2511
2540
|
try {
|
|
2512
|
-
e.adoptedStyleSheets = [Re(),
|
|
2541
|
+
e.adoptedStyleSheets = [Re(), ge()];
|
|
2513
2542
|
} catch {
|
|
2514
2543
|
}
|
|
2515
2544
|
}
|
|
@@ -2518,18 +2547,18 @@ ${m}`);
|
|
|
2518
2547
|
let h = "";
|
|
2519
2548
|
if (u && (h += u + `
|
|
2520
2549
|
`), c && (h += c + `
|
|
2521
|
-
`), h =
|
|
2550
|
+
`), h = Nt(h), h = Te(h), ut(e)) {
|
|
2522
2551
|
let a = s;
|
|
2523
2552
|
a || (a = new CSSStyleSheet());
|
|
2524
2553
|
try {
|
|
2525
2554
|
a.replaceSync(h);
|
|
2526
|
-
const b = [Re(),
|
|
2555
|
+
const b = [Re(), ge()];
|
|
2527
2556
|
f && b.push(f), b.push(a), e.adoptedStyleSheets = b, r(a);
|
|
2528
2557
|
return;
|
|
2529
2558
|
} catch {
|
|
2530
2559
|
}
|
|
2531
2560
|
}
|
|
2532
|
-
const d =
|
|
2561
|
+
const d = Te(ot), k = ge();
|
|
2533
2562
|
let j = "";
|
|
2534
2563
|
try {
|
|
2535
2564
|
k?.cssRules && (j = Array.from(k.cssRules).map((a) => a.cssText).join(`
|
|
@@ -2537,14 +2566,14 @@ ${m}`);
|
|
|
2537
2566
|
} catch {
|
|
2538
2567
|
j = "";
|
|
2539
2568
|
}
|
|
2540
|
-
const A =
|
|
2569
|
+
const A = Te(`${d}
|
|
2541
2570
|
${j}
|
|
2542
2571
|
${h}`);
|
|
2543
2572
|
dt(e, A);
|
|
2544
2573
|
try {
|
|
2545
2574
|
const a = [
|
|
2546
2575
|
Re(),
|
|
2547
|
-
|
|
2576
|
+
ge()
|
|
2548
2577
|
];
|
|
2549
2578
|
if (f && a.push(f), typeof CSSStyleSheet < "u")
|
|
2550
2579
|
try {
|
|
@@ -2605,7 +2634,7 @@ function rn(e, n) {
|
|
|
2605
2634
|
_templateLoading = !1;
|
|
2606
2635
|
_templateError = null;
|
|
2607
2636
|
constructor() {
|
|
2608
|
-
super(), this.attachShadow({ mode: "open" }), this._cfg =
|
|
2637
|
+
super(), this.attachShadow({ mode: "open" }), this._cfg = ve.get(e) || n, this._componentId = `${e}-${crypto.randomUUID()}`;
|
|
2609
2638
|
const t = this._initContext(n), s = (i, o, c) => {
|
|
2610
2639
|
Object.defineProperty(i, o, {
|
|
2611
2640
|
value: c,
|
|
@@ -2626,7 +2655,7 @@ function rn(e, n) {
|
|
|
2626
2655
|
t,
|
|
2627
2656
|
"_triggerWatchers",
|
|
2628
2657
|
(i, o) => this._triggerWatchers(i, o)
|
|
2629
|
-
), this.context = t,
|
|
2658
|
+
), this.context = t, $(() => {
|
|
2630
2659
|
s(t, "_host", this);
|
|
2631
2660
|
}), s(
|
|
2632
2661
|
this.context,
|
|
@@ -2644,14 +2673,14 @@ function rn(e, n) {
|
|
|
2644
2673
|
const p = i.substring(0, h), d = i.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
|
|
2645
2674
|
(j, A) => A === 0 ? j : j.charAt(0).toUpperCase() + j.slice(1)
|
|
2646
2675
|
).join("")}` : `${p}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
2647
|
-
k !== i &&
|
|
2676
|
+
k !== i && $(() => {
|
|
2648
2677
|
this.dispatchEvent(new CustomEvent(k, f));
|
|
2649
2678
|
});
|
|
2650
2679
|
}
|
|
2651
2680
|
return !u.defaultPrevented;
|
|
2652
2681
|
}
|
|
2653
2682
|
);
|
|
2654
|
-
const r =
|
|
2683
|
+
const r = ve.get(e) || n;
|
|
2655
2684
|
for (const i in r) {
|
|
2656
2685
|
const o = r[i];
|
|
2657
2686
|
typeof o == "function" && (this.context[i] = (...c) => o(...c, this.context));
|
|
@@ -2676,7 +2705,7 @@ function rn(e, n) {
|
|
|
2676
2705
|
connectedCallback() {
|
|
2677
2706
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
2678
2707
|
const t = this.getRootNode();
|
|
2679
|
-
t && t !== document && "host" in t && Yt(t, this), this._applyProps(n), this._requestRender(),
|
|
2708
|
+
t && t !== document && "host" in t && Yt(t, this), this._applyProps(n), this._requestRender(), xt(n, this.context, this._mounted, (s) => {
|
|
2680
2709
|
this._mounted = s;
|
|
2681
2710
|
});
|
|
2682
2711
|
});
|
|
@@ -2684,7 +2713,7 @@ function rn(e, n) {
|
|
|
2684
2713
|
disconnectedCallback() {
|
|
2685
2714
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
2686
2715
|
const t = this.getRootNode();
|
|
2687
|
-
t && t !== document && "host" in t && Xt(t, this),
|
|
2716
|
+
t && t !== document && "host" in t && Xt(t, this), $t(
|
|
2688
2717
|
n,
|
|
2689
2718
|
this.context,
|
|
2690
2719
|
this._listeners,
|
|
@@ -2712,7 +2741,7 @@ function rn(e, n) {
|
|
|
2712
2741
|
});
|
|
2713
2742
|
}
|
|
2714
2743
|
static get observedAttributes() {
|
|
2715
|
-
return n.props ? Object.keys(n.props).map(
|
|
2744
|
+
return n.props ? Object.keys(n.props).map(X) : [];
|
|
2716
2745
|
}
|
|
2717
2746
|
// --- Render ---
|
|
2718
2747
|
_render(t) {
|
|
@@ -2740,7 +2769,7 @@ function rn(e, n) {
|
|
|
2740
2769
|
}
|
|
2741
2770
|
_requestRender() {
|
|
2742
2771
|
this._runLogicWithinErrorBoundary(this._cfg, () => {
|
|
2743
|
-
|
|
2772
|
+
we(() => {
|
|
2744
2773
|
en(
|
|
2745
2774
|
() => this._render(this._cfg),
|
|
2746
2775
|
this._lastRenderTime,
|
|
@@ -2790,7 +2819,7 @@ function rn(e, n) {
|
|
|
2790
2819
|
} catch {
|
|
2791
2820
|
c[f] = "[unreadable]";
|
|
2792
2821
|
}
|
|
2793
|
-
|
|
2822
|
+
W(`Error rendering component <${i}> (id=${o}):`, r), W("Component props snapshot:", c), te(
|
|
2794
2823
|
"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`...`)."
|
|
2795
2824
|
);
|
|
2796
2825
|
} catch {
|
|
@@ -2838,7 +2867,7 @@ function rn(e, n) {
|
|
|
2838
2867
|
const k = h.apply(c, d);
|
|
2839
2868
|
if (!r._initializing) {
|
|
2840
2869
|
const j = o || "root";
|
|
2841
|
-
r._triggerWatchers(j, c),
|
|
2870
|
+
r._triggerWatchers(j, c), we(
|
|
2842
2871
|
() => r._render(t),
|
|
2843
2872
|
r._componentId
|
|
2844
2873
|
);
|
|
@@ -2849,20 +2878,20 @@ function rn(e, n) {
|
|
|
2849
2878
|
set(c, f, u) {
|
|
2850
2879
|
if (c[String(f)] = u, !r._initializing) {
|
|
2851
2880
|
const h = o ? `${o}.${String(f)}` : String(f);
|
|
2852
|
-
r._triggerWatchers(h, u),
|
|
2881
|
+
r._triggerWatchers(h, u), we(() => r._render(t), r._componentId);
|
|
2853
2882
|
}
|
|
2854
2883
|
return !0;
|
|
2855
2884
|
},
|
|
2856
2885
|
deleteProperty(c, f) {
|
|
2857
2886
|
if (delete c[String(f)], !r._initializing) {
|
|
2858
2887
|
const u = o ? `${o}.${String(f)}` : String(f);
|
|
2859
|
-
r._triggerWatchers(u, void 0),
|
|
2888
|
+
r._triggerWatchers(u, void 0), we(() => r._render(t), r._componentId);
|
|
2860
2889
|
}
|
|
2861
2890
|
return !0;
|
|
2862
2891
|
}
|
|
2863
2892
|
});
|
|
2864
2893
|
if (i && typeof i == "object") {
|
|
2865
|
-
if (
|
|
2894
|
+
if (x(i))
|
|
2866
2895
|
return i;
|
|
2867
2896
|
for (const c in i) {
|
|
2868
2897
|
const f = o ? `${o}.${c}` : c;
|
|
@@ -2874,7 +2903,7 @@ function rn(e, n) {
|
|
|
2874
2903
|
return c[String(f)] = s(u, h), r._initializing || (r._triggerWatchers(
|
|
2875
2904
|
h,
|
|
2876
2905
|
c[String(f)]
|
|
2877
|
-
),
|
|
2906
|
+
), we(() => r._render(t), r._componentId)), !0;
|
|
2878
2907
|
},
|
|
2879
2908
|
get(c, f, u) {
|
|
2880
2909
|
return Reflect.get(c, f, u);
|
|
@@ -2919,7 +2948,7 @@ function rn(e, n) {
|
|
|
2919
2948
|
};
|
|
2920
2949
|
}
|
|
2921
2950
|
function gn() {
|
|
2922
|
-
return
|
|
2951
|
+
return Q();
|
|
2923
2952
|
}
|
|
2924
2953
|
let R = null;
|
|
2925
2954
|
function Ue(e) {
|
|
@@ -2934,7 +2963,7 @@ function bn() {
|
|
|
2934
2963
|
function vn() {
|
|
2935
2964
|
if (!R)
|
|
2936
2965
|
throw new Error("useEmit must be called during component render");
|
|
2937
|
-
if (
|
|
2966
|
+
if (Q())
|
|
2938
2967
|
return () => !1;
|
|
2939
2968
|
const e = R.emit;
|
|
2940
2969
|
if (typeof e != "function")
|
|
@@ -2944,7 +2973,7 @@ function vn() {
|
|
|
2944
2973
|
const n = e;
|
|
2945
2974
|
return (t, s, r) => n(t, s, r);
|
|
2946
2975
|
}
|
|
2947
|
-
function
|
|
2976
|
+
function ye(e) {
|
|
2948
2977
|
e._hookCallbacks || Object.defineProperty(e, "_hookCallbacks", {
|
|
2949
2978
|
value: {},
|
|
2950
2979
|
writable: !0,
|
|
@@ -2955,16 +2984,16 @@ function he(e) {
|
|
|
2955
2984
|
function En(e) {
|
|
2956
2985
|
if (!R)
|
|
2957
2986
|
throw new Error("useOnConnected must be called during component render");
|
|
2958
|
-
if (
|
|
2959
|
-
|
|
2987
|
+
if (Q()) return;
|
|
2988
|
+
ye(R);
|
|
2960
2989
|
const n = R._hookCallbacks;
|
|
2961
2990
|
n.onConnected || (n.onConnected = []), n.onConnected.push(e);
|
|
2962
2991
|
}
|
|
2963
2992
|
function Sn(e) {
|
|
2964
2993
|
if (!R)
|
|
2965
2994
|
throw new Error("useOnDisconnected must be called during component render");
|
|
2966
|
-
if (
|
|
2967
|
-
|
|
2995
|
+
if (Q()) return;
|
|
2996
|
+
ye(R);
|
|
2968
2997
|
const n = R._hookCallbacks;
|
|
2969
2998
|
n.onDisconnected || (n.onDisconnected = []), n.onDisconnected.push(e);
|
|
2970
2999
|
}
|
|
@@ -2973,16 +3002,16 @@ function Cn(e) {
|
|
|
2973
3002
|
throw new Error(
|
|
2974
3003
|
"useOnAttributeChanged must be called during component render"
|
|
2975
3004
|
);
|
|
2976
|
-
if (
|
|
2977
|
-
|
|
3005
|
+
if (Q()) return;
|
|
3006
|
+
ye(R);
|
|
2978
3007
|
const n = R._hookCallbacks;
|
|
2979
3008
|
n.onAttributeChanged || (n.onAttributeChanged = []), n.onAttributeChanged.push(e);
|
|
2980
3009
|
}
|
|
2981
3010
|
function kn(e) {
|
|
2982
3011
|
if (!R)
|
|
2983
3012
|
throw new Error("useOnError must be called during component render");
|
|
2984
|
-
if (
|
|
2985
|
-
|
|
3013
|
+
if (Q()) return;
|
|
3014
|
+
ye(R);
|
|
2986
3015
|
const n = R._hookCallbacks;
|
|
2987
3016
|
n.onError || (n.onError = []), n.onError.push((t) => {
|
|
2988
3017
|
try {
|
|
@@ -2994,7 +3023,7 @@ function kn(e) {
|
|
|
2994
3023
|
function sn(e) {
|
|
2995
3024
|
if (!R)
|
|
2996
3025
|
throw new Error("useProps must be called during component render");
|
|
2997
|
-
|
|
3026
|
+
ye(R);
|
|
2998
3027
|
const n = R._hookCallbacks;
|
|
2999
3028
|
n.props = {
|
|
3000
3029
|
...n.props || {},
|
|
@@ -3016,14 +3045,14 @@ function sn(e) {
|
|
|
3016
3045
|
try {
|
|
3017
3046
|
const u = t && t._host;
|
|
3018
3047
|
if (u) {
|
|
3019
|
-
const h =
|
|
3048
|
+
const h = X(i), p = u.getAttribute(h);
|
|
3020
3049
|
if (p !== null) {
|
|
3021
3050
|
const d = typeof e[i];
|
|
3022
3051
|
return d === "boolean" ? p === "" || p === "true" : d === "number" ? Number(p) : p;
|
|
3023
3052
|
}
|
|
3024
3053
|
if (typeof u[i] < "u") {
|
|
3025
3054
|
const d = u[i];
|
|
3026
|
-
if (
|
|
3055
|
+
if (x(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
|
|
3027
3056
|
return d.value;
|
|
3028
3057
|
const k = typeof e[i];
|
|
3029
3058
|
if (!(k === "string" && d && typeof d == "object"))
|
|
@@ -3058,14 +3087,14 @@ function sn(e) {
|
|
|
3058
3087
|
const u = f[i];
|
|
3059
3088
|
if (typeof u < "u" && u !== "") {
|
|
3060
3089
|
const h = u && typeof u == "object" && "value" in u && !(u instanceof Node);
|
|
3061
|
-
if (!(typeof o == "string" && u && typeof u == "object" && !h && !
|
|
3062
|
-
return typeof o == "boolean" && o === !1 && u === "" ? o :
|
|
3090
|
+
if (!(typeof o == "string" && u && typeof u == "object" && !h && !x(u)))
|
|
3091
|
+
return typeof o == "boolean" && o === !1 && u === "" ? o : x(u) || h ? u.value : typeof o == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof o == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
|
|
3063
3092
|
}
|
|
3064
3093
|
}
|
|
3065
3094
|
} catch {
|
|
3066
3095
|
}
|
|
3067
3096
|
const c = t[i];
|
|
3068
|
-
return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 :
|
|
3097
|
+
return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 : x(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof o == "boolean" && typeof c == "string" ? c === "true" : typeof o == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : o;
|
|
3069
3098
|
},
|
|
3070
3099
|
has(r, i) {
|
|
3071
3100
|
return typeof i == "string" && (i in t || i in e);
|
|
@@ -3083,8 +3112,8 @@ function sn(e) {
|
|
|
3083
3112
|
function _n(e) {
|
|
3084
3113
|
if (!R)
|
|
3085
3114
|
throw new Error("useStyle must be called during component render");
|
|
3086
|
-
if (!
|
|
3087
|
-
|
|
3115
|
+
if (!Q()) {
|
|
3116
|
+
ye(R);
|
|
3088
3117
|
try {
|
|
3089
3118
|
const n = e();
|
|
3090
3119
|
Object.defineProperty(R, "_computedStyle", {
|
|
@@ -3094,7 +3123,7 @@ function _n(e) {
|
|
|
3094
3123
|
configurable: !0
|
|
3095
3124
|
});
|
|
3096
3125
|
} catch (n) {
|
|
3097
|
-
|
|
3126
|
+
te("Error in useStyle callback:", n), Object.defineProperty(R, "_computedStyle", {
|
|
3098
3127
|
value: "",
|
|
3099
3128
|
writable: !0,
|
|
3100
3129
|
enumerable: !1,
|
|
@@ -3103,23 +3132,23 @@ function _n(e) {
|
|
|
3103
3132
|
}
|
|
3104
3133
|
}
|
|
3105
3134
|
}
|
|
3106
|
-
const
|
|
3135
|
+
const Pe = /* @__PURE__ */ Symbol.for("@cer/provides");
|
|
3107
3136
|
function An(e, n) {
|
|
3108
3137
|
if (!R)
|
|
3109
3138
|
throw new Error("provide must be called during component render");
|
|
3110
|
-
if (
|
|
3139
|
+
if (Q()) return;
|
|
3111
3140
|
const t = R;
|
|
3112
|
-
t[
|
|
3141
|
+
t[Pe] || Object.defineProperty(t, Pe, {
|
|
3113
3142
|
value: /* @__PURE__ */ new Map(),
|
|
3114
3143
|
writable: !1,
|
|
3115
3144
|
enumerable: !1,
|
|
3116
3145
|
configurable: !0
|
|
3117
|
-
}), t[
|
|
3146
|
+
}), t[Pe].set(e, n);
|
|
3118
3147
|
}
|
|
3119
3148
|
function wn(e, n) {
|
|
3120
3149
|
if (!R)
|
|
3121
3150
|
throw new Error("inject must be called during component render");
|
|
3122
|
-
if (
|
|
3151
|
+
if (Q()) return n;
|
|
3123
3152
|
try {
|
|
3124
3153
|
const t = R._host;
|
|
3125
3154
|
if (t) {
|
|
@@ -3128,7 +3157,7 @@ function wn(e, n) {
|
|
|
3128
3157
|
if (s instanceof ShadowRoot) {
|
|
3129
3158
|
const r = s.host, i = r.context;
|
|
3130
3159
|
if (i) {
|
|
3131
|
-
const c = i[
|
|
3160
|
+
const c = i[Pe];
|
|
3132
3161
|
if (c?.has(e))
|
|
3133
3162
|
return c.get(e);
|
|
3134
3163
|
}
|
|
@@ -3137,7 +3166,7 @@ function wn(e, n) {
|
|
|
3137
3166
|
if (s instanceof Element) {
|
|
3138
3167
|
const o = s.context;
|
|
3139
3168
|
if (o) {
|
|
3140
|
-
const c = o[
|
|
3169
|
+
const c = o[Pe];
|
|
3141
3170
|
if (c?.has(e))
|
|
3142
3171
|
return c.get(e);
|
|
3143
3172
|
}
|
|
@@ -3166,11 +3195,11 @@ function Tn(e) {
|
|
|
3166
3195
|
}
|
|
3167
3196
|
};
|
|
3168
3197
|
}
|
|
3169
|
-
function
|
|
3198
|
+
function Nn(e) {
|
|
3170
3199
|
if (!R)
|
|
3171
3200
|
throw new Error("useExpose must be called during component render");
|
|
3172
|
-
if (
|
|
3173
|
-
|
|
3201
|
+
if (Q()) return;
|
|
3202
|
+
ye(R);
|
|
3174
3203
|
const n = R._hookCallbacks;
|
|
3175
3204
|
n.expose = { ...n.expose ?? {}, ...e };
|
|
3176
3205
|
const t = R._host;
|
|
@@ -3181,10 +3210,10 @@ function Ln(e) {
|
|
|
3181
3210
|
} catch {
|
|
3182
3211
|
}
|
|
3183
3212
|
}
|
|
3184
|
-
function
|
|
3213
|
+
function Ln() {
|
|
3185
3214
|
if (!R)
|
|
3186
3215
|
throw new Error("useSlots must be called during component render");
|
|
3187
|
-
if (
|
|
3216
|
+
if (Q())
|
|
3188
3217
|
return { has: () => !1, getNodes: () => [], names: () => [] };
|
|
3189
3218
|
const e = R._host;
|
|
3190
3219
|
return {
|
|
@@ -3225,7 +3254,7 @@ function On(...e) {
|
|
|
3225
3254
|
throw new Error("defineModel must be called during component render");
|
|
3226
3255
|
const n = e.length === 2 ? e[0] : "modelValue", t = e.length === 2 ? e[1] : e.length === 1 ? e[0] : void 0, s = sn({
|
|
3227
3256
|
[n]: t
|
|
3228
|
-
}), i =
|
|
3257
|
+
}), i = Q() ? null : (() => {
|
|
3229
3258
|
const c = R.emit;
|
|
3230
3259
|
return typeof c != "function" ? null : c;
|
|
3231
3260
|
})(), o = {
|
|
@@ -3247,8 +3276,8 @@ function On(...e) {
|
|
|
3247
3276
|
return o;
|
|
3248
3277
|
}
|
|
3249
3278
|
function jn(e, n) {
|
|
3250
|
-
|
|
3251
|
-
let t =
|
|
3279
|
+
Lt();
|
|
3280
|
+
let t = X(e);
|
|
3252
3281
|
t.includes("-") || (t = `cer-${t}`);
|
|
3253
3282
|
const s = {}, r = {
|
|
3254
3283
|
// Props are accessed via useProps() hook
|
|
@@ -3385,7 +3414,7 @@ function jn(e, n) {
|
|
|
3385
3414
|
p,
|
|
3386
3415
|
{ type: typeof d == "boolean" ? Boolean : typeof d == "number" ? Number : typeof d == "string" ? String : Function, default: d }
|
|
3387
3416
|
])
|
|
3388
|
-
),
|
|
3417
|
+
), ve.set(t, r);
|
|
3389
3418
|
}
|
|
3390
3419
|
}
|
|
3391
3420
|
return f;
|
|
@@ -3394,7 +3423,7 @@ function jn(e, n) {
|
|
|
3394
3423
|
}
|
|
3395
3424
|
}
|
|
3396
3425
|
};
|
|
3397
|
-
if (
|
|
3426
|
+
if (ve.set(t, r), typeof window < "u") {
|
|
3398
3427
|
try {
|
|
3399
3428
|
const i = {
|
|
3400
3429
|
_hookCallbacks: {},
|
|
@@ -3419,10 +3448,10 @@ function jn(e, n) {
|
|
|
3419
3448
|
f(o);
|
|
3420
3449
|
} catch {
|
|
3421
3450
|
}
|
|
3422
|
-
|
|
3451
|
+
W(
|
|
3423
3452
|
`Error during component discovery render <${t}>:`,
|
|
3424
3453
|
o
|
|
3425
|
-
),
|
|
3454
|
+
), te(
|
|
3426
3455
|
"Error occurred during initial component discovery render. Consider guarding expensive expressions or using lazy factories for directives like when()."
|
|
3427
3456
|
);
|
|
3428
3457
|
} catch {
|
|
@@ -3436,7 +3465,7 @@ function jn(e, n) {
|
|
|
3436
3465
|
c,
|
|
3437
3466
|
{ type: typeof f == "boolean" ? Boolean : typeof f == "number" ? Number : typeof f == "string" ? String : Function, default: f }
|
|
3438
3467
|
])
|
|
3439
|
-
),
|
|
3468
|
+
), ve.set(t, r);
|
|
3440
3469
|
}
|
|
3441
3470
|
} catch {
|
|
3442
3471
|
}
|
|
@@ -3450,11 +3479,11 @@ function ce(e, n = {}, t, s) {
|
|
|
3450
3479
|
const r = s ?? n.key;
|
|
3451
3480
|
return { tag: e, key: r, props: n, children: t };
|
|
3452
3481
|
}
|
|
3453
|
-
function
|
|
3482
|
+
function xe(e) {
|
|
3454
3483
|
return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
|
|
3455
3484
|
}
|
|
3456
|
-
function
|
|
3457
|
-
return typeof e == "object" && e !== null && "tag" in e && !
|
|
3485
|
+
function de(e) {
|
|
3486
|
+
return typeof e == "object" && e !== null && "tag" in e && !xe(e);
|
|
3458
3487
|
}
|
|
3459
3488
|
function on(e, n) {
|
|
3460
3489
|
return e.key != null ? e : { ...e, key: n };
|
|
@@ -3510,14 +3539,14 @@ const an = () => {
|
|
|
3510
3539
|
);
|
|
3511
3540
|
function ln(e, n) {
|
|
3512
3541
|
if (e == null) {
|
|
3513
|
-
|
|
3542
|
+
te(
|
|
3514
3543
|
`⚠️ Event handler for '@${n}' is ${e}. This will prevent the event from working. Use a function reference instead: @${n}="\${functionName}"`
|
|
3515
3544
|
);
|
|
3516
3545
|
return;
|
|
3517
3546
|
}
|
|
3518
|
-
typeof e != "function" &&
|
|
3547
|
+
typeof e != "function" && te(
|
|
3519
3548
|
`🚨 Potential infinite loop detected! Event handler for '@${n}' appears to be the result of a function call (${typeof e}) instead of a function reference. Change @${n}="\${functionName()}" to @${n}="\${functionName}" to pass the function reference instead of calling it immediately.`
|
|
3520
|
-
), e === void 0 && typeof e != "function" &&
|
|
3549
|
+
), e === void 0 && typeof e != "function" && te(
|
|
3521
3550
|
`💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${n}="\${fn}" not @${n}="\${fn()}"`
|
|
3522
3551
|
);
|
|
3523
3552
|
}
|
|
@@ -3559,18 +3588,18 @@ function fn(e, n = [], t = {}) {
|
|
|
3559
3588
|
};
|
|
3560
3589
|
} else if (h === "disabled") {
|
|
3561
3590
|
let S = A;
|
|
3562
|
-
S &&
|
|
3591
|
+
S && x(S) && (S = S.value);
|
|
3563
3592
|
const C = typeof S;
|
|
3564
3593
|
if (S === "" || C === "boolean" || C === "string" && (S === "true" || S === "false") || S == null || C === "number")
|
|
3565
3594
|
s[h] = S;
|
|
3566
3595
|
else {
|
|
3567
3596
|
let _ = A;
|
|
3568
|
-
_ &&
|
|
3597
|
+
_ && x(_) && (_ = _.value), r[h] = _;
|
|
3569
3598
|
}
|
|
3570
3599
|
o.push(h);
|
|
3571
3600
|
} else {
|
|
3572
3601
|
let S = A;
|
|
3573
|
-
S &&
|
|
3602
|
+
S && x(S) && (S = S.value), r[h] = S, o.push(h);
|
|
3574
3603
|
}
|
|
3575
3604
|
} else if (u === "@") {
|
|
3576
3605
|
const [b, ...E] = h.split("."), m = E;
|
|
@@ -3591,11 +3620,11 @@ function fn(e, n = [], t = {}) {
|
|
|
3591
3620
|
return { props: s, attrs: r, directives: i, bound: o };
|
|
3592
3621
|
}
|
|
3593
3622
|
function Ye(e) {
|
|
3594
|
-
if (!
|
|
3623
|
+
if (!de(e) || xe(e))
|
|
3595
3624
|
return e;
|
|
3596
3625
|
const n = e.props?.directives;
|
|
3597
3626
|
if (n && n.when) {
|
|
3598
|
-
const t = n.when.value, s =
|
|
3627
|
+
const t = n.when.value, s = x(t) ? t.value : t, r = { ...n };
|
|
3599
3628
|
delete r.when;
|
|
3600
3629
|
const i = { ...e.props };
|
|
3601
3630
|
Object.keys(r).length > 0 ? i.directives = r : delete i.directives;
|
|
@@ -3623,7 +3652,7 @@ function Ye(e) {
|
|
|
3623
3652
|
return e;
|
|
3624
3653
|
}
|
|
3625
3654
|
function un(e, n, t) {
|
|
3626
|
-
const s =
|
|
3655
|
+
const s = Me.length > 0 ? Me[Me.length - 1] : void 0, r = t ?? s, i = !t && n.length === 0, o = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
|
|
3627
3656
|
if (i && o) {
|
|
3628
3657
|
const l = qe.get(o);
|
|
3629
3658
|
if (l) return l;
|
|
@@ -3632,8 +3661,8 @@ function un(e, n, t) {
|
|
|
3632
3661
|
return ce("#text", {}, l, y);
|
|
3633
3662
|
}
|
|
3634
3663
|
function f(l, y, w = !1) {
|
|
3635
|
-
let
|
|
3636
|
-
return !w && typeof
|
|
3664
|
+
let N = typeof l == "string" ? At(l) : l;
|
|
3665
|
+
return !w && typeof N == "string" && /[\r\n]/.test(N) && (N = N.replace(/\s+/g, " ")), ce("#text", {}, N, y);
|
|
3637
3666
|
}
|
|
3638
3667
|
let u = "";
|
|
3639
3668
|
for (let l = 0; l < e.length; l++)
|
|
@@ -3656,59 +3685,59 @@ function un(e, n, t) {
|
|
|
3656
3685
|
return !1;
|
|
3657
3686
|
}
|
|
3658
3687
|
function S(l) {
|
|
3659
|
-
if (!l || typeof l != "object" ||
|
|
3688
|
+
if (!l || typeof l != "object" || xe(l)) return;
|
|
3660
3689
|
const y = l, w = A;
|
|
3661
3690
|
if (y.props || y.attrs) {
|
|
3662
|
-
const
|
|
3663
|
-
|
|
3664
|
-
if (
|
|
3665
|
-
const M = String(w.attrs.style).replace(/;?\s*$/, ""),
|
|
3666
|
-
w.attrs.style = M + "; " +
|
|
3667
|
-
} else if (
|
|
3668
|
-
const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean),
|
|
3669
|
-
.../* @__PURE__ */ new Set([...M, ...
|
|
3691
|
+
const N = y;
|
|
3692
|
+
N.props && (w.props || (w.props = {}), Object.assign(w.props, N.props)), N.attrs && (w.attrs || (w.attrs = {}), Object.keys(N.attrs).forEach((L) => {
|
|
3693
|
+
if (L === "style" && w.attrs.style) {
|
|
3694
|
+
const M = String(w.attrs.style).replace(/;?\s*$/, ""), B = String(N.attrs.style).replace(/^;?\s*/, "");
|
|
3695
|
+
w.attrs.style = M + "; " + B;
|
|
3696
|
+
} else if (L === "class" && w.attrs.class) {
|
|
3697
|
+
const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean), B = String(N.attrs.class).trim().split(/\s+/).filter(Boolean), O = [
|
|
3698
|
+
.../* @__PURE__ */ new Set([...M, ...B])
|
|
3670
3699
|
];
|
|
3671
3700
|
w.attrs.class = O.join(" ");
|
|
3672
3701
|
} else
|
|
3673
|
-
w.attrs[
|
|
3702
|
+
w.attrs[L] = N.attrs[L];
|
|
3674
3703
|
}));
|
|
3675
3704
|
} else
|
|
3676
3705
|
w.props || (w.props = {}), Object.assign(w.props, y);
|
|
3677
3706
|
}
|
|
3678
3707
|
function C(l, y) {
|
|
3679
3708
|
const w = j ? k : E;
|
|
3680
|
-
if (
|
|
3681
|
-
const
|
|
3709
|
+
if (xe(l)) {
|
|
3710
|
+
const N = l.key ?? y, L = l.children;
|
|
3682
3711
|
w.push({
|
|
3683
3712
|
...l,
|
|
3684
|
-
key:
|
|
3685
|
-
children:
|
|
3713
|
+
key: N,
|
|
3714
|
+
children: L
|
|
3686
3715
|
});
|
|
3687
3716
|
return;
|
|
3688
3717
|
}
|
|
3689
|
-
if (
|
|
3718
|
+
if (de(l)) {
|
|
3690
3719
|
w.push(on(l, void 0));
|
|
3691
3720
|
return;
|
|
3692
3721
|
}
|
|
3693
3722
|
if (Array.isArray(l)) {
|
|
3694
3723
|
if (l.length === 0) return;
|
|
3695
|
-
for (let
|
|
3696
|
-
const
|
|
3697
|
-
|
|
3724
|
+
for (let N = 0; N < l.length; N++) {
|
|
3725
|
+
const L = l[N];
|
|
3726
|
+
xe(L) || de(L) || Array.isArray(L) ? C(L, `${y}-${N}`) : L !== null && typeof L == "object" ? rt(L) ? w.push(
|
|
3698
3727
|
ce(
|
|
3699
3728
|
"#raw",
|
|
3700
3729
|
{},
|
|
3701
|
-
|
|
3702
|
-
`${y}-${
|
|
3730
|
+
L.__rawHTML,
|
|
3731
|
+
`${y}-${N}`
|
|
3703
3732
|
)
|
|
3704
|
-
) : S(
|
|
3733
|
+
) : S(L) : w.push(c(String(L), `${y}-${N}`));
|
|
3705
3734
|
}
|
|
3706
3735
|
return;
|
|
3707
3736
|
}
|
|
3708
3737
|
if (l !== null && typeof l == "object") {
|
|
3709
3738
|
if (rt(l)) {
|
|
3710
|
-
const
|
|
3711
|
-
w.push(ce("#raw", {},
|
|
3739
|
+
const N = l.__rawHTML ?? "";
|
|
3740
|
+
w.push(ce("#raw", {}, N, y));
|
|
3712
3741
|
return;
|
|
3713
3742
|
}
|
|
3714
3743
|
S(l);
|
|
@@ -3736,18 +3765,18 @@ function un(e, n, t) {
|
|
|
3736
3765
|
if (!(d[0].startsWith("<!--") && d[0].endsWith("-->"))) {
|
|
3737
3766
|
if (d[1]) {
|
|
3738
3767
|
const l = d[1], y = d[0][1] === "/", w = d[0][d[0].length - 2] === "/" || T.has(l), {
|
|
3739
|
-
props:
|
|
3740
|
-
attrs:
|
|
3768
|
+
props: N,
|
|
3769
|
+
attrs: L,
|
|
3741
3770
|
directives: M,
|
|
3742
|
-
bound:
|
|
3771
|
+
bound: B
|
|
3743
3772
|
} = fn(
|
|
3744
3773
|
d[2] || "",
|
|
3745
3774
|
n,
|
|
3746
3775
|
r ?? {}
|
|
3747
3776
|
), O = { props: {}, attrs: {} };
|
|
3748
|
-
for (const z in
|
|
3749
|
-
for (const z in
|
|
3750
|
-
O.attrs && Object.prototype.hasOwnProperty.call(O.attrs, "key") && !(O.props && Object.prototype.hasOwnProperty.call(O.props, "key")) &&
|
|
3777
|
+
for (const z in N) O.props[z] = N[z];
|
|
3778
|
+
for (const z in L) O.attrs[z] = L[z];
|
|
3779
|
+
O.attrs && Object.prototype.hasOwnProperty.call(O.attrs, "key") && !(O.props && Object.prototype.hasOwnProperty.call(O.props, "key")) && $(() => {
|
|
3751
3780
|
O.props.key = O.attrs.key;
|
|
3752
3781
|
});
|
|
3753
3782
|
try {
|
|
@@ -3775,45 +3804,45 @@ function un(e, n, t) {
|
|
|
3775
3804
|
audio: ["muted", "autoplay", "controls", "loop"],
|
|
3776
3805
|
img: ["src", "alt", "width", "height"],
|
|
3777
3806
|
button: ["type", "name", "value", "autofocus", "form"]
|
|
3778
|
-
}, I = l.toLowerCase(),
|
|
3807
|
+
}, I = l.toLowerCase(), ne = z[I] ?? [];
|
|
3779
3808
|
if (O.attrs) {
|
|
3780
|
-
for (const H of
|
|
3781
|
-
if (
|
|
3782
|
-
let
|
|
3783
|
-
if (
|
|
3784
|
-
|
|
3785
|
-
else if (
|
|
3809
|
+
for (const H of ne)
|
|
3810
|
+
if (B && B.includes(H) && H in O.attrs && !(O.props && H in O.props)) {
|
|
3811
|
+
let P = O.attrs[H];
|
|
3812
|
+
if (P && x(P))
|
|
3813
|
+
P = P.value, O.props[H] = P, delete O.attrs[H];
|
|
3814
|
+
else if (P && typeof P == "object" && "value" in P && !(P instanceof Node))
|
|
3786
3815
|
try {
|
|
3787
|
-
const
|
|
3788
|
-
O.props[H] = (I === "select" || I === "option") && H === "value" ? String(
|
|
3816
|
+
const D = P.value;
|
|
3817
|
+
O.props[H] = (I === "select" || I === "option") && H === "value" ? String(D) : D, delete O.attrs[H];
|
|
3789
3818
|
} catch {
|
|
3790
3819
|
}
|
|
3791
3820
|
else {
|
|
3792
|
-
const
|
|
3821
|
+
const D = typeof P;
|
|
3793
3822
|
if (H === "disabled")
|
|
3794
|
-
(
|
|
3795
|
-
else if (
|
|
3796
|
-
const
|
|
3797
|
-
O.props[H] =
|
|
3823
|
+
(P === "" || D === "boolean" || D === "string" && (P === "true" || P === "false") || P == null || D === "number") && (O.props[H] = P, delete O.attrs[H]);
|
|
3824
|
+
else if (P === "" || D === "string" || D === "number" || D === "boolean" || P == null) {
|
|
3825
|
+
const K = (I === "select" || I === "option") && H === "value" ? String(P) : P;
|
|
3826
|
+
O.props[H] = K, delete O.attrs[H];
|
|
3798
3827
|
}
|
|
3799
3828
|
}
|
|
3800
3829
|
}
|
|
3801
3830
|
}
|
|
3802
3831
|
if (l.includes("-") || !!r?.__customElements?.has?.(l)) {
|
|
3803
|
-
if (O.isCustomElement = !0,
|
|
3832
|
+
if (O.isCustomElement = !0, B && O.attrs) {
|
|
3804
3833
|
const H = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
|
|
3805
|
-
for (const
|
|
3806
|
-
if (
|
|
3807
|
-
const
|
|
3808
|
-
if (O.props[
|
|
3834
|
+
for (const P of B)
|
|
3835
|
+
if (P in O.attrs && !(O.props && P in O.props)) {
|
|
3836
|
+
const D = P.includes("-") ? Xe(P) : P, K = O.attrs[P];
|
|
3837
|
+
if (O.props[D] = K, H.has(P) || pt(P))
|
|
3809
3838
|
try {
|
|
3810
|
-
const
|
|
3811
|
-
|
|
3839
|
+
const ae = F(O.attrs[P]);
|
|
3840
|
+
ae === null ? delete O.attrs[P] : O.attrs[P] = ae;
|
|
3812
3841
|
} catch {
|
|
3813
|
-
delete O.attrs[
|
|
3842
|
+
delete O.attrs[P];
|
|
3814
3843
|
}
|
|
3815
3844
|
else
|
|
3816
|
-
delete O.attrs[
|
|
3845
|
+
delete O.attrs[P];
|
|
3817
3846
|
}
|
|
3818
3847
|
}
|
|
3819
3848
|
try {
|
|
@@ -3830,71 +3859,71 @@ function un(e, n, t) {
|
|
|
3830
3859
|
(z) => z === "model" || z.startsWith("model:")
|
|
3831
3860
|
))
|
|
3832
3861
|
try {
|
|
3833
|
-
const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")],
|
|
3834
|
-
if (!!(l.includes("-") || H ||
|
|
3835
|
-
for (const
|
|
3836
|
-
if (
|
|
3837
|
-
const
|
|
3838
|
-
let
|
|
3839
|
-
if (typeof
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3862
|
+
const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], ne = !!(I && typeof I.has == "function" && I.has(l)), q = r, H = !!(q && (q.__customElements instanceof Set && q.__customElements.has(l) || Array.isArray(q.__isCustomElements) && q.__isCustomElements.includes(l)));
|
|
3863
|
+
if (!!(l.includes("-") || H || ne))
|
|
3864
|
+
for (const K of Object.keys(M)) {
|
|
3865
|
+
if (K !== "model" && !K.startsWith("model:")) continue;
|
|
3866
|
+
const me = M[K], ae = me.arg ?? (K.includes(":") ? K.split(":", 2)[1] : void 0), G = me.value, ze = ae ?? "modelValue", Qe = V, vt = We, ke = r?._state || r;
|
|
3867
|
+
let oe;
|
|
3868
|
+
if (typeof G == "string" && ke)
|
|
3869
|
+
oe = Qe(
|
|
3870
|
+
ke,
|
|
3871
|
+
G
|
|
3843
3872
|
);
|
|
3844
|
-
else if (
|
|
3873
|
+
else if (oe = G, x(G))
|
|
3845
3874
|
try {
|
|
3846
|
-
|
|
3875
|
+
G.value;
|
|
3847
3876
|
} catch {
|
|
3848
3877
|
}
|
|
3849
|
-
O.props[ze] =
|
|
3878
|
+
O.props[ze] = oe;
|
|
3850
3879
|
try {
|
|
3851
|
-
const
|
|
3852
|
-
O.attrs || (O.attrs = {}),
|
|
3880
|
+
const le = X(ze);
|
|
3881
|
+
O.attrs || (O.attrs = {}), oe != null && (typeof oe == "string" || typeof oe == "number" || typeof oe == "boolean") && (O.attrs[le] = oe);
|
|
3853
3882
|
} catch {
|
|
3854
3883
|
}
|
|
3855
3884
|
O.isCustomElement = !0;
|
|
3856
|
-
const et = `update:${
|
|
3885
|
+
const et = `update:${X(ze)}`.replace(
|
|
3857
3886
|
/-([a-z])/g,
|
|
3858
|
-
(
|
|
3887
|
+
(le, se) => se.toUpperCase()
|
|
3859
3888
|
), Et = "on" + et.charAt(0).toUpperCase() + et.slice(1);
|
|
3860
|
-
O.props[Et] = function(
|
|
3861
|
-
const
|
|
3862
|
-
if (
|
|
3863
|
-
if (
|
|
3864
|
-
const
|
|
3865
|
-
if (Array.isArray(
|
|
3866
|
-
|
|
3889
|
+
O.props[Et] = function(le) {
|
|
3890
|
+
const se = le.detail !== void 0 ? le.detail : le.target ? le.target.value : void 0;
|
|
3891
|
+
if (ke)
|
|
3892
|
+
if (G && x(G)) {
|
|
3893
|
+
const fe = G.value;
|
|
3894
|
+
if (Array.isArray(se) && Array.isArray(fe) ? JSON.stringify([...se].sort()) !== JSON.stringify([...fe].sort()) : se !== fe) {
|
|
3895
|
+
G.value = se;
|
|
3867
3896
|
try {
|
|
3868
|
-
const
|
|
3869
|
-
if (
|
|
3870
|
-
const
|
|
3871
|
-
typeof
|
|
3897
|
+
const ue = r;
|
|
3898
|
+
if (ue) {
|
|
3899
|
+
const _e = ue.requestRender, Ae = ue._requestRender;
|
|
3900
|
+
typeof _e == "function" ? _e() : typeof Ae == "function" && Ae();
|
|
3872
3901
|
}
|
|
3873
3902
|
} catch {
|
|
3874
3903
|
}
|
|
3875
3904
|
}
|
|
3876
3905
|
} else {
|
|
3877
|
-
const
|
|
3878
|
-
|
|
3879
|
-
typeof
|
|
3906
|
+
const fe = Qe(
|
|
3907
|
+
ke || {},
|
|
3908
|
+
typeof G == "string" ? G : String(G)
|
|
3880
3909
|
);
|
|
3881
|
-
if (Array.isArray(
|
|
3910
|
+
if (Array.isArray(se) && Array.isArray(fe) ? JSON.stringify([...se].sort()) !== JSON.stringify([...fe].sort()) : se !== fe) {
|
|
3882
3911
|
vt(
|
|
3883
|
-
|
|
3884
|
-
typeof
|
|
3885
|
-
|
|
3912
|
+
ke || {},
|
|
3913
|
+
typeof G == "string" ? G : String(G),
|
|
3914
|
+
se
|
|
3886
3915
|
);
|
|
3887
3916
|
try {
|
|
3888
|
-
const
|
|
3889
|
-
if (
|
|
3890
|
-
const
|
|
3891
|
-
typeof
|
|
3917
|
+
const ue = r;
|
|
3918
|
+
if (ue) {
|
|
3919
|
+
const _e = ue.requestRender, Ae = ue._requestRender;
|
|
3920
|
+
typeof _e == "function" ? _e() : typeof Ae == "function" && Ae();
|
|
3892
3921
|
}
|
|
3893
3922
|
} catch {
|
|
3894
3923
|
}
|
|
3895
3924
|
}
|
|
3896
3925
|
}
|
|
3897
|
-
}, delete M[
|
|
3926
|
+
}, delete M[K];
|
|
3898
3927
|
}
|
|
3899
3928
|
} catch {
|
|
3900
3929
|
}
|
|
@@ -3906,27 +3935,27 @@ function un(e, n, t) {
|
|
|
3906
3935
|
if (z && k.length > 0) {
|
|
3907
3936
|
let H = 0;
|
|
3908
3937
|
for (; H < k.length; ) {
|
|
3909
|
-
const
|
|
3910
|
-
if (!
|
|
3938
|
+
const D = k[H];
|
|
3939
|
+
if (!de(D) || D.tag !== "#text" || typeof D.children != "string" || D.children.trim() !== "")
|
|
3911
3940
|
break;
|
|
3912
3941
|
H++;
|
|
3913
3942
|
}
|
|
3914
|
-
let
|
|
3915
|
-
for (;
|
|
3916
|
-
const
|
|
3917
|
-
if (!
|
|
3943
|
+
let P = k.length - 1;
|
|
3944
|
+
for (; P >= 0; ) {
|
|
3945
|
+
const D = k[P];
|
|
3946
|
+
if (!de(D) || D.tag !== "#text" || typeof D.children != "string" || D.children.trim() !== "")
|
|
3918
3947
|
break;
|
|
3919
|
-
|
|
3948
|
+
P--;
|
|
3920
3949
|
}
|
|
3921
|
-
H === 0 &&
|
|
3950
|
+
H === 0 && P === k.length - 1 ? I = k : H > P ? I = [] : I = k.slice(H, P + 1);
|
|
3922
3951
|
}
|
|
3923
|
-
const
|
|
3952
|
+
const ne = ce(
|
|
3924
3953
|
j,
|
|
3925
3954
|
A,
|
|
3926
|
-
I.length === 1 &&
|
|
3955
|
+
I.length === 1 && de(I[0]) && I[0].tag === "#text" ? typeof I[0].children == "string" ? I[0].children : "" : I.length ? I : void 0,
|
|
3927
3956
|
a
|
|
3928
|
-
),
|
|
3929
|
-
|
|
3957
|
+
), q = p.pop();
|
|
3958
|
+
q ? (j = q.tag, A = q.props, a = q.key, k = q.children, k.push(ne)) : (E.push(ne), j = null, A = {}, a = void 0, k = []);
|
|
3930
3959
|
} else w ? j ? k.push(ce(l, O, void 0, void 0)) : E.push(ce(l, O, void 0, void 0)) : (j && p.push({
|
|
3931
3960
|
tag: j,
|
|
3932
3961
|
props: A,
|
|
@@ -3938,20 +3967,20 @@ function un(e, n, t) {
|
|
|
3938
3967
|
C(y, w);
|
|
3939
3968
|
} else if (d[4]) {
|
|
3940
3969
|
const l = d[4], y = j ? k : E, w = l.split(/({{\d+}})/);
|
|
3941
|
-
for (const
|
|
3942
|
-
if (!
|
|
3943
|
-
const
|
|
3944
|
-
if (
|
|
3945
|
-
const M = Number(
|
|
3946
|
-
C(
|
|
3970
|
+
for (const N of w) {
|
|
3971
|
+
if (!N) continue;
|
|
3972
|
+
const L = N.match(/^{{(\d+)}}$/);
|
|
3973
|
+
if (L) {
|
|
3974
|
+
const M = Number(L[1]), B = n[M], O = `interp-${M}`;
|
|
3975
|
+
C(B, O);
|
|
3947
3976
|
} else {
|
|
3948
|
-
const M = `text-${b++}`,
|
|
3949
|
-
y.push(f(
|
|
3977
|
+
const M = `text-${b++}`, B = v();
|
|
3978
|
+
y.push(f(N, M, B));
|
|
3950
3979
|
}
|
|
3951
3980
|
}
|
|
3952
3981
|
}
|
|
3953
3982
|
}
|
|
3954
|
-
const _ = E.filter((l) =>
|
|
3983
|
+
const _ = E.filter((l) => de(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
|
|
3955
3984
|
(l) => Ye(l)
|
|
3956
3985
|
);
|
|
3957
3986
|
if (_.length === 1) {
|
|
@@ -3964,12 +3993,12 @@ function un(e, n, t) {
|
|
|
3964
3993
|
return ce("div", {}, "", "fallback-root");
|
|
3965
3994
|
}
|
|
3966
3995
|
function Mn(e, ...n) {
|
|
3967
|
-
if (
|
|
3996
|
+
if (Q()) return [];
|
|
3968
3997
|
const t = n[n.length - 1], s = typeof t == "object" && t && !Array.isArray(t) ? t : void 0;
|
|
3969
3998
|
return un(e, n, s);
|
|
3970
3999
|
}
|
|
3971
4000
|
export {
|
|
3972
|
-
|
|
4001
|
+
Nn as a,
|
|
3973
4002
|
sn as b,
|
|
3974
4003
|
jn as c,
|
|
3975
4004
|
Tn as d,
|
|
@@ -3982,10 +4011,10 @@ export {
|
|
|
3982
4011
|
Cn as k,
|
|
3983
4012
|
En as l,
|
|
3984
4013
|
Sn as m,
|
|
3985
|
-
|
|
4014
|
+
Ln as n,
|
|
3986
4015
|
_n as o,
|
|
3987
4016
|
An as p,
|
|
3988
4017
|
kn as u,
|
|
3989
4018
|
Jt as v
|
|
3990
4019
|
};
|
|
3991
|
-
//# sourceMappingURL=template-compiler-
|
|
4020
|
+
//# sourceMappingURL=template-compiler-Bvx02nAT.js.map
|