@tempots/dom 10.0.1 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dom/ssr-tracker.d.ts +0 -1
- package/index.cjs +1 -1
- package/index.js +315 -315
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (t, e, r) =>
|
|
4
|
-
function
|
|
1
|
+
var ze = Object.defineProperty;
|
|
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);
|
|
4
|
+
function qe(t, e, r) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
7
7
|
const Q = 97;
|
|
8
|
-
function
|
|
8
|
+
function Ze(t, e, r) {
|
|
9
9
|
const n = Math.max(t.length, e.length);
|
|
10
10
|
let s = "";
|
|
11
11
|
for (let i = 0; i < n; i++) {
|
|
@@ -16,16 +16,16 @@ function Ve(t, e, r) {
|
|
|
16
16
|
}
|
|
17
17
|
return s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Xe(t, e, r) {
|
|
20
20
|
return new Date(t.getTime() + (e.getTime() - t.getTime()) * r);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ye(t, e, r) {
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return typeof t == "number" ?
|
|
25
|
+
function He(t) {
|
|
26
|
+
return typeof t == "number" ? qe : typeof t == "string" ? Ze : t instanceof Date ? Xe : Ye;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class Ke {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -70,7 +70,7 @@ const E = class E {
|
|
|
70
70
|
this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
|
|
71
71
|
});
|
|
72
72
|
a(this, "map", (e, r = (n, s) => n === s) => {
|
|
73
|
-
const n = new
|
|
73
|
+
const n = new D(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
76
76
|
} catch (s) {
|
|
@@ -80,7 +80,7 @@ const E = class E {
|
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
82
|
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
|
-
const n = new
|
|
83
|
+
const n = new D(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
86
86
|
} catch (s) {
|
|
@@ -93,7 +93,7 @@ const E = class E {
|
|
|
93
93
|
a(this, "at", (e) => this.map((r) => r[e]));
|
|
94
94
|
a(this, "filter", (e, r) => {
|
|
95
95
|
let n = r ?? this.get();
|
|
96
|
-
const s = new
|
|
96
|
+
const s = new D(() => {
|
|
97
97
|
try {
|
|
98
98
|
const i = this.get();
|
|
99
99
|
return n = e(i) ? i : n;
|
|
@@ -105,7 +105,7 @@ const E = class E {
|
|
|
105
105
|
});
|
|
106
106
|
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
|
-
const i = new
|
|
108
|
+
const i = new D(() => {
|
|
109
109
|
try {
|
|
110
110
|
const o = this.get(), l = e(o);
|
|
111
111
|
return s = l ?? s;
|
|
@@ -185,9 +185,9 @@ const E = class E {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
let d = E;
|
|
188
|
-
const
|
|
188
|
+
const je = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
189
189
|
var ae, le;
|
|
190
|
-
class
|
|
190
|
+
class D extends (le = d, ae = re, le) {
|
|
191
191
|
constructor(r, n) {
|
|
192
192
|
super(void 0, n);
|
|
193
193
|
a(this, ae, !0);
|
|
@@ -198,7 +198,7 @@ class T extends (le = d, ae = re, le) {
|
|
|
198
198
|
a(this, "_scheduleCount", 0);
|
|
199
199
|
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
je(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
@@ -213,7 +213,7 @@ class T extends (le = d, ae = re, le) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var ce, fe;
|
|
216
|
-
class
|
|
216
|
+
class V extends (fe = d, ce = te, fe) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
219
|
a(this, ce, !0);
|
|
@@ -225,7 +225,7 @@ class F extends (fe = d, ce = te, fe) {
|
|
|
225
225
|
});
|
|
226
226
|
a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
|
|
227
227
|
a(this, "iso", (r, n, s = (i, o) => i === o) => {
|
|
228
|
-
const i = new
|
|
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
231
|
a(this, "atProp", (r) => this.iso(
|
|
@@ -244,16 +244,16 @@ class F extends (fe = d, ce = te, fe) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function B(t, e, r = (n, s) => n === s) {
|
|
247
|
-
const n = new
|
|
247
|
+
const n = new D(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function qt(t, e) {
|
|
251
251
|
return B(t, e).dispose;
|
|
252
252
|
}
|
|
253
253
|
function A(t, e = (r, n) => r === n) {
|
|
254
|
-
return new
|
|
254
|
+
return new V(t, e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Zt(t, e = (r, n) => r === n) {
|
|
257
257
|
return new d(t, e);
|
|
258
258
|
}
|
|
259
259
|
class he {
|
|
@@ -274,7 +274,7 @@ function de({
|
|
|
274
274
|
equals: i = (l, u) => l === u,
|
|
275
275
|
onLoad: o = (l) => l
|
|
276
276
|
}) {
|
|
277
|
-
const l = r.getItem(t), u = new
|
|
277
|
+
const l = r.getItem(t), u = new V(
|
|
278
278
|
l != null ? o(s(l)) : typeof e == "function" ? e() : e,
|
|
279
279
|
i
|
|
280
280
|
);
|
|
@@ -282,13 +282,13 @@ function de({
|
|
|
282
282
|
r.setItem(t, n(c));
|
|
283
283
|
}), u;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Xt(t) {
|
|
286
286
|
return de({
|
|
287
287
|
...t,
|
|
288
288
|
store: (window == null ? void 0 : window.localStorage) ?? new he()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Yt(t) {
|
|
292
292
|
return de({
|
|
293
293
|
...t,
|
|
294
294
|
store: (window == null ? void 0 : window.sessionStorage) ?? new he()
|
|
@@ -297,30 +297,30 @@ function Zt(t) {
|
|
|
297
297
|
function ne(t) {
|
|
298
298
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ue(t, e, r, n) {
|
|
301
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
302
|
let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
|
|
303
|
-
const _ = new
|
|
303
|
+
const _ = new D(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
|
|
309
|
+
const H = (S) => {
|
|
310
310
|
c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(G));
|
|
311
311
|
}, G = () => {
|
|
312
|
-
const L = (performance.now() - p) / d.unwrap(s),
|
|
313
|
-
l == null && (l =
|
|
314
|
-
let J = l(u, c,
|
|
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
315
|
L >= 1 ? (h = !0, J = c) : m = ne(G), y.set(J);
|
|
316
316
|
};
|
|
317
|
-
return _.on(
|
|
317
|
+
return _.on(H), y;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ht(t, e) {
|
|
320
320
|
const { initialValue: r, ...n } = e ?? {};
|
|
321
|
-
return
|
|
321
|
+
return Ue(r ?? t.get(), t.get, [t], n);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Kt(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
325
|
({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
|
|
326
326
|
{ signals: [], literals: {} }
|
|
@@ -370,62 +370,62 @@ function ie(t) {
|
|
|
370
370
|
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Be(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
|
|
377
|
+
function ke(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
|
|
380
|
+
function Ge(t, e) {
|
|
381
381
|
const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
|
|
382
382
|
return (m) => {
|
|
383
|
-
const h = r + (l - r) * m, _ = n + (u - n) * m, y = s + (c - s) * m,
|
|
384
|
-
return
|
|
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]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function jt(t, e) {
|
|
388
388
|
const r = ie(t), n = ie(e);
|
|
389
389
|
return (s) => {
|
|
390
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
|
|
391
|
+
return Be({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Je(t, e) {
|
|
395
395
|
var r, n, s, i, o, l, u, c;
|
|
396
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));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Ut(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] =
|
|
402
|
+
i != null && (r[o] = Je(n, o));
|
|
403
403
|
}
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
406
|
function R(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
|
|
409
|
+
const K = /* @__PURE__ */ new Map();
|
|
410
410
|
function pe(t, e, r) {
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
413
|
-
const n =
|
|
414
|
-
return
|
|
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;
|
|
415
415
|
}
|
|
416
416
|
function me(t, e) {
|
|
417
417
|
return pe(t, e, "c");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Qe(t, e) {
|
|
420
420
|
return pe(t, e, "s");
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
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
426
|
R(t, e, i);
|
|
427
427
|
} else if (e === "boxShadow" || e === "textShadow") {
|
|
428
|
-
const i =
|
|
428
|
+
const i = Qe(
|
|
429
429
|
r,
|
|
430
430
|
n
|
|
431
431
|
)(s);
|
|
@@ -439,14 +439,14 @@ function Je(t, e, r, n, s) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Bt(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
|
|
449
|
+
function kt(t, e) {
|
|
450
450
|
t.style.transform = "", t.style.filter = "";
|
|
451
451
|
for (const [r, n] of Object.entries(e))
|
|
452
452
|
n != null && R(t, r, n);
|
|
@@ -464,42 +464,42 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
467
|
+
]), j = /* @__PURE__ */ new Map();
|
|
468
468
|
function $(t, e) {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (j.has(t))
|
|
470
|
+
return j.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return j.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function tt(t) {
|
|
477
477
|
return (e, r) => {
|
|
478
478
|
r == null ? e[t] = null : e[t] = !!r;
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function rt(t) {
|
|
482
482
|
return (e, r) => {
|
|
483
483
|
r == null ? e[t] = null : e[t] = Number(r);
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function nt(t) {
|
|
487
487
|
return (e, r) => {
|
|
488
488
|
r == null ? e[t] = null : e[t] = r;
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function st(t) {
|
|
492
492
|
return (e, r) => {
|
|
493
493
|
r == null ? e[t] = null : e[t] = String(r);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function it(t) {
|
|
497
497
|
return (e, r) => {
|
|
498
498
|
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
function ve(t) {
|
|
502
|
-
return ge.has(t) ? $(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);
|
|
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);
|
|
@@ -552,13 +552,7 @@ 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(
|
|
556
|
-
e,
|
|
557
|
-
this.element,
|
|
558
|
-
this.reference,
|
|
559
|
-
this.providers,
|
|
560
|
-
!1
|
|
561
|
-
));
|
|
555
|
+
a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
|
|
562
556
|
/**
|
|
563
557
|
* Creates a new `DOMContext` instance with the provided `element`.
|
|
564
558
|
* @param element - The DOM element to use in the new `DOMContext` instance.
|
|
@@ -651,13 +645,13 @@ function b(t) {
|
|
|
651
645
|
const e = t;
|
|
652
646
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
653
647
|
}
|
|
654
|
-
function
|
|
648
|
+
function ot(t) {
|
|
655
649
|
return ye(t) ? t : t.parentElement;
|
|
656
650
|
}
|
|
657
651
|
function ye(t) {
|
|
658
652
|
return t.nodeType === 1;
|
|
659
653
|
}
|
|
660
|
-
function
|
|
654
|
+
function ut(t, e, r) {
|
|
661
655
|
let n = t.target;
|
|
662
656
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
663
657
|
n = n.parentElement;
|
|
@@ -672,87 +666,93 @@ function it(t, e, r) {
|
|
|
672
666
|
}
|
|
673
667
|
return !1;
|
|
674
668
|
}
|
|
675
|
-
const
|
|
669
|
+
const Gt = (t, e = {
|
|
676
670
|
checkExtension: !0,
|
|
677
671
|
checkExternalUrl: !0
|
|
678
672
|
}) => (r) => {
|
|
679
673
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
680
|
-
|
|
674
|
+
ut(
|
|
681
675
|
r,
|
|
682
676
|
n === !0,
|
|
683
677
|
s === !0
|
|
684
678
|
) || t() && r.preventDefault();
|
|
685
|
-
}, Ee =
|
|
686
|
-
|
|
687
|
-
const r =
|
|
688
|
-
|
|
689
|
-
n && b(r);
|
|
690
|
-
};
|
|
691
|
-
}, _e = (t) => (e) => {
|
|
692
|
-
e.isFirstLevel && D.isSSR && e.element.setAttribute("data-tempo-text", "");
|
|
693
|
-
const r = e.createText(t.value);
|
|
694
|
-
e.appendOrInsert(r);
|
|
695
|
-
const n = t.on((s) => r.data = s);
|
|
696
|
-
return (s) => {
|
|
697
|
-
n(), s && b(r);
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
|
-
function kt(t) {
|
|
701
|
-
return d.is(t) ? _e(t) : Ee(t);
|
|
702
|
-
}
|
|
703
|
-
const g = (...t) => (e) => {
|
|
704
|
-
const r = t.map((n) => f(n)(e));
|
|
705
|
-
return (n) => {
|
|
706
|
-
r.forEach((s) => s(n));
|
|
707
|
-
};
|
|
708
|
-
}, w = () => () => {
|
|
709
|
-
}, W = "data-tempo-attr", O = "data-tempo-class", Pe = "data-tempo-node", K = "data-tempo-text";
|
|
710
|
-
function ot(t, e) {
|
|
711
|
-
const r = t.getAttribute(W);
|
|
712
|
-
r != null && t.setAttribute(`${W}:${e}`, r);
|
|
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);
|
|
713
683
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
684
|
+
function _e(t, e) {
|
|
685
|
+
T.isSSR && t.isFirstLevel && at(t.element, e);
|
|
716
686
|
}
|
|
717
|
-
function
|
|
718
|
-
t.querySelectorAll(`[^${
|
|
719
|
-
const r = e.getAttributeNames().filter((n) => n.startsWith(`${
|
|
687
|
+
function lt(t) {
|
|
688
|
+
t.querySelectorAll(`[^${z}:]`).forEach((e) => {
|
|
689
|
+
const r = e.getAttributeNames().filter((n) => n.startsWith(`${z}:`));
|
|
720
690
|
for (const n of r) {
|
|
721
691
|
const s = e.getAttribute(n), i = n.split("-").pop();
|
|
722
692
|
e.removeAttribute(n), e.setAttribute(i, s);
|
|
723
693
|
}
|
|
724
694
|
});
|
|
725
695
|
}
|
|
726
|
-
function
|
|
696
|
+
function ct(t) {
|
|
727
697
|
const e = t.className.trim();
|
|
728
698
|
e.length > 0 && t.setAttribute(O, e);
|
|
729
699
|
}
|
|
730
|
-
function
|
|
731
|
-
|
|
700
|
+
function Pe(t) {
|
|
701
|
+
T.isSSR && t.isFirstLevel && ct(t.element);
|
|
732
702
|
}
|
|
733
|
-
function
|
|
703
|
+
function ft(t) {
|
|
734
704
|
t.querySelectorAll(`[${O}]`).forEach((e) => {
|
|
735
705
|
const r = e.getAttribute(O);
|
|
736
706
|
r !== null && (e.className = r, e.removeAttribute(O));
|
|
737
707
|
});
|
|
738
708
|
}
|
|
739
|
-
function
|
|
740
|
-
t.setAttribute(
|
|
709
|
+
function De(t) {
|
|
710
|
+
t.setAttribute(Ee, "");
|
|
741
711
|
}
|
|
742
|
-
function
|
|
743
|
-
t.querySelectorAll(`[${
|
|
712
|
+
function ht(t) {
|
|
713
|
+
t.querySelectorAll(`[${Ee}]`).forEach((e) => {
|
|
744
714
|
b(e);
|
|
745
715
|
});
|
|
746
716
|
}
|
|
747
|
-
function
|
|
748
|
-
t.
|
|
749
|
-
|
|
717
|
+
function dt(t) {
|
|
718
|
+
t.setAttribute(x, t.textContent ?? "");
|
|
719
|
+
}
|
|
720
|
+
function Te(t) {
|
|
721
|
+
T.isSSR && t.isFirstLevel && dt(t.element);
|
|
722
|
+
}
|
|
723
|
+
function pt(t) {
|
|
724
|
+
t.querySelectorAll(`[${x}]`).forEach((e) => {
|
|
725
|
+
e.textContent = e.getAttribute(x), e.removeAttribute(x);
|
|
750
726
|
});
|
|
751
727
|
}
|
|
752
|
-
const
|
|
753
|
-
r && e.element.classList.remove(...t);
|
|
754
|
-
}), pt = (t) => (e) => {
|
|
728
|
+
const $e = (t) => (e) => {
|
|
755
729
|
Te(e);
|
|
730
|
+
const r = e.createText(t);
|
|
731
|
+
return e.appendOrInsert(r), (n) => {
|
|
732
|
+
n && b(r);
|
|
733
|
+
};
|
|
734
|
+
}, Ce = (t) => (e) => {
|
|
735
|
+
Te(e);
|
|
736
|
+
const r = e.createText(t.value);
|
|
737
|
+
e.appendOrInsert(r);
|
|
738
|
+
const n = t.on((s) => r.data = s);
|
|
739
|
+
return (s) => {
|
|
740
|
+
n(), s && b(r);
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
function Jt(t) {
|
|
744
|
+
return d.is(t) ? Ce(t) : $e(t);
|
|
745
|
+
}
|
|
746
|
+
const g = (...t) => (e) => {
|
|
747
|
+
const r = t.map((n) => f(n)(e));
|
|
748
|
+
return (n) => {
|
|
749
|
+
r.forEach((s) => s(n));
|
|
750
|
+
};
|
|
751
|
+
}, w = () => () => {
|
|
752
|
+
}, mt = (t) => (e) => (Pe(e), e.element.classList.add(...t), (r) => {
|
|
753
|
+
r && e.element.classList.remove(...t);
|
|
754
|
+
}), gt = (t) => (e) => {
|
|
755
|
+
Pe(e);
|
|
756
756
|
const r = e.element;
|
|
757
757
|
let n = [];
|
|
758
758
|
const s = t.on((i) => {
|
|
@@ -761,19 +761,19 @@ const dt = (t) => (e) => (Te(e), e.element.classList.add(...t), (r) => {
|
|
|
761
761
|
return (i) => {
|
|
762
762
|
s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
|
|
763
763
|
};
|
|
764
|
-
},
|
|
764
|
+
}, q = (t, e) => {
|
|
765
765
|
const r = ve(t), n = Ae(t);
|
|
766
766
|
return (s) => {
|
|
767
|
-
|
|
767
|
+
_e(s, t);
|
|
768
768
|
const i = n(s.element);
|
|
769
769
|
return r(s.element, e), (o) => {
|
|
770
770
|
o && r(s.element, i);
|
|
771
771
|
};
|
|
772
772
|
};
|
|
773
|
-
},
|
|
773
|
+
}, Z = (t, e) => {
|
|
774
774
|
const r = ve(t), n = Ae(t);
|
|
775
775
|
return (s) => {
|
|
776
|
-
|
|
776
|
+
_e(s, t);
|
|
777
777
|
const i = n(s.element);
|
|
778
778
|
return e.on((o) => r(s.element, o)), (o) => {
|
|
779
779
|
o && r(s.element, i);
|
|
@@ -782,115 +782,115 @@ const dt = (t) => (e) => (Te(e), e.element.classList.add(...t), (r) => {
|
|
|
782
782
|
}, P = new Proxy(
|
|
783
783
|
{},
|
|
784
784
|
{
|
|
785
|
-
get: (t, e) => e === "class" ? (r) => d.is(r) ?
|
|
785
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? gt(r) : mt(
|
|
786
786
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
787
|
-
) : (r) => d.is(r) ?
|
|
787
|
+
) : (r) => d.is(r) ? Z(
|
|
788
788
|
e,
|
|
789
789
|
r
|
|
790
|
-
) :
|
|
790
|
+
) : q(
|
|
791
791
|
e,
|
|
792
792
|
r
|
|
793
793
|
)
|
|
794
794
|
}
|
|
795
|
-
),
|
|
795
|
+
), Qt = new Proxy(
|
|
796
796
|
{},
|
|
797
797
|
{
|
|
798
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
798
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
799
799
|
`aria-${e}`,
|
|
800
800
|
r
|
|
801
|
-
) :
|
|
801
|
+
) : q(
|
|
802
802
|
`aria-${e}`,
|
|
803
803
|
r
|
|
804
804
|
)
|
|
805
805
|
}
|
|
806
|
-
),
|
|
806
|
+
), er = new Proxy(
|
|
807
807
|
{},
|
|
808
808
|
{
|
|
809
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
809
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
810
810
|
e,
|
|
811
811
|
r
|
|
812
|
-
) :
|
|
812
|
+
) : q(
|
|
813
813
|
e,
|
|
814
814
|
r
|
|
815
815
|
)
|
|
816
816
|
}
|
|
817
|
-
),
|
|
817
|
+
), tr = new Proxy(
|
|
818
818
|
{},
|
|
819
819
|
{
|
|
820
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
820
|
+
get: (t, e) => (r) => d.is(r) ? Z(
|
|
821
821
|
e,
|
|
822
822
|
r
|
|
823
|
-
) :
|
|
823
|
+
) : q(
|
|
824
824
|
e,
|
|
825
825
|
r
|
|
826
826
|
)
|
|
827
827
|
}
|
|
828
828
|
);
|
|
829
829
|
function f(t) {
|
|
830
|
-
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ?
|
|
830
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? $e(t) : d.is(t) ? Ce(t) : t;
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Me(t, ...e) {
|
|
833
833
|
return (r) => {
|
|
834
834
|
const n = r.createElement(t, void 0);
|
|
835
|
-
r.
|
|
835
|
+
r.isFirstLevel && T.isSSR && De(n), r.appendOrInsert(n), r = r.withElement(n);
|
|
836
836
|
const s = e.map((i) => f(i)(r));
|
|
837
837
|
return (i) => {
|
|
838
838
|
s.forEach((o) => o(!1)), i && b(n);
|
|
839
839
|
};
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Ne(t, e, ...r) {
|
|
843
843
|
return (n) => {
|
|
844
844
|
const s = n.createElement(t, e);
|
|
845
|
-
n.
|
|
845
|
+
n.isFirstLevel && T.isSSR && De(s), n.appendOrInsert(s), n = n.withElement(s);
|
|
846
846
|
const i = r.map((o) => f(o)(n));
|
|
847
847
|
return (o) => {
|
|
848
848
|
i.forEach((l) => l(!1)), o && b(s);
|
|
849
849
|
};
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const rr = new Proxy(
|
|
853
853
|
{},
|
|
854
854
|
{
|
|
855
|
-
get: (t, e) => (...r) =>
|
|
855
|
+
get: (t, e) => (...r) => Me(e, r.flatMap(f))
|
|
856
856
|
}
|
|
857
|
-
),
|
|
857
|
+
), nr = new Proxy(
|
|
858
858
|
{},
|
|
859
859
|
{
|
|
860
|
-
get: (t, e) => (...r) =>
|
|
860
|
+
get: (t, e) => (...r) => Me("input", P.type(e), ...r)
|
|
861
861
|
}
|
|
862
|
-
),
|
|
862
|
+
), wt = "http://www.w3.org/2000/svg", sr = new Proxy(
|
|
863
863
|
{},
|
|
864
864
|
{
|
|
865
|
-
get: (t, e) => (...r) =>
|
|
865
|
+
get: (t, e) => (...r) => Ne(e, wt, r.flatMap(f))
|
|
866
866
|
}
|
|
867
|
-
),
|
|
867
|
+
), bt = "http://www.w3.org/1998/Math/MathML", ir = new Proxy(
|
|
868
868
|
{},
|
|
869
869
|
{
|
|
870
|
-
get: (t, e) => (...r) =>
|
|
870
|
+
get: (t, e) => (...r) => Ne(e, bt, r.flatMap(f))
|
|
871
871
|
}
|
|
872
872
|
);
|
|
873
|
-
let
|
|
874
|
-
function
|
|
875
|
-
|
|
873
|
+
let W = !1;
|
|
874
|
+
function St(t) {
|
|
875
|
+
ht(t), ft(t), lt(t), pt(t);
|
|
876
876
|
}
|
|
877
877
|
let U = 0;
|
|
878
|
-
const
|
|
878
|
+
const or = (t = 30) => (W = !0, new Promise((e, r) => {
|
|
879
879
|
let n;
|
|
880
880
|
const s = setInterval(() => {
|
|
881
|
-
U <= 0 && (clearInterval(s), clearTimeout(n),
|
|
882
|
-
},
|
|
881
|
+
U <= 0 && (clearInterval(s), clearTimeout(n), W = !1, e());
|
|
882
|
+
}, 300);
|
|
883
883
|
n = setTimeout(() => {
|
|
884
|
-
clearInterval(s), r(new Error("SSR Timeout"));
|
|
884
|
+
clearInterval(s), W = !1, r(new Error("SSR Timeout"));
|
|
885
885
|
}, t * 1e3);
|
|
886
|
-
})),
|
|
886
|
+
})), T = {
|
|
887
887
|
useDone(t) {
|
|
888
888
|
return U++, f(t(() => U--));
|
|
889
889
|
},
|
|
890
890
|
get isSSR() {
|
|
891
|
-
return
|
|
891
|
+
return W;
|
|
892
892
|
}
|
|
893
|
-
},
|
|
893
|
+
}, Le = (t, e) => (r) => {
|
|
894
894
|
const n = Object.values(t).reduce((s, i) => {
|
|
895
895
|
const o = r.getProvider(i);
|
|
896
896
|
if (o == null)
|
|
@@ -898,7 +898,7 @@ const sr = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
|
898
898
|
return s[i] = o, s;
|
|
899
899
|
}, {});
|
|
900
900
|
return f(e(n))(r);
|
|
901
|
-
},
|
|
901
|
+
}, ur = (t, e) => (r) => {
|
|
902
902
|
const n = [], s = Object.entries(t).reduce(
|
|
903
903
|
(i, [o, l]) => (n.push(
|
|
904
904
|
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
@@ -908,11 +908,11 @@ const sr = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
|
908
908
|
return n.push(e(s)(r)), (i) => {
|
|
909
909
|
n.forEach((o) => o(i));
|
|
910
910
|
};
|
|
911
|
-
},
|
|
912
|
-
function
|
|
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
|
+
function At(t) {
|
|
913
913
|
return Symbol(t);
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Ie = (t, e) => (r) => f(e)(r.withProviders(t)), lr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, yt = (t, e, r) => Ie({ [t]: e }, f(r)), cr = (t, e) => Ie(t, f(e)), oe = At("Appearance"), fr = {
|
|
916
916
|
/**
|
|
917
917
|
* Provides a child component with an appearance context, which can be used to
|
|
918
918
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -929,7 +929,7 @@ const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length >
|
|
|
929
929
|
r.set(i.matches ? "dark" : "light");
|
|
930
930
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
931
931
|
return s == null || s.addEventListener("change", n), g(
|
|
932
|
-
|
|
932
|
+
yt(oe, r, t),
|
|
933
933
|
M(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
934
934
|
);
|
|
935
935
|
},
|
|
@@ -940,10 +940,10 @@ const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length >
|
|
|
940
940
|
* @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
|
|
941
941
|
* @returns The `Child` element returned by the provided function.
|
|
942
942
|
*/
|
|
943
|
-
consume: (t) =>
|
|
944
|
-
},
|
|
943
|
+
consume: (t) => vt(oe, t)
|
|
944
|
+
}, Re = (t, e) => {
|
|
945
945
|
if (typeof e == "function")
|
|
946
|
-
return
|
|
946
|
+
return Re(t, { then: e });
|
|
947
947
|
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
948
948
|
return (i) => {
|
|
949
949
|
let o = !0;
|
|
@@ -961,13 +961,13 @@ const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length >
|
|
|
961
961
|
o = !1, u(c), c && i.reference && b(i.reference);
|
|
962
962
|
};
|
|
963
963
|
};
|
|
964
|
-
},
|
|
964
|
+
}, hr = (t, e) => Re(() => t, e), dr = (t = 10) => (e) => {
|
|
965
965
|
const r = setTimeout(() => {
|
|
966
966
|
var n;
|
|
967
967
|
(n = e.element) == null || n.focus();
|
|
968
968
|
}, t);
|
|
969
969
|
return (n) => clearTimeout(r);
|
|
970
|
-
},
|
|
970
|
+
}, pr = (t = 10) => (e) => {
|
|
971
971
|
const r = setTimeout(() => {
|
|
972
972
|
var n;
|
|
973
973
|
(n = e.element) == null || n.select();
|
|
@@ -975,21 +975,21 @@ const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length >
|
|
|
975
975
|
return (n) => {
|
|
976
976
|
clearTimeout(r);
|
|
977
977
|
};
|
|
978
|
-
},
|
|
978
|
+
}, Oe = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
979
979
|
n && r.element.removeEventListener(t, e);
|
|
980
|
-
}),
|
|
980
|
+
}), Et = (t) => Oe("click", (e) => {
|
|
981
981
|
e.preventDefault();
|
|
982
982
|
const r = e.target;
|
|
983
983
|
setTimeout(() => {
|
|
984
984
|
const n = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
985
985
|
n != null && t(!n);
|
|
986
986
|
}, 0);
|
|
987
|
-
}),
|
|
987
|
+
}), X = new Proxy(
|
|
988
988
|
{},
|
|
989
989
|
{
|
|
990
|
-
get: (t, e) => (r) =>
|
|
990
|
+
get: (t, e) => (r) => Oe(e, r)
|
|
991
991
|
}
|
|
992
|
-
),
|
|
992
|
+
), Y = {
|
|
993
993
|
value: (t) => (e) => {
|
|
994
994
|
const r = e.target;
|
|
995
995
|
t(r.value);
|
|
@@ -1034,36 +1034,36 @@ const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length >
|
|
|
1034
1034
|
e.stopImmediatePropagation(), t();
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
|
-
function
|
|
1037
|
+
function _t(t, e = "input") {
|
|
1038
1038
|
return g(
|
|
1039
1039
|
P.valueAsDate(t),
|
|
1040
|
-
|
|
1040
|
+
X[e](Y.valueAsDate(t.set))
|
|
1041
1041
|
);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Pt(t, e = "input") {
|
|
1044
1044
|
return g(
|
|
1045
1045
|
P.valueAsDate(t),
|
|
1046
|
-
|
|
1046
|
+
X[e](Y.valueAsDateTime(t.set))
|
|
1047
1047
|
);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Dt(t, e = "input") {
|
|
1050
1050
|
return g(
|
|
1051
1051
|
P.valueAsNumber(t),
|
|
1052
|
-
|
|
1052
|
+
X[e](Y.valueAsNumber(t.set))
|
|
1053
1053
|
);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return g(P.value(t),
|
|
1055
|
+
function Tt(t, e = "input") {
|
|
1056
|
+
return g(P.value(t), X[e](Y.value(t.set)));
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return g(P.checked(t),
|
|
1058
|
+
function $t(t) {
|
|
1059
|
+
return g(P.checked(t), Et(t.set));
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1062
|
-
date:
|
|
1063
|
-
dateTime:
|
|
1064
|
-
number:
|
|
1065
|
-
text:
|
|
1066
|
-
checked:
|
|
1061
|
+
const mr = {
|
|
1062
|
+
date: _t,
|
|
1063
|
+
dateTime: Pt,
|
|
1064
|
+
number: Dt,
|
|
1065
|
+
text: Tt,
|
|
1066
|
+
checked: $t
|
|
1067
1067
|
}, I = (t, e) => (r) => {
|
|
1068
1068
|
r = r.makeRef();
|
|
1069
1069
|
let n, s;
|
|
@@ -1099,7 +1099,7 @@ const dr = {
|
|
|
1099
1099
|
t.map((r) => ({ [r]: !0 })),
|
|
1100
1100
|
e
|
|
1101
1101
|
)
|
|
1102
|
-
},
|
|
1102
|
+
}, gr = (t, e) => (r) => {
|
|
1103
1103
|
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1104
1104
|
return N.value(
|
|
1105
1105
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
@@ -1109,9 +1109,9 @@ const dr = {
|
|
|
1109
1109
|
other: () => t
|
|
1110
1110
|
}
|
|
1111
1111
|
);
|
|
1112
|
-
},
|
|
1112
|
+
}, wr = (t) => (e) => t(e)(e), br = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1113
1113
|
r && b(t);
|
|
1114
|
-
}),
|
|
1114
|
+
}), Ct = (t, e, r) => (n) => {
|
|
1115
1115
|
n = n.makeRef();
|
|
1116
1116
|
let s = null, i = !1;
|
|
1117
1117
|
const o = A(null), l = t.on((u) => {
|
|
@@ -1120,7 +1120,7 @@ const dr = {
|
|
|
1120
1120
|
return (u) => {
|
|
1121
1121
|
l(), s == null || s(u), u && n.reference && b(n.reference);
|
|
1122
1122
|
};
|
|
1123
|
-
},
|
|
1123
|
+
}, xe = (t, e, r) => r != null ? xe(t, (n) => {
|
|
1124
1124
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1125
1125
|
return g(
|
|
1126
1126
|
M(() => s.dispose()),
|
|
@@ -1134,7 +1134,7 @@ const dr = {
|
|
|
1134
1134
|
n = n.makeRef();
|
|
1135
1135
|
const s = t.map(
|
|
1136
1136
|
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1137
|
-
(c) => new
|
|
1137
|
+
(c) => new Ke(c, u)
|
|
1138
1138
|
)
|
|
1139
1139
|
), i = [], o = [], l = s.on((u) => {
|
|
1140
1140
|
var p, m;
|
|
@@ -1152,7 +1152,7 @@ const dr = {
|
|
|
1152
1152
|
return (u) => {
|
|
1153
1153
|
l(), u && n.reference && b(n.reference);
|
|
1154
1154
|
};
|
|
1155
|
-
},
|
|
1155
|
+
}, Mt = (t, e, r) => r != null ? Mt(t, (n, s) => {
|
|
1156
1156
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1157
1157
|
return g([
|
|
1158
1158
|
M(() => i.dispose()),
|
|
@@ -1164,7 +1164,7 @@ const dr = {
|
|
|
1164
1164
|
]);
|
|
1165
1165
|
}) : (n) => {
|
|
1166
1166
|
const s = t.map((i) => i.length);
|
|
1167
|
-
return
|
|
1167
|
+
return xe(s, (i) => {
|
|
1168
1168
|
const o = B(
|
|
1169
1169
|
() => t.value[i.value.index],
|
|
1170
1170
|
[i, t]
|
|
@@ -1174,42 +1174,42 @@ const dr = {
|
|
|
1174
1174
|
f(e(o, i))
|
|
1175
1175
|
);
|
|
1176
1176
|
})(n);
|
|
1177
|
-
},
|
|
1177
|
+
}, Sr = (t) => {
|
|
1178
1178
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1179
1179
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1180
1180
|
n && e.style.setProperty(":empty", r);
|
|
1181
1181
|
};
|
|
1182
1182
|
};
|
|
1183
|
-
function
|
|
1183
|
+
function We(t, e) {
|
|
1184
1184
|
const r = t(e);
|
|
1185
1185
|
return () => r(!0);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function vr(t, e, { doc: r, clear: n } = {}) {
|
|
1188
1188
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1189
1189
|
if (s === null)
|
|
1190
1190
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1191
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1192
|
-
const i =
|
|
1193
|
-
return
|
|
1191
|
+
n && (r ?? s.ownerDocument) != null && St(r ?? s.ownerDocument);
|
|
1192
|
+
const i = ot(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
|
|
1193
|
+
return We(t, l);
|
|
1194
1194
|
}
|
|
1195
|
-
const
|
|
1195
|
+
const Nt = (t, e) => (r) => {
|
|
1196
1196
|
const n = r.document.querySelector(t);
|
|
1197
1197
|
if (n === null)
|
|
1198
1198
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1199
|
-
return
|
|
1199
|
+
return We(
|
|
1200
1200
|
f(e),
|
|
1201
1201
|
r.withElement(n).withFirstLevel()
|
|
1202
1202
|
);
|
|
1203
|
-
},
|
|
1204
|
-
}), k = (t, e, r) =>
|
|
1203
|
+
}, Ar = (t) => Nt("head title", P.innerText(t)), Lt = (t) => (e) => t(e.element) ?? (() => {
|
|
1204
|
+
}), k = (t, e, r) => Ct(
|
|
1205
1205
|
t.map((n) => n ? !0 : null),
|
|
1206
1206
|
() => e,
|
|
1207
1207
|
r != null ? () => r : void 0
|
|
1208
|
-
),
|
|
1208
|
+
), yr = (t, e, r) => k(
|
|
1209
1209
|
t.map((n) => !n),
|
|
1210
1210
|
e,
|
|
1211
1211
|
r
|
|
1212
|
-
),
|
|
1212
|
+
), It = {
|
|
1213
1213
|
partial: {
|
|
1214
1214
|
root: null,
|
|
1215
1215
|
rootMargin: "0px",
|
|
@@ -1220,36 +1220,36 @@ const Ct = (t, e) => (r) => {
|
|
|
1220
1220
|
rootMargin: "0px",
|
|
1221
1221
|
threshold: 1
|
|
1222
1222
|
}
|
|
1223
|
-
},
|
|
1223
|
+
}, F = {
|
|
1224
1224
|
partial: /* @__PURE__ */ new Map(),
|
|
1225
1225
|
full: /* @__PURE__ */ new Map()
|
|
1226
1226
|
}, C = {
|
|
1227
1227
|
partial: null,
|
|
1228
1228
|
full: null
|
|
1229
1229
|
};
|
|
1230
|
-
function
|
|
1230
|
+
function Rt(t) {
|
|
1231
1231
|
return C[t] == null && (C[t] = new IntersectionObserver((e) => {
|
|
1232
1232
|
e.forEach((r) => {
|
|
1233
|
-
const n =
|
|
1233
|
+
const n = F[t].get(r.target);
|
|
1234
1234
|
n == null || n.set(r.isIntersecting);
|
|
1235
1235
|
});
|
|
1236
|
-
},
|
|
1236
|
+
}, It[t])), C[t];
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const r = A(
|
|
1238
|
+
function Ot(t, e) {
|
|
1239
|
+
const r = A(T.isSSR);
|
|
1240
1240
|
return g(
|
|
1241
|
-
|
|
1242
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1243
|
-
return
|
|
1241
|
+
Lt((n) => {
|
|
1242
|
+
const s = typeof IntersectionObserver < "u" ? Rt(t) : null;
|
|
1243
|
+
return F[t].set(n, r), s == null || s.observe(n), () => {
|
|
1244
1244
|
var i;
|
|
1245
|
-
s == null || s.unobserve(n),
|
|
1245
|
+
s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i = C[t]) == null || i.disconnect(), C[t] = null);
|
|
1246
1246
|
};
|
|
1247
1247
|
}),
|
|
1248
1248
|
M(r.dispose),
|
|
1249
1249
|
f(e(r))
|
|
1250
1250
|
);
|
|
1251
1251
|
}
|
|
1252
|
-
const
|
|
1252
|
+
const Er = (t, e, r) => Ot(t, (n) => k(n, e, r ?? w)), _r = (t, e) => (r) => {
|
|
1253
1253
|
r = r.makeRef();
|
|
1254
1254
|
const n = t.map((o) => f(e(o)));
|
|
1255
1255
|
let s = () => {
|
|
@@ -1261,14 +1261,14 @@ const Ar = (t, e, r) => It(t, (n) => k(n, e, r ?? w)), yr = (t, e) => (r) => {
|
|
|
1261
1261
|
i(), s(o);
|
|
1262
1262
|
};
|
|
1263
1263
|
};
|
|
1264
|
-
function
|
|
1264
|
+
function Pr(t, e, r = w) {
|
|
1265
1265
|
return k(
|
|
1266
1266
|
t.map((n) => n.length > 0),
|
|
1267
1267
|
e,
|
|
1268
1268
|
r
|
|
1269
1269
|
);
|
|
1270
1270
|
}
|
|
1271
|
-
const
|
|
1271
|
+
const xt = (t) => (e) => {
|
|
1272
1272
|
const r = e.element, n = A({ width: r.clientWidth, height: r.clientHeight }), s = f(t(n))(e), i = () => {
|
|
1273
1273
|
n.set({ width: r.clientWidth, height: r.clientHeight });
|
|
1274
1274
|
};
|
|
@@ -1276,7 +1276,7 @@ const Rt = (t) => (e) => {
|
|
|
1276
1276
|
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1277
1277
|
o == null || o.disconnect(), s(l);
|
|
1278
1278
|
};
|
|
1279
|
-
},
|
|
1279
|
+
}, Wt = (t) => (e) => {
|
|
1280
1280
|
const r = A({
|
|
1281
1281
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1282
1282
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
@@ -1289,124 +1289,124 @@ const Rt = (t) => (e) => {
|
|
|
1289
1289
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1290
1290
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1291
1291
|
};
|
|
1292
|
-
},
|
|
1293
|
-
element:
|
|
1294
|
-
window:
|
|
1295
|
-
},
|
|
1292
|
+
}, Dr = {
|
|
1293
|
+
element: xt,
|
|
1294
|
+
window: Wt
|
|
1295
|
+
}, Ft = (t, e) => (r) => {
|
|
1296
1296
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1297
1297
|
return n.style.setProperty(t, e), (i) => {
|
|
1298
1298
|
i && n.style.setProperty(t, s);
|
|
1299
1299
|
};
|
|
1300
|
-
},
|
|
1300
|
+
}, zt = (t, e) => (r) => {
|
|
1301
1301
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1302
1302
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1303
1303
|
i && n.style.setProperty(t, s);
|
|
1304
1304
|
};
|
|
1305
|
-
},
|
|
1305
|
+
}, Tr = new Proxy(
|
|
1306
1306
|
{},
|
|
1307
1307
|
{
|
|
1308
|
-
get: (t, e) => (r) => d.is(r) ?
|
|
1308
|
+
get: (t, e) => (r) => d.is(r) ? zt(e, r) : Ft(e, r)
|
|
1309
1309
|
}
|
|
1310
1310
|
);
|
|
1311
1311
|
export {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1312
|
+
hr as Async,
|
|
1313
|
+
dr as AutoFocus,
|
|
1314
|
+
pr as AutoSelect,
|
|
1315
|
+
D as Computed,
|
|
1316
|
+
gr as Conjunction,
|
|
1317
|
+
wr as Ctx,
|
|
1318
1318
|
v as DOMContext,
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1319
|
+
br as DOMEl,
|
|
1320
|
+
Me as El,
|
|
1321
|
+
Ne as ElNS,
|
|
1322
1322
|
w as Empty,
|
|
1323
|
-
|
|
1324
|
-
|
|
1323
|
+
Ct as Ensure,
|
|
1324
|
+
Mt as ForEach,
|
|
1325
1325
|
g as Fragment,
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1326
|
+
Ar as HTMLTitle,
|
|
1327
|
+
Sr as HiddenWhenEmpty,
|
|
1328
|
+
Ot as InViewport,
|
|
1329
|
+
_r as MapSignal,
|
|
1330
1330
|
he as MemoryStore,
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
Pr as NotEmpty,
|
|
1332
|
+
Et as OnChecked,
|
|
1333
1333
|
M as OnDispose,
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1334
|
+
Lt as OnMount,
|
|
1335
|
+
Nt as Portal,
|
|
1336
|
+
Ke as Position,
|
|
1337
|
+
V as Prop,
|
|
1338
|
+
lr as Provide,
|
|
1339
|
+
xe as Repeat,
|
|
1340
1340
|
d as Signal,
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1341
|
+
Re as Task,
|
|
1342
|
+
Jt as Text,
|
|
1343
|
+
yr as Unless,
|
|
1344
|
+
ur as Use,
|
|
1345
|
+
vt as UseProvider,
|
|
1346
|
+
ar as UseProviders,
|
|
1347
1347
|
k as When,
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1348
|
+
Er as WhenInViewport,
|
|
1349
|
+
yt as WithProvider,
|
|
1350
|
+
cr as WithProviders,
|
|
1351
|
+
Ue as animate,
|
|
1352
|
+
Ht as animateOne,
|
|
1353
|
+
fr as appearance,
|
|
1354
1354
|
oe as appearanceMarker,
|
|
1355
|
-
|
|
1355
|
+
kt as applyAnimatable,
|
|
1356
1356
|
R as applyAnimatableProp,
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1357
|
+
Bt as applyInterpolatedAnimatable,
|
|
1358
|
+
et as applyInterpolatedAnimatableProp,
|
|
1359
|
+
Qt as aria,
|
|
1360
1360
|
P as attr,
|
|
1361
|
-
|
|
1361
|
+
mr as bind,
|
|
1362
1362
|
f as childToMountable,
|
|
1363
|
-
|
|
1364
|
-
|
|
1363
|
+
St as clearSSR,
|
|
1364
|
+
ke as colorChannelsToString,
|
|
1365
1365
|
B as computed,
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1366
|
+
Kt as computedRecord,
|
|
1367
|
+
Xe as dateInterpolate,
|
|
1368
|
+
qt as effect,
|
|
1369
|
+
Y as emit,
|
|
1370
|
+
Ye as endInterpolate,
|
|
1371
|
+
Ut as getComputedAnimatable,
|
|
1372
|
+
Je as getComputedAnimatableProp,
|
|
1373
|
+
ot as getSelfOrParentElement,
|
|
1374
|
+
He as guessInterpolate,
|
|
1375
|
+
Gt as handleAnchorClick,
|
|
1376
|
+
rr as html,
|
|
1377
|
+
nr as input,
|
|
1378
|
+
Ge as interpolateColor,
|
|
1379
|
+
jt as interpolateShadow,
|
|
1380
1380
|
ye as isElement,
|
|
1381
1381
|
Ae as makeGetter,
|
|
1382
|
-
|
|
1382
|
+
At as makeProviderMark,
|
|
1383
1383
|
ve as makeSetter,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1384
|
+
ir as math,
|
|
1385
|
+
tr as mathAttr,
|
|
1386
|
+
qe as numberInterpolate,
|
|
1387
|
+
X as on,
|
|
1388
1388
|
N as oneof,
|
|
1389
1389
|
se as parseColorChannels,
|
|
1390
1390
|
A as prop,
|
|
1391
|
-
|
|
1392
|
-
|
|
1391
|
+
Xt as propOfLocalStorage,
|
|
1392
|
+
Yt as propOfSessionStorage,
|
|
1393
1393
|
de as propOfStorage,
|
|
1394
1394
|
b as removeDOMNode,
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1395
|
+
vr as render,
|
|
1396
|
+
We as renderWithContext,
|
|
1397
|
+
it as setAttribute,
|
|
1398
|
+
tt as setBooleanProperty,
|
|
1399
|
+
nt as setDateProperty,
|
|
1400
|
+
rt as setNumberProperty,
|
|
1401
|
+
st as setStringProperty,
|
|
1402
|
+
Zt as signal,
|
|
1403
|
+
Ce as signalText,
|
|
1404
|
+
Dr as size,
|
|
1405
|
+
T as ssr,
|
|
1406
|
+
or as startSSR,
|
|
1407
|
+
$e as staticText,
|
|
1408
|
+
Ze as stringInterpolate,
|
|
1409
|
+
Tr as style,
|
|
1410
|
+
sr as svg,
|
|
1411
|
+
er as svgAttr
|
|
1412
1412
|
};
|