@cgi-learning-hub/ui 0.0.1-dev.1708959744 → 0.0.1-dev.1708974808

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 (92) hide show
  1. package/dist/{Button-wMPAZpnO.cjs → Button-Tkz5NkF_.cjs} +1 -1
  2. package/dist/{Button-CmBnwwn3.js → Button-X7eWZQfX.js} +12 -12
  3. package/dist/ButtonBase-CKfcGhaU.js +892 -0
  4. package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
  5. package/dist/Input-CAb0EFzc.cjs +1 -0
  6. package/dist/{Input-Dk-cN0Fb.js → Input-CbYjsRHK.js} +10 -10
  7. package/dist/{InputBase-BbXy6VDy.js → InputBase-B13Nzzhk.js} +157 -138
  8. package/dist/InputBase-CKlCw9fj.cjs +4 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
  11. package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
  12. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
  13. package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
  14. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
  15. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  16. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +333 -126
  17. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  18. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  20. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  21. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  22. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  23. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  24. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  25. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  26. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  27. package/dist/components/index.cjs.js +1 -1
  28. package/dist/components/index.d.ts +0 -4
  29. package/dist/components/index.es.js +12 -20
  30. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  31. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  32. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  33. package/dist/components/inputs/TextInput/TextInput.es.js +404 -367
  34. package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  35. package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-qXNZi4k1.js} +14 -14
  36. package/dist/{extendSxProp-CVD6j4mA.js → extendSxProp-BRHiEwyk.js} +1 -1
  37. package/dist/{extendSxProp-D5gpnasP.cjs → extendSxProp-CvhhU9Vb.cjs} +1 -1
  38. package/dist/index.cjs.js +1 -1
  39. package/dist/index.es.js +10 -18
  40. package/dist/useForkRef-82uiK71d.cjs +1 -0
  41. package/dist/useForkRef-CLcOhrzI.js +44 -0
  42. package/dist/useTheme-BWRyHzdn.js +65 -0
  43. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  44. package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-B6yTTpAe.js} +714 -741
  45. package/dist/{useThemeProps-C6ClLEqN.cjs → useThemeProps-CDriK9TK.cjs} +14 -14
  46. package/package.json +1 -2
  47. package/dist/ButtonBase-Bw43M3TO.js +0 -831
  48. package/dist/ButtonBase-XPViWbp_.cjs +0 -75
  49. package/dist/CircularProgress-BCdQaPFF.cjs +0 -28
  50. package/dist/CircularProgress-DRE9BLTL.js +0 -215
  51. package/dist/Input-DHic6dYE.cjs +0 -1
  52. package/dist/InputBase-WBNJQn8V.cjs +0 -4
  53. package/dist/Tab-C2Tmr8Sv.cjs +0 -1
  54. package/dist/Tab-CWxCqAvH.js +0 -237
  55. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  56. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  57. package/dist/Typography-B1bdo7yt.js +0 -177
  58. package/dist/Typography-CO64FVmw.cjs +0 -1
  59. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  60. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  61. package/dist/components/Dropzone/Dropzone.es.js +0 -1209
  62. package/dist/components/Dropzone/index.cjs.js +0 -1
  63. package/dist/components/Dropzone/index.d.ts +0 -2
  64. package/dist/components/Dropzone/index.es.js +0 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  66. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  67. package/dist/components/lists/FileList/FileList.es.js +0 -19
  68. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -2
  69. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  70. package/dist/components/lists/FileList/FileListItem.es.js +0 -216
  71. package/dist/components/lists/FileList/index.cjs.js +0 -1
  72. package/dist/components/lists/FileList/index.d.ts +0 -4
  73. package/dist/components/lists/FileList/index.es.js +0 -6
  74. package/dist/components/lists/index.cjs.js +0 -1
  75. package/dist/components/lists/index.d.ts +0 -1
  76. package/dist/components/lists/index.es.js +0 -6
  77. package/dist/createSvgIcon-9NfUaq9H.js +0 -143
  78. package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
  79. package/dist/ownerWindow-BoRkeomM.js +0 -23
  80. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  81. package/dist/refType-CMQbzE37.js +0 -29
  82. package/dist/refType-dllUCpD8.cjs +0 -1
  83. package/dist/useControlled-BsLcOmhe.js +0 -48
  84. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  85. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  86. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  87. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  88. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  89. package/dist/useTheme-BSwuVDD3.js +0 -9
  90. package/dist/useTheme-C-LTLVMt.cjs +0 -1
  91. package/dist/useTimeout-KN97abZR.js +0 -47
  92. package/dist/useTimeout-qjxkiZZn.cjs +0 -1
@@ -1,20 +1,15 @@
1
1
  import { jsxs as me, jsx as I } from "react/jsx-runtime";
2
- import * as p from "react";
2
+ import * as u from "react";
3
3
  import He from "react";
4
- import { P as e, a as d, _ as z, h as Y, g as ne, c as oe, s as B, r as Oe, f as re, k as zn, j as te, e as ce, E as bn, x as Cn, F as _o, y as jo } from "../../../useThemeProps-kb_vU-1P.js";
5
- import { d as Hn, i as Kn, I as Gn, r as Xn, a as Yn, b as Zn, c as Jn, u as Ve, f as Ue, e as Ao, g as dn, F as Bo } from "../../../InputBase-BbXy6VDy.js";
6
- import { c as Nn, i as sn, u as Sn } from "../../../useControlled-BsLcOmhe.js";
4
+ import { P as e, a as d, _ as q, h as Y, g as ne, b as oe, s as B, r as Oe, u as re, c as qn, e as te, f as ce, z as bn, t as Pn, A as _o, y as jo } from "../../../useThemeProps-B6yTTpAe.js";
5
+ import { d as Hn, o as ie, e as Be, i as Kn, I as Gn, r as Xn, a as Yn, b as Zn, c as Jn, u as We, f as Ue, g as Ao, h as dn, F as Bo, j as Vo } from "../../../InputBase-B13Nzzhk.js";
7
6
  import { u as Qn } from "../../../useId-BW-oWmul.js";
8
- import { u as Je } from "../../../useTheme-BSwuVDD3.js";
9
- import { a as de, u as un, s as In } from "../../../useForkRef-DwN_Iz9R.js";
10
- import { c as Qe, r as $e, e as Wo } from "../../../refType-CMQbzE37.js";
11
- import { _ as Vo, T as eo } from "../../../TransitionGroupContext-C7wWJ6l7.js";
12
- import * as Uo from "react-dom";
7
+ import { _ as Wo, a as eo, c as Nn, b as Uo, u as Je } from "../../../useTheme-BWRyHzdn.js";
8
+ import { c as Qe, a as de, u as un, s as Sn, r as $e, e as zo } from "../../../useForkRef-CLcOhrzI.js";
9
+ import * as qo from "react-dom";
13
10
  import Ke from "react-dom";
14
- import { a as ie, o as Be, d as qo } from "../../../ownerWindow-BoRkeomM.js";
15
- import { a as wn, u as zo } from "../../../useTimeout-KN97abZR.js";
16
- import { c as Ho } from "../../../createSvgIcon-DLZM3vHe.js";
17
- import { I as no } from "../../../Input-Dk-cN0Fb.js";
11
+ import { c as Ho } from "../../../createSvgIcon-qXNZi4k1.js";
12
+ import { I as no } from "../../../Input-CbYjsRHK.js";
18
13
  function Ko(n) {
19
14
  const {
20
15
  prototype: o = {}
@@ -44,12 +39,54 @@ function ro(n) {
44
39
  }
45
40
  });
46
41
  }
47
- function We(n, o, t, r, i) {
42
+ function Ve(n, o, t, r, i) {
48
43
  if (process.env.NODE_ENV === "production")
49
44
  return null;
50
45
  const s = n[o], a = i || o;
51
46
  return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`) : null;
52
47
  }
48
+ function In(...n) {
49
+ return n.reduce((o, t) => t == null ? o : function(...i) {
50
+ o.apply(this, i), t.apply(this, i);
51
+ }, () => {
52
+ });
53
+ }
54
+ function sn(n, o) {
55
+ var t, r;
56
+ return /* @__PURE__ */ u.isValidElement(n) && o.indexOf(
57
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
58
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
59
+ // eslint-disable-next-line no-underscore-dangle
60
+ (t = n.type.muiName) != null ? t : (r = n.type) == null || (r = r._payload) == null || (r = r.value) == null ? void 0 : r.muiName
61
+ ) !== -1;
62
+ }
63
+ function wn({
64
+ controlled: n,
65
+ default: o,
66
+ name: t,
67
+ state: r = "value"
68
+ }) {
69
+ const {
70
+ current: i
71
+ } = u.useRef(n !== void 0), [s, a] = u.useState(o), l = i ? n : s;
72
+ if (process.env.NODE_ENV !== "production") {
73
+ u.useEffect(() => {
74
+ i !== (n !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${r} state of ${t} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
75
+ `));
76
+ }, [r, t, n]);
77
+ const {
78
+ current: p
79
+ } = u.useRef(o);
80
+ u.useEffect(() => {
81
+ !i && p !== o && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
82
+ `));
83
+ }, [JSON.stringify(o)]);
84
+ }
85
+ const c = u.useCallback((p) => {
86
+ i || a(p);
87
+ }, []);
88
+ return [l, c];
89
+ }
53
90
  function so(n) {
54
91
  const o = n.documentElement.clientWidth;
55
92
  return Math.abs(window.innerWidth - o);
@@ -108,7 +145,7 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
108
145
  var Qo = function(o) {
109
146
  return o.scrollTop;
110
147
  }, _e = "unmounted", Se = "exited", Ie = "entering", Me = "entered", fn = "exiting", be = /* @__PURE__ */ function(n) {
111
- Vo(o, n);
148
+ Wo(o, n);
112
149
  function o(r, i) {
113
150
  var s;
114
151
  s = n.call(this, r, i) || this;
@@ -157,23 +194,23 @@ var Qo = function(o) {
157
194
  status: _e
158
195
  });
159
196
  }, t.performEnter = function(i) {
160
- var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [Ke.findDOMNode(this), l], u = c[0], m = c[1], h = this.getTimeouts(), v = l ? h.appear : h.enter;
197
+ var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [l] : [Ke.findDOMNode(this), l], p = c[0], m = c[1], h = this.getTimeouts(), v = l ? h.appear : h.enter;
161
198
  if (!i && !a || kn.disabled) {
162
199
  this.safeSetState({
163
200
  status: Me
164
201
  }, function() {
165
- s.props.onEntered(u);
202
+ s.props.onEntered(p);
166
203
  });
167
204
  return;
168
205
  }
169
- this.props.onEnter(u, m), this.safeSetState({
206
+ this.props.onEnter(p, m), this.safeSetState({
170
207
  status: Ie
171
208
  }, function() {
172
- s.props.onEntering(u, m), s.onTransitionEnd(v, function() {
209
+ s.props.onEntering(p, m), s.onTransitionEnd(v, function() {
173
210
  s.safeSetState({
174
211
  status: Me
175
212
  }, function() {
176
- s.props.onEntered(u, m);
213
+ s.props.onEntered(p, m);
177
214
  });
178
215
  });
179
216
  });
@@ -217,8 +254,8 @@ var Qo = function(o) {
217
254
  return;
218
255
  }
219
256
  if (this.props.addEndListener) {
220
- var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], u = c[0], m = c[1];
221
- this.props.addEndListener(u, m);
257
+ var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], p = c[0], m = c[1];
258
+ this.props.addEndListener(p, m);
222
259
  }
223
260
  i != null && setTimeout(this.nextCallback, i);
224
261
  }, t.render = function() {
@@ -227,7 +264,7 @@ var Qo = function(o) {
227
264
  return null;
228
265
  var s = this.props, a = s.children;
229
266
  s.in, s.mountOnEnter, s.unmountOnExit, s.appear, s.enter, s.exit, s.timeout, s.addEndListener, s.onEnter, s.onEntering, s.onEntered, s.onExit, s.onExiting, s.onExited, s.nodeRef;
230
- var l = z(s, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
267
+ var l = q(s, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
231
268
  return (
232
269
  // allows for nested Transitions
233
270
  /* @__PURE__ */ He.createElement(eo.Provider, {
@@ -467,10 +504,10 @@ function ot(n) {
467
504
  internalRef: void 0
468
505
  };
469
506
  }
470
- const a = uo(d({}, i, r)), l = Mn(r), c = Mn(i), u = o(a), m = Y(u == null ? void 0 : u.className, t == null ? void 0 : t.className, s, i == null ? void 0 : i.className, r == null ? void 0 : r.className), h = d({}, u == null ? void 0 : u.style, t == null ? void 0 : t.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), v = d({}, u, t, c, l);
507
+ const a = uo(d({}, i, r)), l = Mn(r), c = Mn(i), p = o(a), m = Y(p == null ? void 0 : p.className, t == null ? void 0 : t.className, s, i == null ? void 0 : i.className, r == null ? void 0 : r.className), h = d({}, p == null ? void 0 : p.style, t == null ? void 0 : t.style, i == null ? void 0 : i.style, r == null ? void 0 : r.style), v = d({}, p, t, c, l);
471
508
  return m.length > 0 && (v.className = m), Object.keys(h).length > 0 && (v.style = h), {
472
509
  props: v,
473
- internalRef: u.ref
510
+ internalRef: p.ref
474
511
  };
475
512
  }
476
513
  const tt = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
@@ -481,12 +518,12 @@ function Fe(n) {
481
518
  externalSlotProps: r,
482
519
  ownerState: i,
483
520
  skipResolvingSlotProps: s = !1
484
- } = n, a = z(n, tt), l = s ? {} : nt(r, i), {
521
+ } = n, a = q(n, tt), l = s ? {} : nt(r, i), {
485
522
  props: c,
486
- internalRef: u
523
+ internalRef: p
487
524
  } = ot(d({}, a, {
488
525
  externalSlotProps: l
489
- })), m = de(u, l == null ? void 0 : l.ref, (o = n.additionalProps) == null ? void 0 : o.ref);
526
+ })), m = de(p, l == null ? void 0 : l.ref, (o = n.additionalProps) == null ? void 0 : o.ref);
490
527
  return et(t, d({}, c, {
491
528
  ref: m
492
529
  }), i);
@@ -529,10 +566,10 @@ function Xe(n) {
529
566
  getTabbable: s = lt,
530
567
  isEnabled: a = ct,
531
568
  open: l
532
- } = n, c = p.useRef(!1), u = p.useRef(null), m = p.useRef(null), h = p.useRef(null), v = p.useRef(null), x = p.useRef(!1), g = p.useRef(null), w = de(o.ref, g), R = p.useRef(null);
533
- p.useEffect(() => {
569
+ } = n, c = u.useRef(!1), p = u.useRef(null), m = u.useRef(null), h = u.useRef(null), v = u.useRef(null), x = u.useRef(!1), g = u.useRef(null), w = de(o.ref, g), R = u.useRef(null);
570
+ u.useEffect(() => {
534
571
  !l || !g.current || (x.current = !t);
535
- }, [t, l]), p.useEffect(() => {
572
+ }, [t, l]), u.useEffect(() => {
536
573
  if (!l || !g.current)
537
574
  return;
538
575
  const f = ie(g.current);
@@ -540,7 +577,7 @@ function Xe(n) {
540
577
  `)), g.current.setAttribute("tabIndex", "-1")), x.current && g.current.focus()), () => {
541
578
  i || (h.current && h.current.focus && (c.current = !0, h.current.focus()), h.current = null);
542
579
  };
543
- }, [l]), p.useEffect(() => {
580
+ }, [l]), u.useEffect(() => {
544
581
  if (!l || !g.current)
545
582
  return;
546
583
  const f = ie(g.current), b = (E) => {
@@ -553,7 +590,7 @@ function Xe(n) {
553
590
  c.current = !1;
554
591
  return;
555
592
  }
556
- if (E.contains(f.activeElement) || r && f.activeElement !== u.current && f.activeElement !== m.current)
593
+ if (E.contains(f.activeElement) || r && f.activeElement !== p.current && f.activeElement !== m.current)
557
594
  return;
558
595
  if (f.activeElement !== v.current)
559
596
  v.current = null;
@@ -562,10 +599,10 @@ function Xe(n) {
562
599
  if (!x.current)
563
600
  return;
564
601
  let D = [];
565
- if ((f.activeElement === u.current || f.activeElement === m.current) && (D = s(g.current)), D.length > 0) {
602
+ if ((f.activeElement === p.current || f.activeElement === m.current) && (D = s(g.current)), D.length > 0) {
566
603
  var _, j;
567
- const U = !!((_ = R.current) != null && _.shiftKey && ((j = R.current) == null ? void 0 : j.key) === "Tab"), W = D[0], $ = D[D.length - 1];
568
- typeof W != "string" && typeof $ != "string" && (U ? $.focus() : W.focus());
604
+ const U = !!((_ = R.current) != null && _.shiftKey && ((j = R.current) == null ? void 0 : j.key) === "Tab"), V = D[0], $ = D[D.length - 1];
605
+ typeof V != "string" && typeof $ != "string" && (U ? $.focus() : V.focus());
569
606
  } else
570
607
  E.focus();
571
608
  };
@@ -584,13 +621,13 @@ function Xe(n) {
584
621
  }, F = (f) => {
585
622
  h.current === null && (h.current = f.relatedTarget), x.current = !0;
586
623
  };
587
- return /* @__PURE__ */ me(p.Fragment, {
624
+ return /* @__PURE__ */ me(u.Fragment, {
588
625
  children: [/* @__PURE__ */ I("div", {
589
626
  tabIndex: l ? 0 : -1,
590
627
  onFocus: F,
591
- ref: u,
628
+ ref: p,
592
629
  "data-testid": "sentinelStart"
593
- }), /* @__PURE__ */ p.cloneElement(o, {
630
+ }), /* @__PURE__ */ u.cloneElement(o, {
594
631
  ref: w,
595
632
  onFocus: y
596
633
  }), /* @__PURE__ */ I("div", {
@@ -659,32 +696,32 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = ro(Xe.propTypes));
659
696
  function dt(n) {
660
697
  return typeof n == "function" ? n() : n;
661
698
  }
662
- const Ye = /* @__PURE__ */ p.forwardRef(function(o, t) {
699
+ const Ye = /* @__PURE__ */ u.forwardRef(function(o, t) {
663
700
  const {
664
701
  children: r,
665
702
  container: i,
666
703
  disablePortal: s = !1
667
- } = o, [a, l] = p.useState(null), c = de(/* @__PURE__ */ p.isValidElement(r) ? r.ref : null, t);
704
+ } = o, [a, l] = u.useState(null), c = de(/* @__PURE__ */ u.isValidElement(r) ? r.ref : null, t);
668
705
  if (un(() => {
669
706
  s || l(dt(i) || document.body);
670
707
  }, [i, s]), un(() => {
671
708
  if (a && !s)
672
- return In(t, a), () => {
673
- In(t, null);
709
+ return Sn(t, a), () => {
710
+ Sn(t, null);
674
711
  };
675
712
  }, [t, a, s]), s) {
676
- if (/* @__PURE__ */ p.isValidElement(r)) {
677
- const u = {
713
+ if (/* @__PURE__ */ u.isValidElement(r)) {
714
+ const p = {
678
715
  ref: c
679
716
  };
680
- return /* @__PURE__ */ p.cloneElement(r, u);
717
+ return /* @__PURE__ */ u.cloneElement(r, p);
681
718
  }
682
- return /* @__PURE__ */ I(p.Fragment, {
719
+ return /* @__PURE__ */ I(u.Fragment, {
683
720
  children: r
684
721
  });
685
722
  }
686
- return /* @__PURE__ */ I(p.Fragment, {
687
- children: a && /* @__PURE__ */ Uo.createPortal(r, a)
723
+ return /* @__PURE__ */ I(u.Fragment, {
724
+ children: a && /* @__PURE__ */ qo.createPortal(r, a)
688
725
  });
689
726
  });
690
727
  process.env.NODE_ENV !== "production" && (Ye.propTypes = {
@@ -706,7 +743,7 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
706
743
  * By default, it uses the body of the top-level document object,
707
744
  * so it's simply `document.body` most of the time.
708
745
  */
709
- container: e.oneOfType([We, e.func]),
746
+ container: e.oneOfType([Ve, e.func]),
710
747
  /**
711
748
  * The `children` will be under the DOM hierarchy of the parent component.
712
749
  * @default false
@@ -853,36 +890,36 @@ function yt(n) {
853
890
  onTransitionEnter: a,
854
891
  onTransitionExited: l,
855
892
  children: c,
856
- onClose: u,
893
+ onClose: p,
857
894
  open: m,
858
895
  rootRef: h
859
- } = n, v = p.useRef({}), x = p.useRef(null), g = p.useRef(null), w = de(g, h), [R, y] = p.useState(!m), F = vt(c);
896
+ } = n, v = u.useRef({}), x = u.useRef(null), g = u.useRef(null), w = de(g, h), [R, y] = u.useState(!m), F = vt(c);
860
897
  let f = !0;
861
898
  (n["aria-hidden"] === "false" || n["aria-hidden"] === !1) && (f = !1);
862
899
  const b = () => ie(x.current), T = () => (v.current.modalRef = g.current, v.current.mount = x.current, v.current), N = () => {
863
900
  i.mount(T(), {
864
901
  disableScrollLock: r
865
902
  }), g.current && (g.current.scrollTop = 0);
866
- }, E = wn(() => {
903
+ }, E = Nn(() => {
867
904
  const S = ht(o) || b().body;
868
905
  i.add(T(), S), g.current && N();
869
- }), D = p.useCallback(() => i.isTopModal(T()), [i]), _ = wn((S) => {
906
+ }), D = u.useCallback(() => i.isTopModal(T()), [i]), _ = Nn((S) => {
870
907
  x.current = S, S && (m && D() ? N() : g.current && je(g.current, f));
871
- }), j = p.useCallback(() => {
908
+ }), j = u.useCallback(() => {
872
909
  i.remove(T(), f);
873
910
  }, [f, i]);
874
- p.useEffect(() => () => {
911
+ u.useEffect(() => () => {
875
912
  j();
876
- }, [j]), p.useEffect(() => {
913
+ }, [j]), u.useEffect(() => {
877
914
  m ? E() : (!F || !s) && j();
878
915
  }, [m, j, F, s, E]);
879
916
  const U = (S) => (M) => {
880
917
  var k;
881
918
  (k = S.onKeyDown) == null || k.call(S, M), !(M.key !== "Escape" || M.which === 229 || // Wait until IME is settled.
882
- !D()) && (t || (M.stopPropagation(), u && u(M, "escapeKeyDown")));
883
- }, W = (S) => (M) => {
919
+ !D()) && (t || (M.stopPropagation(), p && p(M, "escapeKeyDown")));
920
+ }, V = (S) => (M) => {
884
921
  var k;
885
- (k = S.onClick) == null || k.call(S, M), M.target === M.currentTarget && u && u(M, "backdropClick");
922
+ (k = S.onClick) == null || k.call(S, M), M.target === M.currentTarget && p && p(M, "backdropClick");
886
923
  };
887
924
  return {
888
925
  getRootProps: (S = {}) => {
@@ -901,7 +938,7 @@ function yt(n) {
901
938
  return d({
902
939
  "aria-hidden": !0
903
940
  }, M, {
904
- onClick: W(M),
941
+ onClick: V(M),
905
942
  open: m
906
943
  });
907
944
  },
@@ -912,8 +949,8 @@ function yt(n) {
912
949
  y(!0), l && l(), s && j();
913
950
  };
914
951
  return {
915
- onEnter: Nn(S, c == null ? void 0 : c.props.onEnter),
916
- onExited: Nn(M, c == null ? void 0 : c.props.onExited)
952
+ onEnter: In(S, c == null ? void 0 : c.props.onEnter),
953
+ onExited: In(M, c == null ? void 0 : c.props.onExited)
917
954
  };
918
955
  },
919
956
  rootRef: w,
@@ -1040,7 +1077,7 @@ const xt = d({}, Kn, ne("MuiFilledInput", ["root", "underline", "input"])), Ne =
1040
1077
  paddingTop: 8,
1041
1078
  paddingBottom: 9
1042
1079
  }));
1043
- }), Pt = B(Yn, {
1080
+ }), Ct = B(Yn, {
1044
1081
  name: "MuiFilledInput",
1045
1082
  slot: "Input",
1046
1083
  overridesResolver: Zn
@@ -1090,14 +1127,14 @@ const xt = d({}, Kn, ne("MuiFilledInput", ["root", "underline", "input"])), Ne =
1090
1127
  paddingBottom: 0,
1091
1128
  paddingLeft: 0,
1092
1129
  paddingRight: 0
1093
- })), hn = /* @__PURE__ */ p.forwardRef(function(o, t) {
1130
+ })), hn = /* @__PURE__ */ u.forwardRef(function(o, t) {
1094
1131
  var r, i, s, a;
1095
1132
  const l = re({
1096
1133
  props: o,
1097
1134
  name: "MuiFilledInput"
1098
1135
  }), {
1099
1136
  components: c = {},
1100
- componentsProps: u,
1137
+ componentsProps: p,
1101
1138
  fullWidth: m = !1,
1102
1139
  // declare here to prevent spreading to DOM
1103
1140
  inputComponent: h = "input",
@@ -1105,7 +1142,7 @@ const xt = d({}, Kn, ne("MuiFilledInput", ["root", "underline", "input"])), Ne =
1105
1142
  slotProps: x,
1106
1143
  slots: g = {},
1107
1144
  type: w = "text"
1108
- } = l, R = z(l, Tt), y = d({}, l, {
1145
+ } = l, R = q(l, Tt), y = d({}, l, {
1109
1146
  fullWidth: m,
1110
1147
  inputComponent: h,
1111
1148
  multiline: v,
@@ -1117,7 +1154,7 @@ const xt = d({}, Kn, ne("MuiFilledInput", ["root", "underline", "input"])), Ne =
1117
1154
  input: {
1118
1155
  ownerState: y
1119
1156
  }
1120
- }, b = x ?? u ? zn(f, x ?? u) : f, T = (r = (i = g.root) != null ? i : c.Root) != null ? r : Rt, N = (s = (a = g.input) != null ? a : c.Input) != null ? s : Pt;
1157
+ }, b = x ?? p ? qn(f, x ?? p) : f, T = (r = (i = g.root) != null ? i : c.Root) != null ? r : Rt, N = (s = (a = g.input) != null ? a : c.Input) != null ? s : Ct;
1121
1158
  return /* @__PURE__ */ I(Jn, d({
1122
1159
  slots: {
1123
1160
  root: T,
@@ -1329,7 +1366,7 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
1329
1366
  hn.muiName = "Input";
1330
1367
  const po = hn;
1331
1368
  var Ln;
1332
- const Ct = ["children", "classes", "className", "label", "notched"], Nt = B("fieldset", {
1369
+ const Pt = ["children", "classes", "className", "label", "notched"], Nt = B("fieldset", {
1333
1370
  shouldForwardProp: Oe
1334
1371
  })({
1335
1372
  textAlign: "left",
@@ -1399,7 +1436,7 @@ function fo(n) {
1399
1436
  className: o,
1400
1437
  label: t,
1401
1438
  notched: r
1402
- } = n, i = z(n, Ct), s = t != null && t !== "", a = d({}, n, {
1439
+ } = n, i = q(n, Pt), s = t != null && t !== "", a = d({}, n, {
1403
1440
  notched: r,
1404
1441
  withLabel: s
1405
1442
  });
@@ -1548,13 +1585,13 @@ const wt = d({}, Kn, ne("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1548
1585
  paddingLeft: 0
1549
1586
  }, o.endAdornment && {
1550
1587
  paddingRight: 0
1551
- })), vn = /* @__PURE__ */ p.forwardRef(function(o, t) {
1588
+ })), vn = /* @__PURE__ */ u.forwardRef(function(o, t) {
1552
1589
  var r, i, s, a, l;
1553
1590
  const c = re({
1554
1591
  props: o,
1555
1592
  name: "MuiOutlinedInput"
1556
1593
  }), {
1557
- components: u = {},
1594
+ components: p = {},
1558
1595
  fullWidth: m = !1,
1559
1596
  inputComponent: h = "input",
1560
1597
  label: v,
@@ -1562,7 +1599,7 @@ const wt = d({}, Kn, ne("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1562
1599
  notched: g,
1563
1600
  slots: w = {},
1564
1601
  type: R = "text"
1565
- } = c, y = z(c, kt), F = Mt(c), f = Ve(), b = Ue({
1602
+ } = c, y = q(c, kt), F = Mt(c), f = We(), b = Ue({
1566
1603
  props: c,
1567
1604
  muiFormControl: f,
1568
1605
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
@@ -1577,7 +1614,7 @@ const wt = d({}, Kn, ne("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1577
1614
  multiline: x,
1578
1615
  size: b.size,
1579
1616
  type: R
1580
- }), N = (r = (i = w.root) != null ? i : u.Root) != null ? r : Ft, E = (s = (a = w.input) != null ? a : u.Input) != null ? s : Dt;
1617
+ }), N = (r = (i = w.root) != null ? i : p.Root) != null ? r : Ft, E = (s = (a = w.input) != null ? a : p.Input) != null ? s : Dt;
1581
1618
  return /* @__PURE__ */ I(Jn, d({
1582
1619
  slots: {
1583
1620
  root: N,
@@ -1586,7 +1623,7 @@ const wt = d({}, Kn, ne("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1586
1623
  renderSuffix: (D) => /* @__PURE__ */ I($t, {
1587
1624
  ownerState: T,
1588
1625
  className: F.notchedOutline,
1589
- label: v != null && v !== "" && b.required ? l || (l = /* @__PURE__ */ me(p.Fragment, {
1626
+ label: v != null && v !== "" && b.required ? l || (l = /* @__PURE__ */ me(u.Fragment, {
1590
1627
  children: [v, " ", "*"]
1591
1628
  })) : v,
1592
1629
  notched: typeof g < "u" ? g : !!(D.startAdornment || D.filled || D.focused)
@@ -1811,7 +1848,7 @@ const _t = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
1811
1848
  [`&.${Ae.error}`]: {
1812
1849
  color: (n.vars || n).palette.error.main
1813
1850
  }
1814
- })), Wt = B("span", {
1851
+ })), Vt = B("span", {
1815
1852
  name: "MuiFormLabel",
1816
1853
  slot: "Asterisk",
1817
1854
  overridesResolver: (n, o) => o.asterisk
@@ -1821,7 +1858,7 @@ const _t = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
1821
1858
  [`&.${Ae.error}`]: {
1822
1859
  color: (n.vars || n).palette.error.main
1823
1860
  }
1824
- })), bo = /* @__PURE__ */ p.forwardRef(function(o, t) {
1861
+ })), bo = /* @__PURE__ */ u.forwardRef(function(o, t) {
1825
1862
  const r = re({
1826
1863
  props: o,
1827
1864
  name: "MuiFormLabel"
@@ -1829,18 +1866,18 @@ const _t = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
1829
1866
  children: i,
1830
1867
  className: s,
1831
1868
  component: a = "label"
1832
- } = r, l = z(r, jt), c = Ve(), u = Ue({
1869
+ } = r, l = q(r, jt), c = We(), p = Ue({
1833
1870
  props: r,
1834
1871
  muiFormControl: c,
1835
1872
  states: ["color", "required", "focused", "disabled", "error", "filled"]
1836
1873
  }), m = d({}, r, {
1837
- color: u.color || "primary",
1874
+ color: p.color || "primary",
1838
1875
  component: a,
1839
- disabled: u.disabled,
1840
- error: u.error,
1841
- filled: u.filled,
1842
- focused: u.focused,
1843
- required: u.required
1876
+ disabled: p.disabled,
1877
+ error: p.error,
1878
+ filled: p.filled,
1879
+ focused: p.focused,
1880
+ required: p.required
1844
1881
  }), h = At(m);
1845
1882
  return /* @__PURE__ */ me(Bt, d({
1846
1883
  as: a,
@@ -1848,7 +1885,7 @@ const _t = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
1848
1885
  className: Y(h.root, s),
1849
1886
  ref: t
1850
1887
  }, l, {
1851
- children: [i, u.required && /* @__PURE__ */ me(Wt, {
1888
+ children: [i, p.required && /* @__PURE__ */ me(Vt, {
1852
1889
  ownerState: m,
1853
1890
  "aria-hidden": !0,
1854
1891
  className: h.asterisk,
@@ -1909,12 +1946,12 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1909
1946
  */
1910
1947
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1911
1948
  });
1912
- const Vt = bo;
1949
+ const Wt = bo;
1913
1950
  function Ut(n) {
1914
1951
  return oe("MuiInputLabel", n);
1915
1952
  }
1916
1953
  ne("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
1917
- const qt = ["disableAnimation", "margin", "shrink", "variant", "className"], zt = (n) => {
1954
+ const zt = ["disableAnimation", "margin", "shrink", "variant", "className"], qt = (n) => {
1918
1955
  const {
1919
1956
  classes: o,
1920
1957
  formControl: t,
@@ -1926,9 +1963,9 @@ const qt = ["disableAnimation", "margin", "shrink", "variant", "className"], zt
1926
1963
  } = n, c = {
1927
1964
  root: ["root", t && "formControl", !s && "animated", i && "shrink", r && r !== "normal" && `size${ce(r)}`, a],
1928
1965
  asterisk: [l && "asterisk"]
1929
- }, u = te(c, Ut, o);
1930
- return d({}, o, u);
1931
- }, Ht = B(Vt, {
1966
+ }, p = te(c, Ut, o);
1967
+ return d({}, o, p);
1968
+ }, Ht = B(Wt, {
1932
1969
  shouldForwardProp: (n) => Oe(n) || n === "classes",
1933
1970
  name: "MuiInputLabel",
1934
1971
  slot: "Root",
@@ -2001,7 +2038,7 @@ const qt = ["disableAnimation", "margin", "shrink", "variant", "className"], zt
2001
2038
  // but it feels a better when it bleeds a bit on the left, so 32px.
2002
2039
  maxWidth: "calc(133% - 32px)",
2003
2040
  transform: "translate(14px, -9px) scale(0.75)"
2004
- }))), ho = /* @__PURE__ */ p.forwardRef(function(o, t) {
2041
+ }))), ho = /* @__PURE__ */ u.forwardRef(function(o, t) {
2005
2042
  const r = re({
2006
2043
  name: "MuiInputLabel",
2007
2044
  props: o
@@ -2009,9 +2046,9 @@ const qt = ["disableAnimation", "margin", "shrink", "variant", "className"], zt
2009
2046
  disableAnimation: i = !1,
2010
2047
  shrink: s,
2011
2048
  className: a
2012
- } = r, l = z(r, qt), c = Ve();
2013
- let u = s;
2014
- typeof u > "u" && c && (u = c.filled || c.focused || c.adornedStart);
2049
+ } = r, l = q(r, zt), c = We();
2050
+ let p = s;
2051
+ typeof p > "u" && c && (p = c.filled || c.focused || c.adornedStart);
2015
2052
  const m = Ue({
2016
2053
  props: r,
2017
2054
  muiFormControl: c,
@@ -2019,14 +2056,14 @@ const qt = ["disableAnimation", "margin", "shrink", "variant", "className"], zt
2019
2056
  }), h = d({}, r, {
2020
2057
  disableAnimation: i,
2021
2058
  formControl: c,
2022
- shrink: u,
2059
+ shrink: p,
2023
2060
  size: m.size,
2024
2061
  variant: m.variant,
2025
2062
  required: m.required,
2026
2063
  focused: m.focused
2027
- }), v = zt(h);
2064
+ }), v = qt(h);
2028
2065
  return /* @__PURE__ */ I(Ht, d({
2029
- "data-shrink": u,
2066
+ "data-shrink": p,
2030
2067
  ownerState: h,
2031
2068
  ref: t,
2032
2069
  className: Y(v.root, a)
@@ -2141,7 +2178,7 @@ const Xt = ["children", "className", "color", "component", "disabled", "error",
2141
2178
  marginBottom: 4
2142
2179
  }, n.fullWidth && {
2143
2180
  width: "100%"
2144
- })), vo = /* @__PURE__ */ p.forwardRef(function(o, t) {
2181
+ })), vo = /* @__PURE__ */ u.forwardRef(function(o, t) {
2145
2182
  const r = re({
2146
2183
  props: o,
2147
2184
  name: "MuiFormControl"
@@ -2151,7 +2188,7 @@ const Xt = ["children", "className", "color", "component", "disabled", "error",
2151
2188
  color: a = "primary",
2152
2189
  component: l = "div",
2153
2190
  disabled: c = !1,
2154
- error: u = !1,
2191
+ error: p = !1,
2155
2192
  focused: m,
2156
2193
  fullWidth: h = !1,
2157
2194
  hiddenLabel: v = !1,
@@ -2159,47 +2196,47 @@ const Xt = ["children", "className", "color", "component", "disabled", "error",
2159
2196
  required: g = !1,
2160
2197
  size: w = "medium",
2161
2198
  variant: R = "outlined"
2162
- } = r, y = z(r, Xt), F = d({}, r, {
2199
+ } = r, y = q(r, Xt), F = d({}, r, {
2163
2200
  color: a,
2164
2201
  component: l,
2165
2202
  disabled: c,
2166
- error: u,
2203
+ error: p,
2167
2204
  fullWidth: h,
2168
2205
  hiddenLabel: v,
2169
2206
  margin: x,
2170
2207
  required: g,
2171
2208
  size: w,
2172
2209
  variant: R
2173
- }), f = Yt(F), [b, T] = p.useState(() => {
2210
+ }), f = Yt(F), [b, T] = u.useState(() => {
2174
2211
  let $ = !1;
2175
- return i && p.Children.forEach(i, (C) => {
2176
- if (!sn(C, ["Input", "Select"]))
2212
+ return i && u.Children.forEach(i, (P) => {
2213
+ if (!sn(P, ["Input", "Select"]))
2177
2214
  return;
2178
- const O = sn(C, ["Select"]) ? C.props.input : C;
2215
+ const O = sn(P, ["Select"]) ? P.props.input : P;
2179
2216
  O && Ao(O.props) && ($ = !0);
2180
2217
  }), $;
2181
- }), [N, E] = p.useState(() => {
2218
+ }), [N, E] = u.useState(() => {
2182
2219
  let $ = !1;
2183
- return i && p.Children.forEach(i, (C) => {
2184
- sn(C, ["Input", "Select"]) && (dn(C.props, !0) || dn(C.props.inputProps, !0)) && ($ = !0);
2220
+ return i && u.Children.forEach(i, (P) => {
2221
+ sn(P, ["Input", "Select"]) && (dn(P.props, !0) || dn(P.props.inputProps, !0)) && ($ = !0);
2185
2222
  }), $;
2186
- }), [D, _] = p.useState(!1);
2223
+ }), [D, _] = u.useState(!1);
2187
2224
  c && D && _(!1);
2188
2225
  const j = m !== void 0 && !c ? m : D;
2189
2226
  let U;
2190
2227
  if (process.env.NODE_ENV !== "production") {
2191
- const $ = p.useRef(!1);
2228
+ const $ = u.useRef(!1);
2192
2229
  U = () => ($.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
2193
2230
  `)), $.current = !0, () => {
2194
2231
  $.current = !1;
2195
2232
  });
2196
2233
  }
2197
- const W = p.useMemo(() => ({
2234
+ const V = u.useMemo(() => ({
2198
2235
  adornedStart: b,
2199
2236
  setAdornedStart: T,
2200
2237
  color: a,
2201
2238
  disabled: c,
2202
- error: u,
2239
+ error: p,
2203
2240
  filled: N,
2204
2241
  focused: j,
2205
2242
  fullWidth: h,
@@ -2220,9 +2257,9 @@ const Xt = ["children", "className", "color", "component", "disabled", "error",
2220
2257
  registerEffect: U,
2221
2258
  required: g,
2222
2259
  variant: R
2223
- }), [b, a, c, u, N, j, h, v, U, g, w, R]);
2260
+ }), [b, a, c, p, N, j, h, v, U, g, w, R]);
2224
2261
  return /* @__PURE__ */ I(Bo.Provider, {
2225
- value: W,
2262
+ value: V,
2226
2263
  children: /* @__PURE__ */ I(Zt, d({
2227
2264
  as: l,
2228
2265
  ownerState: F,
@@ -2329,10 +2366,10 @@ const nr = ["children", "className", "component", "disabled", "error", "filled",
2329
2366
  filled: a,
2330
2367
  focused: l,
2331
2368
  required: c
2332
- } = n, u = {
2369
+ } = n, p = {
2333
2370
  root: ["root", i && "disabled", s && "error", r && `size${ce(r)}`, t && "contained", l && "focused", a && "filled", c && "required"]
2334
2371
  };
2335
- return te(u, Qt, o);
2372
+ return te(p, Qt, o);
2336
2373
  }, tr = B("p", {
2337
2374
  name: "MuiFormHelperText",
2338
2375
  slot: "Root",
@@ -2364,7 +2401,7 @@ const nr = ["children", "className", "component", "disabled", "error", "filled",
2364
2401
  }, o.contained && {
2365
2402
  marginLeft: 14,
2366
2403
  marginRight: 14
2367
- })), go = /* @__PURE__ */ p.forwardRef(function(o, t) {
2404
+ })), go = /* @__PURE__ */ u.forwardRef(function(o, t) {
2368
2405
  const r = re({
2369
2406
  props: o,
2370
2407
  name: "MuiFormHelperText"
@@ -2372,20 +2409,20 @@ const nr = ["children", "className", "component", "disabled", "error", "filled",
2372
2409
  children: i,
2373
2410
  className: s,
2374
2411
  component: a = "p"
2375
- } = r, l = z(r, nr), c = Ve(), u = Ue({
2412
+ } = r, l = q(r, nr), c = We(), p = Ue({
2376
2413
  props: r,
2377
2414
  muiFormControl: c,
2378
2415
  states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
2379
2416
  }), m = d({}, r, {
2380
2417
  component: a,
2381
- contained: u.variant === "filled" || u.variant === "outlined",
2382
- variant: u.variant,
2383
- size: u.size,
2384
- disabled: u.disabled,
2385
- error: u.error,
2386
- filled: u.filled,
2387
- focused: u.focused,
2388
- required: u.required
2418
+ contained: p.variant === "filled" || p.variant === "outlined",
2419
+ variant: p.variant,
2420
+ size: p.size,
2421
+ disabled: p.disabled,
2422
+ error: p.error,
2423
+ filled: p.filled,
2424
+ focused: p.focused,
2425
+ required: p.required
2389
2426
  }), h = or(m);
2390
2427
  return /* @__PURE__ */ I(tr, d({
2391
2428
  as: a,
@@ -2460,7 +2497,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
2460
2497
  */
2461
2498
  variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
2462
2499
  });
2463
- const rr = go, yo = /* @__PURE__ */ p.createContext({});
2500
+ const rr = go, yo = /* @__PURE__ */ u.createContext({});
2464
2501
  process.env.NODE_ENV !== "production" && (yo.displayName = "ListContext");
2465
2502
  const sr = yo;
2466
2503
  function ir(n) {
@@ -2498,7 +2535,7 @@ const ar = ["children", "className", "component", "dense", "disablePadding", "su
2498
2535
  paddingBottom: 8
2499
2536
  }, n.subheader && {
2500
2537
  paddingTop: 0
2501
- })), Eo = /* @__PURE__ */ p.forwardRef(function(o, t) {
2538
+ })), Eo = /* @__PURE__ */ u.forwardRef(function(o, t) {
2502
2539
  const r = re({
2503
2540
  props: o,
2504
2541
  name: "MuiList"
@@ -2508,8 +2545,8 @@ const ar = ["children", "className", "component", "dense", "disablePadding", "su
2508
2545
  component: a = "ul",
2509
2546
  dense: l = !1,
2510
2547
  disablePadding: c = !1,
2511
- subheader: u
2512
- } = r, m = z(r, ar), h = p.useMemo(() => ({
2548
+ subheader: p
2549
+ } = r, m = q(r, ar), h = u.useMemo(() => ({
2513
2550
  dense: l
2514
2551
  }), [l]), v = d({}, r, {
2515
2552
  component: a,
@@ -2524,7 +2561,7 @@ const ar = ["children", "className", "component", "dense", "disablePadding", "su
2524
2561
  ref: t,
2525
2562
  ownerState: v
2526
2563
  }, m, {
2527
- children: [u, i]
2564
+ children: [p, i]
2528
2565
  }))
2529
2566
  });
2530
2567
  });
@@ -2600,7 +2637,7 @@ function De(n, o, t, r, i, s) {
2600
2637
  }
2601
2638
  return !1;
2602
2639
  }
2603
- const To = /* @__PURE__ */ p.forwardRef(function(o, t) {
2640
+ const To = /* @__PURE__ */ u.forwardRef(function(o, t) {
2604
2641
  const {
2605
2642
  // private
2606
2643
  // eslint-disable-next-line react/prop-types
@@ -2610,10 +2647,10 @@ const To = /* @__PURE__ */ p.forwardRef(function(o, t) {
2610
2647
  children: a,
2611
2648
  className: l,
2612
2649
  disabledItemsFocusable: c = !1,
2613
- disableListWrap: u = !1,
2650
+ disableListWrap: p = !1,
2614
2651
  onKeyDown: m,
2615
2652
  variant: h = "selectedMenu"
2616
- } = o, v = z(o, ur), x = p.useRef(null), g = p.useRef({
2653
+ } = o, v = q(o, ur), x = u.useRef(null), g = u.useRef({
2617
2654
  keys: [],
2618
2655
  repeating: !0,
2619
2656
  previousKeyMatched: !0,
@@ -2621,7 +2658,7 @@ const To = /* @__PURE__ */ p.forwardRef(function(o, t) {
2621
2658
  });
2622
2659
  un(() => {
2623
2660
  i && x.current.focus();
2624
- }, [i]), p.useImperativeHandle(r, () => ({
2661
+ }, [i]), u.useImperativeHandle(r, () => ({
2625
2662
  adjustStyleForScrollbar: (f, b) => {
2626
2663
  const T = !x.current.style.width;
2627
2664
  if (f.clientHeight < x.current.clientHeight && T) {
@@ -2634,13 +2671,13 @@ const To = /* @__PURE__ */ p.forwardRef(function(o, t) {
2634
2671
  const w = (f) => {
2635
2672
  const b = x.current, T = f.key, N = ie(b).activeElement;
2636
2673
  if (T === "ArrowDown")
2637
- f.preventDefault(), De(b, N, u, c, ln);
2674
+ f.preventDefault(), De(b, N, p, c, ln);
2638
2675
  else if (T === "ArrowUp")
2639
- f.preventDefault(), De(b, N, u, c, An);
2676
+ f.preventDefault(), De(b, N, p, c, An);
2640
2677
  else if (T === "Home")
2641
- f.preventDefault(), De(b, null, u, c, ln);
2678
+ f.preventDefault(), De(b, null, p, c, ln);
2642
2679
  else if (T === "End")
2643
- f.preventDefault(), De(b, null, u, c, An);
2680
+ f.preventDefault(), De(b, null, p, c, An);
2644
2681
  else if (T.length === 1) {
2645
2682
  const E = g.current, D = T.toLowerCase(), _ = performance.now();
2646
2683
  E.keys.length > 0 && (_ - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && D !== E.keys[0] && (E.repeating = !1)), E.lastTime = _, E.keys.push(D);
@@ -2650,18 +2687,18 @@ const To = /* @__PURE__ */ p.forwardRef(function(o, t) {
2650
2687
  m && m(f);
2651
2688
  }, R = de(x, t);
2652
2689
  let y = -1;
2653
- p.Children.forEach(a, (f, b) => {
2654
- if (!/* @__PURE__ */ p.isValidElement(f)) {
2690
+ u.Children.forEach(a, (f, b) => {
2691
+ if (!/* @__PURE__ */ u.isValidElement(f)) {
2655
2692
  y === b && (y += 1, y >= a.length && (y = -1));
2656
2693
  return;
2657
2694
  }
2658
2695
  process.env.NODE_ENV !== "production" && bn.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2659
2696
  `)), f.props.disabled || (h === "selectedMenu" && f.props.selected || y === -1) && (y = b), y === b && (f.props.disabled || f.props.muiSkipListHighlight || f.type.muiSkipListHighlight) && (y += 1, y >= a.length && (y = -1));
2660
2697
  });
2661
- const F = p.Children.map(a, (f, b) => {
2698
+ const F = u.Children.map(a, (f, b) => {
2662
2699
  if (b === y) {
2663
2700
  const T = {};
2664
- return s && (T.autoFocus = !0), f.props.tabIndex === void 0 && h === "selectedMenu" && (T.tabIndex = 0), /* @__PURE__ */ p.cloneElement(f, T);
2701
+ return s && (T.autoFocus = !0), f.props.tabIndex === void 0 && h === "selectedMenu" && (T.tabIndex = 0), /* @__PURE__ */ u.cloneElement(f, T);
2665
2702
  }
2666
2703
  return f;
2667
2704
  });
@@ -2747,7 +2784,7 @@ const mr = {
2747
2784
  opacity: 1,
2748
2785
  transform: "none"
2749
2786
  }
2750
- }, cn = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), gn = /* @__PURE__ */ p.forwardRef(function(o, t) {
2787
+ }, cn = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), gn = /* @__PURE__ */ u.forwardRef(function(o, t) {
2751
2788
  const {
2752
2789
  addEndListener: r,
2753
2790
  appear: i = !0,
@@ -2755,7 +2792,7 @@ const mr = {
2755
2792
  easing: a,
2756
2793
  in: l,
2757
2794
  onEnter: c,
2758
- onEntered: u,
2795
+ onEntered: p,
2759
2796
  onEntering: m,
2760
2797
  onExit: h,
2761
2798
  onExited: v,
@@ -2764,7 +2801,7 @@ const mr = {
2764
2801
  timeout: w = "auto",
2765
2802
  // eslint-disable-next-line react/prop-types
2766
2803
  TransitionComponent: R = co
2767
- } = o, y = z(o, fr), F = zo(), f = p.useRef(), b = Je(), T = p.useRef(null), N = de(T, s.ref, t), E = (O) => (S) => {
2804
+ } = o, y = q(o, fr), F = Uo(), f = u.useRef(), b = Je(), T = u.useRef(null), N = de(T, s.ref, t), E = (O) => (S) => {
2768
2805
  if (O) {
2769
2806
  const M = T.current;
2770
2807
  S === void 0 ? O(M) : O(M, S);
@@ -2791,7 +2828,7 @@ const mr = {
2791
2828
  delay: k,
2792
2829
  easing: L
2793
2830
  })].join(","), c && c(O, S);
2794
- }), j = E(u), U = E(x), W = E((O) => {
2831
+ }), j = E(p), U = E(x), V = E((O) => {
2795
2832
  const {
2796
2833
  duration: S,
2797
2834
  delay: M,
@@ -2820,7 +2857,7 @@ const mr = {
2820
2857
  onEnter: _,
2821
2858
  onEntered: j,
2822
2859
  onEntering: D,
2823
- onExit: W,
2860
+ onExit: V,
2824
2861
  onExited: $,
2825
2862
  onExiting: U,
2826
2863
  addEndListener: (O) => {
@@ -2828,7 +2865,7 @@ const mr = {
2828
2865
  },
2829
2866
  timeout: w === "auto" ? null : w
2830
2867
  }, y, {
2831
- children: (O, S) => /* @__PURE__ */ p.cloneElement(s, d({
2868
+ children: (O, S) => /* @__PURE__ */ u.cloneElement(s, d({
2832
2869
  style: d({
2833
2870
  opacity: 0,
2834
2871
  transform: mn(0.75),
@@ -2920,7 +2957,7 @@ const br = gn, hr = ["addEndListener", "appear", "children", "easing", "in", "on
2920
2957
  entered: {
2921
2958
  opacity: 1
2922
2959
  }
2923
- }, Ro = /* @__PURE__ */ p.forwardRef(function(o, t) {
2960
+ }, Ro = /* @__PURE__ */ u.forwardRef(function(o, t) {
2924
2961
  const r = Je(), i = {
2925
2962
  enter: r.transitions.duration.enteringScreen,
2926
2963
  exit: r.transitions.duration.leavingScreen
@@ -2929,7 +2966,7 @@ const br = gn, hr = ["addEndListener", "appear", "children", "easing", "in", "on
2929
2966
  appear: a = !0,
2930
2967
  children: l,
2931
2968
  easing: c,
2932
- in: u,
2969
+ in: p,
2933
2970
  onEnter: m,
2934
2971
  onEntered: h,
2935
2972
  onEntering: v,
@@ -2940,13 +2977,13 @@ const br = gn, hr = ["addEndListener", "appear", "children", "easing", "in", "on
2940
2977
  timeout: y = i,
2941
2978
  // eslint-disable-next-line react/prop-types
2942
2979
  TransitionComponent: F = co
2943
- } = o, f = z(o, hr), b = p.useRef(null), T = de(b, l.ref, t), N = (C) => (O) => {
2944
- if (C) {
2980
+ } = o, f = q(o, hr), b = u.useRef(null), T = de(b, l.ref, t), N = (P) => (O) => {
2981
+ if (P) {
2945
2982
  const S = b.current;
2946
- O === void 0 ? C(S) : C(S, O);
2983
+ O === void 0 ? P(S) : P(S, O);
2947
2984
  }
2948
- }, E = N(v), D = N((C, O) => {
2949
- Oo(C);
2985
+ }, E = N(v), D = N((P, O) => {
2986
+ Oo(P);
2950
2987
  const S = Ze({
2951
2988
  style: R,
2952
2989
  timeout: y,
@@ -2954,8 +2991,8 @@ const br = gn, hr = ["addEndListener", "appear", "children", "easing", "in", "on
2954
2991
  }, {
2955
2992
  mode: "enter"
2956
2993
  });
2957
- C.style.webkitTransition = r.transitions.create("opacity", S), C.style.transition = r.transitions.create("opacity", S), m && m(C, O);
2958
- }), _ = N(h), j = N(w), U = N((C) => {
2994
+ P.style.webkitTransition = r.transitions.create("opacity", S), P.style.transition = r.transitions.create("opacity", S), m && m(P, O);
2995
+ }), _ = N(h), j = N(w), U = N((P) => {
2959
2996
  const O = Ze({
2960
2997
  style: R,
2961
2998
  timeout: y,
@@ -2963,28 +3000,28 @@ const br = gn, hr = ["addEndListener", "appear", "children", "easing", "in", "on
2963
3000
  }, {
2964
3001
  mode: "exit"
2965
3002
  });
2966
- C.style.webkitTransition = r.transitions.create("opacity", O), C.style.transition = r.transitions.create("opacity", O), x && x(C);
2967
- }), W = N(g);
3003
+ P.style.webkitTransition = r.transitions.create("opacity", O), P.style.transition = r.transitions.create("opacity", O), x && x(P);
3004
+ }), V = N(g);
2968
3005
  return /* @__PURE__ */ I(F, d({
2969
3006
  appear: a,
2970
- in: u,
3007
+ in: p,
2971
3008
  nodeRef: b,
2972
3009
  onEnter: D,
2973
3010
  onEntered: _,
2974
3011
  onEntering: E,
2975
3012
  onExit: U,
2976
- onExited: W,
3013
+ onExited: V,
2977
3014
  onExiting: j,
2978
- addEndListener: (C) => {
2979
- s && s(b.current, C);
3015
+ addEndListener: (P) => {
3016
+ s && s(b.current, P);
2980
3017
  },
2981
3018
  timeout: y
2982
3019
  }, f, {
2983
- children: (C, O) => /* @__PURE__ */ p.cloneElement(l, d({
3020
+ children: (P, O) => /* @__PURE__ */ u.cloneElement(l, d({
2984
3021
  style: d({
2985
3022
  opacity: 0,
2986
- visibility: C === "exited" && !u ? "hidden" : void 0
2987
- }, vr[C], R, l.props.style),
3023
+ visibility: P === "exited" && !p ? "hidden" : void 0
3024
+ }, vr[P], R, l.props.style),
2988
3025
  ref: T
2989
3026
  }, O))
2990
3027
  }));
@@ -3101,7 +3138,7 @@ const Er = ["children", "className", "component", "components", "componentsProps
3101
3138
  WebkitTapHighlightColor: "transparent"
3102
3139
  }, n.invisible && {
3103
3140
  backgroundColor: "transparent"
3104
- })), Po = /* @__PURE__ */ p.forwardRef(function(o, t) {
3141
+ })), Co = /* @__PURE__ */ u.forwardRef(function(o, t) {
3105
3142
  var r, i, s;
3106
3143
  const a = re({
3107
3144
  props: o,
@@ -3109,7 +3146,7 @@ const Er = ["children", "className", "component", "components", "componentsProps
3109
3146
  }), {
3110
3147
  children: l,
3111
3148
  className: c,
3112
- component: u = "div",
3149
+ component: p = "div",
3113
3150
  components: m = {},
3114
3151
  componentsProps: h = {},
3115
3152
  invisible: v = !1,
@@ -3118,8 +3155,8 @@ const Er = ["children", "className", "component", "components", "componentsProps
3118
3155
  slots: w = {},
3119
3156
  TransitionComponent: R = gr,
3120
3157
  transitionDuration: y
3121
- } = a, F = z(a, Er), f = d({}, a, {
3122
- component: u,
3158
+ } = a, F = q(a, Er), f = d({}, a, {
3159
+ component: p,
3123
3160
  invisible: v
3124
3161
  }), b = xr(f), T = (r = g.root) != null ? r : h.root;
3125
3162
  return /* @__PURE__ */ I(R, d({
@@ -3129,7 +3166,7 @@ const Er = ["children", "className", "component", "components", "componentsProps
3129
3166
  children: /* @__PURE__ */ I(Tr, d({
3130
3167
  "aria-hidden": !0
3131
3168
  }, T, {
3132
- as: (i = (s = w.root) != null ? s : m.Root) != null ? i : u,
3169
+ as: (i = (s = w.root) != null ? s : m.Root) != null ? i : p,
3133
3170
  className: Y(b.root, c, T == null ? void 0 : T.className),
3134
3171
  ownerState: d({}, f, T == null ? void 0 : T.ownerState),
3135
3172
  classes: b,
@@ -3138,7 +3175,7 @@ const Er = ["children", "className", "component", "components", "componentsProps
3138
3175
  }))
3139
3176
  }));
3140
3177
  });
3141
- process.env.NODE_ENV !== "production" && (Po.propTypes = {
3178
+ process.env.NODE_ENV !== "production" && (Co.propTypes = {
3142
3179
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3143
3180
  // │ These PropTypes are generated from the TypeScript type definitions. │
3144
3181
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3234,12 +3271,12 @@ process.env.NODE_ENV !== "production" && (Po.propTypes = {
3234
3271
  exit: e.number
3235
3272
  })])
3236
3273
  });
3237
- const Or = Po;
3274
+ const Or = Co;
3238
3275
  function Rr(n) {
3239
3276
  return oe("MuiModal", n);
3240
3277
  }
3241
3278
  ne("MuiModal", ["root", "hidden", "backdrop"]);
3242
- const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Cr = (n) => {
3279
+ const Cr = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Pr = (n) => {
3243
3280
  const {
3244
3281
  open: o,
3245
3282
  exited: t,
@@ -3276,9 +3313,9 @@ const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
3276
3313
  overridesResolver: (n, o) => o.backdrop
3277
3314
  })({
3278
3315
  zIndex: -1
3279
- }), Co = /* @__PURE__ */ p.forwardRef(function(o, t) {
3316
+ }), Po = /* @__PURE__ */ u.forwardRef(function(o, t) {
3280
3317
  var r, i, s, a, l, c;
3281
- const u = re({
3318
+ const p = re({
3282
3319
  name: "MuiModal",
3283
3320
  props: o
3284
3321
  }), {
@@ -3300,11 +3337,11 @@ const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
3300
3337
  hideBackdrop: _ = !1,
3301
3338
  keepMounted: j = !1,
3302
3339
  onBackdropClick: U,
3303
- open: W,
3340
+ open: V,
3304
3341
  slotProps: $,
3305
- slots: C
3342
+ slots: P
3306
3343
  // eslint-disable-next-line react/prop-types
3307
- } = u, O = z(u, Pr), S = d({}, u, {
3344
+ } = p, O = q(p, Cr), S = d({}, p, {
3308
3345
  closeAfterTransition: x,
3309
3346
  disableAutoFocus: f,
3310
3347
  disableEnforceFocus: b,
@@ -3326,15 +3363,15 @@ const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
3326
3363
  rootRef: t
3327
3364
  })), H = d({}, S, {
3328
3365
  exited: Z
3329
- }), ee = Cr(H), se = {};
3366
+ }), ee = Pr(H), se = {};
3330
3367
  if (g.props.tabIndex === void 0 && (se.tabIndex = "-1"), G) {
3331
3368
  const {
3332
- onEnter: V,
3333
- onExited: q
3369
+ onEnter: W,
3370
+ onExited: z
3334
3371
  } = L();
3335
- se.onEnter = V, se.onExited = q;
3372
+ se.onEnter = W, se.onExited = z;
3336
3373
  }
3337
- const le = (r = (i = C == null ? void 0 : C.root) != null ? i : y.Root) != null ? r : Nr, ae = (s = (a = C == null ? void 0 : C.backdrop) != null ? a : y.Backdrop) != null ? s : m, Re = (l = $ == null ? void 0 : $.root) != null ? l : F.root, he = (c = $ == null ? void 0 : $.backdrop) != null ? c : F.backdrop, ve = Fe({
3374
+ const le = (r = (i = P == null ? void 0 : P.root) != null ? i : y.Root) != null ? r : Nr, ae = (s = (a = P == null ? void 0 : P.backdrop) != null ? a : y.Backdrop) != null ? s : m, Re = (l = $ == null ? void 0 : $.root) != null ? l : F.root, he = (c = $ == null ? void 0 : $.backdrop) != null ? c : F.backdrop, ve = Fe({
3338
3375
  elementType: le,
3339
3376
  externalSlotProps: Re,
3340
3377
  externalForwardedProps: O,
@@ -3349,15 +3386,15 @@ const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
3349
3386
  elementType: ae,
3350
3387
  externalSlotProps: he,
3351
3388
  additionalProps: h,
3352
- getSlotProps: (V) => k(d({}, V, {
3353
- onClick: (q) => {
3354
- U && U(q), V != null && V.onClick && V.onClick(q);
3389
+ getSlotProps: (W) => k(d({}, W, {
3390
+ onClick: (z) => {
3391
+ U && U(z), W != null && W.onClick && W.onClick(z);
3355
3392
  }
3356
3393
  })),
3357
3394
  className: Y(he == null ? void 0 : he.className, h == null ? void 0 : h.className, ee == null ? void 0 : ee.backdrop),
3358
3395
  ownerState: H
3359
3396
  });
3360
- return !j && !W && (!G || Z) ? null : /* @__PURE__ */ I(Ye, {
3397
+ return !j && !V && (!G || Z) ? null : /* @__PURE__ */ I(Ye, {
3361
3398
  ref: K,
3362
3399
  container: w,
3363
3400
  disablePortal: N,
@@ -3367,13 +3404,13 @@ const Pr = ["BackdropComponent", "BackdropProps", "classes", "className", "close
3367
3404
  disableAutoFocus: f,
3368
3405
  disableRestoreFocus: E,
3369
3406
  isEnabled: ue,
3370
- open: W,
3371
- children: /* @__PURE__ */ p.cloneElement(g, se)
3407
+ open: V,
3408
+ children: /* @__PURE__ */ u.cloneElement(g, se)
3372
3409
  })]
3373
3410
  }))
3374
3411
  });
3375
3412
  });
3376
- process.env.NODE_ENV !== "production" && (Co.propTypes = {
3413
+ process.env.NODE_ENV !== "production" && (Po.propTypes = {
3377
3414
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3378
3415
  // │ These PropTypes are generated from the TypeScript type definitions. │
3379
3416
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3455,7 +3492,7 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
3455
3492
  * By default, it uses the body of the top-level document object,
3456
3493
  * so it's simply `document.body` most of the time.
3457
3494
  */
3458
- container: e.oneOfType([We, e.func]),
3495
+ container: e.oneOfType([Ve, e.func]),
3459
3496
  /**
3460
3497
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
3461
3498
  * replace it to the last focused element when it closes.
@@ -3554,7 +3591,7 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
3554
3591
  */
3555
3592
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3556
3593
  });
3557
- const Ir = Co;
3594
+ const Ir = Po;
3558
3595
  function wr(n) {
3559
3596
  return oe("MuiPaper", n);
3560
3597
  }
@@ -3594,11 +3631,11 @@ const kr = ["className", "component", "elevation", "square", "variant"], Mr = (n
3594
3631
  }, o.variant === "elevation" && d({
3595
3632
  boxShadow: (n.vars || n).shadows[o.elevation]
3596
3633
  }, !n.vars && n.palette.mode === "dark" && {
3597
- backgroundImage: `linear-gradient(${Cn("#fff", Dn(o.elevation))}, ${Cn("#fff", Dn(o.elevation))})`
3634
+ backgroundImage: `linear-gradient(${Pn("#fff", Dn(o.elevation))}, ${Pn("#fff", Dn(o.elevation))})`
3598
3635
  }, n.vars && {
3599
3636
  backgroundImage: (t = n.vars.overlays) == null ? void 0 : t[o.elevation]
3600
3637
  }));
3601
- }), No = /* @__PURE__ */ p.forwardRef(function(o, t) {
3638
+ }), No = /* @__PURE__ */ u.forwardRef(function(o, t) {
3602
3639
  const r = re({
3603
3640
  props: o,
3604
3641
  name: "MuiPaper"
@@ -3608,7 +3645,7 @@ const kr = ["className", "component", "elevation", "square", "variant"], Mr = (n
3608
3645
  elevation: a = 1,
3609
3646
  square: l = !1,
3610
3647
  variant: c = "elevation"
3611
- } = r, u = z(r, kr), m = d({}, r, {
3648
+ } = r, p = q(r, kr), m = d({}, r, {
3612
3649
  component: s,
3613
3650
  elevation: a,
3614
3651
  square: l,
@@ -3620,7 +3657,7 @@ const kr = ["className", "component", "elevation", "square", "variant"], Mr = (n
3620
3657
  ownerState: m,
3621
3658
  className: Y(h.root, i),
3622
3659
  ref: t
3623
- }, u));
3660
+ }, p));
3624
3661
  });
3625
3662
  process.env.NODE_ENV !== "production" && (No.propTypes = {
3626
3663
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -3681,11 +3718,11 @@ function Bn(n, o) {
3681
3718
  let t = 0;
3682
3719
  return typeof o == "number" ? t = o : o === "center" ? t = n.height / 2 : o === "bottom" && (t = n.height), t;
3683
3720
  }
3684
- function Wn(n, o) {
3721
+ function Vn(n, o) {
3685
3722
  let t = 0;
3686
3723
  return typeof o == "number" ? t = o : o === "center" ? t = n.width / 2 : o === "right" && (t = n.width), t;
3687
3724
  }
3688
- function Vn(n) {
3725
+ function Wn(n) {
3689
3726
  return [n.horizontal, n.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
3690
3727
  }
3691
3728
  function Ge(n) {
@@ -3719,7 +3756,7 @@ const Ar = (n) => {
3719
3756
  maxHeight: "calc(100% - 32px)",
3720
3757
  // We disable the focus ring for mouse, touch and keyboard users.
3721
3758
  outline: 0
3722
- }), Io = /* @__PURE__ */ p.forwardRef(function(o, t) {
3759
+ }), Io = /* @__PURE__ */ u.forwardRef(function(o, t) {
3723
3760
  var r, i, s;
3724
3761
  const a = re({
3725
3762
  props: o,
@@ -3727,7 +3764,7 @@ const Ar = (n) => {
3727
3764
  }), {
3728
3765
  action: l,
3729
3766
  anchorEl: c,
3730
- anchorOrigin: u = {
3767
+ anchorOrigin: p = {
3731
3768
  vertical: "top",
3732
3769
  horizontal: "left"
3733
3770
  },
@@ -3752,110 +3789,110 @@ const Ar = (n) => {
3752
3789
  onEntering: D
3753
3790
  } = {},
3754
3791
  disableScrollLock: _ = !1
3755
- } = a, j = z(a.TransitionProps, Lr), U = z(a, _r), W = (r = b == null ? void 0 : b.paper) != null ? r : F, $ = p.useRef(), C = de($, W.ref), O = d({}, a, {
3756
- anchorOrigin: u,
3792
+ } = a, j = q(a.TransitionProps, Lr), U = q(a, _r), V = (r = b == null ? void 0 : b.paper) != null ? r : F, $ = u.useRef(), P = de($, V.ref), O = d({}, a, {
3793
+ anchorOrigin: p,
3757
3794
  anchorReference: h,
3758
3795
  elevation: w,
3759
3796
  marginThreshold: R,
3760
- externalPaperSlotProps: W,
3797
+ externalPaperSlotProps: V,
3761
3798
  transformOrigin: T,
3762
3799
  TransitionComponent: N,
3763
3800
  transitionDuration: E,
3764
3801
  TransitionProps: j
3765
- }), S = Ar(O), M = p.useCallback(() => {
3802
+ }), S = Ar(O), M = u.useCallback(() => {
3766
3803
  if (h === "anchorPosition")
3767
3804
  return process.env.NODE_ENV !== "production" && (m || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), m;
3768
- const V = Ge(c), q = V && V.nodeType === 1 ? V : ie($.current).body, X = q.getBoundingClientRect();
3805
+ const W = Ge(c), z = W && W.nodeType === 1 ? W : ie($.current).body, X = z.getBoundingClientRect();
3769
3806
  if (process.env.NODE_ENV !== "production") {
3770
- const pe = q.getBoundingClientRect();
3807
+ const pe = z.getBoundingClientRect();
3771
3808
  process.env.NODE_ENV !== "test" && pe.top === 0 && pe.left === 0 && pe.right === 0 && pe.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
3772
3809
  `));
3773
3810
  }
3774
3811
  return {
3775
- top: X.top + Bn(X, u.vertical),
3776
- left: X.left + Wn(X, u.horizontal)
3812
+ top: X.top + Bn(X, p.vertical),
3813
+ left: X.left + Vn(X, p.horizontal)
3777
3814
  };
3778
- }, [c, u.horizontal, u.vertical, m, h]), k = p.useCallback((V) => ({
3779
- vertical: Bn(V, T.vertical),
3780
- horizontal: Wn(V, T.horizontal)
3781
- }), [T.horizontal, T.vertical]), L = p.useCallback((V) => {
3782
- const q = {
3783
- width: V.offsetWidth,
3784
- height: V.offsetHeight
3785
- }, X = k(q);
3815
+ }, [c, p.horizontal, p.vertical, m, h]), k = u.useCallback((W) => ({
3816
+ vertical: Bn(W, T.vertical),
3817
+ horizontal: Vn(W, T.horizontal)
3818
+ }), [T.horizontal, T.vertical]), L = u.useCallback((W) => {
3819
+ const z = {
3820
+ width: W.offsetWidth,
3821
+ height: W.offsetHeight
3822
+ }, X = k(z);
3786
3823
  if (h === "none")
3787
3824
  return {
3788
3825
  top: null,
3789
3826
  left: null,
3790
- transformOrigin: Vn(X)
3827
+ transformOrigin: Wn(X)
3791
3828
  };
3792
3829
  const pe = M();
3793
3830
  let ye = pe.top - X.vertical, Ee = pe.left - X.horizontal;
3794
- const Pe = ye + q.height, qe = Ee + q.width, fe = Be(Ge(c)), xe = fe.innerHeight - R, Ce = fe.innerWidth - R;
3831
+ const Ce = ye + z.height, ze = Ee + z.width, fe = Be(Ge(c)), xe = fe.innerHeight - R, Pe = fe.innerWidth - R;
3795
3832
  if (R !== null && ye < R) {
3796
3833
  const Q = ye - R;
3797
3834
  ye -= Q, X.vertical += Q;
3798
- } else if (R !== null && Pe > xe) {
3799
- const Q = Pe - xe;
3835
+ } else if (R !== null && Ce > xe) {
3836
+ const Q = Ce - xe;
3800
3837
  ye -= Q, X.vertical += Q;
3801
3838
  }
3802
- if (process.env.NODE_ENV !== "production" && q.height > xe && q.height && xe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${q.height - xe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
3839
+ if (process.env.NODE_ENV !== "production" && z.height > xe && z.height && xe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${z.height - xe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
3803
3840
  `)), R !== null && Ee < R) {
3804
3841
  const Q = Ee - R;
3805
3842
  Ee -= Q, X.horizontal += Q;
3806
- } else if (qe > Ce) {
3807
- const Q = qe - Ce;
3843
+ } else if (ze > Pe) {
3844
+ const Q = ze - Pe;
3808
3845
  Ee -= Q, X.horizontal += Q;
3809
3846
  }
3810
3847
  return {
3811
3848
  top: `${Math.round(ye)}px`,
3812
3849
  left: `${Math.round(Ee)}px`,
3813
- transformOrigin: Vn(X)
3850
+ transformOrigin: Wn(X)
3814
3851
  };
3815
- }, [c, h, M, k, R]), [K, ue] = p.useState(y), Z = p.useCallback(() => {
3816
- const V = $.current;
3817
- if (!V)
3852
+ }, [c, h, M, k, R]), [K, ue] = u.useState(y), Z = u.useCallback(() => {
3853
+ const W = $.current;
3854
+ if (!W)
3818
3855
  return;
3819
- const q = L(V);
3820
- q.top !== null && (V.style.top = q.top), q.left !== null && (V.style.left = q.left), V.style.transformOrigin = q.transformOrigin, ue(!0);
3856
+ const z = L(W);
3857
+ z.top !== null && (W.style.top = z.top), z.left !== null && (W.style.left = z.left), W.style.transformOrigin = z.transformOrigin, ue(!0);
3821
3858
  }, [L]);
3822
- p.useEffect(() => (_ && window.addEventListener("scroll", Z), () => window.removeEventListener("scroll", Z)), [c, _, Z]);
3823
- const G = (V, q) => {
3824
- D && D(V, q), Z();
3859
+ u.useEffect(() => (_ && window.addEventListener("scroll", Z), () => window.removeEventListener("scroll", Z)), [c, _, Z]);
3860
+ const G = (W, z) => {
3861
+ D && D(W, z), Z();
3825
3862
  }, H = () => {
3826
3863
  ue(!1);
3827
3864
  };
3828
- p.useEffect(() => {
3865
+ u.useEffect(() => {
3829
3866
  y && Z();
3830
- }), p.useImperativeHandle(l, () => y ? {
3867
+ }), u.useImperativeHandle(l, () => y ? {
3831
3868
  updatePosition: () => {
3832
3869
  Z();
3833
3870
  }
3834
- } : null, [y, Z]), p.useEffect(() => {
3871
+ } : null, [y, Z]), u.useEffect(() => {
3835
3872
  if (!y)
3836
3873
  return;
3837
- const V = qo(() => {
3874
+ const W = Vo(() => {
3838
3875
  Z();
3839
- }), q = Be(c);
3840
- return q.addEventListener("resize", V), () => {
3841
- V.clear(), q.removeEventListener("resize", V);
3876
+ }), z = Be(c);
3877
+ return z.addEventListener("resize", W), () => {
3878
+ W.clear(), z.removeEventListener("resize", W);
3842
3879
  };
3843
3880
  }, [c, y, Z]);
3844
3881
  let ee = E;
3845
3882
  E === "auto" && !N.muiSupportAuto && (ee = void 0);
3846
3883
  const se = g || (c ? ie(Ge(c)).body : void 0), le = (i = f == null ? void 0 : f.root) != null ? i : Br, ae = (s = f == null ? void 0 : f.paper) != null ? s : So, Re = Fe({
3847
3884
  elementType: ae,
3848
- externalSlotProps: d({}, W, {
3849
- style: K ? W.style : d({}, W.style, {
3885
+ externalSlotProps: d({}, V, {
3886
+ style: K ? V.style : d({}, V.style, {
3850
3887
  opacity: 0
3851
3888
  })
3852
3889
  }),
3853
3890
  additionalProps: {
3854
3891
  elevation: w,
3855
- ref: C
3892
+ ref: P
3856
3893
  },
3857
3894
  ownerState: O,
3858
- className: Y(S.paper, W == null ? void 0 : W.className)
3895
+ className: Y(S.paper, V == null ? void 0 : V.className)
3859
3896
  }), he = Fe({
3860
3897
  elementType: le,
3861
3898
  externalSlotProps: (b == null ? void 0 : b.root) || {},
@@ -3874,7 +3911,7 @@ const Ar = (n) => {
3874
3911
  className: Y(S.root, x)
3875
3912
  }), {
3876
3913
  slotProps: ve
3877
- } = he, ge = z(he, jr);
3914
+ } = he, ge = q(he, jr);
3878
3915
  return /* @__PURE__ */ I(le, d({}, ge, !Hn(le) && {
3879
3916
  slotProps: ve,
3880
3917
  disableScrollLock: _
@@ -3907,7 +3944,7 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
3907
3944
  * or a function that returns either.
3908
3945
  * It's used to set the position of the popover.
3909
3946
  */
3910
- anchorEl: Qe(e.oneOfType([We, e.func]), (n) => {
3947
+ anchorEl: Qe(e.oneOfType([Ve, e.func]), (n) => {
3911
3948
  if (n.open && (!n.anchorReference || n.anchorReference === "anchorEl")) {
3912
3949
  const o = Ge(n.anchorEl);
3913
3950
  if (o && o.nodeType === 1) {
@@ -3971,7 +4008,7 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
3971
4008
  * By default, it uses the body of the anchorEl's top-level document object,
3972
4009
  * so it's simply `document.body` most of the time.
3973
4010
  */
3974
- container: e.oneOfType([We, e.func]),
4011
+ container: e.oneOfType([Ve, e.func]),
3975
4012
  /**
3976
4013
  * Disable the scroll lock behavior.
3977
4014
  * @default false
@@ -4006,7 +4043,7 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
4006
4043
  * @default {}
4007
4044
  */
4008
4045
  PaperProps: e.shape({
4009
- component: Wo
4046
+ component: zo
4010
4047
  }),
4011
4048
  /**
4012
4049
  * The extra props for the slot components.
@@ -4069,12 +4106,12 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
4069
4106
  */
4070
4107
  TransitionProps: e.object
4071
4108
  });
4072
- const Wr = Io;
4073
- function Vr(n) {
4109
+ const Vr = Io;
4110
+ function Wr(n) {
4074
4111
  return oe("MuiMenu", n);
4075
4112
  }
4076
4113
  ne("MuiMenu", ["root", "paper", "list"]);
4077
- const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], zr = {
4114
+ const Ur = ["onEntering"], zr = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"], qr = {
4078
4115
  vertical: "top",
4079
4116
  horizontal: "right"
4080
4117
  }, Hr = {
@@ -4088,8 +4125,8 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4088
4125
  root: ["root"],
4089
4126
  paper: ["paper"],
4090
4127
  list: ["list"]
4091
- }, Vr, o);
4092
- }, Gr = B(Wr, {
4128
+ }, Wr, o);
4129
+ }, Gr = B(Vr, {
4093
4130
  shouldForwardProp: (n) => Oe(n) || n === "classes",
4094
4131
  name: "MuiMenu",
4095
4132
  slot: "Root",
@@ -4112,7 +4149,7 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4112
4149
  })({
4113
4150
  // We disable the focus ring for mouse, touch and keyboard users.
4114
4151
  outline: 0
4115
- }), wo = /* @__PURE__ */ p.forwardRef(function(o, t) {
4152
+ }), wo = /* @__PURE__ */ u.forwardRef(function(o, t) {
4116
4153
  var r, i;
4117
4154
  const s = re({
4118
4155
  props: o,
@@ -4121,7 +4158,7 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4121
4158
  autoFocus: a = !0,
4122
4159
  children: l,
4123
4160
  className: c,
4124
- disableAutoFocusItem: u = !1,
4161
+ disableAutoFocusItem: p = !1,
4125
4162
  MenuListProps: m = {},
4126
4163
  onClose: h,
4127
4164
  open: v,
@@ -4134,24 +4171,24 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4134
4171
  variant: y = "selectedMenu",
4135
4172
  slots: F = {},
4136
4173
  slotProps: f = {}
4137
- } = s, b = z(s.TransitionProps, Ur), T = z(s, qr), N = Je(), E = N.direction === "rtl", D = d({}, s, {
4174
+ } = s, b = q(s.TransitionProps, Ur), T = q(s, zr), N = Je(), E = N.direction === "rtl", D = d({}, s, {
4138
4175
  autoFocus: a,
4139
- disableAutoFocusItem: u,
4176
+ disableAutoFocusItem: p,
4140
4177
  MenuListProps: m,
4141
4178
  onEntering: R,
4142
4179
  PaperProps: x,
4143
4180
  transitionDuration: w,
4144
4181
  TransitionProps: b,
4145
4182
  variant: y
4146
- }), _ = Kr(D), j = a && !u && v, U = p.useRef(null), W = (L, K) => {
4183
+ }), _ = Kr(D), j = a && !p && v, U = u.useRef(null), V = (L, K) => {
4147
4184
  U.current && U.current.adjustStyleForScrollbar(L, N), R && R(L, K);
4148
4185
  }, $ = (L) => {
4149
4186
  L.key === "Tab" && (L.preventDefault(), h && h(L, "tabKeyDown"));
4150
4187
  };
4151
- let C = -1;
4152
- p.Children.map(l, (L, K) => {
4153
- /* @__PURE__ */ p.isValidElement(L) && (process.env.NODE_ENV !== "production" && bn.isFragment(L) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4154
- `)), L.props.disabled || (y === "selectedMenu" && L.props.selected || C === -1) && (C = K));
4188
+ let P = -1;
4189
+ u.Children.map(l, (L, K) => {
4190
+ /* @__PURE__ */ u.isValidElement(L) && (process.env.NODE_ENV !== "production" && bn.isFragment(L) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4191
+ `)), L.props.disabled || (y === "selectedMenu" && L.props.selected || P === -1) && (P = K));
4155
4192
  });
4156
4193
  const O = (r = F.paper) != null ? r : Xr, S = (i = f.paper) != null ? i : x, M = Fe({
4157
4194
  elementType: F.root,
@@ -4170,7 +4207,7 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4170
4207
  vertical: "bottom",
4171
4208
  horizontal: E ? "right" : "left"
4172
4209
  },
4173
- transformOrigin: E ? zr : Hr,
4210
+ transformOrigin: E ? qr : Hr,
4174
4211
  slots: {
4175
4212
  paper: O,
4176
4213
  root: F.root
@@ -4183,7 +4220,7 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4183
4220
  ref: t,
4184
4221
  transitionDuration: w,
4185
4222
  TransitionProps: d({
4186
- onEntering: W
4223
+ onEntering: V
4187
4224
  }, b),
4188
4225
  ownerState: D
4189
4226
  }, T, {
@@ -4191,7 +4228,7 @@ const Ur = ["onEntering"], qr = ["autoFocus", "children", "className", "disableA
4191
4228
  children: /* @__PURE__ */ I(Yr, d({
4192
4229
  onKeyDown: $,
4193
4230
  actions: U,
4194
- autoFocus: a && (C === -1 || u),
4231
+ autoFocus: a && (P === -1 || p),
4195
4232
  autoFocusItem: j,
4196
4233
  variant: y
4197
4234
  }, m, {
@@ -4209,7 +4246,7 @@ process.env.NODE_ENV !== "production" && (wo.propTypes = {
4209
4246
  * An HTML element, or a function that returns one.
4210
4247
  * It's used to set the position of the menu.
4211
4248
  */
4212
- anchorEl: e.oneOfType([We, e.func]),
4249
+ anchorEl: e.oneOfType([Ve, e.func]),
4213
4250
  /**
4214
4251
  * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
4215
4252
  * children are not focusable. If you set this prop to `false` focus will be placed
@@ -4420,7 +4457,7 @@ const Qr = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4420
4457
  } = n;
4421
4458
  return [o.icon, t.variant && o[`icon${ce(t.variant)}`], t.open && o.iconOpen];
4422
4459
  }
4423
- })(Mo), Fo = /* @__PURE__ */ p.forwardRef(function(o, t) {
4460
+ })(Mo), Fo = /* @__PURE__ */ u.forwardRef(function(o, t) {
4424
4461
  const {
4425
4462
  className: r,
4426
4463
  disabled: i,
@@ -4428,18 +4465,18 @@ const Qr = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4428
4465
  IconComponent: a,
4429
4466
  inputRef: l,
4430
4467
  variant: c = "standard"
4431
- } = o, u = z(o, es), m = d({}, o, {
4468
+ } = o, p = q(o, es), m = d({}, o, {
4432
4469
  disabled: i,
4433
4470
  variant: c,
4434
4471
  error: s
4435
4472
  }), h = ns(m);
4436
- return /* @__PURE__ */ me(p.Fragment, {
4473
+ return /* @__PURE__ */ me(u.Fragment, {
4437
4474
  children: [/* @__PURE__ */ I(os, d({
4438
4475
  ownerState: m,
4439
4476
  className: Y(h.select, r),
4440
4477
  disabled: i,
4441
4478
  ref: l || t
4442
- }, u)), o.multiple ? null : /* @__PURE__ */ I(ts, {
4479
+ }, p)), o.multiple ? null : /* @__PURE__ */ I(ts, {
4443
4480
  as: a,
4444
4481
  ownerState: m,
4445
4482
  className: h.icon
@@ -4565,7 +4602,7 @@ const is = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
4565
4602
  width: "100%",
4566
4603
  boxSizing: "border-box"
4567
4604
  });
4568
- function qn(n, o) {
4605
+ function zn(n, o) {
4569
4606
  return typeof o == "object" && o !== null ? n === o : String(n) === String(o);
4570
4607
  }
4571
4608
  function ds(n) {
@@ -4585,7 +4622,7 @@ const us = (n) => {
4585
4622
  nativeInput: ["nativeInput"]
4586
4623
  };
4587
4624
  return te(l, ss, o);
4588
- }, $o = /* @__PURE__ */ p.forwardRef(function(o, t) {
4625
+ }, $o = /* @__PURE__ */ u.forwardRef(function(o, t) {
4589
4626
  var r;
4590
4627
  const {
4591
4628
  "aria-describedby": i,
@@ -4593,7 +4630,7 @@ const us = (n) => {
4593
4630
  autoFocus: a,
4594
4631
  autoWidth: l,
4595
4632
  children: c,
4596
- className: u,
4633
+ className: p,
4597
4634
  defaultOpen: m,
4598
4635
  defaultValue: h,
4599
4636
  disabled: v,
@@ -4612,78 +4649,78 @@ const us = (n) => {
4612
4649
  onOpen: _,
4613
4650
  open: j,
4614
4651
  readOnly: U,
4615
- renderValue: W,
4652
+ renderValue: V,
4616
4653
  SelectDisplayProps: $ = {},
4617
- tabIndex: C,
4654
+ tabIndex: P,
4618
4655
  value: O,
4619
4656
  variant: S = "standard"
4620
- } = o, M = z(o, is), [k, L] = Sn({
4657
+ } = o, M = q(o, is), [k, L] = wn({
4621
4658
  controlled: O,
4622
4659
  default: h,
4623
4660
  name: "Select"
4624
- }), [K, ue] = Sn({
4661
+ }), [K, ue] = wn({
4625
4662
  controlled: j,
4626
4663
  default: m,
4627
4664
  name: "Select"
4628
- }), Z = p.useRef(null), G = p.useRef(null), [H, ee] = p.useState(null), {
4665
+ }), Z = u.useRef(null), G = u.useRef(null), [H, ee] = u.useState(null), {
4629
4666
  current: se
4630
- } = p.useRef(j != null), [le, ae] = p.useState(), Re = de(t, R), he = p.useCallback((P) => {
4631
- G.current = P, P && ee(P);
4667
+ } = u.useRef(j != null), [le, ae] = u.useState(), Re = de(t, R), he = u.useCallback((C) => {
4668
+ G.current = C, C && ee(C);
4632
4669
  }, []), ve = H == null ? void 0 : H.parentNode;
4633
- p.useImperativeHandle(Re, () => ({
4670
+ u.useImperativeHandle(Re, () => ({
4634
4671
  focus: () => {
4635
4672
  G.current.focus();
4636
4673
  },
4637
4674
  node: Z.current,
4638
4675
  value: k
4639
- }), [k]), p.useEffect(() => {
4676
+ }), [k]), u.useEffect(() => {
4640
4677
  m && K && H && !se && (ae(l ? null : ve.clientWidth), G.current.focus());
4641
- }, [H, l]), p.useEffect(() => {
4678
+ }, [H, l]), u.useEffect(() => {
4642
4679
  a && G.current.focus();
4643
- }, [a]), p.useEffect(() => {
4680
+ }, [a]), u.useEffect(() => {
4644
4681
  if (!y)
4645
4682
  return;
4646
- const P = ie(G.current).getElementById(y);
4647
- if (P) {
4683
+ const C = ie(G.current).getElementById(y);
4684
+ if (C) {
4648
4685
  const A = () => {
4649
4686
  getSelection().isCollapsed && G.current.focus();
4650
4687
  };
4651
- return P.addEventListener("click", A), () => {
4652
- P.removeEventListener("click", A);
4688
+ return C.addEventListener("click", A), () => {
4689
+ C.removeEventListener("click", A);
4653
4690
  };
4654
4691
  }
4655
4692
  }, [y]);
4656
- const ge = (P, A) => {
4657
- P ? _ && _(A) : E && E(A), se || (ae(l ? null : ve.clientWidth), ue(P));
4658
- }, V = (P) => {
4659
- P.button === 0 && (P.preventDefault(), G.current.focus(), ge(!0, P));
4660
- }, q = (P) => {
4661
- ge(!1, P);
4662
- }, X = p.Children.toArray(c), pe = (P) => {
4663
- const A = X.find((J) => J.props.value === P.target.value);
4664
- A !== void 0 && (L(A.props.value), N && N(P, A));
4665
- }, ye = (P) => (A) => {
4693
+ const ge = (C, A) => {
4694
+ C ? _ && _(A) : E && E(A), se || (ae(l ? null : ve.clientWidth), ue(C));
4695
+ }, W = (C) => {
4696
+ C.button === 0 && (C.preventDefault(), G.current.focus(), ge(!0, C));
4697
+ }, z = (C) => {
4698
+ ge(!1, C);
4699
+ }, X = u.Children.toArray(c), pe = (C) => {
4700
+ const A = X.find((J) => J.props.value === C.target.value);
4701
+ A !== void 0 && (L(A.props.value), N && N(C, A));
4702
+ }, ye = (C) => (A) => {
4666
4703
  let J;
4667
4704
  if (A.currentTarget.hasAttribute("tabindex")) {
4668
4705
  if (f) {
4669
4706
  J = Array.isArray(k) ? k.slice() : [];
4670
- const we = k.indexOf(P.props.value);
4671
- we === -1 ? J.push(P.props.value) : J.splice(we, 1);
4707
+ const we = k.indexOf(C.props.value);
4708
+ we === -1 ? J.push(C.props.value) : J.splice(we, 1);
4672
4709
  } else
4673
- J = P.props.value;
4674
- if (P.props.onClick && P.props.onClick(A), k !== J && (L(J), N)) {
4675
- const we = A.nativeEvent || A, Pn = new we.constructor(we.type, we);
4676
- Object.defineProperty(Pn, "target", {
4710
+ J = C.props.value;
4711
+ if (C.props.onClick && C.props.onClick(A), k !== J && (L(J), N)) {
4712
+ const we = A.nativeEvent || A, Cn = new we.constructor(we.type, we);
4713
+ Object.defineProperty(Cn, "target", {
4677
4714
  writable: !0,
4678
4715
  value: {
4679
4716
  value: J,
4680
4717
  name: b
4681
4718
  }
4682
- }), N(Pn, P);
4719
+ }), N(Cn, C);
4683
4720
  }
4684
4721
  f || ge(!1, A);
4685
4722
  }
4686
- }, Ee = (P) => {
4723
+ }, Ee = (C) => {
4687
4724
  U || [
4688
4725
  " ",
4689
4726
  "ArrowUp",
@@ -4691,85 +4728,85 @@ const us = (n) => {
4691
4728
  // The native select doesn't respond to enter on macOS, but it's recommended by
4692
4729
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
4693
4730
  "Enter"
4694
- ].indexOf(P.key) !== -1 && (P.preventDefault(), ge(!0, P));
4695
- }, Pe = H !== null && K, qe = (P) => {
4696
- !Pe && T && (Object.defineProperty(P, "target", {
4731
+ ].indexOf(C.key) !== -1 && (C.preventDefault(), ge(!0, C));
4732
+ }, Ce = H !== null && K, ze = (C) => {
4733
+ !Ce && T && (Object.defineProperty(C, "target", {
4697
4734
  writable: !0,
4698
4735
  value: {
4699
4736
  value: k,
4700
4737
  name: b
4701
4738
  }
4702
- }), T(P));
4739
+ }), T(C));
4703
4740
  };
4704
4741
  delete M["aria-invalid"];
4705
4742
  let fe, xe;
4706
- const Ce = [];
4743
+ const Pe = [];
4707
4744
  let Q = !1, nn = !1;
4708
4745
  (dn({
4709
4746
  value: k
4710
- }) || x) && (W ? fe = W(k) : Q = !0);
4711
- const Lo = X.map((P) => {
4712
- if (!/* @__PURE__ */ p.isValidElement(P))
4747
+ }) || x) && (V ? fe = V(k) : Q = !0);
4748
+ const Lo = X.map((C) => {
4749
+ if (!/* @__PURE__ */ u.isValidElement(C))
4713
4750
  return null;
4714
- process.env.NODE_ENV !== "production" && bn.isFragment(P) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4751
+ process.env.NODE_ENV !== "production" && bn.isFragment(C) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4715
4752
  `));
4716
4753
  let A;
4717
4754
  if (f) {
4718
4755
  if (!Array.isArray(k))
4719
4756
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : jo(2));
4720
- A = k.some((J) => qn(J, P.props.value)), A && Q && Ce.push(P.props.children);
4757
+ A = k.some((J) => zn(J, C.props.value)), A && Q && Pe.push(C.props.children);
4721
4758
  } else
4722
- A = qn(k, P.props.value), A && Q && (xe = P.props.children);
4723
- return A && (nn = !0), /* @__PURE__ */ p.cloneElement(P, {
4759
+ A = zn(k, C.props.value), A && Q && (xe = C.props.children);
4760
+ return A && (nn = !0), /* @__PURE__ */ u.cloneElement(C, {
4724
4761
  "aria-selected": A ? "true" : "false",
4725
- onClick: ye(P),
4762
+ onClick: ye(C),
4726
4763
  onKeyUp: (J) => {
4727
- J.key === " " && J.preventDefault(), P.props.onKeyUp && P.props.onKeyUp(J);
4764
+ J.key === " " && J.preventDefault(), C.props.onKeyUp && C.props.onKeyUp(J);
4728
4765
  },
4729
4766
  role: "option",
4730
4767
  selected: A,
4731
4768
  value: void 0,
4732
4769
  // The value is most likely not a valid HTML attribute.
4733
- "data-value": P.props.value
4770
+ "data-value": C.props.value
4734
4771
  // Instead, we provide it as a data attribute.
4735
4772
  });
4736
4773
  });
4737
- process.env.NODE_ENV !== "production" && p.useEffect(() => {
4774
+ process.env.NODE_ENV !== "production" && u.useEffect(() => {
4738
4775
  if (!nn && !f && k !== "") {
4739
- const P = X.map((A) => A.props.value);
4740
- console.warn([`MUI: You have provided an out-of-range value \`${k}\` for the select ${b ? `(name="${b}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${P.filter((A) => A != null).map((A) => `\`${A}\``).join(", ") || '""'}.`].join(`
4776
+ const C = X.map((A) => A.props.value);
4777
+ console.warn([`MUI: You have provided an out-of-range value \`${k}\` for the select ${b ? `(name="${b}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${C.filter((A) => A != null).map((A) => `\`${A}\``).join(", ") || '""'}.`].join(`
4741
4778
  `));
4742
4779
  }
4743
- }, [nn, X, f, b, k]), Q && (f ? Ce.length === 0 ? fe = null : fe = Ce.reduce((P, A, J) => (P.push(A), J < Ce.length - 1 && P.push(", "), P), []) : fe = xe);
4780
+ }, [nn, X, f, b, k]), Q && (f ? Pe.length === 0 ? fe = null : fe = Pe.reduce((C, A, J) => (C.push(A), J < Pe.length - 1 && C.push(", "), C), []) : fe = xe);
4744
4781
  let Tn = le;
4745
4782
  !l && se && H && (Tn = ve.clientWidth);
4746
4783
  let on;
4747
- typeof C < "u" ? on = C : on = v ? null : 0;
4748
- const On = $.id || (b ? `mui-component-select-${b}` : void 0), ze = d({}, o, {
4784
+ typeof P < "u" ? on = P : on = v ? null : 0;
4785
+ const On = $.id || (b ? `mui-component-select-${b}` : void 0), qe = d({}, o, {
4749
4786
  variant: S,
4750
4787
  value: k,
4751
- open: Pe,
4788
+ open: Ce,
4752
4789
  error: g
4753
- }), tn = us(ze), rn = d({}, F.PaperProps, (r = F.slotProps) == null ? void 0 : r.paper), Rn = Qn();
4754
- return /* @__PURE__ */ me(p.Fragment, {
4790
+ }), tn = us(qe), rn = d({}, F.PaperProps, (r = F.slotProps) == null ? void 0 : r.paper), Rn = Qn();
4791
+ return /* @__PURE__ */ me(u.Fragment, {
4755
4792
  children: [/* @__PURE__ */ I(as, d({
4756
4793
  ref: he,
4757
4794
  tabIndex: on,
4758
4795
  role: "combobox",
4759
4796
  "aria-controls": Rn,
4760
4797
  "aria-disabled": v ? "true" : void 0,
4761
- "aria-expanded": Pe ? "true" : "false",
4798
+ "aria-expanded": Ce ? "true" : "false",
4762
4799
  "aria-haspopup": "listbox",
4763
4800
  "aria-label": s,
4764
4801
  "aria-labelledby": [y, On].filter(Boolean).join(" ") || void 0,
4765
4802
  "aria-describedby": i,
4766
4803
  onKeyDown: Ee,
4767
- onMouseDown: v || U ? null : V,
4768
- onBlur: qe,
4804
+ onMouseDown: v || U ? null : W,
4805
+ onBlur: ze,
4769
4806
  onFocus: D
4770
4807
  }, $, {
4771
- ownerState: ze,
4772
- className: Y($.className, tn.select, u),
4808
+ ownerState: qe,
4809
+ className: Y($.className, tn.select, p),
4773
4810
  id: On,
4774
4811
  children: ds(fe) ? (
4775
4812
  // notranslate needed while Google Translate will not fix zero-width space issue
@@ -4789,16 +4826,16 @@ const us = (n) => {
4789
4826
  disabled: v,
4790
4827
  className: tn.nativeInput,
4791
4828
  autoFocus: a,
4792
- ownerState: ze
4829
+ ownerState: qe
4793
4830
  }, M)), /* @__PURE__ */ I(ls, {
4794
4831
  as: w,
4795
4832
  className: tn.icon,
4796
- ownerState: ze
4833
+ ownerState: qe
4797
4834
  }), /* @__PURE__ */ I(Zr, d({
4798
4835
  id: `menu-${b || ""}`,
4799
4836
  anchorEl: ve,
4800
- open: Pe,
4801
- onClose: q,
4837
+ open: Ce,
4838
+ onClose: z,
4802
4839
  anchorOrigin: {
4803
4840
  vertical: "bottom",
4804
4841
  horizontal: "center"
@@ -4983,7 +5020,7 @@ const ps = $o, fs = Ho(/* @__PURE__ */ I("path", {
4983
5020
  overridesResolver: (n, o) => o.root,
4984
5021
  shouldForwardProp: (n) => Oe(n) && n !== "variant",
4985
5022
  slot: "Root"
4986
- }, vs = B(no, En)(""), gs = B(mo, En)(""), ys = B(po, En)(""), xn = /* @__PURE__ */ p.forwardRef(function(o, t) {
5023
+ }, vs = B(no, En)(""), gs = B(mo, En)(""), ys = B(po, En)(""), xn = /* @__PURE__ */ u.forwardRef(function(o, t) {
4987
5024
  const r = re({
4988
5025
  name: "MuiSelect",
4989
5026
  props: o
@@ -4993,7 +5030,7 @@ const ps = $o, fs = Ho(/* @__PURE__ */ I("path", {
4993
5030
  classes: a = {},
4994
5031
  className: l,
4995
5032
  defaultOpen: c = !1,
4996
- displayEmpty: u = !1,
5033
+ displayEmpty: p = !1,
4997
5034
  IconComponent: m = fs,
4998
5035
  id: h,
4999
5036
  input: v,
@@ -5009,33 +5046,33 @@ const ps = $o, fs = Ho(/* @__PURE__ */ I("path", {
5009
5046
  renderValue: N,
5010
5047
  SelectDisplayProps: E,
5011
5048
  variant: D = "outlined"
5012
- } = r, _ = z(r, ms), j = F ? rs : ps, U = Ve(), W = Ue({
5049
+ } = r, _ = q(r, ms), j = F ? rs : ps, U = We(), V = Ue({
5013
5050
  props: r,
5014
5051
  muiFormControl: U,
5015
5052
  states: ["variant", "error"]
5016
- }), $ = W.variant || D, C = d({}, r, {
5053
+ }), $ = V.variant || D, P = d({}, r, {
5017
5054
  variant: $,
5018
5055
  classes: a
5019
- }), O = hs(C), S = z(O, bs), M = v || {
5056
+ }), O = hs(P), S = q(O, bs), M = v || {
5020
5057
  standard: /* @__PURE__ */ I(vs, {
5021
- ownerState: C
5058
+ ownerState: P
5022
5059
  }),
5023
5060
  outlined: /* @__PURE__ */ I(gs, {
5024
5061
  label: g,
5025
- ownerState: C
5062
+ ownerState: P
5026
5063
  }),
5027
5064
  filled: /* @__PURE__ */ I(ys, {
5028
- ownerState: C
5065
+ ownerState: P
5029
5066
  })
5030
5067
  }[$], k = de(t, M.ref);
5031
- return /* @__PURE__ */ I(p.Fragment, {
5032
- children: /* @__PURE__ */ p.cloneElement(M, d({
5068
+ return /* @__PURE__ */ I(u.Fragment, {
5069
+ children: /* @__PURE__ */ u.cloneElement(M, d({
5033
5070
  // Most of the logic is implemented in `SelectInput`.
5034
5071
  // The `Select` component is a simple API wrapper to expose something better to play with.
5035
5072
  inputComponent: j,
5036
5073
  inputProps: d({
5037
5074
  children: s,
5038
- error: W.error,
5075
+ error: V.error,
5039
5076
  IconComponent: m,
5040
5077
  variant: $,
5041
5078
  type: void 0,
@@ -5046,7 +5083,7 @@ const ps = $o, fs = Ho(/* @__PURE__ */ I("path", {
5046
5083
  } : {
5047
5084
  autoWidth: i,
5048
5085
  defaultOpen: c,
5049
- displayEmpty: u,
5086
+ displayEmpty: p,
5050
5087
  labelId: w,
5051
5088
  MenuProps: R,
5052
5089
  onClose: f,
@@ -5057,9 +5094,9 @@ const ps = $o, fs = Ho(/* @__PURE__ */ I("path", {
5057
5094
  id: h
5058
5095
  }, E)
5059
5096
  }, x, {
5060
- classes: x ? zn(S, x.classes) : S
5097
+ classes: x ? qn(S, x.classes) : S
5061
5098
  }, v ? v.props.inputProps : {})
5062
- }, (y && F || u) && $ === "outlined" ? {
5099
+ }, (y && F || p) && $ === "outlined" ? {
5063
5100
  notched: !0
5064
5101
  } : {}, {
5065
5102
  ref: k,
@@ -5233,11 +5270,11 @@ const Ts = ["autoComplete", "autoFocus", "children", "className", "color", "defa
5233
5270
  return te({
5234
5271
  root: ["root"]
5235
5272
  }, xs, o);
5236
- }, Ps = B(Jt, {
5273
+ }, Cs = B(Jt, {
5237
5274
  name: "MuiTextField",
5238
5275
  slot: "Root",
5239
5276
  overridesResolver: (n, o) => o.root
5240
- })({}), Do = /* @__PURE__ */ p.forwardRef(function(o, t) {
5277
+ })({}), Do = /* @__PURE__ */ u.forwardRef(function(o, t) {
5241
5278
  const r = re({
5242
5279
  props: o,
5243
5280
  name: "MuiTextField"
@@ -5247,7 +5284,7 @@ const Ts = ["autoComplete", "autoFocus", "children", "className", "color", "defa
5247
5284
  children: a,
5248
5285
  className: l,
5249
5286
  color: c = "primary",
5250
- defaultValue: u,
5287
+ defaultValue: p,
5251
5288
  disabled: m = !1,
5252
5289
  error: h = !1,
5253
5290
  FormHelperTextProps: v,
@@ -5266,15 +5303,15 @@ const Ts = ["autoComplete", "autoFocus", "children", "className", "color", "defa
5266
5303
  onBlur: _,
5267
5304
  onChange: j,
5268
5305
  onFocus: U,
5269
- placeholder: W,
5306
+ placeholder: V,
5270
5307
  required: $ = !1,
5271
- rows: C,
5308
+ rows: P,
5272
5309
  select: O = !1,
5273
5310
  SelectProps: S,
5274
5311
  type: M,
5275
5312
  value: k,
5276
5313
  variant: L = "outlined"
5277
- } = r, K = z(r, Ts), ue = d({}, r, {
5314
+ } = r, K = q(r, Ts), ue = d({}, r, {
5278
5315
  autoFocus: s,
5279
5316
  color: c,
5280
5317
  disabled: m,
@@ -5292,11 +5329,11 @@ const Ts = ["autoComplete", "autoFocus", "children", "className", "color", "defa
5292
5329
  "aria-describedby": ee,
5293
5330
  autoComplete: i,
5294
5331
  autoFocus: s,
5295
- defaultValue: u,
5332
+ defaultValue: p,
5296
5333
  fullWidth: x,
5297
5334
  multiline: E,
5298
5335
  name: D,
5299
- rows: C,
5336
+ rows: P,
5300
5337
  maxRows: T,
5301
5338
  minRows: N,
5302
5339
  type: M,
@@ -5306,10 +5343,10 @@ const Ts = ["autoComplete", "autoFocus", "children", "className", "color", "defa
5306
5343
  onBlur: _,
5307
5344
  onChange: j,
5308
5345
  onFocus: U,
5309
- placeholder: W,
5346
+ placeholder: V,
5310
5347
  inputProps: y
5311
5348
  }, G, F));
5312
- return /* @__PURE__ */ me(Ps, d({
5349
+ return /* @__PURE__ */ me(Cs, d({
5313
5350
  className: Y(Z.root, l),
5314
5351
  disabled: m,
5315
5352
  error: h,
@@ -5513,14 +5550,14 @@ process.env.NODE_ENV !== "production" && (Do.propTypes = {
5513
5550
  */
5514
5551
  variant: e.oneOf(["filled", "outlined", "standard"])
5515
5552
  });
5516
- const Cs = Do, Ns = B(Cs)(({ theme: n }) => ({
5553
+ const Ps = Do, Ns = B(Ps)(({ theme: n }) => ({
5517
5554
  "& label.Mui-focused": {
5518
5555
  color: n.palette.primary.main
5519
5556
  },
5520
5557
  "& .MuiInput-underline:after": {
5521
5558
  borderBottomColor: n.palette.primary.main
5522
5559
  }
5523
- })), Us = (n) => /* @__PURE__ */ I(Ns, { ...n, variant: "standard" });
5560
+ })), js = (n) => /* @__PURE__ */ I(Ns, { ...n, variant: "standard" });
5524
5561
  export {
5525
- Us as default
5562
+ js as default
5526
5563
  };