@sheetxl/utils-react 0.8.0-beta.1 → 0.8.0-beta.3

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,35 +1,35 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.1
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.3
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { CommonUtils as e, DefaultLanguagePackService as t, DefaultNotifier as n, ExpectedError as o, InternalClipboard as r, Notifier as i, TimerUtils as s, fetchLocaleResourceAll as l, formatMessage as a, loadPackageLocales as c, mergeMessageFiles as h, resolveLocaleChain as u } from "@sheetxl/utils";
8
8
  import * as d from "react";
9
- import f, { Component as p, cloneElement as m, createContext as g, createElement as _, forwardRef as v, isValidElement as y, memo as b, useCallback as w, useContext as x, useEffect as S, useId as C, useImperativeHandle as M, useLayoutEffect as E, useMemo as k, useReducer as T, useRef as L, useState as D, useSyncExternalStore as A } from "react";
10
- import { Fragment as P, jsx as z, jsxs as R } from "react/jsx-runtime";
11
- import * as $ from "detect-it";
12
- import { useMeasure as B } from "react-use";
9
+ import f, { Component as p, cloneElement as m, createContext as g, createElement as _, forwardRef as v, isValidElement as y, lazy as b, memo as w, useCallback as x, useContext as S, useEffect as C, useId as M, useImperativeHandle as E, useLayoutEffect as T, useMemo as k, useReducer as L, useRef as D, useState as P, useSyncExternalStore as A } from "react";
10
+ import { Fragment as z, jsx as R, jsxs as $ } from "react/jsx-runtime";
11
+ import * as B from "detect-it";
12
+ import { useMeasure as I } from "react-use";
13
13
  import { mergeRefs as H } from "react-merge-refs";
14
- import { createRoot as I } from "react-dom/client";
15
- import { createPortal as N, unstable_batchedUpdates as O } from "react-dom";
16
- import F from "clsx";
17
- import { autoUpdate as W, flip as K, offset as V, size as j, useFloating as U } from "@floating-ui/react-dom";
18
- import { DraggableCore as Y } from "react-draggable";
19
- import X from "prop-types";
20
- var q = Object.defineProperty, Z = (e, t) => {
14
+ import { createRoot as N } from "react-dom/client";
15
+ import { createPortal as O, unstable_batchedUpdates as F } from "react-dom";
16
+ import W from "clsx";
17
+ import { autoUpdate as K, flip as V, offset as j, size as Y, useFloating as U } from "@floating-ui/react-dom";
18
+ import { DraggableCore as X } from "react-draggable";
19
+ import q from "prop-types";
20
+ var Z = Object.defineProperty, G = (e, t) => {
21
21
  let n = {};
22
- for (var o in e) q(n, o, {
22
+ for (var o in e) Z(n, o, {
23
23
  get: e[o],
24
24
  enumerable: !0
25
25
  });
26
- return t || q(n, Symbol.toStringTag, { value: "Module" }), n;
27
- }, G = {
26
+ return t || Z(n, Symbol.toStringTag, { value: "Module" }), n;
27
+ }, J = {
28
28
  Shift: "shift",
29
29
  Alt: "alt",
30
30
  Ctrl: "ctrl",
31
31
  Meta: "meta"
32
- }, J = {
32
+ }, Q = {
33
33
  BackSpace: 8,
34
34
  Tab: 9,
35
35
  Clear: 12,
@@ -74,15 +74,15 @@ var q = Object.defineProperty, Z = (e, t) => {
74
74
  BracketRight: 221,
75
75
  BracketLeft: 219,
76
76
  Composition: 229
77
- }, Q = {
77
+ }, ee = {
78
78
  Left: 1,
79
79
  Middle: 2,
80
80
  Right: 3
81
- }, ee = {
81
+ }, te = {
82
82
  Toolbar: "toolbar",
83
83
  Menuitem: "menuitem"
84
- }, te = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
- function ne(e, t) {
84
+ }, ne = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
+ function oe(e, t) {
86
86
  const n = {}, o = {}, r = t.length;
87
87
  for (let i = 0; i < r; i++) {
88
88
  const r = t[i];
@@ -91,7 +91,7 @@ function ne(e, t) {
91
91
  if ("key" === e) continue;
92
92
  const t = r[e];
93
93
  if (void 0 !== t) {
94
- if (te.has(e) && Array.isArray(t)) {
94
+ if (ne.has(e) && Array.isArray(t)) {
95
95
  const o = n[e];
96
96
  n[e] = [...t, ...o ?? []];
97
97
  } else n[e] = t;
@@ -105,7 +105,7 @@ function ne(e, t) {
105
105
  contributedBy: o
106
106
  };
107
107
  }
108
- var oe = class {
108
+ var re = class {
109
109
  constructor() {
110
110
  this._byName = /* @__PURE__ */ new Map(), this._dynamicByName = /* @__PURE__ */ new Map(), this._listeners = /* @__PURE__ */ new Set(), this._batchDepth = 0, this._batchDirty = !1, this._version = 0;
111
111
  }
@@ -177,7 +177,7 @@ var oe = class {
177
177
  const n = this._byName.get(e)?.get(t);
178
178
  if (n && 0 !== n.length) return {
179
179
  key: t,
180
- ...ne(t, n.map((e) => ({
180
+ ...oe(t, n.map((e) => ({
181
181
  key: t,
182
182
  ...e.def
183
183
  }))).props
@@ -224,12 +224,12 @@ var oe = class {
224
224
  _notify() {
225
225
  this._version++, this._batchDepth > 0 ? this._batchDirty = !0 : this._listeners.forEach((e) => e.onChange?.());
226
226
  }
227
- }, re = new oe(), ie = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, se = (e, t) => {
227
+ }, ie = new re(), se = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, le = (e, t) => {
228
228
  if (e) {
229
229
  for (const n in e) if (n.toLowerCase() === t) return e[n];
230
230
  }
231
231
  };
232
- var le = new class {
232
+ var ae = new class {
233
233
  constructor() {
234
234
  this._items = /* @__PURE__ */ new Map(), this._version = 0, this._listeners = /* @__PURE__ */ new Set();
235
235
  }
@@ -250,13 +250,13 @@ var le = new class {
250
250
  this._items.set(o, function(e) {
251
251
  const { getLabel: n, getDescription: o, getIcon: r } = e, i = e.key, s = { ...e };
252
252
  return s.getLabel = (e) => {
253
- const o = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
253
+ const o = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
254
254
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (o ? t.lookup(`cmd.${i}.label@${o}`) : void 0) ?? t.lookup(`cmd.${i}.label`) ?? n?.(e);
255
255
  }, s.getDescription = (e) => {
256
- const n = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
256
+ const n = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
257
257
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (n ? t.lookup(`cmd.${i}.desc@${n}`) : void 0) ?? t.lookup(`cmd.${i}.desc`) ?? o?.(e);
258
258
  }, s.getIcon = (e) => {
259
- const t = e && e !== i ? e : void 0, n = re.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
259
+ const t = e && e !== i ? e : void 0, n = ie.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
260
260
  return "string" == typeof o ? o : r ? r(e) : void 0;
261
261
  }, s;
262
262
  }(e)), this._notify();
@@ -273,7 +273,7 @@ var le = new class {
273
273
  if (!n || !Array.isArray(n.members)) return null;
274
274
  const o = n.members, r = /* @__PURE__ */ new Set();
275
275
  for (const e of o) {
276
- const t = ie(e);
276
+ const t = se(e);
277
277
  t && r.add(t);
278
278
  }
279
279
  const i = [];
@@ -282,7 +282,7 @@ var le = new class {
282
282
  const n = e.key;
283
283
  if (!n || n.toLowerCase() === t) continue;
284
284
  if (r.has(n.toLowerCase())) continue;
285
- const o = se(e.contributions, t);
285
+ const o = le(e.contributions, t);
286
286
  o && i.push({
287
287
  key: n,
288
288
  placement: o,
@@ -300,7 +300,7 @@ var le = new class {
300
300
  const t = e.placement.order ?? 0;
301
301
  let n;
302
302
  if (e.placement.anchor) {
303
- const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => ie(e) === r);
303
+ const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => se(e) === r);
304
304
  n = i >= 0 ? i : t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
305
305
  } else n = t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
306
306
  l.push({
@@ -316,32 +316,34 @@ var le = new class {
316
316
  for (const e of l) "before" !== e.divider && "both" !== e.divider || a.push("-"), a.push(e.member), "after" !== e.divider && "both" !== e.divider || a.push("-");
317
317
  return a;
318
318
  }
319
- }(), ae = g(null);
320
- function ce() {
319
+ }(), ce = g(null);
320
+ function he() {
321
321
  return A((e) => {
322
- const n = t.addChangeListener(e), o = re.addListener({ onChange: e }), r = le.addListener({ onChange: e });
322
+ const n = t.addChangeListener(e), o = ie.addListener({ onChange: e }), r = ae.addListener({ onChange: e });
323
323
  return () => {
324
324
  n(), o(), r();
325
325
  };
326
- }, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`), x(ae) ?? le;
326
+ }, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`), S(ce) ?? ae;
327
327
  }
328
- function he({ registry: e = le, children: t }) {
329
- return z(ae.Provider, {
328
+ function ue({ registry: e = ae, children: t }) {
329
+ return R(ce.Provider, {
330
330
  value: e,
331
331
  children: t
332
332
  });
333
333
  }
334
- function ue(e) {
335
- return ce().get(e);
334
+ function de(e) {
335
+ return he().get(e);
336
336
  }
337
- var de = b((e) => {
337
+ var fe = w((e) => {
338
338
  const { entryKey: t, groupKey: n, fallback: o } = e;
339
- return z(P, { children: ue(t)?.getLabel?.(n) ?? o ?? t });
339
+ return R(z, { children: de(t)?.getLabel?.(n) ?? o ?? t });
340
340
  });
341
- function fe(e, t) {
341
+ fe.displayName = "CommandButtonEntryLabel";
342
+ var pe = "quickAction";
343
+ function me(e, t) {
342
344
  return "function" == typeof e ? e("function" == typeof t ? t() : t) : e;
343
345
  }
344
- function pe(e, n) {
346
+ function ge(e, n) {
345
347
  const { key: o, props: r, contributedBy: i } = e, s = r.callback, l = () => r.disabledReasons ?? [], c = () => l().length > 0 || !s, h = {
346
348
  contributedBy: i,
347
349
  getKey: () => o,
@@ -349,16 +351,16 @@ function pe(e, n) {
349
351
  getTarget: () => "function" == typeof r.target ? r.target() : r.target,
350
352
  getState: () => r.state,
351
353
  getLabel: (e) => {
352
- const n = fe((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
354
+ const n = me((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
353
355
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
354
356
  },
355
357
  getDescription: (e) => {
356
- const n = fe((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
358
+ const n = me((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
357
359
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
358
360
  },
359
- getTags: () => fe(r.tags, r.context),
360
- getIcon: (e) => fe((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
361
- getShortcut: () => fe(r.shortcut, r.context),
361
+ getTags: () => me(r.tags, r.context),
362
+ getIcon: (e) => me((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
363
+ getShortcut: () => me(r.shortcut, r.context),
362
364
  disabledReasons: l,
363
365
  disabled: c,
364
366
  execute: async (e) => {
@@ -379,40 +381,39 @@ function pe(e, n) {
379
381
  };
380
382
  return h;
381
383
  }
382
- de.displayName = "CommandButtonEntryLabel";
383
- var me = [
384
+ var _e = [
384
385
  "ctrl",
385
386
  "shift",
386
387
  "alt",
387
388
  "meta"
388
- ], ge = new Set(me);
389
- function _e(e) {
389
+ ], ve = new Set(_e);
390
+ function ye(e) {
390
391
  const t = e.split("+"), n = t[t.length - 1], o = [];
391
392
  for (let e = 0; e < t.length - 1; e++) {
392
393
  const n = t[e].toLowerCase();
393
- ge.has(n) && o.push(n);
394
+ ve.has(n) && o.push(n);
394
395
  }
395
396
  return o.length ? {
396
397
  key: n,
397
398
  modifiers: o
398
399
  } : { key: n };
399
400
  }
400
- function ve(e) {
401
- return [...(e.modifiers ?? []).slice().sort((e, t) => me.indexOf(e) - me.indexOf(t)), e.key].join("+");
401
+ function be(e) {
402
+ return [...(e.modifiers ?? []).slice().sort((e, t) => _e.indexOf(e) - _e.indexOf(t)), e.key].join("+");
402
403
  }
403
- function ye(e) {
404
+ function we(e) {
404
405
  return e;
405
406
  }
406
- async function be(e) {
407
+ async function xe(e) {
407
408
  const t = await fetch(e);
408
409
  if (!t.ok) throw new Error(`Failed to fetch command catalog '${String(e)}': ${t.status} ${t.statusText}`);
409
410
  return await t.json();
410
411
  }
411
- function we(e) {
412
+ function Se(e) {
412
413
  const t = {};
413
- return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(_e) : _e(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
414
+ return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(ye) : ye(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
414
415
  }
415
- function xe(e, t) {
416
+ function Ce(e, t) {
416
417
  return t ? e ? {
417
418
  ...e,
418
419
  ...t,
@@ -430,7 +431,7 @@ function xe(e, t) {
430
431
  } : void 0
431
432
  } : t : e ?? {};
432
433
  }
433
- function Se(e = re) {
434
+ function Me(e = ie) {
434
435
  const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
435
436
  let s = t.getActive();
436
437
  function a(e) {
@@ -473,7 +474,7 @@ function Se(e = re) {
473
474
  let o = t.contributors.get(n);
474
475
  o || (o = (e) => {
475
476
  const o = p(t);
476
- if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, we(i));
477
+ if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, Se(i));
477
478
  }, t.contributors.set(n, o)), e.registerStatic(n, o);
478
479
  }
479
480
  });
@@ -533,7 +534,7 @@ function Se(e = re) {
533
534
  for (const o of i) {
534
535
  const i = u(o, r), s = /* @__PURE__ */ new Map();
535
536
  for (const e of [...i].reverse()) for (const t of r[e]?.catalogs ?? []) s.set(`${t.scope}\0${t.sourceId}`, t);
536
- for (const t of s.values()) _(t.scope, o, async () => a((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(ye).reverse()), { sourceId: t.sourceId });
537
+ for (const t of s.values()) _(t.scope, o, async () => a((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(we).reverse()), { sourceId: t.sourceId });
537
538
  r[o].messages?.length && t.registerMessages(e, o, async () => {
538
539
  const t = await Promise.all([...i].reverse().map((t) => h(e, t, r[t]?.messages ?? [], n)));
539
540
  return Object.assign({}, ...t);
@@ -553,11 +554,11 @@ function Se(e = re) {
553
554
  dispose: () => b()
554
555
  };
555
556
  }
556
- var Ce = Se(), Me = g(null);
557
- function Ee() {
558
- return x(Me);
557
+ var Ee = Me(), Te = g(null);
558
+ function ke() {
559
+ return S(Te);
559
560
  }
560
- var ke = class e {
561
+ var Le = class e {
561
562
  constructor(e, t = null, n) {
562
563
  this._children = /* @__PURE__ */ new Map(), this._defs = /* @__PURE__ */ new Map(), this._middleware = [], this._version = 0, this._resolveCache = /* @__PURE__ */ new WeakMap(), this._resolveCacheVersion = -1, this._listeners = /* @__PURE__ */ new Set(), this._executeListeners = /* @__PURE__ */ new Map(), this._resolveStaticCache = /* @__PURE__ */ new Map(), this._resolveStaticCacheVersion = -1, this._elements = [], this.key = e, this.name = n?.name ?? e, this._parent = t, this._root = t ? t._root : this, n?.registry && (this._registry = n.registry, this._registryUnsub = n.registry.addListener({ onChange: () => this._bump() }));
563
564
  }
@@ -615,7 +616,7 @@ var ke = class e {
615
616
  let n = e;
616
617
  for (; n;) {
617
618
  const e = t.get(n);
618
- if (e) return Te(e) ?? void 0;
619
+ if (e) return De(e) ?? void 0;
619
620
  n = n.parentElement;
620
621
  }
621
622
  }
@@ -743,7 +744,7 @@ var ke = class e {
743
744
  }
744
745
  let _;
745
746
  if (m.length > 0) {
746
- const t = ne(e, m), n = t.contributedBy.callback;
747
+ const t = oe(e, m), n = t.contributedBy.callback;
747
748
  if (t.props.callback && void 0 !== n) {
748
749
  const e = g[n]?.getMiddleware();
749
750
  if (e && e.length > 0) {
@@ -752,7 +753,7 @@ var ke = class e {
752
753
  t.props.callback = n;
753
754
  }
754
755
  }
755
- _ = pe(t, () => i._executeListeners.get(e));
756
+ _ = ge(t, () => i._executeListeners.get(e));
756
757
  }
757
758
  return l || f || c.set(e, _), _;
758
759
  }
@@ -764,13 +765,13 @@ var ke = class e {
764
765
  if (n._resolveStaticCache.has(r)) return n._resolveStaticCache.get(r);
765
766
  const i = o.findByKey(e, t);
766
767
  let s;
767
- return i && (s = pe(ne(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
768
+ return i && (s = ge(oe(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
768
769
  }
769
770
  };
770
- function Te(e) {
771
- return e ? e instanceof ke ? e : "function" == typeof e ? e() : e.getAnchor() : null;
771
+ function De(e) {
772
+ return e ? e instanceof Le ? e : "function" == typeof e ? e() : e.getAnchor() : null;
772
773
  }
773
- var Le = class {
774
+ var Pe = class {
774
775
  constructor(e = null) {
775
776
  this._listeners = /* @__PURE__ */ new Set(), this._current = e;
776
777
  }
@@ -785,7 +786,7 @@ var Le = class {
785
786
  this._listeners.delete(e);
786
787
  };
787
788
  }
788
- }, De = class {
789
+ }, Ae = class {
789
790
  constructor(e) {
790
791
  this._scope = e;
791
792
  }
@@ -795,7 +796,7 @@ var Le = class {
795
796
  subscribe() {
796
797
  return () => {};
797
798
  }
798
- }, Ae = class {
799
+ }, ze = class {
799
800
  constructor(e, t) {
800
801
  this._scopes = /* @__PURE__ */ new Map(), this._rootElement = null, this._lastFocusEvent = null, this._current = null, this._currentElement = null, this._recall = null, this._recallPending = !1, this._listeners = /* @__PURE__ */ new Set(), this._root = e ?? null, "function" == typeof t ? (this._recall = t, this._invokeRecall()) : null != t && (t instanceof Promise ? t.then((e) => {
801
802
  null != e && this._seed(e);
@@ -819,7 +820,7 @@ var Le = class {
819
820
  }
820
821
  }
821
822
  getAnchor() {
822
- return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), Te(this._current);
823
+ return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), De(this._current);
823
824
  }
824
825
  getElement() {
825
826
  return this._rootElement;
@@ -855,7 +856,7 @@ var Le = class {
855
856
  }
856
857
  }
857
858
  findScope(e) {
858
- return Te(this.findSource(e) ?? null) ?? void 0;
859
+ return De(this.findSource(e) ?? null) ?? void 0;
859
860
  }
860
861
  attach(e) {
861
862
  this._rootElement = e;
@@ -873,7 +874,7 @@ var Le = class {
873
874
  _notify() {
874
875
  this._listeners.forEach((e) => e());
875
876
  }
876
- }, Pe = class {
877
+ }, Re = class {
877
878
  constructor(e) {
878
879
  this._layers = [], this._listeners = /* @__PURE__ */ new Set(), this._base = e, this._top = e;
879
880
  }
@@ -904,25 +905,25 @@ var Le = class {
904
905
  this._listeners.delete(e);
905
906
  };
906
907
  }
907
- }, ze = Z({
908
- EmptyCssProperties: () => $e,
909
- createSyntheticEvent: () => Ye,
910
- detectIt: () => Ne,
911
- edgeCenter: () => je,
912
- edgeTrailingShift: () => Ve,
913
- focusableNodeNames: () => Re,
914
- getDevicePixelRatio: () => Oe,
915
- isEditable: () => He,
916
- replaceRangeText: () => Ie,
917
- snapDeviceEdge: () => We,
918
- snapDeviceWidth: () => Fe,
919
- snapLineCenter: () => Ke,
920
- toPrettyKeyCode: () => Ue
921
- }), Re = /* @__PURE__ */ new Set([
908
+ }, $e = G({
909
+ EmptyCssProperties: () => Ie,
910
+ createSyntheticEvent: () => qe,
911
+ detectIt: () => Fe,
912
+ edgeCenter: () => Ue,
913
+ edgeTrailingShift: () => Ye,
914
+ focusableNodeNames: () => Be,
915
+ getDevicePixelRatio: () => We,
916
+ isEditable: () => Ne,
917
+ replaceRangeText: () => Oe,
918
+ snapDeviceEdge: () => Ve,
919
+ snapDeviceWidth: () => Ke,
920
+ snapLineCenter: () => je,
921
+ toPrettyKeyCode: () => Xe
922
+ }), Be = /* @__PURE__ */ new Set([
922
923
  "INPUT",
923
924
  "TEXTAREA",
924
925
  "SELECT"
925
- ]), $e = {}, Be = /* @__PURE__ */ new Set([
926
+ ]), Ie = {}, He = /* @__PURE__ */ new Set([
926
927
  "button",
927
928
  "checkbox",
928
929
  "radio",
@@ -934,41 +935,41 @@ var Le = class {
934
935
  "image",
935
936
  "hidden"
936
937
  ]);
937
- function He(e) {
938
+ function Ne(e) {
938
939
  if (!e) return !1;
939
940
  const t = e.tagName;
940
- return "TEXTAREA" === t || ("INPUT" === t ? !Be.has(e.type) : !0 === e.isContentEditable);
941
+ return "TEXTAREA" === t || ("INPUT" === t ? !He.has(e.type) : !0 === e.isContentEditable);
941
942
  }
942
- function Ie(e, t, n, o) {
943
+ function Oe(e, t, n, o) {
943
944
  e.setSelectionRange(t, n);
944
945
  try {
945
946
  if ("undefined" != typeof document && document.activeElement === e && "function" == typeof document.execCommand && document.execCommand("insertText", !1, o)) return !0;
946
947
  } catch {}
947
948
  return e.setRangeText(o, t, n, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
948
949
  }
949
- function Ne() {
950
- return $;
950
+ function Fe() {
951
+ return B;
951
952
  }
952
- function Oe() {
953
+ function We() {
953
954
  return "undefined" != typeof window && window.devicePixelRatio || 1;
954
955
  }
955
- function Fe(e, t = Oe()) {
956
+ function Ke(e, t = We()) {
956
957
  return Math.max(1, Math.round(e * t)) / t;
957
958
  }
958
- function We(e, t = Oe()) {
959
+ function Ve(e, t = We()) {
959
960
  return Math.round(e * t) / t;
960
961
  }
961
- function Ke(e, t = 1, n = Oe()) {
962
+ function je(e, t = 1, n = We()) {
962
963
  const o = Math.max(1, Math.round(t * n)) % 2 * .5;
963
964
  return (Math.round(e * n - o) + o) / n;
964
965
  }
965
- function Ve(e, t, n = Oe()) {
966
+ function Ye(e, t, n = We()) {
966
967
  return Math.round(t) % 2 == 0 && "trailing" === e ? 1 / n : 0;
967
968
  }
968
- function je(e, t, n, o = Oe()) {
969
- return Ke(e + Ve(t, n, o), n / o, o);
969
+ function Ue(e, t, n, o = We()) {
970
+ return je(e + Ye(t, n, o), n / o, o);
970
971
  }
971
- var Ue = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), Ye = (e, t) => {
972
+ var Xe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), qe = (e, t) => {
972
973
  let n = !1, o = !1;
973
974
  const r = {
974
975
  nativeEvent: e,
@@ -994,7 +995,7 @@ var Ue = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camel
994
995
  for (const t in e) t in r || "function" == typeof e[t] || (r[t] = e[t]);
995
996
  return r;
996
997
  };
997
- function Xe(e, t, n) {
998
+ function Ze(e, t, n) {
998
999
  if (!globalThis.__sxlKeyDebug) return;
999
1000
  const o = e.target, r = [
1000
1001
  e.ctrlKey && "ctrl",
@@ -1008,11 +1009,11 @@ function Xe(e, t, n) {
1008
1009
  const t = e.type ? `[type=${e.type}]` : "", n = e.getAttribute?.("class")?.split(" ").slice(0, 2).join(".") ?? "";
1009
1010
  return `${e.tagName.toLowerCase()}${t}${n ? "." + n : ""}`;
1010
1011
  })(o),
1011
- editable: He(o),
1012
+ editable: Ne(o),
1012
1013
  delivery: e.nativeEvent ? "synthetic" : "native"
1013
1014
  });
1014
1015
  }
1015
- var qe = /* @__PURE__ */ new Set([
1016
+ var Ge = /* @__PURE__ */ new Set([
1016
1017
  "Backspace",
1017
1018
  "Delete",
1018
1019
  "Insert",
@@ -1025,10 +1026,10 @@ var qe = /* @__PURE__ */ new Set([
1025
1026
  "ArrowUp",
1026
1027
  "ArrowDown"
1027
1028
  ]);
1028
- function Ze(e) {
1029
- return qe.has(e.key);
1029
+ function Je(e) {
1030
+ return Ge.has(e.key);
1030
1031
  }
1031
- var Ge = class {
1032
+ var Qe = class {
1032
1033
  constructor(e) {
1033
1034
  this._lastEvent = null, this._resolver = e;
1034
1035
  }
@@ -1046,12 +1047,12 @@ var Ge = class {
1046
1047
  return t && "number" == typeof t.nodeType ? t : null;
1047
1048
  }
1048
1049
  dispatch(e) {
1049
- if (this._lastEvent === e) return Xe(e, null, "de-duped (reached dispatch again)"), !1;
1050
+ if (this._lastEvent === e) return Ze(e, null, "de-duped (reached dispatch again)"), !1;
1050
1051
  this._lastEvent = e;
1051
1052
  const t = this.findKey(e);
1052
- if (!t) return Xe(e, null, "unmatched"), !1;
1053
+ if (!t) return Ze(e, null, "unmatched"), !1;
1053
1054
  const n = this._resolver.resolve(t, this._eventOrigin(e));
1054
- return n ? n.disabled() ? (Xe(e, t, "disabled"), !1) : (Xe(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Xe(e, t, "unresolved at this origin"), !1);
1055
+ return n ? n.disabled() ? (Ze(e, t, "disabled"), !1) : (Ze(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Ze(e, t, "unresolved at this origin"), !1);
1055
1056
  }
1056
1057
  attach(e) {
1057
1058
  const t = (e) => {
@@ -1070,29 +1071,29 @@ var Ge = class {
1070
1071
  return e;
1071
1072
  }
1072
1073
  _eventCandidates(e) {
1073
- return Qe(e);
1074
+ return tt(e);
1074
1075
  }
1075
1076
  _shortcutString(e) {
1076
- return Je(e);
1077
+ return et(e);
1077
1078
  }
1078
1079
  };
1079
- function Je(e) {
1080
+ function et(e) {
1080
1081
  const t = e.modifiers ?? [];
1081
- return et(t.includes(G.Ctrl) || t.includes(G.Meta), t.includes(G.Alt), t.includes(G.Shift)) + tt(e.key);
1082
+ return nt(t.includes(J.Ctrl) || t.includes(J.Meta), t.includes(J.Alt), t.includes(J.Shift)) + ot(e.key);
1082
1083
  }
1083
- function Qe(e) {
1084
- const t = et(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1085
- return /* @__PURE__ */ new Set([t + tt(e.code), t + tt(e.key)]);
1084
+ function tt(e) {
1085
+ const t = nt(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1086
+ return /* @__PURE__ */ new Set([t + ot(e.code), t + ot(e.key)]);
1086
1087
  }
1087
- function et(e, t, n) {
1088
+ function nt(e, t, n) {
1088
1089
  return (e ? "mod+" : "") + (t ? "alt+" : "") + (n ? "shift+" : "");
1089
1090
  }
1090
- function tt(e) {
1091
+ function ot(e) {
1091
1092
  return e ? e.length > 3 && e.startsWith("Key") ? e.slice(3).toUpperCase() : e.length > 5 && e.startsWith("Digit") ? e.slice(5) : 1 === e.length ? e.toUpperCase() : e : "";
1092
1093
  }
1093
- var nt = class {
1094
+ var rt = class {
1094
1095
  constructor(e, t, n) {
1095
- this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new Ge(this);
1096
+ this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new Qe(this);
1096
1097
  }
1097
1098
  connect() {
1098
1099
  this._connected || (this._connected = !0, this._unsubs = [this.scope.addListener({ onChange: () => this._emit() }), this._tracker.subscribe(() => {
@@ -1163,19 +1164,19 @@ var nt = class {
1163
1164
  _notify() {
1164
1165
  this._version++, this._listeners.forEach((e) => e());
1165
1166
  }
1166
- }, ot = g(null);
1167
- function rt() {
1168
- return x(ot);
1169
- }
1170
- var it = g(0);
1167
+ }, it = g(null);
1171
1168
  function st() {
1172
- return x(it);
1169
+ return S(it);
1173
1170
  }
1174
- var lt = g(null);
1171
+ var lt = g(0);
1175
1172
  function at() {
1176
- return x(lt);
1173
+ return S(lt);
1177
1174
  }
1178
- function ct(e, t) {
1175
+ var ct = g(null);
1176
+ function ht() {
1177
+ return S(ct);
1178
+ }
1179
+ function ut(e, t) {
1179
1180
  let n, o = !1;
1180
1181
  const r = () => {
1181
1182
  if (o) return;
@@ -1186,9 +1187,9 @@ function ct(e, t) {
1186
1187
  o = !0, n?.();
1187
1188
  };
1188
1189
  }
1189
- function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1190
- const a = at(), c = rt(), h = st(), u = o ?? h, d = k(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1191
- S(() => {
1190
+ function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1191
+ const a = ht(), c = st(), h = at(), u = o ?? h, d = k(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1192
+ C(() => {
1192
1193
  if (!d) return;
1193
1194
  const e = c ? c.register(d, u) : void 0;
1194
1195
  return () => {
@@ -1200,7 +1201,7 @@ function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1200
1201
  u
1201
1202
  ]);
1202
1203
  const p = e?.contributor?.dynamic, m = e?.data;
1203
- S(() => {
1204
+ C(() => {
1204
1205
  if (!d || !p) return;
1205
1206
  const e = d.contribution(), t = p(e, m);
1206
1207
  return () => {
@@ -1210,49 +1211,49 @@ function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1210
1211
  d,
1211
1212
  p,
1212
1213
  m
1213
- ]), S(() => {
1214
+ ]), C(() => {
1214
1215
  if (!d || !n) return;
1215
1216
  const e = (Array.isArray(n) ? n : [n]).map((e) => d.use(e));
1216
1217
  return () => {
1217
1218
  for (const t of e) t();
1218
1219
  };
1219
- }, [d, n]), S(() => {
1220
+ }, [d, n]), C(() => {
1220
1221
  if (s) return s.current = f, () => {
1221
1222
  s.current = null;
1222
1223
  };
1223
1224
  }, [s, f]);
1224
- const g = L(null), _ = r ?? g;
1225
- ut(r || "function" == typeof l ? f : null, _, i);
1225
+ const g = D(null), _ = r ?? g;
1226
+ ft(r || "function" == typeof l ? f : null, _, i);
1226
1227
  const v = k(() => d ? d.getRegistry()?.getDynamic(d.name) ?? [] : [], [d]);
1227
- return z(lt.Provider, {
1228
+ return R(ct.Provider, {
1228
1229
  value: f,
1229
- children: R(ot.Provider, {
1230
+ children: $(it.Provider, {
1230
1231
  value: d ? null : c,
1231
- children: [d && v.map((e, t) => z(e, {
1232
+ children: [d && v.map((e, t) => R(e, {
1232
1233
  scope: d,
1233
1234
  data: m
1234
1235
  }, t)), "function" == typeof l ? l(_) : l]
1235
1236
  })
1236
1237
  });
1237
1238
  }
1238
- function ut(e, t, n) {
1239
- S(() => {
1239
+ function ft(e, t, n) {
1240
+ C(() => {
1240
1241
  if (!e) return;
1241
- if (!n) return ct(t, (t) => e.attachBounds(t));
1242
+ if (!n) return ut(t, (t) => e.attachBounds(t));
1242
1243
  const o = !0 === n ? void 0 : n;
1243
- return ct(t, (t) => e.attachElement(t, o));
1244
+ return ut(t, (t) => e.attachElement(t, o));
1244
1245
  }, [
1245
1246
  e,
1246
1247
  t,
1247
1248
  n
1248
1249
  ]);
1249
1250
  }
1250
- var dt = g(null);
1251
- function ft() {
1252
- return x(dt);
1251
+ var pt = g(null);
1252
+ function mt() {
1253
+ return S(pt);
1253
1254
  }
1254
- function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1255
- const s = at(), l = "synthetic" === n, a = k(() => s ? new nt(s, e, {
1255
+ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1256
+ const s = ht(), l = "synthetic" === n, a = k(() => s ? new rt(s, e, {
1256
1257
  debounce: t,
1257
1258
  keyBindings: !l && n,
1258
1259
  root: o
@@ -1263,13 +1264,13 @@ function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1263
1264
  n,
1264
1265
  o
1265
1266
  ]);
1266
- S(() => (a?.connect(), () => a?.dispose()), [a]);
1267
- const c = L(null), h = r ?? (l ? c : null);
1268
- return S(() => {
1269
- if (h && e.attach) return ct(h, (t) => e.attach(t));
1270
- }, [h, e]), z(dt.Provider, l ? {
1267
+ C(() => (a?.connect(), () => a?.dispose()), [a]);
1268
+ const c = D(null), h = r ?? (l ? c : null);
1269
+ return C(() => {
1270
+ if (h && e.attach) return ut(h, (t) => e.attach(t));
1271
+ }, [h, e]), R(pt.Provider, l ? {
1271
1272
  value: a,
1272
- children: z("div", {
1273
+ children: R("div", {
1273
1274
  className: "command-key-seam",
1274
1275
  style: { display: "contents" },
1275
1276
  ref: c,
@@ -1283,45 +1284,45 @@ function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1283
1284
  children: i
1284
1285
  });
1285
1286
  }
1286
- function mt() {
1287
- const e = ft();
1288
- return w((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1289
- }
1290
- var gt = g(null);
1291
1287
  function _t() {
1292
- return x(gt);
1288
+ const e = mt();
1289
+ return x((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1290
+ }
1291
+ var vt = g(null);
1292
+ function yt() {
1293
+ return S(vt);
1293
1294
  }
1294
- var vt = [];
1295
- function yt({ prefer: e, children: t }) {
1296
- return z(gt.Provider, {
1297
- value: e ?? vt,
1295
+ var bt = [];
1296
+ function wt({ prefer: e, children: t }) {
1297
+ return R(vt.Provider, {
1298
+ value: e ?? bt,
1298
1299
  children: t
1299
1300
  });
1300
1301
  }
1301
- var bt = g(null), wt = bt.Provider;
1302
- function xt() {
1303
- return x(bt);
1302
+ var xt = g(null), St = xt.Provider;
1303
+ function Ct() {
1304
+ return S(xt);
1304
1305
  }
1305
- var St = g(null), Ct = St.Provider, Mt = () => x(St);
1306
- function Et(e, t) {
1307
- const n = ft(), o = _t(), r = k(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = L(t);
1306
+ var Mt = g(null), Et = Mt.Provider, Tt = () => S(Mt);
1307
+ function kt(e, t) {
1308
+ const n = mt(), o = yt(), r = k(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = D(t);
1308
1309
  i.current = t;
1309
- const s = Mt(), l = L(s);
1310
+ const s = Tt(), l = D(s);
1310
1311
  l.current = s;
1311
- const a = xt(), c = L(a);
1312
+ const a = Ct(), c = D(a);
1312
1313
  return c.current = a, k(() => n ? r.map((e) => {
1313
1314
  return n.resolve(e) || (o ? n.scope.resolveStatic(e, o) : void 0);
1314
1315
  }) : r.map(() => {}), [
1315
1316
  n,
1316
1317
  r,
1317
- A(w((e) => {
1318
+ A(x((e) => {
1318
1319
  if (!n) return () => {};
1319
1320
  const t = [];
1320
1321
  t.push(n.subscribe(e));
1321
1322
  const o = {
1322
1323
  beforeExecute: (e, t) => {
1323
1324
  const n = i.current?.beforeExecute;
1324
- return n ? n(e, t) : l.current?.closeAll() ?? void 0;
1325
+ if (!e?.getTags?.()?.includes("quickAction")) return n ? n(e, t) : l.current?.closeAll() ?? void 0;
1325
1326
  },
1326
1327
  onExecute: (e, t) => {
1327
1328
  i.current?.onExecute?.(e, t), c.current?.();
@@ -1336,9 +1337,9 @@ function Et(e, t) {
1336
1337
  o
1337
1338
  ]);
1338
1339
  }
1339
- function kt(e) {
1340
- const t = at();
1341
- S(() => {
1340
+ function Lt(e) {
1341
+ const t = ht();
1342
+ C(() => {
1342
1343
  if (!t) return;
1343
1344
  const n = [];
1344
1345
  for (const o of e) {
@@ -1350,72 +1351,73 @@ function kt(e) {
1350
1351
  };
1351
1352
  }, [t, e]);
1352
1353
  }
1353
- var Tt = Z({
1354
- ACCUMULATE: () => te,
1355
- CommandAnchorProvider: () => pt,
1356
- CommandButtonEntryLabel: () => de,
1357
- CommandButtonRegistryContext: () => ae,
1358
- CommandButtonRegistryProvider: () => he,
1359
- CommandButtonType: () => ee,
1360
- CommandChainContext: () => ot,
1361
- CommandFallbackContext: () => gt,
1362
- CommandFallbackProvider: () => yt,
1363
- CommandFocusProvider: () => wt,
1364
- CommandOrderContext: () => it,
1365
- CommandRegistry: () => oe,
1366
- CommandRegistryContext: () => Me,
1367
- CommandResolver: () => nt,
1368
- CommandResolverContext: () => dt,
1369
- CommandScope: () => ke,
1370
- CommandScopeContext: () => lt,
1371
- CommandScopeProvider: () => ht,
1372
- ConstantActivation: () => De,
1373
- DefaultCommandButtonRegistry: () => le,
1374
- DefaultCommandCatalogService: () => Ce,
1375
- DefaultCommandRegistry: () => re,
1376
- FocusActivation: () => Ae,
1377
- KeyBindingDispatcher: () => Ge,
1378
- LayerActivation: () => Pe,
1379
- ManualActivation: () => Le,
1380
- asCommandCatalog: () => ye,
1381
- attachWhenReady: () => ct,
1382
- chromeToPartial: () => we,
1383
- createCommandCatalogService: () => Se,
1384
- createResolvedCommand: () => pe,
1385
- fetchCatalog: () => be,
1386
- isCaretKey: () => Ze,
1387
- keyEventCanonicals: () => Qe,
1388
- keyStrokeToCanonical: () => Je,
1389
- mergeChrome: () => xe,
1390
- parseShortcutString: () => _e,
1391
- reduceDefinitions: () => ne,
1392
- resolveAnchorSource: () => Te,
1393
- serializeShortcut: () => ve,
1394
- useCommandButtonEntry: () => ue,
1395
- useCommandButtonRegistry: () => ce,
1396
- useCommandChain: () => rt,
1397
- useCommandElement: () => ut,
1398
- useCommandExecute: () => mt,
1399
- useCommandFallback: () => _t,
1400
- useCommandFocusRestore: () => xt,
1401
- useCommandOrder: () => st,
1402
- useCommandRegistry: () => Ee,
1403
- useCommandResolver: () => ft,
1404
- useCommandScope: () => at,
1405
- useCommands: () => Et,
1406
- useContributeCommands: () => kt
1407
- }), Lt = "idle", Dt = g({
1354
+ var Dt = G({
1355
+ ACCUMULATE: () => ne,
1356
+ CommandAnchorProvider: () => gt,
1357
+ CommandButtonEntryLabel: () => fe,
1358
+ CommandButtonRegistryContext: () => ce,
1359
+ CommandButtonRegistryProvider: () => ue,
1360
+ CommandButtonType: () => te,
1361
+ CommandChainContext: () => it,
1362
+ CommandFallbackContext: () => vt,
1363
+ CommandFallbackProvider: () => wt,
1364
+ CommandFocusProvider: () => St,
1365
+ CommandOrderContext: () => lt,
1366
+ CommandRegistry: () => re,
1367
+ CommandRegistryContext: () => Te,
1368
+ CommandResolver: () => rt,
1369
+ CommandResolverContext: () => pt,
1370
+ CommandScope: () => Le,
1371
+ CommandScopeContext: () => ct,
1372
+ CommandScopeProvider: () => dt,
1373
+ ConstantActivation: () => Ae,
1374
+ DefaultCommandButtonRegistry: () => ae,
1375
+ DefaultCommandCatalogService: () => Ee,
1376
+ DefaultCommandRegistry: () => ie,
1377
+ FocusActivation: () => ze,
1378
+ KeyBindingDispatcher: () => Qe,
1379
+ LayerActivation: () => Re,
1380
+ ManualActivation: () => Pe,
1381
+ QUICK_ACTION_TAG: () => pe,
1382
+ asCommandCatalog: () => we,
1383
+ attachWhenReady: () => ut,
1384
+ chromeToPartial: () => Se,
1385
+ createCommandCatalogService: () => Me,
1386
+ createResolvedCommand: () => ge,
1387
+ fetchCatalog: () => xe,
1388
+ isCaretKey: () => Je,
1389
+ keyEventCanonicals: () => tt,
1390
+ keyStrokeToCanonical: () => et,
1391
+ mergeChrome: () => Ce,
1392
+ parseShortcutString: () => ye,
1393
+ reduceDefinitions: () => oe,
1394
+ resolveAnchorSource: () => De,
1395
+ serializeShortcut: () => be,
1396
+ useCommandButtonEntry: () => de,
1397
+ useCommandButtonRegistry: () => he,
1398
+ useCommandChain: () => st,
1399
+ useCommandElement: () => ft,
1400
+ useCommandExecute: () => _t,
1401
+ useCommandFallback: () => yt,
1402
+ useCommandFocusRestore: () => Ct,
1403
+ useCommandOrder: () => at,
1404
+ useCommandRegistry: () => ke,
1405
+ useCommandResolver: () => mt,
1406
+ useCommandScope: () => ht,
1407
+ useCommands: () => kt,
1408
+ useContributeCommands: () => Lt
1409
+ }), Pt = "idle", At = g({
1408
1410
  mode: "idle",
1409
1411
  interrupt: () => {}
1410
1412
  });
1411
- function At() {
1412
- return x(Dt);
1413
+ function zt() {
1414
+ return S(At);
1413
1415
  }
1414
- function Pt({ children: e }) {
1415
- const t = At(), [n, o] = D(Lt), r = L(null), i = w(() => {
1416
- o(Lt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Lt), 400);
1416
+ function Rt({ children: e }) {
1417
+ const t = zt(), [n, o] = P(Pt), r = D(null), i = x(() => {
1418
+ o(Pt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Pt), 400);
1417
1419
  }, []), s = "interrupted" === n || "interrupted" === t?.mode ? "interrupted" : "idle";
1418
- return z(Dt.Provider, {
1420
+ return R(At.Provider, {
1419
1421
  value: {
1420
1422
  mode: s,
1421
1423
  interrupt: i
@@ -1423,7 +1425,7 @@ function Pt({ children: e }) {
1423
1425
  children: e
1424
1426
  });
1425
1427
  }
1426
- var zt = 3, Rt = .5, $t = 50, Bt = (e) => ({
1428
+ var $t = 3, Bt = .5, It = 50, Ht = (e) => ({
1427
1429
  x: e.x,
1428
1430
  y: e.y,
1429
1431
  width: e.width,
@@ -1433,8 +1435,8 @@ var zt = 3, Rt = .5, $t = 50, Bt = (e) => ({
1433
1435
  right: e.right,
1434
1436
  bottom: e.bottom
1435
1437
  });
1436
- function Ht(e = {}) {
1437
- const { threshold: t = Rt, stillnessThreshold: n = zt, maxHierarchyDepth: o = $t } = e, [r, i] = B(), s = L(null), [l, a] = T((e) => e + 1, 0), c = L(void 0), h = L({
1438
+ function Nt(e = {}) {
1439
+ const { threshold: t = Bt, stillnessThreshold: n = $t, maxHierarchyDepth: o = It } = e, [r, i] = I(), s = D(null), [l, a] = L((e) => e + 1, 0), c = D(void 0), h = D({
1438
1440
  x: 0,
1439
1441
  y: 0,
1440
1442
  width: 0,
@@ -1443,19 +1445,19 @@ function Ht(e = {}) {
1443
1445
  left: 0,
1444
1446
  right: 0,
1445
1447
  bottom: 0
1446
- }), u = w((e) => {
1448
+ }), u = x((e) => {
1447
1449
  s.current = e, "function" == typeof r && r(e);
1448
- }, [r]), [d, f] = D(i);
1449
- return S(() => {
1450
+ }, [r]), [d, f] = P(i);
1451
+ return C(() => {
1450
1452
  i && !d && f(i);
1451
- }, [i, d]), S(() => {
1453
+ }, [i, d]), C(() => {
1452
1454
  const e = s.current;
1453
1455
  if (!e) return;
1454
1456
  let r = !1, i = 0;
1455
1457
  const l = () => {
1456
1458
  if (!e) return;
1457
1459
  const o = e.getBoundingClientRect(), s = h.current;
1458
- Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Bt(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Bt(o)), a()), h.current = Bt(o), c.current = requestAnimationFrame(l);
1460
+ Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Ht(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ht(o)), a()), h.current = Ht(o), c.current = requestAnimationFrame(l);
1459
1461
  };
1460
1462
  c.current = requestAnimationFrame(l);
1461
1463
  const u = (e) => {
@@ -1479,7 +1481,7 @@ function Ht(e = {}) {
1479
1481
  o
1480
1482
  ]), [u, d];
1481
1483
  }
1482
- var It = {
1484
+ var Ot = {
1483
1485
  BottomEnd: "bottom-end",
1484
1486
  BottomStart: "bottom-start",
1485
1487
  Bottom: "bottom",
@@ -1492,8 +1494,8 @@ var It = {
1492
1494
  TopEnd: "top-end",
1493
1495
  TopStart: "top-start",
1494
1496
  Top: "top"
1495
- }, Nt = b(v((e, t) => {
1496
- const { refFocusStart: n, ...o } = e, r = L(null), i = w(() => {
1497
+ }, Ft = w(v((e, t) => {
1498
+ const { refFocusStart: n, ...o } = e, r = D(null), i = x(() => {
1497
1499
  if (n) return void n?.current?.focus();
1498
1500
  const e = r.current?.parentElement;
1499
1501
  if (!e) return;
@@ -1511,14 +1513,14 @@ var It = {
1511
1513
  return e.tabindex - t.tabindex;
1512
1514
  }), o[0].child.focus());
1513
1515
  }, [n]);
1514
- return z("div", {
1516
+ return R("div", {
1515
1517
  tabIndex: 0,
1516
1518
  ref: H([r, t]),
1517
1519
  onFocus: i,
1518
1520
  ...o
1519
1521
  });
1520
1522
  }));
1521
- function Ot(e, t, n = !1) {
1523
+ function Wt(e, t, n = !1) {
1522
1524
  if (0 === t) return e;
1523
1525
  function o(e, t, n) {
1524
1526
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -1578,10 +1580,10 @@ function Ot(e, t, n = !1) {
1578
1580
  return e + t.join(" ") + " ";
1579
1581
  }, "");
1580
1582
  }
1581
- var Ft = b(v((e, t) => {
1582
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = B(), p = L(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = k(() => {
1583
+ var Kt = w(v((e, t) => {
1584
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = I(), p = D(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = k(() => {
1583
1585
  const e = d - _, t = f - v;
1584
- return Ot(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
1586
+ return Wt(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
1585
1587
  }, [
1586
1588
  d,
1587
1589
  f,
@@ -1592,7 +1594,7 @@ var Ft = b(v((e, t) => {
1592
1594
  b
1593
1595
  ]), x = k(() => "rounded" === a ? w : ((e, t = 0) => {
1594
1596
  const n = e / 2, o = f - n + t;
1595
- return Ot(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1597
+ return Wt(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1596
1598
  })(s), [
1597
1599
  a,
1598
1600
  w,
@@ -1604,7 +1606,7 @@ var Ft = b(v((e, t) => {
1604
1606
  if (0 === i) return;
1605
1607
  if ("rounded" === a) return w;
1606
1608
  const e = f - s / 2;
1607
- return Ot(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1609
+ return Wt(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1608
1610
  }, [
1609
1611
  d,
1610
1612
  f,
@@ -1616,7 +1618,7 @@ var Ft = b(v((e, t) => {
1616
1618
  ...y(r) ? r.props?.style : void 0,
1617
1619
  clipPath: `path('${S}')`
1618
1620
  } }), [S, r]);
1619
- return R("div", {
1621
+ return $("div", {
1620
1622
  className: n,
1621
1623
  style: {
1622
1624
  display: "flex",
@@ -1629,7 +1631,7 @@ var Ft = b(v((e, t) => {
1629
1631
  u,
1630
1632
  t
1631
1633
  ]),
1632
- children: [y(r) ? m(r, C) : z(P, {}), z("svg", {
1634
+ children: [y(r) ? m(r, C) : R(z, {}), R("svg", {
1633
1635
  style: {
1634
1636
  position: "absolute",
1635
1637
  top: 0,
@@ -1639,7 +1641,7 @@ var Ft = b(v((e, t) => {
1639
1641
  width: d,
1640
1642
  height: f,
1641
1643
  viewBox: `0 0 ${d} ${f}`,
1642
- children: z("path", {
1644
+ children: R("path", {
1643
1645
  d: x,
1644
1646
  stroke: l,
1645
1647
  fill: "none",
@@ -1648,21 +1650,56 @@ var Ft = b(v((e, t) => {
1648
1650
  })
1649
1651
  })]
1650
1652
  });
1651
- })), Wt = {
1653
+ })), Vt = g(null);
1654
+ function jt() {
1655
+ return S(Vt);
1656
+ }
1657
+ function Yt(e, t) {
1658
+ const n = t?.renderError;
1659
+ let o = null;
1660
+ const r = () => {
1661
+ const t = {
1662
+ failed: !1,
1663
+ shown: !1,
1664
+ component: b(async () => {
1665
+ try {
1666
+ return await e();
1667
+ } catch (e) {
1668
+ t.failed = !0;
1669
+ return { default: (o) => {
1670
+ if (t.shown = !0, !n) throw e;
1671
+ return n(e, o);
1672
+ } };
1673
+ }
1674
+ })
1675
+ };
1676
+ return t;
1677
+ }, i = () => ((!o || o.failed && o.shown) && (o = r()), o.component);
1678
+ return (e) => {
1679
+ const [t, n] = P(i), s = x(() => {
1680
+ n(() => (o && !o.failed || (o = r()), o.component));
1681
+ }, []);
1682
+ return R(Vt.Provider, {
1683
+ value: s,
1684
+ children: R(t, { ...e })
1685
+ });
1686
+ };
1687
+ }
1688
+ var Ut = {
1652
1689
  Default: "default",
1653
1690
  Error: "error",
1654
1691
  Success: "success",
1655
1692
  Warning: "warning",
1656
1693
  Info: "info"
1657
1694
  };
1658
- function Kt(e = () => {}, t = () => {}, n = () => {}) {
1695
+ function Xt(e = () => {}, t = () => {}, n = () => {}) {
1659
1696
  const o = () => e();
1660
1697
  return o.setProgress = t, o.setMessage = n, o;
1661
1698
  }
1662
- function Vt() {
1663
- return Kt();
1699
+ function qt() {
1700
+ return Xt();
1664
1701
  }
1665
- var jt = class extends n {
1702
+ var Zt = class extends n {
1666
1703
  setOverrides(e) {
1667
1704
  super.setOverrides(e);
1668
1705
  }
@@ -1672,11 +1709,11 @@ var jt = class extends n {
1672
1709
  showMessage(e, t) {
1673
1710
  const n = this.getDelegate();
1674
1711
  if (n?.showMessage) return n.showMessage(e, t);
1675
- t?.type !== Wt.Warning ? t?.type !== Wt.Error ? i.log(e) : i.error(e) : i.warn(e);
1712
+ t?.type !== Ut.Warning ? t?.type !== Ut.Error ? i.log(e) : i.error(e) : i.warn(e);
1676
1713
  }
1677
1714
  showBusy(e, t) {
1678
1715
  const n = this.getDelegate();
1679
- return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(Vt());
1716
+ return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(qt());
1680
1717
  }
1681
1718
  showWindow(e, t) {
1682
1719
  const n = this.getDelegate();
@@ -1697,33 +1734,33 @@ var jt = class extends n {
1697
1734
  option: ""
1698
1735
  });
1699
1736
  }
1700
- }, Ut = g(new jt()), Yt = ({ children: e, notifier: t }) => (S(() => {
1737
+ }, Gt = g(new Zt()), Jt = ({ children: e, notifier: t }) => (C(() => {
1701
1738
  const e = i.getOverrides();
1702
1739
  return i.setOverrides(t), () => {
1703
1740
  i.setOverrides(e);
1704
1741
  };
1705
- }, [t]), _(Ut.Provider, { value: t }, e)), Xt = () => x(Ut), qt = (e, t) => {
1706
- const n = w((...t) => e?.(...t), t), o = L(null);
1742
+ }, [t]), _(Gt.Provider, { value: t }, e)), Qt = () => S(Gt), en = (e, t) => {
1743
+ const n = x((...t) => e?.(...t), t), o = D(null);
1707
1744
  o.current = n;
1708
- const r = w((...e) => o.current?.(...e), []);
1745
+ const r = x((...e) => o.current?.(...e), []);
1709
1746
  if (o.current) return r;
1710
- }, Zt = () => {};
1711
- function Gt(e, t) {
1712
- const n = w((t) => e ? e(t) : Zt, [e]), o = w(() => t ? t() : null, [t]);
1747
+ }, tn = () => {};
1748
+ function nn(e, t) {
1749
+ const n = x((t) => e ? e(t) : tn, [e]), o = x(() => t ? t() : null, [t]);
1713
1750
  return A(n, o, o);
1714
1751
  }
1715
- function Jt(e, t) {
1716
- const n = w((t) => e.subscribe(t), [e]), o = w(() => t(e), [e, t]);
1752
+ function on(e, t) {
1753
+ const n = x((t) => e.subscribe(t), [e]), o = x(() => t(e), [e, t]);
1717
1754
  return A(n, o, o);
1718
1755
  }
1719
- var Qt = () => {};
1720
- function en(e, t) {
1721
- const n = w((t) => e ? e.subscribe(t) : Qt, [e]), o = w(() => e ? t(e) : null, [e, t]);
1756
+ var rn = () => {};
1757
+ function sn(e, t) {
1758
+ const n = x((t) => e ? e.subscribe(t) : rn, [e]), o = x(() => e ? t(e) : null, [e, t]);
1722
1759
  return A(n, o, o);
1723
1760
  }
1724
- function tn(e) {
1725
- const [t, n] = D("undefined" != typeof window ? window.devicePixelRatio : 1), o = L(null);
1726
- return S(() => {
1761
+ function ln(e) {
1762
+ const [t, n] = P("undefined" != typeof window ? window.devicePixelRatio : 1), o = D(null);
1763
+ return C(() => {
1727
1764
  if ("undefined" == typeof window || !("matchMedia" in window)) return;
1728
1765
  const e = () => {
1729
1766
  const t = window.matchMedia(`screen and (resolution: ${window.devicePixelRatio}dppx)`);
@@ -1740,14 +1777,14 @@ function tn(e) {
1740
1777
  };
1741
1778
  }, [e]), t;
1742
1779
  }
1743
- function nn(e) {
1780
+ function an(e) {
1744
1781
  if ("undefined" == typeof window) return 1;
1745
1782
  const { defaultDpr: t = 1, maxDpr: n = 3, round: o = !0 } = e || {}, r = "undefined" != typeof window && "number" == typeof window.devicePixelRatio ? window.devicePixelRatio : t;
1746
1783
  return Math.min(Math.max(1, o ? Math.floor(r) : r), n);
1747
1784
  }
1748
- function on(e, t, n) {
1749
- const o = qt(t, [t]);
1750
- S(() => {
1785
+ function cn(e, t, n) {
1786
+ const o = en(t, [t]);
1787
+ C(() => {
1751
1788
  const t = (t) => {
1752
1789
  e.current && !e.current.contains(t.target) && o(t);
1753
1790
  };
@@ -1756,32 +1793,32 @@ function on(e, t, n) {
1756
1793
  };
1757
1794
  }, [e]);
1758
1795
  }
1759
- function rn(e = {}) {
1760
- const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = D(!1), [l, a] = D(null), [c, h] = D(!1);
1761
- S(() => {
1796
+ function hn(e = {}) {
1797
+ const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = P(!1), [l, a] = P(null), [c, h] = P(!1);
1798
+ C(() => {
1762
1799
  s(function() {
1763
1800
  if ("undefined" == typeof document) return !1;
1764
1801
  const e = document.permissionsPolicy ?? document.featurePolicy;
1765
1802
  return e?.allowsFeature ? e.allowsFeature("fullscreen") : !!document.fullscreenEnabled;
1766
1803
  }());
1767
1804
  }, []);
1768
- const u = w(async () => {
1805
+ const u = x(async () => {
1769
1806
  const e = t?.current ?? document.documentElement;
1770
1807
  try {
1771
1808
  await e.requestFullscreen(r);
1772
1809
  } catch (e) {
1773
1810
  throw (e instanceof TypeError || e instanceof DOMException && "TypeError" === e.name) && s(!1), e;
1774
1811
  }
1775
- }, [t, r]), d = w(async () => {
1812
+ }, [t, r]), d = x(async () => {
1776
1813
  await document.exitFullscreen();
1777
- }, []), f = w(() => document.fullscreenElement ? d() : u(), [u, d]), p = w((e) => {
1814
+ }, []), f = x(() => document.fullscreenElement ? d() : u(), [u, d]), p = x((e) => {
1778
1815
  const t = document.fullscreenElement ?? null;
1779
1816
  a(t), h(!!t), n?.(e);
1780
- }, [n]), m = w((e) => {
1817
+ }, [n]), m = x((e) => {
1781
1818
  const t = document.fullscreenElement ?? null;
1782
1819
  a(t), h(!!t), o?.(e);
1783
1820
  }, [o]);
1784
- return S(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1821
+ return C(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1785
1822
  document.removeEventListener("fullscreenchange", p), document.removeEventListener("fullscreenerror", m);
1786
1823
  }), [p, m]), {
1787
1824
  isFullscreenAvailable: i,
@@ -1792,21 +1829,21 @@ function rn(e = {}) {
1792
1829
  toggleFullscreen: f
1793
1830
  };
1794
1831
  }
1795
- var sn = "_portal-root_105xh_14", ln = "_fullscreen_105xh_31", an = 0, cn = () => {
1832
+ var un = "_portal-root_105xh_14", dn = "_fullscreen_105xh_31", fn = 0, pn = () => {
1796
1833
  const e = document.fullscreenElement, t = e ?? document.body;
1797
1834
  let n = document.querySelector(".portal-root");
1798
- n || (n = document.createElement("div"), n.className = `portal-root ${sn}`), n.parentElement !== t && t.appendChild(n);
1835
+ n || (n = document.createElement("div"), n.className = `portal-root ${un}`), n.parentElement !== t && t.appendChild(n);
1799
1836
  const o = !!e;
1800
- return n.classList.toggle("fullscreen", o), n.classList.toggle(ln, o), n;
1837
+ return n.classList.toggle("fullscreen", o), n.classList.toggle(dn, o), n;
1801
1838
  };
1802
- function hn() {
1803
- const [e, t] = D(!!document.fullscreenElement), n = w(() => cn(), []);
1804
- return S(() => {
1839
+ function mn() {
1840
+ const [e, t] = P(!!document.fullscreenElement), n = x(() => pn(), []);
1841
+ return C(() => {
1805
1842
  const e = () => {
1806
- t(!!document.fullscreenElement), cn();
1843
+ t(!!document.fullscreenElement), pn();
1807
1844
  };
1808
- return an++, cn(), document.addEventListener("fullscreenchange", e), () => {
1809
- document.removeEventListener("fullscreenchange", e), --an <= 0 && (an = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1845
+ return fn++, pn(), document.addEventListener("fullscreenchange", e), () => {
1846
+ document.removeEventListener("fullscreenchange", e), --fn <= 0 && (fn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1810
1847
  e.parentNode?.removeChild(e);
1811
1848
  }));
1812
1849
  };
@@ -1815,67 +1852,124 @@ function hn() {
1815
1852
  isFullscreen: e
1816
1853
  };
1817
1854
  }
1818
- function un(e) {
1855
+ var gn = "_dragging_at5p4_10", _n = /* @__PURE__ */ new Set([
1856
+ "text",
1857
+ "search",
1858
+ "url",
1859
+ "tel",
1860
+ "password",
1861
+ ""
1862
+ ]), vn = (e, t, n) => {
1863
+ const o = e.getBoundingClientRect();
1864
+ if (!o.width || !o.height) return null;
1865
+ const r = Math.min(Math.max(t, o.left + 1), o.right - 1), i = Math.min(Math.max(n, o.top + 1), o.bottom - 1), s = e.ownerDocument, l = s.caretPositionFromPoint?.(r, i);
1866
+ if (l) return l.offset;
1867
+ const a = s.caretRangeFromPoint?.(r, i);
1868
+ return a ? a.startOffset : null;
1869
+ }, yn = () => {
1870
+ const e = D(null);
1871
+ return C(() => () => {
1872
+ e.current?.();
1873
+ }, []), k(() => ({
1874
+ onPointerDown: (t) => {
1875
+ if (void 0 !== t?.button && 0 !== t.button) return;
1876
+ if (e.current) return;
1877
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && _n.has(o.type) ? o : null);
1878
+ var o;
1879
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? vn(n, t.clientX, t.clientY) : null;
1880
+ let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1881
+ const a = (e, t) => {
1882
+ if (!i || !n || null === r) return;
1883
+ const o = vn(n, e, t);
1884
+ null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1885
+ }, c = (e) => {
1886
+ s = e.clientX, l = e.clientY, a(s, l);
1887
+ }, h = (e) => {
1888
+ if (!n || null === r) return;
1889
+ if (e.detail > 1) return void (i = !1);
1890
+ e.preventDefault();
1891
+ const t = n.ownerDocument.activeElement === n;
1892
+ n.focus({ preventScroll: !0 }), (t || n.selectionStart === n.selectionEnd) && n.setSelectionRange(r, r);
1893
+ }, u = document.documentElement, d = i ? window.setInterval(() => {
1894
+ if (!i || !n) return;
1895
+ const e = n.getBoundingClientRect(), t = s < e.left ? s - e.left : s > e.right ? s - e.right : 0, o = l < e.top ? l - e.top : l > e.bottom ? l - e.bottom : 0;
1896
+ if (!t && !o) return;
1897
+ const r = (e) => Math.max(-24, Math.min(24, e));
1898
+ n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1899
+ }, 50) : 0, f = () => {
1900
+ e.current = null, u.classList.remove(gn), d && window.clearInterval(d), window.removeEventListener("mousedown", h, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1901
+ };
1902
+ e.current = f, u.classList.add(gn), i && window.addEventListener("mousedown", h, {
1903
+ capture: !0,
1904
+ once: !0
1905
+ }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
1906
+ },
1907
+ onDragStart: (e) => {
1908
+ e.preventDefault();
1909
+ }
1910
+ }), []);
1911
+ };
1912
+ function bn(e) {
1819
1913
  if (!e) throw new Error("must have a PointerHandlerOptions");
1820
- const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = qt(t, [t]), l = qt(n, [n]), a = qt(o, [o]), c = L(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = L(null), f = L(null), p = L(null), m = L(null), g = w(() => {
1914
+ const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = en(t, [t]), l = en(n, [n]), a = en(o, [o]), c = D(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = D(null), f = D(null), p = D(null), m = D(null), g = x(() => {
1821
1915
  m.current && (clearTimeout(m.current), m.current = null);
1822
- }, []), _ = w((e) => {
1916
+ }, []), _ = x((e) => {
1823
1917
  m.current = setTimeout(() => {
1824
1918
  window.requestAnimationFrame(() => {
1825
1919
  if (!1 === c.current) return;
1826
1920
  const e = f.current, t = d.current;
1827
1921
  if (!e || !t) return;
1828
- const n = Ye(e, t.currentTarget);
1922
+ const n = qe(e, t.currentTarget);
1829
1923
  a?.(n, p.current, t);
1830
1924
  }), _(u);
1831
1925
  }, e ?? h);
1832
1926
  }, []);
1833
- S(() => () => g(), []);
1834
- const v = r ? "pointer" : "mouse", y = w((e) => {
1927
+ C(() => () => g(), []);
1928
+ const v = r ? "pointer" : "mouse", y = x((e) => {
1835
1929
  e.stopPropagation(), e.stopImmediatePropagation(), e.preventDefault();
1836
- }, []), b = qt((e) => {
1837
- document.removeEventListener(`${v}move`, M), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", k), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", x), g(), window.requestAnimationFrame(() => {
1930
+ }, []), b = en((e) => {
1931
+ document.removeEventListener(`${v}move`, M), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", T), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", w), g(), window.requestAnimationFrame(() => {
1838
1932
  if (!1 === c.current) return;
1839
1933
  c.current = !1;
1840
1934
  const t = e, n = d.current;
1841
1935
  if (!n) return;
1842
- const o = Ye(t, n.currentTarget);
1936
+ const o = qe(t, n.currentTarget);
1843
1937
  l?.(o, p.current, n), p.current = null;
1844
1938
  });
1845
- }, []), x = w(() => {
1939
+ }, []), w = x(() => {
1846
1940
  !1 !== c.current && (c.current = !1, b(f.current));
1847
- }, []), C = qt(() => {
1941
+ }, []), S = en(() => {
1848
1942
  g(), _(u), window.requestAnimationFrame(() => {
1849
1943
  if (!1 === c.current) return;
1850
1944
  const e = f.current, t = d.current;
1851
1945
  if (!e || !t) return;
1852
- const n = Ye(e, t.currentTarget);
1946
+ const n = qe(e, t.currentTarget);
1853
1947
  a?.(n, p.current, t);
1854
1948
  });
1855
- }, [u]), M = qt((e) => {
1856
- f.current = e, C();
1857
- }, []), E = qt((e) => {
1949
+ }, [u]), M = en((e) => {
1950
+ f.current = e, S();
1951
+ }, []), E = en((e) => {
1858
1952
  p.current = {
1859
1953
  ctrlKey: e.ctrlKey,
1860
1954
  shiftKey: e.shiftKey,
1861
1955
  altKey: e.altKey,
1862
1956
  metaKey: e.metaKey
1863
- }, C();
1864
- }, []), k = qt((e) => {
1957
+ }, S();
1958
+ }, []), T = en((e) => {
1865
1959
  p.current = {
1866
1960
  ctrlKey: e.ctrlKey,
1867
1961
  shiftKey: e.shiftKey,
1868
1962
  altKey: e.altKey,
1869
1963
  metaKey: e.metaKey
1870
- }, C();
1964
+ }, S();
1871
1965
  }, [u]);
1872
- return qt((e) => {
1966
+ return en((e) => {
1873
1967
  e.isDefaultPrevented() || (p.current = {
1874
1968
  ctrlKey: e.ctrlKey,
1875
1969
  shiftKey: e.shiftKey,
1876
1970
  altKey: e.altKey,
1877
1971
  metaKey: e.metaKey
1878
- }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, M, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", k, { passive: !1 }), window.addEventListener("blur", x, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1972
+ }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, M, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", T, { passive: !1 }), window.addEventListener("blur", w, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1879
1973
  passive: !1,
1880
1974
  capture: !0
1881
1975
  }), document.addEventListener("touchmove", y, {
@@ -1884,8 +1978,8 @@ function un(e) {
1884
1978
  })), c.current = !0, _(h)));
1885
1979
  }, [h, r]);
1886
1980
  }
1887
- function dn(e, t) {
1888
- return un({
1981
+ function wn(e, t) {
1982
+ return bn({
1889
1983
  onPointerDown: e,
1890
1984
  onPointerMoveOrWait: (t, n, o) => {
1891
1985
  e?.(o);
@@ -1893,49 +1987,49 @@ function dn(e, t) {
1893
1987
  ...t
1894
1988
  });
1895
1989
  }
1896
- var fn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1897
- const o = L(e);
1990
+ var xn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1991
+ const o = D(e);
1898
1992
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1899
1993
  const r = t();
1900
- return E(() => {
1994
+ return T(() => {
1901
1995
  o.current !== r && (o.current = r, n(r));
1902
1996
  }, [n, r]), null;
1903
- }, pn = (e) => {
1997
+ }, Sn = (e) => {
1904
1998
  console && console.warn && console.warn(e);
1905
- }, mn = globalThis, gn = 1, _n = !1, vn = !1, yn = [], bn = [], wn = () => {
1906
- bn.forEach((e) => e());
1907
- }, xn = ({ automaticContainerInternalUseOnly: e }) => {
1908
- const [t, n] = D([]), o = L([]);
1909
- return o.current = t, e || !1 !== _n || (vn = !0), S(() => {
1999
+ }, Cn = globalThis, Mn = 1, En = !1, Tn = !1, kn = [], Ln = [], Dn = () => {
2000
+ Ln.forEach((e) => e());
2001
+ }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
2002
+ const [t, n] = P([]), o = D([]);
2003
+ return o.current = t, e || !1 !== En || (Tn = !0), C(() => {
1910
2004
  let t = !0;
1911
2005
  function r() {
1912
- if (t) return bn[0] !== r ? (e || !0 !== _n || pn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...yn]);
2006
+ if (t) return Ln[0] !== r ? (e || !0 !== En || Sn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...kn]);
1913
2007
  }
1914
- return bn.push(r), wn(), () => {
1915
- t = !1, o.current?.length > 0 && pn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), bn.splice(bn.indexOf(r), 1), wn();
2008
+ return Ln.push(r), Dn(), () => {
2009
+ t = !1, o.current?.length > 0 && Sn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Ln.splice(Ln.indexOf(r), 1), Dn();
1916
2010
  };
1917
- }, [e]), z(P, { children: t.map(({ hook: e, key: t }) => _(fn, {
2011
+ }, [e]), R(z, { children: t.map(({ hook: e, key: t }) => _(xn, {
1918
2012
  ...e,
1919
2013
  key: t
1920
2014
  })) });
1921
- }, Sn = (e) => {
1922
- const t = gn++;
2015
+ }, An = (e) => {
2016
+ const t = Mn++;
1923
2017
  var n;
1924
- return yn.push({
2018
+ return kn.push({
1925
2019
  hook: e,
1926
2020
  key: t
1927
- }), 0 === bn.length && !1 === vn && (_n = !0, n = xn, mn.document && mn.document.createElement ? I(mn.document.createElement("div")).render(z(n, { automaticContainerInternalUseOnly: !0 })) : pn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), wn(), () => {
1928
- yn.splice(yn.findIndex((e) => e.key === t), 1), wn();
2021
+ }), 0 === Ln.length && !1 === Tn && (En = !0, n = Pn, Cn.document && Cn.document.createElement ? N(Cn.document.createElement("div")).render(R(n, { automaticContainerInternalUseOnly: !0 })) : Sn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), Dn(), () => {
2022
+ kn.splice(kn.findIndex((e) => e.key === t), 1), Dn();
1929
2023
  };
1930
- }, Cn = null;
1931
- Cn || (Cn = (e, t, n = {}) => {
2024
+ }, zn = null;
2025
+ zn || (zn = (e, t, n = {}) => {
1932
2026
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1933
2027
  const c = (e) => {
1934
- r = e, O(() => l.forEach((t) => t(e)));
2028
+ r = e, F(() => l.forEach((t) => t(e)));
1935
2029
  }, h = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1936
2030
  return () => {
1937
- const [n, s] = D(h);
1938
- return S(() => (i || (i = !0, o = Sn({
2031
+ const [n, s] = P(h);
2032
+ return C(() => (i || (i = !0, o = An({
1939
2033
  initValue: e,
1940
2034
  useHookBody: t,
1941
2035
  applyStateChange: c
@@ -1944,27 +2038,27 @@ Cn || (Cn = (e, t, n = {}) => {
1944
2038
  }), []), n;
1945
2039
  };
1946
2040
  });
1947
- var Mn = Cn, En = () => {
2041
+ var Rn = zn, $n = () => {
1948
2042
  console.warn("You must call useEditMode before setting its state.");
1949
- }, kn = Mn(null, () => {
1950
- const [e, t] = D(null);
1951
- return En = t, e;
1952
- }), Tn = (e) => {
1953
- En((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1954
- }, Ln = () => {
1955
- const e = kn();
2043
+ }, Bn = Rn(null, () => {
2044
+ const [e, t] = P(null);
2045
+ return $n = t, e;
2046
+ }), In = (e) => {
2047
+ $n((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
2048
+ }, Hn = () => {
2049
+ const e = Bn();
1956
2050
  return k(() => ({
1957
- setMode: Tn,
2051
+ setMode: In,
1958
2052
  getMode: () => e
1959
2053
  }), [e]);
1960
- }, Dn = { Active: "language" };
1961
- function An() {
2054
+ }, Nn = { Active: "language" };
2055
+ function On() {
1962
2056
  return A((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1963
2057
  }
1964
- function Pn() {
2058
+ function Fn() {
1965
2059
  return k(() => (e, n) => t.lookup(e, n) ?? e, [A((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision())]);
1966
2060
  }
1967
- var zn = (e, t, n, o) => ({
2061
+ var Wn = (e, t, n, o) => ({
1968
2062
  x: e,
1969
2063
  y: t,
1970
2064
  width: n,
@@ -1983,9 +2077,9 @@ var zn = (e, t, n, o) => ({
1983
2077
  right: e + n,
1984
2078
  bottom: t + o
1985
2079
  })
1986
- }), Rn = (e) => {
1987
- return zn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1988
- }, $n = [
2080
+ }), Kn = (e) => {
2081
+ return Wn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
2082
+ }, Vn = [
1989
2083
  "paddingTop",
1990
2084
  "paddingRight",
1991
2085
  "paddingBottom",
@@ -2015,18 +2109,18 @@ var zn = (e, t, n, o) => ({
2015
2109
  "wordBreak",
2016
2110
  "overflowWrap",
2017
2111
  "tabSize"
2018
- ], Bn = (e, t, n, o = 0) => {
2019
- if (!e || "undefined" == typeof document) return zn(0, 0, 0, 0);
2112
+ ], jn = (e, t, n, o = 0) => {
2113
+ if (!e || "undefined" == typeof document) return Wn(0, 0, 0, 0);
2020
2114
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
2021
2115
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
2022
2116
  const n = getComputedStyle(t), o = e.style;
2023
- for (const e of $n) o[e] = n[e];
2117
+ for (const e of Vn) o[e] = n[e];
2024
2118
  o.position = "absolute", o.top = "0", o.left = "0", o.visibility = "hidden", o.pointerEvents = "none", o.overflow = "hidden", o.boxSizing = "border-box", o.height = "auto", o.width = `${t.offsetWidth}px`;
2025
2119
  })(l, e), l.textContent = r.slice(0, i);
2026
2120
  const a = document.createElement("span");
2027
2121
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
2028
2122
  try {
2029
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Rn({
2123
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Kn({
2030
2124
  textareaRect: e.getBoundingClientRect(),
2031
2125
  mirrorRect: r,
2032
2126
  markerRect: {
@@ -2037,25 +2131,25 @@ var zn = (e, t, n, o) => ({
2037
2131
  scrollLeft: e.scrollLeft,
2038
2132
  scrollTop: e.scrollTop
2039
2133
  });
2040
- return o ? zn(s.left - o, s.top, 0, s.height) : s;
2134
+ return o ? Wn(s.left - o, s.top, 0, s.height) : s;
2041
2135
  } finally {
2042
2136
  s ? l.remove() : l.textContent = "";
2043
2137
  }
2044
- }, Hn = (e) => {
2045
- const t = L(null);
2046
- S(() => {
2138
+ }, Yn = (e) => {
2139
+ const t = D(null);
2140
+ C(() => {
2047
2141
  if ("undefined" == typeof document) return;
2048
2142
  const e = document.createElement("div");
2049
2143
  return t.current = e, document.body.appendChild(e), () => {
2050
2144
  e.remove(), t.current = null;
2051
2145
  };
2052
2146
  }, []);
2053
- const n = w((n, o) => Bn(e.current, n, t.current ?? void 0, o), [e]);
2147
+ const n = x((n, o) => jn(e.current, n, t.current ?? void 0, o), [e]);
2054
2148
  return {
2055
2149
  getCaretRect: n,
2056
- caretAnchor: w((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2150
+ caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2057
2151
  };
2058
- }, In = Mn({
2152
+ }, Un = Rn({
2059
2153
  setClipboard: (e) => {
2060
2154
  throw new Error("This is only available via the useClipboard.");
2061
2155
  },
@@ -2063,17 +2157,17 @@ var zn = (e, t, n, o) => ({
2063
2157
  refNativeCopy: { current: null },
2064
2158
  refNativeLastKey: { current: null }
2065
2159
  }, () => {
2066
- const [e, t] = D(r.Global);
2160
+ const [e, t] = P(r.Global);
2067
2161
  return {
2068
2162
  setClipboard: (e) => t(e),
2069
2163
  getClipboard: () => e,
2070
- refNativeCopy: L(null),
2071
- refNativeLastKey: L(null)
2164
+ refNativeCopy: D(null),
2165
+ refNativeLastKey: D(null)
2072
2166
  };
2073
2167
  });
2074
- function Nn(e, t = !0) {
2075
- const n = L(e);
2076
- S(() => {
2168
+ function Xn(e, t = !0) {
2169
+ const n = D(e);
2170
+ C(() => {
2077
2171
  if (t) {
2078
2172
  const t = Object.entries(e).reduce((e, [t, o]) => (n.current[t] !== o && (e[t] = [n.current[t], o]), e), {});
2079
2173
  Object.keys(t).length > 0 && console.log("Changed props:", t);
@@ -2081,35 +2175,36 @@ function Nn(e, t = !0) {
2081
2175
  n.current = e;
2082
2176
  });
2083
2177
  }
2084
- var On = !1, Fn = 0, Wn = "undefined" != typeof document ? E : S, Kn = () => "sheetxl-ui-" + Fn++;
2085
- var Vn = f["useId".toString()], jn = null != Vn ? Vn : function() {
2086
- const [e, t] = D(() => On ? Kn() : void 0);
2087
- return Wn(() => {
2088
- null == e && t(Kn());
2089
- }, []), S(() => {
2090
- On || (On = !0);
2178
+ var qn = !1, Zn = 0, Gn = "undefined" != typeof document ? T : C, Jn = () => "sheetxl-ui-" + Zn++;
2179
+ var Qn = f["useId".toString()], eo = null != Qn ? Qn : function() {
2180
+ const [e, t] = P(() => qn ? Jn() : void 0);
2181
+ return Gn(() => {
2182
+ null == e && t(Jn());
2183
+ }, []), C(() => {
2184
+ qn || (qn = !0);
2091
2185
  }, []), e;
2092
- }, Un = [];
2093
- function Yn(e, t, n = Un) {
2094
- const o = L(null);
2095
- return M(e, () => {
2096
- if (!o.current) return;
2097
- const e = o.current, n = t?.();
2186
+ }, to = [];
2187
+ function no(e, t, n = to, o) {
2188
+ const r = D(null);
2189
+ return E(e, () => {
2190
+ const e = void 0 === o ? r.current : o;
2191
+ if (!e) return;
2192
+ const n = t?.();
2098
2193
  if (!n || "object" != typeof n) throw new Error("attributes must return a plain object of values");
2099
- const r = Object.keys(n), i = r.length;
2100
- for (let t = 0; t < i; t++) {
2101
- const o = r[t], i = n[o];
2194
+ const i = Object.keys(n), s = i.length;
2195
+ for (let t = 0; t < s; t++) {
2196
+ const o = i[t], r = n[o];
2102
2197
  Object.defineProperty(e, o, {
2103
- value: i,
2198
+ value: r,
2104
2199
  writable: !0,
2105
2200
  configurable: !0,
2106
2201
  enumerable: !0
2107
2202
  });
2108
2203
  }
2109
2204
  return e;
2110
- }, n), o;
2205
+ }, void 0 === o ? n : [...n, o]), r;
2111
2206
  }
2112
- var Xn = class extends p {
2207
+ var oo = class extends p {
2113
2208
  constructor(...e) {
2114
2209
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2115
2210
  }
@@ -2125,16 +2220,16 @@ var Xn = class extends p {
2125
2220
  render() {
2126
2221
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2127
2222
  }
2128
- }, qn = ({ children: e, fallback: t }) => {
2129
- const n = Xt();
2130
- return z(Xn, {
2223
+ }, ro = ({ children: e, fallback: t }) => {
2224
+ const n = Qt();
2225
+ return R(oo, {
2131
2226
  fallback: t,
2132
- onError: w((e) => {
2227
+ onError: x((e) => {
2133
2228
  n.showError(e);
2134
2229
  }, [n]),
2135
2230
  children: e
2136
2231
  });
2137
- }, Zn = class {
2232
+ }, io = class {
2138
2233
  constructor(e) {
2139
2234
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2140
2235
  const t = e.reason;
@@ -2149,15 +2244,15 @@ var Xn = class extends p {
2149
2244
  cleanup() {
2150
2245
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2151
2246
  }
2152
- }, Gn = ({ children: e }) => {
2153
- const t = Xt();
2154
- return S(() => {
2155
- const e = new Zn(t);
2247
+ }, so = ({ children: e }) => {
2248
+ const t = Qt();
2249
+ return C(() => {
2250
+ const e = new io(t);
2156
2251
  return () => {
2157
2252
  e.cleanup();
2158
2253
  };
2159
- }, [t]), z(P, { children: e });
2160
- }, Jn = 7, Qn = {
2254
+ }, [t]), R(z, { children: e });
2255
+ }, lo = 7, ao = {
2161
2256
  light: {
2162
2257
  "color-base-100": "#ffffff",
2163
2258
  "color-base-200": "#f5f5f5",
@@ -2254,26 +2349,26 @@ var Xn = class extends p {
2254
2349
  border: "1px",
2255
2350
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2256
2351
  }
2257
- }, eo = "--sxl-";
2258
- function to(e) {
2352
+ }, co = "--sxl-";
2353
+ function ho(e) {
2259
2354
  const t = {};
2260
2355
  for (const n in e) {
2261
2356
  const o = e[n];
2262
2357
  null != o && (Array.isArray(o) ? o.forEach((e, o) => {
2263
- null != e && (t[`${eo}${n}-${o + 1}`] = String(e));
2264
- }) : t[`${eo}${n}`] = String(o));
2358
+ null != e && (t[`${co}${n}-${o + 1}`] = String(e));
2359
+ }) : t[`${co}${n}`] = String(o));
2265
2360
  }
2266
2361
  return t;
2267
2362
  }
2268
- function no(e, ...t) {
2269
- return to(Object.assign({}, Qn[e], ...t.filter(Boolean)));
2363
+ function uo(e, ...t) {
2364
+ return ho(Object.assign({}, ao[e], ...t.filter(Boolean)));
2270
2365
  }
2271
- var oo = ["light", "dark"], ro = "--sxl-input-selection", io = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", so = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${ro},${io});}`, lo = [
2366
+ var fo = ["light", "dark"], po = "--sxl-input-selection", mo = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", go = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${po},${mo});}`, _o = [
2272
2367
  "sxl-defaults",
2273
2368
  "sxl-app",
2274
2369
  "sxl-overrides"
2275
- ], ao = `@layer ${lo.join(", ")};`;
2276
- function co(e) {
2370
+ ], vo = `@layer ${_o.join(", ")};`;
2371
+ function yo(e) {
2277
2372
  let t = "";
2278
2373
  for (const n in e) {
2279
2374
  const o = e[n];
@@ -2283,70 +2378,70 @@ function co(e) {
2283
2378
  }
2284
2379
  return t;
2285
2380
  }
2286
- function ho(e = {}) {
2287
- const { app: t = Qn, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2381
+ function bo(e = {}) {
2382
+ const { app: t = ao, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2288
2383
  app: {
2289
2384
  light: t.light,
2290
2385
  dark: t.dark
2291
2386
  },
2292
2387
  ...n
2293
2388
  }, h = l ? ":scope" : ":root", u = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2294
- a.push(`:where(${h}){color-scheme:light;${co(t.light)}}`);
2389
+ a.push(`:where(${h}){color-scheme:light;${yo(t.light)}}`);
2295
2390
  for (const [e, t] of Object.entries(c)) {
2296
2391
  const n = t?.light;
2297
- n && Object.keys(n).length && a.push(`${d(e)}{${co(n)}}`);
2392
+ n && Object.keys(n).length && a.push(`${d(e)}{${yo(n)}}`);
2298
2393
  }
2299
- for (const e of oo) {
2300
- a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${co(t[e])}}`);
2394
+ for (const e of fo) {
2395
+ a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${yo(t[e])}}`);
2301
2396
  for (const [t, n] of Object.entries(c)) {
2302
2397
  const o = n?.[e];
2303
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${co(o)}}`);
2398
+ o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${yo(o)}}`);
2304
2399
  }
2305
2400
  }
2306
- for (const e of oo) for (const [t, n] of Object.entries(c)) {
2401
+ for (const e of fo) for (const [t, n] of Object.entries(c)) {
2307
2402
  const o = n?.[e];
2308
- o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${co(o)}}`);
2403
+ o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${yo(o)}}`);
2309
2404
  }
2310
- o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${co(o)}}`), a.push(so);
2405
+ o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${yo(o)}}`), a.push(go);
2311
2406
  let p = a.join("\n");
2312
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${ao}\n@layer ${s}{\n${p}\n}`), p;
2407
+ return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${vo}\n@layer ${s}{\n${p}\n}`), p;
2313
2408
  }
2314
- var uo = "data-sxl-theme-mode", fo = "data-sxl-theme-surface", po = (e, t) => {
2315
- const n = { [fo]: e };
2316
- return t && (n[uo] = t), n;
2317
- }, mo = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2318
- function go(e) {
2319
- const { mode: t } = e || {}, [n, o] = D(() => {
2409
+ var wo = "data-sxl-theme-mode", xo = "data-sxl-theme-surface", So = (e, t) => {
2410
+ const n = { [xo]: e };
2411
+ return t && (n[wo] = t), n;
2412
+ }, Co = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2413
+ function Mo(e) {
2414
+ const { mode: t } = e || {}, [n, o] = P(() => {
2320
2415
  if ("light" === t || "dark" === t) return {
2321
2416
  themeMode: t,
2322
2417
  source: "prop"
2323
2418
  };
2324
2419
  if ("undefined" != typeof document) {
2325
- const e = _o();
2420
+ const e = Eo();
2326
2421
  if (e) return {
2327
2422
  themeMode: e,
2328
2423
  source: "class"
2329
2424
  };
2330
2425
  }
2331
2426
  return {
2332
- themeMode: vo(),
2427
+ themeMode: To(),
2333
2428
  source: "media"
2334
2429
  };
2335
2430
  });
2336
- return S(() => {
2431
+ return C(() => {
2337
2432
  const e = () => {
2338
2433
  if (t) return void (t === n.themeMode && "prop" === n.source || o((e) => ({
2339
2434
  ...e,
2340
2435
  themeMode: t,
2341
2436
  source: "prop"
2342
2437
  })));
2343
- const e = _o();
2438
+ const e = Eo();
2344
2439
  if (e) o({
2345
2440
  themeMode: e,
2346
2441
  source: "class"
2347
2442
  });
2348
2443
  else {
2349
- const e = vo();
2444
+ const e = To();
2350
2445
  o({
2351
2446
  themeMode: e,
2352
2447
  source: "media"
@@ -2363,16 +2458,16 @@ function go(e) {
2363
2458
  };
2364
2459
  }, [t]), n;
2365
2460
  }
2366
- function _o() {
2461
+ function Eo() {
2367
2462
  if ("undefined" == typeof document) return null;
2368
2463
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2369
2464
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2370
2465
  }
2371
- function vo() {
2466
+ function To() {
2372
2467
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2373
2468
  }
2374
- var yo = g(null), bo = () => x(yo), wo = (e) => {
2375
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = bo(), u = k(() => ({
2469
+ var ko = g(null), Lo = () => S(ko), Do = (e) => {
2470
+ const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = Lo(), u = k(() => ({
2376
2471
  ...o?.light ?? {},
2377
2472
  ...h?.light ?? {},
2378
2473
  ...t ?? {}
@@ -2388,7 +2483,7 @@ var yo = g(null), bo = () => x(yo), wo = (e) => {
2388
2483
  o?.dark,
2389
2484
  h?.dark,
2390
2485
  n
2391
- ]), p = mo("token", C()), { themeMode: m } = go("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = k(() => ho({
2486
+ ]), p = Co("token", M()), { themeMode: m } = Mo("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = k(() => bo({
2392
2487
  app: {
2393
2488
  light: u,
2394
2489
  dark: d
@@ -2414,38 +2509,38 @@ var yo = g(null), bo = () => x(yo), wo = (e) => {
2414
2509
  _,
2415
2510
  u,
2416
2511
  d
2417
- ]), b = z("style", { children: v }), w = {};
2418
- g && (w[uo] = g), s && (w[fo] = s);
2512
+ ]), b = R("style", { children: v }), w = {};
2513
+ g && (w[wo] = g), s && (w[xo] = s);
2419
2514
  let x = c;
2420
2515
  if (l || Object.keys(w).length > 0) {
2421
2516
  const e = f.Children.only(c);
2422
2517
  l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2423
2518
  }
2424
- return R(yo.Provider, {
2519
+ return $(ko.Provider, {
2425
2520
  value: y,
2426
2521
  children: [b, x]
2427
2522
  });
2428
2523
  };
2429
- function xo(e, t) {
2524
+ function Po(e, t) {
2430
2525
  if (!e || "undefined" == typeof getComputedStyle) return;
2431
- const n = getComputedStyle(e).getPropertyValue(Co(t)).trim();
2526
+ const n = getComputedStyle(e).getPropertyValue(zo(t)).trim();
2432
2527
  return "" === n ? void 0 : n;
2433
2528
  }
2434
- function So(e, t) {
2529
+ function Ao(e, t) {
2435
2530
  const n = {};
2436
2531
  if (!e || "undefined" == typeof getComputedStyle) return n;
2437
2532
  const o = getComputedStyle(e);
2438
2533
  for (const e of t) {
2439
- const t = o.getPropertyValue(Co(e)).trim();
2534
+ const t = o.getPropertyValue(zo(e)).trim();
2440
2535
  "" !== t && (n[e] = t);
2441
2536
  }
2442
2537
  return n;
2443
2538
  }
2444
- function Co(e) {
2539
+ function zo(e) {
2445
2540
  return e.startsWith("--") ? e : `--sxl-${e}`;
2446
2541
  }
2447
- wo.displayName = "TokenThemeProvider";
2448
- var Mo = g(null), Eo = () => {
2542
+ Do.displayName = "TokenThemeProvider";
2543
+ var Ro = g(null), $o = () => {
2449
2544
  const e = (n, o) => {
2450
2545
  if (null === o) return;
2451
2546
  n.add(o);
@@ -2492,16 +2587,16 @@ var Mo = g(null), Eo = () => {
2492
2587
  }
2493
2588
  };
2494
2589
  return t;
2495
- }, ko = () => x(Mo), To = (e) => {
2590
+ }, Bo = () => S(Ro), Io = (e) => {
2496
2591
  const t = {};
2497
- return e ? (e.mode && (t[uo] = e.mode), e.surface && (t[fo] = e.surface), {
2592
+ return e ? (e.mode && (t[wo] = e.mode), e.surface && (t[xo] = e.surface), {
2498
2593
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2499
2594
  attrs: t
2500
2595
  }) : { attrs: t };
2501
- }, Lo = "_float-popper_csci8_1", Do = "_float-popper-grow_csci8_7", Ao = "_entered_csci8_15", Po = [0, 2], zo = b(v((t, n) => {
2502
- const { open: o, children: r, label: i, offsets: s = Po, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2596
+ }, Ho = "_float-popper_csci8_1", No = "_float-popper-grow_csci8_7", Oo = "_entered_csci8_15", Fo = [0, 2], Wo = w(v((t, n) => {
2597
+ const { open: o, children: r, label: i, offsets: s = Fo, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2503
2598
  if (Array.isArray(r)) throw new Error("children can not be an array");
2504
- const b = qt(p ?? (() => {}), [p]), x = qt(m ?? (() => {}), [m]), C = qt(g ?? (() => {}), [g]), E = qt(_ ?? (() => {}), [_]), T = qt(v ?? (() => {}), [v]), [A, P] = D(!1), [R, $] = D(!1), [B, H] = D(!1), [I, O] = D(), [Y, X] = D(), q = L(null), Z = L(null), { getPortalContainer: G } = hn(), J = ko(), Q = bo(), ee = k(() => {
2599
+ const b = en(p ?? (() => {}), [p]), w = en(m ?? (() => {}), [m]), S = en(g ?? (() => {}), [g]), M = en(_ ?? (() => {}), [_]), T = en(v ?? (() => {}), [v]), [L, A] = P(!1), [z, $] = P(!1), [B, I] = P(!1), [H, N] = P(), [F, X] = P(), q = D(null), Z = D(null), { getPortalContainer: G } = mn(), J = Bo(), Q = Lo(), ee = k(() => {
2505
2600
  const e = J?.themeScope;
2506
2601
  return Q?.scopeClass || Q?.mode ? {
2507
2602
  classes: Q?.scopeClass ? [...e?.classes ?? [], Q.scopeClass] : e?.classes,
@@ -2513,15 +2608,15 @@ var Mo = g(null), Eo = () => {
2513
2608
  Q?.scopeClass,
2514
2609
  Q?.mode
2515
2610
  ]), te = k(() => {
2516
- const e = [V({
2611
+ const e = [j({
2517
2612
  mainAxis: s[1] ?? 0,
2518
2613
  crossAxis: s[0] ?? 0
2519
- }), K({ rootBoundary: "document" })];
2520
- return h && e.push(j({
2614
+ }), V({ rootBoundary: "document" })];
2615
+ return h && e.push(Y({
2521
2616
  rootBoundary: "document",
2522
2617
  apply({ availableHeight: e, availableWidth: t }) {
2523
2618
  const n = Math.max(0, Math.round(e - 10));
2524
- O((e) => e === n ? e : n);
2619
+ N((e) => e === n ? e : n);
2525
2620
  const o = Math.max(0, Math.round(t - 10));
2526
2621
  X((e) => e === o ? e : o);
2527
2622
  }
@@ -2546,98 +2641,108 @@ var Mo = g(null), Eo = () => {
2546
2641
  }, [a, l]), { refs: oe, floatingStyles: re, isPositioned: ie, placement: se, update: le } = U({
2547
2642
  placement: c,
2548
2643
  middleware: te,
2549
- whileElementsMounted: k(() => u ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [u]),
2644
+ whileElementsMounted: k(() => u ? (e, t, n) => K(e, t, n, { animationFrame: !0 }) : K, [u]),
2550
2645
  elements: { reference: ne }
2551
- }), ae = w((e) => {
2646
+ }), ae = x((e) => {
2552
2647
  q.current = e, oe.setFloating(e);
2553
2648
  }, [oe]);
2554
- M(n, () => ({
2649
+ E(n, () => ({
2555
2650
  instance: () => q.current ? { update: le } : null,
2556
2651
  element: () => q.current
2557
- }), [le]), S(() => {
2558
- o && P(!0);
2559
- }, [o]), S(() => {
2560
- A && ie && !R && ($(!0), b?.(q.current, { update: le }));
2652
+ }), [le]), C(() => {
2653
+ o && A(!0);
2654
+ }, [o]), C(() => {
2655
+ L && ie && !z && ($(!0), b?.(q.current, { update: le }));
2561
2656
  }, [
2562
- A,
2657
+ L,
2563
2658
  ie,
2564
- R
2565
- ]), S(() => {
2566
- o && R ? x?.() : !o && A && E?.();
2567
- }, [o, R]), S(() => {
2568
- if (A && R && o) {
2569
- const e = requestAnimationFrame(() => H(!0));
2659
+ z
2660
+ ]), C(() => {
2661
+ o && z ? w?.() : !o && L && M?.();
2662
+ }, [o, z]), C(() => {
2663
+ if (L && z && o) {
2664
+ const e = requestAnimationFrame(() => I(!0));
2570
2665
  return () => cancelAnimationFrame(e);
2571
2666
  }
2572
2667
  }, [
2573
- A,
2574
- R,
2668
+ L,
2669
+ z,
2575
2670
  o
2576
- ]), S(() => {
2577
- !o && A && (H(!1), P(!1), $(!1), T?.());
2578
- }, [o, A]);
2579
- const ce = qt((e) => {
2580
- e.target === e.currentTarget && o && B && C?.();
2671
+ ]), C(() => {
2672
+ !o && L && (I(!1), A(!1), $(!1), T?.());
2673
+ }, [o, L]);
2674
+ const ce = en((e) => {
2675
+ e.target === e.currentTarget && o && B && S?.();
2581
2676
  }, [o, B]);
2582
- if (!A) return null;
2583
- const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = To(ee);
2677
+ if (!L) return null;
2678
+ const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = Io(ee);
2584
2679
  if (!ue && !de["data-sxl-theme-mode"] && !de["data-sxl-theme-surface"]) {
2585
- const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${uo}]`)?.getAttribute(uo), o = t?.closest(`[${fo}]`)?.getAttribute(fo);
2586
- n && (de[uo] = n), o && (de[fo] = o);
2680
+ const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${wo}]`)?.getAttribute(wo), o = t?.closest(`[${xo}]`)?.getAttribute(xo);
2681
+ n && (de[wo] = n), o && (de[xo] = o);
2587
2682
  }
2588
- return N(z("div", {
2683
+ return O(R("div", {
2589
2684
  ref: ae,
2590
- className: F(Lo, f, ue),
2685
+ className: W(Ho, f, ue),
2591
2686
  role: void 0,
2592
2687
  ...de,
2593
2688
  style: {
2594
2689
  ...re,
2595
- maxHeight: h ? I : void 0,
2596
- maxWidth: h ? Y : void 0,
2690
+ maxHeight: h ? H : void 0,
2691
+ maxWidth: h ? F : void 0,
2597
2692
  zIndex: o ? 1300 : 1299,
2598
- pointerEvents: A && o ? void 0 : "none",
2693
+ pointerEvents: L && o ? void 0 : "none",
2599
2694
  ...d
2600
2695
  },
2601
2696
  ...y,
2602
- children: z("div", {
2603
- className: F(Do, { [Ao]: B }),
2697
+ children: R("div", {
2698
+ className: W(No, { [Oo]: B }),
2604
2699
  style: { transformOrigin: he },
2605
2700
  onTransitionEnd: ce,
2606
2701
  children: r || e.EmptyArray
2607
2702
  })
2608
2703
  }), G());
2609
2704
  }));
2610
- zo.displayName = "FloatPopper";
2611
- var Ro = "_float-popup_juap7_1", $o = (e) => {
2705
+ Wo.displayName = "FloatPopper";
2706
+ var Ko = "_float-popup_juap7_1", Vo = (e) => {
2612
2707
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2613
- return z("div", {
2614
- className: F("menu", Ro, s),
2708
+ return R("div", {
2709
+ className: W("menu", Ko, s),
2615
2710
  ...l,
2616
2711
  children: i
2617
2712
  });
2618
- }, Bo = "_float-panel_1f1r8_1", Ho = b(v((e, t) => {
2619
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = $o, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = qt(h ?? (() => {}), [h]), v = qt(u ?? (() => {}), [u]), y = qt(d ?? (() => {}), [d]), b = qt(f ?? (() => {}), [f]), [w, x] = D(), S = L(null), C = qt((e, t) => {
2713
+ }, jo = "_float-panel_1f1r8_1", Yo = w(v((e, t) => {
2714
+ const { floatReference: n, popupContainer: o, createPopupPanel: r = Vo, children: i, className: s, ...l } = e, a = {
2715
+ popupContainer: o,
2716
+ floatReference: n,
2717
+ children: i,
2718
+ ...l
2719
+ };
2720
+ return R("div", {
2721
+ ref: t,
2722
+ className: W(jo, s),
2723
+ tabIndex: 0,
2724
+ children: r(a)
2725
+ });
2726
+ }));
2727
+ Yo.displayName = "FloatPanelSurface";
2728
+ var Uo = w(v((e, t) => {
2729
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = Vo, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = en(h ?? (() => {}), [h]), v = en(u ?? (() => {}), [u]), y = en(d ?? (() => {}), [d]), b = en(f ?? (() => {}), [f]), [w, x] = P(), S = D(null), C = en((e, t) => {
2620
2730
  x(e), c?.(S.current, t);
2621
- }, [c]), M = k(() => {
2622
- const e = {
2623
- popupContainer: w,
2624
- floatReference: s,
2625
- children: p,
2626
- ...g
2627
- };
2628
- return z("div", {
2629
- ref: S,
2630
- className: F(Bo, m),
2631
- tabIndex: 0,
2632
- children: l(e)
2633
- });
2634
- }, [
2731
+ }, [c]), M = k(() => R(Yo, {
2732
+ ref: S,
2733
+ className: m,
2734
+ floatReference: s,
2735
+ popupContainer: w,
2736
+ createPopupPanel: l,
2737
+ ...g,
2738
+ children: p
2739
+ }), [
2635
2740
  l,
2636
2741
  p,
2637
2742
  w,
2638
2743
  s
2639
2744
  ]);
2640
- return z(zo, {
2745
+ return R(Wo, {
2641
2746
  ref: t,
2642
2747
  anchorEl: o,
2643
2748
  anchorPosition: r,
@@ -2652,27 +2757,27 @@ var Ro = "_float-popup_juap7_1", $o = (e) => {
2652
2757
  children: M
2653
2758
  });
2654
2759
  }));
2655
- Ho.displayName = "FloatPanel";
2656
- var Io = "_float-tooltip_1l6qz_1", No = b(v((e, t) => {
2760
+ Uo.displayName = "FloatPanel";
2761
+ var Xo = "_float-tooltip_1l6qz_1", qo = w(v((e, t) => {
2657
2762
  const { open: n, title: o, placement: r = "top", anchorEl: i, anchorPosition: s, offsets: l = [0, 8], className: a, ...c } = e;
2658
- return null == o || "" === o ? null : z(zo, {
2763
+ return null == o || "" === o ? null : R(Wo, {
2659
2764
  open: n,
2660
2765
  anchorEl: i,
2661
2766
  anchorPosition: s,
2662
2767
  placement: r,
2663
2768
  offsets: l,
2664
2769
  resizeOnOverflow: !1,
2665
- children: z("div", {
2770
+ children: R("div", {
2666
2771
  ref: t,
2667
- className: F(Io, a),
2772
+ className: W(Xo, a),
2668
2773
  ...c,
2669
2774
  children: o
2670
2775
  })
2671
2776
  });
2672
2777
  }));
2673
- No.displayName = "FloatTooltip";
2674
- var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2675
- const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = x(Mo), u = k(() => {
2778
+ qo.displayName = "FloatTooltip";
2779
+ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2780
+ const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = S(Ro), u = k(() => {
2676
2781
  const e = h?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, u = l?.length || a || c ? {
2677
2782
  classes: l,
2678
2783
  surface: a,
@@ -2692,104 +2797,104 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2692
2797
  i,
2693
2798
  s,
2694
2799
  h
2695
- ]), d = Mt();
2696
- let f = z(Mo.Provider, {
2800
+ ]), d = Tt();
2801
+ let f = R(Ro.Provider, {
2697
2802
  value: u,
2698
2803
  children: c
2699
2804
  });
2700
- const p = l || !d, m = L(null);
2701
- p && null === m.current && (m.current = Eo());
2805
+ const p = l || !d, m = D(null);
2806
+ p && null === m.current && (m.current = $o());
2702
2807
  const g = p ? m.current : null;
2703
- g && (f = z(Ct, {
2808
+ g && (f = R(Et, {
2704
2809
  value: g,
2705
2810
  children: f
2706
2811
  }));
2707
2812
  const _ = (g ?? d).getRoot();
2708
- return S(() => {
2813
+ return C(() => {
2709
2814
  if (a) return "function" == typeof a ? (a(_), () => {
2710
2815
  a(null);
2711
2816
  }) : (a.current = _, () => {
2712
2817
  a.current = null;
2713
2818
  });
2714
2819
  }, [a, _]), f;
2715
- }, Wo = (e) => {
2716
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = qt(s ?? (() => {}), [s]), d = qt(l ?? (() => {}), [l]), f = ko(), p = h ?? f?.renderFloatPanel ?? Oo, m = void 0 === c ? f?.createPopupPanel ?? $o : c, g = Mt(), [_, v] = D(null), [y, b] = D(!1), [x, C] = D(!1), M = k(() => i ?? g ?? Eo(), []), E = k(() => M.getRoot(), []), A = k(() => ({ label: r }), []), P = L(null), R = L(t);
2717
- S(() => {
2718
- R.current = t;
2820
+ }, Jo = (e) => {
2821
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = en(s ?? (() => {}), [s]), d = en(l ?? (() => {}), [l]), f = Bo(), p = h ?? f?.renderFloatPanel ?? Zo, m = void 0 === c ? f?.createPopupPanel ?? Vo : c, g = Tt(), [_, v] = P(null), [y, b] = P(!1), [w, S] = P(!1), M = k(() => i ?? g ?? $o(), []), E = k(() => M.getRoot(), []), T = k(() => ({ label: r }), []), A = D(null), z = D(t);
2822
+ C(() => {
2823
+ z.current = t;
2719
2824
  }, [t]);
2720
2825
  const $ = (e) => {
2721
2826
  const t = E.floatByParents.get(e);
2722
2827
  let n = null;
2723
2828
  return t && (n = E.statesByMovables.get(t)?.close(0) ?? null), n;
2724
- }, B = () => $(G.key), [H, I] = D(), N = () => {
2829
+ }, B = () => $(G.key), [I, H] = P(null), N = () => {
2725
2830
  if (!_) return V(), null;
2726
- const e = new Promise((e, t) => {
2727
- I((n) => ({
2728
- resolve: e,
2729
- reject: t
2730
- }));
2831
+ const e = new Promise((e) => {
2832
+ H((t) => [...t ?? [], { resolve: e }]);
2731
2833
  });
2732
2834
  return B(), E.floatByParents.delete(M.key), v(!1), e;
2733
2835
  };
2734
- S(() => {
2735
- H && (H.resolve(), I(null));
2836
+ C(() => {
2837
+ if (I) {
2838
+ for (const e of I) e.resolve();
2839
+ H(null);
2840
+ }
2736
2841
  }, [
2737
2842
  y,
2738
- x,
2739
- H
2843
+ w,
2844
+ I
2740
2845
  ]);
2741
- const O = w(() => {
2846
+ const O = x(() => {
2742
2847
  let e = M;
2743
2848
  for (; e.parent;) e = e.parent;
2744
2849
  return $(e.key);
2745
- }, []), F = L(null), W = () => {
2850
+ }, []), F = D(null), W = () => {
2746
2851
  if (_) return void V();
2747
2852
  M && E.statesByMovables.get(M.key)?.open(0);
2748
2853
  const e = E.floatByParents.get(M.key);
2749
- e && e !== A && E.statesByMovables.get(e)?.close(0);
2854
+ e && e !== T && E.statesByMovables.get(e)?.close(0);
2750
2855
  const t = document.activeElement;
2751
2856
  t && t !== document.body && "function" == typeof t.focus && (F.current = t), requestAnimationFrame(() => {
2752
2857
  E.floatByParents.set(M.key, G.key), v(!0);
2753
2858
  });
2754
- }, [K, V] = T((e) => e + 1, 0), j = w((e) => null === m ? null : m({
2859
+ }, [K, V] = L((e) => e + 1, 0), j = x((e) => null === m ? null : m({
2755
2860
  closeFloat: X,
2756
2861
  closeFloatAll: Z,
2757
2862
  ...e
2758
- }), [m]), U = null === m, Y = qt((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = qt((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = qt((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = qt(O, [O]), G = k(() => ({
2759
- key: A,
2863
+ }), [m]), Y = null === m, U = en((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = en((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = en((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = en(O, [O]), G = k(() => ({
2864
+ key: T,
2760
2865
  isRoot: !1,
2761
2866
  label: r,
2762
2867
  parent: M,
2763
2868
  onChildVisible: () => {
2764
- C(!0);
2869
+ S(!0);
2765
2870
  },
2766
2871
  onChildHidden: () => {
2767
- C(!1);
2872
+ S(!1);
2768
2873
  },
2769
- open: Y,
2874
+ open: U,
2770
2875
  close: X,
2771
2876
  closeChild: q,
2772
2877
  closeAll: Z,
2773
2878
  getRoot: () => E,
2774
- floatElement: () => P.current,
2775
- anchorElement: () => R.current
2879
+ floatElement: () => A.current,
2880
+ anchorElement: () => z.current
2776
2881
  }), []);
2777
- S(() => {
2778
- E.statesByMovables.set(A, G);
2779
- }, [G]), S(() => () => {
2780
- E.statesByMovables.delete(A), X(0);
2781
- }, []), S(() => {
2782
- _ && !U && (b(!0), M.onChildVisible());
2783
- }, [_, U]);
2784
- const Q = w((e) => {
2785
- e.which === J.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
2786
- }, []), ee = w(() => {
2787
- const e = F.current, t = P.current;
2882
+ C(() => {
2883
+ E.statesByMovables.set(T, G);
2884
+ }, [G]), C(() => () => {
2885
+ E.statesByMovables.delete(T), X(0);
2886
+ }, []), C(() => {
2887
+ _ && !Y && (b(!0), M.onChildVisible());
2888
+ }, [_, Y]);
2889
+ const J = x((e) => {
2890
+ e.which === Q.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
2891
+ }, []), ee = x(() => {
2892
+ const e = F.current, t = A.current;
2788
2893
  e && t && (requestAnimationFrame(() => {
2789
2894
  (t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
2790
2895
  }), F.current = null), d?.();
2791
- }, []), te = w((e) => {
2792
- P.current = e;
2896
+ }, []), te = x((e) => {
2897
+ A.current = e;
2793
2898
  if (e.addEventListener("focusin", (e) => {
2794
2899
  F.current || (F.current = e.relatedTarget);
2795
2900
  }, {
@@ -2800,9 +2905,9 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2800
2905
  requestAnimationFrame(() => {
2801
2906
  t === document.activeElement && e.focus();
2802
2907
  });
2803
- }, [n]), [ne, oe] = D();
2804
- S(() => {
2805
- U && (_ ? u?.() : !1 === _ && d?.()), oe(y ? z(Ct, {
2908
+ }, [n]), [ne, oe] = P();
2909
+ C(() => {
2910
+ Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? R(Et, {
2806
2911
  value: G,
2807
2912
  children: p({
2808
2913
  ...f?.propsFloatPanel,
@@ -2819,7 +2924,7 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2819
2924
  },
2820
2925
  onMount: te,
2821
2926
  propsPopper: {
2822
- onKeyDown: Q,
2927
+ onKeyDown: J,
2823
2928
  onMouseEnter: (e) => {
2824
2929
  _ && E.lastDebounced?.isClose && E.lastDebounced.setReferences.has(G) && (E.lastDebounced.fn.clear(), E.lastDebounced = null, G.closeChild());
2825
2930
  },
@@ -2832,22 +2937,23 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2832
2937
  y,
2833
2938
  _,
2834
2939
  r,
2835
- U,
2940
+ Y,
2836
2941
  a,
2837
2942
  j,
2838
2943
  p,
2839
2944
  f?.propsFloatPanel,
2840
2945
  K
2841
2946
  ]);
2842
- const re = qt((e) => {
2947
+ const re = en((e) => {
2843
2948
  if (0 === E.floatByParents.size) return;
2844
2949
  let t = !1;
2845
- E.floatByParents.forEach((n) => {
2846
- const o = E.statesByMovables.get(n);
2847
- t || o && (o.floatElement()?.contains?.(e.target) && (t = !0), o.anchorElement()?.contains?.(e.target) && (t = !0));
2950
+ const n = e.composedPath?.() ?? [], r = (t) => !!t && (n.length > 0 ? n.includes(t) : !!t.contains?.(e.target));
2951
+ E.floatByParents.forEach((e) => {
2952
+ const n = E.statesByMovables.get(e);
2953
+ t || n && (r(n.floatElement()) && (t = !0), r(n.anchorElement()) && (t = !0));
2848
2954
  }), t || "function" == typeof o && o(e.target) || O();
2849
2955
  }, [O, o]);
2850
- return S(() => {
2956
+ return C(() => {
2851
2957
  if (!_ || !M.isRoot || !0 === o) return;
2852
2958
  const e = (e) => {
2853
2959
  re(e);
@@ -2864,16 +2970,16 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2864
2970
  reference: G,
2865
2971
  isOpen: !0 === _
2866
2972
  };
2867
- }, Ko = {}, Vo = (e) => {
2868
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Ko, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2869
- return z("div", {
2973
+ }, Qo = {}, er = (e) => {
2974
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Qo, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2975
+ return R("div", {
2870
2976
  style: {
2871
2977
  ...n,
2872
2978
  position: "relative"
2873
2979
  },
2874
2980
  ...c,
2875
- children: z("div", {
2876
- className: F("hit-box", d),
2981
+ children: R("div", {
2982
+ className: W("hit-box", d),
2877
2983
  style: {
2878
2984
  left: (h ? -r : 0) + "px",
2879
2985
  width: `calc(100% + ${h ? r + i : 0}px)`,
@@ -2886,7 +2992,7 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2886
2992
  ...f
2887
2993
  })
2888
2994
  }, l);
2889
- }, jo = {}, Uo = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Yo = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Xo = (e, t) => {
2995
+ }, tr = {}, nr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, or = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, rr = (e, t) => {
2890
2996
  if (null == e) return null;
2891
2997
  const n = {
2892
2998
  percent: null,
@@ -2894,8 +3000,8 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2894
3000
  };
2895
3001
  let o = t;
2896
3002
  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);
2897
- }, qo = b(v((e, t) => {
2898
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = jo, propsPane: w = jo, propsPaneBefore: x = jo, propsPaneAfter: C = jo, renderResizer: M = Vo } = e;
3003
+ }, ir = w(v((e, t) => {
3004
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = tr, propsPane: w = tr, propsPaneBefore: x = tr, propsPaneAfter: S = tr, renderResizer: M = er } = e;
2899
3005
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
2900
3006
  const E = k(() => y(o) && y(n), [o, n]), T = k(() => {
2901
3007
  let e = null;
@@ -2904,21 +3010,21 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2904
3010
  return {
2905
3011
  fixedPaneOffset: e,
2906
3012
  isPercent: t,
2907
- minBefore: Xo(a, t),
2908
- maxBefore: Xo(c, t),
2909
- minAfter: Xo(h, t),
2910
- maxAfter: Xo(u, t)
3013
+ minBefore: rr(a, t),
3014
+ maxBefore: rr(c, t),
3015
+ minAfter: rr(h, t),
3016
+ maxAfter: rr(u, t)
2911
3017
  };
2912
3018
  }, [
2913
3019
  a,
2914
3020
  c,
2915
3021
  h,
2916
3022
  u
2917
- ]), A = qt(l ?? (() => {}), [l]), [P, $] = D(() => Xo(s, null === i));
2918
- S(() => {
2919
- $(Xo(s, null === i));
3023
+ ]), L = en(l ?? (() => {}), [l]), [A, z] = P(() => rr(s, null === i));
3024
+ C(() => {
3025
+ z(rr(s, null === i));
2920
3026
  }, [s, i]);
2921
- const [I, { width: N, height: O }] = B(), [W, { width: K, height: V }] = B(), j = "row" === r ? K : V, U = "row" === r ? N : O, Y = k(() => ((e, t, n, o) => {
3027
+ const [B, { width: N, height: O }] = I(), [F, { width: K, height: V }] = I(), j = "row" === r ? K : V, Y = "row" === r ? N : O, U = k(() => ((e, t, n, o) => {
2922
3028
  const r = [null, null], i = [null, null];
2923
3029
  if (e || (e = {
2924
3030
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -2926,13 +3032,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2926
3032
  }), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
2927
3033
  percents: i,
2928
3034
  pixels: r,
2929
- minBefore: Yo(o.minBefore, !0),
2930
- maxBefore: Yo(o.maxBefore, !0),
2931
- minAfter: Yo(o.minAfter),
2932
- maxAfter: Yo(o.maxAfter)
3035
+ minBefore: or(o.minBefore, !0),
3036
+ maxBefore: or(o.maxBefore, !0),
3037
+ minAfter: or(o.minAfter),
3038
+ maxAfter: or(o.maxAfter)
2933
3039
  };
2934
- let s = Uo(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Uo(o.minBefore, l, !0) ?? 0, c = Uo(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
2935
- h = (Uo(o.maxAfter, t, !1) ?? n) - n, u = Uo(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, Uo(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, Uo(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3040
+ let s = nr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = nr(o.minBefore, l, !0) ?? 0, c = nr(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
3041
+ h = (nr(o.maxAfter, t, !1) ?? n) - n, u = nr(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, nr(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, nr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
2936
3042
  const p = Math.max(0, Math.min(100, s / l * 100));
2937
3043
  return i[0] = p, i[1] = 100 - p, {
2938
3044
  percents: i,
@@ -2942,13 +3048,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2942
3048
  maxBefore: `${r[0]}px`,
2943
3049
  maxAfter: `${r[1]}px`
2944
3050
  };
2945
- })(P, U, j, T), [
3051
+ })(A, Y, j, T), [
2946
3052
  T,
2947
- P,
2948
- U,
3053
+ A,
3054
+ Y,
2949
3055
  j,
2950
3056
  r
2951
- ]), [X, q] = D(!1), Z = qt(g ?? (() => {}), [g]), G = qt(_ ?? (() => {}), [_]), J = qt(v ?? (() => {}), [v]), Q = L(null), ee = L(null), te = L(null), { style: ne, className: oe, ...re } = w, ie = {
3057
+ ]), [X, q] = P(!1), Z = en(g ?? (() => {}), [g]), G = en(_ ?? (() => {}), [_]), J = en(v ?? (() => {}), [v]), Q = D(null), ee = D(null), te = D(null), { style: ne, className: oe, ...re } = w, ie = {
2952
3058
  minWidth: 0,
2953
3059
  minHeight: 0,
2954
3060
  maxWidth: "100%",
@@ -2959,20 +3065,20 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2959
3065
  overflow: "hidden",
2960
3066
  position: "relative",
2961
3067
  ...ne
2962
- }, { className: se, style: le, ...ae } = x, { className: ce, style: he, ...ue } = C, de = {
3068
+ }, { className: se, style: le, ...ae } = x, { className: ce, style: he, ...ue } = S, de = {
2963
3069
  flex: "1 1 100%",
2964
3070
  width: "100%",
2965
3071
  ...p,
2966
3072
  flexDirection: r,
2967
3073
  display: "flex"
2968
- }, { className: fe, style: pe, onPointerDown: me, ...ge } = b, _e = qt((e) => {
2969
- const t = Xo(e, null === i);
2970
- $(t);
2971
- }, [i]), ve = qt((e) => {
3074
+ }, { className: fe, style: pe, onPointerDown: me, ...ge } = b, _e = en((e) => {
3075
+ const t = rr(e, null === i);
3076
+ z(t);
3077
+ }, [i]), ve = en((e) => {
2972
3078
  if (m || !X) return;
2973
3079
  const t = we.current?.getBoundingClientRect();
2974
3080
  let n = 0;
2975
- 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(U, n)), 1 === T.fixedPaneOffset && (n = U - n), s && P?.pixels === n || $({
3081
+ 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(Y, n)), 1 === T.fixedPaneOffset && (n = Y - n), s && A?.pixels === n || z({
2976
3082
  pixels: n,
2977
3083
  percent: null
2978
3084
  }), G?.(n), e.stopPropagation(), e.preventDefault();
@@ -2981,34 +3087,34 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2981
3087
  r,
2982
3088
  m,
2983
3089
  X,
2984
- P,
2985
- U
2986
- ]), ye = qt((e) => {
2987
- if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), P)) {
2988
- if (J(P.pixels ?? 0), !Xo(s, null === i) || P.pixels !== s) {
2989
- const e = P.pixels ?? 0, t = {
3090
+ A,
3091
+ Y
3092
+ ]), ye = en((e) => {
3093
+ if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), A)) {
3094
+ if (J(A.pixels ?? 0), !rr(s, null === i) || A.pixels !== s) {
3095
+ const e = A.pixels ?? 0, t = {
2990
3096
  pixels: e,
2991
- percent: P.percent ?? e / U * 100
3097
+ percent: A.percent ?? e / Y * 100
2992
3098
  };
2993
- A(t);
3099
+ L(t);
2994
3100
  }
2995
3101
  e.stopPropagation(), e.preventDefault();
2996
3102
  }
2997
3103
  }, [
2998
- P,
3104
+ A,
2999
3105
  X,
3000
3106
  s,
3001
3107
  i,
3002
- U
3003
- ]), be = qt((e) => {
3108
+ Y
3109
+ ]), be = en((e) => {
3004
3110
  me?.(e), e.defaultPrevented || m || X || (q(!0), Z(), document.addEventListener("pointermove", ve, { passive: !1 }), document.addEventListener("touchmove", ve, { passive: !1 }), document.addEventListener("pointerup", ye, { passive: !1 }));
3005
- }, [me]), we = Yn(t, () => ({
3111
+ }, [me]), we = no(t, () => ({
3006
3112
  setPosition: _e,
3007
3113
  isSplitPane: () => !0
3008
3114
  }), []), xe = k(() => E ? M?.({
3009
3115
  key: "resizer",
3010
- ref: H([W, ee]),
3011
- className: F("resizer", fe),
3116
+ ref: H([F, ee]),
3117
+ className: W("resizer", fe),
3012
3118
  onPointerDownCapture: be,
3013
3119
  style: {
3014
3120
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3034,13 +3140,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3034
3140
  const e = {
3035
3141
  ...ie,
3036
3142
  ...le,
3037
- 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)}%`,
3038
- [`min${Se}`]: Y?.minBefore,
3039
- [`max${Se}`]: o ? Y?.maxBefore : "100%"
3143
+ flex: 0 === T.fixedPaneOffset && null !== U?.pixels[0] ? `0 0 ${Math.round(U?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(U?.percents[0] ?? 100)}%`,
3144
+ [`min${Se}`]: U?.minBefore,
3145
+ [`max${Se}`]: o ? U?.maxBefore : "100%"
3040
3146
  };
3041
- return z("div", {
3147
+ return R("div", {
3042
3148
  ref: Q,
3043
- className: F("before", oe, se),
3149
+ className: W("before", oe, se),
3044
3150
  style: e,
3045
3151
  ...re,
3046
3152
  ...ae,
@@ -3051,19 +3157,19 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3051
3157
  w,
3052
3158
  x,
3053
3159
  T,
3054
- Y
3160
+ U
3055
3161
  ]), Me = k(() => {
3056
3162
  if (!o) return null;
3057
3163
  const e = {
3058
3164
  ...ie,
3059
3165
  ...he,
3060
- 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)}%`,
3061
- [`min${Se}`]: Y?.minAfter,
3062
- [`max${Se}`]: n ? Y?.maxAfter : "100%"
3166
+ flex: 1 === T.fixedPaneOffset && null !== U?.pixels[1] ? `0 0 ${Math.round(U?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(U?.percents[1] ?? 100)}%`,
3167
+ [`min${Se}`]: U?.minAfter,
3168
+ [`max${Se}`]: n ? U?.maxAfter : "100%"
3063
3169
  };
3064
- return z("div", {
3170
+ return R("div", {
3065
3171
  ref: te,
3066
- className: F("after", oe, ce),
3172
+ className: W("after", oe, ce),
3067
3173
  style: e,
3068
3174
  ...re,
3069
3175
  ...ue,
@@ -3072,13 +3178,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3072
3178
  }, [
3073
3179
  o,
3074
3180
  w,
3075
- C,
3181
+ S,
3076
3182
  T,
3077
- Y
3183
+ U
3078
3184
  ]);
3079
- return R("div", {
3080
- ref: H([I, we]),
3081
- className: F("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3185
+ return $("div", {
3186
+ ref: H([B, we]),
3187
+ className: W("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3082
3188
  style: de,
3083
3189
  children: [
3084
3190
  Ce,
@@ -3087,7 +3193,7 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3087
3193
  ]
3088
3194
  });
3089
3195
  }));
3090
- function Zo(e) {
3196
+ function sr(e) {
3091
3197
  if ("function" == typeof e) return e;
3092
3198
  if ("string" == typeof e) {
3093
3199
  const t = e.trim();
@@ -3120,12 +3226,12 @@ function Zo(e) {
3120
3226
  return null;
3121
3227
  }
3122
3228
  }(t);
3123
- if (e) return Qo(e);
3229
+ if (e) return cr(e);
3124
3230
  }
3125
3231
  if (t.startsWith("<")) {
3126
- if (/^<\s*svg\b/i.test(t)) return Qo(t);
3232
+ if (/^<\s*svg\b/i.test(t)) return cr(t);
3127
3233
  if (/^<\s*path\b/i.test(t)) {
3128
- const e = Go(t);
3234
+ const e = lr(t);
3129
3235
  if (e) return { paths: [{ d: e }] };
3130
3236
  }
3131
3237
  return { paths: [{ d: t }] };
@@ -3137,7 +3243,7 @@ function Zo(e) {
3137
3243
  for (const n of e) if ("string" == typeof n) {
3138
3244
  const e = String(n).trim();
3139
3245
  if (e.startsWith("<path")) {
3140
- const n = Go(e);
3246
+ const n = lr(e);
3141
3247
  n && t.push({ d: n });
3142
3248
  } else t.push({ d: e });
3143
3249
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3145,14 +3251,14 @@ function Zo(e) {
3145
3251
  }
3146
3252
  return e;
3147
3253
  }
3148
- function Go(e) {
3254
+ function lr(e) {
3149
3255
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3150
3256
  return t ? t[1] ?? t[2] ?? null : null;
3151
3257
  }
3152
- function Jo(e) {
3258
+ function ar(e) {
3153
3259
  if ("svg" in e) return {
3154
3260
  ...e,
3155
- svg: Zo(e.svg)
3261
+ svg: sr(e.svg)
3156
3262
  };
3157
3263
  if ("url" in e) {
3158
3264
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3170,7 +3276,7 @@ function Jo(e) {
3170
3276
  }
3171
3277
  return e;
3172
3278
  }
3173
- function Qo(e) {
3279
+ function cr(e) {
3174
3280
  try {
3175
3281
  if ("undefined" != typeof DOMParser) {
3176
3282
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3203,9 +3309,9 @@ function Qo(e) {
3203
3309
  paths: o
3204
3310
  };
3205
3311
  }
3206
- function er(e) {
3312
+ function hr(e) {
3207
3313
  const t = {};
3208
- for (const [n, o] of Object.entries(e.icons)) t[n] = Jo(o);
3314
+ for (const [n, o] of Object.entries(e.icons)) t[n] = ar(o);
3209
3315
  const n = {
3210
3316
  label: e.meta?.label ?? "Unnamed",
3211
3317
  version: e.meta?.version ?? "1.0.0",
@@ -3222,14 +3328,14 @@ function er(e) {
3222
3328
  const e = {};
3223
3329
  for (const [t, n] of Object.entries(r)) {
3224
3330
  const o = {};
3225
- for (const [e, t] of Object.entries(n)) o[e] = Jo(t);
3331
+ for (const [e, t] of Object.entries(n)) o[e] = ar(t);
3226
3332
  e[t] = o;
3227
3333
  }
3228
3334
  o.__overrides = e;
3229
3335
  }
3230
3336
  return o;
3231
3337
  }
3232
- function tr() {
3338
+ function ur() {
3233
3339
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3234
3340
  let n = "base", o = /* @__PURE__ */ new Map();
3235
3341
  async function r(t) {
@@ -3240,7 +3346,7 @@ function tr() {
3240
3346
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3241
3347
  o.loading = o.loader().then((e) => {
3242
3348
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3243
- o.pack = er(t);
3349
+ o.pack = hr(t);
3244
3350
  }).catch((e) => {
3245
3351
  throw o.loading = void 0, e;
3246
3352
  });
@@ -3295,7 +3401,7 @@ function tr() {
3295
3401
  return {
3296
3402
  register: function(t, o) {
3297
3403
  const r = e.get(t) ?? {};
3298
- "function" == typeof o ? r.loader = o : r.pack = er(o), e.set(t, r), n || (n = t);
3404
+ "function" == typeof o ? r.loader = o : r.pack = hr(o), e.set(t, r), n || (n = t);
3299
3405
  },
3300
3406
  prefetch: async function(e = n) {
3301
3407
  const t = Array.isArray(e) ? e : [e];
@@ -3358,25 +3464,25 @@ function tr() {
3358
3464
  }
3359
3465
  };
3360
3466
  }
3361
- qo.displayName = "SplitPane";
3362
- var nr = tr();
3363
- nr.register("base", () => import("./CdJ0O_khlsS4DqVj.mjs")), nr.register("cf", () => import("./TlOKuBGsozMYzzBC.mjs"));
3364
- var or = (e) => z("svg", {
3467
+ ir.displayName = "SplitPane";
3468
+ var dr = ur();
3469
+ dr.register("base", () => import("./B-FM_8r9Y-QUf82k.mjs")), dr.register("cf", () => import("./DSvJ69_AiNh6hzvs.mjs"));
3470
+ var fr = (e) => R("svg", {
3365
3471
  ...e,
3366
- children: z("path", {})
3367
- }), rr = {
3472
+ children: R("path", {})
3473
+ }), pr = {
3368
3474
  Icon: "_Icon_16f7r_10",
3369
3475
  "sxl-walk": "_sxl-walk_16f7r_1"
3370
- }, ir = b((t) => {
3371
- const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = D(null);
3372
- S(() => {
3476
+ }, mr = w((t) => {
3477
+ const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = P(null);
3478
+ C(() => {
3373
3479
  let t = !0, r = o, i = n;
3374
3480
  if (!i) {
3375
- const t = nr.getPack(r);
3481
+ const t = dr.getPack(r);
3376
3482
  p({
3377
3483
  glyph: t ? { svg: e.EmptyArray } : void 0,
3378
3484
  pack: t ?? void 0,
3379
- packKey: r ?? nr.getActive()
3485
+ packKey: r ?? dr.getActive()
3380
3486
  });
3381
3487
  return;
3382
3488
  }
@@ -3384,24 +3490,24 @@ var or = (e) => z("svg", {
3384
3490
  const [e, t] = i.split(":");
3385
3491
  r = e, i = t;
3386
3492
  }
3387
- return nr.resolve(i, { packKey: r }).then((e) => {
3493
+ return dr.resolve(i, { packKey: r }).then((e) => {
3388
3494
  t && p(e);
3389
- }), () => {
3495
+ }).catch(() => {}), () => {
3390
3496
  t = !1;
3391
3497
  };
3392
3498
  }, [n, o]);
3393
3499
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3394
3500
  let v = g ? g.svg : void 0;
3395
3501
  const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = k(() => [
3396
- rr.Icon,
3502
+ pr.Icon,
3397
3503
  "icon",
3398
3504
  r
3399
- ].filter(Boolean).join(" "), [r]), C = k(() => {
3505
+ ].filter(Boolean).join(" "), [r]), S = k(() => {
3400
3506
  const e = { ...i };
3401
3507
  return e["--icon-size"] = w, e;
3402
- }, [i, w]), M = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => z("span", {
3508
+ }, [i, w]), M = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => R("span", {
3403
3509
  className: x,
3404
- style: C,
3510
+ style: S,
3405
3511
  role: M,
3406
3512
  "aria-hidden": E,
3407
3513
  title: l,
@@ -3411,16 +3517,16 @@ var or = (e) => z("svg", {
3411
3517
  children: e
3412
3518
  });
3413
3519
  if (u) return T(u);
3414
- if (b) return T(z("span", { children: "string" == typeof b ? b : b.text }));
3415
- if (y) return T(z("img", {
3520
+ if (b) return T(R("span", { children: "string" == typeof b ? b : b.text }));
3521
+ if (y) return T(R("img", {
3416
3522
  src: y.src,
3417
3523
  alt: l ?? ""
3418
3524
  }));
3419
3525
  if (g && "react" in g) {
3420
3526
  const e = g.react;
3421
- return T(z(e, {
3527
+ return T(R(e, {
3422
3528
  className: x,
3423
- style: C,
3529
+ style: S,
3424
3530
  role: M,
3425
3531
  "aria-hidden": E,
3426
3532
  title: l,
@@ -3429,12 +3535,12 @@ var or = (e) => z("svg", {
3429
3535
  }));
3430
3536
  }
3431
3537
  const L = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3432
- if ("function" == typeof v) return T(v(L) ?? z(or, { ...L }));
3433
- if (!v) return T(z(or, { ...L }));
3434
- const A = v.paths;
3435
- return T(z("svg", {
3538
+ if ("function" == typeof v) return T(v(L) ?? R(fr, { ...L }));
3539
+ if (!v) return T(R(fr, { ...L }));
3540
+ const D = v.paths;
3541
+ return T(R("svg", {
3436
3542
  ...L,
3437
- children: A ? A.map((e, t) => z("path", {
3543
+ children: D ? D.map((e, t) => R("path", {
3438
3544
  d: e.d,
3439
3545
  className: e.className,
3440
3546
  fill: e.fill,
@@ -3445,7 +3551,7 @@ var or = (e) => z("svg", {
3445
3551
  }, t)) : null
3446
3552
  }));
3447
3553
  });
3448
- function sr(e) {
3554
+ function gr(e) {
3449
3555
  const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...h } = e, u = k(() => {
3450
3556
  if (!t) return;
3451
3557
  const e = {
@@ -3461,7 +3567,7 @@ function sr(e) {
3461
3567
  i,
3462
3568
  n
3463
3569
  ]);
3464
- return z(ir, {
3570
+ return R(mr, {
3465
3571
  iconKey: s,
3466
3572
  packKey: l,
3467
3573
  className: k(() => t ? c + " walking" : c, [t, c]),
@@ -3472,7 +3578,7 @@ function sr(e) {
3472
3578
  ...h
3473
3579
  });
3474
3580
  }
3475
- var lr = class {
3581
+ var _r = class {
3476
3582
  constructor() {
3477
3583
  this.store = /* @__PURE__ */ new Map();
3478
3584
  }
@@ -3485,34 +3591,34 @@ var lr = class {
3485
3591
  removeItem(e) {
3486
3592
  this.store.delete(e);
3487
3593
  }
3488
- }, ar = g(null), cr = {
3594
+ }, vr = g(null), yr = {
3489
3595
  parse: (e) => e ? JSON.parse(e) : null,
3490
3596
  stringify: JSON.stringify
3491
- }, hr = /* @__PURE__ */ new Map(), ur = {
3492
- store: new lr(),
3597
+ }, br = /* @__PURE__ */ new Map(), wr = {
3598
+ store: new _r(),
3493
3599
  namespace: "",
3494
- serializer: cr,
3600
+ serializer: yr,
3495
3601
  onReady: (e) => {
3496
3602
  e();
3497
3603
  },
3498
3604
  debounceMs: 0,
3499
3605
  notify: (e, t) => {
3500
- const n = hr.get(e);
3606
+ const n = br.get(e);
3501
3607
  n && n.forEach((e) => e(t));
3502
3608
  },
3503
3609
  subscribeKey: (e, t) => {
3504
- const n = hr.get(e) ?? /* @__PURE__ */ new Set();
3505
- return n.add(t), hr.set(e, n), () => {
3506
- const n = hr.get(e);
3507
- n && (n.delete(t), 0 === n.size && hr.delete(e));
3610
+ const n = br.get(e) ?? /* @__PURE__ */ new Set();
3611
+ return n.add(t), br.set(e, n), () => {
3612
+ const n = br.get(e);
3613
+ n && (n.delete(t), 0 === n.size && br.delete(e));
3508
3614
  };
3509
3615
  }
3510
3616
  };
3511
- function dr(e, t, n = fr) {
3512
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = x(ar) || ur, c = n.serializer ?? i ?? cr, h = L(null), u = k(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3617
+ function xr(e, t, n = Sr) {
3618
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = S(vr) || wr, c = n.serializer ?? i ?? yr, h = D(null), u = k(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3513
3619
  const e = t;
3514
3620
  return "function" == typeof e ? e() : e;
3515
- }, [p, m] = D(() => {
3621
+ }, [p, m] = P(() => {
3516
3622
  if (null == u) return f();
3517
3623
  let e, t = o.getItem(u);
3518
3624
  if (null == t) return f();
@@ -3522,14 +3628,17 @@ function dr(e, t, n = fr) {
3522
3628
  e = f();
3523
3629
  }
3524
3630
  return e;
3525
- }), g = L(p);
3526
- g.current = p, S(() => {
3631
+ }), g = D(p);
3632
+ g.current = p;
3633
+ const _ = D(!1);
3634
+ C(() => {
3527
3635
  null == u && m(f());
3528
- }, [u]), S(() => {
3636
+ }, [u]), C(() => {
3529
3637
  if (null == u) return;
3530
3638
  let e = !0;
3531
- return (async () => {
3639
+ return _.current = !1, (async () => {
3532
3640
  const [r, i] = await Promise.all([o.getItem(u), d ? o.getItem(d) : Promise.resolve(null)]);
3641
+ if (!e || _.current) return;
3533
3642
  let s;
3534
3643
  try {
3535
3644
  s = null == r ? void 0 : c.parse(r);
@@ -3547,7 +3656,7 @@ function dr(e, t, n = fr) {
3547
3656
  n.migrate,
3548
3657
  n.lazy,
3549
3658
  c
3550
- ]), S(() => {
3659
+ ]), C(() => {
3551
3660
  if (null != u && null != e) return l(e, (e) => {
3552
3661
  const t = void 0 !== e ? e : o.getItem(u);
3553
3662
  if (null != t) try {
@@ -3561,29 +3670,29 @@ function dr(e, t, n = fr) {
3561
3670
  e,
3562
3671
  c
3563
3672
  ]);
3564
- const _ = (e) => {
3673
+ const v = (e) => {
3565
3674
  null != u && (o.setItem(u, c.stringify(e)), null != n.version && d && o.setItem(d, String(n.version)));
3566
3675
  };
3567
- return S(() => () => {
3676
+ return C(() => () => {
3568
3677
  h.current && clearTimeout(h.current);
3569
3678
  }, []), [
3570
3679
  p,
3571
3680
  (t) => {
3572
3681
  const n = "function" == typeof t ? t(g.current) : t;
3573
- g.current = n, m(n), h.current && clearTimeout(h.current), s > 0 ? h.current = setTimeout(() => {
3574
- _(n);
3575
- }, s) : _(n), null != e && a(e, c.stringify(n));
3682
+ _.current = !0, g.current = n, m(n), h.current && clearTimeout(h.current), s > 0 ? h.current = setTimeout(() => {
3683
+ v(n);
3684
+ }, s) : v(n), null != e && a(e, c.stringify(n));
3576
3685
  },
3577
3686
  () => {
3578
- h.current && clearTimeout(h.current), null != u && (o.removeItem(u), null != d && o.removeItem(d));
3687
+ _.current = !0, h.current && clearTimeout(h.current), null != u && (o.removeItem(u), null != d && o.removeItem(d));
3579
3688
  const e = void 0 !== t ? f() : void 0;
3580
3689
  m(e);
3581
3690
  }
3582
3691
  ];
3583
3692
  }
3584
- var fr = {};
3585
- function pr(e) {
3586
- const { store: t, namespace: n = "", serializer: o = mr, debounceMs: r = 150, children: i } = e, s = k(() => "undefined" == typeof window ? new lr() : t ?? new lr(), [t]), l = L(/* @__PURE__ */ new Map()), a = k(() => ({
3693
+ var Sr = {};
3694
+ function Cr(e) {
3695
+ const { store: t, namespace: n = "", serializer: o = Mr, debounceMs: r = 150, children: i } = e, s = k(() => "undefined" == typeof window ? new _r() : t ?? new _r(), [t]), l = D(/* @__PURE__ */ new Map()), a = k(() => ({
3587
3696
  store: s,
3588
3697
  namespace: n,
3589
3698
  serializer: o,
@@ -3608,21 +3717,21 @@ function pr(e) {
3608
3717
  o,
3609
3718
  r
3610
3719
  ]);
3611
- return S(() => {
3720
+ return C(() => {
3612
3721
  if (a.store.subscribe) return a.store.subscribe((e) => {
3613
3722
  if (!e.startsWith(a.namespace + ":")) return;
3614
3723
  const t = e.slice(a.namespace.length + 1);
3615
3724
  a.notify(t);
3616
3725
  });
3617
- }, [a]), z(ar.Provider, {
3726
+ }, [a]), R(vr.Provider, {
3618
3727
  value: a,
3619
3728
  children: i
3620
3729
  });
3621
3730
  }
3622
- var mr = {
3731
+ var Mr = {
3623
3732
  parse: (e) => null == e ? null : JSON.parse(e),
3624
3733
  stringify: JSON.stringify
3625
- }, gr = class {
3734
+ }, Er = class {
3626
3735
  constructor(e = window.localStorage) {
3627
3736
  this.storage = e;
3628
3737
  }
@@ -3649,41 +3758,41 @@ var mr = {
3649
3758
  };
3650
3759
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
3651
3760
  }
3652
- }, _r = {
3761
+ }, Tr = {
3653
3762
  Horizontal: "horizontal",
3654
3763
  Vertical: "vertical"
3655
- }, vr = "_scrollbar_14aps_24", yr = "_track_14aps_35", br = "_thumb_14aps_47", wr = "_scrollbar-button_14aps_96", xr = "_touch-thumb_14aps_131", Sr = "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", Cr = "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", Mr = { transform: "rotate(180deg)" }, Er = (e) => {
3656
- const { style: t, orientation: n = _r.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === _r.Vertical ? Sr : Cr;
3657
- return z("button", {
3764
+ }, kr = "_scrollbar_14aps_24", Lr = "_track_14aps_35", Dr = "_thumb_14aps_47", Pr = "_scrollbar-button_14aps_96", Ar = "_touch-thumb_14aps_131", zr = "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", Rr = "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", $r = { transform: "rotate(180deg)" }, Br = (e) => {
3765
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3766
+ return R("button", {
3658
3767
  style: t,
3659
- className: F(wr, n, "scroll-button"),
3768
+ className: W(Pr, n, "scroll-button"),
3660
3769
  disabled: r,
3661
3770
  ...i,
3662
- children: z("svg", {
3771
+ children: R("svg", {
3663
3772
  width: "9",
3664
3773
  height: "9",
3665
3774
  viewBox: "0 0 9 9",
3666
- children: z("path", { d: s })
3775
+ children: R("path", { d: s })
3667
3776
  })
3668
3777
  });
3669
- }, kr = (e) => {
3670
- const { style: t, orientation: n = _r.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === _r.Vertical ? Sr : Cr;
3671
- return z("button", {
3778
+ }, Ir = (e) => {
3779
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3780
+ return R("button", {
3672
3781
  style: t,
3673
- className: F(wr, n, "scroll-button"),
3782
+ className: W(Pr, n, "scroll-button"),
3674
3783
  disabled: r,
3675
3784
  ...i,
3676
- children: z("svg", {
3785
+ children: R("svg", {
3677
3786
  width: "9",
3678
3787
  height: "9",
3679
3788
  viewBox: "0 0 9 9",
3680
- style: Mr,
3681
- children: z("path", { d: s })
3789
+ style: $r,
3790
+ children: R("path", { d: s })
3682
3791
  })
3683
3792
  });
3684
- }, Tr = (e) => {
3685
- const { style: t, orientation: n = _r.Vertical, isBefore: o, ...r } = e, i = n === _r.Vertical;
3686
- return z("div", {
3793
+ }, Hr = (e) => {
3794
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, ...r } = e, i = n === Tr.Vertical;
3795
+ return R("div", {
3687
3796
  style: {
3688
3797
  display: "flex",
3689
3798
  justifyContent: "center",
@@ -3696,7 +3805,7 @@ var mr = {
3696
3805
  },
3697
3806
  className: `scrollbar-button ${i ? "vertical" : "horizontal"} edge`,
3698
3807
  ...r,
3699
- children: z(ir, {
3808
+ children: R(mr, {
3700
3809
  style: {
3701
3810
  transition: "opacity 240ms ease 0s",
3702
3811
  opacity: e.disabled ? 0 : 1,
@@ -3706,7 +3815,7 @@ var mr = {
3706
3815
  iconKey: "MoreHorizontal"
3707
3816
  })
3708
3817
  });
3709
- }, Lr = 60, Dr = 260, Ar = 120, Pr = (e) => {
3818
+ }, Nr = 60, Or = 260, Fr = 120, Wr = (e) => {
3710
3819
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
3711
3820
  let c = null, h = null, u = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
3712
3821
  const v = () => {
@@ -3756,10 +3865,10 @@ var mr = {
3756
3865
  },
3757
3866
  dispose: () => v()
3758
3867
  };
3759
- }, zr = (e) => {
3760
- const [t, n] = D(null), o = L(e);
3868
+ }, Kr = (e) => {
3869
+ const [t, n] = P(null), o = D(e);
3761
3870
  o.current = e;
3762
- const r = k(() => Pr({
3871
+ const r = k(() => Wr({
3763
3872
  vertical: o.current.vertical,
3764
3873
  getTrackRect: () => o.current.getTrackRect(),
3765
3874
  getThumb: () => o.current.getThumb(),
@@ -3769,26 +3878,26 @@ var mr = {
3769
3878
  pageInitialDelayMs: o.current.pageInitialDelayMs,
3770
3879
  pageRepeatDelayMs: o.current.pageRepeatDelayMs
3771
3880
  }), [e.vertical]);
3772
- return S(() => () => r.dispose(), [r]), {
3881
+ return C(() => () => r.dispose(), [r]), {
3773
3882
  onPointerDown: r.onPointerDown,
3774
3883
  onPointerMove: r.onPointerMove,
3775
3884
  onPointerUp: r.onPointerUp,
3776
3885
  dragMode: t
3777
3886
  };
3778
- }, Rr = 22, $r = 1.8, Br = 8, Hr = 4, Ir = 8, Nr = -2, Or = (e = 22) => e / 2 + 8, Fr = (e = 22) => e + 16, Wr = g(null), Kr = (e) => {
3887
+ }, Vr = 22, jr = 1.8, Yr = 8, Ur = 4, Xr = 8, qr = -2, Zr = (e = 22) => e / 2 + 8, Gr = (e = 22) => e + 16, Jr = g(null), Qr = (e) => {
3779
3888
  const { value: t, children: n } = e;
3780
- return z(Wr.Provider, {
3889
+ return R(Jr.Provider, {
3781
3890
  value: t,
3782
3891
  children: n
3783
3892
  });
3784
- }, Vr = () => x(Wr), jr = Ne().supportsTouchEvents, Ur = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Yr = b(v((e, t) => {
3785
- const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = _r.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3786
- if (!jr) return null;
3787
- const _ = c === _r.Vertical, v = Vr(), y = qt(u ?? (() => {}), [u]), b = qt(d ?? (() => {}), [d]), w = qt(f ?? (() => {}), [f]), x = L(null), C = k(() => H([x, t]), [t]), M = qt((e) => ({
3893
+ }, ei = () => S(Jr), ti = Fe().supportsTouchEvents, ni = (e) => e < 0 ? 0 : e > 1 ? 1 : e, oi = w(v((e, t) => {
3894
+ const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Tr.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3895
+ if (!ti) return null;
3896
+ const _ = c === Tr.Vertical, v = ei(), y = en(u ?? (() => {}), [u]), b = en(d ?? (() => {}), [d]), w = en(f ?? (() => {}), [f]), x = D(null), S = k(() => H([x, t]), [t]), M = en((e) => ({
3788
3897
  dragging: e,
3789
3898
  element: x.current,
3790
3899
  source: "touch"
3791
- }), []), [E, T] = D(!1), A = L({
3900
+ }), []), [E, T] = P(!1), L = D({
3792
3901
  isVertical: _,
3793
3902
  travel: 0,
3794
3903
  startAlong: 0,
@@ -3802,12 +3911,12 @@ var mr = {
3802
3911
  count: 0,
3803
3912
  timer: null
3804
3913
  });
3805
- A.current.isVertical = _, A.current.fraction = Ur(h), A.current.hasEdgeHold = !!d;
3806
- const P = qt(() => {
3807
- const e = A.current;
3914
+ L.current.isVertical = _, L.current.fraction = ni(h), L.current.hasEdgeHold = !!d;
3915
+ const A = en(() => {
3916
+ const e = L.current;
3808
3917
  e.timer && clearTimeout(e.timer), e.timer = null;
3809
- }, []), R = qt(() => {
3810
- const e = A.current;
3918
+ }, []), z = en(() => {
3919
+ const e = L.current;
3811
3920
  if (e.timer = null, !e.edge || !e.dragging) return;
3812
3921
  e.count++;
3813
3922
  const t = Math.max(0, e.edge > 0 ? e.rawFraction - 1 : -e.rawFraction) * e.travel;
@@ -3815,44 +3924,44 @@ var mr = {
3815
3924
  count: e.count,
3816
3925
  heldMs: Date.now() - e.engagedAt,
3817
3926
  overshootPx: t
3818
- }) && (e.timer = setTimeout(R, 60));
3819
- }, []), $ = qt(() => {
3820
- const e = A.current;
3927
+ }) && (e.timer = setTimeout(z, 60));
3928
+ }, []), $ = en(() => {
3929
+ const e = L.current;
3821
3930
  if (!e.hasEdgeHold) return;
3822
3931
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
3823
- t !== e.edge && (e.edge = t, P(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(R, 60)));
3824
- }, []), B = un(k(() => ({
3932
+ t !== e.edge && (e.edge = t, A(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(z, 60)));
3933
+ }, []), B = bn(k(() => ({
3825
3934
  processTouch: !0,
3826
3935
  consumeTouch: !0,
3827
3936
  onPointerDown: (e, t) => {
3828
- const n = A.current;
3937
+ const n = L.current;
3829
3938
  n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, T(!0), w?.(M(!0)), e.preventDefault(), e.stopPropagation();
3830
3939
  },
3831
3940
  onPointerMoveOrWait: (e) => {
3832
- const t = A.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3833
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Ur(t.rawFraction)), $();
3941
+ const t = L.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3942
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ni(t.rawFraction)), $();
3834
3943
  },
3835
3944
  onPointerUp: (e) => {
3836
- const t = A.current;
3837
- t.edge = 0, t.dragging = !1, P(), T(!1), w?.(M(!1)), e.preventDefault(), e.stopPropagation();
3945
+ const t = L.current;
3946
+ t.edge = 0, t.dragging = !1, A(), T(!1), w?.(M(!1)), e.preventDefault(), e.stopPropagation();
3838
3947
  }
3839
3948
  }), []));
3840
- if (S(() => () => {
3841
- const e = A.current;
3949
+ if (C(() => () => {
3950
+ const e = L.current;
3842
3951
  e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(M(!1)));
3843
3952
  }, []), !v?.portalTarget) return null;
3844
- const I = 1.8 * s, O = _ ? s : I, W = _ ? I : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), U = _ ? v.reserveVertical : v.reserveHorizontal, Y = U > 0 ? -2 : 4, X = Math.max(0, K - U - I - 4 - Y);
3845
- A.current.travel = X;
3846
- const q = j + 4 + I / 2 + Ur(h) * X;
3953
+ const I = 1.8 * s, N = _ ? s : I, F = _ ? I : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, U = Y > 0 ? -2 : 4, X = Math.max(0, K - Y - I - 4 - U);
3954
+ L.current.travel = X;
3955
+ const q = j + 4 + I / 2 + ni(h) * X;
3847
3956
  let Z, G;
3848
- return _ ? (Z = v.width - v.crossInset - O / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, Z = q - O / 2), N(z("div", {
3849
- className: F("touch-thumb", xr, a, { dragging: E }),
3850
- ref: C,
3957
+ return _ ? (Z = v.width - v.crossInset - N / 2, G = q - F / 2) : (G = v.height - v.crossInset - F / 2, Z = q - N / 2), O(R("div", {
3958
+ className: W("touch-thumb", Ar, a, { dragging: E }),
3959
+ ref: S,
3851
3960
  style: {
3852
3961
  left: Z,
3853
3962
  top: G,
3854
- width: O,
3855
- height: W,
3963
+ width: N,
3964
+ height: F,
3856
3965
  zIndex: 20,
3857
3966
  borderWidth: `${i}px`,
3858
3967
  boxShadow: E ? `${o} 0px 0px 0px 1.5px` : void 0,
@@ -3871,22 +3980,22 @@ var mr = {
3871
3980
  ...g
3872
3981
  }), v.portalTarget, m);
3873
3982
  }));
3874
- Yr.displayName = "TouchThumbHandle";
3875
- var Xr = 24, qr = b(v((e, t) => {
3876
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = _r.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = Xr, maxThumbSize: m, renderScrollButtonStart: g = Er, renderScrollButtonEnd: _ = kr, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: C, ...M } = e, E = "touch" === Ne().primaryInput, T = h ?? !E;
3877
- qt(c ?? (() => {}), [c]);
3878
- const [A, $] = D({
3983
+ oi.displayName = "TouchThumbHandle";
3984
+ var ri = 24, ii = w(v((e, t) => {
3985
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Tr.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ri, maxThumbSize: m, renderScrollButtonStart: g = Br, renderScrollButtonEnd: _ = Ir, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...M } = e, E = "touch" === Fe().primaryInput, T = h ?? !E;
3986
+ en(c ?? (() => {}), [c]);
3987
+ const [L, A] = P({
3879
3988
  offset: 0,
3880
3989
  length: 0,
3881
3990
  disabled: !1
3882
- }), I = L(-1), N = l === _r.Vertical, [O, { width: W, height: K }] = B(), V = N ? K : W, j = L(null), U = k(() => H([O, j]), [O]), Y = qt((e, t, n) => {
3991
+ }), B = D(-1), N = l === Tr.Vertical, [O, { width: F, height: K }] = I(), V = N ? K : F, j = D(null), Y = k(() => H([O, j]), [O]), U = en((e, t, n) => {
3883
3992
  if (0 === t || 0 === n) {
3884
3993
  const e = {
3885
3994
  offset: 0,
3886
3995
  length: p,
3887
3996
  disabled: !0
3888
3997
  };
3889
- return $(e), e;
3998
+ return A(e), e;
3890
3999
  }
3891
4000
  if (t >= n) return {
3892
4001
  offset: 0,
@@ -3903,54 +4012,54 @@ var Xr = 24, qr = b(v((e, t) => {
3903
4012
  V,
3904
4013
  p,
3905
4014
  m
3906
- ]), X = qt((e) => {
4015
+ ]), X = en((e) => {
3907
4016
  const t = o / V, n = Math.round(e * t);
3908
- $(Y(n, r, o)), a?.(n, r, o), I.current = e;
4017
+ A(U(n, r, o)), a?.(n, r, o), B.current = e;
3909
4018
  }, [
3910
4019
  a,
3911
4020
  r,
3912
4021
  o,
3913
4022
  V,
3914
- A
3915
- ]), q = qt((e) => {
3916
- $(Y(e, r, o)), a?.(e, r, o), I.current = e;
4023
+ L
4024
+ ]), q = en((e) => {
4025
+ A(U(e, r, o)), a?.(e, r, o), B.current = e;
3917
4026
  }, [
3918
4027
  a,
3919
4028
  r,
3920
4029
  o
3921
4030
  ]);
3922
- S(() => {
3923
- I.current !== n && 0 !== V && (I.current = -1, $(Y(n, r, o)));
3924
- }, [n]), S(() => {
3925
- 0 !== V && $(Y(n, r, o));
4031
+ C(() => {
4032
+ B.current !== n && 0 !== V && (B.current = -1, A(U(n, r, o)));
4033
+ }, [n]), C(() => {
4034
+ 0 !== V && A(U(n, r, o));
3926
4035
  }, [
3927
4036
  r,
3928
4037
  o,
3929
4038
  N,
3930
4039
  V
3931
4040
  ]);
3932
- const Z = Math.max(0, o - r), G = Yn(t, () => ({ isScrollbar: () => !0 }), []), J = qt((e) => {
4041
+ const Z = Math.max(0, o - r), G = no(t, () => ({ isScrollbar: () => !0 }), []), J = en((e) => {
3933
4042
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(Z, n + t) : Math.max(0, n - t);
3934
4043
  q(o);
3935
4044
  }, [
3936
4045
  r,
3937
4046
  n,
3938
4047
  Z
3939
- ]), Q = zr({
4048
+ ]), Q = Kr({
3940
4049
  vertical: N,
3941
4050
  getTrackRect: () => j.current?.getBoundingClientRect() ?? null,
3942
- getThumb: () => A.disabled ? null : {
3943
- offset: A.offset,
3944
- length: A.length
4051
+ getThumb: () => L.disabled ? null : {
4052
+ offset: L.offset,
4053
+ length: L.length
3945
4054
  },
3946
- onStart: qt((e) => A.disabled ? null : "thumb" === e ? (x?.({
4055
+ onStart: en((e) => L.disabled ? null : "thumb" === e ? (w?.({
3947
4056
  dragging: !0,
3948
4057
  element: ne.current,
3949
4058
  source: "thumb"
3950
4059
  }), {
3951
4060
  apply: (e) => X(e),
3952
4061
  edgeHold: b,
3953
- end: () => x?.({
4062
+ end: () => w?.({
3954
4063
  dragging: !1,
3955
4064
  element: ne.current,
3956
4065
  source: "thumb"
@@ -3960,11 +4069,11 @@ var Xr = 24, qr = b(v((e, t) => {
3960
4069
  page: J,
3961
4070
  dragMode: "page"
3962
4071
  }, [
3963
- A,
4072
+ L,
3964
4073
  b,
3965
- x
4074
+ w
3966
4075
  ])
3967
- }), ee = "thumb" === Q.dragMode, te = qt((e) => {
4076
+ }), ee = "thumb" === Q.dragMode, te = en((e) => {
3968
4077
  const t = Math.max(1, Math.floor(.9 * r));
3969
4078
  N ? ("ArrowDown" === e.key && X(Math.min(Z, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z)) : ("ArrowRight" === e.key && X(Math.min(Z, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z));
3970
4079
  }, [
@@ -3973,12 +4082,12 @@ var Xr = 24, qr = b(v((e, t) => {
3973
4082
  o,
3974
4083
  n,
3975
4084
  Z
3976
- ]), ne = L(null), oe = k(() => {
3977
- const e = A.disabled;
4085
+ ]), ne = D(null), oe = k(() => {
4086
+ const e = L.disabled;
3978
4087
  if (e) return null;
3979
- const t = z("div", {
4088
+ const t = R("div", {
3980
4089
  ...y,
3981
- className: F(br, { disabled: e }),
4090
+ className: W(Dr, { disabled: e }),
3982
4091
  ref: ne,
3983
4092
  role: "slider",
3984
4093
  "aria-label": N ? "Rows" : "Columns",
@@ -3990,37 +4099,37 @@ var Xr = 24, qr = b(v((e, t) => {
3990
4099
  style: {
3991
4100
  ...y?.style,
3992
4101
  position: "relative",
3993
- [N ? "height" : "width"]: `${A.length}px`,
4102
+ [N ? "height" : "width"]: `${L.length}px`,
3994
4103
  [N ? "width" : "height"]: "100%",
3995
- transform: N ? `translateY(${A.offset}px)` : `translateX(${A.offset}px)`,
4104
+ transform: N ? `translateY(${L.offset}px)` : `translateX(${L.offset}px)`,
3996
4105
  [N ? "minHeight" : "minWidth"]: `${p}px`
3997
4106
  },
3998
- onMouseDown: C
4107
+ onMouseDown: S
3999
4108
  });
4000
4109
  if (!E || e) return t;
4001
- const o = Math.max(0, V - A.length);
4002
- return R(P, { children: [t, z(Yr, {
4110
+ const o = Math.max(0, V - L.length);
4111
+ return $(z, { children: [t, R(oi, {
4003
4112
  ...v,
4004
- orientation: N ? _r.Vertical : _r.Horizontal,
4005
- fraction: o > 0 ? A.offset / o : 0,
4113
+ orientation: N ? Tr.Vertical : Tr.Horizontal,
4114
+ fraction: o > 0 ? L.offset / o : 0,
4006
4115
  onScrollToFraction: (e) => X(e * o),
4007
4116
  onEdgeHold: b,
4008
- onDraggingChange: x
4117
+ onDraggingChange: w
4009
4118
  })] });
4010
4119
  }, [
4011
- A,
4120
+ L,
4012
4121
  p,
4013
4122
  Z,
4014
4123
  n,
4015
4124
  N,
4016
4125
  E,
4017
- C,
4126
+ S,
4018
4127
  v,
4019
4128
  y,
4020
4129
  V,
4021
4130
  b,
4022
- x
4023
- ]), [re, ie] = D(null), se = qt(() => {
4131
+ w
4132
+ ]), [re, ie] = P(null), se = en(() => {
4024
4133
  let e;
4025
4134
  e = "function" == typeof u ? u(n, r, o) : n - u;
4026
4135
  const t = Math.max(0, e);
@@ -4030,7 +4139,7 @@ var Xr = 24, qr = b(v((e, t) => {
4030
4139
  n,
4031
4140
  r,
4032
4141
  o
4033
- ]), le = qt(() => {
4142
+ ]), le = en(() => {
4034
4143
  let e;
4035
4144
  e = "function" == typeof u ? u(n, r, o) : n + u;
4036
4145
  const t = Math.min(Z, e);
@@ -4041,9 +4150,9 @@ var Xr = 24, qr = b(v((e, t) => {
4041
4150
  Z,
4042
4151
  r,
4043
4152
  o
4044
- ]), ae = L(null), ce = L(null), he = w(() => {
4153
+ ]), ae = D(null), ce = D(null), he = x(() => {
4045
4154
  ae.current && (clearTimeout(ae.current), ae.current = null, ce.current = null);
4046
- }, []), ue = w((e, t, n, o = d) => {
4155
+ }, []), ue = x((e, t, n, o = d) => {
4047
4156
  ce.current = e, ae.current = setTimeout(() => {
4048
4157
  const e = n ? se() : le();
4049
4158
  e !== ce.current ? ue(e, !1, n, f) : he();
@@ -4053,7 +4162,7 @@ var Xr = 24, qr = b(v((e, t) => {
4053
4162
  le,
4054
4163
  he
4055
4164
  ]);
4056
- S(() => () => he(), [he]);
4165
+ C(() => () => he(), [he]);
4057
4166
  const de = k(() => T ? g?.({
4058
4167
  orientation: l,
4059
4168
  disabled: n <= 0,
@@ -4078,9 +4187,9 @@ var Xr = 24, qr = b(v((e, t) => {
4078
4187
  Z,
4079
4188
  re
4080
4189
  ]), pe = N ? "vertical" : "horizontal";
4081
- return R("div", {
4190
+ return $("div", {
4082
4191
  ref: H([G, t]),
4083
- className: F(s, vr, pe, {
4192
+ className: W(s, kr, pe, {
4084
4193
  dragging: ee,
4085
4194
  "has-touch-thumb": E
4086
4195
  }),
@@ -4088,16 +4197,16 @@ var Xr = 24, qr = b(v((e, t) => {
4088
4197
  ...M,
4089
4198
  children: [
4090
4199
  de,
4091
- z("div", {
4092
- ref: U,
4200
+ R("div", {
4201
+ ref: Y,
4093
4202
  role: "scrollbar",
4094
4203
  "aria-orientation": pe,
4095
4204
  "aria-valuemin": 0,
4096
4205
  "aria-valuemax": Z,
4097
4206
  "aria-valuenow": n,
4098
4207
  tabIndex: 0,
4099
- className: F(yr, "track", pe),
4100
- onMouseDown: C,
4208
+ className: W(Lr, "track", pe),
4209
+ onMouseDown: S,
4101
4210
  onPointerDown: Q.onPointerDown,
4102
4211
  onPointerMove: Q.onPointerMove,
4103
4212
  onPointerUp: Q.onPointerUp,
@@ -4107,24 +4216,24 @@ var Xr = 24, qr = b(v((e, t) => {
4107
4216
  fe
4108
4217
  ]
4109
4218
  });
4110
- })), Zr = Date.now, Gr = 1e3, Jr = {}, Qr = 1, ei = (e) => {
4111
- let t = null !== Jr[e];
4112
- return t && (Jr[e] = null), t;
4113
- }, ti = (e, t, n, o = 0, r) => {
4114
- let i = Zr(), s = i, l = 0, a = 0, c = 0, h = Qr++;
4219
+ })), si = Date.now, li = 1e3, ai = {}, ci = 1, hi = (e) => {
4220
+ let t = null !== ai[e];
4221
+ return t && (ai[e] = null), t;
4222
+ }, ui = (e, t, n, o = 0, r) => {
4223
+ let i = si(), s = i, l = 0, a = 0, c = 0, h = ci++;
4115
4224
  if (h % 20 == 0) {
4116
4225
  const e = {};
4117
- for (let t in Jr) e[t] = !0;
4118
- Jr = e;
4226
+ for (let t in ai) e[t] = !0;
4227
+ ai = e;
4119
4228
  }
4120
4229
  const u = function(d) {
4121
- let f = !0 !== d, p = Zr(), m = !0;
4230
+ let f = !0 !== d, p = si(), m = !0;
4122
4231
  try {
4123
4232
  m = (!t || t(h)) ?? !0;
4124
4233
  } catch (e) {
4125
4234
  m = !1;
4126
4235
  }
4127
- if (!Jr[h] || !m) return Jr[h] = null, void n?.(60 - a / ((p - i) / Gr), h, !1);
4236
+ if (!ai[h] || !m) return ai[h] = null, void n?.(60 - a / ((p - i) / li), h, !1);
4128
4237
  if (f) {
4129
4238
  c = Math.round((p - s) / 16.666666666666668) - 1;
4130
4239
  for (let e = 0; e < Math.min(c, 4); e++) u(!0), a++;
@@ -4136,14 +4245,14 @@ var Xr = 24, qr = b(v((e, t) => {
4136
4245
  } catch (e) {
4137
4246
  _ = !1;
4138
4247
  }
4139
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (Jr[h] = null, n?.(60 - a / ((p - i) / Gr), h, 1 === l || null == o));
4248
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (ai[h] = null, n?.(60 - a / ((p - i) / li), h, 1 === l || null == o));
4140
4249
  };
4141
- return Jr[h] = !0, requestAnimationFrame(u), h;
4142
- }, ni = function(e) {
4250
+ return ai[h] = !0, requestAnimationFrame(u), h;
4251
+ }, di = function(e) {
4143
4252
  return Math.pow(e - 1, 3) + 1;
4144
- }, oi = function(e) {
4253
+ }, fi = function(e) {
4145
4254
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4146
- }, ri = class {
4255
+ }, pi = class {
4147
4256
  constructor(e, t) {
4148
4257
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
4149
4258
  scrollingX: !0,
@@ -4197,7 +4306,7 @@ var Xr = 24, qr = b(v((e, t) => {
4197
4306
  }
4198
4307
  zoomTo(e, t = !1, n, o, r) {
4199
4308
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4200
- r && (this.__zoomComplete = r), this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0);
4309
+ r && (this.__zoomComplete = r), this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0);
4201
4310
  const i = this.__zoomLevel;
4202
4311
  void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
4203
4312
  const s = e / i;
@@ -4208,7 +4317,7 @@ var Xr = 24, qr = b(v((e, t) => {
4208
4317
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4209
4318
  }
4210
4319
  scrollTo(e, t, n = !1, o = 1) {
4211
- if (this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4320
+ if (this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4212
4321
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4213
4322
  e *= o, t *= o, this.__computeScrollMax(o);
4214
4323
  } else o = this.__zoomLevel;
@@ -4226,7 +4335,7 @@ var Xr = 24, qr = b(v((e, t) => {
4226
4335
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4227
4336
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4228
4337
  let n, o;
4229
- this.__interruptedAnimation = !0, this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (ei(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4338
+ this.__interruptedAnimation = !0, this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (hi(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4230
4339
  let r = 1 === e.length;
4231
4340
  r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4232
4341
  }
@@ -4281,14 +4390,14 @@ var Xr = 24, qr = b(v((e, t) => {
4281
4390
  }
4282
4391
  __publish(e, t, n, o = !1) {
4283
4392
  const r = this.__isAnimating;
4284
- if (r && (ei(r), this.__isAnimating = 0), o && this.options.animating) {
4393
+ if (r && (hi(r), this.__isAnimating = 0), o && this.options.animating) {
4285
4394
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4286
4395
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, h = (e, t, n = !1) => {
4287
4396
  n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
4288
4397
  }, u = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4289
4398
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4290
4399
  };
4291
- this.__isAnimating = ti(h, u, d, this.options.animationDuration, r ? ni : oi);
4400
+ this.__isAnimating = ui(h, u, d, this.options.animationDuration, r ? di : fi);
4292
4401
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4293
4402
  }
4294
4403
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4300,7 +4409,7 @@ var Xr = 24, qr = b(v((e, t) => {
4300
4409
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
4301
4410
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4302
4411
  const t = this.options.snapping ? 4 : .1;
4303
- this.__isDecelerating = ti((e, t, n = !1) => {
4412
+ this.__isDecelerating = ui((e, t, n = !1) => {
4304
4413
  this.__stepThroughDeceleration(n);
4305
4414
  }, () => {
4306
4415
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4326,10 +4435,10 @@ var Xr = 24, qr = b(v((e, t) => {
4326
4435
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
4327
4436
  }
4328
4437
  }
4329
- }, ii = Z({
4330
- defaultRenderScrollbar: () => li,
4331
- getScrollTo: () => si
4332
- }), si = (e, t, n, o, r = 0) => {
4438
+ }, mi = G({
4439
+ defaultRenderScrollbar: () => _i,
4440
+ getScrollTo: () => gi
4441
+ }), gi = (e, t, n, o, r = 0) => {
4333
4442
  for (let r = 0; r < n.length; r++) {
4334
4443
  const i = n[r].getBoundingClientRect();
4335
4444
  let s = i.left - t, l = s + i.width;
@@ -4338,14 +4447,14 @@ var Xr = 24, qr = b(v((e, t) => {
4338
4447
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4339
4448
  }
4340
4449
  return r;
4341
- }, li = (e) => z(qr, { ...e }), ai = "_scrollpane_zdrii_2", ci = "_scrollpane-content_zdrii_20", hi = "_scrollpane-content-cell_zdrii_33", ui = "_vertical-container_zdrii_42", di = "_horizontal-container_zdrii_50", fi = "_corner-container_zdrii_59", pi = "_touch-thumb-overlay_zdrii_68", mi = b(v((e, t) => {
4342
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = gi, renderScrollbarHorizontal: c = li, renderScrollbarVertical: h = li, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = en(o, (e) => e.getMetrics()), v = w((e, t) => {
4450
+ }, _i = (e) => R(ii, { ...e }), vi = "_scrollpane_zdrii_2", yi = "_scrollpane-content_zdrii_20", bi = "_scrollpane-content-cell_zdrii_33", wi = "_vertical-container_zdrii_42", xi = "_horizontal-container_zdrii_50", Si = "_corner-container_zdrii_59", Ci = "_touch-thumb-overlay_zdrii_68", Mi = w(v((e, t) => {
4451
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = Ei, renderScrollbarHorizontal: c = _i, renderScrollbarVertical: h = _i, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = sn(o, (e) => e.getMetrics()), v = x((e, t) => {
4343
4452
  if (!o) return;
4344
4453
  const n = o.getTarget();
4345
4454
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4346
- }, [o]), y = Yn(t, () => ({ isScrollPane: () => !0 }), []);
4347
- S(() => {}, []), ((e, t) => {
4348
- const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = qt(o, [o]), s = qt(r ?? (() => {}), [r]), l = L(null), a = qt((e) => {
4455
+ }, [o]), y = no(t, () => ({ isScrollPane: () => !0 }), []);
4456
+ C(() => {}, []), ((e, t) => {
4457
+ const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = en(o, [o]), s = en(r ?? (() => {}), [r]), l = D(null), a = en((e) => {
4349
4458
  const t = e.shiftKey;
4350
4459
  e.preventDefault();
4351
4460
  const { deltaX: n, deltaY: o, deltaMode: r } = e;
@@ -4357,7 +4466,7 @@ var Xr = 24, qr = b(v((e, t) => {
4357
4466
  l.current = null, i(h ? { left: a } : { top: c });
4358
4467
  });
4359
4468
  }, []);
4360
- S(() => {
4469
+ C(() => {
4361
4470
  if (!n) return;
4362
4471
  const t = e.current;
4363
4472
  return t ? (t.addEventListener("wheel", a, { passive: !1 }), () => {
@@ -4380,42 +4489,42 @@ var Xr = 24, qr = b(v((e, t) => {
4380
4489
  },
4381
4490
  onWheelScroll: i
4382
4491
  });
4383
- const b = L(null), x = L(!1);
4384
- S(() => {
4492
+ const b = D(null), w = D(!1);
4493
+ C(() => {
4385
4494
  if (b.current && _ && (b.current.__scrollTop !== _?.top || b.current.__scrollLeft !== _?.left)) if (b.current.__isDecelerating || b.current.__isTracking) b.current.__isTracking, b.current.__isDecelerating;
4386
4495
  else {
4387
- b.current.__scrollLeft, b.current.__scrollTop, _.left, _.top, x.current = !0;
4496
+ b.current.__scrollLeft, b.current.__scrollTop, _.left, _.top, w.current = !0;
4388
4497
  try {
4389
4498
  b.current?.scrollTo(_.left, _.top, !1);
4390
4499
  } finally {
4391
- x.current = !1;
4500
+ w.current = !1;
4392
4501
  }
4393
4502
  }
4394
4503
  }, [_?.left, _?.top]);
4395
- const C = w((e, t) => {
4396
- if (x.current) return;
4504
+ const S = x((e, t) => {
4505
+ if (w.current) return;
4397
4506
  const n = b.current;
4398
4507
  (!n || n.__isTracking || n.__isDecelerating) && v?.({
4399
4508
  left: e,
4400
4509
  top: t
4401
4510
  });
4402
- }, []), M = w((e) => {
4511
+ }, []), M = x((e) => {
4403
4512
  e.touches.length, b.current?.doTouchStart(e.touches, e.timeStamp);
4404
- }, []), E = w((e) => {
4513
+ }, []), E = x((e) => {
4405
4514
  e.preventDefault(), e.touches.length, b.current, b.current, b.current, b.current?.doTouchMove(e.touches, e.timeStamp);
4406
- }, []), T = w((e) => {
4515
+ }, []), T = x((e) => {
4407
4516
  b.current?.doTouchEnd(e.timeStamp);
4408
- }, []), A = w(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4517
+ }, []), L = x(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4409
4518
  b.current && b.current.setDimensions(e, t, n, o);
4410
4519
  }, []);
4411
- S(() => {
4520
+ C(() => {
4412
4521
  const e = y.current;
4413
- return !f && Ne().supportsTouchEvents && e && _ && (b.current || (b.current = new ri(C, {
4522
+ return !f && Fe().supportsTouchEvents && e && _ && (b.current || (b.current = new pi(S, {
4414
4523
  scrollingX: !0,
4415
4524
  scrollingY: !0,
4416
4525
  decelerationRate: .95,
4417
4526
  penetrationAcceleration: .08
4418
- })), Ne().supportsTouchEvents && (e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), A({
4527
+ })), Fe().supportsTouchEvents && (e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), L({
4419
4528
  containerWidth: _?.width,
4420
4529
  containerHeight: _?.height,
4421
4530
  totalWidth: _?.totalWidth,
@@ -4430,23 +4539,23 @@ var Xr = 24, qr = b(v((e, t) => {
4430
4539
  _?.totalHeight,
4431
4540
  f
4432
4541
  ]);
4433
- const P = Ne().supportsTouchEvents, [$, H] = D(null), [I, { width: N, height: O }] = B(), W = w((e) => {
4434
- H(e), I(e);
4435
- }, [I]), K = k(() => {
4436
- if (!$) return null;
4437
- const e = Fr(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4542
+ const A = Fe().supportsTouchEvents, [z, B] = P(null), [H, { width: N, height: O }] = I(), F = x((e) => {
4543
+ B(e), H(e);
4544
+ }, [H]), K = k(() => {
4545
+ if (!z) return null;
4546
+ const e = Gr(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4438
4547
  return {
4439
- portalTarget: $,
4548
+ portalTarget: z,
4440
4549
  width: N,
4441
4550
  height: O,
4442
4551
  viewportWidth: t,
4443
4552
  viewportHeight: n,
4444
4553
  reserveVertical: m ? e : 0,
4445
4554
  reserveHorizontal: g ? e : 0,
4446
- crossInset: Or()
4555
+ crossInset: Zr()
4447
4556
  };
4448
4557
  }, [
4449
- $,
4558
+ z,
4450
4559
  N,
4451
4560
  O,
4452
4561
  _?.width,
@@ -4456,7 +4565,7 @@ var Xr = 24, qr = b(v((e, t) => {
4456
4565
  ]), V = k(() => {
4457
4566
  if (!g) return null;
4458
4567
  const e = h({
4459
- orientation: _r.Vertical,
4568
+ orientation: Tr.Vertical,
4460
4569
  offset: _?.top ?? 0,
4461
4570
  viewportSize: _?.height ?? 0,
4462
4571
  totalSize: _?.totalHeight ?? 0,
@@ -4464,8 +4573,8 @@ var Xr = 24, qr = b(v((e, t) => {
4464
4573
  v?.({ top: e });
4465
4574
  }
4466
4575
  });
4467
- return z("div", {
4468
- className: F("vertical-container", ui),
4576
+ return R("div", {
4577
+ className: W("vertical-container", wi),
4469
4578
  children: e
4470
4579
  });
4471
4580
  }, [
@@ -4476,7 +4585,7 @@ var Xr = 24, qr = b(v((e, t) => {
4476
4585
  ]), j = k(() => {
4477
4586
  if (!m) return null;
4478
4587
  const e = c({
4479
- orientation: _r.Horizontal,
4588
+ orientation: Tr.Horizontal,
4480
4589
  offset: _?.left ?? 0,
4481
4590
  viewportSize: _?.width ?? 0,
4482
4591
  totalSize: _?.totalWidth ?? 0,
@@ -4484,8 +4593,8 @@ var Xr = 24, qr = b(v((e, t) => {
4484
4593
  v?.({ left: e });
4485
4594
  }
4486
4595
  });
4487
- return z("div", {
4488
- className: F("horizontal-container", di),
4596
+ return R("div", {
4597
+ className: W("horizontal-container", xi),
4489
4598
  children: e
4490
4599
  });
4491
4600
  }, [
@@ -4493,44 +4602,44 @@ var Xr = 24, qr = b(v((e, t) => {
4493
4602
  _?.left,
4494
4603
  _?.width,
4495
4604
  _?.totalWidth
4496
- ]), U = k(() => g && m ? z("div", {
4497
- className: F("corner-container", fi),
4605
+ ]), Y = k(() => g && m ? R("div", {
4606
+ className: W("corner-container", Si),
4498
4607
  children: a({})
4499
4608
  }) : null, [
4500
4609
  g,
4501
4610
  m,
4502
4611
  a
4503
4612
  ]);
4504
- return z("div", {
4505
- className: F(d, "scrollpane", ai),
4613
+ return R("div", {
4614
+ className: W(d, "scrollpane", vi),
4506
4615
  style: u,
4507
4616
  ...p,
4508
4617
  ref: y,
4509
- children: z(Kr, {
4618
+ children: R(Qr, {
4510
4619
  value: K,
4511
- children: R("div", {
4512
- className: F("scrollpane-content", ci),
4620
+ children: $("div", {
4621
+ className: W("scrollpane-content", yi),
4513
4622
  children: [
4514
- z("div", {
4515
- className: F("scrollpane-content-cell", hi),
4623
+ R("div", {
4624
+ className: W("scrollpane-content-cell", bi),
4516
4625
  children: n
4517
4626
  }),
4518
4627
  g ? V : null,
4519
4628
  m ? j : null,
4520
- U,
4521
- P ? z("div", {
4522
- ref: W,
4523
- className: F("touch-thumb-overlay", pi)
4629
+ Y,
4630
+ A ? R("div", {
4631
+ ref: F,
4632
+ className: W("touch-thumb-overlay", Ci)
4524
4633
  }) : null
4525
4634
  ]
4526
4635
  })
4527
4636
  })
4528
4637
  });
4529
4638
  }));
4530
- mi.displayName = "ScrollPane";
4531
- var gi = (e) => {
4639
+ Mi.displayName = "ScrollPane";
4640
+ var Ei = (e) => {
4532
4641
  const { size: t, style: n, ...o } = e;
4533
- return z("div", {
4642
+ return R("div", {
4534
4643
  className: "corner",
4535
4644
  style: {
4536
4645
  width: "100%",
@@ -4539,7 +4648,7 @@ var gi = (e) => {
4539
4648
  },
4540
4649
  ...o
4541
4650
  });
4542
- }, _i = class {
4651
+ }, Ti = class {
4543
4652
  constructor(e) {
4544
4653
  this._bounds = {
4545
4654
  minLeft: 0,
@@ -4649,7 +4758,7 @@ var gi = (e) => {
4649
4758
  }
4650
4759
  _applyBounds(e) {
4651
4760
  this._bounds = e;
4652
- const t = Mi(this._target.left, e.minLeft, e.maxLeft), n = Mi(this._target.top, e.minTop, e.maxTop);
4761
+ const t = $i(this._target.left, e.minLeft, e.maxLeft), n = $i(this._target.top, e.minTop, e.maxTop);
4653
4762
  t === this._target.left && n === this._target.top || (this._target = {
4654
4763
  left: t,
4655
4764
  top: n
@@ -4671,12 +4780,12 @@ var gi = (e) => {
4671
4780
  return this._observe(e, "both");
4672
4781
  }
4673
4782
  _observe(e, t) {
4674
- if (!e) return Ci;
4783
+ if (!e) return Ri;
4675
4784
  const n = (e, n) => {
4676
4785
  const o = this._measuredClient;
4677
4786
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
4678
4787
  };
4679
- if (!Si()) return n(0, 0), Ci;
4788
+ if (!zi()) return n(0, 0), Ri;
4680
4789
  const o = new ResizeObserver((e) => {
4681
4790
  const t = e[0]?.contentRect;
4682
4791
  t && n(t.width, t.height);
@@ -4723,17 +4832,17 @@ var gi = (e) => {
4723
4832
  }
4724
4833
  setTarget(e, t, n) {
4725
4834
  const o = this._bounds;
4726
- return e = Mi(e, o.minLeft, o.maxLeft), t = Mi(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4835
+ return e = $i(e, o.minLeft, o.maxLeft), t = $i(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4727
4836
  left: e,
4728
4837
  top: t
4729
4838
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
4730
4839
  }
4731
4840
  _startAnimation() {
4732
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * bi : Infinity, r = n.height > 0 ? n.height * bi : Infinity, i = Mi(e.left, t.left - o, t.left + o), s = Mi(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * yi);
4733
- this._anim = a <= wi ? null : {
4841
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Di : Infinity, r = n.height > 0 ? n.height * Di : Infinity, i = $i(e.left, t.left - o, t.left + o), s = $i(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Li);
4842
+ this._anim = a <= Pi ? null : {
4734
4843
  fromLeft: i,
4735
4844
  fromTop: s,
4736
- start: xi(),
4845
+ start: Ai(),
4737
4846
  duration: a
4738
4847
  };
4739
4848
  }
@@ -4765,7 +4874,7 @@ var gi = (e) => {
4765
4874
  const e = this._current, t = this._target, n = this._anim;
4766
4875
  let o, r, i = !1;
4767
4876
  if (n) {
4768
- const e = (xi() - n.start) / n.duration;
4877
+ const e = (Ai() - n.start) / n.duration;
4769
4878
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
4770
4879
  else {
4771
4880
  const s = 1 - Math.pow(1 - e, 3);
@@ -4777,7 +4886,7 @@ var gi = (e) => {
4777
4886
  top: r
4778
4887
  }, this._viewport = null, this._emit()), i;
4779
4888
  }
4780
- }, vi = 200, yi = 2.5, bi = 1.5, wi = 17, xi = () => "undefined" != typeof performance ? performance.now() : Date.now(), Si = () => "undefined" != typeof ResizeObserver, Ci = () => {}, Mi = (e, t, n) => Math.min(n, Math.max(t, e)), Ei = class {
4889
+ }, ki = 200, Li = 2.5, Di = 1.5, Pi = 17, Ai = () => "undefined" != typeof performance ? performance.now() : Date.now(), zi = () => "undefined" != typeof ResizeObserver, Ri = () => {}, $i = (e, t, n) => Math.min(n, Math.max(t, e)), Bi = class {
4781
4890
  constructor(e, t, n, o, r) {
4782
4891
  this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
4783
4892
  }
@@ -4884,12 +4993,12 @@ var gi = (e) => {
4884
4993
  setContent(e, t, n = 0, o = 0) {
4885
4994
  this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
4886
4995
  }
4887
- }, ki = 300, Ti = 100, Li = 1e6, Di = 100, Ai = 50, Pi = b(v((e, t) => {
4888
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = ki, endScrollIncrement: l = Ti, style: a = $e, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Li, scaleFactor: p = Di, precisionFactor: m = Ai, renderScrollbar: g = li, ..._ } = e;
4996
+ }, Ii = 300, Hi = 100, Ni = 1e6, Oi = 100, Fi = 50, Wi = w(v((e, t) => {
4997
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Ii, endScrollIncrement: l = Hi, style: a = Ie, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Ni, scaleFactor: p = Oi, precisionFactor: m = Fi, renderScrollbar: g = _i, ..._ } = e;
4889
4998
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
4890
- const v = qt(c ?? (() => {}), [c]), [y, b] = D(!1), x = L(0), S = k(() => {
4999
+ const v = en(c ?? (() => {}), [c]), [y, b] = P(!1), w = D(0), S = k(() => {
4891
5000
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
4892
- y && (e = Math.max(e, x.current)), x.current = e;
5001
+ y && (e = Math.max(e, w.current)), w.current = e;
4893
5002
  const t = 0 !== f && e > f ? p : 1, l = t / m, a = Math.ceil(e / t);
4894
5003
  return {
4895
5004
  offset: Math.ceil(n / t),
@@ -4909,38 +5018,38 @@ var gi = (e) => {
4909
5018
  i,
4910
5019
  s,
4911
5020
  l
4912
- ]), C = qt((e, t, n) => {
5021
+ ]), C = en((e, t, n) => {
4913
5022
  const o = S.offset;
4914
5023
  Math.abs(e - o) < S.precision && (e = o), u?.(e * S.factor, o, S.viewportSize);
4915
- }, [u, S]), M = qt((e, t) => {
5024
+ }, [u, S]), M = en((e, t) => {
4916
5025
  const n = 1 + Math.min(3, t.heldMs / 1e3), o = Math.max(0, S.scaledTotalSize - S.scaledViewportSize), r = Math.min(o, Math.max(0, S.scaledOffset + e * l * n));
4917
5026
  return r !== S.scaledOffset && (u?.(r, S.scaledViewportSize, S.scaledTotalSize), !0);
4918
5027
  }, [
4919
5028
  S,
4920
5029
  l,
4921
5030
  u
4922
- ]), E = qt((e) => {
5031
+ ]), E = en((e) => {
4923
5032
  b(e.dragging), h?.(e);
4924
- }, [h]), T = w((e) => {}, []), A = w((e) => {
4925
- document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", A), b(!1);
4926
- }, []), P = w((e) => {
4927
- b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", A, { passive: !0 });
4928
- }, [T, A]);
5033
+ }, [h]), T = x((e) => {}, []), L = x((e) => {
5034
+ document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", L), b(!1);
5035
+ }, []), A = x((e) => {
5036
+ b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", L, { passive: !0 });
5037
+ }, [T, L]);
4929
5038
  return g({
4930
5039
  style: a,
4931
5040
  ..._,
4932
5041
  offset: S.offset,
4933
5042
  totalSize: S.totalSize,
4934
5043
  viewportSize: S.viewportSize,
4935
- onMouseDown: P,
5044
+ onMouseDown: A,
4936
5045
  onScrollOffset: C,
4937
5046
  onThumbEdgeHold: M,
4938
5047
  onThumbDrag: E,
4939
5048
  ref: t
4940
5049
  });
4941
5050
  }));
4942
- Pi.displayName = "VirtualScrollbar";
4943
- var zi = "_scrollbar-themed_nj3vu_7", Ri = (e) => ({
5051
+ Wi.displayName = "VirtualScrollbar";
5052
+ var Ki = "_scrollbar-themed_nj3vu_7", Vi = (e) => ({
4944
5053
  "--scrollbar-track-color": e.track,
4945
5054
  "--scrollbar-thumb-color": e.thumb,
4946
5055
  "--scrollbar-button-color": e.button || e.thumb,
@@ -4953,44 +5062,44 @@ var zi = "_scrollbar-themed_nj3vu_7", Ri = (e) => ({
4953
5062
  "--scrollbar-border-width": "2px",
4954
5063
  "--scrollbar-min-thumb-size": "24px"
4955
5064
  });
4956
- var $i = {
4957
- axis: X.oneOf([
5065
+ var ji = {
5066
+ axis: q.oneOf([
4958
5067
  "both",
4959
5068
  "x",
4960
5069
  "y",
4961
5070
  "none"
4962
5071
  ]),
4963
- className: X.string,
4964
- children: X.element.isRequired,
4965
- draggableOpts: X.shape({
4966
- allowAnyClick: X.bool,
4967
- cancel: X.string,
4968
- children: X.node,
4969
- disabled: X.bool,
4970
- enableUserSelectHack: X.bool,
4971
- offsetParent: "undefined" != typeof Element ? X.instanceOf(Element) : X.any,
4972
- grid: X.arrayOf(X.number),
4973
- handle: X.string,
4974
- nodeRef: X.object,
4975
- onStart: X.func,
4976
- onDrag: X.func,
4977
- onStop: X.func,
4978
- onMouseDown: X.func,
4979
- scale: X.number
5072
+ className: q.string,
5073
+ children: q.element.isRequired,
5074
+ draggableOpts: q.shape({
5075
+ allowAnyClick: q.bool,
5076
+ cancel: q.string,
5077
+ children: q.node,
5078
+ disabled: q.bool,
5079
+ enableUserSelectHack: q.bool,
5080
+ offsetParent: "undefined" != typeof Element ? q.instanceOf(Element) : q.any,
5081
+ grid: q.arrayOf(q.number),
5082
+ handle: q.string,
5083
+ nodeRef: q.object,
5084
+ onStart: q.func,
5085
+ onDrag: q.func,
5086
+ onStop: q.func,
5087
+ onMouseDown: q.func,
5088
+ scale: q.number
4980
5089
  }),
4981
5090
  height: (...e) => {
4982
5091
  const [t] = e;
4983
- return "both" === t.axis || "y" === t.axis ? X.number.isRequired(...e) : X.number(...e);
5092
+ return "both" === t.axis || "y" === t.axis ? q.number.isRequired(...e) : q.number(...e);
4984
5093
  },
4985
- handle: X.oneOfType([X.node, X.func]),
4986
- handleSize: X.arrayOf(X.number),
4987
- lockAspectRatio: X.bool,
4988
- maxConstraints: X.arrayOf(X.number),
4989
- minConstraints: X.arrayOf(X.number),
4990
- onResizeStop: X.func,
4991
- onResizeStart: X.func,
4992
- onResize: X.func,
4993
- resizeHandles: X.arrayOf(X.oneOf([
5094
+ handle: q.oneOfType([q.node, q.func]),
5095
+ handleSize: q.arrayOf(q.number),
5096
+ lockAspectRatio: q.bool,
5097
+ maxConstraints: q.arrayOf(q.number),
5098
+ minConstraints: q.arrayOf(q.number),
5099
+ onResizeStop: q.func,
5100
+ onResizeStart: q.func,
5101
+ onResize: q.func,
5102
+ resizeHandles: q.arrayOf(q.oneOf([
4994
5103
  "s",
4995
5104
  "w",
4996
5105
  "e",
@@ -5000,17 +5109,17 @@ var $i = {
5000
5109
  "se",
5001
5110
  "ne"
5002
5111
  ])),
5003
- transformScale: X.number,
5112
+ transformScale: q.number,
5004
5113
  width: (...e) => {
5005
5114
  const [t] = e;
5006
- return "both" === t.axis || "x" === t.axis ? X.number.isRequired(...e) : X.number(...e);
5115
+ return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5007
5116
  }
5008
- }, Bi = class extends d.Component {
5117
+ }, Yi = class extends d.Component {
5009
5118
  constructor(...e) {
5010
5119
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
5011
5120
  }
5012
5121
  static {
5013
- this.propTypes = $i;
5122
+ this.propTypes = ji;
5014
5123
  }
5015
5124
  static {
5016
5125
  this.defaultProps = {
@@ -5071,7 +5180,7 @@ var $i = {
5071
5180
  }
5072
5181
  renderResizeHandle(e, t) {
5073
5182
  const { handle: n } = this.props;
5074
- if (!n) return z("span", {
5183
+ if (!n) return R("span", {
5075
5184
  className: `react-resizable-handle react-resizable-handle-${e}`,
5076
5185
  ref: t
5077
5186
  });
@@ -5089,7 +5198,7 @@ var $i = {
5089
5198
  className: (t ? `${t} ` : "") + "react-resizable",
5090
5199
  children: [...d.Children.toArray(e.props.children), ...g.map((e) => {
5091
5200
  const t = this.handleRefs[e] ?? (this.handleRefs[e] = d.createRef());
5092
- return _(Y, {
5201
+ return _(X, {
5093
5202
  ...n,
5094
5203
  nodeRef: t,
5095
5204
  key: `resizableHandle-${e}`,
@@ -5104,7 +5213,7 @@ var $i = {
5104
5213
  }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
5105
5214
  var b, w;
5106
5215
  }
5107
- }, Hi = class extends d.Component {
5216
+ }, Ui = class extends d.Component {
5108
5217
  constructor(...e) {
5109
5218
  super(...e), this.state = {
5110
5219
  width: this.props.width,
@@ -5118,8 +5227,8 @@ var $i = {
5118
5227
  }
5119
5228
  static {
5120
5229
  this.propTypes = {
5121
- ...$i,
5122
- children: X.element
5230
+ ...ji,
5231
+ children: q.element
5123
5232
  };
5124
5233
  }
5125
5234
  static getDerivedStateFromProps(e, t) {
@@ -5132,7 +5241,7 @@ var $i = {
5132
5241
  }
5133
5242
  render() {
5134
5243
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: h, height: u, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5135
- return z(Bi, {
5244
+ return R(Yi, {
5136
5245
  axis: c,
5137
5246
  draggableOpts: i,
5138
5247
  handle: e,
@@ -5147,7 +5256,7 @@ var $i = {
5147
5256
  resizeHandles: d,
5148
5257
  transformScale: p,
5149
5258
  width: this.state.width,
5150
- children: z("div", {
5259
+ children: R("div", {
5151
5260
  ...m,
5152
5261
  style: {
5153
5262
  ...f,
@@ -5158,4 +5267,4 @@ var $i = {
5158
5267
  });
5159
5268
  }
5160
5269
  };
5161
- export { te as ACCUMULATE, Pt as AnimationModeProvider, Ei as AxisViewport, Tt as Command, pt as CommandAnchorProvider, de as CommandButtonEntryLabel, ae as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, ee as CommandButtonType, ot as CommandChainContext, gt as CommandFallbackContext, yt as CommandFallbackProvider, wt as CommandFocusProvider, it as CommandOrderContext, oe as CommandRegistry, Me as CommandRegistryContext, nt as CommandResolver, dt as CommandResolverContext, ke as CommandScope, lt as CommandScopeContext, ht as CommandScopeProvider, De as ConstantActivation, le as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, re as DefaultCommandRegistry, nr as DefaultIconService, jt as DefaultReactNotifier, ir as DynamicIcon, Lr as EDGE_HOLD_INTERVAL_MS, Ho as FloatPanel, zo as FloatPopper, Fo as FloatProvider, Ct as FloatStackProvider, No as FloatTooltip, Ae as FocusActivation, Nt as FocusKeyNavigation, io as INPUT_SELECTION_TINT, ro as INPUT_SELECTION_VAR, lr as InMemoryStore, Ge as KeyBindingDispatcher, J as KeyCodes, G as KeyModifiers, Dn as LanguageStateKey, Pe as LayerActivation, gr as LocalStorageStore, Le as ManualActivation, Q as MouseButtonCodes, Wt as NotifierType, Dr as PAGE_INITIAL_DELAY_MS, Ar as PAGE_REPEAT_DELAY_MS, pr as PersistenceStateProvider, qn as ReactErrorBoundary, Yt as ReactNotifierProvider, ze as ReactUtils, Bi as Resizable, Hi as ResizableBox, Ft as RoundedTab, vi as SCROLL_ANIMATION_MS, Jn as SERIES_COUNT, lo as SXL_THEME_LAYERS, ao as SXL_THEME_LAYER_ORDER, mi as ScrollPane, ii as ScrollUtils, qr as Scrollbar, _r as ScrollbarOrientation, qo as SplitPane, Vo as SplitPaneResizer, uo as THEME_MODE_ATTR, fo as THEME_SURFACE_ATTR, $r as TOUCH_THUMB_ASPECT, Br as TOUCH_THUMB_MARGIN, Ir as TOUCH_THUMB_MARGIN_CROSS, Nr as TOUCH_THUMB_MARGIN_END, Hr as TOUCH_THUMB_MARGIN_START, Rr as TOUCH_THUMB_SIZE, yo as TokenThemeContext, wo as TokenThemeProvider, It as ToolTipPlacement, Kr as TouchThumbFrameProvider, Yr as TouchThumbHandle, Gn as UncaughtErrorBoundary, _i as Viewport, Pi as VirtualScrollbar, sr as WalkingIcon, ye as asCommandCatalog, ct as attachWhenReady, ho as buildThemeCSS, we as chromeToPartial, Rn as composeCaretRect, Kt as createBusyHandle, Se as createCommandCatalogService, tr as createDynamicIconService, Vt as createNoopBusyHandle, pe as createResolvedCommand, mo as createThemeScopeClass, Pr as createTrackDrag, $o as defaultCreateFloatPopupPanel, Tr as defaultCreateScrollEdgeButton, kr as defaultCreateScrollEndButton, Er as defaultCreateScrollStartButton, Oo as defaultRenderFloatPanel, gi as defaultRenderScrollCorner, Qn as defaultTheme, be as fetchCatalog, To as floatThemeScopeProps, nn as getDevicePixelRatio, Ri as getScrollbarCssVariables, Bn as getTextareaCaretRect, Ze as isCaretKey, Qe as keyEventCanonicals, Je as keyStrokeToCanonical, xe as mergeChrome, _e as parseShortcutString, ne as reduceDefinitions, Te as resolveAnchorSource, xo as resolveToken, So as resolveTokens, zi as scrollbarThemedClassName, ve as serializeShortcut, Tn as setEditMode, po as themeSurfaceProps, no as themeVars, to as toVars, Fr as touchThumbCornerReserve, Or as touchThumbCrossInset, Ht as useAnimatedMeasure, At as useAnimationMode, Jt as useBoundSyncExternalStore, qt as useCallbackRef, ue as useCommandButtonEntry, ce as useCommandButtonRegistry, rt as useCommandChain, ut as useCommandElement, mt as useCommandExecute, _t as useCommandFallback, xt as useCommandFocusRestore, st as useCommandOrder, Ee as useCommandRegistry, ft as useCommandResolver, at as useCommandScope, Et as useCommands, kt as useContributeCommands, tn as useDevicePixelRatio, Ln as useEditMode, Mt as useFloat, Wo as useFloatStack, ko as useFloatSurface, rn as useFullscreen, hn as useFullscreenPortal, In as useGlobalClipboard, jn as useId, Yn as useImperativeElement, An as useLanguage, dn as useMouseDownAndHoldListener, Xt as useNotifier, on as useOnClickOrFocusAway, en as useOptionalBoundSyncExternalStore, Gt as useOptionalSyncExternalStore, dr as usePersistenceState, go as useResolvedThemeMode, un as useSynchronizedPointerHandler, Hn as useTextareaCaretRect, bo as useTokenThemeContext, Vr as useTouchThumbFrame, Nn as useTraceUpdate, zr as useTrackDrag, Pn as useTranslator };
5270
+ export { ne as ACCUMULATE, Rt as AnimationModeProvider, Bi as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Te as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, Le as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, Ae as ConstantActivation, ae as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, ie as DefaultCommandRegistry, dr as DefaultIconService, Zt as DefaultReactNotifier, mr as DynamicIcon, Nr as EDGE_HOLD_INTERVAL_MS, Uo as FloatPanel, Yo as FloatPanelSurface, Wo as FloatPopper, Go as FloatProvider, Et as FloatStackProvider, qo as FloatTooltip, ze as FocusActivation, Ft as FocusKeyNavigation, mo as INPUT_SELECTION_TINT, po as INPUT_SELECTION_VAR, _r as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, Nn as LanguageStateKey, Re as LayerActivation, Er as LocalStorageStore, Pe as ManualActivation, ee as MouseButtonCodes, Ut as NotifierType, Or as PAGE_INITIAL_DELAY_MS, Fr as PAGE_REPEAT_DELAY_MS, Cr as PersistenceStateProvider, pe as QUICK_ACTION_TAG, ro as ReactErrorBoundary, Jt as ReactNotifierProvider, $e as ReactUtils, Yi as Resizable, Ui as ResizableBox, Kt as RoundedTab, ki as SCROLL_ANIMATION_MS, lo as SERIES_COUNT, _o as SXL_THEME_LAYERS, vo as SXL_THEME_LAYER_ORDER, Mi as ScrollPane, mi as ScrollUtils, ii as Scrollbar, Tr as ScrollbarOrientation, ir as SplitPane, er as SplitPaneResizer, wo as THEME_MODE_ATTR, xo as THEME_SURFACE_ATTR, jr as TOUCH_THUMB_ASPECT, Yr as TOUCH_THUMB_MARGIN, Xr as TOUCH_THUMB_MARGIN_CROSS, qr as TOUCH_THUMB_MARGIN_END, Ur as TOUCH_THUMB_MARGIN_START, Vr as TOUCH_THUMB_SIZE, ko as TokenThemeContext, Do as TokenThemeProvider, Ot as ToolTipPlacement, Qr as TouchThumbFrameProvider, oi as TouchThumbHandle, so as UncaughtErrorBoundary, Ti as Viewport, Wi as VirtualScrollbar, gr as WalkingIcon, we as asCommandCatalog, ut as attachWhenReady, bo as buildThemeCSS, Se as chromeToPartial, Kn as composeCaretRect, Xt as createBusyHandle, Me as createCommandCatalogService, ur as createDynamicIconService, qt as createNoopBusyHandle, ge as createResolvedCommand, Co as createThemeScopeClass, Wr as createTrackDrag, Vo as defaultCreateFloatPopupPanel, Hr as defaultCreateScrollEdgeButton, Ir as defaultCreateScrollEndButton, Br as defaultCreateScrollStartButton, Zo as defaultRenderFloatPanel, Ei as defaultRenderScrollCorner, ao as defaultTheme, xe as fetchCatalog, Io as floatThemeScopeProps, an as getDevicePixelRatio, Vi as getScrollbarCssVariables, jn as getTextareaCaretRect, Je as isCaretKey, tt as keyEventCanonicals, et as keyStrokeToCanonical, Yt as lazyComponent, Ce as mergeChrome, ye as parseShortcutString, oe as reduceDefinitions, De as resolveAnchorSource, Po as resolveToken, Ao as resolveTokens, Ki as scrollbarThemedClassName, be as serializeShortcut, In as setEditMode, So as themeSurfaceProps, uo as themeVars, ho as toVars, Gr as touchThumbCornerReserve, Zr as touchThumbCrossInset, Nt as useAnimatedMeasure, zt as useAnimationMode, on as useBoundSyncExternalStore, en as useCallbackRef, de as useCommandButtonEntry, he as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Ct as useCommandFocusRestore, at as useCommandOrder, ke as useCommandRegistry, mt as useCommandResolver, ht as useCommandScope, kt as useCommands, Lt as useContributeCommands, ln as useDevicePixelRatio, Hn as useEditMode, Tt as useFloat, Jo as useFloatStack, Bo as useFloatSurface, hn as useFullscreen, mn as useFullscreenPortal, Un as useGlobalClipboard, eo as useId, no as useImperativeElement, On as useLanguage, jt as useLazyRetry, wn as useMouseDownAndHoldListener, Qt as useNotifier, cn as useOnClickOrFocusAway, sn as useOptionalBoundSyncExternalStore, nn as useOptionalSyncExternalStore, xr as usePersistenceState, Mo as useResolvedThemeMode, bn as useSynchronizedPointerHandler, yn as useTextSelectionDrag, Yn as useTextareaCaretRect, Lo as useTokenThemeContext, ei as useTouchThumbFrame, Xn as useTraceUpdate, Kr as useTrackDrag, Fn as useTranslator };