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