@tempots/dom 31.0.0 → 31.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
- var ke = Object.defineProperty;
1
+ var Ne = Object.defineProperty;
2
2
  var ie = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
- var Ne = (s, e, t) => e in s ? ke(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
6
- var o = (s, e, t) => Ne(s, typeof e != "symbol" ? e + "" : e, t), oe = (s, e, t) => e.has(s) || ie("Cannot " + t);
5
+ var $e = (s, e, t) => e in s ? Ne(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
6
+ var o = (s, e, t) => $e(s, typeof e != "symbol" ? e + "" : e, t), oe = (s, e, t) => e.has(s) || ie("Cannot " + t);
7
7
  var R = (s, e, t) => (oe(s, e, "read from private field"), t ? t.call(s) : e.get(s)), le = (s, e, t) => e.has(s) ? ie("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), Z = (s, e, t, r) => (oe(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
8
- const $e = (s, e, t) => s + (e - s) * t;
9
- const Ie = (s, e, t) => {
8
+ const Ie = (s, e, t) => s + (e - s) * t;
9
+ const Re = (s, e, t) => {
10
10
  const r = Math.max(s.length, e.length);
11
11
  let n = "";
12
12
  for (let i = 0; i < r; i++) {
@@ -16,7 +16,7 @@ const Ie = (s, e, t) => {
16
16
  isNaN(c) && (c = 97), n += String.fromCharCode(l + (c - l) * t);
17
17
  }
18
18
  return n;
19
- }, Re = (s, e, t) => new Date(s.getTime() + (e.getTime() - s.getTime()) * t), je = (s, e) => e, Ve = (s) => typeof s == "number" ? $e : typeof s == "string" ? Ie : s instanceof Date ? Re : je;
19
+ }, je = (s, e, t) => new Date(s.getTime() + (e.getTime() - s.getTime()) * t), Ve = (s, e) => e, qe = (s) => typeof s == "number" ? Ie : typeof s == "string" ? Re : s instanceof Date ? je : Ve;
20
20
  var w;
21
21
  class z {
22
22
  /**
@@ -455,7 +455,7 @@ o(k, "is", (e) => (
455
455
  e != null && e.$__signal__ === !0
456
456
  ));
457
457
  let d = k;
458
- const qe = typeof queueMicrotask == "function" ? queueMicrotask : (s) => Promise.resolve().then(s);
458
+ const Fe = typeof queueMicrotask == "function" ? queueMicrotask : (s) => Promise.resolve().then(s);
459
459
  class L extends d {
460
460
  /**
461
461
  * Represents a Signal object.
@@ -491,7 +491,7 @@ class L extends d {
491
491
  */
492
492
  o(this, "_scheduleNotify", () => {
493
493
  const t = ++this._scheduleCount;
494
- qe(() => {
494
+ Fe(() => {
495
495
  this._scheduleCount !== t || this._disposed || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn()));
496
496
  });
497
497
  });
@@ -604,7 +604,7 @@ let V = G;
604
604
  const K = (s, e, t = (r, n) => r === n) => {
605
605
  const r = new L(s, t);
606
606
  return e.forEach((n) => n.setDerivative(r)), r;
607
- }, Fe = (s, e, t = {}) => {
607
+ }, Be = (s, e, t = {}) => {
608
608
  let r = t.once ? () => {
609
609
  i(), s();
610
610
  } : s;
@@ -622,7 +622,20 @@ const K = (s, e, t = (r, n) => r === n) => {
622
622
  }, _ = (s, e = (t, r) => t === r) => new V(s, e), X = (s, e = (t, r) => t === r) => new d(s, e), ue = () => (
623
623
  /* c8 ignore next */
624
624
  typeof window < "u" ? window : void 0
625
- ), y = {
625
+ );
626
+ function ae(s) {
627
+ return s != null && s !== !1 && s !== 0 && s !== "";
628
+ }
629
+ function We(s) {
630
+ return !ae(s);
631
+ }
632
+ function Ue(s) {
633
+ return s == null;
634
+ }
635
+ function Je(s) {
636
+ return s != null;
637
+ }
638
+ const y = {
626
639
  /**
627
640
  * Maps a value or a Signal to a new value.
628
641
  * If the value is a Signal, it returns a new Signal with the mapped value.
@@ -692,7 +705,31 @@ const K = (s, e, t = (r, n) => r === n) => {
692
705
  deriveProp: (s, {
693
706
  autoDisposeProp: e = !0,
694
707
  equals: t
695
- } = {}) => d.is(s) ? s.deriveProp({ autoDisposeProp: e, equals: t }) : _(s, t)
708
+ } = {}) => d.is(s) ? s.deriveProp({ autoDisposeProp: e, equals: t }) : _(s, t),
709
+ /**
710
+ * Creates a new signal that emits `true` if the value is truthy, `false` otherwise.
711
+ * @param value - The value or signal to check.
712
+ * @returns A signal that emits `true` if the value is truthy, `false` otherwise.
713
+ */
714
+ truthy: (s) => y.map(s, ae),
715
+ /**
716
+ * Creates a new signal that emits `true` if the value is falsy, `false` otherwise.
717
+ * @param value - The value or signal to check.
718
+ * @returns A signal that emits `true` if the value is falsy, `false` otherwise.
719
+ */
720
+ falsy: (s) => y.map(s, We),
721
+ /**
722
+ * Creates a new signal that emits `true` if the value is null or undefined, `false` otherwise.
723
+ * @param value - The value or signal to check.
724
+ * @returns A signal that emits `true` if the value is null or undefined, `false` otherwise.
725
+ */
726
+ nil: (s) => y.map(s, Ue),
727
+ /**
728
+ * Creates a new signal that emits `true` if the value is not null or undefined, `false` otherwise.
729
+ * @param value - The value or signal to check.
730
+ * @returns A signal that emits `true` if the value is not null or undefined, `false` otherwise.
731
+ */
732
+ defined: (s) => y.map(s, Je)
696
733
  }, ee = (...s) => (e, t) => {
697
734
  if (s.length === 1)
698
735
  return y.toSignal(s[0]).map(e);
@@ -702,20 +739,20 @@ const K = (s, e, t = (r, n) => r === n) => {
702
739
  r,
703
740
  t
704
741
  );
705
- }, Dt = (s) => {
742
+ }, kt = (s) => {
706
743
  const e = Object.keys(s);
707
744
  return ee(...Object.values(s))(
708
745
  (...t) => Object.fromEntries(e.map((r, n) => [r, t[n]]))
709
746
  );
710
- }, Ot = (...s) => (e, t = {}) => {
747
+ }, Nt = (...s) => (e, t = {}) => {
711
748
  const r = s.filter((n) => d.is(n));
712
- return Fe(
749
+ return Be(
713
750
  () => e(...s.map(y.get)),
714
751
  r,
715
752
  t
716
753
  );
717
754
  };
718
- class ae {
755
+ class he {
719
756
  constructor() {
720
757
  o(this, "_store", /* @__PURE__ */ new Map());
721
758
  /**
@@ -734,7 +771,7 @@ class ae {
734
771
  });
735
772
  }
736
773
  }
737
- const he = ({
774
+ const fe = ({
738
775
  key: s,
739
776
  defaultValue: e,
740
777
  store: t,
@@ -748,52 +785,52 @@ const he = ({
748
785
  i
749
786
  );
750
787
  return u.on((a) => t.setItem(s, r(a))), u;
751
- }, Mt = (s) => {
788
+ }, $t = (s) => {
752
789
  var e;
753
- return he({
790
+ return fe({
754
791
  ...s,
755
792
  /* c8 ignore next 3 */
756
- store: ((e = ue()) == null ? void 0 : e.localStorage) ?? new ae()
793
+ store: ((e = ue()) == null ? void 0 : e.localStorage) ?? new he()
757
794
  });
758
- }, Ht = (s) => {
795
+ }, It = (s) => {
759
796
  var e;
760
- return he({
797
+ return fe({
761
798
  ...s,
762
799
  /* c8 ignore next 3 */
763
- store: ((e = ue()) == null ? void 0 : e.sessionStorage) ?? new ae()
800
+ store: ((e = ue()) == null ? void 0 : e.sessionStorage) ?? new he()
764
801
  });
765
802
  };
766
803
  function ce(s) {
767
804
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(s) : setTimeout(s, 0);
768
805
  }
769
- const Be = (s, e, t, r) => {
806
+ const Ge = (s, e, t, r) => {
770
807
  const n = (r == null ? void 0 : r.duration) ?? 300, i = (r == null ? void 0 : r.easing) ?? ((A) => A), l = (r == null ? void 0 : r.equals) ?? ((A, I) => A === I);
771
- let c = r == null ? void 0 : r.interpolate, u = s, a = e(), h = performance.now(), g = null, T = !0;
772
- const p = new L(e, l), m = _(s, l);
773
- m.onDispose(() => {
774
- g !== null && cancelAnimationFrame(g);
775
- }), m.onDispose(p.dispose), t.forEach((A) => {
776
- A.setDerivative(p), A.onDispose(m.dispose);
808
+ let c = r == null ? void 0 : r.interpolate, u = s, a = e(), h = performance.now(), m = null, T = !0;
809
+ const p = new L(e, l), g = _(s, l);
810
+ g.onDispose(() => {
811
+ m !== null && cancelAnimationFrame(m);
812
+ }), g.onDispose(p.dispose), t.forEach((A) => {
813
+ A.setDerivative(p), A.onDispose(g.dispose);
777
814
  });
778
815
  const C = (A) => {
779
- a = A, h = performance.now(), u = m.value, T && (T = !1, g = ce(re));
816
+ a = A, h = performance.now(), u = g.value, T && (T = !1, m = ce(re));
780
817
  }, re = () => {
781
- const I = (performance.now() - h) / y.get(n), He = i(I);
782
- c == null && (c = Ve(u));
783
- let ne = c(u, a, He);
784
- I >= 1 ? (T = !0, ne = a) : g = ce(re), m.set(ne);
818
+ const I = (performance.now() - h) / y.get(n), ke = i(I);
819
+ c == null && (c = qe(u));
820
+ let ne = c(u, a, ke);
821
+ I >= 1 ? (T = !0, ne = a) : m = ce(re), g.set(ne);
785
822
  };
786
- return p.on(C), m;
787
- }, kt = (s, e) => {
823
+ return p.on(C), g;
824
+ }, Rt = (s, e) => {
788
825
  const { initialValue: t, ...r } = e ?? {};
789
- return Be(
826
+ return Ge(
790
827
  /* c8 ignore next 2 */
791
828
  t ?? s.get(),
792
829
  s.get,
793
830
  [s],
794
831
  r
795
832
  );
796
- }, We = (s, e) => {
833
+ }, Xe = (s, e) => {
797
834
  const t = Object.values(s).filter(d.is), r = Object.keys(s);
798
835
  return K(() => {
799
836
  const n = {};
@@ -801,7 +838,7 @@ const Be = (s, e, t, r) => {
801
838
  n[i] = y.get(s[i]);
802
839
  return e(n);
803
840
  }, t);
804
- }, Nt = (s) => We(s, (e) => e), $t = (s, e) => {
841
+ }, jt = (s) => Xe(s, (e) => e), Vt = (s, e) => {
805
842
  const t = _(s.get());
806
843
  let r = null;
807
844
  const n = s.on((i) => {
@@ -815,33 +852,33 @@ const Be = (s, e, t, r) => {
815
852
  return t.onDispose(() => {
816
853
  n(), r != null && clearTimeout(r);
817
854
  }), t;
818
- }, It = (s) => {
855
+ }, qt = (s) => {
819
856
  let e;
820
857
  return s.map((t) => {
821
858
  const r = e;
822
859
  return e = t, r;
823
860
  });
824
- }, Rt = ({
861
+ }, Ft = ({
825
862
  size: s = void 0,
826
863
  signal: e
827
864
  }) => {
828
865
  const t = [];
829
866
  return e.map((r) => (t.push(r), s != null && t.length > s && t.shift(), t.slice()));
830
- }, jt = (s) => (...e) => ee(
867
+ }, Bt = (s) => (...e) => ee(
831
868
  s,
832
869
  ...e
833
870
  )((t, ...r) => t(...r));
834
- function Vt(...s) {
871
+ function Wt(...s) {
835
872
  return ee(...s)((...e) => {
836
873
  for (const t of e) if (t != null) return t;
837
874
  });
838
875
  }
839
- const fe = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), de = /* @__PURE__ */ new Set(["selected"]), pe = /* @__PURE__ */ new Set([
876
+ const de = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), pe = /* @__PURE__ */ new Set(["selected"]), me = /* @__PURE__ */ new Set([
840
877
  "rowSpan",
841
878
  "colSpan",
842
879
  "tabIndex",
843
880
  "valueAsNumber"
844
- ]), ge = /* @__PURE__ */ new Set(["valueAsDate"]), me = /* @__PURE__ */ new Set([
881
+ ]), ge = /* @__PURE__ */ new Set(["valueAsDate"]), ye = /* @__PURE__ */ new Set([
845
882
  "value",
846
883
  "textContent",
847
884
  "innerText",
@@ -849,23 +886,23 @@ const fe = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), de = /* @
849
886
  "outerHTML",
850
887
  "className",
851
888
  "classList"
852
- ]), Ue = (s, e) => de.has(s) ? (t) => {
889
+ ]), Ye = (s, e) => pe.has(s) ? (t) => {
853
890
  t == null || t !== !0 ? e.removeAttribute(s) : e.setAttribute(s, "");
854
- } : fe.has(s) ? (t) => {
891
+ } : de.has(s) ? (t) => {
855
892
  t == null ? e[s] = null : e[s] = !!t;
856
- } : pe.has(s) ? (t) => {
893
+ } : me.has(s) ? (t) => {
857
894
  t == null ? e[s] = null : e[s] = Number(t);
858
895
  } : ge.has(s) ? (t) => {
859
896
  t == null ? e[s] = null : e[s] = t;
860
- } : me.has(s) ? (t) => {
897
+ } : ye.has(s) ? (t) => {
861
898
  t == null ? e[s] = null : e[s] = String(t);
862
899
  } : (t) => {
863
900
  t == null ? e.removeAttribute(s) : e.setAttribute(s, t);
864
- }, Je = (s, e) => de.has(s) ? () => e.hasAttribute(s) : fe.has(s) ? () => !!e[s] : pe.has(s) ? () => Number(e[s]) : ge.has(s) ? () => e[s] : me.has(s) ? () => String(e[s]) : () => e.getAttribute(s), q = (s) => {
901
+ }, Qe = (s, e) => pe.has(s) ? () => e.hasAttribute(s) : de.has(s) ? () => !!e[s] : me.has(s) ? () => Number(e[s]) : ge.has(s) ? () => e[s] : ye.has(s) ? () => String(e[s]) : () => e.getAttribute(s), q = (s) => {
865
902
  const e = s;
866
903
  e && e.onblur && (e.onblur = null), !(!s || s.ownerDocument === void 0) && s.parentElement && s.parentElement.removeChild(s);
867
- }, Ge = (s) => ye(s) ? s : s.parentElement, ye = (s) => s.nodeType === 1;
868
- class Te extends Error {
904
+ }, Ze = (s) => Te(s) ? s : s.parentElement, Te = (s) => s.nodeType === 1;
905
+ class be extends Error {
869
906
  constructor(e) {
870
907
  super(`Provider not found: ${e.description}`);
871
908
  }
@@ -1045,7 +1082,7 @@ class D {
1045
1082
  */
1046
1083
  o(this, "getProvider", (e) => {
1047
1084
  if (this.providers[e] === void 0)
1048
- throw new Te(e);
1085
+ throw new be(e);
1049
1086
  const [t, r] = this.providers[e];
1050
1087
  return { value: t, onUse: r };
1051
1088
  });
@@ -1120,8 +1157,8 @@ class D {
1120
1157
  */
1121
1158
  o(this, "getStyle", (e) => this.element.style[e]);
1122
1159
  o(this, "makeAccessors", (e) => ({
1123
- get: Je(e, this.element),
1124
- set: Ue(e, this.element)
1160
+ get: Qe(e, this.element),
1161
+ set: Ye(e, this.element)
1125
1162
  }));
1126
1163
  o(this, "getWindow", () => this.document.defaultView);
1127
1164
  this.document = e, this.element = t, this.reference = r, this.providers = n;
@@ -1138,51 +1175,51 @@ class D {
1138
1175
  return new D(e.ownerDocument, e, t, r);
1139
1176
  }
1140
1177
  }
1141
- const Xe = (s) => Symbol(s), te = (s, e) => {
1178
+ const ze = (s) => Symbol(s), te = (s, e) => {
1142
1179
  const t = s(e);
1143
1180
  return (r = !0) => t(r);
1144
- }, qt = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1181
+ }, Ut = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1145
1182
  const l = typeof e == "string" ? (t ?? document).querySelector(e) : e;
1146
1183
  if (l === null)
1147
- throw new Ye(
1184
+ throw new Ke(
1148
1185
  `Cannot find element by selector for render: ${e}`
1149
1186
  );
1150
1187
  r !== !1 && (t ?? l.ownerDocument) != null && l.nodeType === 1 && (l.innerHTML = "");
1151
- const c = Ge(l), u = ye(l) ? void 0 : l, a = D.of(c, u, i), h = te(s, a);
1152
- let g;
1153
- return n && (g = new MutationObserver((T) => {
1188
+ const c = Ze(l), u = Te(l) ? void 0 : l, a = D.of(c, u, i), h = te(s, a);
1189
+ let m;
1190
+ return n && (m = new MutationObserver((T) => {
1154
1191
  var p;
1155
- (p = T[0]) == null || p.removedNodes.forEach((m) => {
1156
- m === l && (g == null || g.disconnect(), h(l.nodeType !== 1));
1192
+ (p = T[0]) == null || p.removedNodes.forEach((g) => {
1193
+ g === l && (m == null || m.disconnect(), h(l.nodeType !== 1));
1157
1194
  });
1158
- }), g.observe(l.parentElement, {
1195
+ }), m.observe(l.parentElement, {
1159
1196
  childList: !0,
1160
1197
  subtree: !1,
1161
1198
  attributes: !1
1162
1199
  })), () => {
1163
- g == null || g.disconnect(), h(!0);
1200
+ m == null || m.disconnect(), h(!0);
1164
1201
  };
1165
- }, Ft = (s, {
1202
+ }, Jt = (s, {
1166
1203
  startUrl: e = "https://example.com",
1167
1204
  selector: t,
1168
1205
  providers: r = {}
1169
1206
  } = {
1170
1207
  selector: "body"
1171
1208
  }) => {
1172
- const n = y.toSignal(e).deriveProp(), i = new ve(t, void 0), l = new O(i, void 0, { currentURL: n }, r);
1209
+ const n = y.toSignal(e).deriveProp(), i = new Ee(t, void 0), l = new O(i, void 0, { currentURL: n }, r);
1173
1210
  return {
1174
1211
  clear: te(s(), l),
1175
1212
  root: i,
1176
1213
  currentURL: n
1177
1214
  };
1178
1215
  };
1179
- class Ye extends Error {
1216
+ class Ke extends Error {
1180
1217
  constructor(e) {
1181
1218
  super(e);
1182
1219
  }
1183
1220
  }
1184
- const be = "data-tts-node", F = "data-tts-class", B = "data-tts-style", W = "data-tts-html", U = "data-tts-text", J = "data-tts-attrs";
1185
- class Bt {
1221
+ const Se = "data-tts-node", F = "data-tts-class", B = "data-tts-style", W = "data-tts-html", U = "data-tts-text", J = "data-tts-attrs";
1222
+ class Gt {
1186
1223
  constructor({
1187
1224
  select: e,
1188
1225
  getAttribute: t,
@@ -1194,7 +1231,7 @@ class Bt {
1194
1231
  appendHTML: u,
1195
1232
  getInnerHTML: a,
1196
1233
  setInnerHTML: h,
1197
- getInnerText: g,
1234
+ getInnerText: m,
1198
1235
  setInnerText: T
1199
1236
  }) {
1200
1237
  /**
@@ -1338,57 +1375,57 @@ class Bt {
1338
1375
  }
1339
1376
  });
1340
1377
  });
1341
- this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = n, this.setClass = i, this.getStyles = l, this.setStyles = c, this.appendHTML = u, this.getInnerHTML = a, this.setInnerHTML = h, this.getInnerText = g, this.setInnerText = T;
1378
+ this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = n, this.setClass = i, this.getStyles = l, this.setStyles = c, this.appendHTML = u, this.getInnerHTML = a, this.setInnerHTML = h, this.getInnerText = m, this.setInnerText = T;
1342
1379
  }
1343
1380
  }
1344
- const Qe = () => {
1345
- document.querySelectorAll(`[${be}]`).forEach(q);
1346
- }, Ze = (s) => {
1381
+ const et = () => {
1382
+ document.querySelectorAll(`[${Se}]`).forEach(q);
1383
+ }, tt = (s) => {
1347
1384
  const e = s.getAttribute(F);
1348
1385
  s.removeAttribute(F), e != null && s.setAttribute("class", e);
1349
- }, ze = () => {
1350
- document.querySelectorAll(`[${F}]`).forEach((e) => Ze(e));
1351
- }, Ke = (s) => {
1386
+ }, st = () => {
1387
+ document.querySelectorAll(`[${F}]`).forEach((e) => tt(e));
1388
+ }, rt = (s) => {
1352
1389
  const e = s.getAttribute(W);
1353
1390
  s.removeAttribute(W), e != null && (s.innerHTML = e);
1354
- }, et = () => {
1355
- document.querySelectorAll(`[${W}]`).forEach((e) => Ke(e));
1356
- }, tt = (s) => {
1391
+ }, nt = () => {
1392
+ document.querySelectorAll(`[${W}]`).forEach((e) => rt(e));
1393
+ }, it = (s) => {
1357
1394
  const e = s.getAttribute(U);
1358
1395
  s.removeAttribute(U), e != null && (s.innerText = e);
1359
- }, st = () => {
1360
- document.querySelectorAll(`[${U}]`).forEach((e) => tt(e));
1361
- }, Se = (s) => JSON.parse(s.replace(/&quot;/g, '"')), rt = (s) => {
1396
+ }, ot = () => {
1397
+ document.querySelectorAll(`[${U}]`).forEach((e) => it(e));
1398
+ }, Ae = (s) => JSON.parse(s.replace(/&quot;/g, '"')), lt = (s) => {
1362
1399
  const e = s.getAttribute(B);
1363
1400
  if (s.removeAttribute(B), e != null) {
1364
- const t = Se(e);
1401
+ const t = Ae(e);
1365
1402
  Object.entries(t).forEach(([r, n]) => {
1366
1403
  s.style.setProperty(r, n);
1367
1404
  });
1368
1405
  }
1369
- }, nt = () => {
1370
- document.querySelectorAll(`[${B}]`).forEach((e) => rt(e));
1371
- }, it = (s) => {
1406
+ }, ct = () => {
1407
+ document.querySelectorAll(`[${B}]`).forEach((e) => lt(e));
1408
+ }, ut = (s) => {
1372
1409
  const e = s.getAttribute(J);
1373
1410
  if (s.removeAttribute(J), e != null) {
1374
- const t = Se(e);
1411
+ const t = Ae(e);
1375
1412
  Object.entries(t).forEach(([r, n]) => {
1376
1413
  n == null ? s.removeAttribute(r) : s.setAttribute(r, n);
1377
1414
  });
1378
1415
  }
1379
- }, ot = () => {
1380
- document.querySelectorAll(`[${J}]`).forEach((e) => it(e));
1381
- }, Wt = () => {
1382
- Qe(), ze(), st(), et(), nt(), ot();
1383
- }, S = Symbol("class"), E = Symbol("style"), P = Symbol("handler"), Ae = () => Math.random().toString(36).substring(2, 15), lt = (s) => s.replace(/<[^>]*>?/g, "");
1384
- class _e {
1416
+ }, at = () => {
1417
+ document.querySelectorAll(`[${J}]`).forEach((e) => ut(e));
1418
+ }, Xt = () => {
1419
+ et(), st(), ot(), nt(), ct(), at();
1420
+ }, S = Symbol("class"), E = Symbol("style"), P = Symbol("handler"), _e = () => Math.random().toString(36).substring(2, 15), ht = (s) => s.replace(/<[^>]*>?/g, "");
1421
+ class ve {
1385
1422
  constructor(e) {
1386
- o(this, "id", Ae());
1423
+ o(this, "id", _e());
1387
1424
  o(this, "properties", {});
1388
1425
  o(this, "children", []);
1389
1426
  o(this, "isElement", () => !0);
1390
1427
  o(this, "isText", () => !1);
1391
- o(this, "getText", () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? lt(this.properties.innerHTML) : this.children.map((e) => e.getText()).join(""));
1428
+ o(this, "getText", () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? ht(this.properties.innerHTML) : this.children.map((e) => e.getText()).join(""));
1392
1429
  o(this, "removeChild", (e) => {
1393
1430
  const t = this.children.indexOf(e);
1394
1431
  t !== -1 && this.children.splice(t, 1);
@@ -1487,21 +1524,21 @@ class _e {
1487
1524
  this.parent = e;
1488
1525
  }
1489
1526
  }
1490
- const ct = (s) => s.replace(/"/g, "&quot;"), ut = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1491
- class at extends _e {
1527
+ const ft = (s) => s.replace(/"/g, "&quot;"), dt = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1528
+ class pt extends ve {
1492
1529
  constructor(t, r, n) {
1493
1530
  super(n);
1494
1531
  o(this, "isPortal", () => !1);
1495
1532
  o(this, "toHTML", (t = !1) => {
1496
1533
  const r = this.children.map((u) => u.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1497
1534
  let i = null;
1498
- const l = this.getVisibleAttributes().map(([u, a]) => u === "class" ? ` class="${a.join(" ")}"` : u === "style" ? typeof a == "string" ? ` style="${a}"` : ` style="${Object.entries(a).map(([h, g]) => `${h}: ${g};`).join(" ")}"` : ft.has(u) ? ` ${u}` : u === "innerHTML" ? (i = a, "") : u === "innerText" ? (i = ut(a), "") : ` ${u}="${ct(a)}"`).join(""), c = t ? ` ${be}` : "";
1499
- return dt.has(this.tagName) && r === "" ? `<${this.tagName}${n}${l}${c} />` : `<${this.tagName}${n}${l}${c}>${i ?? r}</${this.tagName}>`;
1535
+ const l = this.getVisibleAttributes().map(([u, a]) => u === "class" ? ` class="${a.join(" ")}"` : u === "style" ? typeof a == "string" ? ` style="${a}"` : ` style="${Object.entries(a).map(([h, m]) => `${h}: ${m};`).join(" ")}"` : gt.has(u) ? ` ${u}` : u === "innerHTML" ? (i = a, "") : u === "innerText" ? (i = dt(a), "") : ` ${u}="${ft(a)}"`).join(""), c = t ? ` ${Se}` : "";
1536
+ return yt.has(this.tagName) && r === "" ? `<${this.tagName}${n}${l}${c} />` : `<${this.tagName}${n}${l}${c}>${i ?? r}</${this.tagName}>`;
1500
1537
  });
1501
1538
  this.tagName = t, this.namespace = r;
1502
1539
  }
1503
1540
  }
1504
- class ve extends _e {
1541
+ class Ee extends ve {
1505
1542
  constructor(t, r) {
1506
1543
  super(r);
1507
1544
  o(this, "isPortal", () => !0);
@@ -1510,9 +1547,9 @@ class ve extends _e {
1510
1547
  this.selector = t;
1511
1548
  }
1512
1549
  }
1513
- class ht {
1550
+ class mt {
1514
1551
  constructor(e) {
1515
- o(this, "id", Ae());
1552
+ o(this, "id", _e());
1516
1553
  o(this, "isElement", () => !1);
1517
1554
  o(this, "isText", () => !0);
1518
1555
  o(this, "getText", () => this.text);
@@ -1530,7 +1567,7 @@ class O {
1530
1567
  this.element.children.push(e);
1531
1568
  });
1532
1569
  o(this, "makeChildElement", (e, t) => {
1533
- const r = new at(e, t, this.element);
1570
+ const r = new pt(e, t, this.element);
1534
1571
  return this.appendOrInsert(r), new O(
1535
1572
  r,
1536
1573
  void 0,
@@ -1539,7 +1576,7 @@ class O {
1539
1576
  );
1540
1577
  });
1541
1578
  o(this, "makeChildText", (e) => {
1542
- const t = new ht(e);
1579
+ const t = new mt(e);
1543
1580
  return this.appendOrInsert(t), new O(
1544
1581
  this.element,
1545
1582
  t,
@@ -1556,7 +1593,7 @@ class O {
1556
1593
  });
1557
1594
  o(this, "makeRef", () => this.makeChildText(""));
1558
1595
  o(this, "makePortal", (e) => {
1559
- const t = new ve(e, this.element);
1596
+ const t = new Ee(e, this.element);
1560
1597
  return this.appendOrInsert(t), new O(
1561
1598
  t,
1562
1599
  void 0,
@@ -1577,7 +1614,7 @@ class O {
1577
1614
  }));
1578
1615
  o(this, "getProvider", (e) => {
1579
1616
  if (this.providers[e] === void 0)
1580
- throw new Te(e);
1617
+ throw new be(e);
1581
1618
  const [t, r] = this.providers[e];
1582
1619
  return { value: t, onUse: r };
1583
1620
  });
@@ -1598,27 +1635,27 @@ class O {
1598
1635
  this.element = e, this.reference = t, this.container = r, this.providers = n;
1599
1636
  }
1600
1637
  }
1601
- const ft = /* @__PURE__ */ new Set([
1638
+ const gt = /* @__PURE__ */ new Set([
1602
1639
  "checked",
1603
1640
  "disabled",
1604
1641
  "multiple",
1605
1642
  "readonly",
1606
1643
  "required",
1607
1644
  "selected"
1608
- ]), dt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), Ee = (s) => (e) => e.makeChildText(s).clear, we = (s) => (e) => {
1645
+ ]), yt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), we = (s) => (e) => e.makeChildText(s).clear, Ce = (s) => (e) => {
1609
1646
  const t = e.makeChildText(s.value), r = s.on(t.setText);
1610
1647
  return (n) => {
1611
1648
  r(), t.clear(n);
1612
1649
  };
1613
- }, Ut = (s) => d.is(s) ? we(s) : Ee(s), b = (...s) => (e) => {
1650
+ }, Yt = (s) => d.is(s) ? Ce(s) : we(s), b = (...s) => (e) => {
1614
1651
  const t = s.map((r) => f(r)(e));
1615
1652
  return (r) => {
1616
1653
  t.forEach((n) => n(r));
1617
1654
  };
1618
1655
  }, v = () => () => {
1619
- }, pt = (s) => (e) => (e.addClasses(s), (t) => {
1656
+ }, Tt = (s) => (e) => (e.addClasses(s), (t) => {
1620
1657
  t && e.removeClasses(s);
1621
- }), gt = (s) => (e) => {
1658
+ }), bt = (s) => (e) => {
1622
1659
  let t = [];
1623
1660
  const r = s.on((n) => {
1624
1661
  e.removeClasses(t), t = (n ?? "").split(" ").filter((i) => i.length > 0), e.addClasses(t);
@@ -1650,7 +1687,7 @@ const ft = /* @__PURE__ */ new Set([
1650
1687
  * @returns The renderable component for the specified attribute.
1651
1688
  *
1652
1689
  */
1653
- get: (s, e) => e === "class" ? (t) => d.is(t) ? gt(t) : pt(
1690
+ get: (s, e) => e === "class" ? (t) => d.is(t) ? bt(t) : Tt(
1654
1691
  /* c8 ignore next */
1655
1692
  (t ?? "").split(" ").filter((r) => r.length > 0)
1656
1693
  ) : (t) => d.is(t) ? $(
@@ -1661,7 +1698,7 @@ const ft = /* @__PURE__ */ new Set([
1661
1698
  t
1662
1699
  )
1663
1700
  }
1664
- ), Jt = new Proxy(
1701
+ ), Qt = new Proxy(
1665
1702
  {},
1666
1703
  {
1667
1704
  /**
@@ -1677,7 +1714,7 @@ const ft = /* @__PURE__ */ new Set([
1677
1714
  t
1678
1715
  ) : N(`data-${e}`, t)
1679
1716
  }
1680
- ), Gt = new Proxy(
1717
+ ), Zt = new Proxy(
1681
1718
  {},
1682
1719
  {
1683
1720
  /**
@@ -1696,7 +1733,7 @@ const ft = /* @__PURE__ */ new Set([
1696
1733
  t
1697
1734
  )
1698
1735
  }
1699
- ), Xt = new Proxy(
1736
+ ), zt = new Proxy(
1700
1737
  {},
1701
1738
  {
1702
1739
  /**
@@ -1715,7 +1752,7 @@ const ft = /* @__PURE__ */ new Set([
1715
1752
  t
1716
1753
  )
1717
1754
  }
1718
- ), Yt = new Proxy(
1755
+ ), Kt = new Proxy(
1719
1756
  {},
1720
1757
  {
1721
1758
  /**
@@ -1739,23 +1776,23 @@ const ft = /* @__PURE__ */ new Set([
1739
1776
  if (Array.isArray(s))
1740
1777
  return b(...s.map(f));
1741
1778
  if (typeof s == "string")
1742
- return Ee(s);
1743
- if (d.is(s))
1744
1779
  return we(s);
1780
+ if (d.is(s))
1781
+ return Ce(s);
1745
1782
  if (typeof s == "function")
1746
1783
  return s;
1747
1784
  throw new Error(`Unknown type: '${typeof s}' for child: ${s}`);
1748
- }, Ce = (s, ...e) => (t) => {
1785
+ }, xe = (s, ...e) => (t) => {
1749
1786
  const r = t.makeChildElement(s, void 0), n = e.map((i) => f(i)(r));
1750
1787
  return (i) => {
1751
1788
  n.forEach((l) => l(!1)), r.clear(i);
1752
1789
  };
1753
- }, xe = (s, e, ...t) => (r) => {
1790
+ }, Pe = (s, e, ...t) => (r) => {
1754
1791
  const n = r.makeChildElement(s, e), i = t.map((l) => f(l)(n));
1755
1792
  return (l) => {
1756
1793
  i.forEach((c) => c(!1)), n.clear(l);
1757
1794
  };
1758
- }, Qt = new Proxy(
1795
+ }, es = new Proxy(
1759
1796
  {},
1760
1797
  {
1761
1798
  /**
@@ -1763,9 +1800,9 @@ const ft = /* @__PURE__ */ new Set([
1763
1800
  * @param tagName - The HTML tag name.
1764
1801
  * @returns A renderable function that creates and appends the HTML element to the DOM.
1765
1802
  */
1766
- get: (s, e) => (...t) => Ce(e, t.flatMap(f))
1803
+ get: (s, e) => (...t) => xe(e, t.flatMap(f))
1767
1804
  }
1768
- ), Zt = new Proxy(
1805
+ ), ts = new Proxy(
1769
1806
  {},
1770
1807
  {
1771
1808
  /**
@@ -1773,9 +1810,9 @@ const ft = /* @__PURE__ */ new Set([
1773
1810
  * @param type - The input type name.
1774
1811
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
1775
1812
  */
1776
- get: (s, e) => (...t) => Ce("input", M.type(e), ...t)
1813
+ get: (s, e) => (...t) => xe("input", M.type(e), ...t)
1777
1814
  }
1778
- ), mt = "http://www.w3.org/2000/svg", zt = new Proxy(
1815
+ ), St = "http://www.w3.org/2000/svg", ss = new Proxy(
1779
1816
  {},
1780
1817
  {
1781
1818
  /**
@@ -1783,9 +1820,9 @@ const ft = /* @__PURE__ */ new Set([
1783
1820
  * @param tagName - The SVG tag name.
1784
1821
  * @returns A renderable function that creates and appends the SVG element to the DOM.
1785
1822
  */
1786
- get: (s, e) => (...t) => xe(e, mt, t.flatMap(f))
1823
+ get: (s, e) => (...t) => Pe(e, St, t.flatMap(f))
1787
1824
  }
1788
- ), yt = "http://www.w3.org/1998/Math/MathML", Kt = new Proxy(
1825
+ ), At = "http://www.w3.org/1998/Math/MathML", rs = new Proxy(
1789
1826
  {},
1790
1827
  {
1791
1828
  /**
@@ -1793,11 +1830,11 @@ const ft = /* @__PURE__ */ new Set([
1793
1830
  * @param tagName - The Math tag name.
1794
1831
  * @returns A renderable function that creates and appends the Math element to the DOM.
1795
1832
  */
1796
- get: (s, e) => (...t) => xe(e, yt, t.flatMap(f))
1833
+ get: (s, e) => (...t) => Pe(e, At, t.flatMap(f))
1797
1834
  }
1798
- ), Pe = (s, e) => {
1835
+ ), Le = (s, e) => {
1799
1836
  if (typeof e == "function")
1800
- return Pe(s, { then: e });
1837
+ return Le(s, { then: e });
1801
1838
  const t = e.pending != null ? f(e.pending()) : v, r = e.then, n = e.error != null ? (i) => f(e.error(i)) : () => v;
1802
1839
  return (i) => {
1803
1840
  let l = !0;
@@ -1814,7 +1851,7 @@ const ft = /* @__PURE__ */ new Set([
1814
1851
  l = !1, a(h), u.clear(h);
1815
1852
  };
1816
1853
  };
1817
- }, es = (s, e) => Pe(() => s, e), Le = (s, e, t) => (r) => r.on(s, e, t), Tt = (s) => Le("click", (e, t) => {
1854
+ }, ns = (s, e) => Le(() => s, e), De = (s, e, t) => (r) => r.on(s, e, t), _t = (s) => De("click", (e, t) => {
1818
1855
  e.preventDefault();
1819
1856
  const r = e.target;
1820
1857
  setTimeout(() => {
@@ -1829,20 +1866,20 @@ const ft = /* @__PURE__ */ new Set([
1829
1866
  * @param fn - The function to call when the event is triggered.
1830
1867
  * @returns A `Renderable` function that adds the event listener to the element.
1831
1868
  */
1832
- get: (s, e) => (t) => Le(e, t)
1869
+ get: (s, e) => (t) => De(e, t)
1833
1870
  }
1834
- ), bt = (s, e) => (t) => {
1871
+ ), vt = (s, e) => (t) => {
1835
1872
  (e == null ? void 0 : e.preventDefault) === !0 && t.preventDefault(), (e == null ? void 0 : e.stopPropagation) === !0 && t.stopPropagation(), (e == null ? void 0 : e.stopImmediatePropagation) === !0 && t.stopImmediatePropagation(), s(t);
1836
- }, x = (s, e) => bt((t) => {
1873
+ }, x = (s, e) => vt((t) => {
1837
1874
  const r = t.target;
1838
1875
  s(r, t);
1839
- }, e), St = (s, e) => x(
1876
+ }, e), Et = (s, e) => x(
1840
1877
  (t, r) => s(t.value, r),
1841
1878
  e
1842
- ), At = (s, e) => x(
1879
+ ), wt = (s, e) => x(
1843
1880
  (t, r) => s(t.valueAsNumber, r),
1844
1881
  e
1845
- ), _t = (s, e) => x((t, r) => {
1882
+ ), Ct = (s, e) => x((t, r) => {
1846
1883
  if (t.value === "")
1847
1884
  return;
1848
1885
  const n = t.value.split("-"), i = new Date(
@@ -1851,7 +1888,7 @@ const ft = /* @__PURE__ */ new Set([
1851
1888
  Number(n[2].substring(0, 2))
1852
1889
  );
1853
1890
  s(i, r);
1854
- }, e), ts = (s, e) => x((t, r) => {
1891
+ }, e), is = (s, e) => x((t, r) => {
1855
1892
  if (t.value === "") {
1856
1893
  s(null, r);
1857
1894
  return;
@@ -1862,7 +1899,7 @@ const ft = /* @__PURE__ */ new Set([
1862
1899
  Number(n[2].substring(0, 2))
1863
1900
  );
1864
1901
  s(i, r);
1865
- }, e), vt = (s, e) => x((t, r) => {
1902
+ }, e), xt = (s, e) => x((t, r) => {
1866
1903
  if (t.value === "")
1867
1904
  return;
1868
1905
  const n = t.value.split("T"), i = n[0].split("-"), l = new Date(
@@ -1871,7 +1908,7 @@ const ft = /* @__PURE__ */ new Set([
1871
1908
  Number(i[2])
1872
1909
  ), c = n[1].split(":");
1873
1910
  l.setHours(Number(c[0])), l.setMinutes(Number(c[1])), l.setSeconds(Number(c[2])), s(l, r);
1874
- }, e), ss = (s, e) => x((t, r) => {
1911
+ }, e), os = (s, e) => x((t, r) => {
1875
1912
  if (t.value === "") {
1876
1913
  s(null, r);
1877
1914
  return;
@@ -1887,9 +1924,9 @@ const ft = /* @__PURE__ */ new Set([
1887
1924
  Number(i[2])
1888
1925
  ), c = n[1].split(":");
1889
1926
  l.setHours(Number(c[0] ?? 0)), l.setMinutes(Number(c[1] ?? 0)), l.setSeconds(Number(c[2] ?? 0)), s(l, r);
1890
- }, e), rs = (s, e) => x((t, r) => {
1927
+ }, e), ls = (s, e) => x((t, r) => {
1891
1928
  s(t.checked, r);
1892
- }, e), ns = (s, e = "input") => b(M.valueAsDate(s), Y[e](_t(s.set))), is = (s, e = "input") => b(M.valueAsDate(s), Y[e](vt(s.set))), os = (s, e = "input") => b(M.valueAsNumber(s), Y[e](At(s.set))), ls = (s, e = "input") => b(M.value(s), Y[e](St(s.set))), cs = (s) => b(M.checked(s), Tt(s.set)), Q = (s, e) => {
1929
+ }, e), cs = (s, e = "input") => b(M.valueAsDate(s), Y[e](Ct(s.set))), us = (s, e = "input") => b(M.valueAsDate(s), Y[e](xt(s.set))), as = (s, e = "input") => b(M.valueAsNumber(s), Y[e](wt(s.set))), hs = (s, e = "input") => b(M.value(s), Y[e](Et(s.set))), fs = (s) => b(M.checked(s), _t(s.set)), Q = (s, e) => {
1893
1930
  if (d.is(s))
1894
1931
  return (r) => {
1895
1932
  const n = r.makeRef();
@@ -1899,8 +1936,8 @@ const ft = /* @__PURE__ */ new Set([
1899
1936
  const a = c.on((h) => {
1900
1937
  if (h !== u) {
1901
1938
  u = h, l == null || l.dispose(), i == null || i(!0), l = s.map((T) => T[h]);
1902
- const g = e[h](l);
1903
- i = f(g)(n);
1939
+ const m = e[h](l);
1940
+ i = f(m)(n);
1904
1941
  }
1905
1942
  });
1906
1943
  return (h) => {
@@ -1909,19 +1946,19 @@ const ft = /* @__PURE__ */ new Set([
1909
1946
  };
1910
1947
  const t = Object.keys(s)[0];
1911
1948
  return f(e[t](X(s[t])));
1912
- }, De = (s, e, t) => Q(
1949
+ }, Oe = (s, e, t) => Q(
1913
1950
  y.map(s, (r) => ({ [r[e]]: r })),
1914
1951
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1915
1952
  t
1916
- ), us = (s, e) => De(s, "kind", e), as = (s, e) => {
1953
+ ), ds = (s, e) => Oe(s, "kind", e), ps = (s, e) => {
1917
1954
  const t = y.map(s, ([r, n]) => ({ [r]: n }));
1918
1955
  return Q(t, e);
1919
- }, hs = (s, e) => De(s, "type", e), Et = (s, e) => Q(
1956
+ }, ms = (s, e) => Oe(s, "type", e), Pt = (s, e) => Q(
1920
1957
  y.map(s, (t) => ({ [t]: !0 })),
1921
1958
  e
1922
- ), fs = (s, e = {}) => (t) => {
1959
+ ), gs = (s, e = {}) => (t) => {
1923
1960
  const r = (e == null ? void 0 : e.firstSeparator) ?? s, n = (e == null ? void 0 : e.lastSeparator) ?? s;
1924
- return Et(
1961
+ return Pt(
1925
1962
  t.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
1926
1963
  {
1927
1964
  first: r,
@@ -1929,9 +1966,9 @@ const ft = /* @__PURE__ */ new Set([
1929
1966
  other: s
1930
1967
  }
1931
1968
  );
1932
- }, ds = (s) => (e) => (e.appendOrInsert(s), (t) => {
1969
+ }, ys = (s) => (e) => (e.appendOrInsert(s), (t) => {
1933
1970
  t && q(s);
1934
- }), ps = (s, e, t) => {
1971
+ }), Ts = (s, e, t) => {
1935
1972
  if (d.is(s)) {
1936
1973
  const r = s;
1937
1974
  return (n) => {
@@ -1955,7 +1992,7 @@ const ft = /* @__PURE__ */ new Set([
1955
1992
  }
1956
1993
  return f(e(X(r)));
1957
1994
  }
1958
- }, gs = (...s) => (e, t) => (r) => {
1995
+ }, bs = (...s) => (e, t) => (r) => {
1959
1996
  const n = r.makeRef();
1960
1997
  if (s.some(
1961
1998
  (p) => !d.is(p) && p == null
@@ -1967,34 +2004,34 @@ const ft = /* @__PURE__ */ new Set([
1967
2004
  (p) => d.is(p) ? p.value != null : p != null
1968
2005
  );
1969
2006
  let u = null;
1970
- const a = _(c.every((p) => p)), h = (p, m) => {
2007
+ const a = _(c.every((p) => p)), h = (p, g) => {
1971
2008
  if (p.value != null) {
1972
- if (l[m] == null) {
2009
+ if (l[g] == null) {
1973
2010
  const C = _(p.value);
1974
- l[m] = C;
2011
+ l[g] = C;
1975
2012
  } else
1976
- l[m].value = p.value;
1977
- c[m] = !0;
2013
+ l[g].value = p.value;
2014
+ c[g] = !0;
1978
2015
  } else
1979
- c[m] = !1;
2016
+ c[g] = !1;
1980
2017
  };
1981
- let g = s.length - 1;
1982
- const T = s.map((p, m) => {
2018
+ let m = s.length - 1;
2019
+ const T = s.map((p, g) => {
1983
2020
  if (!d.is(p)) {
1984
2021
  const C = _(p);
1985
- return l[m] = C, () => {
2022
+ return l[g] = C, () => {
1986
2023
  };
1987
2024
  }
1988
2025
  return p.on(() => {
1989
- h(p, m), g === 0 ? a.value = c.every((C) => C) : g--;
2026
+ h(p, g), m === 0 ? a.value = c.every((C) => C) : m--;
1990
2027
  });
1991
2028
  });
1992
2029
  return a.on((p) => {
1993
2030
  u == null || u(!0), u = null, p ? u = f(e(...l))(n) : u = f((t == null ? void 0 : t()) ?? v)(n);
1994
2031
  }), (p) => {
1995
- l.forEach((m) => m == null ? void 0 : m.dispose()), a.dispose(), T.forEach((m) => m()), u == null || u(p), n.clear(p);
2032
+ l.forEach((g) => g == null ? void 0 : g.dispose()), a.dispose(), T.forEach((g) => g()), u == null || u(p), n.clear(p);
1996
2033
  };
1997
- }, H = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Oe = (s, e, t) => {
2034
+ }, H = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Me = (s, e, t) => {
1998
2035
  if (d.is(s)) {
1999
2036
  const r = s;
2000
2037
  return (n) => {
@@ -2015,13 +2052,13 @@ const ft = /* @__PURE__ */ new Set([
2015
2052
  }
2016
2053
  return f(t == null ? void 0 : t());
2017
2054
  }
2018
- }, ms = (s, e, t) => Oe(
2055
+ }, Ss = (s, e, t) => Me(
2019
2056
  y.map(s, (r) => !r),
2020
2057
  e,
2021
2058
  t
2022
- ), Me = (s, e, t) => {
2059
+ ), He = (s, e, t) => {
2023
2060
  if (t != null)
2024
- return Me(s, (r) => {
2061
+ return He(s, (r) => {
2025
2062
  const n = new z(
2026
2063
  r.index,
2027
2064
  r.total.map((i) => i - 1)
@@ -2029,7 +2066,7 @@ const ft = /* @__PURE__ */ new Set([
2029
2066
  return b(
2030
2067
  H(n.dispose),
2031
2068
  f(e(r)),
2032
- Oe(
2069
+ Me(
2033
2070
  r.isLast,
2034
2071
  () => v,
2035
2072
  () => t(n)
@@ -2071,9 +2108,9 @@ const ft = /* @__PURE__ */ new Set([
2071
2108
  })
2072
2109
  );
2073
2110
  }
2074
- }, ys = (s, e, t) => {
2111
+ }, As = (s, e, t) => {
2075
2112
  const r = y.map(s, (i) => i.length), n = y.toSignal(s);
2076
- return Me(
2113
+ return He(
2077
2114
  r,
2078
2115
  (i) => {
2079
2116
  const l = n.map((c) => c[i.index]);
@@ -2084,7 +2121,7 @@ const ft = /* @__PURE__ */ new Set([
2084
2121
  },
2085
2122
  t
2086
2123
  );
2087
- }, Ts = (s, e) => {
2124
+ }, _s = (s, e) => {
2088
2125
  if (d.is(s)) {
2089
2126
  const t = s;
2090
2127
  return (r) => {
@@ -2101,7 +2138,7 @@ const ft = /* @__PURE__ */ new Set([
2101
2138
  };
2102
2139
  }
2103
2140
  return f(e(s));
2104
- }, bs = (s, e, t = () => v) => Q(
2141
+ }, vs = (s, e, t = () => v) => Q(
2105
2142
  y.map(
2106
2143
  s,
2107
2144
  (r) => r.length > 0 ? { notEmpty: r } : { whenEmpty: null }
@@ -2110,11 +2147,11 @@ const ft = /* @__PURE__ */ new Set([
2110
2147
  notEmpty: (r) => e(r),
2111
2148
  whenEmpty: () => t()
2112
2149
  }
2113
- ), Ss = (s, e) => (t) => {
2150
+ ), Es = (s, e) => (t) => {
2114
2151
  const r = t.makePortal(s), n = te(f(e), r);
2115
2152
  return () => n(!0);
2116
- }, j = /* @__PURE__ */ new Map(), wt = (s) => ({
2117
- mark: Xe(`Probe(${s.description})`),
2153
+ }, j = /* @__PURE__ */ new Map(), Lt = (s) => ({
2154
+ mark: ze(`Probe(${s.description})`),
2118
2155
  create: ({ callback: e = () => {
2119
2156
  }, timeout: t = 10 } = {}) => {
2120
2157
  const r = (c) => {
@@ -2133,17 +2170,17 @@ const ft = /* @__PURE__ */ new Set([
2133
2170
  onUse: () => i.counter++
2134
2171
  };
2135
2172
  }
2136
- }), As = wt(Symbol("GlobalProbe")), Ct = (s, e) => (t) => {
2173
+ }), ws = Lt(Symbol("GlobalProbe")), Dt = (s, e) => (t) => {
2137
2174
  const r = t.getStyle(s);
2138
2175
  return t.setStyle(s, e), (n) => {
2139
2176
  n && t.setStyle(s, r);
2140
2177
  };
2141
- }, xt = (s, e) => (t) => {
2178
+ }, Ot = (s, e) => (t) => {
2142
2179
  const r = t.getStyle(s), n = e.on((i) => t.setStyle(s, i));
2143
2180
  return (i) => {
2144
2181
  n(), i && t.setStyle(s, r);
2145
2182
  };
2146
- }, _s = new Proxy(
2183
+ }, Cs = new Proxy(
2147
2184
  {},
2148
2185
  {
2149
2186
  /**
@@ -2154,9 +2191,9 @@ const ft = /* @__PURE__ */ new Set([
2154
2191
  * @returns The renderable component for the specified attribute.
2155
2192
  *
2156
2193
  */
2157
- get: (s, e) => (t) => d.is(t) ? xt(e, t) : Ct(e, t)
2194
+ get: (s, e) => (t) => d.is(t) ? Ot(e, t) : Dt(e, t)
2158
2195
  }
2159
- ), Pt = (s) => (e) => {
2196
+ ), Mt = (s) => (e) => {
2160
2197
  if (e.isBrowser()) {
2161
2198
  const t = s(e);
2162
2199
  if (t != null)
@@ -2164,11 +2201,11 @@ const ft = /* @__PURE__ */ new Set([
2164
2201
  }
2165
2202
  return () => {
2166
2203
  };
2167
- }, vs = (s) => (e) => {
2204
+ }, xs = (s) => (e) => {
2168
2205
  const t = s(e);
2169
2206
  return t == null ? () => {
2170
2207
  } : f(t)(e);
2171
- }, Es = (s) => Pt((e) => s(e.element)), ws = (s) => (e) => {
2208
+ }, Ps = (s) => Mt((e) => s(e.element)), Ls = (s) => (e) => {
2172
2209
  if (e.isHeadlessDOM()) {
2173
2210
  const t = s(e);
2174
2211
  if (t)
@@ -2190,8 +2227,8 @@ const ft = /* @__PURE__ */ new Set([
2190
2227
  return a == null || a(), u;
2191
2228
  },
2192
2229
  set: ({ mark: c, create: u }, a) => {
2193
- const { value: h, dispose: g, onUse: T } = u(a, r());
2194
- i.push(g), n(r().setProvider(c, h, T));
2230
+ const { value: h, dispose: m, onUse: T } = u(a, r());
2231
+ i.push(m), n(r().setProvider(c, h, T));
2195
2232
  }
2196
2233
  });
2197
2234
  return l == null ? () => {
@@ -2199,124 +2236,124 @@ const ft = /* @__PURE__ */ new Set([
2199
2236
  f(l),
2200
2237
  H(() => i.forEach((c) => c()))
2201
2238
  )(r());
2202
- }, Cs = (s, e, t) => se(({ set: r }) => (r(s, e), t())), xs = (s, e) => se(({ use: t }) => e(t(s))), Ps = (...s) => (e) => se(({ use: t }) => {
2239
+ }, Ds = (s, e, t) => se(({ set: r }) => (r(s, e), t())), Os = (s, e) => se(({ use: t }) => e(t(s))), Ms = (...s) => (e) => se(({ use: t }) => {
2203
2240
  const r = s.map(t);
2204
2241
  return e(...r);
2205
2242
  });
2206
2243
  export {
2207
- es as Async,
2208
- cs as BindChecked,
2209
- ns as BindDate,
2210
- is as BindDateTime,
2211
- os as BindNumber,
2212
- ls as BindText,
2244
+ ns as Async,
2245
+ fs as BindChecked,
2246
+ cs as BindDate,
2247
+ us as BindDateTime,
2248
+ as as BindNumber,
2249
+ hs as BindText,
2213
2250
  D as BrowserContext,
2214
2251
  F as CLASS_PLACEHOLDER_ATTR,
2215
2252
  L as Computed,
2216
- fs as Conjunction,
2217
- ds as DOMNode,
2218
- Ce as El,
2219
- xe as ElNS,
2253
+ gs as Conjunction,
2254
+ ys as DOMNode,
2255
+ xe as El,
2256
+ Pe as ElNS,
2220
2257
  z as ElementPosition,
2221
2258
  v as Empty,
2222
- ps as Ensure,
2223
- gs as EnsureAll,
2224
- ys as ForEach,
2259
+ Ts as Ensure,
2260
+ bs as EnsureAll,
2261
+ As as ForEach,
2225
2262
  b as Fragment,
2226
- As as GlobalProbe,
2227
- Bt as HeadlessAdapter,
2263
+ ws as GlobalProbe,
2264
+ Gt as HeadlessAdapter,
2228
2265
  O as HeadlessContext,
2229
- at as HeadlessElement,
2230
- ve as HeadlessPortal,
2231
- ht as HeadlessText,
2232
- Ts as MapSignal,
2233
- ae as MemoryStore,
2234
- bs as NotEmpty,
2235
- Tt as OnChecked,
2266
+ pt as HeadlessElement,
2267
+ Ee as HeadlessPortal,
2268
+ mt as HeadlessText,
2269
+ _s as MapSignal,
2270
+ he as MemoryStore,
2271
+ vs as NotEmpty,
2272
+ _t as OnChecked,
2236
2273
  H as OnDispose,
2237
2274
  Q as OneOf,
2238
- De as OneOfField,
2239
- us as OneOfKind,
2240
- as as OneOfTuple,
2241
- hs as OneOfType,
2242
- Et as OneOfValue,
2243
- Ss as Portal,
2275
+ Oe as OneOfField,
2276
+ ds as OneOfKind,
2277
+ ps as OneOfTuple,
2278
+ ms as OneOfType,
2279
+ Pt as OneOfValue,
2280
+ Es as Portal,
2244
2281
  V as Prop,
2245
- Cs as Provide,
2246
- Te as ProviderNotFoundError,
2247
- Ye as RenderingError,
2248
- Me as Repeat,
2282
+ Ds as Provide,
2283
+ be as ProviderNotFoundError,
2284
+ Ke as RenderingError,
2285
+ He as Repeat,
2249
2286
  d as Signal,
2250
- Pe as Task,
2251
- Ut as TextNode,
2252
- ms as Unless,
2253
- xs as Use,
2254
- Ps as UseMany,
2287
+ Le as Task,
2288
+ Yt as TextNode,
2289
+ Ss as Unless,
2290
+ Os as Use,
2291
+ Ms as UseMany,
2255
2292
  y as Value,
2256
- Oe as When,
2257
- Pt as WithBrowserCtx,
2258
- vs as WithCtx,
2259
- Es as WithElement,
2260
- ws as WithHeadlessCtx,
2293
+ Me as When,
2294
+ Mt as WithBrowserCtx,
2295
+ xs as WithCtx,
2296
+ Ps as WithElement,
2297
+ Ls as WithHeadlessCtx,
2261
2298
  se as WithProvider,
2262
- be as _NODE_PLACEHOLDER_ATTR,
2263
- Ge as _getSelfOrParentElement,
2264
- ye as _isElement,
2265
- Je as _makeGetter,
2266
- Ue as _makeSetter,
2299
+ Se as _NODE_PLACEHOLDER_ATTR,
2300
+ Ze as _getSelfOrParentElement,
2301
+ Te as _isElement,
2302
+ Qe as _makeGetter,
2303
+ Ye as _makeSetter,
2267
2304
  q as _removeDOMNode,
2268
- we as _signalText,
2269
- Ee as _staticText,
2270
- kt as animateSignal,
2271
- Be as animateSignals,
2272
- Gt as aria,
2305
+ Ce as _signalText,
2306
+ we as _staticText,
2307
+ Rt as animateSignal,
2308
+ Ge as animateSignals,
2309
+ Zt as aria,
2273
2310
  M as attr,
2274
- jt as bind,
2275
- Vt as coalesce,
2311
+ Bt as bind,
2312
+ Wt as coalesce,
2276
2313
  K as computed,
2277
2314
  ee as computedOf,
2278
- We as computedRecord,
2279
- Jt as dataAttr,
2280
- $t as delaySignal,
2281
- Fe as effect,
2282
- Ot as effectOf,
2283
- bt as emit,
2284
- rs as emitChecked,
2315
+ Xe as computedRecord,
2316
+ Qt as dataAttr,
2317
+ Vt as delaySignal,
2318
+ Be as effect,
2319
+ Nt as effectOf,
2320
+ vt as emit,
2321
+ ls as emitChecked,
2285
2322
  x as emitTarget,
2286
- St as emitValue,
2287
- _t as emitValueAsDate,
2288
- vt as emitValueAsDateTime,
2289
- ts as emitValueAsNullableDate,
2290
- ss as emitValueAsNullableDateTime,
2291
- At as emitValueAsNumber,
2292
- je as endInterpolate,
2323
+ Et as emitValue,
2324
+ Ct as emitValueAsDate,
2325
+ xt as emitValueAsDateTime,
2326
+ is as emitValueAsNullableDate,
2327
+ os as emitValueAsNullableDateTime,
2328
+ wt as emitValueAsNumber,
2329
+ Ve as endInterpolate,
2293
2330
  ue as getWindow,
2294
- Ve as guessInterpolate,
2295
- Qt as html,
2296
- Zt as input,
2297
- Re as interpolateDate,
2298
- $e as interpolateNumber,
2299
- Ie as interpolateString,
2300
- Dt as joinSignals,
2301
- Mt as localStorageProp,
2302
- wt as makeProbe,
2303
- Xe as makeProviderMark,
2304
- Kt as math,
2305
- Yt as mathAttr,
2306
- Nt as merge,
2331
+ qe as guessInterpolate,
2332
+ es as html,
2333
+ ts as input,
2334
+ je as interpolateDate,
2335
+ Ie as interpolateNumber,
2336
+ Re as interpolateString,
2337
+ kt as joinSignals,
2338
+ $t as localStorageProp,
2339
+ Lt as makeProbe,
2340
+ ze as makeProviderMark,
2341
+ rs as math,
2342
+ Kt as mathAttr,
2343
+ jt as merge,
2307
2344
  Y as on,
2308
- It as previousSignal,
2345
+ qt as previousSignal,
2309
2346
  _ as prop,
2310
- qt as render,
2347
+ Ut as render,
2311
2348
  te as renderWithContext,
2312
2349
  f as renderableOfTNode,
2313
- Wt as restoreTempoPlaceholders,
2314
- Ft as runHeadless,
2315
- Ht as sessionStorageProp,
2350
+ Xt as restoreTempoPlaceholders,
2351
+ Jt as runHeadless,
2352
+ It as sessionStorageProp,
2316
2353
  X as signal,
2317
- Rt as slidingWindowSignal,
2318
- he as storedProp,
2319
- _s as style,
2320
- zt as svg,
2321
- Xt as svgAttr
2354
+ Ft as slidingWindowSignal,
2355
+ fe as storedProp,
2356
+ Cs as style,
2357
+ ss as svg,
2358
+ zt as svgAttr
2322
2359
  };