@jasonshimmy/custom-elements-runtime 2.5.5 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { j as K, t as Y, i as M, k as We, m as x, o as F, p as U, q as G, T as Ct, v as Qe, S as kt, x as pt, y as _e, z as ee, A as _t, B as nt, a as rt, C as st, d as At } from "./namespace-helpers-DcD_6_K1.js";
1
+ import { j as K, t as Y, i as P, k as We, m as $, o as F, p as U, q as G, T as Ct, v as Qe, S as kt, x as pt, y as _e, z as ee, A as _t, B as nt, a as rt, C as st, d as At } from "./namespace-helpers-DcD_6_K1.js";
2
2
  import { a as V, d as B } from "./logger-BvkEbVM4.js";
3
3
  import { j as wt, g as Tt, a as He, b as ye, m as Ae, s as Lt, d as ot } from "./transitions-Di5wW9yc.js";
4
4
  const ge = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ Symbol.for("cer.registry");
@@ -36,9 +36,9 @@ function jt(e, n, t, s) {
36
36
  if (o === c) return !0;
37
37
  if (typeof o != typeof c || typeof o != "object" || o === null || c === null) return !1;
38
38
  if (Array.isArray(o) && Array.isArray(c))
39
- return o.length !== c.length ? !1 : o.every((d, C) => r(d, c[C]));
40
- const f = o, u = c, m = Object.keys(f || {}), p = Object.keys(u || {});
41
- return m.length !== p.length ? !1 : m.every((d) => r(f[d], u[d]));
39
+ return o.length !== c.length ? !1 : o.every((d, k) => r(d, c[k]));
40
+ const f = o, u = c, h = Object.keys(f || {}), p = Object.keys(u || {});
41
+ return h.length !== p.length ? !1 : h.every((d) => r(f[d], u[d]));
42
42
  }, i = n.get(t);
43
43
  if (i && !r(s, i.oldValue))
44
44
  try {
@@ -58,7 +58,7 @@ function jt(e, n, t, s) {
58
58
  function Fe(e, n) {
59
59
  return n === Boolean ? e === "" || e === "true" : n === Number ? Number(e) : e;
60
60
  }
61
- function Pt(e, n, t) {
61
+ function Mt(e, n, t) {
62
62
  if (n)
63
63
  for (const s in n) {
64
64
  const r = n[s], i = Y(s), o = e.getAttribute(i);
@@ -82,7 +82,7 @@ function Pt(e, n, t) {
82
82
  else "default" in r && r.default !== void 0 && (t[s] = r.default);
83
83
  }
84
84
  }
85
- function Mt(e, n, t) {
85
+ function Pt(e, n, t) {
86
86
  if (!n.props) {
87
87
  try {
88
88
  const s = t?._hookCallbacks?.props || {}, r = Array.from(
@@ -107,9 +107,9 @@ function Mt(e, n, t) {
107
107
  const f = Y(i), u = e.getAttribute(f);
108
108
  if (u !== null)
109
109
  return u;
110
- const m = e[i];
110
+ const h = e[i];
111
111
  let p;
112
- return M(m) || m && typeof m == "object" && "value" in m && !(m instanceof Node) ? p = m.value : p = m, p;
112
+ return P(h) || h && typeof h == "object" && "value" in h && !(h instanceof Node) ? p = h.value : p = h, p;
113
113
  } catch {
114
114
  return e[i];
115
115
  }
@@ -122,12 +122,12 @@ function Mt(e, n, t) {
122
122
  }
123
123
  return;
124
124
  }
125
- Pt(e, n.props, t);
125
+ Mt(e, n.props, t);
126
126
  }
127
- function $t(e, n, t, s) {
127
+ function xt(e, n, t, s) {
128
128
  e.onConnected && !t && (e.onConnected(n), s(!0));
129
129
  }
130
- function xt(e, n, t, s, r, i, o, c) {
130
+ function $t(e, n, t, s, r, i, o, c) {
131
131
  e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), i(!1), o(null), c(!1);
132
132
  }
133
133
  function Ht(e, n, t, s, r) {
@@ -322,12 +322,12 @@ class Rt {
322
322
  );
323
323
  const i = s.match(/ctx\.[\w.]+/g) || [];
324
324
  for (const p of i) {
325
- const d = p.slice(4), C = K(t, d);
326
- if (C === void 0) return;
327
- const T = r.push(JSON.stringify(C)) - 1;
325
+ const d = p.slice(4), k = K(t, d);
326
+ if (k === void 0) return;
327
+ const N = r.push(JSON.stringify(k)) - 1;
328
328
  s = s.replace(
329
329
  new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
330
- `<<#${T}#>>`
330
+ `<<#${N}#>>`
331
331
  );
332
332
  }
333
333
  const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(o) || [];
@@ -335,31 +335,31 @@ class Rt {
335
335
  if (p.startsWith("ctx.")) continue;
336
336
  const d = K(t, p);
337
337
  if (d === void 0) return;
338
- const C = r.push(JSON.stringify(d)) - 1;
338
+ const k = r.push(JSON.stringify(d)) - 1;
339
339
  s = s.replace(
340
340
  new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
341
- `<<#${C}#>>`
341
+ `<<#${k}#>>`
342
342
  );
343
343
  }
344
344
  const f = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
345
345
  let u;
346
- const m = /* @__PURE__ */ new Set();
346
+ const h = /* @__PURE__ */ new Set();
347
347
  for (; (u = f.exec(s)) !== null; ) {
348
348
  const p = u[1];
349
- if (["true", "false", "null", "undefined"].includes(p) || /^[0-9]+$/.test(p) || p === "ctx" || m.has(p)) continue;
350
- m.add(p);
349
+ if (["true", "false", "null", "undefined"].includes(p) || /^[0-9]+$/.test(p) || p === "ctx" || h.has(p)) continue;
350
+ h.add(p);
351
351
  const d = K(t, p);
352
352
  if (d === void 0) return;
353
- const C = JSON.stringify(d), T = r.push(C) - 1;
353
+ const k = JSON.stringify(d), N = r.push(k) - 1;
354
354
  p.includes(".") ? s = s.replace(
355
355
  new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
356
- `<<#${T}#>>`
356
+ `<<#${N}#>>`
357
357
  ) : s = s.replace(
358
358
  new RegExp(
359
359
  "\\b" + p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
360
360
  "g"
361
361
  ),
362
- `<<#${T}#>>`
362
+ `<<#${N}#>>`
363
363
  );
364
364
  }
365
365
  s = s.replace(
@@ -387,215 +387,215 @@ class Rt {
387
387
  function r() {
388
388
  return t[s];
389
389
  }
390
- function i(y) {
391
- const _ = t[s++];
392
- if (y && !_)
393
- throw new Error(`Unexpected token EOF, expected ${y}`);
394
- if (y && _ && _.type !== y && _.value !== y)
390
+ function i(g) {
391
+ const A = t[s++];
392
+ if (g && !A)
393
+ throw new Error(`Unexpected token EOF, expected ${g}`);
394
+ if (g && A && A.type !== g && A.value !== g)
395
395
  throw new Error(
396
- `Unexpected token ${_.type}/${_.value}, expected ${y}`
396
+ `Unexpected token ${A.type}/${A.value}, expected ${g}`
397
397
  );
398
- return _;
398
+ return A;
399
399
  }
400
400
  function o() {
401
- return T();
401
+ return N();
402
402
  }
403
- function c(y) {
404
- if (typeof y == "number") return y;
405
- if (y == null) return NaN;
406
- if (typeof y == "boolean") return y ? 1 : 0;
407
- const _ = Number(y);
408
- return Number.isNaN(_) ? NaN : _;
403
+ function c(g) {
404
+ if (typeof g == "number") return g;
405
+ if (g == null) return NaN;
406
+ if (typeof g == "boolean") return g ? 1 : 0;
407
+ const A = Number(g);
408
+ return Number.isNaN(A) ? NaN : A;
409
409
  }
410
- function f(y, _) {
411
- return typeof y == "string" || typeof _ == "string" ? String(y) + String(_) : c(y) + c(_);
410
+ function f(g, A) {
411
+ return typeof g == "string" || typeof A == "string" ? String(g) + String(A) : c(g) + c(A);
412
412
  }
413
- function u(y, _) {
414
- return c(y) - c(_);
413
+ function u(g, A) {
414
+ return c(g) - c(A);
415
415
  }
416
- function m(y, _) {
417
- return c(y) * c(_);
416
+ function h(g, A) {
417
+ return c(g) * c(A);
418
418
  }
419
- function p(y, _) {
420
- return c(y) / c(_);
419
+ function p(g, A) {
420
+ return c(g) / c(A);
421
421
  }
422
- function d(y, _) {
423
- return c(y) % c(_);
422
+ function d(g, A) {
423
+ return c(g) % c(A);
424
424
  }
425
- function C(y, _, l) {
426
- if (typeof _ == "number" && typeof l == "number")
427
- switch (y) {
425
+ function k(g, A, l) {
426
+ if (typeof A == "number" && typeof l == "number")
427
+ switch (g) {
428
428
  case ">":
429
- return _ > l;
429
+ return A > l;
430
430
  case "<":
431
- return _ < l;
431
+ return A < l;
432
432
  case ">=":
433
- return _ >= l;
433
+ return A >= l;
434
434
  case "<=":
435
- return _ <= l;
435
+ return A <= l;
436
436
  default:
437
437
  return !1;
438
438
  }
439
- const g = String(_), A = String(l);
440
- switch (y) {
439
+ const y = String(A), w = String(l);
440
+ switch (g) {
441
441
  case ">":
442
- return g > A;
442
+ return y > w;
443
443
  case "<":
444
- return g < A;
444
+ return y < w;
445
445
  case ">=":
446
- return g >= A;
446
+ return y >= w;
447
447
  case "<=":
448
- return g <= A;
448
+ return y <= w;
449
449
  default:
450
450
  return !1;
451
451
  }
452
452
  }
453
- function T() {
454
- const y = w(), _ = r();
455
- if (_ && _.value === "?") {
453
+ function N() {
454
+ const g = _(), A = r();
455
+ if (A && A.value === "?") {
456
456
  i("?");
457
457
  const l = o();
458
458
  i(":");
459
- const g = o();
460
- return y ? l : g;
459
+ const y = o();
460
+ return g ? l : y;
461
461
  }
462
- return y;
462
+ return g;
463
463
  }
464
- function w() {
465
- let y = a();
464
+ function _() {
465
+ let g = a();
466
466
  for (; ; ) {
467
- const _ = r();
468
- if (!_ || _.value !== "||") break;
467
+ const A = r();
468
+ if (!A || A.value !== "||") break;
469
469
  i("OP");
470
470
  const l = a();
471
- y = y || l;
471
+ g = g || l;
472
472
  }
473
- return y;
473
+ return g;
474
474
  }
475
475
  function a() {
476
- let y = E();
476
+ let g = b();
477
477
  for (; ; ) {
478
- const _ = r();
479
- if (!_ || _.value !== "&&") break;
478
+ const A = r();
479
+ if (!A || A.value !== "&&") break;
480
480
  i("OP");
481
- const l = E();
482
- y = y && l;
481
+ const l = b();
482
+ g = g && l;
483
483
  }
484
- return y;
484
+ return g;
485
485
  }
486
- function E() {
487
- let y = v();
486
+ function b() {
487
+ let g = E();
488
488
  for (; ; ) {
489
- const _ = r();
490
- if (!_ || !["==", "!=", "===", "!=="].includes(_.value)) break;
491
- const l = i("OP").value, g = v();
489
+ const A = r();
490
+ if (!A || !["==", "!=", "===", "!=="].includes(A.value)) break;
491
+ const l = i("OP").value, y = E();
492
492
  switch (l) {
493
493
  case "==":
494
- y = y == g;
494
+ g = g == y;
495
495
  break;
496
496
  case "!=":
497
- y = y != g;
497
+ g = g != y;
498
498
  break;
499
499
  case "===":
500
- y = y === g;
500
+ g = g === y;
501
501
  break;
502
502
  case "!==":
503
- y = y !== g;
503
+ g = g !== y;
504
504
  break;
505
505
  }
506
506
  }
507
- return y;
507
+ return g;
508
508
  }
509
- function v() {
510
- let y = b();
509
+ function E() {
510
+ let g = m();
511
511
  for (; ; ) {
512
- const _ = r();
513
- if (!_ || ![">", "<", ">=", "<="].includes(_.value)) break;
514
- const l = i("OP").value, g = b();
512
+ const A = r();
513
+ if (!A || ![">", "<", ">=", "<="].includes(A.value)) break;
514
+ const l = i("OP").value, y = m();
515
515
  switch (l) {
516
516
  case ">":
517
- y = C(">", y, g);
517
+ g = k(">", g, y);
518
518
  break;
519
519
  case "<":
520
- y = C("<", y, g);
520
+ g = k("<", g, y);
521
521
  break;
522
522
  case ">=":
523
- y = C(">=", y, g);
523
+ g = k(">=", g, y);
524
524
  break;
525
525
  case "<=":
526
- y = C("<=", y, g);
526
+ g = k("<=", g, y);
527
527
  break;
528
528
  }
529
529
  }
530
- return y;
530
+ return g;
531
531
  }
532
- function b() {
533
- let y = h();
532
+ function m() {
533
+ let g = v();
534
534
  for (; ; ) {
535
- const _ = r();
536
- if (!_ || _.value !== "+" && _.value !== "-") break;
537
- const l = i("OP").value, g = h();
538
- y = l === "+" ? f(y, g) : u(y, g);
535
+ const A = r();
536
+ if (!A || A.value !== "+" && A.value !== "-") break;
537
+ const l = i("OP").value, y = v();
538
+ g = l === "+" ? f(g, y) : u(g, y);
539
539
  }
540
- return y;
540
+ return g;
541
541
  }
542
- function h() {
543
- let y = k();
542
+ function v() {
543
+ let g = S();
544
544
  for (; ; ) {
545
- const _ = r();
546
- if (!_ || _.value !== "*" && _.value !== "/" && _.value !== "%")
545
+ const A = r();
546
+ if (!A || A.value !== "*" && A.value !== "/" && A.value !== "%")
547
547
  break;
548
- const l = i("OP").value, g = k();
548
+ const l = i("OP").value, y = S();
549
549
  switch (l) {
550
550
  case "*":
551
- y = m(y, g);
551
+ g = h(g, y);
552
552
  break;
553
553
  case "/":
554
- y = p(y, g);
554
+ g = p(g, y);
555
555
  break;
556
556
  case "%":
557
- y = d(y, g);
557
+ g = d(g, y);
558
558
  break;
559
559
  }
560
560
  }
561
- return y;
562
- }
563
- function k() {
564
- const y = r();
565
- if (y && y.value === "!")
566
- return i("OP"), !k();
567
- if (y && y.value === "-") {
568
- i("OP");
569
- const _ = k();
570
- return u(0, _);
571
- }
572
- return S();
561
+ return g;
573
562
  }
574
563
  function S() {
575
- const y = r();
576
- if (y) {
577
- if (y.type === "NUMBER")
578
- return i("NUMBER"), Number(y.value);
579
- if (y.type === "STRING")
580
- return i("STRING"), y.value.slice(1, -1);
581
- if (y.type === "IDENT")
582
- return i("IDENT"), y.value === "true" ? !0 : y.value === "false" ? !1 : y.value === "null" ? null : void 0;
583
- if (y.value === "[") {
564
+ const g = r();
565
+ if (g && g.value === "!")
566
+ return i("OP"), !S();
567
+ if (g && g.value === "-") {
568
+ i("OP");
569
+ const A = S();
570
+ return u(0, A);
571
+ }
572
+ return C();
573
+ }
574
+ function C() {
575
+ const g = r();
576
+ if (g) {
577
+ if (g.type === "NUMBER")
578
+ return i("NUMBER"), Number(g.value);
579
+ if (g.type === "STRING")
580
+ return i("STRING"), g.value.slice(1, -1);
581
+ if (g.type === "IDENT")
582
+ return i("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
583
+ if (g.value === "[") {
584
584
  i("PUNC");
585
- const _ = [];
585
+ const A = [];
586
586
  for (; ; ) {
587
587
  const l = r();
588
588
  if (!l || l.value === "]") break;
589
- _.push(o());
590
- const g = r();
591
- g && g.value === "," && i("PUNC");
589
+ A.push(o());
590
+ const y = r();
591
+ y && y.value === "," && i("PUNC");
592
592
  }
593
- return i("PUNC"), _;
593
+ return i("PUNC"), A;
594
594
  }
595
- if (y.value === "(") {
595
+ if (g.value === "(") {
596
596
  i("PUNC");
597
- const _ = o();
598
- return i("PUNC"), _;
597
+ const A = o();
598
+ return i("PUNC"), A;
599
599
  }
600
600
  throw new Error("Unexpected token in expression");
601
601
  }
@@ -664,7 +664,7 @@ function It(e, n, t) {
664
664
  }
665
665
  function ct(e, n, t, s) {
666
666
  const r = t;
667
- if (x(() => {
667
+ if ($(() => {
668
668
  if (typeof e.setAttribute == "function")
669
669
  try {
670
670
  e[n] = r;
@@ -674,13 +674,13 @@ function ct(e, n, t, s) {
674
674
  e[n] = r;
675
675
  }), r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") {
676
676
  const i = F(r);
677
- i !== null ? x(() => {
677
+ i !== null ? $(() => {
678
678
  typeof e.setAttribute == "function" && U(
679
679
  e,
680
680
  Y(n),
681
681
  String(i)
682
682
  );
683
- }) : x(() => {
683
+ }) : $(() => {
684
684
  typeof e.removeAttribute == "function" && G(e, Y(n));
685
685
  });
686
686
  }
@@ -720,197 +720,197 @@ function Je(e) {
720
720
  }
721
721
  function Bt(e, n, t, s, r, i, o, c) {
722
722
  if (!i) return;
723
- const f = n.includes("lazy"), u = n.includes("trim"), m = n.includes("number"), p = () => {
724
- if (M(e)) {
725
- const h = e.value;
726
- return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof h == "object" && h !== null ? h[c] : h;
723
+ const f = n.includes("lazy"), u = n.includes("trim"), h = n.includes("number"), p = () => {
724
+ if (P(e)) {
725
+ const v = e.value;
726
+ return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
727
727
  }
728
- const b = i?._state || i;
729
- return K(b, e);
728
+ const m = i?._state || i;
729
+ return K(m, e);
730
730
  }, d = p();
731
- let C = "text";
732
- o instanceof HTMLInputElement ? C = s?.type || o.type || "text" : o instanceof HTMLSelectElement ? C = "select" : o instanceof HTMLTextAreaElement && (C = "textarea");
733
- const T = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, a = T ? C === "checkbox" || C === "radio" ? "checked" : "value" : c ?? "modelValue";
734
- if (C === "checkbox")
731
+ let k = "text";
732
+ o instanceof HTMLInputElement ? k = s?.type || o.type || "text" : o instanceof HTMLSelectElement ? k = "select" : o instanceof HTMLTextAreaElement && (k = "textarea");
733
+ const N = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, a = N ? k === "checkbox" || k === "radio" ? "checked" : "value" : c ?? "modelValue";
734
+ if (k === "checkbox")
735
735
  if (Array.isArray(d))
736
736
  t[a] = d.includes(
737
737
  String(o?.getAttribute("value") ?? s?.value ?? "")
738
738
  );
739
739
  else {
740
- const b = o?.getAttribute("true-value") ?? !0;
741
- t[a] = d === b;
740
+ const m = o?.getAttribute("true-value") ?? !0;
741
+ t[a] = d === m;
742
742
  }
743
- else if (C === "radio")
743
+ else if (k === "radio")
744
744
  t[a] = d === (s?.value ?? "");
745
- else if (C === "select")
745
+ else if (k === "select")
746
746
  if (o && o.hasAttribute("multiple") && o instanceof HTMLSelectElement) {
747
- const b = Array.isArray(d) ? d.map(String) : [];
747
+ const m = Array.isArray(d) ? d.map(String) : [];
748
748
  setTimeout(() => {
749
- Array.from(o.options).forEach((h) => {
750
- h.selected = b.includes(h.value);
749
+ Array.from(o.options).forEach((v) => {
750
+ v.selected = m.includes(v.value);
751
751
  });
752
752
  }, 0), t[a] = Array.isArray(d) ? d : [];
753
753
  } else
754
754
  t[a] = d;
755
755
  else {
756
- !T && M(e) ? t[a] = e : t[a] = d;
756
+ !N && P(e) ? t[a] = e : t[a] = d;
757
757
  try {
758
- const b = Y(a);
759
- s && (s[b] = d);
758
+ const m = Y(a);
759
+ s && (s[m] = d);
760
760
  } catch {
761
761
  }
762
762
  }
763
- const E = f || C === "checkbox" || C === "radio" || C === "select" ? "change" : "input", v = (b) => {
764
- if (b.isComposing || r._isComposing)
763
+ const b = f || k === "checkbox" || k === "radio" || k === "select" ? "change" : "input", E = (m) => {
764
+ if (m.isComposing || r._isComposing)
765
765
  return;
766
- const h = globalThis.process, k = !!h && h.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
767
- if (b.isTrusted === !1 && !k)
766
+ const v = globalThis.process, S = !!v && v.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
767
+ if (m.isTrusted === !1 && !S)
768
768
  return;
769
- const S = b.target;
770
- if (!S || S._modelUpdating)
769
+ const C = m.target;
770
+ if (!C || C._modelUpdating)
771
771
  return;
772
- let L = S.value;
773
- if (C === "checkbox") {
772
+ let T = C.value;
773
+ if (k === "checkbox") {
774
774
  const l = p();
775
775
  if (Array.isArray(l)) {
776
- const g = S.getAttribute("value") ?? "", A = Array.from(l);
777
- if (S.checked)
778
- A.includes(g) || A.push(g);
776
+ const y = C.getAttribute("value") ?? "", w = Array.from(l);
777
+ if (C.checked)
778
+ w.includes(y) || w.push(y);
779
779
  else {
780
- const N = A.indexOf(g);
781
- N > -1 && A.splice(N, 1);
780
+ const L = w.indexOf(y);
781
+ L > -1 && w.splice(L, 1);
782
782
  }
783
- L = A;
783
+ T = w;
784
784
  } else {
785
- const g = S.getAttribute("true-value") ?? !0, A = S.getAttribute("false-value") ?? !1;
786
- L = S.checked ? g : A;
785
+ const y = C.getAttribute("true-value") ?? !0, w = C.getAttribute("false-value") ?? !1;
786
+ T = C.checked ? y : w;
787
787
  }
788
- } else if (C === "radio")
789
- L = S.getAttribute("value") ?? S.value;
790
- else if (C === "select" && S.multiple)
791
- L = Array.from(S.selectedOptions).map(
788
+ } else if (k === "radio")
789
+ T = C.getAttribute("value") ?? C.value;
790
+ else if (k === "select" && C.multiple)
791
+ T = Array.from(C.selectedOptions).map(
792
792
  (l) => l.value
793
793
  );
794
- else if (u && typeof L == "string" && (L = L.trim()), m) {
795
- const l = Number(L);
796
- isNaN(l) || (L = l);
794
+ else if (u && typeof T == "string" && (T = T.trim()), h) {
795
+ const l = Number(T);
796
+ isNaN(l) || (T = l);
797
797
  }
798
- const y = p();
799
- if (Re(L, y)) {
800
- S._modelUpdating = !0;
798
+ const g = p();
799
+ if (Re(T, g)) {
800
+ C._modelUpdating = !0;
801
801
  try {
802
- it(M(e), e, L, i, c), Ie(i, M(e), e, L), S && It(S, a, L);
802
+ it(P(e), e, T, i, c), Ie(i, P(e), e, T), C && It(C, a, T);
803
803
  } finally {
804
804
  setTimeout(
805
- () => S._modelUpdating = !1,
805
+ () => C._modelUpdating = !1,
806
806
  0
807
807
  );
808
808
  }
809
809
  }
810
810
  };
811
- if (T) {
812
- if (r[E]) {
813
- const b = r[E];
814
- o && ne.removeListener(o, E, b);
811
+ if (N) {
812
+ if (r[b]) {
813
+ const m = r[b];
814
+ o && ne.removeListener(o, b, m);
815
815
  }
816
- r[E] = v;
816
+ r[b] = E;
817
817
  } else {
818
- const b = `update:${Y(a)}`, h = `update:${a}`;
819
- if (r[b]) {
820
- const k = r[b];
821
- o && ne.removeListener(o, b, k);
822
- }
823
- if (r[h]) {
824
- const k = r[h];
825
- o && ne.removeListener(o, h, k);
826
- }
827
- if (r[b] = (k) => {
828
- const S = k.detail;
829
- let L = S !== void 0 ? S : void 0;
830
- if (L === void 0) {
831
- const l = k.target;
818
+ const m = `update:${Y(a)}`, v = `update:${a}`;
819
+ if (r[m]) {
820
+ const S = r[m];
821
+ o && ne.removeListener(o, m, S);
822
+ }
823
+ if (r[v]) {
824
+ const S = r[v];
825
+ o && ne.removeListener(o, v, S);
826
+ }
827
+ if (r[m] = (S) => {
828
+ const C = S.detail;
829
+ let T = C !== void 0 ? C : void 0;
830
+ if (T === void 0) {
831
+ const l = S.target;
832
832
  if (l && typeof l == "object" && "value" in l)
833
833
  try {
834
- L = l.value;
834
+ T = l.value;
835
835
  } catch {
836
- L = void 0;
836
+ T = void 0;
837
837
  }
838
838
  }
839
- const y = Dt(
840
- M(e),
839
+ const g = Dt(
840
+ P(e),
841
841
  e,
842
842
  i,
843
843
  c
844
844
  );
845
- if (Re(L, y)) {
846
- it(M(e), e, L, i, c), Ie(i, M(e), e, L);
847
- const l = k.target;
845
+ if (Re(T, g)) {
846
+ it(P(e), e, T, i, c), Ie(i, P(e), e, T);
847
+ const l = S.target;
848
848
  l && ct(
849
849
  l,
850
850
  a,
851
- M(e) ? e : L,
852
- M(e)
851
+ P(e) ? e : T,
852
+ P(e)
853
853
  );
854
854
  }
855
- }, M(e) && typeof e.value == "object" && e.value !== null) {
856
- let k;
855
+ }, P(e) && typeof e.value == "object" && e.value !== null) {
856
+ let S;
857
857
  try {
858
- k = Reflect.ownKeys(e.value);
858
+ S = Reflect.ownKeys(e.value);
859
859
  } catch {
860
- k = Object.keys(e.value);
860
+ S = Object.keys(e.value);
861
861
  }
862
- const S = k.filter(
863
- (L) => typeof L == "string" && !String(L).startsWith("_") && L !== "constructor"
862
+ const C = S.filter(
863
+ (T) => typeof T == "string" && !String(T).startsWith("_") && T !== "constructor"
864
864
  );
865
- for (const L of S) {
866
- const y = String(L), _ = `update:${Y(y)}`, l = `update:${y}`;
867
- r[_] || (r[_] = (g) => {
868
- const A = g.detail !== void 0 ? g.detail : g.target?.value, N = M(e) ? e.value[y] : K(
865
+ for (const T of C) {
866
+ const g = String(T), A = `update:${Y(g)}`, l = `update:${g}`;
867
+ r[A] || (r[A] = (y) => {
868
+ const w = y.detail !== void 0 ? y.detail : y.target?.value, L = P(e) ? e.value[g] : K(
869
869
  i?._state || i,
870
870
  e
871
871
  );
872
- if (!Re(A, N)) return;
873
- if (M(e)) {
872
+ if (!Re(w, L)) return;
873
+ if (P(e)) {
874
874
  const D = {
875
875
  ...e.value
876
876
  };
877
- D[y] = A, e.value = D;
877
+ D[g] = w, e.value = D;
878
878
  } else
879
879
  We(
880
880
  i?._state || i,
881
881
  e,
882
- A
882
+ w
883
883
  );
884
- Ie(i, M(e), e, A);
885
- const P = g.currentTarget || o || g.target;
886
- P && ct(
887
- P,
884
+ Ie(i, P(e), e, w);
885
+ const M = y.currentTarget || o || y.target;
886
+ M && ct(
887
+ M,
888
888
  a,
889
- M(e) ? e : A,
890
- M(e)
889
+ P(e) ? e : w,
890
+ P(e)
891
891
  );
892
- }, r[l] = r[_]);
892
+ }, r[l] = r[A]);
893
893
  }
894
894
  }
895
- r[h] = r[b];
895
+ r[v] = r[m];
896
896
  }
897
- (C === "text" || C === "textarea") && (r.compositionstart = () => r._isComposing = !0, r.compositionend = (b) => {
897
+ (k === "text" || k === "textarea") && (r.compositionstart = () => r._isComposing = !0, r.compositionend = (m) => {
898
898
  r._isComposing = !1;
899
- const h = b.target;
900
- h && setTimeout(() => {
901
- const k = h.value, S = i?._state || i, L = K(S, e);
902
- let y = k;
903
- if (u && (y = y.trim()), m) {
904
- const l = Number(y);
905
- isNaN(l) || (y = l);
906
- }
907
- if (Re(y, L)) {
908
- h._modelUpdating = !0;
899
+ const v = m.target;
900
+ v && setTimeout(() => {
901
+ const S = v.value, C = i?._state || i, T = K(C, e);
902
+ let g = S;
903
+ if (u && (g = g.trim()), h) {
904
+ const l = Number(g);
905
+ isNaN(l) || (g = l);
906
+ }
907
+ if (Re(g, T)) {
908
+ v._modelUpdating = !0;
909
909
  try {
910
- We(S, e, y), Ie(i, M(e), e, y);
910
+ We(C, e, g), Ie(i, P(e), e, g);
911
911
  } finally {
912
912
  setTimeout(
913
- () => h._modelUpdating = !1,
913
+ () => v._modelUpdating = !1,
914
914
  0
915
915
  );
916
916
  }
@@ -927,7 +927,7 @@ function Wt(e, n, t, s, r) {
927
927
  const c = o && typeof o == "object" && "value" in o;
928
928
  (() => {
929
929
  try {
930
- return M(o);
930
+ return P(o);
931
931
  } catch {
932
932
  return !1;
933
933
  }
@@ -937,7 +937,7 @@ function Wt(e, n, t, s, r) {
937
937
  else if (typeof e == "string") {
938
938
  if (!s) return;
939
939
  try {
940
- const i = Me(e, s);
940
+ const i = Pe(e, s);
941
941
  if (typeof i == "object" && i !== null) {
942
942
  for (const [o, c] of Object.entries(i))
943
943
  if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
@@ -946,7 +946,7 @@ function Wt(e, n, t, s, r) {
946
946
  const f = c && typeof c == "object" && "value" in c;
947
947
  (() => {
948
948
  try {
949
- return M(c);
949
+ return P(c);
950
950
  } catch {
951
951
  return !1;
952
952
  }
@@ -971,7 +971,7 @@ function Ut(e, n, t) {
971
971
  let s;
972
972
  if (typeof e == "string") {
973
973
  if (!t) return;
974
- s = Me(e, t);
974
+ s = Pe(e, t);
975
975
  } else
976
976
  s = e;
977
977
  const r = String(n.style || "");
@@ -992,19 +992,19 @@ function Ut(e, n, t) {
992
992
  i = "display: none";
993
993
  i !== r && (i ? n.style = i : n.style = void 0);
994
994
  }
995
- function Me(e, n) {
995
+ function Pe(e, n) {
996
996
  return Rt.evaluate(e, n);
997
997
  }
998
998
  function zt(e, n, t, s) {
999
999
  let r;
1000
1000
  if (typeof e == "string") {
1001
1001
  if (!t) return;
1002
- r = Me(e, t);
1002
+ r = Pe(e, t);
1003
1003
  } else
1004
1004
  r = e;
1005
1005
  try {
1006
1006
  if (r && typeof r == "object") {
1007
- if (M(r))
1007
+ if (P(r))
1008
1008
  r = r.value;
1009
1009
  else if ("value" in r && typeof r.value < "u") {
1010
1010
  const u = r.value;
@@ -1019,8 +1019,8 @@ function zt(e, n, t, s) {
1019
1019
  else if (Array.isArray(r))
1020
1020
  i = r.filter(Boolean);
1021
1021
  else if (typeof r == "object" && r !== null)
1022
- for (const [u, m] of Object.entries(r))
1023
- m && i.push(u);
1022
+ for (const [u, h] of Object.entries(r))
1023
+ h && i.push(u);
1024
1024
  const o = i.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${o}`.trim() : o.trim();
1025
1025
  f ? n.class = f : n.class = void 0;
1026
1026
  }
@@ -1028,7 +1028,7 @@ function Kt(e, n, t) {
1028
1028
  let s;
1029
1029
  if (typeof e == "string") {
1030
1030
  if (!t) return;
1031
- s = Me(e, t);
1031
+ s = Pe(e, t);
1032
1032
  } else
1033
1033
  s = e;
1034
1034
  let r = "";
@@ -1041,7 +1041,7 @@ function Kt(e, n, t) {
1041
1041
  const u = c.replace(
1042
1042
  /[A-Z]/g,
1043
1043
  (d) => `-${d.toLowerCase()}`
1044
- ), m = [
1044
+ ), h = [
1045
1045
  "width",
1046
1046
  "height",
1047
1047
  "top",
@@ -1068,7 +1068,7 @@ function Kt(e, n, t) {
1068
1068
  "max-height"
1069
1069
  ];
1070
1070
  let p = String(f);
1071
- typeof f == "number" && m.includes(u) && (p = `${f}px`), o.push(`${u}: ${p}`);
1071
+ typeof f == "number" && h.includes(u) && (p = `${f}px`), o.push(`${u}: ${p}`);
1072
1072
  }
1073
1073
  r = o.join("; ") + (o.length > 0 ? ";" : "");
1074
1074
  }
@@ -1077,24 +1077,24 @@ function Kt(e, n, t) {
1077
1077
  }
1078
1078
  function Ft(e, n, t) {
1079
1079
  let s = e;
1080
- typeof e == "string" && t && (s = Me(e, t)), M(s) ? n.reactiveRef = s : n.ref = s;
1080
+ typeof e == "string" && t && (s = Pe(e, t)), P(s) ? n.reactiveRef = s : n.ref = s;
1081
1081
  }
1082
1082
  function yt(e, n, t, s) {
1083
1083
  const r = {}, i = { ...s || {} }, o = {};
1084
1084
  for (const [c, f] of Object.entries(e)) {
1085
- const { value: u, modifiers: m, arg: p } = f;
1085
+ const { value: u, modifiers: h, arg: p } = f;
1086
1086
  if (c === "model" || c.startsWith("model:")) {
1087
- const d = c.split(":"), C = d.length > 1 ? d[1] : p;
1087
+ const d = c.split(":"), k = d.length > 1 ? d[1] : p;
1088
1088
  Bt(
1089
1089
  u,
1090
1090
  // Pass the original value (could be string or reactive state object)
1091
- m,
1091
+ h,
1092
1092
  r,
1093
1093
  i,
1094
1094
  o,
1095
1095
  n,
1096
1096
  t,
1097
- C
1097
+ k
1098
1098
  );
1099
1099
  continue;
1100
1100
  }
@@ -1119,13 +1119,13 @@ function yt(e, n, t, s) {
1119
1119
  try {
1120
1120
  if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && Q(t)) {
1121
1121
  const f = r.disabled, u = f && typeof f == "object" && "value" in f;
1122
- let m = !1;
1122
+ let h = !1;
1123
1123
  try {
1124
- m = M(f);
1124
+ h = P(f);
1125
1125
  } catch {
1126
- m = !1;
1126
+ h = !1;
1127
1127
  }
1128
- if (!u && !m)
1128
+ if (!u && !h)
1129
1129
  try {
1130
1130
  i.disabled = f, delete r.disabled;
1131
1131
  const p = globalThis;
@@ -1205,54 +1205,54 @@ async function we(e, n) {
1205
1205
  if (s?.onBeforeEnter)
1206
1206
  try {
1207
1207
  s.onBeforeEnter(e);
1208
- } catch (T) {
1209
- B("Transition onBeforeEnter error:", T);
1208
+ } catch (N) {
1209
+ B("Transition onBeforeEnter error:", N);
1210
1210
  }
1211
1211
  if (!r)
1212
- return s?.onEnter ? new Promise((T) => {
1213
- const w = s.onEnter;
1214
- typeof w == "function" ? w(e, () => {
1212
+ return s?.onEnter ? new Promise((N) => {
1213
+ const _ = s.onEnter;
1214
+ typeof _ == "function" ? _(e, () => {
1215
1215
  if (s?.onAfterEnter)
1216
1216
  try {
1217
1217
  s.onAfterEnter(e);
1218
1218
  } catch (a) {
1219
1219
  B("Transition onAfterEnter error:", a);
1220
1220
  }
1221
- T();
1222
- }) : T();
1221
+ N();
1222
+ }) : N();
1223
1223
  }) : void 0;
1224
1224
  const o = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
1225
1225
  ve(e, o), e.offsetHeight, ve(e, c), e.offsetHeight;
1226
1226
  let u;
1227
1227
  if (s?.onEnter) {
1228
- const T = new Promise((w) => {
1229
- u = w;
1228
+ const N = new Promise((_) => {
1229
+ u = _;
1230
1230
  });
1231
1231
  try {
1232
- const w = s.onEnter;
1233
- typeof w == "function" && w(e, () => {
1232
+ const _ = s.onEnter;
1233
+ typeof _ == "function" && _(e, () => {
1234
1234
  u && u();
1235
1235
  });
1236
- } catch (w) {
1237
- B("Transition onEnter error:", w);
1236
+ } catch (_) {
1237
+ B("Transition onEnter error:", _);
1238
1238
  }
1239
- u && await T;
1239
+ u && await N;
1240
1240
  }
1241
1241
  await new Promise(
1242
- (T) => requestAnimationFrame(() => T(void 0))
1242
+ (N) => requestAnimationFrame(() => N(void 0))
1243
1243
  ), e.offsetHeight;
1244
- const m = window.getComputedStyle(e), p = m.transform, d = m.opacity;
1244
+ const h = window.getComputedStyle(e), p = h.transform, d = h.opacity;
1245
1245
  me(e, o), p && p !== "none" && (e.style.transform = p), d && d !== "" && (e.style.opacity = d), e.offsetHeight, await new Promise(
1246
- (T) => requestAnimationFrame(() => T(void 0))
1246
+ (N) => requestAnimationFrame(() => N(void 0))
1247
1247
  ), e.style.transform = "", e.style.opacity = "", ve(e, f), e.offsetHeight, await new Promise(
1248
- (T) => requestAnimationFrame(() => T(void 0))
1248
+ (N) => requestAnimationFrame(() => N(void 0))
1249
1249
  );
1250
- let C;
1251
- if (typeof i == "number" ? C = i : i && typeof i == "object" && "enter" in i && (C = i.enter), await mt(e, C), me(e, c), s?.onAfterEnter)
1250
+ let k;
1251
+ if (typeof i == "number" ? k = i : i && typeof i == "object" && "enter" in i && (k = i.enter), await mt(e, k), me(e, c), s?.onAfterEnter)
1252
1252
  try {
1253
1253
  s.onAfterEnter(e);
1254
- } catch (T) {
1255
- B("Transition onAfterEnter error:", T);
1254
+ } catch (N) {
1255
+ B("Transition onAfterEnter error:", N);
1256
1256
  }
1257
1257
  }
1258
1258
  async function qe(e, n) {
@@ -1270,8 +1270,8 @@ async function qe(e, n) {
1270
1270
  if (s?.onAfterLeave)
1271
1271
  try {
1272
1272
  s.onAfterLeave(e);
1273
- } catch (C) {
1274
- B("Transition onAfterLeave error:", C);
1273
+ } catch (k) {
1274
+ B("Transition onAfterLeave error:", k);
1275
1275
  }
1276
1276
  p();
1277
1277
  }) : p();
@@ -1296,8 +1296,8 @@ async function qe(e, n) {
1296
1296
  await new Promise(
1297
1297
  (p) => requestAnimationFrame(() => p(void 0))
1298
1298
  ), await Vt(e, [...o, ...c]), me(e, o), ve(e, f);
1299
- let m;
1300
- if (typeof i == "number" ? m = i : i && typeof i == "object" && "leave" in i && (m = i.leave), await mt(e, m), me(e, c), me(e, f), me(e, o), s?.onAfterLeave)
1299
+ let h;
1300
+ if (typeof i == "number" ? h = i : i && typeof i == "object" && "leave" in i && (h = i.leave), await mt(e, h), me(e, c), me(e, f), me(e, o), s?.onAfterLeave)
1301
1301
  try {
1302
1302
  s.onAfterLeave(e);
1303
1303
  } catch (p) {
@@ -1379,7 +1379,7 @@ function Te(e, n, t) {
1379
1379
  const s = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), r = e.props?.ref ?? (e.props?.props && e.props.props.ref);
1380
1380
  if (s)
1381
1381
  try {
1382
- if (M(s) || typeof s == "object" && "value" in s)
1382
+ if (P(s) || typeof s == "object" && "value" in s)
1383
1383
  s.value = n;
1384
1384
  else if (typeof s == "function")
1385
1385
  s(n);
@@ -1405,7 +1405,7 @@ function Ye(e, n) {
1405
1405
  if (!o || typeof o != "object") return o;
1406
1406
  let c = o.props?.key ?? o.key;
1407
1407
  if (!c) {
1408
- const p = o.tag || "node", C = [
1408
+ const p = o.tag || "node", k = [
1409
1409
  // attrs (kebab-case)
1410
1410
  o.props?.attrs?.id,
1411
1411
  o.props?.attrs?.name,
@@ -1415,15 +1415,15 @@ function Ye(e, n) {
1415
1415
  o.props?.props?.name,
1416
1416
  o.props?.props?.dataKey,
1417
1417
  o.props?.props?.["data-key"]
1418
- ].find((T) => T != null) ?? "";
1419
- c = C ? `${n}:${p}:${C}` : `${n}:${p}`;
1418
+ ].find((N) => N != null) ?? "";
1419
+ c = k ? `${n}:${p}:${k}` : `${n}:${p}`;
1420
1420
  }
1421
1421
  let f = c, u = 1;
1422
1422
  for (; i.has(f); )
1423
1423
  f = `${c}#${u++}`;
1424
1424
  i.add(f);
1425
- let m = o.children;
1426
- return Array.isArray(m) && (m = Ye(m, f)), { ...o, key: f, children: m };
1425
+ let h = o.children;
1426
+ return Array.isArray(h) && (h = Ye(h, f)), { ...o, key: f, children: h };
1427
1427
  });
1428
1428
  }
1429
1429
  const t = e, s = t.props?.key ?? t.key ?? n;
@@ -1443,107 +1443,107 @@ function at(e, n, t, s) {
1443
1443
  }, f = {
1444
1444
  ...i || {},
1445
1445
  ...o.attrs || {}
1446
- }, u = n.props ?? {}, m = c, p = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
1446
+ }, u = n.props ?? {}, h = c, p = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
1447
1447
  let d = !1;
1448
- for (const a in { ...u, ...m }) {
1449
- const E = u[a], v = m[a];
1450
- let b = E, h = v;
1451
- if (x(() => {
1452
- (M(E) || Ne(E)) && (b = E.value);
1453
- }), x(() => {
1454
- (M(v) || Ne(v)) && (h = v.value);
1455
- }), !(E === v && b === h))
1448
+ for (const a in { ...u, ...h }) {
1449
+ const b = u[a], E = h[a];
1450
+ let m = b, v = E;
1451
+ if ($(() => {
1452
+ (P(b) || Ne(b)) && (m = b.value);
1453
+ }), $(() => {
1454
+ (P(E) || Ne(E)) && (v = E.value);
1455
+ }), !(b === E && m === v))
1456
1456
  if (d = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1457
- const k = Ze(v), S = k == null ? "" : String(k);
1458
- e.value !== S && (e.value = S);
1457
+ const S = Ze(E), C = S == null ? "" : String(S);
1458
+ e.value !== C && (e.value = C);
1459
1459
  } else if (a === "checked" && e instanceof HTMLInputElement) {
1460
- const k = Ze(v);
1461
- e.checked = !!k;
1462
- } else if (a.startsWith("on") && typeof v == "function") {
1463
- const k = ht(a);
1464
- typeof E == "function" && ne.removeListener(e, k, E), typeof v == "function" && ne.addListener(e, k, v);
1460
+ const S = Ze(E);
1461
+ e.checked = !!S;
1462
+ } else if (a.startsWith("on") && typeof E == "function") {
1463
+ const S = ht(a);
1464
+ typeof b == "function" && ne.removeListener(e, S, b), typeof E == "function" && ne.addListener(e, S, E);
1465
1465
  try {
1466
- if (k && k.startsWith("update:")) {
1467
- const S = k.split(":", 2)[1], L = m[S];
1468
- let y = [];
1466
+ if (S && S.startsWith("update:")) {
1467
+ const C = S.split(":", 2)[1], T = h[C];
1468
+ let g = [];
1469
1469
  try {
1470
- if (M(L)) {
1471
- const l = L.value;
1472
- y = l && typeof l == "object" ? Object.keys(l) : [];
1473
- } else L && typeof L == "object" && (y = Object.keys(L));
1470
+ if (P(T)) {
1471
+ const l = T.value;
1472
+ g = l && typeof l == "object" ? Object.keys(l) : [];
1473
+ } else T && typeof T == "object" && (g = Object.keys(T));
1474
1474
  } catch {
1475
- y = [];
1475
+ g = [];
1476
1476
  }
1477
- const _ = y.filter(
1477
+ const A = g.filter(
1478
1478
  (l) => typeof l == "string" && !l.startsWith("_") && l !== "constructor"
1479
1479
  );
1480
- for (const l of _) {
1481
- const g = `update:${l}`, A = (N) => {
1482
- const O = N.detail !== void 0 ? N.detail : N.target instanceof HTMLInputElement || N.target instanceof HTMLTextAreaElement || N.target instanceof HTMLSelectElement ? N.target.value : void 0, D = { ...M(L) ? L.value || {} : m[S] || {}, [l]: O };
1480
+ for (const l of A) {
1481
+ const y = `update:${l}`, w = (L) => {
1482
+ const O = L.detail !== void 0 ? L.detail : L.target instanceof HTMLInputElement || L.target instanceof HTMLTextAreaElement || L.target instanceof HTMLSelectElement ? L.target.value : void 0, D = { ...P(T) ? T.value || {} : h[C] || {}, [l]: O };
1483
1483
  try {
1484
- typeof v == "function" && v({
1484
+ typeof E == "function" && E({
1485
1485
  detail: D
1486
1486
  });
1487
1487
  } catch {
1488
1488
  }
1489
1489
  };
1490
- x(() => {
1491
- ne.addListener(e, g, A);
1490
+ $(() => {
1491
+ ne.addListener(e, y, w);
1492
1492
  });
1493
1493
  }
1494
1494
  }
1495
1495
  } catch {
1496
1496
  }
1497
- } else if (v == null)
1497
+ } else if (E == null)
1498
1498
  G(e, a);
1499
1499
  else {
1500
- const k = t?.isCustomElement ?? n?.isCustomElement ?? !1;
1501
- if (k || a in e)
1500
+ const S = t?.isCustomElement ?? n?.isCustomElement ?? !1;
1501
+ if (S || a in e)
1502
1502
  try {
1503
- e[a] = v, a === "disabled" && v === !1 && !k && Q(e) && G(e, "disabled");
1503
+ e[a] = E, a === "disabled" && E === !1 && !S && Q(e) && G(e, "disabled");
1504
1504
  } catch {
1505
1505
  }
1506
1506
  else
1507
- v === !1 && G(e, a);
1507
+ E === !1 && G(e, a);
1508
1508
  }
1509
1509
  }
1510
- for (const [a, E] of Object.entries(
1510
+ for (const [a, b] of Object.entries(
1511
1511
  o.listeners || {}
1512
1512
  )) {
1513
- ne.addListener(e, a, E);
1513
+ ne.addListener(e, a, b);
1514
1514
  try {
1515
- const v = e && e.parentElement;
1516
- v && v !== e && ne.addListener(
1517
- v,
1515
+ const E = e && e.parentElement;
1516
+ E && E !== e && ne.addListener(
1517
+ E,
1518
1518
  a,
1519
- E
1519
+ b
1520
1520
  );
1521
1521
  } catch {
1522
1522
  }
1523
1523
  }
1524
- const C = { ...n.attrs ?? {} }, T = f, w = o && o.attrs || {};
1525
- if (Object.prototype.hasOwnProperty.call(w, "class") && typeof e.getAttribute == "function") {
1524
+ const k = { ...n.attrs ?? {} }, N = f, _ = o && o.attrs || {};
1525
+ if (Object.prototype.hasOwnProperty.call(_, "class") && typeof e.getAttribute == "function") {
1526
1526
  const a = e.getAttribute("class");
1527
- a !== null && (C.class = a);
1527
+ a !== null && (k.class = a);
1528
1528
  }
1529
- if (Object.prototype.hasOwnProperty.call(w, "style") && typeof e.getAttribute == "function") {
1529
+ if (Object.prototype.hasOwnProperty.call(_, "style") && typeof e.getAttribute == "function") {
1530
1530
  const a = e.getAttribute("style");
1531
- a !== null && (C.style = a);
1531
+ a !== null && (k.style = a);
1532
1532
  }
1533
1533
  try {
1534
- if (Object.prototype.hasOwnProperty.call(w, "class") && w.class === void 0 && typeof e.getAttribute == "function") {
1534
+ if (Object.prototype.hasOwnProperty.call(_, "class") && _.class === void 0 && typeof e.getAttribute == "function") {
1535
1535
  const a = e.getAttribute("class");
1536
- a !== null && (C.class = a);
1536
+ a !== null && (k.class = a);
1537
1537
  }
1538
- if (Object.prototype.hasOwnProperty.call(w, "style") && w.style === void 0 && typeof e.getAttribute == "function") {
1538
+ if (Object.prototype.hasOwnProperty.call(_, "style") && _.style === void 0 && typeof e.getAttribute == "function") {
1539
1539
  const a = e.getAttribute("style");
1540
- a !== null && (C.style = a);
1540
+ a !== null && (k.style = a);
1541
1541
  }
1542
1542
  try {
1543
1543
  if (typeof e.getAttribute == "function") {
1544
1544
  const a = e.getAttribute("class");
1545
1545
  try {
1546
- e instanceof HTMLInputElement && e.type === "text" && a !== null && a !== C.class && (C.class = a);
1546
+ e instanceof HTMLInputElement && e.type === "text" && a !== null && a !== k.class && (k.class = a);
1547
1547
  } catch {
1548
1548
  }
1549
1549
  }
@@ -1551,129 +1551,129 @@ function at(e, n, t, s) {
1551
1551
  }
1552
1552
  } catch {
1553
1553
  }
1554
- for (const a in { ...C, ...T }) {
1555
- const E = C[a], v = T[a];
1556
- let b = E, h = v;
1557
- if (M(E) && (b = E.value), M(v) && (h = v.value), b !== h)
1558
- if (d = !0, h == null || h === !1)
1559
- x(() => {
1554
+ for (const a in { ...k, ...N }) {
1555
+ const b = k[a], E = N[a];
1556
+ let m = b, v = E;
1557
+ if (P(b) && (m = b.value), P(E) && (v = E.value), m !== v)
1558
+ if (d = !0, v == null || v === !1)
1559
+ $(() => {
1560
1560
  G(e, a);
1561
- }), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1561
+ }), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? $(() => {
1562
1562
  e.value = "";
1563
- }) : e instanceof HTMLSelectElement ? x(() => {
1563
+ }) : e instanceof HTMLSelectElement ? $(() => {
1564
1564
  e.value = "";
1565
- }) : e instanceof HTMLProgressElement && x(() => {
1565
+ }) : e instanceof HTMLProgressElement && $(() => {
1566
1566
  e.value = 0;
1567
- })), a === "checked" && e instanceof HTMLInputElement && x(() => {
1567
+ })), a === "checked" && e instanceof HTMLInputElement && $(() => {
1568
1568
  e.checked = !1;
1569
- }), a === "disabled" && Q(e) && x(() => {
1569
+ }), a === "disabled" && Q(e) && $(() => {
1570
1570
  (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = !1);
1571
1571
  });
1572
1572
  else {
1573
1573
  if (a === "value") {
1574
1574
  if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
1575
- x(() => {
1576
- e.value = h ?? "";
1575
+ $(() => {
1576
+ e.value = v ?? "";
1577
1577
  });
1578
1578
  continue;
1579
1579
  } else if (e instanceof HTMLSelectElement) {
1580
- x(() => {
1581
- e.value = h ?? "";
1580
+ $(() => {
1581
+ e.value = v ?? "";
1582
1582
  });
1583
1583
  continue;
1584
1584
  } else if (e instanceof HTMLProgressElement) {
1585
- x(() => {
1586
- e.value = Number(h);
1585
+ $(() => {
1586
+ e.value = Number(v);
1587
1587
  });
1588
1588
  continue;
1589
1589
  }
1590
1590
  }
1591
1591
  if (a === "checked" && e instanceof HTMLInputElement) {
1592
- x(() => {
1593
- e.checked = !!h;
1592
+ $(() => {
1593
+ e.checked = !!v;
1594
1594
  });
1595
1595
  continue;
1596
1596
  }
1597
1597
  if (a === "style") {
1598
- const S = F(h);
1599
- S !== null && U(e, a, String(S)), oe(n, a, h);
1598
+ const C = F(v);
1599
+ C !== null && U(e, a, String(C)), oe(n, a, v);
1600
1600
  continue;
1601
1601
  }
1602
1602
  if (a === "class") {
1603
- const S = F(h);
1604
- S !== null && U(e, a, String(S)), oe(n, a, h);
1603
+ const C = F(v);
1604
+ C !== null && U(e, a, String(C)), oe(n, a, v);
1605
1605
  continue;
1606
1606
  }
1607
1607
  if (a === "disabled" && Q(e)) {
1608
- x(() => {
1609
- const S = pe(h);
1610
- (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = S);
1611
- }), pe(h) ? x(() => {
1608
+ $(() => {
1609
+ const C = pe(v);
1610
+ (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = C);
1611
+ }), pe(v) ? $(() => {
1612
1612
  U(e, a, "");
1613
- }) : x(() => {
1613
+ }) : $(() => {
1614
1614
  G(e, a);
1615
1615
  });
1616
1616
  continue;
1617
1617
  }
1618
- const k = e.namespaceURI === "http://www.w3.org/2000/svg";
1619
- if (p && !k && a.includes("-"))
1618
+ const S = e.namespaceURI === "http://www.w3.org/2000/svg";
1619
+ if (p && !S && a.includes("-"))
1620
1620
  if (pt(a)) {
1621
- const S = F(v ?? h);
1622
- if (S !== null) {
1621
+ const C = F(E ?? v);
1622
+ if (C !== null) {
1623
1623
  try {
1624
- U(e, a, String(S));
1624
+ U(e, a, String(C));
1625
1625
  } catch {
1626
1626
  }
1627
- oe(n, a, h);
1627
+ oe(n, a, v);
1628
1628
  }
1629
1629
  } else {
1630
- const S = Qe(a);
1630
+ const C = Qe(a);
1631
1631
  try {
1632
- const L = e;
1633
- L[S] = M(v) ? v : h, oe(n, a, h);
1632
+ const T = e;
1633
+ T[C] = P(E) ? E : v, oe(n, a, v);
1634
1634
  } catch {
1635
- const L = F(v ?? h);
1636
- L !== null && U(e, a, String(L));
1635
+ const T = F(E ?? v);
1636
+ T !== null && U(e, a, String(T));
1637
1637
  }
1638
1638
  }
1639
- else if (!k && a in e)
1639
+ else if (!S && a in e)
1640
1640
  try {
1641
- const S = e;
1642
- S[a] = M(v) ? v : h, oe(n, a, h);
1641
+ const C = e;
1642
+ C[a] = P(E) ? E : v, oe(n, a, v);
1643
1643
  } catch {
1644
- const S = F(h);
1645
- S !== null && (U(e, a, String(S)), oe(n, a, h));
1644
+ const C = F(v);
1645
+ C !== null && (U(e, a, String(C)), oe(n, a, v));
1646
1646
  }
1647
1647
  else {
1648
- const S = F(h);
1649
- S !== null && (U(e, a, String(S)), oe(n, a, h));
1648
+ const C = F(v);
1649
+ C !== null && (U(e, a, String(C)), oe(n, a, v));
1650
1650
  }
1651
1651
  }
1652
1652
  }
1653
1653
  try {
1654
1654
  if (Q(e)) {
1655
1655
  const a = c.disabled;
1656
- let E;
1656
+ let b;
1657
1657
  try {
1658
- const b = Object.prototype.hasOwnProperty.call(
1658
+ const m = Object.prototype.hasOwnProperty.call(
1659
1659
  o.props || {},
1660
1660
  "disabled"
1661
- ), h = a && typeof a == "object" && "value" in a;
1662
- let k = !1;
1663
- x(() => {
1664
- k = !!M(a);
1661
+ ), v = a && typeof a == "object" && "value" in a;
1662
+ let S = !1;
1663
+ $(() => {
1664
+ S = !!P(a);
1665
1665
  });
1666
- const S = Je(a);
1667
- k || h || b || S ? E = a : E = f.disabled;
1666
+ const C = Je(a);
1667
+ S || v || m || C ? b = a : b = f.disabled;
1668
1668
  } catch {
1669
- E = f.disabled;
1669
+ b = f.disabled;
1670
1670
  }
1671
- const v = pe(E);
1672
- x(() => {
1673
- (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = v);
1674
- }), v ? x(() => {
1671
+ const E = pe(b);
1672
+ $(() => {
1673
+ (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = E);
1674
+ }), E ? $(() => {
1675
1675
  U(e, "disabled", "");
1676
- }) : x(() => {
1676
+ }) : $(() => {
1677
1677
  G(e, "disabled");
1678
1678
  });
1679
1679
  }
@@ -1681,9 +1681,9 @@ function at(e, n, t, s) {
1681
1681
  }
1682
1682
  if (p && d) {
1683
1683
  const a = e;
1684
- x(() => {
1684
+ $(() => {
1685
1685
  a._applyProps?.(a._cfg);
1686
- }), x(() => {
1686
+ }), $(() => {
1687
1687
  typeof a.requestRender == "function" ? a.requestRender() : typeof a._render == "function" && a._render?.(a._cfg);
1688
1688
  });
1689
1689
  }
@@ -1702,200 +1702,200 @@ function J(e, n, t, s = null) {
1702
1702
  return document.createRange().createContextualFragment(a);
1703
1703
  }
1704
1704
  if (e.tag === "#anchor") {
1705
- const a = e, E = Array.isArray(a.children) ? a.children : [], v = document.createTextNode(""), b = document.createTextNode("");
1706
- a.key != null && (Z(v, `${a.key}:start`), Z(b, `${a.key}:end`)), a._startNode = v, a._endNode = b;
1707
- const h = document.createDocumentFragment();
1708
- h.appendChild(v);
1709
- for (const k of E) {
1710
- const S = J(
1711
- k,
1705
+ const a = e, b = Array.isArray(a.children) ? a.children : [], E = document.createTextNode(""), m = document.createTextNode("");
1706
+ a.key != null && (Z(E, `${a.key}:start`), Z(m, `${a.key}:end`)), a._startNode = E, a._endNode = m;
1707
+ const v = document.createDocumentFragment();
1708
+ v.appendChild(E);
1709
+ for (const S of b) {
1710
+ const C = J(
1711
+ S,
1712
1712
  n,
1713
1713
  t,
1714
1714
  // propagate parent namespace (was previously a boolean)
1715
1715
  s
1716
1716
  );
1717
- if (a.key != null && S instanceof Element && !S.hasAttribute("data-anchor-key")) {
1718
- const L = k;
1719
- L && typeof L == "object" && L.key != null || Z(S, String(a.key));
1717
+ if (a.key != null && C instanceof Element && !C.hasAttribute("data-anchor-key")) {
1718
+ const T = S;
1719
+ T && typeof T == "object" && T.key != null || Z(C, String(a.key));
1720
1720
  }
1721
- h.appendChild(S);
1721
+ v.appendChild(C);
1722
1722
  }
1723
- return h.appendChild(b), h;
1723
+ return v.appendChild(m), v;
1724
1724
  }
1725
1725
  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);
1726
1726
  e.key != null && Z(c, e.key), e.props && e.props?._transitionGroup && Zt(
1727
1727
  c,
1728
1728
  e.props?._transitionGroup
1729
1729
  );
1730
- const { props: f = {}, attrs: u = {}, directives: m = {} } = e.props ?? {}, p = yt(
1731
- m,
1730
+ const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = yt(
1731
+ h,
1732
1732
  n,
1733
1733
  c instanceof HTMLElement ? c : void 0,
1734
1734
  u
1735
1735
  ), d = {
1736
1736
  ...f,
1737
1737
  ...p.props
1738
- }, C = {
1738
+ }, k = {
1739
1739
  ...u,
1740
1740
  ...p.attrs
1741
1741
  };
1742
1742
  try {
1743
- const a = (C && C.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), E = F(a);
1744
- if (E !== null) {
1745
- const v = String(E).trim();
1746
- v && U(c, "class", v);
1743
+ 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);
1744
+ if (b !== null) {
1745
+ const E = String(b).trim();
1746
+ E && U(c, "class", E);
1747
1747
  }
1748
1748
  } catch {
1749
1749
  }
1750
1750
  try {
1751
1751
  if (d.disabled !== void 0 && c && Q(c)) {
1752
- const a = d.disabled, E = a && typeof a == "object" && "value" in a;
1753
- let v = !1;
1752
+ const a = d.disabled, b = a && typeof a == "object" && "value" in a;
1753
+ let E = !1;
1754
1754
  try {
1755
- v = M(a);
1755
+ E = P(a);
1756
1756
  } catch {
1757
- v = !1;
1757
+ E = !1;
1758
1758
  }
1759
- !E && !v && x(() => {
1760
- C.disabled = a, delete d.disabled;
1759
+ !b && !E && $(() => {
1760
+ k.disabled = a, delete d.disabled;
1761
1761
  });
1762
1762
  }
1763
1763
  } catch {
1764
1764
  }
1765
- const T = c.namespaceURI === "http://www.w3.org/2000/svg";
1766
- for (const a in C) {
1767
- const E = C[a];
1765
+ const N = c.namespaceURI === "http://www.w3.org/2000/svg";
1766
+ for (const a in k) {
1767
+ const b = k[a];
1768
1768
  if (typeof a != "string" || /\[object Object\]/.test(a))
1769
1769
  continue;
1770
- const v = Ze(E);
1771
- if (typeof v == "boolean")
1772
- v ? U(c, a, "") : x(() => {
1770
+ const E = Ze(b);
1771
+ if (typeof E == "boolean")
1772
+ E ? U(c, a, "") : $(() => {
1773
1773
  G(c, a);
1774
1774
  });
1775
- else if (v != null) {
1775
+ else if (E != null) {
1776
1776
  if (a === "disabled" && Q(c)) {
1777
- const b = d.disabled, h = Je(b) ? b : v, k = pe(h);
1778
- x(() => {
1779
- c.disabled = k;
1780
- }), k ? x(() => {
1777
+ const m = d.disabled, v = Je(m) ? m : E, S = pe(v);
1778
+ $(() => {
1779
+ c.disabled = S;
1780
+ }), S ? $(() => {
1781
1781
  U(c, a, "");
1782
- }) : x(() => {
1782
+ }) : $(() => {
1783
1783
  G(c, a);
1784
1784
  });
1785
1785
  continue;
1786
1786
  }
1787
- if (!T && a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement || c instanceof HTMLProgressElement))
1787
+ if (!N && a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement || c instanceof HTMLProgressElement))
1788
1788
  try {
1789
- c instanceof HTMLProgressElement ? c.value = Number(v) : c.value = String(v ?? "");
1789
+ c instanceof HTMLProgressElement ? c.value = Number(E) : c.value = String(E ?? "");
1790
1790
  } catch {
1791
- const b = F(v);
1792
- b !== null && U(c, a, String(b));
1791
+ const m = F(E);
1792
+ m !== null && U(c, a, String(m));
1793
1793
  }
1794
- else if (!T && a === "checked" && c instanceof HTMLInputElement)
1794
+ else if (!N && a === "checked" && c instanceof HTMLInputElement)
1795
1795
  try {
1796
- c.checked = !!v;
1796
+ c.checked = !!E;
1797
1797
  } catch {
1798
- const b = F(v);
1799
- b !== null && U(c, a, String(b));
1798
+ const m = F(E);
1799
+ m !== null && U(c, a, String(m));
1800
1800
  }
1801
- else if (!T && a in c)
1801
+ else if (!N && a in c)
1802
1802
  try {
1803
- c[a] = v, a === "disabled" && v === !1 && Q(c) && G(c, "disabled"), oe(e.props, a, v);
1803
+ c[a] = E, a === "disabled" && E === !1 && Q(c) && G(c, "disabled"), oe(e.props, a, E);
1804
1804
  } catch {
1805
- const b = F(v);
1806
- b !== null && U(c, a, String(b));
1805
+ const m = F(E);
1806
+ m !== null && U(c, a, String(m));
1807
1807
  }
1808
- else if ((e.props?.isCustomElement ?? !1) && !T && a.includes("-")) {
1809
- const h = Qe(a);
1808
+ else if ((e.props?.isCustomElement ?? !1) && !N && a.includes("-")) {
1809
+ const v = Qe(a);
1810
1810
  try {
1811
- c[h] = v;
1811
+ c[v] = E;
1812
1812
  } catch {
1813
- const k = F(v);
1814
- k !== null && U(c, a, String(k));
1813
+ const S = F(E);
1814
+ S !== null && U(c, a, String(S));
1815
1815
  }
1816
1816
  } else {
1817
- const h = F(v);
1818
- h !== null && U(c, a, String(h));
1817
+ const v = F(E);
1818
+ v !== null && U(c, a, String(v));
1819
1819
  }
1820
1820
  }
1821
1821
  }
1822
1822
  for (const a in d) {
1823
- const E = d[a];
1823
+ const b = d[a];
1824
1824
  if (!(typeof a != "string" || /\[object Object\]/.test(a)))
1825
1825
  if (a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement)) {
1826
- const v = typeof E == "object" && E !== null && Ne(E) ? E.value : E;
1827
- x(() => {
1828
- c.value = String(v ?? "");
1826
+ const E = typeof b == "object" && b !== null && Ne(b) ? b.value : b;
1827
+ $(() => {
1828
+ c.value = String(E ?? "");
1829
1829
  });
1830
- } else if (a.startsWith("on") && typeof E == "function") {
1831
- const v = ht(a), b = v.includes(":") ? (() => {
1832
- const h = v.split(":"), k = h[1];
1833
- if (k.includes("-")) {
1834
- const S = k.split("-").map(
1835
- (L, y) => y === 0 ? L : L.charAt(0).toUpperCase() + L.slice(1)
1830
+ } else if (a.startsWith("on") && typeof b == "function") {
1831
+ const E = ht(a), m = E.includes(":") ? (() => {
1832
+ const v = E.split(":"), S = v[1];
1833
+ if (S.includes("-")) {
1834
+ const C = S.split("-").map(
1835
+ (T, g) => g === 0 ? T : T.charAt(0).toUpperCase() + T.slice(1)
1836
1836
  ).join("");
1837
- return `${h[0]}:${S}`;
1837
+ return `${v[0]}:${C}`;
1838
1838
  } else {
1839
- const S = k.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1840
- return `${h[0]}:${S}`;
1839
+ const C = S.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1840
+ return `${v[0]}:${C}`;
1841
1841
  }
1842
- })() : v;
1843
- p.listeners && (p.listeners[v] || p.listeners[b]) || ne.addListener(c, v, E);
1842
+ })() : E;
1843
+ p.listeners && (p.listeners[E] || p.listeners[m]) || ne.addListener(c, E, b);
1844
1844
  } else {
1845
- if (a.startsWith("on") && E === void 0)
1845
+ if (a.startsWith("on") && b === void 0)
1846
1846
  continue;
1847
- if (E == null || E === !1)
1847
+ if (b == null || b === !1)
1848
1848
  G(c, a);
1849
1849
  else {
1850
- const v = e.props?.isCustomElement ?? !1, b = typeof E == "object" && E !== null && M(E) ? E : Ne(E) && typeof E.value < "u" ? E.value : E;
1850
+ const E = e.props?.isCustomElement ?? !1, m = typeof b == "object" && b !== null && P(b) ? b : Ne(b) && typeof b.value < "u" ? b.value : b;
1851
1851
  if (a === "class" || a === "style") {
1852
1852
  try {
1853
- const h = F(b);
1854
- h !== null && U(c, a, String(h));
1853
+ const v = F(m);
1854
+ v !== null && U(c, a, String(v));
1855
1855
  } catch {
1856
1856
  }
1857
1857
  continue;
1858
1858
  }
1859
- if (v || a in c)
1859
+ if (E || a in c)
1860
1860
  try {
1861
- const h = typeof E == "object" && E !== null && M(E) ? E : Ne(E) ? E.value : E;
1861
+ const v = typeof b == "object" && b !== null && P(b) ? b : Ne(b) ? b.value : b;
1862
1862
  if (a === "disabled" && Q(c)) {
1863
- const k = d.disabled !== void 0 ? d.disabled : h, S = pe(k);
1864
- x(() => {
1865
- c.disabled = S;
1866
- }), S ? x(() => {
1863
+ const S = d.disabled !== void 0 ? d.disabled : v, C = pe(S);
1864
+ $(() => {
1865
+ c.disabled = C;
1866
+ }), C ? $(() => {
1867
1867
  U(c, a, "");
1868
- }) : x(() => {
1868
+ }) : $(() => {
1869
1869
  G(c, a);
1870
1870
  });
1871
1871
  continue;
1872
1872
  }
1873
1873
  try {
1874
1874
  if (typeof c[a] == "boolean") {
1875
- let S = h;
1876
- typeof h == "string" ? h === "false" ? S = !1 : h === "true" ? S = !0 : S = !!h && h !== "" : S = !!h, c[a] = S;
1875
+ let C = v;
1876
+ typeof v == "string" ? v === "false" ? C = !1 : v === "true" ? C = !0 : C = !!v && v !== "" : C = !!v, c[a] = C;
1877
1877
  } else
1878
- c[a] = h;
1878
+ c[a] = v;
1879
1879
  } catch {
1880
- c[a] = h;
1880
+ c[a] = v;
1881
1881
  }
1882
1882
  } catch {
1883
1883
  }
1884
1884
  }
1885
1885
  }
1886
1886
  }
1887
- for (const [a, E] of Object.entries(
1887
+ for (const [a, b] of Object.entries(
1888
1888
  p.listeners || {}
1889
1889
  ))
1890
- ne.addListener(c, a, E);
1891
- const w = {
1890
+ ne.addListener(c, a, b);
1891
+ const _ = {
1892
1892
  ...e,
1893
1893
  props: {
1894
1894
  ...e.props,
1895
1895
  ...p.props
1896
1896
  }
1897
1897
  };
1898
- Te(w, c, t);
1898
+ Te(_, c, t);
1899
1899
  try {
1900
1900
  const a = c;
1901
1901
  if (typeof a._applyProps == "function")
@@ -1908,32 +1908,32 @@ function J(e, n, t, s = null) {
1908
1908
  }
1909
1909
  if (Array.isArray(e.children)) {
1910
1910
  const a = e.tag === "foreignObject" && o === kt ? null : c.namespaceURI ?? null;
1911
- for (const E of e.children)
1912
- c.appendChild(J(E, n, t, a));
1911
+ for (const b of e.children)
1912
+ c.appendChild(J(b, n, t, a));
1913
1913
  } else typeof e.children == "string" && (c.textContent = e.children);
1914
1914
  try {
1915
- if (c instanceof HTMLSelectElement && C && Object.prototype.hasOwnProperty.call(C, "value"))
1915
+ if (c instanceof HTMLSelectElement && k && Object.prototype.hasOwnProperty.call(k, "value"))
1916
1916
  try {
1917
- c.value = String(C.value ?? "");
1917
+ c.value = String(k.value ?? "");
1918
1918
  } catch {
1919
1919
  }
1920
1920
  } catch {
1921
1921
  }
1922
1922
  try {
1923
1923
  if (Q(c)) {
1924
- const a = d.disabled, E = C.disabled, v = a && typeof a == "object" && "value" in a;
1925
- let b = !1;
1924
+ const a = d.disabled, b = k.disabled, E = a && typeof a == "object" && "value" in a;
1925
+ let m = !1;
1926
1926
  try {
1927
- b = !!M(a);
1927
+ m = !!P(a);
1928
1928
  } catch {
1929
- b = !1;
1929
+ m = !1;
1930
1930
  }
1931
- const k = b || v || Je(a) ? a : E, S = pe(k);
1932
- x(() => {
1933
- c.disabled = S;
1934
- }), S ? x(() => {
1931
+ const S = m || E || Je(a) ? a : b, C = pe(S);
1932
+ $(() => {
1933
+ c.disabled = C;
1934
+ }), C ? $(() => {
1935
1935
  U(c, "disabled", "");
1936
- }) : x(() => {
1936
+ }) : $(() => {
1937
1937
  G(c, "disabled");
1938
1938
  });
1939
1939
  }
@@ -1948,138 +1948,138 @@ function Jt(e, n, t, s, r) {
1948
1948
  }
1949
1949
  if (!Array.isArray(t)) return;
1950
1950
  const i = e.childNodes, o = [];
1951
- for (let w = 0; w < i.length; w++)
1952
- o.push(i[w]);
1951
+ for (let _ = 0; _ < i.length; _++)
1952
+ o.push(i[_]);
1953
1953
  const c = Array.isArray(n) ? n : [], f = Gt(e);
1954
1954
  if (f) {
1955
- const w = (b) => {
1956
- if (typeof b == "string")
1957
- return b.startsWith("each-") ? b.substring(5) : b;
1958
- if (typeof b == "number") return String(b);
1959
- }, a = [], E = [];
1960
- for (const b of t)
1961
- if (b && b.tag === "#anchor") {
1962
- const h = Array.isArray(b.children) ? b.children : [];
1963
- for (const k of h) {
1964
- const S = w(
1965
- k.key ?? b.key ?? "unknown"
1955
+ const _ = (m) => {
1956
+ if (typeof m == "string")
1957
+ return m.startsWith("each-") ? m.substring(5) : m;
1958
+ if (typeof m == "number") return String(m);
1959
+ }, a = [], b = [];
1960
+ for (const m of t)
1961
+ if (m && m.tag === "#anchor") {
1962
+ const v = Array.isArray(m.children) ? m.children : [];
1963
+ for (const S of v) {
1964
+ const C = _(
1965
+ S.key ?? m.key ?? "unknown"
1966
1966
  );
1967
- a.push({ ...k, key: S });
1967
+ a.push({ ...S, key: C });
1968
1968
  }
1969
- } else b && a.push({ ...b, key: w(b.key) });
1970
- for (const b of c)
1971
- if (b && b.tag === "#anchor") {
1972
- const h = Array.isArray(b.children) ? b.children : [];
1973
- for (const k of h) {
1974
- const S = w(
1975
- k.key ?? b.key ?? "unknown"
1969
+ } else m && a.push({ ...m, key: _(m.key) });
1970
+ for (const m of c)
1971
+ if (m && m.tag === "#anchor") {
1972
+ const v = Array.isArray(m.children) ? m.children : [];
1973
+ for (const S of v) {
1974
+ const C = _(
1975
+ S.key ?? m.key ?? "unknown"
1976
1976
  );
1977
- E.push({ ...k, key: S });
1977
+ b.push({ ...S, key: C });
1978
1978
  }
1979
- } else b && E.push({
1980
- ...b,
1981
- key: w(b.key)
1979
+ } else m && b.push({
1980
+ ...m,
1981
+ key: _(m.key)
1982
1982
  });
1983
- if (a.some((b) => b && b.key != null) || E.some((b) => b && b.key != null)) {
1984
- const b = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
1985
- for (const l of E)
1983
+ if (a.some((m) => m && m.key != null) || b.some((m) => m && m.key != null)) {
1984
+ const m = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
1985
+ for (const l of b)
1986
1986
  if (l && l.key != null) {
1987
- const g = String(l.key);
1988
- b.set(g, l);
1987
+ const y = String(l.key);
1988
+ m.set(y, l);
1989
1989
  }
1990
1990
  for (let l = 0; l < o.length; l++) {
1991
- const g = o[l];
1992
- let A = De(g);
1993
- if (A = w(A), A != null && g instanceof Element && g.nodeType === Node.ELEMENT_NODE) {
1994
- let N = typeof A == "string" && A.includes(":") ? A.substring(0, A.lastIndexOf(":")) : A;
1995
- N = String(N), h.set(N, g);
1991
+ const y = o[l];
1992
+ let w = De(y);
1993
+ if (w = _(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
1994
+ let L = typeof w == "string" && w.includes(":") ? w.substring(0, w.lastIndexOf(":")) : w;
1995
+ L = String(L), v.set(L, y);
1996
1996
  }
1997
1997
  }
1998
- const k = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Map(), L = o.length > 0;
1999
- if (f.moveClass && L)
1998
+ const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = o.length > 0;
1999
+ if (f.moveClass && T)
2000
2000
  for (let l = 0; l < o.length; l++) {
2001
- const g = o[l];
2002
- if (g instanceof HTMLElement && g.parentElement) {
2003
- const A = g.getBoundingClientRect();
2004
- S.set(g, A);
2001
+ const y = o[l];
2002
+ if (y instanceof HTMLElement && y.parentElement) {
2003
+ const w = y.getBoundingClientRect();
2004
+ C.set(y, w);
2005
2005
  }
2006
2006
  }
2007
- const y = [];
2007
+ const g = [];
2008
2008
  for (const l of a) {
2009
- let g = l.key;
2010
- if (g == null) continue;
2011
- g = String(g);
2012
- const A = b.get(g);
2013
- let N = h.get(g);
2014
- if (N && A) {
2015
- const O = Le(N, A, l, s);
2016
- k.add(N);
2017
- const P = String(g);
2018
- Z(O, P), y.push({
2009
+ let y = l.key;
2010
+ if (y == null) continue;
2011
+ y = String(y);
2012
+ const w = m.get(y);
2013
+ let L = v.get(y);
2014
+ if (L && w) {
2015
+ const O = Le(L, w, l, s);
2016
+ S.add(L);
2017
+ const M = String(y);
2018
+ Z(O, M), g.push({
2019
2019
  node: O,
2020
- key: g,
2020
+ key: y,
2021
2021
  newVNode: l,
2022
- oldVNode: A,
2022
+ oldVNode: w,
2023
2023
  isNew: !1
2024
2024
  });
2025
2025
  } else {
2026
- N = J(
2026
+ L = J(
2027
2027
  l,
2028
2028
  s,
2029
2029
  void 0,
2030
2030
  e instanceof Element ? e.namespaceURI ?? null : null
2031
- ), Z(N, String(g)), e.appendChild(N);
2032
- const O = L || f.appear === !0;
2033
- N instanceof HTMLElement && O && we(N, f).catch((P) => {
2034
- B("Enter transition error:", P);
2035
- }), y.push({ node: N, key: g, newVNode: l, isNew: !0 });
2031
+ ), Z(L, String(y)), e.appendChild(L);
2032
+ const O = T || f.appear === !0;
2033
+ L instanceof HTMLElement && O && we(L, f).catch((M) => {
2034
+ B("Enter transition error:", M);
2035
+ }), g.push({ node: L, key: y, newVNode: l, isNew: !0 });
2036
2036
  }
2037
2037
  }
2038
- const _ = [];
2038
+ const A = [];
2039
2039
  for (let l = 0; l < o.length; l++) {
2040
- const g = o[l], A = De(g);
2041
- if (!k.has(g) && A != null && g instanceof HTMLElement) {
2042
- const O = qe(g, f).then(() => {
2043
- e.contains(g) && e.removeChild(g);
2044
- }).catch((P) => {
2045
- B("Leave transition error:", P), e.contains(g) && e.removeChild(g);
2040
+ const y = o[l], w = De(y);
2041
+ if (!S.has(y) && w != null && y instanceof HTMLElement) {
2042
+ const O = qe(y, f).then(() => {
2043
+ e.contains(y) && e.removeChild(y);
2044
+ }).catch((M) => {
2045
+ B("Leave transition error:", M), e.contains(y) && e.removeChild(y);
2046
2046
  });
2047
- _.push(O);
2047
+ A.push(O);
2048
2048
  }
2049
2049
  }
2050
- if (_.length === 0) {
2050
+ if (A.length === 0) {
2051
2051
  let l = e.firstChild;
2052
- for (const { node: g } of y)
2053
- g !== l && e.insertBefore(g, l), l = g.nextSibling;
2054
- if (f.moveClass && S.size > 0) {
2055
- const g = [];
2056
- for (const { node: A, isNew: N } of y)
2057
- if (!N && A instanceof HTMLElement) {
2058
- const O = S.get(A);
2052
+ for (const { node: y } of g)
2053
+ y !== l && e.insertBefore(y, l), l = y.nextSibling;
2054
+ if (f.moveClass && C.size > 0) {
2055
+ const y = [];
2056
+ for (const { node: w, isNew: L } of g)
2057
+ if (!L && w instanceof HTMLElement) {
2058
+ const O = C.get(w);
2059
2059
  if (O) {
2060
- const P = A.getBoundingClientRect(), D = O.left - P.left, j = O.top - P.top;
2060
+ const M = w.getBoundingClientRect(), D = O.left - M.left, j = O.top - M.top;
2061
2061
  if (D !== 0 || j !== 0) {
2062
2062
  const z = f.moveClass.split(/\s+/).filter((I) => I);
2063
- g.push({ node: A, deltaX: D, deltaY: j, moveClasses: z });
2063
+ y.push({ node: w, deltaX: D, deltaY: j, moveClasses: z });
2064
2064
  }
2065
2065
  }
2066
2066
  }
2067
- if (g.length > 0) {
2068
- for (const { node: A, deltaX: N, deltaY: O } of g)
2069
- A.style.transform = `translate(${N}px, ${O}px)`, A.style.transitionProperty = "none";
2067
+ if (y.length > 0) {
2068
+ for (const { node: w, deltaX: L, deltaY: O } of y)
2069
+ w.style.transform = `translate(${L}px, ${O}px)`, w.style.transitionProperty = "none";
2070
2070
  e.offsetHeight, requestAnimationFrame(() => {
2071
2071
  requestAnimationFrame(() => {
2072
- for (const { node: A, moveClasses: N } of g)
2073
- for (const O of N)
2074
- A.classList.add(O);
2072
+ for (const { node: w, moveClasses: L } of y)
2073
+ for (const O of L)
2074
+ w.classList.add(O);
2075
2075
  requestAnimationFrame(() => {
2076
- const A = f.moveClass || "", N = A.match(/duration-(\d+)/), O = N ? `${N[1]}ms` : "300ms", P = A.match(
2076
+ const w = f.moveClass || "", L = w.match(/duration-(\d+)/), O = L ? `${L[1]}ms` : "300ms", M = w.match(
2077
2077
  /ease-(out|in|in-out|linear)/
2078
- ), D = P ? `ease-${P[1]}` : "ease-out";
2079
- for (const { node: j } of g)
2078
+ ), D = M ? `ease-${M[1]}` : "ease-out";
2079
+ for (const { node: j } of y)
2080
2080
  j.style.transition = `transform ${O} ${D}`;
2081
2081
  requestAnimationFrame(() => {
2082
- for (const { node: j, moveClasses: z } of g) {
2082
+ for (const { node: j, moveClasses: z } of y) {
2083
2083
  j.style.removeProperty("transform");
2084
2084
  const I = () => {
2085
2085
  for (const ie of z)
@@ -2103,150 +2103,150 @@ function Jt(e, n, t, s, r) {
2103
2103
  }
2104
2104
  }
2105
2105
  const u = /* @__PURE__ */ new Map();
2106
- for (const w of c)
2107
- w && w.key != null && u.set(w.key, w);
2108
- const m = /* @__PURE__ */ new Map();
2109
- for (let w = 0; w < o.length; w++) {
2110
- const a = o[w], E = De(a);
2111
- E != null && m.set(E, a);
2106
+ for (const _ of c)
2107
+ _ && _.key != null && u.set(_.key, _);
2108
+ const h = /* @__PURE__ */ new Map();
2109
+ for (let _ = 0; _ < o.length; _++) {
2110
+ const a = o[_], b = De(a);
2111
+ b != null && h.set(b, a);
2112
2112
  }
2113
2113
  const p = /* @__PURE__ */ new Set();
2114
2114
  let d = e.firstChild;
2115
- function C(w, a) {
2116
- let E = w;
2117
- for (; E && (p.add(E), E !== a); )
2118
- E = E.nextSibling;
2119
- }
2120
- function T(w, a, E, v, b, h = !0) {
2121
- const k = [];
2122
- let S = w.nextSibling;
2123
- for (; S && S !== a; )
2124
- k.push(S), S = S.nextSibling;
2125
- const L = Array.isArray(E) ? E : [];
2126
- if (v.some((_) => _ && _.key != null) || L.some((_) => _ && _.key != null)) {
2127
- const _ = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2128
- for (const O of L)
2129
- O && O.key != null && _.set(O.key, O);
2130
- for (const O of k) {
2131
- const P = De(O);
2132
- P != null && l.set(P, O);
2133
- }
2134
- const g = b && b.state === "visible" && L.length === 0 && v.length > 0, A = /* @__PURE__ */ new Set();
2135
- let N = w.nextSibling;
2136
- for (const O of v) {
2137
- let P;
2115
+ function k(_, a) {
2116
+ let b = _;
2117
+ for (; b && (p.add(b), b !== a); )
2118
+ b = b.nextSibling;
2119
+ }
2120
+ function N(_, a, b, E, m, v = !0) {
2121
+ const S = [];
2122
+ let C = _.nextSibling;
2123
+ for (; C && C !== a; )
2124
+ S.push(C), C = C.nextSibling;
2125
+ const T = Array.isArray(b) ? b : [];
2126
+ if (E.some((A) => A && A.key != null) || T.some((A) => A && A.key != null)) {
2127
+ const A = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2128
+ for (const O of T)
2129
+ O && O.key != null && A.set(O.key, O);
2130
+ for (const O of S) {
2131
+ const M = De(O);
2132
+ M != null && l.set(M, O);
2133
+ }
2134
+ const y = m && m.state === "visible" && T.length === 0 && E.length > 0, w = /* @__PURE__ */ new Set();
2135
+ let L = _.nextSibling;
2136
+ for (const O of E) {
2137
+ let M;
2138
2138
  if (O.key != null && l.has(O.key)) {
2139
- const D = _.get(O.key);
2140
- P = Le(
2139
+ const D = A.get(O.key);
2140
+ M = Le(
2141
2141
  l.get(O.key),
2142
2142
  D,
2143
2143
  O,
2144
2144
  s
2145
- ), A.add(P), b && P instanceof HTMLElement && g && b.appear && we(P, b).catch((j) => {
2145
+ ), w.add(M), m && M instanceof HTMLElement && y && m.appear && we(M, m).catch((j) => {
2146
2146
  B("Transition enter error (appear):", j);
2147
- }), P !== N && e.contains(P) && e.insertBefore(P, N);
2147
+ }), M !== L && e.contains(M) && e.insertBefore(M, L);
2148
2148
  } else
2149
- P = J(
2149
+ M = J(
2150
2150
  O,
2151
2151
  s,
2152
2152
  void 0,
2153
2153
  e instanceof Element ? e.namespaceURI ?? null : null
2154
- ), e.insertBefore(P, N), A.add(P), b && P instanceof HTMLElement && h && we(P, b).catch((D) => {
2154
+ ), e.insertBefore(M, L), w.add(M), m && M instanceof HTMLElement && v && we(M, m).catch((D) => {
2155
2155
  B("Transition enter error:", D);
2156
2156
  });
2157
- N = P.nextSibling;
2157
+ L = M.nextSibling;
2158
2158
  }
2159
- for (const O of k)
2160
- !A.has(O) && e.contains(O) && (b && O instanceof HTMLElement && h ? qe(O, b).then(() => {
2159
+ for (const O of S)
2160
+ !w.has(O) && e.contains(O) && (m && O instanceof HTMLElement && v ? qe(O, m).then(() => {
2161
2161
  e.contains(O) && e.removeChild(O);
2162
- }).catch((P) => {
2163
- B("Transition leave error:", P), e.contains(O) && e.removeChild(O);
2162
+ }).catch((M) => {
2163
+ B("Transition leave error:", M), e.contains(O) && e.removeChild(O);
2164
2164
  }) : e.removeChild(O));
2165
2165
  } else {
2166
- const _ = Math.min(
2167
- L.length,
2168
- v.length
2166
+ const A = Math.min(
2167
+ T.length,
2168
+ E.length
2169
2169
  );
2170
- for (let l = 0; l < _; l++) {
2171
- const g = L[l], A = v[l], N = Le(k[l], g, A, s);
2172
- N !== k[l] && (e.insertBefore(N, k[l]), e.removeChild(k[l]));
2170
+ for (let l = 0; l < A; l++) {
2171
+ const y = T[l], w = E[l], L = Le(S[l], y, w, s);
2172
+ L !== S[l] && (e.insertBefore(L, S[l]), e.removeChild(S[l]));
2173
2173
  }
2174
- for (let l = _; l < v.length; l++) {
2175
- const g = J(
2176
- v[l],
2174
+ for (let l = A; l < E.length; l++) {
2175
+ const y = J(
2176
+ E[l],
2177
2177
  s,
2178
2178
  void 0,
2179
2179
  e instanceof Element ? e.namespaceURI ?? null : null
2180
2180
  );
2181
- e.insertBefore(g, a), b && g instanceof HTMLElement && h && we(g, b).catch((A) => {
2182
- B("Transition enter error:", A);
2181
+ e.insertBefore(y, a), m && y instanceof HTMLElement && v && we(y, m).catch((w) => {
2182
+ B("Transition enter error:", w);
2183
2183
  });
2184
2184
  }
2185
- for (let l = _; l < k.length; l++) {
2186
- const g = k[l];
2187
- b && g instanceof HTMLElement && h ? qe(g, b).then(() => {
2188
- e.contains(g) && e.removeChild(g);
2189
- }).catch((A) => {
2190
- B("Transition leave error:", A), e.contains(g) && e.removeChild(g);
2191
- }) : e.removeChild(g);
2185
+ for (let l = A; l < S.length; l++) {
2186
+ const y = S[l];
2187
+ m && y instanceof HTMLElement && v ? qe(y, m).then(() => {
2188
+ e.contains(y) && e.removeChild(y);
2189
+ }).catch((w) => {
2190
+ B("Transition leave error:", w), e.contains(y) && e.removeChild(y);
2191
+ }) : e.removeChild(y);
2192
2192
  }
2193
2193
  }
2194
2194
  }
2195
- for (const w of t) {
2195
+ for (const _ of t) {
2196
2196
  let a;
2197
- if (w.tag === "#anchor") {
2198
- const E = w.key, v = `${E}:start`, b = `${E}:end`;
2199
- let h = m.get(v), k = m.get(b);
2200
- const S = Array.isArray(w.children) ? w.children : [];
2201
- if (h || (h = document.createTextNode(""), Z(h, v)), k || (k = document.createTextNode(""), Z(k, b)), w._startNode = h, w._endNode = k, !e.contains(h) || !e.contains(k)) {
2202
- e.insertBefore(h, d);
2203
- const L = w._transition, _ = !(L && L.state === "visible" && S.length > 0) || L.appear;
2204
- for (const l of S) {
2205
- const g = J(
2197
+ if (_.tag === "#anchor") {
2198
+ const b = _.key, E = `${b}:start`, m = `${b}:end`;
2199
+ let v = h.get(E), S = h.get(m);
2200
+ const C = Array.isArray(_.children) ? _.children : [];
2201
+ if (v || (v = document.createTextNode(""), Z(v, E)), S || (S = document.createTextNode(""), Z(S, m)), _._startNode = v, _._endNode = S, !e.contains(v) || !e.contains(S)) {
2202
+ e.insertBefore(v, d);
2203
+ const T = _._transition, A = !(T && T.state === "visible" && C.length > 0) || T.appear;
2204
+ for (const l of C) {
2205
+ const y = J(
2206
2206
  l,
2207
2207
  s,
2208
2208
  r,
2209
2209
  e instanceof Element ? e.namespaceURI ?? null : null
2210
2210
  );
2211
- e.insertBefore(g, d), L && g instanceof HTMLElement && _ && we(g, L).catch((A) => {
2212
- B("Transition enter error:", A);
2211
+ e.insertBefore(y, d), T && y instanceof HTMLElement && A && we(y, T).catch((w) => {
2212
+ B("Transition enter error:", w);
2213
2213
  });
2214
2214
  }
2215
- e.insertBefore(k, d);
2215
+ e.insertBefore(S, d);
2216
2216
  } else {
2217
- const L = w._transition, _ = u.get(E)._transition, l = _ && _.state !== L?.state, g = L && L.state === "visible" && S.length > 0 && !l, A = l || !g || L?.appear === !0;
2218
- T(
2219
- h,
2220
- k,
2221
- u.get(E)?.children,
2217
+ const T = _._transition, A = u.get(b)._transition, l = A && A.state !== T?.state, y = T && T.state === "visible" && C.length > 0 && !l, w = l || !y || T?.appear === !0;
2218
+ N(
2219
+ v,
2222
2220
  S,
2223
- L,
2224
- A
2221
+ u.get(b)?.children,
2222
+ C,
2223
+ T,
2224
+ w
2225
2225
  );
2226
2226
  }
2227
- C(h, k), d = k.nextSibling;
2227
+ k(v, S), d = S.nextSibling;
2228
2228
  continue;
2229
2229
  }
2230
- if (w.key != null && m.has(w.key)) {
2231
- const E = u.get(w.key);
2230
+ if (_.key != null && h.has(_.key)) {
2231
+ const b = u.get(_.key);
2232
2232
  a = Le(
2233
- m.get(w.key),
2234
- E,
2235
- w,
2233
+ h.get(_.key),
2234
+ b,
2235
+ _,
2236
2236
  s,
2237
2237
  r
2238
2238
  ), p.add(a), a !== d && e.contains(a) && (d && !e.contains(d) && (d = null), e.insertBefore(a, d));
2239
2239
  } else
2240
2240
  a = J(
2241
- w,
2241
+ _,
2242
2242
  s,
2243
2243
  r,
2244
2244
  e instanceof Element ? e.namespaceURI ?? null : null
2245
2245
  ), d && !e.contains(d) && (d = null), e.insertBefore(a, d), p.add(a);
2246
2246
  d = a.nextSibling;
2247
2247
  }
2248
- for (let w = 0; w < o.length; w++) {
2249
- const a = o[w];
2248
+ for (let _ = 0; _ < o.length; _++) {
2249
+ const a = o[_];
2250
2250
  !p.has(a) && e.contains(a) && (de(a, r), e.removeChild(a));
2251
2251
  }
2252
2252
  }
@@ -2263,8 +2263,8 @@ function Le(e, n, t, s, r) {
2263
2263
  if (t && typeof t != "string" && t.tag === "#anchor") {
2264
2264
  const o = t, c = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), u = o._endNode ?? document.createTextNode("");
2265
2265
  o.key != null && (Z(f, `${o.key}:start`), Z(u, `${o.key}:end`)), o._startNode = f, o._endNode = u;
2266
- const m = document.createDocumentFragment();
2267
- m.appendChild(f);
2266
+ const h = document.createDocumentFragment();
2267
+ h.appendChild(f);
2268
2268
  for (const p of c) {
2269
2269
  const d = J(
2270
2270
  p,
@@ -2272,9 +2272,9 @@ function Le(e, n, t, s, r) {
2272
2272
  r,
2273
2273
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2274
2274
  );
2275
- m.appendChild(d);
2275
+ h.appendChild(d);
2276
2276
  }
2277
- return m.appendChild(u), e.parentNode?.replaceChild(m, e), f;
2277
+ return h.appendChild(u), e.parentNode?.replaceChild(h, e), f;
2278
2278
  }
2279
2279
  if (!t) {
2280
2280
  de(e, r);
@@ -2296,10 +2296,10 @@ function Le(e, n, t, s, r) {
2296
2296
  t.key != null && (Z(c, `${t.key}:start`), Z(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
2297
2297
  const u = document.createDocumentFragment();
2298
2298
  u.appendChild(c);
2299
- for (const m of o)
2299
+ for (const h of o)
2300
2300
  u.appendChild(
2301
2301
  J(
2302
- m,
2302
+ h,
2303
2303
  s,
2304
2304
  r,
2305
2305
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
@@ -2350,11 +2350,11 @@ function Yt(e, n, t, s) {
2350
2350
  e.host instanceof Element ? e.host.namespaceURI ?? null : null
2351
2351
  ), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
2352
2352
  const f = [];
2353
- for (let m = 0; m < e.childNodes.length; m++) {
2354
- const p = e.childNodes[m];
2353
+ for (let h = 0; h < e.childNodes.length; h++) {
2354
+ const p = e.childNodes[h];
2355
2355
  p !== c && p.nodeName !== "STYLE" && (de(p, s), f.push(p));
2356
2356
  }
2357
- f.forEach((m) => e.removeChild(m));
2357
+ f.forEach((h) => e.removeChild(h));
2358
2358
  const u = r && typeof r == "object" && r.props ? {
2359
2359
  ...r,
2360
2360
  props: {
@@ -2409,7 +2409,7 @@ function ft(e, n, t, s, r) {
2409
2409
  }
2410
2410
  function tn(e, n, t, s, r, i, o) {
2411
2411
  i !== null && clearTimeout(i);
2412
- const u = Date.now() - n < 16, m = (() => {
2412
+ const u = Date.now() - n < 16, h = (() => {
2413
2413
  try {
2414
2414
  return typeof window < "u" && !!window.Cypress;
2415
2415
  } catch {
@@ -2417,16 +2417,16 @@ function tn(e, n, t, s, r, i, o) {
2417
2417
  }
2418
2418
  })(), p = (() => {
2419
2419
  try {
2420
- return globalThis.process?.env?.NODE_ENV === "test" && !m;
2420
+ return globalThis.process?.env?.NODE_ENV === "test" && !h;
2421
2421
  } catch {
2422
2422
  return !1;
2423
2423
  }
2424
- })(), d = p || m;
2424
+ })(), d = p || h;
2425
2425
  if (u) {
2426
- const w = t + 1;
2427
- r(w);
2428
- const a = d ? 50 : 10, E = d ? 100 : 25, v = p ? 12 : 50;
2429
- if (w === a && !d)
2426
+ const _ = t + 1;
2427
+ r(_);
2428
+ const a = d ? 50 : 10, b = d ? 100 : 25, E = p ? 12 : 50;
2429
+ if (_ === a && !d)
2430
2430
  V(
2431
2431
  `⚠️ Component rendering frequently. Performance may be impacted.
2432
2432
  Common causes:
@@ -2434,7 +2434,7 @@ Common causes:
2434
2434
  • Event handlers with immediate function calls
2435
2435
  • Missing effect dependencies`
2436
2436
  );
2437
- else if (w === E && !d)
2437
+ else if (_ === b && !d)
2438
2438
  V(
2439
2439
  `⚠️ Component is re-rendering rapidly. Applying throttling.
2440
2440
  This might indicate:
@@ -2442,7 +2442,7 @@ This might indicate:
2442
2442
  • State modification during render
2443
2443
  • Missing dependencies in computed/watch`
2444
2444
  );
2445
- else if (w >= v) {
2445
+ else if (_ >= E) {
2446
2446
  B(
2447
2447
  `🛑 Infinite render loop detected. Stopping to prevent browser freeze.
2448
2448
  Possible causes:
@@ -2454,22 +2454,22 @@ Possible causes:
2454
2454
  }
2455
2455
  } else
2456
2456
  r(0);
2457
- let C = 0;
2458
- d || (t >= 40 ? C = 500 : t >= 25 ? C = 100 : t >= 15 && (C = 16));
2459
- const T = () => {
2457
+ let k = 0;
2458
+ d || (t >= 40 ? k = 500 : t >= 25 ? k = 100 : t >= 15 && (k = 16));
2459
+ const N = () => {
2460
2460
  s(Date.now());
2461
2461
  try {
2462
2462
  e();
2463
- } catch (w) {
2464
- B("Error during render execution:", w);
2463
+ } catch (_) {
2464
+ B("Error during render execution:", _);
2465
2465
  } finally {
2466
2466
  o(null);
2467
2467
  }
2468
2468
  };
2469
- if (C > 0) {
2470
- const w = setTimeout(T, C);
2471
- o(w);
2472
- } else d ? T() : (o({}), queueMicrotask(T));
2469
+ if (k > 0) {
2470
+ const _ = setTimeout(N, k);
2471
+ o(_);
2472
+ } else d ? N() : (o({}), queueMicrotask(N));
2473
2473
  }
2474
2474
  function nn(e, n) {
2475
2475
  let t = n;
@@ -2524,17 +2524,17 @@ function rn(e, n, t, s, r) {
2524
2524
  ye()
2525
2525
  ];
2526
2526
  else {
2527
- const E = Ae(ot), v = ye();
2528
- let b = "";
2527
+ const b = Ae(ot), E = ye();
2528
+ let m = "";
2529
2529
  try {
2530
- v?.cssRules && (b = Array.from(v.cssRules).map((k) => k.cssText).join(`
2530
+ E?.cssRules && (m = Array.from(E.cssRules).map((S) => S.cssText).join(`
2531
2531
  `));
2532
2532
  } catch {
2533
- b = "";
2533
+ m = "";
2534
2534
  }
2535
- const h = Ae(`${E}
2536
- ${b}`);
2537
- dt(e, h);
2535
+ const v = Ae(`${b}
2536
+ ${m}`);
2537
+ dt(e, v);
2538
2538
  try {
2539
2539
  e.adoptedStyleSheets = [He(), ye()];
2540
2540
  } catch {
@@ -2542,32 +2542,32 @@ ${b}`);
2542
2542
  }
2543
2543
  return;
2544
2544
  }
2545
- let m = "";
2546
- if (u && (m += u + `
2547
- `), c && (m += c + `
2548
- `), m = Lt(m), m = Ae(m), ut(e)) {
2545
+ let h = "";
2546
+ if (u && (h += u + `
2547
+ `), c && (h += c + `
2548
+ `), h = Lt(h), h = Ae(h), ut(e)) {
2549
2549
  let a = s;
2550
2550
  a || (a = new CSSStyleSheet());
2551
2551
  try {
2552
- a.replaceSync(m);
2553
- const E = [He(), ye()];
2554
- f && E.push(f), E.push(a), e.adoptedStyleSheets = E, r(a);
2552
+ a.replaceSync(h);
2553
+ const b = [He(), ye()];
2554
+ f && b.push(f), b.push(a), e.adoptedStyleSheets = b, r(a);
2555
2555
  return;
2556
2556
  } catch {
2557
2557
  }
2558
2558
  }
2559
- const d = Ae(ot), C = ye();
2560
- let T = "";
2559
+ const d = Ae(ot), k = ye();
2560
+ let N = "";
2561
2561
  try {
2562
- C?.cssRules && (T = Array.from(C.cssRules).map((a) => a.cssText).join(`
2562
+ k?.cssRules && (N = Array.from(k.cssRules).map((a) => a.cssText).join(`
2563
2563
  `));
2564
2564
  } catch {
2565
- T = "";
2565
+ N = "";
2566
2566
  }
2567
- const w = Ae(`${d}
2568
- ${T}
2569
- ${m}`);
2570
- dt(e, w);
2567
+ const _ = Ae(`${d}
2568
+ ${N}
2569
+ ${h}`);
2570
+ dt(e, _);
2571
2571
  try {
2572
2572
  const a = [
2573
2573
  He(),
@@ -2575,8 +2575,8 @@ ${m}`);
2575
2575
  ];
2576
2576
  if (f && a.push(f), typeof CSSStyleSheet < "u")
2577
2577
  try {
2578
- const E = new CSSStyleSheet();
2579
- E.replaceSync(m), a.push(E);
2578
+ const b = new CSSStyleSheet();
2579
+ b.replaceSync(h), a.push(b);
2580
2580
  } catch {
2581
2581
  a.push({
2582
2582
  cssRules: [],
@@ -2653,7 +2653,7 @@ function sn(e, n) {
2653
2653
  t,
2654
2654
  "_triggerWatchers",
2655
2655
  (i, o) => this._triggerWatchers(i, o)
2656
- ), this.context = t, x(() => {
2656
+ ), this.context = t, $(() => {
2657
2657
  s(t, "_host", this);
2658
2658
  }), s(
2659
2659
  this.context,
@@ -2666,13 +2666,13 @@ function sn(e, n) {
2666
2666
  ...c || {}
2667
2667
  }, u = new CustomEvent(i, f);
2668
2668
  this.dispatchEvent(u);
2669
- const m = i.indexOf(":");
2670
- if (m > 0) {
2671
- const p = i.substring(0, m), d = i.substring(m + 1), C = d.includes("-") ? `${p}:${d.split("-").map(
2672
- (T, w) => w === 0 ? T : T.charAt(0).toUpperCase() + T.slice(1)
2669
+ const h = i.indexOf(":");
2670
+ if (h > 0) {
2671
+ const p = i.substring(0, h), d = i.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
2672
+ (N, _) => _ === 0 ? N : N.charAt(0).toUpperCase() + N.slice(1)
2673
2673
  ).join("")}` : `${p}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2674
- C !== i && x(() => {
2675
- this.dispatchEvent(new CustomEvent(C, f));
2674
+ k !== i && $(() => {
2675
+ this.dispatchEvent(new CustomEvent(k, f));
2676
2676
  });
2677
2677
  }
2678
2678
  return !u.defaultPrevented;
@@ -2703,7 +2703,7 @@ function sn(e, n) {
2703
2703
  connectedCallback() {
2704
2704
  this._runLogicWithinErrorBoundary(n, () => {
2705
2705
  const t = this.getRootNode();
2706
- t && t !== document && "host" in t && Xt(t, this), this._applyProps(n), this._requestRender(), $t(n, this.context, this._mounted, (s) => {
2706
+ t && t !== document && "host" in t && Xt(t, this), this._applyProps(n), this._requestRender(), xt(n, this.context, this._mounted, (s) => {
2707
2707
  this._mounted = s;
2708
2708
  });
2709
2709
  });
@@ -2711,7 +2711,7 @@ function sn(e, n) {
2711
2711
  disconnectedCallback() {
2712
2712
  this._runLogicWithinErrorBoundary(n, () => {
2713
2713
  const t = this.getRootNode();
2714
- t && t !== document && "host" in t && Qt(t, this), xt(
2714
+ t && t !== document && "host" in t && Qt(t, this), $t(
2715
2715
  n,
2716
2716
  this.context,
2717
2717
  this._listeners,
@@ -2852,8 +2852,8 @@ function sn(e, n) {
2852
2852
  if (Array.isArray(i))
2853
2853
  return new Proxy(i, {
2854
2854
  get(c, f, u) {
2855
- const m = Reflect.get(c, f, u);
2856
- return typeof m == "function" && typeof f == "string" && [
2855
+ const h = Reflect.get(c, f, u);
2856
+ return typeof h == "function" && typeof f == "string" && [
2857
2857
  "push",
2858
2858
  "pop",
2859
2859
  "shift",
@@ -2862,21 +2862,21 @@ function sn(e, n) {
2862
2862
  "sort",
2863
2863
  "reverse"
2864
2864
  ].includes(f) ? function(...d) {
2865
- const C = m.apply(c, d);
2865
+ const k = h.apply(c, d);
2866
2866
  if (!r._initializing) {
2867
- const T = o || "root";
2868
- r._triggerWatchers(T, c), _e(
2867
+ const N = o || "root";
2868
+ r._triggerWatchers(N, c), _e(
2869
2869
  () => r._render(t),
2870
2870
  r._componentId
2871
2871
  );
2872
2872
  }
2873
- return C;
2874
- } : m;
2873
+ return k;
2874
+ } : h;
2875
2875
  },
2876
2876
  set(c, f, u) {
2877
2877
  if (c[String(f)] = u, !r._initializing) {
2878
- const m = o ? `${o}.${String(f)}` : String(f);
2879
- r._triggerWatchers(m, u), _e(() => r._render(t), r._componentId);
2878
+ const h = o ? `${o}.${String(f)}` : String(f);
2879
+ r._triggerWatchers(h, u), _e(() => r._render(t), r._componentId);
2880
2880
  }
2881
2881
  return !0;
2882
2882
  },
@@ -2889,7 +2889,7 @@ function sn(e, n) {
2889
2889
  }
2890
2890
  });
2891
2891
  if (i && typeof i == "object") {
2892
- if (M(i))
2892
+ if (P(i))
2893
2893
  return i;
2894
2894
  for (const c in i) {
2895
2895
  const f = o ? `${o}.${c}` : c;
@@ -2897,9 +2897,9 @@ function sn(e, n) {
2897
2897
  }
2898
2898
  return new Proxy(i, {
2899
2899
  set(c, f, u) {
2900
- const m = o ? `${o}.${String(f)}` : String(f);
2901
- return c[String(f)] = s(u, m), r._initializing || (r._triggerWatchers(
2902
- m,
2900
+ const h = o ? `${o}.${String(f)}` : String(f);
2901
+ return c[String(f)] = s(u, h), r._initializing || (r._triggerWatchers(
2902
+ h,
2903
2903
  c[String(f)]
2904
2904
  ), _e(() => r._render(t), r._componentId)), !0;
2905
2905
  },
@@ -2940,7 +2940,7 @@ function sn(e, n) {
2940
2940
  }
2941
2941
  _applyProps(t) {
2942
2942
  this._runLogicWithinErrorBoundary(t, () => {
2943
- Mt(this, t, this.context);
2943
+ Pt(this, t, this.context);
2944
2944
  });
2945
2945
  }
2946
2946
  };
@@ -3043,18 +3043,18 @@ function kn(e) {
3043
3043
  try {
3044
3044
  const u = t && t._host;
3045
3045
  if (u) {
3046
- const m = Y(i), p = u.getAttribute(m);
3046
+ const h = Y(i), p = u.getAttribute(h);
3047
3047
  if (p !== null) {
3048
3048
  const d = typeof e[i];
3049
3049
  return d === "boolean" ? p === "" || p === "true" : d === "number" ? Number(p) : p;
3050
3050
  }
3051
3051
  if (typeof u[i] < "u") {
3052
3052
  const d = u[i];
3053
- if (M(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
3053
+ if (P(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
3054
3054
  return d.value;
3055
- const C = typeof e[i];
3056
- if (!(C === "string" && d && typeof d == "object"))
3057
- return C === "boolean" && typeof d == "string" ? d === "" || d === "true" : d;
3055
+ const k = typeof e[i];
3056
+ if (!(k === "string" && d && typeof d == "object"))
3057
+ return k === "boolean" && typeof d == "string" ? d === "" || d === "true" : d;
3058
3058
  }
3059
3059
  }
3060
3060
  } catch {
@@ -3078,21 +3078,21 @@ function kn(e) {
3078
3078
  const f = t && t._host;
3079
3079
  if (f) {
3080
3080
  if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
3081
- const m = i.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(m);
3081
+ const h = i.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
3082
3082
  if (p !== null)
3083
3083
  return typeof o == "boolean" ? p === "" || p === "true" : typeof o == "number" ? Number(p) : p;
3084
3084
  }
3085
3085
  const u = f[i];
3086
3086
  if (typeof u < "u" && u !== "") {
3087
- const m = u && typeof u == "object" && "value" in u && !(u instanceof Node);
3088
- if (!(typeof o == "string" && u && typeof u == "object" && !m && !M(u)))
3089
- return typeof o == "boolean" && o === !1 && u === "" ? o : M(u) || m ? 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;
3087
+ const h = u && typeof u == "object" && "value" in u && !(u instanceof Node);
3088
+ if (!(typeof o == "string" && u && typeof u == "object" && !h && !P(u)))
3089
+ return typeof o == "boolean" && o === !1 && u === "" ? o : P(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;
3090
3090
  }
3091
3091
  }
3092
3092
  } catch {
3093
3093
  }
3094
3094
  const c = t[i];
3095
- return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 : M(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;
3095
+ return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 : P(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;
3096
3096
  },
3097
3097
  has(r, i) {
3098
3098
  return typeof i == "string" && (i in t || i in e);
@@ -3315,9 +3315,9 @@ function On(e, n) {
3315
3315
  } catch {
3316
3316
  }
3317
3317
  try {
3318
- const m = o._host;
3319
- if (m?.parentElement) {
3320
- let p = m.parentElement;
3318
+ const h = o._host;
3319
+ if (h?.parentElement) {
3320
+ let p = h.parentElement;
3321
3321
  for (; p; ) {
3322
3322
  if (p.tagName.toLowerCase() === "cer-error-boundary") {
3323
3323
  p._cerHandleChildError?.(
@@ -3327,8 +3327,8 @@ function On(e, n) {
3327
3327
  }
3328
3328
  let d = p.parentElement;
3329
3329
  if (!d) {
3330
- const C = p.getRootNode();
3331
- C instanceof ShadowRoot && (d = C.host.parentElement);
3330
+ const k = p.getRootNode();
3331
+ k instanceof ShadowRoot && (d = k.host.parentElement);
3332
3332
  }
3333
3333
  p = d;
3334
3334
  }
@@ -3340,9 +3340,9 @@ function On(e, n) {
3340
3340
  if (o._hookCallbacks) {
3341
3341
  const u = o._hookCallbacks;
3342
3342
  if (u.onConnected) {
3343
- const m = u.onConnected;
3343
+ const h = u.onConnected;
3344
3344
  s.onConnected = (p) => {
3345
- for (const d of m)
3345
+ for (const d of h)
3346
3346
  try {
3347
3347
  d(p);
3348
3348
  } catch {
@@ -3350,9 +3350,9 @@ function On(e, n) {
3350
3350
  };
3351
3351
  }
3352
3352
  if (u.onDisconnected) {
3353
- const m = u.onDisconnected;
3353
+ const h = u.onDisconnected;
3354
3354
  s.onDisconnected = (p) => {
3355
- for (const d of m)
3355
+ for (const d of h)
3356
3356
  try {
3357
3357
  d(p);
3358
3358
  } catch {
@@ -3360,19 +3360,19 @@ function On(e, n) {
3360
3360
  };
3361
3361
  }
3362
3362
  if (u.onAttributeChanged) {
3363
- const m = u.onAttributeChanged;
3364
- s.onAttributeChanged = (p, d, C, T) => {
3365
- for (const w of m)
3363
+ const h = u.onAttributeChanged;
3364
+ s.onAttributeChanged = (p, d, k, N) => {
3365
+ for (const _ of h)
3366
3366
  try {
3367
- w(p, d, C, T);
3367
+ _(p, d, k, N);
3368
3368
  } catch {
3369
3369
  }
3370
3370
  };
3371
3371
  }
3372
3372
  if (u.onError) {
3373
- const m = u.onError;
3373
+ const h = u.onError;
3374
3374
  s.onError = (p) => {
3375
- for (const d of m)
3375
+ for (const d of h)
3376
3376
  try {
3377
3377
  d(p);
3378
3378
  } catch {
@@ -3380,9 +3380,9 @@ function On(e, n) {
3380
3380
  };
3381
3381
  }
3382
3382
  if (u.props) {
3383
- const m = u.props;
3383
+ const h = u.props;
3384
3384
  r.props = Object.fromEntries(
3385
- Object.entries(m).map(([p, d]) => [
3385
+ Object.entries(h).map(([p, d]) => [
3386
3386
  p,
3387
3387
  { type: typeof d == "boolean" ? Boolean : typeof d == "number" ? Number : typeof d == "string" ? String : Function, default: d }
3388
3388
  ])
@@ -3451,11 +3451,11 @@ function ce(e, n = {}, t, s) {
3451
3451
  const r = s ?? n.key;
3452
3452
  return { tag: e, key: r, props: n, children: t };
3453
3453
  }
3454
- function Pe(e) {
3454
+ function Me(e) {
3455
3455
  return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
3456
3456
  }
3457
3457
  function ue(e) {
3458
- return typeof e == "object" && e !== null && "tag" in e && !Pe(e);
3458
+ return typeof e == "object" && e !== null && "tag" in e && !Me(e);
3459
3459
  }
3460
3460
  function on(e, n) {
3461
3461
  return e.key != null ? e : { ...e, key: n };
@@ -3526,18 +3526,21 @@ function fn(e, n = [], t = {}) {
3526
3526
  const s = {}, r = {}, i = {}, o = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3527
3527
  let f;
3528
3528
  for (; f = c.exec(e); ) {
3529
- const u = f[1], m = f[2];
3529
+ const u = f[1], h = f[2];
3530
3530
  let p = "";
3531
- for (let a = 3; a < f.length; a++)
3532
- if (f[a] !== void 0) {
3533
- p = f[a];
3531
+ for (let b = 3; b < f.length; b++)
3532
+ if (f[b] !== void 0) {
3533
+ p = f[b];
3534
3534
  break;
3535
3535
  }
3536
3536
  p.length >= 2 && (p[0] === '"' && p[p.length - 1] === '"' || p[0] === "'" && p[p.length - 1] === "'") && (p = p.slice(1, -1));
3537
- const d = !/=/.test(f[0]), C = p.match(/^{{(\d+)}}$/);
3538
- let T = d ? !0 : C ? n[Number(C[1])] ?? null : p;
3539
- C || (T === "true" ? T = !0 : T === "false" ? T = !1 : T === "null" ? T = null : isNaN(Number(T)) || (T = Number(T)));
3540
- const w = [
3537
+ const d = !/=/.test(f[0]), k = p.match(/^{{(\d+)}}$/), N = !k && /{{(\d+)}}/.test(p);
3538
+ let _ = d ? !0 : k ? n[Number(k[1])] ?? null : N ? p.replace(
3539
+ /{{(\d+)}}/g,
3540
+ (b, E) => String(n[Number(E)] ?? "")
3541
+ ) : p;
3542
+ !k && !N && (_ === "true" ? _ = !0 : _ === "false" ? _ = !1 : _ === "null" ? _ = null : isNaN(Number(_)) || (_ = Number(_)));
3543
+ const a = [
3541
3544
  "model",
3542
3545
  "bind",
3543
3546
  "show",
@@ -3547,53 +3550,53 @@ function fn(e, n = [], t = {}) {
3547
3550
  "when"
3548
3551
  ];
3549
3552
  if (u === ":") {
3550
- const [a, E] = m.split(":"), [v, ...b] = a.split(".");
3551
- if (w.includes(v)) {
3552
- const h = [...b], k = v === "model" && E ? `model:${E}` : v;
3553
- i[k] = {
3554
- value: T,
3555
- modifiers: h,
3553
+ const [b, E] = h.split(":"), [m, ...v] = b.split(".");
3554
+ if (a.includes(m)) {
3555
+ const S = [...v], C = m === "model" && E ? `model:${E}` : m;
3556
+ i[C] = {
3557
+ value: _,
3558
+ modifiers: S,
3556
3559
  arg: E
3557
3560
  };
3558
- } else if (m === "disabled") {
3559
- let h = T;
3560
- h && M(h) && (h = h.value);
3561
- const k = typeof h;
3562
- if (h === "" || k === "boolean" || k === "string" && (h === "true" || h === "false") || h == null || k === "number")
3563
- s[m] = h;
3561
+ } else if (h === "disabled") {
3562
+ let S = _;
3563
+ S && P(S) && (S = S.value);
3564
+ const C = typeof S;
3565
+ if (S === "" || C === "boolean" || C === "string" && (S === "true" || S === "false") || S == null || C === "number")
3566
+ s[h] = S;
3564
3567
  else {
3565
- let y = T;
3566
- y && M(y) && (y = y.value), r[m] = y;
3568
+ let A = _;
3569
+ A && P(A) && (A = A.value), r[h] = A;
3567
3570
  }
3568
- o.push(m);
3571
+ o.push(h);
3569
3572
  } else {
3570
- let h = T;
3571
- h && M(h) && (h = h.value), r[m] = h, o.push(m);
3573
+ let S = _;
3574
+ S && P(S) && (S = S.value), r[h] = S, o.push(h);
3572
3575
  }
3573
3576
  } else if (u === "@") {
3574
- const [a, ...E] = m.split("."), v = E;
3575
- ln(T, a);
3576
- const b = typeof T == "function" ? T : typeof t[T] == "function" ? t[T] : void 0;
3577
- if (b) {
3578
- const h = (S) => {
3579
- if (v.includes("prevent") && S.preventDefault(), v.includes("stop") && S.stopPropagation(), !(v.includes("self") && S.target !== S.currentTarget))
3580
- return v.includes("once") && S.currentTarget?.removeEventListener(
3581
- a,
3582
- h
3583
- ), b(S);
3584
- }, k = "on" + a.charAt(0).toUpperCase() + a.slice(1);
3585
- s[k] = h;
3586
- }
3587
- } else m === "ref" ? s.ref = T : r[m] = T;
3577
+ const [b, ...E] = h.split("."), m = E;
3578
+ ln(_, b);
3579
+ const v = typeof _ == "function" ? _ : typeof t[_] == "function" ? t[_] : void 0;
3580
+ if (v) {
3581
+ const S = (T) => {
3582
+ if (m.includes("prevent") && T.preventDefault(), m.includes("stop") && T.stopPropagation(), !(m.includes("self") && T.target !== T.currentTarget))
3583
+ return m.includes("once") && T.currentTarget?.removeEventListener(
3584
+ b,
3585
+ S
3586
+ ), v(T);
3587
+ }, C = "on" + b.charAt(0).toUpperCase() + b.slice(1);
3588
+ s[C] = S;
3589
+ }
3590
+ } else h === "ref" ? s.ref = _ : r[h] = _;
3588
3591
  }
3589
3592
  return { props: s, attrs: r, directives: i, bound: o };
3590
3593
  }
3591
3594
  function Xe(e) {
3592
- if (!ue(e) || Pe(e))
3595
+ if (!ue(e) || Me(e))
3593
3596
  return e;
3594
3597
  const n = e.props?.directives;
3595
3598
  if (n && n.when) {
3596
- const t = n.when.value, s = M(t) ? t.value : t, r = { ...n };
3599
+ const t = n.when.value, s = P(t) ? t.value : t, r = { ...n };
3597
3600
  delete r.when;
3598
3601
  const i = { ...e.props };
3599
3602
  Object.keys(r).length > 0 ? i.directives = r : delete i.directives;
@@ -3626,95 +3629,95 @@ function un(e, n, t) {
3626
3629
  const l = Ge.get(o);
3627
3630
  if (l) return l;
3628
3631
  }
3629
- function c(l, g) {
3630
- return ce("#text", {}, l, g);
3632
+ function c(l, y) {
3633
+ return ce("#text", {}, l, y);
3631
3634
  }
3632
- function f(l, g, A = !1) {
3633
- let N = typeof l == "string" ? At(l) : l;
3634
- return !A && typeof N == "string" && /[\r\n]/.test(N) && (N = N.replace(/\s+/g, " ")), ce("#text", {}, N, g);
3635
+ function f(l, y, w = !1) {
3636
+ let L = typeof l == "string" ? At(l) : l;
3637
+ return !w && typeof L == "string" && /[\r\n]/.test(L) && (L = L.replace(/\s+/g, " ")), ce("#text", {}, L, y);
3635
3638
  }
3636
3639
  let u = "";
3637
3640
  for (let l = 0; l < e.length; l++)
3638
3641
  u += e[l], l < n.length && (u += `{{${l}}}`);
3639
- const m = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, p = [];
3640
- let d, C = [], T = null, w = {}, a, E = 0;
3641
- const v = [], b = /* @__PURE__ */ new Set([
3642
+ const h = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, p = [];
3643
+ let d, k = [], N = null, _ = {}, a, b = 0;
3644
+ const E = [], m = /* @__PURE__ */ new Set([
3642
3645
  "pre",
3643
3646
  "code",
3644
3647
  "textarea",
3645
3648
  "script",
3646
3649
  "style"
3647
3650
  ]);
3648
- function h() {
3649
- if (T && b.has(T.toLowerCase()))
3651
+ function v() {
3652
+ if (N && m.has(N.toLowerCase()))
3650
3653
  return !0;
3651
3654
  for (const l of p)
3652
- if (b.has(l.tag.toLowerCase()))
3655
+ if (m.has(l.tag.toLowerCase()))
3653
3656
  return !0;
3654
3657
  return !1;
3655
3658
  }
3656
- function k(l) {
3657
- if (!l || typeof l != "object" || Pe(l)) return;
3658
- const g = l, A = w;
3659
- if (g.props || g.attrs) {
3660
- const N = g;
3661
- N.props && (A.props || (A.props = {}), Object.assign(A.props, N.props)), N.attrs && (A.attrs || (A.attrs = {}), Object.keys(N.attrs).forEach((O) => {
3662
- if (O === "style" && A.attrs.style) {
3663
- const P = String(A.attrs.style).replace(/;?\s*$/, ""), D = String(N.attrs.style).replace(/^;?\s*/, "");
3664
- A.attrs.style = P + "; " + D;
3665
- } else if (O === "class" && A.attrs.class) {
3666
- const P = String(A.attrs.class).trim().split(/\s+/).filter(Boolean), D = String(N.attrs.class).trim().split(/\s+/).filter(Boolean), j = [
3667
- .../* @__PURE__ */ new Set([...P, ...D])
3659
+ function S(l) {
3660
+ if (!l || typeof l != "object" || Me(l)) return;
3661
+ const y = l, w = _;
3662
+ if (y.props || y.attrs) {
3663
+ const L = y;
3664
+ L.props && (w.props || (w.props = {}), Object.assign(w.props, L.props)), L.attrs && (w.attrs || (w.attrs = {}), Object.keys(L.attrs).forEach((O) => {
3665
+ if (O === "style" && w.attrs.style) {
3666
+ const M = String(w.attrs.style).replace(/;?\s*$/, ""), D = String(L.attrs.style).replace(/^;?\s*/, "");
3667
+ w.attrs.style = M + "; " + D;
3668
+ } else if (O === "class" && w.attrs.class) {
3669
+ const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean), D = String(L.attrs.class).trim().split(/\s+/).filter(Boolean), j = [
3670
+ .../* @__PURE__ */ new Set([...M, ...D])
3668
3671
  ];
3669
- A.attrs.class = j.join(" ");
3672
+ w.attrs.class = j.join(" ");
3670
3673
  } else
3671
- A.attrs[O] = N.attrs[O];
3674
+ w.attrs[O] = L.attrs[O];
3672
3675
  }));
3673
3676
  } else
3674
- A.props || (A.props = {}), Object.assign(A.props, g);
3677
+ w.props || (w.props = {}), Object.assign(w.props, y);
3675
3678
  }
3676
- function S(l, g) {
3677
- const A = T ? C : v;
3678
- if (Pe(l)) {
3679
- const N = l.key ?? g, O = l.children;
3680
- A.push({
3679
+ function C(l, y) {
3680
+ const w = N ? k : E;
3681
+ if (Me(l)) {
3682
+ const L = l.key ?? y, O = l.children;
3683
+ w.push({
3681
3684
  ...l,
3682
- key: N,
3685
+ key: L,
3683
3686
  children: O
3684
3687
  });
3685
3688
  return;
3686
3689
  }
3687
3690
  if (ue(l)) {
3688
- A.push(on(l, void 0));
3691
+ w.push(on(l, void 0));
3689
3692
  return;
3690
3693
  }
3691
3694
  if (Array.isArray(l)) {
3692
3695
  if (l.length === 0) return;
3693
- for (let N = 0; N < l.length; N++) {
3694
- const O = l[N];
3695
- Pe(O) || ue(O) || Array.isArray(O) ? S(O, `${g}-${N}`) : O !== null && typeof O == "object" ? st(O) ? A.push(
3696
+ for (let L = 0; L < l.length; L++) {
3697
+ const O = l[L];
3698
+ Me(O) || ue(O) || Array.isArray(O) ? C(O, `${y}-${L}`) : O !== null && typeof O == "object" ? st(O) ? w.push(
3696
3699
  ce(
3697
3700
  "#raw",
3698
3701
  {},
3699
3702
  O.__rawHTML,
3700
- `${g}-${N}`
3703
+ `${y}-${L}`
3701
3704
  )
3702
- ) : k(O) : A.push(c(String(O), `${g}-${N}`));
3705
+ ) : S(O) : w.push(c(String(O), `${y}-${L}`));
3703
3706
  }
3704
3707
  return;
3705
3708
  }
3706
3709
  if (l !== null && typeof l == "object") {
3707
3710
  if (st(l)) {
3708
- const N = l.__rawHTML ?? "";
3709
- A.push(ce("#raw", {}, N, g));
3711
+ const L = l.__rawHTML ?? "";
3712
+ w.push(ce("#raw", {}, L, y));
3710
3713
  return;
3711
3714
  }
3712
- k(l);
3715
+ S(l);
3713
3716
  return;
3714
3717
  }
3715
- A.push(c(String(l), g));
3718
+ w.push(c(String(l), y));
3716
3719
  }
3717
- const L = /* @__PURE__ */ new Set([
3720
+ const T = /* @__PURE__ */ new Set([
3718
3721
  "area",
3719
3722
  "base",
3720
3723
  "br",
@@ -3730,22 +3733,22 @@ function un(e, n, t) {
3730
3733
  "track",
3731
3734
  "wbr"
3732
3735
  ]);
3733
- for (; d = m.exec(u); )
3736
+ for (; d = h.exec(u); )
3734
3737
  if (!(d[0].startsWith("<!--") && d[0].endsWith("-->"))) {
3735
3738
  if (d[1]) {
3736
- const l = d[1], g = d[0][1] === "/", A = d[0][d[0].length - 2] === "/" || L.has(l), {
3737
- props: N,
3739
+ const l = d[1], y = d[0][1] === "/", w = d[0][d[0].length - 2] === "/" || T.has(l), {
3740
+ props: L,
3738
3741
  attrs: O,
3739
- directives: P,
3742
+ directives: M,
3740
3743
  bound: D
3741
3744
  } = fn(
3742
3745
  d[2] || "",
3743
3746
  n,
3744
3747
  r ?? {}
3745
3748
  ), j = { props: {}, attrs: {} };
3746
- for (const z in N) j.props[z] = N[z];
3749
+ for (const z in L) j.props[z] = L[z];
3747
3750
  for (const z in O) j.attrs[z] = O[z];
3748
- j.attrs && Object.prototype.hasOwnProperty.call(j.attrs, "key") && !(j.props && Object.prototype.hasOwnProperty.call(j.props, "key")) && x(() => {
3751
+ j.attrs && Object.prototype.hasOwnProperty.call(j.attrs, "key") && !(j.props && Object.prototype.hasOwnProperty.call(j.props, "key")) && $(() => {
3749
3752
  j.props.key = j.attrs.key;
3750
3753
  });
3751
3754
  try {
@@ -3777,21 +3780,21 @@ function un(e, n, t) {
3777
3780
  if (j.attrs) {
3778
3781
  for (const R of ie)
3779
3782
  if (D && D.includes(R) && R in j.attrs && !(j.props && R in j.props)) {
3780
- let $ = j.attrs[R];
3781
- if ($ && M($))
3782
- $ = $.value, j.props[R] = $, delete j.attrs[R];
3783
- else if ($ && typeof $ == "object" && "value" in $ && !($ instanceof Node))
3783
+ let x = j.attrs[R];
3784
+ if (x && P(x))
3785
+ x = x.value, j.props[R] = x, delete j.attrs[R];
3786
+ else if (x && typeof x == "object" && "value" in x && !(x instanceof Node))
3784
3787
  try {
3785
- const W = $.value;
3788
+ const W = x.value;
3786
3789
  j.props[R] = (I === "select" || I === "option") && R === "value" ? String(W) : W, delete j.attrs[R];
3787
3790
  } catch {
3788
3791
  }
3789
3792
  else {
3790
- const W = typeof $;
3793
+ const W = typeof x;
3791
3794
  if (R === "disabled")
3792
- ($ === "" || W === "boolean" || W === "string" && ($ === "true" || $ === "false") || $ == null || W === "number") && (j.props[R] = $, delete j.attrs[R]);
3793
- else if ($ === "" || W === "string" || W === "number" || W === "boolean" || $ == null) {
3794
- const te = (I === "select" || I === "option") && R === "value" ? String($) : $;
3795
+ (x === "" || W === "boolean" || W === "string" && (x === "true" || x === "false") || x == null || W === "number") && (j.props[R] = x, delete j.attrs[R]);
3796
+ else if (x === "" || W === "string" || W === "number" || W === "boolean" || x == null) {
3797
+ const te = (I === "select" || I === "option") && R === "value" ? String(x) : x;
3795
3798
  j.props[R] = te, delete j.attrs[R];
3796
3799
  }
3797
3800
  }
@@ -3800,18 +3803,18 @@ function un(e, n, t) {
3800
3803
  if (l.includes("-") || !!r?.__customElements?.has?.(l)) {
3801
3804
  if (j.isCustomElement = !0, D && j.attrs) {
3802
3805
  const R = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
3803
- for (const $ of D)
3804
- if ($ in j.attrs && !(j.props && $ in j.props)) {
3805
- const W = $.includes("-") ? Qe($) : $, te = j.attrs[$];
3806
- if (j.props[W] = te, R.has($) || pt($))
3806
+ for (const x of D)
3807
+ if (x in j.attrs && !(j.props && x in j.props)) {
3808
+ const W = x.includes("-") ? Qe(x) : x, te = j.attrs[x];
3809
+ if (j.props[W] = te, R.has(x) || pt(x))
3807
3810
  try {
3808
- const xe = F(j.attrs[$]);
3809
- xe === null ? delete j.attrs[$] : j.attrs[$] = xe;
3811
+ const $e = F(j.attrs[x]);
3812
+ $e === null ? delete j.attrs[x] : j.attrs[x] = $e;
3810
3813
  } catch {
3811
- delete j.attrs[$];
3814
+ delete j.attrs[x];
3812
3815
  }
3813
3816
  else
3814
- delete j.attrs[$];
3817
+ delete j.attrs[x];
3815
3818
  }
3816
3819
  }
3817
3820
  try {
@@ -3824,15 +3827,15 @@ function un(e, n, t) {
3824
3827
  }
3825
3828
  } catch {
3826
3829
  }
3827
- if (P && Object.keys(P).some(
3830
+ if (M && Object.keys(M).some(
3828
3831
  (z) => z === "model" || z.startsWith("model:")
3829
3832
  ))
3830
3833
  try {
3831
3834
  const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], ie = !!(I && typeof I.has == "function" && I.has(l)), X = r, R = !!(X && (X.__customElements instanceof Set && X.__customElements.has(l) || Array.isArray(X.__isCustomElements) && X.__isCustomElements.includes(l)));
3832
3835
  if (!!(l.includes("-") || R || ie))
3833
- for (const te of Object.keys(P)) {
3836
+ for (const te of Object.keys(M)) {
3834
3837
  if (te !== "model" && !te.startsWith("model:")) continue;
3835
- const $e = P[te], xe = $e.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), q = $e.value, ze = xe ?? "modelValue", et = K, vt = We, Se = r?._state || r;
3838
+ const xe = M[te], $e = xe.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), q = xe.value, ze = $e ?? "modelValue", et = K, vt = We, Se = r?._state || r;
3836
3839
  let se;
3837
3840
  typeof q == "string" && Se ? se = et(
3838
3841
  Se,
@@ -3851,7 +3854,7 @@ function un(e, n, t) {
3851
3854
  j.props[Et] = function(ae) {
3852
3855
  const re = ae.detail !== void 0 ? ae.detail : ae.target ? ae.target.value : void 0;
3853
3856
  if (Se)
3854
- if (q && M(q)) {
3857
+ if (q && P(q)) {
3855
3858
  const le = q.value;
3856
3859
  if (Array.isArray(re) && Array.isArray(le) ? JSON.stringify([...re].sort()) !== JSON.stringify([...le].sort()) : re !== le) {
3857
3860
  q.value = re;
@@ -3885,71 +3888,71 @@ function un(e, n, t) {
3885
3888
  }
3886
3889
  }
3887
3890
  }
3888
- }, delete P[te];
3891
+ }, delete M[te];
3889
3892
  }
3890
3893
  } catch {
3891
3894
  }
3892
- if (Object.keys(P).length > 0 && (j.directives = { ...P }), g) {
3893
- const z = C.some(
3895
+ if (Object.keys(M).length > 0 && (j.directives = { ...M }), y) {
3896
+ const z = k.some(
3894
3897
  (R) => typeof R == "object" && R.tag !== "#text"
3895
3898
  );
3896
- let I = C;
3897
- if (z && C.length > 0) {
3899
+ let I = k;
3900
+ if (z && k.length > 0) {
3898
3901
  let R = 0;
3899
- for (; R < C.length; ) {
3900
- const W = C[R];
3902
+ for (; R < k.length; ) {
3903
+ const W = k[R];
3901
3904
  if (!ue(W) || W.tag !== "#text" || typeof W.children != "string" || W.children.trim() !== "")
3902
3905
  break;
3903
3906
  R++;
3904
3907
  }
3905
- let $ = C.length - 1;
3906
- for (; $ >= 0; ) {
3907
- const W = C[$];
3908
+ let x = k.length - 1;
3909
+ for (; x >= 0; ) {
3910
+ const W = k[x];
3908
3911
  if (!ue(W) || W.tag !== "#text" || typeof W.children != "string" || W.children.trim() !== "")
3909
3912
  break;
3910
- $--;
3913
+ x--;
3911
3914
  }
3912
- R === 0 && $ === C.length - 1 ? I = C : R > $ ? I = [] : I = C.slice(R, $ + 1);
3915
+ R === 0 && x === k.length - 1 ? I = k : R > x ? I = [] : I = k.slice(R, x + 1);
3913
3916
  }
3914
3917
  const ie = ce(
3915
- T,
3916
- w,
3918
+ N,
3919
+ _,
3917
3920
  I.length === 1 && ue(I[0]) && I[0].tag === "#text" ? typeof I[0].children == "string" ? I[0].children : "" : I.length ? I : void 0,
3918
3921
  a
3919
3922
  ), X = p.pop();
3920
- X ? (T = X.tag, w = X.props, a = X.key, C = X.children, C.push(ie)) : (v.push(ie), T = null, w = {}, a = void 0, C = []);
3921
- } else A ? T ? C.push(ce(l, j, void 0, void 0)) : v.push(ce(l, j, void 0, void 0)) : (T && p.push({
3922
- tag: T,
3923
- props: w,
3924
- children: C,
3923
+ X ? (N = X.tag, _ = X.props, a = X.key, k = X.children, k.push(ie)) : (E.push(ie), N = null, _ = {}, a = void 0, k = []);
3924
+ } else w ? N ? k.push(ce(l, j, void 0, void 0)) : E.push(ce(l, j, void 0, void 0)) : (N && p.push({
3925
+ tag: N,
3926
+ props: _,
3927
+ children: k,
3925
3928
  key: a
3926
- }), T = l, w = j, C = []);
3929
+ }), N = l, _ = j, k = []);
3927
3930
  } else if (typeof d[3] < "u") {
3928
- const l = Number(d[3]), g = n[l], A = `interp-${l}`;
3929
- S(g, A);
3931
+ const l = Number(d[3]), y = n[l], w = `interp-${l}`;
3932
+ C(y, w);
3930
3933
  } else if (d[4]) {
3931
- const l = d[4], g = T ? C : v, A = l.split(/({{\d+}})/);
3932
- for (const N of A) {
3933
- if (!N) continue;
3934
- const O = N.match(/^{{(\d+)}}$/);
3934
+ const l = d[4], y = N ? k : E, w = l.split(/({{\d+}})/);
3935
+ for (const L of w) {
3936
+ if (!L) continue;
3937
+ const O = L.match(/^{{(\d+)}}$/);
3935
3938
  if (O) {
3936
- const P = Number(O[1]), D = n[P], j = `interp-${P}`;
3937
- S(D, j);
3939
+ const M = Number(O[1]), D = n[M], j = `interp-${M}`;
3940
+ C(D, j);
3938
3941
  } else {
3939
- const P = `text-${E++}`, D = h();
3940
- g.push(f(N, P, D));
3942
+ const M = `text-${b++}`, D = v();
3943
+ y.push(f(L, M, D));
3941
3944
  }
3942
3945
  }
3943
3946
  }
3944
3947
  }
3945
- const _ = v.filter((l) => ue(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3948
+ const A = E.filter((l) => ue(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3946
3949
  (l) => Xe(l)
3947
3950
  );
3948
- if (_.length === 1) {
3949
- const l = _[0];
3951
+ if (A.length === 1) {
3952
+ const l = A[0];
3950
3953
  return i && o && Ge.set(o, l), l;
3951
- } else if (_.length > 1) {
3952
- const l = _;
3954
+ } else if (A.length > 1) {
3955
+ const l = A;
3953
3956
  return i && o && Ge.set(o, l), l;
3954
3957
  }
3955
3958
  return ce("div", {}, "", "fallback-root");
@@ -3978,4 +3981,4 @@ export {
3978
3981
  Cn as u,
3979
3982
  Yt as v
3980
3983
  };
3981
- //# sourceMappingURL=template-compiler-CJFwjLCP.js.map
3984
+ //# sourceMappingURL=template-compiler-BO8UEEDA.js.map