@tempots/dom 10.0.3 → 10.0.5

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +288 -287
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var ze = Object.defineProperty;
2
2
  var Ve = (t, e, r) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var a = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var u = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  function qe(t, e, r) {
5
5
  return t + (e - t) * r;
6
6
  }
@@ -22,10 +22,10 @@ function Xe(t, e, r) {
22
22
  function Ye(t, e, r) {
23
23
  return e;
24
24
  }
25
- function He(t) {
25
+ function je(t) {
26
26
  return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
27
27
  }
28
- class Ke {
28
+ class He {
29
29
  constructor(e, r) {
30
30
  this.index = e, this.total = r;
31
31
  }
@@ -43,34 +43,34 @@ class Ke {
43
43
  }
44
44
  }
45
45
  const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
46
- var ue;
47
- ue = ee;
46
+ var ae;
47
+ ae = ee;
48
48
  const E = class E {
49
49
  constructor(e, r) {
50
- a(this, ue, !0);
51
- a(this, "_value");
52
- a(this, "_derivatives", []);
53
- a(this, "_onValueListeners", []);
54
- a(this, "_onDisposeListeners", []);
55
- a(this, "get", () => this._value);
56
- a(this, "hasListeners", () => this._onValueListeners.length > 0);
57
- a(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
50
+ u(this, ae, !0);
51
+ u(this, "_value");
52
+ u(this, "_derivatives", []);
53
+ u(this, "_onValueListeners", []);
54
+ u(this, "_onDisposeListeners", []);
55
+ u(this, "get", () => this._value);
56
+ u(this, "hasListeners", () => this._onValueListeners.length > 0);
57
+ u(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
58
58
  this._onValueListeners.splice(this._onValueListeners.indexOf(e), 1);
59
59
  }));
60
- a(this, "_setAndNotify", (e, r) => {
60
+ u(this, "_setAndNotify", (e, r) => {
61
61
  const n = this.equals(this._value, e);
62
62
  n || (this._value = e), (r || !n) && this._onValueListeners.forEach((s) => s(e));
63
63
  });
64
- a(this, "_disposed", !1);
65
- a(this, "isDisposed", () => this._disposed);
66
- a(this, "onDispose", (e) => {
64
+ u(this, "_disposed", !1);
65
+ u(this, "isDisposed", () => this._disposed);
66
+ u(this, "onDispose", (e) => {
67
67
  this._onDisposeListeners.push(e);
68
68
  });
69
- a(this, "dispose", () => {
69
+ u(this, "dispose", () => {
70
70
  this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
71
71
  });
72
- a(this, "map", (e, r = (n, s) => n === s) => {
73
- const n = new D(() => {
72
+ u(this, "map", (e, r = (n, s) => n === s) => {
73
+ const n = new T(() => {
74
74
  try {
75
75
  return e(this.get());
76
76
  } catch (s) {
@@ -79,8 +79,8 @@ const E = class E {
79
79
  }, r);
80
80
  return this.setDerivative(n), n;
81
81
  });
82
- a(this, "flatMap", (e, r = (n, s) => n === s) => {
83
- const n = new D(() => {
82
+ u(this, "flatMap", (e, r = (n, s) => n === s) => {
83
+ const n = new T(() => {
84
84
  try {
85
85
  return e(this.get()).get();
86
86
  } catch (s) {
@@ -89,11 +89,11 @@ const E = class E {
89
89
  }, r);
90
90
  return this.setDerivative(n), n;
91
91
  });
92
- a(this, "tap", (e) => this.map((r) => (e(r), r)));
93
- a(this, "at", (e) => this.map((r) => r[e]));
94
- a(this, "filter", (e, r) => {
92
+ u(this, "tap", (e) => this.map((r) => (e(r), r)));
93
+ u(this, "at", (e) => this.map((r) => r[e]));
94
+ u(this, "filter", (e, r) => {
95
95
  let n = r ?? this.get();
96
- const s = new D(() => {
96
+ const s = new T(() => {
97
97
  try {
98
98
  const i = this.get();
99
99
  return n = e(i) ? i : n;
@@ -103,9 +103,9 @@ const E = class E {
103
103
  }, this.equals);
104
104
  return this.setDerivative(s), s;
105
105
  });
106
- a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
106
+ u(this, "filterMap", (e, r, n = (s, i) => s === i) => {
107
107
  let s = r;
108
- const i = new D(() => {
108
+ const i = new T(() => {
109
109
  try {
110
110
  const o = this.get(), l = e(o);
111
111
  return s = l ?? s;
@@ -115,17 +115,17 @@ const E = class E {
115
115
  }, n);
116
116
  return this.setDerivative(i), i;
117
117
  });
118
- a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
118
+ u(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
119
119
  const i = A(r, s);
120
120
  let o = 0;
121
121
  return i.onDispose(
122
122
  this.on((l) => {
123
- const u = ++o;
123
+ const a = ++o;
124
124
  try {
125
125
  e(l).then((c) => {
126
- u === o && i.set(c);
126
+ a === o && i.set(c);
127
127
  }).catch((c) => {
128
- u === o && (n != null ? i.set(n(c)) : console.error(
128
+ a === o && (n != null ? i.set(n(c)) : console.error(
129
129
  "Unhandled promise rejection in Signal.mapAsync:",
130
130
  c
131
131
  ));
@@ -136,17 +136,17 @@ const E = class E {
136
136
  })
137
137
  ), i;
138
138
  });
139
- a(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
140
- a(this, "feedProp", (e, r = !1) => {
139
+ u(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
140
+ u(this, "feedProp", (e, r = !1) => {
141
141
  const n = this.on(e.set);
142
142
  return e.onDispose(n), r ? this.onDispose(e.dispose) : this.onDispose(n), e;
143
143
  });
144
- a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
145
- a(this, "count", () => {
144
+ u(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
145
+ u(this, "count", () => {
146
146
  let e = 0;
147
147
  return this.map(() => ++e);
148
148
  });
149
- a(this, "setDerivative", (e) => {
149
+ u(this, "setDerivative", (e) => {
150
150
  this._derivatives.push(e), e.onDispose(() => {
151
151
  this._derivatives.splice(
152
152
  this._derivatives.indexOf(e),
@@ -185,24 +185,24 @@ const E = class E {
185
185
  }
186
186
  };
187
187
  let d = E;
188
- const je = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
189
- var ae, le;
190
- class D extends (le = d, ae = re, le) {
188
+ const Ke = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
189
+ var ue, le;
190
+ class T extends (le = d, ue = re, le) {
191
191
  constructor(r, n) {
192
192
  super(void 0, n);
193
- a(this, ae, !0);
194
- a(this, "_isDirty", !1);
195
- a(this, "setDirty", () => {
193
+ u(this, ue, !0);
194
+ u(this, "_isDirty", !1);
195
+ u(this, "setDirty", () => {
196
196
  this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
197
197
  });
198
- a(this, "_scheduleCount", 0);
199
- a(this, "scheduleNotify", () => {
198
+ u(this, "_scheduleCount", 0);
199
+ u(this, "scheduleNotify", () => {
200
200
  const r = ++this._scheduleCount;
201
- je(() => {
201
+ Ke(() => {
202
202
  this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
203
203
  });
204
204
  });
205
- a(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
205
+ u(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
206
206
  this._fn = r, this.setDirty();
207
207
  }
208
208
  static is(r) {
@@ -216,19 +216,19 @@ var ce, fe;
216
216
  class V extends (fe = d, ce = te, fe) {
217
217
  constructor() {
218
218
  super(...arguments);
219
- a(this, ce, !0);
220
- a(this, "set", (r) => {
219
+ u(this, ce, !0);
220
+ u(this, "set", (r) => {
221
221
  this._setAndNotify(r, !1);
222
222
  });
223
- a(this, "update", (r) => {
223
+ u(this, "update", (r) => {
224
224
  this._setAndNotify(r(this.get()), !1);
225
225
  });
226
- a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
227
- a(this, "iso", (r, n, s = (i, o) => i === o) => {
226
+ u(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
227
+ u(this, "iso", (r, n, s = (i, o) => i === o) => {
228
228
  const i = new V(r(this.get()), s);
229
229
  return i.onDispose(this.on((o) => i.set(r(o)))), i.on((o) => this._setAndNotify(n(o), !1)), i;
230
230
  });
231
- a(this, "atProp", (r) => this.iso(
231
+ u(this, "atProp", (r) => this.iso(
232
232
  (n) => n[r],
233
233
  (n) => ({ ...this.value, [r]: n })
234
234
  ));
@@ -243,12 +243,12 @@ class V extends (fe = d, ce = te, fe) {
243
243
  this._setAndNotify(r, !1);
244
244
  }
245
245
  }
246
- function B(t, e, r = (n, s) => n === s) {
247
- const n = new D(t, r);
246
+ function U(t, e, r = (n, s) => n === s) {
247
+ const n = new T(t, r);
248
248
  return e.forEach((s) => s.setDerivative(n)), n;
249
249
  }
250
250
  function qt(t, e) {
251
- return B(t, e).dispose;
251
+ return U(t, e).dispose;
252
252
  }
253
253
  function A(t, e = (r, n) => r === n) {
254
254
  return new V(t, e);
@@ -258,9 +258,9 @@ function Zt(t, e = (r, n) => r === n) {
258
258
  }
259
259
  class he {
260
260
  constructor() {
261
- a(this, "_store", /* @__PURE__ */ new Map());
262
- a(this, "getItem", (e) => this._store.get(e) ?? null);
263
- a(this, "setItem", (e, r) => {
261
+ u(this, "_store", /* @__PURE__ */ new Map());
262
+ u(this, "getItem", (e) => this._store.get(e) ?? null);
263
+ u(this, "setItem", (e, r) => {
264
264
  this._store.set(e, r);
265
265
  });
266
266
  }
@@ -271,16 +271,16 @@ function de({
271
271
  store: r,
272
272
  serialize: n = JSON.stringify,
273
273
  deserialize: s = JSON.parse,
274
- equals: i = (l, u) => l === u,
274
+ equals: i = (l, a) => l === a,
275
275
  onLoad: o = (l) => l
276
276
  }) {
277
- const l = r.getItem(t), u = new V(
277
+ const l = r.getItem(t), a = new V(
278
278
  l != null ? o(s(l)) : typeof e == "function" ? e() : e,
279
279
  i
280
280
  );
281
- return u.on((c) => {
281
+ return a.on((c) => {
282
282
  r.setItem(t, n(c));
283
- }), u;
283
+ }), a;
284
284
  }
285
285
  function Xt(t) {
286
286
  return de({
@@ -297,35 +297,35 @@ function Yt(t) {
297
297
  function ne(t) {
298
298
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
299
299
  }
300
- function Ue(t, e, r, n) {
301
- const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((S) => S), o = (n == null ? void 0 : n.equals) ?? ((S, L) => S === L);
302
- let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
303
- const _ = new D(e, o), y = A(t, o);
300
+ function ke(t, e, r, n) {
301
+ const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((S) => S), o = (n == null ? void 0 : n.equals) ?? ((S, O) => S === O);
302
+ let l = n == null ? void 0 : n.interpolate, a = t, c = e(), p = performance.now(), m = null, h = !0;
303
+ const _ = new T(e, o), y = A(t, o);
304
304
  y.onDispose(() => {
305
305
  m !== null && cancelAnimationFrame(m);
306
306
  }), y.onDispose(_.dispose), r.forEach((S) => {
307
307
  S.setDerivative(_), S.onDispose(y.dispose);
308
308
  });
309
- const H = (S) => {
310
- c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(G));
311
- }, G = () => {
312
- const L = (performance.now() - p) / d.unwrap(s), Fe = i(L);
313
- l == null && (l = He(u));
314
- let J = l(u, c, Fe);
315
- L >= 1 ? (h = !0, J = c) : m = ne(G), y.set(J);
309
+ const j = (S) => {
310
+ c = S, p = performance.now(), a = y.value, h && (h = !1, m = ne(J));
311
+ }, J = () => {
312
+ const O = (performance.now() - p) / d.unwrap(s), Fe = i(O);
313
+ l == null && (l = je(a));
314
+ let G = l(a, c, Fe);
315
+ O >= 1 ? (h = !0, G = c) : m = ne(J), y.set(G);
316
316
  };
317
- return _.on(H), y;
317
+ return _.on(j), y;
318
318
  }
319
- function Ht(t, e) {
319
+ function jt(t, e) {
320
320
  const { initialValue: r, ...n } = e ?? {};
321
- return Ue(r ?? t.get(), t.get, [t], n);
321
+ return ke(r ?? t.get(), t.get, [t], n);
322
322
  }
323
- function Kt(t, e) {
323
+ function Ht(t, e) {
324
324
  const { signals: r, literals: n } = Object.entries(t).reduce(
325
- ({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
325
+ ({ signals: i, literals: o }, [l, a]) => (d.is(a) ? i.push([l, a]) : o[l] = a, { signals: i, literals: o }),
326
326
  { signals: [], literals: {} }
327
327
  ), s = r.map(([, i]) => i);
328
- return B(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
328
+ return U(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
329
329
  }
330
330
  function se(t) {
331
331
  let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
@@ -360,58 +360,58 @@ function ie(t) {
360
360
  spread: 0,
361
361
  color: "rgba(0, 0, 0, 0)"
362
362
  };
363
- const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
363
+ const [, n, s, , , i, , o, , l, , a] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
364
364
  return {
365
365
  inset: !!n,
366
366
  x: parseInt(s, 10),
367
367
  y: parseInt(i, 10),
368
368
  blur: c,
369
369
  spread: p,
370
- color: u
370
+ color: a
371
371
  };
372
372
  }
373
- function Be(t) {
373
+ function Ue(t) {
374
374
  const { inset: e, x: r, y: n, blur: s, spread: i, color: o } = t;
375
375
  return `${e ? "inset " : ""}${r}px ${n}px ${s}px ${i}px ${o}`;
376
376
  }
377
- function ke(t) {
377
+ function Be(t) {
378
378
  return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
379
379
  }
380
- function Ge(t, e) {
381
- const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
380
+ function Je(t, e) {
381
+ const [r, n, s, i, o] = se(t), [l, a, c, p] = se(e);
382
382
  return (m) => {
383
- const h = r + (l - r) * m, _ = n + (u - n) * m, y = s + (c - s) * m, H = i + (p - i) * m;
384
- return ke([h, _, y, H, o]);
383
+ const h = r + (l - r) * m, _ = n + (a - n) * m, y = s + (c - s) * m, j = i + (p - i) * m;
384
+ return Be([h, _, y, j, o]);
385
385
  };
386
386
  }
387
- function jt(t, e) {
387
+ function Kt(t, e) {
388
388
  const r = ie(t), n = ie(e);
389
389
  return (s) => {
390
- const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = me(r.color, n.color)(s);
391
- return Be({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
390
+ const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, a = r.spread + (n.spread - r.spread) * s, c = me(r.color, n.color)(s);
391
+ return Ue({ inset: r.inset, x: i, y: o, blur: l, spread: a, color: c });
392
392
  };
393
393
  }
394
- function Je(t, e) {
395
- var r, n, s, i, o, l, u, c;
396
- return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
394
+ function Ge(t, e) {
395
+ var r, n, s, i, o, l, a, c;
396
+ return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (a = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : a[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
397
397
  }
398
- function Ut(t, e) {
398
+ function kt(t, e) {
399
399
  const r = {}, n = getComputedStyle(t);
400
400
  for (const [s, i] of Object.entries(e)) {
401
401
  const o = s;
402
- i != null && (r[o] = Je(n, o));
402
+ i != null && (r[o] = Ge(n, o));
403
403
  }
404
404
  return r;
405
405
  }
406
- function R(t, e, r) {
406
+ function x(t, e, r) {
407
407
  r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
408
408
  }
409
- const K = /* @__PURE__ */ new Map();
409
+ const H = /* @__PURE__ */ new Map();
410
410
  function pe(t, e, r) {
411
- if (K.has(r + ":" + t + e))
412
- return K.get(t + e);
413
- const n = Ge(t, e);
414
- return K.set(r + ":" + t + e, n), n;
411
+ if (H.has(r + ":" + t + e))
412
+ return H.get(t + e);
413
+ const n = Je(t, e);
414
+ return H.set(r + ":" + t + e, n), n;
415
415
  }
416
416
  function me(t, e) {
417
417
  return pe(t, e, "c");
@@ -423,33 +423,33 @@ function et(t, e, r, n, s) {
423
423
  if (r != null && n != null) {
424
424
  if (typeof r == "number" && typeof n == "number") {
425
425
  const i = r + (n - r) * s;
426
- R(t, e, i);
426
+ x(t, e, i);
427
427
  } else if (e === "boxShadow" || e === "textShadow") {
428
428
  const i = Qe(
429
429
  r,
430
430
  n
431
431
  )(s);
432
- R(t, e, i);
432
+ x(t, e, i);
433
433
  } else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
434
434
  const i = me(
435
435
  r,
436
436
  n
437
437
  )(s);
438
- R(t, e, i);
438
+ x(t, e, i);
439
439
  }
440
440
  }
441
441
  }
442
- function Bt(t, e, r, n) {
442
+ function Ut(t, e, r, n) {
443
443
  t.style.transform = "", t.style.filter = "";
444
444
  for (const [s, i] of Object.entries(r)) {
445
445
  const o = s;
446
446
  et(t, o, e[o], i, n);
447
447
  }
448
448
  }
449
- function kt(t, e) {
449
+ function Bt(t, e) {
450
450
  t.style.transform = "", t.style.filter = "";
451
451
  for (const [r, n] of Object.entries(e))
452
- n != null && R(t, r, n);
452
+ n != null && x(t, r, n);
453
453
  }
454
454
  const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), we = /* @__PURE__ */ new Set([
455
455
  "rowSpan",
@@ -464,13 +464,13 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
464
464
  "outerHTML",
465
465
  "className",
466
466
  "classList"
467
- ]), j = /* @__PURE__ */ new Map();
468
- function $(t, e) {
469
- if (j.has(t))
470
- return j.get(t);
467
+ ]), K = /* @__PURE__ */ new Map();
468
+ function C(t, e) {
469
+ if (K.has(t))
470
+ return K.get(t);
471
471
  {
472
472
  const r = e(t);
473
- return j.set(t, r), r;
473
+ return K.set(t, r), r;
474
474
  }
475
475
  }
476
476
  function tt(t) {
@@ -499,7 +499,7 @@ function it(t) {
499
499
  };
500
500
  }
501
501
  function ve(t) {
502
- return ge.has(t) ? $(t, tt) : we.has(t) ? $(t, rt) : be.has(t) ? $(t, nt) : Se.has(t) ? $(t, st) : $(t, it);
502
+ return ge.has(t) ? C(t, tt) : we.has(t) ? C(t, rt) : be.has(t) ? C(t, nt) : Se.has(t) ? C(t, st) : C(t, it);
503
503
  }
504
504
  function Ae(t) {
505
505
  return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) : be.has(t) ? e[t] : Se.has(t) ? String(e[t]) : e.getAttribute(t);
@@ -522,19 +522,19 @@ class v {
522
522
  * @param namespace - The namespace URI to create the element in, or `undefined` to create a standard HTML element.
523
523
  * @returns The newly created element.
524
524
  */
525
- a(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
525
+ u(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
526
526
  /**
527
527
  * Creates a new text node with the specified text content.
528
528
  * @param text - The text content for the new text node.
529
529
  * @returns A new `Text` node with the specified text content.
530
530
  */
531
- a(this, "createText", (e) => this.document.createTextNode(e));
531
+ u(this, "createText", (e) => this.document.createTextNode(e));
532
532
  /**
533
533
  * Creates a new `DOMContext` with a reference to a newly created text node.
534
534
  * The text node is appended or inserted to the current `DOMContext`.
535
535
  * The new `DOMContext` with the reference is returned.
536
536
  */
537
- a(this, "makeRef", () => {
537
+ u(this, "makeRef", () => {
538
538
  const e = this.createText("");
539
539
  return this.appendOrInsert(e), this.withReference(e);
540
540
  });
@@ -543,7 +543,7 @@ class v {
543
543
  *
544
544
  * @param child - The child node to append or insert.
545
545
  */
546
- a(this, "appendOrInsert", (e) => {
546
+ u(this, "appendOrInsert", (e) => {
547
547
  this.reference === void 0 ? this.element.appendChild(e) : this.element.insertBefore(e, this.reference);
548
548
  });
549
549
  /**
@@ -552,18 +552,18 @@ class v {
552
552
  * @param document - The `Document` to use for the `DOMContext`.
553
553
  * @returns A new `DOMContext` instance.
554
554
  */
555
- a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
555
+ u(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
556
556
  /**
557
557
  * Creates a new `DOMContext` instance with the provided `element`.
558
558
  * @param element - The DOM element to use in the new `DOMContext` instance.
559
559
  * @returns A new `DOMContext` instance with the provided `element`.
560
560
  */
561
- a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
561
+ u(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
562
562
  /**
563
563
  * Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
564
564
  * @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
565
565
  */
566
- a(this, "withFirstLevel", () => new v(
566
+ u(this, "withFirstLevel", () => new v(
567
567
  this.document,
568
568
  this.element,
569
569
  this.reference,
@@ -576,7 +576,7 @@ class v {
576
576
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
577
577
  * @returns A new `DOMContext` instance with the specified reference.
578
578
  */
579
- a(this, "withReference", (e) => new v(
579
+ u(this, "withReference", (e) => new v(
580
580
  this.document,
581
581
  this.element,
582
582
  e,
@@ -589,7 +589,7 @@ class v {
589
589
  * @param value - The value to set for the provider.
590
590
  * @returns A new DOMContext with the updated providers.
591
591
  */
592
- a(this, "withProvider", (e, r) => new v(
592
+ u(this, "withProvider", (e, r) => new v(
593
593
  this.document,
594
594
  this.element,
595
595
  this.reference,
@@ -606,7 +606,7 @@ class v {
606
606
  * @param providers - An object containing the providers to be merged into the existing providers.
607
607
  * @returns A new DOMContext instance with the merged providers.
608
608
  */
609
- a(this, "withProviders", (e) => new v(
609
+ u(this, "withProviders", (e) => new v(
610
610
  this.document,
611
611
  this.element,
612
612
  this.reference,
@@ -623,7 +623,7 @@ class v {
623
623
  * @returns The provider for the given mark.
624
624
  * @throws {Error} If the provider for the given mark is not found.
625
625
  */
626
- a(this, "getProvider", (e) => {
626
+ u(this, "getProvider", (e) => {
627
627
  if (this.providers[e] === void 0)
628
628
  throw new Error(`Provider not found: ${e.description}`);
629
629
  return this.providers[e];
@@ -651,7 +651,7 @@ function ot(t) {
651
651
  function ye(t) {
652
652
  return t.nodeType === 1;
653
653
  }
654
- function ut(t, e, r) {
654
+ function at(t, e, r) {
655
655
  let n = t.target;
656
656
  for (; n != null && !(n instanceof HTMLAnchorElement); )
657
657
  n = n.parentElement;
@@ -660,53 +660,54 @@ function ut(t, e, r) {
660
660
  if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
661
661
  return !0;
662
662
  if (r) {
663
- const { pathname: i, search: o, hash: l } = s, u = i + o + l;
664
- if (s.getAttribute("href") !== u || e && !/\/[^/.]*$/.test(i))
663
+ const { pathname: i, search: o, hash: l } = s, a = i + o + l;
664
+ if (s.getAttribute("href") !== a || e && !/\/[^/.]*$/.test(i))
665
665
  return !0;
666
666
  }
667
667
  return !1;
668
668
  }
669
- const Gt = (t, e = {
669
+ const Jt = (t, e = {
670
670
  checkExtension: !0,
671
671
  checkExternalUrl: !0
672
672
  }) => (r) => {
673
673
  const { checkExtension: n, checkExternalUrl: s } = e;
674
- ut(
674
+ at(
675
675
  r,
676
676
  n === !0,
677
677
  s === !0
678
678
  ) || t() && r.preventDefault();
679
- }, z = "data-tempo-attr", O = "data-tempo-class", Ee = "data-tempo-node", x = "data-tempo-text";
680
- function at(t, e) {
681
- const r = t.getAttribute(z);
682
- r != null && t.setAttribute(`${z}:${e}`, r);
679
+ }, M = "data-tempo-attr", N = "data-tempo-class", Ee = "data-tempo-node", W = "data-tempo-text";
680
+ function ut(t, e) {
681
+ const r = t.getAttribute(e);
682
+ if (r != null) {
683
+ const n = t.getAttribute(M) ?? "{}", s = { ...JSON.parse(n), name: r };
684
+ t.setAttribute(M, JSON.stringify(s));
685
+ }
683
686
  }
684
687
  function _e(t, e) {
685
- T.isSSR && t.isFirstLevel && at(t.element, e);
688
+ D.isSSR && t.isFirstLevel && ut(t.element, e);
686
689
  }
687
690
  function lt(t) {
688
- t.querySelectorAll(`[^${z}]`).forEach((e) => {
689
- const r = e.getAttributeNames().filter((n) => n.startsWith(`${z}:`));
690
- for (const n of r) {
691
- const s = e.getAttribute(n), i = n.split("-").pop();
692
- e.removeAttribute(n), e.setAttribute(i, s);
693
- }
691
+ t.querySelectorAll(`[${M}]`).forEach((e) => {
692
+ const r = JSON.parse(e.getAttribute(M) ?? "{}");
693
+ for (const [n, s] of Object.entries(r))
694
+ e.setAttribute(n, s);
695
+ e.removeAttribute(M);
694
696
  });
695
697
  }
696
698
  function ct(t) {
697
- const e = t.className.trim();
698
- e.length > 0 && t.setAttribute(O, e);
699
+ console.log("addClassTracker", N, t.className), t.setAttribute(N, t.className);
699
700
  }
700
701
  function Pe(t) {
701
- T.isSSR && t.isFirstLevel && ct(t.element);
702
+ D.isSSR && t.isFirstLevel && ct(t.element);
702
703
  }
703
704
  function ft(t) {
704
- t.querySelectorAll(`[${O}]`).forEach((e) => {
705
- const r = e.getAttribute(O);
706
- r !== null && (e.className = r, e.removeAttribute(O));
705
+ t.querySelectorAll(`[${N}]`).forEach((e) => {
706
+ const r = e.getAttribute(N);
707
+ r !== null && (e.className = r, e.removeAttribute(N));
707
708
  });
708
709
  }
709
- function De(t) {
710
+ function Te(t) {
710
711
  t.setAttribute(Ee, "");
711
712
  }
712
713
  function ht(t) {
@@ -715,24 +716,24 @@ function ht(t) {
715
716
  });
716
717
  }
717
718
  function dt(t) {
718
- t.setAttribute(x, t.textContent ?? "");
719
+ t.setAttribute(W, t.textContent ?? "");
719
720
  }
720
- function Te(t) {
721
- T.isSSR && t.isFirstLevel && dt(t.element);
721
+ function De(t) {
722
+ D.isSSR && t.isFirstLevel && dt(t.element);
722
723
  }
723
724
  function pt(t) {
724
- t.querySelectorAll(`[${x}]`).forEach((e) => {
725
- e.textContent = e.getAttribute(x), e.removeAttribute(x);
725
+ t.querySelectorAll(`[${W}]`).forEach((e) => {
726
+ e.textContent = e.getAttribute(W), e.removeAttribute(W);
726
727
  });
727
728
  }
728
- const $e = (t) => (e) => {
729
- Te(e);
729
+ const Ce = (t) => (e) => {
730
+ De(e);
730
731
  const r = e.createText(t);
731
732
  return e.appendOrInsert(r), (n) => {
732
733
  n && b(r);
733
734
  };
734
- }, Ce = (t) => (e) => {
735
- Te(e);
735
+ }, Me = (t) => (e) => {
736
+ De(e);
736
737
  const r = e.createText(t.value);
737
738
  e.appendOrInsert(r);
738
739
  const n = t.on((s) => r.data = s);
@@ -740,8 +741,8 @@ const $e = (t) => (e) => {
740
741
  n(), s && b(r);
741
742
  };
742
743
  };
743
- function Jt(t) {
744
- return d.is(t) ? Ce(t) : $e(t);
744
+ function Gt(t) {
745
+ return d.is(t) ? Me(t) : Ce(t);
745
746
  }
746
747
  const g = (...t) => (e) => {
747
748
  const r = t.map((n) => f(n)(e));
@@ -827,22 +828,22 @@ const g = (...t) => (e) => {
827
828
  }
828
829
  );
829
830
  function f(t) {
830
- return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? $e(t) : d.is(t) ? Ce(t) : t;
831
+ return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ce(t) : d.is(t) ? Me(t) : t;
831
832
  }
832
- function Me(t, ...e) {
833
+ function Ne(t, ...e) {
833
834
  return (r) => {
834
835
  const n = r.createElement(t, void 0);
835
- r.isFirstLevel && T.isSSR && De(n), r.appendOrInsert(n), r = r.withElement(n);
836
+ r.isFirstLevel && D.isSSR && Te(n), r.appendOrInsert(n), r = r.withElement(n);
836
837
  const s = e.map((i) => f(i)(r));
837
838
  return (i) => {
838
839
  s.forEach((o) => o(!1)), i && b(n);
839
840
  };
840
841
  };
841
842
  }
842
- function Ne(t, e, ...r) {
843
+ function $e(t, e, ...r) {
843
844
  return (n) => {
844
845
  const s = n.createElement(t, e);
845
- n.isFirstLevel && T.isSSR && De(s), n.appendOrInsert(s), n = n.withElement(s);
846
+ n.isFirstLevel && D.isSSR && Te(s), n.appendOrInsert(s), n = n.withElement(s);
846
847
  const i = r.map((o) => f(o)(n));
847
848
  return (o) => {
848
849
  i.forEach((l) => l(!1)), o && b(s);
@@ -852,43 +853,43 @@ function Ne(t, e, ...r) {
852
853
  const rr = new Proxy(
853
854
  {},
854
855
  {
855
- get: (t, e) => (...r) => Me(e, r.flatMap(f))
856
+ get: (t, e) => (...r) => Ne(e, r.flatMap(f))
856
857
  }
857
858
  ), nr = new Proxy(
858
859
  {},
859
860
  {
860
- get: (t, e) => (...r) => Me("input", P.type(e), ...r)
861
+ get: (t, e) => (...r) => Ne("input", P.type(e), ...r)
861
862
  }
862
863
  ), wt = "http://www.w3.org/2000/svg", sr = new Proxy(
863
864
  {},
864
865
  {
865
- get: (t, e) => (...r) => Ne(e, wt, r.flatMap(f))
866
+ get: (t, e) => (...r) => $e(e, wt, r.flatMap(f))
866
867
  }
867
868
  ), bt = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
868
869
  {},
869
870
  {
870
- get: (t, e) => (...r) => Ne(e, bt, r.flatMap(f))
871
+ get: (t, e) => (...r) => $e(e, bt, r.flatMap(f))
871
872
  }
872
873
  );
873
- let W = !1;
874
+ let F = !1;
874
875
  function St(t) {
875
876
  ht(t), ft(t), lt(t), pt(t);
876
877
  }
877
- let U = 0;
878
- const or = (t = 30) => (W = !0, new Promise((e, r) => {
878
+ let k = 0;
879
+ const or = (t = 30) => (F = !0, new Promise((e, r) => {
879
880
  let n;
880
881
  const s = setInterval(() => {
881
- U <= 0 && (clearInterval(s), clearTimeout(n), W = !1, e());
882
+ k <= 0 && (clearInterval(s), clearTimeout(n), F = !1, e());
882
883
  }, 300);
883
884
  n = setTimeout(() => {
884
- clearInterval(s), W = !1, r(new Error("SSR Timeout"));
885
+ clearInterval(s), F = !1, r(new Error("SSR Timeout"));
885
886
  }, t * 1e3);
886
- })), T = {
887
+ })), D = {
887
888
  useDone(t) {
888
- return U++, f(t(() => U--));
889
+ return k++, f(t(() => k--));
889
890
  },
890
891
  get isSSR() {
891
- return W;
892
+ return F;
892
893
  }
893
894
  }, Le = (t, e) => (r) => {
894
895
  const n = Object.values(t).reduce((s, i) => {
@@ -898,17 +899,17 @@ const or = (t = 30) => (W = !0, new Promise((e, r) => {
898
899
  return s[i] = o, s;
899
900
  }, {});
900
901
  return f(e(n))(r);
901
- }, ur = (t, e) => (r) => {
902
+ }, ar = (t, e) => (r) => {
902
903
  const n = [], s = Object.entries(t).reduce(
903
904
  (i, [o, l]) => (n.push(
904
- l((u) => (Reflect.set(i, o, u), null))(r)
905
+ l((a) => (Reflect.set(i, o, a), null))(r)
905
906
  ), i),
906
907
  {}
907
908
  );
908
909
  return n.push(e(s)(r)), (i) => {
909
910
  n.forEach((o) => o(i));
910
911
  };
911
- }, vt = (t, e) => Le([t], (r) => f(e(r[t]))), ar = (t, e) => Le(t, (r) => f(e(r))), M = (t) => (e) => (r) => t(r, e);
912
+ }, vt = (t, e) => Le([t], (r) => f(e(r[t]))), ur = (t, e) => Le(t, (r) => f(e(r))), L = (t) => (e) => (r) => t(r, e);
912
913
  function At(t) {
913
914
  return Symbol(t);
914
915
  }
@@ -930,7 +931,7 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
930
931
  }, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
931
932
  return s == null || s.addEventListener("change", n), g(
932
933
  yt(oe, r, t),
933
- M(() => s == null ? void 0 : s.removeEventListener("change", n))
934
+ L(() => s == null ? void 0 : s.removeEventListener("change", n))
934
935
  );
935
936
  },
936
937
  /**
@@ -941,27 +942,27 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
941
942
  * @returns The `Child` element returned by the provided function.
942
943
  */
943
944
  consume: (t) => vt(oe, t)
944
- }, Re = (t, e) => {
945
+ }, Oe = (t, e) => {
945
946
  if (typeof e == "function")
946
- return Re(t, { then: e });
947
+ return Oe(t, { then: e });
947
948
  const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
948
949
  return (i) => {
949
950
  let o = !0;
950
951
  const l = t();
951
952
  i = i.makeRef();
952
- let u = f(r)(i);
953
+ let a = f(r)(i);
953
954
  return l.then(
954
955
  (c) => {
955
- o && (u(!0), u = f(n(c))(i));
956
+ o && (a(!0), a = f(n(c))(i));
956
957
  },
957
958
  (c) => {
958
- o && (u(!0), u = f(s(c))(i));
959
+ o && (a(!0), a = f(s(c))(i));
959
960
  }
960
961
  ), (c) => {
961
- o = !1, u(c), c && i.reference && b(i.reference);
962
+ o = !1, a(c), c && i.reference && b(i.reference);
962
963
  };
963
964
  };
964
- }, hr = (t, e) => Re(() => t, e), dr = (t = 10) => (e) => {
965
+ }, hr = (t, e) => Oe(() => t, e), dr = (t = 10) => (e) => {
965
966
  const r = setTimeout(() => {
966
967
  var n;
967
968
  (n = e.element) == null || n.focus();
@@ -975,9 +976,9 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
975
976
  return (n) => {
976
977
  clearTimeout(r);
977
978
  };
978
- }, Oe = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
979
+ }, Re = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
979
980
  n && r.element.removeEventListener(t, e);
980
- }), Et = (t) => Oe("click", (e) => {
981
+ }), Et = (t) => Re("click", (e) => {
981
982
  e.preventDefault();
982
983
  const r = e.target;
983
984
  setTimeout(() => {
@@ -987,7 +988,7 @@ const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length >
987
988
  }), X = new Proxy(
988
989
  {},
989
990
  {
990
- get: (t, e) => (r) => Oe(e, r)
991
+ get: (t, e) => (r) => Re(e, r)
991
992
  }
992
993
  ), Y = {
993
994
  value: (t) => (e) => {
@@ -1046,62 +1047,62 @@ function Pt(t, e = "input") {
1046
1047
  X[e](Y.valueAsDateTime(t.set))
1047
1048
  );
1048
1049
  }
1049
- function Dt(t, e = "input") {
1050
+ function Tt(t, e = "input") {
1050
1051
  return g(
1051
1052
  P.valueAsNumber(t),
1052
1053
  X[e](Y.valueAsNumber(t.set))
1053
1054
  );
1054
1055
  }
1055
- function Tt(t, e = "input") {
1056
+ function Dt(t, e = "input") {
1056
1057
  return g(P.value(t), X[e](Y.value(t.set)));
1057
1058
  }
1058
- function $t(t) {
1059
+ function Ct(t) {
1059
1060
  return g(P.checked(t), Et(t.set));
1060
1061
  }
1061
1062
  const mr = {
1062
1063
  date: _t,
1063
1064
  dateTime: Pt,
1064
- number: Dt,
1065
- text: Tt,
1066
- checked: $t
1067
- }, I = (t, e) => (r) => {
1065
+ number: Tt,
1066
+ text: Dt,
1067
+ checked: Ct
1068
+ }, R = (t, e) => (r) => {
1068
1069
  r = r.makeRef();
1069
1070
  let n, s;
1070
- const i = t.map((u) => Object.keys(u)[0]);
1071
+ const i = t.map((a) => Object.keys(a)[0]);
1071
1072
  let o;
1072
- const l = i.on((u) => {
1073
- if (u !== o) {
1074
- s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
1075
- const c = e[u](s);
1076
- n = f(c)(r), o = u;
1073
+ const l = i.on((a) => {
1074
+ if (a !== o) {
1075
+ s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[a]);
1076
+ const c = e[a](s);
1077
+ n = f(c)(r), o = a;
1077
1078
  }
1078
1079
  });
1079
- return (u) => {
1080
- l(), u && r.reference != null && b(r.reference), n == null || n(!0);
1080
+ return (a) => {
1081
+ l(), a && r.reference != null && b(r.reference), n == null || n(!0);
1081
1082
  };
1082
- }, N = {
1083
- bool: (t, e) => I(
1083
+ }, I = {
1084
+ bool: (t, e) => R(
1084
1085
  t.map((r) => r ? { true: !0 } : { false: !0 }),
1085
1086
  e
1086
1087
  ),
1087
- field: (t, e, r) => I(
1088
+ field: (t, e, r) => R(
1088
1089
  t.map((n) => ({ [n[e]]: n })),
1089
1090
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1090
1091
  r
1091
1092
  ),
1092
- kind: (t, e) => N.field(t, "kind", e),
1093
+ kind: (t, e) => I.field(t, "kind", e),
1093
1094
  tuple: (t, e) => {
1094
1095
  const r = t.map(([n, s]) => ({ [n]: s }));
1095
- return I(r, e);
1096
+ return R(r, e);
1096
1097
  },
1097
- type: (t, e) => N.field(t, "type", e),
1098
- value: (t, e) => I(
1098
+ type: (t, e) => I.field(t, "type", e),
1099
+ value: (t, e) => R(
1099
1100
  t.map((r) => ({ [r]: !0 })),
1100
1101
  e
1101
1102
  )
1102
1103
  }, gr = (t, e) => (r) => {
1103
1104
  const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
1104
- return N.value(
1105
+ return I.value(
1105
1106
  r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
1106
1107
  {
1107
1108
  first: () => n,
@@ -1111,21 +1112,21 @@ const mr = {
1111
1112
  );
1112
1113
  }, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
1113
1114
  r && b(t);
1114
- }), Ct = (t, e, r) => (n) => {
1115
+ }), Mt = (t, e, r) => (n) => {
1115
1116
  n = n.makeRef();
1116
1117
  let s = null, i = !1;
1117
- const o = A(null), l = t.on((u) => {
1118
- u == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = u, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
1118
+ const o = A(null), l = t.on((a) => {
1119
+ a == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = a, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
1119
1120
  });
1120
- return (u) => {
1121
- l(), s == null || s(u), u && n.reference && b(n.reference);
1121
+ return (a) => {
1122
+ l(), s == null || s(a), a && n.reference && b(n.reference);
1122
1123
  };
1123
1124
  }, xe = (t, e, r) => r != null ? xe(t, (n) => {
1124
1125
  const s = n.map((i) => i.isLast ? "last" : "other");
1125
1126
  return g(
1126
- M(() => s.dispose()),
1127
+ L(() => s.dispose()),
1127
1128
  f(e(n)),
1128
- N.value(s, {
1129
+ I.value(s, {
1129
1130
  last: () => w,
1130
1131
  other: () => r(n)
1131
1132
  })
@@ -1133,31 +1134,31 @@ const mr = {
1133
1134
  }) : (n) => {
1134
1135
  n = n.makeRef();
1135
1136
  const s = t.map(
1136
- (u) => Array.from({ length: u }, (c, p) => p).map(
1137
- (c) => new Ke(c, u)
1137
+ (a) => Array.from({ length: a }, (c, p) => p).map(
1138
+ (c) => new He(c, a)
1138
1139
  )
1139
- ), i = [], o = [], l = s.on((u) => {
1140
+ ), i = [], o = [], l = s.on((a) => {
1140
1141
  var p, m;
1141
- const c = u.length;
1142
+ const c = a.length;
1142
1143
  for (; c < i.length; )
1143
1144
  (p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
1144
1145
  for (let h = 0; h < c; h++)
1145
1146
  if (o[h] == null) {
1146
- o[h] = A(u[h]);
1147
+ o[h] = A(a[h]);
1147
1148
  const _ = f(e(o[h]));
1148
1149
  i[h] = _(n);
1149
1150
  } else
1150
- o[h].value = u[h];
1151
+ o[h].value = a[h];
1151
1152
  });
1152
- return (u) => {
1153
- l(), u && n.reference && b(n.reference);
1153
+ return (a) => {
1154
+ l(), a && n.reference && b(n.reference);
1154
1155
  };
1155
- }, Mt = (t, e, r) => r != null ? Mt(t, (n, s) => {
1156
+ }, Nt = (t, e, r) => r != null ? Nt(t, (n, s) => {
1156
1157
  const i = s.map((o) => o.isLast ? "last" : "other");
1157
1158
  return g([
1158
- M(() => i.dispose()),
1159
+ L(() => i.dispose()),
1159
1160
  f(e(n, s)),
1160
- N.value(i, {
1161
+ I.value(i, {
1161
1162
  last: () => w,
1162
1163
  other: () => r(s)
1163
1164
  })
@@ -1165,12 +1166,12 @@ const mr = {
1165
1166
  }) : (n) => {
1166
1167
  const s = t.map((i) => i.length);
1167
1168
  return xe(s, (i) => {
1168
- const o = B(
1169
+ const o = U(
1169
1170
  () => t.value[i.value.index],
1170
1171
  [i, t]
1171
1172
  );
1172
1173
  return g(
1173
- M(() => o.dispose()),
1174
+ L(() => o.dispose()),
1174
1175
  f(e(o, i))
1175
1176
  );
1176
1177
  })(n);
@@ -1192,7 +1193,7 @@ function vr(t, e, { doc: r, clear: n } = {}) {
1192
1193
  const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
1193
1194
  return We(t, l);
1194
1195
  }
1195
- const Nt = (t, e) => (r) => {
1196
+ const $t = (t, e) => (r) => {
1196
1197
  const n = r.document.querySelector(t);
1197
1198
  if (n === null)
1198
1199
  throw new Error(`Cannot find element by selector for portal: ${t}`);
@@ -1200,12 +1201,12 @@ const Nt = (t, e) => (r) => {
1200
1201
  f(e),
1201
1202
  r.withElement(n).withFirstLevel()
1202
1203
  );
1203
- }, Ar = (t) => Nt("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
1204
- }), k = (t, e, r) => Ct(
1204
+ }, Ar = (t) => $t("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
1205
+ }), B = (t, e, r) => Mt(
1205
1206
  t.map((n) => n ? !0 : null),
1206
1207
  () => e,
1207
1208
  r != null ? () => r : void 0
1208
- ), yr = (t, e, r) => k(
1209
+ ), yr = (t, e, r) => B(
1209
1210
  t.map((n) => !n),
1210
1211
  e,
1211
1212
  r
@@ -1220,36 +1221,36 @@ const Nt = (t, e) => (r) => {
1220
1221
  rootMargin: "0px",
1221
1222
  threshold: 1
1222
1223
  }
1223
- }, F = {
1224
+ }, z = {
1224
1225
  partial: /* @__PURE__ */ new Map(),
1225
1226
  full: /* @__PURE__ */ new Map()
1226
- }, C = {
1227
+ }, $ = {
1227
1228
  partial: null,
1228
1229
  full: null
1229
1230
  };
1230
- function Rt(t) {
1231
- return C[t] == null && (C[t] = new IntersectionObserver((e) => {
1231
+ function Ot(t) {
1232
+ return $[t] == null && ($[t] = new IntersectionObserver((e) => {
1232
1233
  e.forEach((r) => {
1233
- const n = F[t].get(r.target);
1234
+ const n = z[t].get(r.target);
1234
1235
  n == null || n.set(r.isIntersecting);
1235
1236
  });
1236
- }, It[t])), C[t];
1237
+ }, It[t])), $[t];
1237
1238
  }
1238
- function Ot(t, e) {
1239
- const r = A(T.isSSR);
1239
+ function Rt(t, e) {
1240
+ const r = A(D.isSSR);
1240
1241
  return g(
1241
1242
  Lt((n) => {
1242
- const s = typeof IntersectionObserver < "u" ? Rt(t) : null;
1243
- return F[t].set(n, r), s == null || s.observe(n), () => {
1243
+ const s = typeof IntersectionObserver < "u" ? Ot(t) : null;
1244
+ return z[t].set(n, r), s == null || s.observe(n), () => {
1244
1245
  var i;
1245
- s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i = C[t]) == null || i.disconnect(), C[t] = null);
1246
+ s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = $[t]) == null || i.disconnect(), $[t] = null);
1246
1247
  };
1247
1248
  }),
1248
- M(r.dispose),
1249
+ L(r.dispose),
1249
1250
  f(e(r))
1250
1251
  );
1251
1252
  }
1252
- const Er = (t, e, r) => Ot(t, (n) => k(n, e, r ?? w)), _r = (t, e) => (r) => {
1253
+ const Er = (t, e, r) => Rt(t, (n) => B(n, e, r ?? w)), _r = (t, e) => (r) => {
1253
1254
  r = r.makeRef();
1254
1255
  const n = t.map((o) => f(e(o)));
1255
1256
  let s = () => {
@@ -1262,7 +1263,7 @@ const Er = (t, e, r) => Ot(t, (n) => k(n, e, r ?? w)), _r = (t, e) => (r) => {
1262
1263
  };
1263
1264
  };
1264
1265
  function Pr(t, e, r = w) {
1265
- return k(
1266
+ return B(
1266
1267
  t.map((n) => n.length > 0),
1267
1268
  e,
1268
1269
  r
@@ -1289,7 +1290,7 @@ const xt = (t) => (e) => {
1289
1290
  return window == null || window.addEventListener("resize", s), (i) => {
1290
1291
  window == null || window.removeEventListener("resize", s), n(i);
1291
1292
  };
1292
- }, Dr = {
1293
+ }, Tr = {
1293
1294
  element: xt,
1294
1295
  window: Wt
1295
1296
  }, Ft = (t, e) => (r) => {
@@ -1302,7 +1303,7 @@ const xt = (t) => (e) => {
1302
1303
  return e.on((i) => n.style.setProperty(t, i)), (i) => {
1303
1304
  i && n.style.setProperty(t, s);
1304
1305
  };
1305
- }, Tr = new Proxy(
1306
+ }, Dr = new Proxy(
1306
1307
  {},
1307
1308
  {
1308
1309
  get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
@@ -1312,71 +1313,71 @@ export {
1312
1313
  hr as Async,
1313
1314
  dr as AutoFocus,
1314
1315
  pr as AutoSelect,
1315
- D as Computed,
1316
+ T as Computed,
1316
1317
  gr as Conjunction,
1317
1318
  wr as Ctx,
1318
1319
  v as DOMContext,
1319
1320
  br as DOMEl,
1320
- Me as El,
1321
- Ne as ElNS,
1321
+ Ne as El,
1322
+ $e as ElNS,
1322
1323
  w as Empty,
1323
- Ct as Ensure,
1324
- Mt as ForEach,
1324
+ Mt as Ensure,
1325
+ Nt as ForEach,
1325
1326
  g as Fragment,
1326
1327
  Ar as HTMLTitle,
1327
1328
  Sr as HiddenWhenEmpty,
1328
- Ot as InViewport,
1329
+ Rt as InViewport,
1329
1330
  _r as MapSignal,
1330
1331
  he as MemoryStore,
1331
1332
  Pr as NotEmpty,
1332
1333
  Et as OnChecked,
1333
- M as OnDispose,
1334
+ L as OnDispose,
1334
1335
  Lt as OnMount,
1335
- Nt as Portal,
1336
- Ke as Position,
1336
+ $t as Portal,
1337
+ He as Position,
1337
1338
  V as Prop,
1338
1339
  lr as Provide,
1339
1340
  xe as Repeat,
1340
1341
  d as Signal,
1341
- Re as Task,
1342
- Jt as Text,
1342
+ Oe as Task,
1343
+ Gt as Text,
1343
1344
  yr as Unless,
1344
- ur as Use,
1345
+ ar as Use,
1345
1346
  vt as UseProvider,
1346
- ar as UseProviders,
1347
- k as When,
1347
+ ur as UseProviders,
1348
+ B as When,
1348
1349
  Er as WhenInViewport,
1349
1350
  yt as WithProvider,
1350
1351
  cr as WithProviders,
1351
- Ue as animate,
1352
- Ht as animateOne,
1352
+ ke as animate,
1353
+ jt as animateOne,
1353
1354
  fr as appearance,
1354
1355
  oe as appearanceMarker,
1355
- kt as applyAnimatable,
1356
- R as applyAnimatableProp,
1357
- Bt as applyInterpolatedAnimatable,
1356
+ Bt as applyAnimatable,
1357
+ x as applyAnimatableProp,
1358
+ Ut as applyInterpolatedAnimatable,
1358
1359
  et as applyInterpolatedAnimatableProp,
1359
1360
  Qt as aria,
1360
1361
  P as attr,
1361
1362
  mr as bind,
1362
1363
  f as childToMountable,
1363
1364
  St as clearSSR,
1364
- ke as colorChannelsToString,
1365
- B as computed,
1366
- Kt as computedRecord,
1365
+ Be as colorChannelsToString,
1366
+ U as computed,
1367
+ Ht as computedRecord,
1367
1368
  Xe as dateInterpolate,
1368
1369
  qt as effect,
1369
1370
  Y as emit,
1370
1371
  Ye as endInterpolate,
1371
- Ut as getComputedAnimatable,
1372
- Je as getComputedAnimatableProp,
1372
+ kt as getComputedAnimatable,
1373
+ Ge as getComputedAnimatableProp,
1373
1374
  ot as getSelfOrParentElement,
1374
- He as guessInterpolate,
1375
- Gt as handleAnchorClick,
1375
+ je as guessInterpolate,
1376
+ Jt as handleAnchorClick,
1376
1377
  rr as html,
1377
1378
  nr as input,
1378
- Ge as interpolateColor,
1379
- jt as interpolateShadow,
1379
+ Je as interpolateColor,
1380
+ Kt as interpolateShadow,
1380
1381
  ye as isElement,
1381
1382
  Ae as makeGetter,
1382
1383
  At as makeProviderMark,
@@ -1385,7 +1386,7 @@ export {
1385
1386
  tr as mathAttr,
1386
1387
  qe as numberInterpolate,
1387
1388
  X as on,
1388
- N as oneof,
1389
+ I as oneof,
1389
1390
  se as parseColorChannels,
1390
1391
  A as prop,
1391
1392
  Xt as propOfLocalStorage,
@@ -1400,13 +1401,13 @@ export {
1400
1401
  rt as setNumberProperty,
1401
1402
  st as setStringProperty,
1402
1403
  Zt as signal,
1403
- Ce as signalText,
1404
- Dr as size,
1405
- T as ssr,
1404
+ Me as signalText,
1405
+ Tr as size,
1406
+ D as ssr,
1406
1407
  or as startSSR,
1407
- $e as staticText,
1408
+ Ce as staticText,
1408
1409
  Ze as stringInterpolate,
1409
- Tr as style,
1410
+ Dr as style,
1410
1411
  sr as svg,
1411
1412
  er as svgAttr
1412
1413
  };