@fest-lib/lure 0.1.17 → 0.1.18
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/dist/index.js +667 -658
- package/dist/lure.js +667 -658
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -204,7 +204,7 @@ var kd = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), vl = gl
|
|
|
204
204
|
vl.add(t);
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
var Uc = /* @__PURE__ */ Symbol.for("@fix"),
|
|
207
|
+
var Uc = /* @__PURE__ */ Symbol.for("@fix"), fi = (e) => Array.isArray(e) || e instanceof Set || e instanceof Map, L = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" || typeof e > "u" || e == null, xt = (e, t) => L(e) ? t == "number" ? Number(e) || 0 : t == "string" ? String(e) || "" : t == "boolean" ? !!e : e : null, oa = (e, t = "value") => (typeof e == "object" || typeof e == "function") && e != null && (t in e || e?.[t] != null), ne = (e) => oa(e, "value"), je = (e) => L(e) ? e : ne(e) ? e?.value : e, ve = (e, t) => e?.[Uc] ?? e ?? t ?? t, ye = (e) => e != null && (typeof e == "object" || typeof e == "function") && (e instanceof WeakRef || typeof e?.deref == "function") ? ye(e?.deref?.()) : e, Ed = (e) => {
|
|
208
208
|
if (typeof e == "function" || e == null) return e;
|
|
209
209
|
const t = function() {
|
|
210
210
|
};
|
|
@@ -213,7 +213,7 @@ var Uc = /* @__PURE__ */ Symbol.for("@fix"), ui = (e) => Array.isArray(e) || e i
|
|
|
213
213
|
const t = new Uint8Array(e.length);
|
|
214
214
|
for (let n = 0; n < e.length; n++) t[n] = Math.floor(Math.random() * 256);
|
|
215
215
|
return t;
|
|
216
|
-
})(), gl = (e, t, n) => Math.max(e, Math.min(t, n)), bl = (e, t) => typeof t == "function" ? t?.bind?.(e) ?? t : t, Z = () => crypto?.randomUUID ? crypto?.randomUUID?.() : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^ Cd?.(/* @__PURE__ */ new Uint8Array(1))?.[0] & 15 >> +e / 4).toString(16)),
|
|
216
|
+
})(), gl = (e, t, n) => Math.max(e, Math.min(t, n)), bl = (e, t) => typeof t == "function" ? t?.bind?.(e) ?? t : t, Z = () => crypto?.randomUUID ? crypto?.randomUUID?.() : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^ Cd?.(/* @__PURE__ */ new Uint8Array(1))?.[0] & 15 >> +e / 4).toString(16)), ei = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Vc = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Pd = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, Ad = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", Ot = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e, Zn = /* @__PURE__ */ Symbol.for("@trigger-lock"), _t = (e, t, n = "value") => {
|
|
217
217
|
oa(e, n) && (e[Zn] = !0);
|
|
218
218
|
let r;
|
|
219
219
|
try {
|
|
@@ -593,7 +593,7 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
593
593
|
}
|
|
594
594
|
const t = e?.target;
|
|
595
595
|
return t instanceof HTMLElement || t instanceof Element ? t : null;
|
|
596
|
-
},
|
|
596
|
+
}, dr = (e, t, n) => {
|
|
597
597
|
if (t == null || !(t instanceof Node) && t?.element == null) return !1;
|
|
598
598
|
if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
|
|
599
599
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
@@ -604,7 +604,7 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
return !!(e?.contains?.(t?.element ?? t) || e?.getRootNode({ composed: !0 })?.host == (t?.element ?? t));
|
|
607
|
-
},
|
|
607
|
+
}, Wr = (e, t, n) => {
|
|
608
608
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
609
609
|
const a = n.composedPath();
|
|
610
610
|
for (const l of a) if ((l instanceof HTMLElement || l instanceof Element) && l.matches?.(t))
|
|
@@ -623,9 +623,9 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
623
623
|
if (!i && !s && !t) return !1;
|
|
624
624
|
if (t) {
|
|
625
625
|
if (typeof t == "string") {
|
|
626
|
-
if (n === "parent") return !!
|
|
626
|
+
if (n === "parent") return !!Wr(e, t);
|
|
627
627
|
{
|
|
628
|
-
const o = i ? r : e.querySelector(":hover") || e, a = !!
|
|
628
|
+
const o = i ? r : e.querySelector(":hover") || e, a = !!Wr(o, t);
|
|
629
629
|
return e?.querySelector?.(t) != null || e?.matches?.(t) || a;
|
|
630
630
|
}
|
|
631
631
|
} else if (t instanceof HTMLElement) return n === "parent" ? Ws(e, t) || !1 : Ws(t, e) || !1;
|
|
@@ -645,7 +645,7 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
645
645
|
} catch {
|
|
646
646
|
}
|
|
647
647
|
return 0;
|
|
648
|
-
},
|
|
648
|
+
}, Hr = (e, t = null) => {
|
|
649
649
|
const n = ah(e) || 1, r = e?.getBoundingClientRect?.(), i = {
|
|
650
650
|
left: r?.left / n,
|
|
651
651
|
right: r?.right / n,
|
|
@@ -653,13 +653,13 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
653
653
|
bottom: r?.bottom / n,
|
|
654
654
|
width: r?.width / n,
|
|
655
655
|
height: r?.height / n
|
|
656
|
-
}, s = t ?? (Pn(e) || 0), o = typeof window < "u" ? window.visualViewport : null, a = [((o?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((o?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [l, c] = fa([i.left, i.top], a, s), [u, d] = fa([i.right, i.bottom], a, s), [h, f] = s == 0 || s == 3 ? [l, u] : [u, l], [p, y] = s == 0 || s == 1 ? [c, d] : [d, c], [
|
|
656
|
+
}, s = t ?? (Pn(e) || 0), o = typeof window < "u" ? window.visualViewport : null, a = [((o?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((o?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [l, c] = fa([i.left, i.top], a, s), [u, d] = fa([i.right, i.bottom], a, s), [h, f] = s == 0 || s == 3 ? [l, u] : [u, l], [p, y] = s == 0 || s == 1 ? [c, d] : [d, c], [v, m] = s % 2 ? [i.height, i.width] : [i.width, i.height];
|
|
657
657
|
return {
|
|
658
658
|
left: h,
|
|
659
659
|
top: p,
|
|
660
660
|
right: f,
|
|
661
661
|
bottom: y,
|
|
662
|
-
width:
|
|
662
|
+
width: v,
|
|
663
663
|
height: m
|
|
664
664
|
};
|
|
665
665
|
}, lh = (e, t = null) => (t ?? Pn(e)) % 2 ? e[Vi] ?? e?.clientHeight : e[Ui] ?? e?.clientWidth, ch = (e, t = null) => (t ?? Pn(e)) % 2 ? e[Ui] ?? e?.clientWidth : e[Vi] ?? e?.clientHeight, uh = (e, t = null) => (t ?? Pn(e)) % 2 ? e[Gi] ?? e?.clientHeight : e[qi] ?? e?.clientWidth, fh = (e, t = null) => (t ?? Pn(e)) % 2 ? e[qi] ?? e?.clientWidth : e[Gi] ?? e?.clientHeight, dh = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
|
|
@@ -722,8 +722,8 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
722
722
|
}), t = !0);
|
|
723
723
|
}, r = [];
|
|
724
724
|
return r.push(T(navigator?.virtualKeyboard, "geometrychange", n, Hs)), r.push(T(window?.visualViewport, "scroll", n, Hs)), r.push(T(window?.visualViewport, "resize", n, Hs)), r.push(T(screen?.orientation, "change", n)), r.push(T(window, "resize", n)), r.push(T(document?.documentElement, "fullscreenchange", n)), r.push(T(document, "DOMContentLoaded", n)), r.push(T(matchMedia("(orientation: portrait)"), "change", n)), r.push(T(matchMedia("(orientation: landscape)"), "change", n)), n(), dh(() => n(), 100), () => r.forEach((i) => i());
|
|
725
|
-
}, ww = new OffscreenCanvas(1, 1).getContext("2d"), yh = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), Sw = globalThis[yh] ??= /* @__PURE__ */ new WeakMap(), mh = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"),
|
|
726
|
-
if (!
|
|
725
|
+
}, ww = new OffscreenCanvas(1, 1).getContext("2d"), yh = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), Sw = globalThis[yh] ??= /* @__PURE__ */ new WeakMap(), mh = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), hr = globalThis[mh] ??= /* @__PURE__ */ new WeakMap(), ys = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), vh = (e, t) => {
|
|
726
|
+
if (!hr.has(e = ys(e))) {
|
|
727
727
|
const n = [], r = new ResizeObserver((i) => {
|
|
728
728
|
for (const s of i) if (s.contentBoxSize) {
|
|
729
729
|
const o = s.contentBoxSize[0];
|
|
@@ -733,9 +733,9 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
733
733
|
t?.({
|
|
734
734
|
inlineSize: e.clientWidth,
|
|
735
735
|
blockSize: e.clientHeight
|
|
736
|
-
}, r),
|
|
736
|
+
}, r), hr.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
|
|
737
737
|
}
|
|
738
|
-
return
|
|
738
|
+
return hr.get(e)?.push?.(t), { disconnect: () => hr.get(e)?.splice?.(hr.get(e)?.indexOf(t) || -1, 1) };
|
|
739
739
|
}, tu = (e, t, n) => {
|
|
740
740
|
if (typeof e?.selector == "string") return Ha(e, e?.selector, t, n);
|
|
741
741
|
const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, o) => {
|
|
@@ -780,7 +780,7 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
780
780
|
attributeName: a,
|
|
781
781
|
oldValue: o?.getAttribute?.(a)
|
|
782
782
|
}, s))), s;
|
|
783
|
-
},
|
|
783
|
+
}, Tr = (e, t = "*", n = (r, i) => {
|
|
784
784
|
}) => {
|
|
785
785
|
const r = (h) => {
|
|
786
786
|
const f = Array.from(h || []) || [];
|
|
@@ -867,7 +867,7 @@ var Tl = (e, t, n = "") => {
|
|
|
867
867
|
}
|
|
868
868
|
}, gh = (e, t, n, r = "") => {
|
|
869
869
|
if (!e || !t) return e;
|
|
870
|
-
const i =
|
|
870
|
+
const i = ei(t), s = e.style, o = e.attributeStyleMap ?? e.styleMap;
|
|
871
871
|
if (!ms || !o) return ru(e, t, n, r);
|
|
872
872
|
let a = ne(n) && !(qn(n) || $n(n)) ? n?.value : n;
|
|
873
873
|
if (a == null)
|
|
@@ -895,17 +895,17 @@ var Tl = (e, t, n = "") => {
|
|
|
895
895
|
return tn(s, i, String(a), r), e;
|
|
896
896
|
}, ru = (e, t, n, r = "") => {
|
|
897
897
|
if (!e || !t) return e;
|
|
898
|
-
const i =
|
|
898
|
+
const i = ei(t), s = e.style;
|
|
899
899
|
if (!s) return e;
|
|
900
900
|
let o = ne(n) && !(qn(n) || $n(n)) ? n?.value : n;
|
|
901
901
|
return typeof o == "string" && !qn(o) && (o = qc(o) ?? o), o == null ? (tn(s, i, null, r), e) : (qn(o) || typeof o == "number", tn(s, i, String(o), r), e);
|
|
902
|
-
}, iu = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), bh = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"),
|
|
902
|
+
}, iu = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), bh = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"), pr = globalThis[bh] ??= /* @__PURE__ */ new WeakMap(), wh = /* @__PURE__ */ Symbol.for("dom.ts@cacheMap"), yn = globalThis[wh] ??= /* @__PURE__ */ new Map(), Sh = (e) => {
|
|
903
903
|
if (!e) return null;
|
|
904
904
|
if (yn.has(e)) return yn.get(e);
|
|
905
905
|
if (e instanceof Blob || e instanceof File) {
|
|
906
|
-
if (
|
|
906
|
+
if (pr.has(e)) return pr.get(e);
|
|
907
907
|
const t = URL.createObjectURL(e);
|
|
908
|
-
return
|
|
908
|
+
return pr.set(e, t), yn.set(t, t), t;
|
|
909
909
|
}
|
|
910
910
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
911
911
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -914,18 +914,18 @@ var Tl = (e, t, n = "") => {
|
|
|
914
914
|
priority: "high"
|
|
915
915
|
})?.then?.(async (n) => {
|
|
916
916
|
const r = await n.blob(), i = URL.createObjectURL(r);
|
|
917
|
-
return
|
|
917
|
+
return pr.set(r, i), yn.set(e, i), yn.set(i, i), i;
|
|
918
918
|
});
|
|
919
919
|
return yn.set(e, t), t;
|
|
920
920
|
}
|
|
921
921
|
if (typeof e == "string") {
|
|
922
922
|
const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
|
|
923
|
-
return
|
|
923
|
+
return pr.set(t, n), yn.set(n, n), n;
|
|
924
924
|
}
|
|
925
925
|
return e;
|
|
926
|
-
},
|
|
926
|
+
}, yr = /* @__PURE__ */ new Map(), di = /* @__PURE__ */ new WeakMap(), xh = (e) => {
|
|
927
927
|
if (!e) return "";
|
|
928
|
-
if (
|
|
928
|
+
if (yr.has(e)) return yr.get(e) ?? "";
|
|
929
929
|
if (e instanceof Blob || e instanceof File) {
|
|
930
930
|
if (di.has(e)) return di.get(e) ?? "";
|
|
931
931
|
const t = e?.text?.()?.then?.((n) => (di.set(e, n), n));
|
|
@@ -938,11 +938,11 @@ var Tl = (e, t, n = "") => {
|
|
|
938
938
|
priority: "high"
|
|
939
939
|
})?.then?.(async (n) => {
|
|
940
940
|
const r = await n.text();
|
|
941
|
-
return
|
|
941
|
+
return yr.set(e, r), r;
|
|
942
942
|
});
|
|
943
|
-
return
|
|
943
|
+
return yr.set(e, t), t;
|
|
944
944
|
}
|
|
945
|
-
return typeof e == "string" &&
|
|
945
|
+
return typeof e == "string" && yr.set(e, e), e;
|
|
946
946
|
}, _h = /* @__PURE__ */ Symbol.for("dom.ts@adoptedSelectorMap"), Ml = globalThis[_h] ??= /* @__PURE__ */ new Map(), kh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowSelectorMap"), Rl = globalThis[kh] ??= /* @__PURE__ */ new WeakMap(), Eh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedLayerMap"), Ol = globalThis[Eh] ??= /* @__PURE__ */ new Map(), Ch = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowLayerMap"), hi = globalThis[Ch] ??= /* @__PURE__ */ new WeakMap(), su = (e, t = "ux-query", n = null) => {
|
|
947
947
|
if (!e || !nu()) return null;
|
|
948
948
|
const r = n instanceof ShadowRoot ? n : n?.getRootNode ? n.getRootNode({ composed: !0 }) : null, i = r instanceof ShadowRoot, s = i ? r.adoptedStyleSheets : typeof document < "u" ? document.adoptedStyleSheets : null;
|
|
@@ -1012,7 +1012,7 @@ var Tl = (e, t, n = "") => {
|
|
|
1012
1012
|
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Ph(e);
|
|
1013
1013
|
const i = typeof document < "u" ? document.createElement("style") : null;
|
|
1014
1014
|
return i ? (i.dataset.owner = Ba, ou(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
|
|
1015
|
-
},
|
|
1015
|
+
}, Cr = (e, t, n, r = "") => St(e, t, n, r), Ah = /* @__PURE__ */ Symbol.for("dom.ts@adoptedMap"), Dt = globalThis[Ah] ??= /* @__PURE__ */ new Map(), Th = /* @__PURE__ */ Symbol.for("dom.ts@adoptedBlobMap"), mr = globalThis[Th] ??= /* @__PURE__ */ new WeakMap(), Mh = /* @__PURE__ */ Symbol.for("dom.ts@layerCounter"), xw = globalThis[Mh] ??= 0, Il = (e, t) => {
|
|
1016
1016
|
if (!e || !t) return !1;
|
|
1017
1017
|
try {
|
|
1018
1018
|
return e.replaceSync(t), !0;
|
|
@@ -1029,21 +1029,21 @@ var Tl = (e, t, n = "") => {
|
|
|
1029
1029
|
const r = Dt.get(e);
|
|
1030
1030
|
return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(r) && document.adoptedStyleSheets.push(r), r;
|
|
1031
1031
|
}
|
|
1032
|
-
if ((e instanceof Blob || e instanceof File) &&
|
|
1033
|
-
const r =
|
|
1032
|
+
if ((e instanceof Blob || e instanceof File) && mr?.has?.(e)) {
|
|
1033
|
+
const r = mr.get(e);
|
|
1034
1034
|
return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(r) && document.adoptedStyleSheets.push(r), r;
|
|
1035
1035
|
}
|
|
1036
1036
|
if (!e) return null;
|
|
1037
|
-
const n = typeof e == "string" ? Dt.getOrInsertComputed(e, (r) => new CSSStyleSheet()) :
|
|
1037
|
+
const n = typeof e == "string" ? Dt.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : mr.getOrInsertComputed(e, (r) => new CSSStyleSheet());
|
|
1038
1038
|
if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
|
|
1039
1039
|
const r = t ? `@layer ${t} { ${e} }` : e;
|
|
1040
1040
|
return Dt.set(e, n), Il(n, r) || (js(n), Dt.delete(e), Dn(e)), n;
|
|
1041
1041
|
} else iu(xh(e), (r) => {
|
|
1042
1042
|
if (Dt.set(r, n), r) {
|
|
1043
1043
|
if (Al(r))
|
|
1044
|
-
return js(n), Dt.delete(r),
|
|
1044
|
+
return js(n), Dt.delete(r), mr.delete(e), Dn(r, void 0, t || ""), n;
|
|
1045
1045
|
const i = t ? `@layer ${t} { ${r} }` : r;
|
|
1046
|
-
return Il(n, i) || (js(n), Dt.delete(r),
|
|
1046
|
+
return Il(n, i) || (js(n), Dt.delete(r), mr.delete(e), Dn(r, void 0, t || "")), n;
|
|
1047
1047
|
}
|
|
1048
1048
|
});
|
|
1049
1049
|
return n;
|
|
@@ -1091,37 +1091,37 @@ var Tl = (e, t, n = "") => {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
return e;
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, Mr = (e) => ({
|
|
1095
1095
|
storeSet: Nh(er, e),
|
|
1096
1096
|
mixinSet: sn?.get?.(e),
|
|
1097
1097
|
behaviorSet: lu?.get?.(e)
|
|
1098
1098
|
}), Fh = (e, t, n) => {
|
|
1099
1099
|
const r = new WeakRef(e);
|
|
1100
|
-
return n ||= sn?.get?.(e), n?.has?.(t) || (n?.add?.(t), Bn?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t,
|
|
1101
|
-
}, Wh = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), sn = globalThis[Wh] ??= /* @__PURE__ */ new WeakMap(), Hh = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), Bn = globalThis[Hh] ??= /* @__PURE__ */ new WeakMap(), Bh = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"),
|
|
1102
|
-
typeof t == "string" && (t =
|
|
1103
|
-
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((o) =>
|
|
1100
|
+
return n ||= sn?.get?.(e), n?.has?.(t) || (n?.add?.(t), Bn?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, Mr(e))), e;
|
|
1101
|
+
}, Wh = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), sn = globalThis[Wh] ??= /* @__PURE__ */ new WeakMap(), Hh = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), Bn = globalThis[Hh] ??= /* @__PURE__ */ new WeakMap(), Bh = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), Br = globalThis[Bh] ??= /* @__PURE__ */ new Map(), jh = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), Xi = globalThis[jh] ??= /* @__PURE__ */ new WeakMap(), cu = (e, t) => {
|
|
1102
|
+
typeof t == "string" && (t = Br?.get?.(t));
|
|
1103
|
+
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((o) => Br?.get?.(o)).filter((o) => !!o)), i = sn?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1104
1104
|
Bn?.has?.(t) || Bn?.set?.(t, /* @__PURE__ */ new WeakSet()), sn?.has?.(e) || sn?.set?.(e, i);
|
|
1105
1105
|
const s = new WeakRef(e);
|
|
1106
|
-
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t,
|
|
1106
|
+
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, Mr(e)), (r.has(t) || !Bn?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, Mr(e)), n.add(Xi?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((o) => !!o).join(" "))), Bn?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, Mr(e))));
|
|
1107
1107
|
}, ha = /* @__PURE__ */ new Set(), pa = (e = typeof document < "u" ? document : null) => {
|
|
1108
1108
|
if (e)
|
|
1109
|
-
return ha?.has?.(e) || (ha?.add?.(e), Ha(e, "*", "data-mixin", (t) =>
|
|
1110
|
-
for (const n of t.addedNodes) n instanceof HTMLElement &&
|
|
1109
|
+
return ha?.has?.(e) || (ha?.add?.(e), Ha(e, "*", "data-mixin", (t) => jr(t.target)), Tr(e, "[data-mixin]", (t) => {
|
|
1110
|
+
for (const n of t.addedNodes) n instanceof HTMLElement && jr(n);
|
|
1111
1111
|
})), e;
|
|
1112
|
-
},
|
|
1112
|
+
}, jr = (e) => {
|
|
1113
1113
|
const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
|
|
1114
|
-
[...new Set([...t].map((n) =>
|
|
1114
|
+
[...new Set([...t].map((n) => Br?.get?.(n)).filter((n) => !!n))].map?.((n) => cu(e, n));
|
|
1115
1115
|
}, Uh = (e, t) => {
|
|
1116
|
-
e.forEach((n) => t ? cu(n, t) :
|
|
1116
|
+
e.forEach((n) => t ? cu(n, t) : jr(n));
|
|
1117
1117
|
}, Vh = (e) => {
|
|
1118
1118
|
for (const t of ha) Uh(t?.querySelectorAll?.("[data-mixin]"), e);
|
|
1119
1119
|
}, qh = new FinalizationRegistry((e) => {
|
|
1120
|
-
|
|
1120
|
+
Br?.delete?.(e);
|
|
1121
1121
|
}), Gh = (e, t) => {
|
|
1122
1122
|
if (!Xi?.has?.(t)) {
|
|
1123
1123
|
const n = e?.trim?.();
|
|
1124
|
-
n && (Xi?.set?.(t, n),
|
|
1124
|
+
n && (Xi?.set?.(t, n), Br?.set?.(n, t), qh?.register?.(t, n), Vh(t));
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
1127
|
pa(typeof document < "u" ? document : null);
|
|
@@ -1139,7 +1139,7 @@ var vs = class {
|
|
|
1139
1139
|
return er.get(this.name || "")?.get?.(e);
|
|
1140
1140
|
}
|
|
1141
1141
|
relatedForElement(e) {
|
|
1142
|
-
return
|
|
1142
|
+
return Mr(e);
|
|
1143
1143
|
}
|
|
1144
1144
|
get elements() {
|
|
1145
1145
|
return Bn?.get?.(this);
|
|
@@ -1176,7 +1176,7 @@ var vs = class {
|
|
|
1176
1176
|
return ne(n) && (n = n?.value), t = Vc(t), r?.[t] === (n = Ot(n)) || (n == null || n === !1 ? delete r[t] : _t(i, () => {
|
|
1177
1177
|
typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
|
|
1178
1178
|
})), e;
|
|
1179
|
-
}, Xh = (e, t) => e.style.removeProperty(
|
|
1179
|
+
}, Xh = (e, t) => e.style.removeProperty(ei(t)), R = (e, t, n) => {
|
|
1180
1180
|
const r = e?.style;
|
|
1181
1181
|
return !t || typeof t != "string" || !e || !r || _t(n, () => {
|
|
1182
1182
|
Ad(n) || ne(n) || Pd(n) ? St(e, t, n) : n == null && Xh(e, t);
|
|
@@ -1184,7 +1184,7 @@ var vs = class {
|
|
|
1184
1184
|
}, Ae = (e, t, n) => {
|
|
1185
1185
|
if (!t || !e) return e;
|
|
1186
1186
|
const r = n;
|
|
1187
|
-
return ne(n) && (n = n.value), t =
|
|
1187
|
+
return ne(n) && (n = n.value), t = ei(t), e?.getAttribute?.(t) === (n = Ot(n)) || _t(r, () => {
|
|
1188
1188
|
typeof n != "object" && typeof n != "function" && n != null && (typeof n != "boolean" || n == !0) ? e?.setAttribute?.(t, String(n)) : e?.removeAttribute?.(t);
|
|
1189
1189
|
}), e;
|
|
1190
1190
|
};
|
|
@@ -1348,15 +1348,15 @@ var yi = {
|
|
|
1348
1348
|
}))));
|
|
1349
1349
|
}, u = (h) => {
|
|
1350
1350
|
if (!i) return;
|
|
1351
|
-
const f = h.clientX - s, p = h.clientY - o, y = a + f,
|
|
1352
|
-
St(t, "--jx-drag-x", y), St(t, "--jx-drag-y",
|
|
1351
|
+
const f = h.clientX - s, p = h.clientY - o, y = a + f, v = l + p;
|
|
1352
|
+
St(t, "--jx-drag-x", y), St(t, "--jx-drag-y", v), t.dispatchEvent(new CustomEvent(qs.move, {
|
|
1353
1353
|
bubbles: !0,
|
|
1354
1354
|
detail: {
|
|
1355
1355
|
host: t,
|
|
1356
1356
|
dx: f,
|
|
1357
1357
|
dy: p,
|
|
1358
1358
|
x: y,
|
|
1359
|
-
y:
|
|
1359
|
+
y: v
|
|
1360
1360
|
}
|
|
1361
1361
|
}));
|
|
1362
1362
|
}, d = (h) => {
|
|
@@ -1443,9 +1443,9 @@ new Qh();
|
|
|
1443
1443
|
Symbol.observable ||= /* @__PURE__ */ Symbol.for("observable");
|
|
1444
1444
|
Symbol.subscribe ||= /* @__PURE__ */ Symbol.for("subscribe");
|
|
1445
1445
|
Symbol.unsubscribe ||= /* @__PURE__ */ Symbol.for("unsubscribe");
|
|
1446
|
-
var U = /* @__PURE__ */ Symbol.for("@value"), Te = /* @__PURE__ */ Symbol.for("@extract"), qt = /* @__PURE__ */ Symbol.for("@origin"),
|
|
1446
|
+
var U = /* @__PURE__ */ Symbol.for("@value"), Te = /* @__PURE__ */ Symbol.for("@extract"), qt = /* @__PURE__ */ Symbol.for("@origin"), Ur = /* @__PURE__ */ Symbol.for("@registry"), On = /* @__PURE__ */ Symbol.for("@behavior"), ti = /* @__PURE__ */ Symbol.for("@promise"), ni = /* @__PURE__ */ Symbol.for("@trigger-less"), j = /* @__PURE__ */ Symbol.for("@trigger-lock"), du = /* @__PURE__ */ Symbol.for("@trigger-control"), lt = /* @__PURE__ */ Symbol.for("@trigger"), An = /* @__PURE__ */ Symbol.for("@subscribe"), Zh = /* @__PURE__ */ Symbol.for("@isNotEqual"), Ki = /* @__PURE__ */ Symbol.for("@realProp"), Wi = (e) => {
|
|
1447
1447
|
const t = typeof e == "object" || typeof e == "function" ? e?.[Te] ?? e : e, n = (r) => Wi(r);
|
|
1448
|
-
return Array.isArray(t) ? t?.map?.(n) || Array.from(t || [])?.map?.(n) || [] : t instanceof Map || t instanceof WeakMap ? new Map(Array.from(t?.entries?.() || [])?.map?.(([r, i]) => [r, Wi(i)])) : t instanceof Set || t instanceof WeakSet ? new Set(Array.from(t?.values?.() || [])?.map?.(n)) : t != null && typeof t == "function" || typeof t == "object" ? Object.fromEntries(Array.from(Object.entries(t || {}) || [])?.filter?.(([r]) => r != Te && r != qt && r !=
|
|
1448
|
+
return Array.isArray(t) ? t?.map?.(n) || Array.from(t || [])?.map?.(n) || [] : t instanceof Map || t instanceof WeakMap ? new Map(Array.from(t?.entries?.() || [])?.map?.(([r, i]) => [r, Wi(i)])) : t instanceof Set || t instanceof WeakSet ? new Set(Array.from(t?.values?.() || [])?.map?.(n)) : t != null && typeof t == "function" || typeof t == "object" ? Object.fromEntries(Array.from(Object.entries(t || {}) || [])?.filter?.(([r]) => r != Te && r != qt && r != Ur)?.map?.(([r, i]) => [r, Wi(i)])) : t;
|
|
1449
1449
|
}, gs = (e) => e?.[Te] ?? e?.["@target"] ?? e, at = (e, t = !1) => {
|
|
1450
1450
|
const n = e;
|
|
1451
1451
|
if (L(e) || typeof e == "symbol") return e;
|
|
@@ -1497,7 +1497,7 @@ var ip = globalThis[mu], sp = (e, t) => {
|
|
|
1497
1497
|
const n = e?.[Te] ?? e;
|
|
1498
1498
|
let r = be.get(n);
|
|
1499
1499
|
return r ? r.bindSource(n) : (r = new lp(n), be.set(n, r)), t;
|
|
1500
|
-
},
|
|
1500
|
+
}, ri = (e, t) => (e = at(e?.[Te] ?? e), typeof e == "symbol" || !(typeof e == "object" || typeof e == "function") || e == null ? e : ip.getOrInsertComputed(e, () => new Proxy(e, sp(e, t)))), vr = /* @__PURE__ */ Symbol.for("@allProps"), vu = /* @__PURE__ */ new Set(["*", "all"]), Va = /* @__PURE__ */ new Map([
|
|
1501
1501
|
["set", ["setter", "@set"]],
|
|
1502
1502
|
["add", ["@add"]],
|
|
1503
1503
|
["delete", ["@delete"]],
|
|
@@ -1509,17 +1509,17 @@ var ip = globalThis[mu], sp = (e, t) => {
|
|
|
1509
1509
|
["deleteAll", ["@deleteAll", "@clear"]]
|
|
1510
1510
|
]), gu = /* @__PURE__ */ Symbol.for("object.ts@triggerCanonicalNames");
|
|
1511
1511
|
globalThis[gu] ??= new Map(Array.from(Va.entries()).flatMap(([e, t]) => t.map((n) => [n, e])));
|
|
1512
|
-
var op = globalThis[gu],
|
|
1512
|
+
var op = globalThis[gu], Vr = (e = "set") => {
|
|
1513
1513
|
if (e == null) return e;
|
|
1514
1514
|
const t = String(e || "set");
|
|
1515
1515
|
return op.get(t) ?? t;
|
|
1516
1516
|
}, bu = (e) => {
|
|
1517
|
-
const t = e == null ? "all" : String(
|
|
1517
|
+
const t = e == null ? "all" : String(Vr(e) ?? "all");
|
|
1518
1518
|
return [t, ...Va.get(t) ?? []];
|
|
1519
1519
|
}, Ll = (e = ["*"]) => new Set([...Ji(e)].flatMap((t) => [t, ...Va.get(t) ?? []])), Ji = (e = ["*"]) => {
|
|
1520
1520
|
const t = typeof e == "string" ? [e] : Array.from(e ?? ["*"]), n = new Set(t.map((r) => {
|
|
1521
1521
|
const i = String(r || "*");
|
|
1522
|
-
return vu.has(i) ? i : String(
|
|
1522
|
+
return vu.has(i) ? i : String(Vr(i) ?? i);
|
|
1523
1523
|
}));
|
|
1524
1524
|
return n.size ? n : /* @__PURE__ */ new Set(["*"]);
|
|
1525
1525
|
}, Gn = (e, t) => {
|
|
@@ -1587,10 +1587,10 @@ globalThis[wu] ??= class {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
#d(t, n = null, r, i = "all", ...s) {
|
|
1590
|
-
i =
|
|
1590
|
+
i = Vr(i) ?? i;
|
|
1591
1591
|
const o = this.#t;
|
|
1592
1592
|
if (o?.size)
|
|
1593
|
-
for (const [a, l] of o.entries()) (l.prop === t || l.prop ===
|
|
1593
|
+
for (const [a, l] of o.entries()) (l.prop === t || l.prop === vr || l.prop === null) && Gn(l.triggers, i) && this.$safeExec(a, n, t, r, i, ...s);
|
|
1594
1594
|
if (zl.size) {
|
|
1595
1595
|
const a = {
|
|
1596
1596
|
source: this.#e,
|
|
@@ -1606,7 +1606,7 @@ globalThis[wu] ??= class {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
wrap(t) {
|
|
1609
|
-
return Array.isArray(t) ?
|
|
1609
|
+
return Array.isArray(t) ? ri(t, this) : t;
|
|
1610
1610
|
}
|
|
1611
1611
|
get triggerControl() {
|
|
1612
1612
|
return this.#r;
|
|
@@ -1636,20 +1636,20 @@ globalThis[wu] ??= class {
|
|
|
1636
1636
|
if (t == null || typeof t != "function") return;
|
|
1637
1637
|
const i = bs(r);
|
|
1638
1638
|
return this.#t.set(t, {
|
|
1639
|
-
prop: n ||
|
|
1639
|
+
prop: n || vr,
|
|
1640
1640
|
triggers: i.affectTypes
|
|
1641
|
-
}), () => this.unaffected(t, n ||
|
|
1641
|
+
}), () => this.unaffected(t, n || vr);
|
|
1642
1642
|
}
|
|
1643
1643
|
unaffected(t, n) {
|
|
1644
1644
|
if (t != null && typeof t == "function") {
|
|
1645
1645
|
const r = this.#t, i = r?.get(t);
|
|
1646
|
-
if (i && (i.prop == n || n == null || n ==
|
|
1647
|
-
return r.delete(t), () => this.affected(t, n ||
|
|
1646
|
+
if (i && (i.prop == n || n == null || n == vr))
|
|
1647
|
+
return r.delete(t), () => this.affected(t, n || vr, i.triggers);
|
|
1648
1648
|
}
|
|
1649
1649
|
return this.#t.clear();
|
|
1650
1650
|
}
|
|
1651
1651
|
trigger(t, n, r, i = "set", ...s) {
|
|
1652
|
-
if (typeof t == "symbol" || (i === void 0 && (i = "set"), i =
|
|
1652
|
+
if (typeof t == "symbol" || (i === void 0 && (i = "set"), i = Vr(i) ?? i, !this.isTriggerEnabled(i))) return;
|
|
1653
1653
|
const o = `${i ?? "all"}`;
|
|
1654
1654
|
let a = this.#i.get(t);
|
|
1655
1655
|
a || (a = /* @__PURE__ */ new Map(), this.#i.set(t, a)), a.set(o, [
|
|
@@ -1667,9 +1667,9 @@ globalThis[wu] ??= class {
|
|
|
1667
1667
|
c != null && this.#a.add(c);
|
|
1668
1668
|
try {
|
|
1669
1669
|
for (const [, d] of u) {
|
|
1670
|
-
const [h, f, p, y,
|
|
1670
|
+
const [h, f, p, y, v] = d;
|
|
1671
1671
|
try {
|
|
1672
|
-
this.#d(h, f, p, y, ...
|
|
1672
|
+
this.#d(h, f, p, y, ...v ?? []);
|
|
1673
1673
|
} catch (m) {
|
|
1674
1674
|
console.warn(m);
|
|
1675
1675
|
}
|
|
@@ -1699,7 +1699,7 @@ var lp = globalThis[wu], cp = /* @__PURE__ */ Symbol.for("object.ts@__safeGetGua
|
|
|
1699
1699
|
"catch",
|
|
1700
1700
|
"finally",
|
|
1701
1701
|
"next"
|
|
1702
|
-
]),
|
|
1702
|
+
]), Rr = (e, t) => {
|
|
1703
1703
|
if (!up.has(t)) return null;
|
|
1704
1704
|
const n = C(e, t);
|
|
1705
1705
|
return typeof n == "function" ? Cn(e, n) : n;
|
|
@@ -1744,7 +1744,7 @@ var wn = (e, t) => {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
1746
|
return typeof r == "function" ? Cn(e, r) : r;
|
|
1747
|
-
}, Mt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Xs = (e, t = !1) => !!e && typeof e == "object" && !Array.isArray(e) && (Mt(e, "key") || Mt(e, "name") || Mt(e, "oldValue") || Mt(e, "old") || Mt(e, "op") || Mt(e, "trigger") || t && Mt(e, "value")), cn = (e, t, n) => Mt(e, t) ? e[t] : t == "oldValue" && Mt(e, "old") ? e.old : n(), ws = (e, t = "manual") =>
|
|
1747
|
+
}, Mt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Xs = (e, t = !1) => !!e && typeof e == "object" && !Array.isArray(e) && (Mt(e, "key") || Mt(e, "name") || Mt(e, "oldValue") || Mt(e, "old") || Mt(e, "op") || Mt(e, "trigger") || t && Mt(e, "value")), cn = (e, t, n) => Mt(e, t) ? e[t] : t == "oldValue" && Mt(e, "old") ? e.old : n(), ws = (e, t = "manual") => Vr(e.trigger ?? e.op ?? t), hp = (e) => typeof e == "string" || typeof e == "number" || typeof e == "symbol", Qi = (e) => {
|
|
1748
1748
|
const t = C(e, Ki) ?? C(e, "realProp");
|
|
1749
1749
|
return hp(t) ? t : null;
|
|
1750
1750
|
}, $l = (e, t) => t == "value" ? Qi(e) ?? t : t, pp = (e, t) => {
|
|
@@ -1773,11 +1773,11 @@ var wn = (e, t) => {
|
|
|
1773
1773
|
"@target",
|
|
1774
1774
|
qt,
|
|
1775
1775
|
Te,
|
|
1776
|
-
|
|
1776
|
+
Ur
|
|
1777
1777
|
].indexOf(t) < 0 ? C(e, t)?.bind?.(e) : null) != null) return null;
|
|
1778
1778
|
if ([Te, qt].indexOf(t) >= 0) return C(e, t) ?? e;
|
|
1779
1779
|
if (t == U) return C(e, t) ?? C(e, "value");
|
|
1780
|
-
if (t ==
|
|
1780
|
+
if (t == Ur) return n;
|
|
1781
1781
|
if (t == du) return n?.triggerControl;
|
|
1782
1782
|
if (t == Symbol.observable) return n?.compatible;
|
|
1783
1783
|
if (t == Symbol.subscribe) return (r, i, s) => W(i != null ? [e, i] : e, r, s);
|
|
@@ -1806,7 +1806,7 @@ var wn = (e, t) => {
|
|
|
1806
1806
|
this.#e = e, this.#t = t, this.#n = n;
|
|
1807
1807
|
}
|
|
1808
1808
|
get(e, t, n) {
|
|
1809
|
-
const r =
|
|
1809
|
+
const r = Rr(e, t);
|
|
1810
1810
|
return r ?? Reflect.get(e, t, n);
|
|
1811
1811
|
}
|
|
1812
1812
|
apply(e, t, n) {
|
|
@@ -1888,7 +1888,7 @@ var wn = (e, t) => {
|
|
|
1888
1888
|
return Reflect.has(e, t);
|
|
1889
1889
|
}
|
|
1890
1890
|
get(e, t, n) {
|
|
1891
|
-
const r =
|
|
1891
|
+
const r = Rr(e, t);
|
|
1892
1892
|
if (r != null) return r;
|
|
1893
1893
|
if ([
|
|
1894
1894
|
Te,
|
|
@@ -1900,7 +1900,7 @@ var wn = (e, t) => {
|
|
|
1900
1900
|
if (s != null) return s;
|
|
1901
1901
|
const o = _s(e, t, i);
|
|
1902
1902
|
if (o != null) return o;
|
|
1903
|
-
if (t ==
|
|
1903
|
+
if (t == ni) return ds.call(this, this);
|
|
1904
1904
|
if (t == lt) return Ss(i, (l) => {
|
|
1905
1905
|
const c = l.key ?? l.name ?? 0, u = cn(l, "value", () => C(e, c)), d = cn(l, "oldValue", () => {
|
|
1906
1906
|
});
|
|
@@ -1961,7 +1961,7 @@ var wn = (e, t) => {
|
|
|
1961
1961
|
if (i != null) return i;
|
|
1962
1962
|
C(e, t) == null && t != "value" && ne(e) && C(e, "value") != null && (typeof C(e, "value") == "object" || typeof C(e, "value") == "function") && C(C(e, "value"), t) != null && (e = C(e, "value") ?? e);
|
|
1963
1963
|
const s = _s(e, t, r);
|
|
1964
|
-
return s ?? (t ==
|
|
1964
|
+
return s ?? (t == ni ? ds.call(this, this) : t == lt ? Ss(r, (o) => {
|
|
1965
1965
|
const a = $l(e, o.key ?? o.name ?? Qi(e) ?? "value"), l = cn(o, "oldValue", () => a == "value" || a == Qi(e) ? C(e, U) : void 0), c = cn(o, "value", () => pp(e, a));
|
|
1966
1966
|
return r?.trigger?.(a, c, l, ws(o, "manual"));
|
|
1967
1967
|
}) : t == Symbol.toPrimitive ? (o) => {
|
|
@@ -2005,9 +2005,9 @@ var wn = (e, t) => {
|
|
|
2005
2005
|
return t in e;
|
|
2006
2006
|
}
|
|
2007
2007
|
set(e, t, n) {
|
|
2008
|
-
const r =
|
|
2008
|
+
const r = Rr(e, t);
|
|
2009
2009
|
return r ?? Nd(n, (i) => {
|
|
2010
|
-
const s =
|
|
2010
|
+
const s = Rr(i, t);
|
|
2011
2011
|
if (s != null) return s;
|
|
2012
2012
|
if (t == j && n)
|
|
2013
2013
|
return this[j] = !!n, !0;
|
|
@@ -2022,7 +2022,7 @@ var wn = (e, t) => {
|
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
2024
|
defineProperty(e, t, n) {
|
|
2025
|
-
const r =
|
|
2025
|
+
const r = Rr(e, t);
|
|
2026
2026
|
if (r != null) return r;
|
|
2027
2027
|
if (t == j && n.value)
|
|
2028
2028
|
return this[j] = !!n.value, !0;
|
|
@@ -2061,7 +2061,7 @@ var wn = (e, t) => {
|
|
|
2061
2061
|
if (s != null) return s;
|
|
2062
2062
|
e = C(e, Te) ?? C(e, qt) ?? e;
|
|
2063
2063
|
const o = Cn(e, C(e, t));
|
|
2064
|
-
return typeof t == "symbol" && (t in e || C(e, t) != null) ? o : t ==
|
|
2064
|
+
return typeof t == "symbol" && (t in e || C(e, t) != null) ? o : t == ni ? ds.call(this, this) : t == lt ? Ss(r, (a) => {
|
|
2065
2065
|
const l = a.key ?? a.name;
|
|
2066
2066
|
if (l == null) return;
|
|
2067
2067
|
const c = cn(a, "value", () => e.get(l));
|
|
@@ -2131,7 +2131,7 @@ var wn = (e, t) => {
|
|
|
2131
2131
|
if (s != null) return s;
|
|
2132
2132
|
e = C(e, Te) ?? C(e, qt) ?? e;
|
|
2133
2133
|
const o = Cn(e, C(e, t));
|
|
2134
|
-
return typeof t == "symbol" && (t in e || C(e, t) != null) ? o : t ==
|
|
2134
|
+
return typeof t == "symbol" && (t in e || C(e, t) != null) ? o : t == ni ? ds.call(this, this) : t == lt ? Ss(r, (a) => {
|
|
2135
2135
|
const l = a.key ?? a.name;
|
|
2136
2136
|
if (l == null) return;
|
|
2137
2137
|
const c = cn(a, "value", () => e.has(l)), u = cn(a, "oldValue", () => {
|
|
@@ -2182,9 +2182,9 @@ var wn = (e, t) => {
|
|
|
2182
2182
|
deleteProperty(e, t) {
|
|
2183
2183
|
return t == j ? (delete this[j], !0) : Reflect.deleteProperty(e, t);
|
|
2184
2184
|
}
|
|
2185
|
-
}, tr = (e) => !!((typeof e == "object" || typeof e == "function") && e != null && (e?.[Te] || e?.[An])), ma = (e) => tr(e) ? e :
|
|
2185
|
+
}, tr = (e) => !!((typeof e == "object" || typeof e == "function") && e != null && (e?.[Te] || e?.[An])), ma = (e) => tr(e) ? e : ri(e, new vp()), Sp = (e) => tr(e) ? e : ri(e, new gp()), xp = (e) => tr(e) ? e : ri(e, new bp()), _p = (e) => tr(e) ? e : ri(e, new wp()), w = (e, t) => {
|
|
2186
2186
|
const n = e instanceof Promise || typeof e?.then == "function", r = fe({
|
|
2187
|
-
[
|
|
2187
|
+
[ti]: n ? e : null,
|
|
2188
2188
|
[U]: n ? 0 : Number(at(e) || 0) || 0,
|
|
2189
2189
|
[On]: t,
|
|
2190
2190
|
[Symbol?.toStringTag]() {
|
|
@@ -2203,7 +2203,7 @@ var wn = (e, t) => {
|
|
|
2203
2203
|
return e?.then?.((i) => r.value = i), r;
|
|
2204
2204
|
}, Je = (e, t) => {
|
|
2205
2205
|
const n = e instanceof Promise || typeof e?.then == "function", r = fe({
|
|
2206
|
-
[
|
|
2206
|
+
[ti]: n ? e : null,
|
|
2207
2207
|
[U]: (n ? "" : String(at(typeof e == "number" ? String(e) : e || ""))) ?? "",
|
|
2208
2208
|
[On]: t,
|
|
2209
2209
|
[Symbol?.toStringTag]() {
|
|
@@ -2222,7 +2222,7 @@ var wn = (e, t) => {
|
|
|
2222
2222
|
return e?.then?.((i) => r.value = i), r;
|
|
2223
2223
|
}, Gt = (e, t) => {
|
|
2224
2224
|
const n = e instanceof Promise || typeof e?.then == "function", r = fe({
|
|
2225
|
-
[
|
|
2225
|
+
[ti]: n ? e : null,
|
|
2226
2226
|
[U]: (n ? !1 : (at(e) != null ? typeof at(e) == "string" ? !0 : !!at(e) : !1) || !1) || !1,
|
|
2227
2227
|
[On]: t,
|
|
2228
2228
|
[Symbol?.toStringTag]() {
|
|
@@ -2241,7 +2241,7 @@ var wn = (e, t) => {
|
|
|
2241
2241
|
return e?.then?.((i) => r.value = i), r;
|
|
2242
2242
|
}, Dl = (e, t) => {
|
|
2243
2243
|
const n = e instanceof Promise || typeof e?.then == "function", r = fe({
|
|
2244
|
-
[
|
|
2244
|
+
[ti]: n ? e : null,
|
|
2245
2245
|
[On]: t,
|
|
2246
2246
|
[Symbol?.toStringTag]() {
|
|
2247
2247
|
return String(this.value ?? "") || "";
|
|
@@ -2319,11 +2319,11 @@ var wn = (e, t) => {
|
|
|
2319
2319
|
Ys(c, t);
|
|
2320
2320
|
const u = W(e, (d, h, f, p) => {
|
|
2321
2321
|
if (h === t) {
|
|
2322
|
-
const y = s ? d != null : d,
|
|
2322
|
+
const y = s ? d != null : d, v = s ? f != null : f;
|
|
2323
2323
|
c?.[lt]?.({
|
|
2324
2324
|
key: t,
|
|
2325
2325
|
value: y,
|
|
2326
|
-
oldValue:
|
|
2326
|
+
oldValue: v,
|
|
2327
2327
|
trigger: p
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
@@ -2377,7 +2377,7 @@ var Tn = (e) => typeof HTMLInputElement < "u" && e instanceof HTMLInputElement ?
|
|
|
2377
2377
|
}, Tp = (e, t, n, r = ["*"]) => {
|
|
2378
2378
|
if (!e || !qa(e)) return;
|
|
2379
2379
|
const i = t != Symbol.iterator ? Su(e, t) : null;
|
|
2380
|
-
let s = e?.[
|
|
2380
|
+
let s = e?.[Ur] ?? be.get(e);
|
|
2381
2381
|
e = e?.[Te] ?? e, queueMicrotask(() => {
|
|
2382
2382
|
const a = xu(n, r, Zi);
|
|
2383
2383
|
a && (i != null && i != Symbol.iterator ? va(e, i, a, null) : Da(e, a, null));
|
|
@@ -2481,7 +2481,7 @@ function Hi(e, t) {
|
|
|
2481
2481
|
const r = Array.isArray(n) && n?.length == 2 && ["object", "function"].indexOf(typeof n?.[0]) >= 0 && or(n?.[1]), i = r ? n?.[1] : null;
|
|
2482
2482
|
n = r && i != null ? n?.[0] ?? n : n;
|
|
2483
2483
|
const s = typeof n == "object" || typeof n == "function" ? n?.[Te] ?? n : n;
|
|
2484
|
-
(n?.[
|
|
2484
|
+
(n?.[Ur] ?? be.get(s))?.unaffected?.(t, i);
|
|
2485
2485
|
});
|
|
2486
2486
|
}
|
|
2487
2487
|
var Ip = (e, t, n, r) => {
|
|
@@ -2523,7 +2523,7 @@ var Ip = (e, t, n, r) => {
|
|
|
2523
2523
|
s >= 0 && xe(t[s], n) && (t[s] = n);
|
|
2524
2524
|
}
|
|
2525
2525
|
})), t;
|
|
2526
|
-
},
|
|
2526
|
+
}, qr = (e, t, n, r = "value") => {
|
|
2527
2527
|
const i = typeof e?.[1] == "function" && e?.length == 2, s = (or(e?.[1]) || e?.[1] == Symbol.iterator) && e?.length == 2;
|
|
2528
2528
|
let o = s && !i ? e?.[1] : Array.isArray(e) ? null : r;
|
|
2529
2529
|
if (!s && !i && (e = [s ? e?.[0] : e, o]), i && (e[1] = o), o == null || ua(o, e?.[0])) return;
|
|
@@ -2531,7 +2531,7 @@ var Ip = (e, t, n, r) => {
|
|
|
2531
2531
|
let h;
|
|
2532
2532
|
return d != null && (h = e[0][o], e[0][o] = d), t?.(e?.[0]?.[o], o, h);
|
|
2533
2533
|
}, l = a(), c = fe({
|
|
2534
|
-
[
|
|
2534
|
+
[ti]: void 0,
|
|
2535
2535
|
[U]: l,
|
|
2536
2536
|
[On]: n,
|
|
2537
2537
|
[Symbol?.toStringTag]() {
|
|
@@ -2625,8 +2625,8 @@ function Fp(e, t, n, r = {}) {
|
|
|
2625
2625
|
const p = () => {
|
|
2626
2626
|
const y = (-a * (d - s) + -l * h) / c;
|
|
2627
2627
|
h += y * 0.016, d += h * 0.016;
|
|
2628
|
-
const
|
|
2629
|
-
e.style.setProperty(t,
|
|
2628
|
+
const v = t.includes("scale") || t.includes("opacity") ? d.toString() : `${d}px`;
|
|
2629
|
+
e.style.setProperty(t, v), Math.abs(d - s) > 0.01 || Math.abs(h) > 0.01 ? f = requestAnimationFrame(p) : (e.style.setProperty(t, t.includes("scale") || t.includes("opacity") ? s.toString() : `${s}px`), i.cancelAnimation(t));
|
|
2630
2630
|
};
|
|
2631
2631
|
i.setAnimation(t, { cancel: () => cancelAnimationFrame(f) }), f = requestAnimationFrame(p);
|
|
2632
2632
|
}
|
|
@@ -2655,7 +2655,7 @@ function ga(e, t, n = {}) {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function ii(e, t, n, r = "animate", i = {}) {
|
|
2659
2659
|
const s = Ke(e), o = Ke(n);
|
|
2660
2660
|
if (r === "morph") {
|
|
2661
2661
|
const a = t;
|
|
@@ -2739,14 +2739,14 @@ var Up = {
|
|
|
2739
2739
|
const d = ye(i);
|
|
2740
2740
|
if (d) {
|
|
2741
2741
|
const h = ye(s)?.value || 0, f = u;
|
|
2742
|
-
|
|
2742
|
+
Cr(d, c, f[0] * (1 - h) + f[1] * h);
|
|
2743
2743
|
}
|
|
2744
2744
|
}, a = Wa(), l = () => Object.entries(t)?.forEach?.(o);
|
|
2745
2745
|
return W(n, (c) => a?.schedule?.(l));
|
|
2746
2746
|
}, Qs = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
|
|
2747
2747
|
didTimeout: !1,
|
|
2748
2748
|
timeRemaining: () => 0
|
|
2749
|
-
}), 0), qp = /* @__PURE__ */ Symbol.for("lur.e@bank"), kw = globalThis[qp] ??= new Xa(), Gp = /* @__PURE__ */ Symbol.for("lur.e@elMap"), En = globalThis[Gp] ??= new Xa(), Xp = /* @__PURE__ */ Symbol.for("lur.e@alives"), Yp = globalThis[Xp] ??= new FinalizationRegistry((e) => e?.()),
|
|
2749
|
+
}), 0), qp = /* @__PURE__ */ Symbol.for("lur.e@bank"), kw = globalThis[qp] ??= new Xa(), Gp = /* @__PURE__ */ Symbol.for("lur.e@elMap"), En = globalThis[Gp] ??= new Xa(), Xp = /* @__PURE__ */ Symbol.for("lur.e@alives"), Yp = globalThis[Xp] ??= new FinalizationRegistry((e) => e?.()), Gr = /* @__PURE__ */ Symbol.for("@mapped"), Kp = /* @__PURE__ */ Symbol.for("@virtual"), Fl = /* @__PURE__ */ Symbol.for("@behavior"), Ka = (e) => !!e && typeof e == "object" && "ref" in e && typeof e?.unbind == "function", Ew = (e, t, n) => {
|
|
2750
2750
|
const r = Ke(e), i = t?.[0] ?? t?.name;
|
|
2751
2751
|
if (t?.[1] ?? t?.value, n) {
|
|
2752
2752
|
const s = W?.(t, (o, a, l) => {
|
|
@@ -2792,7 +2792,7 @@ var Up = {
|
|
|
2792
2792
|
return s?.({ target: e }), la?.(e, "addEventListener", o), aa(i, "value", e?.[n ?? "value"] ?? je(ye(t))), () => la?.(e, "removeEventListener", o);
|
|
2793
2793
|
}, Zp = (e, t, n = "") => {
|
|
2794
2794
|
Ke(e);
|
|
2795
|
-
const r = Ke(t), i =
|
|
2795
|
+
const r = Ke(t), i = ei(n);
|
|
2796
2796
|
return tu(e, i, (o) => {
|
|
2797
2797
|
if (o.type == "attributes" && o.attributeName == i) {
|
|
2798
2798
|
const a = o?.target?.getAttribute?.(o.attributeName), l = ye(r), c = je(l);
|
|
@@ -2808,7 +2808,7 @@ var Up = {
|
|
|
2808
2808
|
}, ty = (e, t, n, r) => {
|
|
2809
2809
|
const i = En.getOrInsertComputed([e, t], () => ({}));
|
|
2810
2810
|
return i?.[n]?.[1]?.(), i[n] = r, !0;
|
|
2811
|
-
}, Cw = (e, t) => En.has([e, t]),
|
|
2811
|
+
}, Cw = (e, t) => En.has([e, t]), si = (e, t, n, r, i, s) => {
|
|
2812
2812
|
const o = Ka(t) ? t : null;
|
|
2813
2813
|
o && (o.bind?.(), t = o.ref);
|
|
2814
2814
|
const a = Ke(e);
|
|
@@ -2818,8 +2818,8 @@ var Up = {
|
|
|
2818
2818
|
const c = Ke(t);
|
|
2819
2819
|
r?.(e, n, t);
|
|
2820
2820
|
const u = W?.([t, "value"], (f, p, y) => {
|
|
2821
|
-
const
|
|
2822
|
-
(!m || m?.[n] ==
|
|
2821
|
+
const v = ye(c), m = ye(i), x = ye(a), k = je(v) ?? je(f);
|
|
2822
|
+
(!m || m?.[n] == v) && (typeof v?.[Fl] == "function" ? v?.[Fl]?.((g = f) => r(x, n, k), [
|
|
2823
2823
|
f,
|
|
2824
2824
|
n,
|
|
2825
2825
|
y
|
|
@@ -2854,7 +2854,7 @@ var Up = {
|
|
|
2854
2854
|
ln(s, t[i]);
|
|
2855
2855
|
}, i);
|
|
2856
2856
|
}
|
|
2857
|
-
}, A = (e, t, n, r, i, s) => (r(e, t, Ka(n) ? n.ref : n),
|
|
2857
|
+
}, A = (e, t, n, r, i, s) => (r(e, t, Ka(n) ? n.ref : n), si(e, n, t, r, i, s)), Pw = (e = document.documentElement, t = ".u2-input", n = {}) => {
|
|
2858
2858
|
n ??= fe({});
|
|
2859
2859
|
const r = new WeakRef(n), i = (c) => {
|
|
2860
2860
|
const u = ye(r);
|
|
@@ -2867,20 +2867,20 @@ var Up = {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
h?.matches?.('input[type="radio"]') && u[p] != h?.value && h?.checked && (u[p] = h.value), h?.matches?.('input[type="checkbox"]') && u[p] != h?.checked && (u[p] = h.checked);
|
|
2869
2869
|
}
|
|
2870
|
-
}, s = () => Qs(() => e.querySelectorAll(t).forEach((c) => mi(c, n)), 100), o =
|
|
2870
|
+
}, s = () => Qs(() => e.querySelectorAll(t).forEach((c) => mi(c, n)), 100), o = Tr(e, t, (c) => c.addedNodes.forEach((u) => Qs(() => mi(n, u), 100))), a = W?.(n, (c, u) => e.querySelectorAll(t).forEach((d) => mi(d, n)));
|
|
2871
2871
|
Qs(() => e.querySelectorAll(t).forEach((c) => mi(c, n)), 100), e.addEventListener("input", i), e.addEventListener("change", i), e.addEventListener("u2-appear", s);
|
|
2872
2872
|
const l = new WeakRef(e);
|
|
2873
2873
|
return J(n, Symbol.dispose, () => {
|
|
2874
2874
|
const c = ye(l);
|
|
2875
2875
|
c?.removeEventListener?.("input", i), c?.removeEventListener?.("change", i), c?.removeEventListener?.("u2-appear", s), o?.disconnect?.(), a?.(), Hi(n);
|
|
2876
2876
|
}), n;
|
|
2877
|
-
}, Xe = (e, t, n, r = {}) =>
|
|
2877
|
+
}, Xe = (e, t, n, r = {}) => ii(e, t, n, "animate", r), wt = (e, t, n, r = {}) => ii(e, t, n, "transition", r), Wt = (e, t, n, r = {}) => ii(e, t, n, "spring", r), ny = (e, t, n = {}) => ii(e, "", t, "morph", n), Aw = jp, Tw = () => Wp.create(), Mw = Bp, Rw = (e, t, n, r = "instant", i = {}) => r === "instant" ? A(e, t, n, R) : (r === "animate" ? Xe : r === "transition" ? wt : Wt)(e, t, n, i), Ow = (e, t) => {
|
|
2878
2878
|
const n = [];
|
|
2879
2879
|
return t.forEach((r, i) => {
|
|
2880
2880
|
const s = r.delay || i * 50, o = {
|
|
2881
2881
|
...r.options,
|
|
2882
2882
|
delay: (r.options?.delay || 0) + s
|
|
2883
|
-
}, a =
|
|
2883
|
+
}, a = ii(e, r.property, r.value, r.animationType || "animate", o);
|
|
2884
2884
|
n.push(a);
|
|
2885
2885
|
}), () => n.forEach((r) => r?.());
|
|
2886
2886
|
}, Iw = {
|
|
@@ -3074,7 +3074,7 @@ var Up = {
|
|
|
3074
3074
|
} catch {
|
|
3075
3075
|
return !1;
|
|
3076
3076
|
}
|
|
3077
|
-
}, Wl = (e) => e == null || typeof e != "object" && typeof e != "function",
|
|
3077
|
+
}, Wl = (e) => e == null || typeof e != "object" && typeof e != "function", Xr = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Hl = (e, t) => new RegExp(`var\\(\\s*${Xr(t)}\\s*\\)`).test(e), ay = (e) => {
|
|
3078
3078
|
const t = /^(%|[a-zA-Z]+)/.exec(e);
|
|
3079
3079
|
if (!t) return null;
|
|
3080
3080
|
const n = t[0], r = n.toLowerCase();
|
|
@@ -3098,13 +3098,13 @@ var Up = {
|
|
|
3098
3098
|
default:
|
|
3099
3099
|
return e.toLowerCase();
|
|
3100
3100
|
}
|
|
3101
|
-
}, cy = (e) => e.toLowerCase() === "%" ? "percent" : e.toLowerCase(),
|
|
3101
|
+
}, cy = (e) => e.toLowerCase() === "%" ? "percent" : e.toLowerCase(), Yr = (e, t) => e?.[t] ?? globalThis?.[t], Ge = (e, t, n) => {
|
|
3102
3102
|
const r = e?.CSS, i = ly(t), s = r?.[i];
|
|
3103
3103
|
if (typeof s == "function") return s.call(r, n);
|
|
3104
|
-
const o =
|
|
3104
|
+
const o = Yr(e, "CSSUnitValue");
|
|
3105
3105
|
if (typeof o != "function") throw new TypeError(`Typed OM does not support CSS unit "${t}"`);
|
|
3106
3106
|
return new o(n, cy(t));
|
|
3107
|
-
},
|
|
3107
|
+
}, Or = (e) => {
|
|
3108
3108
|
const t = e.value?.value, n = typeof t == "number" ? t : Number(t);
|
|
3109
3109
|
if (!Number.isFinite(n)) throw new TypeError(`Reactive CSS value "${String(t)}" is not finite`);
|
|
3110
3110
|
return n;
|
|
@@ -3113,14 +3113,14 @@ var Up = {
|
|
|
3113
3113
|
return Number.isFinite(t) ? t : 0;
|
|
3114
3114
|
}, Bl = (e, t) => {
|
|
3115
3115
|
let n = e;
|
|
3116
|
-
for (const r of t) n = n.replace(new RegExp(`var\\(\\s*${
|
|
3116
|
+
for (const r of t) n = n.replace(new RegExp(`var\\(\\s*${Xr(r.marker)}\\s*\\)`, "g"), String(r.value));
|
|
3117
3117
|
return n;
|
|
3118
3118
|
}, jl = (e, t) => {
|
|
3119
|
-
const n =
|
|
3119
|
+
const n = Xr(t);
|
|
3120
3120
|
return new RegExp(`^var\\(\\s*${n}\\s*\\)$`).test(e.trim());
|
|
3121
3121
|
}, Ul = (e, t, n) => {
|
|
3122
3122
|
if (!n) return !1;
|
|
3123
|
-
const r =
|
|
3123
|
+
const r = Xr(t), i = Xr(n);
|
|
3124
3124
|
return new RegExp(`^calc\\(\\s*var\\(\\s*${r}\\s*\\)\\s*\\*\\s*1${i}\\s*\\)$`, "i").test(e.trim());
|
|
3125
3125
|
}, fy = (e, t, n, r) => {
|
|
3126
3126
|
if (typeof t?.parseAll == "function") {
|
|
@@ -3215,7 +3215,7 @@ var Up = {
|
|
|
3215
3215
|
return t?.kind === "symbol" && t.value === e;
|
|
3216
3216
|
}
|
|
3217
3217
|
createMath(e, ...t) {
|
|
3218
|
-
const n =
|
|
3218
|
+
const n = Yr(this.win, e);
|
|
3219
3219
|
if (typeof n != "function") throw new TypeError(`${e} is not supported`);
|
|
3220
3220
|
return new n(...t);
|
|
3221
3221
|
}
|
|
@@ -3252,7 +3252,7 @@ var Up = {
|
|
|
3252
3252
|
const s = this.current();
|
|
3253
3253
|
if (s?.kind === "number" && s.value === 1 && typeof s.unit == "string" && (!t.multipliedByUnit || t.multipliedByUnit === s.unit.toLowerCase())) {
|
|
3254
3254
|
this.consume();
|
|
3255
|
-
const o = Ge(this.win, s.unit.toLowerCase(),
|
|
3255
|
+
const o = Ge(this.win, s.unit.toLowerCase(), Or(t));
|
|
3256
3256
|
return this.leaves.push({
|
|
3257
3257
|
slot: t,
|
|
3258
3258
|
value: o
|
|
@@ -3260,7 +3260,7 @@ var Up = {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
this.index = i;
|
|
3262
3262
|
}
|
|
3263
|
-
const r = Ge(this.win, "number",
|
|
3263
|
+
const r = Ge(this.win, "number", Or(t));
|
|
3264
3264
|
return this.leaves.push({
|
|
3265
3265
|
slot: t,
|
|
3266
3266
|
value: r
|
|
@@ -3316,101 +3316,101 @@ var Up = {
|
|
|
3316
3316
|
if (!k) throw new SyntaxError("Unexpected end of transform expression");
|
|
3317
3317
|
return d++, k;
|
|
3318
3318
|
}, p = (k) => {
|
|
3319
|
-
const
|
|
3320
|
-
if (
|
|
3319
|
+
const g = f();
|
|
3320
|
+
if (g.kind !== "symbol" || g.value !== k) throw new SyntaxError(`Expected "${k}"`);
|
|
3321
3321
|
}, y = () => {
|
|
3322
3322
|
const k = d;
|
|
3323
|
-
let
|
|
3323
|
+
let g = 0;
|
|
3324
3324
|
for (; d < i.length; ) {
|
|
3325
3325
|
const O = i[d];
|
|
3326
3326
|
if (O.kind === "symbol" && O.value === "(") {
|
|
3327
|
-
|
|
3327
|
+
g++, d++;
|
|
3328
3328
|
continue;
|
|
3329
3329
|
}
|
|
3330
3330
|
if (O.kind === "symbol" && O.value === ")") {
|
|
3331
|
-
if (
|
|
3332
|
-
|
|
3331
|
+
if (g === 0) break;
|
|
3332
|
+
g--, d++;
|
|
3333
3333
|
continue;
|
|
3334
3334
|
}
|
|
3335
|
-
if (O.kind === "symbol" && O.value === "," &&
|
|
3335
|
+
if (O.kind === "symbol" && O.value === "," && g === 0) break;
|
|
3336
3336
|
d++;
|
|
3337
3337
|
}
|
|
3338
3338
|
const S = i.slice(k, d);
|
|
3339
3339
|
if (S.length === 0) throw new SyntaxError("Empty transform function argument");
|
|
3340
3340
|
const M = new Tu(S, t, a, l).parse();
|
|
3341
3341
|
return s.push(...M.leaves), M.root;
|
|
3342
|
-
},
|
|
3342
|
+
}, v = () => {
|
|
3343
3343
|
const k = [];
|
|
3344
3344
|
if (p("("), !(h()?.kind === "symbol" && h()?.value === ")"))
|
|
3345
3345
|
for (k.push(y()); h()?.kind === "symbol" && h()?.value === ","; )
|
|
3346
3346
|
f(), k.push(y());
|
|
3347
3347
|
return p(")"), k;
|
|
3348
|
-
}, m = (k,
|
|
3348
|
+
}, m = (k, g) => {
|
|
3349
3349
|
const S = (M) => {
|
|
3350
|
-
const O =
|
|
3350
|
+
const O = Yr(t, M);
|
|
3351
3351
|
if (typeof O != "function") throw new TypeError(`${M} is not supported`);
|
|
3352
3352
|
return O;
|
|
3353
3353
|
};
|
|
3354
3354
|
switch (k) {
|
|
3355
3355
|
case "translate": {
|
|
3356
3356
|
const M = S("CSSTranslate");
|
|
3357
|
-
if (
|
|
3358
|
-
if (
|
|
3359
|
-
if (
|
|
3357
|
+
if (g.length === 1) return new M(g[0], c());
|
|
3358
|
+
if (g.length === 2) return new M(g[0], g[1]);
|
|
3359
|
+
if (g.length === 3) return new M(g[0], g[1], g[2]);
|
|
3360
3360
|
throw new SyntaxError("translate() expects 1..3 args");
|
|
3361
3361
|
}
|
|
3362
3362
|
case "translatex":
|
|
3363
|
-
return new (S("CSSTranslate"))(
|
|
3363
|
+
return new (S("CSSTranslate"))(g[0], c());
|
|
3364
3364
|
case "translatey":
|
|
3365
|
-
return new (S("CSSTranslate"))(c(),
|
|
3365
|
+
return new (S("CSSTranslate"))(c(), g[0]);
|
|
3366
3366
|
case "translatez":
|
|
3367
|
-
return new (S("CSSTranslate"))(c(), c(),
|
|
3367
|
+
return new (S("CSSTranslate"))(c(), c(), g[0]);
|
|
3368
3368
|
case "translate3d":
|
|
3369
|
-
if (
|
|
3370
|
-
return new (S("CSSTranslate"))(
|
|
3369
|
+
if (g.length !== 3) throw new SyntaxError("translate3d() expects 3 args");
|
|
3370
|
+
return new (S("CSSTranslate"))(g[0], g[1], g[2]);
|
|
3371
3371
|
case "scale": {
|
|
3372
3372
|
const M = S("CSSScale");
|
|
3373
|
-
if (
|
|
3374
|
-
if (
|
|
3375
|
-
if (
|
|
3373
|
+
if (g.length === 1) return new M(g[0], g[0]);
|
|
3374
|
+
if (g.length === 2) return new M(g[0], g[1]);
|
|
3375
|
+
if (g.length === 3) return new M(g[0], g[1], g[2]);
|
|
3376
3376
|
throw new SyntaxError("scale() expects 1..3 args");
|
|
3377
3377
|
}
|
|
3378
3378
|
case "scalex":
|
|
3379
|
-
return new (S("CSSScale"))(
|
|
3379
|
+
return new (S("CSSScale"))(g[0], u());
|
|
3380
3380
|
case "scaley":
|
|
3381
|
-
return new (S("CSSScale"))(u(),
|
|
3381
|
+
return new (S("CSSScale"))(u(), g[0]);
|
|
3382
3382
|
case "scalez":
|
|
3383
|
-
return new (S("CSSScale"))(u(), u(),
|
|
3383
|
+
return new (S("CSSScale"))(u(), u(), g[0]);
|
|
3384
3384
|
case "scale3d":
|
|
3385
|
-
if (
|
|
3386
|
-
return new (S("CSSScale"))(
|
|
3385
|
+
if (g.length !== 3) throw new SyntaxError("scale3d() expects 3 args");
|
|
3386
|
+
return new (S("CSSScale"))(g[0], g[1], g[2]);
|
|
3387
3387
|
case "rotate": {
|
|
3388
3388
|
const M = S("CSSRotate");
|
|
3389
|
-
if (
|
|
3390
|
-
if (
|
|
3389
|
+
if (g.length === 1) return new M(g[0]);
|
|
3390
|
+
if (g.length === 4) return new M(g[0], g[1], g[2], g[3]);
|
|
3391
3391
|
throw new SyntaxError("rotate() expects 1 or 4 args");
|
|
3392
3392
|
}
|
|
3393
3393
|
case "rotatex":
|
|
3394
|
-
return new (S("CSSRotate"))(u(), Ge(t, "number", 0), Ge(t, "number", 0),
|
|
3394
|
+
return new (S("CSSRotate"))(u(), Ge(t, "number", 0), Ge(t, "number", 0), g[0]);
|
|
3395
3395
|
case "rotatey":
|
|
3396
|
-
return new (S("CSSRotate"))(Ge(t, "number", 0), u(), Ge(t, "number", 0),
|
|
3396
|
+
return new (S("CSSRotate"))(Ge(t, "number", 0), u(), Ge(t, "number", 0), g[0]);
|
|
3397
3397
|
case "rotatez":
|
|
3398
|
-
return new (S("CSSRotate"))(Ge(t, "number", 0), Ge(t, "number", 0), u(),
|
|
3398
|
+
return new (S("CSSRotate"))(Ge(t, "number", 0), Ge(t, "number", 0), u(), g[0]);
|
|
3399
3399
|
case "rotate3d":
|
|
3400
|
-
if (
|
|
3401
|
-
return new (S("CSSRotate"))(
|
|
3400
|
+
if (g.length !== 4) throw new SyntaxError("rotate3d() expects 4 args");
|
|
3401
|
+
return new (S("CSSRotate"))(g[0], g[1], g[2], g[3]);
|
|
3402
3402
|
case "skew": {
|
|
3403
3403
|
const M = S("CSSSkew");
|
|
3404
|
-
if (
|
|
3405
|
-
if (
|
|
3404
|
+
if (g.length === 1) return new M(g[0], Ge(t, "deg", 0));
|
|
3405
|
+
if (g.length === 2) return new M(g[0], g[1]);
|
|
3406
3406
|
throw new SyntaxError("skew() expects 1..2 args");
|
|
3407
3407
|
}
|
|
3408
3408
|
case "skewx":
|
|
3409
|
-
return new (S("CSSSkewX"))(
|
|
3409
|
+
return new (S("CSSSkewX"))(g[0]);
|
|
3410
3410
|
case "skewy":
|
|
3411
|
-
return new (S("CSSSkewY"))(
|
|
3411
|
+
return new (S("CSSSkewY"))(g[0]);
|
|
3412
3412
|
case "perspective":
|
|
3413
|
-
return new (S("CSSPerspective"))(
|
|
3413
|
+
return new (S("CSSPerspective"))(g[0]);
|
|
3414
3414
|
default:
|
|
3415
3415
|
throw new SyntaxError(`Unsupported transform function "${k}"`);
|
|
3416
3416
|
}
|
|
@@ -3418,11 +3418,11 @@ var Up = {
|
|
|
3418
3418
|
for (; d < i.length; ) {
|
|
3419
3419
|
const k = f();
|
|
3420
3420
|
if (k.kind !== "identifier") throw new SyntaxError("Expected a transform function name");
|
|
3421
|
-
const
|
|
3422
|
-
o.push(m(k.value,
|
|
3421
|
+
const g = v();
|
|
3422
|
+
o.push(m(k.value, g));
|
|
3423
3423
|
}
|
|
3424
3424
|
if (o.length === 0) throw new SyntaxError("Empty transform list");
|
|
3425
|
-
const x =
|
|
3425
|
+
const x = Yr(t, "CSSTransformValue");
|
|
3426
3426
|
if (typeof x != "function") throw new TypeError("CSSTransformValue is not supported");
|
|
3427
3427
|
return {
|
|
3428
3428
|
root: new x(o),
|
|
@@ -3443,43 +3443,43 @@ var Up = {
|
|
|
3443
3443
|
s.style.cssText = t, ts(e, "");
|
|
3444
3444
|
const o = e, a = o.attributeStyleMap ?? o.styleMap, l = e.ownerDocument.defaultView ?? globalThis, c = l?.CSSStyleValue ?? globalThis.CSSStyleValue, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), h = [];
|
|
3445
3445
|
for (let f = 0; f < s.style.length; f++) {
|
|
3446
|
-
const p = s.style.item(f), y = s.style.getPropertyValue(p),
|
|
3446
|
+
const p = s.style.item(f), y = s.style.getPropertyValue(p), v = s.style.getPropertyPriority(p), m = n.filter((M) => Hl(y, M.marker)), x = r.filter((M) => Hl(y, M.marker));
|
|
3447
3447
|
if (m.length === 0 && x.length === 0) {
|
|
3448
|
-
e.style.setProperty(p, y,
|
|
3448
|
+
e.style.setProperty(p, y, v);
|
|
3449
3449
|
continue;
|
|
3450
3450
|
}
|
|
3451
|
-
const k = a?.set && !
|
|
3452
|
-
let
|
|
3451
|
+
const k = a?.set && !v && !p.startsWith("--");
|
|
3452
|
+
let g = !1;
|
|
3453
3453
|
if (k && x.length > 0) try {
|
|
3454
3454
|
const M = x.length === 1 && m.length === 0 ? x[0] : null;
|
|
3455
3455
|
if (M && Ul(y, M.marker, M.multipliedByUnit)) {
|
|
3456
|
-
const O = Ge(l, M.multipliedByUnit,
|
|
3456
|
+
const O = Ge(l, M.multipliedByUnit, Or(M));
|
|
3457
3457
|
a.set(p, O), Zs(u, eo([{
|
|
3458
3458
|
slot: M,
|
|
3459
3459
|
value: O
|
|
3460
|
-
}], p, O)),
|
|
3460
|
+
}], p, O)), g = !0;
|
|
3461
3461
|
} else if (M && jl(y, M.marker)) {
|
|
3462
|
-
const O = Ge(l, "number",
|
|
3462
|
+
const O = Ge(l, "number", Or(M));
|
|
3463
3463
|
a.set(p, O), Zs(u, eo([{
|
|
3464
3464
|
slot: M,
|
|
3465
3465
|
value: O
|
|
3466
|
-
}], p, O)),
|
|
3466
|
+
}], p, O)), g = !0;
|
|
3467
3467
|
} else {
|
|
3468
3468
|
const O = Vl(p, y, l, x, m);
|
|
3469
|
-
a.set(p, O.root), Zs(u, eo(O.leaves, p, O.root)),
|
|
3469
|
+
a.set(p, O.root), Zs(u, eo(O.leaves, p, O.root)), g = !0;
|
|
3470
3470
|
}
|
|
3471
3471
|
} catch {
|
|
3472
3472
|
}
|
|
3473
|
-
if (
|
|
3473
|
+
if (g) continue;
|
|
3474
3474
|
if (k && x.length === 0 && m.length > 0) try {
|
|
3475
3475
|
const M = m.length === 1 ? m[0] : null;
|
|
3476
3476
|
if (M && jl(y, M.marker))
|
|
3477
|
-
a.set(p, M.value),
|
|
3477
|
+
a.set(p, M.value), g = !0;
|
|
3478
3478
|
else if (M && Ul(y, M.marker, M.multipliedByUnit)) {
|
|
3479
|
-
const O =
|
|
3479
|
+
const O = Yr(l, "CSSMathProduct");
|
|
3480
3480
|
if (typeof O != "function") throw new TypeError("CSSMathProduct is not supported");
|
|
3481
3481
|
const re = new O(M.value, Ge(l, M.multipliedByUnit, 1));
|
|
3482
|
-
a.set(p, re),
|
|
3482
|
+
a.set(p, re), g = !0;
|
|
3483
3483
|
} else {
|
|
3484
3484
|
try {
|
|
3485
3485
|
const O = Vl(p, y, l, [], m);
|
|
@@ -3488,29 +3488,29 @@ var Up = {
|
|
|
3488
3488
|
const O = Bl(y, m);
|
|
3489
3489
|
fy(a, c, p, O);
|
|
3490
3490
|
}
|
|
3491
|
-
|
|
3491
|
+
g = !0;
|
|
3492
3492
|
}
|
|
3493
3493
|
} catch {
|
|
3494
3494
|
}
|
|
3495
|
-
if (
|
|
3495
|
+
if (g) continue;
|
|
3496
3496
|
const S = Bl(y, m);
|
|
3497
|
-
e.style.setProperty(p, S,
|
|
3497
|
+
e.style.setProperty(p, S, v);
|
|
3498
3498
|
for (const M of x) d.add(M.marker);
|
|
3499
3499
|
}
|
|
3500
3500
|
for (const f of r) {
|
|
3501
3501
|
const p = u.get(f.marker) ?? [], y = d.has(f.marker);
|
|
3502
3502
|
if (p.length === 0 && !y) continue;
|
|
3503
|
-
const
|
|
3503
|
+
const v = A(e, f.marker, f.value, function(...m) {
|
|
3504
3504
|
if (p.length > 0) try {
|
|
3505
|
-
const x =
|
|
3506
|
-
for (const
|
|
3507
|
-
|
|
3508
|
-
if (a?.set) for (const [
|
|
3505
|
+
const x = Or(f), k = /* @__PURE__ */ new Map();
|
|
3506
|
+
for (const g of p)
|
|
3507
|
+
g.value.value = x, k.set(g.property, g.root);
|
|
3508
|
+
if (a?.set) for (const [g, S] of k) a.set(g, S);
|
|
3509
3509
|
} catch {
|
|
3510
3510
|
}
|
|
3511
3511
|
y && R.apply(this, m);
|
|
3512
3512
|
});
|
|
3513
|
-
h.push(
|
|
3513
|
+
h.push(v);
|
|
3514
3514
|
}
|
|
3515
3515
|
for (const f of d) {
|
|
3516
3516
|
if (r.some((y) => y.marker === f)) continue;
|
|
@@ -3613,12 +3613,12 @@ var Up = {
|
|
|
3613
3613
|
"add",
|
|
3614
3614
|
"set",
|
|
3615
3615
|
"delete"
|
|
3616
|
-
].indexOf(c || "") >= 0 || !c) && (h == null && f != null || c == "delete" ? r?.push?.([
|
|
3616
|
+
].indexOf(c || "") >= 0 || !c) && (h == null && f != null || c == "delete" ? r?.push?.([zr, [
|
|
3617
3617
|
p,
|
|
3618
3618
|
f,
|
|
3619
3619
|
null,
|
|
3620
3620
|
y >= 0 ? y : a
|
|
3621
|
-
]]) : h != null && f == null || c == "add" ? r?.push?.([
|
|
3621
|
+
]]) : h != null && f == null || c == "add" ? r?.push?.([Kr, [
|
|
3622
3622
|
p,
|
|
3623
3623
|
h,
|
|
3624
3624
|
null,
|
|
@@ -3637,9 +3637,9 @@ var Up = {
|
|
|
3637
3637
|
};
|
|
3638
3638
|
}, wy = (e) => ((e instanceof Map || e instanceof Set) && (e = Array.from(e?.values?.())), e), ql = (e, t = [], n) => {
|
|
3639
3639
|
if (!t || !e) return e;
|
|
3640
|
-
n = (t?.[
|
|
3640
|
+
n = (t?.[Gr] ? t?.mapper : n) ?? n, t = (t?.[Gr] ? t?.children : t) ?? t;
|
|
3641
3641
|
const r = Array.from(t?.keys?.() || []), i = wy(t)?.map?.((s, o) => he(s, n, r?.[o] ?? o, e));
|
|
3642
|
-
return Ty(e, i), i?.forEach?.((s) =>
|
|
3642
|
+
return Ty(e, i), i?.forEach?.((s) => Kr(e, s)), e;
|
|
3643
3643
|
}, Sy = class {
|
|
3644
3644
|
#e = document.createComment("");
|
|
3645
3645
|
#t;
|
|
@@ -3678,7 +3678,7 @@ var Up = {
|
|
|
3678
3678
|
const n = L(this.#t?.value) ? this.#i ??= nr(this.#t) : he(this.#t?.value, e == this.#t?.value ? null : this.#u, -1, e);
|
|
3679
3679
|
return this.#i != null && (L(this.#t) || ne(this.#t)) && (this.#i.textContent = "" + (L(this.#t) ? this.#t : this.#t?.value ?? "")), n != null && t && (this.#r = n), n;
|
|
3680
3680
|
}
|
|
3681
|
-
get [
|
|
3681
|
+
get [Gr]() {
|
|
3682
3682
|
return !0;
|
|
3683
3683
|
}
|
|
3684
3684
|
elementForPotentialParent(e) {
|
|
@@ -3745,14 +3745,14 @@ var no = globalThis[zu], Ja = (e, t) => {
|
|
|
3745
3745
|
}
|
|
3746
3746
|
});
|
|
3747
3747
|
}), n;
|
|
3748
|
-
},
|
|
3748
|
+
}, Ir = (e, t, n = -1, r) => t != null ? e = Ir(t?.(e, n), null, -1, r) : ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function" ? Ja(e, (i) => Ir(i, t, n, r)) : _e(e) && !e?.element || _e(e?.element) ? e : ne(e) ? (e instanceof HTMLElement ? We : Ru)(e) : typeof e == "object" && e != null ? Es(e) : typeof e == "function" ? Ir(e?.(), t, n, r) : L(e) && e != null ? nr(e) : document.createComment(":NULL:")), Gl = (e, t) => Iu(e, t) ?? _e(e), Cy = (e, t, n = -1, r) => t != null ? e = he(t?.(e, n), null, -1, r) : ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function" ? Ja(e, (i) => he(i, t, n, r)) : _e(e) && !e?.element ? e : _e(e?.element) ? Iu(e, r) : ne(e) ? (e instanceof HTMLElement ? We : Ru)(e)?.element : typeof e == "object" && e != null ? Es(e) : typeof e == "function" ? he(e?.(), t, n, r) : L(e) && e != null ? nr(e) : document.createComment(":NULL:")), Xn = (e) => (typeof e == "object" || typeof e == "function" || typeof e == "symbol") && e != null, Lu = (e, t, n = -1, r) => {
|
|
3749
3749
|
if ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function") return Ja(e, (i) => Lu(i, t, n, r));
|
|
3750
3750
|
if (Xn(e) && !_e(e)) {
|
|
3751
3751
|
if (rs.has(e)) {
|
|
3752
|
-
const s = Es(e) ??
|
|
3752
|
+
const s = Es(e) ?? Ir(e, t, n, r);
|
|
3753
3753
|
return Gl(s instanceof WeakRef ? s?.deref?.() : s, r);
|
|
3754
3754
|
}
|
|
3755
|
-
const i =
|
|
3755
|
+
const i = Ir(e, t, n, r);
|
|
3756
3756
|
return !t && i != null && i != e && Xn(e) && !_e(e) && e != null && rs.set(e, i), Gl(i, r);
|
|
3757
3757
|
}
|
|
3758
3758
|
return Cy(e, t, n, r);
|
|
@@ -3763,7 +3763,7 @@ var no = globalThis[zu], Ja = (e, t) => {
|
|
|
3763
3763
|
return Xn(e) && to.delete(e), i;
|
|
3764
3764
|
}, Xl = (e, t, n = -1) => {
|
|
3765
3765
|
_e(t) && t != null && t?.parentNode != e && (Number.isInteger(n) && n >= 0 && n < e?.childNodes?.length ? e?.insertBefore?.(t, e?.childNodes?.[n]) : e?.append?.(t));
|
|
3766
|
-
},
|
|
3766
|
+
}, Nr = (e, t, n = -1) => {
|
|
3767
3767
|
if (!(!_e(t) || e == t || t?.parentNode == e)) {
|
|
3768
3768
|
if (t = t?._onUpdate ? Ou(t, e) : t, !t?.parentNode && _e(t)) {
|
|
3769
3769
|
Xl(e, t, n);
|
|
@@ -3775,13 +3775,13 @@ var no = globalThis[zu], Ja = (e, t) => {
|
|
|
3775
3775
|
const i = t?.length ?? 0;
|
|
3776
3776
|
if (Array.isArray(gs(t)) || t instanceof Map || t instanceof Set) {
|
|
3777
3777
|
const s = Py(t)?.map?.((a, l) => he(a, n, l, e))?.filter?.((a) => a != null), o = document.createDocumentFragment();
|
|
3778
|
-
s?.forEach?.((a) =>
|
|
3778
|
+
s?.forEach?.((a) => Nr(o, a)), Nr(e, o, r);
|
|
3779
3779
|
} else {
|
|
3780
3780
|
const s = he(t, n, i, e);
|
|
3781
|
-
s != null &&
|
|
3781
|
+
s != null && Nr(e, s, r);
|
|
3782
3782
|
}
|
|
3783
|
-
},
|
|
3784
|
-
n != null && (t = n?.(t, r)), t?.children && Array.isArray(gs(t?.children)) && (t?.[Kp] || t?.[
|
|
3783
|
+
}, Kr = (e, t, n, r = -1) => {
|
|
3784
|
+
n != null && (t = n?.(t, r)), t?.children && Array.isArray(gs(t?.children)) && (t?.[Kp] || t?.[Gr]) ? Yl(e, t?.children, null, r) : Yl(e, t, null, r);
|
|
3785
3785
|
}, $u = (e, t, n = -1) => !e || t?.parentNode == e && t?.parentNode != null ? t : t?.parentNode != e && !te(t?.parentNode) && Number.isInteger(n) && n >= 0 && Array.from(e?.childNodes || [])?.length > n ? e.childNodes?.[n] : t, is = (e, t, n) => {
|
|
3786
3786
|
if (t?.parentNode) if (t?.parentNode == n?.parentNode)
|
|
3787
3787
|
if (e = t?.parentNode ?? e, t.nextSibling === n) e.insertBefore(n, t);
|
|
@@ -3797,9 +3797,9 @@ var no = globalThis[zu], Ja = (e, t) => {
|
|
|
3797
3797
|
if (s instanceof Text && typeof t == "string") s.textContent = t;
|
|
3798
3798
|
else if (t != null) {
|
|
3799
3799
|
const o = he(t);
|
|
3800
|
-
s?.parentNode == e && s != o && s instanceof Text && o instanceof Text ? s?.textContent != o?.textContent && (s.textContent = o?.textContent?.trim?.() ?? "") : s?.parentNode == e && s != o && s != null && s?.parentNode != null ? is(e, s, o) : (s?.parentNode != e || s?.parentNode == null) &&
|
|
3800
|
+
s?.parentNode == e && s != o && s instanceof Text && o instanceof Text ? s?.textContent != o?.textContent && (s.textContent = o?.textContent?.trim?.() ?? "") : s?.parentNode == e && s != o && s != null && s?.parentNode != null ? is(e, s, o) : (s?.parentNode != e || s?.parentNode == null) && Kr(e, o, null, r);
|
|
3801
3801
|
}
|
|
3802
|
-
},
|
|
3802
|
+
}, zr = (e, t, n, r = -1) => {
|
|
3803
3803
|
const i = he(t, n);
|
|
3804
3804
|
if (e || (e = i?.parentNode), Array.from(e?.childNodes ?? [])?.length < 1) return;
|
|
3805
3805
|
const s = $u(e, i, r);
|
|
@@ -3831,22 +3831,22 @@ var Kl = globalThis[Fu], wa = {
|
|
|
3831
3831
|
})));
|
|
3832
3832
|
},
|
|
3833
3833
|
append(e) {
|
|
3834
|
-
return (...t) => t?.forEach?.((n) =>
|
|
3834
|
+
return (...t) => t?.forEach?.((n) => Kr(e, n, null, -1));
|
|
3835
3835
|
},
|
|
3836
3836
|
appendChildren(e) {
|
|
3837
|
-
return (...t) => t?.forEach?.((n) =>
|
|
3837
|
+
return (...t) => t?.forEach?.((n) => Kr(e, n, null, -1));
|
|
3838
3838
|
},
|
|
3839
3839
|
removeChildren(e) {
|
|
3840
|
-
return (...t) => t?.forEach?.((n) =>
|
|
3840
|
+
return (...t) => t?.forEach?.((n) => zr(e, n, null, -1));
|
|
3841
3841
|
},
|
|
3842
3842
|
removeChild(e) {
|
|
3843
|
-
return (t) =>
|
|
3843
|
+
return (t) => zr(e, t, null, -1);
|
|
3844
3844
|
},
|
|
3845
3845
|
replaceChild(e) {
|
|
3846
3846
|
return (t, n) => is(e, t, n);
|
|
3847
3847
|
},
|
|
3848
3848
|
remove(e) {
|
|
3849
|
-
return () =>
|
|
3849
|
+
return () => zr(e?.parentNode, e, null, -1);
|
|
3850
3850
|
},
|
|
3851
3851
|
replace(e) {
|
|
3852
3852
|
return (t) => is(e?.parentNode, e, t);
|
|
@@ -4008,7 +4008,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4008
4008
|
this.target = e, this.currentTarget = t, this.selector = n, this.eventName = r, this.callback = i;
|
|
4009
4009
|
}
|
|
4010
4010
|
get(e, t, n) {
|
|
4011
|
-
return t === "currentTarget" && typeof this.selector == "string" ?
|
|
4011
|
+
return t === "currentTarget" && typeof this.selector == "string" ? Wr(this.target, this.selector) : t === "currentTarget" && typeof this.selector != "string" ? this.currentTarget ?? this.selector : typeof e?.[t] == "function" ? e?.[t]?.bind?.(e) : Reflect.get(e, t, n);
|
|
4012
4012
|
}
|
|
4013
4013
|
set(e, t, n) {
|
|
4014
4014
|
return Reflect.set(e, t, n);
|
|
@@ -4071,7 +4071,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4071
4071
|
return this._pseudoMap.set(n, i), i;
|
|
4072
4072
|
}
|
|
4073
4073
|
_observeDOMChange(e, t, n) {
|
|
4074
|
-
return typeof t == "string" ?
|
|
4074
|
+
return typeof t == "string" ? Tr(e, t, n) : null;
|
|
4075
4075
|
}
|
|
4076
4076
|
_observeAttributes(e, t, n) {
|
|
4077
4077
|
return typeof this.selector == "string" ? Ha(e, this.selector, t, n) : tu(e ?? this.selector, t, n);
|
|
@@ -4096,7 +4096,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4096
4096
|
return this._observeMap.getOrInsertComputed(t, () => {
|
|
4097
4097
|
const n = this._getArrayPrimary(t);
|
|
4098
4098
|
let r = fe(Array.isArray(n) ? n : [this._getSelected(t)]);
|
|
4099
|
-
return this.direction == "children" &&
|
|
4099
|
+
return this.direction == "children" && Tr(t, typeof this.selector == "string" ? this.selector : void 0, (i, s) => {
|
|
4100
4100
|
(i?.addedNodes?.length > 0 || i?.removedNodes?.length > 0) && (i?.addedNodes?.forEach((o) => {
|
|
4101
4101
|
(o?.element ?? o) && !r?.includes?.(o?.element ?? o) && r?.push?.(o?.element ?? o);
|
|
4102
4102
|
}), i?.removedNodes?.forEach((o) => {
|
|
@@ -4138,21 +4138,30 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4138
4138
|
const d = this._selector(e), h = u?.currentTarget ?? a;
|
|
4139
4139
|
let f = null;
|
|
4140
4140
|
if (u?.composedPath && typeof u.composedPath == "function") {
|
|
4141
|
-
|
|
4141
|
+
let p = u.composedPath() ?? [u?.target ?? u?.currentTarget];
|
|
4142
|
+
p?.length < 1 && (p = [u?.target ?? u?.currentTarget]);
|
|
4142
4143
|
for (const y of p) if (y instanceof HTMLElement || y instanceof Element) {
|
|
4143
|
-
const
|
|
4144
|
-
if (
|
|
4145
|
-
if (
|
|
4146
|
-
f =
|
|
4144
|
+
const v = y?.element ?? y, m = t || u?.type;
|
|
4145
|
+
if (m == "pointerenter" || m == "pointerleave" || m == "mouseenter" || m == "mouseleave" || m == "focus" || m == "blur") {
|
|
4146
|
+
if (typeof d == "string" && v?.matches?.(d)) {
|
|
4147
|
+
f = v;
|
|
4148
|
+
break;
|
|
4149
|
+
} else if (typeof d != "string" && dr(d, v, u)) {
|
|
4150
|
+
f = v;
|
|
4151
|
+
break;
|
|
4152
|
+
}
|
|
4153
|
+
} else if (typeof d == "string") {
|
|
4154
|
+
if (Wr(v, d, u)) {
|
|
4155
|
+
f = v;
|
|
4147
4156
|
break;
|
|
4148
4157
|
}
|
|
4149
|
-
} else if (
|
|
4150
|
-
f =
|
|
4158
|
+
} else if (dr(d, v, u)) {
|
|
4159
|
+
f = v;
|
|
4151
4160
|
break;
|
|
4152
4161
|
}
|
|
4153
4162
|
}
|
|
4154
4163
|
}
|
|
4155
|
-
f || (f = u?.target ?? this._getSelected(e) ?? h, f = f?.element ?? f), typeof d == "string" ?
|
|
4164
|
+
f || (f = u?.target ?? this._getSelected(e) ?? h, f = f?.element ?? f), typeof d == "string" ? dr(h, Wr(f, d, u), u) && this._callbackMap.get(n)?.wrap?.call?.(f, u) : dr(h, d, u) && dr(d, f, u) && this._callbackMap.get(n)?.wrap?.call?.(f, u);
|
|
4156
4165
|
};
|
|
4157
4166
|
a?.addEventListener?.(o, l, r);
|
|
4158
4167
|
const c = this._eventMap.getOrInsert(a, /* @__PURE__ */ new Map()).getOrInsert(o, /* @__PURE__ */ new WeakMap());
|
|
@@ -4195,7 +4204,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4195
4204
|
const u = (typeof o == "string" ? o : "").trim();
|
|
4196
4205
|
c = fe([...(a ?? e)?.querySelectorAll?.(u) ?? []].map((d) => d?.element ?? d));
|
|
4197
4206
|
}
|
|
4198
|
-
return l &&
|
|
4207
|
+
return l && Tr(e, l, (u, d) => {
|
|
4199
4208
|
(u?.addedNodes?.length > 0 || u?.removedNodes?.length > 0) && (u?.addedNodes?.forEach((h) => {
|
|
4200
4209
|
(h?.element ?? h) && !c?.includes?.(h?.element ?? h) && c?.push?.(h?.element ?? h);
|
|
4201
4210
|
}), u?.removedNodes?.forEach((h) => {
|
|
@@ -4295,7 +4304,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4295
4304
|
Ae(r?.deref?.(), s, o);
|
|
4296
4305
|
});
|
|
4297
4306
|
const i = W(t, (s, o) => {
|
|
4298
|
-
Ae(r?.deref?.(), o, s),
|
|
4307
|
+
Ae(r?.deref?.(), o, s), si(r?.deref?.(), s, o, Ae, n, !0);
|
|
4299
4308
|
});
|
|
4300
4309
|
J(t, Symbol.dispose, i), J(e, Symbol.dispose, i);
|
|
4301
4310
|
} else console.warn("Invalid attributes object:", t);
|
|
@@ -4307,7 +4316,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4307
4316
|
Ae(r?.deref?.(), "aria-" + (s?.toString?.() || s || ""), o);
|
|
4308
4317
|
});
|
|
4309
4318
|
const i = W(t, (s, o) => {
|
|
4310
|
-
Ae(r?.deref?.(), "aria-" + (o?.toString?.() || o || ""), s, !0),
|
|
4319
|
+
Ae(r?.deref?.(), "aria-" + (o?.toString?.() || o || ""), s, !0), si(r, s, o, Ae, n, !0);
|
|
4311
4320
|
});
|
|
4312
4321
|
J(t, Symbol.dispose, i), J(e, Symbol.dispose, i);
|
|
4313
4322
|
} else console.warn("Invalid ARIA object:", t);
|
|
@@ -4320,7 +4329,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4320
4329
|
Us(r?.deref?.(), s, o);
|
|
4321
4330
|
});
|
|
4322
4331
|
const i = W(t, (s, o) => {
|
|
4323
|
-
Us(r?.deref?.(), o, s),
|
|
4332
|
+
Us(r?.deref?.(), o, s), si(r?.deref?.(), s, o, Us, n);
|
|
4324
4333
|
});
|
|
4325
4334
|
J(t, Symbol.dispose, i), J(e, Symbol.dispose, i);
|
|
4326
4335
|
} else console.warn("Invalid dataset object:", t);
|
|
@@ -4338,7 +4347,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4338
4347
|
R(r?.deref?.(), s, o);
|
|
4339
4348
|
});
|
|
4340
4349
|
const i = W(t, (s, o) => {
|
|
4341
|
-
R(r?.deref?.(), o, s),
|
|
4350
|
+
R(r?.deref?.(), o, s), si(r?.deref?.(), s, o, R, n?.deref?.());
|
|
4342
4351
|
});
|
|
4343
4352
|
J(t, Symbol.dispose, i), J(e, Symbol.dispose, i);
|
|
4344
4353
|
} else console.warn("Invalid styles object:", t);
|
|
@@ -4447,7 +4456,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4447
4456
|
}
|
|
4448
4457
|
}
|
|
4449
4458
|
constructor(e, t = (r) => r, n = null) {
|
|
4450
|
-
|
|
4459
|
+
fi(t) && (typeof e == "function" || typeof e == "object") && !fi(e) && ([e, t] = [t, e]), !n && t != null && typeof t == "object" && !fi(t) && (n = t), this.#i = document.createComment(""), this.#s = /* @__PURE__ */ new WeakMap(), this.#o = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#n = (t != null ? typeof t == "function" ? t : typeof t == "object" ? t?.mapper : null : null) ?? ((s) => s), this.#e = (fi(e) ? e : e?.iterator ?? t?.iterator ?? e) ?? [], this.#t = document.createDocumentFragment();
|
|
4451
4460
|
const r = {
|
|
4452
4461
|
removeNotExistsWhenHasPrimitives: !0,
|
|
4453
4462
|
uniquePrimitives: !0,
|
|
@@ -4455,7 +4464,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4455
4464
|
}, i = (te(n) ? null : n) || {};
|
|
4456
4465
|
this.#u = Object.assign(r, i), this.boundParent = te(this.#u?.boundParent) ?? te(n) ?? null, this.boundParent || this.#u.preMap && (ql(this.#t, this.#f(), this.mapper.bind(this)), this.#t.childNodes.length === 0 && this.#t.appendChild(this.#i));
|
|
4457
4466
|
}
|
|
4458
|
-
get [
|
|
4467
|
+
get [Gr]() {
|
|
4459
4468
|
return !0;
|
|
4460
4469
|
}
|
|
4461
4470
|
elementForPotentialParent(e) {
|
|
@@ -4557,7 +4566,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4557
4566
|
}
|
|
4558
4567
|
get element() {
|
|
4559
4568
|
const e = He(this.mapped, this.current?.value ?? -1, this.boundParent) ?? this.#e, t = te(e?.parentElement) ? e?.parentElement : this.boundParent;
|
|
4560
|
-
return this.boundParent ??= te(t) ?? this.boundParent, e != null && (e?.parentNode != this.boundParent || !e?.parentNode) && this.boundParent &&
|
|
4569
|
+
return this.boundParent ??= te(t) ?? this.boundParent, e != null && (e?.parentNode != this.boundParent || !e?.parentNode) && this.boundParent && Nr(this.boundParent, e), queueMicrotask(() => {
|
|
4561
4570
|
const n = te(e?.parentElement) ? e?.parentElement : this.boundParent;
|
|
4562
4571
|
this.boundParent ??= te(n) ?? this.boundParent;
|
|
4563
4572
|
}), e;
|
|
@@ -4579,8 +4588,8 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4579
4588
|
} catch (l) {
|
|
4580
4589
|
console.warn(l);
|
|
4581
4590
|
}
|
|
4582
|
-
else
|
|
4583
|
-
else a && !o &&
|
|
4591
|
+
else Nr(s, o);
|
|
4592
|
+
else a && !o && zr(s, a);
|
|
4584
4593
|
}
|
|
4585
4594
|
}
|
|
4586
4595
|
}, Gy = class {
|
|
@@ -4673,7 +4682,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4673
4682
|
} catch {
|
|
4674
4683
|
return {};
|
|
4675
4684
|
}
|
|
4676
|
-
},
|
|
4685
|
+
}, gr = () => {
|
|
4677
4686
|
try {
|
|
4678
4687
|
sessionStorage.setItem(ju, JSON.stringify(B?.entries));
|
|
4679
4688
|
} catch {
|
|
@@ -4711,7 +4720,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4711
4720
|
view: n,
|
|
4712
4721
|
timestamp: Date.now()
|
|
4713
4722
|
}), B.entries = r, t.timestamp)
|
|
4714
|
-
B.index = t.index || 0, B.view = t.view || n, B?.entries?.[B?.index] || (B.entries[B.index] = t,
|
|
4723
|
+
B.index = t.index || 0, B.view = t.view || n, B?.entries?.[B?.index] || (B.entries[B.index] = t, gr());
|
|
4715
4724
|
else {
|
|
4716
4725
|
const s = {
|
|
4717
4726
|
index: i,
|
|
@@ -4720,7 +4729,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4720
4729
|
view: n,
|
|
4721
4730
|
timestamp: Date.now()
|
|
4722
4731
|
};
|
|
4723
|
-
history?.replaceState?.(gi(s), "", location.hash), B?.entries && (B.entries[i] = s),
|
|
4732
|
+
history?.replaceState?.(gi(s), "", location.hash), B?.entries && (B.entries[i] = s), gr();
|
|
4724
4733
|
}
|
|
4725
4734
|
mn(Fn()?.action || "REPLACE", n), history.go = (s = 0) => {
|
|
4726
4735
|
const o = Fn();
|
|
@@ -4739,7 +4748,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4739
4748
|
view: a ? String(a) : l.view || "",
|
|
4740
4749
|
timestamp: Date.now()
|
|
4741
4750
|
}, d = Ky?.(gi(u, s), o, a);
|
|
4742
|
-
return B.entries = B?.entries?.slice?.(0, c), B.entries?.push?.(u),
|
|
4751
|
+
return B.entries = B?.entries?.slice?.(0, c), B.entries?.push?.(u), gr(), mn("PUSH", u.view), d;
|
|
4743
4752
|
}, history.replaceState = (s, o, a) => {
|
|
4744
4753
|
const l = Fn(), c = l?.index || 0, u = {
|
|
4745
4754
|
...l,
|
|
@@ -4749,7 +4758,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4749
4758
|
view: a ? String(a) : l?.view || "",
|
|
4750
4759
|
timestamp: Date.now()
|
|
4751
4760
|
}, d = Jy?.(gi(u, s), o, a);
|
|
4752
|
-
return B?.entries && (B.entries[c] = u, B.entries[B.index].view = a ? String(a) : l?.view || ""),
|
|
4761
|
+
return B?.entries && (B.entries[c] = u, B.entries[B.index].view = a ? String(a) : l?.view || ""), gr(), mn("REPLACE", u.view), d;
|
|
4753
4762
|
}, T(window, "popstate", (s) => {
|
|
4754
4763
|
const o = s.state?.[jn], a = B.index ?? 0;
|
|
4755
4764
|
if (o) {
|
|
@@ -4764,7 +4773,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4764
4773
|
view: location.hash || "#",
|
|
4765
4774
|
timestamp: Date.now()
|
|
4766
4775
|
};
|
|
4767
|
-
history.replaceState(gi(l, s.state), "", location.hash), B.entries = B?.entries?.slice?.(0, l.index), B?.entries?.push?.(l),
|
|
4776
|
+
history.replaceState(gi(l, s.state), "", location.hash), B.entries = B?.entries?.slice?.(0, l.index), B?.entries?.push?.(l), gr(), mn("PUSH", l.view);
|
|
4768
4777
|
return;
|
|
4769
4778
|
}
|
|
4770
4779
|
}), T(window, "hashchange", (s) => {
|
|
@@ -4799,10 +4808,10 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4799
4808
|
}), n;
|
|
4800
4809
|
}, Uu = /* @__PURE__ */ (function(e) {
|
|
4801
4810
|
return e[e.CONTEXT_MENU = 100] = "CONTEXT_MENU", e[e.DROPDOWN = 90] = "DROPDOWN", e[e.MODAL = 80] = "MODAL", e[e.DIALOG = 70] = "DIALOG", e[e.SIDEBAR = 60] = "SIDEBAR", e[e.OVERLAY = 50] = "OVERLAY", e[e.PANEL = 40] = "PANEL", e[e.TOAST = 30] = "TOAST", e[e.TASK = 20] = "TASK", e[e.VIEW = 10] = "VIEW", e[e.DEFAULT = 0] = "DEFAULT", e;
|
|
4802
|
-
})({}), Mn = /* @__PURE__ */ new Map(), so = !1,
|
|
4811
|
+
})({}), Mn = /* @__PURE__ */ new Map(), so = !1, br = !1, Zl = 0, Kn = {}, Ht = !1, Ye = (e) => {
|
|
4803
4812
|
Ht = e;
|
|
4804
|
-
}, Za = () => Ht,
|
|
4805
|
-
const t = e.id ||
|
|
4813
|
+
}, Za = () => Ht, oi = () => `closeable-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, lr = (e) => {
|
|
4814
|
+
const t = e.id || oi(), n = Object.assign(e, { id: t });
|
|
4806
4815
|
return n?.hashId == null && (n.hashId = t), Mn.set(t, n), Kn.debug && console.log("[BackNav] Registered:", t, "priority:", e.priority), () => nm(t);
|
|
4807
4816
|
}, nm = (e) => {
|
|
4808
4817
|
const t = Mn.delete(e);
|
|
@@ -4815,11 +4824,11 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4815
4824
|
for (const n of Mn.values()) n.group === e && n.isActive() && (Mn?.delete?.(n.id), n.close() !== !1 && t++);
|
|
4816
4825
|
return t;
|
|
4817
4826
|
}, Hw = (e) => Vu(e) != null, sm = (e) => {
|
|
4818
|
-
if (
|
|
4827
|
+
if (br) return !1;
|
|
4819
4828
|
if (Ht)
|
|
4820
4829
|
return Ht = !1, !1;
|
|
4821
4830
|
if (e?.state?.action) return !1;
|
|
4822
|
-
|
|
4831
|
+
br = !0;
|
|
4823
4832
|
try {
|
|
4824
4833
|
Ht = !0;
|
|
4825
4834
|
let t;
|
|
@@ -4827,11 +4836,11 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4827
4836
|
const n = B.entries[B.index + 1];
|
|
4828
4837
|
n && (t = n.view);
|
|
4829
4838
|
}
|
|
4830
|
-
return im(t) ?? !0 ? (Ht = !1,
|
|
4839
|
+
return im(t) ?? !0 ? (Ht = !1, br = !1, !1) : (e.preventDefault?.(), Ht = !0, Zy?.(), setTimeout(() => {
|
|
4831
4840
|
Ht = !1;
|
|
4832
|
-
}, 0),
|
|
4841
|
+
}, 0), br = !1, !0);
|
|
4833
4842
|
} finally {
|
|
4834
|
-
return Ht = !1,
|
|
4843
|
+
return Ht = !1, br = !1, !1;
|
|
4835
4844
|
}
|
|
4836
4845
|
}, om = (e = {}) => {
|
|
4837
4846
|
if (so)
|
|
@@ -4853,14 +4862,14 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4853
4862
|
t?.(), so = !1, Mn.clear(), Kn.debug && console.log("[BackNav] Destroyed");
|
|
4854
4863
|
};
|
|
4855
4864
|
}, am = (e, t, n) => lr({
|
|
4856
|
-
id: `ctx-menu-${e.id ||
|
|
4865
|
+
id: `ctx-menu-${e.id || oi()}`,
|
|
4857
4866
|
priority: 100,
|
|
4858
4867
|
element: new WeakRef(e),
|
|
4859
4868
|
group: "context-menu",
|
|
4860
4869
|
isActive: () => t.value === !0,
|
|
4861
4870
|
close: () => (t.value = !1, n?.(), !1)
|
|
4862
4871
|
}), lm = (e, t, n) => lr({
|
|
4863
|
-
id: `modal-${e.id ||
|
|
4872
|
+
id: `modal-${e.id || oi()}`,
|
|
4864
4873
|
priority: 80,
|
|
4865
4874
|
element: new WeakRef(e),
|
|
4866
4875
|
group: "modal",
|
|
@@ -4873,7 +4882,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4873
4882
|
}),
|
|
4874
4883
|
close: () => (n?.(), e?.remove?.(), !1)
|
|
4875
4884
|
}), Bw = (e, t, n) => lr({
|
|
4876
|
-
id: `sidebar-${e.id ||
|
|
4885
|
+
id: `sidebar-${e.id || oi()}`,
|
|
4877
4886
|
priority: 60,
|
|
4878
4887
|
element: new WeakRef(e),
|
|
4879
4888
|
group: "sidebar",
|
|
@@ -4883,7 +4892,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
4883
4892
|
},
|
|
4884
4893
|
close: () => (t.value = !1, n?.(), !1)
|
|
4885
4894
|
}), jw = (e, t, n, r = 50) => lr({
|
|
4886
|
-
id: `overlay-${e.id ||
|
|
4895
|
+
id: `overlay-${e.id || oi()}`,
|
|
4887
4896
|
priority: r,
|
|
4888
4897
|
element: new WeakRef(e),
|
|
4889
4898
|
group: "overlay",
|
|
@@ -5679,7 +5688,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5679
5688
|
}
|
|
5680
5689
|
}, Jw = (e = 0, t = 0, n = 0, r = 1) => new dn(e, t, n, r), Ju = class Qu {
|
|
5681
5690
|
_elements;
|
|
5682
|
-
constructor(t = 1, n = 0, r = 0, i = 0, s = 0, o = 1, a = 0, l = 0, c = 0, u = 0, d = 1, h = 0, f = 0, p = 0, y = 0,
|
|
5691
|
+
constructor(t = 1, n = 0, r = 0, i = 0, s = 0, o = 1, a = 0, l = 0, c = 0, u = 0, d = 1, h = 0, f = 0, p = 0, y = 0, v = 1) {
|
|
5683
5692
|
this._elements = [
|
|
5684
5693
|
typeof t == "number" ? w(t) : t,
|
|
5685
5694
|
typeof n == "number" ? w(n) : n,
|
|
@@ -5696,7 +5705,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5696
5705
|
typeof f == "number" ? w(f) : f,
|
|
5697
5706
|
typeof p == "number" ? w(p) : p,
|
|
5698
5707
|
typeof y == "number" ? w(y) : y,
|
|
5699
|
-
typeof
|
|
5708
|
+
typeof v == "number" ? w(v) : v
|
|
5700
5709
|
];
|
|
5701
5710
|
}
|
|
5702
5711
|
get elements() {
|
|
@@ -5852,8 +5861,8 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5852
5861
|
clone() {
|
|
5853
5862
|
return new Qu(this._elements[0].value, this._elements[1].value, this._elements[2].value, this._elements[3].value, this._elements[4].value, this._elements[5].value, this._elements[6].value, this._elements[7].value, this._elements[8].value, this._elements[9].value, this._elements[10].value, this._elements[11].value, this._elements[12].value, this._elements[13].value, this._elements[14].value, this._elements[15].value);
|
|
5854
5863
|
}
|
|
5855
|
-
set(t, n, r, i, s, o, a, l, c, u, d, h, f, p, y,
|
|
5856
|
-
return this._elements[0].value = t, this._elements[1].value = n, this._elements[2].value = r, this._elements[3].value = i, this._elements[4].value = s, this._elements[5].value = o, this._elements[6].value = a, this._elements[7].value = l, this._elements[8].value = c, this._elements[9].value = u, this._elements[10].value = d, this._elements[11].value = h, this._elements[12].value = f, this._elements[13].value = p, this._elements[14].value = y, this._elements[15].value =
|
|
5864
|
+
set(t, n, r, i, s, o, a, l, c, u, d, h, f, p, y, v) {
|
|
5865
|
+
return this._elements[0].value = t, this._elements[1].value = n, this._elements[2].value = r, this._elements[3].value = i, this._elements[4].value = s, this._elements[5].value = o, this._elements[6].value = a, this._elements[7].value = l, this._elements[8].value = c, this._elements[9].value = u, this._elements[10].value = d, this._elements[11].value = h, this._elements[12].value = f, this._elements[13].value = p, this._elements[14].value = y, this._elements[15].value = v, this;
|
|
5857
5866
|
}
|
|
5858
5867
|
identity() {
|
|
5859
5868
|
return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
@@ -5887,14 +5896,14 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5887
5896
|
e.w
|
|
5888
5897
|
];
|
|
5889
5898
|
throw new Error("Unsupported vector type");
|
|
5890
|
-
}, t0 = (e, t, n) => on(e, new Y(t, n)), n0 = (e, t, n = t) => new Y(
|
|
5891
|
-
const n =
|
|
5892
|
-
return new Y(
|
|
5899
|
+
}, t0 = (e, t, n) => on(e, new Y(t, n)), n0 = (e, t, n = t) => new Y(b([e.x, t], () => e.x.value * t.value), b([e.y, n], () => e.y.value * n.value)), r0 = (e, t) => {
|
|
5900
|
+
const n = b([t], () => Math.cos(t.value)), r = b([t], () => Math.sin(t.value));
|
|
5901
|
+
return new Y(b([
|
|
5893
5902
|
e.x,
|
|
5894
5903
|
e.y,
|
|
5895
5904
|
n,
|
|
5896
5905
|
r
|
|
5897
|
-
], () => e.x.value * n.value - e.y.value * r.value),
|
|
5906
|
+
], () => e.x.value * n.value - e.y.value * r.value), b([
|
|
5898
5907
|
e.x,
|
|
5899
5908
|
e.y,
|
|
5900
5909
|
n,
|
|
@@ -5903,7 +5912,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5903
5912
|
}, nl = (e = 0, t = 0, n = 0, r = 0) => ({
|
|
5904
5913
|
position: X(e, t),
|
|
5905
5914
|
size: X(n, r)
|
|
5906
|
-
}), Zu = (e) => on(e.position, Sa(e.size, w(0.5))), ef = (e, t) =>
|
|
5915
|
+
}), Zu = (e) => on(e.position, Sa(e.size, w(0.5))), ef = (e, t) => b([
|
|
5907
5916
|
e.position.x,
|
|
5908
5917
|
e.position.y,
|
|
5909
5918
|
e.size.x,
|
|
@@ -5913,7 +5922,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5913
5922
|
], () => {
|
|
5914
5923
|
const n = t.x.value >= e.position.x.value && t.x.value <= e.position.x.value + e.size.x.value, r = t.y.value >= e.position.y.value && t.y.value <= e.position.y.value + e.size.y.value;
|
|
5915
5924
|
return n && r;
|
|
5916
|
-
}), Tm = (e, t) =>
|
|
5925
|
+
}), Tm = (e, t) => b([
|
|
5917
5926
|
e.position.x,
|
|
5918
5927
|
e.position.y,
|
|
5919
5928
|
e.size.x,
|
|
@@ -5926,12 +5935,12 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5926
5935
|
const n = e.position.x.value + e.size.x.value, r = e.position.y.value + e.size.y.value, i = t.position.x.value + t.size.x.value, s = t.position.y.value + t.size.y.value;
|
|
5927
5936
|
return !(e.position.x.value > i || n < t.position.x.value || e.position.y.value > s || r < t.position.y.value);
|
|
5928
5937
|
}), Mm = (e, t) => {
|
|
5929
|
-
const n =
|
|
5938
|
+
const n = b([e.position.x, t.position.x], () => Math.min(e.position.x.value, t.position.x.value)), r = b([e.position.y, t.position.y], () => Math.min(e.position.y.value, t.position.y.value)), i = b([
|
|
5930
5939
|
e.position.x,
|
|
5931
5940
|
e.size.x,
|
|
5932
5941
|
t.position.x,
|
|
5933
5942
|
t.size.x
|
|
5934
|
-
], () => Math.max(e.position.x.value + e.size.x.value, t.position.x.value + t.size.x.value)), s =
|
|
5943
|
+
], () => Math.max(e.position.x.value + e.size.x.value, t.position.x.value + t.size.x.value)), s = b([
|
|
5935
5944
|
e.position.y,
|
|
5936
5945
|
e.size.y,
|
|
5937
5946
|
t.position.y,
|
|
@@ -5939,20 +5948,20 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5939
5948
|
], () => Math.max(e.position.y.value + e.size.y.value, t.position.y.value + t.size.y.value));
|
|
5940
5949
|
return {
|
|
5941
5950
|
position: new Y(n, r),
|
|
5942
|
-
size: new Y(
|
|
5951
|
+
size: new Y(b([i, n], () => i.value - n.value), b([s, r], () => s.value - r.value))
|
|
5943
5952
|
};
|
|
5944
|
-
}, Ps = (e, t) => new Y(
|
|
5953
|
+
}, Ps = (e, t) => new Y(b([
|
|
5945
5954
|
e.x,
|
|
5946
5955
|
t.position.x,
|
|
5947
5956
|
t.size.x
|
|
5948
|
-
], () => Math.max(t.position.x.value, Math.min(e.x.value, t.position.x.value + t.size.x.value))),
|
|
5957
|
+
], () => Math.max(t.position.x.value, Math.min(e.x.value, t.position.x.value + t.size.x.value))), b([
|
|
5949
5958
|
e.y,
|
|
5950
5959
|
t.position.y,
|
|
5951
5960
|
t.size.y
|
|
5952
5961
|
], () => Math.max(t.position.y.value, Math.min(e.y.value, t.position.y.value + t.size.y.value)))), Rm = (e, t) => {
|
|
5953
5962
|
const n = Ps(e, t);
|
|
5954
5963
|
return tf(ss(e, n));
|
|
5955
|
-
}, Om = (e) =>
|
|
5964
|
+
}, Om = (e) => b([e.size.x, e.size.y], () => e.size.x.value * e.size.y.value), i0 = (e, t) => {
|
|
5956
5965
|
const n = Zu(e), r = Sa(e.size, t);
|
|
5957
5966
|
return {
|
|
5958
5967
|
position: ss(n, Sa(r, w(0.5))),
|
|
@@ -5972,7 +5981,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5972
5981
|
position: n[1],
|
|
5973
5982
|
size: X(0, 0)
|
|
5974
5983
|
});
|
|
5975
|
-
}, o0 = (e, t) => new Y(
|
|
5984
|
+
}, o0 = (e, t) => new Y(b([e.x, t.position.x], () => e.x.value - t.position.x.value), b([e.y, t.position.y], () => e.y.value - t.position.y.value)), a0 = (e, t) => on(e, t.position), l0 = (e, t, n = "fit") => b([
|
|
5976
5985
|
e.size.x,
|
|
5977
5986
|
e.size.y,
|
|
5978
5987
|
t
|
|
@@ -5983,26 +5992,26 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
5983
5992
|
position: e.position,
|
|
5984
5993
|
size: X(s, o)
|
|
5985
5994
|
};
|
|
5986
|
-
}), c0 = (e, t, n = w(0.1)) =>
|
|
5995
|
+
}), c0 = (e, t, n = w(0.1)) => b([
|
|
5987
5996
|
e,
|
|
5988
5997
|
t,
|
|
5989
5998
|
n
|
|
5990
5999
|
], () => {
|
|
5991
6000
|
const r = t.value - e.value;
|
|
5992
6001
|
return e.value + r * n.value;
|
|
5993
|
-
}), u0 = (e, t, n, r) =>
|
|
6002
|
+
}), u0 = (e, t, n, r) => b([
|
|
5994
6003
|
e,
|
|
5995
6004
|
t,
|
|
5996
6005
|
n,
|
|
5997
6006
|
r
|
|
5998
6007
|
], () => (e.value - t.value) / (n.value - t.value) * r.value), f0 = (e, t, n) => {
|
|
5999
|
-
const r =
|
|
6008
|
+
const r = b([e, t], () => {
|
|
6000
6009
|
const i = t.value / e.value;
|
|
6001
6010
|
return Math.max(20, i * t.value);
|
|
6002
6011
|
});
|
|
6003
6012
|
return {
|
|
6004
6013
|
thumbSize: r,
|
|
6005
|
-
thumbPosition:
|
|
6014
|
+
thumbPosition: b([
|
|
6006
6015
|
n,
|
|
6007
6016
|
e,
|
|
6008
6017
|
t,
|
|
@@ -6014,7 +6023,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6014
6023
|
};
|
|
6015
6024
|
}, d0 = (e, t, n = "x") => {
|
|
6016
6025
|
const r = n === "x" ? t.position.x : t.position.y, i = n === "x" ? t.size.x : t.size.y;
|
|
6017
|
-
return
|
|
6026
|
+
return b([
|
|
6018
6027
|
e,
|
|
6019
6028
|
r,
|
|
6020
6029
|
i
|
|
@@ -6022,21 +6031,21 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6022
6031
|
const s = e.value - r.value;
|
|
6023
6032
|
return Math.max(0, Math.min(1, s / i.value));
|
|
6024
6033
|
});
|
|
6025
|
-
}, h0 = (e) =>
|
|
6034
|
+
}, h0 = (e) => b([e], () => {
|
|
6026
6035
|
const t = e.value;
|
|
6027
6036
|
return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
6028
|
-
}), p0 = (e) =>
|
|
6037
|
+
}), p0 = (e) => b([e], () => {
|
|
6029
6038
|
let t = e.value;
|
|
6030
6039
|
const n = 7.5625, r = 2.75;
|
|
6031
6040
|
return t < 1 / r ? n * t * t : t < 2 / r ? (t -= 1.5 / r, n * t * t + 0.75) : t < 2.5 / r ? (t -= 2.25 / r, n * t * t + 0.9375) : (t -= 2.625 / r, n * t * t + 0.984375);
|
|
6032
|
-
}), y0 = (e, t = w(0.95), n = w(0.01)) =>
|
|
6041
|
+
}), y0 = (e, t = w(0.95), n = w(0.01)) => b([
|
|
6033
6042
|
e,
|
|
6034
6043
|
t,
|
|
6035
6044
|
n
|
|
6036
6045
|
], () => {
|
|
6037
6046
|
const r = e.value * t.value;
|
|
6038
6047
|
return Math.abs(r) < n.value ? 0 : r;
|
|
6039
|
-
}), m0 = (e, t, n, r = w(50)) =>
|
|
6048
|
+
}), m0 = (e, t, n, r = w(50)) => b([
|
|
6040
6049
|
e,
|
|
6041
6050
|
t,
|
|
6042
6051
|
n,
|
|
@@ -6054,7 +6063,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6054
6063
|
r && typeof r == "object" && "value" in r ? t.push(r) : Array.isArray(r) ? r.forEach(n) : r && typeof r == "object" && Object.values(r).forEach(n);
|
|
6055
6064
|
};
|
|
6056
6065
|
return n(e), t;
|
|
6057
|
-
},
|
|
6066
|
+
}, b = (e, t) => {
|
|
6058
6067
|
const n = () => e.map((o) => o && typeof o == "object" && "value" in o ? o.value : o), r = t(...n());
|
|
6059
6068
|
if (typeof r == "number") {
|
|
6060
6069
|
const o = w(r), a = () => {
|
|
@@ -6067,48 +6076,48 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6067
6076
|
i = t(...n());
|
|
6068
6077
|
};
|
|
6069
6078
|
return tc(e).forEach((o) => W(o, s)), i;
|
|
6070
|
-
}, v0 = (e, t) =>
|
|
6079
|
+
}, v0 = (e, t) => b([e, t], () => e.value + t.value), g0 = (e, t) => b([e, t], () => e.value - t.value), b0 = (e, t) => b([e, t], () => e.value * t.value), w0 = (e, t) => b([e, t], () => e.value / t.value), S0 = (e, t) => b([e, t], () => e.value % t.value), x0 = (e, t) => b([e, t], () => Math.pow(e.value, t.value)), _0 = (e) => b(e, () => Math.sin(e.value)), k0 = (e) => b(e, () => Math.cos(e.value)), E0 = (e) => b(e, () => Math.tan(e.value)), C0 = (e) => b(e, () => Math.asin(e.value)), P0 = (e) => b(e, () => Math.acos(e.value)), A0 = (e) => b(e, () => Math.atan(e.value)), T0 = (e, t) => b([e, t], () => Math.atan2(e.value, t.value)), M0 = (e, t) => b([e, t], () => Math.hypot(e.value, t.value)), R0 = (e) => b(e, () => Math.sqrt(e.value)), O0 = (e) => b(e, () => Math.cbrt(e.value)), I0 = (e) => b(e, () => Math.abs(e.value)), N0 = (e) => b(e, () => Math.sign(e.value)), z0 = (e, t, n) => b([
|
|
6071
6080
|
e,
|
|
6072
6081
|
t,
|
|
6073
6082
|
n
|
|
6074
|
-
], () => Math.min(Math.max(e.value, t.value), n.value)), on = (e, t) => new Y(
|
|
6083
|
+
], () => Math.min(Math.max(e.value, t.value), n.value)), on = (e, t) => new Y(b([e.x, t.x], () => e.x.value + t.x.value), b([e.y, t.y], () => e.y.value + t.y.value)), ss = (e, t) => new Y(b([e.x, t.x], () => e.x.value - t.x.value), b([e.y, t.y], () => e.y.value - t.y.value)), Sa = (e, t) => new Y(b([e.x, t], () => e.x.value * t.value), b([e.y, t], () => e.y.value * t.value)), L0 = (e, t) => new Y(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value)), $0 = (e, t) => b([
|
|
6075
6084
|
e.x,
|
|
6076
6085
|
e.y,
|
|
6077
6086
|
t.x,
|
|
6078
6087
|
t.y
|
|
6079
|
-
], () => e.x.value * t.x.value + e.y.value * t.y.value), tf = (e) =>
|
|
6088
|
+
], () => e.x.value * t.x.value + e.y.value * t.y.value), tf = (e) => b([e.x, e.y], () => Math.sqrt(e.x.value * e.x.value + e.y.value * e.y.value)), D0 = (e) => {
|
|
6080
6089
|
const t = tf(e);
|
|
6081
|
-
return new Y(
|
|
6082
|
-
}, F0 = (e, t) => new Xt(
|
|
6090
|
+
return new Y(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value));
|
|
6091
|
+
}, F0 = (e, t) => new Xt(b([e.x, t.x], () => e.x.value + t.x.value), b([e.y, t.y], () => e.y.value + t.y.value), b([e.z, t.z], () => e.z.value + t.z.value)), W0 = (e, t) => new Xt(b([e.x, t.x], () => e.x.value - t.x.value), b([e.y, t.y], () => e.y.value - t.y.value), b([e.z, t.z], () => e.z.value - t.z.value)), H0 = (e, t) => new Xt(b([e.x, t], () => e.x.value * t.value), b([e.y, t], () => e.y.value * t.value), b([e.z, t], () => e.z.value * t.value)), B0 = (e, t) => new Xt(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value), b([e.z, t], () => e.z.value / t.value)), j0 = (e, t) => b([
|
|
6083
6092
|
e.x,
|
|
6084
6093
|
e.y,
|
|
6085
6094
|
e.z,
|
|
6086
6095
|
t.x,
|
|
6087
6096
|
t.y,
|
|
6088
6097
|
t.z
|
|
6089
|
-
], () => e.x.value * t.x.value + e.y.value * t.y.value + e.z.value * t.z.value), U0 = (e, t) => new Xt(
|
|
6098
|
+
], () => e.x.value * t.x.value + e.y.value * t.y.value + e.z.value * t.z.value), U0 = (e, t) => new Xt(b([
|
|
6090
6099
|
e.y,
|
|
6091
6100
|
e.z,
|
|
6092
6101
|
t.y,
|
|
6093
6102
|
t.z
|
|
6094
|
-
], () => e.y.value * t.z.value - e.z.value * t.y.value),
|
|
6103
|
+
], () => e.y.value * t.z.value - e.z.value * t.y.value), b([
|
|
6095
6104
|
e.z,
|
|
6096
6105
|
e.x,
|
|
6097
6106
|
t.z,
|
|
6098
6107
|
t.x
|
|
6099
|
-
], () => e.z.value * t.x.value - e.x.value * t.z.value),
|
|
6108
|
+
], () => e.z.value * t.x.value - e.x.value * t.z.value), b([
|
|
6100
6109
|
e.x,
|
|
6101
6110
|
e.y,
|
|
6102
6111
|
t.x,
|
|
6103
6112
|
t.y
|
|
6104
|
-
], () => e.x.value * t.y.value - e.y.value * t.x.value)), Im = (e) =>
|
|
6113
|
+
], () => e.x.value * t.y.value - e.y.value * t.x.value)), Im = (e) => b([
|
|
6105
6114
|
e.x,
|
|
6106
6115
|
e.y,
|
|
6107
6116
|
e.z
|
|
6108
6117
|
], () => Math.sqrt(e.x.value * e.x.value + e.y.value * e.y.value + e.z.value * e.z.value)), V0 = (e) => {
|
|
6109
6118
|
const t = Im(e);
|
|
6110
|
-
return new Xt(
|
|
6111
|
-
}, q0 = (e, t) => new dn(
|
|
6119
|
+
return new Xt(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value), b([e.z, t], () => e.z.value / t.value));
|
|
6120
|
+
}, q0 = (e, t) => new dn(b([e.x, t.x], () => e.x.value + t.x.value), b([e.y, t.y], () => e.y.value + t.y.value), b([e.z, t.z], () => e.z.value + t.z.value), b([e.w, t.w], () => e.w.value + t.w.value)), G0 = (e, t) => new dn(b([e.x, t.x], () => e.x.value - t.x.value), b([e.y, t.y], () => e.y.value - t.y.value), b([e.z, t.z], () => e.z.value - t.z.value), b([e.w, t.w], () => e.w.value - t.w.value)), X0 = (e, t) => new dn(b([e.x, t], () => e.x.value * t.value), b([e.y, t], () => e.y.value * t.value), b([e.z, t], () => e.z.value * t.value), b([e.w, t], () => e.w.value * t.value)), Y0 = (e, t) => new dn(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value), b([e.z, t], () => e.z.value / t.value), b([e.w, t], () => e.w.value / t.value)), K0 = (e, t) => b([
|
|
6112
6121
|
e.x,
|
|
6113
6122
|
e.y,
|
|
6114
6123
|
e.z,
|
|
@@ -6117,14 +6126,14 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6117
6126
|
t.y,
|
|
6118
6127
|
t.z,
|
|
6119
6128
|
t.w
|
|
6120
|
-
], () => e.x.value * t.x.value + e.y.value * t.y.value + e.z.value * t.z.value + e.w.value * t.w.value), Nm = (e) =>
|
|
6129
|
+
], () => e.x.value * t.x.value + e.y.value * t.y.value + e.z.value * t.z.value + e.w.value * t.w.value), Nm = (e) => b([
|
|
6121
6130
|
e.x,
|
|
6122
6131
|
e.y,
|
|
6123
6132
|
e.z,
|
|
6124
6133
|
e.w
|
|
6125
6134
|
], () => Math.sqrt(e.x.value * e.x.value + e.y.value * e.y.value + e.z.value * e.z.value + e.w.value * e.w.value)), J0 = (e) => {
|
|
6126
6135
|
const t = Nm(e);
|
|
6127
|
-
return new dn(
|
|
6136
|
+
return new dn(b([e.x, t], () => e.x.value / t.value), b([e.y, t], () => e.y.value / t.value), b([e.z, t], () => e.z.value / t.value), b([e.w, t], () => e.w.value / t.value));
|
|
6128
6137
|
}, mt = (e, t, n, ...r) => {
|
|
6129
6138
|
if (n == Gu || n == Ae) {
|
|
6130
6139
|
const c = En?.get?.([e, Ae])?.[r[0]]?.[0];
|
|
@@ -6140,7 +6149,7 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6140
6149
|
const n = at(e);
|
|
6141
6150
|
return Fd(n) ? fe(Jc(n)) : fn(n, t);
|
|
6142
6151
|
}, Hm = (e, t = 0, n) => {
|
|
6143
|
-
const r = toRef(e), i = (c) => at(r)?.[["scrollWidth", "scrollHeight"][t] || "scrollWidth"] - 1 || 1, s = As(e, ["inline", "block"][t]), o = Qt(e, ["inline", "block"][t], "content-box"), a =
|
|
6152
|
+
const r = toRef(e), i = (c) => at(r)?.[["scrollWidth", "scrollHeight"][t] || "scrollWidth"] - 1 || 1, s = As(e, ["inline", "block"][t]), o = Qt(e, ["inline", "block"][t], "content-box"), a = qr(s, i), l = () => {
|
|
6144
6153
|
s?.[lt]?.(), a?.[lt]?.();
|
|
6145
6154
|
};
|
|
6146
6155
|
return W(o, (c) => {
|
|
@@ -6153,14 +6162,14 @@ var Oy = (e) => (typeof e == "object" || typeof e == "function") && e != null, I
|
|
|
6153
6162
|
l?.();
|
|
6154
6163
|
}), a;
|
|
6155
6164
|
}, nS = (e, t, n) => {
|
|
6156
|
-
const r = t === 0 ?
|
|
6157
|
-
return
|
|
6165
|
+
const r = t === 0 ? b([], () => e.clientWidth) : b([], () => e.clientHeight);
|
|
6166
|
+
return b([r, n], () => {
|
|
6158
6167
|
const i = r.value / n.value;
|
|
6159
6168
|
return Math.max(20, i * r.value);
|
|
6160
6169
|
});
|
|
6161
6170
|
}, Bm = (e, t, n) => {
|
|
6162
6171
|
asWeak(e);
|
|
6163
|
-
const r = As(e, ["inline", "block"][t]), i = Qt(e, ["inline", "block"][t], "content-box"), s =
|
|
6172
|
+
const r = As(e, ["inline", "block"][t]), i = Qt(e, ["inline", "block"][t], "content-box"), s = qr(i, (a) => a + (ja(e, ["inline", "block"][t]) || 0)), o = () => {
|
|
6164
6173
|
i?.[lt]?.(), s?.[lt]?.();
|
|
6165
6174
|
};
|
|
6166
6175
|
return W(r, (a) => {
|
|
@@ -6268,30 +6277,30 @@ function Gm(e, { scope: t = "void-only" } = {}) {
|
|
|
6268
6277
|
continue;
|
|
6269
6278
|
}
|
|
6270
6279
|
if (e.startsWith("<!--", i)) {
|
|
6271
|
-
const
|
|
6272
|
-
if (
|
|
6280
|
+
const v = e.indexOf("-->", i + 4);
|
|
6281
|
+
if (v === -1) {
|
|
6273
6282
|
r += e.slice(i);
|
|
6274
6283
|
break;
|
|
6275
6284
|
}
|
|
6276
|
-
r += e.slice(i,
|
|
6285
|
+
r += e.slice(i, v + 3), i = v + 3;
|
|
6277
6286
|
continue;
|
|
6278
6287
|
}
|
|
6279
6288
|
if (e[i + 1] === "!" || e[i + 1] === "?") {
|
|
6280
|
-
const
|
|
6281
|
-
if (
|
|
6289
|
+
const v = e.indexOf(">", i + 2);
|
|
6290
|
+
if (v === -1) {
|
|
6282
6291
|
r += e.slice(i);
|
|
6283
6292
|
break;
|
|
6284
6293
|
}
|
|
6285
|
-
r += e.slice(i,
|
|
6294
|
+
r += e.slice(i, v + 1), i = v + 1;
|
|
6286
6295
|
continue;
|
|
6287
6296
|
}
|
|
6288
6297
|
if (e[i + 1] === "/") {
|
|
6289
|
-
const
|
|
6290
|
-
if (
|
|
6298
|
+
const v = e.indexOf(">", i + 2);
|
|
6299
|
+
if (v === -1) {
|
|
6291
6300
|
r += e.slice(i);
|
|
6292
6301
|
break;
|
|
6293
6302
|
}
|
|
6294
|
-
r += e.slice(i,
|
|
6303
|
+
r += e.slice(i, v + 1), i = v + 1;
|
|
6295
6304
|
continue;
|
|
6296
6305
|
}
|
|
6297
6306
|
let a = i + 1;
|
|
@@ -6301,13 +6310,13 @@ function Gm(e, { scope: t = "void-only" } = {}) {
|
|
|
6301
6310
|
const c = e.slice(l, a).toLowerCase();
|
|
6302
6311
|
let u = a, d = null;
|
|
6303
6312
|
for (; u < s; ) {
|
|
6304
|
-
const
|
|
6313
|
+
const v = e[u];
|
|
6305
6314
|
if (d)
|
|
6306
|
-
|
|
6307
|
-
else if (
|
|
6308
|
-
d =
|
|
6315
|
+
v === d && (d = null), u++;
|
|
6316
|
+
else if (v === '"' || v === "'")
|
|
6317
|
+
d = v, u++;
|
|
6309
6318
|
else {
|
|
6310
|
-
if (
|
|
6319
|
+
if (v === ">") break;
|
|
6311
6320
|
u++;
|
|
6312
6321
|
}
|
|
6313
6322
|
}
|
|
@@ -6321,8 +6330,8 @@ function Gm(e, { scope: t = "void-only" } = {}) {
|
|
|
6321
6330
|
continue;
|
|
6322
6331
|
}
|
|
6323
6332
|
let f = "", p = null, y = !1;
|
|
6324
|
-
for (let
|
|
6325
|
-
const m = h[
|
|
6333
|
+
for (let v = 0; v < h.length; v++) {
|
|
6334
|
+
const m = h[v];
|
|
6326
6335
|
if (p) {
|
|
6327
6336
|
f += m, m === p && (p = null);
|
|
6328
6337
|
continue;
|
|
@@ -6357,16 +6366,16 @@ function of(e, { normalizeIndent: t = !0, ignoreFirstLine: n = !0, tabWidth: r =
|
|
|
6357
6366
|
tabWidth: r
|
|
6358
6367
|
});
|
|
6359
6368
|
if (t && d > 0) for (let y = u; y < c.length; y++) {
|
|
6360
|
-
const
|
|
6361
|
-
|
|
6369
|
+
const v = c[y];
|
|
6370
|
+
v.trim() !== "" && (c[y] = sf(v, d, r));
|
|
6362
6371
|
}
|
|
6363
6372
|
let f = i === "auto" ? h : i;
|
|
6364
6373
|
if (s !== "none" && f > 1) for (let y = u; y < c.length; y++) {
|
|
6365
|
-
const
|
|
6366
|
-
|
|
6374
|
+
const v = c[y];
|
|
6375
|
+
v.trim() !== "" && (c[y] = qm(v, f, s, r));
|
|
6367
6376
|
}
|
|
6368
6377
|
let p = c.join(l);
|
|
6369
|
-
return p = Gm(p, { scope: "void-only" }), p = Xm(p), p.replace(/\u0000(\d+)\u0000/g, (y,
|
|
6378
|
+
return p = Gm(p, { scope: "void-only" }), p = Xm(p), p.replace(/\u0000(\d+)\u0000/g, (y, v) => o[+v])?.trim?.();
|
|
6370
6379
|
}
|
|
6371
6380
|
function Ym(e, ...t) {
|
|
6372
6381
|
const n = t?.[0] ?? "", r = e.indexOf(n);
|
|
@@ -6452,21 +6461,21 @@ var oo = /* @__PURE__ */ new WeakMap(), Km = (e) => {
|
|
|
6452
6461
|
});
|
|
6453
6462
|
const l = (m, x) => {
|
|
6454
6463
|
const k = [];
|
|
6455
|
-
for (const
|
|
6456
|
-
const S = Array.isArray(m) ? m?.some?.((Me) => Me == "") : m == "", M = (Array.isArray(m) ? m.find((Me) =>
|
|
6464
|
+
for (const g of Array.from(e?.attributes || [])) {
|
|
6465
|
+
const S = Array.isArray(m) ? m?.some?.((Me) => Me == "") : m == "", M = (Array.isArray(m) ? m.find((Me) => g.name?.startsWith?.(Me)) : m = g.name?.startsWith?.(m) ? m : "") ?? "", O = g.name.trim()?.replace?.(M, ""), re = g.value?.includes?.("#{") && g.value?.includes?.("}"), ie = ao(g?.value), me = Array.isArray(x) ? x?.some?.((Me) => O?.startsWith?.(Me)) : x == O;
|
|
6457
6466
|
re && (M == "" && S || M != "") && ie >= 0 && !me && k.push([O, ie]);
|
|
6458
6467
|
}
|
|
6459
6468
|
return k;
|
|
6460
6469
|
}, c = (m, x, k = "") => {
|
|
6461
|
-
const
|
|
6470
|
+
const g = /* @__PURE__ */ new Map();
|
|
6462
6471
|
for (const S of Array.from(e?.attributes || [])) {
|
|
6463
6472
|
const M = Array.isArray(m) ? m?.some?.((Ee) => Ee == "") : m == "", O = (Array.isArray(m) ? m.find((Ee) => S.name?.startsWith?.(Ee)) : m = S.name?.startsWith?.(m) ? m : "") ?? "", re = S.name.trim()?.replace?.(O, ""), ie = S.value?.includes?.("#{") && S.value?.includes?.("}"), me = ao(S?.value) ?? -1, Me = Array.isArray(x) ? x?.some?.((Ee) => re?.startsWith?.(Ee)) : x == re, ke = (Array.isArray(k) ? k?.some?.((Ee) => S.name === Ee) : S.name === k) && k !== "";
|
|
6464
6473
|
if (ie && (O == "" && M || O != "" || ke) && me >= 0 && !Me) {
|
|
6465
6474
|
const Ee = ke ? S.name : re;
|
|
6466
|
-
|
|
6475
|
+
g.has(Ee) || g.set(Ee, []), g.get(Ee)?.push(me);
|
|
6467
6476
|
}
|
|
6468
6477
|
}
|
|
6469
|
-
return Array.from(
|
|
6478
|
+
return Array.from(g.entries());
|
|
6470
6479
|
};
|
|
6471
6480
|
let u = l(["prop:"], []), d = c(["on:", "@"], [], ""), h = c(["ref:"], [], ["ref"]), f = l(["attr:", ""], [
|
|
6472
6481
|
"ref",
|
|
@@ -6486,13 +6495,13 @@ var oo = /* @__PURE__ */ new WeakMap(), Km = (e) => {
|
|
|
6486
6495
|
typeof x == "function" ? x?.(e) : x != null && typeof x == "object" && (x.value = e);
|
|
6487
6496
|
});
|
|
6488
6497
|
});
|
|
6489
|
-
const
|
|
6498
|
+
const v = (m) => {
|
|
6490
6499
|
if (m == null) return;
|
|
6491
|
-
const x = (k) => f?.some?.((
|
|
6500
|
+
const x = (k) => f?.some?.((g) => g[0] == k) || o?.some?.((g) => g[0] == k) || k?.startsWith?.("ref:") || k == "ref";
|
|
6492
6501
|
for (const k of Array.from(m?.attributes || [])) (k.value?.includes?.("#{") && k.value?.includes?.("}") && x(k.name) || k.value?.startsWith?.("#{") && k.value?.endsWith?.("}") || k.name?.includes?.(":") || k.name?.includes?.("ref:") || k.name == "ref") && m?.removeAttribute?.(k.name);
|
|
6493
6502
|
for (const k of Array.from(m?.attributes || [])) typeof k.value == "string" && /#\{\d+\}/.test(k.value) && m?.removeAttribute?.(k.name);
|
|
6494
6503
|
};
|
|
6495
|
-
s?.kind === "static" && ts(e, s.cssText),
|
|
6504
|
+
s?.kind === "static" && ts(e, s.cssText), v(e), Cu(e), oo?.has?.(e) || oo?.set?.(e, Cs(e, p));
|
|
6496
6505
|
}
|
|
6497
6506
|
return oo?.get?.(e) ?? e;
|
|
6498
6507
|
}, Qm = (e, ...t) => {
|
|
@@ -6522,13 +6531,13 @@ function tv({ createElement: e = null } = {}) {
|
|
|
6522
6531
|
const p = Km(n?.[f]);
|
|
6523
6532
|
r.push(p.tag || "div"), p.id && r.push(` id="${p.id}"`), p.className && r.push(` class="${p.className}"`);
|
|
6524
6533
|
} else {
|
|
6525
|
-
const p = Ym(t, t?.[f] || "", t?.[f + 1] || ""), y = /[\w:\-\.\]]\s*=\s*$/.test(t[f]?.trim?.() ?? "") || t[f]?.trim?.()?.endsWith?.("="),
|
|
6534
|
+
const p = Ym(t, t?.[f] || "", t?.[f + 1] || ""), y = /[\w:\-\.\]]\s*=\s*$/.test(t[f]?.trim?.() ?? "") || t[f]?.trim?.()?.endsWith?.("="), v = t[f]?.trim?.()?.match?.(/['"]$/), m = t[f + 1]?.trim?.()?.match?.(/^['"]/) ?? v, x = v && m, k = y;
|
|
6526
6535
|
if ((k || x) && p) {
|
|
6527
|
-
const
|
|
6528
|
-
r.push((typeof n?.[f] == "string" ? n?.[f]?.trim?.() != "" : n?.[f] != null) ?
|
|
6536
|
+
const g = k && !x, S = s.length;
|
|
6537
|
+
r.push((typeof n?.[f] == "string" ? n?.[f]?.trim?.() != "" : n?.[f] != null) ? g ? `"#{${S}}"` : `#{${S}}` : ""), s.push(n?.[f]);
|
|
6529
6538
|
} else if (!p) {
|
|
6530
|
-
const
|
|
6531
|
-
r.push((typeof n?.[f] == "string" ? n?.[f]?.trim?.() != "" : n?.[f] != null) ? L(n?.[f]) ? String(n?.[f])?.trim?.() : `<!--o:${
|
|
6539
|
+
const g = i.length;
|
|
6540
|
+
r.push((typeof n?.[f] == "string" ? n?.[f]?.trim?.() != "" : n?.[f] != null) ? L(n?.[f]) ? String(n?.[f])?.trim?.() : `<!--o:${g}-->` : ""), i.push(n?.[f]);
|
|
6532
6541
|
}
|
|
6533
6542
|
}
|
|
6534
6543
|
const o = of(r.join("").trim()), a = /* @__PURE__ */ new WeakMap(), l = new DOMParser().parseFromString(o, "text/html"), c = (l instanceof HTMLTemplateElement || l?.matches?.("template") ? l : l.querySelector("template"))?.content ?? l.body ?? l, u = document.createDocumentFragment(), d = Array.from(c.childNodes)?.filter((f) => f instanceof Node).map((f) => (!ev(f?.parentNode) && f?.parentNode != u && (f?.remove?.(), f != null && u?.append?.(f)), f));
|
|
@@ -6594,10 +6603,10 @@ var rc = globalThis[uf], ff = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLow
|
|
|
6594
6603
|
}, wi = (e) => {
|
|
6595
6604
|
const t = ff(e);
|
|
6596
6605
|
return t?.startsWith?.("inline") ? "inline" : t?.startsWith?.("block") ? "block" : null;
|
|
6597
|
-
}, iv = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", bn = /* @__PURE__ */ Symbol.for("@render@"),
|
|
6598
|
-
|
|
6606
|
+
}, iv = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", bn = /* @__PURE__ */ Symbol.for("@render@"), Lr = /* @__PURE__ */ Symbol.for("@defKeys@"), Jr = typeof document < "u" ? document?.createElement?.("style") : null, sc = (e, t, n) => e == "attr" ? zm.bind(null, t, n || "") : e == "media" ? Wm : e == "query" ? (r) => We?.(n || r || "", t) : e == "query-shadow" ? (r) => We?.(n || r || "", t?.shadowRoot ?? t) : e == "localStorage" ? nf : e == "inline-size" ? Qt.bind(null, t, "inline", ic(n) || "border-box") : e == "content-box" ? Qt.bind(null, t, wi(n) || "inline", "content-box") : e == "block-size" ? Qt.bind(null, t, "block", ic(n) || "border-box") : e == "border-box" ? Qt.bind(null, t, wi(n) || "inline", "border-box") : e == "scroll" ? As.bind(null, t, wi(n) || "inline") : e == "device-pixel-content-box" ? Qt.bind(null, t, wi(n) || "inline", "device-pixel-content-box") : e == "checked" ? Dm.bind(null, t) : e == "value" ? Lm.bind(null, t) : e == "value-as-number" ? $m.bind(null, t) : fn;
|
|
6607
|
+
Jr && typeof document < "u" && document.querySelector?.("head")?.appendChild?.(Jr);
|
|
6599
6608
|
var oc = (e) => e == "query" || e == "query-shadow" ? "input" : e == "media" ? !1 : e == "localStorage" || e == "attr" ? null : e == "inline-size" || e == "block-size" || e == "border-box" || e == "content-box" || e == "scroll" || e == "device-pixel-content-box" ? 0 : e == "checked" ? !1 : e == "value" ? "" : e == "value-as-number" ? 0 : null;
|
|
6600
|
-
|
|
6609
|
+
Jr && (Jr.innerHTML = `@layer ux-preload {
|
|
6601
6610
|
:host { display: none; }
|
|
6602
6611
|
}`);
|
|
6603
6612
|
function sv(e) {
|
|
@@ -6607,8 +6616,8 @@ function sv(e) {
|
|
|
6607
6616
|
const i = {};
|
|
6608
6617
|
let s = Object.getPrototypeOf(this) ?? this;
|
|
6609
6618
|
for (; s; ) {
|
|
6610
|
-
if (Object.hasOwn(s,
|
|
6611
|
-
const o = Object.assign({}, Object.getOwnPropertyDescriptors(s), s[
|
|
6619
|
+
if (Object.hasOwn(s, Lr)) {
|
|
6620
|
+
const o = Object.assign({}, Object.getOwnPropertyDescriptors(s), s[Lr] ?? {});
|
|
6612
6621
|
for (const a of Object.keys(o)) a in i || (i[a] = o[a]);
|
|
6613
6622
|
}
|
|
6614
6623
|
s = Object.getPrototypeOf(s);
|
|
@@ -6653,7 +6662,7 @@ function sS(e = {}) {
|
|
|
6653
6662
|
const l = s.constructor;
|
|
6654
6663
|
l.observedAttributes || (l.observedAttributes = []), l.observedAttributes.indexOf(a) < 0 && l.observedAttributes.push(a);
|
|
6655
6664
|
}
|
|
6656
|
-
Object.hasOwn(s,
|
|
6665
|
+
Object.hasOwn(s, Lr) || (s[Lr] = {}), s[Lr][o] = {
|
|
6657
6666
|
get() {
|
|
6658
6667
|
const l = this, c = l[bn], u = i ? i instanceof HTMLElement ? i : typeof i == "string" ? We?.(i, l) : l : l;
|
|
6659
6668
|
let d = bi.get(l), h = d?.get?.(o);
|
|
@@ -6747,7 +6756,7 @@ function aS(e) {
|
|
|
6747
6756
|
}
|
|
6748
6757
|
constructor(...a) {
|
|
6749
6758
|
if (super(...a), lo(this)) {
|
|
6750
|
-
const l = pa(this.shadowRoot ?? this.createShadowRoot?.() ?? this.attachShadow({ mode: "open" })), c = this.#n ??=
|
|
6759
|
+
const l = pa(this.shadowRoot ?? this.createShadowRoot?.() ?? this.attachShadow({ mode: "open" })), c = this.#n ??= Jr?.cloneNode?.(!0), u = l.querySelector('style[data-type="ux-layer"]');
|
|
6751
6760
|
u ? u.after(c) : l.prepend(c);
|
|
6752
6761
|
}
|
|
6753
6762
|
this.styleLibs ??= [];
|
|
@@ -6807,13 +6816,13 @@ function aS(e) {
|
|
|
6807
6816
|
const p = [
|
|
6808
6817
|
Pe`<style data-type="ux-layer" prop:innerHTML=${this.$makeLayers()}></style>`,
|
|
6809
6818
|
this.#n,
|
|
6810
|
-
...this.styleLibs.map((
|
|
6819
|
+
...this.styleLibs.map((v) => v.cloneNode?.(!0)) || [],
|
|
6811
6820
|
f,
|
|
6812
6821
|
h
|
|
6813
|
-
].filter((
|
|
6822
|
+
].filter((v) => v != null && _e(v));
|
|
6814
6823
|
l.append(...p);
|
|
6815
6824
|
const y = jt.get(this) || [];
|
|
6816
|
-
y.length > 0 && (l.adoptedStyleSheets = [...y.filter((
|
|
6825
|
+
y.length > 0 && (l.adoptedStyleSheets = [...y.filter((v) => !l.adoptedStyleSheets?.includes(v)), .../* @__PURE__ */ new Set([...l.adoptedStyleSheets || []])]);
|
|
6817
6826
|
}
|
|
6818
6827
|
this.onRender?.call?.(this, a), delete this[bn], l && pa(l);
|
|
6819
6828
|
}
|
|
@@ -6953,7 +6962,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6953
6962
|
if (t < n || n < 0) {
|
|
6954
6963
|
if (this.list)
|
|
6955
6964
|
for (const r of this.list) r != this && r?.taskId != this.taskId && (r.focus = !1);
|
|
6956
|
-
this.list?.[
|
|
6965
|
+
this.list?.[ni]?.(() => {
|
|
6957
6966
|
this.list?.splice?.(t, 1), this.list?.push?.(co(this));
|
|
6958
6967
|
}), document.dispatchEvent(new CustomEvent("task-focus", {
|
|
6959
6968
|
detail: nn(this.list ?? [], !1),
|
|
@@ -6984,7 +6993,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6984
6993
|
}, co = (e, t, n = null, r = {}, i) => e instanceof cc ? fe(e) : fe(new cc(e, t, n, r, i)), uS = (e) => {
|
|
6985
6994
|
const t = fe([]);
|
|
6986
6995
|
return e(t), t;
|
|
6987
|
-
}, Si = /* @__PURE__ */ new WeakMap(), lv = (e, t) => `${e}|c:${t?.capture ? "1" : "0"}|p:${t?.passive ? "1" : "0"}`,
|
|
6996
|
+
}, Si = /* @__PURE__ */ new WeakMap(), lv = (e, t) => `${e}|c:${t?.capture ? "1" : "0"}|p:${t?.passive ? "1" : "0"}`, $r = (e, t, n, r = {}) => {
|
|
6988
6997
|
if (!e || typeof e.addEventListener != "function") return () => {
|
|
6989
6998
|
};
|
|
6990
6999
|
const i = {
|
|
@@ -7012,7 +7021,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7012
7021
|
const l = Si.get(e), c = l?.get(s);
|
|
7013
7022
|
c && (c.handlers.delete(n), !(c.handlers.size > 0) && (e.removeEventListener(t, c.listener, c.options), l?.delete(s), l && l.size === 0 && Si.delete(e)));
|
|
7014
7023
|
};
|
|
7015
|
-
}, xi = /* @__PURE__ */ new WeakMap(),
|
|
7024
|
+
}, xi = /* @__PURE__ */ new WeakMap(), wr = (e) => {
|
|
7016
7025
|
const t = e?.element ?? e;
|
|
7017
7026
|
return t instanceof HTMLElement ? t : null;
|
|
7018
7027
|
}, uo = (e, t, n) => e ? e === "handled" ? n : t : !1, cv = (e, t, n = {
|
|
@@ -7044,9 +7053,9 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7044
7053
|
f = !0;
|
|
7045
7054
|
for (const x of Array.from(m)) x(h) && (p = !0);
|
|
7046
7055
|
}
|
|
7047
|
-
},
|
|
7048
|
-
if (Array.isArray(
|
|
7049
|
-
const x =
|
|
7056
|
+
}, v = h?.composedPath?.();
|
|
7057
|
+
if (Array.isArray(v)) if (o === "closest") for (const m of v) {
|
|
7058
|
+
const x = wr(m);
|
|
7050
7059
|
if (!x) continue;
|
|
7051
7060
|
const k = u.get(x);
|
|
7052
7061
|
if (k) {
|
|
@@ -7054,12 +7063,12 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7054
7063
|
break;
|
|
7055
7064
|
}
|
|
7056
7065
|
}
|
|
7057
|
-
else for (const m of
|
|
7058
|
-
const x =
|
|
7066
|
+
else for (const m of v) {
|
|
7067
|
+
const x = wr(m);
|
|
7059
7068
|
x && y(u.get(x));
|
|
7060
7069
|
}
|
|
7061
7070
|
else {
|
|
7062
|
-
let m =
|
|
7071
|
+
let m = wr(h?.target);
|
|
7063
7072
|
for (; m; ) {
|
|
7064
7073
|
const x = u.get(m);
|
|
7065
7074
|
if (x && (y(x), o === "closest"))
|
|
@@ -7073,18 +7082,18 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7073
7082
|
}, l.set(a, c);
|
|
7074
7083
|
}
|
|
7075
7084
|
return (u, d) => {
|
|
7076
|
-
const h =
|
|
7085
|
+
const h = wr(u);
|
|
7077
7086
|
if (!h) return () => {
|
|
7078
7087
|
};
|
|
7079
|
-
c.targets.size === 0 && !c.unbindGlobal && (c.unbindGlobal =
|
|
7088
|
+
c.targets.size === 0 && !c.unbindGlobal && (c.unbindGlobal = $r(i, t, c.dispatch, c.options));
|
|
7080
7089
|
let f = c.targets.get(h);
|
|
7081
7090
|
return f || (f = /* @__PURE__ */ new Set(), c.targets.set(h, f)), f.add(d), () => {
|
|
7082
7091
|
const p = xi.get(i), y = p?.get(a);
|
|
7083
7092
|
if (!y) return;
|
|
7084
|
-
const
|
|
7085
|
-
if (!
|
|
7086
|
-
const m = y.targets.get(
|
|
7087
|
-
m && (m.delete(d), m.size === 0 && y.targets.delete(
|
|
7093
|
+
const v = wr(u);
|
|
7094
|
+
if (!v) return;
|
|
7095
|
+
const m = y.targets.get(v);
|
|
7096
|
+
m && (m.delete(d), m.size === 0 && y.targets.delete(v), y.targets.size === 0 && (y.unbindGlobal?.(), y.unbindGlobal = null, p?.delete(a), p && p.size === 0 && xi.delete(i)));
|
|
7088
7097
|
};
|
|
7089
7098
|
};
|
|
7090
7099
|
}, uv = typeof document < "u" ? document?.documentElement : null, ka = (e, t, n) => {
|
|
@@ -7100,7 +7109,7 @@ function hf(e = null, t = Gt(!1), n = [
|
|
|
7100
7109
|
};
|
|
7101
7110
|
const i = new WeakRef(t), s = typeof t == "function" ? t : (l) => {
|
|
7102
7111
|
(!(e?.contains?.(l?.target) || l?.target == (e?.element ?? e)) || !e) && ka(i, "value", !1);
|
|
7103
|
-
}, o = n.map((l) =>
|
|
7112
|
+
}, o = n.map((l) => $r(r, l, s, {
|
|
7104
7113
|
capture: !1,
|
|
7105
7114
|
passive: !1
|
|
7106
7115
|
})), a = () => o.forEach((l) => l?.());
|
|
@@ -7192,7 +7201,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7192
7201
|
};
|
|
7193
7202
|
}
|
|
7194
7203
|
static toPixel(t, n) {
|
|
7195
|
-
return
|
|
7204
|
+
return b([
|
|
7196
7205
|
t.row,
|
|
7197
7206
|
t.col,
|
|
7198
7207
|
n.cellWidth,
|
|
@@ -7203,7 +7212,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7203
7212
|
], () => X(n.padding.x.value + t.col.value * (n.cellWidth.value + n.gap.value), n.padding.y.value + t.row.value * (n.cellHeight.value + n.gap.value)));
|
|
7204
7213
|
}
|
|
7205
7214
|
static fromPixel(t, n) {
|
|
7206
|
-
const r =
|
|
7215
|
+
const r = b([
|
|
7207
7216
|
t.x,
|
|
7208
7217
|
t.y,
|
|
7209
7218
|
n.cellWidth,
|
|
@@ -7216,8 +7225,8 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7216
7225
|
return yf.create(s, i);
|
|
7217
7226
|
});
|
|
7218
7227
|
return {
|
|
7219
|
-
row:
|
|
7220
|
-
col:
|
|
7228
|
+
row: b([r], () => r.value.row.value),
|
|
7229
|
+
col: b([r], () => r.value.col.value)
|
|
7221
7230
|
};
|
|
7222
7231
|
}
|
|
7223
7232
|
static snapToGrid(t, n) {
|
|
@@ -7226,7 +7235,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7226
7235
|
}
|
|
7227
7236
|
static snapToCellCenter(t, n) {
|
|
7228
7237
|
const r = this.fromPixel(t, n), i = this.toPixel(r, n);
|
|
7229
|
-
return
|
|
7238
|
+
return b([
|
|
7230
7239
|
i.x,
|
|
7231
7240
|
i.y,
|
|
7232
7241
|
n.cellWidth,
|
|
@@ -7253,12 +7262,12 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7253
7262
|
}
|
|
7254
7263
|
}[n];
|
|
7255
7264
|
return {
|
|
7256
|
-
row:
|
|
7257
|
-
col:
|
|
7265
|
+
row: b([t.row], () => t.row.value + r.row),
|
|
7266
|
+
col: b([t.col], () => t.col.value + r.col)
|
|
7258
7267
|
};
|
|
7259
7268
|
}
|
|
7260
7269
|
static isValid(t, n) {
|
|
7261
|
-
return
|
|
7270
|
+
return b([
|
|
7262
7271
|
t.row,
|
|
7263
7272
|
t.col,
|
|
7264
7273
|
n.rows,
|
|
@@ -7266,7 +7275,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7266
7275
|
], () => t.row.value >= 0 && t.row.value < n.rows.value && t.col.value >= 0 && t.col.value < n.cols.value);
|
|
7267
7276
|
}
|
|
7268
7277
|
static manhattanDistance(t, n) {
|
|
7269
|
-
return
|
|
7278
|
+
return b([
|
|
7270
7279
|
t.row,
|
|
7271
7280
|
t.col,
|
|
7272
7281
|
n.row,
|
|
@@ -7274,7 +7283,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7274
7283
|
], () => Math.abs(t.row.value - n.row.value) + Math.abs(t.col.value - n.col.value));
|
|
7275
7284
|
}
|
|
7276
7285
|
static euclideanDistance(t, n) {
|
|
7277
|
-
return
|
|
7286
|
+
return b([
|
|
7278
7287
|
t.row,
|
|
7279
7288
|
t.col,
|
|
7280
7289
|
n.row,
|
|
@@ -7291,11 +7300,11 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7291
7300
|
};
|
|
7292
7301
|
}
|
|
7293
7302
|
static toRect(e, t) {
|
|
7294
|
-
const n = q.toPixel(e, t), r =
|
|
7303
|
+
const n = q.toPixel(e, t), r = b([
|
|
7295
7304
|
e.colSpan,
|
|
7296
7305
|
t.cellWidth,
|
|
7297
7306
|
t.gap
|
|
7298
|
-
], () => e.colSpan.value * t.cellWidth.value + (e.colSpan.value - 1) * t.gap.value), i =
|
|
7307
|
+
], () => e.colSpan.value * t.cellWidth.value + (e.colSpan.value - 1) * t.gap.value), i = b([
|
|
7299
7308
|
e.rowSpan,
|
|
7300
7309
|
t.cellHeight,
|
|
7301
7310
|
t.gap
|
|
@@ -7304,7 +7313,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7304
7313
|
}
|
|
7305
7314
|
static getCenter(e, t) {
|
|
7306
7315
|
const n = this.toRect(e, t);
|
|
7307
|
-
return
|
|
7316
|
+
return b([
|
|
7308
7317
|
n.position.x,
|
|
7309
7318
|
n.position.y,
|
|
7310
7319
|
n.size.x,
|
|
@@ -7312,7 +7321,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7312
7321
|
], () => X(n.position.x.value + n.size.x.value / 2, n.position.y.value + n.size.y.value / 2));
|
|
7313
7322
|
}
|
|
7314
7323
|
static overlaps(e, t) {
|
|
7315
|
-
return
|
|
7324
|
+
return b([
|
|
7316
7325
|
e.row,
|
|
7317
7326
|
e.col,
|
|
7318
7327
|
e.rowSpan,
|
|
@@ -7527,8 +7536,8 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7527
7536
|
const p = [];
|
|
7528
7537
|
let y = f;
|
|
7529
7538
|
for (; y && (p.unshift(X(y.coord.col.value, y.coord.row.value)), !!y.parent); ) {
|
|
7530
|
-
const
|
|
7531
|
-
y = l.get(
|
|
7539
|
+
const v = `${y.parent.row.value},${y.parent.col.value}`;
|
|
7540
|
+
y = l.get(v) || null;
|
|
7532
7541
|
}
|
|
7533
7542
|
return p;
|
|
7534
7543
|
}
|
|
@@ -7538,10 +7547,10 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7538
7547
|
"left",
|
|
7539
7548
|
"right"
|
|
7540
7549
|
]) {
|
|
7541
|
-
const y = q.adjacent(f.coord, p),
|
|
7542
|
-
if (!q.isValid(y, a).value || c.has(
|
|
7543
|
-
const m = f.g + 1, x = m + q.manhattanDistance(y, s).value, k = l.get(
|
|
7544
|
-
(!k || m < k.g) && l.set(
|
|
7550
|
+
const y = q.adjacent(f.coord, p), v = `${y.row.value},${y.col.value}`;
|
|
7551
|
+
if (!q.isValid(y, a).value || c.has(v) || o.has(v)) continue;
|
|
7552
|
+
const m = f.g + 1, x = m + q.manhattanDistance(y, s).value, k = l.get(v);
|
|
7553
|
+
(!k || m < k.g) && l.set(v, {
|
|
7545
7554
|
coord: y,
|
|
7546
7555
|
f: x,
|
|
7547
7556
|
g: m,
|
|
@@ -7653,51 +7662,51 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7653
7662
|
return i;
|
|
7654
7663
|
}
|
|
7655
7664
|
}
|
|
7656
|
-
},
|
|
7665
|
+
}, Pr = class {
|
|
7657
7666
|
static translate2D(e) {
|
|
7658
|
-
return
|
|
7667
|
+
return b([e.x, e.y], () => `translate(${e.x.value}px, ${e.y.value}px)`);
|
|
7659
7668
|
}
|
|
7660
7669
|
static translate3D(e, t = w(0)) {
|
|
7661
|
-
return
|
|
7670
|
+
return b([
|
|
7662
7671
|
e.x,
|
|
7663
7672
|
e.y,
|
|
7664
7673
|
t
|
|
7665
7674
|
], () => `translate3d(${e.x.value}px, ${e.y.value}px, ${t.value}px)`);
|
|
7666
7675
|
}
|
|
7667
7676
|
static scale2D(e) {
|
|
7668
|
-
return
|
|
7677
|
+
return b([e.x, e.y], () => `scale(${e.x.value}, ${e.y.value})`);
|
|
7669
7678
|
}
|
|
7670
7679
|
static rotate(e) {
|
|
7671
|
-
return
|
|
7680
|
+
return b([e], () => `rotate(${e.value}deg)`);
|
|
7672
7681
|
}
|
|
7673
7682
|
static combine(e) {
|
|
7674
|
-
return
|
|
7683
|
+
return b(e, () => e.map((t) => t.value).join(" "));
|
|
7675
7684
|
}
|
|
7676
7685
|
static matrix2D(e) {
|
|
7677
|
-
return
|
|
7686
|
+
return b(e.elements, () => `matrix(${e.elements.map((t) => t.value).join(", ")})`);
|
|
7678
7687
|
}
|
|
7679
7688
|
static matrix3D(e) {
|
|
7680
|
-
return
|
|
7689
|
+
return b(e.elements, () => `matrix3d(${e.elements.map((t) => t.value).join(", ")})`);
|
|
7681
7690
|
}
|
|
7682
7691
|
}, uc = class {
|
|
7683
7692
|
static leftTop(e) {
|
|
7684
7693
|
return {
|
|
7685
|
-
left:
|
|
7686
|
-
top:
|
|
7694
|
+
left: b([e.x], () => `${e.x.value}px`),
|
|
7695
|
+
top: b([e.y], () => `${e.y.value}px`)
|
|
7687
7696
|
};
|
|
7688
7697
|
}
|
|
7689
7698
|
static inset(e) {
|
|
7690
|
-
return { inset:
|
|
7699
|
+
return { inset: b([e.x, e.y], () => `${e.y.value}px ${e.x.value}px`) };
|
|
7691
7700
|
}
|
|
7692
7701
|
static size(e) {
|
|
7693
7702
|
return {
|
|
7694
|
-
width:
|
|
7695
|
-
height:
|
|
7703
|
+
width: b([e.x], () => `${e.x.value}px`),
|
|
7704
|
+
height: b([e.y], () => `${e.y.value}px`)
|
|
7696
7705
|
};
|
|
7697
7706
|
}
|
|
7698
7707
|
}, tt = class {
|
|
7699
7708
|
static bindTransform(e, t, n = "instant", r) {
|
|
7700
|
-
const i =
|
|
7709
|
+
const i = Pr.translate2D(t);
|
|
7701
7710
|
return (n === "instant" ? A : n === "animate" ? Xe : n === "transition" ? wt : Wt)(e, "transform", i, r) ?? (() => {
|
|
7702
7711
|
});
|
|
7703
7712
|
}
|
|
@@ -7718,12 +7727,12 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7718
7727
|
};
|
|
7719
7728
|
}
|
|
7720
7729
|
static bindWithUnit(e, t, n, r = "px", i = "instant", s) {
|
|
7721
|
-
const o =
|
|
7730
|
+
const o = b([n], () => `${n.value}${r}`);
|
|
7722
7731
|
return (i === "instant" ? A : i === "animate" ? Xe : i === "transition" ? wt : Wt)(e, t, o, s) ?? (() => {
|
|
7723
7732
|
});
|
|
7724
7733
|
}
|
|
7725
7734
|
static bindVectorWithUnit(e, t, n = "px", r = "instant", i) {
|
|
7726
|
-
const s =
|
|
7735
|
+
const s = b([t.x, t.y], () => `${t.x.value}${n} ${t.y.value}${n}`);
|
|
7727
7736
|
return (r === "instant" ? A : r === "animate" ? Xe : r === "transition" ? wt : Wt)(e, "transform", s, {
|
|
7728
7737
|
...i,
|
|
7729
7738
|
handler: r === "instant" ? void 0 : (o, a) => {
|
|
@@ -7734,17 +7743,17 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7734
7743
|
}
|
|
7735
7744
|
static bindTransformMorph(e, t, n = {}) {
|
|
7736
7745
|
const r = {};
|
|
7737
|
-
if (t.translate && (r.transform =
|
|
7738
|
-
const i = t.scale instanceof Y ?
|
|
7739
|
-
r.transform = r.transform ?
|
|
7746
|
+
if (t.translate && (r.transform = b([t.translate.x, t.translate.y], () => `translate(${t.translate.x.value}px, ${t.translate.y.value}px)`)), t.scale) {
|
|
7747
|
+
const i = t.scale instanceof Y ? b([t.scale.x, t.scale.y], () => `scale(${t.scale.x.value}, ${t.scale.y.value})`) : b([t.scale], () => `scale(${t.scale.value})`);
|
|
7748
|
+
r.transform = r.transform ? b([r.transform, i], (s, o) => `${s} ${o}`) : i;
|
|
7740
7749
|
}
|
|
7741
7750
|
if (t.rotate) {
|
|
7742
|
-
const i =
|
|
7743
|
-
r.transform = r.transform ?
|
|
7751
|
+
const i = b([t.rotate], () => `rotate(${t.rotate.value}deg)`);
|
|
7752
|
+
r.transform = r.transform ? b([r.transform, i], (s, o) => `${s} ${o}`) : i;
|
|
7744
7753
|
}
|
|
7745
7754
|
if (t.skew) {
|
|
7746
|
-
const i =
|
|
7747
|
-
r.transform = r.transform ?
|
|
7755
|
+
const i = b([t.skew.x, t.skew.y], () => `skew(${t.skew.x.value}deg, ${t.skew.y.value}deg)`);
|
|
7756
|
+
r.transform = r.transform ? b([r.transform, i], (s, o) => `${s} ${o}`) : i;
|
|
7748
7757
|
}
|
|
7749
7758
|
return ny(e, r, n);
|
|
7750
7759
|
}
|
|
@@ -7752,7 +7761,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7752
7761
|
duration: 300,
|
|
7753
7762
|
easing: "ease-in-out"
|
|
7754
7763
|
}) {
|
|
7755
|
-
return (r === "instant" ? A : r === "animate" ? Xe : wt)(e, t, typeof n == "string" ? n :
|
|
7764
|
+
return (r === "instant" ? A : r === "animate" ? Xe : wt)(e, t, typeof n == "string" ? n : b([n], () => `hsl(${n.value}, 70%, 50%)`), i) ?? (() => {
|
|
7756
7765
|
});
|
|
7757
7766
|
}
|
|
7758
7767
|
static bindOpacity(e, t, n = "transition", r = {
|
|
@@ -7766,34 +7775,34 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7766
7775
|
duration: 300,
|
|
7767
7776
|
easing: "ease-out"
|
|
7768
7777
|
}) {
|
|
7769
|
-
return (n === "instant" ? A : n === "animate" ? Xe : n === "transition" ? wt : Wt)(e, "border-radius", t instanceof Y ?
|
|
7778
|
+
return (n === "instant" ? A : n === "animate" ? Xe : n === "transition" ? wt : Wt)(e, "border-radius", t instanceof Y ? b([t.x, t.y], () => `${t.x.value}px ${t.y.value}px`) : b([t], () => `${t.value}px`), r) ?? (() => {
|
|
7770
7779
|
});
|
|
7771
7780
|
}
|
|
7772
7781
|
}, rr = class {
|
|
7773
7782
|
static add(e, t, n = "px") {
|
|
7774
|
-
return
|
|
7783
|
+
return b([e, t], () => `calc(${e.value}${n} + ${t.value}${n})`);
|
|
7775
7784
|
}
|
|
7776
7785
|
static subtract(e, t, n = "px") {
|
|
7777
|
-
return
|
|
7786
|
+
return b([e, t], () => `calc(${e.value}${n} - ${t.value}${n})`);
|
|
7778
7787
|
}
|
|
7779
7788
|
static multiply(e, t) {
|
|
7780
|
-
return
|
|
7789
|
+
return b([e, t], () => `calc(${e.value} * ${t.value})`);
|
|
7781
7790
|
}
|
|
7782
7791
|
static divide(e, t) {
|
|
7783
|
-
return
|
|
7792
|
+
return b([e, t], () => `calc(${e.value} / ${t.value})`);
|
|
7784
7793
|
}
|
|
7785
7794
|
static clamp(e, t, n, r = "px") {
|
|
7786
|
-
return
|
|
7795
|
+
return b([
|
|
7787
7796
|
e,
|
|
7788
7797
|
t,
|
|
7789
7798
|
n
|
|
7790
7799
|
], () => `clamp(${t.value}${r}, ${e.value}${r}, ${n.value}${r})`);
|
|
7791
7800
|
}
|
|
7792
7801
|
static min(e, t, n = "px") {
|
|
7793
|
-
return
|
|
7802
|
+
return b([e, t], () => `min(${e.value}${n}, ${t.value}${n})`);
|
|
7794
7803
|
}
|
|
7795
7804
|
static max(e, t, n = "px") {
|
|
7796
|
-
return
|
|
7805
|
+
return b([e, t], () => `max(${e.value}${n}, ${t.value}${n})`);
|
|
7797
7806
|
}
|
|
7798
7807
|
}, CS = class {
|
|
7799
7808
|
static toDOMMatrix(e) {
|
|
@@ -7808,7 +7817,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7808
7817
|
}
|
|
7809
7818
|
}, PS = class {
|
|
7810
7819
|
static bindProperty(e, t, n, r = "") {
|
|
7811
|
-
return
|
|
7820
|
+
return b([n], () => (e.style.setProperty(t, `${n.value}${r}`), () => {
|
|
7812
7821
|
}));
|
|
7813
7822
|
}
|
|
7814
7823
|
static bindVectorProperties(e, t, n, r = "px") {
|
|
@@ -7829,48 +7838,48 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7829
7838
|
}
|
|
7830
7839
|
}, D = class {
|
|
7831
7840
|
static asPx(e) {
|
|
7832
|
-
return typeof e == "number" ? `${e || 0}px` : typeof e == "string" ? e || "0px" :
|
|
7841
|
+
return typeof e == "number" ? `${e || 0}px` : typeof e == "string" ? e || "0px" : b([e], (t) => `${t || 0}px`);
|
|
7833
7842
|
}
|
|
7834
7843
|
static asPercent(e) {
|
|
7835
|
-
return typeof e == "number" ? `${e || 0}%` : typeof e == "string" ? e || "0%" :
|
|
7844
|
+
return typeof e == "number" ? `${e || 0}%` : typeof e == "string" ? e || "0%" : b([e], (t) => `${t || 0}%`);
|
|
7836
7845
|
}
|
|
7837
7846
|
static asEm(e) {
|
|
7838
|
-
return typeof e == "number" ? `${e || 0}em` : typeof e == "string" ? e || "0em" :
|
|
7847
|
+
return typeof e == "number" ? `${e || 0}em` : typeof e == "string" ? e || "0em" : b([e], (t) => `${t || 0}em`);
|
|
7839
7848
|
}
|
|
7840
7849
|
static asRem(e) {
|
|
7841
|
-
return typeof e == "number" ? `${e || 0}rem` : typeof e == "string" ? e || "0rem" :
|
|
7850
|
+
return typeof e == "number" ? `${e || 0}rem` : typeof e == "string" ? e || "0rem" : b([e], (t) => `${t || 0}rem`);
|
|
7842
7851
|
}
|
|
7843
7852
|
static asVw(e) {
|
|
7844
|
-
return typeof e == "number" ? `${e || 0}vw` : typeof e == "string" ? e || "0vw" :
|
|
7853
|
+
return typeof e == "number" ? `${e || 0}vw` : typeof e == "string" ? e || "0vw" : b([e], (t) => `${t || 0}vw`);
|
|
7845
7854
|
}
|
|
7846
7855
|
static asVh(e) {
|
|
7847
|
-
return typeof e == "number" ? `${e || 0}vh` : typeof e == "string" ? e || "0vh" :
|
|
7856
|
+
return typeof e == "number" ? `${e || 0}vh` : typeof e == "string" ? e || "0vh" : b([e], (t) => `${t || 0}vh`);
|
|
7848
7857
|
}
|
|
7849
7858
|
static asUnit(e, t, n = 0) {
|
|
7850
|
-
return typeof e == "number" ? `${e || n}${t}` : typeof e == "string" ? e || `${n}${t}` :
|
|
7859
|
+
return typeof e == "number" ? `${e || n}${t}` : typeof e == "string" ? e || `${n}${t}` : b([e], (r) => `${r || n}${t}`);
|
|
7851
7860
|
}
|
|
7852
7861
|
static calc(e) {
|
|
7853
7862
|
return `calc(${e})`;
|
|
7854
7863
|
}
|
|
7855
7864
|
static reactiveCalc(e, t) {
|
|
7856
|
-
return
|
|
7865
|
+
return b(e, (...n) => `calc(${n.join(` ${t} `)})`);
|
|
7857
7866
|
}
|
|
7858
7867
|
static clamp(e, t, n) {
|
|
7859
|
-
return
|
|
7860
|
-
typeof e == "number" || typeof e == "string" ? e :
|
|
7861
|
-
typeof t == "number" || typeof t == "string" ? t :
|
|
7862
|
-
typeof n == "number" || typeof n == "string" ? n :
|
|
7868
|
+
return b([
|
|
7869
|
+
typeof e == "number" || typeof e == "string" ? e : b([e], (r) => r),
|
|
7870
|
+
typeof t == "number" || typeof t == "string" ? t : b([t], (r) => r),
|
|
7871
|
+
typeof n == "number" || typeof n == "string" ? n : b([n], (r) => r)
|
|
7863
7872
|
].filter((r) => typeof r != "string"), () => `clamp(${typeof e == "number" || typeof e == "string" ? e : e.value}, ${typeof t == "number" || typeof t == "string" ? t : t.value}, ${typeof n == "number" || typeof n == "string" ? n : n.value})`);
|
|
7864
7873
|
}
|
|
7865
7874
|
static max(e) {
|
|
7866
|
-
return
|
|
7875
|
+
return b(e.filter((t) => typeof t != "string"), (...t) => `max(${e.map((n) => typeof n == "number" || typeof n == "string" ? n : n.value).join(", ")})`);
|
|
7867
7876
|
}
|
|
7868
7877
|
static min(e) {
|
|
7869
|
-
return
|
|
7878
|
+
return b(e.filter((t) => typeof t != "string"), (...t) => `min(${e.map((n) => typeof n == "number" || typeof n == "string" ? n : n.value).join(", ")})`);
|
|
7870
7879
|
}
|
|
7871
7880
|
}, AS = class {
|
|
7872
7881
|
static bindSliderThumb(e, t, n, r, i) {
|
|
7873
|
-
const s =
|
|
7882
|
+
const s = b([
|
|
7874
7883
|
t,
|
|
7875
7884
|
n,
|
|
7876
7885
|
r,
|
|
@@ -7879,11 +7888,11 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7879
7888
|
return tt.bindTransform(e, s);
|
|
7880
7889
|
}
|
|
7881
7890
|
static bindProgressFill(e, t) {
|
|
7882
|
-
return A(e, "width",
|
|
7891
|
+
return A(e, "width", b([t], () => `${t.value * 100}%`), R) ?? (() => {
|
|
7883
7892
|
});
|
|
7884
7893
|
}
|
|
7885
7894
|
static bindToggleState(e, t) {
|
|
7886
|
-
const n =
|
|
7895
|
+
const n = b([t], () => t.value ? "scale(1)" : "scale(0)"), r = b([t], () => t.value ? "1" : "0"), i = tt.bindTransform(e, n), s = A(e, "opacity", r, R) ?? (() => {
|
|
7887
7896
|
});
|
|
7888
7897
|
return () => {
|
|
7889
7898
|
i?.(), s?.();
|
|
@@ -7891,10 +7900,10 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7891
7900
|
}
|
|
7892
7901
|
}, TS = class {
|
|
7893
7902
|
static bindScrollbarThumb(e, t, n, r, i = "vertical") {
|
|
7894
|
-
const s =
|
|
7903
|
+
const s = b([n, r], () => {
|
|
7895
7904
|
const u = r.value / n.value;
|
|
7896
7905
|
return Math.max(20, u * r.value);
|
|
7897
|
-
}), o =
|
|
7906
|
+
}), o = b([
|
|
7898
7907
|
t,
|
|
7899
7908
|
n,
|
|
7900
7909
|
r,
|
|
@@ -7902,23 +7911,23 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7902
7911
|
], () => {
|
|
7903
7912
|
const u = Math.max(0, n.value - r.value);
|
|
7904
7913
|
return (u > 0 ? t.value / u : 0) * (r.value - s.value);
|
|
7905
|
-
}), a = i === "vertical" ?
|
|
7914
|
+
}), a = i === "vertical" ? b([o], () => `translateY(${o.value}px)`) : b([o], () => `translateX(${o.value}px)`), l = i === "vertical" ? A(e, "height", b([s], (u) => `${u}px`), R) : A(e, "width", b([s], (u) => `${u}px`), R), c = tt.bindTransform(e, a);
|
|
7906
7915
|
return () => {
|
|
7907
7916
|
l?.(), c?.();
|
|
7908
7917
|
};
|
|
7909
7918
|
}
|
|
7910
7919
|
static bindScrollbarVisibility(e, t, n = 300) {
|
|
7911
|
-
const r =
|
|
7920
|
+
const r = b([t], () => t.value), i = b([t], () => t.value > 0 ? "visible" : "hidden"), s = b([t], () => t.value > 0 ? "auto" : "none"), o = A(e, "opacity", r, R), a = A(e, "visibility", i, R), l = A(e, "pointer-events", s, R);
|
|
7912
7921
|
return e.style.transition = `opacity ${n}ms ease-in-out`, () => {
|
|
7913
7922
|
o?.(), a?.(), l?.();
|
|
7914
7923
|
};
|
|
7915
7924
|
}
|
|
7916
7925
|
static bindScrollbarTheme(e, t) {
|
|
7917
7926
|
const n = [];
|
|
7918
|
-
return t.trackColor && n.push(A(e, "--scrollbar-track-color",
|
|
7919
|
-
})), t.thumbColor && n.push(A(e, "--scrollbar-thumb-color",
|
|
7920
|
-
})), t.borderRadius && n.push(A(e, "--scrollbar-border-radius",
|
|
7921
|
-
})), t.thickness && n.push(A(e, "--scrollbar-thickness",
|
|
7927
|
+
return t.trackColor && n.push(A(e, "--scrollbar-track-color", b([t.trackColor], (r) => `rgba(${r.value}, ${r.value}, ${r.value}, 0.1)`), R) ?? (() => {
|
|
7928
|
+
})), t.thumbColor && n.push(A(e, "--scrollbar-thumb-color", b([t.thumbColor], (r) => `rgba(${r.value}, ${r.value}, ${r.value}, 0.5)`), R) ?? (() => {
|
|
7929
|
+
})), t.borderRadius && n.push(A(e, "--scrollbar-border-radius", b([t.borderRadius], (r) => `${r.value}px`), R) ?? (() => {
|
|
7930
|
+
})), t.thickness && n.push(A(e, "--scrollbar-thickness", b([t.thickness], (r) => `${r.value}px`), R) ?? (() => {
|
|
7922
7931
|
})), () => n.forEach((r) => r?.());
|
|
7923
7932
|
}
|
|
7924
7933
|
}, MS = class {
|
|
@@ -7949,16 +7958,16 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7949
7958
|
}
|
|
7950
7959
|
}, RS = class {
|
|
7951
7960
|
static bindFocusRing(e, t, n = "rgba(59, 130, 246, 0.5)") {
|
|
7952
|
-
return A(e, "box-shadow",
|
|
7961
|
+
return A(e, "box-shadow", b([t], () => t.value ? `0 0 0 2px ${n}` : "none"), R) ?? (() => {
|
|
7953
7962
|
});
|
|
7954
7963
|
}
|
|
7955
7964
|
static bindHoverState(e, t, n = "scale(1.05)") {
|
|
7956
|
-
const r =
|
|
7965
|
+
const r = b([t], () => t.value ? n : "none");
|
|
7957
7966
|
return tt.bindTransform(e, r) ?? (() => {
|
|
7958
7967
|
});
|
|
7959
7968
|
}
|
|
7960
7969
|
static bindActiveState(e, t, n = "scale(0.95)") {
|
|
7961
|
-
const r =
|
|
7970
|
+
const r = b([t], () => t.value ? n : "none");
|
|
7962
7971
|
return tt.bindTransform(e, r) ?? (() => {
|
|
7963
7972
|
});
|
|
7964
7973
|
}
|
|
@@ -8027,7 +8036,7 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
8027
8036
|
return [a.movement.x.value, a.movement.y.value];
|
|
8028
8037
|
},
|
|
8029
8038
|
get boundingBox() {
|
|
8030
|
-
return a.boundingBox ??=
|
|
8039
|
+
return a.boundingBox ??= Hr(n?.target || r, Pn(n.target || r) || 0);
|
|
8031
8040
|
},
|
|
8032
8041
|
capture(c = n?.target || r) {
|
|
8033
8042
|
return l.cap_element = c?.setPointerCapture?.(n?.pointerId || 0);
|
|
@@ -8062,8 +8071,8 @@ var dS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
8062
8071
|
contextmenu: i
|
|
8063
8072
|
});
|
|
8064
8073
|
setTimeout(n, 10);
|
|
8065
|
-
},
|
|
8066
|
-
typeof PointerEvent < "u" ?
|
|
8074
|
+
}, Dr = null;
|
|
8075
|
+
typeof PointerEvent < "u" ? Dr = class extends PointerEvent {
|
|
8067
8076
|
#e;
|
|
8068
8077
|
constructor(t, n) {
|
|
8069
8078
|
super(t, n), this.#e = n?.holding;
|
|
@@ -8095,7 +8104,7 @@ typeof PointerEvent < "u" ? $r = class extends PointerEvent {
|
|
|
8095
8104
|
get propertyName() {
|
|
8096
8105
|
return this.#e?.propertyName ?? "drag";
|
|
8097
8106
|
}
|
|
8098
|
-
} :
|
|
8107
|
+
} : Dr = class {
|
|
8099
8108
|
#e;
|
|
8100
8109
|
constructor(t, n) {
|
|
8101
8110
|
this.#e = n?.holding;
|
|
@@ -8125,7 +8134,7 @@ var zS = /* @__PURE__ */ new WeakMap(), mv = (e, t = {
|
|
|
8125
8134
|
if (t?.pointerId == p?.pointerId) {
|
|
8126
8135
|
p?.preventDefault?.();
|
|
8127
8136
|
const y = [...p?.client || [p?.clientX || 0, p?.clientY || 0]];
|
|
8128
|
-
c.duration = l(), c.movement = [...c.client ? [y?.[0] - (c.client?.[0] || 0), y?.[1] - (c.client?.[1] || 0)] : [0, 0]], c.client = y, c.shifting[0] += c.movement[0] || 0, c.shifting[1] += c.movement[1] || 0, c.modified[0] = (c.shifting[0] ?? c.modified[0]) || 0, c.modified[1] = (c.shifting[1] ?? c.modified[1]) || 0, e?.dispatchEvent?.(new
|
|
8137
|
+
c.duration = l(), c.movement = [...c.client ? [y?.[0] - (c.client?.[0] || 0), y?.[1] - (c.client?.[1] || 0)] : [0, 0]], c.client = y, c.shifting[0] += c.movement[0] || 0, c.shifting[1] += c.movement[1] || 0, c.modified[0] = (c.shifting[0] ?? c.modified[0]) || 0, c.modified[1] = (c.shifting[1] ?? c.modified[1]) || 0, e?.dispatchEvent?.(new Dr("m-dragging", {
|
|
8129
8138
|
...p,
|
|
8130
8139
|
bubbles: !0,
|
|
8131
8140
|
holding: c,
|
|
@@ -8135,7 +8144,7 @@ var zS = /* @__PURE__ */ new WeakMap(), mv = (e, t = {
|
|
|
8135
8144
|
}), { capture: !0 }], d = Promise.withResolvers(), h = [((p) => {
|
|
8136
8145
|
if (t?.pointerId == p?.pointerId) {
|
|
8137
8146
|
const y = e?.element || e;
|
|
8138
|
-
p?.type == "pointerup" && fc(y, p?.pointerId), queueMicrotask(() => d?.resolve?.(r)), f?.forEach?.((
|
|
8147
|
+
p?.type == "pointerup" && fc(y, p?.pointerId), queueMicrotask(() => d?.resolve?.(r)), f?.forEach?.((v) => v?.());
|
|
8139
8148
|
try {
|
|
8140
8149
|
y?.releasePointerCapture?.(p?.pointerId);
|
|
8141
8150
|
} catch {
|
|
@@ -8144,7 +8153,7 @@ var zS = /* @__PURE__ */ new WeakMap(), mv = (e, t = {
|
|
|
8144
8153
|
y?.releaseCapturePointer?.(p?.pointerId);
|
|
8145
8154
|
} catch {
|
|
8146
8155
|
}
|
|
8147
|
-
y?.dispatchEvent?.(new
|
|
8156
|
+
y?.dispatchEvent?.(new Dr("m-dragend", {
|
|
8148
8157
|
...p,
|
|
8149
8158
|
bubbles: !0,
|
|
8150
8159
|
holding: c,
|
|
@@ -8158,7 +8167,7 @@ var zS = /* @__PURE__ */ new WeakMap(), mv = (e, t = {
|
|
|
8158
8167
|
}), { capture: !0 }];
|
|
8159
8168
|
let f = null;
|
|
8160
8169
|
return fc(e, t?.pointerId), queueMicrotask(() => {
|
|
8161
|
-
e?.dispatchEvent?.(new
|
|
8170
|
+
e?.dispatchEvent?.(new Dr("m-dragstart", {
|
|
8162
8171
|
...t,
|
|
8163
8172
|
bubbles: !0,
|
|
8164
8173
|
holding: c,
|
|
@@ -8788,8 +8797,8 @@ function jS(e) {
|
|
|
8788
8797
|
let f;
|
|
8789
8798
|
typeof e.dragHandle == "string" ? f = t.querySelector(e.dragHandle) : f = e.dragHandle, fo(f, f && f !== t ? d : void 0);
|
|
8790
8799
|
let p;
|
|
8791
|
-
return a && (typeof e.resizeHandle == "string" ? p = t.querySelector(e.resizeHandle) : p = e.resizeHandle ?? void 0, fo(p, h)),
|
|
8792
|
-
n ? t.setAttribute("data-mixin", n) : t.removeAttribute("data-mixin"), r != null ? t.setAttribute("data-junction-drag-handle", r) : t.removeAttribute("data-junction-drag-handle"), i != null ? t.setAttribute("data-junction-resize-handle", i) : t.removeAttribute("data-junction-resize-handle"), s != null ? t.setAttribute("data-junction-resize-min-w", s) : t.removeAttribute("data-junction-resize-min-w"), o != null ? t.setAttribute("data-junction-resize-min-h", o) : t.removeAttribute("data-junction-resize-min-h"), t.style.removeProperty("anchor-name"), f?.style?.removeProperty("anchor-name"), p?.removeAttribute("data-jx-anchor-ctl"), f?.removeAttribute("data-jx-anchor-ctl"), p?.style?.removeProperty("anchor-name"),
|
|
8800
|
+
return a && (typeof e.resizeHandle == "string" ? p = t.querySelector(e.resizeHandle) : p = e.resizeHandle ?? void 0, fo(p, h)), jr(t), () => {
|
|
8801
|
+
n ? t.setAttribute("data-mixin", n) : t.removeAttribute("data-mixin"), r != null ? t.setAttribute("data-junction-drag-handle", r) : t.removeAttribute("data-junction-drag-handle"), i != null ? t.setAttribute("data-junction-resize-handle", i) : t.removeAttribute("data-junction-resize-handle"), s != null ? t.setAttribute("data-junction-resize-min-w", s) : t.removeAttribute("data-junction-resize-min-w"), o != null ? t.setAttribute("data-junction-resize-min-h", o) : t.removeAttribute("data-junction-resize-min-h"), t.style.removeProperty("anchor-name"), f?.style?.removeProperty("anchor-name"), p?.removeAttribute("data-jx-anchor-ctl"), f?.removeAttribute("data-jx-anchor-ctl"), p?.style?.removeProperty("anchor-name"), jr(t);
|
|
8793
8802
|
};
|
|
8794
8803
|
}
|
|
8795
8804
|
var bv = () => "--" + Math.random().toString(36).substring(2, 15).replace(/[0-9]/g, ""), wv = (e) => e?.computedStyleMap ? Number(e.computedStyleMap().get("z-index")?.toString() || 0) || 0 : Number(getComputedStyle(e?.element ?? e).getPropertyValue("z-index") || 0) || 0, Ca = (e) => e ? e?.attributeStyleMap && e.attributeStyleMap.get("z-index") != null ? Number(e.attributeStyleMap.get("z-index")?.value ?? 0) || 0 : e?.style && "zIndex" in e.style && e.style.zIndex != null ? Number(e.style.zIndex || 0) || 0 : wv(e) : 0, US = class {
|
|
@@ -8821,21 +8830,21 @@ var bv = () => "--" + Math.random().toString(36).substring(2, 15).replace(/[0-9]
|
|
|
8821
8830
|
x: typeof e == "number" ? w(e) : e,
|
|
8822
8831
|
y: typeof t == "number" ? w(t) : t
|
|
8823
8832
|
};
|
|
8824
|
-
return this.transforms.push(
|
|
8833
|
+
return this.transforms.push(Pr.translate2D(n)), this;
|
|
8825
8834
|
}
|
|
8826
8835
|
scale(e, t) {
|
|
8827
8836
|
const n = typeof e == "number" ? w(e) : e, r = t !== void 0 ? typeof t == "number" ? w(t) : t : n;
|
|
8828
|
-
return this.transforms.push(
|
|
8837
|
+
return this.transforms.push(Pr.scale2D({
|
|
8829
8838
|
x: n,
|
|
8830
8839
|
y: r
|
|
8831
8840
|
})), this;
|
|
8832
8841
|
}
|
|
8833
8842
|
rotate(e) {
|
|
8834
8843
|
const t = typeof e == "number" ? w(e) : e;
|
|
8835
|
-
return this.transforms.push(
|
|
8844
|
+
return this.transforms.push(Pr.rotate(t)), this;
|
|
8836
8845
|
}
|
|
8837
8846
|
get value() {
|
|
8838
|
-
return
|
|
8847
|
+
return Pr.combine(this.transforms);
|
|
8839
8848
|
}
|
|
8840
8849
|
bindTo(e) {
|
|
8841
8850
|
return tt.bindTransform(e, {
|
|
@@ -9018,10 +9027,10 @@ function Ts(e, t) {
|
|
|
9018
9027
|
childList: !0,
|
|
9019
9028
|
subtree: !0
|
|
9020
9029
|
})), h();
|
|
9021
|
-
function
|
|
9030
|
+
function v() {
|
|
9022
9031
|
f.forEach((m) => m?.()), p?.disconnect?.(), y?.disconnect?.();
|
|
9023
9032
|
}
|
|
9024
|
-
return
|
|
9033
|
+
return v && i.forEach((m) => J(m, Symbol.dispose, v)), Object.assign(i, {
|
|
9025
9034
|
position: n,
|
|
9026
9035
|
size: r,
|
|
9027
9036
|
rect: s,
|
|
@@ -9036,7 +9045,7 @@ function Ts(e, t) {
|
|
|
9036
9045
|
bindSize: (m) => tt.bindSize(m, r),
|
|
9037
9046
|
bindCenter: (m) => tt.bindPosition(m, o),
|
|
9038
9047
|
destroy: () => {
|
|
9039
|
-
d.destroy(),
|
|
9048
|
+
d.destroy(), v();
|
|
9040
9049
|
}
|
|
9041
9050
|
});
|
|
9042
9051
|
}
|
|
@@ -9054,7 +9063,7 @@ var XS = (e, t, n) => {
|
|
|
9054
9063
|
o?.forEach?.((a) => a?.());
|
|
9055
9064
|
});
|
|
9056
9065
|
}, ht = (e, t = document.documentElement, n = !1) => {
|
|
9057
|
-
const r =
|
|
9066
|
+
const r = Hr(t) ?? t?.getBoundingClientRect?.(), i = Hr(e) ?? e?.getBoundingClientRect?.();
|
|
9058
9067
|
if (!i) return n ? {
|
|
9059
9068
|
intersection: {
|
|
9060
9069
|
left: 0,
|
|
@@ -9192,8 +9201,8 @@ function Sf(e, t) {
|
|
|
9192
9201
|
width: f.width,
|
|
9193
9202
|
height: f.height
|
|
9194
9203
|
},
|
|
9195
|
-
anchor:
|
|
9196
|
-
root: (r instanceof HTMLElement ?
|
|
9204
|
+
anchor: Hr(e) ?? e?.getBoundingClientRect?.(),
|
|
9205
|
+
root: (r instanceof HTMLElement ? Hr(r) ?? r?.getBoundingClientRect?.() : null) ?? {
|
|
9197
9206
|
left: 0,
|
|
9198
9207
|
top: 0,
|
|
9199
9208
|
right: globalThis.innerWidth,
|
|
@@ -9247,11 +9256,11 @@ function Sf(e, t) {
|
|
|
9247
9256
|
}
|
|
9248
9257
|
return h && n.forEach((f) => J(f, Symbol.dispose, h)), n;
|
|
9249
9258
|
}
|
|
9250
|
-
var
|
|
9259
|
+
var Fr = (e) => e?.parentElement ? e?.parentElement instanceof DocumentFragment ? void 0 : e?.parentElement : e?.host?.shadowRoot, Pa = (e, t) => {
|
|
9251
9260
|
if (!e?.isConnected) return t();
|
|
9252
9261
|
const n = new MutationObserver((s, o) => {
|
|
9253
9262
|
for (const a of s) a.type == "childList" && Array.from(a?.removedNodes || []).some((l) => l === e || l?.contains?.(e)) && (queueMicrotask(() => t(a)), o?.disconnect?.());
|
|
9254
|
-
}), r =
|
|
9263
|
+
}), r = Fr(e) ?? document.documentElement, i = (r instanceof HTMLElement ? r : r?.host) ?? r;
|
|
9255
9264
|
queueMicrotask(() => n.observe(i, {
|
|
9256
9265
|
subtree: !0,
|
|
9257
9266
|
childList: !0
|
|
@@ -9260,7 +9269,7 @@ var Dr = (e) => e?.parentElement ? e?.parentElement instanceof DocumentFragment
|
|
|
9260
9269
|
if (e?.isConnected) return t();
|
|
9261
9270
|
const n = new MutationObserver((s, o) => {
|
|
9262
9271
|
e?.isConnected && (queueMicrotask(() => t()), o?.disconnect?.());
|
|
9263
|
-
}), r =
|
|
9272
|
+
}), r = Fr(e), i = (r instanceof HTMLElement && r.isConnected ? r : null) ?? document.documentElement;
|
|
9264
9273
|
queueMicrotask(() => {
|
|
9265
9274
|
if (e?.isConnected) {
|
|
9266
9275
|
t(), n.disconnect();
|
|
@@ -9304,15 +9313,15 @@ var Dr = (e) => e?.parentElement ? e?.parentElement instanceof DocumentFragment
|
|
|
9304
9313
|
zIndexShift: o
|
|
9305
9314
|
});
|
|
9306
9315
|
if (h == null ? t.style.removeProperty("z-index") : t.style.setProperty("z-index", String(h)), i === "underlying" && (t.style.pointerEvents || (t.style.pointerEvents = "none")), l === "contain") {
|
|
9307
|
-
const p = (n instanceof HTMLElement ? n : null) ??
|
|
9316
|
+
const p = (n instanceof HTMLElement ? n : null) ?? Fr(e) ?? e.parentElement;
|
|
9308
9317
|
return p instanceof HTMLElement && getComputedStyle(p).position === "static" && (p.style.position = "relative"), t.style.position = "absolute", t.style.inset = c ? `${c}px` : "0", t.style.inlineSize = "auto", t.style.blockSize = "auto", t.style.removeProperty("position-anchor"), t.style.removeProperty("position-area"), t.style.removeProperty("anchor-name"), Aa(e, () => {
|
|
9309
|
-
const y = (n instanceof HTMLElement ? n : null) ??
|
|
9318
|
+
const y = (n instanceof HTMLElement ? n : null) ?? Fr(e) ?? e.parentElement;
|
|
9310
9319
|
i === "underlying" ? e?.before?.(t) : e?.after?.(t), Pa(y ?? e, () => t?.remove?.());
|
|
9311
9320
|
}), e;
|
|
9312
9321
|
}
|
|
9313
9322
|
const f = wf(e);
|
|
9314
9323
|
return Ev(f, t, a, o, c, u, d), h == null ? t.style.removeProperty("z-index") : t.style.setProperty("z-index", String(h)), Aa(e, () => {
|
|
9315
|
-
const p =
|
|
9324
|
+
const p = Fr(e) ?? n;
|
|
9316
9325
|
(p instanceof HTMLElement ? p : p?.host)?.style?.setProperty?.("anchor-scope", f.anchorId), i === "underlying" ? e?.before?.(t) : e?.after?.(t), Pa(p, () => t?.remove?.());
|
|
9317
9326
|
}), e;
|
|
9318
9327
|
}, _f = (e, t, n, r) => {
|
|
@@ -9439,7 +9448,7 @@ var Dr = (e) => e?.parentElement ? e?.parentElement instanceof DocumentFragment
|
|
|
9439
9448
|
observeMutations: !0
|
|
9440
9449
|
}), A(this.shadowContainer, "left", D.asPx(this.anchorBox?.[0]), R), A(this.shadowContainer, "top", D.asPx(this.anchorBox?.[1]), R), A(this.shadowContainer, "width", D.asPx(this.anchorBox?.[2]), R), A(this.shadowContainer, "height", D.asPx(this.anchorBox?.[3]), R)), this.options.inset !== 0)) {
|
|
9441
9450
|
const t = D.asPx(this.options.inset);
|
|
9442
|
-
|
|
9451
|
+
Cr(this.shadowContainer, "left", `calc(var(--left) + ${t})`), Cr(this.shadowContainer, "top", `calc(var(--top) + ${t})`), Cr(this.shadowContainer, "width", `calc(var(--width) - ${2 * t})`), Cr(this.shadowContainer, "height", `calc(var(--height) - ${2 * t})`);
|
|
9443
9452
|
}
|
|
9444
9453
|
}
|
|
9445
9454
|
setupGeometryCloning() {
|
|
@@ -9632,13 +9641,13 @@ var Mv = (e, t) => {
|
|
|
9632
9641
|
if (Array.isArray(u) && u.length && (n.items = u), a?.value && i?.type !== "contextmenu")
|
|
9633
9642
|
return a.value = !1, n?.openedWith?.close?.(), s;
|
|
9634
9643
|
if (l && a) {
|
|
9635
|
-
s = !0, o.innerHTML = "", a.value = !0, o?.append?.(...n?.items?.map?.((y,
|
|
9636
|
-
const m = y?.map?.((k) => Pe`<li data-id=${k?.id || ""}><ui-icon icon=${k?.icon || ""} icon-style="duotone"></ui-icon><span>${k?.label || ""}</span></li>`), x = y?.length > 1 &&
|
|
9644
|
+
s = !0, o.innerHTML = "", a.value = !0, o?.append?.(...n?.items?.map?.((y, v) => {
|
|
9645
|
+
const m = y?.map?.((k) => Pe`<li data-id=${k?.id || ""}><ui-icon icon=${k?.icon || ""} icon-style="duotone"></ui-icon><span>${k?.label || ""}</span></li>`), x = y?.length > 1 && v !== (n?.items?.length || 0) - 1 ? Pe`<li class="ctx-menu-separator"></li>` : null;
|
|
9637
9646
|
return [...m, x];
|
|
9638
9647
|
})?.flat?.()?.filter?.((y) => !!y) || []);
|
|
9639
9648
|
const d = ry?.(o, t?.(i, l)), h = Ov(o, n), f = hf?.(o, (y) => {
|
|
9640
|
-
const
|
|
9641
|
-
if (!(o?.contains?.(y?.target ?? null) || y?.target == (
|
|
9649
|
+
const v = o;
|
|
9650
|
+
if (!(o?.contains?.(y?.target ?? null) || y?.target == (v?.element ?? v)) || !y?.target) {
|
|
9642
9651
|
n?.openedWith?.close?.();
|
|
9643
9652
|
const m = os(o);
|
|
9644
9653
|
m != null && (m.value = !1);
|
|
@@ -9685,7 +9694,7 @@ var Mv = (e, t) => {
|
|
|
9685
9694
|
return () => {
|
|
9686
9695
|
o?.(), a?.();
|
|
9687
9696
|
};
|
|
9688
|
-
}, Tf = "rs-clipboard", Iv = 256e3, Nv = 2e6, zv = 12e3,
|
|
9697
|
+
}, Tf = "rs-clipboard", Iv = 256e3, Nv = 2e6, zv = 12e3, ai = (e) => {
|
|
9689
9698
|
if (typeof globalThis.requestAnimationFrame == "function") {
|
|
9690
9699
|
globalThis.requestAnimationFrame(e);
|
|
9691
9700
|
return;
|
|
@@ -9704,7 +9713,7 @@ var Mv = (e, t) => {
|
|
|
9704
9713
|
return;
|
|
9705
9714
|
}
|
|
9706
9715
|
e();
|
|
9707
|
-
},
|
|
9716
|
+
}, li = (e) => {
|
|
9708
9717
|
if (e == null) return "";
|
|
9709
9718
|
if (typeof e == "string") return e;
|
|
9710
9719
|
try {
|
|
@@ -9714,8 +9723,8 @@ var Mv = (e, t) => {
|
|
|
9714
9723
|
}
|
|
9715
9724
|
}, Lv = (e, t) => Promise.race([e.then(() => "ok").catch(() => "error"), new Promise((n) => {
|
|
9716
9725
|
globalThis.setTimeout(() => n("timeout"), t);
|
|
9717
|
-
})]),
|
|
9718
|
-
const t =
|
|
9726
|
+
})]), Qr = async (e) => {
|
|
9727
|
+
const t = li(e);
|
|
9719
9728
|
if (!t.trim()) return {
|
|
9720
9729
|
ok: !1,
|
|
9721
9730
|
error: "Empty content"
|
|
@@ -9726,7 +9735,7 @@ var Mv = (e, t) => {
|
|
|
9726
9735
|
};
|
|
9727
9736
|
const n = t.trim();
|
|
9728
9737
|
return new Promise((r) => {
|
|
9729
|
-
|
|
9738
|
+
ai(() => {
|
|
9730
9739
|
typeof document < "u" && document.hasFocus && !document.hasFocus() && globalThis?.focus?.(), (async () => {
|
|
9731
9740
|
const s = async () => {
|
|
9732
9741
|
if (typeof navigator > "u" || !navigator.clipboard?.writeText) return !1;
|
|
@@ -9770,7 +9779,7 @@ var Mv = (e, t) => {
|
|
|
9770
9779
|
}, $v = async (e, t) => {
|
|
9771
9780
|
const n = e.trim(), r = (t ?? n).trim();
|
|
9772
9781
|
return n ? new Promise((i) => {
|
|
9773
|
-
|
|
9782
|
+
ai(() => {
|
|
9774
9783
|
typeof document < "u" && document.hasFocus && !document.hasFocus() && globalThis?.focus?.(), (async () => {
|
|
9775
9784
|
try {
|
|
9776
9785
|
if (typeof navigator < "u" && navigator.clipboard?.write) {
|
|
@@ -9787,7 +9796,7 @@ var Mv = (e, t) => {
|
|
|
9787
9796
|
} catch (o) {
|
|
9788
9797
|
console.warn("[Clipboard] HTML write failed:", o);
|
|
9789
9798
|
}
|
|
9790
|
-
i(await
|
|
9799
|
+
i(await Qr(r));
|
|
9791
9800
|
})();
|
|
9792
9801
|
});
|
|
9793
9802
|
}) : {
|
|
@@ -9795,7 +9804,7 @@ var Mv = (e, t) => {
|
|
|
9795
9804
|
error: "Empty content"
|
|
9796
9805
|
};
|
|
9797
9806
|
}, pc = async (e) => new Promise((t) => {
|
|
9798
|
-
|
|
9807
|
+
ai(async () => {
|
|
9799
9808
|
typeof document < "u" && document.hasFocus && !document.hasFocus() && globalThis?.focus?.();
|
|
9800
9809
|
try {
|
|
9801
9810
|
let n;
|
|
@@ -9836,7 +9845,7 @@ var Mv = (e, t) => {
|
|
|
9836
9845
|
URL.revokeObjectURL(i), n(/* @__PURE__ */ new Error("Image load failed"));
|
|
9837
9846
|
}, r.src = i;
|
|
9838
9847
|
}), sx = async () => new Promise((e) => {
|
|
9839
|
-
|
|
9848
|
+
ai(() => {
|
|
9840
9849
|
(async () => {
|
|
9841
9850
|
try {
|
|
9842
9851
|
if (typeof navigator < "u" && navigator.clipboard?.readText) {
|
|
@@ -9859,14 +9868,14 @@ var Mv = (e, t) => {
|
|
|
9859
9868
|
}), Fv = async (e, t = {}) => {
|
|
9860
9869
|
const { type: n, showFeedback: r = !1, silentOnError: i = !1 } = t;
|
|
9861
9870
|
return new Promise((s) => {
|
|
9862
|
-
|
|
9871
|
+
ai(async () => {
|
|
9863
9872
|
let o;
|
|
9864
9873
|
if (e instanceof Blob) if (e.type.startsWith("image/")) o = await pc(e);
|
|
9865
9874
|
else {
|
|
9866
9875
|
const a = await e.text();
|
|
9867
|
-
o = await
|
|
9876
|
+
o = await Qr(a);
|
|
9868
9877
|
}
|
|
9869
|
-
else n === "html" || typeof e == "string" && e.trim().startsWith("<") ? o = await $v(String(e)) : n === "image" ? o = await pc(e) : o = await
|
|
9878
|
+
else n === "html" || typeof e == "string" && e.trim().startsWith("<") ? o = await $v(String(e)) : n === "image" ? o = await pc(e) : o = await Qr(li(e));
|
|
9870
9879
|
r && (o.ok || !i) && Wv(o), s(o);
|
|
9871
9880
|
});
|
|
9872
9881
|
});
|
|
@@ -9895,10 +9904,10 @@ var Mv = (e, t) => {
|
|
|
9895
9904
|
} catch (n) {
|
|
9896
9905
|
console.warn("[Clipboard] Request broadcast failed:", n);
|
|
9897
9906
|
}
|
|
9898
|
-
}, ho = null,
|
|
9907
|
+
}, ho = null, Sr = 0, po = null, yc = Promise.resolve(), Bv = () => {
|
|
9899
9908
|
if (typeof BroadcastChannel > "u") return () => {
|
|
9900
9909
|
};
|
|
9901
|
-
if (
|
|
9910
|
+
if (Sr === 0) {
|
|
9902
9911
|
const e = new BroadcastChannel(Tf), t = (n) => {
|
|
9903
9912
|
if (n.data?.type !== "copy") return;
|
|
9904
9913
|
const r = n.data.options || {}, i = n.data.data;
|
|
@@ -9916,10 +9925,10 @@ var Mv = (e, t) => {
|
|
|
9916
9925
|
};
|
|
9917
9926
|
e.addEventListener("message", t), ho = e, po = t;
|
|
9918
9927
|
}
|
|
9919
|
-
return
|
|
9920
|
-
if (
|
|
9928
|
+
return Sr++, () => {
|
|
9929
|
+
if (Sr--, Sr <= 0) {
|
|
9921
9930
|
const e = ho, t = po;
|
|
9922
|
-
e && t && (e.removeEventListener("message", t), e.close()), ho = null, po = null,
|
|
9931
|
+
e && t && (e.removeEventListener("message", t), e.close()), ho = null, po = null, Sr = 0;
|
|
9923
9932
|
}
|
|
9924
9933
|
};
|
|
9925
9934
|
}, ox = () => Bv(), ax = () => typeof navigator < "u" && !!navigator.clipboard, lx = () => typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function", jv = () => {
|
|
@@ -9929,7 +9938,7 @@ var Mv = (e, t) => {
|
|
|
9929
9938
|
return !1;
|
|
9930
9939
|
}
|
|
9931
9940
|
}, cx = async (e, t) => {
|
|
9932
|
-
const { tabId: n, offscreenFallback: r } = typeof t == "number" ? { tabId: t } : t || {}, i =
|
|
9941
|
+
const { tabId: n, offscreenFallback: r } = typeof t == "number" ? { tabId: t } : t || {}, i = li(e).trim();
|
|
9933
9942
|
if (!i) return {
|
|
9934
9943
|
ok: !1,
|
|
9935
9944
|
error: "Empty content"
|
|
@@ -9982,7 +9991,7 @@ var Mv = (e, t) => {
|
|
|
9982
9991
|
error: "Broadcast sent, result pending",
|
|
9983
9992
|
method: "broadcast"
|
|
9984
9993
|
};
|
|
9985
|
-
}, ux = async (e) => (await
|
|
9994
|
+
}, ux = async (e) => (await Qr(li(e))).ok, fx = async (e) => Qr(li(e)), Uv = (e, t) => {
|
|
9986
9995
|
const n = /* @__PURE__ */ new Set();
|
|
9987
9996
|
let r = e?.target || document.activeElement || document.body;
|
|
9988
9997
|
if (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r.isContentEditable) return [];
|
|
@@ -10018,13 +10027,13 @@ var Mv = (e, t) => {
|
|
|
10018
10027
|
s && r.has(s) || (r.add(i), s && r.add(s), i[t]?.(e));
|
|
10019
10028
|
}
|
|
10020
10029
|
}, mc = !1, dx = () => {
|
|
10021
|
-
typeof window > "u" || mc || (mc = !0,
|
|
10030
|
+
typeof window > "u" || mc || (mc = !0, $r(window, "copy", (e) => yo(e, "onCopy"), {
|
|
10022
10031
|
capture: !1,
|
|
10023
10032
|
passive: !0
|
|
10024
|
-
}),
|
|
10033
|
+
}), $r(window, "cut", (e) => yo(e, "onCut"), {
|
|
10025
10034
|
capture: !1,
|
|
10026
10035
|
passive: !0
|
|
10027
|
-
}),
|
|
10036
|
+
}), $r(window, "paste", (e) => yo(e, "onPaste"), {
|
|
10028
10037
|
capture: !1,
|
|
10029
10038
|
passive: !1
|
|
10030
10039
|
}));
|
|
@@ -10098,7 +10107,7 @@ function yx(e, t, n) {
|
|
|
10098
10107
|
function mx() {
|
|
10099
10108
|
Rf(Ms);
|
|
10100
10109
|
}
|
|
10101
|
-
var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i,
|
|
10110
|
+
var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, ci = (e) => {
|
|
10102
10111
|
const t = String(e || "").trim().toLowerCase().replace(/\.$/, "");
|
|
10103
10112
|
return !!(!t || t === "localhost" || t.endsWith(".local") || t === "::1" || /^127\.\d+\.\d+\.\d+$/.test(t) || /^10\.\d+\.\d+\.\d+$/.test(t) || /^192\.168\.\d+\.\d+$/.test(t) || /^172\.(1[6-9]|2\d|3[01])\.\d+\.\d+$/.test(t) || /^0\.0\.0\.0$/.test(t));
|
|
10104
10113
|
}, Vv = (e, t) => {
|
|
@@ -10108,7 +10117,7 @@ var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, li =
|
|
|
10108
10117
|
const r = t || (typeof location < "u" ? location.href : "https://local.invalid/"), i = new URL(n, r);
|
|
10109
10118
|
if (!/^https?:$/i.test(i.protocol)) return !1;
|
|
10110
10119
|
const s = String(i.hostname || "").toLowerCase();
|
|
10111
|
-
return !(!s ||
|
|
10120
|
+
return !(!s || ci(s) || typeof location < "u" && location.hostname && s === location.hostname.toLowerCase() || typeof location < "u" && i.origin === location.origin);
|
|
10112
10121
|
} catch {
|
|
10113
10122
|
return !1;
|
|
10114
10123
|
}
|
|
@@ -10120,10 +10129,10 @@ var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, li =
|
|
|
10120
10129
|
return t ? t.startsWith("S") ? `https://${t.slice(1)}` : t.startsWith("H") ? `http://${t.slice(1)}` : t.startsWith("R") ? t.slice(1) : t : "";
|
|
10121
10130
|
}, ir = (e) => {
|
|
10122
10131
|
const t = String(e || "").trim().toLowerCase().replace(/\.$/, "");
|
|
10123
|
-
return !t ||
|
|
10132
|
+
return !t || ci(t) || typeof location < "u" && location.hostname && t === location.hostname.toLowerCase() ? "" : `g:${t}`;
|
|
10124
10133
|
}, Xv = (e) => {
|
|
10125
10134
|
const t = String(e || "").trim();
|
|
10126
|
-
if (!t ||
|
|
10135
|
+
if (!t || ci(t)) return "";
|
|
10127
10136
|
try {
|
|
10128
10137
|
return `https://www.google.com/s2/favicons?domain=${encodeURIComponent(t.replace(/^\./, ""))}&sz=128`;
|
|
10129
10138
|
} catch {
|
|
@@ -10153,7 +10162,7 @@ var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, li =
|
|
|
10153
10162
|
}
|
|
10154
10163
|
if (/^https?:\/\//i.test(r) && r.length < 2048) try {
|
|
10155
10164
|
const s = new URL(r);
|
|
10156
|
-
return
|
|
10165
|
+
return ci(s.hostname) || typeof location < "u" && s.origin === location.origin ? "" : r;
|
|
10157
10166
|
} catch {
|
|
10158
10167
|
return r;
|
|
10159
10168
|
}
|
|
@@ -10183,7 +10192,7 @@ var If = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, li =
|
|
|
10183
10192
|
}
|
|
10184
10193
|
if (/^https?:\/\//i.test(r) && r.length < 2048) try {
|
|
10185
10194
|
const s = new URL(r);
|
|
10186
|
-
return
|
|
10195
|
+
return ci(s.hostname) || typeof location < "u" && s.origin === location.origin ? "" : r;
|
|
10187
10196
|
} catch {
|
|
10188
10197
|
return r;
|
|
10189
10198
|
}
|
|
@@ -10433,7 +10442,7 @@ function Sx(e) {
|
|
|
10433
10442
|
var Qv = JSON, Q = {};
|
|
10434
10443
|
Q.JSOX = Q;
|
|
10435
10444
|
Q.version = "1.2.125";
|
|
10436
|
-
var Zv = typeof BigInt == "function", mo = -1, ge = 0, vo = 1, go = 2, bo = 3, gt = 4, wo = 5, Ln = 6, So = 7, xo = 8, _o = 9, ko = 10, Pi = 12,
|
|
10445
|
+
var Zv = typeof BigInt == "function", mo = -1, ge = 0, vo = 1, go = 2, bo = 3, gt = 4, wo = 5, Ln = 6, So = 7, xo = 8, _o = 9, ko = 10, Pi = 12, xr = 13, eg = [
|
|
10437
10446
|
"ab",
|
|
10438
10447
|
"u8",
|
|
10439
10448
|
"cu8",
|
|
@@ -10446,7 +10455,7 @@ var Zv = typeof BigInt == "function", mo = -1, ge = 0, vo = 1, go = 2, bo = 3, g
|
|
|
10446
10455
|
"s64",
|
|
10447
10456
|
"f32",
|
|
10448
10457
|
"f64"
|
|
10449
|
-
], Ai = null,
|
|
10458
|
+
], Ai = null, _r = null, tg = [
|
|
10450
10459
|
ArrayBuffer,
|
|
10451
10460
|
Uint8Array,
|
|
10452
10461
|
Uint8ClampedArray,
|
|
@@ -10540,7 +10549,7 @@ Q.begin = function(e, t) {
|
|
|
10540
10549
|
return (this.last = z.prior) || (this.first = null), z.next = this.saved, this.last && (this.last.next = null), z.next || (z.first = null), this.saved = z, this.length--, z.node;
|
|
10541
10550
|
},
|
|
10542
10551
|
length: 0
|
|
10543
|
-
}, y = [],
|
|
10552
|
+
}, y = [], v = {}, m = null, x = null, k = 0, g = -1, S = Se, M = 0, O = !1, re = !1, ie = !1, me = !1, Me = !1, ke = {
|
|
10544
10553
|
first: null,
|
|
10545
10554
|
last: null,
|
|
10546
10555
|
saved: null,
|
|
@@ -10587,10 +10596,10 @@ Q.begin = function(e, t) {
|
|
|
10587
10596
|
return d = void 0, z;
|
|
10588
10597
|
},
|
|
10589
10598
|
reset() {
|
|
10590
|
-
a = F, l = !0, ke.last && (ke.last.next = ke.save), ke.save = ke.first, ke.first = ke.last = null, p.last && (p.last.next = p.save), p.length = 0, p.save = ke.first, p.first = p.last = null, f = void 0, S = Se, y = [],
|
|
10599
|
+
a = F, l = !0, ke.last && (ke.last.next = ke.save), ke.save = ke.first, ke.first = ke.last = null, p.last && (p.last.next = p.save), p.length = 0, p.save = ke.first, p.first = p.last = null, f = void 0, S = Se, y = [], v = {}, m = null, x = null, k = 0, n.value_type = ge, n.name = null, n.string = "", n.className = null, r.line = 1, r.col = 1, u = !1, M = 0, K = !1, ut = !1, Ve = !1, Ct = !1, Ie = !1;
|
|
10591
10600
|
},
|
|
10592
10601
|
usePrototype(z, $) {
|
|
10593
|
-
|
|
10602
|
+
v[z] = $;
|
|
10594
10603
|
},
|
|
10595
10604
|
write(z) {
|
|
10596
10605
|
let $;
|
|
@@ -10675,16 +10684,16 @@ Q.begin = function(e, t) {
|
|
|
10675
10684
|
return;
|
|
10676
10685
|
case Ln:
|
|
10677
10686
|
return n.className && (E = o.get(n.className), E || (E = Rt.get(n.className)), n.className = null, E && E.cb) ? n.contains = E.cb.call(n.contains) : n.contains;
|
|
10678
|
-
case
|
|
10679
|
-
if (
|
|
10687
|
+
case xr:
|
|
10688
|
+
if (g >= 0) {
|
|
10680
10689
|
let P;
|
|
10681
|
-
if (n.contains.length ? P = _c(n.contains[0]) : P = _c(n.string),
|
|
10682
|
-
return
|
|
10690
|
+
if (n.contains.length ? P = _c(n.contains[0]) : P = _c(n.string), g === 0)
|
|
10691
|
+
return g = -1, P;
|
|
10683
10692
|
{
|
|
10684
|
-
const N = new tg[
|
|
10685
|
-
return
|
|
10693
|
+
const N = new tg[g](P);
|
|
10694
|
+
return g = -1, N;
|
|
10686
10695
|
}
|
|
10687
|
-
} else if (
|
|
10696
|
+
} else if (g === -2) {
|
|
10688
10697
|
let P = h, N;
|
|
10689
10698
|
const le = n.contains.length;
|
|
10690
10699
|
for (N = 0; N < le; N++) {
|
|
@@ -10720,7 +10729,7 @@ Q.begin = function(e, t) {
|
|
|
10720
10729
|
if (typeof we == "object" && !we) throw new Error("Path did not resolve properly:" + n.contains + " at " + ze + "(" + N + ")");
|
|
10721
10730
|
P = we;
|
|
10722
10731
|
}
|
|
10723
|
-
return
|
|
10732
|
+
return g = -3, P;
|
|
10724
10733
|
}
|
|
10725
10734
|
return n.className && (E = o.get(n.className), E || (E = Rt.get(n.className)), n.className = null, E && E.cb) ? E.cb.call(n.contains) : n.contains;
|
|
10726
10735
|
default:
|
|
@@ -10729,15 +10738,15 @@ Q.begin = function(e, t) {
|
|
|
10729
10738
|
}
|
|
10730
10739
|
}
|
|
10731
10740
|
function Ce() {
|
|
10732
|
-
if (
|
|
10733
|
-
n.value_type === Ln && f.push(n.contains),
|
|
10741
|
+
if (g == -3) {
|
|
10742
|
+
n.value_type === Ln && f.push(n.contains), g = -1;
|
|
10734
10743
|
return;
|
|
10735
10744
|
}
|
|
10736
10745
|
n.value_type === Pi ? (f.push(void 0), delete f[f.length - 1]) : f.push(Pt()), se();
|
|
10737
10746
|
}
|
|
10738
10747
|
function de() {
|
|
10739
|
-
if (
|
|
10740
|
-
se(),
|
|
10748
|
+
if (g === -3 && n.value_type === xr) {
|
|
10749
|
+
se(), g = -1;
|
|
10741
10750
|
return;
|
|
10742
10751
|
}
|
|
10743
10752
|
if (n.value_type === Pi) return;
|
|
@@ -11072,28 +11081,28 @@ Q.begin = function(e, t) {
|
|
|
11072
11081
|
else if (S == ot && a == F)
|
|
11073
11082
|
return I("fault while parsing; getting field name unexpected ", _), l = !1, !1;
|
|
11074
11083
|
let ze = wc();
|
|
11075
|
-
return n.value_type = Ln, S === Se ? f = N : S == $t ? (
|
|
11084
|
+
return n.value_type = Ln, S === Se ? f = N : S == $t ? (g == -1, n.name = f.length) : (S == ft || S == gn) && (!n.name && x && (n.name = x.fields[k++]), f[n.name] = N), ze.context = S, ze.elements = f, ze.name = n.name, ze.current_proto = m, ze.current_class = x, ze.current_class_field = k, ze.valueType = n.value_type, ze.arrayType = g, ze.className = n.className, n.className = null, n.name = null, m = le, x = P, k = 0, f = N, h || (h = f), p.push(ze), se(), S = E, !0;
|
|
11076
11085
|
}
|
|
11077
11086
|
function yl() {
|
|
11078
11087
|
if (a > F && a < Oe && V(91), a == pe && n.string.length) {
|
|
11079
11088
|
let E = eg.findIndex((P) => P === n.string);
|
|
11080
|
-
a = F, E >= 0 ? (
|
|
11089
|
+
a = F, E >= 0 ? (g = E, n.className = n.string, n.string = null) : n.string === "ref" ? (n.className = null, g = -2) : o.get(n.string) || Rt.get(n.string) ? n.className = n.string : I(`Unknown type '${n.string}' specified for array`, _);
|
|
11081
11090
|
} else if (S == ot || a == Oe || a == Qe)
|
|
11082
11091
|
return I("Fault while parsing; while getting field name unexpected", _), l = !1, !1;
|
|
11083
11092
|
{
|
|
11084
11093
|
let E = wc();
|
|
11085
|
-
n.value_type =
|
|
11094
|
+
n.value_type = xr;
|
|
11086
11095
|
let P = [];
|
|
11087
11096
|
if (S == Se) f = P;
|
|
11088
11097
|
else if (S == $t)
|
|
11089
|
-
|
|
11098
|
+
g == -1 && f.push(P), n.name = f.length;
|
|
11090
11099
|
else if (S == ft)
|
|
11091
|
-
if (n.name || (console.log("This says it's resolved......."),
|
|
11100
|
+
if (n.name || (console.log("This says it's resolved......."), g = -3), m && m.protoDef) if (m.protoDef.cb) {
|
|
11092
11101
|
const N = m.protoDef.cb.call(f, n.name, P);
|
|
11093
11102
|
N !== void 0 && (P = f[n.name] = N);
|
|
11094
11103
|
} else f[n.name] = P;
|
|
11095
11104
|
else f[n.name] = P;
|
|
11096
|
-
E.context = S, E.elements = f, E.name = n.name, E.current_proto = m, E.current_class = x, E.current_class_field = k, E.valueType = n.value_type, E.arrayType =
|
|
11105
|
+
E.context = S, E.elements = f, E.name = n.name, E.current_proto = m, E.current_class = x, E.current_class_field = k, E.valueType = n.value_type, E.arrayType = g == -1 ? -3 : g, E.className = n.className, g = -1, n.className = null, n.name = null, m = null, x = null, k = 0, f = P, h || (h = P), p.push(E), se(), S = $t;
|
|
11097
11106
|
}
|
|
11098
11107
|
return !0;
|
|
11099
11108
|
}
|
|
@@ -11158,16 +11167,16 @@ Q.begin = function(e, t) {
|
|
|
11158
11167
|
if (a == pe && (a = F), S == vn) if (x) {
|
|
11159
11168
|
n.string && x.fields.push(n.string), se();
|
|
11160
11169
|
let E = p.pop();
|
|
11161
|
-
S = Se, a = F, n.name = E.name, f = E.elements, x = E.current_class, k = E.current_class_field,
|
|
11170
|
+
S = Se, a = F, n.name = E.name, f = E.elements, x = E.current_class, k = E.current_class_field, g = E.arrayType, n.value_type = E.valueType, n.className = E.className, h = null, Ri(E);
|
|
11162
11171
|
} else I("State error; gathering class fields, and lost the class", _);
|
|
11163
11172
|
else if (S == ot || S == gn) {
|
|
11164
11173
|
n.value_type != ge && (x && (n.name = x.fields[k++]), de()), n.value_type = Ln, m && m.protoDef && (console.log("SOMETHING SHOULD AHVE BEEN REPLACED HERE??", m), console.log("The other version only revives on init"), f = new m.protoDef.cb(f, void 0, void 0)), n.contains = f, n.string = "";
|
|
11165
11174
|
let E = p.pop();
|
|
11166
|
-
S = E.context, n.name = E.name, f = E.elements, x = E.current_class, m = E.current_proto, k = E.current_class_field,
|
|
11175
|
+
S = E.context, n.name = E.name, f = E.elements, x = E.current_class, m = E.current_proto, k = E.current_class_field, g = E.arrayType, n.value_type = E.valueType, n.className = E.className, Ri(E), S == Se && (K = !0);
|
|
11167
11176
|
} else if (S == ft) {
|
|
11168
11177
|
n.value_type === ge && (a == F ? I("Fault while parsing; unexpected", _) : V(_)), de(), n.value_type = Ln, n.contains = f, a = F;
|
|
11169
11178
|
let E = p.pop();
|
|
11170
|
-
S = E.context, n.name = E.name, f = E.elements, m = E.current_proto, x = E.current_class, k = E.current_class_field,
|
|
11179
|
+
S = E.context, n.name = E.name, f = E.elements, m = E.current_proto, x = E.current_class, k = E.current_class_field, g = E.arrayType, n.value_type = E.valueType, n.className = E.className, Ri(E), S == Se && (K = !0);
|
|
11171
11180
|
} else
|
|
11172
11181
|
I("Fault while parsing; unexpected", _), l = !1;
|
|
11173
11182
|
u = !1;
|
|
@@ -11177,15 +11186,15 @@ Q.begin = function(e, t) {
|
|
|
11177
11186
|
n.value_type != ge ? Ce() : a !== F && (V(_), Ce()), n.contains = f;
|
|
11178
11187
|
{
|
|
11179
11188
|
let E = p.pop();
|
|
11180
|
-
n.name = E.name, n.className = E.className, S = E.context, f = E.elements, m = E.current_proto, x = E.current_class, k = E.current_class_field,
|
|
11189
|
+
n.name = E.name, n.className = E.className, S = E.context, f = E.elements, m = E.current_proto, x = E.current_class, k = E.current_class_field, g = E.arrayType, n.value_type = E.valueType, Ri(E);
|
|
11181
11190
|
}
|
|
11182
|
-
n.value_type =
|
|
11191
|
+
n.value_type = xr, S == Se && (K = !0);
|
|
11183
11192
|
} else
|
|
11184
11193
|
I(`bad context ${S}; fault while parsing`, _), l = !1;
|
|
11185
11194
|
u = !1;
|
|
11186
11195
|
break;
|
|
11187
11196
|
case 44:
|
|
11188
|
-
a < Qe && a != F && V(_), (a == pe || a == Oe) && (a = F), S == vn ? x ? (x.fields.push(n.string), n.string = "", a = Oe) : I("State error; gathering class fields, and lost the class", _) : S == ot ? x ? (n.name = x.fields[k++], n.value_type != ge && (de(), se())) : (n.string || n.value_type) && I("State error; comma in field name and/or lost the class", _) : S == gn ? (x ? (
|
|
11197
|
+
a < Qe && a != F && V(_), (a == pe || a == Oe) && (a = F), S == vn ? x ? (x.fields.push(n.string), n.string = "", a = Oe) : I("State error; gathering class fields, and lost the class", _) : S == ot ? x ? (n.name = x.fields[k++], n.value_type != ge && (de(), se())) : (n.string || n.value_type) && I("State error; comma in field name and/or lost the class", _) : S == gn ? (x ? (g != -3 && !n.name && (n.name = x.fields[k++]), n.value_type != ge && (g != -3 && de(), se())) : n.value_type != ge && (de(), se()), n.name = null) : S == $t ? (n.value_type == ge && (n.value_type = Pi), Ce(), se(), a = F) : S == ft && n.value_type != ge ? (S = ot, n.value_type != ge && (de(), se()), a = F) : (l = !1, I("bad context; excessive commas while parsing;", _)), u = !1;
|
|
11189
11198
|
break;
|
|
11190
11199
|
default:
|
|
11191
11200
|
switch (_) {
|
|
@@ -11253,7 +11262,7 @@ Q.begin = function(e, t) {
|
|
|
11253
11262
|
else if (n.value_type == ge) a != F ? V(_) : (a = pe, n.string += s, n.value_type = gt);
|
|
11254
11263
|
else if (S == ot) I("Multiple values found in field name", _);
|
|
11255
11264
|
else if (S == ft)
|
|
11256
|
-
n.value_type != gt && ((n.value_type == Ln || n.value_type ==
|
|
11265
|
+
n.value_type != gt && ((n.value_type == Ln || n.value_type == xr) && I("String unexpected", _), V(_)), a == Qe ? ml() ? n.string = s : I("String unexpected", _) : a == pe ? n.string += s : I("String unexpected", _);
|
|
11257
11266
|
else if (S == $t)
|
|
11258
11267
|
if (a == Qe) {
|
|
11259
11268
|
n.className || (n.className = n.string, n.string = ""), n.string += s;
|
|
@@ -11461,12 +11470,12 @@ Q.stringifier = function() {
|
|
|
11461
11470
|
name: "Date",
|
|
11462
11471
|
cb: function() {
|
|
11463
11472
|
if (this.getTime() === -621672192e5) return "0000-01-01T00:00:00.000Z";
|
|
11464
|
-
let y = -this.getTimezoneOffset(),
|
|
11465
|
-
let
|
|
11466
|
-
return (
|
|
11473
|
+
let y = -this.getTimezoneOffset(), v = y >= 0 ? "+" : "-", m = function(k) {
|
|
11474
|
+
let g = Math.floor(Math.abs(k));
|
|
11475
|
+
return (g < 10 ? "0" : "") + g;
|
|
11467
11476
|
}, x = function(k) {
|
|
11468
|
-
let
|
|
11469
|
-
return (
|
|
11477
|
+
let g = Math.floor(Math.abs(k));
|
|
11478
|
+
return (g < 100 ? "0" : "") + (g < 10 ? "0" : "") + g;
|
|
11470
11479
|
};
|
|
11471
11480
|
return [
|
|
11472
11481
|
this.getFullYear(),
|
|
@@ -11480,7 +11489,7 @@ Q.stringifier = function() {
|
|
|
11480
11489
|
m(this.getMinutes()),
|
|
11481
11490
|
":",
|
|
11482
11491
|
m(this.getSeconds()),
|
|
11483
|
-
"." + x(this.getMilliseconds()) +
|
|
11492
|
+
"." + x(this.getMilliseconds()) + v,
|
|
11484
11493
|
m(y / 60),
|
|
11485
11494
|
":",
|
|
11486
11495
|
m(y % 60)
|
|
@@ -11490,14 +11499,14 @@ Q.stringifier = function() {
|
|
|
11490
11499
|
external: !1,
|
|
11491
11500
|
name: "DateNS",
|
|
11492
11501
|
cb: function() {
|
|
11493
|
-
let y = -this.getTimezoneOffset(),
|
|
11494
|
-
let S = Math.floor(Math.abs(
|
|
11502
|
+
let y = -this.getTimezoneOffset(), v = y >= 0 ? "+" : "-", m = function(g) {
|
|
11503
|
+
let S = Math.floor(Math.abs(g));
|
|
11495
11504
|
return (S < 10 ? "0" : "") + S;
|
|
11496
|
-
}, x = function(
|
|
11497
|
-
let S = Math.floor(Math.abs(
|
|
11505
|
+
}, x = function(g) {
|
|
11506
|
+
let S = Math.floor(Math.abs(g));
|
|
11498
11507
|
return (S < 100 ? "0" : "") + (S < 10 ? "0" : "") + S;
|
|
11499
|
-
}, k = function(
|
|
11500
|
-
let S = Math.floor(Math.abs(
|
|
11508
|
+
}, k = function(g) {
|
|
11509
|
+
let S = Math.floor(Math.abs(g));
|
|
11501
11510
|
return (S < 1e5 ? "0" : "") + (S < 1e4 ? "0" : "") + (S < 1e3 ? "0" : "") + (S < 100 ? "0" : "") + (S < 10 ? "0" : "") + S;
|
|
11502
11511
|
};
|
|
11503
11512
|
return [
|
|
@@ -11512,7 +11521,7 @@ Q.stringifier = function() {
|
|
|
11512
11521
|
m(this.getMinutes()),
|
|
11513
11522
|
":",
|
|
11514
11523
|
m(this.getSeconds()),
|
|
11515
|
-
"." + x(this.getMilliseconds()) + k(this.ns) +
|
|
11524
|
+
"." + x(this.getMilliseconds()) + k(this.ns) + v,
|
|
11516
11525
|
m(y / 60),
|
|
11517
11526
|
":",
|
|
11518
11527
|
m(y % 60)
|
|
@@ -11606,26 +11615,26 @@ Q.stringifier = function() {
|
|
|
11606
11615
|
cb: function() {
|
|
11607
11616
|
return "[" + u(bt(this.buffer)) + "]";
|
|
11608
11617
|
}
|
|
11609
|
-
}), ue.set(RegExp.prototype,
|
|
11618
|
+
}), ue.set(RegExp.prototype, _r = {
|
|
11610
11619
|
external: !0,
|
|
11611
11620
|
name: "regex",
|
|
11612
|
-
cb: function(y,
|
|
11621
|
+
cb: function(y, v) {
|
|
11613
11622
|
return "'" + escape(this.source) + "'";
|
|
11614
11623
|
}
|
|
11615
11624
|
}), Rt.set("regex", {
|
|
11616
11625
|
protoCon: RegExp,
|
|
11617
|
-
cb: function(y,
|
|
11626
|
+
cb: function(y, v) {
|
|
11618
11627
|
return new RegExp(this);
|
|
11619
11628
|
}
|
|
11620
|
-
}), ue.set(Map.prototype,
|
|
11629
|
+
}), ue.set(Map.prototype, _r = {
|
|
11621
11630
|
external: !0,
|
|
11622
11631
|
name: "map",
|
|
11623
11632
|
cb: null
|
|
11624
11633
|
}), Rt.set("map", {
|
|
11625
11634
|
protoCon: Map,
|
|
11626
|
-
cb: function(y,
|
|
11635
|
+
cb: function(y, v) {
|
|
11627
11636
|
if (y) {
|
|
11628
|
-
this.set(y,
|
|
11637
|
+
this.set(y, v);
|
|
11629
11638
|
return;
|
|
11630
11639
|
}
|
|
11631
11640
|
return this;
|
|
@@ -11636,21 +11645,21 @@ Q.stringifier = function() {
|
|
|
11636
11645
|
cb: null
|
|
11637
11646
|
}));
|
|
11638
11647
|
const d = {
|
|
11639
|
-
defineClass(y,
|
|
11640
|
-
let m, x = Object.keys(
|
|
11648
|
+
defineClass(y, v) {
|
|
11649
|
+
let m, x = Object.keys(v);
|
|
11641
11650
|
for (let k = 1; k < x.length; k++) {
|
|
11642
|
-
let
|
|
11643
|
-
(
|
|
11651
|
+
let g, S;
|
|
11652
|
+
(g = x[k - 1]) > (S = x[k]) && (x[k - 1] = S, x[k] = g, k ? k -= 2 : k--);
|
|
11644
11653
|
}
|
|
11645
11654
|
e.push(m = {
|
|
11646
11655
|
name: y,
|
|
11647
11656
|
tag: x.toString(),
|
|
11648
|
-
proto: Object.getPrototypeOf(
|
|
11649
|
-
fields: Object.keys(
|
|
11657
|
+
proto: Object.getPrototypeOf(v),
|
|
11658
|
+
fields: Object.keys(v)
|
|
11650
11659
|
});
|
|
11651
11660
|
for (let k = 1; k < m.fields.length; k++) if (m.fields[k] < m.fields[k - 1]) {
|
|
11652
|
-
let
|
|
11653
|
-
m.fields[k - 1] = m.fields[k], m.fields[k] =
|
|
11661
|
+
let g = m.fields[k - 1];
|
|
11662
|
+
m.fields[k - 1] = m.fields[k], m.fields[k] = g, k > 1 && (k -= 2);
|
|
11654
11663
|
}
|
|
11655
11664
|
m.proto === Object.getPrototypeOf({}) && (m.proto = null);
|
|
11656
11665
|
},
|
|
@@ -11658,30 +11667,30 @@ Q.stringifier = function() {
|
|
|
11658
11667
|
a = y;
|
|
11659
11668
|
},
|
|
11660
11669
|
isEncoding(y) {
|
|
11661
|
-
return !!i.find((
|
|
11670
|
+
return !!i.find((v, m) => v === y && m < i.length - 1);
|
|
11662
11671
|
},
|
|
11663
11672
|
encodeObject(y) {
|
|
11664
11673
|
return a ? a.apply(y, [this]) : y;
|
|
11665
11674
|
},
|
|
11666
|
-
stringify(y,
|
|
11667
|
-
return p(y,
|
|
11675
|
+
stringify(y, v, m) {
|
|
11676
|
+
return p(y, v, m);
|
|
11668
11677
|
},
|
|
11669
11678
|
setQuote(y) {
|
|
11670
11679
|
t = y;
|
|
11671
11680
|
},
|
|
11672
|
-
registerToJSOX(y,
|
|
11673
|
-
return this.toJSOX(y,
|
|
11681
|
+
registerToJSOX(y, v, m) {
|
|
11682
|
+
return this.toJSOX(y, v, m);
|
|
11674
11683
|
},
|
|
11675
|
-
toJSOX(y,
|
|
11676
|
-
if (
|
|
11677
|
-
if (s.get(
|
|
11678
|
-
s.set(
|
|
11684
|
+
toJSOX(y, v, m) {
|
|
11685
|
+
if (v.prototype && v.prototype !== Object.prototype) {
|
|
11686
|
+
if (s.get(v.prototype)) throw new Error("Existing toJSOX has been registered for prototype");
|
|
11687
|
+
s.set(v.prototype, {
|
|
11679
11688
|
external: !0,
|
|
11680
11689
|
name: y || m.constructor.name,
|
|
11681
11690
|
cb: m
|
|
11682
11691
|
});
|
|
11683
11692
|
} else {
|
|
11684
|
-
let x = Object.keys(
|
|
11693
|
+
let x = Object.keys(v).toString();
|
|
11685
11694
|
if (o.get(x)) throw new Error("Existing toJSOX has been registered for object type");
|
|
11686
11695
|
o.set(x, {
|
|
11687
11696
|
external: !0,
|
|
@@ -11700,56 +11709,56 @@ Q.stringifier = function() {
|
|
|
11700
11709
|
return d;
|
|
11701
11710
|
function h(y) {
|
|
11702
11711
|
if (y === null) return;
|
|
11703
|
-
let
|
|
11704
|
-
if (!
|
|
11712
|
+
let v = n.get(y);
|
|
11713
|
+
if (!v) {
|
|
11705
11714
|
n.set(y, Qv.stringify(r));
|
|
11706
11715
|
return;
|
|
11707
11716
|
}
|
|
11708
|
-
return "ref" +
|
|
11717
|
+
return "ref" + v;
|
|
11709
11718
|
}
|
|
11710
|
-
function f(y,
|
|
11719
|
+
function f(y, v) {
|
|
11711
11720
|
let m, x, k = Object.getPrototypeOf(y);
|
|
11712
|
-
if (x = e.find((
|
|
11713
|
-
if (
|
|
11721
|
+
if (x = e.find((g) => {
|
|
11722
|
+
if (g.proto && g.proto === k) return !0;
|
|
11714
11723
|
}), x) return x;
|
|
11715
11724
|
if (e.length || Sn.length) {
|
|
11716
|
-
if (
|
|
11717
|
-
|
|
11718
|
-
if (typeof
|
|
11719
|
-
}), m =
|
|
11725
|
+
if (v)
|
|
11726
|
+
v = v.map((g) => {
|
|
11727
|
+
if (typeof g == "string") return g;
|
|
11728
|
+
}), m = v.toString();
|
|
11720
11729
|
else {
|
|
11721
|
-
let
|
|
11722
|
-
for (let S = 1; S <
|
|
11730
|
+
let g = Object.keys(y);
|
|
11731
|
+
for (let S = 1; S < g.length; S++) {
|
|
11723
11732
|
let M, O;
|
|
11724
|
-
(M =
|
|
11733
|
+
(M = g[S - 1]) > (O = g[S]) && (g[S - 1] = O, g[S] = M, S ? S -= 2 : S--);
|
|
11725
11734
|
}
|
|
11726
|
-
m =
|
|
11735
|
+
m = g.toString();
|
|
11727
11736
|
}
|
|
11728
|
-
x = e.find((
|
|
11729
|
-
if (
|
|
11730
|
-
}), x || (x = Sn.find((
|
|
11731
|
-
if (
|
|
11737
|
+
x = e.find((g) => {
|
|
11738
|
+
if (g.tag === m) return !0;
|
|
11739
|
+
}), x || (x = Sn.find((g) => {
|
|
11740
|
+
if (g.tag === m) return !0;
|
|
11732
11741
|
}));
|
|
11733
11742
|
}
|
|
11734
11743
|
return x;
|
|
11735
11744
|
}
|
|
11736
|
-
function p(y,
|
|
11745
|
+
function p(y, v, m) {
|
|
11737
11746
|
if (y === void 0) return "undefined";
|
|
11738
11747
|
if (y === null) return;
|
|
11739
|
-
let x, k,
|
|
11740
|
-
const M = typeof m, O = typeof
|
|
11748
|
+
let x, k, g, S;
|
|
11749
|
+
const M = typeof m, O = typeof v;
|
|
11741
11750
|
if (x = "", k = "", M === "number") for (S = 0; S < m; S += 1) k += " ";
|
|
11742
11751
|
else M === "string" && (k = m);
|
|
11743
|
-
if (
|
|
11752
|
+
if (g = v, v && O !== "function" && (O !== "object" || typeof v.length != "number")) throw new Error("JSOX.stringify");
|
|
11744
11753
|
r.length = 0, n = /* @__PURE__ */ new WeakMap();
|
|
11745
11754
|
const re = ie("", { "": y });
|
|
11746
11755
|
return Sn.length = 0, re;
|
|
11747
11756
|
function ie(me, Me) {
|
|
11748
11757
|
var ke = x;
|
|
11749
|
-
const Ee = Ai.cb, ut =
|
|
11750
|
-
Ai.cb = Ve,
|
|
11758
|
+
const Ee = Ai.cb, ut = _r.cb;
|
|
11759
|
+
Ai.cb = Ve, _r.cb = Ct;
|
|
11751
11760
|
const Et = hn(me, Me);
|
|
11752
|
-
return Ai.cb = Ee,
|
|
11761
|
+
return Ai.cb = Ee, _r.cb = ut, Et;
|
|
11753
11762
|
function Ve() {
|
|
11754
11763
|
let Re, Le = [], oe = r.length;
|
|
11755
11764
|
for (let ee = 0; ee < this.length; ee += 1)
|
|
@@ -11780,7 +11789,7 @@ Q.stringifier = function() {
|
|
|
11780
11789
|
ce && _ !== null && a && (l.find((Ce) => Ce === _) || (l.push(_), i[z] = _, $ = !1, _ = a.apply(_, [d]), ce = typeof _ == "object", l.pop(), i.length = z, ce = typeof _ == "object"));
|
|
11781
11790
|
const Ne = _ != null && Object.getPrototypeOf(_);
|
|
11782
11791
|
let I = Ne && (s.get(Ne) || ue.get(Ne) || null), se = !I && _ !== void 0 && _ !== null && (o.get(Object.keys(_).toString()) || as.get(Object.keys(_).toString()) || null);
|
|
11783
|
-
typeof
|
|
11792
|
+
typeof g == "function" && ($ = !1, _ = g.call(Le, Re, _));
|
|
11784
11793
|
let Pt = I && I.cb || se && se.cb;
|
|
11785
11794
|
if (_ != null && typeof _ == "object" && typeof Pt == "function") if (l.find((Ce) => Ce === _))
|
|
11786
11795
|
K = h(_);
|
|
@@ -11809,8 +11818,8 @@ Q.stringifier = function() {
|
|
|
11809
11818
|
case "object":
|
|
11810
11819
|
if (K) return K;
|
|
11811
11820
|
if (!_) return "null";
|
|
11812
|
-
if (x += k, qe = null, rt = [],
|
|
11813
|
-
for (Ie =
|
|
11821
|
+
if (x += k, qe = null, rt = [], g && typeof g == "object") {
|
|
11822
|
+
for (Ie = g.length, qe = f(_, g), oe = 0; oe < Ie; oe += 1) typeof g[oe] == "string" && (ee = g[oe], r[z] = ee, K = ie(ee, _), K !== void 0 && (qe ? rt.push(K) : rt.push(u(ee) + (x ? ": " : ":") + K)));
|
|
11814
11823
|
r.splice(z, 1);
|
|
11815
11824
|
} else {
|
|
11816
11825
|
qe = f(_);
|
|
@@ -11996,7 +12005,7 @@ var og = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
11996
12005
|
return e;
|
|
11997
12006
|
}
|
|
11998
12007
|
return e;
|
|
11999
|
-
},
|
|
12008
|
+
}, kr = (e, t = "id") => {
|
|
12000
12009
|
if (e && (e instanceof Set || Array.isArray(e))) {
|
|
12001
12010
|
const n = Array.from(e?.values?.() || []).map((r) => [r?.[t], r]).filter((r) => r?.[0] != null);
|
|
12002
12011
|
return rn(e, new Map(n));
|
|
@@ -12010,13 +12019,13 @@ var og = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
12010
12019
|
typeof n == "function" && n(t);
|
|
12011
12020
|
}, _x = (e, t, n, r = (o) => Wi(o), i = "id", s = 6e3) => {
|
|
12012
12021
|
let o = null;
|
|
12013
|
-
o =
|
|
12022
|
+
o = kr(t?.() || {}, i);
|
|
12014
12023
|
let a = !Ii();
|
|
12015
12024
|
if (Ii()) chrome.storage.local.get([e], (c) => {
|
|
12016
12025
|
try {
|
|
12017
12026
|
if (c[e]) {
|
|
12018
12027
|
const u = n(Q.parse(c?.[e] || "{}"));
|
|
12019
|
-
rn(o, u),
|
|
12028
|
+
rn(o, u), kr(o, i);
|
|
12020
12029
|
}
|
|
12021
12030
|
} finally {
|
|
12022
12031
|
a = !0;
|
|
@@ -12025,13 +12034,13 @@ var og = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
12025
12034
|
else if (typeof localStorage < "u") {
|
|
12026
12035
|
if (localStorage.getItem(e)) {
|
|
12027
12036
|
const c = n(Q.parse(localStorage.getItem(e) || "{}"));
|
|
12028
|
-
rn(o, c),
|
|
12037
|
+
rn(o, c), kr(o, i);
|
|
12029
12038
|
} else localStorage.setItem(e, Q.stringify(r(o)));
|
|
12030
12039
|
a = !0;
|
|
12031
12040
|
}
|
|
12032
12041
|
const l = (c) => {
|
|
12033
12042
|
if (!a) return;
|
|
12034
|
-
const u = Q.stringify(r(
|
|
12043
|
+
const u = Q.stringify(r(kr(o, i)));
|
|
12035
12044
|
Ii() ? chrome.storage.local.set({ [e]: u }) : typeof localStorage < "u" && localStorage.setItem(e, u);
|
|
12036
12045
|
};
|
|
12037
12046
|
if (Df().set(e, l), ps(l, s), typeof window < "u" && typeof document < "u") {
|
|
@@ -12042,7 +12051,7 @@ var og = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
12042
12051
|
T(window, "beforeunload", (u) => l(u)),
|
|
12043
12052
|
T(window, "pagehide", (u) => l(u)),
|
|
12044
12053
|
T(window, "storage", (u) => {
|
|
12045
|
-
u.storageArea == localStorage && u.key == e && rn(o, n(Q.parse(u?.newValue || Q.stringify(r(
|
|
12054
|
+
u.storageArea == localStorage && u.key == e && rn(o, n(Q.parse(u?.newValue || Q.stringify(r(kr(o, i))))));
|
|
12046
12055
|
})
|
|
12047
12056
|
];
|
|
12048
12057
|
J(o, Symbol.dispose, () => c.forEach((u) => u?.()));
|
|
@@ -12384,7 +12393,7 @@ var Ta = "ui-tabbed-box", Px = (e, t) => {
|
|
|
12384
12393
|
source: e?.element ?? e,
|
|
12385
12394
|
axis: t
|
|
12386
12395
|
});
|
|
12387
|
-
const n = Ke(e), r = As(e, ["inline", "block"][t]), i =
|
|
12396
|
+
const n = Ke(e), r = As(e, ["inline", "block"][t]), i = qr(Qt(e, ["inline", "block"][t], "content-box"), (o) => o + ja(e, ["inline", "block"][t])), s = qr(r, (o) => (o || 0) / (at(n)?.[["scrollWidth", "scrollHeight"][t]] - i?.value || 1));
|
|
12388
12397
|
return W(i, (o) => (r?.value || 0) / (at(n)?.[["scrollWidth", "scrollHeight"][t]] - o || 1)), s;
|
|
12389
12398
|
}, yg = class {
|
|
12390
12399
|
container;
|
|
@@ -13016,9 +13025,9 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13016
13025
|
const p = f, y = a?.deref?.();
|
|
13017
13026
|
if (self && y?.pointerId == p.pointerId) {
|
|
13018
13027
|
f?.preventDefault?.();
|
|
13019
|
-
const
|
|
13020
|
-
y.point =
|
|
13021
|
-
[["left", "top"][r]]:
|
|
13028
|
+
const v = p[Qo[r]] || 0, m = v - y.point || 0, x = t?.[["scrollWidth", "scrollHeight"][r]] - t?.[["clientWidth", "clientHeight"][r]], k = n?.[["clientWidth", "clientHeight"][r]] - d?.[["offsetWidth", "offsetHeight"][r] || 0], g = m * x / k;
|
|
13029
|
+
y.point = v, l?.deref?.()?.scrollBy?.({
|
|
13030
|
+
[["left", "top"][r]]: g,
|
|
13022
13031
|
behavior: "instant"
|
|
13023
13032
|
});
|
|
13024
13033
|
}
|
|
@@ -13096,8 +13105,8 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13096
13105
|
return;
|
|
13097
13106
|
}
|
|
13098
13107
|
r = 0;
|
|
13099
|
-
const p = h <= 0 ? f : Math.max(20, u / c * f), y = Math.max(0, f - p),
|
|
13100
|
-
e === 0 ? (t.style.boxSizing = "border-box", t.style.width = `${p}px`, t.style.height = "100%", t.style.transform = `translate3d(${y *
|
|
13108
|
+
const p = h <= 0 ? f : Math.max(20, u / c * f), y = Math.max(0, f - p), v = h <= 0 ? 0 : Math.min(1, Math.max(0, d / h));
|
|
13109
|
+
e === 0 ? (t.style.boxSizing = "border-box", t.style.width = `${p}px`, t.style.height = "100%", t.style.transform = `translate3d(${y * v}px, 0, 0)`, this.thumbSize.x.value = p) : (t.style.boxSizing = "border-box", t.style.height = `${p}px`, t.style.width = "100%", t.style.transform = `translate3d(0, ${y * v}px, 0)`, this.thumbSize.y.value = p), this.scrollbar.style.setProperty(n, String(v)), this.scrollbar.style.setProperty("--scroll-coef", String(h <= 0 ? 1 : u / c)), this.scrollbar.setAttribute("aria-valuenow", String(Math.round(v * 100)));
|
|
13101
13110
|
}, o = () => s();
|
|
13102
13111
|
this.content.addEventListener("scroll", o, { passive: !0 });
|
|
13103
13112
|
const a = new ResizeObserver(() => s());
|
|
@@ -13239,18 +13248,18 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13239
13248
|
"keydown"
|
|
13240
13249
|
]);
|
|
13241
13250
|
}
|
|
13242
|
-
}, Nx = (e) => Np(e, "badge-check", "badge"), zx = (e) =>
|
|
13251
|
+
}, Nx = (e) => Np(e, "badge-check", "badge"), zx = (e) => qr(e, (t) => (parseFloat(t) || 0)?.toLocaleString?.("en-US", {
|
|
13243
13252
|
minimumFractionDigits: 0,
|
|
13244
13253
|
maximumFractionDigits: 1
|
|
13245
13254
|
})), Wf = (e, t) => {
|
|
13246
13255
|
const n = t ? new vf(t) : null, r = Uf(e);
|
|
13247
|
-
return
|
|
13256
|
+
return b([r, n?.width || w(100)], () => {
|
|
13248
13257
|
const i = n?.width.value || 100;
|
|
13249
13258
|
return r.value * i;
|
|
13250
13259
|
});
|
|
13251
13260
|
}, Lx = (e, t) => {
|
|
13252
13261
|
const n = Wf(e, t);
|
|
13253
|
-
return new mf(),
|
|
13262
|
+
return new mf(), b([n], () => `translateX(${n.value}px)`);
|
|
13254
13263
|
}, $x = (e) => {
|
|
13255
13264
|
const [t, n, r] = ur(e);
|
|
13256
13265
|
if (e?.type == "number" || e?.type == "range") return (t - n) / (r - n);
|
|
@@ -13329,17 +13338,17 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13329
13338
|
}
|
|
13330
13339
|
return [0, 0];
|
|
13331
13340
|
}, s = (h) => {
|
|
13332
|
-
const f = rl((
|
|
13333
|
-
e?.setPointerCapture?.(r.id =
|
|
13341
|
+
const f = rl((v) => {
|
|
13342
|
+
e?.setPointerCapture?.(r.id = v?.pointerId), e?.setAttribute?.("data-dragging", "true"), i(), h?.(v, e);
|
|
13334
13343
|
}, e), p = T(t, "pointerdown", f), y = T(e, "pointerdown", f);
|
|
13335
13344
|
return o.push(p, y), p;
|
|
13336
13345
|
}, o = [T(t, "click", (h) => {
|
|
13337
13346
|
(n?.type == "checkbox" || n?.type == "radio") && ln(n, n?.checked, h);
|
|
13338
13347
|
}), T(t, "pointerdown", (h) => {
|
|
13339
13348
|
h?.target?.matches?.(".ui-thumb") || h?.target?.closest?.(".ui-thumb") || (h?.target == (t?.element ?? t) || t.contains(h?.target)) && kg(n, h?.layerX || 0, t);
|
|
13340
|
-
})], a = [w(0), w(0)], l =
|
|
13349
|
+
})], a = [w(0), w(0)], l = b([a[0]], () => `translateX(${a[0].value}px)`);
|
|
13341
13350
|
Wf(n, t), tt.bindTransform(e, l), tt.bindTransform(t, l);
|
|
13342
|
-
const c =
|
|
13351
|
+
const c = b([a[0]], (h) => Hf(n, a, t)), u = Uf(n);
|
|
13343
13352
|
A?.(t, "--relate", c, R), A?.(t, "--value", u, R);
|
|
13344
13353
|
const d = il(s, (h) => {
|
|
13345
13354
|
e?.removeAttribute?.("data-dragging"), r.id >= 0 && (e?.releasePointerCapture?.(r.id), r.id = -1), Eg(n, h, t);
|
|
@@ -14823,7 +14832,7 @@ var pt = {
|
|
|
14823
14832
|
configurable: !0,
|
|
14824
14833
|
argumentCount: e instanceof Function ? e.length : -1
|
|
14825
14834
|
} : Zt(e) ? e : null, nb = /* @__PURE__ */ Symbol.for("@requestHandler"), fr = /* @__PURE__ */ Symbol.for("@descriptor"), ta = (e) => Zt(e) || e?.[fr] ? e : e?.$isDescriptor ? qg(e, async () => {
|
|
14826
|
-
}) : $a(e) ? e : null,
|
|
14835
|
+
}) : $a(e) ? e : null, Zr = /* @__PURE__ */ new Map(), un = /* @__PURE__ */ new WeakMap(), ul = (e, t) => {
|
|
14827
14836
|
if (t != null && !Array.isArray(t) && (t = [t]), t == null || t?.length < 1) return e;
|
|
14828
14837
|
const n = e?.[fr] ?? (e?.$isDescriptor ? e : null);
|
|
14829
14838
|
if (n && n?.owner == pt?.name && (e = Rn(n?.path) ?? e), L(e)) return e;
|
|
@@ -14832,17 +14841,17 @@ var pt = {
|
|
|
14832
14841
|
return e;
|
|
14833
14842
|
}, Rn = (e) => {
|
|
14834
14843
|
if (e != null && !Array.isArray(e) && (e = [e]), e == null || e?.length < 1) return null;
|
|
14835
|
-
const t =
|
|
14844
|
+
const t = Zr?.get?.(e?.[0]) ?? null;
|
|
14836
14845
|
return t != null ? ul(t, e?.slice?.(1)) : null;
|
|
14837
14846
|
}, Os = (e, t) => {
|
|
14838
14847
|
const n = t?.[fr] ?? (t?.$isDescriptor ? t : null);
|
|
14839
14848
|
if (n && n?.owner == pt?.name && (t = Rn(n?.path) ?? t), e != null && !Array.isArray(e) && (e = [e]), e == null || e?.length < 1) return null;
|
|
14840
|
-
const r =
|
|
14841
|
-
return e?.length > 1 ? ul(r, e?.slice?.(1, -1))[e?.[e?.length - 1]] = t :
|
|
14849
|
+
const r = Zr?.get?.(e?.[0]) ?? null;
|
|
14850
|
+
return e?.length > 1 ? ul(r, e?.slice?.(1, -1))[e?.[e?.length - 1]] = t : Zr?.set?.(e?.[0], t), (typeof t == "object" || typeof t == "function") && un?.set?.(t, e), t;
|
|
14842
14851
|
}, Zf = (e) => {
|
|
14843
14852
|
if (e != null && !Array.isArray(e) && (e = [e]), e == null || e?.length < 1) return !1;
|
|
14844
|
-
const t =
|
|
14845
|
-
return !t && e?.length <= 1 ? (
|
|
14853
|
+
const t = Zr?.get?.(e?.[0]) ?? null;
|
|
14854
|
+
return !t && e?.length <= 1 ? (Zr?.delete?.(e?.[0]), !0) : !1;
|
|
14846
14855
|
}, rb = (e) => {
|
|
14847
14856
|
const t = e?.[fr] ?? (e?.$isDescriptor ? e : null);
|
|
14848
14857
|
t && t?.owner == pt?.name && (e = Rn(t?.path) ?? e);
|
|
@@ -15210,11 +15219,11 @@ var ab = class {
|
|
|
15210
15219
|
connectedChannels: new Set(this._connectedPeers.keys())
|
|
15211
15220
|
};
|
|
15212
15221
|
}
|
|
15213
|
-
}, lb = class
|
|
15222
|
+
}, lb = class Ar {
|
|
15214
15223
|
_connections = /* @__PURE__ */ new Map();
|
|
15215
15224
|
static _instance = null;
|
|
15216
15225
|
static getInstance() {
|
|
15217
|
-
return
|
|
15226
|
+
return Ar._instance || (Ar._instance = new Ar()), Ar._instance;
|
|
15218
15227
|
}
|
|
15219
15228
|
getOrCreate(t, n = "internal", r = {}) {
|
|
15220
15229
|
return this._connections.has(t) || this._connections.set(t, new ab(t, n, r)), this._connections.get(t);
|
|
@@ -16937,7 +16946,7 @@ var Li = null, dl = typeof ServiceWorkerGlobalScope < "u" && self instanceof Ser
|
|
|
16937
16946
|
}, Qx = async (e) => {
|
|
16938
16947
|
typeof localStorage < "u" && localStorage?.setItem?.("opfs.mounted", JSON.stringify(JSON.parse(localStorage?.getItem?.("opfs.mounted") || "[]").filter((t) => t != e))), It("unmount", { id: e });
|
|
16939
16948
|
};
|
|
16940
|
-
async function
|
|
16949
|
+
async function ui(e, t = "") {
|
|
16941
16950
|
(e == null || e == null || e?.trim?.()?.length == 0) && (e = "/user/");
|
|
16942
16951
|
const n = typeof e == "string" ? e?.trim?.()?.replace?.(/^\//, "")?.trim?.()?.split?.("/")?.filter?.((a) => !!a?.trim?.())?.at?.(0) : null;
|
|
16943
16952
|
if (n && (typeof localStorage < "u" && JSON.parse(localStorage?.getItem?.("opfs.mounted") || "[]").includes(n) && (e = Na?.get(n)), e || (e = await Lc?.get?.(`/${n}/`)?.() ?? await navigator.storage.getDirectory())), e instanceof FileSystemDirectoryHandle) return e;
|
|
@@ -16961,7 +16970,7 @@ function $b(e = "", t) {
|
|
|
16961
16970
|
async function Lt(e, t, n = "") {
|
|
16962
16971
|
const r = $b(n, t);
|
|
16963
16972
|
return {
|
|
16964
|
-
rootHandle: await
|
|
16973
|
+
rootHandle: await ui(e, r),
|
|
16965
16974
|
resolvedPath: r
|
|
16966
16975
|
};
|
|
16967
16976
|
}
|
|
@@ -17092,7 +17101,7 @@ function r_(e, t, n = { create: !1 }, r = Ue) {
|
|
|
17092
17101
|
return p.refCount++, s = p.mapCache, p;
|
|
17093
17102
|
const y = fe(/* @__PURE__ */ new Map());
|
|
17094
17103
|
s = y;
|
|
17095
|
-
const
|
|
17104
|
+
const v = Z(), m = zt(h, f, n, r), x = async () => {
|
|
17096
17105
|
const O = yt(f), re = await It("readDirectory", {
|
|
17097
17106
|
rootId: "",
|
|
17098
17107
|
path: O,
|
|
@@ -17104,23 +17113,23 @@ function r_(e, t, n = { create: !1 }, r = Ue) {
|
|
|
17104
17113
|
for (const [me, Me] of ie) y.has(me) || y.set(me, Me);
|
|
17105
17114
|
return y;
|
|
17106
17115
|
}, k = () => {
|
|
17107
|
-
It("unobserve", { id:
|
|
17116
|
+
It("unobserve", { id: v }), zc.delete(v), ia.delete(i);
|
|
17108
17117
|
};
|
|
17109
|
-
zc.set(
|
|
17118
|
+
zc.set(v, (O) => {
|
|
17110
17119
|
for (const re of O)
|
|
17111
17120
|
re?.name && (re.type === "modified" || re.type === "created" || re.type === "appeared" ? y.set(re.name, re.handle) : (re.type === "deleted" || re.type === "disappeared") && y.delete(re.name));
|
|
17112
17121
|
});
|
|
17113
|
-
const
|
|
17122
|
+
const g = yt(f);
|
|
17114
17123
|
It("observe", {
|
|
17115
17124
|
rootId: "",
|
|
17116
|
-
path:
|
|
17117
|
-
id:
|
|
17125
|
+
path: g,
|
|
17126
|
+
id: v
|
|
17118
17127
|
}, h ? [h] : []), x();
|
|
17119
17128
|
const S = {
|
|
17120
17129
|
mapCache: y,
|
|
17121
17130
|
dirHandle: m,
|
|
17122
17131
|
resolvePath: f,
|
|
17123
|
-
observationId:
|
|
17132
|
+
observationId: v,
|
|
17124
17133
|
refCount: 1,
|
|
17125
17134
|
cleanup: k,
|
|
17126
17135
|
updateCache: x
|
|
@@ -17160,8 +17169,8 @@ function r_(e, t, n = { create: !1 }, r = Ue) {
|
|
|
17160
17169
|
}
|
|
17161
17170
|
return (...p) => o.then(async (y) => {
|
|
17162
17171
|
if (!y) return;
|
|
17163
|
-
const
|
|
17164
|
-
return typeof m == "function" ? m.apply(
|
|
17172
|
+
const v = await y.dirHandle, m = v?.[f];
|
|
17173
|
+
return typeof m == "function" ? m.apply(v, p) : m;
|
|
17165
17174
|
});
|
|
17166
17175
|
}
|
|
17167
17176
|
},
|
|
@@ -17208,7 +17217,7 @@ async function s_(e, t, n = {}, r = Ue) {
|
|
|
17208
17217
|
}
|
|
17209
17218
|
async function Wn(e, t, n, r = Ue) {
|
|
17210
17219
|
if (n instanceof FileSystemFileHandle && (n = await n.getFile()), n instanceof FileSystemDirectoryHandle) {
|
|
17211
|
-
const i = await zt(await
|
|
17220
|
+
const i = await zt(await ui(e), t + (t?.trim?.()?.endsWith?.("/") ? "" : "/") + (n?.name || "")?.trim?.()?.replace?.(/\s+/g, "-"), { create: !0 });
|
|
17212
17221
|
return await sr(n, i, {})?.catch?.(console.warn.bind(console));
|
|
17213
17222
|
} else try {
|
|
17214
17223
|
const { rootHandle: i, resolvedPath: s } = await Lt(e, t, ""), o = yt(s);
|
|
@@ -17318,7 +17327,7 @@ var c_ = async () => {
|
|
|
17318
17327
|
}
|
|
17319
17328
|
return null;
|
|
17320
17329
|
}, Hb = (e) => e?.types?.length > 0 ? e?.getType?.(Array.from(e?.types || [])?.at?.(-1)) : null, dd = async (e, t = "/user/".trim?.()?.replace?.(/\s+/g, "-"), n) => {
|
|
17321
|
-
const r = await
|
|
17330
|
+
const r = await ui(null), i = Nb(yt(t))?.replace?.("/user", "")?.trim?.();
|
|
17322
17331
|
e = e instanceof File ? e : new File([e], Z() + "." + (e?.type?.split?.("/")?.[1] || "tmp"));
|
|
17323
17332
|
const s = i + (e?.name || "wallpaper")?.trim?.()?.replace?.(/\s+/g, "-");
|
|
17324
17333
|
return await Wn(r, s, e), n?.set?.("/user" + s?.trim?.()?.replace?.(/\s+/g, "-"), e), "/user" + s?.trim?.();
|
|
@@ -17329,7 +17338,7 @@ var c_ = async () => {
|
|
|
17329
17338
|
id: t
|
|
17330
17339
|
})?.catch?.(console.warn.bind(console));
|
|
17331
17340
|
if (!n) return;
|
|
17332
|
-
const r = await zt(await
|
|
17341
|
+
const r = await zt(await ui(null), e + (e?.trim?.()?.endsWith?.("/") ? "" : "/") + n.name?.trim?.()?.replace?.(/\s+/g, "-"), { create: !0 });
|
|
17333
17342
|
if (r)
|
|
17334
17343
|
return await sr(n, r, {})?.catch?.(console.warn.bind(console));
|
|
17335
17344
|
}, f_ = async (e = "/user/".trim?.()?.replace?.(/\s+/g, "-"), t) => {
|
|
@@ -17343,11 +17352,11 @@ var c_ = async () => {
|
|
|
17343
17352
|
await dd(s, e, t);
|
|
17344
17353
|
}
|
|
17345
17354
|
});
|
|
17346
|
-
},
|
|
17347
|
-
if (
|
|
17348
|
-
|
|
17355
|
+
}, Er = typeof Image < "u" ? new Image() : null;
|
|
17356
|
+
if (Er) {
|
|
17357
|
+
Er.decoding = "async", Er.width = 24, Er.height = 24;
|
|
17349
17358
|
try {
|
|
17350
|
-
|
|
17359
|
+
Er.src = URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 384 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"/></svg>'], { type: "image/svg+xml" }));
|
|
17351
17360
|
} catch {
|
|
17352
17361
|
}
|
|
17353
17362
|
}
|
|
@@ -17377,7 +17386,7 @@ var d_ = (e, t, n = "") => {
|
|
|
17377
17386
|
}, [e, t]), Bb = (e, t = "/user/", n = null, r) => {
|
|
17378
17387
|
const i = [], s = Array.from(e?.items ?? []), o = Array.from(e?.files ?? []), a = Array.isArray(e) ? e : [...e?.[Symbol.iterator] ? e : [e]];
|
|
17379
17388
|
return Promise.try(async () => {
|
|
17380
|
-
const l = await
|
|
17389
|
+
const l = await ui(n), c = async (d) => {
|
|
17381
17390
|
let h;
|
|
17382
17391
|
if (d.kind === "file" || d.kind === "directory") try {
|
|
17383
17392
|
h = await d.getAsFileSystemHandle?.();
|
|
@@ -17417,11 +17426,11 @@ var d_ = (e, t, n = "") => {
|
|
|
17417
17426
|
if (p?.handle) {
|
|
17418
17427
|
const y = f.split("/").filter(Boolean).pop();
|
|
17419
17428
|
if (p.type === "directory") {
|
|
17420
|
-
const
|
|
17421
|
-
await sr(p.handle,
|
|
17429
|
+
const v = await zt(l, t + y, { create: !0 });
|
|
17430
|
+
await sr(p.handle, v, { create: !0 });
|
|
17422
17431
|
} else {
|
|
17423
|
-
const
|
|
17424
|
-
await Wn(l, m,
|
|
17432
|
+
const v = await p.handle.getFile(), m = t + y;
|
|
17433
|
+
await Wn(l, m, v), r?.(v, m);
|
|
17425
17434
|
}
|
|
17426
17435
|
}
|
|
17427
17436
|
}));
|
|
@@ -17435,8 +17444,8 @@ var d_ = (e, t, n = "") => {
|
|
|
17435
17444
|
}
|
|
17436
17445
|
if (a?.[0] instanceof ClipboardItem) {
|
|
17437
17446
|
for (const d of a) for (const h of d.types) if (h.startsWith("image/") || h.startsWith("text/")) {
|
|
17438
|
-
const f = await d.getType(h), p = h.split("/")[1].split("+")[0] || "txt", y = new File([f], `clipboard-${Date.now()}.${p}`, { type: h }),
|
|
17439
|
-
i.push(Wn(l,
|
|
17447
|
+
const f = await d.getType(h), p = h.split("/")[1].split("+")[0] || "txt", y = new File([f], `clipboard-${Date.now()}.${p}`, { type: h }), v = t + y.name;
|
|
17448
|
+
i.push(Wn(l, v, y).then(() => r?.(y, v)));
|
|
17440
17449
|
}
|
|
17441
17450
|
}
|
|
17442
17451
|
await Promise.allSettled(i).catch(console.warn.bind(console));
|
|
@@ -17700,8 +17709,8 @@ async function M_(e, t = {}) {
|
|
|
17700
17709
|
else if (e instanceof Blob)
|
|
17701
17710
|
s = "blob", o = t.mimeType && t.mimeType !== e.type ? new Blob([await e.arrayBuffer()], { type: t.mimeType }) : e;
|
|
17702
17711
|
else {
|
|
17703
|
-
const y = (e instanceof URL ? e.toString() : String(e ?? "")).trim(),
|
|
17704
|
-
|
|
17712
|
+
const y = (e instanceof URL ? e.toString() : String(e ?? "")).trim(), v = La(y), m = t.uriComponent || za(y) ? Vn(y) : y;
|
|
17713
|
+
v ? s = "data-url" : Fc(y) ? s = "url" : Hc(y) ? s = "base64" : m !== y && (La(m) || Hc(m) || Fc(m)) ? s = "uri" : s = "text", o = await ew(s === "uri" ? m : y, {
|
|
17705
17714
|
mimeType: t.mimeType,
|
|
17706
17715
|
uriComponent: t.uriComponent,
|
|
17707
17716
|
isBase64: s === "base64" ? !0 : void 0,
|
|
@@ -17788,13 +17797,13 @@ async function O_(e) {
|
|
|
17788
17797
|
for await (const { handle: f, name: p, fullPath: y } of vd(c, l))
|
|
17789
17798
|
if (!(f.kind !== "file" || !p.toLowerCase().endsWith(".json")) && !(r && !r(p, y)))
|
|
17790
17799
|
try {
|
|
17791
|
-
const
|
|
17800
|
+
const v = await (await f.getFile()).text();
|
|
17792
17801
|
let m;
|
|
17793
17802
|
try {
|
|
17794
|
-
m =
|
|
17803
|
+
m = v.trim() === "" ? null : Q.parse(v);
|
|
17795
17804
|
} catch {
|
|
17796
17805
|
try {
|
|
17797
|
-
m =
|
|
17806
|
+
m = v.trim() === "" ? null : JSON.parse(v);
|
|
17798
17807
|
} catch (S) {
|
|
17799
17808
|
console.warn(`JSON parse error: ${y}`, S), h++;
|
|
17800
17809
|
continue;
|
|
@@ -17813,18 +17822,18 @@ async function O_(e) {
|
|
|
17813
17822
|
indent: i,
|
|
17814
17823
|
prettyStable: o
|
|
17815
17824
|
});
|
|
17816
|
-
if (Bc(k) === Bc(
|
|
17825
|
+
if (Bc(k) === Bc(v)) {
|
|
17817
17826
|
u++;
|
|
17818
17827
|
continue;
|
|
17819
17828
|
}
|
|
17820
17829
|
if (s) console.log(`[dry-run] Would update: ${y}`);
|
|
17821
17830
|
else {
|
|
17822
|
-
const
|
|
17823
|
-
await
|
|
17831
|
+
const g = await f.createWritable();
|
|
17832
|
+
await g.truncate(0), await g.write(k), await g.close(), console.log(`Updated: ${y}`);
|
|
17824
17833
|
}
|
|
17825
17834
|
u++, d++;
|
|
17826
|
-
} catch (
|
|
17827
|
-
console.error(`Failed on ${y}:`,
|
|
17835
|
+
} catch (v) {
|
|
17836
|
+
console.error(`Failed on ${y}:`, v), h++;
|
|
17828
17837
|
}
|
|
17829
17838
|
return {
|
|
17830
17839
|
processed: u,
|
|
@@ -18000,13 +18009,13 @@ var pw = async (e, t, n, r = {}) => {
|
|
|
18000
18009
|
const { writeFile: i } = await gd(), { forceExt: s, ensureJson: o, toLower: a = !0, sanitize: l = !0, mergeJson: c, arrayStrategy: u = "union", arrayKey: d, jsonSpace: h = 2 } = r;
|
|
18001
18010
|
let f = String(t || "").trim();
|
|
18002
18011
|
const p = f.endsWith("/"), y = !p && wd(f).length > 0 && f.includes(".");
|
|
18003
|
-
let
|
|
18004
|
-
|
|
18012
|
+
let v = p ? f : y ? f.split("/").slice(0, -1).join("/") : f, m = y ? f.split("/").pop() || "" : n?.name || "";
|
|
18013
|
+
v = v || "/", m = m || Date.now() + "";
|
|
18005
18014
|
const x = m.lastIndexOf(".");
|
|
18006
|
-
let k = x > 0 ? m.slice(0, x) : m,
|
|
18007
|
-
l && (
|
|
18008
|
-
const S =
|
|
18009
|
-
if (c !== !1 && (o ||
|
|
18015
|
+
let k = x > 0 ? m.slice(0, x) : m, g = s || (o ? "json" : x > 0 ? m.slice(x + 1) : aw(n?.type || "")) || "";
|
|
18016
|
+
l && (v = uw(v), k = bd(k, a));
|
|
18017
|
+
const S = g ? `${k}.${g}` : k, M = lw(v) + S;
|
|
18018
|
+
if (c !== !1 && (o || g.toLowerCase() === "json" || n?.type === "application/json")) try {
|
|
18010
18019
|
let ie;
|
|
18011
18020
|
if (n instanceof File || n instanceof Blob) {
|
|
18012
18021
|
const ut = await xd(n);
|
|
@@ -18030,11 +18039,11 @@ var pw = async (e, t, n, r = {}) => {
|
|
|
18030
18039
|
let O;
|
|
18031
18040
|
if (n instanceof File) if (n.name === S) O = n;
|
|
18032
18041
|
else {
|
|
18033
|
-
const ie = n.type || (
|
|
18042
|
+
const ie = n.type || (g ? `application/${g}` : "application/octet-stream"), me = await n.arrayBuffer();
|
|
18034
18043
|
O = new File([me], S, { type: ie });
|
|
18035
18044
|
}
|
|
18036
18045
|
else {
|
|
18037
|
-
const ie = n.type || (
|
|
18046
|
+
const ie = n.type || (g ? `application/${g}` : "application/octet-stream");
|
|
18038
18047
|
O = new File([await n.arrayBuffer()], S, { type: ie });
|
|
18039
18048
|
}
|
|
18040
18049
|
const re = await i(e, M, O)?.catch?.(console.warn.bind(console));
|
|
@@ -18308,7 +18317,7 @@ function q_() {
|
|
|
18308
18317
|
export {
|
|
18309
18318
|
Fl as $behavior,
|
|
18310
18319
|
Vy as $createElement,
|
|
18311
|
-
|
|
18320
|
+
Gr as $mapped,
|
|
18312
18321
|
Zp as $observeAttribute,
|
|
18313
18322
|
Qp as $observeInput,
|
|
18314
18323
|
Kp as $virtual,
|
|
@@ -18324,7 +18333,7 @@ export {
|
|
|
18324
18333
|
MS as CSSMomentumScrolling,
|
|
18325
18334
|
uc as CSSPosition,
|
|
18326
18335
|
TS as CSSScrollbarControls,
|
|
18327
|
-
|
|
18336
|
+
Pr as CSSTransform,
|
|
18328
18337
|
hv as CSSUnitConverter,
|
|
18329
18338
|
D as CSSUnitUtils,
|
|
18330
18339
|
Uu as ClosePriority,
|
|
@@ -18397,7 +18406,7 @@ export {
|
|
|
18397
18406
|
xf as appendAsLayer,
|
|
18398
18407
|
Cv as appendAsOverlay,
|
|
18399
18408
|
_f as appendAsUnderlying,
|
|
18400
|
-
|
|
18409
|
+
Kr as appendChild,
|
|
18401
18410
|
Pv as appendScrollbarOverlay,
|
|
18402
18411
|
fo as applyAnchorName,
|
|
18403
18412
|
ts as applyNormalizedInlineStyle,
|
|
@@ -18418,7 +18427,7 @@ export {
|
|
|
18418
18427
|
il as bindDraggable,
|
|
18419
18428
|
I_ as bindDropToDir,
|
|
18420
18429
|
Pw as bindForms,
|
|
18421
|
-
|
|
18430
|
+
si as bindHandler,
|
|
18422
18431
|
Ov as bindMenuItemClickHandler,
|
|
18423
18432
|
ny as bindMorph,
|
|
18424
18433
|
Iw as bindPreset,
|
|
@@ -18567,10 +18576,10 @@ export {
|
|
|
18567
18576
|
Hb as getLeast,
|
|
18568
18577
|
F_ as getMarkDownFromFile,
|
|
18569
18578
|
e_ as getMimeTypeByFilename,
|
|
18570
|
-
|
|
18579
|
+
Fr as getParentOrShadowRoot,
|
|
18571
18580
|
kx as getSpeechPrompt,
|
|
18572
18581
|
xg as getValueWithShift,
|
|
18573
|
-
|
|
18582
|
+
Er as ghostImage,
|
|
18574
18583
|
mv as grabForDrag,
|
|
18575
18584
|
sl as handleByPointer,
|
|
18576
18585
|
nt as handleError,
|
|
@@ -18614,7 +18623,7 @@ export {
|
|
|
18614
18623
|
m_ as isTextFile,
|
|
18615
18624
|
Mv as itemClickHandle,
|
|
18616
18625
|
Vs as junctionToBox,
|
|
18617
|
-
|
|
18626
|
+
$r as lazyAddEventListener,
|
|
18618
18627
|
gw as lazyLoadComponent,
|
|
18619
18628
|
Bv as listenForClipboardRequests,
|
|
18620
18629
|
df as loadCachedStyles,
|
|
@@ -18646,7 +18655,7 @@ export {
|
|
|
18646
18655
|
Qw as matrix4x4Ref,
|
|
18647
18656
|
n_ as mayNotPromise,
|
|
18648
18657
|
Ig as maybeStartThemeEngine,
|
|
18649
|
-
|
|
18658
|
+
kr as mergeByKey,
|
|
18650
18659
|
Yi as mixinDisposers,
|
|
18651
18660
|
S0 as modulusRef,
|
|
18652
18661
|
y0 as momentumScroll,
|
|
@@ -18672,7 +18681,7 @@ export {
|
|
|
18672
18681
|
A_ as openFile,
|
|
18673
18682
|
c_ as openImageFilePicker,
|
|
18674
18683
|
N_ as openPickerAndWrite,
|
|
18675
|
-
|
|
18684
|
+
b as operated,
|
|
18676
18685
|
O_ as opfsModifyJson,
|
|
18677
18686
|
ES as optimizeCellLayout,
|
|
18678
18687
|
Em as orientLink,
|
|
@@ -18737,7 +18746,7 @@ export {
|
|
|
18737
18746
|
o0 as relativePosition,
|
|
18738
18747
|
rn as reloadInto,
|
|
18739
18748
|
l_ as remove,
|
|
18740
|
-
|
|
18749
|
+
zr as removeChild,
|
|
18741
18750
|
a_ as removeDirectory,
|
|
18742
18751
|
ud as removeFile,
|
|
18743
18752
|
ey as removeFromBank,
|
|
@@ -18749,7 +18758,7 @@ export {
|
|
|
18749
18758
|
Eg as resolveDragging,
|
|
18750
18759
|
xv as resolveLayerZIndex,
|
|
18751
18760
|
Lt as resolvePath,
|
|
18752
|
-
|
|
18761
|
+
ui as resolveRootHandle,
|
|
18753
18762
|
r0 as rotate2D,
|
|
18754
18763
|
gS as roundCell,
|
|
18755
18764
|
L_ as sanitizeFileName,
|
|
@@ -18791,7 +18800,7 @@ export {
|
|
|
18791
18800
|
G0 as subtractVector4D,
|
|
18792
18801
|
E0 as tanRef,
|
|
18793
18802
|
Hx as timeStatusRef,
|
|
18794
|
-
|
|
18803
|
+
li as toText,
|
|
18795
18804
|
s0 as transformRect2D,
|
|
18796
18805
|
t0 as translate2D,
|
|
18797
18806
|
Qx as unmountAsRoot,
|
|
@@ -18821,5 +18830,5 @@ export {
|
|
|
18821
18830
|
ow as writeFilesToDir,
|
|
18822
18831
|
$v as writeHTML,
|
|
18823
18832
|
pc as writeImage,
|
|
18824
|
-
|
|
18833
|
+
Qr as writeText
|
|
18825
18834
|
};
|