@tempots/dom 34.0.0 → 34.2.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,20 +1,20 @@
1
- const Ue = (t) => Symbol(t);
2
- function Ge(t, e) {
1
+ const Ke = (t) => Symbol(t);
2
+ function ze(t, e) {
3
3
  return {
4
4
  type: t,
5
5
  render: e
6
6
  };
7
7
  }
8
- function be(t) {
8
+ function Se(t) {
9
9
  return t != null && t !== !1 && t !== 0 && t !== "";
10
10
  }
11
- function Je(t) {
12
- return !be(t);
11
+ function Ye(t) {
12
+ return !Se(t);
13
13
  }
14
- function Ke(t) {
14
+ function Xe(t) {
15
15
  return t == null;
16
16
  }
17
- function ze(t) {
17
+ function Qe(t) {
18
18
  return t != null;
19
19
  }
20
20
  const w = {
@@ -29,7 +29,7 @@ const w = {
29
29
  * @param fn - The function to map the value.
30
30
  * @returns The mapped value.
31
31
  */
32
- map: (t, e) => m.is(t) ? t.map(e) : e(t),
32
+ map: (t, e) => y.is(t) ? t.map(e) : e(t),
33
33
  /**
34
34
  * Wraps a value or a Signal instance into a Signal.
35
35
  * If the value is already a Signal, it returns the value itself.
@@ -40,7 +40,7 @@ const w = {
40
40
  * @param equals - A function that determines if two values are equal. Defaults to strict equality (===).
41
41
  * @returns A Signal instance.
42
42
  */
43
- toSignal: (t, e) => m.is(t) ? t.derive() : se(t, e),
43
+ toSignal: (t, e) => y.is(t) ? t.derive() : re(t, e),
44
44
  /**
45
45
  * Wraps a value in a `Signal` if it is not already a `Signal`.
46
46
  * If the value is `null` or `undefined`, it returns `null` or `undefined` respectively.
@@ -56,14 +56,14 @@ const w = {
56
56
  * @param value - The value or Signal instance to get the value from.
57
57
  * @returns The value.
58
58
  */
59
- get: (t) => m.is(t) ? t.get() : t,
59
+ get: (t) => y.is(t) ? t.get() : t,
60
60
  /**
61
61
  * Adds a listener to a `Signal` or calls the listener immediately if it is not a `Signal`.
62
62
  * @param value - The value or Signal instance to add the listener to.
63
63
  * @param listener - The listener to call when the value changes.
64
64
  * @returns A function to remove the listener.
65
65
  */
66
- on: (t, e) => m.is(t) ? t.on(e) : (e(t), () => {
66
+ on: (t, e) => y.is(t) ? t.on(e) : (e(t), () => {
67
67
  }),
68
68
  /**
69
69
  * Disposes of a value or a Signal.
@@ -72,7 +72,7 @@ const w = {
72
72
  * @param value - The value or Signal instance to dispose of.
73
73
  */
74
74
  dispose: (t) => {
75
- m.is(t) && t.dispose();
75
+ y.is(t) && t.dispose();
76
76
  },
77
77
  /**
78
78
  * Returns a function that disposes of a value or a Signal.
@@ -95,48 +95,48 @@ const w = {
95
95
  deriveProp: (t, {
96
96
  autoDisposeProp: e = !0,
97
97
  equals: s
98
- } = {}) => m.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : T(t, s),
98
+ } = {}) => y.is(t) ? t.deriveProp({ autoDisposeProp: e, equals: s }) : D(t, s),
99
99
  /**
100
100
  * Creates a new signal that emits `true` if the value is truthy, `false` otherwise.
101
101
  * @param value - The value or signal to check.
102
102
  * @returns A signal that emits `true` if the value is truthy, `false` otherwise.
103
103
  */
104
- truthy: (t) => w.map(t, be),
104
+ truthy: (t) => w.map(t, Se),
105
105
  /**
106
106
  * Creates a new signal that emits `true` if the value is falsy, `false` otherwise.
107
107
  * @param value - The value or signal to check.
108
108
  * @returns A signal that emits `true` if the value is falsy, `false` otherwise.
109
109
  */
110
- falsy: (t) => w.map(t, Je),
110
+ falsy: (t) => w.map(t, Ye),
111
111
  /**
112
112
  * Creates a new signal that emits `true` if the value is null or undefined, `false` otherwise.
113
113
  * @param value - The value or signal to check.
114
114
  * @returns A signal that emits `true` if the value is null or undefined, `false` otherwise.
115
115
  */
116
- nil: (t) => w.map(t, Ke),
116
+ nil: (t) => w.map(t, Xe),
117
117
  /**
118
118
  * Creates a new signal that emits `true` if the value is not null or undefined, `false` otherwise.
119
119
  * @param value - The value or signal to check.
120
120
  * @returns A signal that emits `true` if the value is not null or undefined, `false` otherwise.
121
121
  */
122
- defined: (t) => w.map(t, ze)
123
- }, Z = (...t) => (e, s) => {
122
+ defined: (t) => w.map(t, Qe)
123
+ }, te = (...t) => (e, s) => {
124
124
  if (t.length === 1)
125
125
  return w.toSignal(t[0]).map(e);
126
- const n = t.filter((r) => m.is(r));
127
- return te(
126
+ const n = t.filter((r) => y.is(r));
127
+ return ne(
128
128
  () => e(...t.map((r) => w.get(r))),
129
129
  n,
130
130
  s
131
131
  );
132
- }, es = (t) => {
132
+ }, ss = (t) => {
133
133
  const e = Object.keys(t);
134
- return Z(...Object.values(t))(
134
+ return te(...Object.values(t))(
135
135
  (...s) => Object.fromEntries(e.map((n, r) => [n, s[r]]))
136
136
  );
137
- }, Ye = (...t) => (e, s = {}) => {
138
- const n = t.filter((r) => m.is(r));
139
- return ve(
137
+ }, Ze = (...t) => (e, s = {}) => {
138
+ const n = t.filter((r) => y.is(r));
139
+ return _e(
140
140
  () => e(...t.map(w.get)),
141
141
  n,
142
142
  s
@@ -215,7 +215,7 @@ class q {
215
215
  * @public
216
216
  */
217
217
  prop(e, s) {
218
- const n = le(() => T(e, s));
218
+ const n = ae(() => D(e, s));
219
219
  return this.track(n), n;
220
220
  }
221
221
  /**
@@ -229,7 +229,7 @@ class q {
229
229
  * @public
230
230
  */
231
231
  computed(e, s, n) {
232
- const r = le(() => te(e, s, n));
232
+ const r = ae(() => ne(e, s, n));
233
233
  return this.track(r), r;
234
234
  }
235
235
  /**
@@ -243,7 +243,7 @@ class q {
243
243
  * @public
244
244
  */
245
245
  effect(e, s, n) {
246
- return O(this, () => ve(e, s, n));
246
+ return k(this, () => _e(e, s, n));
247
247
  }
248
248
  /**
249
249
  * Creates a computed signal with curried signature and tracks it in this scope.
@@ -255,7 +255,7 @@ class q {
255
255
  */
256
256
  computedOf(...e) {
257
257
  return (s, n) => {
258
- const r = le(() => Z(...e)(s, n));
258
+ const r = ae(() => te(...e)(s, n));
259
259
  return this.track(r), r;
260
260
  };
261
261
  }
@@ -268,39 +268,39 @@ class q {
268
268
  * @public
269
269
  */
270
270
  effectOf(...e) {
271
- return (s, n) => O(this, () => Ye(...e)(s, n));
271
+ return (s, n) => k(this, () => Ze(...e)(s, n));
272
272
  }
273
273
  }
274
- const _ = [], Xe = (t) => {
275
- _.push(t);
276
- }, Qe = () => {
277
- if (_.length === 0)
274
+ const A = [], et = (t) => {
275
+ A.push(t);
276
+ }, tt = () => {
277
+ if (A.length === 0)
278
278
  throw new Error("Cannot pop from empty scope stack");
279
- _.pop();
280
- }, he = () => _[_.length - 1] ?? null, ts = () => _, ss = () => _[_.length - 2] ?? null, O = (t, e) => {
281
- Xe(t);
279
+ A.pop();
280
+ }, de = () => A[A.length - 1] ?? null, ns = () => A, rs = () => A[A.length - 2] ?? null, k = (t, e) => {
281
+ et(t);
282
282
  try {
283
283
  return e();
284
284
  } finally {
285
- Qe();
285
+ tt();
286
286
  }
287
- }, ns = (t) => {
287
+ }, os = (t) => {
288
288
  const e = new q();
289
289
  try {
290
- return O(e, () => t(e));
290
+ return k(e, () => t(e));
291
291
  } finally {
292
292
  e.dispose();
293
293
  }
294
- }, le = (t) => {
295
- const e = _.slice();
296
- _.length = 0;
294
+ }, ae = (t) => {
295
+ const e = A.slice();
296
+ A.length = 0;
297
297
  try {
298
298
  return t();
299
299
  } finally {
300
- _.length = 0, _.push(...e);
300
+ A.length = 0, A.push(...e);
301
301
  }
302
302
  };
303
- class m {
303
+ class y {
304
304
  /**
305
305
  * Represents a signal with a value of type T.
306
306
  *
@@ -353,7 +353,7 @@ class m {
353
353
  * @returns A Signal that represents the result of the Promise
354
354
  */
355
355
  static ofPromise = (e, s, n, r = (o, i) => o === i) => {
356
- const o = new m(s, r);
356
+ const o = new y(s, r);
357
357
  return e.then((i) => o._setAndNotify(i)).catch((i) => {
358
358
  n != null ? o._setAndNotify(n(i)) : console.error(
359
359
  "Unhandled promise rejection in Signal.ofPromise:",
@@ -446,7 +446,7 @@ class m {
446
446
  const o = this._onValueListeners.indexOf(n);
447
447
  o !== -1 && this._onValueListeners.splice(o, 1), s.abortSignal != null && s.abortSignal.removeEventListener("abort", r);
448
448
  };
449
- return s.abortSignal != null && s.abortSignal.addEventListener("abort", r), !s.noAutoDispose && he()?.onDispose(r), r;
449
+ return s.abortSignal != null && s.abortSignal.addEventListener("abort", r), !s.noAutoDispose && de()?.onDispose(r), r;
450
450
  };
451
451
  /**
452
452
  * Registers a listener function to be called whenever the value of the signal changes.
@@ -558,7 +558,7 @@ class m {
558
558
  * @returns A new computed signal with the transformed value (auto-registered with current scope)
559
559
  */
560
560
  map = (e, s = (n, r) => n === r) => {
561
- const n = new N(() => {
561
+ const n = new R(() => {
562
562
  try {
563
563
  return e(this.get());
564
564
  } catch (r) {
@@ -578,7 +578,7 @@ class m {
578
578
  * @returns A new Signal that emits the values of the resulting Signal.
579
579
  */
580
580
  flatMap = (e, s = (n, r) => n === r) => {
581
- const n = new N(() => {
581
+ const n = new R(() => {
582
582
  try {
583
583
  return e(this.get()).get();
584
584
  } catch (r) {
@@ -616,7 +616,7 @@ class m {
616
616
  }
617
617
  filter = (e, s) => {
618
618
  let n = s ?? this.get();
619
- const r = new N(() => {
619
+ const r = new R(() => {
620
620
  try {
621
621
  const o = this.get();
622
622
  return n = e(o) ? o : n;
@@ -638,7 +638,7 @@ class m {
638
638
  */
639
639
  filterMap = (e, s, n = (r, o) => r === o) => {
640
640
  let r = s;
641
- const o = new N(() => {
641
+ const o = new R(() => {
642
642
  try {
643
643
  const i = this.get();
644
644
  return r = e(i) ?? r;
@@ -662,17 +662,17 @@ class m {
662
662
  * @returns A property that holds the mapped value and can be observed for changes.
663
663
  */
664
664
  mapAsync = (e, s, n, r = (o, i) => o === i) => {
665
- const o = T(s, r);
665
+ const o = D(s, r);
666
666
  let i = 0, l = new AbortController();
667
667
  return o.onDispose(
668
- this.on(async (c) => {
669
- const a = ++i;
668
+ this.on(async (a) => {
669
+ const c = ++i;
670
670
  l.abort(), l = new AbortController();
671
671
  try {
672
- const u = await e(c, { abortSignal: l.signal });
673
- a === i && o.set(u);
672
+ const u = await e(a, { abortSignal: l.signal });
673
+ c === i && o.set(u);
674
674
  } catch (u) {
675
- if (a === i)
675
+ if (c === i)
676
676
  if (n != null)
677
677
  o.set(n(u));
678
678
  else
@@ -712,7 +712,7 @@ class m {
712
712
  deriveProp = ({
713
713
  autoDisposeProp: e = !0,
714
714
  equals: s
715
- } = {}) => this.feedProp(T(this.get(), s), e);
715
+ } = {}) => this.feedProp(D(this.get(), s), e);
716
716
  /**
717
717
  * Derives a new signal from the current signal. Useful to create a new signal that emits the same values as the current signal but can be disposed independently.
718
718
  * @returns A new signal that emits the same values as the current signal.
@@ -741,8 +741,8 @@ class m {
741
741
  }), e.onDispose(this.on(e.setDirty, { noAutoDispose: !0 })), this.onDispose(e.dispose);
742
742
  };
743
743
  }
744
- const Ze = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
745
- class N extends m {
744
+ const st = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
745
+ class R extends y {
746
746
  /**
747
747
  * Creates a new Computed signal.
748
748
  *
@@ -768,7 +768,7 @@ class N extends m {
768
768
  * @see {@link untracked} - Create signals outside of scope tracking
769
769
  */
770
770
  constructor(e, s) {
771
- super(void 0, s), this._fn = e, this.setDirty(), he()?.track(this);
771
+ super(void 0, s), this._fn = e, this.setDirty(), de()?.track(this);
772
772
  }
773
773
  /**
774
774
  * Checks if a value is an instance of `Computed`.
@@ -806,7 +806,7 @@ class N extends m {
806
806
  */
807
807
  _scheduleNotify = () => {
808
808
  const e = ++this._scheduleCount;
809
- Ze(() => {
809
+ st(() => {
810
810
  this._scheduleCount !== e || this._disposed || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn()));
811
811
  });
812
812
  };
@@ -825,7 +825,7 @@ class N extends m {
825
825
  this._disposed || (this._scheduleCount++, this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
826
826
  };
827
827
  }
828
- class ee extends m {
828
+ class se extends y {
829
829
  /**
830
830
  * Checks if a value is a Prop.
831
831
  * @param value - The value to check.
@@ -886,7 +886,7 @@ class ee extends m {
886
886
  * @returns A Prop object representing the isomorphism.
887
887
  */
888
888
  iso = (e, s, n = (r, o) => r === o) => {
889
- const r = new ee(e(this.get()), n);
889
+ const r = new se(e(this.get()), n);
890
890
  return r.onDispose(this.on((o) => r.set(e(o)))), r.on((o) => this._setAndNotify(s(o))), r;
891
891
  };
892
892
  /**
@@ -909,10 +909,10 @@ class ee extends m {
909
909
  this._setAndNotify(e);
910
910
  }
911
911
  }
912
- const te = (t, e, s = (n, r) => n === r) => {
913
- const n = new N(t, s);
912
+ const ne = (t, e, s = (n, r) => n === r) => {
913
+ const n = new R(t, s);
914
914
  return e.forEach((r) => r.setDerivative(n)), n;
915
- }, ve = (t, e, s = {}) => {
915
+ }, _e = (t, e, s = {}) => {
916
916
  let n = s.once ? () => {
917
917
  o(), t();
918
918
  } : t;
@@ -923,28 +923,28 @@ const te = (t, e, s = (n, r) => n === r) => {
923
923
  i ? l() : i = !0;
924
924
  };
925
925
  }
926
- const r = te(n, e), o = () => {
926
+ const r = ne(n, e), o = () => {
927
927
  r.dispose(), s.abortSignal != null && s.abortSignal.removeEventListener("abort", o);
928
928
  };
929
929
  return s.abortSignal != null && s.abortSignal.addEventListener("abort", o), o;
930
- }, T = (t, e = (s, n) => s === n) => {
931
- const s = new ee(t, e);
932
- return he()?.track(s), s;
933
- }, se = (t, e = (s, n) => s === n) => new m(t, e), de = () => (
930
+ }, D = (t, e = (s, n) => s === n) => {
931
+ const s = new se(t, e);
932
+ return de()?.track(s), s;
933
+ }, re = (t, e = (s, n) => s === n) => new y(t, e), pe = () => (
934
934
  /* c8 ignore next */
935
935
  typeof window < "u" ? window : void 0
936
- ), et = (t, e, s) => t + (e - t) * s, me = 97, tt = (t, e, s) => {
936
+ ), nt = (t, e, s) => t + (e - t) * s, we = 97, rt = (t, e, s) => {
937
937
  const n = Math.max(t.length, e.length);
938
938
  let r = "";
939
939
  for (let o = 0; o < n; o++) {
940
940
  let i = t.charCodeAt(o);
941
- isNaN(i) && (i = me);
941
+ isNaN(i) && (i = we);
942
942
  let l = e.charCodeAt(o);
943
- isNaN(l) && (l = me), r += String.fromCharCode(i + (l - i) * s);
943
+ isNaN(l) && (l = we), r += String.fromCharCode(i + (l - i) * s);
944
944
  }
945
945
  return r;
946
- }, st = (t, e, s) => new Date(t.getTime() + (e.getTime() - t.getTime()) * s), nt = (t, e) => e, rt = (t) => typeof t == "number" ? et : typeof t == "string" ? tt : t instanceof Date ? st : nt;
947
- class Se {
946
+ }, ot = (t, e, s) => new Date(t.getTime() + (e.getTime() - t.getTime()) * s), it = (t, e) => e, lt = (t) => typeof t == "number" ? nt : typeof t == "string" ? rt : t instanceof Date ? ot : it;
947
+ class Ae {
948
948
  _store = /* @__PURE__ */ new Map();
949
949
  /**
950
950
  * Retrieves the value associated with the specified key from the memory store.
@@ -961,130 +961,130 @@ class Se {
961
961
  this._store.set(e, s);
962
962
  };
963
963
  }
964
- let ce = null, ae = null;
965
- const ot = () => (ce || (ce = new Se()), ce), it = () => (ae || (ae = new Se()), ae), _e = ({
964
+ let ce = null, ue = null;
965
+ const at = () => (ce || (ce = new Ae()), ce), ct = () => (ue || (ue = new Ae()), ue), Te = ({
966
966
  key: t,
967
967
  defaultValue: e,
968
968
  store: s,
969
969
  serialize: n = JSON.stringify,
970
970
  deserialize: r = JSON.parse,
971
- equals: o = (a, u) => a === u,
972
- onLoad: i = (a) => a,
971
+ equals: o = (c, u) => c === u,
972
+ onLoad: i = (c) => c,
973
973
  syncTabs: l = !0,
974
- onKeyChange: c = "load"
974
+ onKeyChange: a = "load"
975
975
  }) => {
976
- let a = w.get(t);
977
- const u = s.getItem(a), h = new ee(
976
+ let c = w.get(t);
977
+ const u = s.getItem(c), h = new se(
978
978
  u != null ? i(r(u)) : typeof e == "function" ? e() : e,
979
979
  o
980
- ), f = de(), p = l && typeof f?.BroadcastChannel == "function";
981
- let y = !1, b = null, P = null;
982
- const v = (S) => {
983
- if (!p) return null;
984
- const M = `tempo:storedProp:${S}`, E = new f.BroadcastChannel(M), I = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, L = (W) => {
985
- const A = W.data;
986
- if (!(A == null || typeof A != "object" || A.key !== S || typeof A.value != "string" || A.sourceId != null && A.sourceId === I))
980
+ ), p = pe(), d = l && typeof p?.BroadcastChannel == "function";
981
+ let g = !1, v = null, E = null;
982
+ const b = (S) => {
983
+ if (!d) return null;
984
+ const I = `tempo:storedProp:${S}`, x = new p.BroadcastChannel(I), H = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (G) => {
985
+ const C = G.data;
986
+ if (!(C == null || typeof C != "object" || C.key !== S || typeof C.value != "string" || C.sourceId != null && C.sourceId === H))
987
987
  try {
988
- y = !0;
989
- const ie = i(r(A.value));
990
- h.set(ie);
991
- } catch (ie) {
988
+ g = !0;
989
+ const le = i(r(C.value));
990
+ h.set(le);
991
+ } catch (le) {
992
992
  console.warn(
993
993
  `Failed to sync storedProp for key "${S}" via BroadcastChannel`,
994
- ie
994
+ le
995
995
  );
996
996
  } finally {
997
- y = !1;
997
+ g = !1;
998
998
  }
999
999
  };
1000
- return E.addEventListener("message", L), h.onDispose(() => {
1001
- E?.removeEventListener("message", L), E?.close();
1002
- }), { channel: E, instanceId: I, handleMessage: L };
1003
- }, x = v(a);
1004
- x && (b = x.channel, P = x.instanceId);
1005
- const F = (S) => {
1006
- const M = a;
1007
- if (M === S) return;
1008
- const E = h.get(), I = n(E);
1009
- if (s.setItem(M, I), b != null && (b.close(), b = null, P = null), a = S, c === "load") {
1010
- const W = s.getItem(S);
1011
- if (W != null)
1000
+ return x.addEventListener("message", O), h.onDispose(() => {
1001
+ x?.removeEventListener("message", O), x?.close();
1002
+ }), { channel: x, instanceId: H, handleMessage: O };
1003
+ }, L = b(c);
1004
+ L && (v = L.channel, E = L.instanceId);
1005
+ const U = (S) => {
1006
+ const I = c;
1007
+ if (I === S) return;
1008
+ const x = h.get(), H = n(x);
1009
+ if (s.setItem(I, H), v != null && (v.close(), v = null, E = null), c = S, a === "load") {
1010
+ const G = s.getItem(S);
1011
+ if (G != null)
1012
1012
  try {
1013
- const A = i(r(W));
1014
- h.set(A);
1015
- } catch (A) {
1013
+ const C = i(r(G));
1014
+ h.set(C);
1015
+ } catch (C) {
1016
1016
  console.warn(
1017
1017
  `Failed to load storedProp from new key "${S}"`,
1018
- A
1018
+ C
1019
1019
  );
1020
1020
  }
1021
1021
  else
1022
- s.setItem(S, I);
1023
- } else c === "migrate" && s.setItem(S, I);
1024
- const L = v(S);
1025
- L && (b = L.channel, P = L.instanceId);
1026
- };
1027
- return m.is(t) && h.onDispose(t.on(F)), h.on((S, M) => {
1028
- const E = n(S);
1029
- s.setItem(a, E), b != null && !y && M !== void 0 && P != null && b.postMessage({
1030
- key: a,
1031
- value: E,
1032
- sourceId: P
1022
+ s.setItem(S, H);
1023
+ } else a === "migrate" && s.setItem(S, H);
1024
+ const O = b(S);
1025
+ O && (v = O.channel, E = O.instanceId);
1026
+ };
1027
+ return y.is(t) && h.onDispose(t.on(U)), h.on((S, I) => {
1028
+ const x = n(S);
1029
+ s.setItem(c, x), v != null && !g && I !== void 0 && E != null && v.postMessage({
1030
+ key: c,
1031
+ value: x,
1032
+ sourceId: E
1033
1033
  });
1034
1034
  }), h;
1035
- }, rs = (t) => {
1036
- const e = de()?.localStorage, s = e && typeof e.getItem == "function" ? e : ot();
1037
- return _e({
1035
+ }, is = (t) => {
1036
+ const e = pe()?.localStorage, s = e && typeof e.getItem == "function" ? e : at();
1037
+ return Te({
1038
1038
  ...t,
1039
1039
  store: s
1040
1040
  });
1041
- }, os = (t) => {
1042
- const e = de()?.sessionStorage, s = e && typeof e.getItem == "function" ? e : it();
1043
- return _e({
1041
+ }, ls = (t) => {
1042
+ const e = pe()?.sessionStorage, s = e && typeof e.getItem == "function" ? e : ct();
1043
+ return Te({
1044
1044
  ...t,
1045
1045
  store: s
1046
1046
  });
1047
1047
  };
1048
- function ye(t) {
1048
+ function ve(t) {
1049
1049
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
1050
1050
  }
1051
- const lt = (t, e, s, n) => {
1052
- const r = n?.duration ?? 300, o = n?.easing ?? ((v) => v), i = n?.equals ?? ((v, x) => v === x);
1053
- let l = n?.interpolate, c = t, a = e(), u = performance.now(), h = null, f = !0;
1054
- const p = new N(e, i), y = T(t, i);
1055
- y.onDispose(() => {
1051
+ const ut = (t, e, s, n) => {
1052
+ const r = n?.duration ?? 300, o = n?.easing ?? ((b) => b), i = n?.equals ?? ((b, L) => b === L);
1053
+ let l = n?.interpolate, a = t, c = e(), u = performance.now(), h = null, p = !0;
1054
+ const d = new R(e, i), g = D(t, i);
1055
+ g.onDispose(() => {
1056
1056
  h !== null && cancelAnimationFrame(h);
1057
- }), y.onDispose(p.dispose), s.forEach((v) => {
1058
- v.setDerivative(p), v.onDispose(y.dispose);
1057
+ }), g.onDispose(d.dispose), s.forEach((b) => {
1058
+ b.setDerivative(d), b.onDispose(g.dispose);
1059
1059
  });
1060
- const b = (v) => {
1061
- a = v, u = performance.now(), c = y.value, f && (f = !1, h = ye(P));
1062
- }, P = () => {
1063
- const v = (performance.now() - u) / w.get(r), x = o(v);
1064
- l == null && (l = rt(c));
1065
- let F = l(c, a, x);
1066
- v >= 1 ? (f = !0, F = a) : h = ye(P), y.set(F);
1067
- };
1068
- return p.on(b), y;
1069
- }, is = (t, e) => {
1060
+ const v = (b) => {
1061
+ c = b, u = performance.now(), a = g.value, p && (p = !1, h = ve(E));
1062
+ }, E = () => {
1063
+ const b = (performance.now() - u) / w.get(r), L = o(b);
1064
+ l == null && (l = lt(a));
1065
+ let U = l(a, c, L);
1066
+ b >= 1 ? (p = !0, U = c) : h = ve(E), g.set(U);
1067
+ };
1068
+ return d.on(v), g;
1069
+ }, as = (t, e) => {
1070
1070
  const { initialValue: s, ...n } = e ?? {};
1071
- return lt(
1071
+ return ut(
1072
1072
  /* c8 ignore next 2 */
1073
1073
  s ?? t.get(),
1074
1074
  t.get,
1075
1075
  [t],
1076
1076
  n
1077
1077
  );
1078
- }, ct = (t, e) => {
1079
- const s = Object.values(t).filter(m.is), n = Object.keys(t);
1080
- return te(() => {
1078
+ }, ht = (t, e) => {
1079
+ const s = Object.values(t).filter(y.is), n = Object.keys(t);
1080
+ return ne(() => {
1081
1081
  const r = {};
1082
1082
  for (const o of n)
1083
1083
  r[o] = w.get(t[o]);
1084
1084
  return e(r);
1085
1085
  }, s);
1086
- }, ls = (t) => ct(t, (e) => e), cs = (t, e) => {
1087
- const s = T(t.get());
1086
+ }, cs = (t) => ht(t, (e) => e), us = (t, e) => {
1087
+ const s = D(t.get());
1088
1088
  let n = null;
1089
1089
  const r = t.on(
1090
1090
  (o) => {
@@ -1100,28 +1100,28 @@ const lt = (t, e, s, n) => {
1100
1100
  return s.onDispose(() => {
1101
1101
  r(), n != null && clearTimeout(n);
1102
1102
  }), s;
1103
- }, as = (t) => {
1103
+ }, hs = (t) => {
1104
1104
  let e;
1105
1105
  return t.map((s) => {
1106
1106
  const n = e;
1107
1107
  return e = s, n;
1108
1108
  });
1109
- }, us = ({
1109
+ }, ds = ({
1110
1110
  size: t = void 0,
1111
1111
  signal: e
1112
1112
  }) => {
1113
1113
  const s = [];
1114
1114
  return e.map((n) => (s.push(n), t != null && s.length > t && s.shift(), s.slice()));
1115
- }, hs = (t) => (...e) => Z(
1115
+ }, ps = (t) => (...e) => te(
1116
1116
  t,
1117
1117
  ...e
1118
1118
  )((s, ...n) => s(...n));
1119
- function ds(...t) {
1120
- return Z(...t)((...e) => {
1119
+ function fs(...t) {
1120
+ return te(...t)((...e) => {
1121
1121
  for (const s of e) if (s != null) return s;
1122
1122
  });
1123
1123
  }
1124
- class ue {
1124
+ class he {
1125
1125
  /**
1126
1126
  * Creates a new instance of `ElementPosition`.
1127
1127
  * @param index - The index of the element.
@@ -1169,12 +1169,12 @@ class ue {
1169
1169
  this.#e?.dispose(), this.#e = void 0;
1170
1170
  };
1171
1171
  }
1172
- const Ae = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @__PURE__ */ new Set(["selected"]), Ee = /* @__PURE__ */ new Set([
1172
+ const Ee = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ce = /* @__PURE__ */ new Set(["selected"]), De = /* @__PURE__ */ new Set([
1173
1173
  "rowSpan",
1174
1174
  "colSpan",
1175
1175
  "tabIndex",
1176
1176
  "valueAsNumber"
1177
- ]), Ce = /* @__PURE__ */ new Set(["valueAsDate"]), De = /* @__PURE__ */ new Set([
1177
+ ]), Pe = /* @__PURE__ */ new Set(["valueAsDate"]), xe = /* @__PURE__ */ new Set([
1178
1178
  "value",
1179
1179
  "textContent",
1180
1180
  "innerText",
@@ -1182,28 +1182,28 @@ const Ae = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Te = /* @
1182
1182
  "outerHTML",
1183
1183
  "className",
1184
1184
  "classList"
1185
- ]), at = (t, e) => Te.has(t) ? (s) => {
1185
+ ]), dt = (t, e) => Ce.has(t) ? (s) => {
1186
1186
  s == null || s !== !0 ? e.removeAttribute(t) : e.setAttribute(t, "");
1187
- } : Ae.has(t) ? (s) => {
1188
- s == null ? e[t] = null : e[t] = !!s;
1189
1187
  } : Ee.has(t) ? (s) => {
1188
+ s == null ? e[t] = null : e[t] = !!s;
1189
+ } : De.has(t) ? (s) => {
1190
1190
  s == null ? e[t] = null : e[t] = Number(s);
1191
- } : Ce.has(t) ? (s) => {
1191
+ } : Pe.has(t) ? (s) => {
1192
1192
  s == null ? e[t] = null : e[t] = s;
1193
- } : De.has(t) ? (s) => {
1193
+ } : xe.has(t) ? (s) => {
1194
1194
  s == null ? e[t] = null : e[t] = String(s);
1195
1195
  } : (s) => {
1196
1196
  s == null ? e.removeAttribute(t) : e.setAttribute(t, s);
1197
- }, ut = (t, e) => Te.has(t) ? () => e.hasAttribute(t) : Ae.has(t) ? () => !!e[t] : Ee.has(t) ? () => Number(e[t]) : Ce.has(t) ? () => e[t] : De.has(t) ? () => String(e[t]) : () => e.getAttribute(t), J = (t) => {
1197
+ }, pt = (t, e) => Ce.has(t) ? () => e.hasAttribute(t) : Ee.has(t) ? () => !!e[t] : De.has(t) ? () => Number(e[t]) : Pe.has(t) ? () => e[t] : xe.has(t) ? () => String(e[t]) : () => e.getAttribute(t), z = (t) => {
1198
1198
  const e = t;
1199
- e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
1200
- }, ht = (t) => Pe(t) ? t : t.parentElement, Pe = (t) => t.nodeType === 1;
1201
- class xe extends Error {
1199
+ e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentNode && t.parentNode.removeChild(t);
1200
+ }, ft = (t) => Le(t) || Oe(t) ? t : t.parentElement, Le = (t) => t.nodeType === 1, Oe = (t) => t.nodeType === 11;
1201
+ class ke extends Error {
1202
1202
  constructor(e) {
1203
1203
  super(`Provider not found: ${e.description}`);
1204
1204
  }
1205
1205
  }
1206
- class R {
1206
+ class j {
1207
1207
  /**
1208
1208
  * Constructs a new `DOMContext` instance.
1209
1209
  *
@@ -1225,7 +1225,7 @@ class R {
1225
1225
  * @returns A new `DOMContext` instance.
1226
1226
  */
1227
1227
  static of(e, s, n) {
1228
- return new R(e.ownerDocument, e, s, n);
1228
+ return new j(e.ownerDocument, e, s, n);
1229
1229
  }
1230
1230
  /**
1231
1231
  * Creates a new DOM element (eg: HTML or SVG) with the specified tag name and namespace.
@@ -1310,7 +1310,12 @@ class R {
1310
1310
  * @param element - The DOM element to use in the new `DOMContext` instance.
1311
1311
  * @returns A new `DOMContext` instance with the provided `element`.
1312
1312
  */
1313
- withElement = (e) => new R(this.document, e, void 0, this.providers);
1313
+ withElement = (e) => new j(
1314
+ e.ownerDocument ?? this.document,
1315
+ e,
1316
+ void 0,
1317
+ this.providers
1318
+ );
1314
1319
  /**
1315
1320
  * Creates a portal to render content in a different part of the DOM tree.
1316
1321
  *
@@ -1367,7 +1372,7 @@ class R {
1367
1372
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
1368
1373
  * @returns A new `DOMContext` instance with the specified reference.
1369
1374
  */
1370
- withReference = (e) => new R(this.document, this.element, e, this.providers);
1375
+ withReference = (e) => new j(this.document, this.element, e, this.providers);
1371
1376
  /**
1372
1377
  * Sets a provider for the given provider mark.
1373
1378
  *
@@ -1375,7 +1380,7 @@ class R {
1375
1380
  * @param value - The provider to set for the given mark.
1376
1381
  * @returns A new `DOMContext` instance with the specified provider.
1377
1382
  */
1378
- setProvider = (e, s, n) => new R(this.document, this.element, this.reference, {
1383
+ setProvider = (e, s, n) => new j(this.document, this.element, this.reference, {
1379
1384
  ...this.providers,
1380
1385
  [e]: [s, n]
1381
1386
  });
@@ -1388,12 +1393,12 @@ class R {
1388
1393
  */
1389
1394
  getProvider = (e) => {
1390
1395
  if (this.providers[e] === void 0)
1391
- throw new xe(e);
1396
+ throw new ke(e);
1392
1397
  const [s, n] = this.providers[e];
1393
1398
  return { value: s, onUse: n };
1394
1399
  };
1395
1400
  clear = (e) => {
1396
- e && (this.reference !== void 0 ? J(this.reference) : J(this.element));
1401
+ e && (this.reference !== void 0 ? z(this.reference) : z(this.element));
1397
1402
  };
1398
1403
  /**
1399
1404
  * Adds classes to the element.
@@ -1463,28 +1468,28 @@ class R {
1463
1468
  */
1464
1469
  getStyle = (e) => this.element.style[e];
1465
1470
  makeAccessors = (e) => ({
1466
- get: ut(e, this.element),
1467
- set: at(e, this.element)
1471
+ get: pt(e, this.element),
1472
+ set: dt(e, this.element)
1468
1473
  });
1469
1474
  getWindow = () => this.document.defaultView;
1470
1475
  }
1471
- const pe = (t, e) => {
1472
- const s = new q(), n = O(s, () => t.render(e));
1476
+ const B = (t, e) => {
1477
+ const s = new q(), n = k(s, () => t.render(e));
1473
1478
  return (r = !0) => {
1474
1479
  s.dispose(), n(r);
1475
1480
  };
1476
- }, ps = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1481
+ }, gs = (t, e, { doc: s, clear: n, disposeWithParent: r = !0, providers: o = {} } = {}) => {
1477
1482
  const i = typeof e == "string" ? (s ?? document).querySelector(e) : e;
1478
1483
  if (i === null)
1479
- throw new dt(
1484
+ throw new gt(
1480
1485
  `Cannot find element by selector for render: ${e}`
1481
1486
  );
1482
- n !== !1 && (s ?? i.ownerDocument) != null && i.nodeType === 1 && (i.innerHTML = "");
1483
- const l = ht(i), c = Pe(i) ? void 0 : i, a = R.of(l, c, o), u = pe(t, a);
1487
+ n !== !1 && (s ?? i.ownerDocument) != null && (i.nodeType === 1 || i.nodeType === 11) && (i.innerHTML = "");
1488
+ const l = ft(i), a = Le(i) || Oe(i) ? void 0 : i, c = j.of(l, a, o), u = B(t, c);
1484
1489
  let h;
1485
- return r && (h = new MutationObserver((f) => {
1486
- f[0]?.removedNodes.forEach((p) => {
1487
- p === i && (h?.disconnect(), u(i.nodeType !== 1));
1490
+ return r && i.parentElement != null && (h = new MutationObserver((p) => {
1491
+ p[0]?.removedNodes.forEach((d) => {
1492
+ d === i && (h?.disconnect(), u(i.nodeType !== 1));
1488
1493
  });
1489
1494
  }), h.observe(i.parentElement, {
1490
1495
  childList: !0,
@@ -1493,27 +1498,27 @@ const pe = (t, e) => {
1493
1498
  })), () => {
1494
1499
  h?.disconnect(), u(!0);
1495
1500
  };
1496
- }, fs = (t, {
1501
+ }, ms = (t, {
1497
1502
  startUrl: e = "https://example.com",
1498
1503
  selector: s,
1499
1504
  providers: n = {}
1500
1505
  } = {
1501
1506
  selector: "body"
1502
1507
  }) => {
1503
- const r = w.toSignal(e).deriveProp(), o = new Ie(s, void 0), i = new j(o, void 0, { currentURL: r }, n);
1508
+ const r = w.toSignal(e).deriveProp(), o = new $e(s, void 0), i = new V(o, void 0, { currentURL: r }, n);
1504
1509
  return {
1505
- clear: pe(t(), i),
1510
+ clear: B(t(), i),
1506
1511
  root: o,
1507
1512
  currentURL: r
1508
1513
  };
1509
1514
  };
1510
- class dt extends Error {
1515
+ class gt extends Error {
1511
1516
  constructor(e) {
1512
1517
  super(e);
1513
1518
  }
1514
1519
  }
1515
- const Le = "data-tts-node", K = "data-tts-class", z = "data-tts-style", Y = "data-tts-html", X = "data-tts-text", Q = "data-tts-attrs";
1516
- class gs {
1520
+ const Me = "data-tts-node", Y = "data-tts-class", X = "data-tts-style", Q = "data-tts-html", Z = "data-tts-text", ee = "data-tts-attrs";
1521
+ class ys {
1517
1522
  /**
1518
1523
  * Selects elements from the headless environment.
1519
1524
  * @param selector - The selector to select elements from. The supported selectors are CSS selectors whose complexity depends on the adapter implementation.
@@ -1595,13 +1600,13 @@ class gs {
1595
1600
  setClass: o,
1596
1601
  getStyles: i,
1597
1602
  setStyles: l,
1598
- appendHTML: c,
1599
- getInnerHTML: a,
1603
+ appendHTML: a,
1604
+ getInnerHTML: c,
1600
1605
  setInnerHTML: u,
1601
1606
  getInnerText: h,
1602
- setInnerText: f
1607
+ setInnerText: p
1603
1608
  }) {
1604
- this.select = e, this.getAttribute = s, this.setAttribute = n, this.getClass = r, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = c, this.getInnerHTML = a, this.setInnerHTML = u, this.getInnerText = h, this.setInnerText = f;
1609
+ this.select = e, this.getAttribute = s, this.setAttribute = n, this.getClass = r, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = a, this.getInnerHTML = c, this.setInnerHTML = u, this.getInnerText = h, this.setInnerText = p;
1605
1610
  }
1606
1611
  /**
1607
1612
  * Sets the content of the root element from a HeadlessPortal. Generally this will be the same instance that is
@@ -1622,21 +1627,21 @@ class gs {
1622
1627
  if (r.hasChildren() && this.appendHTML(i, r.contentToHTML(s)), r.hasInnerHTML()) {
1623
1628
  if (s) {
1624
1629
  const l = this.getInnerHTML(i);
1625
- l != null && this.setAttribute(i, Y, l);
1630
+ l != null && this.setAttribute(i, Q, l);
1626
1631
  }
1627
1632
  this.setInnerHTML(i, r.getInnerHTML());
1628
1633
  }
1629
1634
  if (r.hasInnerText()) {
1630
1635
  if (s) {
1631
1636
  const l = this.getInnerText(i);
1632
- l != null && this.setAttribute(i, X, l);
1637
+ l != null && this.setAttribute(i, Z, l);
1633
1638
  }
1634
1639
  this.setInnerText(i, r.getInnerText());
1635
1640
  }
1636
1641
  if (r.hasClasses()) {
1637
1642
  if (s) {
1638
1643
  const l = this.getClass(i);
1639
- l != null && this.setAttribute(i, K, l);
1644
+ l != null && this.setAttribute(i, Y, l);
1640
1645
  }
1641
1646
  this.setClass(i, r.getClasses().join(" "));
1642
1647
  }
@@ -1645,7 +1650,7 @@ class gs {
1645
1650
  const l = this.getStyles(i);
1646
1651
  Object.keys(l).length > 0 && this.setAttribute(
1647
1652
  i,
1648
- z,
1653
+ X,
1649
1654
  JSON.stringify(l)
1650
1655
  );
1651
1656
  }
@@ -1654,74 +1659,74 @@ class gs {
1654
1659
  if (r.hasAttributes()) {
1655
1660
  const l = r.getAttributes();
1656
1661
  if (s) {
1657
- const c = [];
1658
- l.forEach(([a]) => {
1659
- const u = this.getAttribute(i, a);
1660
- u != null && c.push([a, u]);
1661
- }), c.length > 0 && this.setAttribute(
1662
+ const a = [];
1663
+ l.forEach(([c]) => {
1664
+ const u = this.getAttribute(i, c);
1665
+ u != null && a.push([c, u]);
1666
+ }), a.length > 0 && this.setAttribute(
1662
1667
  i,
1663
- Q,
1664
- JSON.stringify(Object.fromEntries(c))
1668
+ ee,
1669
+ JSON.stringify(Object.fromEntries(a))
1665
1670
  );
1666
1671
  }
1667
- l.forEach(([c, a]) => {
1668
- this.setAttribute(i, c, a);
1672
+ l.forEach(([a, c]) => {
1673
+ this.setAttribute(i, a, c);
1669
1674
  });
1670
1675
  }
1671
1676
  }
1672
1677
  });
1673
1678
  };
1674
1679
  }
1675
- const pt = () => {
1676
- document.querySelectorAll(`[${Le}]`).forEach(J);
1677
- }, ft = (t) => {
1678
- const e = t.getAttribute(K);
1679
- t.removeAttribute(K), e != null && t.setAttribute("class", e);
1680
- }, gt = () => {
1681
- document.querySelectorAll(`[${K}]`).forEach((e) => ft(e));
1682
- }, mt = (t) => {
1680
+ const mt = () => {
1681
+ document.querySelectorAll(`[${Me}]`).forEach(z);
1682
+ }, yt = (t) => {
1683
1683
  const e = t.getAttribute(Y);
1684
- t.removeAttribute(Y), e != null && (t.innerHTML = e);
1685
- }, yt = () => {
1686
- document.querySelectorAll(`[${Y}]`).forEach((e) => mt(e));
1687
- }, wt = (t) => {
1688
- const e = t.getAttribute(X);
1689
- t.removeAttribute(X), e != null && (t.innerText = e);
1684
+ t.removeAttribute(Y), e != null && t.setAttribute("class", e);
1685
+ }, wt = () => {
1686
+ document.querySelectorAll(`[${Y}]`).forEach((e) => yt(e));
1687
+ }, vt = (t) => {
1688
+ const e = t.getAttribute(Q);
1689
+ t.removeAttribute(Q), e != null && (t.innerHTML = e);
1690
1690
  }, bt = () => {
1691
- document.querySelectorAll(`[${X}]`).forEach((e) => wt(e));
1692
- }, Oe = (t) => JSON.parse(t.replace(/&quot;/g, '"')), vt = (t) => {
1693
- const e = t.getAttribute(z);
1694
- if (t.removeAttribute(z), e != null) {
1695
- const s = Oe(e);
1691
+ document.querySelectorAll(`[${Q}]`).forEach((e) => vt(e));
1692
+ }, St = (t) => {
1693
+ const e = t.getAttribute(Z);
1694
+ t.removeAttribute(Z), e != null && (t.innerText = e);
1695
+ }, _t = () => {
1696
+ document.querySelectorAll(`[${Z}]`).forEach((e) => St(e));
1697
+ }, Ie = (t) => JSON.parse(t.replace(/&quot;/g, '"')), At = (t) => {
1698
+ const e = t.getAttribute(X);
1699
+ if (t.removeAttribute(X), e != null) {
1700
+ const s = Ie(e);
1696
1701
  Object.entries(s).forEach(([n, r]) => {
1697
1702
  t.style.setProperty(n, r);
1698
1703
  });
1699
1704
  }
1700
- }, St = () => {
1701
- document.querySelectorAll(`[${z}]`).forEach((e) => vt(e));
1702
- }, _t = (t) => {
1703
- const e = t.getAttribute(Q);
1704
- if (t.removeAttribute(Q), e != null) {
1705
- const s = Oe(e);
1705
+ }, Tt = () => {
1706
+ document.querySelectorAll(`[${X}]`).forEach((e) => At(e));
1707
+ }, Et = (t) => {
1708
+ const e = t.getAttribute(ee);
1709
+ if (t.removeAttribute(ee), e != null) {
1710
+ const s = Ie(e);
1706
1711
  Object.entries(s).forEach(([n, r]) => {
1707
1712
  r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
1708
1713
  });
1709
1714
  }
1710
- }, At = () => {
1711
- document.querySelectorAll(`[${Q}]`).forEach((e) => _t(e));
1712
- }, ms = () => {
1713
- pt(), gt(), bt(), yt(), St(), At();
1714
- }, H = Symbol("class"), $ = Symbol("style"), U = Symbol("handler"), ke = () => Math.random().toString(36).substring(2, 15), Tt = (t) => t.replace(/<[^>]*>?/g, "");
1715
- class Me {
1715
+ }, Ct = () => {
1716
+ document.querySelectorAll(`[${ee}]`).forEach((e) => Et(e));
1717
+ }, ws = () => {
1718
+ mt(), wt(), _t(), bt(), Tt(), Ct();
1719
+ }, N = Symbol("class"), $ = Symbol("style"), J = Symbol("handler"), He = () => Math.random().toString(36).substring(2, 15), Dt = (t) => t.replace(/<[^>]*>?/g, "");
1720
+ class Ne {
1716
1721
  constructor(e) {
1717
1722
  this.parent = e;
1718
1723
  }
1719
- id = ke();
1724
+ id = He();
1720
1725
  properties = {};
1721
1726
  children = [];
1722
1727
  isElement = () => !0;
1723
1728
  isText = () => !1;
1724
- getText = () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? Tt(this.properties.innerHTML) : this.children.map((e) => e.getText()).join("");
1729
+ getText = () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? Dt(this.properties.innerHTML) : this.children.map((e) => e.getText()).join("");
1725
1730
  removeChild = (e) => {
1726
1731
  const s = this.children.indexOf(e);
1727
1732
  s !== -1 && this.children.splice(s, 1);
@@ -1742,10 +1747,10 @@ class Me {
1742
1747
  getInnerText = () => this.properties.innerText ?? "";
1743
1748
  hasInnerText = () => this.properties.innerText != null;
1744
1749
  hasChildren = () => this.children.length > 0;
1745
- hasClasses = () => this.properties[H] != null;
1750
+ hasClasses = () => this.properties[N] != null;
1746
1751
  hasStyles = () => this.properties[$] != null;
1747
1752
  hasAttributes = () => Object.keys(this.properties).length > 0;
1748
- hasHandlers = () => this.properties[U] != null;
1753
+ hasHandlers = () => this.properties[J] != null;
1749
1754
  hasRenderableProperties = () => this.hasClasses() || this.hasAttributes() || this.hasStyles();
1750
1755
  getById = (e) => {
1751
1756
  if (this.properties.id === e)
@@ -1757,26 +1762,26 @@ class Me {
1757
1762
  }
1758
1763
  };
1759
1764
  trigger = (e, s) => {
1760
- ((this.properties[U] ?? {})[e] ?? []).forEach((r) => r(s));
1765
+ ((this.properties[J] ?? {})[e] ?? []).forEach((r) => r(s));
1761
1766
  };
1762
1767
  click = () => {
1763
1768
  this.trigger("click", {});
1764
1769
  };
1765
1770
  on = (e, s, n, r) => {
1766
- const o = this.properties[U] ??= {}, i = r?.once ? (c) => {
1767
- l(), s(c, n);
1768
- } : (c) => s(c, n);
1771
+ const o = this.properties[J] ??= {}, i = r?.once ? (a) => {
1772
+ l(), s(a, n);
1773
+ } : (a) => s(a, n);
1769
1774
  o[e] = [...o[e] ?? [], i];
1770
1775
  const l = () => {
1771
- const c = o[e] ?? [], a = c.indexOf(i);
1772
- a !== -1 && (c.splice(a, 1), c.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[U]) : o[e] = c, r?.signal != null && r.signal.removeEventListener("abort", l));
1776
+ const a = o[e] ?? [], c = a.indexOf(i);
1777
+ c !== -1 && (a.splice(c, 1), a.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[J]) : o[e] = a, r?.signal != null && r.signal.removeEventListener("abort", l));
1773
1778
  };
1774
1779
  return r?.signal != null && r.signal.addEventListener("abort", l), l;
1775
1780
  };
1776
1781
  addClasses = (e) => {
1777
1782
  if (e.length === 0)
1778
1783
  return;
1779
- const s = this.properties[H] ??= [];
1784
+ const s = this.properties[N] ??= [];
1780
1785
  e.forEach((n) => {
1781
1786
  s.includes(n) || s.push(n);
1782
1787
  });
@@ -1784,18 +1789,18 @@ class Me {
1784
1789
  removeClasses = (e) => {
1785
1790
  if (e.length === 0)
1786
1791
  return;
1787
- const s = this.properties[H] ??= [];
1792
+ const s = this.properties[N] ??= [];
1788
1793
  e.forEach((n) => {
1789
1794
  const r = s.indexOf(n);
1790
1795
  r !== -1 && s.splice(r, 1);
1791
- }), s.length === 0 && delete this.properties[H];
1796
+ }), s.length === 0 && delete this.properties[N];
1792
1797
  };
1793
- getClasses = () => this.properties[H] ?? [];
1798
+ getClasses = () => this.properties[N] ?? [];
1794
1799
  getAttributes = () => Object.entries(this.properties).filter(
1795
1800
  ([e]) => !["innerText", "innerHTML"].includes(e)
1796
1801
  );
1797
1802
  getVisibleAttributes = () => Reflect.ownKeys(this.properties).flatMap(
1798
- (e) => e === H ? [["class", this.getClasses()]] : e === $ ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1803
+ (e) => e === N ? [["class", this.getClasses()]] : e === $ ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1799
1804
  );
1800
1805
  setStyle = (e, s) => {
1801
1806
  const n = this.properties[$] ??= {};
@@ -1811,8 +1816,8 @@ class Me {
1811
1816
  };
1812
1817
  };
1813
1818
  }
1814
- const Et = (t) => t.replace(/"/g, "&quot;"), Ct = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1815
- class Dt extends Me {
1819
+ const Pt = (t) => t.replace(/"/g, "&quot;"), xt = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1820
+ class Lt extends Ne {
1816
1821
  constructor(e, s, n) {
1817
1822
  super(n), this.tagName = e, this.namespace = s;
1818
1823
  }
@@ -1820,11 +1825,11 @@ class Dt extends Me {
1820
1825
  toHTML = (e = !1) => {
1821
1826
  const s = this.children.map((l) => l.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1822
1827
  let r = null;
1823
- const o = this.getVisibleAttributes().map(([l, c]) => l === "class" ? ` class="${c.join(" ")}"` : l === "style" ? typeof c == "string" ? ` style="${c}"` : ` style="${Object.entries(c).map(([a, u]) => `${a}: ${u};`).join(" ")}"` : xt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = c, "") : l === "innerText" ? (r = Ct(c), "") : ` ${l}="${Et(c)}"`).join(""), i = e ? ` ${Le}` : "";
1824
- return Lt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1828
+ const o = this.getVisibleAttributes().map(([l, a]) => l === "class" ? ` class="${a.join(" ")}"` : l === "style" ? typeof a == "string" ? ` style="${a}"` : ` style="${Object.entries(a).map(([c, u]) => `${c}: ${u};`).join(" ")}"` : kt.has(l) ? ` ${l}` : l === "innerHTML" ? (r = a, "") : l === "innerText" ? (r = xt(a), "") : ` ${l}="${Pt(a)}"`).join(""), i = e ? ` ${Me}` : "";
1829
+ return Mt.has(this.tagName) && s === "" ? `<${this.tagName}${n}${o}${i} />` : `<${this.tagName}${n}${o}${i}>${r ?? s}</${this.tagName}>`;
1825
1830
  };
1826
1831
  }
1827
- class Ie extends Me {
1832
+ class $e extends Ne {
1828
1833
  constructor(e, s) {
1829
1834
  super(s), this.selector = e;
1830
1835
  }
@@ -1832,17 +1837,17 @@ class Ie extends Me {
1832
1837
  toHTML = () => "";
1833
1838
  contentToHTML = (e = !1) => this.children.map((s) => s.toHTML(e)).join("");
1834
1839
  }
1835
- class Pt {
1840
+ class Ot {
1836
1841
  constructor(e) {
1837
1842
  this.text = e;
1838
1843
  }
1839
- id = ke();
1844
+ id = He();
1840
1845
  isElement = () => !1;
1841
1846
  isText = () => !0;
1842
1847
  getText = () => this.text;
1843
1848
  toHTML = () => this.text;
1844
1849
  }
1845
- class j {
1850
+ class V {
1846
1851
  constructor(e, s, n, r) {
1847
1852
  this.element = e, this.reference = s, this.container = n, this.providers = r;
1848
1853
  }
@@ -1854,8 +1859,8 @@ class j {
1854
1859
  this.element.children.push(e);
1855
1860
  };
1856
1861
  makeChildElement = (e, s) => {
1857
- const n = new Dt(e, s, this.element);
1858
- return this.appendOrInsert(n), new j(
1862
+ const n = new Lt(e, s, this.element);
1863
+ return this.appendOrInsert(n), new V(
1859
1864
  n,
1860
1865
  void 0,
1861
1866
  this.container,
@@ -1863,8 +1868,8 @@ class j {
1863
1868
  );
1864
1869
  };
1865
1870
  makeChildText = (e) => {
1866
- const s = new Pt(e);
1867
- return this.appendOrInsert(s), new j(
1871
+ const s = new Ot(e);
1872
+ return this.appendOrInsert(s), new V(
1868
1873
  this.element,
1869
1874
  s,
1870
1875
  this.container,
@@ -1877,8 +1882,8 @@ class j {
1877
1882
  getText = () => this.reference?.getText() ?? this.element.getText();
1878
1883
  makeRef = () => this.makeChildText("");
1879
1884
  makePortal = (e) => {
1880
- const s = new Ie(e, this.element);
1881
- return this.appendOrInsert(s), new j(
1885
+ const s = new $e(e, this.element);
1886
+ return this.appendOrInsert(s), new V(
1882
1887
  s,
1883
1888
  void 0,
1884
1889
  this.container,
@@ -1892,13 +1897,13 @@ class j {
1892
1897
  * @param value - The provider to set for the given mark.
1893
1898
  * @returns A new `DOMContext` instance with the specified provider.
1894
1899
  */
1895
- setProvider = (e, s, n) => new j(this.element, this.reference, this.container, {
1900
+ setProvider = (e, s, n) => new V(this.element, this.reference, this.container, {
1896
1901
  ...this.providers,
1897
1902
  [e]: [s, n]
1898
1903
  });
1899
1904
  getProvider = (e) => {
1900
1905
  if (this.providers[e] === void 0)
1901
- throw new xe(e);
1906
+ throw new ke(e);
1902
1907
  const [s, n] = this.providers[e];
1903
1908
  return { value: s, onUse: n };
1904
1909
  };
@@ -1917,30 +1922,30 @@ class j {
1917
1922
  getStyle = (e) => this.element.getStyle(e);
1918
1923
  makeAccessors = (e) => this.element.makeAccessors(e);
1919
1924
  }
1920
- const xt = /* @__PURE__ */ new Set([
1925
+ const kt = /* @__PURE__ */ new Set([
1921
1926
  "checked",
1922
1927
  "disabled",
1923
1928
  "multiple",
1924
1929
  "readonly",
1925
1930
  "required",
1926
1931
  "selected"
1927
- ]), Lt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), ys = () => (
1932
+ ]), Mt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), vs = () => (
1928
1933
  /* c8 ignore next */
1929
1934
  typeof window < "u" ? window : void 0
1930
- ), Ot = Symbol("DOM_RENDERABLE"), g = (t) => Ge(Ot, t), He = (t) => g((e) => e.makeChildText(t).clear), $e = (t) => g((e) => {
1935
+ ), It = Symbol("DOM_RENDERABLE"), m = (t) => ze(It, t), Re = (t) => m((e) => e.makeChildText(t).clear), je = (t) => m((e) => {
1931
1936
  const s = e.makeChildText(t.value), n = t.on(s.setText);
1932
1937
  return (r) => {
1933
1938
  n(), s.clear(r);
1934
1939
  };
1935
- }), ws = (t) => m.is(t) ? $e(t) : He(t), C = (...t) => g((e) => {
1936
- const s = t.map((n) => d(n).render(e));
1940
+ }), bs = (t) => y.is(t) ? je(t) : Re(t), T = (...t) => m((e) => {
1941
+ const s = t.map((n) => f(n).render(e));
1937
1942
  return (n) => {
1938
1943
  s.forEach((r) => r(n));
1939
1944
  };
1940
- }), D = g(() => () => {
1941
- }), kt = (t) => g((e) => (e.addClasses(t), (s) => {
1945
+ }), P = m(() => () => {
1946
+ }), Ht = (t) => m((e) => (e.addClasses(t), (s) => {
1942
1947
  s && e.removeClasses(t);
1943
- })), Mt = (t) => g((e) => {
1948
+ })), Nt = (t) => m((e) => {
1944
1949
  let s = [];
1945
1950
  const n = t.on(
1946
1951
  (r) => {
@@ -1951,20 +1956,20 @@ const xt = /* @__PURE__ */ new Set([
1951
1956
  return (r) => {
1952
1957
  n(), r && e.removeClasses(s), s.length = 0;
1953
1958
  };
1954
- }), It = (t, e) => g((s) => {
1959
+ }), $t = (t, e) => m((s) => {
1955
1960
  const { get: n, set: r } = s.makeAccessors(t), o = n();
1956
1961
  return r(e), (i) => {
1957
1962
  i && r(o);
1958
1963
  };
1959
- }), Ht = (t, e) => g((s) => {
1964
+ }), Rt = (t, e) => m((s) => {
1960
1965
  const { get: n, set: r } = s.makeAccessors(t), o = n(), i = e.on(r, { noAutoDispose: !0 });
1961
1966
  return (l) => {
1962
1967
  i(), l && r(o);
1963
1968
  };
1964
- }), B = (t, e) => m.is(e) ? Ht(t, e) : It(t, e), $t = (t, e) => t === "class" ? m.is(e) ? Mt(e) : kt(
1969
+ }), F = (t, e) => y.is(e) ? Rt(t, e) : $t(t, e), jt = (t, e) => t === "class" ? y.is(e) ? Nt(e) : Ht(
1965
1970
  /* c8 ignore next */
1966
1971
  (e ?? "").split(" ").filter((s) => s.length > 0)
1967
- ) : B(t, e), V = new Proxy(
1972
+ ) : F(t, e), _ = new Proxy(
1968
1973
  {},
1969
1974
  {
1970
1975
  /**
@@ -1978,9 +1983,9 @@ const xt = /* @__PURE__ */ new Set([
1978
1983
  * @returns The renderable component for the specified attribute.
1979
1984
  *
1980
1985
  */
1981
- get: (t, e) => (s) => $t(e, s)
1986
+ get: (t, e) => (s) => jt(e, s)
1982
1987
  }
1983
- ), Nt = (t, e) => B(`data-${t}`, e), bs = new Proxy(
1988
+ ), Vt = (t, e) => F(`data-${t}`, e), Ss = new Proxy(
1984
1989
  {},
1985
1990
  {
1986
1991
  /**
@@ -1991,9 +1996,9 @@ const xt = /* @__PURE__ */ new Set([
1991
1996
  * @returns The renderable component for the specified attribute.
1992
1997
  *
1993
1998
  */
1994
- get: (t, e) => (s) => Nt(e, s)
1999
+ get: (t, e) => (s) => Vt(e, s)
1995
2000
  }
1996
- ), Rt = (t, e) => B(`aria-${t}`, e), vs = new Proxy(
2001
+ ), qt = (t, e) => F(`aria-${t}`, e), _s = new Proxy(
1997
2002
  {},
1998
2003
  {
1999
2004
  /**
@@ -2004,9 +2009,9 @@ const xt = /* @__PURE__ */ new Set([
2004
2009
  * @returns The renderable component for the specified attribute.
2005
2010
  *
2006
2011
  */
2007
- get: (t, e) => (s) => Rt(e, s)
2012
+ get: (t, e) => (s) => qt(e, s)
2008
2013
  }
2009
- ), jt = (t, e) => B(t, e), Ss = new Proxy(
2014
+ ), Bt = (t, e) => F(t, e), As = new Proxy(
2010
2015
  {},
2011
2016
  {
2012
2017
  /**
@@ -2017,9 +2022,9 @@ const xt = /* @__PURE__ */ new Set([
2017
2022
  * @returns The renderable component for the specified attribute.
2018
2023
  *
2019
2024
  */
2020
- get: (t, e) => (s) => jt(e, s)
2025
+ get: (t, e) => (s) => Bt(e, s)
2021
2026
  }
2022
- ), Vt = (t, e) => B(t, e), _s = new Proxy(
2027
+ ), Ft = (t, e) => F(t, e), Ts = new Proxy(
2023
2028
  {},
2024
2029
  {
2025
2030
  /**
@@ -2029,31 +2034,31 @@ const xt = /* @__PURE__ */ new Set([
2029
2034
  * @returns The renderable component for the specified attribute.
2030
2035
  *
2031
2036
  */
2032
- get: (t, e) => (s) => Vt(e, s)
2037
+ get: (t, e) => (s) => Ft(e, s)
2033
2038
  }
2034
- ), d = (t) => {
2039
+ ), f = (t) => {
2035
2040
  if (t == null)
2036
- return D;
2041
+ return P;
2037
2042
  if (Array.isArray(t))
2038
- return C(...t.map(d));
2043
+ return T(...t.map(f));
2039
2044
  if (typeof t == "string")
2040
- return He(t);
2041
- if (m.is(t))
2042
- return $e(t);
2045
+ return Re(t);
2046
+ if (y.is(t))
2047
+ return je(t);
2043
2048
  if (typeof t == "object" && "render" in t && "type" in t)
2044
2049
  return t;
2045
2050
  throw new Error(`Unknown type: '${typeof t}' for child: ${t}`);
2046
- }, Ne = (t, ...e) => g((s) => {
2047
- const n = s.makeChildElement(t, void 0), r = e.map((o) => d(o).render(n));
2051
+ }, Ve = (t, ...e) => m((s) => {
2052
+ const n = s.makeChildElement(t, void 0), r = e.map((o) => f(o).render(n));
2048
2053
  return (o) => {
2049
2054
  r.forEach((i) => i(!1)), n.clear(o);
2050
2055
  };
2051
- }), ne = (t, e, ...s) => g((n) => {
2052
- const r = n.makeChildElement(t, e), o = s.map((i) => d(i).render(r));
2056
+ }), oe = (t, e, ...s) => m((n) => {
2057
+ const r = n.makeChildElement(t, e), o = s.map((i) => f(i).render(r));
2053
2058
  return (i) => {
2054
2059
  o.forEach((l) => l(!1)), r.clear(i);
2055
2060
  };
2056
- }), As = new Proxy(
2061
+ }), Wt = new Proxy(
2057
2062
  {},
2058
2063
  {
2059
2064
  /**
@@ -2061,9 +2066,9 @@ const xt = /* @__PURE__ */ new Set([
2061
2066
  * @param tagName - The HTML tag name.
2062
2067
  * @returns A renderable function that creates and appends the HTML element to the DOM.
2063
2068
  */
2064
- get: (t, e) => (...s) => Ne(e, s.flatMap(d))
2069
+ get: (t, e) => (...s) => Ve(e, s.flatMap(f))
2065
2070
  }
2066
- ), Ts = new Proxy(
2071
+ ), Es = new Proxy(
2067
2072
  {},
2068
2073
  {
2069
2074
  /**
@@ -2071,9 +2076,9 @@ const xt = /* @__PURE__ */ new Set([
2071
2076
  * @param type - The input type name.
2072
2077
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
2073
2078
  */
2074
- get: (t, e) => (...s) => Ne("input", V.type(e), ...s)
2079
+ get: (t, e) => (...s) => Ve("input", _.type(e), ...s)
2075
2080
  }
2076
- ), Re = "http://www.w3.org/2000/svg", Es = (t, ...e) => ne(t, Re, ...e), Cs = new Proxy(
2081
+ ), qe = "http://www.w3.org/2000/svg", Cs = (t, ...e) => oe(t, qe, ...e), Ds = new Proxy(
2077
2082
  {},
2078
2083
  {
2079
2084
  /**
@@ -2081,9 +2086,9 @@ const xt = /* @__PURE__ */ new Set([
2081
2086
  * @param tagName - The SVG tag name.
2082
2087
  * @returns A renderable function that creates and appends the SVG element to the DOM.
2083
2088
  */
2084
- get: (t, e) => (...s) => ne(e, Re, s.flatMap(d))
2089
+ get: (t, e) => (...s) => oe(e, qe, s.flatMap(f))
2085
2090
  }
2086
- ), je = "http://www.w3.org/1998/Math/MathML", Ds = (t, ...e) => ne(t, je, ...e), Ps = new Proxy(
2091
+ ), Be = "http://www.w3.org/1998/Math/MathML", Ps = (t, ...e) => oe(t, Be, ...e), xs = new Proxy(
2087
2092
  {},
2088
2093
  {
2089
2094
  /**
@@ -2091,35 +2096,35 @@ const xt = /* @__PURE__ */ new Set([
2091
2096
  * @param tagName - The Math tag name.
2092
2097
  * @returns A renderable function that creates and appends the Math element to the DOM.
2093
2098
  */
2094
- get: (t, e) => (...s) => ne(e, je, s.flatMap(d))
2099
+ get: (t, e) => (...s) => oe(e, Be, s.flatMap(f))
2095
2100
  }
2096
- ), Ve = (t, e) => {
2101
+ ), Fe = (t, e) => {
2097
2102
  if (typeof e == "function")
2098
- return Ve(t, { then: e });
2099
- const s = e.pending != null ? d(e.pending()) : D, n = e.then, r = e.error != null ? (o) => d(e.error(o)) : () => D;
2100
- return g((o) => {
2103
+ return Fe(t, { then: e });
2104
+ const s = e.pending != null ? f(e.pending()) : P, n = e.then, r = e.error != null ? (o) => f(e.error(o)) : () => P;
2105
+ return m((o) => {
2101
2106
  let i = !0;
2102
- const l = t(), c = o.makeRef();
2103
- let a = d(s).render(c);
2107
+ const l = t(), a = o.makeRef();
2108
+ let c = f(s).render(a);
2104
2109
  return l.then(
2105
2110
  (u) => {
2106
- i && (a(!0), a = d(n(u)).render(c));
2111
+ i && (c(!0), c = f(n(u)).render(a));
2107
2112
  },
2108
2113
  (u) => {
2109
- i && (a(!0), a = d(r(u)).render(c));
2114
+ i && (c(!0), c = f(r(u)).render(a));
2110
2115
  }
2111
2116
  ), (u) => {
2112
- i = !1, a(u), c.clear(u);
2117
+ i = !1, c(u), a.clear(u);
2113
2118
  };
2114
2119
  });
2115
- }, xs = (t, e) => Ve(() => t, e), qe = (t, e, s) => g((n) => n.on(t, e, s)), qt = (t) => qe("click", (e, s) => {
2120
+ }, Ls = (t, e) => Fe(() => t, e), We = (t, e, s) => m((n) => n.on(t, e, s)), Ut = (t) => We("click", (e, s) => {
2116
2121
  e.preventDefault();
2117
2122
  const n = e.target;
2118
2123
  setTimeout(() => {
2119
2124
  const r = n.ownerDocument != null ? n?.checked : void 0;
2120
2125
  r != null && t(!r, s);
2121
2126
  }, 0);
2122
- }), re = new Proxy(
2127
+ }), W = new Proxy(
2123
2128
  {},
2124
2129
  {
2125
2130
  /**
@@ -2127,20 +2132,20 @@ const xt = /* @__PURE__ */ new Set([
2127
2132
  * @param fn - The function to call when the event is triggered.
2128
2133
  * @returns A `Renderable` function that adds the event listener to the element.
2129
2134
  */
2130
- get: (t, e) => (s) => qe(e, s)
2135
+ get: (t, e) => (s) => We(e, s)
2131
2136
  }
2132
- ), Bt = (t, e) => (s) => {
2137
+ ), Gt = (t, e) => (s) => {
2133
2138
  e?.preventDefault === !0 && s.preventDefault(), e?.stopPropagation === !0 && s.stopPropagation(), e?.stopImmediatePropagation === !0 && s.stopImmediatePropagation(), t(s);
2134
- }, k = (t, e) => Bt((s) => {
2139
+ }, M = (t, e) => Gt((s) => {
2135
2140
  const n = s.target;
2136
2141
  t(n, s);
2137
- }, e), Ft = (t, e) => k(
2142
+ }, e), Jt = (t, e) => M(
2138
2143
  (s, n) => t(s.value, n),
2139
2144
  e
2140
- ), Wt = (t, e) => k(
2145
+ ), Kt = (t, e) => M(
2141
2146
  (s, n) => t(s.valueAsNumber, n),
2142
2147
  e
2143
- ), Ut = (t, e) => k((s, n) => {
2148
+ ), zt = (t, e) => M((s, n) => {
2144
2149
  if (s.value === "")
2145
2150
  return;
2146
2151
  const r = s.value.split("-"), o = new Date(
@@ -2149,7 +2154,7 @@ const xt = /* @__PURE__ */ new Set([
2149
2154
  Number(r[2].substring(0, 2))
2150
2155
  );
2151
2156
  t(o, n);
2152
- }, e), Ls = (t, e) => k((s, n) => {
2157
+ }, e), Os = (t, e) => M((s, n) => {
2153
2158
  if (s.value === "") {
2154
2159
  t(null, n);
2155
2160
  return;
@@ -2160,7 +2165,7 @@ const xt = /* @__PURE__ */ new Set([
2160
2165
  Number(r[2].substring(0, 2))
2161
2166
  );
2162
2167
  t(o, n);
2163
- }, e), Gt = (t, e) => k((s, n) => {
2168
+ }, e), Yt = (t, e) => M((s, n) => {
2164
2169
  if (s.value === "")
2165
2170
  return;
2166
2171
  const r = s.value.split("T"), o = r[0].split("-"), i = new Date(
@@ -2169,7 +2174,7 @@ const xt = /* @__PURE__ */ new Set([
2169
2174
  Number(o[2])
2170
2175
  ), l = r[1].split(":");
2171
2176
  i.setHours(Number(l[0])), i.setMinutes(Number(l[1])), i.setSeconds(Number(l[2])), t(i, n);
2172
- }, e), Os = (t, e) => k((s, n) => {
2177
+ }, e), ks = (t, e) => M((s, n) => {
2173
2178
  if (s.value === "") {
2174
2179
  t(null, n);
2175
2180
  return;
@@ -2185,17 +2190,17 @@ const xt = /* @__PURE__ */ new Set([
2185
2190
  Number(o[2])
2186
2191
  ), l = r[1].split(":");
2187
2192
  i.setHours(Number(l[0] ?? 0)), i.setMinutes(Number(l[1] ?? 0)), i.setSeconds(Number(l[2] ?? 0)), t(i, n);
2188
- }, e), ks = (t, e) => k((s, n) => {
2193
+ }, e), Ms = (t, e) => M((s, n) => {
2189
2194
  t(s.checked, n);
2190
- }, e), Ms = (t, e = "input") => C(V.valueAsDate(t), re[e](Ut(t.set))), Is = (t, e = "input") => C(V.valueAsDate(t), re[e](Gt(t.set))), Hs = (t, e = "input") => C(V.valueAsNumber(t), re[e](Wt(t.set))), $s = (t, e = "input") => C(V.value(t), re[e](Ft(t.set))), Ns = (t) => C(V.checked(t), qt(t.set)), fe = (t, e, s) => m.is(t) ? e(t) : s(t), Jt = (t, e, s) => {
2195
+ }, e), Is = (t, e = "input") => T(_.valueAsDate(t), W[e](zt(t.set))), Hs = (t, e = "input") => T(_.valueAsDate(t), W[e](Yt(t.set))), Ns = (t, e = "input") => T(_.valueAsNumber(t), W[e](Kt(t.set))), $s = (t, e = "input") => T(_.value(t), W[e](Jt(t.set))), Rs = (t) => T(_.checked(t), Ut(t.set)), fe = (t, e, s) => y.is(t) ? e(t) : s(t), Xt = (t, e, s) => {
2191
2196
  const n = t.makeRef();
2192
2197
  let r = () => {
2193
2198
  }, o = null;
2194
2199
  const i = e.on(
2195
2200
  (l) => {
2196
- o?.dispose(), r(!0), o = new q(), r = O(
2201
+ o?.dispose(), r(!0), o = new q(), r = k(
2197
2202
  o,
2198
- () => d(s(l)).render(n)
2203
+ () => f(s(l)).render(n)
2199
2204
  );
2200
2205
  },
2201
2206
  { noAutoDispose: !0 }
@@ -2203,45 +2208,45 @@ const xt = /* @__PURE__ */ new Set([
2203
2208
  return (l) => {
2204
2209
  o?.dispose(), r(l), i(), n.clear(l);
2205
2210
  };
2206
- }, oe = (t, e) => {
2211
+ }, ie = (t, e) => {
2207
2212
  function s(r) {
2208
- return g((o) => {
2213
+ return m((o) => {
2209
2214
  const i = o.makeRef();
2210
- let l, c;
2211
- const a = r.map((f) => Object.keys(f)[0]);
2215
+ let l, a;
2216
+ const c = r.map((p) => Object.keys(p)[0]);
2212
2217
  let u;
2213
- const h = a.on((f) => {
2214
- if (f !== u) {
2215
- u = f, c?.dispose(), l?.(!0), c = r.map((y) => y[f]);
2216
- const p = e[f](c);
2217
- l = d(p).render(i);
2218
+ const h = c.on((p) => {
2219
+ if (p !== u) {
2220
+ u = p, a?.dispose(), l?.(!0), a = r.map((g) => g[p]);
2221
+ const d = e[p](a);
2222
+ l = f(d).render(i);
2218
2223
  }
2219
2224
  });
2220
- return (f) => {
2221
- c?.dispose(), h(), i.clear(f), l?.(f);
2225
+ return (p) => {
2226
+ a?.dispose(), h(), i.clear(p), l?.(p);
2222
2227
  };
2223
2228
  });
2224
2229
  }
2225
2230
  function n(r) {
2226
2231
  const o = Object.keys(r)[0];
2227
- return d(e[o](se(r[o])));
2232
+ return f(e[o](re(r[o])));
2228
2233
  }
2229
2234
  return fe(t, s, n);
2230
- }, Be = (t, e, s) => oe(
2235
+ }, Ue = (t, e, s) => ie(
2231
2236
  w.map(t, (n) => ({ [n[e]]: n })),
2232
2237
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2233
2238
  s
2234
- ), Rs = (t, e) => Be(t, "kind", e), js = (t, e) => {
2239
+ ), js = (t, e) => Ue(t, "kind", e), Vs = (t, e) => {
2235
2240
  const s = w.map(t, ([n, r]) => ({
2236
2241
  [n]: r
2237
2242
  }));
2238
- return oe(s, e);
2239
- }, Vs = (t, e) => Be(t, "type", e), Kt = (t, e) => oe(
2243
+ return ie(s, e);
2244
+ }, qs = (t, e) => Ue(t, "type", e), Qt = (t, e) => ie(
2240
2245
  w.map(t, (s) => ({ [s]: !0 })),
2241
2246
  e
2242
- ), qs = (t, e = {}) => (s) => {
2247
+ ), Bs = (t, e = {}) => (s) => {
2243
2248
  const n = e?.firstSeparator ?? t, r = e?.lastSeparator ?? t;
2244
- return Kt(
2249
+ return Qt(
2245
2250
  s.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
2246
2251
  {
2247
2252
  first: n,
@@ -2249,77 +2254,77 @@ const xt = /* @__PURE__ */ new Set([
2249
2254
  other: t
2250
2255
  }
2251
2256
  );
2252
- }, Bs = (t) => g((e) => (e.appendOrInsert(t), (s) => {
2253
- s && J(t);
2254
- })), Fs = (t, e, s) => {
2257
+ }, Fs = (t) => m((e) => (e.appendOrInsert(t), (s) => {
2258
+ s && z(t);
2259
+ })), Ws = (t, e, s) => {
2255
2260
  function n(o) {
2256
- return g((i) => {
2261
+ return m((i) => {
2257
2262
  const l = i.makeRef();
2258
- let c = () => {
2259
- }, a = !1, u = null;
2260
- const h = o.on((f) => {
2261
- f == null ? (c(!0), c = d(s?.()).render(l), a = !1, u?.dispose(), u = null) : a ? u.set(f) : (u = T(f), c(!0), c = d(
2263
+ let a = () => {
2264
+ }, c = !1, u = null;
2265
+ const h = o.on((p) => {
2266
+ p == null ? (a(!0), a = f(s?.()).render(l), c = !1, u?.dispose(), u = null) : c ? u.set(p) : (u = D(p), a(!0), a = f(
2262
2267
  e(u)
2263
- ).render(l), a = !0);
2268
+ ).render(l), c = !0);
2264
2269
  });
2265
- return (f) => {
2266
- u?.dispose(), h(), c?.(f), l.clear(f);
2270
+ return (p) => {
2271
+ u?.dispose(), h(), a?.(p), l.clear(p);
2267
2272
  };
2268
2273
  });
2269
2274
  }
2270
2275
  function r(o) {
2271
2276
  if (o == null) {
2272
2277
  const i = s?.();
2273
- return i != null ? d(i) : D;
2278
+ return i != null ? f(i) : P;
2274
2279
  }
2275
- return d(e(se(o)));
2280
+ return f(e(re(o)));
2276
2281
  }
2277
2282
  return fe(
2278
2283
  t,
2279
2284
  n,
2280
2285
  r
2281
2286
  );
2282
- }, Ws = (...t) => (e, s) => g((n) => {
2287
+ }, Us = (...t) => (e, s) => m((n) => {
2283
2288
  const r = n.makeRef();
2284
2289
  if (t.some(
2285
- (p) => !m.is(p) && p == null
2290
+ (d) => !y.is(d) && d == null
2286
2291
  ))
2287
- return (s != null ? d(s?.()) : D).render(r);
2292
+ return (s != null ? f(s?.()) : P).render(r);
2288
2293
  const i = t.map(() => null), l = t.map(
2289
- (p) => m.is(p) ? p.value != null : p != null
2294
+ (d) => y.is(d) ? d.value != null : d != null
2290
2295
  );
2291
- let c = null;
2292
- const a = T(l.every((p) => p)), u = (p, y) => {
2293
- if (p.value != null) {
2294
- if (i[y] == null) {
2295
- const b = T(p.value);
2296
- i[y] = b;
2296
+ let a = null;
2297
+ const c = D(l.every((d) => d)), u = (d, g) => {
2298
+ if (d.value != null) {
2299
+ if (i[g] == null) {
2300
+ const v = D(d.value);
2301
+ i[g] = v;
2297
2302
  } else
2298
- i[y].value = p.value;
2299
- l[y] = !0;
2303
+ i[g].value = d.value;
2304
+ l[g] = !0;
2300
2305
  } else
2301
- l[y] = !1;
2306
+ l[g] = !1;
2302
2307
  };
2303
2308
  let h = t.length - 1;
2304
- const f = t.map((p, y) => {
2305
- if (!m.is(p)) {
2306
- const b = T(p);
2307
- return i[y] = b, () => {
2309
+ const p = t.map((d, g) => {
2310
+ if (!y.is(d)) {
2311
+ const v = D(d);
2312
+ return i[g] = v, () => {
2308
2313
  };
2309
2314
  }
2310
- return p.on(() => {
2311
- u(p, y), h === 0 ? a.value = l.every((b) => b) : h--;
2315
+ return d.on(() => {
2316
+ u(d, g), h === 0 ? c.value = l.every((v) => v) : h--;
2312
2317
  });
2313
2318
  });
2314
- return a.on((p) => {
2315
- c?.(!0), c = null, p ? c = d(e(...i)).render(r) : c = d(s?.() ?? D).render(r);
2316
- }), (p) => {
2317
- i.forEach((y) => y?.dispose()), a.dispose(), f.forEach((y) => y()), c?.(p), r.clear(p);
2319
+ return c.on((d) => {
2320
+ a?.(!0), a = null, d ? a = f(e(...i)).render(r) : a = f(s?.() ?? P).render(r);
2321
+ }), (d) => {
2322
+ i.forEach((g) => g?.dispose()), c.dispose(), p.forEach((g) => g()), a?.(d), r.clear(d);
2318
2323
  };
2319
- }), Fe = (t, e, s) => fe(
2324
+ }), Ge = (t, e, s) => fe(
2320
2325
  t,
2321
- (n) => g(
2322
- (r) => Jt(
2326
+ (n) => m(
2327
+ (r) => Xt(
2323
2328
  r,
2324
2329
  n,
2325
2330
  (o) => o ? e() : s?.()
@@ -2328,86 +2333,86 @@ const xt = /* @__PURE__ */ new Set([
2328
2333
  (n) => {
2329
2334
  if (n) {
2330
2335
  const r = e();
2331
- return r != null ? d(r) : D;
2336
+ return r != null ? f(r) : P;
2332
2337
  }
2333
- return d(s?.());
2338
+ return f(s?.());
2334
2339
  }
2335
- ), Us = (t, e, s) => Fe(
2340
+ ), Gs = (t, e, s) => Ge(
2336
2341
  w.map(t, (n) => !n),
2337
2342
  e,
2338
2343
  s
2339
- ), We = (t, e, s) => {
2344
+ ), Je = (t, e, s) => {
2340
2345
  if (s != null)
2341
- return We(t, (n) => {
2342
- const r = new ue(
2346
+ return Je(t, (n) => {
2347
+ const r = new he(
2343
2348
  n.index,
2344
2349
  n.total.map((o) => o - 1)
2345
2350
  );
2346
- return C(
2347
- d(e(n)),
2348
- Fe(
2351
+ return T(
2352
+ f(e(n)),
2353
+ Ge(
2349
2354
  n.isLast,
2350
- () => D,
2355
+ () => P,
2351
2356
  () => s(r)
2352
2357
  )
2353
2358
  );
2354
2359
  });
2355
- if (m.is(t))
2356
- return g((n) => {
2360
+ if (y.is(t))
2361
+ return m((n) => {
2357
2362
  const r = t.derive(), o = n.makeRef(), i = [], l = [];
2358
- return r.on((c) => {
2359
- const a = i.splice(c), u = l.splice(c);
2363
+ return r.on((a) => {
2364
+ const c = i.splice(a), u = l.splice(a);
2360
2365
  for (const h of u)
2361
2366
  h.dispose();
2362
- for (const h of a)
2367
+ for (const h of c)
2363
2368
  h(!0);
2364
- for (let h = i.length; h < c; h++) {
2365
- const f = new ue(h, r), p = new q();
2366
- l.push(p), i.push(
2367
- O(
2368
- p,
2369
- () => d(e(f)).render(o)
2369
+ for (let h = i.length; h < a; h++) {
2370
+ const p = new he(h, r), d = new q();
2371
+ l.push(d), i.push(
2372
+ k(
2373
+ d,
2374
+ () => f(e(p)).render(o)
2370
2375
  )
2371
2376
  );
2372
2377
  }
2373
- }), (c) => {
2374
- for (const a of l)
2375
- a.dispose();
2378
+ }), (a) => {
2379
+ for (const c of l)
2380
+ c.dispose();
2376
2381
  l.length = 0, r.dispose();
2377
- for (const a of i)
2378
- a(c);
2379
- i.length = 0, o.clear(c);
2382
+ for (const c of i)
2383
+ c(a);
2384
+ i.length = 0, o.clear(a);
2380
2385
  };
2381
2386
  });
2382
2387
  {
2383
- const n = se(t);
2384
- return C(
2388
+ const n = re(t);
2389
+ return T(
2385
2390
  ...Array.from({ length: t }, (r, o) => o).map((r) => {
2386
- const o = new ue(r, n);
2387
- return d(e(o));
2391
+ const o = new he(r, n);
2392
+ return f(e(o));
2388
2393
  })
2389
2394
  );
2390
2395
  }
2391
- }, Gs = (t, e, s) => {
2396
+ }, Js = (t, e, s) => {
2392
2397
  const n = w.map(t, (o) => o.length), r = w.toSignal(t);
2393
- return We(
2398
+ return Je(
2394
2399
  n,
2395
2400
  (o) => {
2396
2401
  const i = r.map((l) => l[o.index]);
2397
- return d(e(i, o));
2402
+ return f(e(i, o));
2398
2403
  },
2399
2404
  s
2400
2405
  );
2401
- }, zt = (...t) => g(
2406
+ }, ge = (...t) => m(
2402
2407
  (e) => (s) => t.forEach((n) => {
2403
2408
  typeof n == "function" ? n(s, e) : n.dispose(s, e);
2404
2409
  })
2405
- ), Js = (t, e) => {
2406
- if (m.is(t)) {
2410
+ ), Ks = (t, e) => {
2411
+ if (y.is(t)) {
2407
2412
  const s = t;
2408
- return g((n) => {
2413
+ return m((n) => {
2409
2414
  n = n.makeRef();
2410
- const r = s.map((l) => d(e(l)));
2415
+ const r = s.map((l) => f(e(l)));
2411
2416
  let o = () => {
2412
2417
  };
2413
2418
  const i = r.on((l) => {
@@ -2418,8 +2423,62 @@ const xt = /* @__PURE__ */ new Set([
2418
2423
  };
2419
2424
  });
2420
2425
  }
2421
- return d(e(t));
2422
- }, Ks = (t, e, s = () => D) => oe(
2426
+ return f(e(t));
2427
+ }, me = (t) => m((e) => {
2428
+ if (e.isBrowser()) {
2429
+ const s = t(e);
2430
+ if (s != null)
2431
+ return f(s).render(e);
2432
+ }
2433
+ return () => {
2434
+ };
2435
+ });
2436
+ function zs({
2437
+ src: t,
2438
+ name: e,
2439
+ width: s,
2440
+ height: n,
2441
+ sandbox: r,
2442
+ allow: o,
2443
+ referrerpolicy: i,
2444
+ loading: l,
2445
+ onLoad: a
2446
+ } = {}, ...c) {
2447
+ return Wt.iframe(
2448
+ _.src(t),
2449
+ _.name(e),
2450
+ _.width(s != null ? w.map(s, String) : void 0),
2451
+ _.height(n != null ? w.map(n, String) : void 0),
2452
+ _.sandbox(r),
2453
+ _.allow(o),
2454
+ _.referrerpolicy(i),
2455
+ me((u) => {
2456
+ const h = u.element;
2457
+ let p, d = !1;
2458
+ const g = () => {
2459
+ if (d) return;
2460
+ d = !0;
2461
+ const v = h.contentDocument;
2462
+ if (v && (a && a(h), c.length > 0)) {
2463
+ const E = v.body;
2464
+ if (E) {
2465
+ const b = u.withElement(E);
2466
+ p = B(T(...c), b);
2467
+ }
2468
+ }
2469
+ };
2470
+ return l != null && w.on(l, (v) => {
2471
+ h.loading = v;
2472
+ }), (c.length > 0 || a) && (t || setTimeout(g, 0)), T(
2473
+ c.length > 0 || a ? W.load(g) : P,
2474
+ ge(() => {
2475
+ p && p(!1);
2476
+ })
2477
+ );
2478
+ })
2479
+ );
2480
+ }
2481
+ const Ys = (t, e, s = () => P) => ie(
2423
2482
  w.map(
2424
2483
  t,
2425
2484
  (n) => n.length > 0 ? { notEmpty: n } : { whenEmpty: null }
@@ -2428,40 +2487,55 @@ const xt = /* @__PURE__ */ new Set([
2428
2487
  notEmpty: (n) => e(n),
2429
2488
  whenEmpty: () => s()
2430
2489
  }
2431
- ), zs = (t, e) => g((s) => {
2432
- const n = s.makePortal(t), r = pe(d(e), n);
2490
+ ), Xs = (t, e) => m((s) => {
2491
+ const n = s.makePortal(t), r = B(f(e), n);
2433
2492
  return () => r(!0);
2434
- }), G = /* @__PURE__ */ new Map(), Yt = (t) => ({
2435
- mark: Ue(`Probe(${t.description})`),
2493
+ }), K = /* @__PURE__ */ new Map(), Zt = (t) => ({
2494
+ mark: Ke(`Probe(${t.description})`),
2436
2495
  create: ({ callback: e = () => {
2437
2496
  }, timeout: s = 10 } = {}) => {
2438
2497
  const n = (l) => {
2439
- clearTimeout(r), G.delete(t), e(l);
2498
+ clearTimeout(r), K.delete(t), e(l);
2440
2499
  };
2441
- if (G.has(t))
2500
+ if (K.has(t))
2442
2501
  throw new Error(`Probe already exists: ${t.description}`);
2443
2502
  const r = setTimeout(() => n("timeout"), s), o = { counter: 0, timeoutId: r };
2444
- return G.set(t, o), {
2503
+ return K.set(t, o), {
2445
2504
  value: () => {
2446
2505
  clearTimeout(r);
2447
- const l = G.get(t);
2506
+ const l = K.get(t);
2448
2507
  l != null && --l.counter === 0 && n("resolved");
2449
2508
  },
2450
2509
  dispose: () => n("disposed"),
2451
2510
  onUse: () => o.counter++
2452
2511
  };
2453
2512
  }
2454
- }), Ys = Yt(Symbol("GlobalProbe")), Xt = (t, e) => g((s) => {
2513
+ }), Qs = Zt(Symbol("GlobalProbe"));
2514
+ function Zs({
2515
+ mode: t,
2516
+ delegatesFocus: e,
2517
+ slotAssignment: s,
2518
+ clonable: n,
2519
+ serializable: r
2520
+ }, ...o) {
2521
+ return me((i) => {
2522
+ const l = { mode: t };
2523
+ e !== void 0 && (l.delegatesFocus = e), s !== void 0 && (l.slotAssignment = s), n !== void 0 && (l.clonable = n), r !== void 0 && (l.serializable = r);
2524
+ const a = i.element.attachShadow(l), c = i.withElement(a), u = B(T(...o), c);
2525
+ return ge(() => u(!0));
2526
+ });
2527
+ }
2528
+ const es = (t, e) => m((s) => {
2455
2529
  const n = s.getStyle(t);
2456
2530
  return s.setStyle(t, e), (r) => {
2457
2531
  r && s.setStyle(t, n);
2458
2532
  };
2459
- }), Qt = (t, e) => g((s) => {
2533
+ }), ts = (t, e) => m((s) => {
2460
2534
  const n = s.getStyle(t), r = e.on((o) => s.setStyle(t, o));
2461
2535
  return (o) => {
2462
2536
  r(), o && s.setStyle(t, n);
2463
2537
  };
2464
- }), we = (t, e) => m.is(e) ? Qt(t, e) : Xt(t, e), Xs = new Proxy({}, {
2538
+ }), be = (t, e) => y.is(e) ? ts(t, e) : es(t, e), en = new Proxy({}, {
2465
2539
  /**
2466
2540
  * Creates a renderable component for the specified `style` property.
2467
2541
  *
@@ -2470,36 +2544,28 @@ const xt = /* @__PURE__ */ new Set([
2470
2544
  * @returns The renderable component for the specified attribute.
2471
2545
  *
2472
2546
  */
2473
- get: (t, e) => e === "variable" ? (s, n) => we(s, n) : (s) => we(e, s)
2474
- }), Zt = (t) => g((e) => {
2475
- if (e.isBrowser()) {
2476
- const s = t(e);
2477
- if (s != null)
2478
- return d(s).render(e);
2479
- }
2480
- return () => {
2481
- };
2482
- }), Qs = (t) => g((e) => {
2547
+ get: (t, e) => e === "variable" ? (s, n) => be(s, n) : (s) => be(e, s)
2548
+ }), tn = (t) => m((e) => {
2483
2549
  const s = t(e);
2484
2550
  return s == null ? () => {
2485
- } : d(s).render(e);
2486
- }), Zs = (t) => Zt((e) => t(e.element)), en = (t) => g((e) => {
2551
+ } : f(s).render(e);
2552
+ }), sn = (t) => me((e) => t(e.element)), nn = (t) => m((e) => {
2487
2553
  if (e.isHeadlessDOM()) {
2488
2554
  const s = t(e);
2489
2555
  if (s)
2490
- return d(s).render(e);
2556
+ return f(s).render(e);
2491
2557
  }
2492
2558
  return () => {
2493
2559
  };
2494
- }), tn = (t) => g((e) => {
2495
- const s = new q(), n = O(
2560
+ }), rn = (t) => m((e) => {
2561
+ const s = new q(), n = k(
2496
2562
  s,
2497
- () => d(t(s)).render(e)
2563
+ () => f(t(s)).render(e)
2498
2564
  );
2499
2565
  return (r) => {
2500
2566
  s.dispose(), n(r);
2501
2567
  };
2502
- }), ge = (t) => g((e) => {
2568
+ }), ye = (t) => m((e) => {
2503
2569
  let s = e;
2504
2570
  function n() {
2505
2571
  return s;
@@ -2509,155 +2575,158 @@ const xt = /* @__PURE__ */ new Set([
2509
2575
  }
2510
2576
  const o = [], i = t({
2511
2577
  use: ({ mark: l }) => {
2512
- const { value: c, onUse: a } = n().getProvider(l);
2513
- return a?.(), c;
2578
+ const { value: a, onUse: c } = n().getProvider(l);
2579
+ return c?.(), a;
2514
2580
  },
2515
- set: ({ mark: l, create: c }, a) => {
2516
- const { value: u, dispose: h, onUse: f } = c(a, n());
2517
- o.push(h), r(n().setProvider(l, u, f));
2581
+ set: ({ mark: l, create: a }, c) => {
2582
+ const { value: u, dispose: h, onUse: p } = a(c, n());
2583
+ o.push(h), r(n().setProvider(l, u, p));
2518
2584
  }
2519
2585
  });
2520
2586
  return i == null ? () => {
2521
- } : C(
2522
- d(i),
2523
- zt(() => o.forEach((l) => l()))
2587
+ } : T(
2588
+ f(i),
2589
+ ge(() => o.forEach((l) => l()))
2524
2590
  ).render(n());
2525
- }), sn = (t, e, s) => ge(({ set: n }) => (n(t, e), s())), nn = (t, e) => ge(({ use: s }) => e(s(t))), rn = (...t) => (e) => ge(({ use: s }) => {
2591
+ }), on = (t, e, s) => ye(({ set: n }) => (n(t, e), s())), ln = (t, e) => ye(({ use: s }) => e(s(t))), an = (...t) => (e) => ye(({ use: s }) => {
2526
2592
  const n = t.map(s);
2527
2593
  return e(...n);
2528
2594
  });
2529
2595
  export {
2530
- Rt as Aria,
2531
- xs as Async,
2532
- $t as Attr,
2533
- Ns as BindChecked,
2534
- Ms as BindDate,
2535
- Is as BindDateTime,
2536
- Hs as BindNumber,
2596
+ qt as Aria,
2597
+ Ls as Async,
2598
+ jt as Attr,
2599
+ Rs as BindChecked,
2600
+ Is as BindDate,
2601
+ Hs as BindDateTime,
2602
+ Ns as BindNumber,
2537
2603
  $s as BindText,
2538
- R as BrowserContext,
2539
- K as CLASS_PLACEHOLDER_ATTR,
2540
- N as Computed,
2541
- qs as Conjunction,
2542
- Bs as DOMNode,
2543
- Nt as DataAttr,
2604
+ j as BrowserContext,
2605
+ Y as CLASS_PLACEHOLDER_ATTR,
2606
+ R as Computed,
2607
+ Bs as Conjunction,
2608
+ Fs as DOMNode,
2609
+ Vt as DataAttr,
2544
2610
  q as DisposalScope,
2545
- Ne as El,
2546
- ne as ElNS,
2547
- ue as ElementPosition,
2548
- D as Empty,
2549
- Fs as Ensure,
2550
- Ws as EnsureAll,
2551
- Gs as ForEach,
2552
- C as Fragment,
2553
- Ys as GlobalProbe,
2554
- gs as HeadlessAdapter,
2555
- j as HeadlessContext,
2556
- Dt as HeadlessElement,
2557
- Ie as HeadlessPortal,
2558
- Pt as HeadlessText,
2559
- Js as MapSignal,
2560
- Vt as MathAttr,
2561
- Ds as MathEl,
2562
- Se as MemoryStore,
2563
- Ks as NotEmpty,
2564
- qt as OnChecked,
2565
- zt as OnDispose,
2566
- oe as OneOf,
2567
- Be as OneOfField,
2568
- Rs as OneOfKind,
2569
- js as OneOfTuple,
2570
- Vs as OneOfType,
2571
- Kt as OneOfValue,
2572
- zs as Portal,
2573
- ee as Prop,
2574
- sn as Provide,
2575
- xe as ProviderNotFoundError,
2576
- dt as RenderingError,
2577
- We as Repeat,
2578
- jt as SVGAttr,
2579
- Es as SVGEl,
2580
- m as Signal,
2581
- Ve as Task,
2582
- ws as TextNode,
2583
- Us as Unless,
2584
- nn as Use,
2585
- rn as UseMany,
2611
+ Ve as El,
2612
+ oe as ElNS,
2613
+ he as ElementPosition,
2614
+ P as Empty,
2615
+ Ws as Ensure,
2616
+ Us as EnsureAll,
2617
+ Js as ForEach,
2618
+ T as Fragment,
2619
+ Qs as GlobalProbe,
2620
+ ys as HeadlessAdapter,
2621
+ V as HeadlessContext,
2622
+ Lt as HeadlessElement,
2623
+ $e as HeadlessPortal,
2624
+ Ot as HeadlessText,
2625
+ zs as IFrame,
2626
+ Ks as MapSignal,
2627
+ Ft as MathAttr,
2628
+ Ps as MathEl,
2629
+ Ae as MemoryStore,
2630
+ Ys as NotEmpty,
2631
+ Ut as OnChecked,
2632
+ ge as OnDispose,
2633
+ ie as OneOf,
2634
+ Ue as OneOfField,
2635
+ js as OneOfKind,
2636
+ Vs as OneOfTuple,
2637
+ qs as OneOfType,
2638
+ Qt as OneOfValue,
2639
+ Xs as Portal,
2640
+ se as Prop,
2641
+ on as Provide,
2642
+ ke as ProviderNotFoundError,
2643
+ gt as RenderingError,
2644
+ Je as Repeat,
2645
+ Bt as SVGAttr,
2646
+ Cs as SVGEl,
2647
+ Zs as ShadowRoot,
2648
+ y as Signal,
2649
+ Fe as Task,
2650
+ bs as TextNode,
2651
+ Gs as Unless,
2652
+ ln as Use,
2653
+ an as UseMany,
2586
2654
  w as Value,
2587
- Fe as When,
2588
- Zt as WithBrowserCtx,
2589
- Qs as WithCtx,
2590
- Zs as WithElement,
2591
- en as WithHeadlessCtx,
2592
- ge as WithProvider,
2593
- tn as WithScope,
2594
- Le as _NODE_PLACEHOLDER_ATTR,
2595
- ht as _getSelfOrParentElement,
2596
- Pe as _isElement,
2597
- ut as _makeGetter,
2598
- at as _makeSetter,
2599
- J as _removeDOMNode,
2600
- $e as _signalText,
2601
- He as _staticText,
2602
- is as animateSignal,
2603
- lt as animateSignals,
2604
- vs as aria,
2605
- V as attr,
2606
- hs as bind,
2607
- ds as coalesce,
2608
- te as computed,
2609
- Z as computedOf,
2610
- ct as computedRecord,
2611
- Ge as createRenderable,
2612
- bs as dataAttr,
2613
- cs as delaySignal,
2614
- ve as effect,
2615
- Ye as effectOf,
2616
- Bt as emit,
2617
- ks as emitChecked,
2618
- k as emitTarget,
2619
- Ft as emitValue,
2620
- Ut as emitValueAsDate,
2621
- Gt as emitValueAsDateTime,
2622
- Ls as emitValueAsNullableDate,
2623
- Os as emitValueAsNullableDateTime,
2624
- Wt as emitValueAsNumber,
2625
- nt as endInterpolate,
2626
- he as getCurrentScope,
2627
- ss as getParentScope,
2628
- ts as getScopeStack,
2629
- ys as getWindow,
2630
- rt as guessInterpolate,
2631
- As as html,
2632
- Ts as input,
2633
- st as interpolateDate,
2634
- et as interpolateNumber,
2635
- tt as interpolateString,
2636
- es as joinSignals,
2637
- rs as localStorageProp,
2638
- Yt as makeProbe,
2639
- Ue as makeProviderMark,
2640
- Ps as math,
2641
- _s as mathAttr,
2642
- ls as merge,
2643
- re as on,
2644
- Qe as popScope,
2645
- as as previousSignal,
2646
- T as prop,
2647
- Xe as pushScope,
2648
- ps as render,
2649
- pe as renderWithContext,
2650
- d as renderableOfTNode,
2651
- ms as restoreTempoPlaceholders,
2652
- fs as runHeadless,
2653
- ns as scoped,
2654
- os as sessionStorageProp,
2655
- se as signal,
2656
- us as slidingWindowSignal,
2657
- _e as storedProp,
2658
- Xs as style,
2659
- Cs as svg,
2660
- Ss as svgAttr,
2661
- le as untracked,
2662
- O as withScope
2655
+ Ge as When,
2656
+ me as WithBrowserCtx,
2657
+ tn as WithCtx,
2658
+ sn as WithElement,
2659
+ nn as WithHeadlessCtx,
2660
+ ye as WithProvider,
2661
+ rn as WithScope,
2662
+ Me as _NODE_PLACEHOLDER_ATTR,
2663
+ ft as _getSelfOrParentElement,
2664
+ Le as _isElement,
2665
+ Oe as _isFragment,
2666
+ pt as _makeGetter,
2667
+ dt as _makeSetter,
2668
+ z as _removeDOMNode,
2669
+ je as _signalText,
2670
+ Re as _staticText,
2671
+ as as animateSignal,
2672
+ ut as animateSignals,
2673
+ _s as aria,
2674
+ _ as attr,
2675
+ ps as bind,
2676
+ fs as coalesce,
2677
+ ne as computed,
2678
+ te as computedOf,
2679
+ ht as computedRecord,
2680
+ ze as createRenderable,
2681
+ Ss as dataAttr,
2682
+ us as delaySignal,
2683
+ _e as effect,
2684
+ Ze as effectOf,
2685
+ Gt as emit,
2686
+ Ms as emitChecked,
2687
+ M as emitTarget,
2688
+ Jt as emitValue,
2689
+ zt as emitValueAsDate,
2690
+ Yt as emitValueAsDateTime,
2691
+ Os as emitValueAsNullableDate,
2692
+ ks as emitValueAsNullableDateTime,
2693
+ Kt as emitValueAsNumber,
2694
+ it as endInterpolate,
2695
+ de as getCurrentScope,
2696
+ rs as getParentScope,
2697
+ ns as getScopeStack,
2698
+ vs as getWindow,
2699
+ lt as guessInterpolate,
2700
+ Wt as html,
2701
+ Es as input,
2702
+ ot as interpolateDate,
2703
+ nt as interpolateNumber,
2704
+ rt as interpolateString,
2705
+ ss as joinSignals,
2706
+ is as localStorageProp,
2707
+ Zt as makeProbe,
2708
+ Ke as makeProviderMark,
2709
+ xs as math,
2710
+ Ts as mathAttr,
2711
+ cs as merge,
2712
+ W as on,
2713
+ tt as popScope,
2714
+ hs as previousSignal,
2715
+ D as prop,
2716
+ et as pushScope,
2717
+ gs as render,
2718
+ B as renderWithContext,
2719
+ f as renderableOfTNode,
2720
+ ws as restoreTempoPlaceholders,
2721
+ ms as runHeadless,
2722
+ os as scoped,
2723
+ ls as sessionStorageProp,
2724
+ re as signal,
2725
+ ds as slidingWindowSignal,
2726
+ Te as storedProp,
2727
+ en as style,
2728
+ Ds as svg,
2729
+ As as svgAttr,
2730
+ ae as untracked,
2731
+ k as withScope
2663
2732
  };