@sheetxl/utils-mui 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.7
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -9,55 +9,55 @@ import n, { memo as r, forwardRef as i, useMemo as a, useRef as l, useEffect as
9
9
  import h from "clsx";
10
10
  import { alpha as f, darken as x, lighten as g } from "@mui/system";
11
11
  import { IconButton as b, Divider as y, Box as v, Typography as k, Paper as w, Chip as C, Popper as M, Grow as S, Tooltip as P, ListItemIcon as R, MenuItem as D, Fade as E, Backdrop as T, DialogTitle as $, Button as O, DialogContent as z, DialogActions as I, Input as N, Toolbar as B } from "@mui/material";
12
- import { CommonUtils as L } from "@sheetxl/utils";
13
- import { defaultCreateScrollEdgeButton as F, ScrollbarOrientation as A, DynamicIcon as H, useCallbackRef as W, useFullscreenPortal as K, KeyCodes as V, KeyModifiers as q, ReactUtils as _, useImperativeElement as j, useCommand as U, CommandButtonType as Q, useCommands as G } from "@sheetxl/utils-react";
14
- import { useTheme as X, styled as Y, createTheme as J, useThemeProps as Z } from "@mui/material/styles";
15
- import { deepmerge as ee } from "@mui/utils";
16
- import { detectOverflow as te } from "@popperjs/core";
17
- import { mergeRefs as oe } from "react-merge-refs";
18
- import { useIsomorphicLayoutEffect as ne, useMeasure as re } from "react-use";
19
- import ie from "tiny-invariant";
20
- import { useModal as ae } from "mui-modal-provider";
12
+ import { ErrorUtils as L, CommonUtils as F } from "@sheetxl/utils";
13
+ import { defaultCreateScrollEdgeButton as A, ScrollbarOrientation as H, DynamicIcon as W, useCallbackRef as K, useFullscreenPortal as V, KeyCodes as q, KeyModifiers as _, ReactUtils as j, useImperativeElement as U, useCommand as Q, CommandButtonType as G, useCommands as X } from "@sheetxl/utils-react";
14
+ import { useTheme as Y, styled as J, createTheme as Z, useThemeProps as ee } from "@mui/material/styles";
15
+ import { deepmerge as te } from "@mui/utils";
16
+ import { detectOverflow as oe } from "@popperjs/core";
17
+ import { mergeRefs as ne } from "react-merge-refs";
18
+ import { useIsomorphicLayoutEffect as re, useMeasure as ie } from "react-use";
19
+ import ae from "tiny-invariant";
20
+ import { useModal as le } from "mui-modal-provider";
21
21
  export * from "mui-modal-provider";
22
22
  import { default as default2 } from "mui-modal-provider";
23
- import { createPortal as le } from "react-dom";
24
- import se from "focus-trap-react";
25
- import ce from "react-draggable";
26
- import { primaryInput as de } from "detect-it";
27
- import { useForm as pe, FormProvider as ue } from "react-hook-form";
28
- const me = (e2) => {
23
+ import { createPortal as se } from "react-dom";
24
+ import ce from "focus-trap-react";
25
+ import de from "react-draggable";
26
+ import { primaryInput as pe } from "detect-it";
27
+ import { useForm as ue, FormProvider as me } from "react-hook-form";
28
+ const he = (e2) => {
29
29
  const t2 = { style: { cursor: "pointer" }, ...e2 };
30
- return F(t2);
31
- }, he = (t2, o2, n2, r2) => {
30
+ return A(t2);
31
+ }, fe = (t2, o2, n2, r2) => {
32
32
  const { style: i2, ...a2 } = t2, l2 = e(b, { component: "div", ...a2, style: { ...i2, padding: "0px" }, sx: { padding: "0" }, color: t2.disabled ? void 0 : "primary", "aria-label": n2, size: "small", children: o2 });
33
- return e(xt, { title: t2.disabled ? n2 : r2, enterDelay: 800, enterNextDelay: 1600, children: t2.disabled ? e("div", { style: { display: "flex" }, children: l2 }) : l2 });
34
- }, fe = (t2) => he(t2, A.Horizontal ? e(H, { iconKey: "ArrowLeft", size: "small" }) : e(H, { iconKey: "ArrowUpward", size: "small" }), "Scroll " + (t2.orientation === A.Horizontal ? "Left" : "Up"), `Scroll ${t2.orientation === A.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), xe = (t2) => he(t2, A.Horizontal ? e(H, { iconKey: "ArrowRight", size: "small" }) : e(H, { iconKey: "ArrowDownward", size: "small" }), "Scroll " + (t2.orientation === A.Horizontal ? "Right" : "Down"), `Scroll ${t2.orientation === A.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), ge = r(i((t2, o2) => {
33
+ return e(gt, { title: t2.disabled ? n2 : r2, enterDelay: 800, enterNextDelay: 1600, children: t2.disabled ? e("div", { style: { display: "flex" }, children: l2 }) : l2 });
34
+ }, xe = (t2) => fe(t2, H.Horizontal ? e(W, { iconKey: "ArrowLeft", size: "small" }) : e(W, { iconKey: "ArrowUpward", size: "small" }), "Scroll " + (t2.orientation === H.Horizontal ? "Left" : "Up"), `Scroll ${t2.orientation === H.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), ge = (t2) => fe(t2, H.Horizontal ? e(W, { iconKey: "ArrowRight", size: "small" }) : e(W, { iconKey: "ArrowDownward", size: "small" }), "Scroll " + (t2.orientation === H.Horizontal ? "Right" : "Down"), `Scroll ${t2.orientation === H.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), be = r(i((t2, o2) => {
35
35
  const { orientation: n2 = "vertical", sx: r2, ...i2 } = t2, a2 = "vertical" === n2;
36
36
  return e(y, { ref: o2, sx: { marginLeft: a2 ? "2px" : void 0, marginRight: a2 ? "2px" : void 0, backgroundColor: "transparent !important", minHeight: a2 ? "1em" : void 0, minWidth: a2 ? void 0 : "1em", borderColor: (e2) => e2.palette.divider, ...r2 }, orientation: n2, variant: "middle", flexItem: true, ...i2 });
37
- })), be = "_traverse-ellipsis_14l1h_1", ye = r((o2) => {
37
+ })), ye = "_traverse-ellipsis_14l1h_1", ve = r((o2) => {
38
38
  const { sx: n2, speed: r2 = 2, size: i2 = 70, ...a2 } = o2;
39
39
  return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { stroke: (e2) => e2.palette.grey[600], fill: "none" }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "48" }), e("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "85", y2: "50.5", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) }), e("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "49.5", y2: "74", children: e("animateTransform", { attributeName: "transform", dur: 7.5 * r2 + "s", type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
40
- }), ve = r((o2) => {
40
+ }), ke = r((o2) => {
41
41
  const { sx: n2, speed: r2 = 1.5, size: i2 = 70, ...a2 } = o2;
42
42
  return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { fill: (e2) => e2.palette.grey[600] }, "& .secondary": { stroke: (e2) => e2.palette.grey[600], fill: "none", opacity: 0.5 }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "secondary", strokeWidth: "4", cx: "50", cy: "50", r: "21" }), e("path", { className: "primary", d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50", children: e("animateTransform", { attributeName: "transform", type: "rotate", dur: 1 * r2 + "s", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
43
- }), ke = r((o2) => {
43
+ }), we = r((o2) => {
44
44
  const { sx: n2, speed: r2 = 1, size: i2 = 70, ...a2 } = o2;
45
45
  return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.1" }) }), e("circle", { className: "primary", cx: "26", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.2" }) }), e("circle", { className: "primary", cx: "46", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.3" }) })] }) });
46
- }), we = r((o2) => {
46
+ }), Ce = r((o2) => {
47
47
  const { sx: n2, speed: r2 = 1, size: i2 = 70, ...a2 } = o2;
48
48
  return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { fill: (e2) => e2.palette.grey[600], stroke: "none" }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 15 ; 0 -15; 0 15", repeatCount: "indefinite", begin: "0.1" }) }), e("circle", { className: "primary", cx: "30", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 10 ; 0 -10; 0 10", repeatCount: "indefinite", begin: "0.2" }) }), e("circle", { className: "primary", cx: "54", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 5 ; 0 -5; 0 5", repeatCount: "indefinite", begin: "0.3" }) })] }) });
49
- }), Ce = r((o2) => {
49
+ }), Me = r((o2) => {
50
50
  const { sx: n2, speed: r2 = 2, size: i2 = 70, ...a2 } = o2;
51
51
  return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { stroke: (e2) => e2.palette.grey[600], opacity: 0.5, fill: "none" }, "& .secondary": { fillOpacity: (e2) => e2.palette.grey[600], opacity: 0.8, stroke: (e2) => e2.palette.background.paper }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "44" }), e("circle", { className: "secondary", strokeWidth: "3", cx: "8", cy: "54", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "rotate", from: "0 50 48", to: "360 50 52", repeatCount: "indefinite" }) })] }) });
52
- }), Me = r((o2) => {
52
+ }), Se = r((o2) => {
53
53
  const { sx: n2, speed: r2 = 1, size: i2 = 13, width: a2 = 64, height: l2 = 17, ...s2 } = o2;
54
- return t(v, { sx: { width: `${a2}px`, height: `${l2}px`, "& .primary": { backgroundColor: (e2) => e2.palette.grey[600], top: `${(l2 - i2) / 2}px`, width: () => `${i2}px`, height: () => `${i2}px` }, ...n2 }, className: h(be, "animated-icon"), ...s2, children: [e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" })] });
55
- }), Se = e(ve, {}), Pe = r(i((o2, n2) => {
56
- const { sx: r2, style: i2, onMount: c2, onUnmount: d2, transitionDelay: p2 = "1200ms", panel: u2 = false, transparentBackground: m2 = true, icon: h2 = Se, label: x2, ...g2 } = o2, b2 = a(() => "string" == typeof x2 ? e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em" }, children: x2 }) : x2, [x2]), y2 = l(null), C2 = a(() => {
54
+ return t(v, { sx: { width: `${a2}px`, height: `${l2}px`, "& .primary": { backgroundColor: (e2) => e2.palette.grey[600], top: `${(l2 - i2) / 2}px`, width: () => `${i2}px`, height: () => `${i2}px` }, ...n2 }, className: h(ye, "animated-icon"), ...s2, children: [e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" })] });
55
+ }), Pe = e(ke, {}), Re = r(i((o2, n2) => {
56
+ const { sx: r2, style: i2, onMount: c2, onUnmount: d2, transitionDelay: p2 = "1200ms", panel: u2 = false, transparentBackground: m2 = true, icon: h2 = Pe, label: x2, ...g2 } = o2, b2 = a(() => "string" == typeof x2 ? e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em" }, children: x2 }) : x2, [x2]), y2 = l(null), C2 = a(() => {
57
57
  let o3 = t(v, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "8px" }, children: [b2, h2] });
58
- return true === u2 && (o3 = e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.info.light, color: (e2) => e2.palette.info.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(1), rowGap: (e2) => e2.spacing(1), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${f(e2.palette.info.contrastText, 0.9)} !important`, boxShadow: (e2) => `0 0 0 1px ${"dark" === e2.palette.mode ? e2.palette.text.secondary : e2.palette.divider}`, boxSizing: "content-box", border: "solid transparent" }, zIndex: 1 }, children: o3 })), e(v, { ref: oe([y2, n2]), className: "animatable", sx: { cursor: "wait", boxSizing: "border-box", alignItems: "center", justifyContent: "center", display: "flex", flexDirection: "column", willChange: "opacity", opacity: m2 ? 1e-3 : 1, transitionProperty: "opacity", transitionDelay: p2, transitionDuration: "320ms", transitionTimingFunction: "ease-in", overflow: "hidden", outline: "none", width: "100%", height: "100%", minWidth: 0, minHeight: 0, zIndex: 99999, "&.animating": { opacity: 1 }, "&.animating-exit": { opacity: 0, transition: "opacity 210ms" }, ...r2, ...i2 }, ...g2, children: t(v, { className: "center", sx: { display: "flex", flex: "1 1 100%", height: "100%", width: "100%", alignItems: "center", justifyContent: "center", boxSizing: "border-box", position: "relative" }, children: [e(v, { className: "backdrop", sx: { opacity: (e2) => m2 ? 1.5 * e2.palette.action.disabledOpacity : void 0, background: (e2) => m2 ? void 0 : e2.palette.background.paper, backdropFilter: "blur(4px)", borderRadius: (e2) => `${e2.shape.borderRadius}px`, zIndex: -1, position: "absolute", width: "100%", height: "100%", boxSizing: "border-box" } }), o3] }) });
58
+ return true === u2 && (o3 = e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.info.light, color: (e2) => e2.palette.info.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(1), rowGap: (e2) => e2.spacing(1), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${f(e2.palette.info.contrastText, 0.9)} !important`, boxShadow: (e2) => `0 0 0 1px ${"dark" === e2.palette.mode ? e2.palette.text.secondary : e2.palette.divider}`, boxSizing: "content-box", border: "solid transparent" }, zIndex: 1 }, children: o3 })), e(v, { ref: ne([y2, n2]), className: "animatable", sx: { cursor: "wait", boxSizing: "border-box", alignItems: "center", justifyContent: "center", display: "flex", flexDirection: "column", willChange: "opacity", opacity: m2 ? 1e-3 : 1, transitionProperty: "opacity", transitionDelay: p2, transitionDuration: "320ms", transitionTimingFunction: "ease-in", overflow: "hidden", outline: "none", width: "100%", height: "100%", minWidth: 0, minHeight: 0, zIndex: 99999, "&.animating": { opacity: 1 }, "&.animating-exit": { opacity: 0, transition: "opacity 210ms" }, ...r2, ...i2 }, ...g2, children: t(v, { className: "center", sx: { display: "flex", flex: "1 1 100%", height: "100%", width: "100%", alignItems: "center", justifyContent: "center", boxSizing: "border-box", position: "relative" }, children: [e(v, { className: "backdrop", sx: { opacity: (e2) => m2 ? 1.5 * e2.palette.action.disabledOpacity : void 0, background: (e2) => m2 ? void 0 : e2.palette.background.paper, backdropFilter: "blur(4px)", borderRadius: (e2) => `${e2.shape.borderRadius}px`, zIndex: -1, position: "absolute", width: "100%", height: "100%", boxSizing: "border-box" } }), o3] }) });
59
59
  }, [r2, u2]), M2 = l(false), S2 = l(false);
60
- return ne(() => {
60
+ return re(() => {
61
61
  if (y2.current && !M2.current && !S2.current) {
62
62
  if (S2.current = true, y2.current.classList.contains("animatable") && !y2.current.classList.contains("animating")) {
63
63
  let e2 = false;
@@ -75,32 +75,27 @@ const me = (e2) => {
75
75
  M2.current && (y2.current?.classList.remove("animating"), M2.current = false, S2.current = false, d2?.());
76
76
  }, []), C2;
77
77
  }));
78
- Pe.displayName = "LoadingPanel";
79
- const Re = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, De = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Ee = (e2) => {
78
+ Re.displayName = "LoadingPanel";
79
+ const De = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ee = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Te = (e2) => {
80
80
  if (!e2) return "";
81
81
  try {
82
82
  e2 = new URL(e2).pathname;
83
83
  } catch {
84
84
  }
85
85
  return e2 = (e2 = e2.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
86
- }, Te = r(({ error: o2, maxLines: n2 = Number.MAX_SAFE_INTEGER, hideLineNumbers: r2 = false }) => {
86
+ }, $e = r(({ error: o2, maxLines: n2 = Number.MAX_SAFE_INTEGER, hideLineNumbers: r2 = false }) => {
87
87
  const [i2, a2] = c(null);
88
88
  if (!o2?.stack) return null;
89
- const l2 = ((e2) => {
90
- const t2 = [], o3 = (e3, n3 = 0) => {
91
- e3 && (t2.push({ error: e3, depth: n3 }), e3.cause && e3.cause instanceof Error && o3(e3.cause, n3 + 1));
92
- };
93
- return o3(e2), t2.reverse();
94
- })(o2).reverse(), s2 = [];
89
+ const l2 = L.collectErrorChain(o2).reverse(), s2 = [];
95
90
  l2.forEach(({ error: e2 }, t2) => {
96
91
  const o3 = (e2.stack || "").split("\n").filter(Boolean).map((e3) => {
97
- let t3 = e3.match(Re);
92
+ let t3 = e3.match(De);
98
93
  if (t3) {
99
94
  const [, e4 = "", o4, n3, r3, i3] = t3;
100
- return { line: `at ${e4 ? e4 + " " : ""}${o4}`, location: `${Ee(n3).split(/[\\/]/).pop()}:${r3}:${i3}` };
95
+ return { line: `at ${e4 ? e4 + " " : ""}${o4}`, location: `${Te(n3).split(/[\\/]/).pop()}:${r3}:${i3}` };
101
96
  }
102
- if (t3 = e3.match(De), t3) {
103
- const [, e4 = "", o4, n3, r3] = t3, i3 = Ee(o4), a3 = `${i3.split(/[\\/]/).pop()}:${n3}:${r3}`;
97
+ if (t3 = e3.match(Ee), t3) {
98
+ const [, e4 = "", o4, n3, r3] = t3, i3 = Te(o4), a3 = `${i3.split(/[\\/]/).pop()}:${n3}:${r3}`;
104
99
  return { line: `at ${e4 ? e4 + " " : ""}${a3}`, location: i3 !== a3 ? `${i3}:${n3}:${r3}` : void 0 };
105
100
  }
106
101
  return { line: e3.trim() };
@@ -121,22 +116,22 @@ const Re = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, D
121
116
  } catch (e2) {
122
117
  a2("Can't copy!"), console.warn("Failed to copy stack trace:", e2);
123
118
  }
124
- }, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Copy stack trace", children: e(H, { iconKey: "ContentCopy", style: { fontSize: "0.875rem" } }) }), e(b, { size: "small", onClick: () => {
119
+ }, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Copy stack trace", children: e(W, { iconKey: "ContentCopy", style: { fontSize: "0.875rem" } }) }), e(b, { size: "small", onClick: () => {
125
120
  a2("Logged!"), setTimeout(() => a2(null), 2e3), console.log(o2);
126
- }, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Log error to console", children: e(H, { iconKey: "BugReport", style: { fontSize: "0.875rem" } }) })] }), t(v, { sx: { mt: 1, backgroundColor: "rgba(0, 0, 0, 0.2)", borderRadius: 1, p: 1, maxHeight: "300px", overflow: "auto", fontFamily: "monospace", fontSize: "0.75rem", lineHeight: 1.4 }, children: [d2.map((o3, n3) => o3.isBoundary ? e(v, { sx: { py: 1, mt: n3 > 0 ? 1 : 0, mb: 0.5, borderTop: n3 > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none" }, children: e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", fontWeight: "bold", color: (e2) => o3.isBoundary ? e2.palette.text.primary : e2.palette.text.secondary, display: "block" }, children: o3.line }) }, `error-${n3}`) : t(v, { sx: { display: "flex", alignItems: "flex-start", gap: 1, py: 0.25, pl: 1, "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" } }, children: [!r2 && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.5, minWidth: "20px", textAlign: "right", userSelect: "none" }, children: n3 + 1 }), t(v, { sx: { flex: 1, overflow: "hidden" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", color: "inherit" }, children: o3.line }), o3.location && o3.line !== o3.location && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic" }, children: o3.location })] })] }, `stack-${n3}`)), p2 && t(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic", textAlign: "center", display: "block", mt: 1 }, children: ["... and ", s2.length - n2, " more frames"] })] })] });
121
+ }, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Log error to console", children: e(W, { iconKey: "BugReport", style: { fontSize: "0.875rem" } }) })] }), t(v, { sx: { mt: 1, backgroundColor: "rgba(0, 0, 0, 0.2)", borderRadius: 1, p: 1, maxHeight: "300px", overflow: "auto", fontFamily: "monospace", fontSize: "0.75rem", lineHeight: 1.4 }, children: [d2.map((o3, n3) => o3.isBoundary ? e(v, { sx: { py: 1, mt: n3 > 0 ? 1 : 0, mb: 0.5, borderTop: n3 > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none" }, children: e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", fontWeight: "bold", color: (e2) => o3.isBoundary ? e2.palette.text.primary : e2.palette.text.secondary, display: "block" }, children: o3.line }) }, `error-${n3}`) : t(v, { sx: { display: "flex", alignItems: "flex-start", gap: 1, py: 0.25, pl: 1, "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" } }, children: [!r2 && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.5, minWidth: "20px", textAlign: "right", userSelect: "none" }, children: n3 + 1 }), t(v, { sx: { flex: 1, overflow: "hidden" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", color: "inherit" }, children: o3.line }), o3.location && o3.line !== o3.location && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic" }, children: o3.location })] })] }, `stack-${n3}`)), p2 && t(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic", textAlign: "center", display: "block", mt: 1 }, children: ["... and ", s2.length - n2, " more frames"] })] })] });
127
122
  });
128
- Te.displayName = "StackTrace";
129
- const $e = (o2, r2 = false, i2 = false) => {
123
+ $e.displayName = "StackTrace";
124
+ const Oe = (o2, r2 = false, i2 = false) => {
130
125
  if (n.isValidElement(o2)) return o2;
131
- if (o2 instanceof Error) return t(v, { sx: { display: "flex", flexDirection: "column", maxWidth: "500px", width: "100%" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, mb: 1 }, children: o2.message }), o2.cause ? t(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", mb: 1, opacity: 0.8 }, children: ["Caused by: ", o2.cause instanceof Error ? o2.cause.message : String(o2.cause)] }) : null, !r2 && e(Te, { error: o2, hideLineNumbers: true })] });
126
+ if (o2 instanceof Error) return t(v, { sx: { display: "flex", flexDirection: "column", maxWidth: "500px", width: "100%" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, mb: 1 }, children: o2.message }), o2.cause ? t(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", mb: 1, opacity: 0.8 }, children: ["Caused by: ", o2.cause instanceof Error ? o2.cause.message : String(o2.cause)] }) : null, !r2 && e($e, { error: o2, hideLineNumbers: true })] });
132
127
  const a2 = "string" === o2 ? o2 : `Unknown Error: ${String(o2)}`;
133
128
  return e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em" }, children: a2 });
134
- }, Oe = r(i((o2, n2) => {
135
- const { sx: r2, icon: i2 = e(H, { iconKey: "Error", style: { fontSize: 48 } }), error: l2, hideStackTrace: s2 = false, stackTraceExpanded: c2 = false, ...d2 } = o2, p2 = a(() => $e(l2, s2, c2), [l2, s2, c2]);
129
+ }, ze = r(i((o2, n2) => {
130
+ const { sx: r2, icon: i2 = e(W, { iconKey: "Error", style: { fontSize: 48 } }), error: l2, hideStackTrace: s2 = false, stackTraceExpanded: c2 = false, ...d2 } = o2, p2 = a(() => Oe(l2, s2, c2), [l2, s2, c2]);
136
131
  return a(() => e(v, { ref: n2, sx: { boxSizing: "border-box", alignItems: "center", justifyContent: "center", display: "flex", flexDirection: "row", overflow: "hidden", width: "100%", height: "100%", ...r2 }, ...d2, children: t(v, { sx: { display: "flex", flex: "1 1 100%", height: "100%", alignItems: "center", justifyContent: "center", boxSizing: "border-box", position: "relative" }, children: [e(v, { className: "backdrop", sx: { backdropFilter: "blur(4px)", borderRadius: (e2) => `${e2.shape.borderRadius}px`, zIndex: -1, position: "absolute", width: "100%", height: "100%", boxSizing: "border-box" } }), e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", rowGap: "8px", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.error.light, color: (e2) => e2.palette.error.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(2), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${e2.palette.error.contrastText} !important`, border: "solid transparent" }, zIndex: 1 }, children: e(v, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: (e2) => e2.spacing(2), width: "100%", maxWidth: "600px" }, children: t(v, { sx: { display: "flex", flexDirection: "row", alignItems: "flex-start", gap: (e2) => e2.spacing(2) }, children: [i2, p2] }) }) })] }) }), [r2]);
137
132
  }));
138
- Oe.displayName = "ErrorPanel";
139
- const ze = r(i((t2, o2) => {
133
+ ze.displayName = "ErrorPanel";
134
+ const Ie = r(i((t2, o2) => {
140
135
  const { chips: r2, sx: i2, ...a2 } = t2, l2 = n.useMemo(() => {
141
136
  if (!r2) return null;
142
137
  let t3 = null;
@@ -150,100 +145,100 @@ const ze = r(i((t2, o2) => {
150
145
  return o3;
151
146
  }, [r2]);
152
147
  return e(v, { ref: o2, sx: { display: "flex", flexDirection: "row", marginLeft: "4px", gap: "2px", ...i2 }, ...a2, children: l2 });
153
- })), Ie = { name: "maxSize", enabled: true, phase: "main", requiresIfExists: ["offset", "preventOverflow", "flip"], fn: function(e2) {
154
- var t2 = e2.state, o2 = e2.name, n2 = e2.options, r2 = te(t2, n2), i2 = t2.modifiersData.preventOverflow || { x: 0, y: 0 }, a2 = i2.x, l2 = i2.y;
148
+ })), Ne = { name: "maxSize", enabled: true, phase: "main", requiresIfExists: ["offset", "preventOverflow", "flip"], fn: function(e2) {
149
+ var t2 = e2.state, o2 = e2.name, n2 = e2.options, r2 = oe(t2, n2), i2 = t2.modifiersData.preventOverflow || { x: 0, y: 0 }, a2 = i2.x, l2 = i2.y;
155
150
  let s2 = t2.rects.popper, c2 = s2.width, d2 = s2.height, p2 = t2.placement.split("-")[0], u2 = "left" === p2 ? "left" : "right", m2 = "top" === p2 ? "top" : "bottom";
156
151
  t2.modifiersData[o2] = { width: c2 - r2[u2] - a2, height: d2 - r2[m2] - l2 };
157
- } }, Ne = [0, 2], Be = r(i((t2, o2) => {
158
- const { sx: r2, open: i2, children: l2, label: p2, offsets: u2 = Ne, anchorEl: m2, anchorPosition: h2, onMount: f2, onOpening: x2, onOpen: g2, onClosing: b2, onClose: y2, resizeOnOverflow: v2 = true, ...k2 } = t2;
152
+ } }, Be = [0, 2], Le = r(i((t2, o2) => {
153
+ const { sx: r2, open: i2, children: l2, label: p2, offsets: u2 = Be, anchorEl: m2, anchorPosition: h2, onMount: f2, onOpening: x2, onOpen: g2, onClosing: b2, onClose: y2, resizeOnOverflow: v2 = true, ...k2 } = t2;
159
154
  if (Array.isArray(l2)) throw new Error("children can not be an array");
160
- const w2 = X(), C2 = { name: "applyMaxSize", enabled: true, phase: "beforeWrite", requires: ["maxSize"], fn({ state: e2 }) {
155
+ const w2 = Y(), C2 = { name: "applyMaxSize", enabled: true, phase: "beforeWrite", requires: ["maxSize"], fn({ state: e2 }) {
161
156
  const { height: t3 } = e2.modifiersData.maxSize;
162
157
  e2.styles.popper.maxHeight = t3 - 10 + "px";
163
158
  } }, P2 = a(() => {
164
159
  const e2 = [{ name: "offset", options: { offset: u2 } }, { name: "flip", enabled: true, options: { rootBoundary: "document" } }];
165
- return v2 && e2.unshift(Ie, C2), e2;
166
- }, [v2, u2]), [R2, D2] = c(false), E2 = n.useRef(null), T2 = W(() => {
167
- f2?.(F2.current, E2.current);
168
- }, [x2]), $2 = W(x2, [x2]), O2 = W(g2, [g2]), z2 = W(b2, [b2]), I2 = W(() => {
160
+ return v2 && e2.unshift(Ne, C2), e2;
161
+ }, [v2, u2]), [R2, D2] = c(false), E2 = n.useRef(null), T2 = K(() => {
162
+ f2?.(L2.current, E2.current);
163
+ }, [x2]), $2 = K(x2, [x2]), O2 = K(g2, [g2]), z2 = K(b2, [b2]), I2 = K(() => {
169
164
  D2(false), y2?.();
170
- }, [y2]), [N2, B2] = c(false), F2 = n.useRef(null), A2 = n.useRef(true), H2 = a(() => ({ onFirstUpdate: () => {
165
+ }, [y2]), [N2, B2] = c(false), L2 = n.useRef(null), A2 = n.useRef(true), H2 = a(() => ({ onFirstUpdate: () => {
171
166
  A2.current && (B2(true), T2?.(), A2.current = false);
172
167
  } }), [i2, R2]);
173
168
  s(() => {
174
169
  i2 && N2 ? $2?.() : !i2 && R2 && z2?.(), i2 && D2(i2);
175
170
  }, [i2, N2]);
176
- const V2 = a(() => ({ getBoundingClientRect: () => h2 ? new DOMRect(h2?.left || 0, h2?.top || 0, 0, 0) : m2.getBoundingClientRect() }), [h2, m2]);
177
- d(o2, () => ({ instance: () => E2.current, element: () => F2.current }), []);
178
- const { getPortalContainer: q2 } = K(), _2 = a(() => ({ zIndex: i2 ? "1300" : "1299", display: "flex", pointerEvents: R2 && i2 ? void 0 : "none", maxWidth: "100%", maxHeight: "100%", ...r2 }), [r2, i2, R2]);
179
- return e(M, { ref: F2, popperRef: E2, container: q2, anchorEl: V2, open: R2, role: void 0, popperOptions: H2, transition: true, sx: _2, placement: "bottom-start", modifiers: P2, ...k2, children: ({ TransitionProps: t3, placement: o3, ...n2 }) => {
171
+ const W2 = a(() => ({ getBoundingClientRect: () => h2 ? new DOMRect(h2?.left || 0, h2?.top || 0, 0, 0) : m2.getBoundingClientRect() }), [h2, m2]);
172
+ d(o2, () => ({ instance: () => E2.current, element: () => L2.current }), []);
173
+ const { getPortalContainer: q2 } = V(), _2 = a(() => ({ zIndex: i2 ? "1300" : "1299", display: "flex", pointerEvents: R2 && i2 ? void 0 : "none", maxWidth: "100%", maxHeight: "100%", ...r2 }), [r2, i2, R2]);
174
+ return e(M, { ref: L2, popperRef: E2, container: q2, anchorEl: W2, open: R2, role: void 0, popperOptions: H2, transition: true, sx: _2, placement: "bottom-start", modifiers: P2, ...k2, children: ({ TransitionProps: t3, placement: o3, ...n2 }) => {
180
175
  const { in: r3, onEnter: a2, onExited: s2, ...c2 } = t3 ?? {};
181
176
  return e(S, { ...c2, in: i2, onEnter: () => {
182
177
  a2?.(), O2();
183
178
  }, onExited: () => {
184
179
  s2?.(), I2();
185
- }, timeout: { enter: w2.transitions.duration.shorter, exit: 0 }, style: { transformOrigin: "bottom-start" === o3 ? "left top" : "center bottom" }, children: "function" == typeof l2 ? l2({ TransitionProps: t3, placement: o3, ...n2 }) : l2 || L.EmptyArray });
180
+ }, timeout: { enter: w2.transitions.duration.shorter, exit: 0 }, style: { transformOrigin: "bottom-start" === o3 ? "left top" : "center bottom" }, children: "function" == typeof l2 ? l2({ TransitionProps: t3, placement: o3, ...n2 }) : l2 || F.EmptyArray });
186
181
  } });
187
182
  }));
188
- Be.displayName = "ExhibitPopper";
189
- const Le = (e2) => {
183
+ Le.displayName = "ExhibitPopper";
184
+ const Fe = (e2) => {
190
185
  if ("dark" !== e2.palette.mode) return;
191
186
  return `drop-shadow(0px 0px 1px ${"dark" === e2.palette.mode ? e2.palette.text.primary : e2.palette.divider})`;
192
- }, Fe = (e2 = 1) => (t2) => {
187
+ }, Ae = (e2 = 1) => (t2) => {
193
188
  if ("dark" !== t2.palette.mode) return;
194
189
  const o2 = "dark" === t2.palette.mode ? t2.palette.text.primary : t2.palette.divider;
195
190
  return `drop-shadow(0px 0px ${e2}px ${o2})`;
196
- }, Ae = (t2) => e(H, { ...t2, iconKey: "ArrowDownOutline" }), He = (t2) => e(H, { ...t2, iconKey: "ArrowRightOutline" }), We = Y(r(i((t2, o2) => {
191
+ }, He = (t2) => e(W, { ...t2, iconKey: "ArrowDownOutline" }), We = (t2) => e(W, { ...t2, iconKey: "ArrowRightOutline" }), Ke = J(r(i((t2, o2) => {
197
192
  const { sx: n2, size: r2 = "small", activeColor: i2, children: a2, className: l2, ...s2 } = t2;
198
193
  let c2 = "1rem", d2 = "1rem";
199
194
  return "medium" === r2 ? (c2 = "1.25rem", d2 = "1.25rem") : "large" === r2 && (c2 = "1.5rem", d2 = "1.5rem"), e(v, { ref: o2, className: h("icon", l2), sx: { width: c2, height: d2, ...n2 }, ...s2, children: a2 });
200
- })))(({ theme: e2 }) => ({ fill: "currentColor", "& .activeColor": { fill: e2.palette.primary.main }, "& .styled.high_contrast": { fill: e2.palette.primary.main }, "& .styled.background": { fill: e2.palette.background.paper }, "& .styled.current_color": { fill: "currentColor" }, "& .styled.secondary": { fill: e2.palette.secondary.main }, "& .styled.secondary_dark": { fill: e2.palette.secondary.dark }, "& .styled.secondary_light": { fill: e2.palette.secondary.light }, "& .styled.info": { fill: e2.palette.info.main }, "& .styled.info.stroked": { stroke: e2.palette.info.main }, "& .styled.info_dark": { fill: e2.palette.info.dark }, "& .styled.info_light": { fill: e2.palette.info.light }, "& .styled.warning": { fill: e2.palette.warning.main }, "& .styled.warning.stroked": { stroke: e2.palette.warning.main }, "& .styled.warning_dark": { fill: e2.palette.warning.dark }, "& .styled.warning_light": { fill: e2.palette.warning.light }, "& .styled.error.info": { fill: e2.palette.error.main }, "& .styled.error.stroked": { stroke: e2.palette.error.main }, "& .styled.error_dark": { fill: e2.palette.error.dark }, "& .styled.error_light": { fill: e2.palette.error.light }, "& .styled.success": { fill: e2.palette.success.main }, "& .styled.success_dark": { fill: e2.palette.success.dark }, "& .styled.success_light": { fill: e2.palette.success.light }, "& .styled.grey": { fill: e2.palette.text.icon ?? e2.palette.action.active } })), Ke = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, Ve = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, qe = function(e2, t2 = null) {
195
+ })))(({ theme: e2 }) => ({ fill: "currentColor", "& .activeColor": { fill: e2.palette.primary.main }, "& .styled.high_contrast": { fill: e2.palette.primary.main }, "& .styled.background": { fill: e2.palette.background.paper }, "& .styled.current_color": { fill: "currentColor" }, "& .styled.secondary": { fill: e2.palette.secondary.main }, "& .styled.secondary_dark": { fill: e2.palette.secondary.dark }, "& .styled.secondary_light": { fill: e2.palette.secondary.light }, "& .styled.info": { fill: e2.palette.info.main }, "& .styled.info.stroked": { stroke: e2.palette.info.main }, "& .styled.info_dark": { fill: e2.palette.info.dark }, "& .styled.info_light": { fill: e2.palette.info.light }, "& .styled.warning": { fill: e2.palette.warning.main }, "& .styled.warning.stroked": { stroke: e2.palette.warning.main }, "& .styled.warning_dark": { fill: e2.palette.warning.dark }, "& .styled.warning_light": { fill: e2.palette.warning.light }, "& .styled.error.info": { fill: e2.palette.error.main }, "& .styled.error.stroked": { stroke: e2.palette.error.main }, "& .styled.error_dark": { fill: e2.palette.error.dark }, "& .styled.error_light": { fill: e2.palette.error.light }, "& .styled.success": { fill: e2.palette.success.main }, "& .styled.success_dark": { fill: e2.palette.success.dark }, "& .styled.success_light": { fill: e2.palette.success.light }, "& .styled.grey": { fill: e2.palette.text.icon ?? e2.palette.action.active } })), Ve = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, qe = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, _e = function(e2, t2 = null) {
201
196
  if (!e2) return e2;
202
- e2 = e2.replace(Ke, function(e3, t3, o3, n2) {
197
+ e2 = e2.replace(Ve, function(e3, t3, o3, n2) {
203
198
  return t3 + t3 + o3 + o3 + n2 + n2;
204
199
  });
205
- let o2 = Ve.exec(e2);
200
+ let o2 = qe.exec(e2);
206
201
  return o2 ? null === t2 ? `rgb(${parseInt(o2[1], 16)}, ${parseInt(o2[2], 16)}, ${parseInt(o2[3], 16)})` : `rgb(${parseInt(o2[1], 16)} ${parseInt(o2[2], 16)} ${parseInt(o2[3], 16)} / ${100 * t2}%)` : e2;
207
- }, _e = function(e2, t2 = 0.2, o2 = "light") {
202
+ }, je = function(e2, t2 = 0.2, o2 = "light") {
208
203
  if (!e2) return e2;
209
204
  let n2 = "dark" !== o2;
210
- return t2 < 0 && (n2 = !n2, t2 *= -1), e2 = qe(e2), n2 ? x(e2, Math.max(0, Math.min(1, 1 * t2))) : g(e2, Math.max(0, Math.min(1, 1.5 * t2)));
211
- }, je = function(e2) {
205
+ return t2 < 0 && (n2 = !n2, t2 *= -1), e2 = _e(e2), n2 ? x(e2, Math.max(0, Math.min(1, 1 * t2))) : g(e2, Math.max(0, Math.min(1, 1.5 * t2)));
206
+ }, Ue = function(e2) {
212
207
  let t2 = 0;
213
208
  return t2 = e2 < 1 ? 5.11916 * e2 ** 2 : 4.5 * Math.log(e2 + 1) + 2, (t2 / 100).toFixed(2);
214
- }, Ue = (e2, t2) => {
215
- let o2 = J({ palette: { mode: e2 ? "dark" : "light" } });
209
+ }, Qe = (e2, t2) => {
210
+ let o2 = Z({ palette: { mode: e2 ? "dark" : "light" } });
216
211
  const n2 = { "--icon-primary": o2.palette.primary.main, "--icon-secondary": o2.palette.secondary.main, "--icon-secondary-light": o2.palette.secondary.light, "--icon-success": o2.palette.success.main, "--icon-success-light": o2.palette.success.light, "--icon-info": o2.palette.info.main, "--icon-warn": o2.palette.warning.main, "--icon-error": o2.palette.error.main, "--icon-error-light": o2.palette.error.light, "--icon-grey": o2.palette.text.icon ?? o2.palette.action.active, "--icon-shadow": e2 ? o2.palette.text.primary : o2.palette.divider, "--icon-size": "1.25rem", "@media (pointer: coarse)": { "--icon-size": "1.75rem" } };
217
- let r2 = { typography: {}, palette: { mode: e2 ? "dark" : "light", text: { secondary: e2 ? o2.palette.text.secondary : f(o2.palette.text.secondary, 0.75), icon: e2 ? f(o2.palette.text.secondary, 0.7) : f(o2.palette.text.primary, 0.75) } }, components: { MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } }, MuiSelect: { defaultProps: { IconComponent: Ae, MenuProps: { container: () => document.fullscreenElement ?? void 0 } }, styleOverrides: { iconOutlined: { top: "unset" } } }, MuiListItemIcon: { styleOverrides: { root: { minWidth: "0px !important", overflow: "hidden", marginLeft: "0px", marginRight: "6px", padding: "1px 1px", border: "solid transparent 1px", color: "unset" } } }, MuiMenuItem: { styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiMenu: { defaultProps: { container: () => document.fullscreenElement ?? void 0 }, styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiToolbar: { styleOverrides: { root: { paddingTop: "4px", paddingBottom: "4px", "@media (min-width: 600px)": { paddingTop: "4px", paddingBottom: "4px" } } } }, MuiDivider: { styleOverrides: { root: { marginTop: "4px !important", marginBottom: "4px !important", marginLeft: "0px", marginRight: "0px" } } }, MuiInputBase: { styleOverrides: { root: {} } }, MuiPaper: { styleOverrides: { root: { ...n2 } } }, MuiPopper: { styleOverrides: { root: { "& .menu": { marginTop: "4px", marginBottom: "4px", borderRadius: "4px" } } } }, SmartInputField: { styleOverrides: { automatic: { transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms", color: function() {
212
+ let r2 = { typography: {}, palette: { mode: e2 ? "dark" : "light", text: { secondary: e2 ? o2.palette.text.secondary : f(o2.palette.text.secondary, 0.75), icon: e2 ? f(o2.palette.text.secondary, 0.7) : f(o2.palette.text.primary, 0.75) } }, components: { MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } }, MuiSelect: { defaultProps: { IconComponent: He, MenuProps: { container: () => document.fullscreenElement ?? void 0 } }, styleOverrides: { iconOutlined: { top: "unset" } } }, MuiListItemIcon: { styleOverrides: { root: { minWidth: "0px !important", overflow: "hidden", marginLeft: "0px", marginRight: "6px", padding: "1px 1px", border: "solid transparent 1px", color: "unset" } } }, MuiMenuItem: { styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiMenu: { defaultProps: { container: () => document.fullscreenElement ?? void 0 }, styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiToolbar: { styleOverrides: { root: { paddingTop: "4px", paddingBottom: "4px", "@media (min-width: 600px)": { paddingTop: "4px", paddingBottom: "4px" } } } }, MuiDivider: { styleOverrides: { root: { marginTop: "4px !important", marginBottom: "4px !important", marginLeft: "0px", marginRight: "0px" } } }, MuiInputBase: { styleOverrides: { root: {} } }, MuiPaper: { styleOverrides: { root: { ...n2 } } }, MuiPopper: { styleOverrides: { root: { "& .menu": { marginTop: "4px", marginBottom: "4px", borderRadius: "4px" } } } }, SmartInputField: { styleOverrides: { automatic: { transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms", color: function() {
218
213
  return o2.palette.text.secondary;
219
214
  } }, dirty: { fontStyle: "italic", color: function() {
220
215
  return o2.palette.text.secondary;
221
216
  } } } } } }, i2 = r2;
222
- t2 && (i2 = ee(r2, t2));
223
- return J(i2);
217
+ t2 && (i2 = te(r2, t2));
218
+ return Z(i2);
224
219
  };
225
- function Qe(e2, t2) {
226
- t2 = ee({ track: _e(e2.palette.background.paper, 0.05, e2?.palette.mode), thumb: _e(e2.palette.background.paper, 0.3, e2?.palette.mode), active: e2.palette.primary.main, corner: e2.palette.background.paper, outline: false }, t2 || {});
220
+ function Ge(e2, t2) {
221
+ t2 = te({ track: je(e2.palette.background.paper, 0.05, e2?.palette.mode), thumb: je(e2.palette.background.paper, 0.3, e2?.palette.mode), active: e2.palette.primary.main, corner: e2.palette.background.paper, outline: false }, t2 || {});
227
222
  const o2 = { "&::-webkit-scrollbar, & *::-webkit-scrollbar": { backgroundColor: f(t2.track, 0.2), width: "13px", height: "13px" }, "&::-webkit-scrollbar-button": { display: "none" }, "& .scrollbar-button": { fill: t2.thumb, backgroundColor: "transparent", transition: "fill opacity 260ms ease", width: "13px", height: "13px" }, "& .scrollbar-button:hover:not([disabled])": { fill: t2.active }, "& .scrollbar-button:disabled": { opacity: 0.8 }, "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {}, "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {}, "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": { borderRadius: 8, backgroundColor: t2.thumb, minHeight: "24px", minWidth: "24px", border: `2px solid ${t2.track}` }, "&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: t2.corner || t2.thumb } };
228
- return L.getOS() === L.OSType.Firefox && (o2["* .pseudo-scrollbar"] = { scrollbarColor: `${t2.thumb} transparent` }, o2["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: `${t2.active} transparent` }), o2;
223
+ return F.getOS() === F.OSType.Firefox && (o2["* .pseudo-scrollbar"] = { scrollbarColor: `${t2.thumb} transparent` }, o2["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: `${t2.active} transparent` }), o2;
229
224
  }
230
- const Ge = { Light: "light", Dark: "dark" };
231
- function Xe(e2) {
225
+ const Xe = { Light: "light", Dark: "dark" };
226
+ function Ye(e2) {
232
227
  const { mode: t2 } = e2 || {}, [o2, n2] = c(() => {
233
228
  if ("light" === t2 || "dark" === t2) return { themeMode: t2, source: "prop" };
234
229
  if ("undefined" != typeof document) {
235
- const e3 = Ye();
230
+ const e3 = Je();
236
231
  if (e3) return { themeMode: e3, source: "class" };
237
232
  }
238
- return { themeMode: Je(), source: "media" };
233
+ return { themeMode: Ze(), source: "media" };
239
234
  });
240
235
  return s(() => {
241
236
  const e3 = () => {
242
237
  if (t2) return void (t2 === o2.themeMode && "prop" === o2.source || n2((e5) => ({ ...e5, themeMode: t2, source: "prop" })));
243
- const e4 = Ye();
238
+ const e4 = Je();
244
239
  if (e4) n2({ themeMode: e4, source: "class" });
245
240
  else {
246
- const e5 = Je();
241
+ const e5 = Ze();
247
242
  n2({ themeMode: e5, source: "media" });
248
243
  }
249
244
  }, r2 = new MutationObserver(e3), i2 = [document.documentElement, document.body].filter(Boolean);
@@ -254,70 +249,70 @@ function Xe(e2) {
254
249
  };
255
250
  }, [t2]), o2;
256
251
  }
257
- function Ye() {
252
+ function Je() {
258
253
  if ("undefined" == typeof document) return null;
259
254
  const e2 = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
260
255
  return e2.includes("dark") ? "dark" : e2.includes("light") ? "light" : null;
261
256
  }
262
- function Je() {
257
+ function Ze() {
263
258
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
264
259
  }
265
- const Ze = { Popup: "popup", Anchor: "anchor" }, et = { ByPopup: "popupDone", Cancel: "popupCancel", ClickAway: "clickAway" }, tt = { Toolbar: "toolbar", Menuitem: "menuitem" }, ot = (t2) => {
260
+ const et = { Popup: "popup", Anchor: "anchor" }, tt = { ByPopup: "popupDone", Cancel: "popupCancel", ClickAway: "clickAway" }, ot = { Toolbar: "toolbar", Menuitem: "menuitem" }, nt = (t2) => {
266
261
  const { closeFloat: o2, closeFloatAll: n2, floatReference: r2, popupContainer: i2, children: a2, className: l2, sx: s2, ...c2 } = t2;
267
262
  return e(v, { className: h("menu", l2), sx: { display: "flex", flexDirection: "column", ...s2 }, ...c2, children: a2 });
268
- }, nt = (t2, o2, n2) => {
263
+ }, rt = (t2, o2, n2) => {
269
264
  let r2;
270
- return n2 && (r2 = (r2 ? r2 + " " : "") + "rotate(180deg)"), e(Ae, { style: { marginLeft: t2 ? void 0 : o2 ? "-0.25rem" : "-3px", marginRight: t2 ? void 0 : o2 ? "-0.25rem" : "-6px", transform: r2 }, color: "inherit" });
271
- }, rt = r(i((t2, o2) => {
272
- const { open: n2, anchorEl: r2, anchorPosition: i2, label: s2, floatReference: d2, createPopupPanel: p2 = ot, popperProps: u2, onMount: m2, onClosing: h2, onClose: f2, onOpening: x2, onOpen: g2, children: b2, sx: y2, ...v2 } = t2, k2 = W(h2, [h2]), C2 = W(f2, [f2]), M2 = W(x2, [x2]), S2 = W(g2, [g2]), [P2, R2] = c(), D2 = l(null), E2 = W((e2, t3) => {
265
+ return n2 && (r2 = (r2 ? r2 + " " : "") + "rotate(180deg)"), e(He, { style: { marginLeft: t2 ? void 0 : o2 ? "-0.25rem" : "-3px", marginRight: t2 ? void 0 : o2 ? "-0.25rem" : "-6px", transform: r2 }, color: "inherit" });
266
+ }, it = r(i((t2, o2) => {
267
+ const { open: n2, anchorEl: r2, anchorPosition: i2, label: s2, floatReference: d2, createPopupPanel: p2 = nt, popperProps: u2, onMount: m2, onClosing: h2, onClose: f2, onOpening: x2, onOpen: g2, children: b2, sx: y2, ...v2 } = t2, k2 = K(h2, [h2]), C2 = K(f2, [f2]), M2 = K(x2, [x2]), S2 = K(g2, [g2]), [P2, R2] = c(), D2 = l(null), E2 = K((e2, t3) => {
273
268
  R2(e2), m2?.(D2.current, t3);
274
269
  }, [m2]), T2 = a(() => {
275
270
  const t3 = { popupContainer: P2, floatReference: d2, children: b2, ...v2 }, o3 = p2(t3);
276
- return e(w, { elevation: 8, ref: D2, sx: { display: "flex", overflow: "auto", outline: "none", "&.MuiPaper-root": (e2) => Qe(e2) }, tabIndex: 0, children: o3 });
271
+ return e(w, { elevation: 8, ref: D2, sx: { display: "flex", overflow: "auto", outline: "none", "&.MuiPaper-root": (e2) => Ge(e2) }, tabIndex: 0, children: o3 });
277
272
  }, [p2, b2, P2, d2]);
278
- return e(Be, { ref: o2, anchorEl: r2, anchorPosition: i2, label: s2, open: n2, onMount: E2, onOpening: M2, onOpen: S2, onClosing: k2, onClose: C2, ...u2, children: T2 });
273
+ return e(Le, { ref: o2, anchorEl: r2, anchorPosition: i2, label: s2, open: n2, onMount: E2, onOpening: M2, onOpen: S2, onClosing: k2, onClose: C2, ...u2, children: T2 });
279
274
  }));
280
- rt.displayName = "ExhibitFloatPanel";
281
- const it = /* @__PURE__ */ new Map();
282
- let at = null;
283
- const lt = /* @__PURE__ */ new Map();
284
- let st = null;
285
- const ct = (e2 = null, t2, o2, n2) => {
286
- if (st && (st.fn.clear(), st = null), 0 === e2) return t2;
275
+ it.displayName = "ExhibitFloatPanel";
276
+ const at = /* @__PURE__ */ new Map();
277
+ let lt = null;
278
+ const st = /* @__PURE__ */ new Map();
279
+ let ct = null;
280
+ const dt = (e2 = null, t2, o2, n2) => {
281
+ if (ct && (ct.fn.clear(), ct = null), 0 === e2) return t2;
287
282
  null === e2 && (e2 = 120);
288
- const r2 = L.debounce(() => t2(), e2);
289
- return st = { fn: r2, setReferences: o2, isClose: n2 }, st.fn;
290
- }, dt = (e2, t2) => {
283
+ const r2 = F.debounce(() => t2(), e2);
284
+ return ct = { fn: r2, setReferences: o2, isClose: n2 }, ct.fn;
285
+ }, pt = (e2, t2) => {
291
286
  if (null === t2) return;
292
287
  e2.add(t2);
293
- const o2 = it.get(t2.key);
288
+ const o2 = at.get(t2.key);
294
289
  if (!o2) return;
295
- const n2 = lt.get(o2);
296
- n2 && dt(e2, n2);
297
- }, pt = (e2) => {
290
+ const n2 = st.get(o2);
291
+ n2 && pt(e2, n2);
292
+ }, ut = (e2) => {
298
293
  const t2 = /* @__PURE__ */ new Set();
299
- return dt(t2, e2), t2;
300
- }, ut = (t2) => {
301
- const { anchor: o2, label: r2 = null, parentFloat: i2 = null, onOpen: l2, onClose: d2, popperProps: u2, createPopupPanel: m2 = ot } = t2 ?? {}, h2 = W(l2, [l2]), f2 = W(d2, [d2]), [x2, g2] = c(null), [b2, y2] = c(false), [v2, k2] = c(false), w2 = a(() => null === i2 ? (null === at && (at = { key: { label: "root" }, isRoot: true, parent: null, open: () => null, close: (e2) => null, closeChild: (e2) => null, onChildVisible: () => {
294
+ return pt(t2, e2), t2;
295
+ }, mt = (t2) => {
296
+ const { anchor: o2, label: r2 = null, parentFloat: i2 = null, onOpen: l2, onClose: d2, popperProps: u2, createPopupPanel: m2 = nt } = t2 ?? {}, h2 = K(l2, [l2]), f2 = K(d2, [d2]), [x2, g2] = c(null), [b2, y2] = c(false), [v2, k2] = c(false), w2 = a(() => null === i2 ? (null === lt && (lt = { key: { label: "root" }, isRoot: true, parent: null, open: () => null, close: (e2) => null, closeChild: (e2) => null, onChildVisible: () => {
302
297
  }, onChildHidden: () => {
303
- }, closeAll: () => F2(0), floatElement: () => null, anchorElement: () => null }), at) : i2, []), C2 = a(() => ({ label: r2 }), []), M2 = n.useRef(null), S2 = n.useRef(o2);
298
+ }, closeAll: () => F2(0), floatElement: () => null, anchorElement: () => null }), lt) : i2, []), C2 = a(() => ({ label: r2 }), []), M2 = n.useRef(null), S2 = n.useRef(o2);
304
299
  s(() => {
305
300
  S2.current = o2;
306
301
  }, [o2]);
307
302
  const P2 = (e2) => {
308
- const t3 = it.get(e2);
303
+ const t3 = at.get(e2);
309
304
  let o3 = null;
310
305
  if (t3) {
311
- const e3 = lt.get(t3);
306
+ const e3 = st.get(t3);
312
307
  o3 = e3?.close(0);
313
308
  }
314
309
  return o3;
315
- }, R2 = () => P2(K2.key), [D2, E2] = c(), T2 = () => {
310
+ }, R2 = () => P2(W2.key), [D2, E2] = c(), T2 = () => {
316
311
  if (!x2) return void I2();
317
312
  const e2 = new Promise((e3, t3) => {
318
313
  E2((o3) => ({ resolve: e3, reject: t3 }));
319
314
  });
320
- return R2(), it.delete(w2.key), g2(false), e2;
315
+ return R2(), at.delete(w2.key), g2(false), e2;
321
316
  };
322
317
  s(() => {
323
318
  D2 && (D2.resolve(), E2(null));
@@ -329,34 +324,34 @@ const ct = (e2 = null, t2, o2, n2) => {
329
324
  }, []), O2 = () => {
330
325
  if (x2) return void I2();
331
326
  if (w2) {
332
- const e3 = lt.get(w2.key);
327
+ const e3 = st.get(w2.key);
333
328
  e3?.open(0);
334
329
  }
335
- const e2 = it.get(w2.key);
330
+ const e2 = at.get(w2.key);
336
331
  if (e2 && e2 !== C2) {
337
- const t3 = lt.get(e2);
332
+ const t3 = st.get(e2);
338
333
  t3?.close(0);
339
334
  }
340
335
  requestAnimationFrame(() => {
341
- it.set(w2.key, K2.key), g2(true);
336
+ at.set(w2.key, W2.key), g2(true);
342
337
  });
343
- }, [z2, I2] = n.useReducer((e2) => e2 + 1, 0), N2 = p((e2) => null === m2 ? null : m2({ closeFloat: F2, closeFloatAll: H2, ...e2 }), [m2]), B2 = null === m2, L2 = W((e2 = 120) => ct(e2, O2, /* @__PURE__ */ new Set([K2]), false)(), [O2]), F2 = W((e2 = 60) => ct(e2, T2, pt(K2), true)(), [T2]), A2 = W((e2 = 360) => ct(e2, R2, pt(((e3) => {
344
- const t3 = it.get(e3.key);
345
- return t3 && lt.get(t3) || null;
346
- })(K2)), true)(), [R2]), H2 = W($2, [$2]), K2 = a(() => ({ key: C2, isRoot: false, label: r2, parent: w2, onChildVisible: () => {
338
+ }, [z2, I2] = n.useReducer((e2) => e2 + 1, 0), N2 = p((e2) => null === m2 ? null : m2({ closeFloat: F2, closeFloatAll: H2, ...e2 }), [m2]), B2 = null === m2, L2 = K((e2 = 120) => dt(e2, O2, /* @__PURE__ */ new Set([W2]), false)(), [O2]), F2 = K((e2 = 60) => dt(e2, T2, ut(W2), true)(), [T2]), A2 = K((e2 = 360) => dt(e2, R2, ut(((e3) => {
339
+ const t3 = at.get(e3.key);
340
+ return t3 && st.get(t3) || null;
341
+ })(W2)), true)(), [R2]), H2 = K($2, [$2]), W2 = a(() => ({ key: C2, isRoot: false, label: r2, parent: w2, onChildVisible: () => {
347
342
  k2(true);
348
343
  }, onChildHidden: () => {
349
344
  k2(false);
350
345
  }, open: L2, close: F2, closeChild: A2, closeAll: H2, floatElement: () => M2.current, anchorElement: () => S2.current }), []);
351
346
  s(() => {
352
- lt.set(C2, K2);
353
- }, [K2]), s(() => () => {
354
- lt.delete(C2), F2(0);
347
+ st.set(C2, W2);
348
+ }, [W2]), s(() => () => {
349
+ st.delete(C2), F2(0);
355
350
  }, []), s(() => {
356
351
  x2 && !B2 && (y2(true), w2.onChildVisible());
357
352
  }, [x2, B2]);
358
- const q2 = p((e2) => {
359
- e2.which === V.Escape && (e2.preventDefault(), e2.stopPropagation(), F2(0));
353
+ const V2 = p((e2) => {
354
+ e2.which === q.Escape && (e2.preventDefault(), e2.stopPropagation(), F2(0));
360
355
  }, []), _2 = n.useRef(null), j2 = p(() => {
361
356
  const e2 = _2.current, t3 = M2.current;
362
357
  e2 && t3 && (requestAnimationFrame(() => {
@@ -373,19 +368,19 @@ const ct = (e2 = null, t2, o2, n2) => {
373
368
  });
374
369
  }, []), [Q2, G2] = c();
375
370
  s(() => {
376
- B2 && (x2 ? h2?.() : false === x2 && f2?.()), G2(b2 ? e(rt, { floatReference: K2, open: x2, label: r2, anchorEl: o2, onOpening: () => {
371
+ B2 && (x2 ? h2?.() : false === x2 && f2?.()), G2(b2 ? e(it, { floatReference: W2, open: x2, label: r2, anchorEl: o2, onOpening: () => {
377
372
  h2?.(), w2.onChildVisible();
378
373
  }, onClosing: j2, onClose: () => {
379
374
  y2(false), w2.onChildHidden();
380
- }, onMount: U2, popperProps: { onKeyDown: q2, onMouseEnter: (e2) => {
381
- x2 && st?.isClose && st.setReferences.has(K2) && (st.fn.clear(), st = null, K2.closeChild());
375
+ }, onMount: U2, popperProps: { onKeyDown: V2, onMouseEnter: (e2) => {
376
+ x2 && ct?.isClose && ct.setReferences.has(W2) && (ct.fn.clear(), ct = null, W2.closeChild());
382
377
  }, ...u2 }, createPopupPanel: N2 }) : null);
383
378
  }, [b2, x2, r2, B2, u2, N2, z2]);
384
- const X2 = W((e2) => {
385
- if (0 === it.size) return;
379
+ const X2 = K((e2) => {
380
+ if (0 === at.size) return;
386
381
  let t3 = false;
387
- it.forEach((o3) => {
388
- const n2 = lt.get(o3);
382
+ at.forEach((o3) => {
383
+ const n2 = st.get(o3);
389
384
  if (t3) return;
390
385
  if (!n2) return;
391
386
  const r3 = n2.floatElement();
@@ -402,64 +397,64 @@ const ct = (e2 = null, t2, o2, n2) => {
402
397
  return document.addEventListener("mousedown", e2), document.addEventListener("touchstart", e2), document.addEventListener("focus", e2), () => {
403
398
  document.removeEventListener("mousedown", e2), document.removeEventListener("touchstart", e2), document.removeEventListener("focus", e2);
404
399
  };
405
- }, [x2, w2]), { component: Q2, reference: K2 };
406
- }, mt = r(i((o2, n2) => {
407
- const { nestedChildren: r2, variant: i2, disabled: a2 = false, createPopupPanel: l2, ...s2 } = o2, c2 = { disabled: a2, createPopupPanel: W((o3) => {
400
+ }, [x2, w2]), { component: Q2, reference: W2 };
401
+ }, ht = r(i((o2, n2) => {
402
+ const { nestedChildren: r2, variant: i2, disabled: a2 = false, createPopupPanel: l2, ...s2 } = o2, c2 = { disabled: a2, createPopupPanel: K((o3) => {
408
403
  if (!r2 || 0 === r2.length) return null;
409
404
  const { popupContainer: i3, floatReference: a3, ref: l3, ...s3 } = o3, c3 = [];
410
405
  for (let t2 = 0; t2 < r2.length; t2++) {
411
406
  const o4 = r2[t2];
412
- o4 && c3.push(e(mt, { parentFloat: a3, ...s3, ...o4 }, t2));
407
+ o4 && c3.push(e(ht, { parentFloat: a3, ...s3, ...o4 }, t2));
413
408
  }
414
- return t(v, { ref: n2, sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: ["Children here", c3, e(Pt, { parentFloat: a3, children: "Close other children" })] });
409
+ return t(v, { ref: n2, sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: ["Children here", c3, e(Rt, { parentFloat: a3, children: "Close other children" })] });
415
410
  }, [r2]), ...s2 };
416
- return e(i2 === tt.Toolbar ? Dt : Tt, { ...c2 });
417
- })), ht = { placement: "right-start" }, ft = r(i((e2, r2) => {
418
- const { children: i2, sx: l2, parentFloat: c2, createPopupPanel: d2, popperProps: p2 = ht, label: u2, ...m2 } = e2;
419
- ie(n.isValidElement(i2), "Must supply a child component to enable a context menu.");
411
+ return e(i2 === ot.Toolbar ? Et : $t, { ...c2 });
412
+ })), ft = { placement: "right-start" }, xt = r(i((e2, r2) => {
413
+ const { children: i2, sx: l2, parentFloat: c2, createPopupPanel: d2, popperProps: p2 = ft, label: u2, ...m2 } = e2;
414
+ ae(n.isValidElement(i2), "Must supply a child component to enable a context menu.");
420
415
  const h2 = i2, f2 = a(() => ({ ...h2?.props, ...m2, onContextMenu: (e3) => {
421
416
  h2?.props?.onContextMenu?.(e3), e3.isDefaultPrevented() || (m2?.onContextMenu?.(e3), e3.isDefaultPrevented() || (b2(e3), e3.preventDefault()));
422
- } }), [m2, h2?.props]), x2 = W(d2, [d2]), [g2, b2] = n.useState(null), { reference: y2, component: v2 } = ut({ label: u2 ?? "contextMenu", popperProps: p2, parentFloat: c2, anchor: { getBoundingClientRect: () => new DOMRect(g2?.clientX || 0, g2?.clientY || 0) }, onClose: () => b2(null), createPopupPanel: x2 });
417
+ } }), [m2, h2?.props]), x2 = K(d2, [d2]), [g2, b2] = n.useState(null), { reference: y2, component: v2 } = mt({ label: u2 ?? "contextMenu", popperProps: p2, parentFloat: c2, anchor: { getBoundingClientRect: () => new DOMRect(g2?.clientX || 0, g2?.clientY || 0) }, onClose: () => b2(null), createPopupPanel: x2 });
423
418
  return s(() => {
424
419
  g2 ? y2.open(0) : y2.close(0);
425
420
  }, [g2]), t(o, { children: [n.cloneElement(i2, f2), v2] });
426
- })), xt = i((t2, o2) => {
427
- const { slotProps: n2, ...r2 } = t2, { getPortalContainer: i2 } = K();
421
+ })), gt = i((t2, o2) => {
422
+ const { slotProps: n2, ...r2 } = t2, { getPortalContainer: i2 } = V();
428
423
  return e(P, { ref: o2, slotProps: { ...n2, popper: { container: i2, ...n2?.popper || {} } }, ...r2 });
429
424
  });
430
- xt.displayName = "SimpleTooltip";
431
- const gt = r((t2) => {
425
+ gt.displayName = "SimpleTooltip";
426
+ const bt = r((t2) => {
432
427
  const { modifier: o2, sx: n2, ...r2 } = t2;
433
428
  return e(v, { sx: { marginLeft: "1px", marginRight: "1px", borderRadius: "4px", borderStyle: "solid", borderTopWidth: "1px", borderLeftWidth: "1px", borderRightWidth: "1px", borderBottomWidth: "2px", borderTopColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderLeftColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderRightColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderBottomColor: (e2) => f(e2.palette.background.paper, 1 - e2.palette.action.disabledOpacity), backgroundColor: (e2) => f(e2.palette.action.hover, e2.palette.action.disabledOpacity), paddingLeft: "4px", paddingRight: "4px", minHeight: "1.6em", display: "flex", justifyContent: "center", alignItems: "center", boxSizing: "content-box", overflow: "hidden", ...n2 }, ...r2, children: e(v, { sx: { display: "flex", alignItems: "center", justifyContent: "center", textAlign: "center", "& *": { fontWeight: "500" } }, children: o2 }) });
434
- }), bt = L.getOS() === L.OSType.MacOS || L.getOS() === L.OSType.IOS ? "Cmd" : "Ctrl", yt = (t2, o2 = false, n2 = null) => {
429
+ }), yt = F.getOS() === F.OSType.MacOS || F.getOS() === F.OSType.IOS ? "Cmd" : "Ctrl", vt = (t2, o2 = false, n2 = null) => {
435
430
  if (Array.isArray(t2)) {
436
431
  let r3 = [], i3 = t2;
437
- for (let e2 = 0; e2 < i3.length; e2++) r3.push(yt(i3[e2], o2, n2 ?? "" + e2));
432
+ for (let e2 = 0; e2 < i3.length; e2++) r3.push(vt(i3[e2], o2, n2 ?? "" + e2));
438
433
  return e(v, { sx: { display: "flex", alignItems: "center", flexDirection: "column" }, children: r3 }, n2);
439
434
  }
440
435
  if (!t2?.key) return null;
441
436
  const r2 = {};
442
437
  for (let e2 = 0; t2.modifiers && e2 < t2.modifiers.length; e2++) r2[t2.modifiers[e2]] = true;
443
438
  const i2 = [];
444
- return r2?.[q.Ctrl] && (i2.push(e(gt, { modifier: o2 ? "^" : e("div", { style: { paddingRight: "1px" }, children: bt }) }, "ctrl")), i2.push("+")), r2?.[q.Alt] && (i2.push(e(gt, { modifier: o2 ? "⌥" : "Alt" }, "alt")), i2.push("+")), r2?.[q.Shift] && (i2.push(e(gt, { modifier: o2 ? "⇧" : e("div", { style: { paddingRight: "1px" }, children: "Shift" }) }, "shift")), i2.push("+")), r2?.[q.Meta] && (i2.push(e(gt, { modifier: o2 ? e("div", { style: { paddingTop: "1px" }, children: "⌘" }) : "Meta" }, "meta")), i2.push("+")), i2.push(e(gt, { modifier: _.toPrettyKeyCode(t2.key) }, "character")), e(v, { sx: { display: "flex", alignItems: "center" }, children: i2 }, n2);
445
- }, vt = r(i((n2, r2) => {
439
+ return r2?.[_.Ctrl] && (i2.push(e(bt, { modifier: o2 ? "^" : e("div", { style: { paddingRight: "1px" }, children: yt }) }, "ctrl")), i2.push("+")), r2?.[_.Alt] && (i2.push(e(bt, { modifier: o2 ? "⌥" : "Alt" }, "alt")), i2.push("+")), r2?.[_.Shift] && (i2.push(e(bt, { modifier: o2 ? "⇧" : e("div", { style: { paddingRight: "1px" }, children: "Shift" }) }, "shift")), i2.push("+")), r2?.[_.Meta] && (i2.push(e(bt, { modifier: o2 ? e("div", { style: { paddingTop: "1px" }, children: "⌘" }) : "Meta" }, "meta")), i2.push("+")), i2.push(e(bt, { modifier: j.toPrettyKeyCode(t2.key) }, "character")), e(v, { sx: { display: "flex", alignItems: "center" }, children: i2 }, n2);
440
+ }, kt = r(i((n2, r2) => {
446
441
  const { disabled: i2 = false, label: a2, shortcut: l2, chips: d2, description: p2, maxWidth: u2 = 280, useModifierSymbols: m2 = false, children: h2, simple: f2, componentDisabled: x2 = false, sx: g2, ...b2 } = n2;
447
442
  let y2 = null;
448
- l2 && (y2 = yt(l2, m2));
443
+ l2 && (y2 = vt(l2, m2));
449
444
  const [w2, C2] = c(null);
450
445
  s(() => {
451
446
  Promise.resolve(a2).then((e2) => {
452
447
  C2(e2);
453
448
  });
454
449
  }, [a2]);
455
- return e(xt, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...g2 }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !i2 && w2 ? t(v, { sx: { maxWidth: `${u2}px` }, ref: r2, children: [t(v, { sx: { display: "flex", flexDirection: "row", marginBottom: p2 ? "4px" : "0px" }, children: [e(k, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: w2 }), d2 ? e(ze, { chips: d2 }) : null, y2 ? e(v, { sx: { marginLeft: "8px" } }, "leadingSpace") : e(o, {}), y2] }), p2 ? e(k, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: p2 }) : e(o, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: true, ...b2, children: e("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: h2 }) });
456
- })), kt = e(H, {}), wt = e(H, { iconKey: "Check" }), Ct = r(i((o2, n2) => {
450
+ return e(gt, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...g2 }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !i2 && w2 ? t(v, { sx: { maxWidth: `${u2}px` }, ref: r2, children: [t(v, { sx: { display: "flex", flexDirection: "row", marginBottom: p2 ? "4px" : "0px" }, children: [e(k, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: w2 }), d2 ? e(Ie, { chips: d2 }) : null, y2 ? e(v, { sx: { marginLeft: "8px" } }, "leadingSpace") : e(o, {}), y2] }), p2 ? e(k, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: p2 }) : e(o, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: true, ...b2, children: e("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: h2 }) });
451
+ })), wt = e(W, {}), Ct = e(W, { iconKey: "Check" }), Mt = r(i((o2, n2) => {
457
452
  const { dense: r2 = true, outlined: i2 = false, disableHover: l2 = false, parentFloat: s2, selected: d2, icon: p2, tooltipProps: u2, children: m2, primary: x2, sx: g2, disabled: y2, className: k2, onFocus: w2, onBlur: C2, ...M2 } = o2, [S2, P2] = c(false), R2 = { marginRight: "0px", padding: r2 ? "2px" : "7px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, color: (e2) => x2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active, border: (e2) => `solid ${i2 ? e2.palette.divider : "transparent"} 1px`, "& .MuiTouchRipple-child": { borderRadius: (e2) => `${e2.shape.borderRadius}px !important` }, "&.Mui-selected": { backgroundColor: (e2) => f(e2.palette.text.primary, e2.palette.action.selectedOpacity), border: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px` }, "&.Mui-disabled": { border: (e2) => `solid ${i2 ? e2.palette.divider : "transparent"} 1px` }, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, "&.Mui-focusVisible": { outline: "solid transparent 1px", border: "1px solid transparent" }, ...g2 }, D2 = { "&:hover:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary, border: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px`, "&.Mui-selected": { backgroundColor: (e2) => f(e2.palette.text.primary, e2.palette.action.selectedOpacity + e2.palette.action.hoverOpacity) }, "> .outline-hover": { outline: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px` }, backgroundColor: null }, "&.Mui-focusVisible": { outline: (e2) => `solid ${e2.palette.primary.main} 1px`, border: (e2) => `1px solid ${e2.palette?.primary?.main}`, zIndex: 1 } };
458
453
  let E2 = R2;
459
- l2 || (E2 = L.mergeContentful(R2, D2));
454
+ l2 || (E2 = F.mergeContentful(R2, D2));
460
455
  const T2 = a(() => {
461
456
  let e2 = "function" == typeof p2 ? p2() : p2;
462
- return null === e2 ? e2 : e2 || (void 0 === d2 ? kt : wt);
457
+ return null === e2 ? e2 : e2 || (void 0 === d2 ? wt : Ct);
463
458
  }, [p2, d2]);
464
459
  let $2 = t(b, { component: "div", ref: n2, className: h({ "Mui-focusVisible": S2, "Mui-selected": d2, "Mui-disabled": y2 }, k2), onFocus: (e2) => {
465
460
  P2(true), w2?.(e2);
@@ -468,11 +463,11 @@ const gt = r((t2) => {
468
463
  }, size: "small", TouchRippleProps: { center: false }, sx: E2, edge: "end", ...M2, disabled: y2 || false, children: [T2, m2] });
469
464
  if (u2) if (u2.simple && u2.label && !u2.disabled) {
470
465
  const { label: t2, description: o3, maxWidth: n3, shortcut: r3, useModifierSymbols: i3, componentDisabled: a2, simple: l3, chips: s3, ref: c2, ...d3 } = u2;
471
- $2 = e(xt, { disableInteractive: true, title: t2 ?? "", ...d3, children: e(v, { sx: { display: "flex" }, children: $2 }) });
472
- } else $2 = e(vt, { children: $2, ...u2 });
466
+ $2 = e(gt, { disableInteractive: true, title: t2 ?? "", ...d3, children: e(v, { sx: { display: "flex" }, children: $2 }) });
467
+ } else $2 = e(kt, { children: $2, ...u2 });
473
468
  return $2;
474
- })), Mt = e(H, {}), St = (e2) => e2.icon, Pt = r(i((o2, n2) => {
475
- const { icon: r2 = Mt, renderIcon: i2 = St, parentFloat: l2, className: s2, onFocus: d2, selected: p2, onBlur: u2, onMouseOver: m2, onMouseOut: f2, onMouseEnter: x2, disabled: g2, children: b2, sx: y2, tooltipProps: v2, chips: k2, primary: w2, ...C2 } = o2, [M2, S2] = c(false), [P2, E2] = c(false), T2 = a(() => {
469
+ })), St = e(W, {}), Pt = (e2) => e2.icon, Rt = r(i((o2, n2) => {
470
+ const { icon: r2 = St, renderIcon: i2 = Pt, parentFloat: l2, className: s2, onFocus: d2, selected: p2, onBlur: u2, onMouseOver: m2, onMouseOut: f2, onMouseEnter: x2, disabled: g2, children: b2, sx: y2, tooltipProps: v2, chips: k2, primary: w2, ...C2 } = o2, [M2, S2] = c(false), [P2, E2] = c(false), T2 = a(() => {
476
471
  const t2 = i2?.({ icon: r2, disabled: g2, selected: p2 });
477
472
  return t2 ? e(R, { className: h({ "Mui-focusVisible": M2, "Mui-hovered": P2 }), sx: { "& .MuiSvgIcon-root": { color: (e2) => w2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e2) => e2.palette.text.primary } } }, children: t2 }) : null;
478
473
  }, [i2, g2, r2, M2, P2, w2, p2]);
@@ -486,38 +481,38 @@ const gt = r((t2) => {
486
481
  d2?.(e2), S2(true);
487
482
  }, onBlur: (e2) => {
488
483
  u2?.(e2), S2(false);
489
- }, sx: { flex: "1 1 100%", "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, "&.Mui-selected": { color: (e2) => e2.palette.text.primary }, color: (e2) => e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...y2 }, ...C2, children: [T2, b2, k2 ? e(ze, { chips: k2 }) : null] });
490
- return v2 && ($2 = e(vt, { children: $2, placement: "right-start", ...v2 })), $2;
491
- })), Rt = r(i((t2, n2) => {
484
+ }, sx: { flex: "1 1 100%", "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, "&.Mui-selected": { color: (e2) => e2.palette.text.primary }, color: (e2) => e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...y2 }, ...C2, children: [T2, b2, k2 ? e(Ie, { chips: k2 }) : null] });
485
+ return v2 && ($2 = e(kt, { children: $2, placement: "right-start", ...v2 })), $2;
486
+ })), Dt = r(i((t2, n2) => {
492
487
  const { children: r2, sx: i2, primary: a2 = false, variant: l2 = "subtitle1", ...s2 } = t2;
493
488
  return e(o, { children: e(k, { ref: n2, variant: l2, component: "div", sx: { userSelect: "none", fontWeight: "500", paddingLeft: "8px", paddingTop: "subtitle1" === l2 ? "2px" : void 0, paddingBottom: "subtitle1" === l2 ? "2px" : void 0, color: (e2) => a2 ? void 0 : e2.palette.text.secondary, ...i2 }, ...s2, children: r2 }) });
494
- })), Dt = r(i((n2, r2) => {
495
- const { dense: i2 = true, outlined: s2 = false, label: d2, selected: p2 = false, onQuickClick: u2, parentFloat: m2, createPopupPanel: x2, popupProps: g2, onPopupOpen: y2, onPopupClose: k2, quickButtonProps: w2, createQuickButton: C2, tooltip: M2 = "", createTooltip: S2, icon: P2, disabled: R2, buttonProps: D2 = L.EmptyObject, disableHover: E2, touchRippleRef: T2, primary: $2, children: O2, sx: z2, className: I2, ...N2 } = n2, B2 = X(), F2 = a(() => {
489
+ })), Et = r(i((n2, r2) => {
490
+ const { dense: i2 = true, outlined: s2 = false, label: d2, selected: p2 = false, onQuickClick: u2, parentFloat: m2, createPopupPanel: x2, popupProps: g2, onPopupOpen: y2, onPopupClose: k2, quickButtonProps: w2, createQuickButton: C2, tooltip: M2 = "", createTooltip: S2, icon: P2, disabled: R2, buttonProps: D2 = F.EmptyObject, disableHover: E2, touchRippleRef: T2, primary: $2, children: O2, sx: z2, className: I2, ...N2 } = n2, B2 = Y(), L2 = a(() => {
496
491
  const e2 = (e3, t2, o2, n3 = o2) => {
497
492
  const r3 = "boolean" == typeof s2 ? null : s2[e3];
498
493
  return "function" == typeof r3 ? r3(t2) : r3 || (s2 ? o2 : n3);
499
494
  };
500
495
  return { outline: { color: (t2) => e2("color", t2, t2.palette.divider, "transparent"), hoverColor: (t2) => e2("hoverColor", t2, t2.palette.text?.primary, t2.palette.divider), focusColor: (t2) => e2("focusColor", t2, t2.palette?.primary?.main) }, active: "dark" === B2.palette.mode ? B2.palette.text.secondary : B2.palette.text.primary, text: B2.palette.text.icon ?? B2.palette.action.active };
501
- }, [s2, B2]), [A2, H2] = c(false), [K2, q2] = c(false), [_2, j2] = c(false), U2 = l(null), Q2 = l(null), G2 = ut({ anchor: U2.current, label: d2, createPopupPanel: x2, parentFloat: m2, popperProps: g2?.popperProps, onClose: () => {
496
+ }, [s2, B2]), [A2, H2] = c(false), [W2, V2] = c(false), [_2, j2] = c(false), U2 = l(null), Q2 = l(null), G2 = mt({ anchor: U2.current, label: d2, createPopupPanel: x2, parentFloat: m2, popperProps: g2?.popperProps, onClose: () => {
502
497
  H2(false), k2?.();
503
498
  }, onOpen: () => {
504
499
  H2(true), y2?.();
505
- } }), Y2 = W((e2) => {
500
+ } }), X2 = K((e2) => {
506
501
  u2?.(e2), G2.reference.close(0);
507
- }, [u2, G2]), J2 = W(() => {
502
+ }, [u2, G2]), J2 = K(() => {
508
503
  A2 ? G2.reference.close(0) : G2.reference.open(0);
509
504
  }, [A2, G2, m2, d2]), Z2 = a(() => {
510
- const e2 = { "&.bordered": { borderWidth: "1px", borderRadius: "0px", borderTopStyle: "solid", borderBottomStyle: "solid", borderColor: (e3) => F2.outline.color(e3), "&.Mui-focusVisible": { border: (e3) => `1px solid ${F2.outline.focusColor(e3)} !important` }, "&:hover:not(.Mui-disabled, [disabled])": { borderColor: () => E2 ? "transparent" : void 0, backgroundColor: () => E2 ? "transparent" : void 0 }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e3) => F2.outline.hoverColor(e3) }, "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e3) => F2.outline.hoverColor(e3) }, "&.left": { borderTopLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderLeftStyle: "solid" }, "&.hard-right": { borderRightStyle: "solid", borderRightWidth: "1px", borderRightColor: (e3) => F2.outline.color(e3) }, "&.right": { borderTopRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderRightStyle: "solid" }, "&.divider": { borderLeftWidth: "0px !important" } }, "& .MuiTouchRipple-child": { borderRadius: (e3) => `${e3.shape.borderRadius}px !important` } }, t2 = { "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity) } } } }, o2 = { maxHeight: "100%", "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity) } } }, "&:hover:not(.Mui-disabled, [disabled])": { color: (e3) => e3.palette.text.primary }, backgroundColor: () => E2 ? "transparent" : void 0, color: (e3) => e3.palette.text.icon, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, padding: () => i2 ? "2px 3px" : "7px", marginRight: "0" }, n3 = L.mergeContentful(o2, e2), r3 = L.mergeContentful(n3, t2), a2 = L.mergeContentful(o2, e2);
511
- return { quickButtonStyling: n3, openQuickButtonStyling: r3, compoundStyling: a2, openCompoundStyling: L.mergeContentful(a2, t2) };
512
- }, [F2, E2]), ee2 = W((t2) => {
505
+ const e2 = { "&.bordered": { borderWidth: "1px", borderRadius: "0px", borderTopStyle: "solid", borderBottomStyle: "solid", borderColor: (e3) => L2.outline.color(e3), "&.Mui-focusVisible": { border: (e3) => `1px solid ${L2.outline.focusColor(e3)} !important` }, "&:hover:not(.Mui-disabled, [disabled])": { borderColor: () => E2 ? "transparent" : void 0, backgroundColor: () => E2 ? "transparent" : void 0 }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e3) => L2.outline.hoverColor(e3) }, "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e3) => L2.outline.hoverColor(e3) }, "&.left": { borderTopLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderLeftStyle: "solid" }, "&.hard-right": { borderRightStyle: "solid", borderRightWidth: "1px", borderRightColor: (e3) => L2.outline.color(e3) }, "&.right": { borderTopRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderRightStyle: "solid" }, "&.divider": { borderLeftWidth: "0px !important" } }, "& .MuiTouchRipple-child": { borderRadius: (e3) => `${e3.shape.borderRadius}px !important` } }, t2 = { "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity) } } } }, o2 = { maxHeight: "100%", "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity) } } }, "&:hover:not(.Mui-disabled, [disabled])": { color: (e3) => e3.palette.text.primary }, backgroundColor: () => E2 ? "transparent" : void 0, color: (e3) => e3.palette.text.icon, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, padding: () => i2 ? "2px 3px" : "7px", marginRight: "0" }, n3 = F.mergeContentful(o2, e2), r3 = F.mergeContentful(n3, t2), a2 = F.mergeContentful(o2, e2);
506
+ return { quickButtonStyling: n3, openQuickButtonStyling: r3, compoundStyling: a2, openCompoundStyling: F.mergeContentful(a2, t2) };
507
+ }, [L2, E2]), ee2 = K((t2) => {
513
508
  const { children: o2, ref: n3, ...r3 } = t2;
514
- return e(xt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
509
+ return e(gt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
515
510
  }, []), te2 = u2 || C2, oe2 = te2 && (w2?.tooltip || w2?.createTooltip), ne2 = (t2) => {
516
511
  const { tooltip: o2, createTooltip: n3, sx: r3, ...i3 } = t2;
517
512
  let a2 = e(b, { sx: { ...r3 }, component: "div", ...i3 });
518
513
  return oe2 ? (a2 = (n3 ?? ee2)({ title: A2 ? "" : o2 ?? M2, children: e("div", { children: a2 }) }, A2), a2) : a2;
519
514
  }, re2 = { onKeyDown: (e2) => {
520
- e2.keyCode === V.Space ? J2() : e2.keyCode === V.F4 || e2.keyCode === V.Down ? G2.reference.open(0) : e2.keyCode === V.Up && G2.reference.close(0);
515
+ e2.keyCode === q.Space ? J2() : e2.keyCode === q.F4 || e2.keyCode === q.Down ? G2.reference.open(0) : e2.keyCode === q.Up && G2.reference.close(0);
521
516
  } };
522
517
  let ie2 = e(o, {});
523
518
  const ae2 = a(() => "function" == typeof P2 ? P2() : P2, [P2]);
@@ -526,40 +521,40 @@ const gt = r((t2) => {
526
521
  const r3 = (C2 || ne2)({ tabIndex: -1, disabled: R2, size: "small", edge: "end", onMouseEnter: () => {
527
522
  G2.reference.parent.closeChild();
528
523
  }, onMouseDown: (e2) => {
529
- 0 === e2.button && (e2.preventDefault(), Y2(e2));
530
- }, touchRippleRef: T2, children: ae2, ...w2, className: h({ "Mui-focusVisible": K2 || A2, "Mui-selected": p2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, bordered: true, left: true, "hard-right": true }, w2?.className), sx: { ...Z2.quickButtonStyling, height: "100%", ...w2?.sx } });
531
- let a2 = nt(true, i2, A2);
532
- oe2 && (a2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: a2 }, A2)), ie2 = t(o, { children: [r3, e(b, { ref: Q2, component: "div", className: h({ "Mui-selected": A2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, "Mui-focusVisible": K2 || A2, bordered: true, right: true, divider: true }), sx: { paddingLeft: (i2 ? 0 : 2) + "px", paddingRight: (i2 ? 0 : 2) + "px", width: () => "calc(var(--icon-size, 1.25em) * 0.8)", ...Z2.quickButtonStyling, ...n3 }, TouchRippleProps: { center: false }, tabIndex: -1, disabled: R2, size: "small", edge: "end", onMouseDown: (e2) => {
524
+ 0 === e2.button && (e2.preventDefault(), X2(e2));
525
+ }, touchRippleRef: T2, children: ae2, ...w2, className: h({ "Mui-focusVisible": W2 || A2, "Mui-selected": p2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, bordered: true, left: true, "hard-right": true }, w2?.className), sx: { ...Z2.quickButtonStyling, height: "100%", ...w2?.sx } });
526
+ let a2 = rt(true, i2, A2);
527
+ oe2 && (a2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: a2 }, A2)), ie2 = t(o, { children: [r3, e(b, { ref: Q2, component: "div", className: h({ "Mui-selected": A2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, "Mui-focusVisible": W2 || A2, bordered: true, right: true, divider: true }), sx: { paddingLeft: (i2 ? 0 : 2) + "px", paddingRight: (i2 ? 0 : 2) + "px", width: () => "calc(var(--icon-size, 1.25em) * 0.8)", ...Z2.quickButtonStyling, ...n3 }, TouchRippleProps: { center: false }, tabIndex: -1, disabled: R2, size: "small", edge: "end", onMouseDown: (e2) => {
533
528
  0 === e2.button && (e2.preventDefault(), J2());
534
529
  }, children: a2 })] });
535
530
  } else {
536
531
  let t2 = A2 ? Z2.openCompoundStyling : Z2.compoundStyling;
537
- ie2 = e(Ct, { ref: Q2, tabIndex: -1, disabled: R2, size: "small", icon: ae2, className: h({ "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2, "Mui-focusVisible": K2 || A2, bordered: true, left: true, right: true }), sx: { ...Z2.quickButtonStyling, ...t2 }, onMouseDown: (e2) => {
532
+ ie2 = e(Mt, { ref: Q2, tabIndex: -1, disabled: R2, size: "small", icon: ae2, className: h({ "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2, "Mui-focusVisible": W2 || A2, bordered: true, left: true, right: true }), sx: { ...Z2.quickButtonStyling, ...t2 }, onMouseDown: (e2) => {
538
533
  0 === e2.button && (e2.preventDefault(), J2());
539
- }, children: nt(false, i2, A2) });
534
+ }, children: rt(false, i2, A2) });
540
535
  }
541
536
  const { className: le2, sx: se2, ...ce2 } = D2;
542
- let de2 = e(v, { onFocus: () => q2(true), onBlur: () => q2(false), onMouseOver: () => j2(true), onMouseOut: () => j2(false), ...re2, "aria-label": "split button", ref: U2, tabIndex: R2 ? void 0 : 0, className: h(le2, "split-button-root", { "Mui-focusVisible": K2 || A2, "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2 }), sx: { display: "flex", flex: "1 1 100%", alignItems: "stretch", width: "fit-content", "&:not(.Mui-disabled)": { cursor: "pointer" }, marginLeft: s2 ? "1px" : "0px", marginRight: s2 ? "1px" : "0px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, "&.Mui-focusVisible": { outline: (e2) => `solid ${e2.palette.primary.main} 1px`, zIndex: 2 }, ...se2 }, ...ce2, children: ie2 });
543
- return oe2 || (de2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: de2 }, A2)), t(v, { className: h(I2, "popupIconButton"), ref: r2, ...N2, sx: { zIndex: K2 || A2 ? 2 : void 0, display: "flex", alignItems: "center", ...z2 }, children: [de2, G2.component] });
537
+ let de2 = e(v, { onFocus: () => V2(true), onBlur: () => V2(false), onMouseOver: () => j2(true), onMouseOut: () => j2(false), ...re2, "aria-label": "split button", ref: U2, tabIndex: R2 ? void 0 : 0, className: h(le2, "split-button-root", { "Mui-focusVisible": W2 || A2, "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2 }), sx: { display: "flex", flex: "1 1 100%", alignItems: "stretch", width: "fit-content", "&:not(.Mui-disabled)": { cursor: "pointer" }, marginLeft: s2 ? "1px" : "0px", marginRight: s2 ? "1px" : "0px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, "&.Mui-focusVisible": { outline: (e2) => `solid ${e2.palette.primary.main} 1px`, zIndex: 2 }, ...se2 }, ...ce2, children: ie2 });
538
+ return oe2 || (de2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: de2 }, A2)), t(v, { className: h(I2, "popupIconButton"), ref: r2, ...N2, sx: { zIndex: W2 || A2 ? 2 : void 0, display: "flex", alignItems: "center", ...z2 }, children: [de2, G2.component] });
544
539
  }));
545
- Dt.displayName = "ExhibitPopupIconButton";
546
- const Et = {}, Tt = r(i((n2, r2) => {
547
- const { selected: i2 = false, label: s2, onQuickClick: d2, parentFloat: u2, createPopupPanel: m2, popupProps: f2 = Et, onPopupOpen: x2, onPopupClose: g2, quickButtonProps: b2, createQuickButton: k2, tooltip: w2 = "", createTooltip: C2, icon: M2, disabled: S2, touchRippleRef: P2, primary: R2, children: E2, sx: T2, ...$2 } = n2, [O2, z2] = c(false), [I2, N2] = c(false), [B2, L2] = c(false), [F2, A2] = c(false), H2 = l(null), K2 = l(null), V2 = a(() => {
540
+ Et.displayName = "ExhibitPopupIconButton";
541
+ const Tt = {}, $t = r(i((n2, r2) => {
542
+ const { selected: i2 = false, label: s2, onQuickClick: d2, parentFloat: u2, createPopupPanel: m2, popupProps: f2 = Tt, onPopupOpen: x2, onPopupClose: g2, quickButtonProps: b2, createQuickButton: k2, tooltip: w2 = "", createTooltip: C2, icon: M2, disabled: S2, touchRippleRef: P2, primary: R2, children: E2, sx: T2, ...$2 } = n2, [O2, z2] = c(false), [I2, N2] = c(false), [B2, L2] = c(false), [F2, A2] = c(false), H2 = l(null), W2 = l(null), V2 = a(() => {
548
543
  if (!f2) return;
549
544
  const { popperProps: e2 } = f2;
550
545
  return { placement: "right-start", offsets: [-4, -2], ...e2 };
551
- }, [f2]), q2 = ut({ anchor: H2.current, label: s2, createPopupPanel: m2, parentFloat: u2, popperProps: V2, onClose: () => {
546
+ }, [f2]), q2 = mt({ anchor: H2.current, label: s2, createPopupPanel: m2, parentFloat: u2, popperProps: V2, onClose: () => {
552
547
  z2(false), g2?.();
553
548
  }, onOpen: () => {
554
549
  z2(true), x2?.();
555
- } }), _2 = W((e2) => {
550
+ } }), _2 = K((e2) => {
556
551
  0 === e2.button && (d2?.(e2), q2.reference.close(0));
557
- }, [d2]), j2 = e(He, {}), U2 = { "&.Mui-selected": { color: (e2) => e2.palette.text.primary, "& svg * ": { color: (e2) => e2.palette.text.primary } } }, Q2 = p((t2) => {
552
+ }, [d2]), j2 = e(We, {}), U2 = { "&.Mui-selected": { color: (e2) => e2.palette.text.primary, "& svg * ": { color: (e2) => e2.palette.text.primary } } }, Q2 = p((t2) => {
558
553
  const { children: o2, ref: n3, ...r3 } = t2;
559
- return e(xt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
554
+ return e(gt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
560
555
  }, []), G2 = d2 || k2, X2 = (t2) => {
561
556
  const { tooltip: o2, createTooltip: n3, ...r3 } = t2;
562
- return e(Pt, { icon: M2, className: h({ "Mui-hovered": B2 }), sx: { flex: "1 1 100%", ...U2 }, ...r3, children: s2 });
557
+ return e(Rt, { icon: M2, className: h({ "Mui-hovered": B2 }), sx: { flex: "1 1 100%", ...U2 }, ...r3, children: s2 });
563
558
  }, Y2 = { onFocus: () => {
564
559
  N2(true);
565
560
  }, onBlur: () => N2(false), onMouseOver: () => {
@@ -578,34 +573,34 @@ const Et = {}, Tt = r(i((n2, r2) => {
578
573
  }, onMouseDown: (e2) => {
579
574
  0 === e2.button && (e2.preventDefault(), _2(e2));
580
575
  }, className: h("quick-left", {}, b2?.className), ...b2 });
581
- J2 = t(o, { children: [n3, e(y, { sx: { ml: "0px", mr: "0px" }, orientation: "vertical", variant: "middle", flexItem: true }), e(D, { ref: K2, className: h({ "Mui-selected": O2, "Mui-hovered": B2 }), sx: { borderTopLeftRadius: "0px", borderBottomLeftRadius: "0px", paddingLeft: "0px", paddingRight: "0px", marginLeft: "0px", color: (e2) => R2 ? void 0 : e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...U2 }, tabIndex: -1, disabled: S2, ...Y2, children: e(v, { className: "expand-icon", sx: { flex: "none", display: "flex", border: "1px solid transparent", paddingTop: "1px", paddingBottom: "1px", color: (e2) => R2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, onMouseOver: (e2) => {
576
+ J2 = t(o, { children: [n3, e(y, { sx: { ml: "0px", mr: "0px" }, orientation: "vertical", variant: "middle", flexItem: true }), e(D, { ref: W2, className: h({ "Mui-selected": O2, "Mui-hovered": B2 }), sx: { borderTopLeftRadius: "0px", borderBottomLeftRadius: "0px", paddingLeft: "0px", paddingRight: "0px", marginLeft: "0px", color: (e2) => R2 ? void 0 : e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...U2 }, tabIndex: -1, disabled: S2, ...Y2, children: e(v, { className: "expand-icon", sx: { flex: "none", display: "flex", border: "1px solid transparent", paddingTop: "1px", paddingBottom: "1px", color: (e2) => R2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, onMouseOver: (e2) => {
582
577
  e2.preventDefault(), A2(true);
583
578
  }, onMouseLeave: () => {
584
579
  A2(false);
585
580
  }, onClick: (e2) => {
586
581
  e2.preventDefault(), O2 ? q2.reference.close() : q2.reference.open();
587
582
  }, children: j2 }) })] });
588
- } else J2 = t(Pt, { ref: K2, tabIndex: -1, disabled: S2, icon: M2, className: h({ "Mui-selected": O2 || i2, "Mui-hovered": B2 }), sx: { flex: "1 1 100%", paddingRight: "0px", ...U2 }, onClick: (e2) => {
583
+ } else J2 = t(Rt, { ref: W2, tabIndex: -1, disabled: S2, icon: M2, className: h({ "Mui-selected": O2 || i2, "Mui-hovered": B2 }), sx: { flex: "1 1 100%", paddingRight: "0px", ...U2 }, onClick: (e2) => {
589
584
  e2.preventDefault(), O2 ? q2.reference.close() : q2.reference.open();
590
585
  }, ...Y2, children: [e("div", { style: { flex: "1 1 100%" }, children: s2 }), e(v, { className: "expand-icon", sx: { flex: "none", display: "flex", color: (e2) => R2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, children: j2 })] });
591
586
  let Z2 = e(v, { "aria-label": "split button", ref: H2, tabIndex: S2 ? void 0 : 0, className: h({ "Mui-disabled": S2, "Mui-selected": O2, "Mui-focusVisible": I2 || O2, "Mui-hovered": B2 }), sx: { display: "flex", flex: "1 1 100%", alignItems: "center", width: "fit-content", "& .quick-left": { borderTopRightRadius: "0px", borderBottomRightRadius: "0px", marginRight: "-1px" }, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, ...T2 }, ...$2, children: J2 });
592
587
  return G2 && !F2 && (b2?.tooltip || b2?.createTooltip) && (Z2 = (b2?.createTooltip ?? Q2)({ title: O2 ? "" : Z2 ?? b2?.tooltip, children: Z2 }, O2)), t(v, { ref: r2, sx: { zIndex: I2 || O2 ? 2 : void 0, display: "flex", " .tooltip-wrapper": { display: "flex", flex: "1 1 100%" } }, children: [Z2, q2.component] });
593
- })), $t = r(i((t2, o2) => {
588
+ })), Ot = r(i((t2, o2) => {
594
589
  const { onSelectToggle: n2, selected: r2 = false, label: i2, shortcut: a2, tabIndex: l2 = 0, preventFocus: s2 = false, ...c2 } = t2;
595
- return e(vt, { label: i2, shortcut: a2, children: e(Ct, { ref: o2, outlined: false, tabIndex: l2, selected: r2, onMouseDown: (e2) => {
590
+ return e(kt, { label: i2, shortcut: a2, children: e(Mt, { ref: o2, outlined: false, tabIndex: l2, selected: r2, onMouseDown: (e2) => {
596
591
  s2 && e2.preventDefault();
597
592
  }, onClick: () => {
598
593
  n2?.(!r2);
599
594
  }, ...c2 }) });
600
- })), Ot = e(H, {}), zt = e(H, { iconKey: "Check" }), It = r(i((t2, o2) => {
595
+ })), zt = e(W, {}), It = e(W, { iconKey: "Check" }), Nt = r(i((t2, o2) => {
601
596
  const { children: n2, selected: r2 = true, outlined: i2 = true, sx: a2, ...l2 } = t2;
602
597
  let s2 = n2;
603
- return null === s2 && (s2 = Ot), s2 || (s2 = zt), e(v, { ref: o2, sx: { ...{ display: "flex", border: (e2) => r2 ? `solid ${i2 ? e2.palette.divider : "transparent"} 1px` : "solid transparent 1px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, backgroundColor: (e2) => {
598
+ return null === s2 && (s2 = zt), s2 || (s2 = It), e(v, { ref: o2, sx: { ...{ display: "flex", border: (e2) => r2 ? `solid ${i2 ? e2.palette.divider : "transparent"} 1px` : "solid transparent 1px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, backgroundColor: (e2) => {
604
599
  if (r2) return f(e2.palette.text.icon ?? e2.palette.action.active, e2.palette.action.selectedOpacity);
605
600
  } }, ...a2 }, ...l2, children: s2 });
606
601
  }));
607
- function Nt(e2) {
608
- const [t2, o2] = c(() => /* @__PURE__ */ new Map()), { showModal: r2, updateModal: i2, destroyModal: a2, hideModal: l2 } = ae({ disableAutoDestroy: true });
602
+ function Bt(e2) {
603
+ const [t2, o2] = c(() => /* @__PURE__ */ new Map()), { showModal: r2, updateModal: i2, destroyModal: a2, hideModal: l2 } = le({ disableAutoDestroy: true });
609
604
  return (s2, c2, d2, p2) => new Promise((u2, m2) => {
610
605
  const h2 = { ...e2, ...d2, onHide: () => {
611
606
  const e3 = t2.get(s2);
@@ -625,46 +620,46 @@ function Nt(e2) {
625
620
  o2((e3) => (e3.set(s2, { id: g2.id, element: null }), e3));
626
621
  });
627
622
  }
628
- const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
629
- const { defaultPosition: n2 = Bt, PaperComponent: r2 = w, onDragStop: i2, rootSel: d2 = ".MuiModal-root", handleSel: p2 = ".draggable-title", titleSize: m2, rootSize: h2, ...f2 } = t2, x2 = l(null), g2 = a(() => m2 && h2 ? { left: 0, top: 0, right: h2.width - m2.width, bottom: h2.height - m2.height } : null, [m2, h2]), [b2, y2] = c(null), [v2, k2] = c(null), [C2, M2] = c(null);
623
+ const Lt = { x: 0, y: 0 }, Ft = r(i((t2, o2) => {
624
+ const { defaultPosition: n2 = Lt, PaperComponent: r2 = w, onDragStop: i2, rootSel: d2 = ".MuiModal-root", handleSel: p2 = ".draggable-title", titleSize: m2, rootSize: h2, ...f2 } = t2, x2 = l(null), g2 = a(() => m2 && h2 ? { left: 0, top: 0, right: h2.width - m2.width, bottom: h2.height - m2.height } : null, [m2, h2]), [b2, y2] = c(null), [v2, k2] = c(null), [C2, M2] = c(null);
630
625
  return u(() => {
631
- !b2 && n2 && y2(n2 ?? Bt);
626
+ !b2 && n2 && y2(n2 ?? Lt);
632
627
  }, [n2]), s(() => {
633
628
  g2 && b2 && k2({ x: Math.max(0, Math.min(b2.x, g2.right)), y: Math.max(0, Math.min(b2.y, g2.bottom)) });
634
- }, [b2, g2]), e(ce, { nodeRef: x2, handle: p2, cancel: '[class*="MuiDialogContent-root"]', position: v2, bounds: g2 ?? ".MuiModal-root", onStop: i2, onStart: (e2, t3) => {
629
+ }, [b2, g2]), e(de, { nodeRef: x2, handle: p2, cancel: '[class*="MuiDialogContent-root"]', position: v2, bounds: g2 ?? ".MuiModal-root", onStop: i2, onStart: (e2, t3) => {
635
630
  const o3 = e2;
636
631
  M2({ x: (o3.clientX ?? o3.touches?.[0]?.clientX) - t3.x, y: (o3.clientY ?? o3.touches?.[0]?.clientY) - t3.y });
637
632
  }, onDrag: (e2, t3) => {
638
633
  const o3 = e2, n3 = o3.clientX ?? o3.touches?.[0]?.clientX, r3 = o3.clientY ?? o3.touches?.[0]?.clientY;
639
634
  y2({ x: n3 - C2.x, y: r3 - C2.y });
640
- }, children: e(r2, { ref: oe([x2, o2]), ...f2 }) });
641
- })), Ft = { x: "50", y: "50" }, At = r(i((o2, n2) => {
642
- const r2 = Z({ props: o2, name: "MuiDialog" }), i2 = X(), a2 = { enter: 0.66 * i2.transitions.duration.enteringScreen, exit: 0.66 * i2.transitions.duration.leavingScreen }, { title: d2 = "SheetXL", key: p2 = "draggable-window", onCancel: u2, onDone: m2, onShow: x2, onShown: g2, onHide: y2, onClose: k2, open: C2, autoFocusSel: M2, children: S2, transitionDuration: P2 = a2, TransitionProps: R2, slots: D2 = L.EmptyArray, slotProps: O2 = L.EmptyArray, sx: z2, className: I2, onMouseDown: N2, initialPosition: B2 = Ft, isModal: F2 = false, ...A2 } = r2;
643
- let q2 = D2.transition ?? E;
644
- const _2 = D2.backdrop ?? T, U2 = D2.paper ?? w;
635
+ }, children: e(r2, { ref: ne([x2, o2]), ...f2 }) });
636
+ })), At = { x: "50", y: "50" }, Ht = r(i((o2, n2) => {
637
+ const r2 = ee({ props: o2, name: "MuiDialog" }), i2 = Y(), a2 = { enter: 0.66 * i2.transitions.duration.enteringScreen, exit: 0.66 * i2.transitions.duration.leavingScreen }, { title: d2 = "SheetXL", key: p2 = "draggable-window", onCancel: u2, onDone: m2, onShow: x2, onShown: g2, onHide: y2, onClose: k2, open: C2, autoFocusSel: M2, children: S2, transitionDuration: P2 = a2, TransitionProps: R2, slots: D2 = F.EmptyArray, slotProps: O2 = F.EmptyArray, sx: z2, className: I2, onMouseDown: N2, initialPosition: B2 = At, isModal: L2 = false, ...A2 } = r2;
638
+ let H2 = D2.transition ?? E;
639
+ const _2 = D2.backdrop ?? T, j2 = D2.paper ?? w;
645
640
  let Q2 = O2.transition;
646
641
  R2 && (Q2 = { ...R2, ...Q2 });
647
- const G2 = O2.backdrop, Y2 = O2.paper, J2 = l(null), [ee2, te2] = c(null), [ne2, ie2] = c(false), [ae2, ce2] = c(false), de2 = l(null), [pe2, ue2] = re(), me2 = l(null), [he2, fe2] = re(), xe2 = l(null);
642
+ const G2 = O2.backdrop, X2 = O2.paper, J2 = l(null), [Z2, te2] = c(null), [oe2, re2] = c(false), [ae2, le2] = c(false), de2 = l(null), [pe2, ue2] = ie(), me2 = l(null), [he2, fe2] = ie(), xe2 = l(null);
648
643
  s(() => {
649
- ee2 && ie2(C2);
650
- }, [C2, ee2]);
651
- const ge2 = W(() => {
652
- u2?.(), ie2(false);
644
+ Z2 && re2(C2);
645
+ }, [C2, Z2]);
646
+ const ge2 = K(() => {
647
+ u2?.(), re2(false);
653
648
  }, [u2]);
654
649
  s(() => {
655
- if (0 === ue2.width && 0 === ue2.height || ee2) return;
650
+ if (0 === ue2.width && 0 === ue2.height || Z2) return;
656
651
  const e2 = xe2.current?.getBoundingClientRect(), t2 = ue2.height - e2.height, o3 = ue2.width - e2.width;
657
652
  let n3 = 0.5 * o3, r3 = 0.5 * t2;
658
653
  "number" == typeof B2?.x ? n3 = B2.x : "string" == typeof B2?.x && (n3 = o3 * (parseFloat(B2.x) / 100)), "number" == typeof B2?.y ? r3 = B2.y : "string" == typeof B2?.y && (r3 = t2 * (parseFloat(B2.y) / 100)), te2({ x: n3, y: r3 });
659
654
  }, [ue2, fe2]);
660
- const [be2, ye2] = c(false), [ve2, ke2] = c(null), [we2, Ce2] = c(null), Me2 = W((e2) => {
655
+ const [be2, ye2] = c(false), [ve2, ke2] = c(null), [we2, Ce2] = c(null), Me2 = K((e2) => {
661
656
  if (ve2) return ve2.focus(e2), true;
662
657
  if (M2) {
663
658
  const t2 = me2.current?.querySelectorAll?.(M2);
664
659
  if (t2 && t2.length > 0) return t2[0]?.focus?.(e2), true;
665
660
  }
666
661
  return me2.current?.focus?.(e2), false;
667
- }, [ve2, M2]), Se2 = j(n2, () => ({ focus: (e2) => {
662
+ }, [ve2, M2]), Se2 = U(n2, () => ({ focus: (e2) => {
668
663
  Me2(e2);
669
664
  } }), []), Pe2 = { ...Q2, onExited: (e2) => {
670
665
  m2?.(null), Q2?.onExited?.(e2);
@@ -672,27 +667,27 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
672
667
  const t2 = we2;
673
668
  t2 && requestAnimationFrame(() => {
674
669
  Se2.current?.contains(document.activeElement) && t2.focus();
675
- }), y2?.(), ce2(false), Q2?.onExit?.(e2);
670
+ }), y2?.(), le2(false), Q2?.onExit?.(e2);
676
671
  }, onEntered: (e2, t2) => {
677
672
  x2?.(), Q2?.onEntered?.(e2, t2);
678
673
  }, onEntering: (e2, t2) => {
679
- ce2(true), g2?.(Se2.current);
674
+ le2(true), g2?.(Se2.current);
680
675
  } };
681
676
  s(() => {
682
677
  ae2 && Me2();
683
678
  }, [ae2]);
684
- let Re2 = e(se, { focusTrapOptions: { escapeDeactivates: false, allowOutsideClick: true, initialFocus: false }, ref: J2, active: ae2, children: e(q2, { in: ne2, timeout: P2, role: "presentation", ...Pe2, children: e(v, { className: "MuiDialog-container", ref: me2, tabIndex: 0, sx: { outline: "none", position: "relative" }, onKeyDown: (e2) => {
685
- e2.which === V.Escape && (ge2(), de2.current?.start(e2, { center: false }), setTimeout(() => de2.current?.stop(e2), 180)), e2.stopPropagation();
686
- }, children: t(Lt, { ref: oe([xe2, n2]), className: h({ "Mui-focusVisible": be2 }, I2, "draggable"), sx: { "& *": (e2) => Qe(e2), pointerEvents: "auto", userSelect: "none", "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, "&.Mui-focusVisible": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, position: "absolute", maxWidth: "100%", ...z2 }, defaultPosition: ee2, titleSize: fe2, rootSize: ue2, PaperComponent: U2, ...A2, ...Y2, children: [d2 ? e($, { className: h({ "Mui-selected": be2 }, "draggable-title"), sx: { cursor: "move", display: "flex", color: (e2) => e2.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (e2) => `${e2.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (e2) => e2.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (e2) => f(e2.palette.action.hover, 0.03) }, ref: he2, children: t(v, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(1), marginLeft: (e2) => e2.spacing(1), marginRight: (e2) => e2.spacing(1) }, children: [e(v, { sx: { flex: "1 1 100%", paddingLeft: (e2) => e2.spacing(1) }, children: d2 }), e(vt, { label: "Close", children: e(b, { "aria-label": "close", sx: { color: (e2) => e2.palette.text.icon ?? e2.palette.action.active }, touchRippleRef: de2, onPointerDown: (e2) => {
679
+ let Re2 = e(ce, { focusTrapOptions: { escapeDeactivates: false, allowOutsideClick: true, initialFocus: false }, ref: J2, active: ae2, children: e(H2, { in: oe2, timeout: P2, role: "presentation", ...Pe2, children: e(v, { className: "MuiDialog-container", ref: me2, tabIndex: 0, sx: { outline: "none", position: "relative" }, onKeyDown: (e2) => {
680
+ e2.which === q.Escape && (ge2(), de2.current?.start(e2, { center: false }), setTimeout(() => de2.current?.stop(e2), 180)), e2.stopPropagation();
681
+ }, children: t(Ft, { ref: ne([xe2, n2]), className: h({ "Mui-focusVisible": be2 }, I2, "draggable"), sx: { "& *": (e2) => Ge(e2), pointerEvents: "auto", userSelect: "none", "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, "&.Mui-focusVisible": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, position: "absolute", maxWidth: "100%", ...z2 }, defaultPosition: Z2, titleSize: fe2, rootSize: ue2, PaperComponent: j2, ...A2, ...X2, children: [d2 ? e($, { className: h({ "Mui-selected": be2 }, "draggable-title"), sx: { cursor: "move", display: "flex", color: (e2) => e2.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (e2) => `${e2.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (e2) => e2.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (e2) => f(e2.palette.action.hover, 0.03) }, ref: he2, children: t(v, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(1), marginLeft: (e2) => e2.spacing(1), marginRight: (e2) => e2.spacing(1) }, children: [e(v, { sx: { flex: "1 1 100%", paddingLeft: (e2) => e2.spacing(1) }, children: d2 }), e(kt, { label: "Close", children: e(b, { "aria-label": "close", sx: { color: (e2) => e2.palette.text.icon ?? e2.palette.action.active }, touchRippleRef: de2, onPointerDown: (e2) => {
687
682
  de2.current?.start(e2, { center: false }), e2.stopPropagation(), e2.preventDefault();
688
- }, onPointerUp: ge2, children: e(H, { iconKey: "Close" }) }) })] }) }) : null, S2] }) }) }) }), De2 = null;
689
- F2 && (De2 = e(_2, { ...G2, open: ne2, onMouseDown: (e2) => {
683
+ }, onPointerUp: ge2, children: e(W, { iconKey: "Close" }) }) })] }) }) : null, S2] }) }) }) }), De2 = null;
684
+ L2 && (De2 = e(_2, { ...G2, open: oe2, onMouseDown: (e2) => {
690
685
  ge2(), G2?.onMouseDown?.(e2);
691
686
  }, onClick: (e2) => {
692
687
  k2?.(e2, "backdropClick"), G2?.onClick?.(e2);
693
688
  }, sx: { pointerEvents: "auto", ...G2?.sx } }));
694
- const { getPortalContainer: Ee2 } = K();
695
- return le(t(v, { className: "MuiModal-root", sx: { position: "fixed", zIndex: "1300", right: "0", bottom: "0", top: "0", left: "0", outline: "0", display: "block", pointerEvents: "none" }, ref: oe([Se2, pe2]), onPointerDown: (e2) => {
689
+ const { getPortalContainer: Ee2 } = V();
690
+ return se(t(v, { className: "MuiModal-root", sx: { position: "fixed", zIndex: "1300", right: "0", bottom: "0", top: "0", left: "0", outline: "0", display: "block", pointerEvents: "none" }, ref: ne([Se2, pe2]), onPointerDown: (e2) => {
696
691
  be2 && (e2.target === me2.current || e2.target.tabIndex < 0) && me2.current?.contains(document.activeElement);
697
692
  }, onContextMenu: (e2) => {
698
693
  e2.isPropagationStopped() || e2.preventDefault();
@@ -703,21 +698,21 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
703
698
  }, onBlur: (e2) => {
704
699
  Se2?.current?.contains(e2.relatedTarget) || (Ce2(null), J2.current?.focusTrap?.pause(), ye2(false));
705
700
  }, children: [De2, Re2] }), Ee2(), p2 + "");
706
- })), Ht = ["Ok", "Cancel"], Wt = r(i((o2, n2) => {
707
- const { description: r2, icon: i2, onCancel: s2, onOption: c2, onDone: d2, onValidateOption: p2, createOptionsButton: u2, options: m2 = Ht, autoFocusSel: h2 = ".defaultOption", defaultOption: x2 = m2[0], cancelOption: g2 = "Cancel", children: b2, ...y2 } = o2, w2 = pe({ shouldUseNativeValidation: false }), { handleSubmit: C2, formState: M2 } = w2, S2 = l(null), P2 = l(null), R2 = l(null), D2 = W(async (e2) => {
701
+ })), Wt = ["Ok", "Cancel"], Kt = r(i((o2, n2) => {
702
+ const { description: r2, icon: i2, onCancel: s2, onOption: c2, onDone: d2, onValidateOption: p2, createOptionsButton: u2, options: m2 = Wt, autoFocusSel: h2 = ".defaultOption", defaultOption: x2 = m2[0], cancelOption: g2 = "Cancel", children: b2, ...y2 } = o2, w2 = ue({ shouldUseNativeValidation: false }), { handleSubmit: C2, formState: M2 } = w2, S2 = l(null), P2 = l(null), R2 = l(null), D2 = K(async (e2) => {
708
703
  let t2;
709
704
  try {
710
705
  if (t2 = await Promise.resolve(p2?.(e2)) ?? true, true !== t2) return;
711
706
  await Promise.resolve(c2?.(e2, e2 === g2, e2 === x2)), d2?.(e2);
712
707
  } catch (e3) {
713
708
  }
714
- }, [c2, d2, p2, g2, x2]), E2 = W((e2, t2) => {
709
+ }, [c2, d2, p2, g2, x2]), E2 = K((e2, t2) => {
715
710
  setTimeout(() => {
716
711
  D2(x2);
717
712
  }, 180);
718
- }, [D2]), T2 = W(() => {
713
+ }, [D2]), T2 = K(() => {
719
714
  c2?.(g2, true, false), s2?.(), d2?.(null);
720
- }, [c2, g2, s2, d2]), $2 = M2 && (Object.keys(M2.errors).length > 0 || M2.disabled || M2.isSubmitted), N2 = W((t2, o3) => {
715
+ }, [c2, g2, s2, d2]), $2 = M2 && (Object.keys(M2.errors).length > 0 || M2.disabled || M2.isSubmitted), N2 = K((t2, o3) => {
721
716
  const n3 = t2 === g2, r3 = { className: o3 ? "defaultOption" : "action", type: o3 ? "submit" : "button", style: { minWidth: "75px" }, onClick: () => {
722
717
  n3 ? T2() : o3 || D2(t2);
723
718
  } };
@@ -738,35 +733,35 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
738
733
  }
739
734
  return e2;
740
735
  }, [m2, x2, M2]);
741
- return e(At, { onCancel: T2, initialPosition: { y: "touch" === de ? "15" : "35" }, onDone: d2, autoFocusSel: h2, isModal: true, ref: n2, ...y2, children: e(ue, { ...w2, children: t("form", { ref: R2, onSubmit: C2(E2), children: [e(z, { dividers: true, onKeyDown: (e2) => {
736
+ return e(Ht, { onCancel: T2, initialPosition: { y: "touch" === pe ? "15" : "35" }, onDone: d2, autoFocusSel: h2, isModal: true, ref: n2, ...y2, children: e(me, { ...w2, children: t("form", { ref: R2, onSubmit: C2(E2), children: [e(z, { dividers: true, onKeyDown: (e2) => {
742
737
  if (e2.isDefaultPrevented()) return;
743
738
  e2.stopPropagation();
744
739
  let t2 = null, o3 = null;
745
- const n3 = e2.which === V.Escape && g2;
740
+ const n3 = e2.which === q.Escape && g2;
746
741
  if (n3) t2 = g2, o3 = P2;
747
742
  else {
748
743
  if ($2) return;
749
- e2.which === V.Enter && (t2 = x2 ?? m2[0], o3 = S2);
744
+ e2.which === q.Enter && (t2 = x2 ?? m2[0], o3 = S2);
750
745
  }
751
746
  t2 && (o3.current?.start(e2, { center: false }), setTimeout(() => {
752
747
  o3.current?.stop(e2), n3 && D2(t2);
753
748
  }, 180));
754
749
  }, children: t(v, { sx: { display: "flex", flexDirection: "column", whiteSpace: "pre-wrap", rowGap: (e2) => e2.spacing(i2 || r2 ? 1.5 : 0) }, children: [t(v, { sx: { display: "flex", flexDirection: "column" }, children: [i2, e(k, { children: r2 })] }), b2] }) }), e(I, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1), paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), backgroundColor: (e2) => f(e2.palette.action.hover, 0.03) }, children: B2 })] }) }) });
755
- })), Kt = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Wt, default: Wt }, Symbol.toStringTag, { value: "Module" })), Vt = n.lazy(() => Promise.resolve().then(() => Kt)), qt = (e2) => {
756
- const { showModal: t2 } = ae();
750
+ })), Vt = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Kt, default: Kt }, Symbol.toStringTag, { value: "Module" })), qt = n.lazy(() => Promise.resolve().then(() => Vt)), _t = (e2) => {
751
+ const { showModal: t2 } = le();
757
752
  return (o2) => new Promise((n2) => {
758
- const r2 = t2(Vt, { ...e2, ...o2, onOption(e3) {
753
+ const r2 = t2(qt, { ...e2, ...o2, onOption(e3) {
759
754
  o2?.onOption?.(e3, e3 === o2.cancelOption, e3 === o2.defaultOption), n2(e3);
760
755
  }, onDone: () => {
761
756
  o2?.onDone?.(), r2.hide();
762
757
  } });
763
758
  });
764
- }, _t = n.lazy(() => import("./BcnYyLUP64Snrc0X.mjs")), jt = (e2) => {
765
- const { showModal: t2 } = ae();
759
+ }, jt = n.lazy(() => import("./DHvOYCVK5KUCv0Ud.mjs")), Ut = (e2) => {
760
+ const { showModal: t2 } = le();
766
761
  return (o2) => {
767
762
  const { defaultOption: n2 = o2.options?.[0], cancelOption: r2 = "Cancel", ...i2 } = o2;
768
763
  return new Promise((o3) => {
769
- const a2 = t2(_t, { ...e2, defaultOption: n2, cancelOption: r2, onOption(e3) {
764
+ const a2 = t2(jt, { ...e2, defaultOption: n2, cancelOption: r2, onOption(e3) {
770
765
  i2?.onOption?.(e3, e3 === r2, e3 === n2), o3({ input: "", option: e3 });
771
766
  }, onInputOption(e3, t3) {
772
767
  i2?.onInputOption?.(e3, t3), o3({ input: e3, option: t3 });
@@ -775,41 +770,41 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
775
770
  } });
776
771
  });
777
772
  };
778
- }, Ut = r(i((t2, o2) => {
773
+ }, Qt = r(i((t2, o2) => {
779
774
  const { command: n2, disabled: r2 = false, shortcut: i2, children: a2, ...l2 } = t2;
780
- return U(n2), e(vt, { ref: o2, label: void 0 !== r2 ? n2?.label() : "", shortcut: void 0 !== i2 ? i2 : Array.isArray(n2?.shortcut()) ? n2?.shortcut()[0] : n2?.shortcut(), description: n2?.description(), disabled: r2, chips: n2?.tags(), componentDisabled: n2?.disabled(), ...l2, children: e("div", { style: { display: "flex", flex: "1 1 0%" }, children: a2 }) });
781
- })), Qt = e(H, {}), Gt = r(i((t2, o2) => {
782
- const { command: n2, commandHook: r2, scope: i2, context: s2, icon: c2, label: d2, disabled: u2 = false, variant: m2 = Q.Toolbar, shortcut: h2, commandState: f2, tooltipProps: x2, ...g2 } = t2, b2 = l(null), y2 = l(false), v2 = a(() => {
775
+ return Q(n2), e(kt, { ref: o2, label: void 0 !== r2 ? n2?.label() : "", shortcut: void 0 !== i2 ? i2 : Array.isArray(n2?.shortcut()) ? n2?.shortcut()[0] : n2?.shortcut(), description: n2?.description(), disabled: r2, chips: n2?.tags(), componentDisabled: n2?.disabled(), ...l2, children: e("div", { style: { display: "flex", flex: "1 1 0%" }, children: a2 }) });
776
+ })), Gt = e(W, {}), Xt = r(i((t2, o2) => {
777
+ const { command: n2, commandHook: r2, scope: i2, context: s2, icon: c2, label: d2, disabled: u2 = false, variant: m2 = G.Toolbar, shortcut: h2, commandState: f2, tooltipProps: x2, ...g2 } = t2, b2 = l(null), y2 = l(false), v2 = a(() => {
783
778
  const e2 = { onExecute(e3, t3) {
784
779
  r2?.onExecute?.(e3, t3), y2.current || (b2.current?.start({ center: false }), setTimeout(() => b2.current?.stop({}), 180)), y2.current = false;
785
780
  }, onError(e3, t3, o3) {
786
781
  r2?.onError(e3, t3, o3);
787
782
  } };
788
783
  return r2?.beforeExecute && (e2.beforeExecute = r2.beforeExecute), e2;
789
- }, [r2]), k2 = U(n2, v2), w2 = p((e2) => {
784
+ }, [r2]), k2 = Q(n2, v2), w2 = p((e2) => {
790
785
  0 === e2.button && e2.preventDefault();
791
786
  }, []), C2 = p((e2) => {
792
787
  0 === e2.button && n2?.execute(f2, r2);
793
788
  }, [k2, r2, f2]), M2 = p((e2) => {
794
- e2.keyCode !== V.Enter && e2.keyCode !== V.Space || n2?.execute(f2, r2);
789
+ e2.keyCode !== q.Enter && e2.keyCode !== q.Space || n2?.execute(f2, r2);
795
790
  }, [k2, r2, f2]), S2 = a(() => {
796
791
  if (c2) return "function" == typeof c2 ? c2(n2) : c2;
797
792
  let t3 = n2?.icon(s2);
798
- return t3 ? ("string" == typeof t3 && (t3 = e(H, { iconKey: t3 })), t3) : m2 === Q.Toolbar || n2?.state() ? void 0 : Qt;
799
- }, [k2, c2]), P2 = a(() => ({ tabIndex: 0, ref: o2, selected: n2?.state(), icon: m2 === Q.Toolbar ? S2 : e(It, { selected: n2?.state() ?? false, children: S2 }), touchRippleRef: b2, disabled: u2 || !n2 || n2.disabled(), onMouseDown: w2, onMouseUp: C2, onKeyDown: M2 }), [k2, r2, u2, S2]);
793
+ return t3 ? ("string" == typeof t3 && (t3 = e(W, { iconKey: t3 })), t3) : m2 === G.Toolbar || n2?.state() ? void 0 : Gt;
794
+ }, [k2, c2]), P2 = a(() => ({ tabIndex: 0, ref: o2, selected: n2?.state(), icon: m2 === G.Toolbar ? S2 : e(Nt, { selected: n2?.state() ?? false, children: S2 }), touchRippleRef: b2, disabled: u2 || !n2 || n2.disabled(), onMouseDown: w2, onMouseUp: C2, onKeyDown: M2 }), [k2, r2, u2, S2]);
800
795
  let R2;
801
- return R2 = m2 === Q.Menuitem ? e(Pt, { ...g2, chips: n2?.tags(), ...P2, children: d2 ?? n2?.label(i2, s2) }) : e(Ct, { ...g2, ...P2 }), d2 || n2?.label() ? ((n2.disabled() || u2) && (R2 = e("div", { children: R2 })), R2 = e(Ut, { command: n2, placement: m2 === Q.Toolbar ? "bottom-start" : "right-start", shortcut: h2, ...x2, children: R2 }), R2) : R2;
796
+ return R2 = m2 === G.Menuitem ? e(Rt, { ...g2, chips: n2?.tags(), ...P2, children: d2 ?? n2?.label(i2, s2) }) : e(Mt, { ...g2, ...P2 }), d2 || n2?.label() ? ((n2.disabled() || u2) && (R2 = e("div", { children: R2 })), R2 = e(Qt, { command: n2, placement: m2 === G.Toolbar ? "bottom-start" : "right-start", shortcut: h2, ...x2, children: R2 }), R2) : R2;
802
797
  }));
803
- Gt.displayName = "CommandButton";
804
- const Xt = e(H, {}), Yt = r(i((o2, n2) => {
805
- const { command: r2, scope: i2, icon: d2 = Xt, label: p2, variant: u2 = Q.Toolbar, disabled: m2 = false, commandHook: h2, ...f2 } = o2, x2 = l(null), g2 = l(false), y2 = a(() => {
798
+ Xt.displayName = "CommandButton";
799
+ const Yt = e(W, {}), Jt = r(i((o2, n2) => {
800
+ const { command: r2, scope: i2, icon: d2 = Yt, label: p2, variant: u2 = G.Toolbar, disabled: m2 = false, commandHook: h2, ...f2 } = o2, x2 = l(null), g2 = l(false), y2 = a(() => {
806
801
  const e2 = { onExecute(e3, t2) {
807
802
  h2?.onExecute?.(e3, t2), g2.current || (x2.current?.start({ center: false }), setTimeout(() => x2.current?.stop({}), 180)), g2.current = false;
808
803
  }, onError(e3, t2, o3) {
809
804
  h2?.onError(e3, t2, o3);
810
805
  } };
811
806
  return h2?.beforeExecute && (e2.beforeExecute = h2.beforeExecute), e2;
812
- }, [h2]), v2 = U(r2, y2), k2 = () => r2?.state()?.toString() || "0", [w2, C2] = c(k2), M2 = W(() => {
807
+ }, [h2]), v2 = Q(r2, y2), k2 = () => r2?.state()?.toString() || "0", [w2, C2] = c(k2), M2 = K(() => {
813
808
  const e2 = parseFloat(w2);
814
809
  isNaN(e2) ? C2(k2()) : parseFloat(k2()) !== e2 && r2.execute(e2, h2);
815
810
  }, [k2, r2, w2, h2]);
@@ -818,7 +813,7 @@ const Xt = e(H, {}), Yt = r(i((o2, n2) => {
818
813
  }, [r2?.state()]);
819
814
  const S2 = a(() => {
820
815
  let t2 = "function" == typeof d2 ? d2(r2) : d2;
821
- return t2 && (t2 = r2?.icon()), "string" == typeof t2 && (t2 = e(H, { iconKey: t2 })), t2;
816
+ return t2 && (t2 = r2?.icon()), "string" == typeof t2 && (t2 = e(W, { iconKey: t2 })), t2;
822
817
  }, [v2, d2, r2?.icon]), P2 = a(() => void 0 === p2 ? r2?.label(i2) : "function" == typeof p2 ? p2() : p2, [v2]), R2 = a(() => e(b, { ...f2, sx: { paddingTop: "0px", paddingBottom: "0px" }, component: "div", disableRipple: true, onClick: (e2) => e2.stopPropagation(), onMouseDown: (e2) => {
823
818
  0 === e2.button && e2.stopPropagation();
824
819
  }, onMouseUp: (e2) => {
@@ -826,14 +821,14 @@ const Xt = e(H, {}), Yt = r(i((o2, n2) => {
826
821
  }, children: e(N, { inputMode: "numeric", disabled: m2 || !r2 || r2.disabled(), inputProps: { tabIndex: 0, name: `input-${r2.key()}`, autoComplete: "off", type: "number", maxLength: 4 }, sx: { paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (e2) => `${Math.round(e2.typography.fontSize)}px`, width: (e2) => "3.2em", input: { padding: "0 0", textAlign: "center", MozAppearance: "textfield" }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" }, minHeight: "24px" }, value: w2, onFocus: (e2) => {
827
822
  e2.target?.select();
828
823
  }, onKeyDown: (e2) => {
829
- if (e2.which === V.Enter) k2() !== w2 && (e2.stopPropagation(), e2.preventDefault(), M2());
830
- else if (e2.which === V.Escape) k2() !== w2 && (C2(k2()), setTimeout(() => {
824
+ if (e2.which === q.Enter) k2() !== w2 && (e2.stopPropagation(), e2.preventDefault(), M2());
825
+ else if (e2.which === q.Escape) k2() !== w2 && (C2(k2()), setTimeout(() => {
831
826
  e2.target?.select();
832
827
  }, 0), e2.stopPropagation(), e2.preventDefault());
833
828
  else {
834
829
  if (e2.key.match("[-]")) return e2.stopPropagation(), void e2.preventDefault();
835
830
  if (e2.key.match("[0-9.]") && (w2 + e2.key).length > 4) return e2.stopPropagation(), void e2.preventDefault();
836
- if (e2.which === V.Space) return void e2.preventDefault();
831
+ if (e2.which === q.Space) return void e2.preventDefault();
837
832
  }
838
833
  }, onBlur: () => {
839
834
  M2();
@@ -845,35 +840,35 @@ const Xt = e(H, {}), Yt = r(i((o2, n2) => {
845
840
  }, onMouseUp: (e2) => {
846
841
  0 !== e2.button || e2.isPropagationStopped() || e2.isDefaultPrevented() || e2.isDefaultPrevented() || (e2.preventDefault(), r2?.execute(!r2?.state?.(), y2));
847
842
  }, onKeyDown: (e2) => {
848
- e2.keyCode !== V.Enter && e2.keyCode !== V.Space || r2?.execute(!r2?.state?.(), y2);
843
+ e2.keyCode !== q.Enter && e2.keyCode !== q.Space || r2?.execute(!r2?.state?.(), y2);
849
844
  } };
850
845
  let E2;
851
- return E2 = u2 === Q.Menuitem ? t(Pt, { ...f2, chips: r2?.tags(), ...D2, children: [P2, R2] }) : e(Ct, { ...f2, ...D2 }), r2?.label() ? ((r2.disabled() || m2) && (E2 = e("div", { children: E2 })), E2 = e(Ut, { command: r2, placement: u2 === Q.Toolbar ? "bottom-start" : "right-start", children: E2 }), E2) : E2;
852
- })), Jt = r(i((t2, o2) => {
853
- const { variant: n2 = Q.Toolbar, quickCommand: r2, onQuickClick: i2, commands: s2, commandState: c2, commandHook: d2, disabled: p2, label: u2, icon: m2, createPopupPanel: h2, tooltip: f2, selected: x2, scope: g2, ...b2 } = t2, y2 = l(null), v2 = l(false), k2 = a(() => {
846
+ return E2 = u2 === G.Menuitem ? t(Rt, { ...f2, chips: r2?.tags(), ...D2, children: [P2, R2] }) : e(Mt, { ...f2, ...D2 }), r2?.label() ? ((r2.disabled() || m2) && (E2 = e("div", { children: E2 })), E2 = e(Qt, { command: r2, placement: u2 === G.Toolbar ? "bottom-start" : "right-start", children: E2 }), E2) : E2;
847
+ })), Zt = r(i((t2, o2) => {
848
+ const { variant: n2 = G.Toolbar, quickCommand: r2, onQuickClick: i2, commands: s2, commandState: c2, commandHook: d2, disabled: p2, label: u2, icon: m2, createPopupPanel: h2, tooltip: f2, selected: x2, scope: g2, ...b2 } = t2, y2 = l(null), v2 = l(false), k2 = a(() => {
854
849
  const e2 = { onExecute(e3, t3) {
855
850
  d2?.onExecute?.(e3, t3), v2.current || (y2.current?.start({ center: false }), setTimeout(() => y2.current?.stop({}), 180)), v2.current = false;
856
851
  }, onError(e3, t3, o3) {
857
852
  d2?.onError(e3, t3, o3);
858
853
  } };
859
854
  return d2?.beforeExecute && (e2.beforeExecute = d2.beforeExecute), e2;
860
- }, [d2]), w2 = G(s2, [r2], null, [r2]), C2 = w2[0], { label: M2, icon: S2 } = a(() => {
855
+ }, [d2]), w2 = X(s2, [r2], null, [r2]), C2 = w2[0], { label: M2, icon: S2 } = a(() => {
861
856
  let t3 = null;
862
857
  u2 && (t3 = "function" == typeof u2 ? u2(C2) : u2), t3 || (t3 = C2?.label?.(g2));
863
858
  let o3 = m2;
864
- return o3 || (o3 = C2?.icon?.()), "string" == typeof o3 ? o3 = e(H, { iconKey: o3 }) : "function" == typeof o3 && (o3 = o3(C2)), { label: t3, icon: o3 };
859
+ return o3 || (o3 = C2?.icon?.()), "string" == typeof o3 ? o3 = e(W, { iconKey: o3 }) : "function" == typeof o3 && (o3 = o3(C2)), { label: t3, icon: o3 };
865
860
  }, [w2, u2, m2]), P2 = { disabled: p2, scope: g2, touchRippleRef: y2, onQuickClick: i2, tooltip: f2, label: M2, icon: S2 };
866
- (M2 || f2) && (P2.createTooltip = ({ children: t3 }, o3) => e(vt, { label: M2, description: f2, disabled: o3, children: t3 }));
867
- const R2 = W((e2) => h2?.(e2, s2), [h2, w2]), D2 = W((e2) => C2?.execute(c2, k2), [C2]);
868
- return C2 ? (P2.quickButtonProps = {}, P2.quickButtonProps.createTooltip = ({ children: t3, placement: o3 }, r3) => e(Ut, { command: C2, placement: o3 ?? n2 === Q.Toolbar ? "bottom-start" : "right-start", disabled: r3, children: t3 }), P2.disabled = P2.disabled ?? C2?.disabled(), i2 || (P2.onQuickClick = D2)) : r2 && (P2.onQuickClick = () => {
869
- }), P2.selected = x2 ?? C2?.state(), P2.createPopupPanel = R2, n2 === Q.Toolbar ? e(Dt, { ...b2, ...P2, ref: o2 }) : e(Tt, { ...b2, ...P2, ref: o2 });
861
+ (M2 || f2) && (P2.createTooltip = ({ children: t3 }, o3) => e(kt, { label: M2, description: f2, disabled: o3, children: t3 }));
862
+ const R2 = K((e2) => h2?.(e2, s2), [h2, w2]), D2 = K((e2) => C2?.execute(c2, k2), [C2]);
863
+ return C2 ? (P2.quickButtonProps = {}, P2.quickButtonProps.createTooltip = ({ children: t3, placement: o3 }, r3) => e(Qt, { command: C2, placement: o3 ?? n2 === G.Toolbar ? "bottom-start" : "right-start", disabled: r3, children: t3 }), P2.disabled = P2.disabled ?? C2?.disabled(), i2 || (P2.onQuickClick = D2)) : r2 && (P2.onQuickClick = () => {
864
+ }), P2.selected = x2 ?? C2?.state(), P2.createPopupPanel = R2, n2 === G.Toolbar ? e(Et, { ...b2, ...P2, ref: o2 }) : e($t, { ...b2, ...P2, ref: o2 });
870
865
  }));
871
- Jt.displayName = "CommandPopupButton";
872
- const Zt = e(H, { iconKey: "Check" }), eo = (o2) => {
873
- const { command: n2, label: r2, scope: i2, icon: a2 = Zt, sx: l2, ...s2 } = o2;
866
+ Zt.displayName = "CommandPopupButton";
867
+ const eo = e(W, { iconKey: "Check" }), to = (o2) => {
868
+ const { command: n2, label: r2, scope: i2, icon: a2 = eo, sx: l2, ...s2 } = o2;
874
869
  return t(v, { sx: { display: "flex", flexDirection: "row", textTransform: "none", alignItems: "center", fontSize: (e2) => e2.typography.subtitle2.fontSize, ...l2 }, ...s2, children: [a2, e(k, { component: "div", sx: { whiteSpace: "nowrap", lineHeight: "1", paddingLeft: (e2) => e2.spacing(0.25), paddingRight: (e2) => e2.spacing(0.25), fontSize: "inherit" }, children: n2?.label(i2) || r2 })] });
875
- }, to = r(i((t2, o2) => {
876
- const { sx: n2, commands: r2, commandButtonProps: i2, parentFloat: l2, createToolbarPalette: s2, children: d2, ...u2 } = t2, h2 = j(o2, () => ({}), []), [f2, x2] = c(null), { reference: g2 } = ut({ label: "toolbar", anchor: h2.current, parentFloat: l2, createPopupPanel: null }), b2 = p(() => {
870
+ }, oo = r(i((t2, o2) => {
871
+ const { sx: n2, commands: r2, commandButtonProps: i2, parentFloat: l2, createToolbarPalette: s2, children: d2, ...u2 } = t2, h2 = U(o2, () => ({}), []), [f2, x2] = c(null), { reference: g2 } = mt({ label: "toolbar", anchor: h2.current, parentFloat: l2, createPopupPanel: null }), b2 = p(() => {
877
872
  const e2 = f2;
878
873
  e2 && requestAnimationFrame(() => {
879
874
  h2.current?.contains(document.activeElement) && e2.focus();
@@ -889,7 +884,7 @@ const Zt = e(H, { iconKey: "Check" }), eo = (o2) => {
889
884
  e2?.onError?.(t4, o3, n3);
890
885
  } }, ...t3 };
891
886
  }, [g2, i2]), k2 = a(() => ({ ...y2, ...v2 }), [y2, v2]), [w2, C2] = m((e2) => e2 + 1, 0);
892
- G(r2, [], { onChange: () => {
887
+ X(r2, [], { onChange: () => {
893
888
  C2();
894
889
  } });
895
890
  const M2 = a(() => ({ commands: r2, parentFloat: g2, ...v2 }), [w2, k2, g2, i2]);
@@ -903,89 +898,89 @@ const Zt = e(H, { iconKey: "Check" }), eo = (o2) => {
903
898
  }, onBlur: (e2) => {
904
899
  f2 && !h2?.current?.contains(e2.relatedTarget) && x2(null);
905
900
  }, onKeyDown: (e2) => {
906
- f2 && e2.which === V.Escape && f2.focus();
901
+ f2 && e2.which === q.Escape && f2.focus();
907
902
  }, ...u2, children: e("div", { ref: h2, style: { flex: "1 1 100%", display: "flex", flexWrap: "wrap", rowGap: `${P2}px`, columnGap: `${S2}px`, alignItems: "center", maxWidth: "100%" }, children: R2 }) });
908
903
  }));
909
- to.displayName = "CommandToolbar";
910
- const oo = (t2) => {
904
+ oo.displayName = "CommandToolbar";
905
+ const no = (t2) => {
911
906
  const { key: o2, ...n2 } = t2;
912
- return e(Gt, { ...n2 }, o2);
913
- }, no = r(i((t2, o2) => {
914
- const { popupCommandKeys: n2, renderCommandButton: r2 = oo, scope: i2, commands: a2, quickCommand: l2, popupScope: s2 = l2, commandState: c2, commandHook: d2, disabled: u2 = false, ...m2 } = t2, h2 = G(a2, n2 ? [l2, ...n2] : [l2]), f2 = p((t3, o3) => {
915
- const i3 = { variant: Q.Menuitem, commandHook: d2, commandState: c2, scope: s2, disabled: u2 }, a3 = [];
907
+ return e(Xt, { ...n2 }, o2);
908
+ }, ro = r(i((t2, o2) => {
909
+ const { popupCommandKeys: n2, renderCommandButton: r2 = no, scope: i2, commands: a2, quickCommand: l2, popupScope: s2 = l2, commandState: c2, commandHook: d2, disabled: u2 = false, ...m2 } = t2, h2 = X(a2, n2 ? [l2, ...n2] : [l2]), f2 = p((t3, o3) => {
910
+ const i3 = { variant: G.Menuitem, commandHook: d2, commandState: c2, scope: s2, disabled: u2 }, a3 = [];
916
911
  for (let t4 = 0; t4 < n2?.length; t4++) {
917
912
  const l3 = n2[t4];
918
913
  if (null === l3 || "-" === l3) {
919
- a3.push(e(ge, { orientation: "horizontal" }, `element-${a3.length}`));
914
+ a3.push(e(be, { orientation: "horizontal" }, `element-${a3.length}`));
920
915
  continue;
921
916
  }
922
917
  const s3 = o3.getCommand(l3), c3 = { key: `${l3}-${a3.length}`, command: s3, ...i3 }, d3 = r2(c3);
923
918
  d3 && a3.push(d3);
924
919
  }
925
- return ot({ ...t3, children: a3 });
920
+ return nt({ ...t3, children: a3 });
926
921
  }, [u2, d2, c2, s2, n2, r2]);
927
- return n2 ? e(Jt, { ref: o2, commands: a2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, quickCommand: l2, createPopupPanel: f2, ...m2 }) : r2({ ref: o2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, command: h2[0], ...m2 });
922
+ return n2 ? e(Zt, { ref: o2, commands: a2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, quickCommand: l2, createPopupPanel: f2, ...m2 }) : r2({ ref: o2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, command: h2[0], ...m2 });
928
923
  }));
929
924
  export {
930
- we as AnimatedBouncingEllipsisIcon,
931
- ve as AnimatedCircleIcon,
932
- ye as AnimatedClockIcon,
933
- ke as AnimatedFadingEllipsisIcon,
934
- Ce as AnimatedOrbitIcon,
935
- Me as AnimatedTraversingEllipsisIcon,
936
- Ae as ArrowDownIcon,
937
- He as ArrowRightIcon,
938
- ze as ChipStrip,
939
- et as ClosingReason,
940
- Gt as CommandButton,
941
- Jt as CommandPopupButton,
942
- to as CommandToolbar,
943
- Ut as CommandTooltip,
944
- ft as ContextMenu,
945
- Oe as ErrorPanel,
946
- ge as ExhibitDivider,
947
- rt as ExhibitFloatPanel,
948
- Ct as ExhibitIconButton,
949
- Rt as ExhibitMenuHeader,
950
- Pt as ExhibitMenuItem,
951
- $t as ExhibitOptionButton,
952
- Be as ExhibitPopper,
953
- Dt as ExhibitPopupIconButton,
954
- Tt as ExhibitPopupMenuItem,
955
- vt as ExhibitTooltip,
956
- Yt as InputCommandButton,
957
- At as InternalWindow,
958
- eo as LabelIcon,
959
- Pe as LoadingPanel,
925
+ Ce as AnimatedBouncingEllipsisIcon,
926
+ ke as AnimatedCircleIcon,
927
+ ve as AnimatedClockIcon,
928
+ we as AnimatedFadingEllipsisIcon,
929
+ Me as AnimatedOrbitIcon,
930
+ Se as AnimatedTraversingEllipsisIcon,
931
+ He as ArrowDownIcon,
932
+ We as ArrowRightIcon,
933
+ Ie as ChipStrip,
934
+ tt as ClosingReason,
935
+ Xt as CommandButton,
936
+ Zt as CommandPopupButton,
937
+ oo as CommandToolbar,
938
+ Qt as CommandTooltip,
939
+ xt as ContextMenu,
940
+ ze as ErrorPanel,
941
+ be as ExhibitDivider,
942
+ it as ExhibitFloatPanel,
943
+ Mt as ExhibitIconButton,
944
+ Dt as ExhibitMenuHeader,
945
+ Rt as ExhibitMenuItem,
946
+ Ot as ExhibitOptionButton,
947
+ Le as ExhibitPopper,
948
+ Et as ExhibitPopupIconButton,
949
+ $t as ExhibitPopupMenuItem,
950
+ kt as ExhibitTooltip,
951
+ Jt as InputCommandButton,
952
+ Ht as InternalWindow,
953
+ to as LabelIcon,
954
+ Re as LoadingPanel,
960
955
  default2 as ModalProvider,
961
- mt as NestingPopupButton,
962
- Wt as OptionsDialog,
963
- Ze as PopupAutoFocus,
964
- tt as PopupButtonType,
965
- It as SelectedIcon,
966
- no as SimpleCommandPopupButton,
967
- xt as SimpleTooltip,
968
- Te as StackTrace,
969
- Ge as ThemeMode,
970
- We as ThemedIcon,
971
- nt as createDownArrow,
972
- Ue as createExhibitTheme,
973
- he as createScrollButton,
974
- me as createScrollEdgeButton,
975
- xe as createScrollEndButton,
976
- fe as createScrollStartButton,
977
- Fe as createStrokeShadowFilter,
978
- ot as defaultCreatePopupPanel,
979
- _e as elevateColor,
980
- qe as hexToRGB,
981
- je as overlayAlpha,
982
- Qe as scrollbarTheming,
983
- Le as strokeShadowFilter,
984
- yt as toShortcutElements,
985
- ut as useFloatStack,
986
- jt as useInputDialog,
987
- Nt as useLazyWindow,
988
- qt as useOptionsDialog,
989
- Xe as useResolvedThemeMode,
990
- $e as wrapErrorAsComponent
956
+ ht as NestingPopupButton,
957
+ Kt as OptionsDialog,
958
+ et as PopupAutoFocus,
959
+ ot as PopupButtonType,
960
+ Nt as SelectedIcon,
961
+ ro as SimpleCommandPopupButton,
962
+ gt as SimpleTooltip,
963
+ $e as StackTrace,
964
+ Xe as ThemeMode,
965
+ Ke as ThemedIcon,
966
+ rt as createDownArrow,
967
+ Qe as createExhibitTheme,
968
+ fe as createScrollButton,
969
+ he as createScrollEdgeButton,
970
+ ge as createScrollEndButton,
971
+ xe as createScrollStartButton,
972
+ Ae as createStrokeShadowFilter,
973
+ nt as defaultCreatePopupPanel,
974
+ je as elevateColor,
975
+ _e as hexToRGB,
976
+ Ue as overlayAlpha,
977
+ Ge as scrollbarTheming,
978
+ Fe as strokeShadowFilter,
979
+ vt as toShortcutElements,
980
+ mt as useFloatStack,
981
+ Ut as useInputDialog,
982
+ Bt as useLazyWindow,
983
+ _t as useOptionsDialog,
984
+ Ye as useResolvedThemeMode,
985
+ Oe as wrapErrorAsComponent
991
986
  };