@sheetxl/utils-react 1.0.4 → 1.0.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v1.0.4
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
@@ -10,7 +10,7 @@ import f, { Component as p, cloneElement as m, createContext as g, createElement
10
10
  import { Fragment as D, jsx as P, jsxs as R } from "react/jsx-runtime";
11
11
  import * as $ from "detect-it";
12
12
  import { createRoot as B } from "react-dom/client";
13
- import { createPortal as H, unstable_batchedUpdates as O } from "react-dom";
13
+ import { createPortal as O, unstable_batchedUpdates as H } from "react-dom";
14
14
  import { useMergeRefs as I } from "react-merge-refs";
15
15
  import N from "clsx";
16
16
  import { autoUpdate as F, flip as W, offset as K, shift as V, size as j, useFloating as Y } from "@floating-ui/react-dom";
@@ -633,12 +633,15 @@ var Te = class e {
633
633
  if (e._root !== this._root) throw new Error("setParent only reorders within the same root tree.");
634
634
  for (let t = e; t; t = t._parent) if (t === this) throw new Error("setParent would create a cycle.");
635
635
  }
636
- this._parent?._children.delete(this.key), this._parent = e, e?._children.set(this.key, this), this._root._bump();
636
+ this._parent?._detachChild(this), this._parent = e, e?._children.set(this.key, this), this._root._bump();
637
637
  }
638
638
  }
639
+ _detachChild(e) {
640
+ this._children.get(e.key) === e && this._children.delete(e.key);
641
+ }
639
642
  dispose() {
640
643
  for (const e of [...this._children.values()]) e.dispose();
641
- this._children.clear(), this._setupDisposer?.(), this._setupDisposer = void 0, this._defs.clear(), this._layers.clear(), this._middleware.length = 0, this._registryUnsub?.(), this._registryUnsub = void 0, this._parent?._children.delete(this.key), this._root._bump();
644
+ this._children.clear(), this._setupDisposer?.(), this._setupDisposer = void 0, this._defs.clear(), this._layers.clear(), this._middleware.length = 0, this._registryUnsub?.(), this._registryUnsub = void 0, this._parent?._detachChild(this), this._root._bump();
642
645
  }
643
646
  updateCommand(e, t) {
644
647
  const n = this._defs.get(e), o = n ? { ...n } : { key: e };
@@ -687,7 +690,7 @@ var Te = class e {
687
690
  use(t) {
688
691
  o.push(e.use(t));
689
692
  },
690
- getKeysByTag: (t) => e.collectKeysByTag(t, e),
693
+ getKeysByTag: (t, n) => e.collectKeysByTag(t, e, n?.own ? e : void 0),
691
694
  remove() {
692
695
  for (const o of n) e._removeLayer(o, t);
693
696
  n.clear();
@@ -719,15 +722,16 @@ var Te = class e {
719
722
  }
720
723
  return [...n];
721
724
  }
722
- collectKeysByTag(e, t = this._root) {
723
- const n = /* @__PURE__ */ new Set(), o = this._root._registry;
724
- let r = t;
725
- for (; r;) {
726
- for (const [t, o] of r._defs) o.tags?.includes(e) && n.add(t);
727
- if (o) for (const t of o.collectKeysByTag(r.name, e)) n.add(t);
728
- r = r._parent;
725
+ collectKeysByTag(e, t = this._root, n) {
726
+ const o = /* @__PURE__ */ new Set(), r = this._root._registry;
727
+ let i = t;
728
+ for (; i;) {
729
+ for (const [t, n] of i._defs) n.tags?.includes(e) && o.add(t);
730
+ if (r) for (const t of r.collectKeysByTag(i.name, e)) o.add(t);
731
+ if (i === n) break;
732
+ i = i._parent;
729
733
  }
730
- return [...n];
734
+ return [...o];
731
735
  }
732
736
  getVersion() {
733
737
  return this._root._version;
@@ -918,17 +922,29 @@ var ze = class {
918
922
  register(e, t) {
919
923
  const n = {
920
924
  scope: e,
921
- z: t
925
+ z: t,
926
+ attach: null
922
927
  };
923
928
  return this._layers = [...this._layers, n], this._rechain(), () => {
924
929
  const e = this._layers.filter((e) => e !== n);
925
930
  e.length !== this._layers.length && (this._layers = e, this._rechain());
926
931
  };
927
932
  }
933
+ setAttach(e, t) {
934
+ const n = this._layers.find((t) => t.scope === e);
935
+ n && n.attach !== t && (n.attach = t, this._rechain());
936
+ }
937
+ _findAncestor(e) {
938
+ for (let t = this._base; t; t = t.getParent()) if (t.name === e) return t;
939
+ return null;
940
+ }
928
941
  _rechain() {
929
942
  const e = [...this._layers].sort((e, t) => e.z - t.z);
930
943
  let t = this._base;
931
- for (const n of e) n.scope.setParent(t), t = n.scope;
944
+ for (const n of e) {
945
+ const e = n.attach ? this._findAncestor(n.attach) : null;
946
+ n.scope.setParent(e ?? t), t = n.scope;
947
+ }
932
948
  this._top = t, this._listeners.forEach((e) => e());
933
949
  }
934
950
  getBase() {
@@ -950,7 +966,7 @@ var ze = class {
950
966
  edgeTrailingShift: () => je,
951
967
  focusableNodeNames: () => $e,
952
968
  getDevicePixelRatio: () => Fe,
953
- isEditable: () => Oe,
969
+ isEditable: () => He,
954
970
  replaceRangeText: () => Ie,
955
971
  snapDeviceEdge: () => Ke,
956
972
  snapDeviceWidth: () => We,
@@ -960,7 +976,7 @@ var ze = class {
960
976
  "INPUT",
961
977
  "TEXTAREA",
962
978
  "SELECT"
963
- ]), Be = {}, He = /* @__PURE__ */ new Set([
979
+ ]), Be = {}, Oe = /* @__PURE__ */ new Set([
964
980
  "button",
965
981
  "checkbox",
966
982
  "radio",
@@ -972,10 +988,10 @@ var ze = class {
972
988
  "image",
973
989
  "hidden"
974
990
  ]);
975
- function Oe(e) {
991
+ function He(e) {
976
992
  if (!e) return !1;
977
993
  const t = e.tagName;
978
- return "TEXTAREA" === t || ("INPUT" === t ? !He.has(e.type) : !0 === e.isContentEditable);
994
+ return "TEXTAREA" === t || ("INPUT" === t ? !Oe.has(e.type) : !0 === e.isContentEditable);
979
995
  }
980
996
  function Ie(e, t, n, o) {
981
997
  e.setSelectionRange(t, n);
@@ -1046,7 +1062,7 @@ function qe(e, t, n) {
1046
1062
  const t = e.type ? `[type=${e.type}]` : "", n = e.getAttribute?.("class")?.split(" ").slice(0, 2).join(".") ?? "";
1047
1063
  return `${e.tagName.toLowerCase()}${t}${n ? "." + n : ""}`;
1048
1064
  })(o),
1049
- editable: Oe(o),
1065
+ editable: He(o),
1050
1066
  delivery: e.nativeEvent ? "synthetic" : "native"
1051
1067
  });
1052
1068
  }
@@ -1224,52 +1240,61 @@ function ut(e, t) {
1224
1240
  o = !0, n?.();
1225
1241
  };
1226
1242
  }
1227
- function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1228
- const a = ct(), c = it(), u = lt(), h = o ?? u, d = e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null, f = L(() => e && a ? a.createChild(e.scopeName) : null, [a, d]), p = f ?? t ?? null;
1243
+ function ht({ spec: e, scope: t, use: n, order: o, attachTo: r, elementRef: i, region: s, scopeRef: l, children: a }) {
1244
+ const c = ct(), u = it(), h = lt(), d = o ?? h, f = e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null, p = L(() => e && c ? c.createChild(e.scopeName) : null, [c, f]), m = p ?? t ?? null;
1229
1245
  M(() => {
1230
- if (!f) return;
1231
- const e = c ? c.register(f, h) : void 0;
1232
- return () => {
1233
- e?.(), f.dispose();
1234
- };
1246
+ if (p && u) return u.register(p, d);
1235
1247
  }, [
1236
- f,
1237
- c,
1238
- h
1248
+ p,
1249
+ u,
1250
+ d
1239
1251
  ]);
1240
- const m = e?.contributor?.dynamic, g = e?.data;
1252
+ const g = r ?? null;
1253
+ M(() => {
1254
+ p && u && u.setAttach(p, g);
1255
+ }, [
1256
+ p,
1257
+ u,
1258
+ d,
1259
+ g
1260
+ ]), M(() => {
1261
+ if (p) return () => {
1262
+ p.dispose();
1263
+ };
1264
+ }, [p]);
1265
+ const _ = e?.contributor?.dynamic, v = e?.data;
1241
1266
  M(() => {
1242
- if (!f || !m) return;
1243
- const e = f.contribution(), t = m(e, g);
1267
+ if (!p || !_) return;
1268
+ const e = p.contribution(), t = _(e, v);
1244
1269
  return () => {
1245
1270
  "function" == typeof t && t(), e.remove();
1246
1271
  };
1247
1272
  }, [
1248
- f,
1249
- m,
1250
- g
1273
+ p,
1274
+ _,
1275
+ v
1251
1276
  ]), M(() => {
1252
- if (!f || !n) return;
1253
- const e = (Array.isArray(n) ? n : [n]).map((e) => f.use(e));
1277
+ if (!p || !n) return;
1278
+ const e = (Array.isArray(n) ? n : [n]).map((e) => p.use(e));
1254
1279
  return () => {
1255
1280
  for (const t of e) t();
1256
1281
  };
1257
- }, [f, n]), M(() => {
1258
- if (s) return s.current = p, () => {
1259
- s.current = null;
1282
+ }, [p, n]), M(() => {
1283
+ if (l) return l.current = m, () => {
1284
+ l.current = null;
1260
1285
  };
1261
- }, [s, p]);
1262
- const _ = k(null), v = r ?? _;
1263
- dt(r || "function" == typeof l ? p : null, v, i);
1264
- const y = L(() => f ? f.getRegistry()?.getDynamic(f.name) ?? [] : [], [f]);
1286
+ }, [l, m]);
1287
+ const y = k(null), b = i ?? y;
1288
+ dt(i || "function" == typeof a ? m : null, b, s);
1289
+ const w = L(() => p ? p.getRegistry()?.getDynamic(p.name) ?? [] : [], [p]);
1265
1290
  return P(at.Provider, {
1266
- value: p,
1291
+ value: m,
1267
1292
  children: R(rt.Provider, {
1268
- value: f ? null : c,
1269
- children: [f && y.map((e, t) => P(e, {
1270
- scope: f,
1271
- data: g
1272
- }, t)), "function" == typeof l ? l(v) : l]
1293
+ value: p ? null : u,
1294
+ children: [p && w.map((e, t) => P(e, {
1295
+ scope: p,
1296
+ data: v
1297
+ }, t)), "function" == typeof a ? a(b) : a]
1273
1298
  })
1274
1299
  });
1275
1300
  }
@@ -1474,12 +1499,12 @@ var Bt = {
1474
1499
  Warning: "warning",
1475
1500
  Info: "info"
1476
1501
  };
1477
- function Ht(e = () => {}, t = () => {}, n = () => {}) {
1502
+ function Ot(e = () => {}, t = () => {}, n = () => {}) {
1478
1503
  const o = () => e();
1479
1504
  return o.setProgress = t, o.setMessage = n, o;
1480
1505
  }
1481
- function Ot() {
1482
- return Ht();
1506
+ function Ht() {
1507
+ return Ot();
1483
1508
  }
1484
1509
  var It = [
1485
1510
  "debug",
@@ -1509,7 +1534,7 @@ var It = [
1509
1534
  error: (e, t) => r.error(e, t),
1510
1535
  showMessage: () => {},
1511
1536
  showError: (e) => r.error(e),
1512
- showBusy: () => Promise.resolve(Ot()),
1537
+ showBusy: () => Promise.resolve(Ht()),
1513
1538
  showWindow: () => Promise.resolve(document.createElement("div")),
1514
1539
  showOptions: () => Promise.resolve(""),
1515
1540
  showInput: () => Promise.resolve({
@@ -1830,7 +1855,7 @@ var gn = null, _n = /* @__PURE__ */ new Set(), vn = !1, yn = () => "touch" == ("
1830
1855
  $n || ($n = (e, t, n = {}) => {
1831
1856
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1832
1857
  const c = (e) => {
1833
- r = e, O(() => l.forEach((t) => t(e)));
1858
+ r = e, H(() => l.forEach((t) => t(e)));
1834
1859
  }, u = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1835
1860
  return () => {
1836
1861
  const [n, s] = z(u);
@@ -1843,17 +1868,17 @@ $n || ($n = (e, t, n = {}) => {
1843
1868
  }), []), n;
1844
1869
  };
1845
1870
  });
1846
- var Bn = $n, Hn = () => {}, On = Bn(null, () => {
1871
+ var Bn = $n, On = () => {}, Hn = Bn(null, () => {
1847
1872
  const [e, t] = z(null);
1848
- return Hn = t, e;
1873
+ return On = t, e;
1849
1874
  }), In = (e) => {
1850
- Hn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1875
+ On((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1851
1876
  }, Nn = /* @__PURE__ */ new Set(), Fn = (e, t) => {
1852
1877
  Nn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1853
1878
  }, Wn = (e) => (Nn.add(e), () => {
1854
1879
  Nn.delete(e);
1855
1880
  }), Kn = () => {
1856
- const e = On();
1881
+ const e = Hn();
1857
1882
  return L(() => ({
1858
1883
  setMode: In,
1859
1884
  getMode: () => e
@@ -2310,10 +2335,10 @@ var $o = w(v((e, t) => {
2310
2335
  })]
2311
2336
  });
2312
2337
  })), Bo = g(null);
2313
- function Ho() {
2338
+ function Oo() {
2314
2339
  return S(Bo);
2315
2340
  }
2316
- function Oo(e, t) {
2341
+ function Ho(e, t) {
2317
2342
  const n = t?.renderError;
2318
2343
  let o = null;
2319
2344
  const r = () => {
@@ -2767,10 +2792,10 @@ var Cr = g(null), Lr = () => {
2767
2792
  if (1 === t.nodeType) return t;
2768
2793
  const n = t.contextElement;
2769
2794
  return n && 1 === n.nodeType ? n : null;
2770
- }, Hr = w(v((t, n) => {
2795
+ }, Or = w(v((t, n) => {
2771
2796
  const { open: o, children: r, label: i, offsets: s = $r, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: C, onClosing: T, onClose: A, ...D } = t;
2772
2797
  if (Array.isArray(r)) throw new Error("children can not be an array");
2773
- const R = jt(w ?? (() => {}), [w]), $ = jt(S ?? (() => {}), [S]), B = jt(C ?? (() => {}), [C]), O = jt(T ?? (() => {}), [T]), I = jt(A ?? (() => {}), [A]), [X, Z] = z(!1), [q, U] = z(!1), [G, J] = z(!1), [Q, ee] = z(), [te, ne] = z(), oe = k(null), re = k(null), { getPortalContainer: ie } = ln(), se = Ar(), le = zr(a ? null : Br(l)), ae = k(h);
2798
+ const R = jt(w ?? (() => {}), [w]), $ = jt(S ?? (() => {}), [S]), B = jt(C ?? (() => {}), [C]), H = jt(T ?? (() => {}), [T]), I = jt(A ?? (() => {}), [A]), [X, Z] = z(!1), [q, U] = z(!1), [G, J] = z(!1), [Q, ee] = z(), [te, ne] = z(), oe = k(null), re = k(null), { getPortalContainer: ie } = ln(), se = Ar(), le = zr(a ? null : Br(l)), ae = k(h);
2774
2799
  ae.current = h;
2775
2800
  const ce = !!h, ue = d ? "object" == typeof d ? d.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: de, alignmentAxis: fe } = Array.isArray(s) ? {
2776
2801
  mainAxis: s[1] ?? 0,
@@ -2842,7 +2867,7 @@ var Cr = g(null), Lr = () => {
2842
2867
  ye,
2843
2868
  q
2844
2869
  ]), M(() => {
2845
- o && q ? $?.() : !o && X && O?.();
2870
+ o && q ? $?.() : !o && X && H?.();
2846
2871
  }, [o, q]), M(() => {
2847
2872
  if (X && q && o) {
2848
2873
  if (!f) return J(!0), void B?.();
@@ -2868,7 +2893,7 @@ var Cr = g(null), Lr = () => {
2868
2893
  ...le
2869
2894
  } : Ee || Ce["data-sxl-theme-mode"] || Ce["data-sxl-theme-surface"] ? Ce : le;
2870
2895
  const Te = m ?? Xo("popup"), ke = r || e.EmptyArray;
2871
- return H(P("div", {
2896
+ return O(P("div", {
2872
2897
  ref: xe,
2873
2898
  className: N(Dr, b, Ee),
2874
2899
  role: void 0,
@@ -2891,11 +2916,11 @@ var Cr = g(null), Lr = () => {
2891
2916
  }) : ke
2892
2917
  }), p ?? ie());
2893
2918
  }));
2894
- Hr.displayName = "FloatPopper";
2895
- var Or = "_float-popup_juap7_1", Ir = (e) => {
2919
+ Or.displayName = "FloatPopper";
2920
+ var Hr = "_float-popup_juap7_1", Ir = (e) => {
2896
2921
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2897
2922
  return P("div", {
2898
- className: N("sxl-menu", Or, s),
2923
+ className: N("sxl-menu", Hr, s),
2899
2924
  ...l,
2900
2925
  children: i
2901
2926
  });
@@ -2934,7 +2959,7 @@ var Wr = w(v((e, t) => {
2934
2959
  w,
2935
2960
  s
2936
2961
  ]);
2937
- return P(Hr, {
2962
+ return P(Or, {
2938
2963
  ref: t,
2939
2964
  anchorEl: o,
2940
2965
  anchorPosition: r,
@@ -3000,22 +3025,22 @@ var Kr = (e) => P(Wr, { ...e }), Vr = (e) => {
3000
3025
  const t = C.floatByParents.get(e);
3001
3026
  let n = null;
3002
3027
  return t && (n = C.statesByMovables.get(t)?.close(0) ?? null), n;
3003
- }, B = () => $(G.key), [H, O] = z(null), I = () => {
3028
+ }, B = () => $(G.key), [O, H] = z(null), I = () => {
3004
3029
  if (!_) return V(), null;
3005
3030
  const e = new Promise((e) => {
3006
- O((t) => [...t ?? [], { resolve: e }]);
3031
+ H((t) => [...t ?? [], { resolve: e }]);
3007
3032
  });
3008
3033
  return B(), C.floatByParents.delete(E.key), v(!1), e;
3009
3034
  };
3010
3035
  M(() => {
3011
- if (H) {
3012
- for (const e of H) e.resolve();
3013
- O(null);
3036
+ if (O) {
3037
+ for (const e of O) e.resolve();
3038
+ H(null);
3014
3039
  }
3015
3040
  }, [
3016
3041
  y,
3017
3042
  w,
3018
- H
3043
+ O
3019
3044
  ]);
3020
3045
  const N = x(() => {
3021
3046
  let e = E;
@@ -3180,30 +3205,31 @@ var Kr = (e) => P(Wr, { ...e }), Vr = (e) => {
3180
3205
  let o = t;
3181
3206
  return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
3182
3207
  }, Jr = w(v((e, t) => {
3183
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = Zr, propsPane: w = Zr, propsPaneBefore: x = Zr, propsPaneAfter: S = Zr, renderResizer: E = Xr } = e;
3184
- if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
3185
- const C = L(() => y(o) && y(n), [o, n]), T = L(() => {
3208
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, collapsed: s = !1, position: l, onPositionChange: a, minBefore: c, maxBefore: u, minAfter: h, maxAfter: d, children: f, className: p, style: m, disabled: g = !1, onDragStart: _, onDragResize: v, onDragFinish: b, propsResizer: w = Zr, propsPane: x = Zr, propsPaneBefore: S = Zr, propsPaneAfter: E = Zr, renderResizer: C = Xr } = e;
3209
+ if (f) throw new Error("Use elementBefore and elementAfter instead of children.");
3210
+ const T = L(() => y(o) && y(n), [o, n]), A = s && T && !!i, D = L(() => {
3186
3211
  let e = null;
3187
3212
  i && ("before" === i ? e = 0 : "after" === i && (e = 1));
3188
3213
  const t = null === e;
3189
3214
  return {
3190
3215
  fixedPaneOffset: e,
3191
3216
  isPercent: t,
3192
- minBefore: Gr(a, t),
3193
- maxBefore: Gr(c, t),
3194
- minAfter: Gr(u, t),
3195
- maxAfter: Gr(h, t)
3217
+ minBefore: Gr(c, t),
3218
+ maxBefore: Gr(u, t),
3219
+ minAfter: Gr(h, t),
3220
+ maxAfter: Gr(d, t)
3196
3221
  };
3197
3222
  }, [
3198
- a,
3223
+ i,
3199
3224
  c,
3200
3225
  u,
3201
- h
3202
- ]), A = jt(l ?? (() => {}), [l]), [D, $] = z(() => Gr(s, null === i));
3226
+ h,
3227
+ d
3228
+ ]), $ = jt(a ?? (() => {}), [a]), [B, O] = z(() => Gr(l, null === i));
3203
3229
  M(() => {
3204
- $(Gr(s, null === i));
3205
- }, [s, i]);
3206
- const [B, { width: H, height: O }] = yo(), [F, { width: W, height: K }] = yo(), V = "row" === r ? W : K, j = "row" === r ? H : O, Y = L(() => ((e, t, n, o) => {
3230
+ O(Gr(l, null === i));
3231
+ }, [l, i]);
3232
+ const [H, { width: F, height: W }] = yo(), [K, { width: V, height: j }] = yo(), Y = "row" === r ? V : j, X = "row" === r ? F : W, Z = L(() => ((e, t, n, o) => {
3207
3233
  const r = [null, null], i = [null, null];
3208
3234
  if (e || (e = {
3209
3235
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -3227,13 +3253,13 @@ var Kr = (e) => P(Wr, { ...e }), Vr = (e) => {
3227
3253
  maxBefore: `${r[0]}px`,
3228
3254
  maxAfter: `${r[1]}px`
3229
3255
  };
3230
- })(D, j, V, T), [
3231
- T,
3256
+ })(B, X, Y, D), [
3232
3257
  D,
3233
- j,
3234
- V,
3258
+ B,
3259
+ X,
3260
+ Y,
3235
3261
  r
3236
- ]), [X, Z] = z(!1), q = jt(g ?? (() => {}), [g]), U = jt(_ ?? (() => {}), [_]), G = jt(v ?? (() => {}), [v]), J = k(null), Q = k(null), ee = k(null), { style: te, className: ne, ...oe } = w, re = {
3262
+ ]), [q, U] = z(!1), G = jt(_ ?? (() => {}), [_]), J = jt(v ?? (() => {}), [v]), Q = jt(b ?? (() => {}), [b]), ee = k(null), te = k(null), ne = k(null), { style: oe, className: re, ...ie } = x, se = {
3237
3263
  minWidth: 0,
3238
3264
  minHeight: 0,
3239
3265
  maxWidth: "100%",
@@ -3243,135 +3269,151 @@ var Kr = (e) => P(Wr, { ...e }), Vr = (e) => {
3243
3269
  display: "flex",
3244
3270
  overflow: "hidden",
3245
3271
  position: "relative",
3246
- ...te
3247
- }, { className: ie, style: se, ...le } = x, { className: ae, style: ce, ...ue } = S, he = {
3272
+ ...oe
3273
+ }, { className: le, style: ae, ...ce } = S, { className: ue, style: he, ...de } = E, fe = {
3248
3274
  flex: "1 1 100%",
3249
3275
  width: "100%",
3250
- ...p,
3276
+ ...m,
3251
3277
  flexDirection: r,
3252
3278
  display: "flex"
3253
- }, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = jt((e) => {
3279
+ }, { className: pe, style: me, onPointerDown: ge, ..._e } = w, ve = jt((e) => {
3254
3280
  const t = Gr(e, null === i);
3255
- $(t);
3256
- }, [i]), _e = jt((e) => {
3257
- if (m || !X) return;
3258
- const t = be.current?.getBoundingClientRect();
3281
+ O(t);
3282
+ }, [i]), ye = jt((e) => {
3283
+ if (g || !q) return;
3284
+ const t = xe.current?.getBoundingClientRect();
3259
3285
  let n = 0;
3260
- n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(j, n)), 1 === T.fixedPaneOffset && (n = j - n), s && D?.pixels === n || $({
3286
+ n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(X, n)), 1 === D.fixedPaneOffset && (n = X - n), l && B?.pixels === n || O({
3261
3287
  pixels: n,
3262
3288
  percent: null
3263
- }), U?.(n), e.stopPropagation(), e.preventDefault();
3289
+ }), J?.(n), e.stopPropagation(), e.preventDefault();
3264
3290
  }, [
3265
- T,
3266
- r,
3267
- m,
3268
- X,
3269
3291
  D,
3270
- j
3271
- ]), ve = jt((e) => {
3272
- if (document.removeEventListener("pointermove", _e), document.removeEventListener("touchmove", _e), document.removeEventListener("pointerup", ve), X && (Z(!1), D)) {
3273
- if (G(D.pixels ?? 0), !Gr(s, null === i) || D.pixels !== s) {
3274
- const e = D.pixels ?? 0, t = {
3292
+ r,
3293
+ g,
3294
+ q,
3295
+ B,
3296
+ X
3297
+ ]), be = jt((e) => {
3298
+ if (document.removeEventListener("pointermove", ye), document.removeEventListener("touchmove", ye), document.removeEventListener("pointerup", be), q && (U(!1), B)) {
3299
+ if (Q(B.pixels ?? 0), !Gr(l, null === i) || B.pixels !== l) {
3300
+ const e = B.pixels ?? 0, t = {
3275
3301
  pixels: e,
3276
- percent: D.percent ?? e / j * 100
3302
+ percent: B.percent ?? e / X * 100
3277
3303
  };
3278
- A(t);
3304
+ $(t);
3279
3305
  }
3280
3306
  e.stopPropagation(), e.preventDefault();
3281
3307
  }
3282
3308
  }, [
3283
- D,
3284
- X,
3285
- s,
3309
+ B,
3310
+ q,
3311
+ l,
3286
3312
  i,
3287
- j
3288
- ]), ye = jt((e) => {
3289
- pe?.(e), e.defaultPrevented || m || X || (Z(!0), q(), document.addEventListener("pointermove", _e, { passive: !1 }), document.addEventListener("touchmove", _e, { passive: !1 }), document.addEventListener("pointerup", ve, { passive: !1 }));
3290
- }, [pe]), be = lo(t, () => ({
3291
- setPosition: ge,
3313
+ X
3314
+ ]), we = jt((e) => {
3315
+ ge?.(e), e.defaultPrevented || g || q || (U(!0), G(), document.addEventListener("pointermove", ye, { passive: !1 }), document.addEventListener("touchmove", ye, { passive: !1 }), document.addEventListener("pointerup", be, { passive: !1 }));
3316
+ }, [ge]), xe = lo(t, () => ({
3317
+ setPosition: ve,
3292
3318
  isSplitPane: () => !0
3293
- }), []), we = I([F, Q]), xe = L(() => C ? P(Po, {
3294
- render: E,
3319
+ }), []), Se = I([K, te]), Me = L(() => !T || A ? null : P(Po, {
3320
+ render: C,
3295
3321
  props: {
3296
- ref: we,
3297
- className: N("sxl-resizer", de),
3298
- onPointerDownCapture: ye,
3322
+ ref: Se,
3323
+ className: N("sxl-resizer", pe),
3324
+ onPointerDownCapture: we,
3299
3325
  style: {
3300
- cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
3326
+ cursor: g ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
3301
3327
  minWidth: "row" === r ? "2px" : void 0,
3302
3328
  minHeight: "row" !== r ? "2px" : void 0,
3303
3329
  boxSizing: "border-box",
3304
3330
  pointerEvents: "all",
3305
3331
  zIndex: 1,
3306
- ...fe
3332
+ ...me
3307
3333
  },
3308
3334
  splitDirection: r,
3309
- disabled: m,
3310
- ...me
3335
+ disabled: g,
3336
+ ..._e
3311
3337
  }
3312
- }, "resizer") : null, [
3313
- C,
3314
- we,
3315
- de,
3316
- me,
3338
+ }, "resizer"), [
3339
+ T,
3340
+ A,
3341
+ Se,
3342
+ pe,
3343
+ _e,
3317
3344
  r,
3318
- fe,
3319
- m
3320
- ]), Se = "row" === r ? "Width" : "Height", Me = L(() => {
3345
+ me,
3346
+ g
3347
+ ]), Ee = "row" === r ? "Width" : "Height", Ce = L(() => {
3321
3348
  if (!n) return null;
3322
- const e = {
3323
- ...re,
3349
+ const e = A ? {
3324
3350
  ...se,
3325
- flex: 0 === T.fixedPaneOffset && null !== Y?.pixels[0] ? `0 0 ${Math.round(Y?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[0] ?? 100)}%`,
3326
- [`min${Se}`]: Y?.minBefore,
3327
- [`max${Se}`]: o ? Y?.maxBefore : "100%"
3351
+ ...ae,
3352
+ ...0 === D.fixedPaneOffset ? { display: "none" } : { flex: "1 1 100%" }
3353
+ } : {
3354
+ ...se,
3355
+ ...ae,
3356
+ flex: 0 === D.fixedPaneOffset && null !== Z?.pixels[0] ? `0 0 ${Math.round(Z?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(Z?.percents[0] ?? 100)}%`,
3357
+ [`min${Ee}`]: Z?.minBefore,
3358
+ [`max${Ee}`]: o ? Z?.maxBefore : "100%"
3328
3359
  };
3329
3360
  return P("div", {
3330
- ref: J,
3331
- className: N("sxl-before", ne, ie),
3361
+ ref: ee,
3362
+ className: N("sxl-before", re, le),
3332
3363
  style: e,
3333
- ...oe,
3334
- ...le,
3364
+ ...ie,
3365
+ ...ce,
3335
3366
  children: n
3336
3367
  }, "before");
3337
3368
  }, [
3338
3369
  n,
3339
- w,
3340
3370
  x,
3341
- T,
3342
- Y
3343
- ]), Ee = L(() => {
3371
+ S,
3372
+ D,
3373
+ Z,
3374
+ A,
3375
+ Ee
3376
+ ]), Le = L(() => {
3344
3377
  if (!o) return null;
3345
- const e = {
3346
- ...re,
3347
- ...ce,
3348
- flex: 1 === T.fixedPaneOffset && null !== Y?.pixels[1] ? `0 0 ${Math.round(Y?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[1] ?? 100)}%`,
3349
- [`min${Se}`]: Y?.minAfter,
3350
- [`max${Se}`]: n ? Y?.maxAfter : "100%"
3378
+ const e = A ? {
3379
+ ...se,
3380
+ ...he,
3381
+ ...1 === D.fixedPaneOffset ? { display: "none" } : { flex: "1 1 100%" }
3382
+ } : {
3383
+ ...se,
3384
+ ...he,
3385
+ flex: 1 === D.fixedPaneOffset && null !== Z?.pixels[1] ? `0 0 ${Math.round(Z?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(Z?.percents[1] ?? 100)}%`,
3386
+ [`min${Ee}`]: Z?.minAfter,
3387
+ [`max${Ee}`]: n ? Z?.maxAfter : "100%"
3351
3388
  };
3352
3389
  return P("div", {
3353
- ref: ee,
3354
- className: N("sxl-after", ne, ae),
3390
+ ref: ne,
3391
+ className: N("sxl-after", re, ue),
3355
3392
  style: e,
3356
- ...oe,
3357
- ...ue,
3393
+ ...ie,
3394
+ ...de,
3358
3395
  children: o
3359
3396
  }, "after");
3360
3397
  }, [
3361
3398
  o,
3362
- w,
3363
- S,
3364
- T,
3365
- Y
3366
- ]), Ce = I([B, be]);
3399
+ x,
3400
+ E,
3401
+ D,
3402
+ Z,
3403
+ A,
3404
+ Ee
3405
+ ]), Te = I([H, xe]);
3367
3406
  return R("div", {
3368
- ref: Ce,
3369
- className: N("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": X }, f),
3370
- style: he,
3407
+ ref: Te,
3408
+ className: N("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", {
3409
+ "sxl-dragging": q,
3410
+ "sxl-collapsed": A
3411
+ }, p),
3412
+ style: fe,
3371
3413
  children: [
3414
+ Ce,
3372
3415
  Me,
3373
- xe,
3374
- Ee
3416
+ Le
3375
3417
  ]
3376
3418
  });
3377
3419
  }));
@@ -3498,7 +3540,7 @@ function oi(e) {
3498
3540
  label: e.meta?.label ?? "Unnamed",
3499
3541
  version: e.meta?.version ?? "1.0.0",
3500
3542
  license: e.meta?.license ?? "MIT",
3501
- defaultViewBox: "0 0 24 24",
3543
+ defaultViewBox: e.meta?.defaultViewBox ?? "0 0 24 24",
3502
3544
  extends: e.meta?.extends ?? []
3503
3545
  };
3504
3546
  n.extends.includes("base") || n.extends.push("base");
@@ -3648,7 +3690,7 @@ function ri() {
3648
3690
  }
3649
3691
  Jr.displayName = "SplitPane";
3650
3692
  var ii = ri();
3651
- ii.register("base", () => import("./CONFyJIToklTND9g.mjs")), ii.register("cf", () => import("./ChJrp4qPk0bNL-My.mjs"));
3693
+ ii.register("base", () => import("./DLiF-zHaMR-Qi275.mjs")), ii.register("cf", () => import("./CSH38x_MaxNFczQs.mjs"));
3652
3694
  var si = (e) => P("svg", {
3653
3695
  ...e,
3654
3696
  children: P("path", {})
@@ -3982,7 +4024,7 @@ var Ei = async (e) => {
3982
4024
  }, ki = {
3983
4025
  Horizontal: "horizontal",
3984
4026
  Vertical: "vertical"
3985
- }, zi = "_scrollbar_z7hk1_1", Ai = "_track_z7hk1_29", Di = "_thumb_z7hk1_41", Pi = "_scrollbar-button_z7hk1_90", Ri = "_touch-thumb_z7hk1_125", $i = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Bi = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Hi = { transform: "rotate(180deg)" }, Oi = (e) => {
4027
+ }, zi = "_scrollbar_z7hk1_1", Ai = "_track_z7hk1_29", Di = "_thumb_z7hk1_41", Pi = "_scrollbar-button_z7hk1_90", Ri = "_touch-thumb_z7hk1_125", $i = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Bi = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Oi = { transform: "rotate(180deg)" }, Hi = (e) => {
3986
4028
  const { style: t, orientation: n = ki.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === ki.Vertical ? $i : Bi;
3987
4029
  return P("button", {
3988
4030
  style: t,
@@ -4007,7 +4049,7 @@ var Ei = async (e) => {
4007
4049
  width: "9",
4008
4050
  height: "9",
4009
4051
  viewBox: "0 0 9 9",
4010
- style: Hi,
4052
+ style: Oi,
4011
4053
  children: P("path", { d: s })
4012
4054
  })
4013
4055
  });
@@ -4170,11 +4212,11 @@ var Ei = async (e) => {
4170
4212
  const e = A.current;
4171
4213
  e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(E(!1)));
4172
4214
  }, []), !v?.portalTarget) return null;
4173
- const O = 1.8 * s, F = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
4215
+ const H = 1.8 * s, F = _ ? s : H, W = _ ? H : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - H - 4 - X);
4174
4216
  A.current.travel = Z;
4175
- const q = j + 4 + O / 2 + rs(u) * Z;
4217
+ const q = j + 4 + H / 2 + rs(u) * Z;
4176
4218
  let U, G;
4177
- return _ ? (U = v.width - v.crossInset - F / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - F / 2), H(P("div", {
4219
+ return _ ? (U = v.width - v.crossInset - F / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - F / 2), O(P("div", {
4178
4220
  className: N("sxl-touch-thumb", Ri, a, { "sxl-dragging": C }),
4179
4221
  ref: S,
4180
4222
  style: {
@@ -4201,14 +4243,14 @@ var Ei = async (e) => {
4201
4243
  }), v.portalTarget, m);
4202
4244
  }));
4203
4245
  is.displayName = "TouchThumbHandle";
4204
- var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24, cs = w(v((e, t) => {
4205
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = ki.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = as, maxThumbSize: m, renderScrollButtonStart: g = Oi, renderScrollButtonEnd: _ = Ii, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Sn(), T = u ?? !C;
4246
+ var ss = "_scrollbar-themed_11amf_9", ls = "_scrollbar-colors_11amf_5", as = 24, cs = w(v((e, t) => {
4247
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = ki.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = as, maxThumbSize: m, renderScrollButtonStart: g = Hi, renderScrollButtonEnd: _ = Ii, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Sn(), T = u ?? !C;
4206
4248
  jt(c ?? (() => {}), [c]);
4207
4249
  const [A, $] = z({
4208
4250
  offset: 0,
4209
4251
  length: 0,
4210
4252
  disabled: !1
4211
- }), B = k(-1), H = l === ki.Vertical, [O, { width: F, height: W }] = yo(), K = H ? W : F, V = k(null), j = I([O, V]), Y = jt((e, t, n) => {
4253
+ }), B = k(-1), O = l === ki.Vertical, [H, { width: F, height: W }] = yo(), K = O ? W : F, V = k(null), j = I([H, V]), Y = jt((e, t, n) => {
4212
4254
  if (0 === t || 0 === n) {
4213
4255
  const e = {
4214
4256
  offset: 0,
@@ -4255,7 +4297,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4255
4297
  }, [
4256
4298
  r,
4257
4299
  o,
4258
- H,
4300
+ O,
4259
4301
  K
4260
4302
  ]);
4261
4303
  const q = Math.max(0, o - r), U = lo(t, () => ({ isScrollbar: () => !0 }), []), G = jt((e) => {
@@ -4266,7 +4308,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4266
4308
  n,
4267
4309
  q
4268
4310
  ]), Q = ji({
4269
- vertical: H,
4311
+ vertical: O,
4270
4312
  getTrackRect: () => V.current?.getBoundingClientRect() ?? null,
4271
4313
  getThumb: () => A.disabled ? null : {
4272
4314
  offset: A.offset,
@@ -4295,9 +4337,9 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4295
4337
  ])
4296
4338
  }), ee = "thumb" === Q.dragMode, te = jt((e) => {
4297
4339
  const t = Math.max(1, Math.floor(.9 * r));
4298
- H ? ("ArrowDown" === e.key && X(Math.min(q, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q)) : ("ArrowRight" === e.key && X(Math.min(q, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q));
4340
+ O ? ("ArrowDown" === e.key && X(Math.min(q, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q)) : ("ArrowRight" === e.key && X(Math.min(q, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q));
4299
4341
  }, [
4300
- H,
4342
+ O,
4301
4343
  r,
4302
4344
  o,
4303
4345
  n,
@@ -4310,8 +4352,8 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4310
4352
  className: N(Di, { "sxl-disabled": e }),
4311
4353
  ref: ne,
4312
4354
  role: "slider",
4313
- "aria-label": H ? "Rows" : "Columns",
4314
- "aria-orientation": H ? "vertical" : "horizontal",
4355
+ "aria-label": O ? "Rows" : "Columns",
4356
+ "aria-orientation": O ? "vertical" : "horizontal",
4315
4357
  "aria-valuemin": 0,
4316
4358
  "aria-valuemax": q,
4317
4359
  "aria-valuenow": n,
@@ -4319,10 +4361,10 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4319
4361
  style: {
4320
4362
  ...y?.style,
4321
4363
  position: "relative",
4322
- [H ? "height" : "width"]: `${A.length}px`,
4323
- [H ? "width" : "height"]: "100%",
4324
- transform: H ? `translateY(${A.offset}px)` : `translateX(${A.offset}px)`,
4325
- [H ? "minHeight" : "minWidth"]: `${p}px`
4364
+ [O ? "height" : "width"]: `${A.length}px`,
4365
+ [O ? "width" : "height"]: "100%",
4366
+ transform: O ? `translateY(${A.offset}px)` : `translateX(${A.offset}px)`,
4367
+ [O ? "minHeight" : "minWidth"]: `${p}px`
4326
4368
  },
4327
4369
  onMouseDown: S
4328
4370
  });
@@ -4330,7 +4372,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4330
4372
  const o = Math.max(0, K - A.length);
4331
4373
  return R(D, { children: [t, P(is, {
4332
4374
  ...v,
4333
- orientation: H ? ki.Vertical : ki.Horizontal,
4375
+ orientation: O ? ki.Vertical : ki.Horizontal,
4334
4376
  fraction: o > 0 ? A.offset / o : 0,
4335
4377
  onScrollToFraction: (e) => X(e * o),
4336
4378
  onEdgeHold: b,
@@ -4341,7 +4383,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4341
4383
  p,
4342
4384
  q,
4343
4385
  n,
4344
- H,
4386
+ O,
4345
4387
  C,
4346
4388
  S,
4347
4389
  v,
@@ -4412,7 +4454,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4412
4454
  n,
4413
4455
  q,
4414
4456
  re
4415
- ]), pe = H ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = I([U, t]);
4457
+ ]), pe = O ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = I([U, t]);
4416
4458
  return R("div", {
4417
4459
  ref: ge,
4418
4460
  className: N(s, zi, ls, me, {
@@ -4717,8 +4759,8 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4717
4759
  }, ks = (e) => {
4718
4760
  const t = e.trim();
4719
4761
  return "" === t || "auto" === t || "manipulation" === t || t.split(/\s+/).some((e) => e.startsWith("pan-"));
4720
- }, zs = "_scrollpane_zdrii_2", As = "_scrollpane-content_zdrii_20", Ds = "_scrollpane-content-cell_zdrii_33", Ps = "_vertical-container_zdrii_42", Rs = "_horizontal-container_zdrii_50", $s = "_corner-container_zdrii_59", Bs = "_touch-thumb-overlay_zdrii_68", Hs = w(v((e, t) => {
4721
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Os, renderScrollbarHorizontal: u = Ls, renderScrollbarVertical: h = Ls, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Ut(o, (e) => e.getMetrics()), y = x((e, t) => {
4762
+ }, zs = "_scrollpane_zdrii_2", As = "_scrollpane-content_zdrii_20", Ds = "_scrollpane-content-cell_zdrii_33", Ps = "_vertical-container_zdrii_42", Rs = "_horizontal-container_zdrii_50", $s = "_corner-container_zdrii_59", Bs = "_touch-thumb-overlay_zdrii_68", Os = w(v((e, t) => {
4763
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Hs, renderScrollbarHorizontal: u = Ls, renderScrollbarVertical: h = Ls, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Ut(o, (e) => e.getMetrics()), y = x((e, t) => {
4722
4764
  if (!o) return;
4723
4765
  const n = o.getTarget();
4724
4766
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
@@ -4851,7 +4893,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4851
4893
  left: e,
4852
4894
  top: t
4853
4895
  });
4854
- }, []), B = k(!1), H = x((e) => {
4896
+ }, []), B = k(!1), O = x((e) => {
4855
4897
  1 === e.touches.length && (B.current = ((e, t, n = Ts) => {
4856
4898
  let o = e instanceof Element ? e : null;
4857
4899
  for (; o && o !== t;) {
@@ -4860,7 +4902,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4860
4902
  }
4861
4903
  return !1;
4862
4904
  })(e.target, b.current)), e.touches.length, B.current, B.current || w.current?.doTouchStart(e.touches, e.timeStamp);
4863
- }, []), O = x((e) => {
4905
+ }, []), H = x((e) => {
4864
4906
  B.current || (e.preventDefault(), 2 === e.touches.length && (E.current.focal = {
4865
4907
  clientX: (e.touches[0].clientX + e.touches[1].clientX) / 2,
4866
4908
  clientY: (e.touches[0].clientY + e.touches[1].clientY) / 2
@@ -4881,7 +4923,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4881
4923
  zooming: !0,
4882
4924
  minZoom: .1,
4883
4925
  maxZoom: 4
4884
- }), w.current.setZoomLevel(o?.getZoom() ?? 1), E.current.lastZoom = w.current.__zoomLevel), t && (e.addEventListener("touchstart", H, { passive: !1 }), e.addEventListener("touchend", I), e.addEventListener("touchmove", O, { passive: !1 }));
4926
+ }), w.current.setZoomLevel(o?.getZoom() ?? 1), E.current.lastZoom = w.current.__zoomLevel), t && (e.addEventListener("touchstart", O, { passive: !1 }), e.addEventListener("touchend", I), e.addEventListener("touchmove", H, { passive: !1 }));
4885
4927
  const n = o?.getZoom() || 1;
4886
4928
  F({
4887
4929
  containerWidth: v?.width,
@@ -4891,7 +4933,7 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
4891
4933
  });
4892
4934
  }
4893
4935
  return () => {
4894
- e?.removeEventListener("touchstart", H), e?.removeEventListener("touchend", I), e?.removeEventListener("touchmove", O);
4936
+ e?.removeEventListener("touchstart", O), e?.removeEventListener("touchend", I), e?.removeEventListener("touchmove", H);
4895
4937
  };
4896
4938
  }, [
4897
4939
  v?.width,
@@ -5008,8 +5050,8 @@ var ss = "_scrollbar-themed_b1iep_9", ls = "_scrollbar-colors_b1iep_5", as = 24,
5008
5050
  })
5009
5051
  });
5010
5052
  }));
5011
- Hs.displayName = "ScrollPane";
5012
- var Os = (e) => {
5053
+ Os.displayName = "ScrollPane";
5054
+ var Hs = (e) => {
5013
5055
  const { size: t, style: n, ...o } = e;
5014
5056
  return P("div", {
5015
5057
  className: "sxl-corner",
@@ -5575,7 +5617,7 @@ var tl = ss, nl = (e) => {
5575
5617
  const m = Ar(), g = zr(o), { className: _, attrs: v } = kr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = ln(), [, w] = z(0);
5576
5618
  return M(() => {
5577
5619
  c && !c.isConnected && w((e) => e + 1);
5578
- }), "undefined" == typeof document ? null : H(P("div", {
5620
+ }), "undefined" == typeof document ? null : O(P("div", {
5579
5621
  ref: h,
5580
5622
  className: N("sxl-keyboard-accessory", _, s),
5581
5623
  ...y,
@@ -5813,4 +5855,4 @@ var vl = {
5813
5855
  });
5814
5856
  }
5815
5857
  };
5816
- export { te as ACCUMULATE, $t as AnimationModeProvider, Zs as AxisViewport, Uo as BRACKET_COUNT, At as Command, mt as CommandAnchorProvider, de as CommandButtonEntryLabel, ae as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, ee as CommandButtonType, rt as CommandChainContext, _t as CommandFallbackContext, bt as CommandFallbackProvider, xt as CommandFocusProvider, st as CommandOrderContext, oe as CommandRegistry, Ce as CommandRegistryContext, ot as CommandResolver, ft as CommandResolverContext, Te as CommandScope, at as CommandScopeContext, ht as CommandScopeProvider, Ae as ConstantActivation, le as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, re as DefaultCommandRegistry, ii as DefaultIconService, ai as DynamicIcon, Fi as EDGE_HOLD_INTERVAL_MS, Wr as FloatPanel, Fr as FloatPanelSurface, Hr as FloatPopper, Vr as FloatProvider, Et as FloatStackProvider, De as FocusActivation, Do as FocusKeyNavigation, ir as INPUT_SELECTION_TINT, rr as INPUT_SELECTION_VAR, ui as InMemoryStore, Je as KeyBindingDispatcher, J as KeyCodes, G as KeyModifiers, ml as KeyboardAccessory, Vn as LanguageStateKey, Pe as LayerActivation, Si as LocalStorageStore, ze as ManualActivation, Q as MouseButtonCodes, Bt as NotifierType, Wi as PAGE_INITIAL_DELAY_MS, Ki as PAGE_REPEAT_DELAY_MS, yi as PendingRender, Li as PendingRenderScope, vi as PersistentStateProvider, fe as QUICK_ACTION_TAG, No as ReactErrorBoundary, Kt as ReactNotifierProvider, Re as ReactUtils, Po as RenderSlot, yl as Resizable, bl as ResizableBox, $o as RoundedTab, Ns as SCROLL_ANIMATION_MS, qo as SERIES_COUNT, lr as SXL_THEME_LAYERS, ar as SXL_THEME_LAYER_ORDER, Hs as ScrollPane, Es as ScrollUtils, cs as Scrollbar, ki as ScrollbarOrientation, Jr as SplitPane, Xr as SplitPaneResizer, hr as THEME_MODE_ATTR, dr as THEME_SURFACE_ATTR, Xi as TOUCH_THUMB_ASPECT, Zi as TOUCH_THUMB_MARGIN, Ui as TOUCH_THUMB_MARGIN_CROSS, Gi as TOUCH_THUMB_MARGIN_END, qi as TOUCH_THUMB_MARGIN_START, Yi as TOUCH_THUMB_SIZE, vr as ThemeModeFallbackContext, _r as ThemeStyle, ts as TouchThumbFrameProvider, is as TouchThumbHandle, jo as UncaughtErrorBoundary, Is as Viewport, sl as VirtualKeyboardProvider, el as VirtualScrollbar, ci as WalkingIcon, Yo as Z_INDEX, be as asCommandCatalog, ut as attachWhenReady, ur as buildThemeCSS, xe as chromeToPartial, Zn as composeCaretRect, Ht as createBusyHandle, Me as createCommandCatalogService, ri as createDynamicIconService, Ot as createNoopBusyHandle, me as createResolvedCommand, pr as createThemeScopeClass, Vi as createTrackDrag, ol as createVirtualKeyboardStore, Kr as defaultRenderFloatPanel, Ir as defaultRenderFloatPopupPanel, Ni as defaultRenderScrollButtonEdge, Ii as defaultRenderScrollButtonEnd, Oi as defaultRenderScrollButtonStart, Os as defaultRenderScrollCorner, Go as defaultTheme, gr as ensureThemeLayerOrder, Fn as exitEditMode, we as fetchCatalog, kr as floatThemeScopeProps, Jt as getDevicePixelRatio, yn as getInputModality, fl as getKeyboardAccessoryTop, Un as getTextareaCaretRect, ho as getVisualViewportRect, Ge as isCaretKey, nl as isVirtualKeyboardUp, et as keyEventCanonicals, Qe as keyStrokeToCanonical, Oo as lazyComponent, fn as measureUIText, Se as mergeChrome, Zo as offsetZIndex, ve as parseShortcutString, ne as reduceDefinitions, ke as resolveAnchorSource, Sr as resolveToken, Mr as resolveTokens, tl as scrollbarThemedClassName, ye as serializeShortcut, In as setEditMode, Wn as subscribeEditModeExit, wn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, fo as subscribeVisualViewport, fr as themeSurfaceProps, er as themeVars, Qo as toVars, nr as tokenVar, Qi as touchThumbCornerReserve, Ji as touchThumbCrossInset, Ao as useAnimatedMeasure, Rt as useAnimationMode, Zt as useBoundSyncExternalStore, jt as useCallbackRef, he as useCommandButtonEntry, ce as useCommandButtonRegistry, it as useCommandChain, dt as useCommandElement, gt as useCommandExecute, vt as useCommandFallback, St as useCommandFocusRestore, lt as useCommandOrder, Le as useCommandRegistry, pt as useCommandResolver, ct as useCommandScope, kt as useCommands, zt as useContributeCommands, Gt as useDevicePixelRatio, Kn as useEditMode, Ct as useFloat, Tt as useFloatPopupOpen, jr as useFloatStack, Tr as useFloatSurface, en as useFullscreen, ln as useFullscreenPortal, Jn as useGlobalClipboard, io as useId, lo as useImperativeElement, Sn as useInputModality, _o as useIsomorphicLayoutEffect, _l as useKeyboardResize, jn as useLanguage, Ho as useLazyRetry, Co as useLocationSearch, yo as useMeasure, mn as useMouseDownAndHoldListener, Vt as useNotifier, Qt as useOnClickOrFocusAway, Ut as useOptionalBoundSyncExternalStore, Xt as useOptionalSyncExternalStore, Ti as usePendingRender, gi as usePersistentState, yr as useResolvedThemeMode, pn as useSynchronizedPointerHandler, dn as useTextSelectionDrag, Gn as useTextareaCaretRect, ns as useTouchThumbFrame, Qn as useTraceUpdate, ji as useTrackDrag, Yn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, go as useVisualViewportRect, Ei as whenRenderSettled, Xo as zIndexVar };
5858
+ export { te as ACCUMULATE, $t as AnimationModeProvider, Zs as AxisViewport, Uo as BRACKET_COUNT, At as Command, mt as CommandAnchorProvider, de as CommandButtonEntryLabel, ae as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, ee as CommandButtonType, rt as CommandChainContext, _t as CommandFallbackContext, bt as CommandFallbackProvider, xt as CommandFocusProvider, st as CommandOrderContext, oe as CommandRegistry, Ce as CommandRegistryContext, ot as CommandResolver, ft as CommandResolverContext, Te as CommandScope, at as CommandScopeContext, ht as CommandScopeProvider, Ae as ConstantActivation, le as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, re as DefaultCommandRegistry, ii as DefaultIconService, ai as DynamicIcon, Fi as EDGE_HOLD_INTERVAL_MS, Wr as FloatPanel, Fr as FloatPanelSurface, Or as FloatPopper, Vr as FloatProvider, Et as FloatStackProvider, De as FocusActivation, Do as FocusKeyNavigation, ir as INPUT_SELECTION_TINT, rr as INPUT_SELECTION_VAR, ui as InMemoryStore, Je as KeyBindingDispatcher, J as KeyCodes, G as KeyModifiers, ml as KeyboardAccessory, Vn as LanguageStateKey, Pe as LayerActivation, Si as LocalStorageStore, ze as ManualActivation, Q as MouseButtonCodes, Bt as NotifierType, Wi as PAGE_INITIAL_DELAY_MS, Ki as PAGE_REPEAT_DELAY_MS, yi as PendingRender, Li as PendingRenderScope, vi as PersistentStateProvider, fe as QUICK_ACTION_TAG, No as ReactErrorBoundary, Kt as ReactNotifierProvider, Re as ReactUtils, Po as RenderSlot, yl as Resizable, bl as ResizableBox, $o as RoundedTab, Ns as SCROLL_ANIMATION_MS, qo as SERIES_COUNT, lr as SXL_THEME_LAYERS, ar as SXL_THEME_LAYER_ORDER, Os as ScrollPane, Es as ScrollUtils, cs as Scrollbar, ki as ScrollbarOrientation, Jr as SplitPane, Xr as SplitPaneResizer, hr as THEME_MODE_ATTR, dr as THEME_SURFACE_ATTR, Xi as TOUCH_THUMB_ASPECT, Zi as TOUCH_THUMB_MARGIN, Ui as TOUCH_THUMB_MARGIN_CROSS, Gi as TOUCH_THUMB_MARGIN_END, qi as TOUCH_THUMB_MARGIN_START, Yi as TOUCH_THUMB_SIZE, vr as ThemeModeFallbackContext, _r as ThemeStyle, ts as TouchThumbFrameProvider, is as TouchThumbHandle, jo as UncaughtErrorBoundary, Is as Viewport, sl as VirtualKeyboardProvider, el as VirtualScrollbar, ci as WalkingIcon, Yo as Z_INDEX, be as asCommandCatalog, ut as attachWhenReady, ur as buildThemeCSS, xe as chromeToPartial, Zn as composeCaretRect, Ot as createBusyHandle, Me as createCommandCatalogService, ri as createDynamicIconService, Ht as createNoopBusyHandle, me as createResolvedCommand, pr as createThemeScopeClass, Vi as createTrackDrag, ol as createVirtualKeyboardStore, Kr as defaultRenderFloatPanel, Ir as defaultRenderFloatPopupPanel, Ni as defaultRenderScrollButtonEdge, Ii as defaultRenderScrollButtonEnd, Hi as defaultRenderScrollButtonStart, Hs as defaultRenderScrollCorner, Go as defaultTheme, gr as ensureThemeLayerOrder, Fn as exitEditMode, we as fetchCatalog, kr as floatThemeScopeProps, Jt as getDevicePixelRatio, yn as getInputModality, fl as getKeyboardAccessoryTop, Un as getTextareaCaretRect, ho as getVisualViewportRect, Ge as isCaretKey, nl as isVirtualKeyboardUp, et as keyEventCanonicals, Qe as keyStrokeToCanonical, Ho as lazyComponent, fn as measureUIText, Se as mergeChrome, Zo as offsetZIndex, ve as parseShortcutString, ne as reduceDefinitions, ke as resolveAnchorSource, Sr as resolveToken, Mr as resolveTokens, tl as scrollbarThemedClassName, ye as serializeShortcut, In as setEditMode, Wn as subscribeEditModeExit, wn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, fo as subscribeVisualViewport, fr as themeSurfaceProps, er as themeVars, Qo as toVars, nr as tokenVar, Qi as touchThumbCornerReserve, Ji as touchThumbCrossInset, Ao as useAnimatedMeasure, Rt as useAnimationMode, Zt as useBoundSyncExternalStore, jt as useCallbackRef, he as useCommandButtonEntry, ce as useCommandButtonRegistry, it as useCommandChain, dt as useCommandElement, gt as useCommandExecute, vt as useCommandFallback, St as useCommandFocusRestore, lt as useCommandOrder, Le as useCommandRegistry, pt as useCommandResolver, ct as useCommandScope, kt as useCommands, zt as useContributeCommands, Gt as useDevicePixelRatio, Kn as useEditMode, Ct as useFloat, Tt as useFloatPopupOpen, jr as useFloatStack, Tr as useFloatSurface, en as useFullscreen, ln as useFullscreenPortal, Jn as useGlobalClipboard, io as useId, lo as useImperativeElement, Sn as useInputModality, _o as useIsomorphicLayoutEffect, _l as useKeyboardResize, jn as useLanguage, Oo as useLazyRetry, Co as useLocationSearch, yo as useMeasure, mn as useMouseDownAndHoldListener, Vt as useNotifier, Qt as useOnClickOrFocusAway, Ut as useOptionalBoundSyncExternalStore, Xt as useOptionalSyncExternalStore, Ti as usePendingRender, gi as usePersistentState, yr as useResolvedThemeMode, pn as useSynchronizedPointerHandler, dn as useTextSelectionDrag, Gn as useTextareaCaretRect, ns as useTouchThumbFrame, Qn as useTraceUpdate, ji as useTrackDrag, Yn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, go as useVisualViewportRect, Ei as whenRenderSettled, Xo as zIndexVar };