@synopackageland/ui 0.14.4 → 0.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as Bl from "vue";
2
- import { inject as Ze, computed as y, defineComponent as q, openBlock as f, createElementBlock as g, normalizeStyle as _e, unref as i, normalizeClass as te, createElementVNode as M, ref as P, provide as Qe, onMounted as qe, onUpdated as ko, createVNode as I, createCommentVNode as V, renderSlot as S, createBlock as $, useAttrs as Co, watch as pe, watchEffect as st, onBeforeUpdate as vf, onBeforeUnmount as He, mergeProps as ne, shallowReactive as Zs, onScopeDispose as Sn, shallowRef as Lt, shallowReadonly as na, toValue as nt, getCurrentScope as Js, customRef as mf, effectScope as Qs, getCurrentInstance as xt, isRef as jt, reactive as ht, toRefs as Ke, nextTick as De, Fragment as ce, toHandlerKey as hf, camelize as eu, triggerRef as yf, toRef as gf, onUnmounted as dt, h as At, Comment as tu, cloneVNode as bf, withCtx as _, withKeys as et, withDirectives as Tt, vShow as ba, withModifiers as $e, Teleport as $n, normalizeProps as Be, guardReactiveProps as Ie, markRaw as wf, renderList as ke, watchSyncEffect as xf, withMemo as hi, watchPostEffect as au, mergeDefaults as nu, resolveDynamicComponent as ze, toHandlers as ou, createTextVNode as he, toDisplayString as U, toRaw as _f, onBeforeMount as kf, useId as yt, useTemplateRef as Me, vModelText as ru, resolveComponent as yi, Text as Cf, useSlots as Ot, vModelSelect as pr, createSlots as eo } from "vue";
3
- import { EyeOff as Sf, Eye as $f, Minus as lo, ChevronDown as rt, Plus as Mr, Check as mt, X as gt, ChevronRight as ut, CalendarDays as Ef, ChevronLeft as gi, CircleAlert as bi, TriangleAlert as So, CircleCheck as wi, Info as za, File as Vr, FileImage as Tf, FileVideo as Af, FileAudio as Pf, FileArchive as qf, FileText as iu, FileCode as Df, FolderOpen as xi, Folder as _i, Ellipsis as Ol, ChevronsLeft as Bf, ChevronsRight as Of, RefreshCw as so, Filter as If, Search as Rf, Trash2 as Mf, CircleQuestionMark as Vf, ChevronUp as lu, Columns3 as Lf, GripVertical as Il, UploadCloud as Ff, Scissors as zf, Copy as ki, Pencil as Nf, CircleHelp as Kf, Lightbulb as Wf, ChevronsUpDown as Hf, Package as jf, ExternalLink as Uf, PanelLeftOpen as Gf, PanelLeftClose as Yf, Menu as Xf, Download as Zf, ArrowUpRight as Jf } from "@lucide/vue";
4
- import { DateFormatter as Ht, createCalendar as Qf, toCalendar as Rl, CalendarDateTime as su, CalendarDate as uu, getLocalTimeZone as Ci, ZonedDateTime as ep, getDayOfWeek as Si, startOfMonth as tp, endOfMonth as Ml, today as ap, isEqualMonth as Vl, isSameMonth as du, isSameDay as Na, isEqualDay as hn, isToday as np, parseDate as op } from "@internationalized/date";
1
+ import * as Ol from "vue";
2
+ import { inject as Ze, computed as y, defineComponent as q, openBlock as f, createElementBlock as g, normalizeStyle as _e, unref as i, normalizeClass as te, createElementVNode as M, ref as P, provide as Qe, onMounted as qe, onUpdated as ko, createVNode as I, createCommentVNode as V, renderSlot as S, createBlock as $, useAttrs as Co, watch as pe, watchEffect as st, onBeforeUpdate as vf, onBeforeUnmount as He, mergeProps as ne, shallowReactive as Zs, onScopeDispose as Sn, shallowRef as Lt, shallowReadonly as na, toValue as nt, getCurrentScope as Js, customRef as mf, effectScope as Qs, getCurrentInstance as xt, isRef as jt, reactive as ht, toRefs as Ke, nextTick as De, Fragment as ce, toHandlerKey as hf, camelize as eu, triggerRef as yf, toRef as gf, onUnmounted as dt, h as At, Comment as tu, cloneVNode as bf, withCtx as _, withKeys as et, withDirectives as Tt, vShow as ba, withModifiers as $e, Teleport as $n, normalizeProps as Be, guardReactiveProps as Ie, markRaw as wf, renderList as ke, watchSyncEffect as xf, withMemo as yi, watchPostEffect as au, mergeDefaults as nu, resolveDynamicComponent as ze, toHandlers as ou, createTextVNode as he, toDisplayString as U, toRaw as _f, onBeforeMount as kf, useId as yt, useTemplateRef as Me, vModelText as ru, resolveComponent as gi, Text as Cf, useSlots as Ot, vModelSelect as pr, createSlots as eo } from "vue";
3
+ import { EyeOff as Sf, Eye as $f, Minus as lo, ChevronDown as rt, Plus as Vr, Check as mt, X as gt, ChevronRight as ut, CalendarDays as Ef, ChevronLeft as bi, CircleAlert as wi, TriangleAlert as So, CircleCheck as xi, Info as za, File as Lr, FileImage as Tf, FileVideo as Af, FileAudio as Pf, FileArchive as qf, FileText as iu, FileCode as Df, FolderOpen as _i, Folder as ki, Ellipsis as Il, ChevronsLeft as Bf, ChevronsRight as Of, RefreshCw as so, Filter as If, Search as Rf, Trash2 as Mf, CircleQuestionMark as Vf, ChevronUp as lu, Columns3 as Lf, GripVertical as Rl, UploadCloud as Ff, Scissors as zf, Copy as Ci, Pencil as Nf, CircleHelp as Kf, Lightbulb as Wf, ChevronsUpDown as Hf, Package as jf, ExternalLink as Uf, PanelLeftOpen as Gf, PanelLeftClose as Yf, Menu as Xf, Download as Zf, ArrowUpRight as Jf } from "@lucide/vue";
4
+ import { DateFormatter as Ht, createCalendar as Qf, toCalendar as Ml, CalendarDateTime as su, CalendarDate as uu, getLocalTimeZone as Si, ZonedDateTime as ep, getDayOfWeek as $i, startOfMonth as tp, endOfMonth as Vl, today as ap, isEqualMonth as Ll, isSameMonth as du, isSameDay as Na, isEqualDay as hn, isToday as np, parseDate as op } from "@internationalized/date";
5
5
  const cu = /* @__PURE__ */ Symbol("syno-pkg-land-ui:locale");
6
6
  function Ga(e) {
7
7
  const a = Ze(cu, null);
@@ -1470,13 +1470,13 @@ const rp = {
1470
1470
  "Couldn't copy": "Impossibile copiare"
1471
1471
  }
1472
1472
  };
1473
- function $i(e, a, t = {}) {
1473
+ function Ei(e, a, t = {}) {
1474
1474
  return Ct(ip[e][a], t);
1475
1475
  }
1476
1476
  function Ue() {
1477
1477
  const e = Ga(() => {
1478
1478
  });
1479
- return (a, t) => $i(e.value, a, t);
1479
+ return (a, t) => Ei(e.value, a, t);
1480
1480
  }
1481
1481
  function Xe(e, a) {
1482
1482
  const t = Ue();
@@ -1649,16 +1649,16 @@ const dp = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
1649
1649
  })) : S(r.$slots, "default", {}, void 0, void 0, 1)
1650
1650
  ], 10, pp));
1651
1651
  }
1652
- }), vu = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form"), Ei = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form-field");
1652
+ }), vu = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form"), Ti = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form-field");
1653
1653
  function vp() {
1654
1654
  return Ze(vu, null);
1655
1655
  }
1656
1656
  function mp() {
1657
- return Ze(Ei, null);
1657
+ return Ze(Ti, null);
1658
1658
  }
1659
1659
  function ct(e) {
1660
1660
  const a = Co(), t = mp(), n = /* @__PURE__ */ Symbol("primary-control"), o = t?.claimControl?.(n), r = y(() => t?.isPrimaryControl ? t.isPrimaryControl(n) ? t : null : o === !1 ? null : t);
1661
- t && Qe(Ei, null), pe([r, e.value], ([v, m]) => v?.setValue(m), { immediate: !0 }), pe([r, e.disabled], ([v, m]) => v?.setDisabled(m === !0), { immediate: !0 });
1661
+ t && Qe(Ti, null), pe([r, e.value], ([v, m]) => v?.setValue(m), { immediate: !0 }), pe([r, e.disabled], ([v, m]) => v?.setDisabled(m === !0), { immediate: !0 });
1662
1662
  const l = t?.defaultControlId ?? t?.controlId, s = () => {
1663
1663
  const v = e.id?.() ?? a.id;
1664
1664
  r.value?.setControlId?.(typeof v == "string" ? v : l);
@@ -1822,7 +1822,7 @@ const gp = ["value", "type", "name", "placeholder", "disabled", "readonly"], bp
1822
1822
  ]));
1823
1823
  }
1824
1824
  });
1825
- function Ll(e) {
1825
+ function Fl(e) {
1826
1826
  return typeof e == "string" ? `'${e}'` : new Sp().serialize(e);
1827
1827
  }
1828
1828
  const Cp = " _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz", Nn = /* @__PURE__ */ (function() {
@@ -1954,7 +1954,7 @@ const Sp = /* @__PURE__ */ (function() {
1954
1954
  return e;
1955
1955
  })();
1956
1956
  function Bt(e, a) {
1957
- return e === a || Ll(e) === Ll(a);
1957
+ return e === a || Fl(e) === Fl(a);
1958
1958
  }
1959
1959
  function to(e, a, t) {
1960
1960
  const n = e.findIndex((s) => Bt(s, a)), o = e.findIndex((s) => Bt(s, t));
@@ -2023,7 +2023,7 @@ function $p(e) {
2023
2023
  const wt = typeof window < "u" && typeof document < "u";
2024
2024
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2025
2025
  const Ep = (e) => typeof e < "u", Tp = Object.prototype.toString, Ap = (e) => Tp.call(e) === "[object Object]", Pp = () => {
2026
- }, Fl = /* @__PURE__ */ qp();
2026
+ }, zl = /* @__PURE__ */ qp();
2027
2027
  function qp() {
2028
2028
  var e, a, t;
2029
2029
  return wt && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((a = window) === null || a === void 0 || (a = a.navigator) === null || a === void 0 ? void 0 : a.maxTouchPoints) > 2 && /iPad|Macintosh/.test((t = window) === null || t === void 0 ? void 0 : t.navigator.userAgent));
@@ -2075,7 +2075,7 @@ function Eo(e, ...a) {
2075
2075
  const t = a.flat(), n = t[0];
2076
2076
  return Op(() => Object.fromEntries(typeof n == "function" ? Object.entries(Ke(e)).filter(([o, r]) => !n(nt(r), o)) : Object.entries(Ke(e)).filter((o) => !t.includes(o[0]))));
2077
2077
  }
2078
- function Ti(e, a = 1e4) {
2078
+ function Ai(e, a = 1e4) {
2079
2079
  return mf((t, n) => {
2080
2080
  let o = nt(e), r;
2081
2081
  const l = () => setTimeout(() => {
@@ -2096,7 +2096,7 @@ function Ti(e, a = 1e4) {
2096
2096
  function Ip(e, a) {
2097
2097
  Dp() && He(e, a);
2098
2098
  }
2099
- function Ai(e, a, t = {}) {
2099
+ function Pi(e, a, t = {}) {
2100
2100
  const { immediate: n = !0, immediateCallback: o = !1 } = t, r = Lt(!1);
2101
2101
  let l;
2102
2102
  function s() {
@@ -2117,7 +2117,7 @@ function Ai(e, a, t = {}) {
2117
2117
  };
2118
2118
  }
2119
2119
  function Rp(e = 1e3, a = {}) {
2120
- const { controls: t = !1, callback: n } = a, o = Ai(n ?? Pp, e, a), r = y(() => !o.isPending.value);
2120
+ const { controls: t = !1, callback: n } = a, o = Pi(n ?? Pp, e, a), r = y(() => !o.isPending.value);
2121
2121
  return t ? {
2122
2122
  ready: r,
2123
2123
  ...o
@@ -2157,7 +2157,7 @@ function Ft(...e) {
2157
2157
  }, { flush: "post" });
2158
2158
  }
2159
2159
  // @__NO_SIDE_EFFECTS__
2160
- function Pi() {
2160
+ function qi() {
2161
2161
  const e = Lt(!1), a = xt();
2162
2162
  return a && qe(() => {
2163
2163
  e.value = !0;
@@ -2165,13 +2165,13 @@ function Pi() {
2165
2165
  }
2166
2166
  // @__NO_SIDE_EFFECTS__
2167
2167
  function Vp(e) {
2168
- const a = /* @__PURE__ */ Pi();
2168
+ const a = /* @__PURE__ */ qi();
2169
2169
  return y(() => (a.value, !!e()));
2170
2170
  }
2171
2171
  function Lp(e) {
2172
2172
  return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
2173
2173
  }
2174
- function qi(...e) {
2174
+ function Di(...e) {
2175
2175
  let a, t, n = {};
2176
2176
  e.length === 3 ? (a = e[0], t = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, t = e[0], n = e[1]) : (a = e[0], t = e[1]) : (a = !0, t = e[0]);
2177
2177
  const { target: o = En, eventName: r = "keydown", passive: l = !1, dedupe: s = !1 } = n, u = Lp(a);
@@ -2267,11 +2267,11 @@ function We(e, a, t, n = {}) {
2267
2267
  }
2268
2268
  });
2269
2269
  }
2270
- function Di(e) {
2271
- return e ? e.flatMap((a) => a.type === ce ? Di(a.children) : [a]) : [];
2270
+ function Bi(e) {
2271
+ return e ? e.flatMap((a) => a.type === ce ? Bi(a.children) : [a]) : [];
2272
2272
  }
2273
2273
  const Kp = ["INPUT", "TEXTAREA"];
2274
- function Lr(e, a, t, n = {}) {
2274
+ function Fr(e, a, t, n = {}) {
2275
2275
  if (!a || n.enableIgnoredElement && Kp.includes(a.nodeName)) return null;
2276
2276
  const { arrowKeyOptions: o = "both", attributeName: r = "[data-reka-collection-item]", itemsArray: l = [], loop: s = !0, dir: u = "ltr", preventScroll: d = !0, focus: c = !1 } = n, [p, v, m, h, b, x] = [
2277
2277
  e.key === "ArrowRight",
@@ -2352,16 +2352,16 @@ const at = /* @__PURE__ */ ht({
2352
2352
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2353
2353
  originalBodyPointerEvents: void 0,
2354
2354
  branches: /* @__PURE__ */ new Set()
2355
- }), xu = "@synopkgland/modal-scope", zl = "@synopkgland/app-root", Bi = "Simultaneous app-local and document overlays are unsupported", Nl = /* @__PURE__ */ new WeakMap();
2355
+ }), xu = "@synopkgland/modal-scope", Nl = "@synopkgland/app-root", Oi = "Simultaneous app-local and document overlays are unsupported", Kl = /* @__PURE__ */ new WeakMap();
2356
2356
  function gn(e) {
2357
- let a = Nl.get(e);
2358
- return a || (a = { local: /* @__PURE__ */ new Set(), document: /* @__PURE__ */ new Set() }, Nl.set(e, a)), a;
2357
+ let a = Kl.get(e);
2358
+ return a || (a = { local: /* @__PURE__ */ new Set(), document: /* @__PURE__ */ new Set() }, Kl.set(e, a)), a;
2359
2359
  }
2360
2360
  function ft() {
2361
2361
  return Ze(xu, null);
2362
2362
  }
2363
2363
  function fo() {
2364
- if (typeof document < "u" && gn(document).local.size) throw new Error(Bi);
2364
+ if (typeof document < "u" && gn(document).local.size) throw new Error(Oi);
2365
2365
  }
2366
2366
  function jp(e) {
2367
2367
  const a = {};
@@ -2377,11 +2377,11 @@ function Up(e, a) {
2377
2377
  pe([e, a], ([n, o], r, l) => {
2378
2378
  if (!n || !o) return;
2379
2379
  const s = gn(n.ownerDocument);
2380
- if (s.local.size) throw new Error(Bi);
2380
+ if (s.local.size) throw new Error(Oi);
2381
2381
  s.document.add(t), l(() => s.document.delete(t));
2382
2382
  }, { immediate: !0, flush: "sync" });
2383
2383
  }
2384
- function Kl(e, a, t) {
2384
+ function Wl(e, a, t) {
2385
2385
  const n = e.getAttribute(a);
2386
2386
  return e.setAttribute(a, t), () => {
2387
2387
  e.getAttribute(a) === t && (n === null ? e.removeAttribute(a) : e.setAttribute(a, n));
@@ -2481,7 +2481,7 @@ class Xp {
2481
2481
  pe([a, t, n], ([r, l, s], u, d) => {
2482
2482
  if (!r || !l || this.disposed) return;
2483
2483
  const c = gn(r.ownerDocument);
2484
- if (c.document.size) throw new Error(Bi);
2484
+ if (c.document.size) throw new Error(Oi);
2485
2485
  const p = { element: r, modal: s, emits: o };
2486
2486
  c.local.add(this), this.layers.push(p);
2487
2487
  const v = r.closest("[data-reka-popper-content-wrapper]") ?? r, m = String(1401 + this.layers.length * 2), h = v.hasAttribute("data-reka-popper-content-wrapper") ? Gp(v, "--ui-local-layer-z", m) : hr(v, "z-index", m), b = r.previousElementSibling, x = s && b?.getAttribute("data-ui-overlay") === "" ? hr(b, "z-index", String(1400 + this.layers.length * 2)) : void 0;
@@ -2525,7 +2525,7 @@ class Xp {
2525
2525
  n.has(o) || (r(), this.hidden.delete(o));
2526
2526
  for (const o of n) {
2527
2527
  if (this.hidden.has(o)) continue;
2528
- const r = Kl(o, "inert", ""), l = Kl(o, "aria-hidden", "true");
2528
+ const r = Wl(o, "inert", ""), l = Wl(o, "aria-hidden", "true");
2529
2529
  this.hidden.set(o, () => {
2530
2530
  r(), l();
2531
2531
  });
@@ -2602,15 +2602,15 @@ function gr(e) {
2602
2602
  const a = Object.getPrototypeOf(e);
2603
2603
  return a !== null && a !== Object.prototype && Object.getPrototypeOf(a) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
2604
2604
  }
2605
- function Fr(e, a, t = ".", n) {
2605
+ function zr(e, a, t = ".", n) {
2606
2606
  if (!gr(a))
2607
- return Fr(e, {}, t, n);
2607
+ return zr(e, {}, t, n);
2608
2608
  const o = { ...a };
2609
2609
  for (const r of Object.keys(e)) {
2610
2610
  if (r === "__proto__" || r === "constructor")
2611
2611
  continue;
2612
2612
  const l = e[r];
2613
- l != null && (n && n(o, r, l, t) || (Array.isArray(l) && Array.isArray(o[r]) ? o[r] = [...l, ...o[r]] : gr(l) && gr(o[r]) ? o[r] = Fr(
2613
+ l != null && (n && n(o, r, l, t) || (Array.isArray(l) && Array.isArray(o[r]) ? o[r] = [...l, ...o[r]] : gr(l) && gr(o[r]) ? o[r] = zr(
2614
2614
  l,
2615
2615
  o[r],
2616
2616
  (t ? `${t}.` : "") + r.toString(),
@@ -2622,7 +2622,7 @@ function Fr(e, a, t = ".", n) {
2622
2622
  function Zp(e) {
2623
2623
  return (...a) => (
2624
2624
  // eslint-disable-next-line unicorn/no-array-reduce
2625
- a.reduce((t, n) => Fr(t, n, "", e), {})
2625
+ a.reduce((t, n) => zr(t, n, "", e), {})
2626
2626
  );
2627
2627
  }
2628
2628
  const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
@@ -2637,7 +2637,7 @@ const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
2637
2637
  }), o = ia({ scrollBody: P(!0) });
2638
2638
  let r = null;
2639
2639
  const l = () => {
2640
- a?.(), a = void 0, Fl && r?.();
2640
+ a?.(), a = void 0, zl && r?.();
2641
2641
  };
2642
2642
  return pe(n, (s, u) => {
2643
2643
  if (!wt) return;
@@ -2659,7 +2659,7 @@ const _u = Zp(), Jp = /* @__PURE__ */ gu(() => {
2659
2659
  padding: 0,
2660
2660
  margin: 0
2661
2661
  };
2662
- b > 0 && (document.body.style.paddingRight = typeof w.padding == "number" ? `${w.padding}px` : String(w.padding), document.body.style.marginRight = typeof w.margin == "number" ? `${w.margin}px` : String(w.margin), document.documentElement.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), Fl && (r = Ft(document, "touchmove", (C) => Qp(C), { passive: !1 })), De(() => {
2662
+ b > 0 && (document.body.style.paddingRight = typeof w.padding == "number" ? `${w.padding}px` : String(w.padding), document.body.style.marginRight = typeof w.margin == "number" ? `${w.margin}px` : String(w.margin), document.documentElement.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), zl && (r = Ft(document, "touchmove", (C) => Qp(C), { passive: !1 })), De(() => {
2663
2663
  n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
2664
2664
  });
2665
2665
  }, {
@@ -2719,17 +2719,17 @@ function Cu(e) {
2719
2719
  handleCompositionEnd: s
2720
2720
  };
2721
2721
  }
2722
- function Mt(e, a = Ci()) {
2723
- return Oi(e) ? e.toDate() : e.toDate(a);
2722
+ function Mt(e, a = Si()) {
2723
+ return Ii(e) ? e.toDate() : e.toDate(a);
2724
2724
  }
2725
2725
  function nv(e) {
2726
2726
  return e instanceof su;
2727
2727
  }
2728
- function Oi(e) {
2728
+ function Ii(e) {
2729
2729
  return e instanceof ep;
2730
2730
  }
2731
2731
  function ov(e) {
2732
- return nv(e) || Oi(e);
2732
+ return nv(e) || Ii(e);
2733
2733
  }
2734
2734
  function Ma(e) {
2735
2735
  if (e instanceof Date) {
@@ -2744,11 +2744,11 @@ function br(e, a) {
2744
2744
  return e.compare(a) > 0;
2745
2745
  }
2746
2746
  function rv(e, a, t) {
2747
- const n = Si(e, t, "sun");
2747
+ const n = $i(e, t, "sun");
2748
2748
  return a > n ? e.subtract({ days: n + 7 - a }) : a === n ? e : e.subtract({ days: n - a });
2749
2749
  }
2750
2750
  function iv(e, a, t) {
2751
- const n = Si(e, t, "sun"), o = a === 0 ? 6 : a - 1;
2751
+ const n = $i(e, t, "sun"), o = a === 0 ? 6 : a - 1;
2752
2752
  return n === o ? e : n > o ? e.add({ days: 7 - n + o }) : e.add({ days: o - n });
2753
2753
  }
2754
2754
  function Su(e) {
@@ -2761,7 +2761,7 @@ function Su(e) {
2761
2761
  "minute",
2762
2762
  "second"
2763
2763
  ], c = new Ht(o), p = Qf(c.resolvedOptions().calendar);
2764
- return d.includes(n ?? "day") ? Rl(new su(l, s, u, 0, 0, 0), p) : Rl(new uu(l, s, u), p);
2764
+ return d.includes(n ?? "day") ? Ml(new su(l, s, u, 0, 0, 0), p) : Ml(new uu(l, s, u), p);
2765
2765
  }
2766
2766
  function lv(e, a) {
2767
2767
  const t = [];
@@ -2776,7 +2776,7 @@ function $u(e) {
2776
2776
  const n = e.querySelector("[data-value]:not([data-outside-view]):not([data-disabled])");
2777
2777
  if (n) return n.focus();
2778
2778
  }
2779
- function Wl(e, a) {
2779
+ function Hl(e, a) {
2780
2780
  const t = [];
2781
2781
  let n = e.add({ days: 1 });
2782
2782
  const o = a;
@@ -2785,11 +2785,11 @@ function Wl(e, a) {
2785
2785
  return t;
2786
2786
  }
2787
2787
  function wr(e) {
2788
- const { dateObj: a, weekStartsOn: t, fixedWeeks: n, locale: o } = e, r = Ma(a), l = Array.from({ length: r }, (x, w) => a.set({ day: w + 1 })), s = tp(a), u = Ml(a), d = rv(s, t, o), c = iv(u, t, o), p = Wl(d.subtract({ days: 1 }), s), v = Wl(u, c.add({ days: 1 })), m = p.length + l.length + v.length;
2788
+ const { dateObj: a, weekStartsOn: t, fixedWeeks: n, locale: o } = e, r = Ma(a), l = Array.from({ length: r }, (x, w) => a.set({ day: w + 1 })), s = tp(a), u = Vl(a), d = rv(s, t, o), c = iv(u, t, o), p = Hl(d.subtract({ days: 1 }), s), v = Hl(u, c.add({ days: 1 })), m = p.length + l.length + v.length;
2789
2789
  if (n && m < 42) {
2790
2790
  const x = 42 - m;
2791
2791
  let w = v.at(-1);
2792
- w || (w = Ml(a));
2792
+ w || (w = Vl(a));
2793
2793
  const C = Array.from({ length: x }, (E, k) => {
2794
2794
  const A = k + 1;
2795
2795
  return w.add({ days: A });
@@ -2825,7 +2825,7 @@ function ma(e) {
2825
2825
  }
2826
2826
  function Eu(e) {
2827
2827
  const a = new uu(2025, 1, 6);
2828
- return (1 - Si(a, e) + 7) % 7;
2828
+ return (1 - $i(a, e) + 7) % 7;
2829
2829
  }
2830
2830
  function sv(e, a = {}) {
2831
2831
  const t = P(e);
@@ -2863,7 +2863,7 @@ function sv(e, a = {}) {
2863
2863
  }).format(x);
2864
2864
  }
2865
2865
  function d() {
2866
- const x = ap(Ci());
2866
+ const x = ap(Si());
2867
2867
  return [
2868
2868
  1,
2869
2869
  2,
@@ -2890,7 +2890,7 @@ function sv(e, a = {}) {
2890
2890
  }).format(x);
2891
2891
  }
2892
2892
  function p(x, w) {
2893
- return Oi(x) ? new Ht(t.value, {
2893
+ return Ii(x) ? new Ht(t.value, {
2894
2894
  ...a,
2895
2895
  ...w,
2896
2896
  timeZone: x.timeZone
@@ -2980,12 +2980,12 @@ function To() {
2980
2980
  ft() || st((e) => {
2981
2981
  if (!wt) return;
2982
2982
  const a = document.querySelectorAll("[data-reka-focus-guard]");
2983
- document.body.insertAdjacentElement("afterbegin", a[0] ?? Hl()), document.body.insertAdjacentElement("beforeend", a[1] ?? Hl()), xr++, e(() => {
2983
+ document.body.insertAdjacentElement("afterbegin", a[0] ?? jl()), document.body.insertAdjacentElement("beforeend", a[1] ?? jl()), xr++, e(() => {
2984
2984
  xr === 1 && document.querySelectorAll("[data-reka-focus-guard]").forEach((t) => t.remove()), xr--;
2985
2985
  });
2986
2986
  });
2987
2987
  }
2988
- function Hl() {
2988
+ function jl() {
2989
2989
  const e = document.createElement("span");
2990
2990
  return e.setAttribute("data-reka-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
2991
2991
  }
@@ -3064,7 +3064,7 @@ function Xa() {
3064
3064
  return e ? { [e]: "" } : {};
3065
3065
  }
3066
3066
  function dv(e, a) {
3067
- const t = Ti(!1, 300);
3067
+ const t = Ai(!1, 300);
3068
3068
  Ca(() => {
3069
3069
  t.value = !1;
3070
3070
  });
@@ -3288,7 +3288,7 @@ function Je(e, a = "reka") {
3288
3288
  if (e) return e;
3289
3289
  let t;
3290
3290
  const n = ia({ useId: void 0 });
3291
- return n.useId ? t = n.useId() : "useId" in Bl ? t = Bl.useId?.() : t = `${++xv}`, a ? `${a}-${t}` : t;
3291
+ return n.useId ? t = n.useId() : "useId" in Ol ? t = Ol.useId?.() : t = `${++xv}`, a ? `${a}-${t}` : t;
3292
3292
  }
3293
3293
  function Au() {
3294
3294
  return {
@@ -3413,7 +3413,7 @@ function kv(e, a) {
3413
3413
  };
3414
3414
  }
3415
3415
  function Pn(e) {
3416
- const a = Ti("", 1e3);
3416
+ const a = Ai("", 1e3);
3417
3417
  return {
3418
3418
  search: a,
3419
3419
  handleTypeaheadSearch: (o, r) => {
@@ -3509,7 +3509,7 @@ var _t = /* @__PURE__ */ q({
3509
3509
  const { present: n, forceMount: o } = Ke(e), r = P(), { isPresent: l } = $v(n, r);
3510
3510
  t({ present: l });
3511
3511
  let s = a.default({ present: l.value });
3512
- s = Di(s || []);
3512
+ s = Bi(s || []);
3513
3513
  const u = xt();
3514
3514
  if (s && s?.length > 1) {
3515
3515
  const d = u?.parent?.type.name ? `<${u.parent.type.name} />` : "component";
@@ -3529,13 +3529,13 @@ var _t = /* @__PURE__ */ q({
3529
3529
  } }) : null;
3530
3530
  }
3531
3531
  });
3532
- const zr = /* @__PURE__ */ q({
3532
+ const Nr = /* @__PURE__ */ q({
3533
3533
  name: "PrimitiveSlot",
3534
3534
  inheritAttrs: !1,
3535
3535
  setup(e, { attrs: a, slots: t }) {
3536
3536
  return () => {
3537
3537
  if (!t.default) return null;
3538
- const n = Di(t.default()), o = n.findIndex((u) => u.type !== tu);
3538
+ const n = Bi(t.default()), o = n.findIndex((u) => u.type !== tu);
3539
3539
  if (o === -1) return n;
3540
3540
  const r = n[o];
3541
3541
  delete r.props?.ref;
@@ -3565,7 +3565,7 @@ const zr = /* @__PURE__ */ q({
3565
3565
  },
3566
3566
  setup(e, { attrs: a, slots: t }) {
3567
3567
  const n = e.asChild ? "template" : e.as;
3568
- return typeof n == "string" && Ev.includes(n) ? () => At(n, a) : n !== "template" ? () => At(e.as, a, { default: t.default }) : () => At(zr, a, { default: t.default });
3568
+ return typeof n == "string" && Ev.includes(n) ? () => At(n, a) : n !== "template" ? () => At(e.as, a, { default: t.default }) : () => At(Nr, a, { default: t.default });
3569
3569
  }
3570
3570
  });
3571
3571
  function zt() {
@@ -3863,10 +3863,10 @@ var Lv = /* @__PURE__ */ q({
3863
3863
  _: 3
3864
3864
  }, 8, ["as-child", "as"]));
3865
3865
  }
3866
- }), Fv = Lv, Nr = /* @__PURE__ */ (function(e) {
3866
+ }), Fv = Lv, Kr = /* @__PURE__ */ (function(e) {
3867
3867
  return e.Open = "open", e.Closed = "closed", e;
3868
- })(Nr || {});
3869
- const [Ii, zv] = /* @__PURE__ */ Ve("AccordionItem");
3868
+ })(Kr || {});
3869
+ const [Ri, zv] = /* @__PURE__ */ Ve("AccordionItem");
3870
3870
  var Nv = /* @__PURE__ */ q({
3871
3871
  __name: "AccordionItem",
3872
3872
  props: {
@@ -3893,7 +3893,7 @@ var Nv = /* @__PURE__ */ q({
3893
3893
  }
3894
3894
  },
3895
3895
  setup(e, { expose: a }) {
3896
- const t = e, n = Ao(), o = y(() => n.isSingle.value ? t.value === n.modelValue.value : Array.isArray(n.modelValue.value) && n.modelValue.value.includes(t.value)), r = y(() => n.disabled.value || t.disabled), l = y(() => r.value ? "" : void 0), s = y(() => o.value ? Nr.Open : Nr.Closed);
3896
+ const t = e, n = Ao(), o = y(() => n.isSingle.value ? t.value === n.modelValue.value : Array.isArray(n.modelValue.value) && n.modelValue.value.includes(t.value)), r = y(() => n.disabled.value || t.disabled), l = y(() => r.value ? "" : void 0), s = y(() => o.value ? Kr.Open : Kr.Closed);
3897
3897
  a({
3898
3898
  open: o,
3899
3899
  dataDisabled: l
@@ -3912,7 +3912,7 @@ var Nv = /* @__PURE__ */ q({
3912
3912
  function c(p) {
3913
3913
  const v = p.target;
3914
3914
  if (Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]") ?? []).findIndex((b) => b === v) === -1) return null;
3915
- Lr(p, v, n.parentElement.value, {
3915
+ Fr(p, v, n.parentElement.value, {
3916
3916
  arrowKeyOptions: n.orientation,
3917
3917
  dir: n.direction.value,
3918
3918
  focus: !0
@@ -3966,7 +3966,7 @@ var Nv = /* @__PURE__ */ q({
3966
3966
  }
3967
3967
  },
3968
3968
  setup(e) {
3969
- const a = e, t = Ao(), n = Ii();
3969
+ const a = e, t = Ao(), n = Ri();
3970
3970
  return ve(), (o, r) => (f(), $(i(Dv), {
3971
3971
  role: "region",
3972
3972
  "as-child": a.asChild,
@@ -4008,7 +4008,7 @@ var Nv = /* @__PURE__ */ q({
4008
4008
  }
4009
4009
  },
4010
4010
  setup(e) {
4011
- const a = e, t = Ao(), n = Ii();
4011
+ const a = e, t = Ao(), n = Ri();
4012
4012
  return ve(), (o, r) => (f(), $(i(ge), {
4013
4013
  as: a.as,
4014
4014
  "as-child": a.asChild,
@@ -4039,7 +4039,7 @@ var Nv = /* @__PURE__ */ q({
4039
4039
  }
4040
4040
  },
4041
4041
  setup(e) {
4042
- const a = e, t = Ao(), n = Ii();
4042
+ const a = e, t = Ao(), n = Ri();
4043
4043
  n.triggerId ||= Je(void 0, "reka-accordion-trigger");
4044
4044
  function o() {
4045
4045
  const r = t.isSingle.value && n.open.value && !t.collapsible;
@@ -4257,7 +4257,7 @@ var nm = /* @__PURE__ */ q({
4257
4257
  const b = [...at.branches].some((x) => x?.contains(h.target));
4258
4258
  !t.present || b || (n("focusOutside", h), n("interactOutside", h), h.defaultPrevented || n("dismiss"));
4259
4259
  }, r);
4260
- return qi("Escape", (h) => {
4260
+ return Di("Escape", (h) => {
4261
4261
  !t.present || !(d.value === u.value.size - 1) || (n("escapeKeyDown", h), h.defaultPrevented || n("dismiss"));
4262
4262
  }), pe([
4263
4263
  r,
@@ -4329,18 +4329,18 @@ function lm() {
4329
4329
  return {
4330
4330
  add(a) {
4331
4331
  const t = e.value[0];
4332
- a !== t && t?.pause(), e.value = jl(e.value, a), e.value.unshift(a);
4332
+ a !== t && t?.pause(), e.value = Ul(e.value, a), e.value.unshift(a);
4333
4333
  },
4334
4334
  remove(a) {
4335
- e.value = jl(e.value, a), e.value[0]?.resume();
4335
+ e.value = Ul(e.value, a), e.value[0]?.resume();
4336
4336
  }
4337
4337
  };
4338
4338
  }
4339
- function jl(e, a) {
4339
+ function Ul(e, a) {
4340
4340
  const t = [...e], n = t.indexOf(a);
4341
4341
  return n !== -1 && t.splice(n, 1), t;
4342
4342
  }
4343
- const kr = "focusScope.autoFocusOnMount", Cr = "focusScope.autoFocusOnUnmount", Ul = {
4343
+ const kr = "focusScope.autoFocusOnMount", Cr = "focusScope.autoFocusOnUnmount", Gl = {
4344
4344
  bubbles: !1,
4345
4345
  cancelable: !0
4346
4346
  };
@@ -4350,10 +4350,10 @@ function ao(e, { select: a = !1 } = {}) {
4350
4350
  if (aa(n, { select: a }), Ye() !== t) return !0;
4351
4351
  }
4352
4352
  function sm(e) {
4353
- const a = Ri(e), t = Gl(a, e), n = Gl(a.reverse(), e);
4353
+ const a = Mi(e), t = Yl(a, e), n = Yl(a.reverse(), e);
4354
4354
  return [t, n];
4355
4355
  }
4356
- function Ri(e) {
4356
+ function Mi(e) {
4357
4357
  const a = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (n) => {
4358
4358
  const o = n.tagName === "INPUT" && n.type === "hidden";
4359
4359
  return n.disabled || n.hidden || o ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -4361,7 +4361,7 @@ function Ri(e) {
4361
4361
  for (; t.nextNode(); ) a.push(t.currentNode);
4362
4362
  return a;
4363
4363
  }
4364
- function Gl(e, a) {
4364
+ function Yl(e, a) {
4365
4365
  for (const t of e) if (!um(t, { upTo: a })) return t;
4366
4366
  }
4367
4367
  function um(e, { upTo: a }) {
@@ -4454,8 +4454,8 @@ var cm = /* @__PURE__ */ q({
4454
4454
  });
4455
4455
  });
4456
4456
  function c(v, m) {
4457
- const h = new CustomEvent(kr, Ul), b = (x) => n("mountAutoFocus", x);
4458
- v.addEventListener(kr, b), v.dispatchEvent(h), v.removeEventListener(kr, b), h.defaultPrevented || (ao(Ri(v), { select: !0 }), Ye() === m && aa(v));
4457
+ const h = new CustomEvent(kr, Gl), b = (x) => n("mountAutoFocus", x);
4458
+ v.addEventListener(kr, b), v.dispatchEvent(h), v.removeEventListener(kr, b), h.defaultPrevented || (ao(Mi(v), { select: !0 }), Ye() === m && aa(v));
4459
4459
  }
4460
4460
  st(async (v) => {
4461
4461
  const m = r.value;
@@ -4463,7 +4463,7 @@ var cm = /* @__PURE__ */ q({
4463
4463
  t.present !== !1 && u.add(d);
4464
4464
  const h = Ye();
4465
4465
  !m.contains(h) && t.present !== !1 && c(m, h), v(() => {
4466
- const x = new CustomEvent(Cr, Ul), w = (C) => {
4466
+ const x = new CustomEvent(Cr, Gl), w = (C) => {
4467
4467
  n("unmountAutoFocus", C);
4468
4468
  };
4469
4469
  m.addEventListener(Cr, w), m.dispatchEvent(x), m.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
@@ -4504,7 +4504,7 @@ var cm = /* @__PURE__ */ q({
4504
4504
  }, 8, ["as-child", "as"]));
4505
4505
  }
4506
4506
  }), qn = cm;
4507
- const fm = "menu.itemSelect", Kr = ["Enter", " "], pm = [
4507
+ const fm = "menu.itemSelect", Wr = ["Enter", " "], pm = [
4508
4508
  "ArrowDown",
4509
4509
  "PageUp",
4510
4510
  "Home"
@@ -4513,22 +4513,22 @@ const fm = "menu.itemSelect", Kr = ["Enter", " "], pm = [
4513
4513
  "PageDown",
4514
4514
  "End"
4515
4515
  ], vm = [...pm, ...Mu], mm = {
4516
- ltr: [...Kr, "ArrowRight"],
4517
- rtl: [...Kr, "ArrowLeft"]
4516
+ ltr: [...Wr, "ArrowRight"],
4517
+ rtl: [...Wr, "ArrowLeft"]
4518
4518
  }, hm = {
4519
4519
  ltr: ["ArrowLeft"],
4520
4520
  rtl: ["ArrowRight"]
4521
4521
  };
4522
- function Mi(e) {
4522
+ function Vi(e) {
4523
4523
  return e ? "open" : "closed";
4524
4524
  }
4525
4525
  function po(e) {
4526
4526
  return e === "indeterminate";
4527
4527
  }
4528
- function Vi(e) {
4528
+ function Li(e) {
4529
4529
  return po(e) ? "indeterminate" : e ? "checked" : "unchecked";
4530
4530
  }
4531
- function Wr(e) {
4531
+ function Hr(e) {
4532
4532
  const a = Ye();
4533
4533
  for (const t of e)
4534
4534
  if (t === a || (t.focus(), Ye() !== a)) return;
@@ -4631,7 +4631,7 @@ var _m = /* @__PURE__ */ q({
4631
4631
  role: "dialog",
4632
4632
  "aria-describedby": i(o).descriptionId,
4633
4633
  "aria-labelledby": i(o).titleId,
4634
- "data-state": i(Mi)(i(o).open.value)
4634
+ "data-state": i(Vi)(i(o).open.value)
4635
4635
  }, u.$attrs, {
4636
4636
  onDismiss: d[0] || (d[0] = (c) => i(o).onOpenChange(!1)),
4637
4637
  onEscapeKeyDown: d[1] || (d[1] = (c) => n("escapeKeyDown", c)),
@@ -4974,7 +4974,7 @@ var _m = /* @__PURE__ */ q({
4974
4974
  }
4975
4975
  },
4976
4976
  setup(e) {
4977
- const a = e, t = ia({}), n = y(() => a.to ?? t.teleportTo?.value ?? "body"), o = /* @__PURE__ */ Pi();
4977
+ const a = e, t = ia({}), n = y(() => a.to ?? t.teleportTo?.value ?? "body"), o = /* @__PURE__ */ qi();
4978
4978
  return (r, l) => i(o) || r.forceMount ? (f(), $($n, {
4979
4979
  key: 0,
4980
4980
  to: n.value,
@@ -5070,7 +5070,7 @@ var _m = /* @__PURE__ */ q({
5070
5070
  ]));
5071
5071
  }
5072
5072
  }), Wu = Im;
5073
- const Yl = "data-reka-collection-item";
5073
+ const Xl = "data-reka-collection-item";
5074
5074
  function lt(e = {}) {
5075
5075
  const { key: a = "", isProvider: t = !1 } = e, n = `${a}CollectionProvider`;
5076
5076
  let o;
@@ -5088,7 +5088,7 @@ function lt(e = {}) {
5088
5088
  }, l = (p = !1) => {
5089
5089
  const v = o.collectionRef.value;
5090
5090
  if (!v) return [];
5091
- const m = Array.from(v.querySelectorAll(`[${Yl}]`)), h = new Map(m.map((w, C) => [w, C])), x = Array.from(o.itemMap.value.values()).sort((w, C) => (h.get(w.ref) ?? -1) - (h.get(C.ref) ?? -1));
5091
+ const m = Array.from(v.querySelectorAll(`[${Xl}]`)), h = new Map(m.map((w, C) => [w, C])), x = Array.from(o.itemMap.value.values()).sort((w, C) => (h.get(w.ref) ?? -1) - (h.get(C.ref) ?? -1));
5092
5092
  return p ? x : x.filter((w) => w.ref.dataset.disabled !== "");
5093
5093
  }, s = /* @__PURE__ */ q({
5094
5094
  name: "CollectionSlot",
@@ -5097,7 +5097,7 @@ function lt(e = {}) {
5097
5097
  const { primitiveElement: h, currentElement: b } = zt();
5098
5098
  return pe(b, () => {
5099
5099
  o.collectionRef.value = b.value;
5100
- }), () => At(zr, {
5100
+ }), () => At(Nr, {
5101
5101
  ref: h,
5102
5102
  ...m
5103
5103
  }, v);
@@ -5116,9 +5116,9 @@ function lt(e = {}) {
5116
5116
  value: p.value
5117
5117
  }), x(() => o.itemMap.value.delete(w));
5118
5118
  }
5119
- }), () => At(zr, {
5119
+ }), () => At(Nr, {
5120
5120
  ...m,
5121
- [Yl]: "",
5121
+ [Xl]: "",
5122
5122
  ref: h
5123
5123
  }, v);
5124
5124
  }
@@ -5231,7 +5231,7 @@ var Rm = /* @__PURE__ */ q({
5231
5231
  ...r.$attrs
5232
5232
  }, { as: "input" }), null, 16));
5233
5233
  }
5234
- }), Xl = Mm, Vm = /* @__PURE__ */ q({
5234
+ }), Zl = Mm, Vm = /* @__PURE__ */ q({
5235
5235
  inheritAttrs: !1,
5236
5236
  __name: "VisuallyHiddenInput",
5237
5237
  props: {
@@ -5276,13 +5276,13 @@ var Rm = /* @__PURE__ */ q({
5276
5276
  name: `${a.name}[${o}]`,
5277
5277
  value: r
5278
5278
  })) : []);
5279
- return (o, r) => (f(), g(ce, null, [V(" We render single input if it's required "), t.value ? (f(), $(Xl, ne({ key: o.name }, {
5279
+ return (o, r) => (f(), g(ce, null, [V(" We render single input if it's required "), t.value ? (f(), $(Zl, ne({ key: o.name }, {
5280
5280
  ...a,
5281
5281
  ...o.$attrs
5282
5282
  }, {
5283
5283
  name: o.name,
5284
5284
  value: o.value
5285
- }), null, 16, ["name", "value"])) : (f(!0), g(ce, { key: 1 }, ke(n.value, (l) => (f(), $(Xl, ne({ key: l.name }, { ref_for: !0 }, {
5285
+ }), null, 16, ["name", "value"])) : (f(!0), g(ce, { key: 1 }, ke(n.value, (l) => (f(), $(Zl, ne({ key: l.name }, { ref_for: !0 }, {
5286
5286
  ...a,
5287
5287
  ...o.$attrs
5288
5288
  }, {
@@ -5618,7 +5618,7 @@ var jm = /* @__PURE__ */ q({
5618
5618
  }
5619
5619
  },
5620
5620
  setup(e) {
5621
- const { CollectionSlot: a } = lt(), t = Po(), n = Ti(!1, 10);
5621
+ const { CollectionSlot: a } = lt(), t = Po(), n = Ai(!1, 10);
5622
5622
  return (o, r) => (f(), $(i(a), null, {
5623
5623
  default: _(() => [I(i(ge), {
5624
5624
  role: "listbox",
@@ -5808,7 +5808,7 @@ var oh = /* @__PURE__ */ q({
5808
5808
  wa(th, v, b);
5809
5809
  }
5810
5810
  return nh({ isSelected: c }), (h, b) => (f(), $(i(r), { value: h.value }, {
5811
- default: _(() => [hi([
5811
+ default: _(() => [yi([
5812
5812
  d.value,
5813
5813
  c.value,
5814
5814
  p.value,
@@ -5975,7 +5975,7 @@ function hh(e) {
5975
5975
  name: "transformOrigin",
5976
5976
  options: e,
5977
5977
  fn(a) {
5978
- const { placement: t, rects: n, middlewareData: o } = a, l = o.arrow?.centerOffset !== 0, s = l ? 0 : e.arrowWidth, u = l ? 0 : e.arrowHeight, [d, c] = Hr(t), p = {
5978
+ const { placement: t, rects: n, middlewareData: o } = a, l = o.arrow?.centerOffset !== 0, s = l ? 0 : e.arrowWidth, u = l ? 0 : e.arrowHeight, [d, c] = jr(t), p = {
5979
5979
  start: e.dir === "rtl" ? "100%" : "0%",
5980
5980
  center: "50%",
5981
5981
  end: e.dir === "rtl" ? "0%" : "100%"
@@ -5992,7 +5992,7 @@ function hh(e) {
5992
5992
  }
5993
5993
  };
5994
5994
  }
5995
- function Hr(e) {
5995
+ function jr(e) {
5996
5996
  const [a, t = "center"] = e.split("-");
5997
5997
  return [a, t];
5998
5998
  }
@@ -6017,38 +6017,38 @@ function ra(e) {
6017
6017
  function en(e) {
6018
6018
  return e.split("-")[1];
6019
6019
  }
6020
- function Li(e) {
6020
+ function Fi(e) {
6021
6021
  return e === "x" ? "y" : "x";
6022
6022
  }
6023
- function Fi(e) {
6023
+ function zi(e) {
6024
6024
  return e === "y" ? "height" : "width";
6025
6025
  }
6026
6026
  function Vt(e) {
6027
6027
  const a = e[0];
6028
6028
  return a === "t" || a === "b" ? "y" : "x";
6029
6029
  }
6030
- function zi(e) {
6031
- return Li(Vt(e));
6030
+ function Ni(e) {
6031
+ return Fi(Vt(e));
6032
6032
  }
6033
6033
  function bh(e, a, t) {
6034
6034
  t === void 0 && (t = !1);
6035
- const n = en(e), o = zi(e), r = Fi(o);
6035
+ const n = en(e), o = Ni(e), r = zi(o);
6036
6036
  let l = o === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
6037
6037
  return a.reference[r] > a.floating[r] && (l = mo(l)), [l, mo(l)];
6038
6038
  }
6039
6039
  function wh(e) {
6040
6040
  const a = mo(e);
6041
- return [jr(e), a, jr(a)];
6041
+ return [Ur(e), a, Ur(a)];
6042
6042
  }
6043
- function jr(e) {
6043
+ function Ur(e) {
6044
6044
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
6045
6045
  }
6046
- const Zl = ["left", "right"], Jl = ["right", "left"], xh = ["top", "bottom"], _h = ["bottom", "top"];
6046
+ const Jl = ["left", "right"], Ql = ["right", "left"], xh = ["top", "bottom"], _h = ["bottom", "top"];
6047
6047
  function kh(e, a, t) {
6048
6048
  switch (e) {
6049
6049
  case "top":
6050
6050
  case "bottom":
6051
- return t ? a ? Jl : Zl : a ? Zl : Jl;
6051
+ return t ? a ? Ql : Jl : a ? Jl : Ql;
6052
6052
  case "left":
6053
6053
  case "right":
6054
6054
  return a ? xh : _h;
@@ -6059,7 +6059,7 @@ function kh(e, a, t) {
6059
6059
  function Ch(e, a, t, n) {
6060
6060
  const o = en(e);
6061
6061
  let r = kh(ra(e), t === "start", n);
6062
- return o && (r = r.map((l) => l + "-" + o), a && (r = r.concat(r.map(jr)))), r;
6062
+ return o && (r = r.map((l) => l + "-" + o), a && (r = r.concat(r.map(Ur)))), r;
6063
6063
  }
6064
6064
  function mo(e) {
6065
6065
  const a = ra(e);
@@ -6100,12 +6100,12 @@ function ho(e) {
6100
6100
  y: t
6101
6101
  };
6102
6102
  }
6103
- function Ql(e, a, t) {
6103
+ function es(e, a, t) {
6104
6104
  let {
6105
6105
  reference: n,
6106
6106
  floating: o
6107
6107
  } = e;
6108
- const r = Vt(a), l = zi(a), s = Fi(l), u = ra(a), d = r === "y", c = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, v = n[s] / 2 - o[s] / 2;
6108
+ const r = Vt(a), l = Ni(a), s = zi(l), u = ra(a), d = r === "y", c = n.x + n.width / 2 - o.width / 2, p = n.y + n.height / 2 - o.height / 2, v = n[s] / 2 - o[s] / 2;
6109
6109
  let m;
6110
6110
  switch (u) {
6111
6111
  case "top":
@@ -6200,7 +6200,7 @@ const Eh = 50, Th = async (e, a, t) => {
6200
6200
  }), {
6201
6201
  x: c,
6202
6202
  y: p
6203
- } = Ql(d, n, u), v = n, m = 0;
6203
+ } = es(d, n, u), v = n, m = 0;
6204
6204
  const h = {};
6205
6205
  for (let b = 0; b < r.length; b++) {
6206
6206
  const x = r[b];
@@ -6238,7 +6238,7 @@ const Eh = 50, Th = async (e, a, t) => {
6238
6238
  }) : O.rects), {
6239
6239
  x: c,
6240
6240
  y: p
6241
- } = Ql(d, v, u)), b = -1);
6241
+ } = es(d, v, u)), b = -1);
6242
6242
  }
6243
6243
  return {
6244
6244
  x: c,
@@ -6268,7 +6268,7 @@ const Eh = 50, Th = async (e, a, t) => {
6268
6268
  const p = Zu(c), v = {
6269
6269
  x: t,
6270
6270
  y: n
6271
- }, m = zi(o), h = Fi(m), b = await l.getDimensions(d), x = m === "y", w = x ? "top" : "left", C = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", k = r.reference[h] + r.reference[m] - v[m] - r.floating[h], A = v[m] - r.reference[m], O = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
6271
+ }, m = Ni(o), h = zi(m), b = await l.getDimensions(d), x = m === "y", w = x ? "top" : "left", C = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", k = r.reference[h] + r.reference[m] - v[m] - r.floating[h], A = v[m] - r.reference[m], O = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
6272
6272
  let D = O ? O[E] : 0;
6273
6273
  (!D || !await (l.isElement == null ? void 0 : l.isElement(O))) && (D = s.floating[E] || r.floating[h]);
6274
6274
  const N = k / 2 - A / 2, B = D / 2 - b[h] / 2 - 1, L = oa(p[w], B), R = oa(p[C], B), F = D - b[h] - R, j = D / 2 - b[h] / 2 + N, z = Xu(L, j, F), T = !u.arrow && en(o) != null && j !== z && r.reference[h] / 2 - (j < L ? L : R) - b[h] / 2 < 0, W = T ? j < L ? j - L : j - F : 0;
@@ -6366,7 +6366,7 @@ const Eh = 50, Th = async (e, a, t) => {
6366
6366
  }
6367
6367
  };
6368
6368
  };
6369
- function es(e, a) {
6369
+ function ts(e, a) {
6370
6370
  return {
6371
6371
  top: e.top - a.height,
6372
6372
  right: e.right - a.width,
@@ -6374,7 +6374,7 @@ function es(e, a) {
6374
6374
  left: e.left - a.width
6375
6375
  };
6376
6376
  }
6377
- function ts(e) {
6377
+ function as(e) {
6378
6378
  return yh.some((a) => e[a] >= 0);
6379
6379
  }
6380
6380
  const qh = function(e) {
@@ -6394,11 +6394,11 @@ const qh = function(e) {
6394
6394
  const l = await n.detectOverflow(a, {
6395
6395
  ...r,
6396
6396
  elementContext: "reference"
6397
- }), s = es(l, t.reference);
6397
+ }), s = ts(l, t.reference);
6398
6398
  return {
6399
6399
  data: {
6400
6400
  referenceHiddenOffsets: s,
6401
- referenceHidden: ts(s)
6401
+ referenceHidden: as(s)
6402
6402
  }
6403
6403
  };
6404
6404
  }
@@ -6406,11 +6406,11 @@ const qh = function(e) {
6406
6406
  const l = await n.detectOverflow(a, {
6407
6407
  ...r,
6408
6408
  altBoundary: !0
6409
- }), s = es(l, t.floating);
6409
+ }), s = ts(l, t.floating);
6410
6410
  return {
6411
6411
  data: {
6412
6412
  escapedOffsets: s,
6413
- escaped: ts(s)
6413
+ escaped: as(s)
6414
6414
  }
6415
6415
  };
6416
6416
  }
@@ -6498,7 +6498,7 @@ const Bh = function(e) {
6498
6498
  } = Yt(e, a), c = {
6499
6499
  x: t,
6500
6500
  y: n
6501
- }, p = await r.detectOverflow(a, d), v = Vt(o), m = Li(v);
6501
+ }, p = await r.detectOverflow(a, d), v = Vt(o), m = Fi(v);
6502
6502
  let h = c[m], b = c[v];
6503
6503
  const x = (C, E) => Xu(E + p[C === "y" ? "top" : "left"], E, E - p[C === "y" ? "bottom" : "right"]);
6504
6504
  l && (h = x(m, h)), s && (b = x(v, b));
@@ -6538,7 +6538,7 @@ const Bh = function(e) {
6538
6538
  } = Yt(e, a), v = {
6539
6539
  x: o,
6540
6540
  y: r
6541
- }, m = Vt(l), h = Li(m);
6541
+ }, m = Vt(l), h = Fi(m);
6542
6542
  let b = v[h], x = v[m];
6543
6543
  const w = Yt(d, a), C = typeof w == "number" ? {
6544
6544
  mainAxis: w,
@@ -6602,7 +6602,7 @@ function qo() {
6602
6602
  return typeof window < "u";
6603
6603
  }
6604
6604
  function $a(e) {
6605
- return Ni(e) ? (e.nodeName || "").toLowerCase() : "#document";
6605
+ return Ki(e) ? (e.nodeName || "").toLowerCase() : "#document";
6606
6606
  }
6607
6607
  function bt(e) {
6608
6608
  var a;
@@ -6610,9 +6610,9 @@ function bt(e) {
6610
6610
  }
6611
6611
  function Qt(e) {
6612
6612
  var a;
6613
- return (a = (Ni(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
6613
+ return (a = (Ki(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
6614
6614
  }
6615
- function Ni(e) {
6615
+ function Ki(e) {
6616
6616
  return qo() ? e instanceof Node || e instanceof bt(e).Node : !1;
6617
6617
  }
6618
6618
  function Nt(e) {
@@ -6621,7 +6621,7 @@ function Nt(e) {
6621
6621
  function sa(e) {
6622
6622
  return qo() ? e instanceof HTMLElement || e instanceof bt(e).HTMLElement : !1;
6623
6623
  }
6624
- function as(e) {
6624
+ function ns(e) {
6625
6625
  return !qo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof bt(e).ShadowRoot;
6626
6626
  }
6627
6627
  function Do(e) {
@@ -6650,14 +6650,14 @@ function Bo(e) {
6650
6650
  }
6651
6651
  const Vh = /transform|translate|scale|rotate|perspective|filter/, Lh = /paint|layout|strict|content/, ha = (e) => !!e && e !== "none";
6652
6652
  let Sr;
6653
- function Ki(e) {
6653
+ function Wi(e) {
6654
6654
  const a = Nt(e) ? Kt(e) : e;
6655
- return ha(a.transform) || ha(a.translate) || ha(a.scale) || ha(a.rotate) || ha(a.perspective) || !Wi() && (ha(a.backdropFilter) || ha(a.filter)) || Vh.test(a.willChange || "") || Lh.test(a.contain || "");
6655
+ return ha(a.transform) || ha(a.translate) || ha(a.scale) || ha(a.rotate) || ha(a.perspective) || !Hi() && (ha(a.backdropFilter) || ha(a.filter)) || Vh.test(a.willChange || "") || Lh.test(a.contain || "");
6656
6656
  }
6657
6657
  function Fh(e) {
6658
6658
  let a = xa(e);
6659
6659
  for (; sa(a) && !bn(a); ) {
6660
- if (Ki(a))
6660
+ if (Wi(a))
6661
6661
  return a;
6662
6662
  if (Bo(a))
6663
6663
  return null;
@@ -6665,7 +6665,7 @@ function Fh(e) {
6665
6665
  }
6666
6666
  return null;
6667
6667
  }
6668
- function Wi() {
6668
+ function Hi() {
6669
6669
  return Sr == null && (Sr = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Sr;
6670
6670
  }
6671
6671
  function bn(e) {
@@ -6690,10 +6690,10 @@ function xa(e) {
6690
6690
  // Step into the shadow DOM of the parent of a slotted node.
6691
6691
  e.assignedSlot || // DOM Element detected.
6692
6692
  e.parentNode || // ShadowRoot detected.
6693
- as(e) && e.host || // Fallback.
6693
+ ns(e) && e.host || // Fallback.
6694
6694
  Qt(e)
6695
6695
  );
6696
- return as(a) ? a.host : a;
6696
+ return ns(a) ? a.host : a;
6697
6697
  }
6698
6698
  function Qu(e) {
6699
6699
  const a = xa(e);
@@ -6704,12 +6704,12 @@ function wn(e, a, t) {
6704
6704
  a === void 0 && (a = []), t === void 0 && (t = !0);
6705
6705
  const o = Qu(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = bt(o);
6706
6706
  if (r) {
6707
- const s = Ur(l);
6707
+ const s = Gr(l);
6708
6708
  return a.concat(l, l.visualViewport || [], Do(o) ? o : [], s && t ? wn(s) : []);
6709
6709
  } else
6710
6710
  return a.concat(o, wn(o, [], t));
6711
6711
  }
6712
- function Ur(e) {
6712
+ function Gr(e) {
6713
6713
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
6714
6714
  }
6715
6715
  function ed(e) {
@@ -6722,11 +6722,11 @@ function ed(e) {
6722
6722
  $: s
6723
6723
  };
6724
6724
  }
6725
- function Hi(e) {
6725
+ function ji(e) {
6726
6726
  return Nt(e) ? e : e.contextElement;
6727
6727
  }
6728
6728
  function Va(e) {
6729
- const a = Hi(e);
6729
+ const a = ji(e);
6730
6730
  if (!sa(a))
6731
6731
  return Gt(1);
6732
6732
  const t = a.getBoundingClientRect(), {
@@ -6743,7 +6743,7 @@ function Va(e) {
6743
6743
  const zh = /* @__PURE__ */ Gt(0);
6744
6744
  function td(e) {
6745
6745
  const a = bt(e);
6746
- return !Wi() || !a.visualViewport ? zh : {
6746
+ return !Hi() || !a.visualViewport ? zh : {
6747
6747
  x: a.visualViewport.offsetLeft,
6748
6748
  y: a.visualViewport.offsetTop
6749
6749
  };
@@ -6753,17 +6753,17 @@ function Nh(e, a, t) {
6753
6753
  }
6754
6754
  function _a(e, a, t, n) {
6755
6755
  a === void 0 && (a = !1), t === void 0 && (t = !1);
6756
- const o = e.getBoundingClientRect(), r = Hi(e);
6756
+ const o = e.getBoundingClientRect(), r = ji(e);
6757
6757
  let l = Gt(1);
6758
6758
  a && (n ? Nt(n) && (l = Va(n)) : l = Va(e));
6759
6759
  const s = Nh(r, t, n) ? td(r) : Gt(0);
6760
6760
  let u = (o.left + s.x) / l.x, d = (o.top + s.y) / l.y, c = o.width / l.x, p = o.height / l.y;
6761
6761
  if (r && n) {
6762
6762
  const v = bt(r), m = Nt(n) ? bt(n) : n;
6763
- let h = v, b = Ur(h);
6763
+ let h = v, b = Gr(h);
6764
6764
  for (; b && m !== h; ) {
6765
6765
  const x = Va(b), w = b.getBoundingClientRect(), C = Kt(b), E = w.left + (b.clientLeft + parseFloat(C.paddingLeft)) * x.x, k = w.top + (b.clientTop + parseFloat(C.paddingTop)) * x.y;
6766
- u *= x.x, d *= x.y, c *= x.x, p *= x.y, u += E, d += k, h = bt(b), b = Ur(h);
6766
+ u *= x.x, d *= x.y, c *= x.x, p *= x.y, u += E, d += k, h = bt(b), b = Gr(h);
6767
6767
  }
6768
6768
  }
6769
6769
  return ho({
@@ -6831,7 +6831,7 @@ function Uh(e, a, t) {
6831
6831
  const n = t === "layoutViewport", o = bt(e), r = Qt(e), l = o.visualViewport;
6832
6832
  let s = r.clientWidth, u = r.clientHeight, d = 0, c = 0;
6833
6833
  if (l) {
6834
- const v = !Wi() || a === "fixed";
6834
+ const v = !Hi() || a === "fixed";
6835
6835
  n ? v || (d = -l.offsetLeft, c = -l.offsetTop) : (s = l.width, u = l.height, v && (d = l.offsetLeft, c = l.offsetTop));
6836
6836
  }
6837
6837
  if (Io(r) <= 0) {
@@ -6854,7 +6854,7 @@ function Gh(e, a) {
6854
6854
  y: d
6855
6855
  };
6856
6856
  }
6857
- function ns(e, a, t) {
6857
+ function os(e, a, t) {
6858
6858
  let n;
6859
6859
  if (a === "viewport" || a === "layoutViewport")
6860
6860
  n = Uh(e, t, a);
@@ -6881,7 +6881,7 @@ function Yh(e, a) {
6881
6881
  const r = Kt(e).position === "fixed";
6882
6882
  let l = r ? xa(e) : e;
6883
6883
  for (; Nt(l) && !bn(l); ) {
6884
- const s = Kt(l), u = Ki(l), d = o ? o.position : r ? "fixed" : "";
6884
+ const s = Kt(l), u = Wi(l), d = o ? o.position : r ? "fixed" : "";
6885
6885
  !u && (d === "fixed" || d === "absolute" && s.position === "static") ? n = n.filter((p) => p !== l) : o = s, l = xa(l);
6886
6886
  }
6887
6887
  return a.set(e, n), n;
@@ -6893,10 +6893,10 @@ function Xh(e) {
6893
6893
  rootBoundary: n,
6894
6894
  strategy: o
6895
6895
  } = e;
6896
- const l = [...t === "clippingAncestors" ? Bo(a) ? [] : Yh(a, this._c) : [].concat(t), n], s = ns(a, l[0], o);
6896
+ const l = [...t === "clippingAncestors" ? Bo(a) ? [] : Yh(a, this._c) : [].concat(t), n], s = os(a, l[0], o);
6897
6897
  let u = s.top, d = s.right, c = s.bottom, p = s.left;
6898
6898
  for (let v = 1; v < l.length; v++) {
6899
- const m = ns(a, l[v], o);
6899
+ const m = os(a, l[v], o);
6900
6900
  u = Ut(m.top, u), d = oa(m.right, d), c = oa(m.bottom, c), p = Ut(m.left, p);
6901
6901
  }
6902
6902
  return {
@@ -6939,7 +6939,7 @@ function Jh(e, a, t) {
6939
6939
  function $r(e) {
6940
6940
  return Kt(e).position === "static";
6941
6941
  }
6942
- function os(e, a) {
6942
+ function rs(e, a) {
6943
6943
  if (!sa(e) || Kt(e).position === "fixed")
6944
6944
  return null;
6945
6945
  if (a)
@@ -6960,10 +6960,10 @@ function nd(e, a) {
6960
6960
  }
6961
6961
  return t;
6962
6962
  }
6963
- let n = os(e, a);
6963
+ let n = rs(e, a);
6964
6964
  for (; n && Mh(n) && $r(n); )
6965
- n = os(n, a);
6966
- return n && bn(n) && $r(n) && !Ki(n) ? t : n || Fh(e) || t;
6965
+ n = rs(n, a);
6966
+ return n && bn(n) && $r(n) && !Wi(n) ? t : n || Fh(e) || t;
6967
6967
  }
6968
6968
  const Qh = async function(e) {
6969
6969
  const a = this.getOffsetParent || nd, t = this.getDimensions, n = await t(e.floating);
@@ -7054,7 +7054,7 @@ function ny(e, a, t, n) {
7054
7054
  elementResize: l = typeof ResizeObserver == "function",
7055
7055
  layoutShift: s = typeof IntersectionObserver == "function",
7056
7056
  animationFrame: u = !1
7057
- } = n, d = Hi(e), c = o || r ? [...d ? wn(d) : [], ...a ? wn(a) : []] : [];
7057
+ } = n, d = ji(e), c = o || r ? [...d ? wn(d) : [], ...a ? wn(a) : []] : [];
7058
7058
  c.forEach((w) => {
7059
7059
  o && w.addEventListener("scroll", t), r && w.addEventListener("resize", t);
7060
7060
  });
@@ -7080,7 +7080,7 @@ function ny(e, a, t, n) {
7080
7080
  }), p?.(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(h);
7081
7081
  };
7082
7082
  }
7083
- const oy = Bh, ry = Oh, rs = Ph, iy = Rh, ly = qh, sy = Ah, uy = Ih, dy = (e, a, t) => {
7083
+ const oy = Bh, ry = Oh, is = Ph, iy = Rh, ly = qh, sy = Ah, uy = Ih, dy = (e, a, t) => {
7084
7084
  const n = /* @__PURE__ */ new Map(), o = t ?? {}, r = {
7085
7085
  ...ty,
7086
7086
  ...o.platform,
@@ -7094,10 +7094,10 @@ const oy = Bh, ry = Oh, rs = Ph, iy = Rh, ly = qh, sy = Ah, uy = Ih, dy = (e, a,
7094
7094
  function cy(e) {
7095
7095
  return e != null && typeof e == "object" && "$el" in e;
7096
7096
  }
7097
- function Gr(e) {
7097
+ function Yr(e) {
7098
7098
  if (cy(e)) {
7099
7099
  const a = e.$el;
7100
- return Ni(a) && $a(a) === "#comment" ? null : a;
7100
+ return Ki(a) && $a(a) === "#comment" ? null : a;
7101
7101
  }
7102
7102
  return e;
7103
7103
  }
@@ -7109,7 +7109,7 @@ function fy(e) {
7109
7109
  name: "arrow",
7110
7110
  options: e,
7111
7111
  fn(a) {
7112
- const t = Gr(Ia(e.element));
7112
+ const t = Yr(Ia(e.element));
7113
7113
  return t == null ? {} : sy({
7114
7114
  element: t,
7115
7115
  padding: e.padding
@@ -7120,7 +7120,7 @@ function fy(e) {
7120
7120
  function rd(e) {
7121
7121
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
7122
7122
  }
7123
- function is(e, a) {
7123
+ function ls(e, a) {
7124
7124
  const t = rd(e);
7125
7125
  return Math.round(a * t) / t;
7126
7126
  }
@@ -7138,7 +7138,7 @@ function py(e, a, t) {
7138
7138
  }), u = y(() => {
7139
7139
  var D;
7140
7140
  return (D = Ia(t.transform)) != null ? D : !0;
7141
- }), d = y(() => Gr(e.value)), c = y(() => Gr(a.value)), p = P(0), v = P(0), m = P(s.value), h = P(l.value), b = Lt({}), x = P(!1), w = y(() => {
7141
+ }), d = y(() => Yr(e.value)), c = y(() => Yr(a.value)), p = P(0), v = P(0), m = P(s.value), h = P(l.value), b = Lt({}), x = P(!1), w = y(() => {
7142
7142
  const D = {
7143
7143
  position: m.value,
7144
7144
  left: "0",
@@ -7146,7 +7146,7 @@ function py(e, a, t) {
7146
7146
  };
7147
7147
  if (!c.value)
7148
7148
  return D;
7149
- const N = is(c.value, p.value), B = is(c.value, v.value);
7149
+ const N = ls(c.value, p.value), B = ls(c.value, v.value);
7150
7150
  return u.value ? {
7151
7151
  ...D,
7152
7152
  transform: "translate(" + N + "px, " + B + "px)",
@@ -7336,7 +7336,7 @@ var yy = /* @__PURE__ */ q({
7336
7336
  mainAxis: t.sideOffset + v.value,
7337
7337
  alignmentAxis: t.alignOffset
7338
7338
  }),
7339
- t.prioritizePosition && t.avoidCollisions && rs({
7339
+ t.prioritizePosition && t.avoidCollisions && is({
7340
7340
  ...x.value,
7341
7341
  ...w.value
7342
7342
  }),
@@ -7346,7 +7346,7 @@ var yy = /* @__PURE__ */ q({
7346
7346
  limiter: t.sticky === "partial" ? uy() : void 0,
7347
7347
  ...x.value
7348
7348
  }),
7349
- !t.prioritizePosition && t.avoidCollisions && rs({
7349
+ !t.prioritizePosition && t.avoidCollisions && is({
7350
7350
  ...x.value,
7351
7351
  ...w.value
7352
7352
  }),
@@ -7378,7 +7378,7 @@ var yy = /* @__PURE__ */ q({
7378
7378
  animationFrame: t.updatePositionStrategy === "always"
7379
7379
  }),
7380
7380
  middleware: C
7381
- }), N = y(() => Hr(A.value)[0]), B = y(() => Hr(A.value)[1]);
7381
+ }), N = y(() => jr(A.value)[0]), B = y(() => jr(A.value)[1]);
7382
7382
  au(() => {
7383
7383
  O.value && o("placed");
7384
7384
  });
@@ -7412,7 +7412,7 @@ var yy = /* @__PURE__ */ q({
7412
7412
  pointerEvents: "none"
7413
7413
  }
7414
7414
  })
7415
- }, [t.memoDependencies ? hi([
7415
+ }, [t.memoDependencies ? yi([
7416
7416
  t.asChild,
7417
7417
  t.as,
7418
7418
  N.value,
@@ -8326,7 +8326,7 @@ var By = /* @__PURE__ */ q({
8326
8326
  c && (r.allGroups.value.has(c) ? r.allGroups.value.get(c)?.add(o) : r.allGroups.value.set(c, /* @__PURE__ */ new Set([o])));
8327
8327
  }), dt(() => {
8328
8328
  r.allItems.value.delete(o);
8329
- }), (c, p) => d.value ? hi([
8329
+ }), (c, p) => d.value ? yi([
8330
8330
  d.value,
8331
8331
  i(r).filterSearch.value,
8332
8332
  i(r).disabled.value,
@@ -8520,7 +8520,7 @@ function Jy(e) {
8520
8520
  numberOfMonths: e.numberOfMonths.value
8521
8521
  })), o = y(() => n.value.map((w) => w.value));
8522
8522
  function r(w) {
8523
- return !o.value.some((C) => Vl(w, C));
8523
+ return !o.value.some((C) => Ll(w, C));
8524
8524
  }
8525
8525
  const l = (w) => {
8526
8526
  if (!e.maxValue.value || !n.value.length) return !1;
@@ -8602,7 +8602,7 @@ function Jy(e) {
8602
8602
  e.placeholder.value = k[0].value.set({ ...A });
8603
8603
  };
8604
8604
  pe(e.placeholder, (w) => {
8605
- o.value.some((C) => Vl(C, w)) || (n.value = ma({
8605
+ o.value.some((C) => Ll(C, w)) || (n.value = ma({
8606
8606
  dateObj: w,
8607
8607
  weekStartsOn: e.weekStartsOn.value,
8608
8608
  locale: e.locale.value,
@@ -8999,7 +8999,7 @@ var ag = /* @__PURE__ */ q({
8999
8999
  month: "long",
9000
9000
  day: "numeric",
9001
9001
  year: "numeric"
9002
- })), s = y(() => n.isDateUnavailable?.(a.day) ?? !1), u = y(() => np(a.day, Ci())), d = y(() => !du(a.day, a.month)), c = y(() => n.isOutsideVisibleView(a.day)), p = y(() => n.isDateDisabled(a.day) || n.disableDaysOutsideCurrentView.value && d.value), v = y(() => d.value || p.value ? !1 : !n.disabled.value && n.isPlaceholderFocusable.value && Na(a.day, n.placeholder.value) ? !0 : (!n.hasSelectedDate.value || n.isSelectedDateDisabled.value) && !n.isPlaceholderFocusable.value ? n.firstFocusableDate.value && Na(a.day, n.firstFocusableDate.value) : !1), m = y(() => n.isDateSelected(a.day));
9002
+ })), s = y(() => n.isDateUnavailable?.(a.day) ?? !1), u = y(() => np(a.day, Si())), d = y(() => !du(a.day, a.month)), c = y(() => n.isOutsideVisibleView(a.day)), p = y(() => n.isDateDisabled(a.day) || n.disableDaysOutsideCurrentView.value && d.value), v = y(() => d.value || p.value ? !1 : !n.disabled.value && n.isPlaceholderFocusable.value && Na(a.day, n.placeholder.value) ? !0 : (!n.hasSelectedDate.value || n.isSelectedDateDisabled.value) && !n.isPlaceholderFocusable.value ? n.firstFocusableDate.value && Na(a.day, n.firstFocusableDate.value) : !1), m = y(() => n.isDateSelected(a.day));
9003
9003
  function h(w) {
9004
9004
  n.readonly.value || n.isDateDisabled(w) || n.isDateUnavailable?.(w) || n.onDateChange(w);
9005
9005
  }
@@ -9538,11 +9538,11 @@ var Tg = /* @__PURE__ */ q({
9538
9538
  }
9539
9539
  }), In = Ag;
9540
9540
  const [Pg] = /* @__PURE__ */ Ve("CheckboxGroupRoot");
9541
- function ji(e) {
9541
+ function Ui(e) {
9542
9542
  return e === "indeterminate";
9543
9543
  }
9544
9544
  function ud(e) {
9545
- return ji(e) ? "indeterminate" : e ? "checked" : "unchecked";
9545
+ return Ui(e) ? "indeterminate" : e ? "checked" : "unchecked";
9546
9546
  }
9547
9547
  const [qg, Dg] = /* @__PURE__ */ Ve("CheckboxRoot");
9548
9548
  var Bg = /* @__PURE__ */ q({
@@ -9634,7 +9634,7 @@ var Bg = /* @__PURE__ */ q({
9634
9634
  "as-child": x.asChild,
9635
9635
  as: x.as,
9636
9636
  type: x.as === "button" ? "button" : void 0,
9637
- "aria-checked": i(ji)(c.value) ? "mixed" : c.value,
9637
+ "aria-checked": i(Ui)(c.value) ? "mixed" : c.value,
9638
9638
  "aria-required": x.required,
9639
9639
  "aria-label": x.$attrs["aria-label"] || b.value,
9640
9640
  "data-state": i(ud)(c.value),
@@ -9698,7 +9698,7 @@ var Bg = /* @__PURE__ */ q({
9698
9698
  },
9699
9699
  setup(e) {
9700
9700
  const { forwardRef: a } = ve(), t = qg();
9701
- return (n, o) => (f(), $(i(_t), { present: n.forceMount || i(ji)(i(t).state.value) || i(t).state.value === !0 }, {
9701
+ return (n, o) => (f(), $(i(_t), { present: n.forceMount || i(Ui)(i(t).state.value) || i(t).state.value === !0 }, {
9702
9702
  default: _(() => [I(i(ge), ne({
9703
9703
  ref: i(a),
9704
9704
  "data-state": i(ud)(i(t).state.value),
@@ -9719,10 +9719,10 @@ var Bg = /* @__PURE__ */ q({
9719
9719
  }, 8, ["present"]));
9720
9720
  }
9721
9721
  }), cd = Og;
9722
- function ls(e, a = "hex") {
9722
+ function ss(e, a = "hex") {
9723
9723
  switch (a) {
9724
9724
  case "hex":
9725
- return Yr(e);
9725
+ return Xr(e);
9726
9726
  case "rgb":
9727
9727
  return Ig(e);
9728
9728
  case "hsl":
@@ -9733,7 +9733,7 @@ function ls(e, a = "hex") {
9733
9733
  throw new Error(`Unknown format: ${a}`);
9734
9734
  }
9735
9735
  }
9736
- function Yr(e) {
9736
+ function Xr(e) {
9737
9737
  const a = e.space === "rgb" ? e : Ro(e), t = (n) => Math.round(n).toString(16).padStart(2, "0");
9738
9738
  if (a.alpha < 1) {
9739
9739
  const n = Math.round(a.alpha * 255).toString(16).padStart(2, "0");
@@ -9950,7 +9950,7 @@ function nb(e, a) {
9950
9950
  return t.indexOf(n);
9951
9951
  }
9952
9952
  function ob(e, a, t) {
9953
- const n = e / 2, r = Ui([0, 50], [0, n]);
9953
+ const n = e / 2, r = Gi([0, 50], [0, n]);
9954
9954
  return (n - r(a) * t) * t;
9955
9955
  }
9956
9956
  function rb(e) {
@@ -9963,7 +9963,7 @@ function ib(e, a) {
9963
9963
  }
9964
9964
  return !0;
9965
9965
  }
9966
- function Ui(e, a) {
9966
+ function Gi(e, a) {
9967
9967
  return (t) => {
9968
9968
  if (e[0] === e[1] || a[0] === a[1]) return a[0];
9969
9969
  const n = (a[1] - a[0]) / (e[1] - e[0]);
@@ -10041,7 +10041,7 @@ var ub = /* @__PURE__ */ q({
10041
10041
  function h(C, E) {
10042
10042
  const k = v.value || d.value.getBoundingClientRect(), A = [...c.thumbElements.value][c.valueIndexToChangeRef.value], O = c.thumbAlignment.value === "contain" ? A.clientWidth : 0;
10043
10043
  !p.value && !E && c.thumbAlignment.value === "contain" && (p.value = C.clientX - A.getBoundingClientRect().left);
10044
- const D = [0, k.width - O], N = m.value ? [r.value, o.value] : [o.value, r.value], B = Ui(D, N);
10044
+ const D = [0, k.width - O], N = m.value ? [r.value, o.value] : [o.value, r.value], B = Gi(D, N);
10045
10045
  v.value = k;
10046
10046
  const L = E ? C.clientX - k.left - O / 2 : C.clientX - k.left - (p.value ?? 0);
10047
10047
  return B(L);
@@ -10108,7 +10108,7 @@ var ub = /* @__PURE__ */ q({
10108
10108
  function m(w, C) {
10109
10109
  const E = p.value || d.value.getBoundingClientRect(), k = [...s.thumbElements.value][s.valueIndexToChangeRef.value], A = s.thumbAlignment.value === "contain" ? k.clientHeight : 0;
10110
10110
  !c.value && !C && s.thumbAlignment.value === "contain" && (c.value = w.clientY - k.getBoundingClientRect().top);
10111
- const O = [0, E.height - A], D = v.value ? [o.value, r.value] : [r.value, o.value], N = Ui(O, D), B = C ? w.clientY - E.top - A / 2 : w.clientY - E.top - (c.value ?? 0);
10111
+ const O = [0, E.height - A], D = v.value ? [o.value, r.value] : [r.value, o.value], N = Gi(O, D), B = C ? w.clientY - E.top - A / 2 : w.clientY - E.top - (c.value ?? 0);
10112
10112
  return p.value = E, N(B);
10113
10113
  }
10114
10114
  const h = y(() => v.value ? "bottom" : "top"), b = y(() => v.value ? "top" : "bottom"), x = y(() => v.value ? 1 : -1);
@@ -10409,7 +10409,7 @@ var vb = /* @__PURE__ */ q({
10409
10409
  }
10410
10410
  },
10411
10411
  setup(e) {
10412
- const a = e, t = nn(), n = hd(), { forwardRef: o, currentElement: r } = ve(), { CollectionItem: l } = lt(), s = y(() => t.modelValue?.value?.[a.index]), u = y(() => s.value === void 0 ? 0 : fd(s.value, t.min.value ?? 0, t.max.value ?? 100)), d = y(() => ab(a.index, t.modelValue?.value?.length ?? 0)), c = qu(r), p = y(() => c[n.size].value), v = y(() => t.thumbAlignment.value === "overflow" || !p.value ? 0 : ob(p.value, u.value, n.direction.value)), m = /* @__PURE__ */ Pi();
10412
+ const a = e, t = nn(), n = hd(), { forwardRef: o, currentElement: r } = ve(), { CollectionItem: l } = lt(), s = y(() => t.modelValue?.value?.[a.index]), u = y(() => s.value === void 0 ? 0 : fd(s.value, t.min.value ?? 0, t.max.value ?? 100)), d = y(() => ab(a.index, t.modelValue?.value?.length ?? 0)), c = qu(r), p = y(() => c[n.size].value), v = y(() => t.thumbAlignment.value === "overflow" || !p.value ? 0 : ob(p.value, u.value, n.direction.value)), m = /* @__PURE__ */ qi();
10413
10413
  return qe(() => {
10414
10414
  t.thumbElements.value.push(r.value);
10415
10415
  }), dt(() => {
@@ -10530,7 +10530,7 @@ var vb = /* @__PURE__ */ q({
10530
10530
  _: 3
10531
10531
  }, 16));
10532
10532
  }
10533
- }), Gi = Sb;
10533
+ }), Yi = Sb;
10534
10534
  function $b() {
10535
10535
  const e = P(!1);
10536
10536
  return qe(() => {
@@ -10711,7 +10711,7 @@ var qb = /* @__PURE__ */ q({
10711
10711
  To(), Tn(s.value);
10712
10712
  const d = P(""), c = P(0), p = P(0), v = P(null), m = P("right"), h = P(0), b = P(null), x = P(), { forwardRef: w, currentElement: C } = ve(), { handleTypeaheadSearch: E } = Pn(), k = P();
10713
10713
  function A(T) {
10714
- const W = Lr(T, k.value || Ye(), C.value, {
10714
+ const W = Fr(T, k.value || Ye(), C.value, {
10715
10715
  loop: u.value,
10716
10716
  arrowKeyOptions: "vertical",
10717
10717
  dir: r?.dir.value,
@@ -10742,7 +10742,7 @@ var qb = /* @__PURE__ */ q({
10742
10742
  }
10743
10743
  function R(T) {
10744
10744
  if (T.defaultPrevented) return;
10745
- const W = T.target, H = W.closest("[data-reka-menu-content]") === T.currentTarget, Z = ["input", "textarea"].includes(W.tagName.toLowerCase()), G = T.ctrlKey || T.altKey || T.metaKey, Y = T.key.length === 1, ae = Lr(T, Ye(), C.value, {
10745
+ const W = T.target, H = W.closest("[data-reka-menu-content]") === T.currentTarget, Z = ["input", "textarea"].includes(W.tagName.toLowerCase()), G = T.ctrlKey || T.altKey || T.metaKey, Y = T.key.length === 1, ae = Fr(T, Ye(), C.value, {
10746
10746
  loop: u.value,
10747
10747
  arrowKeyOptions: "vertical",
10748
10748
  dir: r?.dir.value,
@@ -10755,7 +10755,7 @@ var qb = /* @__PURE__ */ q({
10755
10755
  if (H && (T.key === "Tab" && r.modal.value && T.preventDefault(), !G && Y && !Z && E(T.key, ue)), T.target !== C.value || !vm.includes(T.key)) return;
10756
10756
  T.preventDefault();
10757
10757
  const re = [...ue.map((le) => le.ref)];
10758
- Mu.includes(T.key) && re.reverse(), Wr(re);
10758
+ Mu.includes(T.key) && re.reverse(), Hr(re);
10759
10759
  }
10760
10760
  function F(T) {
10761
10761
  T?.currentTarget?.contains?.(T.target) || (window.clearTimeout(c.value), d.value = "");
@@ -10823,7 +10823,7 @@ var qb = /* @__PURE__ */ q({
10823
10823
  "as-child": T.asChild,
10824
10824
  "aria-orientation": "vertical",
10825
10825
  "data-reka-menu-content": "",
10826
- "data-state": i(Mi)(i(o).open.value),
10826
+ "data-state": i(Vi)(i(o).open.value),
10827
10827
  dir: i(r).dir.value,
10828
10828
  side: T.side,
10829
10829
  "side-offset": T.sideOffset,
@@ -10877,7 +10877,7 @@ var qb = /* @__PURE__ */ q({
10877
10877
  _: 3
10878
10878
  }, 8, ["trapped"]));
10879
10879
  }
10880
- }), Yi = qb, Db = /* @__PURE__ */ q({
10880
+ }), Xi = qb, Db = /* @__PURE__ */ q({
10881
10881
  inheritAttrs: !1,
10882
10882
  __name: "MenuItemImpl",
10883
10883
  props: {
@@ -10990,7 +10990,7 @@ var qb = /* @__PURE__ */ q({
10990
10990
  }),
10991
10991
  onKeydown: p[2] || (p[2] = async (v) => {
10992
10992
  const m = i(s).searchRef.value !== "";
10993
- c.disabled || m && v.key === " " || i(Kr).includes(v.key) && (v.currentTarget?.click(), v.preventDefault());
10993
+ c.disabled || m && v.key === " " || i(Wr).includes(v.key) && (v.currentTarget?.click(), v.preventDefault());
10994
10994
  })
10995
10995
  }), {
10996
10996
  default: _(() => [S(c.$slots, "default")]),
@@ -11022,7 +11022,7 @@ var Ib = /* @__PURE__ */ q({
11022
11022
  default: _(() => [I(i(ge), {
11023
11023
  as: t.as,
11024
11024
  "as-child": t.asChild,
11025
- "data-state": i(Vi)(i(a).modelValue.value)
11025
+ "data-state": i(Li)(i(a).modelValue.value)
11026
11026
  }, {
11027
11027
  default: _(() => [S(t.$slots, "default")]),
11028
11028
  _: 3
@@ -11064,7 +11064,7 @@ var Ib = /* @__PURE__ */ q({
11064
11064
  const t = e, n = a, o = Eo(t, ["modelValue"]), r = Jt(o), l = /* @__PURE__ */ We(t, "modelValue", n);
11065
11065
  return _d({ modelValue: l }), (s, u) => (f(), $(Vo, ne({ role: "menuitemcheckbox" }, i(r), {
11066
11066
  "aria-checked": i(po)(i(l)) ? "mixed" : i(l),
11067
- "data-state": i(Vi)(i(l)),
11067
+ "data-state": i(Li)(i(l)),
11068
11068
  onSelect: u[0] || (u[0] = async (d) => {
11069
11069
  n("select", d), i(po)(i(l)) ? l.value = !0 : l.value = !i(l);
11070
11070
  })
@@ -11176,7 +11176,7 @@ var Ib = /* @__PURE__ */ q({
11176
11176
  ],
11177
11177
  setup(e, { emit: a }) {
11178
11178
  const t = e, n = a, o = vt(t, n), r = Ea(), { forwardRef: l, currentElement: s } = ve();
11179
- return An(s), (u, d) => (f(), $(Yi, ne(i(o), {
11179
+ return An(s), (u, d) => (f(), $(Xi, ne(i(o), {
11180
11180
  ref: i(l),
11181
11181
  "trap-focus": i(r).open.value,
11182
11182
  "disable-outside-pointer-events": i(r).open.value,
@@ -11291,7 +11291,7 @@ var Ib = /* @__PURE__ */ q({
11291
11291
  ],
11292
11292
  setup(e, { emit: a }) {
11293
11293
  const o = vt(e, a), r = Ea();
11294
- return (l, s) => (f(), $(Yi, ne(i(o), {
11294
+ return (l, s) => (f(), $(Xi, ne(i(o), {
11295
11295
  "trap-focus": !1,
11296
11296
  "disable-outside-pointer-events": !1,
11297
11297
  "disable-outside-scroll": !1,
@@ -11534,7 +11534,7 @@ var Gb = /* @__PURE__ */ q({
11534
11534
  const t = e, n = a, o = Eo(t, ["value"]), r = Jt(o), { value: l } = Ke(t), s = jb(), u = y(() => s.modelValue.value === l?.value);
11535
11535
  return _d({ modelValue: u }), (d, c) => (f(), $(Vo, ne({ role: "menuitemradio" }, i(r), {
11536
11536
  "aria-checked": u.value,
11537
- "data-state": i(Vi)(u.value),
11537
+ "data-state": i(Li)(u.value),
11538
11538
  onSelect: c[0] || (c[0] = async (p) => {
11539
11539
  n("select", p), i(s).onValueChange(i(l));
11540
11540
  })
@@ -11704,7 +11704,7 @@ var ew = /* @__PURE__ */ q({
11704
11704
  setup(e, { emit: a }) {
11705
11705
  const o = vt(e, a), r = Ea(), l = Rn(), s = Td(), u = Mo(), { forwardRef: d, currentElement: c } = ve();
11706
11706
  return s.contentId ||= Je(void 0, "reka-menu-sub-content"), (p, v) => (f(), $(i(_t), { present: p.forceMount || i(r).open.value }, {
11707
- default: _(() => [I(Yi, ne(i(o), {
11707
+ default: _(() => [I(Xi, ne(i(o), {
11708
11708
  id: i(s).contentId,
11709
11709
  ref: i(d),
11710
11710
  "aria-labelledby": i(s).triggerId,
@@ -11822,7 +11822,7 @@ var ew = /* @__PURE__ */ q({
11822
11822
  const v = r.searchRef.value !== "";
11823
11823
  a.disabled || v && p.key === " " || mm[n.dir.value].includes(p.key) && (t.onOpenChange(!0), await De(), t.content.value?.focus(), p.preventDefault());
11824
11824
  }
11825
- return (p, v) => (f(), $(Gi, { "as-child": "" }, {
11825
+ return (p, v) => (f(), $(Yi, { "as-child": "" }, {
11826
11826
  default: _(() => [I(xd, ne(a, {
11827
11827
  id: i(o).triggerId,
11828
11828
  ref: (m) => {
@@ -11831,7 +11831,7 @@ var ew = /* @__PURE__ */ q({
11831
11831
  "aria-haspopup": "menu",
11832
11832
  "aria-expanded": i(t).open.value,
11833
11833
  "aria-controls": i(o).contentId,
11834
- "data-state": i(Mi)(i(t).open.value),
11834
+ "data-state": i(Vi)(i(t).open.value),
11835
11835
  onClick: v[0] || (v[0] = async (m) => {
11836
11836
  a.disabled || m.defaultPrevented || (m.currentTarget?.focus(), i(t).open.value || i(t).onOpenChange(!0));
11837
11837
  }),
@@ -12319,7 +12319,7 @@ var iw = /* @__PURE__ */ q({
12319
12319
  }, 16));
12320
12320
  }
12321
12321
  }), _w = xw;
12322
- function ss(e) {
12322
+ function us(e) {
12323
12323
  return e.pointerType !== "mouse";
12324
12324
  }
12325
12325
  var kw = /* @__PURE__ */ q({
@@ -12367,14 +12367,14 @@ var kw = /* @__PURE__ */ q({
12367
12367
  t.value || (await De(), h.defaultPrevented || (d(), c(h), h.preventDefault()));
12368
12368
  }
12369
12369
  async function v(h) {
12370
- t.value || (await De(), ss(h) && !h.defaultPrevented && (d(), u.value = window.setTimeout(c, r.pressOpenDelay.value, h)));
12370
+ t.value || (await De(), us(h) && !h.defaultPrevented && (d(), u.value = window.setTimeout(c, r.pressOpenDelay.value, h)));
12371
12371
  }
12372
12372
  async function m(h) {
12373
- t.value || (await De(), ss(h) && !h.defaultPrevented && d());
12373
+ t.value || (await De(), us(h) && !h.defaultPrevented && d());
12374
12374
  }
12375
12375
  return qe(() => {
12376
12376
  o.value && (r.triggerElement.value = o.value);
12377
- }), (h, b) => (f(), g(ce, null, [I(i(Gi), {
12377
+ }), (h, b) => (f(), g(ce, null, [I(i(Yi), {
12378
12378
  as: "template",
12379
12379
  reference: s.value
12380
12380
  }, null, 8, ["reference"]), I(i(ge), ne({
@@ -13548,7 +13548,7 @@ var Pw = /* @__PURE__ */ q({
13548
13548
  _: 3
13549
13549
  }, 16));
13550
13550
  }
13551
- }), us = Qw, ex = /* @__PURE__ */ q({
13551
+ }), ds = Qw, ex = /* @__PURE__ */ q({
13552
13552
  __name: "DatePickerHeadCell",
13553
13553
  props: {
13554
13554
  asChild: {
@@ -14001,7 +14001,7 @@ var hx = /* @__PURE__ */ q({
14001
14001
  _: 3
14002
14002
  }, 16));
14003
14003
  }
14004
- }), ds = bx, wx = /* @__PURE__ */ q({
14004
+ }), cs = bx, wx = /* @__PURE__ */ q({
14005
14005
  __name: "DropdownMenuPortal",
14006
14006
  props: {
14007
14007
  to: {
@@ -14291,7 +14291,7 @@ var hx = /* @__PURE__ */ q({
14291
14291
  const a = e, t = Rd(), { forwardRef: n, currentElement: o } = ve();
14292
14292
  return qe(() => {
14293
14293
  t.triggerElement = o;
14294
- }), t.triggerId ||= Je(void 0, "reka-dropdown-menu-trigger"), (r, l) => (f(), $(i(Gi), { "as-child": "" }, {
14294
+ }), t.triggerId ||= Je(void 0, "reka-dropdown-menu-trigger"), (r, l) => (f(), $(i(Yi), { "as-child": "" }, {
14295
14295
  default: _(() => [I(i(ge), {
14296
14296
  id: i(t).triggerId,
14297
14297
  ref: i(n),
@@ -14700,9 +14700,9 @@ const Wx = [
14700
14700
  "ArrowDown"
14701
14701
  ], Hx = [" ", "Enter"], Dt = 10;
14702
14702
  function _n(e, a, t) {
14703
- return e === void 0 ? !1 : Array.isArray(e) ? e.some((n) => Xr(n, a, t)) : Xr(e, a, t);
14703
+ return e === void 0 ? !1 : Array.isArray(e) ? e.some((n) => Zr(n, a, t)) : Zr(e, a, t);
14704
14704
  }
14705
- function Xr(e, a, t) {
14705
+ function Zr(e, a, t) {
14706
14706
  return e === void 0 || a === void 0 ? !1 : typeof e == "string" ? e === a : typeof t == "function" ? t(e, a) : typeof t == "string" ? e?.[t] === a?.[t] : Bt(e, a);
14707
14707
  }
14708
14708
  function jx(e) {
@@ -14782,7 +14782,7 @@ var Gx = /* @__PURE__ */ q({
14782
14782
  const h = pt(s), b = Zt(c), x = P(/* @__PURE__ */ new Set()), w = y(() => Array.from(x.value).map((k) => k.value).join(";"));
14783
14783
  function C(k) {
14784
14784
  if (l.value) {
14785
- const A = Array.isArray(u.value) ? [...u.value] : [], O = A.findIndex((D) => Xr(D, k, t.by));
14785
+ const A = Array.isArray(u.value) ? [...u.value] : [], O = A.findIndex((D) => Zr(D, k, t.by));
14786
14786
  O === -1 ? A.push(k) : A.splice(O, 1), u.value = [...A];
14787
14787
  } else u.value = k;
14788
14788
  }
@@ -15149,7 +15149,7 @@ var t0 = /* @__PURE__ */ q({
15149
15149
  An(u);
15150
15150
  const { search: d, handleTypeaheadSearch: c } = Pn(), p = P(), v = P(), m = P(), h = P(!1), b = P(!1), x = P(!1);
15151
15151
  function w() {
15152
- v.value && u.value && Wr([v.value, u.value]);
15152
+ v.value && u.value && Hr([v.value, u.value]);
15153
15153
  }
15154
15154
  pe(h, () => {
15155
15155
  (!r || r.canFocus()) && w();
@@ -15193,7 +15193,7 @@ var t0 = /* @__PURE__ */ q({
15193
15193
  const R = D.target, F = L.indexOf(R);
15194
15194
  L = L.slice(F + 1);
15195
15195
  }
15196
- setTimeout(() => Wr(L)), D.preventDefault();
15196
+ setTimeout(() => Hr(L)), D.preventDefault();
15197
15197
  }
15198
15198
  }
15199
15199
  const A = y(() => t.position === "popper" ? t : {}), O = Jt(A.value);
@@ -16135,7 +16135,7 @@ var M0 = /* @__PURE__ */ q({
16135
16135
  ]));
16136
16136
  }
16137
16137
  }), F0 = L0;
16138
- const [Xi, z0] = /* @__PURE__ */ Ve("TabsRoot");
16138
+ const [Zi, z0] = /* @__PURE__ */ Ve("TabsRoot");
16139
16139
  var N0 = /* @__PURE__ */ q({
16140
16140
  __name: "TabsRoot",
16141
16141
  props: {
@@ -16245,7 +16245,7 @@ var W0 = /* @__PURE__ */ q({
16245
16245
  }
16246
16246
  },
16247
16247
  setup(e) {
16248
- const a = e, { forwardRef: t } = ve(), n = Xi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => Wd(n.baseId, a.value)), l = y(() => a.value === n.modelValue.value), s = P(l.value);
16248
+ const a = e, { forwardRef: t } = ve(), n = Zi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => Wd(n.baseId, a.value)), l = y(() => a.value === n.modelValue.value), s = P(l.value);
16249
16249
  return qe(() => {
16250
16250
  n.registerContent(a.value), requestAnimationFrame(() => {
16251
16251
  s.value = !1;
@@ -16302,7 +16302,7 @@ var W0 = /* @__PURE__ */ q({
16302
16302
  }
16303
16303
  },
16304
16304
  setup(e) {
16305
- const a = e, { loop: t } = Ke(a), { forwardRef: n, currentElement: o } = ve(), r = Xi();
16305
+ const a = e, { loop: t } = Ke(a), { forwardRef: n, currentElement: o } = ve(), r = Zi();
16306
16306
  return r.tabsList = o, (l, s) => (f(), $(i(On), {
16307
16307
  "as-child": "",
16308
16308
  orientation: i(r).orientation.value,
@@ -16353,7 +16353,7 @@ var W0 = /* @__PURE__ */ q({
16353
16353
  }
16354
16354
  },
16355
16355
  setup(e) {
16356
- const a = e, { forwardRef: t } = ve(), n = Xi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => n.contentIds.value.has(a.value) ? Wd(n.baseId, a.value) : void 0), l = y(() => a.value === n.modelValue.value);
16356
+ const a = e, { forwardRef: t } = ve(), n = Zi(), o = y(() => Kd(n.baseId, a.value)), r = y(() => n.contentIds.value.has(a.value) ? Wd(n.baseId, a.value) : void 0), l = y(() => a.value === n.modelValue.value);
16357
16357
  return (s, u) => (f(), $(i(In), {
16358
16358
  "as-child": "",
16359
16359
  focusable: !s.disabled,
@@ -16509,7 +16509,7 @@ var Q0 = /* @__PURE__ */ q({
16509
16509
  })) : V("v-if", !0);
16510
16510
  }
16511
16511
  }), a_ = t_;
16512
- const n_ = "toast.swipeStart", o_ = "toast.swipeMove", r_ = "toast.swipeCancel", i_ = "toast.swipeEnd", Zr = "toast.viewportPause", Jr = "toast.viewportResume";
16512
+ const n_ = "toast.swipeStart", o_ = "toast.swipeMove", r_ = "toast.swipeCancel", i_ = "toast.swipeEnd", Jr = "toast.viewportPause", Qr = "toast.viewportResume";
16513
16513
  function Gn(e, a, t) {
16514
16514
  const n = t.originalEvent.currentTarget, o = new CustomEvent(e, {
16515
16515
  bubbles: !1,
@@ -16518,7 +16518,7 @@ function Gn(e, a, t) {
16518
16518
  });
16519
16519
  a && n.addEventListener(e, a, { once: !0 }), n.dispatchEvent(o);
16520
16520
  }
16521
- function cs(e, a, t = 0) {
16521
+ function fs(e, a, t = 0) {
16522
16522
  const n = Math.abs(e.x), o = Math.abs(e.y), r = n > o;
16523
16523
  return a === "left" || a === "right" ? r && n > t : !r && o > t;
16524
16524
  }
@@ -16601,13 +16601,13 @@ var d_ = /* @__PURE__ */ q({
16601
16601
  const D = Date.now() - p.value;
16602
16602
  v.value = v.value - D, window.clearTimeout(m.value), b.pause(), n("pause");
16603
16603
  };
16604
- k.addEventListener(Zr, O), k.addEventListener(Jr, A), E(() => {
16605
- k.removeEventListener(Zr, O), k.removeEventListener(Jr, A);
16604
+ k.addEventListener(Jr, O), k.addEventListener(Qr, A), E(() => {
16605
+ k.removeEventListener(Jr, O), k.removeEventListener(Qr, A);
16606
16606
  });
16607
16607
  }
16608
16608
  }), pe(() => [t.open, c.value], () => {
16609
16609
  v.value = c.value, t.open && !s.isClosePausedRef.value && x(c.value);
16610
- }, { immediate: !0 }), qi("Escape", (E) => {
16610
+ }, { immediate: !0 }), Di("Escape", (E) => {
16611
16611
  n("escapeKeyDown", E), E.defaultPrevented || (s.isFocusedToastEscapeKeyDownRef.value = !0, w());
16612
16612
  }), qe(() => {
16613
16613
  s.onToastAdd();
@@ -16658,7 +16658,7 @@ var d_ = /* @__PURE__ */ q({
16658
16658
  originalEvent: A,
16659
16659
  delta: z
16660
16660
  };
16661
- N ? (d.value = z, i(Gn)(i(o_), (W) => n("swipeMove", W), T)) : i(cs)(z, i(s).swipeDirection.value, j) ? (d.value = z, i(Gn)(i(n_), (W) => n("swipeStart", W), T), A.target.setPointerCapture(A.pointerId)) : (Math.abs(O) > j || Math.abs(D) > j) && (u.value = null);
16661
+ N ? (d.value = z, i(Gn)(i(o_), (W) => n("swipeMove", W), T)) : i(fs)(z, i(s).swipeDirection.value, j) ? (d.value = z, i(Gn)(i(n_), (W) => n("swipeStart", W), T), A.target.setPointerCapture(A.pointerId)) : (Math.abs(O) > j || Math.abs(D) > j) && (u.value = null);
16662
16662
  }),
16663
16663
  onPointerup: k[2] || (k[2] = (A) => {
16664
16664
  if (i(s).disableSwipe.value) return;
@@ -16668,7 +16668,7 @@ var d_ = /* @__PURE__ */ q({
16668
16668
  originalEvent: A,
16669
16669
  delta: O
16670
16670
  };
16671
- i(cs)(O, i(s).swipeDirection.value, i(s).swipeThreshold.value) ? i(Gn)(i(i_), (L) => n("swipeEnd", L), B) : i(Gn)(i(r_), (L) => n("swipeCancel", L), B), N?.addEventListener("click", (L) => L.preventDefault(), { once: !0 });
16671
+ i(fs)(O, i(s).swipeDirection.value, i(s).swipeThreshold.value) ? i(Gn)(i(i_), (L) => n("swipeEnd", L), B) : i(Gn)(i(r_), (L) => n("swipeCancel", L), B), N?.addEventListener("click", (L) => L.preventDefault(), { once: !0 });
16672
16672
  }
16673
16673
  })
16674
16674
  }), {
@@ -16898,7 +16898,7 @@ var d_ = /* @__PURE__ */ q({
16898
16898
  _: 3
16899
16899
  }));
16900
16900
  }
16901
- }), fs = __, k_ = /* @__PURE__ */ q({
16901
+ }), ps = __, k_ = /* @__PURE__ */ q({
16902
16902
  inheritAttrs: !1,
16903
16903
  __name: "ToastViewport",
16904
16904
  props: {
@@ -16924,7 +16924,7 @@ var d_ = /* @__PURE__ */ q({
16924
16924
  },
16925
16925
  setup(e) {
16926
16926
  const a = e, { hotkey: t, label: n } = Ke(a), { forwardRef: o, currentElement: r } = ve(), { CollectionSlot: l, getItems: s } = lt(), u = Wo(), d = y(() => u.toastCount.value > 0), c = P(), p = P(), v = /Key/g, m = /Digit/g, h = y(() => t.value.join("+").replace(v, "").replace(m, ""));
16927
- qi(t.value, () => {
16927
+ Di(t.value, () => {
16928
16928
  r.value.focus();
16929
16929
  }), qe(() => {
16930
16930
  u.onViewportChange(r.value);
@@ -16933,12 +16933,12 @@ var d_ = /* @__PURE__ */ q({
16933
16933
  if (d.value && w) {
16934
16934
  const C = () => {
16935
16935
  if (!u.isClosePausedRef.value) {
16936
- const D = new CustomEvent(Zr);
16936
+ const D = new CustomEvent(Jr);
16937
16937
  w.dispatchEvent(D), u.isClosePausedRef.value = !0;
16938
16938
  }
16939
16939
  }, E = () => {
16940
16940
  if (u.isClosePausedRef.value) {
16941
- const D = new CustomEvent(Jr);
16941
+ const D = new CustomEvent(Qr);
16942
16942
  w.dispatchEvent(D), u.isClosePausedRef.value = !1;
16943
16943
  }
16944
16944
  }, k = (D) => {
@@ -16964,7 +16964,7 @@ var d_ = /* @__PURE__ */ q({
16964
16964
  });
16965
16965
  function b({ tabbingDirection: x }) {
16966
16966
  const C = s().map((E) => E.ref).map((E) => {
16967
- const k = [E, ...Ri(E)];
16967
+ const k = [E, ...Mi(E)];
16968
16968
  return x === "forwards" ? k : k.reverse();
16969
16969
  });
16970
16970
  return (x === "forwards" ? C.reverse() : C).flat();
@@ -16976,7 +16976,7 @@ var d_ = /* @__PURE__ */ q({
16976
16976
  style: _e({ pointerEvents: d.value ? void 0 : "none" })
16977
16977
  }, {
16978
16978
  default: _(() => [
16979
- d.value ? (f(), $(fs, {
16979
+ d.value ? (f(), $(ps, {
16980
16980
  key: 0,
16981
16981
  ref: (C) => {
16982
16982
  C && (c.value = i(Pt)(C));
@@ -16998,7 +16998,7 @@ var d_ = /* @__PURE__ */ q({
16998
16998
  }, 16, ["as", "as-child"])]),
16999
16999
  _: 3
17000
17000
  }),
17001
- d.value ? (f(), $(fs, {
17001
+ d.value ? (f(), $(ps, {
17002
17002
  key: 1,
17003
17003
  ref: (C) => {
17004
17004
  C && (p.value = i(Pt)(C));
@@ -17013,7 +17013,7 @@ var d_ = /* @__PURE__ */ q({
17013
17013
  }, 8, ["aria-label", "style"]));
17014
17014
  }
17015
17015
  }), C_ = k_;
17016
- const [Zi, S_] = /* @__PURE__ */ Ve("ToggleGroupRoot");
17016
+ const [Ji, S_] = /* @__PURE__ */ Ve("ToggleGroupRoot");
17017
17017
  var $_ = /* @__PURE__ */ q({
17018
17018
  __name: "ToggleGroupRoot",
17019
17019
  props: {
@@ -17150,7 +17150,7 @@ var $_ = /* @__PURE__ */ q({
17150
17150
  },
17151
17151
  emits: ["update:modelValue"],
17152
17152
  setup(e, { emit: a }) {
17153
- const t = e, n = a, { forwardRef: o, currentElement: r } = ve(), l = Xa(), s = Zi(null), u = /* @__PURE__ */ We(t, "modelValue", n, {
17153
+ const t = e, n = a, { forwardRef: o, currentElement: r } = ve(), l = Xa(), s = Ji(null), u = /* @__PURE__ */ We(t, "modelValue", n, {
17154
17154
  defaultValue: t.defaultValue,
17155
17155
  passive: t.modelValue === void 0
17156
17156
  });
@@ -17220,7 +17220,7 @@ var $_ = /* @__PURE__ */ q({
17220
17220
  }
17221
17221
  },
17222
17222
  setup(e) {
17223
- const a = e, t = Zi(), n = y(() => t.disabled?.value || a.disabled), o = y(() => co(t.modelValue.value, a.value)), { forwardRef: r } = ve(), l = Xa();
17223
+ const a = e, t = Ji(), n = y(() => t.disabled?.value || a.disabled), o = y(() => co(t.modelValue.value, a.value)), { forwardRef: r } = ve(), l = Xa();
17224
17224
  return (s, u) => (f(), $(ze(i(t).rovingFocus.value ? i(In) : i(ge)), ne({ "as-child": "" }, i(t).rovingFocus.value ? {
17225
17225
  focusable: !n.value,
17226
17226
  active: o.value
@@ -17312,7 +17312,7 @@ var O_ = /* @__PURE__ */ q({
17312
17312
  setup(e) {
17313
17313
  const a = e, { delayDuration: t, skipDelayDuration: n, disableHoverableContent: o, disableClosingTrigger: r, ignoreNonKeyboardFocus: l, disabled: s, content: u } = Ke(a);
17314
17314
  ve();
17315
- const d = P(!0), c = P(!1), { start: p, stop: v } = Ai(() => {
17315
+ const d = P(!0), c = P(!1), { start: p, stop: v } = Pi(() => {
17316
17316
  d.value = !0;
17317
17317
  }, n, { immediate: !1 });
17318
17318
  return B_({
@@ -17384,7 +17384,7 @@ var R_ = /* @__PURE__ */ q({
17384
17384
  pe(p, (k) => {
17385
17385
  r.onClose && (k ? (r.onOpen(), (n?.eventTarget ?? document).dispatchEvent(new CustomEvent(Ud))) : r.onClose());
17386
17386
  });
17387
- const v = P(!1), m = P(), h = y(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: x } = Ai(() => {
17387
+ const v = P(!1), m = P(), h = y(() => p.value ? v.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: x } = Pi(() => {
17388
17388
  v.value = !0, p.value = !0;
17389
17389
  }, d, { immediate: !1 });
17390
17390
  function w() {
@@ -18154,17 +18154,17 @@ function It(e, a) {
18154
18154
  return !t || t.closest("[data-ui-floating]") ? [] : t.closest('[data-ui-modal-scope="app"]') ?? [];
18155
18155
  });
18156
18156
  }
18157
- function Ji(e) {
18157
+ function Qi(e) {
18158
18158
  return e === void 0 ? Number.MIN_SAFE_INTEGER : Number(e);
18159
18159
  }
18160
- function Qi(e) {
18160
+ function el(e) {
18161
18161
  return e === void 0 ? Number.MAX_SAFE_INTEGER : Number(e);
18162
18162
  }
18163
18163
  function Yd(e) {
18164
18164
  const a = Math.abs(Number(e ?? 1));
18165
18165
  return Number.isFinite(a) && a > 0 ? a : 1;
18166
18166
  }
18167
- function ps(e) {
18167
+ function vs(e) {
18168
18168
  const a = String(e), [t, n] = a.split(/[eE]/), o = (t.split(".")[1] ?? "").length, r = n === void 0 ? 0 : Number(n);
18169
18169
  return Math.max(0, o - r);
18170
18170
  }
@@ -18179,7 +18179,7 @@ function La(e, a) {
18179
18179
  if (n === !1 || !Number.isFinite(n)) return !1;
18180
18180
  t = n;
18181
18181
  }
18182
- return t = Math.min(Qi(a.max), Math.max(Ji(a.min), t)), a.precision !== void 0 && (t = Xd(t, a.precision)), Number.isFinite(t) ? t : !1;
18182
+ return t = Math.min(el(a.max), Math.max(Qi(a.min), t)), a.precision !== void 0 && (t = Xd(t, a.precision)), Number.isFinite(t) ? t : !1;
18183
18183
  }
18184
18184
  function Zd(e, a) {
18185
18185
  const t = e.trim();
@@ -18188,7 +18188,7 @@ function Zd(e, a) {
18188
18188
  return Number.isFinite(n) ? La(n, a) : !1;
18189
18189
  }
18190
18190
  function Jd(e, a, t) {
18191
- const n = Yd(t.step), o = Math.max(ps(e), ps(n), t.precision ?? 0);
18191
+ const n = Yd(t.step), o = Math.max(vs(e), vs(n), t.precision ?? 0);
18192
18192
  return La(Xd(e + a * n, o), t);
18193
18193
  }
18194
18194
  const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }, Q_ = ["value", "name", "placeholder", "disabled", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-disabled", "aria-activedescendant"], e1 = ["disabled", "aria-expanded", "aria-label"], t1 = ["disabled", "aria-label"], a1 = ["disabled", "aria-label"], n1 = ["disabled", "aria-label"], o1 = ["aria-label"], r1 = ["id", "aria-selected", "onMouseenter", "onClick"], u2 = /* @__PURE__ */ q({
@@ -18216,7 +18216,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18216
18216
  },
18217
18217
  emits: ["update:modelValue"],
18218
18218
  setup(e, { emit: a }) {
18219
- const t = Ue(), n = e, o = a, r = yt(), l = y(() => Ji(n.min)), s = y(() => Qi(n.max)), u = y(() => n.min !== void 0 && Number.isFinite(l.value)), d = y(() => n.max !== void 0 && Number.isFinite(s.value)), c = y(() => ({
18219
+ const t = Ue(), n = e, o = a, r = yt(), l = y(() => Qi(n.min)), s = y(() => el(n.max)), u = y(() => n.min !== void 0 && Number.isFinite(l.value)), d = y(() => n.max !== void 0 && Number.isFinite(s.value)), c = y(() => ({
18220
18220
  min: n.min,
18221
18221
  max: n.max,
18222
18222
  step: n.step,
@@ -18355,7 +18355,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18355
18355
  "aria-label": H.value.increase,
18356
18356
  onClick: G[2] || (G[2] = (Y) => O(1))
18357
18357
  }, [
18358
- I(i(Mr), {
18358
+ I(i(Vr), {
18359
18359
  class: "size-3.5",
18360
18360
  "aria-hidden": "true"
18361
18361
  })
@@ -18371,7 +18371,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18371
18371
  "aria-label": H.value.increase,
18372
18372
  onClick: G[3] || (G[3] = (Y) => O(1))
18373
18373
  }, [
18374
- I(i(Mr), {
18374
+ I(i(Vr), {
18375
18375
  class: "size-3",
18376
18376
  "aria-hidden": "true"
18377
18377
  })
@@ -18470,7 +18470,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18470
18470
  },
18471
18471
  emits: ["update:modelValue", "input"],
18472
18472
  setup(e, { emit: a }) {
18473
- const n = Xe(e, { ariaLabel: "Slider" }), o = a, r = y(() => Ji(n.min)), l = y(() => Qi(n.max)), s = y(() => Yd(n.step)), u = y(() => !!n.withInput), d = y(() => typeof n.withInput == "object" ? n.withInput : {}), c = y(() => n.tip ?? !u.value), p = P(!1), v = y(() => ({
18473
+ const n = Xe(e, { ariaLabel: "Slider" }), o = a, r = y(() => Qi(n.min)), l = y(() => el(n.max)), s = y(() => Yd(n.step)), u = y(() => !!n.withInput), d = y(() => typeof n.withInput == "object" ? n.withInput : {}), c = y(() => n.tip ?? !u.value), p = P(!1), v = y(() => ({
18474
18474
  min: n.min,
18475
18475
  max: n.max,
18476
18476
  step: n.step,
@@ -18660,7 +18660,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18660
18660
  }, x1 = {
18661
18661
  key: 2,
18662
18662
  class: "mt-2"
18663
- }, vs = 10, _1 = "conic-gradient(var(--ui-checkerboard) 0 25%, var(--ui-surface) 0 50%, var(--ui-checkerboard) 0 75%, var(--ui-surface) 0)", c2 = /* @__PURE__ */ q({
18663
+ }, ms = 10, _1 = "conic-gradient(var(--ui-checkerboard) 0 25%, var(--ui-surface) 0 50%, var(--ui-checkerboard) 0 75%, var(--ui-surface) 0)", c2 = /* @__PURE__ */ q({
18664
18664
  inheritAttrs: !1,
18665
18665
  __name: "ColorPicker",
18666
18666
  props: {
@@ -18695,15 +18695,15 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18695
18695
  }
18696
18696
  }
18697
18697
  function d(ie, Ee) {
18698
- const Se = ls(ie, Ee === "hsv" ? "hsb" : Ee);
18698
+ const Se = ss(ie, Ee === "hsv" ? "hsb" : Ee);
18699
18699
  return Ee === "hex" ? Se.toUpperCase() : Ee === "hsv" ? Se.replace(/^hsb\(/i, "hsv(") : Se;
18700
18700
  }
18701
18701
  function c(ie) {
18702
18702
  const Ee = u(ie);
18703
- return Ee ? Yr(Ee).toUpperCase() : void 0;
18703
+ return Ee ? Xr(Ee).toUpperCase() : void 0;
18704
18704
  }
18705
- const p = yt(), v = P(!1), m = P(0), h = `${p}-palette`, b = (ie) => `${p}-swatch-${ie}`, x = y(() => u(r.modelValue)), w = y(() => x.value ? Yr(x.value).toUpperCase() : ""), C = y(() => x.value ? s((x.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = y(
18706
- () => x.value ? ls({ ...x.value, alpha: C.value }, "rgb") : "transparent"
18705
+ const p = yt(), v = P(!1), m = P(0), h = `${p}-palette`, b = (ie) => `${p}-swatch-${ie}`, x = y(() => u(r.modelValue)), w = y(() => x.value ? Xr(x.value).toUpperCase() : ""), C = y(() => x.value ? s((x.value.alpha ?? 1) * r.alpha) : s(r.alpha)), E = y(
18706
+ () => x.value ? ss({ ...x.value, alpha: C.value }, "rgb") : "transparent"
18707
18707
  ), k = y(() => [r.ariaLabel, w.value].filter(Boolean).join(", ") || le.value.choose);
18708
18708
  function A(ie) {
18709
18709
  return { value: ie, hex: c(ie) };
@@ -18756,7 +18756,7 @@ const Z_ = ["disabled", "aria-label"], J_ = { class: "relative min-w-0 flex-1" }
18756
18756
  if (ie.target?.getAttribute("role") !== "option") return;
18757
18757
  const Se = B.value.length;
18758
18758
  if (!Se) return;
18759
- const Q = { ArrowRight: 1, ArrowLeft: -1, ArrowDown: vs, ArrowUp: -vs }[ie.key];
18759
+ const Q = { ArrowRight: 1, ArrowLeft: -1, ArrowDown: ms, ArrowUp: -ms }[ie.key];
18760
18760
  let se;
18761
18761
  if (Q !== void 0 ? se = Math.min(Se - 1, Math.max(0, m.value + Q)) : ie.key === "Home" ? se = 0 : ie.key === "End" && (se = Se - 1), se !== void 0) {
18762
18762
  ie.preventDefault(), m.value = se, T(se);
@@ -19087,7 +19087,7 @@ function P1(e) {
19087
19087
  function q1(e) {
19088
19088
  return typeof e == "object" && e !== null && !Array.isArray(e);
19089
19089
  }
19090
- function Qr(e) {
19090
+ function ei(e) {
19091
19091
  return e ? Array.isArray(e) ? e.length === 0 ? [] : P1(e[0]) ? e.map((a, t) => ({
19092
19092
  key: a.label ?? `group-${t}`,
19093
19093
  label: a.label,
@@ -19115,12 +19115,12 @@ function D1(e, a, t) {
19115
19115
  function B1(e, a) {
19116
19116
  return kn(e).find((t) => t.value === a);
19117
19117
  }
19118
- function ms(e, a, t) {
19118
+ function hs(e, a, t) {
19119
19119
  const n = t ? a : a.toLowerCase(), o = (l) => (t ? l : l.toLowerCase()) === n, r = kn(e);
19120
19120
  return r.find((l) => o(l.value)) ?? r.find((l) => o(l.label));
19121
19121
  }
19122
19122
  function Qd(e) {
19123
- const a = y(() => Qr(e.options())), t = P(null), n = P(!1);
19123
+ const a = y(() => ei(e.options())), t = P(null), n = P(!1);
19124
19124
  let o = 0;
19125
19125
  const r = y(() => typeof e.search() == "function"), l = y(() => e.query.value.trim()), s = y(() => l.value.length >= Math.max(1, e.minSearchChar())), u = y(() => r.value ? s.value ? t.value ?? [] : a.value : e.search() === !0 && s.value ? D1(a.value, l.value, e.caseSensitive()) : a.value);
19126
19126
  return pe([l, r], async () => {
@@ -19134,7 +19134,7 @@ function Qd(e) {
19134
19134
  try {
19135
19135
  const p = await d(l.value);
19136
19136
  if (c !== o) return;
19137
- t.value = Qr(p);
19137
+ t.value = ei(p);
19138
19138
  } catch {
19139
19139
  if (c !== o) return;
19140
19140
  t.value = [];
@@ -19179,7 +19179,7 @@ const O1 = { key: 0 }, I1 = { key: 1 }, R1 = { key: 2 }, M1 = {
19179
19179
  caseSensitive: () => n.caseSensitive
19180
19180
  }), h = ht(/* @__PURE__ */ new Map());
19181
19181
  st(() => {
19182
- for (const D of kn(Qr(n.options))) h.set(D.value, D.label);
19182
+ for (const D of kn(ei(n.options))) h.set(D.value, D.label);
19183
19183
  for (const D of kn(v.value)) h.set(D.value, D.label);
19184
19184
  });
19185
19185
  const b = y(() => n.modelValue ? h.get(n.modelValue) ?? "" : "");
@@ -19390,26 +19390,26 @@ function ac(e, a) {
19390
19390
  }
19391
19391
  return !1;
19392
19392
  }
19393
- function ei(e, a) {
19393
+ function ti(e, a) {
19394
19394
  const t = e.getAttribute(U1) || void 0, n = X1(e) && Z1(e);
19395
19395
  if (!n && !t || ac(e, a)) return null;
19396
19396
  const o = e.getAttribute(j1) ?? (e.textContent ?? "").replace(/\s+/g, " ").trim();
19397
19397
  return { element: e, scope: a, cut: n, text: o, hint: t };
19398
19398
  }
19399
- function hs(e, a) {
19399
+ function ys(e, a) {
19400
19400
  if (!(e instanceof Element) || !a.contains(e)) return null;
19401
19401
  const t = e.closest(`td, th, [${tc}]`), n = t && a.contains(t) ? t : a;
19402
19402
  if (e instanceof HTMLElement && ac(e, n)) return null;
19403
19403
  for (let o = e; o; o = o.parentElement) {
19404
19404
  if (o instanceof HTMLElement) {
19405
- const r = ei(o, n);
19405
+ const r = ti(o, n);
19406
19406
  if (r) return r;
19407
19407
  }
19408
19408
  if (o === n) break;
19409
19409
  }
19410
19410
  for (const o of n.querySelectorAll("*")) {
19411
19411
  if (!(o instanceof HTMLElement)) continue;
19412
- const r = ei(o, n);
19412
+ const r = ti(o, n);
19413
19413
  if (r) return r;
19414
19414
  }
19415
19415
  return null;
@@ -19419,7 +19419,7 @@ function J1(e, a) {
19419
19419
  const t = e.closest(`td, th, [${tc}]`), n = t && a.contains(t) ? t : a;
19420
19420
  for (const o of [e, ...e.querySelectorAll("*")]) {
19421
19421
  if (!(o instanceof HTMLElement)) continue;
19422
- const r = ei(o, n);
19422
+ const r = ti(o, n);
19423
19423
  if (r) return r;
19424
19424
  }
19425
19425
  return null;
@@ -19428,7 +19428,7 @@ const nc = /* @__PURE__ */ Symbol("overflow-tooltip-region");
19428
19428
  function oc() {
19429
19429
  Qe(nc, !0);
19430
19430
  }
19431
- function el() {
19431
+ function tl() {
19432
19432
  return Ze(nc, !1);
19433
19433
  }
19434
19434
  const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip-bg)] px-2.5 py-1.5 text-[12px] leading-4 text-[var(--ui-tooltip-fg)] whitespace-pre-line shadow-[var(--ui-shadow-menu)] [overflow-wrap:anywhere] animate-[ui-fade-in_var(--ui-motion-fast)_var(--ui-motion-ease)]", Q1 = 300, ea = /* @__PURE__ */ q({
@@ -19469,7 +19469,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19469
19469
  function v(k) {
19470
19470
  if (k.pointerType === "touch" || k.buttons) return;
19471
19471
  const A = n.value;
19472
- A && p(hs(k.target, A), a.delay);
19472
+ A && p(ys(k.target, A), a.delay);
19473
19473
  }
19474
19474
  let m = null;
19475
19475
  function h(k) {
@@ -19478,7 +19478,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19478
19478
  function b(k) {
19479
19479
  const A = n.value, O = m;
19480
19480
  if (m = null, !a.openOnTap || !A || k.pointerType !== "touch" && k.pointerType !== "pen") return;
19481
- const D = hs(k.target, A);
19481
+ const D = ys(k.target, A);
19482
19482
  D && D.element !== O && p(D, 0);
19483
19483
  }
19484
19484
  function x(k) {
@@ -19573,7 +19573,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19573
19573
  key: 0,
19574
19574
  class: "mt-1 shrink-0 border-t border-[var(--ui-border-subtle)] px-2.5 pt-1.5 pb-0.5 text-[12px] text-[var(--ui-text-muted)]",
19575
19575
  "data-syno-pkg-land-ui-select-create-hint": ""
19576
- }, tl = /* @__PURE__ */ q({
19576
+ }, al = /* @__PURE__ */ q({
19577
19577
  inheritAttrs: !1,
19578
19578
  __name: "ComboboxField",
19579
19579
  props: {
@@ -19635,7 +19635,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19635
19635
  validate: ee.validate
19636
19636
  } : { enabled: !1, addKey: [], validate: void 0 };
19637
19637
  }), L = y(() => n.editable ?? (n.search !== !1 || B.value.enabled)), R = y(() => n.loading || D.value), F = y(() => B.value.enabled && r.value.trim().length > 0), j = y(
19638
- () => r.value.trim() ? ms(O.value, r.value.trim(), n.caseSensitive) : void 0
19638
+ () => r.value.trim() ? hs(O.value, r.value.trim(), n.caseSensitive) : void 0
19639
19639
  ), z = P(!1), T = y(() => F.value && !j.value && !u.value);
19640
19640
  pe(R, (ee) => o("update:loading", ee));
19641
19641
  const W = y(
@@ -19693,7 +19693,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19693
19693
  return;
19694
19694
  }
19695
19695
  u.value = "";
19696
- const Ne = ms(O.value, xe, n.caseSensitive);
19696
+ const Ne = hs(O.value, xe, n.caseSensitive);
19697
19697
  Ne ? (Ee(Ne.value), o("select", Ne)) : (Ee(xe), o("create", xe));
19698
19698
  }
19699
19699
  function je(ee) {
@@ -19976,7 +19976,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
19976
19976
  function o(r) {
19977
19977
  n("update:modelValue", Array.isArray(r) ? r[0] ?? "" : r);
19978
19978
  }
19979
- return (r, l) => (f(), $(tl, ne(t, {
19979
+ return (r, l) => (f(), $(al, ne(t, {
19980
19980
  multiple: !1,
19981
19981
  "onUpdate:modelValue": o,
19982
19982
  "onUpdate:loading": l[0] || (l[0] = (s) => n("update:loading", s)),
@@ -20020,7 +20020,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20020
20020
  function o(r) {
20021
20021
  n("update:modelValue", Array.isArray(r) ? r : r ? [r] : []);
20022
20022
  }
20023
- return (r, l) => (f(), $(tl, ne(t, {
20023
+ return (r, l) => (f(), $(al, ne(t, {
20024
20024
  multiple: !0,
20025
20025
  "onUpdate:modelValue": o,
20026
20026
  "onUpdate:loading": l[0] || (l[0] = (s) => n("update:loading", s)),
@@ -20064,7 +20064,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20064
20064
  function o(r) {
20065
20065
  n("update:modelValue", Array.isArray(r) ? r : r ? [r] : []);
20066
20066
  }
20067
- return (r, l) => (f(), $(tl, ne(t, {
20067
+ return (r, l) => (f(), $(al, ne(t, {
20068
20068
  multiple: !0,
20069
20069
  "onUpdate:modelValue": o,
20070
20070
  "onUpdate:loading": l[0] || (l[0] = (s) => n("update:loading", s)),
@@ -20133,7 +20133,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20133
20133
  class: te(e.orientation === "horizontal" ? "h-[var(--ui-hairline)] w-full bg-[var(--ui-border-subtle)]" : "min-h-4 w-[var(--ui-hairline)] self-stretch bg-[var(--ui-border-subtle)]")
20134
20134
  }, null, 10, dk));
20135
20135
  }
20136
- }), fk = ["aria-label"], pk = { key: 0 }, al = /* @__PURE__ */ q({
20136
+ }), fk = ["aria-label"], pk = { key: 0 }, nl = /* @__PURE__ */ q({
20137
20137
  __name: "LoadingIndicator",
20138
20138
  props: {
20139
20139
  text: { default: "" },
@@ -20186,7 +20186,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20186
20186
  }, [
20187
20187
  S(r.$slots, "default"),
20188
20188
  t.value ? (f(), g("div", mk, [
20189
- I(al, { text: e.text }, null, 8, ["text"])
20189
+ I(nl, { text: e.text }, null, 8, ["text"])
20190
20190
  ])) : V("", !0)
20191
20191
  ], 8, vk));
20192
20192
  }
@@ -20200,7 +20200,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20200
20200
  },
20201
20201
  setup(e) {
20202
20202
  return (a, t) => (f(), g("div", yk, [
20203
- I(al, { text: e.text }, null, 8, ["text"])
20203
+ I(nl, { text: e.text }, null, 8, ["text"])
20204
20204
  ]));
20205
20205
  }
20206
20206
  }), gk = {
@@ -20504,7 +20504,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20504
20504
  }, [])
20505
20505
  );
20506
20506
  return (s, u) => {
20507
- const d = yi("DropdownMenuItems", !0);
20507
+ const d = gi("DropdownMenuItems", !0);
20508
20508
  return f(!0), g(ce, null, ke(l.value, (c) => (f(), g(ce, {
20509
20509
  key: c.key
20510
20510
  }, [
@@ -20587,7 +20587,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20587
20587
  }, {
20588
20588
  default: _(() => [
20589
20589
  M("span", Ak, [
20590
- I(i(ds), null, {
20590
+ I(i(cs), null, {
20591
20591
  default: _(() => [
20592
20592
  I(i(mt), {
20593
20593
  class: "size-3.5",
@@ -20619,7 +20619,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20619
20619
  }, {
20620
20620
  default: _(() => [
20621
20621
  M("span", Bk, [
20622
- I(i(ds), null, {
20622
+ I(i(cs), null, {
20623
20623
  default: _(() => [
20624
20624
  e.radioIndicator === "check" ? (f(), $(i(mt), {
20625
20625
  key: 0,
@@ -20745,7 +20745,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20745
20745
  _: 3
20746
20746
  }, 8, ["open"]));
20747
20747
  }
20748
- }), Fk = ["data-variant"], zk = ["disabled"], Nk = ["disabled", "aria-label"], ys = "inline-flex h-[var(--ui-control-md)] items-center border text-[length:var(--ui-font-size)] outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] whitespace-nowrap disabled:pointer-events-none", _2 = /* @__PURE__ */ q({
20748
+ }), Fk = ["data-variant"], zk = ["disabled"], Nk = ["disabled", "aria-label"], gs = "inline-flex h-[var(--ui-control-md)] items-center border text-[length:var(--ui-font-size)] outline-none transition-[background-color,border-color,color,box-shadow,opacity] duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] whitespace-nowrap disabled:pointer-events-none", _2 = /* @__PURE__ */ q({
20749
20749
  inheritAttrs: !1,
20750
20750
  __name: "SplitButton",
20751
20751
  props: {
@@ -20767,7 +20767,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20767
20767
  type: "button",
20768
20768
  "data-split-main": "",
20769
20769
  disabled: i(r).disabled,
20770
- class: [ys, s(), "relative min-w-0 truncate rounded-l-[var(--ui-radius-control)] border-r-0 px-[13px] focus-visible:z-10 focus-visible:shadow-[var(--ui-shadow-focus)]"],
20770
+ class: [gs, s(), "relative min-w-0 truncate rounded-l-[var(--ui-radius-control)] border-r-0 px-[13px] focus-visible:z-10 focus-visible:shadow-[var(--ui-shadow-focus)]"],
20771
20771
  onClick: c[0] || (c[0] = (p) => l("click", p))
20772
20772
  }), [
20773
20773
  S(d.$slots, "default")
@@ -20787,7 +20787,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20787
20787
  "data-split-arrow": "",
20788
20788
  disabled: i(r).disabled,
20789
20789
  "aria-label": i(r).menuLabel,
20790
- class: te([ys, s(), "relative w-[22px] justify-center rounded-r-[var(--ui-radius-control)] border-l-0 focus-visible:z-10 focus-visible:shadow-[var(--ui-shadow-focus)]"])
20790
+ class: te([gs, s(), "relative w-[22px] justify-center rounded-r-[var(--ui-radius-control)] border-l-0 focus-visible:z-10 focus-visible:shadow-[var(--ui-shadow-focus)]"])
20791
20791
  }, [...c[2] || (c[2] = [
20792
20792
  M("svg", {
20793
20793
  "data-caret": "",
@@ -20820,7 +20820,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20820
20820
  }, Xk = { class: "min-w-0 flex-1 [overflow-wrap:anywhere]" }, Zk = {
20821
20821
  key: 1,
20822
20822
  class: "shrink-0 text-[12px] text-[var(--ui-text-muted)]"
20823
- }, gs = "flex min-h-7 select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2.5 py-1 text-[13px] outline-none [@media(pointer:coarse)]:min-h-9 data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40", Jk = /* @__PURE__ */ q({
20823
+ }, bs = "flex min-h-7 select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2.5 py-1 text-[13px] outline-none [@media(pointer:coarse)]:min-h-9 data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40", Jk = /* @__PURE__ */ q({
20824
20824
  name: "ContextMenuItems",
20825
20825
  __name: "ContextMenuItems",
20826
20826
  props: {
@@ -20831,7 +20831,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20831
20831
  setup(e, { emit: a }) {
20832
20832
  const t = e, n = a, o = y(() => t.items.some((r) => r.type !== "separator" && r.checked !== void 0));
20833
20833
  return (r, l) => {
20834
- const s = yi("ContextMenuItems", !0);
20834
+ const s = gi("ContextMenuItems", !0);
20835
20835
  return f(!0), g(ce, null, ke(e.items, (u) => (f(), g(ce, {
20836
20836
  key: u.key
20837
20837
  }, [
@@ -20843,7 +20843,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20843
20843
  I(i(_w), {
20844
20844
  disabled: u.disabled,
20845
20845
  class: te([
20846
- gs,
20846
+ bs,
20847
20847
  u.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
20848
20848
  ])
20849
20849
  }, {
@@ -20912,7 +20912,7 @@ const rc = "z-[1450] max-w-72 rounded-[var(--ui-radius-sm)] bg-[var(--ui-tooltip
20912
20912
  key: 3,
20913
20913
  disabled: u.disabled,
20914
20914
  class: te([
20915
- gs,
20915
+ bs,
20916
20916
  u.danger ? "text-[var(--ui-danger)]" : "text-[var(--ui-text)]"
20917
20917
  ]),
20918
20918
  onSelect: (d) => n("select", u.key)
@@ -21003,8 +21003,8 @@ function tC(e, a, t) {
21003
21003
  function aC(e) {
21004
21004
  return e.width >= eC && !e.coarse;
21005
21005
  }
21006
- const dc = "@synopkgland/floating-host", nC = "data-ui-floating", bs = ["lang", "dir", "data-ui-theme", "data-ui-density", "data-ui-accent"], oC = "--ui-accent-";
21007
- function ws(e) {
21006
+ const dc = "@synopkgland/floating-host", nC = "data-ui-floating", ws = ["lang", "dir", "data-ui-theme", "data-ui-density", "data-ui-accent"], oC = "--ui-accent-";
21007
+ function xs(e) {
21008
21008
  const a = [];
21009
21009
  for (let t = 0; t < e.length; t++) {
21010
21010
  const n = e.item(t);
@@ -21039,16 +21039,16 @@ function sC(e, a, t) {
21039
21039
  const v = d.ownerDocument.defaultView, m = d.ownerDocument.createElement("div");
21040
21040
  m.setAttribute("data-ui-app", ""), m.setAttribute("data-syno-pkg-land-ui", ""), m.setAttribute("data-ui-modal-scope", "app"), m.setAttribute(nC, ""), Object.assign(m.style, { position: "fixed", inset: "0", pointerEvents: "none" });
21041
21041
  const h = () => {
21042
- for (const B of bs) {
21042
+ for (const B of ws) {
21043
21043
  const L = d.getAttribute(B);
21044
21044
  L === null ? m.removeAttribute(B) : m.setAttribute(B, L);
21045
21045
  }
21046
- for (const B of ws(m.style)) m.style.removeProperty(B);
21047
- for (const B of ws(d.style)) m.style.setProperty(B, d.style.getPropertyValue(B));
21046
+ for (const B of xs(m.style)) m.style.removeProperty(B);
21047
+ for (const B of xs(d.style)) m.style.setProperty(B, d.style.getPropertyValue(B));
21048
21048
  };
21049
21049
  h();
21050
21050
  const b = new MutationObserver(h);
21051
- b.observe(d, { attributes: !0, attributeFilter: [...bs, "style"] });
21051
+ b.observe(d, { attributes: !0, attributeFilter: [...ws, "style"] });
21052
21052
  const x = iC(d), w = () => {
21053
21053
  const B = !!x && lC(d, x);
21054
21054
  x && (m.style.zIndex = v.getComputedStyle(x).zIndex, m.style.visibility = B ? "hidden" : "");
@@ -21457,7 +21457,7 @@ const vC = /* @__PURE__ */ q({
21457
21457
  }, 8, ["open"]));
21458
21458
  }
21459
21459
  }), S2 = ["m/d/Y", "d/m/Y", "Y-m-d", "d.m.Y", "d-m-Y"], $2 = ["h:mm a", "HH:mm"], _C = /^(\d{4})-(\d{2})-(\d{2})$/, kC = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/, pc = /[Ymd]/g, ga = (e) => String(e).padStart(2, "0");
21460
- function ti(e, a, t) {
21460
+ function ai(e, a, t) {
21461
21461
  if (!Number.isInteger(e) || !Number.isInteger(a) || !Number.isInteger(t) || a < 1 || a > 12 || t < 1 || t > 31) return !1;
21462
21462
  const n = new Date(Date.UTC(e, a - 1, t));
21463
21463
  return n.getUTCFullYear() === e && n.getUTCMonth() === a - 1 && n.getUTCDate() === t;
@@ -21467,18 +21467,18 @@ function vc(e) {
21467
21467
  const a = kC.exec(e);
21468
21468
  if (a) {
21469
21469
  const [, n, o, r, l, s] = a;
21470
- return !ti(Number(n), Number(o), Number(r)) || Number(l) > 23 || Number(s) > 59 ? void 0 : { date: `${n}-${o}-${r}`, hours: Number(l), minutes: Number(s), hasTime: !0 };
21470
+ return !ai(Number(n), Number(o), Number(r)) || Number(l) > 23 || Number(s) > 59 ? void 0 : { date: `${n}-${o}-${r}`, hours: Number(l), minutes: Number(s), hasTime: !0 };
21471
21471
  }
21472
21472
  const t = _C.exec(e);
21473
21473
  if (t) {
21474
21474
  const [, n, o, r] = t;
21475
- return ti(Number(n), Number(o), Number(r)) ? { date: e, hours: 0, minutes: 0, hasTime: !1 } : void 0;
21475
+ return ai(Number(n), Number(o), Number(r)) ? { date: e, hours: 0, minutes: 0, hasTime: !1 } : void 0;
21476
21476
  }
21477
21477
  }
21478
21478
  function CC(e, a, t) {
21479
21479
  return `${e}T${ga(a)}:${ga(t)}:00`;
21480
21480
  }
21481
- function xs(e, a) {
21481
+ function _s(e, a) {
21482
21482
  const t = vc(e);
21483
21483
  if (!t) return "";
21484
21484
  const [n, o, r] = t.date.split("-"), l = a === "Y-m-d", s = {
@@ -21498,7 +21498,7 @@ function SC(e, a) {
21498
21498
  s[p] = Number(l[v + 1]);
21499
21499
  });
21500
21500
  const { Y: u, m: d, d: c } = s;
21501
- if (ti(u, d, c))
21501
+ if (ai(u, d, c))
21502
21502
  return `${u}-${ga(d)}-${ga(c)}`;
21503
21503
  }
21504
21504
  function $C(e, a, t) {
@@ -21624,12 +21624,12 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21624
21624
  pe(
21625
21625
  [p, () => s.dateFormat, v],
21626
21626
  () => {
21627
- v.value && (j.value = p.value ? xs(p.value, s.dateFormat) : "");
21627
+ v.value && (j.value = p.value ? _s(p.value, s.dateFormat) : "");
21628
21628
  },
21629
21629
  { immediate: !0 }
21630
21630
  );
21631
21631
  function T() {
21632
- j.value = p.value ? xs(p.value, s.dateFormat) : "";
21632
+ j.value = p.value ? _s(p.value, s.dateFormat) : "";
21633
21633
  }
21634
21634
  function W() {
21635
21635
  if (!v.value) return;
@@ -21734,7 +21734,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21734
21734
  class: "flex size-7 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
21735
21735
  "aria-label": ue.value.previousMonth
21736
21736
  }, [
21737
- I(i(gi), {
21737
+ I(i(bi), {
21738
21738
  class: "size-4",
21739
21739
  "aria-hidden": "true"
21740
21740
  })
@@ -21773,7 +21773,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21773
21773
  default: _(() => [
21774
21774
  I(i(Jw), null, {
21775
21775
  default: _(() => [
21776
- I(i(us), null, {
21776
+ I(i(ds), null, {
21777
21777
  default: _(() => [
21778
21778
  (f(!0), g(ce, null, ke(Ee, (Q) => (f(), $(i(tx), {
21779
21779
  key: Q,
@@ -21792,7 +21792,7 @@ const AC = ["disabled", "readonly", "placeholder", "onKeydown"], PC = ["disabled
21792
21792
  }, 1024),
21793
21793
  I(i(Xw), null, {
21794
21794
  default: _(() => [
21795
- (f(!0), g(ce, null, ke(Se.rows, (Q, se) => (f(), $(i(us), { key: se }, {
21795
+ (f(!0), g(ce, null, ke(Se.rows, (Q, se) => (f(), $(i(ds), { key: se }, {
21796
21796
  default: _(() => [
21797
21797
  (f(!0), g(ce, null, ke(Q, (oe) => (f(), $(i(Iw), {
21798
21798
  key: oe.toString(),
@@ -21944,9 +21944,9 @@ const YC = { class: "min-w-0" }, XC = ["onClick"], A2 = /* @__PURE__ */ q({
21944
21944
  function l(m = "info") {
21945
21945
  return {
21946
21946
  info: za,
21947
- success: wi,
21947
+ success: xi,
21948
21948
  warning: So,
21949
- danger: bi
21949
+ danger: wi
21950
21950
  }[m];
21951
21951
  }
21952
21952
  function s(m) {
@@ -22250,16 +22250,16 @@ function tS(e) {
22250
22250
  function aS(e) {
22251
22251
  return eS[e];
22252
22252
  }
22253
- const nl = ht(/* @__PURE__ */ new Map());
22253
+ const ol = ht(/* @__PURE__ */ new Map());
22254
22254
  function D2(e) {
22255
22255
  const a = Array.isArray(e) ? e : Object.entries(e).map(([t, n]) => ({ name: t, component: n }));
22256
- for (const { name: t, component: n } of a) nl.set(t, n);
22256
+ for (const { name: t, component: n } of a) ol.set(t, n);
22257
22257
  }
22258
22258
  function nS(e) {
22259
- return nl.get(e);
22259
+ return ol.get(e);
22260
22260
  }
22261
22261
  function B2() {
22262
- nl.clear();
22262
+ ol.clear();
22263
22263
  }
22264
22264
  const oo = /* @__PURE__ */ q({
22265
22265
  __name: "Icon",
@@ -22319,7 +22319,7 @@ const oo = /* @__PURE__ */ q({
22319
22319
  ], rS = new Map(oS.flatMap(([e, a]) => a.map((t) => [t, e])));
22320
22320
  function iS(e = "") {
22321
22321
  const a = e.lastIndexOf(".");
22322
- return a <= 0 ? Vr : rS.get(e.slice(a + 1).toLowerCase()) ?? Vr;
22322
+ return a <= 0 ? Lr : rS.get(e.slice(a + 1).toLowerCase()) ?? Lr;
22323
22323
  }
22324
22324
  const O2 = /* @__PURE__ */ q({
22325
22325
  __name: "FileTypeIcon",
@@ -22330,7 +22330,7 @@ const O2 = /* @__PURE__ */ q({
22330
22330
  size: { default: "sm" }
22331
22331
  },
22332
22332
  setup(e) {
22333
- const a = e, t = y(() => a.kind === "folder" ? a.open ? xi : _i : iS(a.name)), n = y(() => a.kind === "folder" ? "var(--ui-file-folder)" : "var(--ui-file-icon)");
22333
+ const a = e, t = y(() => a.kind === "folder" ? a.open ? _i : ki : iS(a.name)), n = y(() => a.kind === "folder" ? "var(--ui-file-folder)" : "var(--ui-file-icon)");
22334
22334
  return (o, r) => (f(), $(oo, {
22335
22335
  "svg-icon": t.value,
22336
22336
  size: a.size,
@@ -22470,7 +22470,7 @@ const hS = "cursor-pointer text-[var(--ui-primary)] underline underline-offset-2
22470
22470
  r(t.value, "n")
22471
22471
  );
22472
22472
  }
22473
- }), ol = (e, a) => {
22473
+ }), rl = (e, a) => {
22474
22474
  const t = e.__vccOpts || e;
22475
22475
  for (const [n, o] of a)
22476
22476
  t[n] = o;
@@ -22484,7 +22484,7 @@ function bS(e, a) {
22484
22484
  S(e.$slots, "default")
22485
22485
  ]);
22486
22486
  }
22487
- const M2 = /* @__PURE__ */ ol(yS, [["render", bS]]), rn = "text-[length:var(--ui-font-size)] leading-[var(--ui-line-height)] text-[var(--ui-text)]", ln = "my-[var(--ui-space-5)]", wS = "font-mono text-[length:var(--ui-font-size-sm)]", xS = {
22487
+ const M2 = /* @__PURE__ */ rl(yS, [["render", bS]]), rn = "text-[length:var(--ui-font-size)] leading-[var(--ui-line-height)] text-[var(--ui-text)]", ln = "my-[var(--ui-space-5)]", wS = "font-mono text-[length:var(--ui-font-size-sm)]", xS = {
22488
22488
  1: "text-[length:var(--ui-font-size-h1)]",
22489
22489
  2: "text-[length:var(--ui-font-size-h2)]",
22490
22490
  3: "text-[length:var(--ui-font-size-h3)]",
@@ -22538,7 +22538,7 @@ const kS = {
22538
22538
  function TS(e, a) {
22539
22539
  return f(), g("div", ES);
22540
22540
  }
22541
- const F2 = /* @__PURE__ */ ol($S, [["render", TS]]), AS = ["href", "aria-label"], z2 = /* @__PURE__ */ q({
22541
+ const F2 = /* @__PURE__ */ rl($S, [["render", TS]]), AS = ["href", "aria-label"], z2 = /* @__PURE__ */ q({
22542
22542
  __name: "TypoHeader",
22543
22543
  props: {
22544
22544
  text: { default: "" },
@@ -22578,7 +22578,7 @@ const F2 = /* @__PURE__ */ ol($S, [["render", TS]]), AS = ["href", "aria-label"]
22578
22578
  function DS(e, a) {
22579
22579
  return f(), g("hr", qS);
22580
22580
  }
22581
- const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22581
+ const N2 = /* @__PURE__ */ rl(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22582
22582
  __name: "TypoLi",
22583
22583
  setup(e) {
22584
22584
  return (a, t) => (f(), g("li", {
@@ -22700,7 +22700,7 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
22700
22700
  setup(e, { emit: a }) {
22701
22701
  const t = e, n = a, o = (v, { slots: m }) => m.default?.() ?? null;
22702
22702
  xt();
22703
- const r = Zi(null), l = y(() => t.tooltip ? da : o), s = y(() => t.tooltip ? { content: t.tooltip } : {}), u = y(() => r ? P_ : jd), d = y(
22703
+ const r = Ji(null), l = y(() => t.tooltip ? da : o), s = y(() => t.tooltip ? { content: t.tooltip } : {}), u = y(() => r ? P_ : jd), d = y(
22704
22704
  () => r ? { value: t.value, disabled: t.disabled, asChild: !0 } : {
22705
22705
  modelValue: t.modelValue,
22706
22706
  disabled: t.disabled,
@@ -23285,10 +23285,10 @@ const N2 = /* @__PURE__ */ ol(PS, [["render", DS]]), K2 = /* @__PURE__ */ q({
23285
23285
  })) : V("", !0)
23286
23286
  ], 8, jS));
23287
23287
  }
23288
- }), _s = (e) => ({ visibleTailCount: e, hiddenCount: 0 });
23288
+ }), ks = (e) => ({ visibleTailCount: e, hiddenCount: 0 });
23289
23289
  function GS(e) {
23290
23290
  const { containerWidth: a, itemWidths: t, separatorWidth: n, ellipsisWidth: o } = e, r = t.length;
23291
- if (r <= 2 || a <= 0 || t.some((d) => d <= 0) || t.reduce((d, c) => d + c, 0) + n * (r - 1) <= a) return _s(r);
23291
+ if (r <= 2 || a <= 0 || t.some((d) => d <= 0) || t.reduce((d, c) => d + c, 0) + n * (r - 1) <= a) return ks(r);
23292
23292
  let s = 1, u = t[0] + n + o + n + t[r - 1];
23293
23293
  for (; s < r - 1; ) {
23294
23294
  const d = u + n + t[r - 1 - s];
@@ -23382,7 +23382,7 @@ const XS = {
23382
23382
  title: i(n).collapsedLabel,
23383
23383
  class: "inline-flex size-6 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-secondary)] outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)]"
23384
23384
  }, [
23385
- I(i(Ol), {
23385
+ I(i(Il), {
23386
23386
  class: "size-3.5",
23387
23387
  "aria-hidden": "true"
23388
23388
  })
@@ -23524,7 +23524,7 @@ const XS = {
23524
23524
  tabindex: "-1",
23525
23525
  class: "inline-flex size-6 items-center justify-center"
23526
23526
  }, [
23527
- I(i(Ol), {
23527
+ I(i(Il), {
23528
23528
  class: "size-3.5",
23529
23529
  "aria-hidden": "true"
23530
23530
  })
@@ -23552,7 +23552,7 @@ function i$(e) {
23552
23552
  function l$(e, a) {
23553
23553
  return !Number.isFinite(e) || !Number.isFinite(a) || a <= 0 ? 1 : Math.max(1, Math.ceil(Math.max(0, e) / a));
23554
23554
  }
23555
- function ks(e, a) {
23555
+ function Cs(e, a) {
23556
23556
  return Number.isFinite(e) ? Math.min(Math.max(1, Math.trunc(e)), Math.max(1, a)) : 1;
23557
23557
  }
23558
23558
  function s$(e, a, t = 7) {
@@ -23622,7 +23622,7 @@ const d$ = ["aria-label"], c$ = {
23622
23622
  const W = Number(T);
23623
23623
  return Number.isFinite(W) ? W : 0;
23624
23624
  }, c = y(() => Math.max(0, d(o.total))), p = y(() => l$(c.value, o.pageSize)), v = y(
23625
- () => o.endless ? Math.max(1, Math.trunc(d(o.modelValue))) : ks(d(o.modelValue), p.value)
23625
+ () => o.endless ? Math.max(1, Math.trunc(d(o.modelValue))) : Cs(d(o.modelValue), p.value)
23626
23626
  ), m = y(() => d(o.start) || (v.value - 1) * o.pageSize + 1), h = y(() => d(o.end) || Math.min(v.value * o.pageSize, c.value)), b = y(() => o.hasPrev ?? v.value > 1), x = y(() => o.hasNext ?? (o.endless ? !0 : v.value < p.value)), w = y(
23627
23627
  () => o.endless ? [] : s$(v.value, p.value, o.maxPageButtons).map(
23628
23628
  (T) => T === "ellipsis" ? { kind: "ellipsis" } : { kind: "page", page: T }
@@ -23647,7 +23647,7 @@ const d$ = ["aria-label"], c$ = {
23647
23647
  }), He(() => B?.disconnect());
23648
23648
  async function L(T) {
23649
23649
  if (!o.switchPage) return;
23650
- const W = o.endless ? Math.max(1, Math.trunc(T)) : ks(T, p.value);
23650
+ const W = o.endless ? Math.max(1, Math.trunc(T)) : Cs(T, p.value);
23651
23651
  W !== v.value && (o.beforeSwitchPage && await o.beforeSwitchPage({ pageNum: W, pageSize: o.pageSize }) === !1 || (r("update:modelValue", W), r("change", W), r("changePage", { pageNum: W, pageSize: o.pageSize })));
23652
23652
  }
23653
23653
  function R(T) {
@@ -23702,7 +23702,7 @@ const d$ = ["aria-label"], c$ = {
23702
23702
  onClick: W[1] || (W[1] = (H) => L(v.value - o.pageShiftUnit))
23703
23703
  }, {
23704
23704
  default: _(() => [
23705
- I(i(gi), { class: "size-3.5" })
23705
+ I(i(bi), { class: "size-3.5" })
23706
23706
  ]),
23707
23707
  _: 1
23708
23708
  }, 8, ["label", "disabled"]),
@@ -23996,9 +23996,9 @@ function ta(e) {
23996
23996
  }), t.observe(e.value)));
23997
23997
  }), He(() => t?.disconnect()), a;
23998
23998
  }
23999
- const P$ = { xs: "96px", sm: "160px", md: "320px", lg: "480px" }, ai = "md";
24000
- function rl(e) {
24001
- const a = e ?? ai;
23999
+ const P$ = { xs: "96px", sm: "160px", md: "320px", lg: "480px" }, ni = "md";
24000
+ function il(e) {
24001
+ const a = e ?? ni;
24002
24002
  return a === "full" ? void 0 : P$[a] ?? a;
24003
24003
  }
24004
24004
  const q$ = ["data-direction"], D$ = {
@@ -24017,7 +24017,7 @@ const q$ = ["data-direction"], D$ = {
24017
24017
  fieldWidth: { default: void 0 }
24018
24018
  },
24019
24019
  setup(e) {
24020
- const a = e, t = y(() => a.align ?? (a.description ? "start" : "center")), n = y(() => ({ maxWidth: rl(a.fieldWidth) })), o = Me("root"), r = ta(o), l = y(() => r.value > 0 && r.value < 520), s = y(() => ({
24020
+ const a = e, t = y(() => a.align ?? (a.description ? "start" : "center")), n = y(() => ({ maxWidth: il(a.fieldWidth) })), o = Me("root"), r = ta(o), l = y(() => r.value > 0 && r.value < 520), s = y(() => ({
24021
24021
  gridTemplateColumns: l.value ? "minmax(0, 1fr)" : "minmax(0, var(--ui-label-column)) minmax(0, 1fr)",
24022
24022
  columnGap: "var(--ui-label-gap)"
24023
24023
  }));
@@ -24133,7 +24133,7 @@ const M$ = ["data-sticky"], oI = /* @__PURE__ */ q({
24133
24133
  onClick: t[0] || (t[0] = (n) => a.$emit("add"))
24134
24134
  }, {
24135
24135
  default: _(() => [
24136
- I(i(Mr), {
24136
+ I(i(Vr), {
24137
24137
  class: "size-4",
24138
24138
  "aria-hidden": "true"
24139
24139
  }),
@@ -24211,7 +24211,7 @@ const M$ = ["data-sticky"], oI = /* @__PURE__ */ q({
24211
24211
  },
24212
24212
  setup(e) {
24213
24213
  const a = e, t = y(() => {
24214
- const n = rl(a.width);
24214
+ const n = il(a.width);
24215
24215
  return n === void 0 ? { flex: "1 1 160px", minWidth: 0 } : { width: n, maxWidth: "100%", flex: "none" };
24216
24216
  });
24217
24217
  return (n, o) => (f(), g("div", {
@@ -24221,7 +24221,7 @@ const M$ = ["data-sticky"], oI = /* @__PURE__ */ q({
24221
24221
  S(n.$slots, "default")
24222
24222
  ], 4));
24223
24223
  }
24224
- }), Cs = ["KB", "MB", "GB", "TB"], ka = "—";
24224
+ }), Ss = ["KB", "MB", "GB", "TB"], ka = "—";
24225
24225
  function Qo(e) {
24226
24226
  return e != null && !Number.isNaN(e);
24227
24227
  }
@@ -24229,9 +24229,9 @@ function _o(e, a = {}) {
24229
24229
  if (!Qo(e)) return a.unknown ?? ka;
24230
24230
  if (e < 1024) return `${e} B`;
24231
24231
  let t = e / 1024, n = 0;
24232
- for (; t >= 1024 && n < Cs.length - 1; )
24232
+ for (; t >= 1024 && n < Ss.length - 1; )
24233
24233
  t /= 1024, n += 1;
24234
- return `${Number(t.toFixed(1))} ${Cs[n]}`;
24234
+ return `${Number(t.toFixed(1))} ${Ss[n]}`;
24235
24235
  }
24236
24236
  function sI(e, a = {}) {
24237
24237
  return Qo(e) ? `${_o(e)}/s` : a.unknown ?? ka;
@@ -24247,7 +24247,7 @@ const F$ = [
24247
24247
  function uI(e, a = {}) {
24248
24248
  return Qo(e) ? new Intl.NumberFormat(a.locale ?? "en", { style: "percent", maximumFractionDigits: 1 }).format(e) : a.unknown ?? ka;
24249
24249
  }
24250
- function Ss(e, a, t) {
24250
+ function $s(e, a, t) {
24251
24251
  return new Intl.NumberFormat(e, { style: "unit", unit: a, unitDisplay: "short" }).format(t);
24252
24252
  }
24253
24253
  function dI(e, a = {}) {
@@ -24256,7 +24256,7 @@ function dI(e, a = {}) {
24256
24256
  const t = Math.round(e);
24257
24257
  if (t < 3600) return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
24258
24258
  const n = a.locale ?? "en";
24259
- return `${Ss(n, "hour", Math.floor(t / 3600))} ${Ss(n, "minute", Math.floor(t % 3600 / 60))}`;
24259
+ return `${$s(n, "hour", Math.floor(t / 3600))} ${$s(n, "minute", Math.floor(t % 3600 / 60))}`;
24260
24260
  }
24261
24261
  function cI(e, a = {}) {
24262
24262
  const t = e == null ? Number.NaN : new Date(e).getTime();
@@ -24283,7 +24283,7 @@ function fI(e, a = {}) {
24283
24283
  const r = (s) => new Intl.DateTimeFormat("en", { year: "numeric", timeZone: o }).format(s), l = r(t) === r(a.now ?? Date.now());
24284
24284
  return new Intl.DateTimeFormat(n, { ...N$(n, l), timeZone: o }).format(t);
24285
24285
  }
24286
- async function il(e) {
24286
+ async function ll(e) {
24287
24287
  const a = typeof navigator > "u" ? void 0 : navigator.clipboard;
24288
24288
  if (a?.writeText)
24289
24289
  try {
@@ -24515,7 +24515,7 @@ const aE = {
24515
24515
  },
24516
24516
  emits: ["close"],
24517
24517
  setup(e, { emit: a }) {
24518
- const n = Xe(e, { closeLabel: "Close" }), o = a, r = y(() => ({ info: za, success: wi, warning: So, danger: bi })[n.tone]);
24518
+ const n = Xe(e, { closeLabel: "Close" }), o = a, r = y(() => ({ info: za, success: xi, warning: So, danger: wi })[n.tone]);
24519
24519
  return (l, s) => (f(), g("div", {
24520
24520
  class: "ui-callout flex gap-2.5 py-2.5 pl-3.5 pr-3 text-[13px] leading-5",
24521
24521
  "data-tone": e.tone,
@@ -24898,7 +24898,7 @@ const aE = {
24898
24898
  function $c(e, a = "web") {
24899
24899
  return e <= 0 ? "window" : e <= Sc ? "mobile" : e >= jE && a === "web" ? "web" : "window";
24900
24900
  }
24901
- const tr = /* @__PURE__ */ Symbol("syno-app-presentation"), UE = 248, ni = 200, oi = 360, ll = /* @__PURE__ */ Symbol("syno-app-sidebar-collapsed"), Ec = /* @__PURE__ */ Symbol("syno-app-top-navigation");
24901
+ const tr = /* @__PURE__ */ Symbol("syno-app-presentation"), UE = 248, oi = 200, ri = 360, sl = /* @__PURE__ */ Symbol("syno-app-sidebar-collapsed"), Ec = /* @__PURE__ */ Symbol("syno-app-top-navigation");
24902
24902
  function GE(e, a = () => "x") {
24903
24903
  const t = P(!1), n = P(!1), o = P(!1), r = P(!1);
24904
24904
  let l;
@@ -24946,7 +24946,7 @@ const YE = ["data-axis", "data-overflow-start", "data-overflow-end", "data-edge-
24946
24946
  ], 8, YE));
24947
24947
  }
24948
24948
  });
24949
- function ri(e) {
24949
+ function ii(e) {
24950
24950
  return e.align === "right" ? "text-right" : e.align === "center" ? "text-center" : "text-left";
24951
24951
  }
24952
24952
  function Ac(e) {
@@ -25021,7 +25021,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", XE = ["data-ui-data-vi
25021
25021
  M("tr", null, [
25022
25022
  (f(!0), g(ce, null, ke(i(t).columns, (c) => (f(), g("th", {
25023
25023
  key: c.key,
25024
- class: te(["border-b border-[var(--ui-border)] px-3 py-2 font-normal whitespace-nowrap", i(ri)(c)]),
25024
+ class: te(["border-b border-[var(--ui-border)] px-3 py-2 font-normal whitespace-nowrap", i(ii)(c)]),
25025
25025
  "data-column-type": c.type ?? "text",
25026
25026
  style: _e(c.width ? { width: c.width } : void 0)
25027
25027
  }, U(c.label), 15, oT))), 128))
@@ -25043,7 +25043,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", XE = ["data-ui-data-vi
25043
25043
  // The padding only shows in a row a two-line cell makes taller.
25044
25044
  "px-3 py-1.5 text-[var(--ui-text)]",
25045
25045
  i(t).compact ? "h-9" : "h-11",
25046
- i(ri)(v),
25046
+ i(ii)(v),
25047
25047
  i(Ac)(v) && "tabular-nums whitespace-nowrap"
25048
25048
  ]),
25049
25049
  "data-column-type": v.type ?? "text"
@@ -25089,7 +25089,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", XE = ["data-ui-data-vi
25089
25089
  },
25090
25090
  emits: ["open"],
25091
25091
  setup(e) {
25092
- const a = e, t = !el(), n = Me("root"), o = y(() => a.wrap ? "whitespace-normal [overflow-wrap:anywhere]" : "truncate");
25092
+ const a = e, t = !tl(), n = Me("root"), o = y(() => a.wrap ? "whitespace-normal [overflow-wrap:anywhere]" : "truncate");
25093
25093
  return (r, l) => (f(), g("div", {
25094
25094
  ref_key: "root",
25095
25095
  ref: n,
@@ -25176,7 +25176,7 @@ const Pc = "-ml-1 flex items-center justify-start gap-1", XE = ["data-ui-data-vi
25176
25176
  description: {}
25177
25177
  },
25178
25178
  setup(e) {
25179
- const a = e, t = !el(), n = Me("root"), o = y(
25179
+ const a = e, t = !tl(), n = Me("root"), o = y(
25180
25180
  () => a.progress !== void 0 && a.progress < 100 && a.tone !== "success" && a.tone !== "danger"
25181
25181
  );
25182
25182
  return (r, l) => (f(), g("div", {
@@ -25337,7 +25337,7 @@ function $T(e, a) {
25337
25337
  const t = new Map(e.map((o) => [o.key, o])), n = a.flatMap((o) => t.get(o) ?? []);
25338
25338
  return [.../* @__PURE__ */ new Set([...n, ...e])];
25339
25339
  }
25340
- function $s(e, a, t) {
25340
+ function Es(e, a, t) {
25341
25341
  const n = e.filter((o) => o !== a);
25342
25342
  return n.splice(Math.max(0, Math.min(t, n.length)), 0, a), n;
25343
25343
  }
@@ -25349,7 +25349,7 @@ function TT(e, a, t) {
25349
25349
  return o != null && typeof o != "object" && String(o).toLocaleLowerCase().includes(t);
25350
25350
  });
25351
25351
  }
25352
- const qc = (e) => `syno-pkg-land-ui:data-grid:${e}`, Es = (e) => Array.isArray(e) && e.every((a) => typeof a == "string"), AT = (e) => !!e && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((a) => typeof a == "number" && a > 0), PT = (e) => e === null || !!e && typeof e == "object" && typeof e.key == "string" && ["asc", "desc"].includes(e.direction);
25352
+ const qc = (e) => `syno-pkg-land-ui:data-grid:${e}`, Ts = (e) => Array.isArray(e) && e.every((a) => typeof a == "string"), AT = (e) => !!e && typeof e == "object" && !Array.isArray(e) && Object.values(e).every((a) => typeof a == "number" && a > 0), PT = (e) => e === null || !!e && typeof e == "object" && typeof e.key == "string" && ["asc", "desc"].includes(e.direction);
25353
25353
  function qT(e) {
25354
25354
  let a;
25355
25355
  try {
@@ -25359,7 +25359,7 @@ function qT(e) {
25359
25359
  }
25360
25360
  if (!a || typeof a != "object") return {};
25361
25361
  const t = {};
25362
- return Es(a.columnOrder) && (t.columnOrder = a.columnOrder), Es(a.hiddenColumns) && (t.hiddenColumns = a.hiddenColumns), AT(a.columnWidths) && (t.columnWidths = a.columnWidths), "sort" in a && PT(a.sort) && (t.sort = a.sort), typeof a.pageSize == "number" && Number.isInteger(a.pageSize) && a.pageSize > 0 && (t.pageSize = a.pageSize), t;
25362
+ return Ts(a.columnOrder) && (t.columnOrder = a.columnOrder), Ts(a.hiddenColumns) && (t.hiddenColumns = a.hiddenColumns), AT(a.columnWidths) && (t.columnWidths = a.columnWidths), "sort" in a && PT(a.sort) && (t.sort = a.sort), typeof a.pageSize == "number" && Number.isInteger(a.pageSize) && a.pageSize > 0 && (t.pageSize = a.pageSize), t;
25363
25363
  }
25364
25364
  function DT(e, a) {
25365
25365
  try {
@@ -25367,13 +25367,13 @@ function DT(e, a) {
25367
25367
  } catch {
25368
25368
  }
25369
25369
  }
25370
- const BT = 40, OT = 80, Ts = 10;
25371
- function As(e) {
25370
+ const BT = 40, OT = 80, As = 10;
25371
+ function Ps(e) {
25372
25372
  if (typeof e == "number") return e;
25373
25373
  if (!(e === void 0 || !/^\s*\d+(\.\d+)?(px)?\s*$/.test(e)))
25374
25374
  return parseFloat(e);
25375
25375
  }
25376
- function Ps(e, a) {
25376
+ function qs(e, a) {
25377
25377
  return Math.max(a, Math.round(e));
25378
25378
  }
25379
25379
  function IT(e, a) {
@@ -25443,7 +25443,7 @@ const MT = {
25443
25443
  key: 2,
25444
25444
  class: "h-4 border-l border-[var(--ui-border)]",
25445
25445
  "aria-hidden": "true"
25446
- }, qs = 40, Ds = 32, Bs = 32, Pr = 32, Os = "__reset__", hA = 20, kI = /* @__PURE__ */ q({
25446
+ }, Ds = 40, Bs = 32, Os = 32, Pr = 32, Is = "__reset__", hA = 20, kI = /* @__PURE__ */ q({
25447
25447
  __name: "DataGrid",
25448
25448
  props: {
25449
25449
  columns: {},
@@ -25624,31 +25624,31 @@ const MT = {
25624
25624
  Ne(K, !Ae.value.includes(K));
25625
25625
  }
25626
25626
  const Aa = y(() => o.draggable ? typeof o.draggable == "object" ? o.draggable : {} : null), Pa = y(() => !!Aa.value), sn = y(() => Pa.value && !Aa.value?.pivotColumn ? "__drag__" : null), fa = P(null), Vn = P(null);
25627
- function ml(K, J) {
25627
+ function hl(K, J) {
25628
25628
  const X = [...v.value];
25629
25629
  if (K === J || K < 0 || J < 0 || K >= X.length || J >= X.length) return;
25630
25630
  const [ye] = X.splice(K, 1);
25631
25631
  X.splice(J, 0, ye), m(X), r("reorder", { rows: X, key: c(ye), from: K, to: J });
25632
25632
  }
25633
- const hl = (K) => {
25633
+ const yl = (K) => {
25634
25634
  const J = v.value.indexOf(K);
25635
- J > 0 && ml(J, J - 1);
25636
- }, yl = (K) => {
25635
+ J > 0 && hl(J, J - 1);
25636
+ }, gl = (K) => {
25637
25637
  const J = v.value.indexOf(K);
25638
- J >= 0 && J < v.value.length - 1 && ml(J, J + 1);
25638
+ J >= 0 && J < v.value.length - 1 && hl(J, J + 1);
25639
25639
  };
25640
25640
  function Kc(K, J) {
25641
25641
  fa.value = c(J), K.dataTransfer?.setData("text/plain", fa.value), K.dataTransfer && (K.dataTransfer.effectAllowed = "move");
25642
25642
  }
25643
- function gl(K) {
25643
+ function bl(K) {
25644
25644
  const J = v.value.find((X) => c(X) === fa.value);
25645
25645
  return !J || J === K ? !1 : Aa.value?.withinGroup && o.group ? J[o.group.field] === K[o.group.field] : !0;
25646
25646
  }
25647
25647
  function Wc(K, J, X) {
25648
- gl(J) && (Vn.value = X, K.dataTransfer && (K.dataTransfer.dropEffect = "move"));
25648
+ bl(J) && (Vn.value = X, K.dataTransfer && (K.dataTransfer.dropEffect = "move"));
25649
25649
  }
25650
25650
  function Hc(K, J) {
25651
- if (Vn.value = null, !gl(J)) return;
25651
+ if (Vn.value = null, !bl(J)) return;
25652
25652
  const X = v.value.find((va) => c(va) === fa.value);
25653
25653
  if (fa.value = null, !X) return;
25654
25654
  const ye = [...v.value], Le = ye.indexOf(X), qt = ye.indexOf(J);
@@ -25659,35 +25659,35 @@ const MT = {
25659
25659
  function jc() {
25660
25660
  fa.value = null, Vn.value = null;
25661
25661
  }
25662
- function bl(K, J) {
25663
- K.key === "ArrowUp" ? (K.preventDefault(), hl(J)) : K.key === "ArrowDown" && (K.preventDefault(), yl(J));
25662
+ function wl(K, J) {
25663
+ K.key === "ArrowUp" ? (K.preventDefault(), yl(J)) : K.key === "ArrowDown" && (K.preventDefault(), gl(J));
25664
25664
  }
25665
25665
  const Ln = P(null);
25666
- function wl(K, J) {
25666
+ function xl(K, J) {
25667
25667
  return Ln.value?.key === c(K) && Ln.value?.column === J.key;
25668
25668
  }
25669
25669
  function Uc(K, J) {
25670
25670
  Ln.value = { key: c(K), column: J.key }, r("cellEditStart", { row: K, column: J, key: c(K) });
25671
25671
  }
25672
25672
  function Gc(K, J) {
25673
- wl(K, J) && (Ln.value = null, r("cellEditEnd", { row: K, column: J, key: c(K) }));
25673
+ xl(K, J) && (Ln.value = null, r("cellEditEnd", { row: K, column: J, key: c(K) }));
25674
25674
  }
25675
25675
  function Yc(K, J, X) {
25676
25676
  const ye = K[J.key];
25677
25677
  m(v.value.map((Le) => Le === K ? { ...Le, [J.key]: X } : Le)), r("cellUpdate", { row: K, column: J, key: c(K), value: X, previous: ye });
25678
25678
  }
25679
- const nr = P(h.columnOrder ?? null), or = P(h.hiddenColumns ?? null), un = y(() => $T(o.columns, o.columnOrder ?? nr.value ?? [])), xl = y(() => o.columns.filter((K) => K.defaultHidden).map((K) => K.key)), dn = y(() => o.hiddenColumns ?? or.value ?? xl.value), rr = y(() => un.value.filter((K) => K.hideable === !1 || !dn.value.includes(K.key)));
25679
+ const nr = P(h.columnOrder ?? null), or = P(h.hiddenColumns ?? null), un = y(() => $T(o.columns, o.columnOrder ?? nr.value ?? [])), _l = y(() => o.columns.filter((K) => K.defaultHidden).map((K) => K.key)), dn = y(() => o.hiddenColumns ?? or.value ?? _l.value), rr = y(() => un.value.filter((K) => K.hideable === !1 || !dn.value.includes(K.key)));
25680
25680
  function ir(K) {
25681
25681
  nr.value = K, r("update:columnOrder", K);
25682
25682
  }
25683
- function _l(K) {
25683
+ function kl(K) {
25684
25684
  or.value = K, r("update:hiddenColumns", K);
25685
25685
  }
25686
25686
  function Xc(K, J) {
25687
25687
  const X = kt.value[kt.value.indexOf(K) + J];
25688
25688
  if (!X) return;
25689
25689
  const ye = un.value.map((Le) => Le.key);
25690
- ir($s(ye, K.key, ye.indexOf(X.key)));
25690
+ ir(Es(ye, K.key, ye.indexOf(X.key)));
25691
25691
  }
25692
25692
  function Zc(K, J) {
25693
25693
  const X = K.key === "ArrowLeft" ? -1 : K.key === "ArrowRight" ? 1 : 0;
@@ -25706,11 +25706,11 @@ const MT = {
25706
25706
  }
25707
25707
  function ef(K) {
25708
25708
  const J = qa.value;
25709
- if (kl(), !J || J === K.key) return;
25709
+ if (Cl(), !J || J === K.key) return;
25710
25710
  const X = un.value.map((ye) => ye.key);
25711
- ir($s(X, J, X.indexOf(K.key)));
25711
+ ir(Es(X, J, X.indexOf(K.key)));
25712
25712
  }
25713
- function kl() {
25713
+ function Cl() {
25714
25714
  qa.value = null, lr.value = null;
25715
25715
  }
25716
25716
  const tf = y(() => [
@@ -25718,68 +25718,68 @@ const MT = {
25718
25718
  type: "checkbox",
25719
25719
  key: K.key,
25720
25720
  label: K.label,
25721
- hint: $l.value.includes(K.key) ? d.value.hiddenByWidth : void 0,
25721
+ hint: El.value.includes(K.key) ? d.value.hiddenByWidth : void 0,
25722
25722
  // The last shown column stays, so the grid never loses all its columns.
25723
25723
  disabled: K.hideable === !1 || kt.value.length === 1 && kt.value[0] === K
25724
25724
  })),
25725
25725
  { type: "separator", key: "__separator__" },
25726
- { key: Os, label: d.value.resetColumns }
25726
+ { key: Is, label: d.value.resetColumns }
25727
25727
  ]);
25728
25728
  function af(K, J) {
25729
- fn.value = J ? [...fn.value, K] : fn.value.filter((X) => X !== K), !(J && !dn.value.includes(K)) && _l(J ? dn.value.filter((X) => X !== K) : [...dn.value, K]);
25729
+ fn.value = J ? [...fn.value, K] : fn.value.filter((X) => X !== K), !(J && !dn.value.includes(K)) && kl(J ? dn.value.filter((X) => X !== K) : [...dn.value, K]);
25730
25730
  }
25731
- function Cl() {
25732
- ir(o.columns.map((K) => K.key)), _l([...xl.value]), fn.value = [], pa.value = {}, r("update:columnWidths", {});
25731
+ function Sl() {
25732
+ ir(o.columns.map((K) => K.key)), kl([..._l.value]), fn.value = [], pa.value = {}, r("update:columnWidths", {});
25733
25733
  }
25734
25734
  function nf(K) {
25735
- K === Os && Cl();
25735
+ K === Is && Sl();
25736
25736
  }
25737
- const Sl = Me("scroller"), sr = ta(y(() => Sl.value?.viewport)), pa = P(h.columnWidths ?? {});
25737
+ const $l = Me("scroller"), sr = ta(y(() => $l.value?.viewport)), pa = P(h.columnWidths ?? {});
25738
25738
  pe(() => o.columnWidths, () => {
25739
25739
  pa.value = {};
25740
25740
  });
25741
25741
  const of = (K) => ur(K) === void 0 && !/%\s*$/.test(String(K.width ?? ""));
25742
25742
  function cn(K) {
25743
- return As(K.minWidth) ?? (of(K) ? OT : BT);
25743
+ return Ps(K.minWidth) ?? (of(K) ? OT : BT);
25744
25744
  }
25745
25745
  function ur(K) {
25746
- return pa.value[K.key] ?? o.columnWidths?.[K.key] ?? As(K.width);
25746
+ return pa.value[K.key] ?? o.columnWidths?.[K.key] ?? Ps(K.width);
25747
25747
  }
25748
- const dr = y(() => (o.selectable ? qs : 0) + (fe.value ? Ds : 0) + (sn.value ? Bs : 0) + (o.columnChooser ? Pr : 0)), fn = P([]), $l = y(() => RT(rr.value.map((K) => ({
25748
+ const dr = y(() => (o.selectable ? Ds : 0) + (fe.value ? Bs : 0) + (sn.value ? Os : 0) + (o.columnChooser ? Pr : 0)), fn = P([]), El = y(() => RT(rr.value.map((K) => ({
25749
25749
  key: K.key,
25750
25750
  minWidth: ur(K) ?? cn(K),
25751
25751
  // A fixed (`hideable: false`) column only drops when the author gave it a priority.
25752
25752
  priority: K.hideable === !1 && K.priority === void 0 || fn.value.includes(K.key) ? void 0 : K.priority
25753
- })), sr.value - dr.value)), kt = y(() => rr.value.filter((K) => !$l.value.includes(K.key))), cr = y(() => {
25753
+ })), sr.value - dr.value)), kt = y(() => rr.value.filter((K) => !El.value.includes(K.key))), cr = y(() => {
25754
25754
  const K = Math.max(0, sr.value - dr.value);
25755
25755
  return IT(kt.value.map((J) => {
25756
25756
  const X = /^\s*(\d+(\.\d+)?)%\s*$/.exec(String(J.width ?? "")), ye = ur(J) ?? (X ? Math.max(cn(J), Math.floor(K * Number(X[1]) / 100)) : void 0);
25757
25757
  return { key: J.key, width: ye, minWidth: cn(J), flex: J.flex ?? 1 };
25758
25758
  }), K);
25759
- }), El = () => ({ ...cr.value }), rf = y(() => (o.selectable ? 1 : 0) + (fe.value ? 1 : 0) + (sn.value ? 1 : 0) + (o.columnChooser ? 1 : 0)), lf = y(() => Object.values(cr.value).reduce((K, J) => K + J, 0) + dr.value), sf = (K) => K.resizable ?? o.resizable;
25760
- function Tl(K, J) {
25759
+ }), Tl = () => ({ ...cr.value }), rf = y(() => (o.selectable ? 1 : 0) + (fe.value ? 1 : 0) + (sn.value ? 1 : 0) + (o.columnChooser ? 1 : 0)), lf = y(() => Object.values(cr.value).reduce((K, J) => K + J, 0) + dr.value), sf = (K) => K.resizable ?? o.resizable;
25760
+ function Al(K, J) {
25761
25761
  pa.value = J, r("update:columnWidths", J), r("columnResize", { key: K.key, width: J[K.key] });
25762
25762
  }
25763
25763
  let Da;
25764
25764
  function uf(K, J) {
25765
- const X = El(), ye = K.clientX, Le = (va) => ({ ...X, [J.key]: Ps(X[J.key] + va - ye, cn(J)) }), qt = (va) => {
25765
+ const X = Tl(), ye = K.clientX, Le = (va) => ({ ...X, [J.key]: qs(X[J.key] + va - ye, cn(J)) }), qt = (va) => {
25766
25766
  pa.value = Le(va.clientX);
25767
25767
  }, Rt = (va) => {
25768
- Da?.(), Tl(J, Le(va.clientX));
25768
+ Da?.(), Al(J, Le(va.clientX));
25769
25769
  };
25770
25770
  Da = () => {
25771
25771
  document.removeEventListener("pointermove", qt), document.removeEventListener("pointerup", Rt), document.removeEventListener("pointercancel", Rt), Da = void 0;
25772
25772
  }, document.addEventListener("pointermove", qt), document.addEventListener("pointerup", Rt), document.addEventListener("pointercancel", Rt);
25773
25773
  }
25774
25774
  function df(K, J) {
25775
- const X = K.key === "ArrowRight" ? Ts : K.key === "ArrowLeft" ? -Ts : 0;
25775
+ const X = K.key === "ArrowRight" ? As : K.key === "ArrowLeft" ? -As : 0;
25776
25776
  if (X === 0) return;
25777
25777
  K.preventDefault();
25778
- const ye = El();
25779
- Tl(J, { ...ye, [J.key]: Ps(ye[J.key] + X, cn(J)) });
25778
+ const ye = Tl();
25779
+ Al(J, { ...ye, [J.key]: qs(ye[J.key] + X, cn(J)) });
25780
25780
  }
25781
25781
  He(() => Da?.()), oc();
25782
- const Al = Me("gridRoot");
25782
+ const Pl = Me("gridRoot");
25783
25783
  function cf({ scope: K }) {
25784
25784
  const J = kt.value.find((Le) => Le.key === K.dataset.column);
25785
25785
  if (!J) return;
@@ -25801,15 +25801,15 @@ const MT = {
25801
25801
  });
25802
25802
  });
25803
25803
  }
25804
- const Pl = ri;
25805
- function ql(K, J) {
25804
+ const ql = ii;
25805
+ function Dl(K, J) {
25806
25806
  return {
25807
25807
  row: K.row,
25808
25808
  value: K.row[J.key],
25809
25809
  column: J,
25810
25810
  index: K.index,
25811
25811
  expanded: K.expanded,
25812
- editing: wl(K.row, J),
25812
+ editing: xl(K.row, J),
25813
25813
  startEdit: () => Uc(K.row, J),
25814
25814
  stopEdit: () => Gc(K.row, J),
25815
25815
  toggleExpand: () => ca(c(K.row, K.index)),
@@ -25829,7 +25829,7 @@ const MT = {
25829
25829
  return K;
25830
25830
  }
25831
25831
  return T.value.forEach(J), K;
25832
- }), zn = y(() => Fn.value.flatMap((K) => K.kind === "row" ? [c(K.row, K.index)] : [])), Dl = y(() => o.singleSelect ? zn.value.find((K) => o.selectedKeys.includes(K)) ?? zn.value[0] ?? null : null), ff = { ArrowUp: -1, ArrowDown: 1 };
25832
+ }), zn = y(() => Fn.value.flatMap((K) => K.kind === "row" ? [c(K.row, K.index)] : [])), Bl = y(() => o.singleSelect ? zn.value.find((K) => o.selectedKeys.includes(K)) ?? zn.value[0] ?? null : null), ff = { ArrowUp: -1, ArrowDown: 1 };
25833
25833
  function pf(K, J, X) {
25834
25834
  if (!o.singleSelect || K.target !== K.currentTarget) return;
25835
25835
  if (K.key === "Enter") {
@@ -25851,17 +25851,17 @@ const MT = {
25851
25851
  collapseAllRows: tt,
25852
25852
  expandAllGroups: ot,
25853
25853
  collapseAllGroups: Mn,
25854
- moveRowUp: hl,
25855
- moveRowDown: yl,
25856
- resetColumns: Cl
25854
+ moveRowUp: yl,
25855
+ moveRowDown: gl,
25856
+ resetColumns: Sl
25857
25857
  }), (K, J) => (f(), g("div", {
25858
25858
  ref_key: "gridRoot",
25859
- ref: Al,
25859
+ ref: Pl,
25860
25860
  class: "flex min-h-0 min-w-0 flex-1 flex-col text-[length:var(--ui-font-size)]",
25861
25861
  "data-syno-pkg-land-ui": ""
25862
25862
  }, [
25863
25863
  I(ea, {
25864
- target: Al.value,
25864
+ target: Pl.value,
25865
25865
  resolve: cf
25866
25866
  }, null, 8, ["target"]),
25867
25867
  I(hk, {
@@ -25872,7 +25872,7 @@ const MT = {
25872
25872
  default: _(() => [
25873
25873
  I(Tc, {
25874
25874
  ref_key: "scroller",
25875
- ref: Sl,
25875
+ ref: $l,
25876
25876
  class: "h-full",
25877
25877
  "viewport-class": "h-full overflow-auto",
25878
25878
  "viewport-style": { maxHeight: o.maxHeight }
@@ -25885,11 +25885,11 @@ const MT = {
25885
25885
  M("colgroup", null, [
25886
25886
  fe.value ? (f(), g("col", {
25887
25887
  key: 0,
25888
- style: _e({ width: `${Ds}px` })
25888
+ style: _e({ width: `${Bs}px` })
25889
25889
  }, null, 4)) : V("", !0),
25890
25890
  o.selectable ? (f(), g("col", {
25891
25891
  key: 1,
25892
- style: _e({ width: `${qs}px` })
25892
+ style: _e({ width: `${Ds}px` })
25893
25893
  }, null, 4)) : V("", !0),
25894
25894
  (f(!0), g(ce, null, ke(kt.value, (X) => (f(), g("col", {
25895
25895
  key: X.key,
@@ -25897,7 +25897,7 @@ const MT = {
25897
25897
  }, null, 4))), 128)),
25898
25898
  sn.value ? (f(), g("col", {
25899
25899
  key: 2,
25900
- style: _e({ width: `${Bs}px` })
25900
+ style: _e({ width: `${Os}px` })
25901
25901
  }, null, 4)) : V("", !0),
25902
25902
  J[7] || (J[7] = M("col", { "data-grid-filler": "" }, null, -1)),
25903
25903
  o.columnChooser ? (f(), g("col", {
@@ -25931,7 +25931,7 @@ const MT = {
25931
25931
  "aria-keyshortcuts": o.columnReorder ? "Alt+ArrowLeft Alt+ArrowRight" : void 0,
25932
25932
  style: _e(o.columnChooser && X === kt.value[kt.value.length - 1] ? { paddingInlineEnd: `${Pr}px` } : void 0),
25933
25933
  class: te(["relative h-[var(--ui-grid-header-height)] select-none overflow-hidden border-b border-r border-[var(--ui-border-subtle)] px-2 font-normal text-ellipsis whitespace-nowrap outline-none focus-visible:shadow-[inset_0_0_0_1px_var(--ui-primary),inset_0_0_0_3px_var(--ui-focus-ring)]", [
25934
- i(Pl)(X),
25934
+ i(ql)(X),
25935
25935
  X.sortable && "cursor-pointer hover:bg-[var(--ui-surface-hover)]",
25936
25936
  qa.value === X.key && "opacity-40",
25937
25937
  lr.value === X.key && "shadow-[inset_2px_0_0_0_var(--ui-primary)]"
@@ -25945,7 +25945,7 @@ const MT = {
25945
25945
  onDragstart: (ye) => Jc(ye, X),
25946
25946
  onDragover: (ye) => Qc(ye, X),
25947
25947
  onDrop: $e((ye) => ef(X), ["prevent"]),
25948
- onDragend: kl
25948
+ onDragend: Cl
25949
25949
  }, [
25950
25950
  M("div", {
25951
25951
  class: te(["inline-flex max-w-full items-center gap-1", X.align === "right" && "flex-row-reverse"])
@@ -26090,7 +26090,7 @@ const MT = {
26090
26090
  key: 2,
26091
26091
  "data-row-key": c(X.row, X.index),
26092
26092
  draggable: Pa.value || void 0,
26093
- tabindex: Dl.value === null ? void 0 : Dl.value === c(X.row, X.index) ? 0 : -1,
26093
+ tabindex: Bl.value === null ? void 0 : Bl.value === c(X.row, X.index) ? 0 : -1,
26094
26094
  "aria-selected": o.selectable || o.singleSelect ? o.selectedKeys.includes(c(X.row, X.index)) : void 0,
26095
26095
  class: te([
26096
26096
  "border-b border-[var(--ui-border-subtle)] hover:bg-[var(--ui-surface-hover)]",
@@ -26166,7 +26166,7 @@ const MT = {
26166
26166
  key: ye.key,
26167
26167
  "data-column": ye.key,
26168
26168
  "data-column-type": ye.type ?? "text",
26169
- class: te(["h-[calc(var(--ui-grid-row-height)+1px)] px-2 text-[var(--ui-text)]", [i(Pl)(ye), i(Ac)(ye) && "tabular-nums", ye.type === "actions" ? "" : ye.wrap ? "py-1 [overflow-wrap:anywhere]" : "truncate"]])
26169
+ class: te(["h-[calc(var(--ui-grid-row-height)+1px)] px-2 text-[var(--ui-text)]", [i(ql)(ye), i(Ac)(ye) && "tabular-nums", ye.type === "actions" ? "" : ye.wrap ? "py-1 [overflow-wrap:anywhere]" : "truncate"]])
26170
26170
  }, [
26171
26171
  Aa.value?.pivotColumn === ye.key ? (f(), g("span", {
26172
26172
  key: 0,
@@ -26177,9 +26177,9 @@ const MT = {
26177
26177
  class: "mr-1 inline-flex size-5 shrink-0 cursor-grab items-center justify-center rounded-[var(--ui-radius-sm)] align-middle text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]",
26178
26178
  onClick: J[2] || (J[2] = $e(() => {
26179
26179
  }, ["stop"])),
26180
- onKeydown: (Le) => bl(Le, X.row)
26180
+ onKeydown: (Le) => wl(Le, X.row)
26181
26181
  }, [
26182
- I(i(Il), {
26182
+ I(i(Rl), {
26183
26183
  class: "size-3.5",
26184
26184
  "aria-hidden": "true"
26185
26185
  })
@@ -26189,10 +26189,10 @@ const MT = {
26189
26189
  "data-grid-actions": "",
26190
26190
  class: te(i(Pc))
26191
26191
  }, [
26192
- S(K.$slots, `cell-${ye.key}`, ne({ ref_for: !0 }, ql(X, ye)), () => [
26192
+ S(K.$slots, `cell-${ye.key}`, ne({ ref_for: !0 }, Dl(X, ye)), () => [
26193
26193
  he(U(X.row[ye.key]), 1)
26194
26194
  ])
26195
- ], 2)) : S(K.$slots, `cell-${ye.key}`, ne({ ref_for: !0 }, ql(X, ye)), () => [
26195
+ ], 2)) : S(K.$slots, `cell-${ye.key}`, ne({ ref_for: !0 }, Dl(X, ye)), () => [
26196
26196
  he(U(X.row[ye.key]), 1)
26197
26197
  ], void 0, 2)
26198
26198
  ], 10, rA))), 128)),
@@ -26205,9 +26205,9 @@ const MT = {
26205
26205
  class: "inline-flex size-5 cursor-grab items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-secondary)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_1px_var(--ui-primary),0_0_0_3px_var(--ui-focus-ring)]",
26206
26206
  onClick: J[3] || (J[3] = $e(() => {
26207
26207
  }, ["stop"])),
26208
- onKeydown: (ye) => bl(ye, X.row)
26208
+ onKeydown: (ye) => wl(ye, X.row)
26209
26209
  }, [
26210
- I(i(Il), {
26210
+ I(i(Rl), {
26211
26211
  class: "size-3.5",
26212
26212
  "aria-hidden": "true"
26213
26213
  })
@@ -26247,7 +26247,7 @@ const MT = {
26247
26247
  onClick: J[4] || (J[4] = (X) => Z(z.value - 1))
26248
26248
  }, {
26249
26249
  default: _(() => [
26250
- I(i(gi), { class: "size-3.5" })
26250
+ I(i(bi), { class: "size-3.5" })
26251
26251
  ]),
26252
26252
  _: 1
26253
26253
  }, 8, ["label", "disabled"]),
@@ -26293,8 +26293,8 @@ const MT = {
26293
26293
  ], 512));
26294
26294
  }
26295
26295
  });
26296
- function sl(e) {
26297
- return e.map((a) => ({ ...a, children: a.children ? sl(a.children) : a.children }));
26296
+ function ul(e) {
26297
+ return e.map((a) => ({ ...a, children: a.children ? ul(a.children) : a.children }));
26298
26298
  }
26299
26299
  function ya(e, a) {
26300
26300
  for (const t of e) {
@@ -26303,14 +26303,14 @@ function ya(e, a) {
26303
26303
  if (n) return n;
26304
26304
  }
26305
26305
  }
26306
- function ii(e) {
26307
- return e.flatMap((a) => [a, ...ii(a.children ?? [])]);
26306
+ function li(e) {
26307
+ return e.flatMap((a) => [a, ...li(a.children ?? [])]);
26308
26308
  }
26309
- function ul(e, a) {
26310
- return e.id === a || (e.children ?? []).some((t) => ul(t, a));
26309
+ function dl(e, a) {
26310
+ return e.id === a || (e.children ?? []).some((t) => dl(t, a));
26311
26311
  }
26312
- function li(e) {
26313
- return e.disabled ? [] : e.children?.length ? e.children.flatMap(li) : [e.id];
26312
+ function si(e) {
26313
+ return e.disabled ? [] : e.children?.length ? e.children.flatMap(si) : [e.id];
26314
26314
  }
26315
26315
  function ar(e, a) {
26316
26316
  for (const t of e) {
@@ -26331,10 +26331,10 @@ function gA(e, a, t, n) {
26331
26331
  const r = o.findIndex((l) => l.id === a);
26332
26332
  r < 0 || o.splice(t === "top" ? r : r + 1, 0, n);
26333
26333
  }
26334
- function si(e, a, t, n) {
26334
+ function ui(e, a, t, n) {
26335
26335
  const o = ya(e, a), r = ya(e, t);
26336
- if (!o || !r || a === t || ul(o, t)) return e;
26337
- const l = sl(e);
26336
+ if (!o || !r || a === t || dl(o, t)) return e;
26337
+ const l = ul(e);
26338
26338
  yA(l, a);
26339
26339
  const s = ya(l, a) ?? o;
26340
26340
  if (n === "inner") {
@@ -26347,10 +26347,10 @@ function bA(e, a, t) {
26347
26347
  const n = ar(e, a);
26348
26348
  if (!n) return e;
26349
26349
  const o = n.findIndex((l) => l.id === a), r = o + t;
26350
- return o < 0 || r < 0 || r >= n.length ? e : si(e, a, n[r].id, t < 0 ? "top" : "bottom");
26350
+ return o < 0 || r < 0 || r >= n.length ? e : ui(e, a, n[r].id, t < 0 ? "top" : "bottom");
26351
26351
  }
26352
26352
  function wA(e, a, t) {
26353
- const n = sl(e), o = ya(n, a);
26353
+ const n = ul(e), o = ya(n, a);
26354
26354
  return o && (o.children = t), n;
26355
26355
  }
26356
26356
  const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
@@ -26382,7 +26382,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26382
26382
  function c(Q) {
26383
26383
  u.value = Q, s("update:nodes", Q);
26384
26384
  }
26385
- const p = y(() => ii(d.value));
26385
+ const p = y(() => li(d.value));
26386
26386
  function v(Q) {
26387
26387
  return ya(d.value, Q);
26388
26388
  }
@@ -26399,14 +26399,14 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26399
26399
  }
26400
26400
  const b = P([...l.defaultCheckedKeys]), x = y(() => l.checkedKeys ?? b.value);
26401
26401
  function w(Q) {
26402
- const se = li(Q);
26402
+ const se = si(Q);
26403
26403
  if (!se.length) return x.value.includes(Q.id);
26404
26404
  const oe = se.filter((de) => x.value.includes(de)).length;
26405
26405
  return oe === 0 ? !1 : oe === se.length ? !0 : "indeterminate";
26406
26406
  }
26407
26407
  function C(Q, se) {
26408
26408
  if (Q.disabled) return;
26409
- const oe = li(Q), de = new Set(x.value);
26409
+ const oe = si(Q), de = new Set(x.value);
26410
26410
  for (const Pe of oe.length ? oe : [Q.id])
26411
26411
  se ? de.add(Pe) : de.delete(Pe);
26412
26412
  const we = [...de];
@@ -26455,7 +26455,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26455
26455
  se && L(se, !1);
26456
26456
  }, j = y(() => l.draggable ? typeof l.draggable == "object" ? l.draggable : {} : null), z = y(() => !!j.value), T = P(null), W = P(null), H = (Q) => !Q.disabled && z.value && Q.draggable !== !1 && (j.value?.canDrag?.(Q) ?? !0);
26457
26457
  function Z(Q, se, oe) {
26458
- return !Q || se.disabled || Q.id === se.id || ul(Q, se.id) || !H(Q) || oe === "inner" && se.canAppend === !1 ? !1 : j.value?.canDrop?.({ node: Q, target: se, position: oe }) ?? !0;
26458
+ return !Q || se.disabled || Q.id === se.id || dl(Q, se.id) || !H(Q) || oe === "inner" && se.canAppend === !1 ? !1 : j.value?.canDrop?.({ node: Q, target: se, position: oe }) ?? !0;
26459
26459
  }
26460
26460
  function G(Q) {
26461
26461
  H(Q) && (T.value = Q.id);
@@ -26478,7 +26478,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26478
26478
  function ue(Q, se) {
26479
26479
  const oe = T.value, de = oe ? v(oe) : void 0, we = W.value?.id === se.id ? W.value.position : Y(Q, Q.currentTarget);
26480
26480
  if (T.value = null, W.value = null, !de || !Z(de, se, we)) return;
26481
- const Pe = si(d.value, de.id, se.id, we);
26481
+ const Pe = ui(d.value, de.id, se.id, we);
26482
26482
  Pe !== d.value && (c(Pe), s("reorder", { node: de, target: se, position: we, nodes: Pe }));
26483
26483
  }
26484
26484
  function re() {
@@ -26486,7 +26486,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26486
26486
  }
26487
26487
  function le(Q, se) {
26488
26488
  if (Q.disabled) return;
26489
- const oe = ii(d.value).find((je) => je.children?.some((Ge) => Ge.id === Q.id)), de = oe ? oe.children ?? [] : d.value, we = de[de.findIndex((je) => je.id === Q.id) + se];
26489
+ const oe = li(d.value).find((je) => je.children?.some((Ge) => Ge.id === Q.id)), de = oe ? oe.children ?? [] : d.value, we = de[de.findIndex((je) => je.id === Q.id) + se];
26490
26490
  if (!we) return;
26491
26491
  const Pe = bA(d.value, Q.id, se);
26492
26492
  Pe !== d.value && (c(Pe), s("reorder", { node: Q, target: we, position: se < 0 ? "top" : "bottom", nodes: Pe }));
@@ -26497,7 +26497,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26497
26497
  function Ee(Q, se, oe) {
26498
26498
  const de = v(Q), we = v(se);
26499
26499
  if (!de || !we) return;
26500
- const Pe = si(d.value, Q, se, oe);
26500
+ const Pe = ui(d.value, Q, se, oe);
26501
26501
  c(Pe), s("reorder", { node: de, target: we, position: oe, nodes: Pe });
26502
26502
  }
26503
26503
  const Se = (Q) => W.value?.id !== Q.id ? "" : W.value.position === "inner" ? "bg-[var(--ui-primary-soft)] outline outline-1 outline-[var(--ui-primary)]" : W.value.position === "top" ? "shadow-[inset_0_2px_0_0_var(--ui-primary)]" : "shadow-[inset_0_-2px_0_0_var(--ui-primary)]";
@@ -26595,7 +26595,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26595
26595
  "aria-hidden": "true"
26596
26596
  }, null, 8, ["class"]))
26597
26597
  ], 8, xA)) : (f(), g("span", _A)),
26598
- l.showIcons ? (f(), $(ze(de.value.icon ?? (de.hasChildren ? we ? i(xi) : i(_i) : i(Vr))), {
26598
+ l.showIcons ? (f(), $(ze(de.value.icon ?? (de.hasChildren ? we ? i(_i) : i(ki) : i(Lr))), {
26599
26599
  key: 3,
26600
26600
  class: te(["size-4 shrink-0 text-[var(--ui-text-muted)]", l.selectionStyle === "accent" && "group-data-[selected]:text-[var(--ui-primary)]"]),
26601
26601
  "aria-hidden": "true"
@@ -26910,7 +26910,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
26910
26910
  onDrop: $e(k, ["prevent"]),
26911
26911
  onClick: p
26912
26912
  }, [
26913
- (f(), $(ze(t.directory ? i(xi) : i(Ff)), {
26913
+ (f(), $(ze(t.directory ? i(_i) : i(Ff)), {
26914
26914
  class: "mb-2 size-7 text-[var(--ui-primary)]",
26915
26915
  "aria-hidden": "true"
26916
26916
  })),
@@ -27016,7 +27016,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27016
27016
  return;
27017
27017
  }
27018
27018
  d.value = !0;
27019
- const E = n.modelValue, k = await il(E);
27019
+ const E = n.modelValue, k = await ll(E);
27020
27020
  if (d.value = !1, clearTimeout(v), !k) {
27021
27021
  c.value = "failed", C(), o("actionFailed");
27022
27022
  return;
@@ -27079,7 +27079,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27079
27079
  key: 1,
27080
27080
  class: "size-4",
27081
27081
  "aria-hidden": "true"
27082
- })) : (f(), $(i(ki), {
27082
+ })) : (f(), $(i(Ci), {
27083
27083
  key: 2,
27084
27084
  class: "size-4",
27085
27085
  "aria-hidden": "true"
@@ -27107,9 +27107,9 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27107
27107
  setup(e, { emit: a }) {
27108
27108
  const t = e, n = a, o = Ue(), r = P(!1);
27109
27109
  let l;
27110
- const s = !el(), u = Me("root"), d = y(() => t.path.split("/").filter(Boolean).pop() ?? t.path);
27110
+ const s = !tl(), u = Me("root"), d = y(() => t.path.split("/").filter(Boolean).pop() ?? t.path);
27111
27111
  async function c() {
27112
- if (!await il(t.path)) {
27112
+ if (!await ll(t.path)) {
27113
27113
  n("copyFailed");
27114
27114
  return;
27115
27115
  }
@@ -27125,7 +27125,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27125
27125
  "data-display": e.display,
27126
27126
  "data-syno-pkg-land-ui": ""
27127
27127
  }, [
27128
- I(i(_i), {
27128
+ I(i(ki), {
27129
27129
  class: "size-3.5 shrink-0 fill-current text-[var(--ui-file-folder)]",
27130
27130
  "aria-hidden": "true"
27131
27131
  }),
@@ -27160,7 +27160,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27160
27160
  key: 0,
27161
27161
  class: "size-3.5 text-[var(--ui-success)]",
27162
27162
  "aria-hidden": "true"
27163
- })) : (f(), $(i(ki), {
27163
+ })) : (f(), $(i(Ci), {
27164
27164
  key: 1,
27165
27165
  class: "size-3.5",
27166
27166
  "aria-hidden": "true"
@@ -27196,7 +27196,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27196
27196
  },
27197
27197
  emits: ["copied", "failed"],
27198
27198
  setup(e, { emit: a }) {
27199
- const t = e, n = a, o = Ue(), r = y(() => t.label ?? o("Copy")), l = P(), s = P(""), u = y(() => l.value === "copied" ? mt : l.value === "failed" ? gt : t.icon ?? ki), d = y(() => l.value === "copied" || l.value === "failed" ? l.value : "idle");
27199
+ const t = e, n = a, o = Ue(), r = y(() => t.label ?? o("Copy")), l = P(), s = P(""), u = y(() => l.value === "copied" ? mt : l.value === "failed" ? gt : t.icon ?? Ci), d = y(() => l.value === "copied" || l.value === "failed" ? l.value : "idle");
27200
27200
  let c = !1, p = !1, v;
27201
27201
  async function m() {
27202
27202
  if (!(c || t.disabled)) {
@@ -27204,7 +27204,7 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27204
27204
  try {
27205
27205
  const b = typeof t.text == "function" ? await t.text() : t.text;
27206
27206
  if (b === void 0 || p) return;
27207
- const x = await il(b);
27207
+ const x = await ll(b);
27208
27208
  if (p) return;
27209
27209
  h(x ? "copied" : "failed"), n(x ? "copied" : "failed", b);
27210
27210
  } finally {
@@ -27899,23 +27899,23 @@ const xA = ["disabled", "aria-label", "aria-expanded", "onClick"], _A = {
27899
27899
  ], 10, oP));
27900
27900
  }
27901
27901
  }), mn = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], BI = [60, 30, 15], qr = 10;
27902
- function dl(e) {
27903
- return 60 / e;
27904
- }
27905
27902
  function cl(e) {
27906
- return 24 * dl(e);
27903
+ return 60 / e;
27907
27904
  }
27908
27905
  function fl(e) {
27909
- return mn.length * cl(e);
27906
+ return 24 * cl(e);
27907
+ }
27908
+ function pl(e) {
27909
+ return mn.length * fl(e);
27910
27910
  }
27911
27911
  function OI(e, a) {
27912
- return typeof e == "string" && e.length === fl(a) && /^\d*$/.test(e);
27912
+ return typeof e == "string" && e.length === pl(a) && /^\d*$/.test(e);
27913
27913
  }
27914
27914
  function II(e, a = "0") {
27915
- return a.repeat(fl(e));
27915
+ return a.repeat(pl(e));
27916
27916
  }
27917
- function Is(e, a, t, n) {
27918
- return e * cl(n) + a * dl(n) + t;
27917
+ function Rs(e, a, t, n) {
27918
+ return e * fl(n) + a * cl(n) + t;
27919
27919
  }
27920
27920
  function rP(e) {
27921
27921
  return e.map((a, t) => ({ option: a, index: t })).sort((a, t) => (a.option.order ?? 0) - (t.option.order ?? 0) || a.index - t.index);
@@ -27968,7 +27968,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
27968
27968
  function s(me, be) {
27969
27969
  l.has(me) || (l.add(me), console.warn(`[ScheduleTable] ${be}`));
27970
27970
  }
27971
- const u = y(() => dl(o.splitMinute)), d = y(() => cl(o.splitMinute)), c = y(() => fl(o.splitMinute)), p = y(() => mn.length * d.value), v = y(() => o.modelValue.length === c.value), m = y(() => (o.options ?? []).slice(0, qr)), h = y(() => rP(m.value)), b = y(() => m.value.length > 0 && !o.disabled), x = P(w(o.defaultSelected));
27971
+ const u = y(() => cl(o.splitMinute)), d = y(() => fl(o.splitMinute)), c = y(() => pl(o.splitMinute)), p = y(() => mn.length * d.value), v = y(() => o.modelValue.length === c.value), m = y(() => (o.options ?? []).slice(0, qr)), h = y(() => rP(m.value)), b = y(() => m.value.length > 0 && !o.disabled), x = P(w(o.defaultSelected));
27972
27972
  function w(me) {
27973
27973
  return !Number.isInteger(me) || me < 0 || me >= m.value.length ? 0 : me;
27974
27974
  }
@@ -27979,7 +27979,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
27979
27979
  day: be,
27980
27980
  label: o.dayLabels?.[be] ?? new Intl.DateTimeFormat(t.value, { weekday: "short", timeZone: "UTC" }).format(new Date(Date.UTC(2023, 0, 1 + be))),
27981
27981
  cells: Array.from({ length: d.value }, (Te, fe) => {
27982
- const ee = Is(be, Math.floor(fe / u.value), fe % u.value, o.splitMinute);
27982
+ const ee = Rs(be, Math.floor(fe / u.value), fe % u.value, o.splitMinute);
27983
27983
  return {
27984
27984
  index: ee,
27985
27985
  hour: Math.floor(fe / u.value),
@@ -28052,7 +28052,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28052
28052
  const be = [];
28053
28053
  for (let Te = 0; Te < mn.length; Te++)
28054
28054
  for (let fe = 0; fe < u.value; fe++)
28055
- be.push(Is(Te, me, fe, o.splitMinute));
28055
+ be.push(Rs(Te, me, fe, o.splitMinute));
28056
28056
  H(be);
28057
28057
  }
28058
28058
  function ae() {
@@ -28538,7 +28538,7 @@ const iP = { class: "mb-3 flex flex-wrap items-start justify-between gap-3" }, l
28538
28538
  },
28539
28539
  emits: ["close", "confirm", "cancel"],
28540
28540
  setup(e, { emit: a }) {
28541
- const t = Ue(), o = Xe(e, { closeLabel: "Close" }), r = a, l = Ot(), s = Je(o.id, "notify"), u = y(() => `${s}-title`), d = y(() => `${s}-content`), c = y(() => `${s}-footer`), p = y(() => ({ info: za, suggest: Wf, error: bi })[o.tone]), v = y(() => typeof o.icon == "string" ? o.icon : o.tone), m = y(() => o.icon !== !1), h = y(() => typeof o.title == "string" ? o.title : ""), b = y(() => typeof o.content == "string" ? o.content : "");
28541
+ const t = Ue(), o = Xe(e, { closeLabel: "Close" }), r = a, l = Ot(), s = Je(o.id, "notify"), u = y(() => `${s}-title`), d = y(() => `${s}-content`), c = y(() => `${s}-footer`), p = y(() => ({ info: za, suggest: Wf, error: wi })[o.tone]), v = y(() => typeof o.icon == "string" ? o.icon : o.tone), m = y(() => o.icon !== !1), h = y(() => typeof o.title == "string" ? o.title : ""), b = y(() => typeof o.content == "string" ? o.content : "");
28542
28542
  function x(z, T) {
28543
28543
  return z === !1 ? null : z === !0 || z === void 0 ? { text: T, variant: T === t("Cancel") ? "secondary" : "primary" } : typeof z == "string" ? { text: z } : z;
28544
28544
  }
@@ -29176,13 +29176,13 @@ const KI = /* @__PURE__ */ q({
29176
29176
  }, null, 8, ["buttons"])) : V("", !0),
29177
29177
  e.loading ? (f(), g("div", eq, [
29178
29178
  S(d.$slots, "spin-inner", {}, () => [
29179
- I(al, { text: e.loadingText }, null, 8, ["text"])
29179
+ I(nl, { text: e.loadingText }, null, 8, ["text"])
29180
29180
  ])
29181
29181
  ])) : V("", !0)
29182
29182
  ], 8, ZP));
29183
29183
  }
29184
29184
  });
29185
- function Rs(e) {
29185
+ function Ms(e) {
29186
29186
  const a = P(!1);
29187
29187
  let t = null;
29188
29188
  function n() {
@@ -29220,7 +29220,7 @@ const tq = ["draggable", "data-selected"], aq = {
29220
29220
  },
29221
29221
  emits: ["update:expanded", "select", "drag-start", "drag-over", "drop", "drag-end"],
29222
29222
  setup(e, { emit: a }) {
29223
- const t = e, n = a, o = Ot(), r = yt(), l = yt(), s = P(null), u = P(null), d = P(null), c = Rs(u), p = Rs(d);
29223
+ const t = e, n = a, o = Ot(), r = yt(), l = yt(), s = P(null), u = P(null), d = P(null), c = Ms(u), p = Ms(d);
29224
29224
  function v(T) {
29225
29225
  if (T !== void 0)
29226
29226
  return typeof T == "string" ? { text: T, html: !1 } : { text: T.text, html: T.format === "html", tip: T.tip };
@@ -29503,11 +29503,11 @@ function Dr(e) {
29503
29503
  function Br(e) {
29504
29504
  return typeof e == "object" && e !== null ? e : void 0;
29505
29505
  }
29506
- function ui(e) {
29506
+ function di(e) {
29507
29507
  return e == null ? "" : typeof e == "object" ? e.content ?? e.html ?? "" : String(e);
29508
29508
  }
29509
29509
  function Sq(e, a, t) {
29510
- const n = ui(e[t]), o = ui(a[t]), r = Number(n), l = Number(o);
29510
+ const n = di(e[t]), o = di(a[t]), r = Number(n), l = Number(o);
29511
29511
  return n !== "" && o !== "" && Number.isFinite(r) && Number.isFinite(l) ? r - l : n.localeCompare(o);
29512
29512
  }
29513
29513
  const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria-sort", "data-cell-key", "tabindex", "onFocus", "onKeydown"], Aq = ["title", "data-ui-tooltip-hint"], Pq = ["aria-label", "data-sort-state", "onClick"], qq = {
@@ -29602,7 +29602,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
29602
29602
  H.target !== Z && (H.stopPropagation(), Z.focus());
29603
29603
  }
29604
29604
  function N(H) {
29605
- return ui(H);
29605
+ return di(H);
29606
29606
  }
29607
29607
  function B(H) {
29608
29608
  return Br(H)?.slot;
@@ -30053,7 +30053,7 @@ const $q = ["aria-rowcount", "aria-colcount"], Eq = { role: "row" }, Tq = ["aria
30053
30053
  }, 8, ["open", "title", "description", "width"]));
30054
30054
  }
30055
30055
  }), Bc = /* @__PURE__ */ Symbol("syno-pkg-land-ui-message-box");
30056
- function Jq(e = (a, t) => $i("en", a, t)) {
30056
+ function Jq(e = (a, t) => Ei("en", a, t)) {
30057
30057
  const a = P([]), t = /* @__PURE__ */ new Map();
30058
30058
  let n = 1;
30059
30059
  function o(c, p, v = {}) {
@@ -30548,7 +30548,7 @@ const aD = ["aria-label"], nD = {
30548
30548
  }),
30549
30549
  M("span", null, U(i(Ct)(h.value.betaAvailable, { version: c.value?.betaVersion ?? "" })), 1)
30550
30550
  ])) : d.value === "up-to-date" ? (f(), g("div", TD, [
30551
- I(i(wi), {
30551
+ I(i(xi), {
30552
30552
  class: "size-4 text-[var(--ui-success)]",
30553
30553
  "aria-hidden": "true"
30554
30554
  }),
@@ -30604,7 +30604,7 @@ function Ic(e) {
30604
30604
  function io([e, a, t, n]) {
30605
30605
  return n === 1 ? "#" + [e, a, t].map((o) => Math.round(o).toString(16).padStart(2, "0")).join("") : `rgba(${[e, a, t].map(Math.round).join(", ")}, ${Number(n.toFixed(3))})`;
30606
30606
  }
30607
- function di(e, a) {
30607
+ function ci(e, a) {
30608
30608
  const [t, n, o] = [0, 1, 2].map((r) => e[r] * e[3] + a[r] * (1 - e[3]));
30609
30609
  return [t, n, o, 1];
30610
30610
  }
@@ -30619,13 +30619,13 @@ function MD([e, a, t]) {
30619
30619
  return 0.2126 * n(e) + 0.7152 * n(a) + 0.0722 * n(t);
30620
30620
  }
30621
30621
  function VD(e, a) {
30622
- const t = di(a, [255, 255, 255, 1]), [n, o] = [di(e, t), t].map(MD).sort((r, l) => l - r);
30622
+ const t = ci(a, [255, 255, 255, 1]), [n, o] = [ci(e, t), t].map(MD).sort((r, l) => l - r);
30623
30623
  return (n + 0.05) / (o + 0.05);
30624
30624
  }
30625
- const Or = [255, 255, 255, 1], LD = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], FD = 0.075, zD = 0.22, ND = 0.55, ci = (e) => Ic(io(e));
30626
- function Ms(e, a, t, n) {
30625
+ const Or = [255, 255, 255, 1], LD = [0.02, 0.04, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7], FD = 0.075, zD = 0.22, ND = 0.55, fi = (e) => Ic(io(e));
30626
+ function Vs(e, a, t, n) {
30627
30627
  for (let o = a; o < 1; o += 0.01) {
30628
- const r = ci(Rc(e, o));
30628
+ const r = fi(Rc(e, o));
30629
30629
  if (VD(...n(r)) >= t) return r;
30630
30630
  }
30631
30631
  return [0, 0, 0, 1];
@@ -30633,8 +30633,8 @@ function Ms(e, a, t, n) {
30633
30633
  function KD(e) {
30634
30634
  const a = Ic(e);
30635
30635
  if (a[3] !== 1) throw new Error(`An accent must be opaque: "${e}"`);
30636
- const t = Ms(a, 0, 4.5, (s) => [Or, s]), n = LD.map((s) => [t[0], t[1], t[2], s]), o = n.map((s) => ci(di(s, Or))), r = (s, u) => Ms(t, u, s, (d) => [d, o[2]]);
30637
- return { steps: [...o, t, ci(Rc(t, FD)), r(4.5, zD), r(7, ND)].map(io), alpha: n.map(io), contrast: io(Or) };
30636
+ const t = Vs(a, 0, 4.5, (s) => [Or, s]), n = LD.map((s) => [t[0], t[1], t[2], s]), o = n.map((s) => fi(ci(s, Or))), r = (s, u) => Vs(t, u, s, (d) => [d, o[2]]);
30637
+ return { steps: [...o, t, fi(Rc(t, FD)), r(4.5, zD), r(7, ND)].map(io), alpha: n.map(io), contrast: io(Or) };
30638
30638
  }
30639
30639
  function WD(e) {
30640
30640
  const { steps: a, alpha: t, contrast: n } = KD(e);
@@ -30653,9 +30653,9 @@ const HD = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "ta
30653
30653
  },
30654
30654
  emits: ["activate"],
30655
30655
  setup(e, { emit: a }) {
30656
- const t = e, n = a, o = Ze(zl, null);
30656
+ const t = e, n = a, o = Ze(Nl, null);
30657
30657
  if (o && (o === "app" || t.modalScope === "app")) throw new Error("Nested app-local AppRoots are unsupported");
30658
- Qe(zl, t.modalScope);
30658
+ Qe(Nl, t.modalScope);
30659
30659
  const r = Me("root"), l = ta(r), s = y(() => $c(l.value));
30660
30660
  Qe(tr, s);
30661
30661
  const u = Me("background"), d = Me("portal"), c = t.modalScope, p = c === "app" ? new Xp(r, u) : null;
@@ -30739,7 +30739,7 @@ const HD = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "ta
30739
30739
  _: 1
30740
30740
  }, 16));
30741
30741
  }
30742
- }), fi = (e) => Math.round(Math.min(oi, Math.max(ni, e)));
30742
+ }), pi = (e) => Math.round(Math.min(ri, Math.max(oi, e)));
30743
30743
  function GD(e) {
30744
30744
  try {
30745
30745
  const a = JSON.parse(localStorage.getItem(e) ?? "null");
@@ -30749,7 +30749,7 @@ function GD(e) {
30749
30749
  }
30750
30750
  }
30751
30751
  function YD(e) {
30752
- const a = e ? `${e}:app-sidebar` : void 0, t = a ? GD(a) : {}, n = P(typeof t.width == "number" && Number.isFinite(t.width) ? fi(t.width) : UE), o = P(t.collapsed === !0);
30752
+ const a = e ? `${e}:app-sidebar` : void 0, t = a ? GD(a) : {}, n = P(typeof t.width == "number" && Number.isFinite(t.width) ? pi(t.width) : UE), o = P(t.collapsed === !0);
30753
30753
  return a && pe([n, o], () => {
30754
30754
  try {
30755
30755
  localStorage.setItem(a, JSON.stringify({ width: n.value, collapsed: o.value }));
@@ -30775,7 +30775,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30775
30775
  }, uB = ["aria-label", "aria-expanded", "aria-controls"], dB = {
30776
30776
  key: 0,
30777
30777
  "data-ui-sidebar-brand": ""
30778
- }, cB = { key: 1 }, Vs = 16, oR = /* @__PURE__ */ q({
30778
+ }, cB = { key: 1 }, Ls = 16, oR = /* @__PURE__ */ q({
30779
30779
  __name: "AppLayout",
30780
30780
  props: {
30781
30781
  sidebarWidth: { default: void 0 },
@@ -30808,7 +30808,7 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30808
30808
  const C = y(() => m.value === "web"), E = y(() => t.navigation === "top" && !h.value);
30809
30809
  Qe(Ec, E);
30810
30810
  const k = YD(t.sidebarStorageKey), A = y(() => C.value && !E.value && k.collapsed.value);
30811
- Qe(ll, A);
30811
+ Qe(sl, A);
30812
30812
  const O = y(() => C.value && !E.value && !A.value && t.sidebarWidth === void 0), D = y(() => A.value ? "var(--ui-web-sidebar-collapsed-width, 64px)" : t.sidebarWidth !== void 0 ? t.sidebarWidth : C.value ? `${k.width.value}px` : "var(--ui-sidebar-width)"), N = P({});
30813
30813
  qe(() => {
30814
30814
  N.value = {
@@ -30822,17 +30822,17 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30822
30822
  }
30823
30823
  function z(le) {
30824
30824
  const ie = {
30825
- ArrowLeft: k.width.value - Vs,
30826
- ArrowRight: k.width.value + Vs,
30827
- Home: ni,
30828
- End: oi
30825
+ ArrowLeft: k.width.value - Ls,
30826
+ ArrowRight: k.width.value + Ls,
30827
+ Home: oi,
30828
+ End: ri
30829
30829
  }[le.key];
30830
- ie !== void 0 && (le.preventDefault(), k.width.value = fi(ie));
30830
+ ie !== void 0 && (le.preventDefault(), k.width.value = pi(ie));
30831
30831
  }
30832
30832
  const T = P(!1);
30833
30833
  let W = { x: 0, width: 0 };
30834
30834
  function H(le) {
30835
- k.width.value = fi(W.width + le.clientX - W.x);
30835
+ k.width.value = pi(W.width + le.clientX - W.x);
30836
30836
  }
30837
30837
  function Z() {
30838
30838
  T.value = !1, document.removeEventListener("pointermove", H), document.removeEventListener("pointerup", Z), document.removeEventListener("pointercancel", Z);
@@ -30967,8 +30967,8 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
30967
30967
  "aria-orientation": "vertical",
30968
30968
  "aria-label": i(u)("Resize navigation"),
30969
30969
  "aria-controls": i(x),
30970
- "aria-valuemin": i(ni),
30971
- "aria-valuemax": i(oi),
30970
+ "aria-valuemin": i(oi),
30971
+ "aria-valuemax": i(ri),
30972
30972
  "aria-valuenow": i(k).width.value,
30973
30973
  onKeydown: z,
30974
30974
  onPointerdown: G
@@ -31028,19 +31028,23 @@ const XD = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
31028
31028
  });
31029
31029
  return (r, l) => S(r.$slots, o.value);
31030
31030
  }
31031
- }), Ls = "width=device-width, initial-scale=1";
31031
+ }), Fs = "width=device-width, initial-scale=1";
31032
31032
  function iR(e = document) {
31033
31033
  const a = e.head.querySelector('meta[name="viewport"]');
31034
- if (a?.content.replace(/\s/g, "").includes("width=device-width")) return () => {
31035
- };
31034
+ if (a?.content.replace(/\s/g, "").includes("width=device-width")) {
31035
+ const l = Rr(e);
31036
+ return () => {
31037
+ l();
31038
+ };
31039
+ }
31036
31040
  let t = a, n;
31037
- t ? (n = t.content, t.content = Ls) : (t = e.createElement("meta"), t.name = "viewport", t.content = Ls, e.head.append(t));
31038
- const o = t, r = Fs(e);
31041
+ t ? (n = t.content, t.content = Fs) : (t = e.createElement("meta"), t.name = "viewport", t.content = Fs, e.head.append(t));
31042
+ const o = t, r = Rr(e);
31039
31043
  return () => {
31040
- n === void 0 ? o.remove() : o.content = n, r() || Fs(e);
31044
+ n === void 0 ? o.remove() : o.content = n, r() || Rr(e);
31041
31045
  };
31042
31046
  }
31043
- function Fs(e) {
31047
+ function Rr(e) {
31044
31048
  const a = e.defaultView;
31045
31049
  if (!a?.requestAnimationFrame) return () => !1;
31046
31050
  let t = !1;
@@ -31098,7 +31102,7 @@ const fB = /* @__PURE__ */ q({
31098
31102
  u(p) ? "bg-[var(--ui-surface-selected)] text-[var(--ui-text)]" : "bg-transparent text-[var(--ui-text)] hover:bg-[var(--ui-surface-hover)]"
31099
31103
  ];
31100
31104
  return (p, v) => {
31101
- const m = yi("AppSidebarItems", !0);
31105
+ const m = gi("AppSidebarItems", !0);
31102
31106
  return f(!0), g(ce, null, ke(e.items, (h) => (f(), g(ce, {
31103
31107
  key: h.key
31104
31108
  }, [
@@ -31407,7 +31411,7 @@ const fB = /* @__PURE__ */ q({
31407
31411
  },
31408
31412
  emits: ["update:modelValue", "update:expandedKeys", "select", "branchToggle"],
31409
31413
  setup(e, { emit: a }) {
31410
- const n = Xe(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), o = a, r = Ze(ll, y(() => !1)), l = Ze(Ec, y(() => !1)), s = P(""), u = P(/* @__PURE__ */ new Set());
31414
+ const n = Xe(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), o = a, r = Ze(sl, y(() => !1)), l = Ze(Ec, y(() => !1)), s = P(""), u = P(/* @__PURE__ */ new Set());
31411
31415
  function d(k, A) {
31412
31416
  return k.flatMap((O) => {
31413
31417
  const D = O.children ? d(O.children, A) : [];
@@ -31522,7 +31526,7 @@ const fB = /* @__PURE__ */ q({
31522
31526
  detail: {}
31523
31527
  },
31524
31528
  setup(e) {
31525
- const a = e, t = Ze(ll, y(() => !1)), n = y(() => Array.from(a.name.trim())[0]?.toUpperCase() ?? "?");
31529
+ const a = e, t = Ze(sl, y(() => !1)), n = y(() => Array.from(a.name.trim())[0]?.toUpperCase() ?? "?");
31526
31530
  return (o, r) => (f(), $(da, {
31527
31531
  content: e.detail ? `${e.name}
31528
31532
  ${e.detail}` : e.name,
@@ -31955,7 +31959,7 @@ ${e.detail}` : e.name,
31955
31959
  ])) : V("", !0)
31956
31960
  ], 64));
31957
31961
  }
31958
- }), Mc = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), pl = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
31962
+ }), Mc = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-manager"), vl = /* @__PURE__ */ Symbol("syno-pkg-land-ui:config-provider");
31959
31963
  function ja(e) {
31960
31964
  if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
31961
31965
  const a = Object.getPrototypeOf(e);
@@ -31987,11 +31991,11 @@ function fO(e, a) {
31987
31991
  }
31988
31992
  return t;
31989
31993
  }
31990
- function pi(e, a) {
31994
+ function vi(e, a) {
31991
31995
  const t = { ...e };
31992
31996
  for (const n of Vc(a)) {
31993
31997
  const o = Ua(a, n), r = Ua(t, n);
31994
- ja(r) && ja(o) ? Cn(t, n, pi(r, o)) : Cn(t, n, o);
31998
+ ja(r) && ja(o) ? Cn(t, n, vi(r, o)) : Cn(t, n, o);
31995
31999
  }
31996
32000
  return t;
31997
32001
  }
@@ -32004,22 +32008,22 @@ function pO(e) {
32004
32008
  return a;
32005
32009
  }
32006
32010
  function Fc(e, a, t = {}) {
32007
- const n = Ze(pl, null), o = Ze(Mc, null);
32011
+ const n = Ze(vl, null), o = Ze(Mc, null);
32008
32012
  return y(() => {
32009
32013
  const r = [t, o?.value?.[e], n?.value?.[e]];
32010
32014
  let l = {};
32011
- for (const s of r) s && (l = pi(l, s));
32012
- return pi(l, pO(a));
32015
+ for (const s of r) s && (l = vi(l, s));
32016
+ return vi(l, pO(a));
32013
32017
  });
32014
32018
  }
32015
32019
  function hR(e) {
32016
32020
  Qe(Mc, e);
32017
32021
  }
32018
32022
  function vO() {
32019
- return Ze(pl, y(() => ({})));
32023
+ return Ze(vl, y(() => ({})));
32020
32024
  }
32021
32025
  function mO(e) {
32022
- Qe(pl, e);
32026
+ Qe(vl, e);
32023
32027
  }
32024
32028
  const yR = /* @__PURE__ */ q({
32025
32029
  inheritAttrs: !1,
@@ -32049,7 +32053,7 @@ const yR = /* @__PURE__ */ q({
32049
32053
  rules: {},
32050
32054
  direction: "auto",
32051
32055
  spacing: "auto",
32052
- fieldWidth: ai,
32056
+ fieldWidth: ni,
32053
32057
  validateMessageDisplayMode: "popup"
32054
32058
  }), s = Me("root"), u = ta(s), d = y(() => l.value.direction === "vertical" || l.value.direction === "auto" && u.value > 0 && u.value < 520 ? "vertical" : "horizontal"), c = { none: 0, dense: 4, compact: 6, regular: 8, relaxed: 12 }, p = y(() => {
32055
32059
  const O = l.value.spacing ?? "auto";
@@ -32070,7 +32074,7 @@ const yR = /* @__PURE__ */ q({
32070
32074
  // container's resolved direction only controls its automatic spacing.
32071
32075
  direction: y(() => l.value.direction),
32072
32076
  spacing: y(() => l.value.spacing ?? "auto"),
32073
- fieldWidth: y(() => l.value.fieldWidth ?? ai),
32077
+ fieldWidth: y(() => l.value.fieldWidth ?? ni),
32074
32078
  validateMessageDisplayMode: y(() => l.value.validateMessageDisplayMode ?? "popup"),
32075
32079
  registerField: h,
32076
32080
  unregisterField: b
@@ -32122,7 +32126,7 @@ const yR = /* @__PURE__ */ q({
32122
32126
  url: "Value must be a valid URL",
32123
32127
  date: "Value must be a valid date"
32124
32128
  };
32125
- function vi(e) {
32129
+ function mi(e) {
32126
32130
  return e ? Array.isArray(e) ? [...e] : [e] : [];
32127
32131
  }
32128
32132
  function bO(e, a) {
@@ -32199,8 +32203,8 @@ function SO(e, a) {
32199
32203
  return e.trigger ? Array.isArray(e.trigger) ? e.trigger : [e.trigger] : [a];
32200
32204
  }
32201
32205
  async function $O(e, a, t = {}) {
32202
- const n = t.defaultTrigger ?? yO, o = t.trigger ?? null, r = t.text ?? ((l, s) => $i("en", l, s));
32203
- for (const l of vi(a)) {
32206
+ const n = t.defaultTrigger ?? yO, o = t.trigger ?? null, r = t.text ?? ((l, s) => Ei("en", l, s));
32207
+ for (const l of mi(a)) {
32204
32208
  if (o !== null && !SO(l, n).includes(o)) continue;
32205
32209
  const s = await CO(l, e, r);
32206
32210
  if (s) return s;
@@ -32308,7 +32312,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32308
32312
  const Ce = Y.value === "vertical" ? { display: "flex", flexDirection: "column", gap: "var(--ui-space-1)" } : { display: "flex", alignItems: "flex-start", columnGap: "var(--ui-label-gap)" }, Fe = s.value.indent ?? 0;
32309
32313
  return Fe && (Ce.paddingLeft = typeof Fe == "number" ? `${Fe * 28}px` : Fe), Ce;
32310
32314
  }), Ee = y(() => ({
32311
- maxWidth: rl(o.fieldWidth ?? u?.fieldWidth)
32315
+ maxWidth: il(o.fieldWidth ?? u?.fieldWidth)
32312
32316
  })), Se = y(() => Y.value === "vertical" ? void 0 : { width: s.value.labelWidth ?? "var(--ui-label-column)" }), Q = y(() => {
32313
32317
  const Ce = W.value ? "text-[var(--ui-danger)]" : T.value === "warning" ? "text-[var(--ui-warning)]" : T.value === "success" ? "text-[var(--ui-success)]" : "text-[var(--ui-text-secondary)]";
32314
32318
  return ae.value === "text" ? Oe("mt-1 text-[12px] leading-4", Ce) : Oe(
@@ -32319,7 +32323,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32319
32323
  );
32320
32324
  }), se = { afterItem: "shrink-0 self-center" };
32321
32325
  function oe() {
32322
- const Ce = vi(s.value.rules), Fe = o.prop, tt = Fe ? vi(u?.rules?.[Fe]) : [];
32326
+ const Ce = mi(s.value.rules), Fe = o.prop, tt = Fe ? mi(u?.rules?.[Fe]) : [];
32323
32327
  return [...Ce, ...tt];
32324
32328
  }
32325
32329
  let de = 0;
@@ -32414,7 +32418,7 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32414
32418
  onInput: Ge
32415
32419
  }))
32416
32420
  });
32417
- Qe(Ei, Ne);
32421
+ Qe(Ti, Ne);
32418
32422
  function St() {
32419
32423
  if (s.value.textOnly || z.value) return;
32420
32424
  const Ce = [...c.value?.querySelectorAll("[id]") ?? []].find((ot) => ot.id === m.value);
@@ -32512,13 +32516,13 @@ const EO = ["data-direction", "data-status"], TO = ["id", "for"], AO = {
32512
32516
  ], 2)
32513
32517
  ], 46, EO));
32514
32518
  }
32515
- }), Fa = ["xxs", "xs", "sm", "md", "lg", "xl"], mi = { xxs: 0, xs: 480, sm: 768, md: 1024, lg: 1280, xl: 1600 }, OO = /* @__PURE__ */ Symbol("syno-grid-breakpoints");
32519
+ }), Fa = ["xxs", "xs", "sm", "md", "lg", "xl"], hi = { xxs: 0, xs: 480, sm: 768, md: 1024, lg: 1280, xl: 1600 }, OO = /* @__PURE__ */ Symbol("syno-grid-breakpoints");
32516
32520
  function IO(e) {
32517
32521
  return typeof e == "object" && e !== null && !Array.isArray(e) && Fa.some((a) => a in e);
32518
32522
  }
32519
- function Hs(e, a = mi) {
32523
+ function Hs(e, a = hi) {
32520
32524
  return Fa.reduce(
32521
- (t, n) => e >= (a[n] ?? mi[n]) ? n : t,
32525
+ (t, n) => e >= (a[n] ?? hi[n]) ? n : t,
32522
32526
  "xxs"
32523
32527
  );
32524
32528
  }
@@ -32539,7 +32543,7 @@ function $t(e, a) {
32539
32543
  }
32540
32544
  }
32541
32545
  function zc(e) {
32542
- const a = Ze(OO, mi), t = typeof window < "u", n = P(t ? Hs(window.innerWidth, a) : "xxs"), o = [], r = () => {
32546
+ const a = Ze(OO, hi), t = typeof window < "u", n = P(t ? Hs(window.innerWidth, a) : "xxs"), o = [], r = () => {
32543
32547
  t && (n.value = Hs(window.innerWidth, a));
32544
32548
  };
32545
32549
  return qe(() => {
@@ -32574,7 +32578,7 @@ function Us(e, a) {
32574
32578
  function Gs(e, a) {
32575
32579
  return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.floor(e) : typeof e == "string" && /^\d+$/.test(e.trim()) && Number(e) > 0 ? Math.floor(Number(e)) : a;
32576
32580
  }
32577
- const vl = /* @__PURE__ */ Symbol("syno-grid-layout");
32581
+ const ml = /* @__PURE__ */ Symbol("syno-grid-layout");
32578
32582
  function RO(e) {
32579
32583
  return e === "start" ? "flex-start" : e === "end" ? "flex-end" : e;
32580
32584
  }
@@ -32608,7 +32612,7 @@ const wR = /* @__PURE__ */ q({
32608
32612
  ...Nc($t(a.gap, s))
32609
32613
  };
32610
32614
  });
32611
- return Qe(vl, { type: "grid", active: t, columns: n }), (s, u) => (f(), g("div", {
32615
+ return Qe(ml, { type: "grid", active: t, columns: n }), (s, u) => (f(), g("div", {
32612
32616
  style: _e(l.value)
32613
32617
  }, [
32614
32618
  S(s.$slots, "default")
@@ -32630,7 +32634,7 @@ const wR = /* @__PURE__ */ q({
32630
32634
  justifyContent: MO($t(a.justify, t.value) ?? "start"),
32631
32635
  ...Nc($t(a.gap, t.value))
32632
32636
  }));
32633
- return Qe(vl, { type: "row", active: t, columns: y(() => 1) }), (o, r) => (f(), g("div", {
32637
+ return Qe(ml, { type: "row", active: t, columns: y(() => 1) }), (o, r) => (f(), g("div", {
32634
32638
  style: _e(n.value)
32635
32639
  }, [
32636
32640
  S(o.$slots, "default")
@@ -32642,7 +32646,7 @@ const wR = /* @__PURE__ */ q({
32642
32646
  flex: { default: "none" }
32643
32647
  },
32644
32648
  setup(e) {
32645
- const a = e, t = Ze(vl, null);
32649
+ const a = e, t = Ze(ml, null);
32646
32650
  function n(l, s) {
32647
32651
  const u = Number(l);
32648
32652
  return !Number.isFinite(u) || u <= 0 ? 1 : Math.min(Math.floor(u), s);
@@ -32821,7 +32825,7 @@ function WO({ widths: e, availableWidth: a, moreWidth: t, gap: n, minVisibleItem
32821
32825
  const HO = {
32822
32826
  key: 0,
32823
32827
  class: "flex shrink-0 items-center gap-1"
32824
- }, jO = ["data-overflow-item"], UO = ["data-overflow-item"], GO = { class: "min-w-0 flex-1" }, Xs = "z-[1450] max-h-[min(var(--reka-dropdown-menu-content-available-height),20rem)] min-w-44 max-w-[calc(100vw-32px)] overflow-y-auto rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)] outline-none", Rr = "flex min-h-7 select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2.5 py-1 text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none [@media(pointer:coarse)]:min-h-9 data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40 [overflow-wrap:anywhere]", SR = /* @__PURE__ */ q({
32828
+ }, jO = ["data-overflow-item"], UO = ["data-overflow-item"], GO = { class: "min-w-0 flex-1" }, Xs = "z-[1450] max-h-[min(var(--reka-dropdown-menu-content-available-height),20rem)] min-w-44 max-w-[calc(100vw-32px)] overflow-y-auto rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)] outline-none", Mr = "flex min-h-7 select-none items-center gap-2 rounded-[var(--ui-radius-sm)] px-2.5 py-1 text-[length:var(--ui-font-size)] text-[var(--ui-text)] outline-none [@media(pointer:coarse)]:min-h-9 data-[highlighted]:bg-[var(--ui-primary-soft)] data-[disabled]:opacity-40 [overflow-wrap:anywhere]", SR = /* @__PURE__ */ q({
32825
32829
  __name: "OverflowToolbar",
32826
32830
  props: {
32827
32831
  items: { default: () => [] },
@@ -33026,7 +33030,7 @@ const HO = {
33026
33030
  default: _(() => [
33027
33031
  I(i(Ld), {
33028
33032
  disabled: T.disabled,
33029
- class: te(Rr),
33033
+ class: te(Mr),
33030
33034
  "data-overflow-menu-item": T.id
33031
33035
  }, {
33032
33036
  default: _(() => [
@@ -33057,7 +33061,7 @@ const HO = {
33057
33061
  })) : (f(), $(i(xn), {
33058
33062
  key: 1,
33059
33063
  disabled: W.disabled,
33060
- class: te(Rr),
33064
+ class: te(Mr),
33061
33065
  "data-overflow-menu-item": W.id,
33062
33066
  onSelect: (H) => o("clickItem", W)
33063
33067
  }, {
@@ -33078,7 +33082,7 @@ const HO = {
33078
33082
  }, 1024)) : (f(), $(i(xn), {
33079
33083
  key: 2,
33080
33084
  disabled: T.disabled,
33081
- class: te(Rr),
33085
+ class: te(Mr),
33082
33086
  "data-overflow-menu-item": T.id,
33083
33087
  onSelect: (W) => o("clickItem", T)
33084
33088
  }, {
@@ -33226,7 +33230,7 @@ export {
33226
33230
  $I as CopyCutField,
33227
33231
  S2 as DATE_FORMATS,
33228
33232
  wc as DEFAULT_ALLOW_ATTRS,
33229
- mi as DEFAULT_BREAKPOINTS,
33233
+ hi as DEFAULT_BREAKPOINTS,
33230
33234
  bc as DEFAULT_LINK_TAGS,
33231
33235
  gc as DEFAULT_PARSE_TAGS,
33232
33236
  MS as DEFAULT_TOGGLE_APPEARANCE,
@@ -33265,7 +33269,7 @@ export {
33265
33269
  $R as Link,
33266
33270
  xI as ListItem,
33267
33271
  b2 as LoadingArea,
33268
- al as LoadingIndicator,
33272
+ nl as LoadingIndicator,
33269
33273
  hk as LoadingMask,
33270
33274
  Sc as MOBILE_LAYOUT_MAX,
33271
33275
  Zq as MessageBox,
@@ -33358,7 +33362,7 @@ export {
33358
33362
  iR as ensureDeviceViewport,
33359
33363
  CA as filePickerText,
33360
33364
  iS as fileTypeIcon,
33361
- xs as formatDateText,
33365
+ _s as formatDateText,
33362
33366
  fI as formatDateTime,
33363
33367
  dI as formatDuration,
33364
33368
  _o as formatFileSize,
@@ -33374,7 +33378,7 @@ export {
33374
33378
  qT as loadGridState,
33375
33379
  Bc as messageBoxKey,
33376
33380
  TC as minuteOptions,
33377
- vi as normalizeRules,
33381
+ mi as normalizeRules,
33378
33382
  Dc as notificationControllerKey,
33379
33383
  rP as orderScheduleOptions,
33380
33384
  SC as parseDateText,
@@ -33382,13 +33386,13 @@ export {
33382
33386
  mS as parseRichText,
33383
33387
  hR as provideConfigManager,
33384
33388
  D2 as registerIcons,
33385
- rl as resolveFieldWidth,
33389
+ il as resolveFieldWidth,
33386
33390
  tS as resolveIconSize,
33387
33391
  DT as saveGridState,
33388
- Is as scheduleCellIndex,
33389
- cl as scheduleCellsPerDay,
33390
- dl as scheduleSplitsPerHour,
33391
- fl as scheduleValueLength,
33392
+ Rs as scheduleCellIndex,
33393
+ fl as scheduleCellsPerDay,
33394
+ cl as scheduleSplitsPerHour,
33395
+ pl as scheduleValueLength,
33392
33396
  Qq as useDialog,
33393
33397
  vp as useFormContext,
33394
33398
  mp as useFormField,
@@ -33400,5 +33404,5 @@ export {
33400
33404
  Fc as useProps,
33401
33405
  T2 as useToast,
33402
33406
  $O as validateWithRules,
33403
- il as writeClipboard
33407
+ ll as writeClipboard
33404
33408
  };