@genai-fi/base 4.3.7 → 4.3.9

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.
Files changed (48) hide show
  1. package/dist/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
  2. package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
  3. package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
  4. package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
  5. package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
  6. package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
  7. package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
  8. package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
  9. package/dist/assets/SidePanel.css +1 -1
  10. package/dist/assets/SvgLayer.css +1 -1
  11. package/dist/assets/Widget.css +1 -1
  12. package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
  13. package/dist/components/AlertPara/AlertPara.js +1 -1
  14. package/dist/components/Application/Application.js +724 -689
  15. package/dist/components/BusyButton/BusyButton.d.ts +4 -4
  16. package/dist/components/BusyButton/BusyButton.js +1 -1
  17. package/dist/components/Button/Button.js +2 -2
  18. package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
  19. package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
  20. package/dist/components/Feedback/Feedback.js +4 -4
  21. package/dist/components/Feedback/Rating.js +1 -1
  22. package/dist/components/Help/Help.js +5 -5
  23. package/dist/components/LangSelect/LangSelect.js +1 -1
  24. package/dist/components/Motd/Motd.js +1 -1
  25. package/dist/components/PieScore/PieScore.js +9609 -6092
  26. package/dist/components/QRCode/DialogQR.js +4 -4
  27. package/dist/components/QRCode/QRCode.js +2 -2
  28. package/dist/components/SidePanel/SidePanel.d.ts +2 -1
  29. package/dist/components/SidePanel/SidePanel.js +91 -73
  30. package/dist/components/Webcam/Webcam.js +3 -3
  31. package/dist/components/WorkflowLayout/Widget.js +1460 -1438
  32. package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
  33. package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
  34. package/dist/hooks/peer.js +1 -1
  35. package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
  36. package/dist/react-CiLnfHJp.js +140 -0
  37. package/dist/services/peer2peer/Incoming.js +1 -1
  38. package/dist/services/peer2peer/Outgoing.js +1 -1
  39. package/dist/services/peer2peer/Peer2Peer.js +538 -541
  40. package/dist/services/peer2peer/PeerConnection.js +1 -1
  41. package/dist/state/webrtcState.js +1 -1
  42. package/dist/style/theme.js +1 -1
  43. package/dist/util/Observer.js +1 -1
  44. package/dist/util/zip.js +1 -1
  45. package/dist/vanilla-OLGM3aAq.js +439 -0
  46. package/package.json +3 -3
  47. package/dist/react-B9NW8BS7.js +0 -112
  48. package/dist/vanilla-BJxibF1U.js +0 -404
@@ -1,38 +1,38 @@
1
1
  import * as c from "react";
2
- import { i as H, d as L, P as s, b as W, g as A, a as m } from "./createTheme-DV959X3d.js";
2
+ import { i as H, d as L, P as s, b as W, g as A, a as m } from "./createTheme-DnBeI7Zz.js";
3
3
  import { jsx as y, jsxs as G } from "react/jsx-runtime";
4
- import { i as U, T as $, d as k, g as Z, u as Y, c as N, a as q, s as w, m as C } from "./DefaultPropsProvider-BurgXZzw.js";
4
+ import { i as U, T as x, d as D, g as Z, u as Y, c as N, a as q, s as $, m as C } from "./DefaultPropsProvider-B_x1hwuY.js";
5
5
  import { Global as J, ThemeContext as K } from "@emotion/react";
6
- import { u as Q, B as X, c as R, C as F, a as ee, b as D, d as B } from "./CircularProgress-DgKnRiq7.js";
7
- import * as ne from "react-dom";
8
- const te = (e) => {
6
+ import { u as Q, B as X, c as R, C as F, a as ee, b as k, d as B } from "./CircularProgress-DZ8YZ0Dt.js";
7
+ import * as te from "react-dom";
8
+ const ne = (e) => {
9
9
  var o;
10
- const n = {
10
+ const t = {
11
11
  systemProps: {},
12
12
  otherProps: {}
13
- }, t = ((o = e == null ? void 0 : e.theme) == null ? void 0 : o.unstable_sxConfig) ?? L;
13
+ }, n = ((o = e == null ? void 0 : e.theme) == null ? void 0 : o.unstable_sxConfig) ?? L;
14
14
  return Object.keys(e).forEach((r) => {
15
- t[r] ? n.systemProps[r] = e[r] : n.otherProps[r] = e[r];
16
- }), n;
15
+ n[r] ? t.systemProps[r] = e[r] : t.otherProps[r] = e[r];
16
+ }), t;
17
17
  };
18
18
  function oe(e) {
19
19
  const {
20
- sx: n,
21
- ...t
20
+ sx: t,
21
+ ...n
22
22
  } = e, {
23
23
  systemProps: o,
24
24
  otherProps: r
25
- } = te(t);
25
+ } = ne(n);
26
26
  let a;
27
- return Array.isArray(n) ? a = [o, ...n] : typeof n == "function" ? a = (...i) => {
28
- const u = n(...i);
27
+ return Array.isArray(t) ? a = [o, ...t] : typeof t == "function" ? a = (...i) => {
28
+ const u = t(...i);
29
29
  return H(u) ? {
30
30
  ...o,
31
31
  ...u
32
32
  } : o;
33
33
  } : a = {
34
34
  ...o,
35
- ...n
35
+ ...t
36
36
  }, {
37
37
  ...r,
38
38
  sx: a
@@ -43,11 +43,11 @@ function se(e) {
43
43
  }
44
44
  function V(e) {
45
45
  const {
46
- styles: n,
47
- defaultTheme: t = {}
46
+ styles: t,
47
+ defaultTheme: n = {}
48
48
  } = e;
49
49
  return /* @__PURE__ */ y(J, {
50
- styles: typeof n == "function" ? (r) => n(se(r) ? t : r) : n
50
+ styles: typeof t == "function" ? (r) => t(se(r) ? n : r) : t
51
51
  });
52
52
  }
53
53
  process.env.NODE_ENV !== "production" && (V.propTypes = {
@@ -58,25 +58,25 @@ function re(e) {
58
58
  return Object.keys(e).length === 0;
59
59
  }
60
60
  function ae(e = null) {
61
- const n = c.useContext(K);
62
- return !n || re(n) ? e : n;
61
+ const t = c.useContext(K);
62
+ return !t || re(t) ? e : t;
63
63
  }
64
64
  const ie = W();
65
65
  function P(e = ie) {
66
66
  return ae(e);
67
67
  }
68
- function O(e) {
69
- const n = U(e);
70
- return e !== n && n.styles ? (n.styles.match(/^@layer\s+[^{]*$/) || (n.styles = `@layer global{${n.styles}}`), n) : e;
68
+ function T(e) {
69
+ const t = U(e);
70
+ return e !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : e;
71
71
  }
72
72
  function _({
73
73
  styles: e,
74
- themeId: n,
75
- defaultTheme: t = {}
74
+ themeId: t,
75
+ defaultTheme: n = {}
76
76
  }) {
77
- const o = P(t), r = n && o[n] || o;
77
+ const o = P(n), r = t && o[t] || o;
78
78
  let a = typeof e == "function" ? e(r) : e;
79
- return r.modularCssLayers && (Array.isArray(a) ? a = a.map((i) => O(typeof i == "function" ? i(r) : i)) : a = O(a)), /* @__PURE__ */ y(V, {
79
+ return r.modularCssLayers && (Array.isArray(a) ? a = a.map((i) => T(typeof i == "function" ? i(r) : i)) : a = T(a)), /* @__PURE__ */ y(V, {
80
80
  styles: a
81
81
  });
82
82
  }
@@ -102,24 +102,24 @@ const le = "exact-prop: ​";
102
102
  function ce(e) {
103
103
  return process.env.NODE_ENV === "production" ? e : {
104
104
  ...e,
105
- [le]: (n) => {
106
- const t = Object.keys(n).filter((o) => !e.hasOwnProperty(o));
107
- return t.length > 0 ? new Error(`The following props are not supported: ${t.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
105
+ [le]: (t) => {
106
+ const n = Object.keys(t).filter((o) => !e.hasOwnProperty(o));
107
+ return n.length > 0 ? new Error(`The following props are not supported: ${n.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
108
108
  }
109
109
  };
110
110
  }
111
111
  const ue = /* @__PURE__ */ c.createContext();
112
112
  process.env.NODE_ENV !== "production" && (s.node, s.bool);
113
- const je = () => c.useContext(ue) ?? !1;
114
- function xe() {
115
- const e = P(k);
116
- return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[$] || e;
113
+ const ze = () => c.useContext(ue) ?? !1;
114
+ function we() {
115
+ const e = P(D);
116
+ return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[x] || e;
117
117
  }
118
118
  function M(e) {
119
119
  return /* @__PURE__ */ y(_, {
120
120
  ...e,
121
- defaultTheme: k,
122
- themeId: $
121
+ defaultTheme: D,
122
+ themeId: x
123
123
  });
124
124
  }
125
125
  process.env.NODE_ENV !== "production" && (M.propTypes = {
@@ -132,56 +132,56 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
132
132
  */
133
133
  styles: s.oneOfType([s.array, s.func, s.number, s.object, s.string, s.bool])
134
134
  });
135
- function $e(e) {
136
- return function(t) {
135
+ function xe(e) {
136
+ return function(n) {
137
137
  return (
138
138
  // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
139
139
  /* @__PURE__ */ y(M, {
140
140
  styles: typeof e == "function" ? (o) => e({
141
141
  theme: o,
142
- ...t
142
+ ...n
143
143
  }) : e
144
144
  })
145
145
  );
146
146
  };
147
147
  }
148
- function ke() {
148
+ function De() {
149
149
  return oe;
150
150
  }
151
151
  function fe(e) {
152
152
  return e && e.ownerDocument || document;
153
153
  }
154
- function we(e) {
154
+ function $e(e) {
155
155
  return fe(e).defaultView || window;
156
156
  }
157
- function z(e, n) {
158
- typeof e == "function" ? e(n) : e && (e.current = n);
157
+ function j(e, t) {
158
+ typeof e == "function" ? e(t) : e && (e.current = t);
159
159
  }
160
160
  function de(e) {
161
161
  return A("MuiIconButton", e);
162
162
  }
163
- const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), pe = (e) => {
163
+ const z = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), pe = (e) => {
164
164
  const {
165
- classes: n,
166
- disabled: t,
165
+ classes: t,
166
+ disabled: n,
167
167
  color: o,
168
168
  edge: r,
169
169
  size: a,
170
170
  loading: i
171
171
  } = e, u = {
172
- root: ["root", i && "loading", t && "disabled", o !== "default" && `color${m(o)}`, r && `edge${m(r)}`, `size${m(a)}`],
172
+ root: ["root", i && "loading", n && "disabled", o !== "default" && `color${m(o)}`, r && `edge${m(r)}`, `size${m(a)}`],
173
173
  loadingIndicator: ["loadingIndicator"],
174
174
  loadingWrapper: ["loadingWrapper"]
175
175
  };
176
- return q(u, de, n);
177
- }, ye = w(X, {
176
+ return q(u, de, t);
177
+ }, ye = $(X, {
178
178
  name: "MuiIconButton",
179
179
  slot: "Root",
180
- overridesResolver: (e, n) => {
180
+ overridesResolver: (e, t) => {
181
181
  const {
182
- ownerState: t
182
+ ownerState: n
183
183
  } = e;
184
- return [n.root, t.loading && n.loading, t.color !== "default" && n[`color${m(t.color)}`], t.edge && n[`edge${m(t.edge)}`], n[`size${m(t.size)}`]];
184
+ return [t.root, n.loading && t.loading, n.color !== "default" && t[`color${m(n.color)}`], n.edge && t[`edge${m(n.edge)}`], t[`size${m(n.size)}`]];
185
185
  }
186
186
  })(C(({
187
187
  theme: e
@@ -196,7 +196,7 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
196
196
  duration: e.transitions.duration.shortest
197
197
  }),
198
198
  variants: [{
199
- props: (n) => !n.disableRipple,
199
+ props: (t) => !t.disableRipple,
200
200
  style: {
201
201
  "--IconButton-hoverBg": e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity),
202
202
  "&:hover": {
@@ -248,19 +248,19 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
248
248
  style: {
249
249
  color: "inherit"
250
250
  }
251
- }, ...Object.entries(e.palette).filter(R()).map(([n]) => ({
251
+ }, ...Object.entries(e.palette).filter(R()).map(([t]) => ({
252
252
  props: {
253
- color: n
253
+ color: t
254
254
  },
255
255
  style: {
256
- color: (e.vars || e).palette[n].main
256
+ color: (e.vars || e).palette[t].main
257
257
  }
258
- })), ...Object.entries(e.palette).filter(R()).map(([n]) => ({
258
+ })), ...Object.entries(e.palette).filter(R()).map(([t]) => ({
259
259
  props: {
260
- color: n
260
+ color: t
261
261
  },
262
262
  style: {
263
- "--IconButton-hoverBg": e.alpha((e.vars || e).palette[n].main, (e.vars || e).palette.action.hoverOpacity)
263
+ "--IconButton-hoverBg": e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity)
264
264
  }
265
265
  })), {
266
266
  props: {
@@ -279,14 +279,14 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
279
279
  fontSize: e.typography.pxToRem(28)
280
280
  }
281
281
  }],
282
- [`&.${j.disabled}`]: {
282
+ [`&.${z.disabled}`]: {
283
283
  backgroundColor: "transparent",
284
284
  color: (e.vars || e).palette.action.disabled
285
285
  },
286
- [`&.${j.loading}`]: {
286
+ [`&.${z.loading}`]: {
287
287
  color: "transparent"
288
288
  }
289
- }))), ge = w("span", {
289
+ }))), ge = $("span", {
290
290
  name: "MuiIconButton",
291
291
  slot: "LoadingIndicator"
292
292
  })(({
@@ -307,9 +307,9 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
307
307
  display: "flex"
308
308
  }
309
309
  }]
310
- })), me = /* @__PURE__ */ c.forwardRef(function(n, t) {
310
+ })), me = /* @__PURE__ */ c.forwardRef(function(t, n) {
311
311
  const o = Y({
312
- props: n,
312
+ props: t,
313
313
  name: "MuiIconButton"
314
314
  }), {
315
315
  edge: r = !1,
@@ -321,9 +321,9 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
321
321
  size: b = "medium",
322
322
  id: p,
323
323
  loading: f = null,
324
- loadingIndicator: h,
325
- ...v
326
- } = o, g = Q(p), S = h ?? /* @__PURE__ */ y(F, {
324
+ loadingIndicator: v,
325
+ ...h
326
+ } = o, g = Q(p), S = v ?? /* @__PURE__ */ y(F, {
327
327
  "aria-labelledby": g,
328
328
  color: "inherit",
329
329
  size: 16
@@ -336,24 +336,24 @@ const j = Z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
336
336
  loading: f,
337
337
  loadingIndicator: S,
338
338
  size: b
339
- }, T = pe(E);
339
+ }, O = pe(E);
340
340
  return /* @__PURE__ */ G(ye, {
341
341
  id: f ? g : p,
342
- className: N(T.root, i),
342
+ className: N(O.root, i),
343
343
  centerRipple: !0,
344
344
  focusRipple: !l,
345
345
  disabled: d || f,
346
- ref: t,
347
- ...v,
346
+ ref: n,
347
+ ...h,
348
348
  ownerState: E,
349
349
  children: [typeof f == "boolean" && // use plain HTML span to minimize the runtime overhead
350
350
  /* @__PURE__ */ y("span", {
351
- className: T.loadingWrapper,
351
+ className: O.loadingWrapper,
352
352
  style: {
353
353
  display: "contents"
354
354
  },
355
355
  children: /* @__PURE__ */ y(ge, {
356
- className: T.loadingIndicator,
356
+ className: O.loadingIndicator,
357
357
  ownerState: E,
358
358
  children: f && S
359
359
  })
@@ -368,7 +368,7 @@ process.env.NODE_ENV !== "production" && (me.propTypes = {
368
368
  /**
369
369
  * The icon to display.
370
370
  */
371
- children: ee(s.node, (e) => c.Children.toArray(e.children).some((t) => /* @__PURE__ */ c.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
371
+ children: ee(s.node, (e) => c.Children.toArray(e.children).some((n) => /* @__PURE__ */ c.isValidElement(n) && n.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
372
372
  `)) : null),
373
373
  /**
374
374
  * Override or extend the styles applied to the component.
@@ -442,53 +442,53 @@ process.env.NODE_ENV !== "production" && (me.propTypes = {
442
442
  function be(e) {
443
443
  return typeof e == "string";
444
444
  }
445
- function he(e, n, t) {
446
- return e === void 0 || be(e) ? n : {
447
- ...n,
445
+ function ve(e, t, n) {
446
+ return e === void 0 || be(e) ? t : {
447
+ ...t,
448
448
  ownerState: {
449
- ...n.ownerState,
450
- ...t
449
+ ...t.ownerState,
450
+ ...n
451
451
  }
452
452
  };
453
453
  }
454
- function ve(e, n, t) {
455
- return typeof e == "function" ? e(n, t) : e;
454
+ function he(e, t, n) {
455
+ return typeof e == "function" ? e(t, n) : e;
456
456
  }
457
- function Ee(e, n = []) {
457
+ function Ee(e, t = []) {
458
458
  if (e === void 0)
459
459
  return {};
460
- const t = {};
461
- return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !n.includes(o)).forEach((o) => {
462
- t[o] = e[o];
463
- }), t;
460
+ const n = {};
461
+ return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !t.includes(o)).forEach((o) => {
462
+ n[o] = e[o];
463
+ }), n;
464
464
  }
465
- function x(e) {
465
+ function w(e) {
466
466
  if (e === void 0)
467
467
  return {};
468
- const n = {};
469
- return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
470
- n[t] = e[t];
471
- }), n;
468
+ const t = {};
469
+ return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
470
+ t[n] = e[n];
471
+ }), t;
472
472
  }
473
- function Te(e) {
473
+ function Oe(e) {
474
474
  const {
475
- getSlotProps: n,
476
- additionalProps: t,
475
+ getSlotProps: t,
476
+ additionalProps: n,
477
477
  externalSlotProps: o,
478
478
  externalForwardedProps: r,
479
479
  className: a
480
480
  } = e;
481
- if (!n) {
482
- const h = N(t == null ? void 0 : t.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), v = {
483
- ...t == null ? void 0 : t.style,
481
+ if (!t) {
482
+ const v = N(n == null ? void 0 : n.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), h = {
483
+ ...n == null ? void 0 : n.style,
484
484
  ...r == null ? void 0 : r.style,
485
485
  ...o == null ? void 0 : o.style
486
486
  }, g = {
487
- ...t,
487
+ ...n,
488
488
  ...r,
489
489
  ...o
490
490
  };
491
- return h.length > 0 && (g.className = h), Object.keys(v).length > 0 && (g.style = v), {
491
+ return v.length > 0 && (g.className = v), Object.keys(h).length > 0 && (g.style = h), {
492
492
  props: g,
493
493
  internalRef: void 0
494
494
  };
@@ -496,14 +496,14 @@ function Te(e) {
496
496
  const i = Ee({
497
497
  ...r,
498
498
  ...o
499
- }), u = x(o), d = x(r), l = n(i), b = N(l == null ? void 0 : l.className, t == null ? void 0 : t.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), p = {
499
+ }), u = w(o), d = w(r), l = t(i), b = N(l == null ? void 0 : l.className, n == null ? void 0 : n.className, a, r == null ? void 0 : r.className, o == null ? void 0 : o.className), p = {
500
500
  ...l == null ? void 0 : l.style,
501
- ...t == null ? void 0 : t.style,
501
+ ...n == null ? void 0 : n.style,
502
502
  ...r == null ? void 0 : r.style,
503
503
  ...o == null ? void 0 : o.style
504
504
  }, f = {
505
505
  ...l,
506
- ...t,
506
+ ...n,
507
507
  ...d,
508
508
  ...u
509
509
  };
@@ -512,53 +512,58 @@ function Te(e) {
512
512
  internalRef: l.ref
513
513
  };
514
514
  }
515
- function Oe(e) {
516
- var n;
517
- return parseInt(c.version, 10) >= 19 ? ((n = e == null ? void 0 : e.props) == null ? void 0 : n.ref) || null : (e == null ? void 0 : e.ref) || null;
515
+ function Te(e) {
516
+ var t;
517
+ return parseInt(c.version, 10) >= 19 ? ((t = e == null ? void 0 : e.props) == null ? void 0 : t.ref) || null : (e == null ? void 0 : e.ref) || null;
518
518
  }
519
- function Ne(e, n, t, o, r) {
519
+ function Ne(e, t, n, o, r) {
520
520
  if (process.env.NODE_ENV === "production")
521
521
  return null;
522
- const a = e[n], i = r || n;
523
- return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${t}\`. Expected an HTMLElement.`) : null;
522
+ const a = e[t], i = r || t;
523
+ return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null;
524
524
  }
525
- function De(e) {
525
+ function ke(e) {
526
526
  var p;
527
527
  const {
528
- elementType: n,
529
- externalSlotProps: t,
528
+ elementType: t,
529
+ externalSlotProps: n,
530
530
  ownerState: o,
531
531
  skipResolvingSlotProps: r = !1,
532
532
  ...a
533
- } = e, i = r ? {} : ve(t, o), {
533
+ } = e, i = r ? {} : he(n, o), {
534
534
  props: u,
535
535
  internalRef: d
536
- } = Te({
536
+ } = Oe({
537
537
  ...a,
538
538
  externalSlotProps: i
539
- }), l = D(d, i == null ? void 0 : i.ref, (p = e.additionalProps) == null ? void 0 : p.ref);
540
- return he(n, {
539
+ }), l = k(d, i == null ? void 0 : i.ref, (p = e.additionalProps) == null ? void 0 : p.ref);
540
+ return ve(t, {
541
541
  ...u,
542
542
  ref: l
543
543
  }, o);
544
544
  }
545
+ function Ve() {
546
+ return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) || // TODO(v9): Remove the test environment check
547
+ // eslint-disable-next-line mui/consistent-production-guard
548
+ process.env.NODE_ENV === "test");
549
+ }
545
550
  function Ie(e) {
546
551
  return typeof e == "function" ? e() : e;
547
552
  }
548
- const I = /* @__PURE__ */ c.forwardRef(function(n, t) {
553
+ const I = /* @__PURE__ */ c.forwardRef(function(t, n) {
549
554
  const {
550
555
  children: o,
551
556
  container: r,
552
557
  disablePortal: a = !1
553
- } = n, [i, u] = c.useState(null), d = D(/* @__PURE__ */ c.isValidElement(o) ? Oe(o) : null, t);
558
+ } = t, [i, u] = c.useState(null), d = k(/* @__PURE__ */ c.isValidElement(o) ? Te(o) : null, n);
554
559
  if (B(() => {
555
560
  a || u(Ie(r) || document.body);
556
561
  }, [r, a]), B(() => {
557
562
  if (i && !a)
558
- return z(t, i), () => {
559
- z(t, null);
563
+ return j(n, i), () => {
564
+ j(n, null);
560
565
  };
561
- }, [t, i, a]), a) {
566
+ }, [n, i, a]), a) {
562
567
  if (/* @__PURE__ */ c.isValidElement(o)) {
563
568
  const l = {
564
569
  ref: d
@@ -567,7 +572,7 @@ const I = /* @__PURE__ */ c.forwardRef(function(n, t) {
567
572
  }
568
573
  return o;
569
574
  }
570
- return i && /* @__PURE__ */ ne.createPortal(o, i);
575
+ return i && /* @__PURE__ */ te.createPortal(o, i);
571
576
  });
572
577
  process.env.NODE_ENV !== "production" && (I.propTypes = {
573
578
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -600,19 +605,21 @@ export {
600
605
  Ne as H,
601
606
  me as I,
602
607
  I as P,
603
- he as a,
608
+ ve as a,
604
609
  fe as b,
605
- Oe as c,
610
+ Te as c,
606
611
  Ee as d,
607
612
  ce as e,
608
- je as f,
609
- $e as g,
610
- De as h,
611
- P as i,
612
- ae as j,
613
- ke as k,
614
- Te as m,
615
- we as o,
616
- ve as r,
617
- xe as u
613
+ Ve as f,
614
+ xe as g,
615
+ ze as h,
616
+ be as i,
617
+ ke as j,
618
+ P as k,
619
+ ae as l,
620
+ Oe as m,
621
+ De as n,
622
+ $e as o,
623
+ he as r,
624
+ we as u
618
625
  };
@@ -1 +1 @@
1
- ._sidePanel_g53a4_1{background:#fff;display:flex;z-index:2;flex-shrink:0;position:relative;transition:opacity .3s ease-in;opacity:0}._sidePanelHorizontal_g53a4_14{flex-direction:column;width:100%}._sidePanel_g53a4_1._closed_g53a4_19{opacity:0;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-out}._sidePanel_g53a4_1._opening_g53a4_27{opacity:1;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-in}@media (prefers-reduced-motion: reduce){._sidePanel_g53a4_1,._sidePanel_g53a4_1._closed_g53a4_19,._sidePanel_g53a4_1._opening_g53a4_27{transition:none}}._sidePanel_g53a4_1._open_g53a4_27{opacity:1}._resizer_g53a4_47{background-color:transparent;box-sizing:border-box;position:absolute;opacity:1;touch-action:none;-webkit-user-select:none;user-select:none;z-index:2}._resizerHorizontal_g53a4_58{height:30px;width:100%;cursor:ns-resize;left:0;top:-8px;right:0}._resizerVertical_g53a4_67{width:30px;cursor:ew-resize;left:-8px;top:0;bottom:0}._noSelect_g53a4_75{-webkit-user-select:none;user-select:none}._resizerBar_g53a4_79{position:absolute;top:0;left:7px;width:2px;height:100%;background-color:#bbb;touch-action:none;-webkit-user-select:none;user-select:none}._resizerHorizontal_g53a4_58 ._resizerBar_g53a4_79{top:7px;left:0;width:100%;height:2px}._resizer_g53a4_47:hover ._resizerBar_g53a4_79{background-color:#75a4e288}._resizer_g53a4_47._resizing_g53a4_101 ._resizerBar_g53a4_79{background-color:#75a4e2}._resizerHandle_g53a4_105{position:absolute;top:50%;left:2px;width:10px;height:60px;transform:translateY(-50%);background-color:#fff;border-radius:3px;border:2px solid #bbb;box-shadow:0 0 4px #ccc;display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}._resizerHorizontal_g53a4_58 ._resizerHandle_g53a4_105{top:2px;left:50%;width:60px;height:10px;transform:translate(-50%)}._resizerHandle_g53a4_105._minimised_g53a4_131{left:-15px;width:20px}._resizerHorizontal_g53a4_58 ._resizerHandle_g53a4_105._minimised_g53a4_131{top:-15px;height:20px;left:50%;width:60px;transform:translate(-50%)}._resizerHandle_g53a4_105:focus{outline:2px solid #75a4e2;outline-offset:2px}._resizerVertical_g53a4_67 ._resizerHandle_g53a4_105:before{content:"";display:block;width:4px;height:20px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 2px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 8px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 14px;background-repeat:no-repeat;background-size:4px 4px}._resizerHorizontal_g53a4_58 ._resizerHandle_g53a4_105:before{content:"";display:block;width:20px;height:4px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 2px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 8px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 14px 0;background-repeat:no-repeat;background-size:4px 4px}._resizer_g53a4_47:hover ._resizerHandle_g53a4_105,._resizer_g53a4_47._resizing_g53a4_101 ._resizerHandle_g53a4_105{border-color:#75a4e2}._expand_g53a4_183{position:absolute;top:2rem;right:0;height:40px;width:30px;background-color:#fff;border-radius:3px;border:2px solid #aaa;cursor:pointer;display:flex;align-items:center;justify-content:center}._content_g53a4_199{flex-grow:1;overflow:auto}._closeButton_g53a4_205{position:sticky;top:.5rem;margin-left:auto;width:min-content;z-index:100}
1
+ ._sidePanel_dklbs_1{background:#fff;display:flex;z-index:2;flex-shrink:0;position:relative;transition:opacity .3s ease-in;opacity:0;width:0}._sidePanel_dklbs_1._dark_dklbs_15{background:#444;color:#fff}._sidePanelHorizontal_dklbs_20{flex-direction:column;width:100%}._sidePanelVertical_dklbs_25{flex-direction:row}._sidePanel_dklbs_1._closed_dklbs_29{opacity:0;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-out}._sidePanel_dklbs_1._opening_dklbs_37{opacity:1;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s ease-in}@media(prefers-reduced-motion:reduce){._sidePanel_dklbs_1,._sidePanel_dklbs_1._closed_dklbs_29,._sidePanel_dklbs_1._opening_dklbs_37{transition:none}}._sidePanel_dklbs_1._open_dklbs_37{opacity:1}._resizer_dklbs_57{background-color:transparent;box-sizing:border-box;position:absolute;opacity:1;touch-action:none;-webkit-user-select:none;user-select:none;z-index:2}._resizerHorizontal_dklbs_68{height:30px;width:100%;cursor:ns-resize;left:0;top:-8px;right:0}._resizerVertical_dklbs_77{width:30px;cursor:ew-resize;left:-8px;top:0;bottom:0}._noSelect_dklbs_85{-webkit-user-select:none;user-select:none}._resizerBar_dklbs_89{position:absolute;top:0;left:7px;width:4px;height:100%;background-color:#fff;touch-action:none;-webkit-user-select:none;user-select:none}._resizerDark_dklbs_100 ._resizerBar_dklbs_89{background-color:#444}._resizerHorizontal_dklbs_68 ._resizerBar_dklbs_89{top:7px;left:0;width:100%;height:4px}._resizer_dklbs_57:hover ._resizerBar_dklbs_89{background-color:#75a4e288}._resizer_dklbs_57._resizing_dklbs_115 ._resizerBar_dklbs_89{background-color:#75a4e2}._resizerHandle_dklbs_119{position:absolute;top:50%;left:2px;width:10px;height:60px;transform:translateY(-50%);background-color:#fff;border-radius:3px;border:2px solid #bbb;box-shadow:0 0 4px #ccc;display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}._resizerDark_dklbs_100 ._resizerHandle_dklbs_119{background-color:#444;border-color:#333;box-shadow:0 0 4px #333;color:#fff}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119{top:2px;left:50%;width:60px;height:10px;transform:translate(-50%)}._resizerHandle_dklbs_119._minimised_dklbs_152{left:-15px;width:20px}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119._minimised_dklbs_152{top:-15px;height:20px;left:50%;width:60px;transform:translate(-50%)}._resizerHandle_dklbs_119:focus{outline:2px solid #75a4e2;outline-offset:2px}._resizerVertical_dklbs_77 ._resizerHandle_dklbs_119:before{content:"";display:block;width:4px;height:20px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 2px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 8px,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 14px;background-repeat:no-repeat;background-size:4px 4px}._resizerDark_dklbs_100._resizerVertical_dklbs_77 ._resizerHandle_dklbs_119:before{background:radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 2px,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 8px,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 0 14px}._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119:before{content:"";display:block;width:20px;height:4px;background:radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 2px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 8px 0,radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 14px 0;background-repeat:no-repeat;background-size:4px 4px}._resizerDark_dklbs_100._resizerHorizontal_dklbs_68 ._resizerHandle_dklbs_119:before{background:radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 2px 0,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 8px 0,radial-gradient(circle,#aaa 1.5px,transparent 1.5px) 14px 0}._resizer_dklbs_57:hover ._resizerHandle_dklbs_119,._resizer_dklbs_57._resizing_dklbs_115 ._resizerHandle_dklbs_119{border-color:#75a4e2}._expand_dklbs_218{position:absolute;top:2rem;right:0;height:40px;width:30px;background-color:#fff;border-radius:3px;border:2px solid #aaa;cursor:pointer;display:flex;align-items:center;justify-content:center}._content_dklbs_234{flex-grow:1;overflow:auto;min-width:300px;scrollbar-width:thin}._closeButton_dklbs_242{position:absolute;top:.5rem;right:.5rem;width:min-content;z-index:100}
@@ -1 +1 @@
1
- ._svglayer_qfgw7_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_qfgw7_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_qfgw7_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height: 500px),(max-width: 700px){._svglayer_qfgw7_3{display:none}._container_qfgw7_19{display:flex;flex-direction:column;padding:1rem 0;width:100%}}._annotation_qfgw7_48{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-align:center}
1
+ ._svglayer_qfgw7_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_qfgw7_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_qfgw7_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height:500px),(max-width:700px){._svglayer_qfgw7_3{display:none}._container_qfgw7_19{display:flex;flex-direction:column;padding:1rem 0;width:100%}}._annotation_qfgw7_48{display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-align:center}
@@ -1 +1 @@
1
- ._widget_9aoli_3{background:#fff;border-radius:6px;padding:0;display:flex;flex-direction:column;box-shadow:2px 2px 4px #bbb;flex-shrink:0;animation:_fadein_9aoli_1 .5s 1;box-sizing:border-box;position:relative;overflow:hidden}@media only screen and (max-height: 500px),(max-width: 700px){._widget_9aoli_3{max-width:100%}}@keyframes _fadein_9aoli_1{0%{opacity:.1}to{opacity:1}}._widgetDisabled_9aoli_33{pointer-events:none;opacity:.5}._widgetActive_9aoli_39{border:1px dashed #008297}._widget_title_9aoli_44{font-size:14pt;font-weight:700;margin:0}._widget_header_9aoli_50{display:flex;justify-content:left;padding:.6rem 1rem;align-items:center}._widget_header_9aoli_50 input{padding:.2rem;height:initial;box-sizing:border-box;border:2px solid transparent;cursor:pointer;margin-right:1rem}._widget_header_9aoli_50 input:focus{border:2px solid #008297;border-radius:5px;cursor:initial}._widget_header_9aoli_50 fieldset{border:none}._widget_menu_9aoli_77{flex-grow:1;text-align:right}._widget_content_9aoli_82{padding:1rem;display:flex;flex-direction:column}._widget_content_9aoli_82>p{color:#444;font-size:12pt;margin:1rem 1.4rem}
1
+ ._widget_9aoli_3{background:#fff;border-radius:6px;padding:0;display:flex;flex-direction:column;box-shadow:2px 2px 4px #bbb;flex-shrink:0;animation:_fadein_9aoli_1 .5s 1;box-sizing:border-box;position:relative;overflow:hidden}@media only screen and (max-height:500px),(max-width:700px){._widget_9aoli_3{max-width:100%}}@keyframes _fadein_9aoli_1{0%{opacity:.1}to{opacity:1}}._widgetDisabled_9aoli_33{pointer-events:none;opacity:.5}._widgetActive_9aoli_39{border:1px dashed #008297}._widget_title_9aoli_44{font-size:14pt;font-weight:700;margin:0}._widget_header_9aoli_50{display:flex;justify-content:left;padding:.6rem 1rem;align-items:center}._widget_header_9aoli_50 input{padding:.2rem;height:initial;box-sizing:border-box;border:2px solid transparent;cursor:pointer;margin-right:1rem}._widget_header_9aoli_50 input:focus{border:2px solid #008297;border-radius:5px;cursor:initial}._widget_header_9aoli_50 fieldset{border:none}._widget_menu_9aoli_77{flex-grow:1;text-align:right}._widget_content_9aoli_82{padding:1rem;display:flex;flex-direction:column}._widget_content_9aoli_82>p{color:#444;font-size:12pt;margin:1rem 1.4rem}