@sheetxl/utils-mui 0.8.0-beta.10 → 0.8.0-beta.11

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,16 +1,16 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.10
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.11
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
- import { Backdrop as e, Box as t, Button as o, Chip as r, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as g, Toolbar as f, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
7
+ import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
8
8
  import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
9
9
  import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
10
10
  import V from "clsx";
11
11
  import { alpha as q, darken as j, lighten as Q } from "@mui/system";
12
12
  import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
13
- import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as oe, KeyCodes as re, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as ge, useFloatStack as fe, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
13
+ import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
14
14
  import { useMergeRefs as Se } from "react-merge-refs";
15
15
  import { deepmerge as Pe } from "@mui/utils";
16
16
  import Te, { useModal as Re } from "mui-modal-provider";
@@ -28,32 +28,32 @@ var Ne = {
28
28
  paddingLeft: (e) => e.spacing(.25),
29
29
  paddingRight: (e) => e.spacing(.25)
30
30
  };
31
- function Oe(e, o) {
32
- const r = null != o && !1 !== o && "" !== o ? M(b, {
31
+ function Oe(e, r) {
32
+ const o = null != r && !1 !== r && "" !== r ? M(b, {
33
33
  component: "div",
34
34
  sx: Ne,
35
- children: o
35
+ children: r
36
36
  }) : null;
37
- return e && r ? S(t, {
37
+ return e && o ? S(t, {
38
38
  sx: {
39
39
  display: "flex",
40
40
  alignItems: "center"
41
41
  },
42
- children: [e, r]
43
- }) : e ?? r ?? void 0;
42
+ children: [e, o]
43
+ }) : e ?? o ?? void 0;
44
44
  }
45
45
  var Ee = ({ isHorizontal: e, isBefore: t }) => {
46
- const o = Ce();
47
- return M(C, t ? { children: o(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: o(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
46
+ const r = Ce();
47
+ return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
48
48
  }, Fe = (e) => {
49
49
  const t = {
50
50
  style: { cursor: "pointer" },
51
51
  ...e
52
52
  };
53
- let o = se(t);
53
+ let r = se(t);
54
54
  if (void 0 !== e.isBefore && !e.disabled) {
55
55
  const t = e.orientation === le.Horizontal;
56
- o = M(zt, {
56
+ r = M(Bt, {
57
57
  title: M(Ee, {
58
58
  isHorizontal: t,
59
59
  isBefore: e.isBefore
@@ -62,12 +62,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
62
62
  enterNextDelay: 1600,
63
63
  children: e.disabled ? M("div", {
64
64
  style: { display: "flex" },
65
- children: o
66
- }) : o
65
+ children: r
66
+ }) : r
67
67
  });
68
68
  }
69
- return o;
70
- }, Ae = (e, t, o, r) => {
69
+ return r;
70
+ }, Ae = (e, t, r, o) => {
71
71
  const { style: n, ...i } = e, a = M(d, {
72
72
  component: "div",
73
73
  ...i,
@@ -77,12 +77,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
77
77
  },
78
78
  sx: { padding: "0" },
79
79
  color: e.disabled ? void 0 : "primary",
80
- "aria-label": o,
80
+ "aria-label": r,
81
81
  size: "small",
82
82
  children: t
83
83
  });
84
- return M(zt, {
85
- title: e.disabled ? o : r,
84
+ return M(Bt, {
85
+ title: e.disabled ? r : o,
86
86
  enterDelay: 800,
87
87
  enterNextDelay: 1600,
88
88
  children: e.disabled ? M("div", {
@@ -103,7 +103,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
103
103
  iconKey: "ArrowDownward",
104
104
  size: "small"
105
105
  }), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
106
- const { orientation: o = "vertical", sx: r, ...n } = e, i = "vertical" === o;
106
+ const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
107
107
  return M(s, {
108
108
  ref: t,
109
109
  sx: {
@@ -113,15 +113,15 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
113
113
  minHeight: i ? "1em" : void 0,
114
114
  minWidth: i ? void 0 : "1em",
115
115
  borderColor: (e) => e.palette.divider,
116
- ...r
116
+ ...o
117
117
  },
118
- orientation: o,
118
+ orientation: r,
119
119
  variant: "middle",
120
120
  flexItem: !0,
121
121
  ...n
122
122
  });
123
123
  })), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
124
- const { sx: o, speed: r = 2, size: n = 70, ...i } = e;
124
+ const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
125
125
  return M(t, {
126
126
  sx: {
127
127
  width: `${n}px`,
@@ -131,7 +131,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
131
131
  stroke: (e) => e.palette.grey[600],
132
132
  fill: "none"
133
133
  },
134
- ...o
134
+ ...r
135
135
  },
136
136
  ...i,
137
137
  children: S("svg", {
@@ -156,7 +156,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
156
156
  y2: "50.5",
157
157
  children: M("animateTransform", {
158
158
  attributeName: "transform",
159
- dur: `${r}s`,
159
+ dur: `${o}s`,
160
160
  type: "rotate",
161
161
  from: "0 50 50",
162
162
  to: "360 50 50",
@@ -173,7 +173,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
173
173
  y2: "74",
174
174
  children: M("animateTransform", {
175
175
  attributeName: "transform",
176
- dur: 7.5 * r + "s",
176
+ dur: 7.5 * o + "s",
177
177
  type: "rotate",
178
178
  from: "0 50 50",
179
179
  to: "360 50 50",
@@ -184,7 +184,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
184
184
  })
185
185
  });
186
186
  }), je = B((e) => {
187
- const { sx: o, speed: r = 1.5, size: n = 70, ...i } = e;
187
+ const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
188
188
  return M(t, {
189
189
  sx: {
190
190
  width: `${n}px`,
@@ -196,7 +196,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
196
196
  fill: "none",
197
197
  opacity: .5
198
198
  },
199
- ...o
199
+ ...r
200
200
  },
201
201
  ...i,
202
202
  children: S("svg", {
@@ -215,7 +215,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
215
215
  children: M("animateTransform", {
216
216
  attributeName: "transform",
217
217
  type: "rotate",
218
- dur: 1 * r + "s",
218
+ dur: 1 * o + "s",
219
219
  from: "0 50 50",
220
220
  to: "360 50 50",
221
221
  repeatCount: "indefinite"
@@ -224,13 +224,13 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
224
224
  })
225
225
  });
226
226
  }), Qe = B((e) => {
227
- const { sx: o, speed: r = 1, size: n = 70, ...i } = e;
227
+ const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
228
228
  return M(t, {
229
229
  sx: {
230
230
  width: `${n}px`,
231
231
  height: `${n}px`,
232
232
  zIndex: 1,
233
- ...o
233
+ ...r
234
234
  },
235
235
  ...i,
236
236
  children: S("svg", {
@@ -245,7 +245,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
245
245
  r: "6",
246
246
  children: M("animate", {
247
247
  attributeName: "opacity",
248
- dur: `${r}s`,
248
+ dur: `${o}s`,
249
249
  values: "0;1;0",
250
250
  repeatCount: "indefinite",
251
251
  begin: "0.1"
@@ -258,7 +258,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
258
258
  r: "6",
259
259
  children: M("animate", {
260
260
  attributeName: "opacity",
261
- dur: `${r}s`,
261
+ dur: `${o}s`,
262
262
  values: "0;1;0",
263
263
  repeatCount: "indefinite",
264
264
  begin: "0.2"
@@ -271,7 +271,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
271
271
  r: "6",
272
272
  children: M("animate", {
273
273
  attributeName: "opacity",
274
- dur: `${r}s`,
274
+ dur: `${o}s`,
275
275
  values: "0;1;0",
276
276
  repeatCount: "indefinite",
277
277
  begin: "0.3"
@@ -281,7 +281,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
281
281
  })
282
282
  });
283
283
  }), Ge = B((e) => {
284
- const { sx: o, speed: r = 1, size: n = 70, ...i } = e;
284
+ const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
285
285
  return M(t, {
286
286
  sx: {
287
287
  width: `${n}px`,
@@ -291,7 +291,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
291
291
  fill: (e) => e.palette.grey[600],
292
292
  stroke: "none"
293
293
  },
294
- ...o
294
+ ...r
295
295
  },
296
296
  ...i,
297
297
  children: S("svg", {
@@ -306,7 +306,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
306
306
  r: "6",
307
307
  children: M("animateTransform", {
308
308
  attributeName: "transform",
309
- dur: `${r}s`,
309
+ dur: `${o}s`,
310
310
  type: "translate",
311
311
  values: "0 15 ; 0 -15; 0 15",
312
312
  repeatCount: "indefinite",
@@ -320,7 +320,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
320
320
  r: "6",
321
321
  children: M("animateTransform", {
322
322
  attributeName: "transform",
323
- dur: `${r}s`,
323
+ dur: `${o}s`,
324
324
  type: "translate",
325
325
  values: "0 10 ; 0 -10; 0 10",
326
326
  repeatCount: "indefinite",
@@ -334,7 +334,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
334
334
  r: "6",
335
335
  children: M("animateTransform", {
336
336
  attributeName: "transform",
337
- dur: `${r}s`,
337
+ dur: `${o}s`,
338
338
  type: "translate",
339
339
  values: "0 5 ; 0 -5; 0 5",
340
340
  repeatCount: "indefinite",
@@ -345,7 +345,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
345
345
  })
346
346
  });
347
347
  }), Ue = B((e) => {
348
- const { sx: o, speed: r = 2, size: n = 70, ...i } = e;
348
+ const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
349
349
  return M(t, {
350
350
  sx: {
351
351
  width: `${n}px`,
@@ -361,7 +361,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
361
361
  opacity: .8,
362
362
  stroke: (e) => e.palette.background.paper
363
363
  },
364
- ...o
364
+ ...r
365
365
  },
366
366
  ...i,
367
367
  children: S("svg", {
@@ -382,7 +382,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
382
382
  r: "6",
383
383
  children: M("animateTransform", {
384
384
  attributeName: "transform",
385
- dur: `${r}s`,
385
+ dur: `${o}s`,
386
386
  type: "rotate",
387
387
  from: "0 50 48",
388
388
  to: "360 50 52",
@@ -392,7 +392,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
392
392
  })
393
393
  });
394
394
  }), Xe = B((e) => {
395
- const { sx: o, speed: r = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
395
+ const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
396
396
  return S(t, {
397
397
  sx: {
398
398
  width: `${i}px`,
@@ -403,7 +403,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
403
403
  width: () => `${n}px`,
404
404
  height: () => `${n}px`
405
405
  },
406
- ...o
406
+ ...r
407
407
  },
408
408
  className: V(Ve, "animated-icon"),
409
409
  ...l,
@@ -417,22 +417,22 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
417
417
  }), Ye = M(je, {}), _e = (e, t) => {
418
418
  if (!e) return null;
419
419
  if (void 0 !== t) {
420
- const o = e.querySelector("[data-sxl-loading-label]");
421
- o && (o.textContent = t);
420
+ const r = e.querySelector("[data-sxl-loading-label]");
421
+ r && (r.textContent = t);
422
422
  }
423
423
  if (e.classList.contains("animating")) return null;
424
424
  e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
425
- const o = "function" == typeof e.getAnimations ? e.getAnimations() : null;
426
- return 0 === o?.length ? null : new Promise((e) => {
427
- const t = setTimeout(e, 250), r = () => {
425
+ const r = "function" == typeof e.getAnimations ? e.getAnimations() : null;
426
+ return 0 === r?.length ? null : new Promise((e) => {
427
+ const t = setTimeout(e, 250), o = () => {
428
428
  clearTimeout(t), e();
429
429
  };
430
- o ? Promise.all(o.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
430
+ r ? Promise.all(r.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
431
431
  });
432
432
  }, Je = (e) => {
433
433
  e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
434
- }, Ze = B($((e, o) => {
435
- const { sx: r, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...f } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
434
+ }, Ze = B($((e, r) => {
435
+ const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
436
436
  "data-sxl-loading-label": "",
437
437
  variant: "caption",
438
438
  component: "div",
@@ -472,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
472
472
  }
473
473
  })
474
474
  });
475
- }, [h, p]), v = W(null), w = Se([v, o]), k = A(() => {
475
+ }, [h, p]), v = W(null), w = Se([v, r]), k = A(() => {
476
476
  let e = S(t, {
477
477
  sx: {
478
478
  display: "flex",
@@ -482,7 +482,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
482
482
  },
483
483
  children: [x, y]
484
484
  });
485
- return !0 === s && (e = M(g, {
485
+ return !0 === s && (e = M(f, {
486
486
  elevation: 0,
487
487
  sx: {
488
488
  display: "flex",
@@ -510,7 +510,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
510
510
  },
511
511
  children: e
512
512
  })), M(t, {
513
- ...f,
513
+ ...g,
514
514
  ref: w,
515
515
  className: "animatable",
516
516
  sx: {
@@ -540,7 +540,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
540
540
  opacity: 0,
541
541
  transition: "opacity 210ms"
542
542
  },
543
- ...r,
543
+ ...o,
544
544
  ...n
545
545
  },
546
546
  children: S(t, {
@@ -572,7 +572,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
572
572
  })
573
573
  });
574
574
  }, [
575
- r,
575
+ o,
576
576
  s,
577
577
  x,
578
578
  y,
@@ -587,41 +587,41 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
587
587
  }, []), k;
588
588
  }));
589
589
  Ze.displayName = "AnimatedLoadingPanel";
590
- var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, ot = (e) => {
590
+ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, rt = (e) => {
591
591
  if (!e) return "";
592
592
  try {
593
593
  e = new URL(e).pathname;
594
594
  } catch {}
595
595
  return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
596
- }, rt = B(({ error: e, maxLines: o = Number.MAX_SAFE_INTEGER, hideLineNumbers: r = !1 }) => {
596
+ }, ot = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
597
597
  const n = Ce(), [i, a] = H(null);
598
598
  if (!e?.stack) return null;
599
599
  const l = U.collectErrorChain(e).reverse(), s = [];
600
600
  l.forEach(({ error: e }, t) => {
601
- const o = (e.stack || "").split("\n").filter(Boolean).map((e) => {
601
+ const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
602
602
  let t = e.match(et);
603
603
  if (t) {
604
- const [, e = "", o, r, n, i] = t;
604
+ const [, e = "", r, o, n, i] = t;
605
605
  return {
606
- line: `at ${e ? e + " " : ""}${o}`,
607
- location: `${ot(r).split(/[\\/]/).pop()}:${n}:${i}`
606
+ line: `at ${e ? e + " " : ""}${r}`,
607
+ location: `${rt(o).split(/[\\/]/).pop()}:${n}:${i}`
608
608
  };
609
609
  }
610
610
  if (t = e.match(tt), t) {
611
- const [, e = "", o, r, n] = t, i = ot(o), a = `${i.split(/[\\/]/).pop()}:${r}:${n}`;
611
+ const [, e = "", r, o, n] = t, i = rt(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
612
612
  return {
613
613
  line: `at ${e ? e + " " : ""}${a}`,
614
- location: i !== a ? `${i}:${r}:${n}` : void 0
614
+ location: i !== a ? `${i}:${o}:${n}` : void 0
615
615
  };
616
616
  }
617
617
  return { line: e.trim() };
618
618
  });
619
- o.length && (s.push({
620
- line: t ? `Caused by: ${o[0].line}` : o[0].line,
619
+ r.length && (s.push({
620
+ line: t ? `Caused by: ${r[0].line}` : r[0].line,
621
621
  isBoundary: !0
622
- }), s.push(...o.slice(1)));
622
+ }), s.push(...r.slice(1)));
623
623
  });
624
- const c = o ? s.slice(0, o) : s, p = o && s.length > o;
624
+ const c = r ? s.slice(0, r) : s, p = r && s.length > r;
625
625
  return S(t, {
626
626
  sx: {
627
627
  width: "100%",
@@ -664,8 +664,8 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
664
664
  const t = s.map((t) => {
665
665
  if (t.isBoundary) return e = 0, t.line;
666
666
  e++;
667
- let o = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
668
- return e >= 1 && (o = ` ${o}`), o;
667
+ let r = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
668
+ return e >= 1 && (r = ` ${r}`), r;
669
669
  }).join("\n");
670
670
  await navigator.clipboard.writeText(t), a("Copied!"), setTimeout(() => a(null), 2e3);
671
671
  } catch (e) {
@@ -712,12 +712,12 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
712
712
  fontSize: "0.75rem",
713
713
  lineHeight: 1.4
714
714
  },
715
- children: [c.map((e, o) => e.isBoundary ? M(t, {
715
+ children: [c.map((e, r) => e.isBoundary ? M(t, {
716
716
  sx: {
717
717
  py: 1,
718
- mt: o > 0 ? 1 : 0,
718
+ mt: r > 0 ? 1 : 0,
719
719
  mb: .5,
720
- borderTop: o > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
720
+ borderTop: r > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
721
721
  },
722
722
  children: M(b, {
723
723
  variant: "caption",
@@ -730,7 +730,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
730
730
  },
731
731
  children: e.line
732
732
  })
733
- }, `error-${o}`) : S(t, {
733
+ }, `error-${r}`) : S(t, {
734
734
  sx: {
735
735
  display: "flex",
736
736
  alignItems: "flex-start",
@@ -739,7 +739,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
739
739
  pl: 1,
740
740
  "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
741
741
  },
742
- children: [!r && M(b, {
742
+ children: [!o && M(b, {
743
743
  variant: "caption",
744
744
  component: "div",
745
745
  sx: {
@@ -749,7 +749,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
749
749
  textAlign: "right",
750
750
  userSelect: "none"
751
751
  },
752
- children: o + 1
752
+ children: r + 1
753
753
  }), S(t, {
754
754
  sx: {
755
755
  flex: 1,
@@ -777,7 +777,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
777
777
  children: e.location
778
778
  })]
779
779
  })]
780
- }, `stack-${o}`)), p && M(b, {
780
+ }, `stack-${r}`)), p && M(b, {
781
781
  variant: "caption",
782
782
  component: "div",
783
783
  sx: {
@@ -788,14 +788,14 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
788
788
  display: "block",
789
789
  mt: 1
790
790
  },
791
- children: n("stackTrace.moreFrames", { count: s.length - o })
791
+ children: n("stackTrace.moreFrames", { count: s.length - r })
792
792
  })]
793
793
  })]
794
794
  });
795
795
  });
796
- rt.displayName = "StackTrace";
797
- var nt = B($((e, o) => {
798
- const { sx: r, icon: n = M(Z, {
796
+ ot.displayName = "StackTrace";
797
+ var nt = B($((e, r) => {
798
+ const { sx: o, icon: n = M(Z, {
799
799
  iconKey: "Error",
800
800
  style: { fontSize: 48 }
801
801
  }), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
@@ -806,7 +806,7 @@ var nt = B($((e, o) => {
806
806
  d
807
807
  ]);
808
808
  return A(() => M(t, {
809
- ref: o,
809
+ ref: r,
810
810
  sx: {
811
811
  boxSizing: "border-box",
812
812
  alignItems: "center",
@@ -816,7 +816,7 @@ var nt = B($((e, o) => {
816
816
  overflow: "hidden",
817
817
  width: "100%",
818
818
  height: "100%",
819
- ...r
819
+ ...o
820
820
  },
821
821
  ...c,
822
822
  children: S(t, {
@@ -840,7 +840,7 @@ var nt = B($((e, o) => {
840
840
  height: "100%",
841
841
  boxSizing: "border-box"
842
842
  }
843
- }), M(g, {
843
+ }), M(f, {
844
844
  elevation: 0,
845
845
  sx: {
846
846
  display: "flex",
@@ -889,13 +889,13 @@ var nt = B($((e, o) => {
889
889
  })]
890
890
  })
891
891
  }), [
892
- r,
892
+ o,
893
893
  n,
894
894
  p
895
895
  ]);
896
896
  }));
897
897
  nt.displayName = "StackTraceErrorPanel";
898
- var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
898
+ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
899
899
  if (z(e)) return e;
900
900
  if (e instanceof Error) return S(t, {
901
901
  sx: {
@@ -928,7 +928,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
928
928
  },
929
929
  children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
930
930
  }) : null,
931
- !o && M(rt, {
931
+ !r && M(ot, {
932
932
  error: e,
933
933
  hideLineNumbers: !0
934
934
  })
@@ -946,7 +946,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
946
946
  children: a
947
947
  });
948
948
  }, at = B((e) => {
949
- const { error: r, ...n } = e, i = we(), a = Ce(), l = r instanceof Error ? r.message : String(r);
949
+ const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
950
950
  return M(nt, {
951
951
  hideStackTrace: !0,
952
952
  error: S(t, {
@@ -960,7 +960,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
960
960
  variant: "body2",
961
961
  component: "div",
962
962
  children: l
963
- }), i ? M(o, {
963
+ }), i ? M(r, {
964
964
  variant: "outlined",
965
965
  size: "small",
966
966
  onClick: i,
@@ -970,25 +970,32 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
970
970
  ...n
971
971
  });
972
972
  });
973
+ function lt(e) {
974
+ const t = pe(e, { renderError: (e) => M(at, { error: e }) });
975
+ return (e) => M(R, {
976
+ fallback: M(Ze, {}),
977
+ children: M(t, { ...e })
978
+ });
979
+ }
973
980
  at.displayName = "LazyLoadErrorPanel";
974
- var lt = B($((e, o) => {
981
+ var st = B($((e, r) => {
975
982
  const { chips: n, sx: i, ...a } = e, l = A(() => {
976
983
  if (!n) return null;
977
- const e = Array.isArray(n) ? n : [n], t = [], o = e.length;
978
- for (let n = 0; n < o; n++) {
979
- const o = e[n];
984
+ const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
985
+ for (let n = 0; n < r; n++) {
986
+ const r = e[n];
980
987
  let i = null;
981
- "string" == typeof o ? i = M(r, {
982
- label: o,
988
+ "string" == typeof r ? i = M(o, {
989
+ label: r,
983
990
  color: "primary",
984
991
  size: "small",
985
992
  sx: { scale: "0.8" }
986
- }, "chip-" + n) : D(o, { key: "chip-" + n }), t.push(i);
993
+ }, "chip-" + n) : D(r, { key: "chip-" + n }), t.push(i);
987
994
  }
988
995
  return t;
989
996
  }, [n]);
990
997
  return M(t, {
991
- ref: o,
998
+ ref: r,
992
999
  sx: {
993
1000
  display: "flex",
994
1001
  flexDirection: "row",
@@ -999,41 +1006,41 @@ var lt = B($((e, o) => {
999
1006
  ...a,
1000
1007
  children: l
1001
1008
  });
1002
- })), st = (e) => {
1009
+ })), ct = (e) => {
1003
1010
  if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
1004
- }, ct = (e = 1) => (t) => {
1011
+ }, dt = (e = 1) => (t) => {
1005
1012
  if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
1006
- }, dt = (e) => M(Z, {
1013
+ }, pt = (e) => M(Z, {
1007
1014
  ...e,
1008
1015
  iconKey: "ArrowDownOutline"
1009
- }), pt = (e) => M(Z, {
1016
+ }), ut = (e) => M(Z, {
1010
1017
  ...e,
1011
1018
  iconKey: "ArrowRightOutline"
1012
- }), ut = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, mt = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ht = function(e, t = null) {
1019
+ }), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
1013
1020
  if (!e) return e;
1014
- e = e.replace(ut, function(e, t, o, r) {
1015
- return t + t + o + o + r + r;
1021
+ e = e.replace(mt, function(e, t, r, o) {
1022
+ return t + t + r + r + o + o;
1016
1023
  });
1017
- let o = mt.exec(e);
1018
- return o ? null === t ? `rgb(${parseInt(o[1], 16)}, ${parseInt(o[2], 16)}, ${parseInt(o[3], 16)})` : `rgb(${parseInt(o[1], 16)} ${parseInt(o[2], 16)} ${parseInt(o[3], 16)} / ${100 * t}%)` : e;
1019
- }, gt = function(e, t = .2, o = "light") {
1024
+ let r = ht.exec(e);
1025
+ return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
1026
+ }, gt = function(e, t = .2, r = "light") {
1020
1027
  if (!e) return e;
1021
- let r = "dark" !== o;
1022
- t < 0 && (r = !r, t *= -1), e = ht(e);
1028
+ let o = "dark" !== r;
1029
+ t < 0 && (o = !o, t *= -1), e = ft(e);
1023
1030
  try {
1024
- return r ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
1031
+ return o ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
1025
1032
  } catch {
1026
1033
  return e;
1027
1034
  }
1028
- }, ft = (e) => {
1035
+ }, xt = (e) => {
1029
1036
  e.stopPropagation();
1030
- }, xt = {
1031
- onMouseDown: ft,
1032
- onTouchStart: ft
1033
- }, bt = (e, t) => {
1034
- let o = v({ palette: { mode: e ? "dark" : "light" } });
1035
- const r = {
1036
- "--icon-shadow": e ? o.palette.text.primary : o.palette.divider,
1037
+ }, bt = {
1038
+ onMouseDown: xt,
1039
+ onTouchStart: xt
1040
+ }, yt = (e, t) => {
1041
+ let r = v({ palette: { mode: e ? "dark" : "light" } });
1042
+ const o = {
1043
+ "--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
1037
1044
  "--icon-size": "1.25rem",
1038
1045
  "@media (pointer: coarse)": { "--icon-size": "1.75rem" }
1039
1046
  };
@@ -1042,18 +1049,18 @@ var lt = B($((e, o) => {
1042
1049
  palette: {
1043
1050
  mode: e ? "dark" : "light",
1044
1051
  text: {
1045
- secondary: e ? o.palette.text.secondary : q(o.palette.text.secondary, .75),
1046
- icon: e ? q(o.palette.text.secondary, .7) : q(o.palette.text.primary, .75)
1052
+ secondary: e ? r.palette.text.secondary : q(r.palette.text.secondary, .75),
1053
+ icon: e ? q(r.palette.text.secondary, .7) : q(r.palette.text.primary, .75)
1047
1054
  }
1048
1055
  },
1049
1056
  components: {
1050
1057
  MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
1051
1058
  MuiSelect: {
1052
1059
  defaultProps: {
1053
- IconComponent: dt,
1060
+ IconComponent: pt,
1054
1061
  MenuProps: {
1055
1062
  container: () => document.fullscreenElement,
1056
- ...xt
1063
+ ...bt
1057
1064
  }
1058
1065
  },
1059
1066
  styleOverrides: { icon: { top: "unset" } }
@@ -1082,7 +1089,7 @@ var lt = B($((e, o) => {
1082
1089
  MuiMenu: {
1083
1090
  defaultProps: {
1084
1091
  container: () => document.fullscreenElement,
1085
- ...xt
1092
+ ...bt
1086
1093
  },
1087
1094
  styleOverrides: { root: {
1088
1095
  paddingTop: "2px",
@@ -1113,11 +1120,11 @@ var lt = B($((e, o) => {
1113
1120
  } } },
1114
1121
  MuiInputBase: { styleOverrides: { root: {} } },
1115
1122
  MuiPaper: { styleOverrides: { root: {
1116
- ...r,
1123
+ ...o,
1117
1124
  backgroundImage: "none"
1118
1125
  } } },
1119
1126
  MuiPopover: { styleOverrides: { paper: {
1120
- backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${o.palette.background.paper}))`,
1127
+ backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
1121
1128
  border: "1px solid var(--sxl-color-elevated-border, transparent)"
1122
1129
  } } },
1123
1130
  MuiPopper: { styleOverrides: { root: { "& .menu": {
@@ -1129,13 +1136,13 @@ var lt = B($((e, o) => {
1129
1136
  automatic: {
1130
1137
  transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
1131
1138
  color: function() {
1132
- return o.palette.text.secondary;
1139
+ return r.palette.text.secondary;
1133
1140
  }
1134
1141
  },
1135
1142
  dirty: {
1136
1143
  fontStyle: "italic",
1137
1144
  color: function() {
1138
- return o.palette.text.secondary;
1145
+ return r.palette.text.secondary;
1139
1146
  }
1140
1147
  }
1141
1148
  } }
@@ -1143,7 +1150,7 @@ var lt = B($((e, o) => {
1143
1150
  }, i = n;
1144
1151
  return t && (i = Pe(n, t)), v(i);
1145
1152
  };
1146
- function yt(e, t) {
1153
+ function vt(e, t) {
1147
1154
  return t = Pe({
1148
1155
  track: gt(e.palette.background.paper, .05, e?.palette.mode),
1149
1156
  thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
@@ -1159,10 +1166,10 @@ function yt(e, t) {
1159
1166
  border: t.track
1160
1167
  });
1161
1168
  }
1162
- function vt(e, t) {
1163
- const o = yt(e, t), r = {
1164
- ...o,
1165
- "& .scrollbar, & .vsb-track, & .vsb-thumb": { ...o },
1169
+ function wt(e, t) {
1170
+ const r = vt(e, t), o = {
1171
+ ...r,
1172
+ "& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
1166
1173
  "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
1167
1174
  backgroundColor: "var(--scrollbar-track-color)",
1168
1175
  width: "var(--scrollbar-width)",
@@ -1201,20 +1208,20 @@ function vt(e, t) {
1201
1208
  },
1202
1209
  "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
1203
1210
  };
1204
- return G.getPlatform() === G.OSType.Firefox && (r["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, r["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), r;
1211
+ return G.getPlatform() === G.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
1205
1212
  }
1206
- var wt = {
1213
+ var kt = {
1207
1214
  Popup: "popup",
1208
1215
  Anchor: "anchor"
1209
- }, kt = {
1216
+ }, Ct = {
1210
1217
  ByPopup: "popupDone",
1211
1218
  Cancel: "popupCancel",
1212
1219
  ClickAway: "clickAway"
1213
- }, Ct = {
1220
+ }, Mt = {
1214
1221
  Toolbar: "toolbar",
1215
1222
  Menuitem: "menuitem"
1216
- }, Mt = (e) => {
1217
- const { closeFloat: o, closeFloatAll: r, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
1223
+ }, St = (e) => {
1224
+ const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
1218
1225
  return M(t, {
1219
1226
  className: V("menu", l),
1220
1227
  sx: {
@@ -1227,18 +1234,18 @@ var wt = {
1227
1234
  ...c,
1228
1235
  children: a
1229
1236
  });
1230
- }, St = (e, t, o) => {
1231
- let r = "";
1232
- return o && (r = (r ? r + " " : "") + "rotate(180deg)"), M(dt, {
1237
+ }, Pt = (e, t, r) => {
1238
+ let o = "";
1239
+ return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
1233
1240
  style: {
1234
1241
  marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
1235
1242
  marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
1236
- transform: r
1243
+ transform: o
1237
1244
  },
1238
1245
  color: "inherit"
1239
1246
  });
1240
- }, Pt = B($((e, t) => {
1241
- const { open: o, anchorEl: r, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = Mt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: f, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
1247
+ }, Tt = B($((e, t) => {
1248
+ const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
1242
1249
  C(e), c?.(S.current, t);
1243
1250
  }, [c]), T = A(() => {
1244
1251
  const e = {
@@ -1247,7 +1254,7 @@ var wt = {
1247
1254
  children: h,
1248
1255
  ...x
1249
1256
  }, t = l(e);
1250
- return M(g, {
1257
+ return M(f, {
1251
1258
  elevation: 8,
1252
1259
  ref: S,
1253
1260
  sx: {
@@ -1257,7 +1264,7 @@ var wt = {
1257
1264
  outline: "none",
1258
1265
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
1259
1266
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
1260
- "&.MuiPaper-root": (e) => vt(e)
1267
+ "&.MuiPaper-root": (e) => wt(e)
1261
1268
  },
1262
1269
  tabIndex: 0,
1263
1270
  children: t
@@ -1270,10 +1277,10 @@ var wt = {
1270
1277
  ]);
1271
1278
  return M(ee, {
1272
1279
  ref: t,
1273
- anchorEl: r,
1280
+ anchorEl: o,
1274
1281
  anchorPosition: n,
1275
1282
  label: i,
1276
- open: o,
1283
+ open: r,
1277
1284
  onMount: P,
1278
1285
  onOpening: v,
1279
1286
  onOpen: w,
@@ -1283,26 +1290,26 @@ var wt = {
1283
1290
  children: T
1284
1291
  });
1285
1292
  }));
1286
- Pt.displayName = "ExhibitFloatPanel";
1287
- var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
1288
- renderFloatPanel: Tt,
1289
- createPopupPanel: Mt,
1293
+ Tt.displayName = "ExhibitFloatPanel";
1294
+ var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
1295
+ renderFloatPanel: Rt,
1296
+ createPopupPanel: St,
1290
1297
  ...e
1291
- }), Dt = B($((e, o) => {
1292
- const { nestedChildren: r, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
1298
+ }), It = B($((e, r) => {
1299
+ const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
1293
1300
  disabled: i,
1294
1301
  createPopupPanel: ue((e) => {
1295
- if (!r || 0 === r.length) return M(C, {});
1302
+ if (!o || 0 === o.length) return M(C, {});
1296
1303
  const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
1297
- for (let e = 0; e < r.length; e++) {
1298
- const t = r[e];
1299
- t && s.push(M(Dt, {
1304
+ for (let e = 0; e < o.length; e++) {
1305
+ const t = o[e];
1306
+ t && s.push(M(It, {
1300
1307
  ...l,
1301
1308
  ...t
1302
1309
  }, e));
1303
1310
  }
1304
1311
  return S(t, {
1305
- ref: o,
1312
+ ref: r,
1306
1313
  sx: {
1307
1314
  display: "flex",
1308
1315
  flexDirection: "column",
@@ -1312,23 +1319,23 @@ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
1312
1319
  children: [
1313
1320
  "Children here",
1314
1321
  s,
1315
- M(Ht, { children: "Close other children" })
1322
+ M(Vt, { children: "Close other children" })
1316
1323
  ]
1317
1324
  });
1318
- }, [r]),
1325
+ }, [o]),
1319
1326
  ...l
1320
1327
  };
1321
- return M(n === Ct.Toolbar ? qt : Gt, { ...s });
1322
- })), It = { placement: "right-start" }, $t = B($((e, t) => {
1323
- const { children: o, sx: r, parentFloat: n, createPopupPanel: i, propsPopper: a = It, label: l, ...s } = e;
1324
- if (!z(o)) throw new Error("Must supply a child component to enable a context menu.");
1325
- const c = o, d = A(() => ({
1328
+ return M(n === Mt.Toolbar ? jt : Ut, { ...s });
1329
+ })), $t = { placement: "right-start" }, zt = B($((e, t) => {
1330
+ const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
1331
+ if (!z(r)) throw new Error("Must supply a child component to enable a context menu.");
1332
+ const c = r, d = A(() => ({
1326
1333
  ...c?.props,
1327
1334
  ...s,
1328
1335
  onContextMenu: (e) => {
1329
1336
  c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
1330
1337
  }
1331
- }), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: g } = fe({
1338
+ }), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: f } = ge({
1332
1339
  label: l ?? "contextMenu",
1333
1340
  propsPopper: a,
1334
1341
  parentFloat: n,
@@ -1338,24 +1345,24 @@ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
1338
1345
  });
1339
1346
  return O(() => {
1340
1347
  u ? h.open(0) : h.close(0);
1341
- }, [u]), S(C, { children: [D(o, d), g] });
1342
- })), zt = $((e, t) => {
1343
- const { slotProps: o, ...r } = e, { getPortalContainer: n, isFullscreen: i } = be();
1348
+ }, [u]), S(C, { children: [D(r, d), f] });
1349
+ })), Bt = $((e, t) => {
1350
+ const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
1344
1351
  return M(x, {
1345
1352
  ref: t,
1346
1353
  slotProps: {
1347
- ...o,
1354
+ ...r,
1348
1355
  popper: {
1349
1356
  container: i ? n : void 0,
1350
- ...o?.popper || {}
1357
+ ...r?.popper || {}
1351
1358
  }
1352
1359
  },
1353
- ...r
1360
+ ...o
1354
1361
  });
1355
1362
  });
1356
- zt.displayName = "SimpleTooltip";
1357
- var Bt = B((e) => {
1358
- const { modifier: o, sx: r, ...n } = e;
1363
+ Bt.displayName = "SimpleTooltip";
1364
+ var Lt = B((e) => {
1365
+ const { modifier: r, sx: o, ...n } = e;
1359
1366
  return M(t, {
1360
1367
  sx: {
1361
1368
  marginLeft: "1px",
@@ -1379,7 +1386,7 @@ var Bt = B((e) => {
1379
1386
  alignItems: "center",
1380
1387
  boxSizing: "content-box",
1381
1388
  overflow: "hidden",
1382
- ...r
1389
+ ...o
1383
1390
  },
1384
1391
  ...n,
1385
1392
  children: M(t, {
@@ -1390,13 +1397,13 @@ var Bt = B((e) => {
1390
1397
  textAlign: "center",
1391
1398
  "& *": { fontWeight: "500" }
1392
1399
  },
1393
- children: o
1400
+ children: r
1394
1401
  })
1395
1402
  });
1396
- }), Lt = (e, o, r = !1, n = null) => {
1403
+ }), Nt = (e, r, o = !1, n = null) => {
1397
1404
  if (Array.isArray(e)) {
1398
1405
  let i = [], a = e;
1399
- for (let e = 0; e < a.length; e++) i.push(Lt(a[e], o, r, n ?? "" + e));
1406
+ for (let e = 0; e < a.length; e++) i.push(Nt(a[e], r, o, n ?? "" + e));
1400
1407
  return M(t, {
1401
1408
  sx: {
1402
1409
  display: "flex",
@@ -1409,17 +1416,17 @@ var Bt = B((e) => {
1409
1416
  if (!e?.key) return null;
1410
1417
  const i = {};
1411
1418
  for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
1412
- const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? o("shortcut.modifier.cmd") : o("shortcut.modifier.ctrl");
1413
- return i?.[ne.Ctrl] && (a.push(M(Bt, { modifier: r ? "^" : M("div", {
1419
+ const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
1420
+ return i?.[ne.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
1414
1421
  style: { paddingRight: "1px" },
1415
1422
  children: l
1416
- }) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Bt, { modifier: r ? "⌥" : o("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Bt, { modifier: r ? "⇧" : M("div", {
1423
+ }) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
1417
1424
  style: { paddingRight: "1px" },
1418
- children: o("shortcut.modifier.shift")
1419
- }) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Bt, { modifier: r ? M("div", {
1425
+ children: r("shortcut.modifier.shift")
1426
+ }) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
1420
1427
  style: { paddingTop: "1px" },
1421
1428
  children: "⌘"
1422
- }) : o("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Bt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
1429
+ }) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
1423
1430
  sx: {
1424
1431
  display: "flex",
1425
1432
  alignItems: "center",
@@ -1428,17 +1435,17 @@ var Bt = B((e) => {
1428
1435
  },
1429
1436
  children: a
1430
1437
  }, n);
1431
- }, Nt = B($((e, o) => {
1432
- const { disabled: r = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, g = Ce();
1433
- let f = null;
1434
- i && (f = Lt(i, g, c));
1438
+ }, Ot = B($((e, r) => {
1439
+ const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = Ce();
1440
+ let g = null;
1441
+ i && (g = Nt(i, f, c));
1435
1442
  const [x, y] = H(null);
1436
1443
  O(() => {
1437
1444
  Promise.resolve(n).then((e) => {
1438
1445
  y(e);
1439
1446
  });
1440
1447
  }, [n]);
1441
- return M(zt, {
1448
+ return M(Bt, {
1442
1449
  slotProps: { popper: {
1443
1450
  sx: {
1444
1451
  "& .MuiTooltip-tooltip": { marginTop: "0px !important" },
@@ -1451,9 +1458,9 @@ var Bt = B((e) => {
1451
1458
  } },
1452
1459
  className: "tooltip-wrapper",
1453
1460
  tabIndex: -1,
1454
- title: !r && x ? S(t, {
1461
+ title: !o && x ? S(t, {
1455
1462
  sx: { maxWidth: `${s}px` },
1456
- ref: o,
1463
+ ref: r,
1457
1464
  children: [S(t, {
1458
1465
  sx: {
1459
1466
  display: "flex",
@@ -1467,9 +1474,9 @@ var Bt = B((e) => {
1467
1474
  sx: { flex: "1 1 100%" },
1468
1475
  children: x
1469
1476
  }),
1470
- a ? M(lt, { chips: a }) : null,
1471
- f ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
1472
- f
1477
+ a ? M(st, { chips: a }) : null,
1478
+ g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
1479
+ g
1473
1480
  ]
1474
1481
  }), l ? M(b, {
1475
1482
  variant: "caption",
@@ -1494,10 +1501,10 @@ var Bt = B((e) => {
1494
1501
  children: d
1495
1502
  })
1496
1503
  });
1497
- })), Ot = M(Z, {}), Et = M(Z, { iconKey: "Check" }), Ft = B($((e, o) => {
1498
- const { dense: r = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: g, onBlur: f, ...x } = e, [b, y] = H(!1), v = {
1504
+ })), Et = M(Z, {}), Ft = M(Z, { iconKey: "Check" }), At = B($((e, r) => {
1505
+ const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] = H(!1), v = {
1499
1506
  marginRight: "0px",
1500
- padding: r ? "2px" : "7px",
1507
+ padding: o ? "2px" : "7px",
1501
1508
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1502
1509
  color: (e) => p ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1503
1510
  border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
@@ -1517,14 +1524,13 @@ var Bt = B((e) => {
1517
1524
  },
1518
1525
  ...u
1519
1526
  }, w = {
1520
- "&:hover:not(.Mui-disabled, [disabled])": {
1527
+ "@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
1521
1528
  color: (e) => e.palette.text.primary,
1522
1529
  border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
1523
1530
  "&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1524
1531
  "> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
1525
- backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity),
1526
- "@media (hover: none)": { backgroundColor: "transparent" }
1527
- },
1532
+ backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity)
1533
+ } },
1528
1534
  "&.Mui-focusVisible": {
1529
1535
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1530
1536
  border: (e) => `1px solid ${e.palette?.primary?.main}`,
@@ -1535,21 +1541,21 @@ var Bt = B((e) => {
1535
1541
  i || (k = G.mergeContentful(v, w));
1536
1542
  const C = A(() => {
1537
1543
  let e = "function" == typeof l ? l() : l;
1538
- return null === e ? e : e || (void 0 === a ? Ot : Et);
1544
+ return null === e ? e : e || (void 0 === a ? Et : Ft);
1539
1545
  }, [l, a]);
1540
1546
  let P = S(d, {
1541
1547
  component: "div",
1542
- ref: o,
1548
+ ref: r,
1543
1549
  className: V({
1544
1550
  "Mui-focusVisible": b,
1545
1551
  "Mui-selected": a,
1546
1552
  "Mui-disabled": m
1547
1553
  }, h),
1548
1554
  onFocus: (e) => {
1549
- y(!0), g?.(e);
1555
+ y(!0), f?.(e);
1550
1556
  },
1551
1557
  onBlur: (e) => {
1552
- y(!1), f?.(e);
1558
+ y(!1), g?.(e);
1553
1559
  },
1554
1560
  size: "small",
1555
1561
  TouchRippleProps: { center: !1 },
@@ -1560,8 +1566,8 @@ var Bt = B((e) => {
1560
1566
  children: [C, c]
1561
1567
  });
1562
1568
  if (s) if (s.simple && s.label && !s.disabled) {
1563
- const { label: e, description: o, maxWidth: r, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
1564
- P = M(zt, {
1569
+ const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
1570
+ P = M(Bt, {
1565
1571
  disableInteractive: !0,
1566
1572
  title: e ?? "",
1567
1573
  ...p,
@@ -1570,20 +1576,20 @@ var Bt = B((e) => {
1570
1576
  children: P
1571
1577
  })
1572
1578
  });
1573
- } else P = M(Nt, {
1579
+ } else P = M(Ot, {
1574
1580
  children: P,
1575
1581
  ...s
1576
1582
  });
1577
1583
  return P;
1578
- })), At = M(Z, {}), Kt = {
1584
+ })), Kt = M(Z, {}), Wt = {
1579
1585
  marginLeft: "4px",
1580
1586
  marginRight: "4px",
1581
1587
  paddingLeft: "6px",
1582
1588
  paddingRight: "18px"
1583
- }, Wt = (e) => e.icon, Ht = B($((e, t) => {
1584
- const { icon: o = At, renderIcon: r = Wt, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: g, propsTooltip: f, chips: x, primary: b, ...y } = e, v = ge(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
1585
- const e = r?.({
1586
- icon: o,
1589
+ }, Ht = (e) => e.icon, Vt = B($((e, t) => {
1590
+ const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
1591
+ const e = o?.({
1592
+ icon: r,
1587
1593
  disabled: p,
1588
1594
  selected: a
1589
1595
  });
@@ -1599,9 +1605,9 @@ var Bt = B((e) => {
1599
1605
  children: e
1600
1606
  }) : null;
1601
1607
  }, [
1602
- r,
1603
- p,
1604
1608
  o,
1609
+ p,
1610
+ r,
1605
1611
  w,
1606
1612
  C,
1607
1613
  b,
@@ -1639,7 +1645,7 @@ var Bt = B((e) => {
1639
1645
  lineHeight: 1.5,
1640
1646
  paddingTop: "2px",
1641
1647
  paddingBottom: "2px",
1642
- ...Kt,
1648
+ ...Wt,
1643
1649
  borderRadius: "4px",
1644
1650
  fontSize: "0.875em",
1645
1651
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1647,22 +1653,22 @@ var Bt = B((e) => {
1647
1653
  "&.Mui-selected": { color: (e) => e.palette.text.primary },
1648
1654
  color: (e) => e.palette.text.secondary,
1649
1655
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1650
- ...g
1656
+ ...f
1651
1657
  },
1652
1658
  ...y,
1653
1659
  children: [
1654
1660
  T,
1655
1661
  u,
1656
- x ? M(lt, { chips: x }) : null
1662
+ x ? M(st, { chips: x }) : null
1657
1663
  ]
1658
1664
  });
1659
- return f && (R = M(Nt, {
1665
+ return g && (R = M(Ot, {
1660
1666
  children: R,
1661
1667
  placement: "right-start",
1662
- ...f
1668
+ ...g
1663
1669
  })), R;
1664
- })), Vt = B($((e, t) => {
1665
- const { children: o, sx: r, primary: n = !1, variant: i = "subtitle1", ...a } = e;
1670
+ })), qt = B($((e, t) => {
1671
+ const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
1666
1672
  return M(C, { children: M(b, {
1667
1673
  ref: t,
1668
1674
  variant: i,
@@ -1674,16 +1680,16 @@ var Bt = B((e) => {
1674
1680
  paddingTop: "subtitle1" === i ? "2px" : void 0,
1675
1681
  paddingBottom: "subtitle1" === i ? "2px" : void 0,
1676
1682
  color: (e) => n ? void 0 : e.palette.text.secondary,
1677
- ...r
1683
+ ...o
1678
1684
  },
1679
1685
  ...a,
1680
- children: o
1686
+ children: r
1681
1687
  }) });
1682
- })), qt = B($((e, o) => {
1683
- const { dense: r = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: g, renderQuickButton: f, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
1684
- const e = (e, t, o, r = o) => {
1688
+ })), jt = B($((e, r) => {
1689
+ const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
1690
+ const e = (e, t, r, o = r) => {
1685
1691
  const i = "boolean" == typeof n ? null : n[e];
1686
- return "function" == typeof i ? i(t) : i || (n ? o : r);
1692
+ return "function" == typeof i ? i(t) : i || (n ? r : o);
1687
1693
  };
1688
1694
  return {
1689
1695
  outline: {
@@ -1694,7 +1700,7 @@ var Bt = B((e) => {
1694
1700
  active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
1695
1701
  text: B.palette.text.icon ?? B.palette.action.active
1696
1702
  };
1697
- }, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = fe({
1703
+ }, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = ge({
1698
1704
  anchor: Q.current,
1699
1705
  label: i,
1700
1706
  createPopupPanel: p,
@@ -1754,7 +1760,7 @@ var Bt = B((e) => {
1754
1760
  backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1755
1761
  "@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
1756
1762
  }
1757
- } }, o = {
1763
+ } }, r = {
1758
1764
  maxHeight: "100%",
1759
1765
  "&.Mui-selected": {
1760
1766
  backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
@@ -1776,9 +1782,9 @@ var Bt = B((e) => {
1776
1782
  filter: "grayscale(65%)",
1777
1783
  opacity: ".8"
1778
1784
  },
1779
- padding: () => r ? "2px 3px" : "7px",
1785
+ padding: () => o ? "2px 3px" : "7px",
1780
1786
  marginRight: "0"
1781
- }, n = G.mergeContentful(o, e), i = G.mergeContentful(n, t), a = G.mergeContentful(o, e);
1787
+ }, n = G.mergeContentful(r, e), i = G.mergeContentful(n, t), a = G.mergeContentful(r, e);
1782
1788
  return {
1783
1789
  quickButtonStyling: n,
1784
1790
  openQuickButtonStyling: i,
@@ -1786,29 +1792,29 @@ var Bt = B((e) => {
1786
1792
  openCompoundStyling: G.mergeContentful(a, t)
1787
1793
  };
1788
1794
  }, [L, P]), Z = ue((e) => {
1789
- const { children: t, ref: o, ...r } = e;
1790
- return M(zt, {
1791
- ref: o,
1792
- ...r,
1795
+ const { children: t, ref: r, ...o } = e;
1796
+ return M(Bt, {
1797
+ ref: r,
1798
+ ...o,
1793
1799
  disableInteractive: !0,
1794
1800
  children: t
1795
1801
  });
1796
- }, []), ee = s || f, te = ee && (g?.tooltip || g?.createTooltip), oe = (e) => {
1797
- const { tooltip: t, createTooltip: o, sx: r, ...n } = e;
1802
+ }, []), ee = s || g, te = ee && (f?.tooltip || f?.createTooltip), re = (e) => {
1803
+ const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
1798
1804
  let i = M(d, {
1799
- sx: { ...r },
1805
+ sx: { ...o },
1800
1806
  component: "div",
1801
1807
  ...n
1802
1808
  });
1803
- return te ? (i = (o ?? Z)({
1809
+ return te ? (i = (r ?? Z)({
1804
1810
  title: N ? "" : t ?? x,
1805
1811
  children: M("div", { children: i })
1806
1812
  }, N), i) : i;
1807
1813
  }, ne = { onKeyDown: (e) => {
1808
- e.keyCode === re.Space ? _() : e.keyCode === re.F4 || e.keyCode === re.Down ? X.reference.open(0) : e.keyCode === re.Up && X.reference.close(0);
1814
+ e.keyCode === oe.Space ? _() : e.keyCode === oe.F4 || e.keyCode === oe.Down ? X.reference.open(0) : e.keyCode === oe.Up && X.reference.close(0);
1809
1815
  } };
1810
1816
  let ie = M(C, {});
1811
- const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? jt : null), a ? i : null), [
1817
+ const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
1812
1818
  y,
1813
1819
  i,
1814
1820
  a,
@@ -1816,7 +1822,7 @@ var Bt = B((e) => {
1816
1822
  ]);
1817
1823
  if (ee) {
1818
1824
  let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
1819
- const t = (f || oe)({
1825
+ const t = (g || re)({
1820
1826
  tabIndex: -1,
1821
1827
  disabled: v,
1822
1828
  size: "small",
@@ -1829,7 +1835,7 @@ var Bt = B((e) => {
1829
1835
  },
1830
1836
  disableRipple: !!T,
1831
1837
  children: S(C, { children: [ae, T] }),
1832
- ...g,
1838
+ ...f,
1833
1839
  className: V({
1834
1840
  "Mui-focusVisible": E || N,
1835
1841
  "Mui-selected": l,
@@ -1838,17 +1844,17 @@ var Bt = B((e) => {
1838
1844
  bordered: !0,
1839
1845
  left: !0,
1840
1846
  "hard-right": !0
1841
- }, g?.className),
1847
+ }, f?.className),
1842
1848
  sx: {
1843
1849
  ...J.quickButtonStyling,
1844
1850
  height: "100%",
1845
- ...g?.sx
1851
+ ...f?.sx
1846
1852
  }
1847
1853
  });
1848
- let o = St(!0, r, N);
1849
- te && (o = (b ?? Z)({
1854
+ let r = Pt(!0, o, N);
1855
+ te && (r = (b ?? Z)({
1850
1856
  title: N ? "" : x,
1851
- children: o
1857
+ children: r
1852
1858
  }, N)), ie = S(C, { children: [t, M(d, {
1853
1859
  ref: U,
1854
1860
  component: "div",
@@ -1862,8 +1868,8 @@ var Bt = B((e) => {
1862
1868
  divider: !0
1863
1869
  }),
1864
1870
  sx: {
1865
- paddingLeft: (r ? 0 : 2) + "px",
1866
- paddingRight: (r ? 0 : 2) + "px",
1871
+ paddingLeft: (o ? 0 : 2) + "px",
1872
+ paddingRight: (o ? 0 : 2) + "px",
1867
1873
  width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
1868
1874
  ...J.quickButtonStyling,
1869
1875
  ...e
@@ -1876,11 +1882,11 @@ var Bt = B((e) => {
1876
1882
  onMouseDown: (e) => {
1877
1883
  0 === e.button && (e.preventDefault(), _());
1878
1884
  },
1879
- children: o
1885
+ children: r
1880
1886
  })] });
1881
1887
  } else {
1882
1888
  let e = N ? J.openCompoundStyling : J.compoundStyling;
1883
- ie = M(Ft, {
1889
+ ie = M(At, {
1884
1890
  ref: U,
1885
1891
  tabIndex: -1,
1886
1892
  disabled: v,
@@ -1903,7 +1909,7 @@ var Bt = B((e) => {
1903
1909
  onMouseDown: (e) => {
1904
1910
  0 === e.button && (e.preventDefault(), _());
1905
1911
  },
1906
- children: St(!1, r, N)
1912
+ children: Pt(!1, o, N)
1907
1913
  });
1908
1914
  }
1909
1915
  const { className: le, sx: se, ...ce } = k;
@@ -1945,7 +1951,7 @@ var Bt = B((e) => {
1945
1951
  children: de
1946
1952
  }, N)), S(t, {
1947
1953
  className: V($, "popupIconButton"),
1948
- ref: o,
1954
+ ref: r,
1949
1955
  ...z,
1950
1956
  sx: {
1951
1957
  zIndex: E || N ? 2 : void 0,
@@ -1956,9 +1962,9 @@ var Bt = B((e) => {
1956
1962
  children: [de, X.component]
1957
1963
  });
1958
1964
  }));
1959
- qt.displayName = "ExhibitPopupIconButton";
1960
- var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
1961
- const { selected: r = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Qt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: g, tooltip: f = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
1965
+ jt.displayName = "ExhibitPopupIconButton";
1966
+ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
1967
+ const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
1962
1968
  if (!d) return;
1963
1969
  const { propsPopper: e } = d;
1964
1970
  return {
@@ -1966,7 +1972,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
1966
1972
  offsets: [-4, -2],
1967
1973
  ...e
1968
1974
  };
1969
- }, [d]), q = fe({
1975
+ }, [d]), q = ge({
1970
1976
  anchor: E.current,
1971
1977
  label: n,
1972
1978
  createPopupPanel: c,
@@ -1980,20 +1986,20 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
1980
1986
  }
1981
1987
  }), j = ue((e) => {
1982
1988
  0 === e.button && (a?.(e), q.reference.close(0));
1983
- }, [a]), Q = M(pt, {}), G = { "&.Mui-selected": {
1989
+ }, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
1984
1990
  color: (e) => e.palette.text.primary,
1985
1991
  "& svg * ": { color: (e) => e.palette.text.primary }
1986
1992
  } }, U = L((e) => {
1987
- const { children: t, ref: o, ...r } = e;
1988
- return M(zt, {
1989
- ref: o,
1990
- ...r,
1993
+ const { children: t, ref: r, ...o } = e;
1994
+ return M(Bt, {
1995
+ ref: r,
1996
+ ...o,
1991
1997
  disableInteractive: !0,
1992
1998
  children: t
1993
1999
  });
1994
- }, []), X = a || g, Y = (e) => {
1995
- const { tooltip: t, createTooltip: o, ...r } = e;
1996
- return S(Ht, {
2000
+ }, []), X = a || f, Y = (e) => {
2001
+ const { tooltip: t, createTooltip: r, ...o } = e;
2002
+ return S(Vt, {
1997
2003
  icon: b,
1998
2004
  disableRipple: !!v,
1999
2005
  className: V({ "Mui-hovered": z }),
@@ -2001,7 +2007,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2001
2007
  flex: "1 1 100%",
2002
2008
  ...G
2003
2009
  },
2004
- ...r,
2010
+ ...o,
2005
2011
  children: [n, v]
2006
2012
  });
2007
2013
  }, _ = {
@@ -2024,7 +2030,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2024
2030
  };
2025
2031
  let J = M(C, {});
2026
2032
  if (X) {
2027
- const e = (g || Y)({
2033
+ const e = (f || Y)({
2028
2034
  tabIndex: -1,
2029
2035
  disabled: y,
2030
2036
  onMouseEnter: () => {
@@ -2093,13 +2099,13 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2093
2099
  })
2094
2100
  })
2095
2101
  ] });
2096
- } else J = S(Ht, {
2102
+ } else J = S(Vt, {
2097
2103
  ref: F,
2098
2104
  tabIndex: -1,
2099
2105
  disabled: y,
2100
2106
  icon: b,
2101
2107
  className: V({
2102
- "Mui-selected": R || r,
2108
+ "Mui-selected": R || o,
2103
2109
  "Mui-hovered": z
2104
2110
  }),
2105
2111
  sx: {
@@ -2154,7 +2160,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2154
2160
  title: R ? "" : Z ?? h?.tooltip,
2155
2161
  children: Z
2156
2162
  }, R)), S(t, {
2157
- ref: o,
2163
+ ref: r,
2158
2164
  sx: {
2159
2165
  zIndex: I || R ? 2 : void 0,
2160
2166
  display: "flex",
@@ -2165,27 +2171,27 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2165
2171
  },
2166
2172
  children: [Z, q.component]
2167
2173
  });
2168
- })), Ut = B($((e, t) => {
2169
- const { onSelectToggle: o, selected: r = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
2170
- return M(Nt, {
2174
+ })), Xt = B($((e, t) => {
2175
+ const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
2176
+ return M(Ot, {
2171
2177
  label: n,
2172
2178
  shortcut: i,
2173
- children: M(Ft, {
2179
+ children: M(At, {
2174
2180
  ref: t,
2175
2181
  outlined: !1,
2176
2182
  tabIndex: a,
2177
- selected: r,
2183
+ selected: o,
2178
2184
  onMouseDown: (e) => {
2179
2185
  l && e.preventDefault();
2180
2186
  },
2181
2187
  onClick: () => {
2182
- o?.(!r);
2188
+ r?.(!o);
2183
2189
  },
2184
2190
  ...s
2185
2191
  })
2186
2192
  });
2187
- })), Xt = M(Z, {}), Yt = M(Z, { iconKey: "Check" }), _t = B($((e, o) => {
2188
- const { children: r, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
2193
+ })), Yt = M(Z, {}), _t = M(Z, { iconKey: "Check" }), Jt = B($((e, r) => {
2194
+ const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
2189
2195
  display: "flex",
2190
2196
  border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
2191
2197
  borderRadius: (e) => `${e.shape.borderRadius}px`,
@@ -2194,14 +2200,14 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2194
2200
  },
2195
2201
  ...a
2196
2202
  }), [a]);
2197
- let c = r;
2198
- return null === c && (c = Xt), c || (c = Yt), M(t, {
2199
- ref: o,
2203
+ let c = o;
2204
+ return null === c && (c = Yt), c || (c = _t), M(t, {
2205
+ ref: r,
2200
2206
  sx: s,
2201
2207
  ...l,
2202
2208
  children: c
2203
2209
  });
2204
- })), Jt = {
2210
+ })), Zt = {
2205
2211
  "dialog.cancel": "Cancel",
2206
2212
  "dialog.ok": "Ok",
2207
2213
  "lazyLoad.retry": "Retry",
@@ -2223,16 +2229,16 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
2223
2229
  "stackTrace.log": "Log error to console",
2224
2230
  "stackTrace.moreFrames": "... and {count} more frames",
2225
2231
  "window.close": "Close"
2226
- }, { DefaultCommandCatalogService: Zt } = Y, eo = !1;
2227
- function to() {
2228
- eo || (eo = !0, Zt.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Jt }));
2232
+ }, { DefaultCommandCatalogService: er } = Y, tr = !1;
2233
+ function rr() {
2234
+ tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
2229
2235
  }
2230
- to();
2231
- var oo = {
2236
+ rr();
2237
+ var or = {
2232
2238
  inline: null,
2233
2239
  popup: []
2234
- }, ro = B($((e, o) => {
2235
- const { children: r, sx: n, ...i } = e, a = Ce(), l = ye(o, () => ({}), []), [s, c] = ke(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, g] = H(null), [f, x] = H(null), b = f?.popup ?? null, y = W(0), [v, w] = H(!1), k = W(!1), C = ge(), T = W(C);
2240
+ }, nr = B($((e, r) => {
2241
+ const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, f] = H(null), [g, x] = H(null), b = g?.popup ?? null, y = W(0), [v, w] = H(!1), k = W(!1), C = fe(), T = W(C);
2236
2242
  T.current = C;
2237
2243
  const R = L(() => {
2238
2244
  T.current?.closeChild(0);
@@ -2245,72 +2251,72 @@ var oo = {
2245
2251
  }, []);
2246
2252
  F(() => {
2247
2253
  p.current = { refs: [] };
2248
- const e = [], o = P.toArray(r);
2254
+ const e = [], r = P.toArray(o);
2249
2255
  let n = 0;
2250
- o.forEach((r, i) => {
2256
+ r.forEach((o, i) => {
2251
2257
  e.push(M(t, {
2252
2258
  sx: {
2253
2259
  display: "flex",
2254
2260
  flex: "0 0 auto"
2255
2261
  },
2256
2262
  ref: (e) => {
2257
- n++, n === o.length && m();
2263
+ n++, n === r.length && m();
2258
2264
  const t = { current: null };
2259
2265
  t.current = e, p.current.refs[i] = t;
2260
2266
  },
2261
- children: r
2267
+ children: o
2262
2268
  }, i));
2263
- }), g(e);
2264
- }, [r, c]), F(() => {
2269
+ }), f(e);
2270
+ }, [o, c]), F(() => {
2265
2271
  if (!h) return;
2266
2272
  const e = p.current?.refs ?? [], t = e.length;
2267
2273
  if (!l.current || 0 === t) return void x(null);
2268
- const o = l.current?.getBoundingClientRect(), r = [], n = [], i = () => {
2269
- let o = z.current;
2270
- o ? o.disconnect() : o = z.current = new ResizeObserver((e) => {
2274
+ const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
2275
+ let r = z.current;
2276
+ r ? r.disconnect() : r = z.current = new ResizeObserver((e) => {
2271
2277
  for (let t = 0; t < e.length; t++) {
2272
- const o = e[t].target;
2273
- if (!o.isConnected) continue;
2274
- const r = B.current.get(o);
2275
- if (void 0 !== r && Math.abs(o.getBoundingClientRect().width - r) > .5) return void N();
2278
+ const r = e[t].target;
2279
+ if (!r.isConnected) continue;
2280
+ const o = B.current.get(r);
2281
+ if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
2276
2282
  }
2277
2283
  }), B.current.clear();
2278
- for (let r = 0; r < t; r++) {
2279
- const t = e[r]?.current;
2280
- t && (B.current.set(t, t.getBoundingClientRect().width), o.observe(t));
2284
+ for (let o = 0; o < t; o++) {
2285
+ const t = e[o]?.current;
2286
+ t && (B.current.set(t, t.getBoundingClientRect().width), r.observe(t));
2281
2287
  }
2282
2288
  };
2283
2289
  let a = 0, s = !1;
2284
- for (let r = 0; !s && r < t; r++) {
2285
- const t = e[r];
2290
+ for (let o = 0; !s && o < t; o++) {
2291
+ const t = e[o];
2286
2292
  if (!t) continue;
2287
2293
  if (!t.current) {
2288
2294
  s = !0;
2289
2295
  continue;
2290
2296
  }
2291
2297
  const n = t.current.getBoundingClientRect();
2292
- a += n?.width, a > o.width && (s = !0);
2298
+ a += n?.width, a > r.width && (s = !0);
2293
2299
  }
2294
- if (!s) return i(), k.current && R(), void x(oo);
2300
+ if (!s) return i(), k.current && R(), void x(or);
2295
2301
  const c = d.current?.getBoundingClientRect();
2296
2302
  c?.width && (y.current = c.width);
2297
- const u = o.width - y.current;
2303
+ const u = r.width - y.current;
2298
2304
  a = 0;
2299
- for (let o = 0; o < t; o++) {
2300
- const t = e[o];
2305
+ for (let r = 0; r < t; r++) {
2306
+ const t = e[r];
2301
2307
  let i = !1;
2302
2308
  if (t.current) {
2303
2309
  const e = t.current.getBoundingClientRect();
2304
2310
  a += e?.width, a <= u && (i = !0);
2305
2311
  }
2306
- i ? r.push(h[o]) : n.push(h[o]);
2312
+ i ? o.push(h[r]) : n.push(h[r]);
2307
2313
  }
2308
2314
  i(), x({
2309
- inline: r,
2315
+ inline: o,
2310
2316
  popup: n
2311
2317
  });
2312
2318
  }, [
2313
- r,
2319
+ o,
2314
2320
  h,
2315
2321
  c,
2316
2322
  u
@@ -2318,18 +2324,18 @@ var oo = {
2318
2324
  z.current?.disconnect(), z.current = null;
2319
2325
  }, []);
2320
2326
  const O = L((e) => {
2321
- const o = [], r = b?.length ?? 0;
2322
- for (let e = 0; e < r; e++) {
2327
+ const r = [], o = b?.length ?? 0;
2328
+ for (let e = 0; e < o; e++) {
2323
2329
  const t = P.toArray(b[e])[0];
2324
- P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, r) => {
2330
+ P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
2325
2331
  const n = t, i = {
2326
2332
  ...n.props,
2327
- key: `overflow-${e}-${r}${n.key ?? ""}`
2333
+ key: `overflow-${e}-${o}${n.key ?? ""}`
2328
2334
  }, a = D(n, i);
2329
- o.push(a);
2335
+ r.push(a);
2330
2336
  });
2331
2337
  }
2332
- return Mt({
2338
+ return St({
2333
2339
  ...e,
2334
2340
  children: M(t, {
2335
2341
  className: "overflow-palette-popup-panel",
@@ -2344,13 +2350,13 @@ var oo = {
2344
2350
  paddingRight: (e) => e.spacing(1),
2345
2351
  overflow: "hidden"
2346
2352
  },
2347
- children: o
2353
+ children: r
2348
2354
  })
2349
2355
  });
2350
2356
  }, [b]), E = Se([
2351
2357
  l,
2352
2358
  s,
2353
- o
2359
+ r
2354
2360
  ]);
2355
2361
  return S(t, {
2356
2362
  className: "overflow-palette",
@@ -2378,7 +2384,7 @@ var oo = {
2378
2384
  overflow: "hidden",
2379
2385
  alignItems: "center"
2380
2386
  },
2381
- children: f?.inline ?? h
2387
+ children: g?.inline ?? h
2382
2388
  }), M(t, {
2383
2389
  className: "overflow-palette-popup-button",
2384
2390
  sx: {
@@ -2386,12 +2392,12 @@ var oo = {
2386
2392
  flex: "0 0 auto",
2387
2393
  alignItems: "center"
2388
2394
  },
2389
- children: M(qt, {
2395
+ children: M(jt, {
2390
2396
  createPopupPanel: O,
2391
2397
  ref: d,
2392
2398
  onPopupOpen: I,
2393
2399
  onPopupClose: $,
2394
- createTooltip: ({ children: e }, t) => M(Nt, {
2400
+ createTooltip: ({ children: e }, t) => M(Ot, {
2395
2401
  label: a("overflow.more"),
2396
2402
  description: a("overflow.moreDescription"),
2397
2403
  disabled: t,
@@ -2401,102 +2407,102 @@ var oo = {
2401
2407
  })
2402
2408
  })]
2403
2409
  });
2404
- })), no = I(void 0), io = ({ error: e }) => {
2405
- const t = N(no);
2410
+ })), ir = I(void 0), ar = ({ error: e }) => {
2411
+ const t = N(ir);
2406
2412
  return O(() => {
2407
2413
  t?.(e);
2408
2414
  }, [e]), null;
2409
2415
  };
2410
- function ao(e) {
2411
- const t = pe(e, { renderError: (e) => M(io, { error: e }) });
2416
+ function lr(e) {
2417
+ const t = pe(e, { renderError: (e) => M(ar, { error: e }) });
2412
2418
  return (e) => {
2413
- const { onLoadError: o, ...r } = e;
2414
- return M(no.Provider, {
2415
- value: o,
2419
+ const { onLoadError: r, ...o } = e;
2420
+ return M(ir.Provider, {
2421
+ value: r,
2416
2422
  children: M(R, {
2417
2423
  fallback: null,
2418
- children: M(t, { ...r })
2424
+ children: M(t, { ...o })
2419
2425
  })
2420
2426
  });
2421
2427
  };
2422
2428
  }
2423
- function lo(e) {
2424
- const [t, o] = H(() => /* @__PURE__ */ new Map()), r = W(null);
2425
- null === r.current && (r.current = /* @__PURE__ */ new Map());
2429
+ function sr(e) {
2430
+ const [t, r] = H(() => /* @__PURE__ */ new Map()), o = W(null);
2431
+ null === o.current && (o.current = /* @__PURE__ */ new Map());
2426
2432
  const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
2427
2433
  return (s, c, d, p) => new Promise((u, m) => {
2428
2434
  let h = !1;
2429
2435
  void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
2430
- let g = !1;
2431
- if (void 0 !== d?.prewarm && (g = d.prewarm, delete (d = { ...d }).prewarm, g && (h = !0)), g && t.get(s)) return void u(t.get(s).element);
2432
- const f = {
2436
+ let f = !1;
2437
+ if (void 0 !== d?.prewarm && (f = d.prewarm, delete (d = { ...d }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
2438
+ const g = {
2433
2439
  ...e,
2434
2440
  ...d,
2435
2441
  ...p,
2436
2442
  onHide: () => {
2437
2443
  if (p?.onHide?.(), h) return;
2438
2444
  const e = t.get(s);
2439
- o((e) => (e.delete(s), e)), e?.id && l(e.id);
2445
+ r((e) => (e.delete(s), e)), e?.id && l(e.id);
2440
2446
  },
2441
2447
  onDone: (e) => {
2442
2448
  if (p?.onDone?.(e), h) return;
2443
- const r = t.get(s);
2444
- o((e) => (e.delete(s), e)), r?.id && a(r.id);
2449
+ const o = t.get(s);
2450
+ r((e) => (e.delete(s), e)), o?.id && a(o.id);
2445
2451
  },
2446
2452
  onShown: (e) => {
2447
- o((t) => {
2448
- const o = t.get(s);
2449
- return o && t.set(s, {
2450
- ...o,
2451
- element: e ?? o.element
2453
+ r((t) => {
2454
+ const r = t.get(s);
2455
+ return r && t.set(s, {
2456
+ ...r,
2457
+ element: e ?? r.element
2452
2458
  }), t;
2453
2459
  }), u(e);
2454
2460
  },
2455
2461
  onLoadError: (e) => {
2456
- const r = t.get(s);
2457
- o((e) => (e.delete(s), e)), r?.id && a(r.id), m(e);
2462
+ const o = t.get(s);
2463
+ r((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
2458
2464
  },
2459
2465
  disableAutoDestroy: h,
2460
2466
  revealToken: 0,
2461
- startHidden: g,
2467
+ startHidden: f,
2462
2468
  open: !0
2463
2469
  }, x = t.get(s);
2464
2470
  if (x) {
2465
2471
  const e = (x.revealToken ?? 0) + 1;
2466
2472
  i(x.id, {
2467
- ...f,
2473
+ ...g,
2468
2474
  revealToken: e
2469
- }), o((t) => {
2470
- const o = t.get(s);
2471
- return o && t.set(s, {
2472
- ...o,
2475
+ }), r((t) => {
2476
+ const r = t.get(s);
2477
+ return r && t.set(s, {
2478
+ ...r,
2473
2479
  revealToken: e
2474
2480
  }), t;
2475
2481
  }), u(x.element);
2476
2482
  return;
2477
2483
  }
2478
2484
  if (!c) return void m(`Invalid function for window '${s}'`);
2479
- let b = r.current.get(s);
2480
- b || (b = ao(c), r.current.set(s, b));
2481
- const y = n(b, f, { destroyOnClose: !h });
2482
- o((e) => (e.set(s, {
2485
+ let b = o.current.get(s);
2486
+ b || (b = lr(c), o.current.set(s, b));
2487
+ const y = n(b, g, { destroyOnClose: !h });
2488
+ r((e) => (e.set(s, {
2483
2489
  id: y.id,
2484
2490
  element: null,
2485
2491
  revealToken: 0
2486
- }), e)), g && u(null);
2492
+ }), e)), f && u(null);
2487
2493
  });
2488
2494
  }
2489
- to();
2490
- var so = {
2495
+ rr();
2496
+ var cr = {
2491
2497
  x: 0,
2492
2498
  y: 0
2493
- }, co = B($((e, t) => {
2494
- const { defaultPosition: o = so, PaperComponent: r = g, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
2499
+ }, dr = B($((e, t) => {
2500
+ const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
2495
2501
  left: 0,
2496
2502
  top: 0,
2497
2503
  right: s.width - l.width,
2498
2504
  bottom: s.height - l.height
2499
- } : null, [l, s]), [u, m] = H(null), [h, f] = H(null), x = u ?? o ?? null, b = A(() => x && p ? {
2505
+ } : null, [l, s]), [u, m] = H(null), [h, g] = H(null), x = u ?? r ?? null, b = A(() => x && p ? {
2500
2506
  x: Math.max(0, Math.min(x.x, p.right)),
2501
2507
  y: Math.max(0, Math.min(x.y, p.bottom))
2502
2508
  } : x, [x, p]), y = Se([d, t]);
@@ -2509,45 +2515,45 @@ var so = {
2509
2515
  enableUserSelectHack: !1,
2510
2516
  onStop: n,
2511
2517
  onStart: (e, t) => {
2512
- const o = e;
2513
- f({
2514
- x: (o.clientX ?? o.touches?.[0]?.clientX) - t.x,
2515
- y: (o.clientY ?? o.touches?.[0]?.clientY) - t.y
2518
+ const r = e;
2519
+ g({
2520
+ x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
2521
+ y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
2516
2522
  });
2517
2523
  },
2518
2524
  onDrag: (e, t) => {
2519
- const o = e;
2525
+ const r = e;
2520
2526
  if (!h) return;
2521
- const r = o.clientX ?? o.touches?.[0]?.clientX, n = o.clientY ?? o.touches?.[0]?.clientY;
2527
+ const o = r.clientX ?? r.touches?.[0]?.clientX, n = r.clientY ?? r.touches?.[0]?.clientY;
2522
2528
  m({
2523
- x: r - h.x,
2529
+ x: o - h.x,
2524
2530
  y: n - h.y
2525
2531
  });
2526
2532
  },
2527
- children: M(r, {
2533
+ children: M(o, {
2528
2534
  ref: y,
2529
2535
  ...c
2530
2536
  })
2531
2537
  });
2532
- })), po = {
2538
+ })), pr = {
2533
2539
  x: "50",
2534
2540
  y: "50"
2535
- }, uo = B($((o, r) => {
2541
+ }, ur = B($((r, o) => {
2536
2542
  const n = k({
2537
- props: o,
2543
+ props: r,
2538
2544
  name: "MuiDialog"
2539
2545
  }), i = w(), a = Ce(), s = {
2540
2546
  enter: .66 * i.transitions.duration.enteringScreen,
2541
2547
  exit: .66 * i.transitions.duration.leavingScreen
2542
- }, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: f, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = po, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
2548
+ }, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
2543
2549
  let Y = D.transition ?? c;
2544
- const _ = D.backdrop ?? e, J = D.paper ?? g;
2550
+ const _ = D.backdrop ?? e, J = D.paper ?? f;
2545
2551
  let ee = I.transition;
2546
2552
  R && (ee = {
2547
2553
  ...R,
2548
2554
  ...ee
2549
2555
  });
2550
- const te = I.backdrop, oe = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), ge = W(null), fe = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
2556
+ const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), fe = W(null), ge = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
2551
2557
  F(() => {
2552
2558
  if (!ne || U) return;
2553
2559
  const e = !!v;
@@ -2562,11 +2568,11 @@ var so = {
2562
2568
  }, [u]);
2563
2569
  F(() => {
2564
2570
  if (ne) return;
2565
- const e = ge.current, t = Pe.current;
2571
+ const e = fe.current, t = Pe.current;
2566
2572
  if (!e || !t) return;
2567
- const o = e.getBoundingClientRect(), r = t.getBoundingClientRect();
2568
- if (0 === o.width && 0 === o.height || 0 === r.width && 0 === r.height) return;
2569
- const n = o.height - r.height, i = o.width - r.width;
2573
+ const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
2574
+ if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
2575
+ const n = r.height - o.height, i = r.width - o.width;
2570
2576
  let a = .5 * i, l = .5 * n;
2571
2577
  "number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l = n * (parseFloat(L.y) / 100)), ie({
2572
2578
  x: a,
@@ -2576,11 +2582,11 @@ var so = {
2576
2582
  const [$e, ze] = H(!1), [Be, Le] = H(null), [Ne, Oe] = H(null), Ee = ue((e) => {
2577
2583
  if (Be) return Be.focus(e), !0;
2578
2584
  if (C) {
2579
- const t = fe.current?.querySelectorAll?.(C);
2585
+ const t = ge.current?.querySelectorAll?.(C);
2580
2586
  if (t && t.length > 0) return t[0]?.focus?.(e), !0;
2581
2587
  }
2582
- return fe.current?.focus?.(e), !1;
2583
- }, [Be, C]), Fe = ye(r, () => ({ focus: (e) => {
2588
+ return ge.current?.focus?.(e), !1;
2589
+ }, [Be, C]), Fe = ye(o, () => ({ focus: (e) => {
2584
2590
  Ee(e);
2585
2591
  } }), []), Ae = W(Q);
2586
2592
  O(() => {
@@ -2592,8 +2598,8 @@ var so = {
2592
2598
  m?.(null), j || ee?.onExited?.(e);
2593
2599
  },
2594
2600
  onExit: (e) => {
2595
- const t = Ne, o = "function" == typeof K ? K() : K;
2596
- t && !1 !== o && requestAnimationFrame(() => {
2601
+ const t = Ne, r = "function" == typeof K ? K() : K;
2602
+ t && !1 !== r && requestAnimationFrame(() => {
2597
2603
  Fe.current?.contains(document.activeElement) && t.focus();
2598
2604
  }), x?.(), de(!1), ee?.onExit?.(e);
2599
2605
  },
@@ -2601,13 +2607,13 @@ var so = {
2601
2607
  h?.(), ee?.onEntered?.(e, t);
2602
2608
  },
2603
2609
  onEntering: (e, t) => {
2604
- de(!0), f?.(Fe.current);
2610
+ de(!0), g?.(Fe.current);
2605
2611
  }
2606
2612
  };
2607
2613
  O(() => {
2608
2614
  se && Ee();
2609
2615
  }, [se]);
2610
- const We = Se([Pe, r]);
2616
+ const We = Se([Pe, o]);
2611
2617
  let He = M(y, {
2612
2618
  open: se,
2613
2619
  disableAutoFocus: !0,
@@ -2620,20 +2626,20 @@ var so = {
2620
2626
  ...Ke,
2621
2627
  children: M(t, {
2622
2628
  className: "MuiDialog-container",
2623
- ref: fe,
2629
+ ref: ge,
2624
2630
  tabIndex: 0,
2625
2631
  sx: {
2626
2632
  outline: "none",
2627
2633
  position: "relative"
2628
2634
  },
2629
2635
  onKeyDown: (e) => {
2630
- e.which === re.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
2636
+ e.which === oe.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
2631
2637
  },
2632
- children: S(co, {
2638
+ children: S(dr, {
2633
2639
  ref: We,
2634
2640
  className: V({ "Mui-focusVisible": $e }, z, "draggable"),
2635
2641
  sx: {
2636
- "& *": (e) => vt(e),
2642
+ "& *": (e) => wt(e),
2637
2643
  pointerEvents: "auto",
2638
2644
  userSelect: "none",
2639
2645
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
@@ -2649,7 +2655,7 @@ var so = {
2649
2655
  rootSize: he,
2650
2656
  PaperComponent: J,
2651
2657
  ...X,
2652
- ...oe,
2658
+ ...re,
2653
2659
  children: [p ? M(l, {
2654
2660
  className: V({ "Mui-selected": $e }, "draggable-title"),
2655
2661
  sx: {
@@ -2685,7 +2691,7 @@ var so = {
2685
2691
  paddingLeft: (e) => e.spacing(1)
2686
2692
  },
2687
2693
  children: p
2688
- }), M(Nt, {
2694
+ }), M(Ot, {
2689
2695
  label: a("window.close"),
2690
2696
  children: M(d, {
2691
2697
  "aria-label": "close",
@@ -2721,7 +2727,7 @@ var so = {
2721
2727
  const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
2722
2728
  Fe,
2723
2729
  me,
2724
- ge
2730
+ fe
2725
2731
  ]);
2726
2732
  return De(S(t, {
2727
2733
  className: V("MuiModal-root", je),
@@ -2739,43 +2745,43 @@ var so = {
2739
2745
  },
2740
2746
  ref: Ge,
2741
2747
  onPointerDown: (e) => {
2742
- $e && (e.target === fe.current || e.target.tabIndex < 0) && fe.current?.contains(document.activeElement);
2748
+ $e && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
2743
2749
  },
2744
2750
  onContextMenu: (e) => {
2745
2751
  e.isPropagationStopped() || e.preventDefault();
2746
2752
  },
2747
2753
  onFocus: (e) => {
2748
- !$e && (e.target === fe.current || e.target.tabIndex < 0) && setTimeout(() => {
2754
+ !$e && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
2749
2755
  Ee();
2750
- }, 100), ze(!0), fe.current?.contains(e.target) && e.target !== fe.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
2756
+ }, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
2751
2757
  },
2752
2758
  onBlur: (e) => {
2753
2759
  Fe?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
2754
2760
  },
2755
2761
  children: [Ve, He]
2756
2762
  }), qe(), Te);
2757
- })), mo = ["Ok", "Cancel"], ho = {
2763
+ })), mr = ["Ok", "Cancel"], hr = {
2758
2764
  [ie.Info]: "ValidationInformation",
2759
2765
  [ie.Warning]: "ValidationWarning",
2760
2766
  [ie.Error]: "ValidationStop",
2761
2767
  [ie.Success]: "Check"
2762
- }, go = (e) => "string" == typeof e ? e : e.id ?? e, fo = (e, t) => void 0 !== t && go(e) === go(t), xo = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), bo = B($((e, r) => {
2763
- const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mo, autoFocusSel: g = ".defaultOption", defaultOption: f = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
2764
- const e = "string" == typeof c ? c : c ? void 0 : ho[s];
2768
+ }, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = B($((e, o) => {
2769
+ const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
2770
+ const e = "string" == typeof c ? c : c ? void 0 : hr[s];
2765
2771
  return e ? M(Z, {
2766
2772
  iconKey: e,
2767
2773
  size: 32,
2768
2774
  ariaHidden: !0
2769
2775
  }) : c ?? null;
2770
2776
  }, [c, s]), z = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? I("dialog.ok") : "Cancel" === e ? I("dialog.cancel") : e, [I]), B = W(null), [L, N] = H(null), O = ue(async (e) => {
2771
- const t = go(e);
2777
+ const t = fr(e);
2772
2778
  if (null !== L) return;
2773
- if (xo(e)) return;
2774
- const o = fo(e, x);
2775
- let r;
2779
+ if (xr(e)) return;
2780
+ const r = gr(e, x);
2781
+ let o;
2776
2782
  try {
2777
- if (N(t), r = !!o || (await Promise.resolve(m?.(t)) ?? !0), !0 !== r) return;
2778
- await Promise.resolve(p?.(t, o, fo(e, f))), u?.(t);
2783
+ if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
2784
+ await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
2779
2785
  } catch (e) {} finally {
2780
2786
  N(null);
2781
2787
  }
@@ -2784,21 +2790,21 @@ var so = {
2784
2790
  u,
2785
2791
  m,
2786
2792
  x,
2787
- f,
2793
+ g,
2788
2794
  L
2789
2795
  ]), E = ue((e, t) => {
2790
2796
  setTimeout(() => {
2791
- O(f);
2797
+ O(g);
2792
2798
  }, 180);
2793
- }, [O, f]), F = ue(() => {
2794
- p?.(go(x), !0, !1), d?.(), u?.(null);
2799
+ }, [O, g]), F = ue(() => {
2800
+ p?.(fr(x), !0, !1), d?.(), u?.(null);
2795
2801
  }, [
2796
2802
  p,
2797
2803
  x,
2798
2804
  d,
2799
2805
  u
2800
- ]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, r) => {
2801
- const i = fo(e, x), a = {
2806
+ ]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, o) => {
2807
+ const i = gr(e, x), a = {
2802
2808
  className: t ? "defaultOption" : "action",
2803
2809
  type: t ? "submit" : "button",
2804
2810
  style: { minWidth: "75px" },
@@ -2806,12 +2812,12 @@ var so = {
2806
2812
  i ? F() : t || O(e);
2807
2813
  }
2808
2814
  }, l = "string" != typeof e ? e.renderButton : void 0;
2809
- if (l) return M(T, { children: l(a, t) }, `action:${r}`);
2810
- const s = null !== L && fo(e, L), c = {
2815
+ if (l) return M(T, { children: l(a, t) }, `action:${o}`);
2816
+ const s = null !== L && gr(e, L), c = {
2811
2817
  className: t ? "defaultOption" : "action",
2812
2818
  variant: t ? "contained" : "outlined",
2813
2819
  size: "small",
2814
- disabled: !i && (K || xo(e)) || null !== L && !s,
2820
+ disabled: !i && (K || xr(e)) || null !== L && !s,
2815
2821
  color: "primary",
2816
2822
  ...a
2817
2823
  };
@@ -2821,7 +2827,7 @@ var so = {
2821
2827
  e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
2822
2828
  };
2823
2829
  }
2824
- return S(o, {
2830
+ return S(r, {
2825
2831
  ...c,
2826
2832
  children: [M("div", {
2827
2833
  style: { visibility: s ? "hidden" : void 0 },
@@ -2839,10 +2845,10 @@ var so = {
2839
2845
  transition: "opacity 120ms"
2840
2846
  }
2841
2847
  }) : null]
2842
- }, `action:${r}`);
2848
+ }, `action:${o}`);
2843
2849
  }, [
2844
2850
  h,
2845
- f,
2851
+ g,
2846
2852
  x,
2847
2853
  P,
2848
2854
  z,
@@ -2850,24 +2856,24 @@ var so = {
2850
2856
  ]), j = A(() => {
2851
2857
  const e = [];
2852
2858
  for (let t = 0; t < h.length; t++) {
2853
- const o = h[t], r = void 0 !== f ? fo(o, f) : 0 === t;
2854
- e.push(V(o, r, t));
2859
+ const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
2860
+ e.push(V(r, o, t));
2855
2861
  }
2856
2862
  return e;
2857
2863
  }, [
2858
2864
  h,
2859
- f,
2865
+ g,
2860
2866
  P,
2861
2867
  I,
2862
2868
  L
2863
2869
  ]);
2864
- return M(uo, {
2870
+ return M(ur, {
2865
2871
  onCancel: F,
2866
2872
  initialPosition: { y: "touch" === $e ? "15" : "35" },
2867
2873
  onDone: u,
2868
- autoFocusSel: g,
2874
+ autoFocusSel: f,
2869
2875
  isModal: !0,
2870
- ref: r,
2876
+ ref: o,
2871
2877
  ...w,
2872
2878
  children: M(ze, {
2873
2879
  ...k,
@@ -2879,17 +2885,17 @@ var so = {
2879
2885
  onKeyDown: (e) => {
2880
2886
  if (e.isDefaultPrevented()) return;
2881
2887
  e.stopPropagation();
2882
- let t = null, o = null;
2883
- const r = e.which === re.Escape && x;
2884
- if (r) {
2888
+ let t = null, r = null;
2889
+ const o = e.which === oe.Escape && x;
2890
+ if (o) {
2885
2891
  if (null !== L) return;
2886
- t = x, o = D;
2892
+ t = x, r = D;
2887
2893
  } else {
2888
2894
  if (K || null !== L) return;
2889
- e.which === re.Enter && (t = f ?? h[0], o = R);
2895
+ e.which === oe.Enter && (t = g ?? h[0], r = R);
2890
2896
  }
2891
- t && (o?.current?.start(e, { center: !1 }), setTimeout(() => {
2892
- o?.current?.stop(e), r && F();
2897
+ t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
2898
+ r?.current?.stop(e), o && F();
2893
2899
  }, 180));
2894
2900
  },
2895
2901
  children: S(t, {
@@ -2931,38 +2937,38 @@ var so = {
2931
2937
  })
2932
2938
  })
2933
2939
  });
2934
- })), yo = (e) => {
2940
+ })), yr = (e) => {
2935
2941
  const { showModal: t } = Re();
2936
- return (o) => new Promise((r) => {
2937
- const n = t(bo, {
2942
+ return (r) => new Promise((o) => {
2943
+ const n = t(br, {
2938
2944
  ...e,
2939
- ...o,
2945
+ ...r,
2940
2946
  onOption(e, t, n) {
2941
- o?.onOption?.(e, t, n), r(e);
2947
+ r?.onOption?.(e, t, n), o(e);
2942
2948
  },
2943
2949
  onDone: () => {
2944
- o?.onDone?.(), n.hide();
2950
+ r?.onDone?.(), n.hide();
2945
2951
  }
2946
2952
  });
2947
2953
  });
2948
- }, vo = ao(X("utils-mui:inputDialog", () => import("./CDbyr3-seMLR2Y_3.mjs")).load), wo = (e) => {
2954
+ }, vr = lr(X("utils-mui:inputDialog", () => import("./nxST0XJIy9Y6DTRo.mjs")).load), wr = (e) => {
2949
2955
  const { showModal: t } = Re();
2950
- return (o) => {
2951
- const { defaultOption: r = o.options?.[0], cancelOption: n = "Cancel", ...i } = o;
2952
- return new Promise((o, a) => {
2953
- const l = t(vo, {
2956
+ return (r) => {
2957
+ const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
2958
+ return new Promise((r, a) => {
2959
+ const l = t(vr, {
2954
2960
  ...e,
2955
- defaultOption: r,
2961
+ defaultOption: o,
2956
2962
  cancelOption: n,
2957
2963
  ...i,
2958
- onOption(e, t, r) {
2959
- i?.onOption?.(e, t, r), o({
2964
+ onOption(e, t, o) {
2965
+ i?.onOption?.(e, t, o), r({
2960
2966
  input: "",
2961
2967
  option: e
2962
2968
  });
2963
2969
  },
2964
2970
  onInput(e, t) {
2965
- i?.onInput?.(e, t), o({
2971
+ i?.onInput?.(e, t), r({
2966
2972
  input: e,
2967
2973
  option: t
2968
2974
  });
@@ -2976,9 +2982,9 @@ var so = {
2976
2982
  });
2977
2983
  });
2978
2984
  };
2979
- }, ko = B($((e, t) => {
2980
- const { commandKey: o, command: r, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(o ?? []), c = r ?? s, d = c?.getShortcut();
2981
- return M(Nt, {
2985
+ }, kr = B($((e, t) => {
2986
+ const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
2987
+ return M(Ot, {
2982
2988
  ref: t,
2983
2989
  label: void 0 !== n ? c?.getLabel() : "",
2984
2990
  shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
@@ -2994,11 +3000,11 @@ var so = {
2994
3000
  children: a
2995
3001
  })
2996
3002
  });
2997
- })), Co = Le;
2998
- function Mo() {
3003
+ })), Cr = Le;
3004
+ function Mr() {
2999
3005
  const e = W(null);
3000
3006
  return {
3001
- ripple: A(() => M(Co, {
3007
+ ripple: A(() => M(Cr, {
3002
3008
  ref: e,
3003
3009
  center: !1
3004
3010
  }), []),
@@ -3007,19 +3013,19 @@ function Mo() {
3007
3013
  }, [])
3008
3014
  };
3009
3015
  }
3010
- var So = M(Z, {}), Po = B($((e, t) => {
3011
- const { commandKey: o, command: r, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: g } = Mo(), f = A(() => ({ onExecute() {
3012
- g();
3013
- } }), [g]), [x] = he(o ?? [], f), b = r ?? x, y = L((e) => {
3016
+ var Sr = M(Z, {}), Pr = B($((e, t) => {
3017
+ const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
3018
+ f();
3019
+ } }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = L((e) => {
3014
3020
  0 === e.button && e.preventDefault();
3015
3021
  }, []), v = L(async (e) => {
3016
3022
  0 === e.button && b && await b.execute(p);
3017
3023
  }, [b, p]), w = L((e) => {
3018
- e.keyCode !== re.Enter && e.keyCode !== re.Space || b?.execute(p);
3024
+ e.keyCode !== oe.Enter && e.keyCode !== oe.Space || b?.execute(p);
3019
3025
  }, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
3020
- if (null === i) return So;
3026
+ if (null === i) return Sr;
3021
3027
  let e;
3022
- return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : So;
3028
+ return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : Sr;
3023
3029
  }, [
3024
3030
  b,
3025
3031
  n,
@@ -3030,7 +3036,7 @@ var So = M(Z, {}), Po = B($((e, t) => {
3030
3036
  tabIndex: 0,
3031
3037
  ref: t,
3032
3038
  selected: !!C,
3033
- icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(_t, {
3039
+ icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
3034
3040
  selected: C ?? !1,
3035
3041
  children: P
3036
3042
  }),
@@ -3041,17 +3047,17 @@ var So = M(Z, {}), Po = B($((e, t) => {
3041
3047
  onKeyDown: w
3042
3048
  };
3043
3049
  let R;
3044
- return R = c === _.Menuitem ? S(Ht, {
3050
+ return R = c === _.Menuitem ? S(Vt, {
3045
3051
  ...m,
3046
3052
  ...T,
3047
3053
  children: [a ?? b?.getLabel(n), h]
3048
- }) : M(Ft, {
3054
+ }) : M(At, {
3049
3055
  ...m,
3050
3056
  ...T,
3051
3057
  children: h
3052
- }), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(ko, {
3053
- commandKey: o,
3054
- command: r,
3058
+ }), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(kr, {
3059
+ commandKey: r,
3060
+ command: o,
3055
3061
  disabled: k,
3056
3062
  placement: c === _.Toolbar ? "bottom-start" : "right-start",
3057
3063
  shortcut: d,
@@ -3059,11 +3065,11 @@ var So = M(Z, {}), Po = B($((e, t) => {
3059
3065
  children: R
3060
3066
  }), R) : R;
3061
3067
  }));
3062
- Po.displayName = "CommandButton";
3063
- var To = M(Z, {}), Ro = B($((e, t) => {
3064
- const { commandKey: o, groupKey: r, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: g, trigger: f } = Mo(), x = A(() => ({ onExecute() {
3065
- f();
3066
- } }), [f]), b = he(o ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
3068
+ Pr.displayName = "CommandButton";
3069
+ var Tr = M(Z, {}), Rr = B($((e, t) => {
3070
+ const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
3071
+ g();
3072
+ } }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
3067
3073
  let e = v;
3068
3074
  if (c) try {
3069
3075
  e = c(v);
@@ -3082,10 +3088,10 @@ var To = M(Z, {}), Ro = B($((e, t) => {
3082
3088
  w(y());
3083
3089
  }, [b?.getState()]);
3084
3090
  const P = A(() => {
3085
- if (null === n) return To;
3091
+ if (null === n) return Tr;
3086
3092
  let e;
3087
- return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : To;
3088
- }, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(r) : "function" == typeof a ? a() : a, [a, b?.getLabel(r)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
3093
+ return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : Tr;
3094
+ }, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
3089
3095
  ...h,
3090
3096
  sx: {
3091
3097
  paddingTop: "0px",
@@ -3132,14 +3138,14 @@ var To = M(Z, {}), Ro = B($((e, t) => {
3132
3138
  e.target?.select();
3133
3139
  },
3134
3140
  onKeyDown: (e) => {
3135
- if (e.which === re.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
3136
- else if (e.which === re.Escape) y() !== v && (w(y()), setTimeout(() => {
3141
+ if (e.which === oe.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
3142
+ else if (e.which === oe.Escape) y() !== v && (w(y()), setTimeout(() => {
3137
3143
  e.target?.select();
3138
3144
  }, 0), e.stopPropagation(), e.preventDefault());
3139
3145
  else {
3140
3146
  if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
3141
3147
  if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
3142
- if (e.which === re.Space) return void e.preventDefault();
3148
+ if (e.which === oe.Space) return void e.preventDefault();
3143
3149
  }
3144
3150
  },
3145
3151
  onBlur: () => {
@@ -3168,31 +3174,31 @@ var To = M(Z, {}), Ro = B($((e, t) => {
3168
3174
  0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
3169
3175
  },
3170
3176
  onKeyDown: (e) => {
3171
- e.keyCode !== re.Enter && e.keyCode !== re.Tab || C();
3177
+ e.keyCode !== oe.Enter && e.keyCode !== oe.Tab || C();
3172
3178
  }
3173
3179
  };
3174
3180
  let $;
3175
- return $ = l === _.Menuitem ? S(Ht, {
3181
+ return $ = l === _.Menuitem ? S(Vt, {
3176
3182
  ...h,
3177
3183
  ...I,
3178
3184
  children: [
3179
3185
  T,
3180
3186
  D,
3181
- g
3187
+ f
3182
3188
  ]
3183
- }) : M(Ft, {
3189
+ }) : M(At, {
3184
3190
  ...h,
3185
3191
  ...I,
3186
- children: g
3187
- }), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(ko, {
3188
- commandKey: o,
3192
+ children: f
3193
+ }), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
3194
+ commandKey: r,
3189
3195
  placement: l === _.Toolbar ? "bottom-start" : "right-start",
3190
3196
  children: $
3191
3197
  }), $) : $;
3192
- })), Do = B($((e, t) => {
3193
- const { variant: o = _.Toolbar, quickCommand: r, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: g } = Mo(), f = A(() => ({ onExecute() {
3194
- g();
3195
- } }), [g]), [x] = he(r ?? [], f), { label: b, icon: y } = A(() => {
3198
+ })), Dr = B($((e, t) => {
3199
+ const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
3200
+ f();
3201
+ } }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
3196
3202
  let e = null;
3197
3203
  l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
3198
3204
  let t = s;
@@ -3205,101 +3211,101 @@ var To = M(Z, {}), Ro = B($((e, t) => {
3205
3211
  l,
3206
3212
  s
3207
3213
  ]), v = {
3208
- disabled: a || !(x || !r),
3214
+ disabled: a || !(x || !o),
3209
3215
  ripple: h,
3210
3216
  onQuickClick: n,
3211
3217
  tooltip: d,
3212
3218
  label: b,
3213
3219
  icon: y
3214
3220
  };
3215
- (b || d) && (v.createTooltip = ({ children: e }, t) => M(Nt, {
3221
+ (b || d) && (v.createTooltip = ({ children: e }, t) => M(Ot, {
3216
3222
  label: b,
3217
3223
  description: d,
3218
3224
  disabled: t,
3219
3225
  children: e
3220
3226
  }));
3221
3227
  const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
3222
- return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(ko, {
3223
- commandKey: r,
3224
- placement: t ?? o === _.Toolbar ? "bottom-start" : "right-start",
3228
+ return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(kr, {
3229
+ commandKey: o,
3230
+ placement: t ?? r === _.Toolbar ? "bottom-start" : "right-start",
3225
3231
  disabled: n,
3226
3232
  children: e
3227
- }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : r && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, o === _.Toolbar ? M(qt, {
3233
+ }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, r === _.Toolbar ? M(jt, {
3228
3234
  ...m,
3229
3235
  ...v,
3230
3236
  ref: t
3231
- }) : M(Gt, {
3237
+ }) : M(Ut, {
3232
3238
  ...m,
3233
3239
  ...v,
3234
3240
  ref: t
3235
3241
  });
3236
3242
  }));
3237
- function Io(e, t = {}) {
3238
- const { variant: o, dividerOrientation: r = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
3239
- void 0 !== o && (c.variant = o);
3243
+ function Ir(e, t = {}) {
3244
+ const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
3245
+ void 0 !== r && (c.variant = r);
3240
3246
  const d = { ...l };
3241
- void 0 !== o && (d.variant = o);
3242
- const p = (e, t, o) => {
3243
- const r = {
3247
+ void 0 !== r && (d.variant = r);
3248
+ const p = (e, t, r) => {
3249
+ const o = {
3244
3250
  ...c,
3245
3251
  groupKey: n,
3246
3252
  commandKey: e,
3247
3253
  commandState: void 0 !== t ? t : i,
3248
- label: o?.getLabel?.(n),
3249
- icon: o?.getIcon?.(n),
3250
- showLabel: o?.showLabel
3254
+ label: r?.getLabel?.(n),
3255
+ icon: r?.getIcon?.(n),
3256
+ showLabel: r?.showLabel
3251
3257
  };
3252
- return (o?.render ? o.render(r, n) : M(Po, { ...r })) ?? null;
3258
+ return (r?.render ? r.render(o, n) : M(Pr, { ...o })) ?? null;
3253
3259
  }, u = (e) => {
3254
- const t = "string" == typeof e ? e : e.key, o = "string" == typeof e ? void 0 : e;
3255
- if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($o, {
3260
+ const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
3261
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($r, {
3256
3262
  ...d,
3257
3263
  members: e.members,
3258
3264
  icon: e.getIcon?.(),
3259
3265
  label: e.getLabel?.(),
3260
3266
  tooltip: e.getDescription?.()
3261
3267
  }) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
3262
- const r = s?.get(t) ?? null;
3263
- return r ? ((e, t, o) => {
3264
- if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($o, {
3268
+ const o = s?.get(t) ?? null;
3269
+ return o ? ((e, t, r) => {
3270
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($r, {
3265
3271
  ...d,
3266
3272
  groupKey: t,
3267
- icon: o?.getIcon?.(t),
3268
- label: o?.getLabel?.(t),
3269
- showLabel: o?.showLabel
3273
+ icon: r?.getIcon?.(t),
3274
+ label: r?.getLabel?.(t),
3275
+ showLabel: r?.showLabel
3270
3276
  });
3271
3277
  if (e.render) return e.render({ ...d }, n) ?? null;
3272
- const r = o ? {
3278
+ const o = r ? {
3273
3279
  ...e,
3274
- ...o
3280
+ ...r
3275
3281
  } : e;
3276
- return p(e.defaultKey ?? t, r.state, r);
3277
- })(r, t, o) : p(t, o?.state, o);
3282
+ return p(e.defaultKey ?? t, o.state, o);
3283
+ })(o, t, r) : p(t, r?.state, r);
3278
3284
  }, m = [];
3279
- let h = 0, g = !1, f = !1;
3285
+ let h = 0, f = !1, g = !1;
3280
3286
  const x = e ?? [];
3281
3287
  for (let e = 0; e < x.length; e++) {
3282
3288
  const t = x[e];
3283
3289
  if (!t || "-" === t) {
3284
- f && (g = !0);
3290
+ g && (f = !0);
3285
3291
  continue;
3286
3292
  }
3287
- const o = u(t);
3288
- o && (g && (m.push(M(He, { orientation: r }, "member-" + h++)), g = !1), m.push(D(o, { key: "member-" + h++ })), f = !0);
3293
+ const r = u(t);
3294
+ r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(D(r, { key: "member-" + h++ })), g = !0);
3289
3295
  }
3290
3296
  return m;
3291
3297
  }
3292
- Do.displayName = "CommandPopupButton";
3293
- var $o = B($((e, t) => {
3294
- const { groupKey: o, members: r, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, g = !r && o ? h.get(o) : null, f = g && Array.isArray(g.members) ? g : null, x = A(() => r ?? (o ? h.resolveMembers(o) : null) ?? null, [
3295
- r,
3298
+ Dr.displayName = "CommandPopupButton";
3299
+ var $r = B($((e, t) => {
3300
+ const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
3296
3301
  o,
3302
+ r,
3297
3303
  h
3298
- ]), b = o, y = i ?? f?.defaultKey, v = a ?? f?.getIcon?.(b), w = l ?? f?.getLabel?.(b), k = s ?? f?.showLabel, C = c ?? f?.getDescription?.(b), S = A(() => {
3304
+ ]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), w = l ?? g?.getLabel?.(b), k = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
3299
3305
  const e = [], t = x ?? [];
3300
- for (let o = 0; o < t.length; o++) {
3301
- const r = t[o];
3302
- r && "-" !== r && ("string" == typeof r ? e.push(r) : r.key && e.push(r.key));
3306
+ for (let r = 0; r < t.length; r++) {
3307
+ const o = t[r];
3308
+ o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
3303
3309
  }
3304
3310
  return e;
3305
3311
  }, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
@@ -3311,7 +3317,7 @@ var $o = B($((e, t) => {
3311
3317
  }, [P]), R = L((e) => {
3312
3318
  const t = {};
3313
3319
  void 0 !== p && (t.disabled = p);
3314
- const o = Io(x, {
3320
+ const r = Ir(x, {
3315
3321
  variant: _.Menuitem,
3316
3322
  dividerOrientation: "horizontal",
3317
3323
  groupKey: b,
@@ -3320,9 +3326,9 @@ var $o = B($((e, t) => {
3320
3326
  propsCommandPopup: t,
3321
3327
  registry: h
3322
3328
  });
3323
- return Mt({
3329
+ return St({
3324
3330
  ...e,
3325
- children: o
3331
+ children: r
3326
3332
  });
3327
3333
  }, [
3328
3334
  x,
@@ -3331,7 +3337,7 @@ var $o = B($((e, t) => {
3331
3337
  d,
3332
3338
  p
3333
3339
  ]);
3334
- return x ? M(Do, {
3340
+ return x ? M(Dr, {
3335
3341
  ref: t,
3336
3342
  quickCommand: y,
3337
3343
  icon: v,
@@ -3344,12 +3350,12 @@ var $o = B($((e, t) => {
3344
3350
  ...u
3345
3351
  }) : null;
3346
3352
  }));
3347
- $o.displayName = "CommandGroup";
3348
- var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3349
- const { commandKey: o, label: r, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(o ?? []), c = A(() => {
3353
+ $r.displayName = "CommandGroup";
3354
+ var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3355
+ const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
3350
3356
  if (void 0 !== i) return i;
3351
3357
  let e = s?.getIcon(n);
3352
- return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zo;
3358
+ return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zr;
3353
3359
  }, [
3354
3360
  i,
3355
3361
  n,
@@ -3374,32 +3380,32 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3374
3380
  paddingRight: (e) => e.spacing(.25),
3375
3381
  fontSize: "inherit"
3376
3382
  },
3377
- children: r ?? s?.getLabel(n)
3383
+ children: o ?? s?.getLabel(n)
3378
3384
  })]
3379
3385
  });
3380
- }, Lo = B($((e, t) => {
3381
- const { sx: o, propsCommandButton: r, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
3386
+ }, Lr = B($((e, t) => {
3387
+ const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
3382
3388
  a,
3383
3389
  i,
3384
3390
  u,
3385
3391
  u.getVersion()
3386
- ]), h = ye(t, () => ({}), []), [g, x] = H(null), { reference: b } = fe({
3392
+ ]), h = ye(t, () => ({}), []), [f, x] = H(null), { reference: b } = ge({
3387
3393
  label: "toolbar",
3388
3394
  anchor: h.current,
3389
3395
  parentFloat: n,
3390
3396
  createPopupPanel: null
3391
3397
  }), y = ue(() => {
3392
- const e = g;
3398
+ const e = f;
3393
3399
  e && requestAnimationFrame(() => {
3394
3400
  h.current?.contains(document.activeElement) && e.focus();
3395
3401
  });
3396
- }, [g]), v = A(() => ({
3402
+ }, [f]), v = A(() => ({
3397
3403
  dense: !0,
3398
3404
  outlined: !1
3399
- }), []), w = A(() => ({ ...r || {} }), [r]), k = A(() => ({
3405
+ }), []), w = A(() => ({ ...o || {} }), [o]), k = A(() => ({
3400
3406
  ...v,
3401
3407
  ...w
3402
- }), [v, w]), C = A(() => ({ ...w }), [k, r]);
3408
+ }), [v, w]), C = A(() => ({ ...w }), [k, o]);
3403
3409
  let S = 0;
3404
3410
  v.dense || (S += 2), v.outlined && S++;
3405
3411
  let P = 2;
@@ -3409,10 +3415,10 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3409
3415
  propsCommandButton: k,
3410
3416
  propsCommandPopup: {
3411
3417
  ...C,
3412
- ...r
3418
+ ...o
3413
3419
  }
3414
3420
  };
3415
- return s ? s(e) : m ? M(ro, { children: Io(m, {
3421
+ return s ? s(e) : m ? M(nr, { children: Ir(m, {
3416
3422
  dividerOrientation: "vertical",
3417
3423
  groupKey: i,
3418
3424
  propsCommandButton: e.propsCommandButton,
@@ -3422,13 +3428,13 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3422
3428
  }, [
3423
3429
  k,
3424
3430
  C,
3425
- r,
3431
+ o,
3426
3432
  s,
3427
3433
  m,
3428
3434
  i,
3429
3435
  u
3430
3436
  ]);
3431
- return M(f, {
3437
+ return M(g, {
3432
3438
  variant: "dense",
3433
3439
  sx: {
3434
3440
  minHeight: "unset",
@@ -3443,17 +3449,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3443
3449
  flexGrow: 1,
3444
3450
  display: "flex",
3445
3451
  overflow: "hidden",
3446
- ...o
3452
+ ...r
3447
3453
  },
3448
3454
  ref: h,
3449
3455
  onFocus: (e) => {
3450
- e.relatedTarget && !g && x(e.relatedTarget);
3456
+ e.relatedTarget && !f && x(e.relatedTarget);
3451
3457
  },
3452
3458
  onBlur: (e) => {
3453
- g && !h?.current?.contains(e.relatedTarget) && x(null);
3459
+ f && !h?.current?.contains(e.relatedTarget) && x(null);
3454
3460
  },
3455
3461
  onKeyDown: (e) => {
3456
- g && e.which === re.Escape && g.focus();
3462
+ f && e.which === oe.Escape && f.focus();
3457
3463
  },
3458
3464
  ...d,
3459
3465
  children: M("div", {
@@ -3467,7 +3473,7 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3467
3473
  alignItems: "center",
3468
3474
  maxWidth: "100%"
3469
3475
  },
3470
- children: M(oe, {
3476
+ children: M(re, {
3471
3477
  value: b,
3472
3478
  children: M(J, {
3473
3479
  value: y,
@@ -3477,17 +3483,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3477
3483
  })
3478
3484
  });
3479
3485
  }));
3480
- Lo.displayName = "CommandToolbar";
3481
- var No = B($((e, t) => {
3482
- const { groupKey: o, members: r, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => r ?? (o ? c.resolveMembers(o) : null) ?? null, [
3483
- r,
3486
+ Lr.displayName = "CommandToolbar";
3487
+ var Nr = B($((e, t) => {
3488
+ const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => o ?? (r ? c.resolveMembers(r) : null) ?? null, [
3484
3489
  o,
3490
+ r,
3485
3491
  c
3486
3492
  ]), p = A(() => {
3487
3493
  const e = [], t = d ?? [];
3488
- for (let o = 0; o < t.length; o++) {
3489
- const r = t[o];
3490
- r && "-" !== r && ("string" == typeof r ? e.push(r) : r.key && e.push(r.key));
3494
+ for (let r = 0; r < t.length; r++) {
3495
+ const o = t[r];
3496
+ o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
3491
3497
  }
3492
3498
  return e;
3493
3499
  }, [d]), u = he(p);
@@ -3496,21 +3502,21 @@ var No = B($((e, t) => {
3496
3502
  const t = u[e];
3497
3503
  t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
3498
3504
  }
3499
- const g = "icon" === i ? {
3505
+ const f = "icon" === i ? {
3500
3506
  icon: h ?? a,
3501
3507
  quickCommand: void 0
3502
3508
  } : {
3503
3509
  quickCommand: m ?? p[0],
3504
3510
  icon: void 0
3505
3511
  };
3506
- return M($o, {
3512
+ return M($r, {
3507
3513
  ref: t,
3508
- groupKey: o,
3509
- members: r,
3514
+ groupKey: r,
3515
+ members: o,
3510
3516
  registry: c,
3511
3517
  ...l,
3512
- ...g
3518
+ ...f
3513
3519
  });
3514
3520
  }));
3515
- No.displayName = "ToggleGroupButton";
3516
- export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, dt as ArrowDownIcon, pt as ArrowRightIcon, lt as ChipStrip, kt as ClosingReason, Po as CommandButton, $o as CommandGroup, Do as CommandPopupButton, Lo as CommandToolbar, ko as CommandTooltip, $t as ContextMenu, He as ExhibitDivider, Pt as ExhibitFloatPanel, Rt as ExhibitFloatProvider, Ft as ExhibitIconButton, Vt as ExhibitMenuHeader, Ht as ExhibitMenuItem, Ut as ExhibitOptionButton, qt as ExhibitPopupIconButton, Gt as ExhibitPopupMenuItem, Nt as ExhibitTooltip, Ro as InputCommandButton, uo as InternalWindow, Bo as LabelIcon, at as LazyLoadErrorPanel, Kt as MenuItemInsets, Te as ModalProvider, Dt as NestingPopupButton, bo as OptionsDialog, ro as OverflowPalette, wt as PopupAutoFocus, Ct as PopupButtonType, _t as SelectedIcon, zt as SimpleTooltip, rt as StackTrace, nt as StackTraceErrorPanel, No as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, St as createDownArrow, bt as createExhibitTheme, Ae as createScrollButton, ct as createStrokeShadowFilter, Mt as defaultCreatePopupPanel, gt as elevateColor, yt as getScrollbarCssVariables, ht as hexToRGB, Je as hideLoadingPanel, ao as lazyModal, go as optionIdentity, to as registerUtilsMuiLocales, Io as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, vt as scrollbarTheming, _e as showLoadingPanel, st as strokeShadowFilter, Lt as toShortcutElements, wo as useInputDialog, lo as useLazyWindow, yo as useOptionsDialog };
3521
+ Nr.displayName = "ToggleGroupButton";
3522
+ export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, At as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Ae as createScrollButton, dt as createStrokeShadowFilter, St as defaultCreatePopupPanel, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };