@tempots/dom 37.3.0 → 37.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.js +455 -443
- package/package.json +3 -3
- package/renderable/bind.d.ts +5 -5
- package/renderable/on.d.ts +44 -124
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DisposalScope as
|
|
2
|
-
import { Computed as
|
|
3
|
-
import { ProviderNotFoundError as
|
|
4
|
-
import { ProviderNotFoundError as
|
|
5
|
-
const
|
|
1
|
+
import { DisposalScope as Me, withScope as Oe, Value as $, makeProviderMark as ie, prop as B, createRenderable as Le, easeOutQuad as Ie, guessInterpolate as He, Signal as j, createSelector as De } from "@tempots/core";
|
|
2
|
+
import { Computed as er, DisposalScope as tr, ElementPosition as nr, KeyedPosition as rr, MemoryStore as sr, Prop as ir, Signal as or, Value as lr, animateSignal as cr, animateSignals as ar, bind as ur, chainEasing as dr, coalesce as hr, computed as fr, computedOf as pr, computedOfAsync as mr, computedOfAsyncGenerator as gr, computedRecord as yr, createRenderable as Tr, createSelector as vr, delaySignal as br, easeInBack as Sr, easeInBounce as xr, easeInCubic as wr, easeInElastic as Er, easeInExpo as kr, easeInOutBack as Ar, easeInOutBounce as Cr, easeInOutCubic as Pr, easeInOutElastic as Mr, easeInOutExpo as Or, easeInOutQuad as Lr, easeInOutQuart as Ir, easeInOutSine as Hr, easeInQuad as Dr, easeInQuart as Nr, easeInSine as Rr, easeOutBack as _r, easeOutBounce as $r, easeOutCubic as Br, easeOutElastic as Vr, easeOutExpo as jr, easeOutQuad as Yr, easeOutQuart as Xr, easeOutSine as Fr, effect as Wr, effectOf as Kr, endInterpolate as Ur, getCurrentScope as qr, getParentScope as Gr, getScopeStack as Qr, guessInterpolate as Jr, interpolateDate as Zr, interpolateNumber as zr, interpolateString as es, joinSignals as ts, linear as ns, localStorageProp as rs, makeProviderMark as ss, merge as is, mirrorEasing as os, popScope as ls, previousSignal as cs, prop as as, pushScope as us, reverseEasing as ds, scoped as hs, sessionStorageProp as fs, signal as ps, slidingWindowSignal as ms, storedProp as gs, strictEquals as ys, syncProp as Ts, untracked as vs, withScope as bs } from "@tempots/core";
|
|
3
|
+
import { ProviderNotFoundError as oe, createRenderKit as Ne } from "@tempots/render";
|
|
4
|
+
import { ProviderNotFoundError as xs, createRenderKit as ws } from "@tempots/render";
|
|
5
|
+
const le = /* @__PURE__ */ new Set([
|
|
6
6
|
"checked",
|
|
7
7
|
"disabled",
|
|
8
8
|
"hidden",
|
|
@@ -10,14 +10,14 @@ const oe = /* @__PURE__ */ new Set([
|
|
|
10
10
|
"readonly",
|
|
11
11
|
"required",
|
|
12
12
|
"autofocus"
|
|
13
|
-
]),
|
|
13
|
+
]), ce = /* @__PURE__ */ new Set(["selected"]), ae = /* @__PURE__ */ new Set([
|
|
14
14
|
"rowSpan",
|
|
15
15
|
"colSpan",
|
|
16
16
|
"tabIndex",
|
|
17
17
|
"valueAsNumber"
|
|
18
|
-
]),
|
|
18
|
+
]), ue = /* @__PURE__ */ new Set(["valueAsDate"]), de = {
|
|
19
19
|
readonly: "readOnly"
|
|
20
|
-
},
|
|
20
|
+
}, he = /* @__PURE__ */ new Set([
|
|
21
21
|
"value",
|
|
22
22
|
"textContent",
|
|
23
23
|
"innerText",
|
|
@@ -26,32 +26,32 @@ const oe = /* @__PURE__ */ new Set([
|
|
|
26
26
|
"outerHTML",
|
|
27
27
|
"className",
|
|
28
28
|
"classList"
|
|
29
|
-
]),
|
|
30
|
-
if (
|
|
29
|
+
]), Re = (n, e) => {
|
|
30
|
+
if (ce.has(n))
|
|
31
31
|
return (t) => {
|
|
32
32
|
t == null || t !== !0 ? e.removeAttribute(n) : e.setAttribute(n, "");
|
|
33
33
|
};
|
|
34
|
-
if (
|
|
35
|
-
const t =
|
|
34
|
+
if (le.has(n)) {
|
|
35
|
+
const t = de[n] || n;
|
|
36
36
|
return (r) => {
|
|
37
37
|
r == null ? e[t] = null : e[t] = !!r;
|
|
38
38
|
};
|
|
39
|
-
} else return
|
|
39
|
+
} else return ae.has(n) ? (t) => {
|
|
40
40
|
t == null ? e[n] = null : e[n] = Number(t);
|
|
41
|
-
} :
|
|
41
|
+
} : ue.has(n) ? (t) => {
|
|
42
42
|
t == null ? e[n] = null : e[n] = t;
|
|
43
|
-
} :
|
|
43
|
+
} : he.has(n) ? (t) => {
|
|
44
44
|
t == null ? e[n] = null : e[n] = String(t);
|
|
45
45
|
} : (t) => {
|
|
46
46
|
t == null ? e.removeAttribute(n) : e.setAttribute(n, t);
|
|
47
47
|
};
|
|
48
|
-
},
|
|
48
|
+
}, _e = (n, e) => ce.has(n) ? () => e.hasAttribute(n) : le.has(n) ? () => (
|
|
49
49
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
|
-
!!e[
|
|
51
|
-
) :
|
|
50
|
+
!!e[de[n] || n]
|
|
51
|
+
) : ae.has(n) ? () => Number(e[n]) : ue.has(n) ? () => e[n] : he.has(n) ? () => String(e[n]) : () => e.getAttribute(n), V = (n) => {
|
|
52
52
|
const e = n;
|
|
53
53
|
e && e.onblur && (e.onblur = null), !(!n || n.ownerDocument === void 0) && n.parentNode && n.parentNode.removeChild(n);
|
|
54
|
-
},
|
|
54
|
+
}, $e = (n) => fe(n) || pe(n) ? n : n.parentElement, fe = (n) => n.nodeType === 1, pe = (n) => n.nodeType === 11;
|
|
55
55
|
class b {
|
|
56
56
|
/**
|
|
57
57
|
* Constructs a new `DOMContext` instance.
|
|
@@ -266,7 +266,7 @@ class b {
|
|
|
266
266
|
*/
|
|
267
267
|
getProvider(e) {
|
|
268
268
|
if (this.providers[e] === void 0)
|
|
269
|
-
throw new
|
|
269
|
+
throw new oe(e);
|
|
270
270
|
const [t, r] = this.providers[e];
|
|
271
271
|
return { value: t, onUse: r };
|
|
272
272
|
}
|
|
@@ -360,8 +360,8 @@ class b {
|
|
|
360
360
|
}
|
|
361
361
|
makeAccessors(e) {
|
|
362
362
|
return {
|
|
363
|
-
get:
|
|
364
|
-
set:
|
|
363
|
+
get: _e(e, this.element),
|
|
364
|
+
set: Re(e, this.element)
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
getWindow() {
|
|
@@ -371,9 +371,9 @@ class b {
|
|
|
371
371
|
const s = e.reference, o = t.reference, i = r.reference, l = this.element;
|
|
372
372
|
let c = s;
|
|
373
373
|
for (; c !== null; ) {
|
|
374
|
-
const
|
|
374
|
+
const d = c.nextSibling;
|
|
375
375
|
if (l.insertBefore(c, i), c === o) break;
|
|
376
|
-
c =
|
|
376
|
+
c = d;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
removeRange(e, t) {
|
|
@@ -402,51 +402,51 @@ class b {
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
const I = (n, e) => {
|
|
405
|
-
const t = new
|
|
405
|
+
const t = new Me(), r = Oe(t, () => n.render(e));
|
|
406
406
|
return (s = !0) => {
|
|
407
407
|
t.dispose(), r(s);
|
|
408
408
|
};
|
|
409
|
-
},
|
|
409
|
+
}, Vt = (n, e, { doc: t, clear: r, disposeWithParent: s = !0, providers: o = {} } = {}) => {
|
|
410
410
|
const i = typeof e == "string" ? (t ?? document).querySelector(e) : e;
|
|
411
411
|
if (i === null)
|
|
412
|
-
throw new
|
|
412
|
+
throw new Be(
|
|
413
413
|
`Cannot find element by selector for render: ${e}`
|
|
414
414
|
);
|
|
415
415
|
r !== !1 && (t ?? i.ownerDocument) != null && (i.nodeType === 1 || i.nodeType === 11) && (i.innerHTML = "");
|
|
416
|
-
const l =
|
|
417
|
-
let
|
|
418
|
-
return s && i.parentElement != null && (
|
|
416
|
+
const l = $e(i), c = fe(i) || pe(i) ? void 0 : i, d = b.of(l, c, o), f = I(n, d);
|
|
417
|
+
let h;
|
|
418
|
+
return s && i.parentElement != null && (h = new MutationObserver((a) => {
|
|
419
419
|
a[0]?.removedNodes.forEach((u) => {
|
|
420
|
-
u === i && (
|
|
420
|
+
u === i && (h?.disconnect(), f(i.nodeType !== 1));
|
|
421
421
|
});
|
|
422
|
-
}),
|
|
422
|
+
}), h.observe(i.parentElement, {
|
|
423
423
|
childList: !0,
|
|
424
424
|
subtree: !1,
|
|
425
425
|
attributes: !1
|
|
426
426
|
})), () => {
|
|
427
|
-
|
|
427
|
+
h?.disconnect(), f(!0);
|
|
428
428
|
};
|
|
429
|
-
},
|
|
429
|
+
}, jt = (n, {
|
|
430
430
|
startUrl: e = "https://example.com",
|
|
431
431
|
selector: t,
|
|
432
432
|
providers: r = {}
|
|
433
433
|
} = {
|
|
434
434
|
selector: "body"
|
|
435
435
|
}) => {
|
|
436
|
-
const s = $.toSignal(e).deriveProp(), o = new
|
|
436
|
+
const s = $.toSignal(e).deriveProp(), o = new Te(t, void 0), i = new k(o, void 0, { currentURL: s }, r);
|
|
437
437
|
return {
|
|
438
438
|
clear: I(n(), i),
|
|
439
439
|
root: o,
|
|
440
440
|
currentURL: s
|
|
441
441
|
};
|
|
442
442
|
};
|
|
443
|
-
class
|
|
443
|
+
class Be extends Error {
|
|
444
444
|
constructor(e) {
|
|
445
445
|
super(e);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
const W = "data-tts-node", C = "data-tts-class",
|
|
449
|
-
class
|
|
448
|
+
const W = "data-tts-node", C = "data-tts-class", P = "data-tts-style", M = "data-tts-html", O = "data-tts-text", L = "data-tts-attrs";
|
|
449
|
+
class Yt {
|
|
450
450
|
/**
|
|
451
451
|
* Selects elements from the headless environment.
|
|
452
452
|
* @param selector - The selector to select elements from. The supported selectors are CSS selectors whose complexity depends on the adapter implementation.
|
|
@@ -529,12 +529,12 @@ class $t {
|
|
|
529
529
|
getStyles: i,
|
|
530
530
|
setStyles: l,
|
|
531
531
|
appendHTML: c,
|
|
532
|
-
getInnerHTML:
|
|
532
|
+
getInnerHTML: d,
|
|
533
533
|
setInnerHTML: f,
|
|
534
|
-
getInnerText:
|
|
534
|
+
getInnerText: h,
|
|
535
535
|
setInnerText: a
|
|
536
536
|
}) {
|
|
537
|
-
this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = s, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = c, this.getInnerHTML =
|
|
537
|
+
this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = s, this.setClass = o, this.getStyles = i, this.setStyles = l, this.appendHTML = c, this.getInnerHTML = d, this.setInnerHTML = f, this.getInnerText = h, this.setInnerText = a;
|
|
538
538
|
}
|
|
539
539
|
/**
|
|
540
540
|
* Sets the content of the root element from a HeadlessPortal. Generally this will be the same instance that is
|
|
@@ -555,14 +555,14 @@ class $t {
|
|
|
555
555
|
if (s.hasChildren() && this.appendHTML(i, s.contentToHTML(t)), s.hasInnerHTML()) {
|
|
556
556
|
if (t) {
|
|
557
557
|
const l = this.getInnerHTML(i);
|
|
558
|
-
l != null && this.setAttribute(i,
|
|
558
|
+
l != null && this.setAttribute(i, M, l);
|
|
559
559
|
}
|
|
560
560
|
this.setInnerHTML(i, s.getInnerHTML());
|
|
561
561
|
}
|
|
562
562
|
if (s.hasInnerText()) {
|
|
563
563
|
if (t) {
|
|
564
564
|
const l = this.getInnerText(i);
|
|
565
|
-
l != null && this.setAttribute(i,
|
|
565
|
+
l != null && this.setAttribute(i, O, l);
|
|
566
566
|
}
|
|
567
567
|
this.setInnerText(i, s.getInnerText());
|
|
568
568
|
}
|
|
@@ -578,7 +578,7 @@ class $t {
|
|
|
578
578
|
const l = this.getStyles(i);
|
|
579
579
|
Object.keys(l).length > 0 && this.setAttribute(
|
|
580
580
|
i,
|
|
581
|
-
|
|
581
|
+
P,
|
|
582
582
|
JSON.stringify(l)
|
|
583
583
|
);
|
|
584
584
|
}
|
|
@@ -588,53 +588,53 @@ class $t {
|
|
|
588
588
|
const l = s.getAttributes();
|
|
589
589
|
if (t) {
|
|
590
590
|
const c = [];
|
|
591
|
-
l.forEach(([
|
|
592
|
-
const f = this.getAttribute(i,
|
|
593
|
-
f != null && c.push([
|
|
591
|
+
l.forEach(([d]) => {
|
|
592
|
+
const f = this.getAttribute(i, d);
|
|
593
|
+
f != null && c.push([d, f]);
|
|
594
594
|
}), c.length > 0 && this.setAttribute(
|
|
595
595
|
i,
|
|
596
596
|
L,
|
|
597
597
|
JSON.stringify(Object.fromEntries(c))
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
|
-
l.forEach(([c,
|
|
601
|
-
this.setAttribute(i, c,
|
|
600
|
+
l.forEach(([c, d]) => {
|
|
601
|
+
this.setAttribute(i, c, d);
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const me = (n) => JSON.parse(n.replace(/"/g, '"')), Ve = (n) => {
|
|
609
609
|
const e = n.getAttribute(C);
|
|
610
610
|
n.removeAttribute(C), e != null && n.setAttribute("class", e);
|
|
611
|
-
}, Be = (n) => {
|
|
612
|
-
const e = n.getAttribute(O);
|
|
613
|
-
n.removeAttribute(O), e != null && (n.innerHTML = e);
|
|
614
|
-
}, Ve = (n) => {
|
|
615
|
-
const e = n.getAttribute(P);
|
|
616
|
-
n.removeAttribute(P), e != null && (n.innerText = e);
|
|
617
611
|
}, je = (n) => {
|
|
618
612
|
const e = n.getAttribute(M);
|
|
619
|
-
|
|
620
|
-
|
|
613
|
+
n.removeAttribute(M), e != null && (n.innerHTML = e);
|
|
614
|
+
}, Ye = (n) => {
|
|
615
|
+
const e = n.getAttribute(O);
|
|
616
|
+
n.removeAttribute(O), e != null && (n.innerText = e);
|
|
617
|
+
}, Xe = (n) => {
|
|
618
|
+
const e = n.getAttribute(P);
|
|
619
|
+
if (n.removeAttribute(P), e != null) {
|
|
620
|
+
const t = me(e), r = Object.entries(t);
|
|
621
621
|
r.length > 0 && (n.style.cssText = r.map(([s, o]) => `${s}: ${o}`).join("; "));
|
|
622
622
|
}
|
|
623
|
-
},
|
|
623
|
+
}, Fe = (n) => {
|
|
624
624
|
const e = n.getAttribute(L);
|
|
625
625
|
if (n.removeAttribute(L), e != null) {
|
|
626
|
-
const t =
|
|
626
|
+
const t = me(e);
|
|
627
627
|
Object.entries(t).forEach(([r, s]) => {
|
|
628
628
|
s == null ? n.removeAttribute(r) : n.setAttribute(r, s);
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
},
|
|
631
|
+
}, Xt = () => {
|
|
632
632
|
const e = [
|
|
633
633
|
W,
|
|
634
634
|
C,
|
|
635
|
+
M,
|
|
635
636
|
O,
|
|
636
637
|
P,
|
|
637
|
-
M,
|
|
638
638
|
L
|
|
639
639
|
].map((r) => `[${r}]`).join(",");
|
|
640
640
|
document.querySelectorAll(e).forEach((r) => {
|
|
@@ -643,14 +643,14 @@ const pe = (n) => JSON.parse(n.replace(/"/g, '"')), $e = (n) => {
|
|
|
643
643
|
V(s);
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
|
-
s.hasAttribute(C) &&
|
|
646
|
+
s.hasAttribute(C) && Ve(s), s.hasAttribute(O) && Ye(s), s.hasAttribute(M) && je(s), s.hasAttribute(P) && Xe(s), s.hasAttribute(L) && Fe(s);
|
|
647
647
|
});
|
|
648
|
-
},
|
|
649
|
-
class
|
|
648
|
+
}, We = "data-tempo-id", w = /* @__PURE__ */ Symbol("class"), E = /* @__PURE__ */ Symbol("style"), R = /* @__PURE__ */ Symbol("handler"), ge = () => Math.random().toString(36).substring(2, 15), Ke = (n) => n.replace(/<[^>]*>?/g, "");
|
|
649
|
+
class ye {
|
|
650
650
|
constructor(e) {
|
|
651
651
|
this.parent = e;
|
|
652
652
|
}
|
|
653
|
-
id =
|
|
653
|
+
id = ge();
|
|
654
654
|
properties = {};
|
|
655
655
|
children = [];
|
|
656
656
|
isElement() {
|
|
@@ -660,7 +660,7 @@ class ge {
|
|
|
660
660
|
return !1;
|
|
661
661
|
}
|
|
662
662
|
getText() {
|
|
663
|
-
return this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ?
|
|
663
|
+
return this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? Ke(this.properties.innerHTML) : this.children.map((e) => e.getText()).join("");
|
|
664
664
|
}
|
|
665
665
|
removeChild(e) {
|
|
666
666
|
const t = this.children.indexOf(e);
|
|
@@ -730,8 +730,8 @@ class ge {
|
|
|
730
730
|
} : (c) => t(c, r);
|
|
731
731
|
o[e] = [...o[e] ?? [], i];
|
|
732
732
|
const l = () => {
|
|
733
|
-
const c = o[e] ?? [],
|
|
734
|
-
|
|
733
|
+
const c = o[e] ?? [], d = c.indexOf(i);
|
|
734
|
+
d !== -1 && (c.splice(d, 1), c.length === 0 ? (delete o[e], Object.keys(o).length === 0 && delete this.properties[R]) : o[e] = c, s?.signal != null && s.signal.removeEventListener("abort", l));
|
|
735
735
|
};
|
|
736
736
|
return s?.signal != null && s.signal.addEventListener("abort", l), l;
|
|
737
737
|
}
|
|
@@ -782,8 +782,8 @@ class ge {
|
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
const
|
|
786
|
-
class
|
|
785
|
+
const Ue = (n) => n.replace(/"/g, """), qe = (n) => n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
786
|
+
class Ge extends ye {
|
|
787
787
|
constructor(e, t, r) {
|
|
788
788
|
super(r), this.tagName = e, this.namespace = t;
|
|
789
789
|
}
|
|
@@ -796,7 +796,7 @@ class Ue extends ge {
|
|
|
796
796
|
*/
|
|
797
797
|
buildAttributesString(e) {
|
|
798
798
|
let t = null;
|
|
799
|
-
const r = this.namespace ? ` xmlns="${this.namespace}"` : "", s = this.getVisibleAttributes().map(([i, l]) => i === "class" ? ` class="${l.join(" ")}"` : i === "style" ? typeof l == "string" ? ` style="${l}"` : ` style="${Object.entries(l).map(([c,
|
|
799
|
+
const r = this.namespace ? ` xmlns="${this.namespace}"` : "", s = this.getVisibleAttributes().map(([i, l]) => i === "class" ? ` class="${l.join(" ")}"` : i === "style" ? typeof l == "string" ? ` style="${l}"` : ` style="${Object.entries(l).map(([c, d]) => `${c}: ${d};`).join(" ")}"` : Je.has(i) ? ` ${i}` : i === "innerHTML" ? (t = l, "") : i === "innerText" ? (t = qe(l), "") : ` ${i}="${Ue(l)}"`).join(""), o = e ? ` ${W} ${We}="${this.id}"` : "";
|
|
800
800
|
return { attrs: `${r}${s}${o}`, innerHTML: t };
|
|
801
801
|
}
|
|
802
802
|
toHTML(e = !1) {
|
|
@@ -824,7 +824,7 @@ class Ue extends ge {
|
|
|
824
824
|
yield `</${this.tagName}>`;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
class
|
|
827
|
+
class Te extends ye {
|
|
828
828
|
constructor(e, t) {
|
|
829
829
|
super(t), this.selector = e;
|
|
830
830
|
}
|
|
@@ -856,11 +856,11 @@ class ye extends ge {
|
|
|
856
856
|
yield* t.toHTMLStream(e);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
class
|
|
859
|
+
class Qe {
|
|
860
860
|
constructor(e) {
|
|
861
861
|
this.text = e;
|
|
862
862
|
}
|
|
863
|
-
id =
|
|
863
|
+
id = ge();
|
|
864
864
|
isElement() {
|
|
865
865
|
return !1;
|
|
866
866
|
}
|
|
@@ -895,7 +895,7 @@ class k {
|
|
|
895
895
|
this.element.children.push(e);
|
|
896
896
|
}
|
|
897
897
|
makeChildElement(e, t) {
|
|
898
|
-
const r = new
|
|
898
|
+
const r = new Ge(e, t, this.element);
|
|
899
899
|
return this.appendOrInsert(r), new k(
|
|
900
900
|
r,
|
|
901
901
|
void 0,
|
|
@@ -904,7 +904,7 @@ class k {
|
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
906
|
makeChildText(e) {
|
|
907
|
-
const t = new
|
|
907
|
+
const t = new Qe(String(e));
|
|
908
908
|
return this.appendOrInsert(t), new k(
|
|
909
909
|
this.element,
|
|
910
910
|
t,
|
|
@@ -925,7 +925,7 @@ class k {
|
|
|
925
925
|
return this.makeChildText("");
|
|
926
926
|
}
|
|
927
927
|
makePortal(e) {
|
|
928
|
-
const t = new
|
|
928
|
+
const t = new Te(e, this.element);
|
|
929
929
|
return this.appendOrInsert(t), new k(
|
|
930
930
|
t,
|
|
931
931
|
void 0,
|
|
@@ -948,7 +948,7 @@ class k {
|
|
|
948
948
|
}
|
|
949
949
|
getProvider(e) {
|
|
950
950
|
if (this.providers[e] === void 0)
|
|
951
|
-
throw new
|
|
951
|
+
throw new oe(e);
|
|
952
952
|
const [t, r] = this.providers[e];
|
|
953
953
|
return { value: t, onUse: r };
|
|
954
954
|
}
|
|
@@ -995,8 +995,8 @@ class k {
|
|
|
995
995
|
return this.element.makeAccessors(e);
|
|
996
996
|
}
|
|
997
997
|
moveRangeBefore(e, t, r) {
|
|
998
|
-
const s = e.reference, o = t.reference, i = r.reference, l = this.element.children, c = l.indexOf(s), f = l.indexOf(o) - c + 1,
|
|
999
|
-
l.splice(a, 0, ...
|
|
998
|
+
const s = e.reference, o = t.reference, i = r.reference, l = this.element.children, c = l.indexOf(s), f = l.indexOf(o) - c + 1, h = l.splice(c, f), a = l.indexOf(i);
|
|
999
|
+
l.splice(a, 0, ...h);
|
|
1000
1000
|
}
|
|
1001
1001
|
removeRange(e, t) {
|
|
1002
1002
|
const r = e.reference, s = t.reference, o = this.element.children, i = o.indexOf(r), c = o.indexOf(s) - i + 1;
|
|
@@ -1011,35 +1011,35 @@ class k {
|
|
|
1011
1011
|
reattach() {
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1014
|
+
const Je = /* @__PURE__ */ new Set([
|
|
1015
1015
|
"checked",
|
|
1016
1016
|
"disabled",
|
|
1017
1017
|
"multiple",
|
|
1018
1018
|
"readonly",
|
|
1019
1019
|
"required",
|
|
1020
1020
|
"selected"
|
|
1021
|
-
]), Z = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]),
|
|
1021
|
+
]), Z = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), Ze = () => (
|
|
1022
1022
|
/* c8 ignore next */
|
|
1023
1023
|
typeof window < "u" ? window : void 0
|
|
1024
1024
|
);
|
|
1025
|
-
function
|
|
1026
|
-
const n =
|
|
1025
|
+
function ze() {
|
|
1026
|
+
const n = Ze(), e = n?.matchMedia("(prefers-reduced-motion: reduce)"), t = B(e?.matches ?? !1);
|
|
1027
1027
|
if (e != null) {
|
|
1028
1028
|
const r = (s) => t.set(s.matches);
|
|
1029
1029
|
e.addEventListener("change", r), t.onDispose(() => e.removeEventListener("change", r));
|
|
1030
1030
|
}
|
|
1031
1031
|
return t;
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1034
|
-
mark:
|
|
1033
|
+
const Ft = {
|
|
1034
|
+
mark: ie("ReducedMotion"),
|
|
1035
1035
|
create: () => {
|
|
1036
|
-
const n =
|
|
1036
|
+
const n = ze();
|
|
1037
1037
|
return {
|
|
1038
1038
|
value: n,
|
|
1039
1039
|
dispose: () => n.dispose()
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, ve = /* @__PURE__ */ Symbol("DOM_RENDERABLE"), y = (n) => Le(ve, n);
|
|
1043
1043
|
function U(n) {
|
|
1044
1044
|
let e = null, t = null, r = !1;
|
|
1045
1045
|
const s = (o) => {
|
|
@@ -1053,13 +1053,13 @@ function U(n) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1056
|
+
const Wt = (n) => y((e) => {
|
|
1057
1057
|
const t = U(n);
|
|
1058
1058
|
return (r) => {
|
|
1059
1059
|
t.dispose(), e.clear(r);
|
|
1060
1060
|
};
|
|
1061
1061
|
});
|
|
1062
|
-
function
|
|
1062
|
+
function Kt(n) {
|
|
1063
1063
|
const e = n ?? (typeof document < "u" ? document : void 0);
|
|
1064
1064
|
if (e == null) return !1;
|
|
1065
1065
|
const t = e.activeElement;
|
|
@@ -1067,26 +1067,26 @@ function Yt(n) {
|
|
|
1067
1067
|
const r = t.tagName;
|
|
1068
1068
|
return r === "INPUT" || r === "TEXTAREA" || r === "SELECT" || t.isContentEditable === !0;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const t = e?.duration ?? 300, r = e?.easing ??
|
|
1070
|
+
function Ut(n, e) {
|
|
1071
|
+
const t = e?.duration ?? 300, r = e?.easing ?? Ie, s = e?.reducedMotion;
|
|
1072
1072
|
let o = e?.interpolate;
|
|
1073
1073
|
const i = B(n);
|
|
1074
|
-
let l = null, c = n,
|
|
1075
|
-
const
|
|
1074
|
+
let l = null, c = n, d = n, f = 0;
|
|
1075
|
+
const h = () => {
|
|
1076
1076
|
l !== null && (l.dispose(), l = null);
|
|
1077
1077
|
};
|
|
1078
1078
|
return { value: i, tweenTo: (p) => {
|
|
1079
|
-
if (
|
|
1079
|
+
if (h(), t <= 0 || s != null && s.get() === !0) {
|
|
1080
1080
|
i.set(p);
|
|
1081
1081
|
return;
|
|
1082
1082
|
}
|
|
1083
|
-
c = i.get(),
|
|
1083
|
+
c = i.get(), d = p, f = 0, o == null && (o = He(c)), l = U((m) => {
|
|
1084
1084
|
f += m;
|
|
1085
1085
|
const g = Math.min(f / t, 1), v = r(g);
|
|
1086
|
-
i.set(o(c,
|
|
1086
|
+
i.set(o(c, d, v)), g >= 1 && h();
|
|
1087
1087
|
});
|
|
1088
|
-
}, cancel:
|
|
1089
|
-
|
|
1088
|
+
}, cancel: h, dispose: () => {
|
|
1089
|
+
h(), i.dispose();
|
|
1090
1090
|
} };
|
|
1091
1091
|
}
|
|
1092
1092
|
function z(n, e) {
|
|
@@ -1099,7 +1099,7 @@ function ee(n, e) {
|
|
|
1099
1099
|
y: (n.clientY + e.clientY) / 2
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function et(n, e, t) {
|
|
1103
1103
|
const r = t?.minScale ?? 0.1, s = t?.maxScale ?? 5;
|
|
1104
1104
|
let o = 0, i = { x: 0, y: 0 }, l = { scale: 1, panX: 0, panY: 0 };
|
|
1105
1105
|
const c = (a) => Math.min(s, Math.max(r, a));
|
|
@@ -1111,55 +1111,55 @@ function Ze(n, e, t) {
|
|
|
1111
1111
|
}, onTouchMove: (a) => {
|
|
1112
1112
|
if (a.touches.length !== 2) return;
|
|
1113
1113
|
a.preventDefault();
|
|
1114
|
-
const u = a.touches[0], p = a.touches[1], m = z(u, p), g = ee(u, p), v = e(), F = m / o, q = c(l.scale * F), G = i.x - v.left, Q = i.y - v.top,
|
|
1115
|
-
n.set({ scale: q, panX:
|
|
1114
|
+
const u = a.touches[0], p = a.touches[1], m = z(u, p), g = ee(u, p), v = e(), F = m / o, q = c(l.scale * F), G = i.x - v.left, Q = i.y - v.top, ke = g.x - i.x, Ae = g.y - i.y, J = q / l.scale, Ce = G - (G - l.panX) * J + ke, Pe = Q - (Q - l.panY) * J + Ae;
|
|
1115
|
+
n.set({ scale: q, panX: Ce, panY: Pe });
|
|
1116
1116
|
}, onTouchEnd: () => {
|
|
1117
1117
|
} };
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function tt(n, e) {
|
|
1120
1120
|
const t = e?.friction ?? 0.95, r = e?.minVelocity ?? 0.5;
|
|
1121
1121
|
let s = 0, o = 0, i = null, l = 0, c = 0;
|
|
1122
|
-
return { track: (
|
|
1122
|
+
return { track: (h, a) => {
|
|
1123
1123
|
const u = performance.now();
|
|
1124
1124
|
if (i !== null) {
|
|
1125
1125
|
const p = (u - i) / 1e3;
|
|
1126
|
-
p > 0 && (l = (
|
|
1126
|
+
p > 0 && (l = (h - s) / p, c = (a - o) / p);
|
|
1127
1127
|
}
|
|
1128
|
-
s =
|
|
1128
|
+
s = h, o = a, i = u;
|
|
1129
1129
|
}, release: () => {
|
|
1130
|
-
let
|
|
1130
|
+
let h = l, a = c;
|
|
1131
1131
|
i = null, l = 0, c = 0;
|
|
1132
1132
|
const u = U((p) => {
|
|
1133
1133
|
const m = p / 1e3;
|
|
1134
|
-
if (
|
|
1134
|
+
if (h *= t, a *= t, Math.hypot(h, a) < r) {
|
|
1135
1135
|
u.dispose();
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
|
-
n(
|
|
1138
|
+
n(h * m, a * m);
|
|
1139
1139
|
});
|
|
1140
1140
|
return u;
|
|
1141
1141
|
} };
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function nt(n, e) {
|
|
1144
1144
|
const t = [], r = e.createDocumentFragment();
|
|
1145
1145
|
return K(n, r, [], { count: 0 }, t, e) ? { fragment: r, slots: t, topNodeCount: r.childNodes.length } : null;
|
|
1146
1146
|
}
|
|
1147
1147
|
function K(n, e, t, r, s, o) {
|
|
1148
1148
|
switch (n.kind) {
|
|
1149
1149
|
case "element": {
|
|
1150
|
-
const { tag: i, ns: l, children: c } = n,
|
|
1151
|
-
let
|
|
1150
|
+
const { tag: i, ns: l, children: c } = n, d = l != null ? o.createElementNS(l, i) : o.createElement(i), f = [...t, r.count++];
|
|
1151
|
+
let h = "";
|
|
1152
1152
|
for (let u = 0; u < c.length; u++) {
|
|
1153
1153
|
const p = c[u];
|
|
1154
|
-
p.kind === "static-attr" && (p.name === "class" ?
|
|
1154
|
+
p.kind === "static-attr" && (p.name === "class" ? h += (h ? " " : "") + p.value : d.setAttribute(p.name, p.value));
|
|
1155
1155
|
}
|
|
1156
|
-
|
|
1156
|
+
h && d.setAttribute("class", h), e.appendChild(d);
|
|
1157
1157
|
for (let u = 0; u < c.length; u++)
|
|
1158
1158
|
c[u].kind === "dynamic-attr" && s.push({ path: f, kind: "dynamic-attr" });
|
|
1159
1159
|
const a = { count: 0 };
|
|
1160
1160
|
for (let u = 0; u < c.length; u++) {
|
|
1161
1161
|
const p = c[u];
|
|
1162
|
-
if (!(p.kind === "static-attr" || p.kind === "dynamic-attr") && !K(p,
|
|
1162
|
+
if (!(p.kind === "static-attr" || p.kind === "dynamic-attr") && !K(p, d, f, a, s, o))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
return !0;
|
|
@@ -1187,24 +1187,24 @@ function K(n, e, t, r, s, o) {
|
|
|
1187
1187
|
}), !0) : !1;
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function rt(n, e) {
|
|
1191
1191
|
let t = n;
|
|
1192
1192
|
for (let r = 0; r < e.length; r++)
|
|
1193
1193
|
t = t.childNodes[e[r]];
|
|
1194
1194
|
return t;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function st(n, e, t) {
|
|
1197
1197
|
const r = e, s = n.fragment.cloneNode(!0), o = n.topNodeCount, i = new Array(o);
|
|
1198
1198
|
let l = s.firstChild;
|
|
1199
1199
|
for (let a = 0; a < o; a++)
|
|
1200
1200
|
i[a] = l, l = l.nextSibling;
|
|
1201
|
-
const c = n.slots.length,
|
|
1201
|
+
const c = n.slots.length, d = new Array(c);
|
|
1202
1202
|
for (let a = 0; a < c; a++)
|
|
1203
|
-
|
|
1203
|
+
d[a] = rt(s, n.slots[a].path);
|
|
1204
1204
|
r.appendOrInsert(s);
|
|
1205
1205
|
const f = new Array(c);
|
|
1206
1206
|
for (let a = 0; a < c; a++) {
|
|
1207
|
-
const u = n.slots[a], p =
|
|
1207
|
+
const u = n.slots[a], p = d[a];
|
|
1208
1208
|
if (u.kind === "dynamic-text") {
|
|
1209
1209
|
const m = t[a], g = p;
|
|
1210
1210
|
g.textContent = m.transform(m.source.value), f[a] = m.source.onChange((v) => {
|
|
@@ -1228,7 +1228,7 @@ function nt(n, e, t) {
|
|
|
1228
1228
|
f[a] = m.render(v), g.remove();
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1231
|
+
const h = new b(
|
|
1232
1232
|
r.document,
|
|
1233
1233
|
r.element,
|
|
1234
1234
|
i[0],
|
|
@@ -1244,10 +1244,10 @@ function nt(n, e, t) {
|
|
|
1244
1244
|
p.parentNode && p.parentNode.removeChild(p);
|
|
1245
1245
|
}
|
|
1246
1246
|
},
|
|
1247
|
-
startCtx:
|
|
1247
|
+
startCtx: h
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function it(n) {
|
|
1251
1251
|
const e = [];
|
|
1252
1252
|
function t(r) {
|
|
1253
1253
|
switch (r.kind) {
|
|
@@ -1288,7 +1288,7 @@ function rt(n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
return t(n) ? e.join("|") : null;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function ot(n) {
|
|
1292
1292
|
const e = [];
|
|
1293
1293
|
function t(r) {
|
|
1294
1294
|
switch (r.kind) {
|
|
@@ -1322,70 +1322,70 @@ function st(n) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
return t(n), e;
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const lt = {
|
|
1326
1326
|
build(n, e) {
|
|
1327
1327
|
if (!e.isBrowser()) return null;
|
|
1328
1328
|
const t = n;
|
|
1329
1329
|
if (t.kind === void 0) return null;
|
|
1330
1330
|
const r = e.document;
|
|
1331
|
-
return
|
|
1331
|
+
return nt(t, r);
|
|
1332
1332
|
},
|
|
1333
1333
|
cloneAndHydrate(n, e, t) {
|
|
1334
|
-
return
|
|
1334
|
+
return st(n, e, t);
|
|
1335
1335
|
},
|
|
1336
1336
|
fingerprint(n) {
|
|
1337
|
-
return
|
|
1337
|
+
return it(n);
|
|
1338
1338
|
},
|
|
1339
1339
|
extractSlots(n) {
|
|
1340
|
-
return
|
|
1340
|
+
return ot(n);
|
|
1341
1341
|
}
|
|
1342
|
-
},
|
|
1343
|
-
type:
|
|
1342
|
+
}, ct = Ne({
|
|
1343
|
+
type: ve,
|
|
1344
1344
|
create: y,
|
|
1345
|
-
templateEngine:
|
|
1345
|
+
templateEngine: lt
|
|
1346
1346
|
}), {
|
|
1347
|
-
Empty:
|
|
1347
|
+
Empty: at,
|
|
1348
1348
|
Fragment: S,
|
|
1349
|
-
When:
|
|
1350
|
-
Unless:
|
|
1351
|
-
ForEach:
|
|
1352
|
-
KeyedForEach:
|
|
1353
|
-
Repeat:
|
|
1354
|
-
OneOf:
|
|
1355
|
-
OneOfField:
|
|
1356
|
-
OneOfKind:
|
|
1357
|
-
OneOfType:
|
|
1358
|
-
OneOfValue:
|
|
1359
|
-
OneOfTuple:
|
|
1360
|
-
MapSignal:
|
|
1361
|
-
MapText:
|
|
1362
|
-
Ensure:
|
|
1363
|
-
EnsureAll:
|
|
1364
|
-
NotEmpty:
|
|
1365
|
-
Task:
|
|
1366
|
-
Async:
|
|
1349
|
+
When: qt,
|
|
1350
|
+
Unless: Gt,
|
|
1351
|
+
ForEach: Qt,
|
|
1352
|
+
KeyedForEach: ut,
|
|
1353
|
+
Repeat: Jt,
|
|
1354
|
+
OneOf: Zt,
|
|
1355
|
+
OneOfField: zt,
|
|
1356
|
+
OneOfKind: en,
|
|
1357
|
+
OneOfType: tn,
|
|
1358
|
+
OneOfValue: nn,
|
|
1359
|
+
OneOfTuple: rn,
|
|
1360
|
+
MapSignal: sn,
|
|
1361
|
+
MapText: on,
|
|
1362
|
+
Ensure: ln,
|
|
1363
|
+
EnsureAll: cn,
|
|
1364
|
+
NotEmpty: an,
|
|
1365
|
+
Task: un,
|
|
1366
|
+
Async: dn,
|
|
1367
1367
|
OnDispose: Y,
|
|
1368
|
-
Conjunction:
|
|
1369
|
-
WithScope:
|
|
1370
|
-
WithProvider:
|
|
1371
|
-
Provide:
|
|
1372
|
-
Use:
|
|
1373
|
-
UseMany:
|
|
1374
|
-
UseOptional:
|
|
1375
|
-
handleValueOrSignal:
|
|
1376
|
-
createReactiveRenderable:
|
|
1368
|
+
Conjunction: hn,
|
|
1369
|
+
WithScope: dt,
|
|
1370
|
+
WithProvider: fn,
|
|
1371
|
+
Provide: pn,
|
|
1372
|
+
Use: mn,
|
|
1373
|
+
UseMany: gn,
|
|
1374
|
+
UseOptional: yn,
|
|
1375
|
+
handleValueOrSignal: Tn,
|
|
1376
|
+
createReactiveRenderable: vn,
|
|
1377
1377
|
renderableOfTNode: A
|
|
1378
|
-
} =
|
|
1379
|
-
function
|
|
1378
|
+
} = ct, te = /* @__PURE__ */ new Map();
|
|
1379
|
+
function ht(n) {
|
|
1380
1380
|
let e = te.get(n);
|
|
1381
1381
|
return e === void 0 && (e = n.split(" ").filter((t) => t.length > 0), te.set(n, e)), e;
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const ft = (n) => {
|
|
1384
1384
|
const e = y((t) => (t.addClasses(n), (r) => {
|
|
1385
1385
|
r && t.removeClasses(n);
|
|
1386
1386
|
}));
|
|
1387
1387
|
return e.kind = "static-attr", e.name = "class", e.value = n.join(" "), e;
|
|
1388
|
-
},
|
|
1388
|
+
}, pt = (n) => {
|
|
1389
1389
|
const e = y((t) => {
|
|
1390
1390
|
let r = [];
|
|
1391
1391
|
const s = n.on(
|
|
@@ -1400,7 +1400,7 @@ const dt = (n) => {
|
|
|
1400
1400
|
};
|
|
1401
1401
|
});
|
|
1402
1402
|
return e.kind = "dynamic-attr", e;
|
|
1403
|
-
},
|
|
1403
|
+
}, mt = (n, e) => {
|
|
1404
1404
|
const t = y((r) => {
|
|
1405
1405
|
const { get: s, set: o } = r.makeAccessors(n), i = s();
|
|
1406
1406
|
return o(e), (l) => {
|
|
@@ -1408,7 +1408,7 @@ const dt = (n) => {
|
|
|
1408
1408
|
};
|
|
1409
1409
|
});
|
|
1410
1410
|
return t.kind = "static-attr", t.name = n, t.value = String(e), t;
|
|
1411
|
-
},
|
|
1411
|
+
}, gt = (n, e) => {
|
|
1412
1412
|
const t = y((r) => {
|
|
1413
1413
|
const { get: s, set: o } = r.makeAccessors(n), i = s(), l = e.on(o, { noAutoDispose: !0 });
|
|
1414
1414
|
return (c) => {
|
|
@@ -1416,7 +1416,7 @@ const dt = (n) => {
|
|
|
1416
1416
|
};
|
|
1417
1417
|
});
|
|
1418
1418
|
return t.kind = "dynamic-attr", t;
|
|
1419
|
-
}, H = (n, e) => j.is(e) ?
|
|
1419
|
+
}, H = (n, e) => j.is(e) ? gt(n, e) : mt(n, e), yt = (n, e) => n === "class" ? j.is(e) ? pt(e) : ft(
|
|
1420
1420
|
/* c8 ignore next */
|
|
1421
1421
|
(e ?? "").split(" ").filter((t) => t.length > 0)
|
|
1422
1422
|
) : H(n, e), T = new Proxy(
|
|
@@ -1433,9 +1433,9 @@ const dt = (n) => {
|
|
|
1433
1433
|
* @returns The renderable component for the specified attribute.
|
|
1434
1434
|
*
|
|
1435
1435
|
*/
|
|
1436
|
-
get: (n, e) => (t) =>
|
|
1436
|
+
get: (n, e) => (t) => yt(e, t)
|
|
1437
1437
|
}
|
|
1438
|
-
),
|
|
1438
|
+
), Tt = (n, e) => H(`data-${n}`, e), bn = (n, e) => Tt(n, e), vt = (n, e) => H(`aria-${n}`, e), Sn = new Proxy(
|
|
1439
1439
|
{},
|
|
1440
1440
|
{
|
|
1441
1441
|
/**
|
|
@@ -1446,9 +1446,9 @@ const dt = (n) => {
|
|
|
1446
1446
|
* @returns The renderable component for the specified attribute.
|
|
1447
1447
|
*
|
|
1448
1448
|
*/
|
|
1449
|
-
get: (n, e) => (t) =>
|
|
1449
|
+
get: (n, e) => (t) => vt(e, t)
|
|
1450
1450
|
}
|
|
1451
|
-
),
|
|
1451
|
+
), bt = (n, e) => H(n, e), xn = new Proxy(
|
|
1452
1452
|
{},
|
|
1453
1453
|
{
|
|
1454
1454
|
/**
|
|
@@ -1459,9 +1459,9 @@ const dt = (n) => {
|
|
|
1459
1459
|
* @returns The renderable component for the specified attribute.
|
|
1460
1460
|
*
|
|
1461
1461
|
*/
|
|
1462
|
-
get: (n, e) => (t) =>
|
|
1462
|
+
get: (n, e) => (t) => bt(e, t)
|
|
1463
1463
|
}
|
|
1464
|
-
),
|
|
1464
|
+
), St = (n, e) => H(n, e), wn = new Proxy(
|
|
1465
1465
|
{},
|
|
1466
1466
|
{
|
|
1467
1467
|
/**
|
|
@@ -1471,63 +1471,75 @@ const dt = (n) => {
|
|
|
1471
1471
|
* @returns The renderable component for the specified attribute.
|
|
1472
1472
|
*
|
|
1473
1473
|
*/
|
|
1474
|
-
get: (n, e) => (t) =>
|
|
1474
|
+
get: (n, e) => (t) => St(e, t)
|
|
1475
1475
|
}
|
|
1476
1476
|
), ne = /* @__PURE__ */ new WeakMap();
|
|
1477
|
-
function
|
|
1477
|
+
function xt(n, e) {
|
|
1478
1478
|
let t = ne.get(n);
|
|
1479
|
-
return t || (t =
|
|
1479
|
+
return t || (t = De(n, e), ne.set(
|
|
1480
1480
|
n,
|
|
1481
1481
|
t
|
|
1482
1482
|
)), t;
|
|
1483
1483
|
}
|
|
1484
|
-
const
|
|
1485
|
-
const s =
|
|
1486
|
-
const
|
|
1484
|
+
const En = (n, e, t = "danger", r) => {
|
|
1485
|
+
const s = ht(t), o = y((i) => {
|
|
1486
|
+
const d = xt(n, r)(e).on(
|
|
1487
1487
|
(f) => {
|
|
1488
1488
|
f ? i.addClasses(s) : i.removeClasses(s);
|
|
1489
1489
|
},
|
|
1490
1490
|
{ noAutoDispose: !0 }
|
|
1491
1491
|
);
|
|
1492
1492
|
return (f) => {
|
|
1493
|
-
|
|
1493
|
+
d(), f && i.removeClasses(s);
|
|
1494
1494
|
};
|
|
1495
1495
|
});
|
|
1496
1496
|
return o.kind = "dynamic-attr", o;
|
|
1497
|
-
},
|
|
1497
|
+
}, be = (n, e, t) => {
|
|
1498
1498
|
const r = y(
|
|
1499
1499
|
(s) => s.on(n, e, t)
|
|
1500
1500
|
);
|
|
1501
1501
|
return r.kind = "dynamic-attr", r;
|
|
1502
|
-
},
|
|
1502
|
+
}, Se = (n) => (e, t, r) => {
|
|
1503
|
+
const s = y((o) => {
|
|
1504
|
+
if (!o.isBrowser())
|
|
1505
|
+
return () => {
|
|
1506
|
+
};
|
|
1507
|
+
const i = o, l = i.element, c = n === "document" ? i.document : i.getWindow();
|
|
1508
|
+
let d = !1;
|
|
1509
|
+
const f = (h) => {
|
|
1510
|
+
d || !l.isConnected || t(h, o);
|
|
1511
|
+
};
|
|
1512
|
+
return c.addEventListener(e, f, r), () => {
|
|
1513
|
+
d = !0, c.removeEventListener(e, f, r);
|
|
1514
|
+
};
|
|
1515
|
+
});
|
|
1516
|
+
return s.kind = "dynamic-attr", s;
|
|
1517
|
+
}, wt = Se("document"), Et = Se("window"), kt = (n) => be("click", (e, t) => {
|
|
1503
1518
|
e.preventDefault();
|
|
1504
1519
|
const r = e.target;
|
|
1505
1520
|
setTimeout(() => {
|
|
1506
1521
|
const s = r.ownerDocument != null ? r?.checked : void 0;
|
|
1507
1522
|
s != null && n(!s, t);
|
|
1508
1523
|
}, 0);
|
|
1524
|
+
}), re = (n) => new Proxy({}, {
|
|
1525
|
+
get: (e, t) => (r, s) => n(t, r, s)
|
|
1509
1526
|
}), D = new Proxy(
|
|
1510
1527
|
{},
|
|
1511
1528
|
{
|
|
1512
|
-
|
|
1513
|
-
* @param name - The name of the event handler.
|
|
1514
|
-
* @param fn - The function to call when the event is triggered.
|
|
1515
|
-
* @returns A `Renderable` function that adds the event listener to the element.
|
|
1516
|
-
*/
|
|
1517
|
-
get: (n, e) => (t) => ve(e, t)
|
|
1529
|
+
get: (n, e) => e === "document" ? re(wt) : e === "window" ? re(Et) : (t, r) => be(e, t, r)
|
|
1518
1530
|
}
|
|
1519
|
-
),
|
|
1531
|
+
), At = (n, e) => (t) => {
|
|
1520
1532
|
e?.preventDefault === !0 && t.preventDefault(), e?.stopPropagation === !0 && t.stopPropagation(), e?.stopImmediatePropagation === !0 && t.stopImmediatePropagation(), n(t);
|
|
1521
|
-
}, x = (n, e) =>
|
|
1533
|
+
}, x = (n, e) => At((t) => {
|
|
1522
1534
|
const r = t.target;
|
|
1523
1535
|
n(r, t);
|
|
1524
|
-
}, e),
|
|
1536
|
+
}, e), Ct = (n, e) => x(
|
|
1525
1537
|
(t, r) => n(t.value, r),
|
|
1526
1538
|
e
|
|
1527
|
-
),
|
|
1539
|
+
), Pt = (n, e) => x(
|
|
1528
1540
|
(t, r) => n(t.valueAsNumber, r),
|
|
1529
1541
|
e
|
|
1530
|
-
),
|
|
1542
|
+
), Mt = (n, e) => x((t, r) => {
|
|
1531
1543
|
if (t.value === "")
|
|
1532
1544
|
return;
|
|
1533
1545
|
const s = t.value.split("-"), o = new Date(
|
|
@@ -1536,7 +1548,7 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1536
1548
|
Number(s[2].substring(0, 2))
|
|
1537
1549
|
);
|
|
1538
1550
|
n(o, r);
|
|
1539
|
-
}, e),
|
|
1551
|
+
}, e), kn = (n, e) => x((t, r) => {
|
|
1540
1552
|
if (t.value === "") {
|
|
1541
1553
|
n(null, r);
|
|
1542
1554
|
return;
|
|
@@ -1547,7 +1559,7 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1547
1559
|
Number(s[2].substring(0, 2))
|
|
1548
1560
|
);
|
|
1549
1561
|
n(o, r);
|
|
1550
|
-
}, e),
|
|
1562
|
+
}, e), Ot = (n, e) => x((t, r) => {
|
|
1551
1563
|
if (t.value === "")
|
|
1552
1564
|
return;
|
|
1553
1565
|
const s = t.value.split("T"), o = s[0].split("-"), i = new Date(
|
|
@@ -1556,7 +1568,7 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1556
1568
|
Number(o[2])
|
|
1557
1569
|
), l = s[1].split(":");
|
|
1558
1570
|
i.setHours(Number(l[0])), i.setMinutes(Number(l[1])), i.setSeconds(Number(l[2])), n(i, r);
|
|
1559
|
-
}, e),
|
|
1571
|
+
}, e), An = (n, e) => x((t, r) => {
|
|
1560
1572
|
if (t.value === "") {
|
|
1561
1573
|
n(null, r);
|
|
1562
1574
|
return;
|
|
@@ -1572,42 +1584,42 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1572
1584
|
Number(o[2])
|
|
1573
1585
|
), l = s[1].split(":");
|
|
1574
1586
|
i.setHours(Number(l[0] ?? 0)), i.setMinutes(Number(l[1] ?? 0)), i.setSeconds(Number(l[2] ?? 0)), n(i, r);
|
|
1575
|
-
}, e),
|
|
1587
|
+
}, e), Cn = (n, e) => x((t, r) => {
|
|
1576
1588
|
n(t.checked, r);
|
|
1577
|
-
}, e),
|
|
1589
|
+
}, e), Pn = (n, e = "input") => S(
|
|
1578
1590
|
T.valueAsDate(n),
|
|
1579
|
-
D[e](
|
|
1580
|
-
),
|
|
1591
|
+
D[e](Mt((t) => n.set(t)))
|
|
1592
|
+
), Mn = (n, e = "input") => S(
|
|
1581
1593
|
T.valueAsDate(n),
|
|
1582
|
-
D[e](
|
|
1583
|
-
),
|
|
1594
|
+
D[e](Ot((t) => n.set(t)))
|
|
1595
|
+
), On = (n, e = "input") => S(
|
|
1584
1596
|
T.valueAsNumber(n),
|
|
1585
|
-
D[e](
|
|
1586
|
-
),
|
|
1597
|
+
D[e](Pt((t) => n.set(t)))
|
|
1598
|
+
), Ln = (n, e = "input") => S(T.value(n), D[e](Ct((t) => n.set(t)))), In = (n) => S(
|
|
1587
1599
|
T.checked(n),
|
|
1588
|
-
|
|
1589
|
-
),
|
|
1600
|
+
kt((e) => n.set(e))
|
|
1601
|
+
), Lt = (n, e, t, r) => {
|
|
1590
1602
|
const s = y((o) => {
|
|
1591
1603
|
if (!o.isBrowser())
|
|
1592
1604
|
return () => {
|
|
1593
1605
|
};
|
|
1594
1606
|
const i = o.element, l = (c) => {
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1607
|
+
const d = c.target?.closest(e);
|
|
1608
|
+
d != null && i.contains(d) && t(c, o);
|
|
1597
1609
|
};
|
|
1598
1610
|
return i.addEventListener(n, l, r), (c) => {
|
|
1599
1611
|
c && i.removeEventListener(n, l, r);
|
|
1600
1612
|
};
|
|
1601
1613
|
});
|
|
1602
1614
|
return s.kind = "dynamic-attr", s;
|
|
1603
|
-
},
|
|
1615
|
+
}, Hn = new Proxy(
|
|
1604
1616
|
{},
|
|
1605
1617
|
{
|
|
1606
|
-
get: (n, e) => (t, r, s) =>
|
|
1618
|
+
get: (n, e) => (t, r, s) => Lt(e, t, r, s)
|
|
1607
1619
|
}
|
|
1608
|
-
),
|
|
1620
|
+
), Dn = (n) => y((e) => (e.appendOrInsert(n), (t) => {
|
|
1609
1621
|
t && V(n);
|
|
1610
|
-
})),
|
|
1622
|
+
})), xe = (n, ...e) => {
|
|
1611
1623
|
const t = e.map(A), r = y((s) => {
|
|
1612
1624
|
const o = s.makeChildElement(n, void 0), i = t.map((l) => l.render(o));
|
|
1613
1625
|
return (l) => {
|
|
@@ -1619,11 +1631,11 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1619
1631
|
const r = t.map(A), s = y((o) => {
|
|
1620
1632
|
const i = o.makeChildElement(n, e), l = r.map((c) => c.render(i));
|
|
1621
1633
|
return (c) => {
|
|
1622
|
-
l.forEach((
|
|
1634
|
+
l.forEach((d) => d(!1)), i.clear(c);
|
|
1623
1635
|
};
|
|
1624
1636
|
});
|
|
1625
1637
|
return s.kind = "element", s.tag = n, s.ns = e, s.children = r, s;
|
|
1626
|
-
},
|
|
1638
|
+
}, It = new Proxy(
|
|
1627
1639
|
{},
|
|
1628
1640
|
{
|
|
1629
1641
|
/**
|
|
@@ -1631,9 +1643,9 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1631
1643
|
* @param tagName - The HTML tag name.
|
|
1632
1644
|
* @returns A renderable function that creates and appends the HTML element to the DOM.
|
|
1633
1645
|
*/
|
|
1634
|
-
get: (n, e) => (...t) =>
|
|
1646
|
+
get: (n, e) => (...t) => xe(e, ...t)
|
|
1635
1647
|
}
|
|
1636
|
-
),
|
|
1648
|
+
), Nn = new Proxy(
|
|
1637
1649
|
{},
|
|
1638
1650
|
{
|
|
1639
1651
|
/**
|
|
@@ -1641,9 +1653,9 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1641
1653
|
* @param type - The input type name.
|
|
1642
1654
|
* @returns A renderable function that creates and appends the HTMLInput element to the DOM.
|
|
1643
1655
|
*/
|
|
1644
|
-
get: (n, e) => (...t) =>
|
|
1656
|
+
get: (n, e) => (...t) => xe("input", T.type(e), ...t)
|
|
1645
1657
|
}
|
|
1646
|
-
),
|
|
1658
|
+
), we = "http://www.w3.org/2000/svg", Rn = (n, ...e) => X(n, we, ...e), _n = new Proxy(
|
|
1647
1659
|
{},
|
|
1648
1660
|
{
|
|
1649
1661
|
/**
|
|
@@ -1651,9 +1663,9 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1651
1663
|
* @param tagName - The SVG tag name.
|
|
1652
1664
|
* @returns A renderable function that creates and appends the SVG element to the DOM.
|
|
1653
1665
|
*/
|
|
1654
|
-
get: (n, e) => (...t) => X(e,
|
|
1666
|
+
get: (n, e) => (...t) => X(e, we, ...t)
|
|
1655
1667
|
}
|
|
1656
|
-
),
|
|
1668
|
+
), Ee = "http://www.w3.org/1998/Math/MathML", $n = (n, ...e) => X(n, Ee, ...e), Bn = new Proxy(
|
|
1657
1669
|
{},
|
|
1658
1670
|
{
|
|
1659
1671
|
/**
|
|
@@ -1661,7 +1673,7 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1661
1673
|
* @param tagName - The Math tag name.
|
|
1662
1674
|
* @returns A renderable function that creates and appends the Math element to the DOM.
|
|
1663
1675
|
*/
|
|
1664
|
-
get: (n, e) => (...t) => X(e,
|
|
1676
|
+
get: (n, e) => (...t) => X(e, Ee, ...t)
|
|
1665
1677
|
}
|
|
1666
1678
|
), N = (n) => y((e) => {
|
|
1667
1679
|
if (e.isBrowser()) {
|
|
@@ -1672,7 +1684,7 @@ const bn = (n, e, t = "danger", r) => {
|
|
|
1672
1684
|
return () => {
|
|
1673
1685
|
};
|
|
1674
1686
|
});
|
|
1675
|
-
function
|
|
1687
|
+
function Vn({
|
|
1676
1688
|
src: n,
|
|
1677
1689
|
name: e,
|
|
1678
1690
|
width: t,
|
|
@@ -1682,9 +1694,9 @@ function Rn({
|
|
|
1682
1694
|
referrerpolicy: i,
|
|
1683
1695
|
loading: l,
|
|
1684
1696
|
iframeChild: c,
|
|
1685
|
-
onLoad:
|
|
1697
|
+
onLoad: d
|
|
1686
1698
|
} = {}, ...f) {
|
|
1687
|
-
return
|
|
1699
|
+
return It.iframe(
|
|
1688
1700
|
T.src(n),
|
|
1689
1701
|
T.name(e),
|
|
1690
1702
|
T.width(
|
|
@@ -1697,25 +1709,25 @@ function Rn({
|
|
|
1697
1709
|
T.allow(o),
|
|
1698
1710
|
T.referrerpolicy(i),
|
|
1699
1711
|
c,
|
|
1700
|
-
N((
|
|
1701
|
-
const a =
|
|
1712
|
+
N((h) => {
|
|
1713
|
+
const a = h.element;
|
|
1702
1714
|
let u, p = !1;
|
|
1703
1715
|
const m = () => {
|
|
1704
1716
|
if (p) return;
|
|
1705
1717
|
p = !0;
|
|
1706
1718
|
const g = a.contentDocument;
|
|
1707
|
-
if (g && (
|
|
1719
|
+
if (g && (d && d(a), f.length > 0)) {
|
|
1708
1720
|
const v = g.body;
|
|
1709
1721
|
if (v) {
|
|
1710
|
-
const F =
|
|
1722
|
+
const F = h.withElement(v);
|
|
1711
1723
|
u = I(S(...f), F);
|
|
1712
1724
|
}
|
|
1713
1725
|
}
|
|
1714
1726
|
};
|
|
1715
1727
|
return l != null && $.on(l, (g) => {
|
|
1716
1728
|
a.loading = g;
|
|
1717
|
-
}), (f.length > 0 ||
|
|
1718
|
-
f.length > 0 ||
|
|
1729
|
+
}), (f.length > 0 || d) && (n || setTimeout(m, 0)), S(
|
|
1730
|
+
f.length > 0 || d ? D.load(m) : at,
|
|
1719
1731
|
Y(() => {
|
|
1720
1732
|
u && u(!1);
|
|
1721
1733
|
})
|
|
@@ -1723,11 +1735,11 @@ function Rn({
|
|
|
1723
1735
|
})
|
|
1724
1736
|
);
|
|
1725
1737
|
}
|
|
1726
|
-
const
|
|
1738
|
+
const jn = (n, e) => y((t) => {
|
|
1727
1739
|
const r = t.makePortal(n), s = I(A(e), r);
|
|
1728
1740
|
return () => s(!0);
|
|
1729
|
-
}), _ = /* @__PURE__ */ new Map(),
|
|
1730
|
-
mark:
|
|
1741
|
+
}), _ = /* @__PURE__ */ new Map(), Ht = (n) => ({
|
|
1742
|
+
mark: ie(`Probe(${n.description})`),
|
|
1731
1743
|
create: ({ callback: e = () => {
|
|
1732
1744
|
}, timeout: t = 10 } = {}) => {
|
|
1733
1745
|
const r = (l) => {
|
|
@@ -1746,8 +1758,8 @@ const _n = (n, e) => y((t) => {
|
|
|
1746
1758
|
onUse: () => o.counter++
|
|
1747
1759
|
};
|
|
1748
1760
|
}
|
|
1749
|
-
}),
|
|
1750
|
-
function
|
|
1761
|
+
}), Yn = Ht(/* @__PURE__ */ Symbol("GlobalProbe"));
|
|
1762
|
+
function Xn({
|
|
1751
1763
|
mode: n,
|
|
1752
1764
|
delegatesFocus: e,
|
|
1753
1765
|
slotAssignment: t,
|
|
@@ -1757,11 +1769,11 @@ function Bn({
|
|
|
1757
1769
|
return N((i) => {
|
|
1758
1770
|
const l = { mode: n };
|
|
1759
1771
|
e !== void 0 && (l.delegatesFocus = e), t !== void 0 && (l.slotAssignment = t), r !== void 0 && (l.clonable = r), s !== void 0 && (l.serializable = s);
|
|
1760
|
-
const c = i.element.attachShadow(l),
|
|
1772
|
+
const c = i.element.attachShadow(l), d = i.withElement(c), f = I(S(...o), d);
|
|
1761
1773
|
return Y(() => f(!0));
|
|
1762
1774
|
});
|
|
1763
1775
|
}
|
|
1764
|
-
const
|
|
1776
|
+
const Dt = (n, e) => {
|
|
1765
1777
|
const t = y((r) => {
|
|
1766
1778
|
const s = r.getStyle(n);
|
|
1767
1779
|
return r.setStyle(n, e), (o) => {
|
|
@@ -1769,7 +1781,7 @@ const Pt = (n, e) => {
|
|
|
1769
1781
|
};
|
|
1770
1782
|
});
|
|
1771
1783
|
return t.kind = "dynamic-attr", t;
|
|
1772
|
-
},
|
|
1784
|
+
}, Nt = (n, e) => {
|
|
1773
1785
|
const t = y((r) => {
|
|
1774
1786
|
const s = r.getStyle(n), o = e.on((i) => r.setStyle(n, i));
|
|
1775
1787
|
return (i) => {
|
|
@@ -1777,7 +1789,7 @@ const Pt = (n, e) => {
|
|
|
1777
1789
|
};
|
|
1778
1790
|
});
|
|
1779
1791
|
return t.kind = "dynamic-attr", t;
|
|
1780
|
-
},
|
|
1792
|
+
}, se = (n, e) => j.is(e) ? Nt(n, e) : Dt(n, e), Fn = new Proxy({}, {
|
|
1781
1793
|
/**
|
|
1782
1794
|
* Creates a renderable component for the specified `style` property.
|
|
1783
1795
|
*
|
|
@@ -1786,20 +1798,20 @@ const Pt = (n, e) => {
|
|
|
1786
1798
|
* @returns The renderable component for the specified attribute.
|
|
1787
1799
|
*
|
|
1788
1800
|
*/
|
|
1789
|
-
get: (n, e) => e === "variable" ? (t, r) =>
|
|
1790
|
-
}),
|
|
1801
|
+
get: (n, e) => e === "variable" ? (t, r) => se(t, r) : (t) => se(e, t)
|
|
1802
|
+
}), Rt = (n) => y((e) => {
|
|
1791
1803
|
const t = e.makeChildText(n);
|
|
1792
1804
|
return (r) => t.clear(r);
|
|
1793
|
-
}),
|
|
1805
|
+
}), _t = (n) => y((e) => {
|
|
1794
1806
|
const t = e.makeChildText(n.value), r = n.on((s) => t.setText(s));
|
|
1795
1807
|
return (s) => {
|
|
1796
1808
|
r(), t.clear(s);
|
|
1797
1809
|
};
|
|
1798
|
-
}),
|
|
1810
|
+
}), Wn = (n) => j.is(n) ? _t(n) : Rt(n), Kn = (n) => y((e) => {
|
|
1799
1811
|
const t = n(e);
|
|
1800
1812
|
return t == null ? () => {
|
|
1801
1813
|
} : A(t).render(e);
|
|
1802
|
-
}),
|
|
1814
|
+
}), Un = (n) => N((e) => n(e.element)), qn = (n) => y((e) => {
|
|
1803
1815
|
if (e.isHeadlessDOM()) {
|
|
1804
1816
|
const t = n(e);
|
|
1805
1817
|
if (t)
|
|
@@ -1807,8 +1819,8 @@ const Pt = (n, e) => {
|
|
|
1807
1819
|
}
|
|
1808
1820
|
return () => {
|
|
1809
1821
|
};
|
|
1810
|
-
}),
|
|
1811
|
-
const r = t.element, s =
|
|
1822
|
+
}), Gn = (n, e) => N((t) => {
|
|
1823
|
+
const r = t.element, s = et(
|
|
1812
1824
|
n,
|
|
1813
1825
|
() => r.getBoundingClientRect(),
|
|
1814
1826
|
e
|
|
@@ -1816,24 +1828,24 @@ const Pt = (n, e) => {
|
|
|
1816
1828
|
return r.addEventListener("touchstart", s.onTouchStart, { passive: !1 }), r.addEventListener("touchmove", s.onTouchMove, { passive: !1 }), r.addEventListener("touchend", s.onTouchEnd), Y(() => {
|
|
1817
1829
|
r.removeEventListener("touchstart", s.onTouchStart), r.removeEventListener("touchmove", s.onTouchMove), r.removeEventListener("touchend", s.onTouchEnd);
|
|
1818
1830
|
});
|
|
1819
|
-
}),
|
|
1820
|
-
const r = t.element, s =
|
|
1831
|
+
}), Qn = (n, e) => N((t) => {
|
|
1832
|
+
const r = t.element, s = tt(n, e);
|
|
1821
1833
|
let o = null, i = 0, l = 0;
|
|
1822
|
-
const c = (
|
|
1823
|
-
o !== null && (o.dispose(), o = null), i =
|
|
1824
|
-
},
|
|
1825
|
-
if (!r.hasPointerCapture(
|
|
1826
|
-
const a =
|
|
1827
|
-
i =
|
|
1828
|
-
}, f = (
|
|
1829
|
-
r.hasPointerCapture(
|
|
1834
|
+
const c = (h) => {
|
|
1835
|
+
o !== null && (o.dispose(), o = null), i = h.clientX, l = h.clientY, s.track(h.clientX, h.clientY), r.setPointerCapture(h.pointerId);
|
|
1836
|
+
}, d = (h) => {
|
|
1837
|
+
if (!r.hasPointerCapture(h.pointerId)) return;
|
|
1838
|
+
const a = h.clientX - i, u = h.clientY - l;
|
|
1839
|
+
i = h.clientX, l = h.clientY, s.track(h.clientX, h.clientY), n(a, u);
|
|
1840
|
+
}, f = (h) => {
|
|
1841
|
+
r.hasPointerCapture(h.pointerId) && (r.releasePointerCapture(h.pointerId), o = s.release());
|
|
1830
1842
|
};
|
|
1831
|
-
return r.addEventListener("pointerdown", c), r.addEventListener("pointermove",
|
|
1832
|
-
o !== null && o.dispose(), r.removeEventListener("pointerdown", c), r.removeEventListener("pointermove",
|
|
1843
|
+
return r.addEventListener("pointerdown", c), r.addEventListener("pointermove", d), r.addEventListener("pointerup", f), r.addEventListener("pointercancel", f), Y(() => {
|
|
1844
|
+
o !== null && o.dispose(), r.removeEventListener("pointerdown", c), r.removeEventListener("pointermove", d), r.removeEventListener("pointerup", f), r.removeEventListener("pointercancel", f);
|
|
1833
1845
|
});
|
|
1834
1846
|
});
|
|
1835
|
-
function
|
|
1836
|
-
return
|
|
1847
|
+
function Jn(n, e, t, r) {
|
|
1848
|
+
return dt((s) => {
|
|
1837
1849
|
const o = B([]), i = /* @__PURE__ */ new Map();
|
|
1838
1850
|
s.onDispose(() => {
|
|
1839
1851
|
for (const c of i.values()) clearTimeout(c);
|
|
@@ -1842,16 +1854,16 @@ function Un(n, e, t, r) {
|
|
|
1842
1854
|
const l = /* @__PURE__ */ new Set();
|
|
1843
1855
|
return n.on(
|
|
1844
1856
|
(c) => {
|
|
1845
|
-
const
|
|
1857
|
+
const d = new Set(c.map(e)), f = o.get();
|
|
1846
1858
|
for (const u of f)
|
|
1847
|
-
if (!
|
|
1859
|
+
if (!d.has(u.key) && !l.has(u.key))
|
|
1848
1860
|
if (l.add(u.key), u.isExiting.set(!0), r.exitDuration != null && r.exitDuration > 0) {
|
|
1849
1861
|
const p = setTimeout(() => {
|
|
1850
1862
|
i.delete(u.key), l.delete(u.key), o.set(o.get().filter((m) => m.key !== u.key));
|
|
1851
1863
|
}, r.exitDuration);
|
|
1852
1864
|
i.set(u.key, p);
|
|
1853
1865
|
} else r.useAnimationEvents || l.delete(u.key);
|
|
1854
|
-
const
|
|
1866
|
+
const h = c.map((u) => {
|
|
1855
1867
|
const p = e(u), m = f.find(
|
|
1856
1868
|
(g) => g.key === p && !l.has(p)
|
|
1857
1869
|
);
|
|
@@ -1861,208 +1873,208 @@ function Un(n, e, t, r) {
|
|
|
1861
1873
|
isExiting: B(!1)
|
|
1862
1874
|
};
|
|
1863
1875
|
}), a = f.filter(
|
|
1864
|
-
(u) => l.has(u.key) && !
|
|
1876
|
+
(u) => l.has(u.key) && !d.has(u.key)
|
|
1865
1877
|
);
|
|
1866
|
-
o.set([...
|
|
1878
|
+
o.set([...h, ...a]);
|
|
1867
1879
|
},
|
|
1868
1880
|
{ skipInitial: !1 }
|
|
1869
|
-
),
|
|
1881
|
+
), ut(
|
|
1870
1882
|
o,
|
|
1871
1883
|
(c) => c.key,
|
|
1872
|
-
(c,
|
|
1873
|
-
const f = c.map((a) => a.value),
|
|
1874
|
-
return t(f,
|
|
1884
|
+
(c, d) => {
|
|
1885
|
+
const f = c.map((a) => a.value), h = c.get().isExiting;
|
|
1886
|
+
return t(f, d, h);
|
|
1875
1887
|
}
|
|
1876
1888
|
);
|
|
1877
1889
|
});
|
|
1878
1890
|
}
|
|
1879
1891
|
export {
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1892
|
+
vt as Aria,
|
|
1893
|
+
dn as Async,
|
|
1894
|
+
yt as Attr,
|
|
1895
|
+
In as BindChecked,
|
|
1896
|
+
Pn as BindDate,
|
|
1897
|
+
Mn as BindDateTime,
|
|
1898
|
+
On as BindNumber,
|
|
1899
|
+
Ln as BindText,
|
|
1888
1900
|
b as BrowserContext,
|
|
1889
1901
|
C as CLASS_PLACEHOLDER_ATTR,
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1902
|
+
er as Computed,
|
|
1903
|
+
hn as Conjunction,
|
|
1904
|
+
Dn as DOMNode,
|
|
1905
|
+
Tt as DataAttr,
|
|
1906
|
+
tr as DisposalScope,
|
|
1907
|
+
xe as El,
|
|
1896
1908
|
X as ElNS,
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1909
|
+
nr as ElementPosition,
|
|
1910
|
+
at as Empty,
|
|
1911
|
+
ln as Ensure,
|
|
1912
|
+
cn as EnsureAll,
|
|
1913
|
+
Qt as ForEach,
|
|
1902
1914
|
S as Fragment,
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1915
|
+
Yn as GlobalProbe,
|
|
1916
|
+
We as HYDRATION_ID_ATTR,
|
|
1917
|
+
Yt as HeadlessAdapter,
|
|
1906
1918
|
k as HeadlessContext,
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1919
|
+
Ge as HeadlessElement,
|
|
1920
|
+
Te as HeadlessPortal,
|
|
1921
|
+
Qe as HeadlessText,
|
|
1922
|
+
Vn as IFrame,
|
|
1923
|
+
Qn as Inertia,
|
|
1924
|
+
ut as KeyedForEach,
|
|
1925
|
+
rr as KeyedPosition,
|
|
1926
|
+
sn as MapSignal,
|
|
1927
|
+
on as MapText,
|
|
1928
|
+
St as MathAttr,
|
|
1929
|
+
$n as MathEl,
|
|
1930
|
+
sr as MemoryStore,
|
|
1931
|
+
an as NotEmpty,
|
|
1932
|
+
kt as OnChecked,
|
|
1921
1933
|
Y as OnDispose,
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1934
|
+
Zt as OneOf,
|
|
1935
|
+
zt as OneOfField,
|
|
1936
|
+
en as OneOfKind,
|
|
1937
|
+
rn as OneOfTuple,
|
|
1938
|
+
tn as OneOfType,
|
|
1939
|
+
nn as OneOfValue,
|
|
1940
|
+
Gn as PinchZoom,
|
|
1941
|
+
jn as Portal,
|
|
1942
|
+
ir as Prop,
|
|
1943
|
+
pn as Provide,
|
|
1944
|
+
xs as ProviderNotFoundError,
|
|
1945
|
+
Wt as RafLoop,
|
|
1946
|
+
Ft as ReducedMotion,
|
|
1947
|
+
Be as RenderingError,
|
|
1948
|
+
Jt as Repeat,
|
|
1949
|
+
bt as SVGAttr,
|
|
1950
|
+
Rn as SVGEl,
|
|
1951
|
+
Xn as ShadowRoot,
|
|
1952
|
+
or as Signal,
|
|
1953
|
+
un as Task,
|
|
1954
|
+
Wn as TextNode,
|
|
1955
|
+
Jn as TransitionKeyedForEach,
|
|
1956
|
+
Gt as Unless,
|
|
1957
|
+
mn as Use,
|
|
1958
|
+
gn as UseMany,
|
|
1959
|
+
yn as UseOptional,
|
|
1960
|
+
lr as Value,
|
|
1961
|
+
qt as When,
|
|
1950
1962
|
N as WithBrowserCtx,
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1963
|
+
Kn as WithCtx,
|
|
1964
|
+
Un as WithElement,
|
|
1965
|
+
qn as WithHeadlessCtx,
|
|
1966
|
+
fn as WithProvider,
|
|
1967
|
+
dt as WithScope,
|
|
1956
1968
|
W as _NODE_PLACEHOLDER_ATTR,
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1969
|
+
$e as _getSelfOrParentElement,
|
|
1970
|
+
fe as _isElement,
|
|
1971
|
+
pe as _isFragment,
|
|
1972
|
+
_e as _makeGetter,
|
|
1973
|
+
Re as _makeSetter,
|
|
1962
1974
|
V as _removeDOMNode,
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1975
|
+
_t as _signalText,
|
|
1976
|
+
Rt as _staticText,
|
|
1977
|
+
cr as animateSignal,
|
|
1978
|
+
ar as animateSignals,
|
|
1979
|
+
Sn as aria,
|
|
1968
1980
|
T as attr,
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1981
|
+
ur as bind,
|
|
1982
|
+
dr as chainEasing,
|
|
1983
|
+
hr as coalesce,
|
|
1984
|
+
fr as computed,
|
|
1985
|
+
pr as computedOf,
|
|
1986
|
+
mr as computedOfAsync,
|
|
1987
|
+
gr as computedOfAsyncGenerator,
|
|
1988
|
+
yr as computedRecord,
|
|
1989
|
+
tt as createInertiaHandler,
|
|
1990
|
+
et as createPinchZoomHandler,
|
|
1979
1991
|
U as createRafLoop,
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
1992
|
+
ze as createReducedMotionSignal,
|
|
1993
|
+
ws as createRenderKit,
|
|
1994
|
+
Tr as createRenderable,
|
|
1995
|
+
vr as createSelector,
|
|
1996
|
+
Ut as createTween,
|
|
1997
|
+
bn as dataAttr,
|
|
1998
|
+
br as delaySignal,
|
|
1999
|
+
Hn as delegate,
|
|
2000
|
+
Sr as easeInBack,
|
|
2001
|
+
xr as easeInBounce,
|
|
2002
|
+
wr as easeInCubic,
|
|
2003
|
+
Er as easeInElastic,
|
|
2004
|
+
kr as easeInExpo,
|
|
2005
|
+
Ar as easeInOutBack,
|
|
2006
|
+
Cr as easeInOutBounce,
|
|
2007
|
+
Pr as easeInOutCubic,
|
|
2008
|
+
Mr as easeInOutElastic,
|
|
2009
|
+
Or as easeInOutExpo,
|
|
2010
|
+
Lr as easeInOutQuad,
|
|
2011
|
+
Ir as easeInOutQuart,
|
|
2012
|
+
Hr as easeInOutSine,
|
|
2013
|
+
Dr as easeInQuad,
|
|
2014
|
+
Nr as easeInQuart,
|
|
2015
|
+
Rr as easeInSine,
|
|
2016
|
+
_r as easeOutBack,
|
|
2017
|
+
$r as easeOutBounce,
|
|
2018
|
+
Br as easeOutCubic,
|
|
2019
|
+
Vr as easeOutElastic,
|
|
2020
|
+
jr as easeOutExpo,
|
|
2021
|
+
Yr as easeOutQuad,
|
|
2022
|
+
Xr as easeOutQuart,
|
|
2023
|
+
Fr as easeOutSine,
|
|
2024
|
+
Wr as effect,
|
|
2025
|
+
Kr as effectOf,
|
|
2026
|
+
At as emit,
|
|
2027
|
+
Cn as emitChecked,
|
|
2016
2028
|
x as emitTarget,
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2029
|
+
Ct as emitValue,
|
|
2030
|
+
Mt as emitValueAsDate,
|
|
2031
|
+
Ot as emitValueAsDateTime,
|
|
2032
|
+
kn as emitValueAsNullableDate,
|
|
2033
|
+
An as emitValueAsNullableDateTime,
|
|
2034
|
+
Pt as emitValueAsNumber,
|
|
2035
|
+
Ur as endInterpolate,
|
|
2036
|
+
qr as getCurrentScope,
|
|
2037
|
+
Gr as getParentScope,
|
|
2038
|
+
Qr as getScopeStack,
|
|
2039
|
+
Ze as getWindow,
|
|
2040
|
+
Jr as guessInterpolate,
|
|
2041
|
+
It as html,
|
|
2042
|
+
Nn as input,
|
|
2043
|
+
Zr as interpolateDate,
|
|
2044
|
+
zr as interpolateNumber,
|
|
2045
|
+
es as interpolateString,
|
|
2046
|
+
Kt as isInputFocused,
|
|
2047
|
+
ts as joinSignals,
|
|
2048
|
+
ns as linear,
|
|
2049
|
+
rs as localStorageProp,
|
|
2050
|
+
Ht as makeProbe,
|
|
2051
|
+
ss as makeProviderMark,
|
|
2052
|
+
Bn as math,
|
|
2053
|
+
wn as mathAttr,
|
|
2054
|
+
is as merge,
|
|
2055
|
+
os as mirrorEasing,
|
|
2044
2056
|
D as on,
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2057
|
+
ls as popScope,
|
|
2058
|
+
cs as previousSignal,
|
|
2059
|
+
as as prop,
|
|
2060
|
+
us as pushScope,
|
|
2061
|
+
Vt as render,
|
|
2050
2062
|
I as renderWithContext,
|
|
2051
2063
|
A as renderableOfTNode,
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2064
|
+
Xt as restoreTempoPlaceholders,
|
|
2065
|
+
ds as reverseEasing,
|
|
2066
|
+
jt as runHeadless,
|
|
2067
|
+
hs as scoped,
|
|
2068
|
+
En as selectedClass,
|
|
2069
|
+
fs as sessionStorageProp,
|
|
2070
|
+
ps as signal,
|
|
2071
|
+
ms as slidingWindowSignal,
|
|
2072
|
+
gs as storedProp,
|
|
2073
|
+
ys as strictEquals,
|
|
2074
|
+
Fn as style,
|
|
2075
|
+
_n as svg,
|
|
2076
|
+
xn as svgAttr,
|
|
2077
|
+
Ts as syncProp,
|
|
2078
|
+
vs as untracked,
|
|
2079
|
+
bs as withScope
|
|
2068
2080
|
};
|