jcicl 0.0.181 → 0.0.183

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.
package/.chunks/Select.js CHANGED
@@ -1,45 +1,45 @@
1
- import * as u from "react";
2
- import { P as e, f as gt, i as Bo, T as zo, a as ne, g as re, c as Oe, s as $, u as he, b as ee, d as se, j as Uo, r as we, k as lo, l as co, e as To, m as Eo, n as yt } from "./DefaultPropsProvider.js";
3
- import { e as vt, u as Tt } from "./index.js";
4
- import { jsx as P, jsxs as ye } from "react/jsx-runtime";
5
- import { u as De, i as Wo } from "./useSlot.js";
6
- import { m as ce } from "./memoTheme.js";
7
- import { d as Vo, o as le, g as uo, e as po, f as Et, a as _o, T as Rt, r as Ot, b as Ro, P as wt, H as Ge, G as St, h as Oo, c as Pt } from "./Portal.js";
8
- import { u as ge, a as Ye, r as xe, e as wo } from "./TransitionGroupContext.js";
9
- import { c as Ho } from "./chainPropTypes.js";
10
- import { e as Ko } from "./elementTypeAcceptingRef.js";
11
- import { u as So } from "./useControlled.js";
12
- import { u as fo, F as Ct } from "./useFormControl.js";
13
- import { c as xt } from "./createSvgIcon.js";
14
- import { c as mo } from "./createSimplePaletteValueFilter.js";
15
- import { G as It } from "./emotion-react.browser.esm.js";
16
- function Nt(o) {
1
+ import * as c from "react";
2
+ import { P as e, f as vt, i as zo, T as Uo, g as oe, a as te, e as ge, s as $, u as ce, c as Q, b as ne, j as Vo, r as Se, k as uo, l as po, d as Ro, m as Oo, n as Tt } from "./DefaultPropsProvider.js";
3
+ import { u as fo, F as _o } from "./useFormControl.js";
4
+ import { jsx as x, jsxs as ve } from "react/jsx-runtime";
5
+ import { e as Et, u as Rt } from "./index.js";
6
+ import { u as De, i as Ho } from "./useSlot.js";
7
+ import { m as ue } from "./memoTheme.js";
8
+ import { d as Ko, o as le, g as mo, e as bo, f as Ot, a as qo, T as St, r as wt, b as So, P as Ct, H as Ge, G as xt, h as wo, c as Pt } from "./Portal.js";
9
+ import { u as ye, a as Ye, r as Pe, e as Co } from "./TransitionGroupContext.js";
10
+ import { c as Go } from "./chainPropTypes.js";
11
+ import { e as Yo } from "./elementTypeAcceptingRef.js";
12
+ import { u as xo } from "./useControlled.js";
13
+ import { c as It } from "./createSvgIcon.js";
14
+ import { c as ho } from "./createSimplePaletteValueFilter.js";
15
+ import { G as Nt } from "./emotion-react.browser.esm.js";
16
+ function Mt(o) {
17
17
  return o == null || Object.keys(o).length === 0;
18
18
  }
19
- function qo(o) {
19
+ function Xo(o) {
20
20
  const {
21
21
  styles: t,
22
22
  defaultTheme: n = {}
23
23
  } = o;
24
- return /* @__PURE__ */ P(It, {
25
- styles: typeof t == "function" ? (s) => t(Nt(s) ? n : s) : t
24
+ return /* @__PURE__ */ x(Nt, {
25
+ styles: typeof t == "function" ? (s) => t(Mt(s) ? n : s) : t
26
26
  });
27
27
  }
28
- process.env.NODE_ENV !== "production" && (qo.propTypes = {
28
+ process.env.NODE_ENV !== "production" && (Xo.propTypes = {
29
29
  defaultTheme: e.object,
30
30
  styles: e.oneOfType([e.array, e.string, e.object, e.func])
31
31
  });
32
- function Go({
32
+ function Zo({
33
33
  styles: o,
34
34
  themeId: t,
35
35
  defaultTheme: n = {}
36
36
  }) {
37
- const r = Vo(n), s = typeof o == "function" ? o(t && r[t] || r) : o;
38
- return /* @__PURE__ */ P(qo, {
37
+ const r = Ko(n), s = typeof o == "function" ? o(t && r[t] || r) : o;
38
+ return /* @__PURE__ */ x(Xo, {
39
39
  styles: s
40
40
  });
41
41
  }
42
- process.env.NODE_ENV !== "production" && (Go.propTypes = {
42
+ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
43
43
  // ┌────────────────────────────── Warning ──────────────────────────────┐
44
44
  // │ These PropTypes are generated from the TypeScript type definitions. │
45
45
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -57,22 +57,22 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
57
57
  */
58
58
  themeId: e.string
59
59
  });
60
- function Mt(o) {
60
+ function kt(o) {
61
61
  const {
62
62
  theme: t,
63
63
  name: n,
64
64
  props: r
65
65
  } = o;
66
- return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : gt(t.components[n].defaultProps, r);
66
+ return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : vt(t.components[n].defaultProps, r);
67
67
  }
68
- function kt({
68
+ function Ft({
69
69
  props: o,
70
70
  name: t,
71
71
  defaultTheme: n,
72
72
  themeId: r
73
73
  }) {
74
- let s = Vo(n);
75
- return r && (s = s[r] || s), Mt({
74
+ let s = Ko(n);
75
+ return r && (s = s[r] || s), kt({
76
76
  theme: s,
77
77
  name: t,
78
78
  props: o
@@ -84,7 +84,7 @@ function Po(...o) {
84
84
  }, () => {
85
85
  });
86
86
  }
87
- function Yo(o, t = 166) {
87
+ function Jo(o, t = 166) {
88
88
  let n;
89
89
  function r(...s) {
90
90
  const i = () => {
@@ -96,21 +96,30 @@ function Yo(o, t = 166) {
96
96
  clearTimeout(n);
97
97
  }, r;
98
98
  }
99
- function ve(o) {
99
+ function io(o, t) {
100
+ var n, r, s;
101
+ return /* @__PURE__ */ c.isValidElement(o) && t.indexOf(
102
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
103
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
104
+ // eslint-disable-next-line no-underscore-dangle
105
+ o.type.muiName ?? ((s = (r = (n = o.type) == null ? void 0 : n._payload) == null ? void 0 : r.value) == null ? void 0 : s.muiName)
106
+ ) !== -1;
107
+ }
108
+ function Te(o) {
100
109
  return le(o).defaultView || window;
101
110
  }
102
- function Xo(o = window) {
111
+ function Qo(o = window) {
103
112
  const t = o.document.documentElement.clientWidth;
104
113
  return o.innerWidth - t;
105
114
  }
106
- function Zo(o) {
107
- return /* @__PURE__ */ P(Go, {
115
+ function et(o) {
116
+ return /* @__PURE__ */ x(Zo, {
108
117
  ...o,
109
- defaultTheme: Bo,
110
- themeId: zo
118
+ defaultTheme: zo,
119
+ themeId: Uo
111
120
  });
112
121
  }
113
- process.env.NODE_ENV !== "production" && (Zo.propTypes = {
122
+ process.env.NODE_ENV !== "production" && (et.propTypes = {
114
123
  // ┌────────────────────────────── Warning ──────────────────────────────┐
115
124
  // │ These PropTypes are generated from the TypeScript type definitions. │
116
125
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -120,11 +129,11 @@ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
120
129
  */
121
130
  styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
122
131
  });
123
- function Ft(o) {
132
+ function Dt(o) {
124
133
  return function(n) {
125
134
  return (
126
135
  // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
127
- /* @__PURE__ */ P(Zo, {
136
+ /* @__PURE__ */ x(et, {
128
137
  styles: typeof o == "function" ? (r) => o({
129
138
  theme: r,
130
139
  ...n
@@ -133,21 +142,21 @@ function Ft(o) {
133
142
  );
134
143
  };
135
144
  }
136
- function Dt({
145
+ function At({
137
146
  props: o,
138
147
  name: t
139
148
  }) {
140
- return kt({
149
+ return Ft({
141
150
  props: o,
142
151
  name: t,
143
- defaultTheme: Bo,
144
- themeId: zo
152
+ defaultTheme: zo,
153
+ themeId: Uo
145
154
  });
146
155
  }
147
156
  function He(o) {
148
157
  return parseInt(o, 10) || 0;
149
158
  }
150
- const At = {
159
+ const jt = {
151
160
  shadow: {
152
161
  // Visibility needed to hide the extra text area on iPads
153
162
  visibility: "hidden",
@@ -162,83 +171,83 @@ const At = {
162
171
  transform: "translateZ(0)"
163
172
  }
164
173
  };
165
- function jt(o) {
174
+ function $t(o) {
166
175
  return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
167
176
  }
168
- const Jo = /* @__PURE__ */ u.forwardRef(function(t, n) {
177
+ const ot = /* @__PURE__ */ c.forwardRef(function(t, n) {
169
178
  const {
170
179
  onChange: r,
171
180
  maxRows: s,
172
181
  minRows: i = 1,
173
182
  style: a,
174
- value: c,
175
- ...f
183
+ value: u,
184
+ ...d
176
185
  } = t, {
177
186
  current: b
178
- } = u.useRef(c != null), y = u.useRef(null), h = ge(n, y), T = u.useRef(null), d = u.useRef(null), g = u.useCallback(() => {
179
- const m = y.current, l = ve(m).getComputedStyle(m);
187
+ } = c.useRef(u != null), y = c.useRef(null), h = ye(n, y), v = c.useRef(null), p = c.useRef(null), g = c.useCallback(() => {
188
+ const m = y.current, l = Te(m).getComputedStyle(m);
180
189
  if (l.width === "0px")
181
190
  return {
182
191
  outerHeightStyle: 0,
183
192
  overflowing: !1
184
193
  };
185
- const p = d.current;
186
- p.style.width = l.width, p.value = m.value || t.placeholder || "x", p.value.slice(-1) === `
187
- ` && (p.value += " ");
188
- const O = l.boxSizing, I = He(l.paddingBottom) + He(l.paddingTop), x = He(l.borderBottomWidth) + He(l.borderTopWidth), S = p.scrollHeight;
189
- p.value = "x";
190
- const k = p.scrollHeight;
191
- let N = S;
192
- i && (N = Math.max(Number(i) * k, N)), s && (N = Math.min(Number(s) * k, N)), N = Math.max(N, k);
193
- const z = N + (O === "border-box" ? I + x : 0), _ = Math.abs(N - S) <= 1;
194
+ const f = p.current;
195
+ f.style.width = l.width, f.value = m.value || t.placeholder || "x", f.value.slice(-1) === `
196
+ ` && (f.value += " ");
197
+ const S = l.boxSizing, I = He(l.paddingBottom) + He(l.paddingTop), P = He(l.borderBottomWidth) + He(l.borderTopWidth), C = f.scrollHeight;
198
+ f.value = "x";
199
+ const N = f.scrollHeight;
200
+ let M = C;
201
+ i && (M = Math.max(Number(i) * N, M)), s && (M = Math.min(Number(s) * N, M)), M = Math.max(M, N);
202
+ const A = M + (S === "border-box" ? I + P : 0), W = Math.abs(M - C) <= 1;
194
203
  return {
195
- outerHeightStyle: z,
196
- overflowing: _
204
+ outerHeightStyle: A,
205
+ overflowing: W
197
206
  };
198
- }, [s, i, t.placeholder]), F = u.useCallback(() => {
207
+ }, [s, i, t.placeholder]), k = c.useCallback(() => {
199
208
  const m = g();
200
- if (jt(m))
209
+ if ($t(m))
201
210
  return;
202
- const v = m.outerHeightStyle, l = y.current;
203
- T.current !== v && (T.current = v, l.style.height = `${v}px`), l.style.overflow = m.overflowing ? "hidden" : "";
211
+ const T = m.outerHeightStyle, l = y.current;
212
+ v.current !== T && (v.current = T, l.style.height = `${T}px`), l.style.overflow = m.overflowing ? "hidden" : "";
204
213
  }, [g]);
205
214
  Ye(() => {
206
215
  const m = () => {
207
- F();
216
+ k();
208
217
  };
209
- let v;
218
+ let T;
210
219
  const l = () => {
211
- cancelAnimationFrame(v), v = requestAnimationFrame(() => {
220
+ cancelAnimationFrame(T), T = requestAnimationFrame(() => {
212
221
  m();
213
222
  });
214
- }, p = Yo(m), O = y.current, I = ve(O);
215
- I.addEventListener("resize", p);
216
- let x;
217
- return typeof ResizeObserver < "u" && (x = new ResizeObserver(process.env.NODE_ENV === "test" ? l : m), x.observe(O)), () => {
218
- p.clear(), cancelAnimationFrame(v), I.removeEventListener("resize", p), x && x.disconnect();
223
+ }, f = Jo(m), S = y.current, I = Te(S);
224
+ I.addEventListener("resize", f);
225
+ let P;
226
+ return typeof ResizeObserver < "u" && (P = new ResizeObserver(process.env.NODE_ENV === "test" ? l : m), P.observe(S)), () => {
227
+ f.clear(), cancelAnimationFrame(T), I.removeEventListener("resize", f), P && P.disconnect();
219
228
  };
220
- }, [g, F]), Ye(() => {
221
- F();
229
+ }, [g, k]), Ye(() => {
230
+ k();
222
231
  });
223
- const R = (m) => {
224
- b || F(), r && r(m);
232
+ const E = (m) => {
233
+ b || k(), r && r(m);
225
234
  };
226
- return /* @__PURE__ */ ye(u.Fragment, {
227
- children: [/* @__PURE__ */ P("textarea", {
228
- value: c,
229
- onChange: R,
235
+ return /* @__PURE__ */ ve(c.Fragment, {
236
+ children: [/* @__PURE__ */ x("textarea", {
237
+ value: u,
238
+ onChange: E,
230
239
  ref: h,
231
240
  rows: i,
232
241
  style: a,
233
- ...f
234
- }), /* @__PURE__ */ P("textarea", {
242
+ ...d
243
+ }), /* @__PURE__ */ x("textarea", {
235
244
  "aria-hidden": !0,
236
245
  className: t.className,
237
246
  readOnly: !0,
238
- ref: d,
247
+ ref: p,
239
248
  tabIndex: -1,
240
249
  style: {
241
- ...At.shadow,
250
+ ...jt.shadow,
242
251
  ...a,
243
252
  paddingTop: 0,
244
253
  paddingBottom: 0
@@ -246,7 +255,7 @@ const Jo = /* @__PURE__ */ u.forwardRef(function(t, n) {
246
255
  })]
247
256
  });
248
257
  });
249
- process.env.NODE_ENV !== "production" && (Jo.propTypes = {
258
+ process.env.NODE_ENV !== "production" && (ot.propTypes = {
250
259
  // ┌────────────────────────────── Warning ──────────────────────────────┐
251
260
  // │ These PropTypes are generated from the TypeScript type definitions. │
252
261
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -281,41 +290,41 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
281
290
  */
282
291
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
283
292
  });
284
- function ao(o) {
293
+ function co(o) {
285
294
  return typeof o == "string";
286
295
  }
287
- function bo({
296
+ function go({
288
297
  props: o,
289
298
  states: t,
290
299
  muiFormControl: n
291
300
  }) {
292
301
  return t.reduce((r, s) => (r[s] = o[s], n && typeof o[s] > "u" && (r[s] = n[s]), r), {});
293
302
  }
294
- function Co(o) {
303
+ function Io(o) {
295
304
  return o != null && !(Array.isArray(o) && o.length === 0);
296
305
  }
297
- function Qo(o, t = !1) {
298
- return o && (Co(o.value) && o.value !== "" || t && Co(o.defaultValue) && o.defaultValue !== "");
306
+ function Xe(o, t = !1) {
307
+ return o && (Io(o.value) && o.value !== "" || t && Io(o.defaultValue) && o.defaultValue !== "");
299
308
  }
300
- function br(o) {
309
+ function Lt(o) {
301
310
  return o.startAdornment;
302
311
  }
303
- function $t(o) {
304
- return re("MuiInputBase", o);
312
+ function Bt(o) {
313
+ return te("MuiInputBase", o);
305
314
  }
306
- const Ae = ne("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
307
- var xo;
308
- const eo = (o, t) => {
315
+ const Ae = oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
316
+ var No;
317
+ const oo = (o, t) => {
309
318
  const {
310
319
  ownerState: n
311
320
  } = o;
312
- return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${Oe(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
313
- }, oo = (o, t) => {
321
+ return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${ge(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
322
+ }, to = (o, t) => {
314
323
  const {
315
324
  ownerState: n
316
325
  } = o;
317
326
  return [t.input, n.size === "small" && t.inputSizeSmall, n.multiline && t.inputMultiline, n.type === "search" && t.inputTypeSearch, n.startAdornment && t.inputAdornedStart, n.endAdornment && t.inputAdornedEnd, n.hiddenLabel && t.inputHiddenLabel];
318
- }, Lt = (o) => {
327
+ }, Wt = (o) => {
319
328
  const {
320
329
  classes: t,
321
330
  color: n,
@@ -323,24 +332,24 @@ const eo = (o, t) => {
323
332
  error: s,
324
333
  endAdornment: i,
325
334
  focused: a,
326
- formControl: c,
327
- fullWidth: f,
335
+ formControl: u,
336
+ fullWidth: d,
328
337
  hiddenLabel: b,
329
338
  multiline: y,
330
339
  readOnly: h,
331
- size: T,
332
- startAdornment: d,
340
+ size: v,
341
+ startAdornment: p,
333
342
  type: g
334
- } = o, F = {
335
- root: ["root", `color${Oe(n)}`, r && "disabled", s && "error", f && "fullWidth", a && "focused", c && "formControl", T && T !== "medium" && `size${Oe(T)}`, y && "multiline", d && "adornedStart", i && "adornedEnd", b && "hiddenLabel", h && "readOnly"],
336
- input: ["input", r && "disabled", g === "search" && "inputTypeSearch", y && "inputMultiline", T === "small" && "inputSizeSmall", b && "inputHiddenLabel", d && "inputAdornedStart", i && "inputAdornedEnd", h && "readOnly"]
343
+ } = o, k = {
344
+ root: ["root", `color${ge(n)}`, r && "disabled", s && "error", d && "fullWidth", a && "focused", u && "formControl", v && v !== "medium" && `size${ge(v)}`, y && "multiline", p && "adornedStart", i && "adornedEnd", b && "hiddenLabel", h && "readOnly"],
345
+ input: ["input", r && "disabled", g === "search" && "inputTypeSearch", y && "inputMultiline", v === "small" && "inputSizeSmall", b && "inputHiddenLabel", p && "inputAdornedStart", i && "inputAdornedEnd", h && "readOnly"]
337
346
  };
338
- return se(F, $t, t);
339
- }, to = $("div", {
347
+ return ne(k, Bt, t);
348
+ }, no = $("div", {
340
349
  name: "MuiInputBase",
341
350
  slot: "Root",
342
- overridesResolver: eo
343
- })(ce(({
351
+ overridesResolver: oo
352
+ })(ue(({
344
353
  theme: o
345
354
  }) => ({
346
355
  ...o.typography.body1,
@@ -380,11 +389,11 @@ const eo = (o, t) => {
380
389
  width: "100%"
381
390
  }
382
391
  }]
383
- }))), no = $("input", {
392
+ }))), ro = $("input", {
384
393
  name: "MuiInputBase",
385
394
  slot: "Input",
386
- overridesResolver: oo
387
- })(ce(({
395
+ overridesResolver: to
396
+ })(ue(({
388
397
  theme: o
389
398
  }) => {
390
399
  const t = o.palette.mode === "light", n = {
@@ -495,7 +504,7 @@ const eo = (o, t) => {
495
504
  }
496
505
  }]
497
506
  };
498
- })), Io = Ft({
507
+ })), Mo = Dt({
499
508
  "@keyframes mui-auto-fill": {
500
509
  from: {
501
510
  display: "block"
@@ -506,192 +515,192 @@ const eo = (o, t) => {
506
515
  display: "block"
507
516
  }
508
517
  }
509
- }), ro = /* @__PURE__ */ u.forwardRef(function(t, n) {
510
- const r = he({
518
+ }), so = /* @__PURE__ */ c.forwardRef(function(t, n) {
519
+ const r = ce({
511
520
  props: t,
512
521
  name: "MuiInputBase"
513
522
  }), {
514
523
  "aria-describedby": s,
515
524
  autoComplete: i,
516
525
  autoFocus: a,
517
- className: c,
518
- color: f,
526
+ className: u,
527
+ color: d,
519
528
  components: b = {},
520
529
  componentsProps: y = {},
521
530
  defaultValue: h,
522
- disabled: T,
523
- disableInjectingGlobalStyles: d,
531
+ disabled: v,
532
+ disableInjectingGlobalStyles: p,
524
533
  endAdornment: g,
525
- error: F,
526
- fullWidth: R = !1,
534
+ error: k,
535
+ fullWidth: E = !1,
527
536
  id: m,
528
- inputComponent: v = "input",
537
+ inputComponent: T = "input",
529
538
  inputProps: l = {},
530
- inputRef: p,
531
- margin: O,
539
+ inputRef: f,
540
+ margin: S,
532
541
  maxRows: I,
533
- minRows: x,
534
- multiline: S = !1,
535
- name: k,
536
- onBlur: N,
537
- onChange: z,
538
- onClick: _,
539
- onFocus: K,
540
- onKeyDown: D,
541
- onKeyUp: C,
542
+ minRows: P,
543
+ multiline: C = !1,
544
+ name: N,
545
+ onBlur: M,
546
+ onChange: A,
547
+ onClick: W,
548
+ onFocus: H,
549
+ onKeyDown: F,
550
+ onKeyUp: R,
542
551
  placeholder: w,
543
552
  readOnly: U,
544
- renderSuffix: M,
545
- rows: Q,
546
- size: Se,
547
- slotProps: ue = {},
548
- slots: de = {},
553
+ renderSuffix: D,
554
+ rows: ee,
555
+ size: we,
556
+ slotProps: de = {},
557
+ slots: pe = {},
549
558
  startAdornment: q,
550
559
  type: G = "text",
551
560
  value: ie,
552
561
  ...ae
553
- } = r, pe = l.value != null ? l.value : ie, {
554
- current: fe
555
- } = u.useRef(pe != null), oe = u.useRef(), W = u.useCallback((V) => {
556
- process.env.NODE_ENV !== "production" && V && V.nodeName !== "INPUT" && !V.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
562
+ } = r, fe = l.value != null ? l.value : ie, {
563
+ current: me
564
+ } = c.useRef(fe != null), re = c.useRef(), V = c.useCallback((_) => {
565
+ process.env.NODE_ENV !== "production" && _ && _.nodeName !== "INPUT" && !_.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
557
566
  `));
558
- }, []), B = ge(oe, p, l.ref, W), [L, X] = u.useState(!1), j = fo();
559
- process.env.NODE_ENV !== "production" && u.useEffect(() => {
560
- if (j)
561
- return j.registerEffect();
562
- }, [j]);
563
- const H = bo({
567
+ }, []), z = ye(re, f, l.ref, V), [B, X] = c.useState(!1), L = fo();
568
+ process.env.NODE_ENV !== "production" && c.useEffect(() => {
569
+ if (L)
570
+ return L.registerEffect();
571
+ }, [L]);
572
+ const K = go({
564
573
  props: r,
565
- muiFormControl: j,
574
+ muiFormControl: L,
566
575
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
567
576
  });
568
- H.focused = j ? j.focused : L, u.useEffect(() => {
569
- !j && T && L && (X(!1), N && N());
570
- }, [j, T, L, N]);
571
- const Te = j && j.onFilled, Ee = j && j.onEmpty, me = u.useCallback((V) => {
572
- Qo(V) ? Te && Te() : Ee && Ee();
573
- }, [Te, Ee]);
577
+ K.focused = L ? L.focused : B, c.useEffect(() => {
578
+ !L && v && B && (X(!1), M && M());
579
+ }, [L, v, B, M]);
580
+ const Ee = L && L.onFilled, Re = L && L.onEmpty, be = c.useCallback((_) => {
581
+ Xe(_) ? Ee && Ee() : Re && Re();
582
+ }, [Ee, Re]);
574
583
  Ye(() => {
575
- fe && me({
576
- value: pe
584
+ me && be({
585
+ value: fe
577
586
  });
578
- }, [pe, me, fe]);
579
- const te = (V) => {
580
- K && K(V), l.onFocus && l.onFocus(V), j && j.onFocus ? j.onFocus(V) : X(!0);
581
- }, Ie = (V) => {
582
- N && N(V), l.onBlur && l.onBlur(V), j && j.onBlur ? j.onBlur(V) : X(!1);
583
- }, Y = (V, ...ke) => {
584
- if (!fe) {
585
- const Be = V.target || oe.current;
587
+ }, [fe, be, me]);
588
+ const se = (_) => {
589
+ H && H(_), l.onFocus && l.onFocus(_), L && L.onFocus ? L.onFocus(_) : X(!0);
590
+ }, Ie = (_) => {
591
+ M && M(_), l.onBlur && l.onBlur(_), L && L.onBlur ? L.onBlur(_) : X(!1);
592
+ }, Y = (_, ...ke) => {
593
+ if (!me) {
594
+ const Be = _.target || re.current;
586
595
  if (Be == null)
587
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Uo(1));
588
- me({
596
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Vo(1));
597
+ be({
589
598
  value: Be.value
590
599
  });
591
600
  }
592
- l.onChange && l.onChange(V, ...ke), z && z(V, ...ke);
601
+ l.onChange && l.onChange(_, ...ke), A && A(_, ...ke);
593
602
  };
594
- u.useEffect(() => {
595
- me(oe.current);
603
+ c.useEffect(() => {
604
+ be(re.current);
596
605
  }, []);
597
- const _e = (V) => {
598
- oe.current && V.currentTarget === V.target && oe.current.focus(), _ && _(V);
606
+ const _e = (_) => {
607
+ re.current && _.currentTarget === _.target && re.current.focus(), W && W(_);
599
608
  };
600
- let Re = v, J = l;
601
- S && Re === "input" && (Q ? (process.env.NODE_ENV !== "production" && (x || I) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), J = {
609
+ let Oe = T, J = l;
610
+ C && Oe === "input" && (ee ? (process.env.NODE_ENV !== "production" && (P || I) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), J = {
602
611
  type: void 0,
603
- minRows: Q,
604
- maxRows: Q,
612
+ minRows: ee,
613
+ maxRows: ee,
605
614
  ...J
606
615
  }) : J = {
607
616
  type: void 0,
608
617
  maxRows: I,
609
- minRows: x,
618
+ minRows: P,
610
619
  ...J
611
- }, Re = Jo);
612
- const je = (V) => {
613
- me(V.animationName === "mui-auto-fill-cancel" ? oe.current : {
620
+ }, Oe = ot);
621
+ const je = (_) => {
622
+ be(_.animationName === "mui-auto-fill-cancel" ? re.current : {
614
623
  value: "x"
615
624
  });
616
625
  };
617
- u.useEffect(() => {
618
- j && j.setAdornedStart(!!q);
619
- }, [j, q]);
626
+ c.useEffect(() => {
627
+ L && L.setAdornedStart(!!q);
628
+ }, [L, q]);
620
629
  const $e = {
621
630
  ...r,
622
- color: H.color || "primary",
623
- disabled: H.disabled,
631
+ color: K.color || "primary",
632
+ disabled: K.disabled,
624
633
  endAdornment: g,
625
- error: H.error,
626
- focused: H.focused,
627
- formControl: j,
628
- fullWidth: R,
629
- hiddenLabel: H.hiddenLabel,
630
- multiline: S,
631
- size: H.size,
634
+ error: K.error,
635
+ focused: K.focused,
636
+ formControl: L,
637
+ fullWidth: E,
638
+ hiddenLabel: K.hiddenLabel,
639
+ multiline: C,
640
+ size: K.size,
632
641
  startAdornment: q,
633
642
  type: G
634
- }, Le = Lt($e), Ne = de.root || b.Root || to, Me = ue.root || y.root || {}, Pe = de.input || b.Input || no;
643
+ }, Le = Wt($e), Ne = pe.root || b.Root || no, Me = de.root || y.root || {}, Ce = pe.input || b.Input || ro;
635
644
  return J = {
636
645
  ...J,
637
- ...ue.input ?? y.input
638
- }, /* @__PURE__ */ ye(u.Fragment, {
639
- children: [!d && typeof Io == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
646
+ ...de.input ?? y.input
647
+ }, /* @__PURE__ */ ve(c.Fragment, {
648
+ children: [!p && typeof Mo == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
640
649
  // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
641
- (xo || (xo = /* @__PURE__ */ P(Io, {}))), /* @__PURE__ */ ye(Ne, {
650
+ (No || (No = /* @__PURE__ */ x(Mo, {}))), /* @__PURE__ */ ve(Ne, {
642
651
  ...Me,
643
652
  ref: n,
644
653
  onClick: _e,
645
654
  ...ae,
646
- ...!ao(Ne) && {
655
+ ...!co(Ne) && {
647
656
  ownerState: {
648
657
  ...$e,
649
658
  ...Me.ownerState
650
659
  }
651
660
  },
652
- className: ee(Le.root, Me.className, c, U && "MuiInputBase-readOnly"),
653
- children: [q, /* @__PURE__ */ P(Ct.Provider, {
661
+ className: Q(Le.root, Me.className, u, U && "MuiInputBase-readOnly"),
662
+ children: [q, /* @__PURE__ */ x(_o.Provider, {
654
663
  value: null,
655
- children: /* @__PURE__ */ P(Pe, {
656
- "aria-invalid": H.error,
664
+ children: /* @__PURE__ */ x(Ce, {
665
+ "aria-invalid": K.error,
657
666
  "aria-describedby": s,
658
667
  autoComplete: i,
659
668
  autoFocus: a,
660
669
  defaultValue: h,
661
- disabled: H.disabled,
670
+ disabled: K.disabled,
662
671
  id: m,
663
672
  onAnimationStart: je,
664
- name: k,
673
+ name: N,
665
674
  placeholder: w,
666
675
  readOnly: U,
667
- required: H.required,
668
- rows: Q,
669
- value: pe,
670
- onKeyDown: D,
671
- onKeyUp: C,
676
+ required: K.required,
677
+ rows: ee,
678
+ value: fe,
679
+ onKeyDown: F,
680
+ onKeyUp: R,
672
681
  type: G,
673
682
  ...J,
674
- ...!ao(Pe) && {
675
- as: Re,
683
+ ...!co(Ce) && {
684
+ as: Oe,
676
685
  ownerState: {
677
686
  ...$e,
678
687
  ...J.ownerState
679
688
  }
680
689
  },
681
- ref: B,
682
- className: ee(Le.input, J.className, U && "MuiInputBase-readOnly"),
690
+ ref: z,
691
+ className: Q(Le.input, J.className, U && "MuiInputBase-readOnly"),
683
692
  onBlur: Ie,
684
693
  onChange: Y,
685
- onFocus: te
694
+ onFocus: se
686
695
  })
687
- }), g, M ? M({
688
- ...H,
696
+ }), g, D ? D({
697
+ ...K,
689
698
  startAdornment: q
690
699
  }) : null]
691
700
  })]
692
701
  });
693
702
  });
694
- process.env.NODE_ENV !== "production" && (ro.propTypes = {
703
+ process.env.NODE_ENV !== "production" && (so.propTypes = {
695
704
  // ┌────────────────────────────── Warning ──────────────────────────────┐
696
705
  // │ These PropTypes are generated from the TypeScript type definitions. │
697
706
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -786,7 +795,7 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
786
795
  * Either a string to use a HTML element or a component.
787
796
  * @default 'input'
788
797
  */
789
- inputComponent: Ko,
798
+ inputComponent: Yo,
790
799
  /**
791
800
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
792
801
  * @default {}
@@ -795,7 +804,7 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
795
804
  /**
796
805
  * Pass a ref to the `input` element.
797
806
  */
798
- inputRef: xe,
807
+ inputRef: Pe,
799
808
  /**
800
809
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
801
810
  * FormControl.
@@ -919,36 +928,36 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
919
928
  */
920
929
  value: e.any
921
930
  });
922
- function Bt(o) {
923
- return re("MuiInput", o);
931
+ function zt(o) {
932
+ return te("MuiInput", o);
924
933
  }
925
- const ze = {
934
+ const We = {
926
935
  ...Ae,
927
- ...ne("MuiInput", ["root", "underline", "input"])
928
- }, zt = (o) => {
936
+ ...oe("MuiInput", ["root", "underline", "input"])
937
+ }, Ut = (o) => {
929
938
  const {
930
939
  classes: t,
931
940
  disableUnderline: n
932
- } = o, s = se({
941
+ } = o, s = ne({
933
942
  root: ["root", !n && "underline"],
934
943
  input: ["input"]
935
- }, Bt, t);
944
+ }, zt, t);
936
945
  return {
937
946
  ...t,
938
947
  // forward classes to the InputBase
939
948
  ...s
940
949
  };
941
- }, Ut = $(to, {
942
- shouldForwardProp: (o) => we(o) || o === "classes",
950
+ }, Vt = $(no, {
951
+ shouldForwardProp: (o) => Se(o) || o === "classes",
943
952
  name: "MuiInput",
944
953
  slot: "Root",
945
954
  overridesResolver: (o, t) => {
946
955
  const {
947
956
  ownerState: n
948
957
  } = o;
949
- return [...eo(o, t), !n.disableUnderline && t.underline];
958
+ return [...oo(o, t), !n.disableUnderline && t.underline];
950
959
  }
951
- })(ce(({
960
+ })(ue(({
952
961
  theme: o
953
962
  }) => {
954
963
  let n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
@@ -982,12 +991,12 @@ const ze = {
982
991
  pointerEvents: "none"
983
992
  // Transparent to the hover style.
984
993
  },
985
- [`&.${ze.focused}:after`]: {
994
+ [`&.${We.focused}:after`]: {
986
995
  // translateX(0) is a workaround for Safari transform scale bug
987
996
  // See https://github.com/mui/material-ui/issues/31766
988
997
  transform: "scaleX(1) translateX(0)"
989
998
  },
990
- [`&.${ze.error}`]: {
999
+ [`&.${We.error}`]: {
991
1000
  "&::before, &::after": {
992
1001
  borderBottomColor: (o.vars || o).palette.error.main
993
1002
  }
@@ -1005,18 +1014,18 @@ const ze = {
1005
1014
  pointerEvents: "none"
1006
1015
  // Transparent to the hover style.
1007
1016
  },
1008
- [`&:hover:not(.${ze.disabled}, .${ze.error}):before`]: {
1017
+ [`&:hover:not(.${We.disabled}, .${We.error}):before`]: {
1009
1018
  borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
1010
1019
  // Reset on touch devices, it doesn't add specificity
1011
1020
  "@media (hover: none)": {
1012
1021
  borderBottom: `1px solid ${n}`
1013
1022
  }
1014
1023
  },
1015
- [`&.${ze.disabled}:before`]: {
1024
+ [`&.${We.disabled}:before`]: {
1016
1025
  borderBottomStyle: "dotted"
1017
1026
  }
1018
1027
  }
1019
- }, ...Object.entries(o.palette).filter(mo()).map(([r]) => ({
1028
+ }, ...Object.entries(o.palette).filter(ho()).map(([r]) => ({
1020
1029
  props: {
1021
1030
  color: r,
1022
1031
  disableUnderline: !1
@@ -1028,48 +1037,48 @@ const ze = {
1028
1037
  }
1029
1038
  }))]
1030
1039
  };
1031
- })), Wt = $(no, {
1040
+ })), _t = $(ro, {
1032
1041
  name: "MuiInput",
1033
1042
  slot: "Input",
1034
- overridesResolver: oo
1035
- })({}), Xe = /* @__PURE__ */ u.forwardRef(function(t, n) {
1036
- const r = he({
1043
+ overridesResolver: to
1044
+ })({}), Ze = /* @__PURE__ */ c.forwardRef(function(t, n) {
1045
+ const r = ce({
1037
1046
  props: t,
1038
1047
  name: "MuiInput"
1039
1048
  }), {
1040
1049
  disableUnderline: s = !1,
1041
1050
  components: i = {},
1042
1051
  componentsProps: a,
1043
- fullWidth: c = !1,
1044
- inputComponent: f = "input",
1052
+ fullWidth: u = !1,
1053
+ inputComponent: d = "input",
1045
1054
  multiline: b = !1,
1046
1055
  slotProps: y,
1047
1056
  slots: h = {},
1048
- type: T = "text",
1049
- ...d
1050
- } = r, g = zt(r), R = {
1057
+ type: v = "text",
1058
+ ...p
1059
+ } = r, g = Ut(r), E = {
1051
1060
  root: {
1052
1061
  ownerState: {
1053
1062
  disableUnderline: s
1054
1063
  }
1055
1064
  }
1056
- }, m = y ?? a ? lo(y ?? a, R) : R, v = h.root ?? i.Root ?? Ut, l = h.input ?? i.Input ?? Wt;
1057
- return /* @__PURE__ */ P(ro, {
1065
+ }, m = y ?? a ? uo(y ?? a, E) : E, T = h.root ?? i.Root ?? Vt, l = h.input ?? i.Input ?? _t;
1066
+ return /* @__PURE__ */ x(so, {
1058
1067
  slots: {
1059
- root: v,
1068
+ root: T,
1060
1069
  input: l
1061
1070
  },
1062
1071
  slotProps: m,
1063
- fullWidth: c,
1064
- inputComponent: f,
1072
+ fullWidth: u,
1073
+ inputComponent: d,
1065
1074
  multiline: b,
1066
1075
  ref: n,
1067
- type: T,
1068
- ...d,
1076
+ type: v,
1077
+ ...p,
1069
1078
  classes: g
1070
1079
  });
1071
1080
  });
1072
- process.env.NODE_ENV !== "production" && (Xe.propTypes = {
1081
+ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1073
1082
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1074
1083
  // │ These PropTypes are generated from the TypeScript type definitions. │
1075
1084
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1164,7 +1173,7 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
1164
1173
  /**
1165
1174
  * Pass a ref to the `input` element.
1166
1175
  */
1167
- inputRef: xe,
1176
+ inputRef: Pe,
1168
1177
  /**
1169
1178
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1170
1179
  * FormControl.
@@ -1254,14 +1263,14 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
1254
1263
  */
1255
1264
  value: e.any
1256
1265
  });
1257
- Xe && (Xe.muiName = "Input");
1258
- function Vt(o) {
1259
- return re("MuiFilledInput", o);
1266
+ Ze && (Ze.muiName = "Input");
1267
+ function Ht(o) {
1268
+ return te("MuiFilledInput", o);
1260
1269
  }
1261
- const Ce = {
1270
+ const xe = {
1262
1271
  ...Ae,
1263
- ...ne("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
1264
- }, _t = (o) => {
1272
+ ...oe("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
1273
+ }, Kt = (o) => {
1265
1274
  const {
1266
1275
  classes: t,
1267
1276
  disableUnderline: n,
@@ -1269,27 +1278,27 @@ const Ce = {
1269
1278
  endAdornment: s,
1270
1279
  size: i,
1271
1280
  hiddenLabel: a,
1272
- multiline: c
1273
- } = o, f = {
1274
- root: ["root", !n && "underline", r && "adornedStart", s && "adornedEnd", i === "small" && `size${Oe(i)}`, a && "hiddenLabel", c && "multiline"],
1281
+ multiline: u
1282
+ } = o, d = {
1283
+ root: ["root", !n && "underline", r && "adornedStart", s && "adornedEnd", i === "small" && `size${ge(i)}`, a && "hiddenLabel", u && "multiline"],
1275
1284
  input: ["input"]
1276
- }, b = se(f, Vt, t);
1285
+ }, b = ne(d, Ht, t);
1277
1286
  return {
1278
1287
  ...t,
1279
1288
  // forward classes to the InputBase
1280
1289
  ...b
1281
1290
  };
1282
- }, Ht = $(to, {
1283
- shouldForwardProp: (o) => we(o) || o === "classes",
1291
+ }, qt = $(no, {
1292
+ shouldForwardProp: (o) => Se(o) || o === "classes",
1284
1293
  name: "MuiFilledInput",
1285
1294
  slot: "Root",
1286
1295
  overridesResolver: (o, t) => {
1287
1296
  const {
1288
1297
  ownerState: n
1289
1298
  } = o;
1290
- return [...eo(o, t), !n.disableUnderline && t.underline];
1299
+ return [...oo(o, t), !n.disableUnderline && t.underline];
1291
1300
  }
1292
- })(ce(({
1301
+ })(ue(({
1293
1302
  theme: o
1294
1303
  }) => {
1295
1304
  const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", s = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", i = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
@@ -1309,10 +1318,10 @@ const Ce = {
1309
1318
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
1310
1319
  }
1311
1320
  },
1312
- [`&.${Ce.focused}`]: {
1321
+ [`&.${xe.focused}`]: {
1313
1322
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
1314
1323
  },
1315
- [`&.${Ce.disabled}`]: {
1324
+ [`&.${xe.disabled}`]: {
1316
1325
  backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : i
1317
1326
  },
1318
1327
  variants: [{
@@ -1334,12 +1343,12 @@ const Ce = {
1334
1343
  pointerEvents: "none"
1335
1344
  // Transparent to the hover style.
1336
1345
  },
1337
- [`&.${Ce.focused}:after`]: {
1346
+ [`&.${xe.focused}:after`]: {
1338
1347
  // translateX(0) is a workaround for Safari transform scale bug
1339
1348
  // See https://github.com/mui/material-ui/issues/31766
1340
1349
  transform: "scaleX(1) translateX(0)"
1341
1350
  },
1342
- [`&.${Ce.error}`]: {
1351
+ [`&.${xe.error}`]: {
1343
1352
  "&::before, &::after": {
1344
1353
  borderBottomColor: (o.vars || o).palette.error.main
1345
1354
  }
@@ -1357,15 +1366,15 @@ const Ce = {
1357
1366
  pointerEvents: "none"
1358
1367
  // Transparent to the hover style.
1359
1368
  },
1360
- [`&:hover:not(.${Ce.disabled}, .${Ce.error}):before`]: {
1369
+ [`&:hover:not(.${xe.disabled}, .${xe.error}):before`]: {
1361
1370
  borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
1362
1371
  },
1363
- [`&.${Ce.disabled}:before`]: {
1372
+ [`&.${xe.disabled}:before`]: {
1364
1373
  borderBottomStyle: "dotted"
1365
1374
  }
1366
1375
  }
1367
- }, ...Object.entries(o.palette).filter(mo()).map(([a]) => {
1368
- var c;
1376
+ }, ...Object.entries(o.palette).filter(ho()).map(([a]) => {
1377
+ var u;
1369
1378
  return {
1370
1379
  props: {
1371
1380
  disableUnderline: !1,
@@ -1373,7 +1382,7 @@ const Ce = {
1373
1382
  },
1374
1383
  style: {
1375
1384
  "&::after": {
1376
- borderBottom: `2px solid ${(c = (o.vars || o).palette[a]) == null ? void 0 : c.main}`
1385
+ borderBottom: `2px solid ${(u = (o.vars || o).palette[a]) == null ? void 0 : u.main}`
1377
1386
  }
1378
1387
  }
1379
1388
  };
@@ -1401,8 +1410,8 @@ const Ce = {
1401
1410
  }, {
1402
1411
  props: ({
1403
1412
  ownerState: a,
1404
- size: c
1405
- }) => a.multiline && c === "small",
1413
+ size: u
1414
+ }) => a.multiline && u === "small",
1406
1415
  style: {
1407
1416
  paddingTop: 21,
1408
1417
  paddingBottom: 4
@@ -1425,11 +1434,11 @@ const Ce = {
1425
1434
  }
1426
1435
  }]
1427
1436
  };
1428
- })), Kt = $(no, {
1437
+ })), Gt = $(ro, {
1429
1438
  name: "MuiFilledInput",
1430
1439
  slot: "Input",
1431
- overridesResolver: oo
1432
- })(ce(({
1440
+ overridesResolver: to
1441
+ })(ue(({
1433
1442
  theme: o
1434
1443
  }) => ({
1435
1444
  paddingTop: 25,
@@ -1507,54 +1516,54 @@ const Ce = {
1507
1516
  paddingRight: 0
1508
1517
  }
1509
1518
  }]
1510
- }))), Ze = /* @__PURE__ */ u.forwardRef(function(t, n) {
1511
- const r = he({
1519
+ }))), Je = /* @__PURE__ */ c.forwardRef(function(t, n) {
1520
+ const r = ce({
1512
1521
  props: t,
1513
1522
  name: "MuiFilledInput"
1514
1523
  }), {
1515
1524
  disableUnderline: s = !1,
1516
1525
  components: i = {},
1517
1526
  componentsProps: a,
1518
- fullWidth: c = !1,
1519
- hiddenLabel: f,
1527
+ fullWidth: u = !1,
1528
+ hiddenLabel: d,
1520
1529
  // declare here to prevent spreading to DOM
1521
1530
  inputComponent: b = "input",
1522
1531
  multiline: y = !1,
1523
1532
  slotProps: h,
1524
- slots: T = {},
1525
- type: d = "text",
1533
+ slots: v = {},
1534
+ type: p = "text",
1526
1535
  ...g
1527
- } = r, F = {
1536
+ } = r, k = {
1528
1537
  ...r,
1529
1538
  disableUnderline: s,
1530
- fullWidth: c,
1539
+ fullWidth: u,
1531
1540
  inputComponent: b,
1532
1541
  multiline: y,
1533
- type: d
1534
- }, R = _t(r), m = {
1542
+ type: p
1543
+ }, E = Kt(r), m = {
1535
1544
  root: {
1536
- ownerState: F
1545
+ ownerState: k
1537
1546
  },
1538
1547
  input: {
1539
- ownerState: F
1548
+ ownerState: k
1540
1549
  }
1541
- }, v = h ?? a ? lo(m, h ?? a) : m, l = T.root ?? i.Root ?? Ht, p = T.input ?? i.Input ?? Kt;
1542
- return /* @__PURE__ */ P(ro, {
1550
+ }, T = h ?? a ? uo(m, h ?? a) : m, l = v.root ?? i.Root ?? qt, f = v.input ?? i.Input ?? Gt;
1551
+ return /* @__PURE__ */ x(so, {
1543
1552
  slots: {
1544
1553
  root: l,
1545
- input: p
1554
+ input: f
1546
1555
  },
1547
- componentsProps: v,
1548
- fullWidth: c,
1556
+ componentsProps: T,
1557
+ fullWidth: u,
1549
1558
  inputComponent: b,
1550
1559
  multiline: y,
1551
1560
  ref: n,
1552
- type: d,
1561
+ type: p,
1553
1562
  ...g,
1554
- classes: R
1563
+ classes: E
1555
1564
  });
1556
1565
  });
1557
- process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1566
+ process.env.NODE_ENV !== "production" && (Je.propTypes = {
1558
1567
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1559
1568
  // │ These PropTypes are generated from the TypeScript type definitions. │
1560
1569
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1656,7 +1665,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1656
1665
  /**
1657
1666
  * Pass a ref to the `input` element.
1658
1667
  */
1659
- inputRef: xe,
1668
+ inputRef: Pe,
1660
1669
  /**
1661
1670
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1662
1671
  * FormControl.
@@ -1746,10 +1755,10 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
1746
1755
  */
1747
1756
  value: e.any
1748
1757
  });
1749
- Ze && (Ze.muiName = "Input");
1750
- var No;
1751
- const qt = $("fieldset", {
1752
- shouldForwardProp: we
1758
+ Je && (Je.muiName = "Input");
1759
+ var ko;
1760
+ const Yt = $("fieldset", {
1761
+ shouldForwardProp: Se
1753
1762
  })({
1754
1763
  textAlign: "left",
1755
1764
  position: "absolute",
@@ -1765,9 +1774,9 @@ const qt = $("fieldset", {
1765
1774
  borderWidth: 1,
1766
1775
  overflow: "hidden",
1767
1776
  minWidth: "0%"
1768
- }), Gt = $("legend", {
1769
- shouldForwardProp: we
1770
- })(ce(({
1777
+ }), Xt = $("legend", {
1778
+ shouldForwardProp: Se
1779
+ })(ue(({
1771
1780
  theme: o
1772
1781
  }) => ({
1773
1782
  float: "unset",
@@ -1829,7 +1838,7 @@ const qt = $("fieldset", {
1829
1838
  }
1830
1839
  }]
1831
1840
  })));
1832
- function et(o) {
1841
+ function tt(o) {
1833
1842
  const {
1834
1843
  children: t,
1835
1844
  classes: n,
@@ -1837,23 +1846,23 @@ function et(o) {
1837
1846
  label: s,
1838
1847
  notched: i,
1839
1848
  ...a
1840
- } = o, c = s != null && s !== "", f = {
1849
+ } = o, u = s != null && s !== "", d = {
1841
1850
  ...o,
1842
1851
  notched: i,
1843
- withLabel: c
1852
+ withLabel: u
1844
1853
  };
1845
- return /* @__PURE__ */ P(qt, {
1854
+ return /* @__PURE__ */ x(Yt, {
1846
1855
  "aria-hidden": !0,
1847
1856
  className: r,
1848
- ownerState: f,
1857
+ ownerState: d,
1849
1858
  ...a,
1850
- children: /* @__PURE__ */ P(Gt, {
1851
- ownerState: f,
1852
- children: c ? /* @__PURE__ */ P("span", {
1859
+ children: /* @__PURE__ */ x(Xt, {
1860
+ ownerState: d,
1861
+ children: u ? /* @__PURE__ */ x("span", {
1853
1862
  children: s
1854
1863
  }) : (
1855
1864
  // notranslate needed while Google Translate will not fix zero-width space issue
1856
- No || (No = /* @__PURE__ */ P("span", {
1865
+ ko || (ko = /* @__PURE__ */ x("span", {
1857
1866
  className: "notranslate",
1858
1867
  children: "​"
1859
1868
  }))
@@ -1861,7 +1870,7 @@ function et(o) {
1861
1870
  })
1862
1871
  });
1863
1872
  }
1864
- process.env.NODE_ENV !== "production" && (et.propTypes = {
1873
+ process.env.NODE_ENV !== "production" && (tt.propTypes = {
1865
1874
  /**
1866
1875
  * The content of the component.
1867
1876
  */
@@ -1887,55 +1896,55 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
1887
1896
  */
1888
1897
  style: e.object
1889
1898
  });
1890
- function Yt(o) {
1891
- return re("MuiOutlinedInput", o);
1899
+ function Zt(o) {
1900
+ return te("MuiOutlinedInput", o);
1892
1901
  }
1893
- const be = {
1902
+ const he = {
1894
1903
  ...Ae,
1895
- ...ne("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1896
- }, Xt = (o) => {
1904
+ ...oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])
1905
+ }, Jt = (o) => {
1897
1906
  const {
1898
1907
  classes: t
1899
- } = o, r = se({
1908
+ } = o, r = ne({
1900
1909
  root: ["root"],
1901
1910
  notchedOutline: ["notchedOutline"],
1902
1911
  input: ["input"]
1903
- }, Yt, t);
1912
+ }, Zt, t);
1904
1913
  return {
1905
1914
  ...t,
1906
1915
  // forward classes to the InputBase
1907
1916
  ...r
1908
1917
  };
1909
- }, Zt = $(to, {
1910
- shouldForwardProp: (o) => we(o) || o === "classes",
1918
+ }, Qt = $(no, {
1919
+ shouldForwardProp: (o) => Se(o) || o === "classes",
1911
1920
  name: "MuiOutlinedInput",
1912
1921
  slot: "Root",
1913
- overridesResolver: eo
1914
- })(ce(({
1922
+ overridesResolver: oo
1923
+ })(ue(({
1915
1924
  theme: o
1916
1925
  }) => {
1917
1926
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1918
1927
  return {
1919
1928
  position: "relative",
1920
1929
  borderRadius: (o.vars || o).shape.borderRadius,
1921
- [`&:hover .${be.notchedOutline}`]: {
1930
+ [`&:hover .${he.notchedOutline}`]: {
1922
1931
  borderColor: (o.vars || o).palette.text.primary
1923
1932
  },
1924
1933
  // Reset on touch devices, it doesn't add specificity
1925
1934
  "@media (hover: none)": {
1926
- [`&:hover .${be.notchedOutline}`]: {
1935
+ [`&:hover .${he.notchedOutline}`]: {
1927
1936
  borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
1928
1937
  }
1929
1938
  },
1930
- [`&.${be.focused} .${be.notchedOutline}`]: {
1939
+ [`&.${he.focused} .${he.notchedOutline}`]: {
1931
1940
  borderWidth: 2
1932
1941
  },
1933
- variants: [...Object.entries(o.palette).filter(mo()).map(([n]) => ({
1942
+ variants: [...Object.entries(o.palette).filter(ho()).map(([n]) => ({
1934
1943
  props: {
1935
1944
  color: n
1936
1945
  },
1937
1946
  style: {
1938
- [`&.${be.focused} .${be.notchedOutline}`]: {
1947
+ [`&.${he.focused} .${he.notchedOutline}`]: {
1939
1948
  borderColor: (o.vars || o).palette[n].main
1940
1949
  }
1941
1950
  }
@@ -1943,10 +1952,10 @@ const be = {
1943
1952
  props: {},
1944
1953
  // to overide the above style
1945
1954
  style: {
1946
- [`&.${be.error} .${be.notchedOutline}`]: {
1955
+ [`&.${he.error} .${he.notchedOutline}`]: {
1947
1956
  borderColor: (o.vars || o).palette.error.main
1948
1957
  },
1949
- [`&.${be.disabled} .${be.notchedOutline}`]: {
1958
+ [`&.${he.disabled} .${he.notchedOutline}`]: {
1950
1959
  borderColor: (o.vars || o).palette.action.disabled
1951
1960
  }
1952
1961
  }
@@ -1981,22 +1990,22 @@ const be = {
1981
1990
  }
1982
1991
  }]
1983
1992
  };
1984
- })), Jt = $(et, {
1993
+ })), en = $(tt, {
1985
1994
  name: "MuiOutlinedInput",
1986
1995
  slot: "NotchedOutline",
1987
1996
  overridesResolver: (o, t) => t.notchedOutline
1988
- })(ce(({
1997
+ })(ue(({
1989
1998
  theme: o
1990
1999
  }) => {
1991
2000
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1992
2001
  return {
1993
2002
  borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
1994
2003
  };
1995
- })), Qt = $(no, {
2004
+ })), on = $(ro, {
1996
2005
  name: "MuiOutlinedInput",
1997
2006
  slot: "Input",
1998
- overridesResolver: oo
1999
- })(ce(({
2007
+ overridesResolver: to
2008
+ })(ue(({
2000
2009
  theme: o
2001
2010
  }) => ({
2002
2011
  padding: "16.5px 14px",
@@ -2049,64 +2058,64 @@ const be = {
2049
2058
  paddingRight: 0
2050
2059
  }
2051
2060
  }]
2052
- }))), Je = /* @__PURE__ */ u.forwardRef(function(t, n) {
2061
+ }))), Qe = /* @__PURE__ */ c.forwardRef(function(t, n) {
2053
2062
  var r;
2054
- const s = he({
2063
+ const s = ce({
2055
2064
  props: t,
2056
2065
  name: "MuiOutlinedInput"
2057
2066
  }), {
2058
2067
  components: i = {},
2059
2068
  fullWidth: a = !1,
2060
- inputComponent: c = "input",
2061
- label: f,
2069
+ inputComponent: u = "input",
2070
+ label: d,
2062
2071
  multiline: b = !1,
2063
2072
  notched: y,
2064
2073
  slots: h = {},
2065
- type: T = "text",
2066
- ...d
2067
- } = s, g = Xt(s), F = fo(), R = bo({
2074
+ type: v = "text",
2075
+ ...p
2076
+ } = s, g = Jt(s), k = fo(), E = go({
2068
2077
  props: s,
2069
- muiFormControl: F,
2078
+ muiFormControl: k,
2070
2079
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
2071
2080
  }), m = {
2072
2081
  ...s,
2073
- color: R.color || "primary",
2074
- disabled: R.disabled,
2075
- error: R.error,
2076
- focused: R.focused,
2077
- formControl: F,
2082
+ color: E.color || "primary",
2083
+ disabled: E.disabled,
2084
+ error: E.error,
2085
+ focused: E.focused,
2086
+ formControl: k,
2078
2087
  fullWidth: a,
2079
- hiddenLabel: R.hiddenLabel,
2088
+ hiddenLabel: E.hiddenLabel,
2080
2089
  multiline: b,
2081
- size: R.size,
2082
- type: T
2083
- }, v = h.root ?? i.Root ?? Zt, l = h.input ?? i.Input ?? Qt;
2084
- return /* @__PURE__ */ P(ro, {
2090
+ size: E.size,
2091
+ type: v
2092
+ }, T = h.root ?? i.Root ?? Qt, l = h.input ?? i.Input ?? on;
2093
+ return /* @__PURE__ */ x(so, {
2085
2094
  slots: {
2086
- root: v,
2095
+ root: T,
2087
2096
  input: l
2088
2097
  },
2089
- renderSuffix: (p) => /* @__PURE__ */ P(Jt, {
2098
+ renderSuffix: (f) => /* @__PURE__ */ x(en, {
2090
2099
  ownerState: m,
2091
2100
  className: g.notchedOutline,
2092
- label: f != null && f !== "" && R.required ? r || (r = /* @__PURE__ */ ye(u.Fragment, {
2093
- children: [f, " ", "*"]
2094
- })) : f,
2095
- notched: typeof y < "u" ? y : !!(p.startAdornment || p.filled || p.focused)
2101
+ label: d != null && d !== "" && E.required ? r || (r = /* @__PURE__ */ ve(c.Fragment, {
2102
+ children: [d, " ", "*"]
2103
+ })) : d,
2104
+ notched: typeof y < "u" ? y : !!(f.startAdornment || f.filled || f.focused)
2096
2105
  }),
2097
2106
  fullWidth: a,
2098
- inputComponent: c,
2107
+ inputComponent: u,
2099
2108
  multiline: b,
2100
2109
  ref: n,
2101
- type: T,
2102
- ...d,
2110
+ type: v,
2111
+ ...p,
2103
2112
  classes: {
2104
2113
  ...g,
2105
2114
  notchedOutline: null
2106
2115
  }
2107
2116
  });
2108
2117
  });
2109
- process.env.NODE_ENV !== "production" && (Je.propTypes = {
2118
+ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
2110
2119
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2111
2120
  // │ These PropTypes are generated from the TypeScript type definitions. │
2112
2121
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2184,7 +2193,7 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
2184
2193
  /**
2185
2194
  * Pass a ref to the `input` element.
2186
2195
  */
2187
- inputRef: xe,
2196
+ inputRef: Pe,
2188
2197
  /**
2189
2198
  * The label of the `input`. It is only used for layout. The actual labelling
2190
2199
  * is handled by `InputLabel`.
@@ -2271,24 +2280,254 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
2271
2280
  */
2272
2281
  value: e.any
2273
2282
  });
2274
- Je && (Je.muiName = "Input");
2275
- const ot = /* @__PURE__ */ u.createContext({});
2276
- process.env.NODE_ENV !== "production" && (ot.displayName = "ListContext");
2277
- function en(o) {
2278
- return re("MuiList", o);
2283
+ Qe && (Qe.muiName = "Input");
2284
+ function tn(o) {
2285
+ return te("MuiFormControl", o);
2279
2286
  }
2280
- ne("MuiList", ["root", "padding", "dense", "subheader"]);
2281
- const on = (o) => {
2287
+ oe("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
2288
+ const nn = (o) => {
2289
+ const {
2290
+ classes: t,
2291
+ margin: n,
2292
+ fullWidth: r
2293
+ } = o, s = {
2294
+ root: ["root", n !== "none" && `margin${ge(n)}`, r && "fullWidth"]
2295
+ };
2296
+ return ne(s, tn, t);
2297
+ }, rn = $("div", {
2298
+ name: "MuiFormControl",
2299
+ slot: "Root",
2300
+ overridesResolver: ({
2301
+ ownerState: o
2302
+ }, t) => ({
2303
+ ...t.root,
2304
+ ...t[`margin${ge(o.margin)}`],
2305
+ ...o.fullWidth && t.fullWidth
2306
+ })
2307
+ })({
2308
+ display: "inline-flex",
2309
+ flexDirection: "column",
2310
+ position: "relative",
2311
+ // Reset fieldset default style.
2312
+ minWidth: 0,
2313
+ padding: 0,
2314
+ margin: 0,
2315
+ border: 0,
2316
+ verticalAlign: "top",
2317
+ // Fix alignment issue on Safari.
2318
+ variants: [{
2319
+ props: {
2320
+ margin: "normal"
2321
+ },
2322
+ style: {
2323
+ marginTop: 16,
2324
+ marginBottom: 8
2325
+ }
2326
+ }, {
2327
+ props: {
2328
+ margin: "dense"
2329
+ },
2330
+ style: {
2331
+ marginTop: 8,
2332
+ marginBottom: 4
2333
+ }
2334
+ }, {
2335
+ props: {
2336
+ fullWidth: !0
2337
+ },
2338
+ style: {
2339
+ width: "100%"
2340
+ }
2341
+ }]
2342
+ }), sn = /* @__PURE__ */ c.forwardRef(function(t, n) {
2343
+ const r = ce({
2344
+ props: t,
2345
+ name: "MuiFormControl"
2346
+ }), {
2347
+ children: s,
2348
+ className: i,
2349
+ color: a = "primary",
2350
+ component: u = "div",
2351
+ disabled: d = !1,
2352
+ error: b = !1,
2353
+ focused: y,
2354
+ fullWidth: h = !1,
2355
+ hiddenLabel: v = !1,
2356
+ margin: p = "none",
2357
+ required: g = !1,
2358
+ size: k = "medium",
2359
+ variant: E = "outlined",
2360
+ ...m
2361
+ } = r, T = {
2362
+ ...r,
2363
+ color: a,
2364
+ component: u,
2365
+ disabled: d,
2366
+ error: b,
2367
+ fullWidth: h,
2368
+ hiddenLabel: v,
2369
+ margin: p,
2370
+ required: g,
2371
+ size: k,
2372
+ variant: E
2373
+ }, l = nn(T), [f, S] = c.useState(() => {
2374
+ let F = !1;
2375
+ return s && c.Children.forEach(s, (R) => {
2376
+ if (!io(R, ["Input", "Select"]))
2377
+ return;
2378
+ const w = io(R, ["Select"]) ? R.props.input : R;
2379
+ w && Lt(w.props) && (F = !0);
2380
+ }), F;
2381
+ }), [I, P] = c.useState(() => {
2382
+ let F = !1;
2383
+ return s && c.Children.forEach(s, (R) => {
2384
+ io(R, ["Input", "Select"]) && (Xe(R.props, !0) || Xe(R.props.inputProps, !0)) && (F = !0);
2385
+ }), F;
2386
+ }), [C, N] = c.useState(!1);
2387
+ d && C && N(!1);
2388
+ const M = y !== void 0 && !d ? y : C;
2389
+ let A;
2390
+ const W = c.useRef(!1);
2391
+ process.env.NODE_ENV !== "production" && (A = () => (W.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
2392
+ `)), W.current = !0, () => {
2393
+ W.current = !1;
2394
+ }));
2395
+ const H = c.useMemo(() => ({
2396
+ adornedStart: f,
2397
+ setAdornedStart: S,
2398
+ color: a,
2399
+ disabled: d,
2400
+ error: b,
2401
+ filled: I,
2402
+ focused: M,
2403
+ fullWidth: h,
2404
+ hiddenLabel: v,
2405
+ size: k,
2406
+ onBlur: () => {
2407
+ N(!1);
2408
+ },
2409
+ onEmpty: () => {
2410
+ P(!1);
2411
+ },
2412
+ onFilled: () => {
2413
+ P(!0);
2414
+ },
2415
+ onFocus: () => {
2416
+ N(!0);
2417
+ },
2418
+ registerEffect: A,
2419
+ required: g,
2420
+ variant: E
2421
+ }), [f, a, d, b, I, M, h, v, A, g, k, E]);
2422
+ return /* @__PURE__ */ x(_o.Provider, {
2423
+ value: H,
2424
+ children: /* @__PURE__ */ x(rn, {
2425
+ as: u,
2426
+ ownerState: T,
2427
+ className: Q(l.root, i),
2428
+ ref: n,
2429
+ ...m,
2430
+ children: s
2431
+ })
2432
+ });
2433
+ });
2434
+ process.env.NODE_ENV !== "production" && (sn.propTypes = {
2435
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
2436
+ // │ These PropTypes are generated from the TypeScript type definitions. │
2437
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
2438
+ // └─────────────────────────────────────────────────────────────────────┘
2439
+ /**
2440
+ * The content of the component.
2441
+ */
2442
+ children: e.node,
2443
+ /**
2444
+ * Override or extend the styles applied to the component.
2445
+ */
2446
+ classes: e.object,
2447
+ /**
2448
+ * @ignore
2449
+ */
2450
+ className: e.string,
2451
+ /**
2452
+ * The color of the component.
2453
+ * It supports both default and custom theme colors, which can be added as shown in the
2454
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
2455
+ * @default 'primary'
2456
+ */
2457
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
2458
+ /**
2459
+ * The component used for the root node.
2460
+ * Either a string to use a HTML element or a component.
2461
+ */
2462
+ component: e.elementType,
2463
+ /**
2464
+ * If `true`, the label, input and helper text should be displayed in a disabled state.
2465
+ * @default false
2466
+ */
2467
+ disabled: e.bool,
2468
+ /**
2469
+ * If `true`, the label is displayed in an error state.
2470
+ * @default false
2471
+ */
2472
+ error: e.bool,
2473
+ /**
2474
+ * If `true`, the component is displayed in focused state.
2475
+ */
2476
+ focused: e.bool,
2477
+ /**
2478
+ * If `true`, the component will take up the full width of its container.
2479
+ * @default false
2480
+ */
2481
+ fullWidth: e.bool,
2482
+ /**
2483
+ * If `true`, the label is hidden.
2484
+ * This is used to increase density for a `FilledInput`.
2485
+ * Be sure to add `aria-label` to the `input` element.
2486
+ * @default false
2487
+ */
2488
+ hiddenLabel: e.bool,
2489
+ /**
2490
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
2491
+ * @default 'none'
2492
+ */
2493
+ margin: e.oneOf(["dense", "none", "normal"]),
2494
+ /**
2495
+ * If `true`, the label will indicate that the `input` is required.
2496
+ * @default false
2497
+ */
2498
+ required: e.bool,
2499
+ /**
2500
+ * The size of the component.
2501
+ * @default 'medium'
2502
+ */
2503
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
2504
+ /**
2505
+ * The system prop that allows defining system overrides as well as additional CSS styles.
2506
+ */
2507
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2508
+ /**
2509
+ * The variant to use.
2510
+ * @default 'outlined'
2511
+ */
2512
+ variant: e.oneOf(["filled", "outlined", "standard"])
2513
+ });
2514
+ const nt = /* @__PURE__ */ c.createContext({});
2515
+ process.env.NODE_ENV !== "production" && (nt.displayName = "ListContext");
2516
+ function an(o) {
2517
+ return te("MuiList", o);
2518
+ }
2519
+ oe("MuiList", ["root", "padding", "dense", "subheader"]);
2520
+ const ln = (o) => {
2282
2521
  const {
2283
2522
  classes: t,
2284
2523
  disablePadding: n,
2285
2524
  dense: r,
2286
2525
  subheader: s
2287
2526
  } = o;
2288
- return se({
2527
+ return ne({
2289
2528
  root: ["root", !n && "padding", r && "dense", s && "subheader"]
2290
- }, en, t);
2291
- }, tn = $("ul", {
2529
+ }, an, t);
2530
+ }, cn = $("ul", {
2292
2531
  name: "MuiList",
2293
2532
  slot: "Root",
2294
2533
  overridesResolver: (o, t) => {
@@ -2318,39 +2557,39 @@ const on = (o) => {
2318
2557
  paddingTop: 0
2319
2558
  }
2320
2559
  }]
2321
- }), tt = /* @__PURE__ */ u.forwardRef(function(t, n) {
2322
- const r = he({
2560
+ }), rt = /* @__PURE__ */ c.forwardRef(function(t, n) {
2561
+ const r = ce({
2323
2562
  props: t,
2324
2563
  name: "MuiList"
2325
2564
  }), {
2326
2565
  children: s,
2327
2566
  className: i,
2328
2567
  component: a = "ul",
2329
- dense: c = !1,
2330
- disablePadding: f = !1,
2568
+ dense: u = !1,
2569
+ disablePadding: d = !1,
2331
2570
  subheader: b,
2332
2571
  ...y
2333
- } = r, h = u.useMemo(() => ({
2334
- dense: c
2335
- }), [c]), T = {
2572
+ } = r, h = c.useMemo(() => ({
2573
+ dense: u
2574
+ }), [u]), v = {
2336
2575
  ...r,
2337
2576
  component: a,
2338
- dense: c,
2339
- disablePadding: f
2340
- }, d = on(T);
2341
- return /* @__PURE__ */ P(ot.Provider, {
2577
+ dense: u,
2578
+ disablePadding: d
2579
+ }, p = ln(v);
2580
+ return /* @__PURE__ */ x(nt.Provider, {
2342
2581
  value: h,
2343
- children: /* @__PURE__ */ ye(tn, {
2582
+ children: /* @__PURE__ */ ve(cn, {
2344
2583
  as: a,
2345
- className: ee(d.root, i),
2584
+ className: Q(p.root, i),
2346
2585
  ref: n,
2347
- ownerState: T,
2586
+ ownerState: v,
2348
2587
  ...y,
2349
2588
  children: [b, s]
2350
2589
  })
2351
2590
  });
2352
2591
  });
2353
- process.env.NODE_ENV !== "production" && (tt.propTypes = {
2592
+ process.env.NODE_ENV !== "production" && (rt.propTypes = {
2354
2593
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2355
2594
  // │ These PropTypes are generated from the TypeScript type definitions. │
2356
2595
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2393,35 +2632,35 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
2393
2632
  */
2394
2633
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
2395
2634
  });
2396
- function so(o, t, n) {
2635
+ function ao(o, t, n) {
2397
2636
  return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
2398
2637
  }
2399
- function Mo(o, t, n) {
2638
+ function Fo(o, t, n) {
2400
2639
  return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
2401
2640
  }
2402
- function nt(o, t) {
2641
+ function st(o, t) {
2403
2642
  if (t === void 0)
2404
2643
  return !0;
2405
2644
  let n = o.innerText;
2406
2645
  return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
2407
2646
  }
2408
- function Ue(o, t, n, r, s, i) {
2409
- let a = !1, c = s(o, t, t ? n : !1);
2410
- for (; c; ) {
2411
- if (c === o.firstChild) {
2647
+ function ze(o, t, n, r, s, i) {
2648
+ let a = !1, u = s(o, t, t ? n : !1);
2649
+ for (; u; ) {
2650
+ if (u === o.firstChild) {
2412
2651
  if (a)
2413
2652
  return !1;
2414
2653
  a = !0;
2415
2654
  }
2416
- const f = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
2417
- if (!c.hasAttribute("tabindex") || !nt(c, i) || f)
2418
- c = s(o, c, n);
2655
+ const d = r ? !1 : u.disabled || u.getAttribute("aria-disabled") === "true";
2656
+ if (!u.hasAttribute("tabindex") || !st(u, i) || d)
2657
+ u = s(o, u, n);
2419
2658
  else
2420
- return c.focus(), !0;
2659
+ return u.focus(), !0;
2421
2660
  }
2422
2661
  return !1;
2423
2662
  }
2424
- const rt = /* @__PURE__ */ u.forwardRef(function(t, n) {
2663
+ const it = /* @__PURE__ */ c.forwardRef(function(t, n) {
2425
2664
  const {
2426
2665
  // private
2427
2666
  // eslint-disable-next-line react/prop-types
@@ -2429,82 +2668,82 @@ const rt = /* @__PURE__ */ u.forwardRef(function(t, n) {
2429
2668
  autoFocus: s = !1,
2430
2669
  autoFocusItem: i = !1,
2431
2670
  children: a,
2432
- className: c,
2433
- disabledItemsFocusable: f = !1,
2671
+ className: u,
2672
+ disabledItemsFocusable: d = !1,
2434
2673
  disableListWrap: b = !1,
2435
2674
  onKeyDown: y,
2436
2675
  variant: h = "selectedMenu",
2437
- ...T
2438
- } = t, d = u.useRef(null), g = u.useRef({
2676
+ ...v
2677
+ } = t, p = c.useRef(null), g = c.useRef({
2439
2678
  keys: [],
2440
2679
  repeating: !0,
2441
2680
  previousKeyMatched: !0,
2442
2681
  lastTime: null
2443
2682
  });
2444
2683
  Ye(() => {
2445
- s && d.current.focus();
2446
- }, [s]), u.useImperativeHandle(r, () => ({
2684
+ s && p.current.focus();
2685
+ }, [s]), c.useImperativeHandle(r, () => ({
2447
2686
  adjustStyleForScrollbar: (l, {
2448
- direction: p
2687
+ direction: f
2449
2688
  }) => {
2450
- const O = !d.current.style.width;
2451
- if (l.clientHeight < d.current.clientHeight && O) {
2452
- const I = `${Xo(ve(l))}px`;
2453
- d.current.style[p === "rtl" ? "paddingLeft" : "paddingRight"] = I, d.current.style.width = `calc(100% + ${I})`;
2689
+ const S = !p.current.style.width;
2690
+ if (l.clientHeight < p.current.clientHeight && S) {
2691
+ const I = `${Qo(Te(l))}px`;
2692
+ p.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = I, p.current.style.width = `calc(100% + ${I})`;
2454
2693
  }
2455
- return d.current;
2694
+ return p.current;
2456
2695
  }
2457
2696
  }), []);
2458
- const F = (l) => {
2459
- const p = d.current, O = l.key;
2697
+ const k = (l) => {
2698
+ const f = p.current, S = l.key;
2460
2699
  if (l.ctrlKey || l.metaKey || l.altKey) {
2461
2700
  y && y(l);
2462
2701
  return;
2463
2702
  }
2464
- const x = le(p).activeElement;
2465
- if (O === "ArrowDown")
2466
- l.preventDefault(), Ue(p, x, b, f, so);
2467
- else if (O === "ArrowUp")
2468
- l.preventDefault(), Ue(p, x, b, f, Mo);
2469
- else if (O === "Home")
2470
- l.preventDefault(), Ue(p, null, b, f, so);
2471
- else if (O === "End")
2472
- l.preventDefault(), Ue(p, null, b, f, Mo);
2473
- else if (O.length === 1) {
2474
- const S = g.current, k = O.toLowerCase(), N = performance.now();
2475
- S.keys.length > 0 && (N - S.lastTime > 500 ? (S.keys = [], S.repeating = !0, S.previousKeyMatched = !0) : S.repeating && k !== S.keys[0] && (S.repeating = !1)), S.lastTime = N, S.keys.push(k);
2476
- const z = x && !S.repeating && nt(x, S);
2477
- S.previousKeyMatched && (z || Ue(p, x, !1, f, so, S)) ? l.preventDefault() : S.previousKeyMatched = !1;
2703
+ const P = le(f).activeElement;
2704
+ if (S === "ArrowDown")
2705
+ l.preventDefault(), ze(f, P, b, d, ao);
2706
+ else if (S === "ArrowUp")
2707
+ l.preventDefault(), ze(f, P, b, d, Fo);
2708
+ else if (S === "Home")
2709
+ l.preventDefault(), ze(f, null, b, d, ao);
2710
+ else if (S === "End")
2711
+ l.preventDefault(), ze(f, null, b, d, Fo);
2712
+ else if (S.length === 1) {
2713
+ const C = g.current, N = S.toLowerCase(), M = performance.now();
2714
+ C.keys.length > 0 && (M - C.lastTime > 500 ? (C.keys = [], C.repeating = !0, C.previousKeyMatched = !0) : C.repeating && N !== C.keys[0] && (C.repeating = !1)), C.lastTime = M, C.keys.push(N);
2715
+ const A = P && !C.repeating && st(P, C);
2716
+ C.previousKeyMatched && (A || ze(f, P, !1, d, ao, C)) ? l.preventDefault() : C.previousKeyMatched = !1;
2478
2717
  }
2479
2718
  y && y(l);
2480
- }, R = ge(d, n);
2719
+ }, E = ye(p, n);
2481
2720
  let m = -1;
2482
- u.Children.forEach(a, (l, p) => {
2483
- if (!/* @__PURE__ */ u.isValidElement(l)) {
2484
- m === p && (m += 1, m >= a.length && (m = -1));
2721
+ c.Children.forEach(a, (l, f) => {
2722
+ if (!/* @__PURE__ */ c.isValidElement(l)) {
2723
+ m === f && (m += 1, m >= a.length && (m = -1));
2485
2724
  return;
2486
2725
  }
2487
- process.env.NODE_ENV !== "production" && co.isFragment(l) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2488
- `)), l.props.disabled || (h === "selectedMenu" && l.props.selected || m === -1) && (m = p), m === p && (l.props.disabled || l.props.muiSkipListHighlight || l.type.muiSkipListHighlight) && (m += 1, m >= a.length && (m = -1));
2726
+ process.env.NODE_ENV !== "production" && po.isFragment(l) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
2727
+ `)), l.props.disabled || (h === "selectedMenu" && l.props.selected || m === -1) && (m = f), m === f && (l.props.disabled || l.props.muiSkipListHighlight || l.type.muiSkipListHighlight) && (m += 1, m >= a.length && (m = -1));
2489
2728
  });
2490
- const v = u.Children.map(a, (l, p) => {
2491
- if (p === m) {
2492
- const O = {};
2493
- return i && (O.autoFocus = !0), l.props.tabIndex === void 0 && h === "selectedMenu" && (O.tabIndex = 0), /* @__PURE__ */ u.cloneElement(l, O);
2729
+ const T = c.Children.map(a, (l, f) => {
2730
+ if (f === m) {
2731
+ const S = {};
2732
+ return i && (S.autoFocus = !0), l.props.tabIndex === void 0 && h === "selectedMenu" && (S.tabIndex = 0), /* @__PURE__ */ c.cloneElement(l, S);
2494
2733
  }
2495
2734
  return l;
2496
2735
  });
2497
- return /* @__PURE__ */ P(tt, {
2736
+ return /* @__PURE__ */ x(rt, {
2498
2737
  role: "menu",
2499
- ref: R,
2500
- className: c,
2501
- onKeyDown: F,
2738
+ ref: E,
2739
+ className: u,
2740
+ onKeyDown: k,
2502
2741
  tabIndex: s ? 0 : -1,
2503
- ...T,
2504
- children: v
2742
+ ...v,
2743
+ children: T
2505
2744
  });
2506
2745
  });
2507
- process.env.NODE_ENV !== "production" && (rt.propTypes = {
2746
+ process.env.NODE_ENV !== "production" && (it.propTypes = {
2508
2747
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2509
2748
  // │ These PropTypes are generated from the TypeScript type definitions. │
2510
2749
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2549,56 +2788,56 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
2549
2788
  */
2550
2789
  variant: e.oneOf(["menu", "selectedMenu"])
2551
2790
  });
2552
- function nn(o) {
2791
+ function un(o) {
2553
2792
  const t = le(o);
2554
- return t.body === o ? ve(o).innerWidth > t.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
2793
+ return t.body === o ? Te(o).innerWidth > t.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
2555
2794
  }
2556
2795
  function Ve(o, t) {
2557
2796
  t ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
2558
2797
  }
2559
- function ko(o) {
2560
- return parseInt(ve(o).getComputedStyle(o).paddingRight, 10) || 0;
2798
+ function Do(o) {
2799
+ return parseInt(Te(o).getComputedStyle(o).paddingRight, 10) || 0;
2561
2800
  }
2562
- function rn(o) {
2801
+ function dn(o) {
2563
2802
  const n = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(o.tagName), r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
2564
2803
  return n || r;
2565
2804
  }
2566
- function Fo(o, t, n, r, s) {
2805
+ function Ao(o, t, n, r, s) {
2567
2806
  const i = [t, n, ...r];
2568
2807
  [].forEach.call(o.children, (a) => {
2569
- const c = !i.includes(a), f = !rn(a);
2570
- c && f && Ve(a, s);
2808
+ const u = !i.includes(a), d = !dn(a);
2809
+ u && d && Ve(a, s);
2571
2810
  });
2572
2811
  }
2573
- function io(o, t) {
2812
+ function lo(o, t) {
2574
2813
  let n = -1;
2575
2814
  return o.some((r, s) => t(r) ? (n = s, !0) : !1), n;
2576
2815
  }
2577
- function sn(o, t) {
2816
+ function pn(o, t) {
2578
2817
  const n = [], r = o.container;
2579
2818
  if (!t.disableScrollLock) {
2580
- if (nn(r)) {
2581
- const a = Xo(ve(r));
2819
+ if (un(r)) {
2820
+ const a = Qo(Te(r));
2582
2821
  n.push({
2583
2822
  value: r.style.paddingRight,
2584
2823
  property: "padding-right",
2585
2824
  el: r
2586
- }), r.style.paddingRight = `${ko(r) + a}px`;
2587
- const c = le(r).querySelectorAll(".mui-fixed");
2588
- [].forEach.call(c, (f) => {
2825
+ }), r.style.paddingRight = `${Do(r) + a}px`;
2826
+ const u = le(r).querySelectorAll(".mui-fixed");
2827
+ [].forEach.call(u, (d) => {
2589
2828
  n.push({
2590
- value: f.style.paddingRight,
2829
+ value: d.style.paddingRight,
2591
2830
  property: "padding-right",
2592
- el: f
2593
- }), f.style.paddingRight = `${ko(f) + a}px`;
2831
+ el: d
2832
+ }), d.style.paddingRight = `${Do(d) + a}px`;
2594
2833
  });
2595
2834
  }
2596
2835
  let i;
2597
2836
  if (r.parentNode instanceof DocumentFragment)
2598
2837
  i = le(r).body;
2599
2838
  else {
2600
- const a = r.parentElement, c = ve(r);
2601
- i = (a == null ? void 0 : a.nodeName) === "HTML" && c.getComputedStyle(a).overflowY === "scroll" ? a : r;
2839
+ const a = r.parentElement, u = Te(r);
2840
+ i = (a == null ? void 0 : a.nodeName) === "HTML" && u.getComputedStyle(a).overflowY === "scroll" ? a : r;
2602
2841
  }
2603
2842
  n.push({
2604
2843
  value: i.style.overflow,
@@ -2618,19 +2857,19 @@ function sn(o, t) {
2618
2857
  n.forEach(({
2619
2858
  value: i,
2620
2859
  el: a,
2621
- property: c
2860
+ property: u
2622
2861
  }) => {
2623
- i ? a.style.setProperty(c, i) : a.style.removeProperty(c);
2862
+ i ? a.style.setProperty(u, i) : a.style.removeProperty(u);
2624
2863
  });
2625
2864
  };
2626
2865
  }
2627
- function an(o) {
2866
+ function fn(o) {
2628
2867
  const t = [];
2629
2868
  return [].forEach.call(o.children, (n) => {
2630
2869
  n.getAttribute("aria-hidden") === "true" && t.push(n);
2631
2870
  }), t;
2632
2871
  }
2633
- class ln {
2872
+ class mn {
2634
2873
  constructor() {
2635
2874
  this.modals = [], this.containers = [];
2636
2875
  }
@@ -2639,9 +2878,9 @@ class ln {
2639
2878
  if (r !== -1)
2640
2879
  return r;
2641
2880
  r = this.modals.length, this.modals.push(t), t.modalRef && Ve(t.modalRef, !1);
2642
- const s = an(n);
2643
- Fo(n, t.mount, t.modalRef, s, !0);
2644
- const i = io(this.containers, (a) => a.container === n);
2881
+ const s = fn(n);
2882
+ Ao(n, t.mount, t.modalRef, s, !0);
2883
+ const i = lo(this.containers, (a) => a.container === n);
2645
2884
  return i !== -1 ? (this.containers[i].modals.push(t), r) : (this.containers.push({
2646
2885
  modals: [t],
2647
2886
  container: n,
@@ -2650,16 +2889,16 @@ class ln {
2650
2889
  }), r);
2651
2890
  }
2652
2891
  mount(t, n) {
2653
- const r = io(this.containers, (i) => i.modals.includes(t)), s = this.containers[r];
2654
- s.restore || (s.restore = sn(s, n));
2892
+ const r = lo(this.containers, (i) => i.modals.includes(t)), s = this.containers[r];
2893
+ s.restore || (s.restore = pn(s, n));
2655
2894
  }
2656
2895
  remove(t, n = !0) {
2657
2896
  const r = this.modals.indexOf(t);
2658
2897
  if (r === -1)
2659
2898
  return r;
2660
- const s = io(this.containers, (a) => a.modals.includes(t)), i = this.containers[s];
2899
+ const s = lo(this.containers, (a) => a.modals.includes(t)), i = this.containers[s];
2661
2900
  if (i.modals.splice(i.modals.indexOf(t), 1), this.modals.splice(r, 1), i.modals.length === 0)
2662
- i.restore && i.restore(), t.modalRef && Ve(t.modalRef, n), Fo(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
2901
+ i.restore && i.restore(), t.modalRef && Ve(t.modalRef, n), Ao(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
2663
2902
  else {
2664
2903
  const a = i.modals[i.modals.length - 1];
2665
2904
  a.modalRef && Ve(a.modalRef, !1);
@@ -2670,117 +2909,117 @@ class ln {
2670
2909
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
2671
2910
  }
2672
2911
  }
2673
- const cn = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
2674
- function un(o) {
2912
+ const bn = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
2913
+ function hn(o) {
2675
2914
  const t = parseInt(o.getAttribute("tabindex") || "", 10);
2676
2915
  return Number.isNaN(t) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : t;
2677
2916
  }
2678
- function dn(o) {
2917
+ function gn(o) {
2679
2918
  if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
2680
2919
  return !1;
2681
2920
  const t = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
2682
2921
  let n = t(`[name="${o.name}"]:checked`);
2683
2922
  return n || (n = t(`[name="${o.name}"]`)), n !== o;
2684
2923
  }
2685
- function pn(o) {
2686
- return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || dn(o));
2924
+ function yn(o) {
2925
+ return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || gn(o));
2687
2926
  }
2688
- function fn(o) {
2927
+ function vn(o) {
2689
2928
  const t = [], n = [];
2690
- return Array.from(o.querySelectorAll(cn)).forEach((r, s) => {
2691
- const i = un(r);
2692
- i === -1 || !pn(r) || (i === 0 ? t.push(r) : n.push({
2929
+ return Array.from(o.querySelectorAll(bn)).forEach((r, s) => {
2930
+ const i = hn(r);
2931
+ i === -1 || !yn(r) || (i === 0 ? t.push(r) : n.push({
2693
2932
  documentOrder: s,
2694
2933
  tabIndex: i,
2695
2934
  node: r
2696
2935
  }));
2697
2936
  }), n.sort((r, s) => r.tabIndex === s.tabIndex ? r.documentOrder - s.documentOrder : r.tabIndex - s.tabIndex).map((r) => r.node).concat(t);
2698
2937
  }
2699
- function mn() {
2938
+ function Tn() {
2700
2939
  return !0;
2701
2940
  }
2702
- function Qe(o) {
2941
+ function eo(o) {
2703
2942
  const {
2704
2943
  children: t,
2705
2944
  disableAutoFocus: n = !1,
2706
2945
  disableEnforceFocus: r = !1,
2707
2946
  disableRestoreFocus: s = !1,
2708
- getTabbable: i = fn,
2709
- isEnabled: a = mn,
2710
- open: c
2711
- } = o, f = u.useRef(!1), b = u.useRef(null), y = u.useRef(null), h = u.useRef(null), T = u.useRef(null), d = u.useRef(!1), g = u.useRef(null), F = ge(uo(t), g), R = u.useRef(null);
2712
- u.useEffect(() => {
2713
- !c || !g.current || (d.current = !n);
2714
- }, [n, c]), u.useEffect(() => {
2715
- if (!c || !g.current)
2947
+ getTabbable: i = vn,
2948
+ isEnabled: a = Tn,
2949
+ open: u
2950
+ } = o, d = c.useRef(!1), b = c.useRef(null), y = c.useRef(null), h = c.useRef(null), v = c.useRef(null), p = c.useRef(!1), g = c.useRef(null), k = ye(mo(t), g), E = c.useRef(null);
2951
+ c.useEffect(() => {
2952
+ !u || !g.current || (p.current = !n);
2953
+ }, [n, u]), c.useEffect(() => {
2954
+ if (!u || !g.current)
2716
2955
  return;
2717
2956
  const l = le(g.current);
2718
2957
  return g.current.contains(l.activeElement) || (g.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
2719
- `)), g.current.setAttribute("tabIndex", "-1")), d.current && g.current.focus()), () => {
2720
- s || (h.current && h.current.focus && (f.current = !0, h.current.focus()), h.current = null);
2958
+ `)), g.current.setAttribute("tabIndex", "-1")), p.current && g.current.focus()), () => {
2959
+ s || (h.current && h.current.focus && (d.current = !0, h.current.focus()), h.current = null);
2721
2960
  };
2722
- }, [c]), u.useEffect(() => {
2723
- if (!c || !g.current)
2961
+ }, [u]), c.useEffect(() => {
2962
+ if (!u || !g.current)
2724
2963
  return;
2725
- const l = le(g.current), p = (x) => {
2726
- R.current = x, !(r || !a() || x.key !== "Tab") && l.activeElement === g.current && x.shiftKey && (f.current = !0, y.current && y.current.focus());
2727
- }, O = () => {
2728
- var k, N;
2729
- const x = g.current;
2730
- if (x === null)
2964
+ const l = le(g.current), f = (P) => {
2965
+ E.current = P, !(r || !a() || P.key !== "Tab") && l.activeElement === g.current && P.shiftKey && (d.current = !0, y.current && y.current.focus());
2966
+ }, S = () => {
2967
+ var N, M;
2968
+ const P = g.current;
2969
+ if (P === null)
2731
2970
  return;
2732
- if (!l.hasFocus() || !a() || f.current) {
2733
- f.current = !1;
2971
+ if (!l.hasFocus() || !a() || d.current) {
2972
+ d.current = !1;
2734
2973
  return;
2735
2974
  }
2736
- if (x.contains(l.activeElement) || r && l.activeElement !== b.current && l.activeElement !== y.current)
2975
+ if (P.contains(l.activeElement) || r && l.activeElement !== b.current && l.activeElement !== y.current)
2737
2976
  return;
2738
- if (l.activeElement !== T.current)
2739
- T.current = null;
2740
- else if (T.current !== null)
2977
+ if (l.activeElement !== v.current)
2978
+ v.current = null;
2979
+ else if (v.current !== null)
2741
2980
  return;
2742
- if (!d.current)
2981
+ if (!p.current)
2743
2982
  return;
2744
- let S = [];
2745
- if ((l.activeElement === b.current || l.activeElement === y.current) && (S = i(g.current)), S.length > 0) {
2746
- const z = !!((k = R.current) != null && k.shiftKey && ((N = R.current) == null ? void 0 : N.key) === "Tab"), _ = S[0], K = S[S.length - 1];
2747
- typeof _ != "string" && typeof K != "string" && (z ? K.focus() : _.focus());
2983
+ let C = [];
2984
+ if ((l.activeElement === b.current || l.activeElement === y.current) && (C = i(g.current)), C.length > 0) {
2985
+ const A = !!((N = E.current) != null && N.shiftKey && ((M = E.current) == null ? void 0 : M.key) === "Tab"), W = C[0], H = C[C.length - 1];
2986
+ typeof W != "string" && typeof H != "string" && (A ? H.focus() : W.focus());
2748
2987
  } else
2749
- x.focus();
2988
+ P.focus();
2750
2989
  };
2751
- l.addEventListener("focusin", O), l.addEventListener("keydown", p, !0);
2990
+ l.addEventListener("focusin", S), l.addEventListener("keydown", f, !0);
2752
2991
  const I = setInterval(() => {
2753
- l.activeElement && l.activeElement.tagName === "BODY" && O();
2992
+ l.activeElement && l.activeElement.tagName === "BODY" && S();
2754
2993
  }, 50);
2755
2994
  return () => {
2756
- clearInterval(I), l.removeEventListener("focusin", O), l.removeEventListener("keydown", p, !0);
2995
+ clearInterval(I), l.removeEventListener("focusin", S), l.removeEventListener("keydown", f, !0);
2757
2996
  };
2758
- }, [n, r, s, a, c, i]);
2997
+ }, [n, r, s, a, u, i]);
2759
2998
  const m = (l) => {
2760
- h.current === null && (h.current = l.relatedTarget), d.current = !0, T.current = l.target;
2761
- const p = t.props.onFocus;
2762
- p && p(l);
2763
- }, v = (l) => {
2764
- h.current === null && (h.current = l.relatedTarget), d.current = !0;
2999
+ h.current === null && (h.current = l.relatedTarget), p.current = !0, v.current = l.target;
3000
+ const f = t.props.onFocus;
3001
+ f && f(l);
3002
+ }, T = (l) => {
3003
+ h.current === null && (h.current = l.relatedTarget), p.current = !0;
2765
3004
  };
2766
- return /* @__PURE__ */ ye(u.Fragment, {
2767
- children: [/* @__PURE__ */ P("div", {
2768
- tabIndex: c ? 0 : -1,
2769
- onFocus: v,
3005
+ return /* @__PURE__ */ ve(c.Fragment, {
3006
+ children: [/* @__PURE__ */ x("div", {
3007
+ tabIndex: u ? 0 : -1,
3008
+ onFocus: T,
2770
3009
  ref: b,
2771
3010
  "data-testid": "sentinelStart"
2772
- }), /* @__PURE__ */ u.cloneElement(t, {
2773
- ref: F,
3011
+ }), /* @__PURE__ */ c.cloneElement(t, {
3012
+ ref: k,
2774
3013
  onFocus: m
2775
- }), /* @__PURE__ */ P("div", {
2776
- tabIndex: c ? 0 : -1,
2777
- onFocus: v,
3014
+ }), /* @__PURE__ */ x("div", {
3015
+ tabIndex: u ? 0 : -1,
3016
+ onFocus: T,
2778
3017
  ref: y,
2779
3018
  "data-testid": "sentinelEnd"
2780
3019
  })]
2781
3020
  });
2782
3021
  }
2783
- process.env.NODE_ENV !== "production" && (Qe.propTypes = {
3022
+ process.env.NODE_ENV !== "production" && (eo.propTypes = {
2784
3023
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2785
3024
  // │ These PropTypes are generated from the TypeScript type definitions. │
2786
3025
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -2788,7 +3027,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
2788
3027
  /**
2789
3028
  * A single child content element.
2790
3029
  */
2791
- children: po,
3030
+ children: bo,
2792
3031
  /**
2793
3032
  * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
2794
3033
  * replace it to the last focused element when it closes.
@@ -2834,89 +3073,89 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
2834
3073
  */
2835
3074
  open: e.bool.isRequired
2836
3075
  });
2837
- process.env.NODE_ENV !== "production" && (Qe.propTypes = Et(Qe.propTypes));
2838
- const bn = {
3076
+ process.env.NODE_ENV !== "production" && (eo.propTypes = Ot(eo.propTypes));
3077
+ const En = {
2839
3078
  entering: {
2840
3079
  opacity: 1
2841
3080
  },
2842
3081
  entered: {
2843
3082
  opacity: 1
2844
3083
  }
2845
- }, st = /* @__PURE__ */ u.forwardRef(function(t, n) {
2846
- const r = _o(), s = {
3084
+ }, at = /* @__PURE__ */ c.forwardRef(function(t, n) {
3085
+ const r = qo(), s = {
2847
3086
  enter: r.transitions.duration.enteringScreen,
2848
3087
  exit: r.transitions.duration.leavingScreen
2849
3088
  }, {
2850
3089
  addEndListener: i,
2851
3090
  appear: a = !0,
2852
- children: c,
2853
- easing: f,
3091
+ children: u,
3092
+ easing: d,
2854
3093
  in: b,
2855
3094
  onEnter: y,
2856
3095
  onEntered: h,
2857
- onEntering: T,
2858
- onExit: d,
3096
+ onEntering: v,
3097
+ onExit: p,
2859
3098
  onExited: g,
2860
- onExiting: F,
2861
- style: R,
3099
+ onExiting: k,
3100
+ style: E,
2862
3101
  timeout: m = s,
2863
3102
  // eslint-disable-next-line react/prop-types
2864
- TransitionComponent: v = Rt,
3103
+ TransitionComponent: T = St,
2865
3104
  ...l
2866
- } = t, p = u.useRef(null), O = ge(p, uo(c), n), I = (D) => (C) => {
2867
- if (D) {
2868
- const w = p.current;
2869
- C === void 0 ? D(w) : D(w, C);
3105
+ } = t, f = c.useRef(null), S = ye(f, mo(u), n), I = (F) => (R) => {
3106
+ if (F) {
3107
+ const w = f.current;
3108
+ R === void 0 ? F(w) : F(w, R);
2870
3109
  }
2871
- }, x = I(T), S = I((D, C) => {
2872
- Ot(D);
2873
- const w = Ro({
2874
- style: R,
3110
+ }, P = I(v), C = I((F, R) => {
3111
+ wt(F);
3112
+ const w = So({
3113
+ style: E,
2875
3114
  timeout: m,
2876
- easing: f
3115
+ easing: d
2877
3116
  }, {
2878
3117
  mode: "enter"
2879
3118
  });
2880
- D.style.webkitTransition = r.transitions.create("opacity", w), D.style.transition = r.transitions.create("opacity", w), y && y(D, C);
2881
- }), k = I(h), N = I(F), z = I((D) => {
2882
- const C = Ro({
2883
- style: R,
3119
+ F.style.webkitTransition = r.transitions.create("opacity", w), F.style.transition = r.transitions.create("opacity", w), y && y(F, R);
3120
+ }), N = I(h), M = I(k), A = I((F) => {
3121
+ const R = So({
3122
+ style: E,
2884
3123
  timeout: m,
2885
- easing: f
3124
+ easing: d
2886
3125
  }, {
2887
3126
  mode: "exit"
2888
3127
  });
2889
- D.style.webkitTransition = r.transitions.create("opacity", C), D.style.transition = r.transitions.create("opacity", C), d && d(D);
2890
- }), _ = I(g);
2891
- return /* @__PURE__ */ P(v, {
3128
+ F.style.webkitTransition = r.transitions.create("opacity", R), F.style.transition = r.transitions.create("opacity", R), p && p(F);
3129
+ }), W = I(g);
3130
+ return /* @__PURE__ */ x(T, {
2892
3131
  appear: a,
2893
3132
  in: b,
2894
- nodeRef: p,
2895
- onEnter: S,
2896
- onEntered: k,
2897
- onEntering: x,
2898
- onExit: z,
2899
- onExited: _,
2900
- onExiting: N,
2901
- addEndListener: (D) => {
2902
- i && i(p.current, D);
3133
+ nodeRef: f,
3134
+ onEnter: C,
3135
+ onEntered: N,
3136
+ onEntering: P,
3137
+ onExit: A,
3138
+ onExited: W,
3139
+ onExiting: M,
3140
+ addEndListener: (F) => {
3141
+ i && i(f.current, F);
2903
3142
  },
2904
3143
  timeout: m,
2905
3144
  ...l,
2906
- children: (D, C) => /* @__PURE__ */ u.cloneElement(c, {
3145
+ children: (F, R) => /* @__PURE__ */ c.cloneElement(u, {
2907
3146
  style: {
2908
3147
  opacity: 0,
2909
- visibility: D === "exited" && !b ? "hidden" : void 0,
2910
- ...bn[D],
2911
- ...R,
2912
- ...c.props.style
3148
+ visibility: F === "exited" && !b ? "hidden" : void 0,
3149
+ ...En[F],
3150
+ ...E,
3151
+ ...u.props.style
2913
3152
  },
2914
- ref: O,
2915
- ...C
3153
+ ref: S,
3154
+ ...R
2916
3155
  })
2917
3156
  });
2918
3157
  });
2919
- process.env.NODE_ENV !== "production" && (st.propTypes = {
3158
+ process.env.NODE_ENV !== "production" && (at.propTypes = {
2920
3159
  // ┌────────────────────────────── Warning ──────────────────────────────┐
2921
3160
  // │ These PropTypes are generated from the TypeScript type definitions. │
2922
3161
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -2936,7 +3175,7 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
2936
3175
  /**
2937
3176
  * A single child content element.
2938
3177
  */
2939
- children: po.isRequired,
3178
+ children: bo.isRequired,
2940
3179
  /**
2941
3180
  * The transition timing function.
2942
3181
  * You may specify a single easing or a object containing enter and exit values.
@@ -2991,25 +3230,25 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
2991
3230
  exit: e.number
2992
3231
  })])
2993
3232
  });
2994
- function hn(o) {
2995
- return re("MuiBackdrop", o);
3233
+ function Rn(o) {
3234
+ return te("MuiBackdrop", o);
2996
3235
  }
2997
- ne("MuiBackdrop", ["root", "invisible"]);
2998
- const gn = (o) => {
3236
+ oe("MuiBackdrop", ["root", "invisible"]);
3237
+ const On = (o) => {
2999
3238
  const {
3000
3239
  ownerState: t,
3001
3240
  ...n
3002
3241
  } = o;
3003
3242
  return n;
3004
- }, yn = (o) => {
3243
+ }, Sn = (o) => {
3005
3244
  const {
3006
3245
  classes: t,
3007
3246
  invisible: n
3008
3247
  } = o;
3009
- return se({
3248
+ return ne({
3010
3249
  root: ["root", n && "invisible"]
3011
- }, hn, t);
3012
- }, vn = $("div", {
3250
+ }, Rn, t);
3251
+ }, wn = $("div", {
3013
3252
  name: "MuiBackdrop",
3014
3253
  slot: "Root",
3015
3254
  overridesResolver: (o, t) => {
@@ -3037,53 +3276,53 @@ const gn = (o) => {
3037
3276
  backgroundColor: "transparent"
3038
3277
  }
3039
3278
  }]
3040
- }), it = /* @__PURE__ */ u.forwardRef(function(t, n) {
3041
- const r = he({
3279
+ }), lt = /* @__PURE__ */ c.forwardRef(function(t, n) {
3280
+ const r = ce({
3042
3281
  props: t,
3043
3282
  name: "MuiBackdrop"
3044
3283
  }), {
3045
3284
  children: s,
3046
3285
  className: i,
3047
3286
  component: a = "div",
3048
- invisible: c = !1,
3049
- open: f,
3287
+ invisible: u = !1,
3288
+ open: d,
3050
3289
  components: b = {},
3051
3290
  componentsProps: y = {},
3052
3291
  slotProps: h = {},
3053
- slots: T = {},
3054
- TransitionComponent: d,
3292
+ slots: v = {},
3293
+ TransitionComponent: p,
3055
3294
  transitionDuration: g,
3056
- ...F
3057
- } = r, R = {
3295
+ ...k
3296
+ } = r, E = {
3058
3297
  ...r,
3059
3298
  component: a,
3060
- invisible: c
3061
- }, m = yn(R), v = {
3062
- transition: d,
3299
+ invisible: u
3300
+ }, m = Sn(E), T = {
3301
+ transition: p,
3063
3302
  root: b.Root,
3064
- ...T
3303
+ ...v
3065
3304
  }, l = {
3066
3305
  ...y,
3067
3306
  ...h
3068
- }, p = {
3069
- slots: v,
3307
+ }, f = {
3308
+ slots: T,
3070
3309
  slotProps: l
3071
- }, [O, I] = De("root", {
3072
- elementType: vn,
3073
- externalForwardedProps: p,
3074
- className: ee(m.root, i),
3075
- ownerState: R
3076
- }), [x, S] = De("transition", {
3077
- elementType: st,
3078
- externalForwardedProps: p,
3079
- ownerState: R
3080
- }), k = gn(S);
3081
- return /* @__PURE__ */ P(x, {
3082
- in: f,
3310
+ }, [S, I] = De("root", {
3311
+ elementType: wn,
3312
+ externalForwardedProps: f,
3313
+ className: Q(m.root, i),
3314
+ ownerState: E
3315
+ }), [P, C] = De("transition", {
3316
+ elementType: at,
3317
+ externalForwardedProps: f,
3318
+ ownerState: E
3319
+ }), N = On(C);
3320
+ return /* @__PURE__ */ x(P, {
3321
+ in: d,
3083
3322
  timeout: g,
3084
- ...F,
3085
3323
  ...k,
3086
- children: /* @__PURE__ */ P(O, {
3324
+ ...N,
3325
+ children: /* @__PURE__ */ x(S, {
3087
3326
  "aria-hidden": !0,
3088
3327
  ...I,
3089
3328
  classes: m,
@@ -3092,7 +3331,7 @@ const gn = (o) => {
3092
3331
  })
3093
3332
  });
3094
3333
  });
3095
- process.env.NODE_ENV !== "production" && (it.propTypes = {
3334
+ process.env.NODE_ENV !== "production" && (lt.propTypes = {
3096
3335
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3097
3336
  // │ These PropTypes are generated from the TypeScript type definitions. │
3098
3337
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3181,14 +3420,14 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
3181
3420
  exit: e.number
3182
3421
  })])
3183
3422
  });
3184
- function Tn(o) {
3423
+ function Cn(o) {
3185
3424
  return typeof o == "function" ? o() : o;
3186
3425
  }
3187
- function En(o) {
3426
+ function xn(o) {
3188
3427
  return o ? o.props.hasOwnProperty("in") : !1;
3189
3428
  }
3190
- const Ke = new ln();
3191
- function Rn(o) {
3429
+ const Ke = new mn();
3430
+ function Pn(o) {
3192
3431
  const {
3193
3432
  container: t,
3194
3433
  disableEscapeKeyDown: n = !1,
@@ -3196,45 +3435,45 @@ function Rn(o) {
3196
3435
  closeAfterTransition: s = !1,
3197
3436
  onTransitionEnter: i,
3198
3437
  onTransitionExited: a,
3199
- children: c,
3200
- onClose: f,
3438
+ children: u,
3439
+ onClose: d,
3201
3440
  open: b,
3202
3441
  rootRef: y
3203
- } = o, h = u.useRef({}), T = u.useRef(null), d = u.useRef(null), g = ge(d, y), [F, R] = u.useState(!b), m = En(c);
3204
- let v = !0;
3205
- (o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (v = !1);
3206
- const l = () => le(T.current), p = () => (h.current.modalRef = d.current, h.current.mount = T.current, h.current), O = () => {
3207
- Ke.mount(p(), {
3442
+ } = o, h = c.useRef({}), v = c.useRef(null), p = c.useRef(null), g = ye(p, y), [k, E] = c.useState(!b), m = xn(u);
3443
+ let T = !0;
3444
+ (o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (T = !1);
3445
+ const l = () => le(v.current), f = () => (h.current.modalRef = p.current, h.current.mount = v.current, h.current), S = () => {
3446
+ Ke.mount(f(), {
3208
3447
  disableScrollLock: r
3209
- }), d.current && (d.current.scrollTop = 0);
3210
- }, I = wo(() => {
3211
- const C = Tn(t) || l().body;
3212
- Ke.add(p(), C), d.current && O();
3213
- }), x = () => Ke.isTopModal(p()), S = wo((C) => {
3214
- T.current = C, C && (b && x() ? O() : d.current && Ve(d.current, v));
3215
- }), k = u.useCallback(() => {
3216
- Ke.remove(p(), v);
3217
- }, [v]);
3218
- u.useEffect(() => () => {
3219
- k();
3220
- }, [k]), u.useEffect(() => {
3221
- b ? I() : (!m || !s) && k();
3222
- }, [b, k, m, s, I]);
3223
- const N = (C) => (w) => {
3448
+ }), p.current && (p.current.scrollTop = 0);
3449
+ }, I = Co(() => {
3450
+ const R = Cn(t) || l().body;
3451
+ Ke.add(f(), R), p.current && S();
3452
+ }), P = () => Ke.isTopModal(f()), C = Co((R) => {
3453
+ v.current = R, R && (b && P() ? S() : p.current && Ve(p.current, T));
3454
+ }), N = c.useCallback(() => {
3455
+ Ke.remove(f(), T);
3456
+ }, [T]);
3457
+ c.useEffect(() => () => {
3458
+ N();
3459
+ }, [N]), c.useEffect(() => {
3460
+ b ? I() : (!m || !s) && N();
3461
+ }, [b, N, m, s, I]);
3462
+ const M = (R) => (w) => {
3224
3463
  var U;
3225
- (U = C.onKeyDown) == null || U.call(C, w), !(w.key !== "Escape" || w.which === 229 || // Wait until IME is settled.
3226
- !x()) && (n || (w.stopPropagation(), f && f(w, "escapeKeyDown")));
3227
- }, z = (C) => (w) => {
3464
+ (U = R.onKeyDown) == null || U.call(R, w), !(w.key !== "Escape" || w.which === 229 || // Wait until IME is settled.
3465
+ !P()) && (n || (w.stopPropagation(), d && d(w, "escapeKeyDown")));
3466
+ }, A = (R) => (w) => {
3228
3467
  var U;
3229
- (U = C.onClick) == null || U.call(C, w), w.target === w.currentTarget && f && f(w, "backdropClick");
3468
+ (U = R.onClick) == null || U.call(R, w), w.target === w.currentTarget && d && d(w, "backdropClick");
3230
3469
  };
3231
3470
  return {
3232
- getRootProps: (C = {}) => {
3233
- const w = vt(o);
3471
+ getRootProps: (R = {}) => {
3472
+ const w = Et(o);
3234
3473
  delete w.onTransitionEnter, delete w.onTransitionExited;
3235
3474
  const U = {
3236
3475
  ...w,
3237
- ...C
3476
+ ...R
3238
3477
  };
3239
3478
  return {
3240
3479
  /*
@@ -3245,52 +3484,52 @@ function Rn(o) {
3245
3484
  */
3246
3485
  role: "presentation",
3247
3486
  ...U,
3248
- onKeyDown: N(U),
3487
+ onKeyDown: M(U),
3249
3488
  ref: g
3250
3489
  };
3251
3490
  },
3252
- getBackdropProps: (C = {}) => {
3253
- const w = C;
3491
+ getBackdropProps: (R = {}) => {
3492
+ const w = R;
3254
3493
  return {
3255
3494
  "aria-hidden": !0,
3256
3495
  ...w,
3257
- onClick: z(w),
3496
+ onClick: A(w),
3258
3497
  open: b
3259
3498
  };
3260
3499
  },
3261
3500
  getTransitionProps: () => {
3262
- const C = () => {
3263
- R(!1), i && i();
3501
+ const R = () => {
3502
+ E(!1), i && i();
3264
3503
  }, w = () => {
3265
- R(!0), a && a(), s && k();
3504
+ E(!0), a && a(), s && N();
3266
3505
  };
3267
3506
  return {
3268
- onEnter: Po(C, c == null ? void 0 : c.props.onEnter),
3269
- onExited: Po(w, c == null ? void 0 : c.props.onExited)
3507
+ onEnter: Po(R, u == null ? void 0 : u.props.onEnter),
3508
+ onExited: Po(w, u == null ? void 0 : u.props.onExited)
3270
3509
  };
3271
3510
  },
3272
3511
  rootRef: g,
3273
- portalRef: S,
3274
- isTopModal: x,
3275
- exited: F,
3512
+ portalRef: C,
3513
+ isTopModal: P,
3514
+ exited: k,
3276
3515
  hasTransition: m
3277
3516
  };
3278
3517
  }
3279
- function On(o) {
3280
- return re("MuiModal", o);
3518
+ function In(o) {
3519
+ return te("MuiModal", o);
3281
3520
  }
3282
- ne("MuiModal", ["root", "hidden", "backdrop"]);
3283
- const wn = (o) => {
3521
+ oe("MuiModal", ["root", "hidden", "backdrop"]);
3522
+ const Nn = (o) => {
3284
3523
  const {
3285
3524
  open: t,
3286
3525
  exited: n,
3287
3526
  classes: r
3288
3527
  } = o;
3289
- return se({
3528
+ return ne({
3290
3529
  root: ["root", !t && n && "hidden"],
3291
3530
  backdrop: ["backdrop"]
3292
- }, On, r);
3293
- }, Sn = $("div", {
3531
+ }, In, r);
3532
+ }, Mn = $("div", {
3294
3533
  name: "MuiModal",
3295
3534
  slot: "Root",
3296
3535
  overridesResolver: (o, t) => {
@@ -3299,7 +3538,7 @@ const wn = (o) => {
3299
3538
  } = o;
3300
3539
  return [t.root, !n.open && n.exited && t.hidden];
3301
3540
  }
3302
- })(ce(({
3541
+ })(ue(({
3303
3542
  theme: o
3304
3543
  }) => ({
3305
3544
  position: "fixed",
@@ -3316,91 +3555,91 @@ const wn = (o) => {
3316
3555
  visibility: "hidden"
3317
3556
  }
3318
3557
  }]
3319
- }))), Pn = $(it, {
3558
+ }))), kn = $(lt, {
3320
3559
  name: "MuiModal",
3321
3560
  slot: "Backdrop",
3322
3561
  overridesResolver: (o, t) => t.backdrop
3323
3562
  })({
3324
3563
  zIndex: -1
3325
- }), at = /* @__PURE__ */ u.forwardRef(function(t, n) {
3326
- const r = he({
3564
+ }), ct = /* @__PURE__ */ c.forwardRef(function(t, n) {
3565
+ const r = ce({
3327
3566
  name: "MuiModal",
3328
3567
  props: t
3329
3568
  }), {
3330
- BackdropComponent: s = Pn,
3569
+ BackdropComponent: s = kn,
3331
3570
  BackdropProps: i,
3332
3571
  classes: a,
3333
- className: c,
3334
- closeAfterTransition: f = !1,
3572
+ className: u,
3573
+ closeAfterTransition: d = !1,
3335
3574
  children: b,
3336
3575
  container: y,
3337
3576
  component: h,
3338
- components: T = {},
3339
- componentsProps: d = {},
3577
+ components: v = {},
3578
+ componentsProps: p = {},
3340
3579
  disableAutoFocus: g = !1,
3341
- disableEnforceFocus: F = !1,
3342
- disableEscapeKeyDown: R = !1,
3580
+ disableEnforceFocus: k = !1,
3581
+ disableEscapeKeyDown: E = !1,
3343
3582
  disablePortal: m = !1,
3344
- disableRestoreFocus: v = !1,
3583
+ disableRestoreFocus: T = !1,
3345
3584
  disableScrollLock: l = !1,
3346
- hideBackdrop: p = !1,
3347
- keepMounted: O = !1,
3585
+ hideBackdrop: f = !1,
3586
+ keepMounted: S = !1,
3348
3587
  onBackdropClick: I,
3349
- onClose: x,
3350
- onTransitionEnter: S,
3351
- onTransitionExited: k,
3352
- open: N,
3353
- slotProps: z = {},
3354
- slots: _ = {},
3588
+ onClose: P,
3589
+ onTransitionEnter: C,
3590
+ onTransitionExited: N,
3591
+ open: M,
3592
+ slotProps: A = {},
3593
+ slots: W = {},
3355
3594
  // eslint-disable-next-line react/prop-types
3356
- theme: K,
3357
- ...D
3358
- } = r, C = {
3595
+ theme: H,
3596
+ ...F
3597
+ } = r, R = {
3359
3598
  ...r,
3360
- closeAfterTransition: f,
3599
+ closeAfterTransition: d,
3361
3600
  disableAutoFocus: g,
3362
- disableEnforceFocus: F,
3363
- disableEscapeKeyDown: R,
3601
+ disableEnforceFocus: k,
3602
+ disableEscapeKeyDown: E,
3364
3603
  disablePortal: m,
3365
- disableRestoreFocus: v,
3604
+ disableRestoreFocus: T,
3366
3605
  disableScrollLock: l,
3367
- hideBackdrop: p,
3368
- keepMounted: O
3606
+ hideBackdrop: f,
3607
+ keepMounted: S
3369
3608
  }, {
3370
3609
  getRootProps: w,
3371
3610
  getBackdropProps: U,
3372
- getTransitionProps: M,
3373
- portalRef: Q,
3374
- isTopModal: Se,
3375
- exited: ue,
3376
- hasTransition: de
3377
- } = Rn({
3378
- ...C,
3611
+ getTransitionProps: D,
3612
+ portalRef: ee,
3613
+ isTopModal: we,
3614
+ exited: de,
3615
+ hasTransition: pe
3616
+ } = Pn({
3617
+ ...R,
3379
3618
  rootRef: n
3380
3619
  }), q = {
3381
- ...C,
3382
- exited: ue
3383
- }, G = wn(q), ie = {};
3384
- if (b.props.tabIndex === void 0 && (ie.tabIndex = "-1"), de) {
3620
+ ...R,
3621
+ exited: de
3622
+ }, G = Nn(q), ie = {};
3623
+ if (b.props.tabIndex === void 0 && (ie.tabIndex = "-1"), pe) {
3385
3624
  const {
3386
- onEnter: L,
3625
+ onEnter: B,
3387
3626
  onExited: X
3388
- } = M();
3389
- ie.onEnter = L, ie.onExited = X;
3627
+ } = D();
3628
+ ie.onEnter = B, ie.onExited = X;
3390
3629
  }
3391
3630
  const ae = {
3392
- ...D,
3631
+ ...F,
3393
3632
  slots: {
3394
- root: T.Root,
3395
- backdrop: T.Backdrop,
3396
- ..._
3633
+ root: v.Root,
3634
+ backdrop: v.Backdrop,
3635
+ ...W
3397
3636
  },
3398
3637
  slotProps: {
3399
- ...d,
3400
- ...z
3638
+ ...p,
3639
+ ...A
3401
3640
  }
3402
- }, [pe, fe] = De("root", {
3403
- elementType: Sn,
3641
+ }, [fe, me] = De("root", {
3642
+ elementType: Mn,
3404
3643
  externalForwardedProps: ae,
3405
3644
  getSlotProps: w,
3406
3645
  additionalProps: {
@@ -3408,41 +3647,41 @@ const wn = (o) => {
3408
3647
  as: h
3409
3648
  },
3410
3649
  ownerState: q,
3411
- className: ee(c, G == null ? void 0 : G.root, !q.open && q.exited && (G == null ? void 0 : G.hidden))
3412
- }), [oe, W] = De("backdrop", {
3650
+ className: Q(u, G == null ? void 0 : G.root, !q.open && q.exited && (G == null ? void 0 : G.hidden))
3651
+ }), [re, V] = De("backdrop", {
3413
3652
  elementType: s,
3414
3653
  externalForwardedProps: ae,
3415
3654
  additionalProps: i,
3416
- getSlotProps: (L) => U({
3417
- ...L,
3655
+ getSlotProps: (B) => U({
3656
+ ...B,
3418
3657
  onClick: (X) => {
3419
- I && I(X), L != null && L.onClick && L.onClick(X);
3658
+ I && I(X), B != null && B.onClick && B.onClick(X);
3420
3659
  }
3421
3660
  }),
3422
- className: ee(i == null ? void 0 : i.className, G == null ? void 0 : G.backdrop),
3661
+ className: Q(i == null ? void 0 : i.className, G == null ? void 0 : G.backdrop),
3423
3662
  ownerState: q
3424
- }), B = ge(i == null ? void 0 : i.ref, W.ref);
3425
- return !O && !N && (!de || ue) ? null : /* @__PURE__ */ P(wt, {
3426
- ref: Q,
3663
+ }), z = ye(i == null ? void 0 : i.ref, V.ref);
3664
+ return !S && !M && (!pe || de) ? null : /* @__PURE__ */ x(Ct, {
3665
+ ref: ee,
3427
3666
  container: y,
3428
3667
  disablePortal: m,
3429
- children: /* @__PURE__ */ ye(pe, {
3430
- ...fe,
3431
- children: [!p && s ? /* @__PURE__ */ P(oe, {
3432
- ...W,
3433
- ref: B
3434
- }) : null, /* @__PURE__ */ P(Qe, {
3435
- disableEnforceFocus: F,
3668
+ children: /* @__PURE__ */ ve(fe, {
3669
+ ...me,
3670
+ children: [!f && s ? /* @__PURE__ */ x(re, {
3671
+ ...V,
3672
+ ref: z
3673
+ }) : null, /* @__PURE__ */ x(eo, {
3674
+ disableEnforceFocus: k,
3436
3675
  disableAutoFocus: g,
3437
- disableRestoreFocus: v,
3438
- isEnabled: Se,
3439
- open: N,
3440
- children: /* @__PURE__ */ u.cloneElement(b, ie)
3676
+ disableRestoreFocus: T,
3677
+ isEnabled: we,
3678
+ open: M,
3679
+ children: /* @__PURE__ */ c.cloneElement(b, ie)
3441
3680
  })]
3442
3681
  })
3443
3682
  });
3444
3683
  });
3445
- process.env.NODE_ENV !== "production" && (at.propTypes = {
3684
+ process.env.NODE_ENV !== "production" && (ct.propTypes = {
3446
3685
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3447
3686
  // │ These PropTypes are generated from the TypeScript type definitions. │
3448
3687
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3470,7 +3709,7 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
3470
3709
  /**
3471
3710
  * A single child content element.
3472
3711
  */
3473
- children: po.isRequired,
3712
+ children: bo.isRequired,
3474
3713
  /**
3475
3714
  * Override or extend the styles applied to the component.
3476
3715
  */
@@ -3621,11 +3860,11 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
3621
3860
  */
3622
3861
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
3623
3862
  });
3624
- function Cn(o) {
3625
- return re("MuiPaper", o);
3863
+ function Fn(o) {
3864
+ return te("MuiPaper", o);
3626
3865
  }
3627
- ne("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
3628
- const xn = (o) => {
3866
+ oe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
3867
+ const Dn = (o) => {
3629
3868
  const {
3630
3869
  square: t,
3631
3870
  elevation: n,
@@ -3634,8 +3873,8 @@ const xn = (o) => {
3634
3873
  } = o, i = {
3635
3874
  root: ["root", r, !t && "rounded", r === "elevation" && `elevation${n}`]
3636
3875
  };
3637
- return se(i, Cn, s);
3638
- }, In = $("div", {
3876
+ return ne(i, Fn, s);
3877
+ }, An = $("div", {
3639
3878
  name: "MuiPaper",
3640
3879
  slot: "Root",
3641
3880
  overridesResolver: (o, t) => {
@@ -3644,7 +3883,7 @@ const xn = (o) => {
3644
3883
  } = o;
3645
3884
  return [t.root, t[n.variant], !n.square && t.rounded, n.variant === "elevation" && t[`elevation${n.elevation}`]];
3646
3885
  }
3647
- })(ce(({
3886
+ })(ue(({
3648
3887
  theme: o
3649
3888
  }) => ({
3650
3889
  backgroundColor: (o.vars || o).palette.background.paper,
@@ -3673,47 +3912,47 @@ const xn = (o) => {
3673
3912
  backgroundImage: "var(--Paper-overlay)"
3674
3913
  }
3675
3914
  }]
3676
- }))), lt = /* @__PURE__ */ u.forwardRef(function(t, n) {
3677
- var d;
3678
- const r = he({
3915
+ }))), ut = /* @__PURE__ */ c.forwardRef(function(t, n) {
3916
+ var p;
3917
+ const r = ce({
3679
3918
  props: t,
3680
3919
  name: "MuiPaper"
3681
- }), s = _o(), {
3920
+ }), s = qo(), {
3682
3921
  className: i,
3683
3922
  component: a = "div",
3684
- elevation: c = 1,
3685
- square: f = !1,
3923
+ elevation: u = 1,
3924
+ square: d = !1,
3686
3925
  variant: b = "elevation",
3687
3926
  ...y
3688
3927
  } = r, h = {
3689
3928
  ...r,
3690
3929
  component: a,
3691
- elevation: c,
3692
- square: f,
3930
+ elevation: u,
3931
+ square: d,
3693
3932
  variant: b
3694
- }, T = xn(h);
3695
- return process.env.NODE_ENV !== "production" && s.shadows[c] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
3696
- `)), /* @__PURE__ */ P(In, {
3933
+ }, v = Dn(h);
3934
+ return process.env.NODE_ENV !== "production" && s.shadows[u] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${u}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${u}]\` is defined.`].join(`
3935
+ `)), /* @__PURE__ */ x(An, {
3697
3936
  as: a,
3698
3937
  ownerState: h,
3699
- className: ee(T.root, i),
3938
+ className: Q(v.root, i),
3700
3939
  ref: n,
3701
3940
  ...y,
3702
3941
  style: {
3703
3942
  ...b === "elevation" && {
3704
- "--Paper-shadow": (s.vars || s).shadows[c],
3943
+ "--Paper-shadow": (s.vars || s).shadows[u],
3705
3944
  ...s.vars && {
3706
- "--Paper-overlay": (d = s.vars.overlays) == null ? void 0 : d[c]
3945
+ "--Paper-overlay": (p = s.vars.overlays) == null ? void 0 : p[u]
3707
3946
  },
3708
3947
  ...!s.vars && s.palette.mode === "dark" && {
3709
- "--Paper-overlay": `linear-gradient(${To("#fff", Eo(c))}, ${To("#fff", Eo(c))})`
3948
+ "--Paper-overlay": `linear-gradient(${Ro("#fff", Oo(u))}, ${Ro("#fff", Oo(u))})`
3710
3949
  }
3711
3950
  },
3712
3951
  ...y.style
3713
3952
  }
3714
3953
  });
3715
3954
  });
3716
- process.env.NODE_ENV !== "production" && (lt.propTypes = {
3955
+ process.env.NODE_ENV !== "production" && (ut.propTypes = {
3717
3956
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3718
3957
  // │ These PropTypes are generated from the TypeScript type definitions. │
3719
3958
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3740,7 +3979,7 @@ process.env.NODE_ENV !== "production" && (lt.propTypes = {
3740
3979
  * It accepts values between 0 and 24 inclusive.
3741
3980
  * @default 1
3742
3981
  */
3743
- elevation: Ho(Wo, (o) => {
3982
+ elevation: Go(Ho, (o) => {
3744
3983
  const {
3745
3984
  elevation: t,
3746
3985
  variant: n
@@ -3766,37 +4005,37 @@ process.env.NODE_ENV !== "production" && (lt.propTypes = {
3766
4005
  */
3767
4006
  variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
3768
4007
  });
3769
- function Nn(o) {
3770
- return re("MuiPopover", o);
4008
+ function jn(o) {
4009
+ return te("MuiPopover", o);
3771
4010
  }
3772
- ne("MuiPopover", ["root", "paper"]);
3773
- function Do(o, t) {
4011
+ oe("MuiPopover", ["root", "paper"]);
4012
+ function jo(o, t) {
3774
4013
  let n = 0;
3775
4014
  return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
3776
4015
  }
3777
- function Ao(o, t) {
4016
+ function $o(o, t) {
3778
4017
  let n = 0;
3779
4018
  return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
3780
4019
  }
3781
- function jo(o) {
4020
+ function Lo(o) {
3782
4021
  return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
3783
4022
  }
3784
4023
  function qe(o) {
3785
4024
  return typeof o == "function" ? o() : o;
3786
4025
  }
3787
- const Mn = (o) => {
4026
+ const $n = (o) => {
3788
4027
  const {
3789
4028
  classes: t
3790
4029
  } = o;
3791
- return se({
4030
+ return ne({
3792
4031
  root: ["root"],
3793
4032
  paper: ["paper"]
3794
- }, Nn, t);
3795
- }, kn = $(at, {
4033
+ }, jn, t);
4034
+ }, Ln = $(ct, {
3796
4035
  name: "MuiPopover",
3797
4036
  slot: "Root",
3798
4037
  overridesResolver: (o, t) => t.root
3799
- })({}), ct = $(lt, {
4038
+ })({}), dt = $(ut, {
3800
4039
  name: "MuiPopover",
3801
4040
  slot: "Paper",
3802
4041
  overridesResolver: (o, t) => t.paper
@@ -3812,8 +4051,8 @@ const Mn = (o) => {
3812
4051
  maxHeight: "calc(100% - 32px)",
3813
4052
  // We disable the focus ring for mouse, touch and keyboard users.
3814
4053
  outline: 0
3815
- }), ut = /* @__PURE__ */ u.forwardRef(function(t, n) {
3816
- const r = he({
4054
+ }), pt = /* @__PURE__ */ c.forwardRef(function(t, n) {
4055
+ const r = ce({
3817
4056
  props: t,
3818
4057
  name: "MuiPopover"
3819
4058
  }), {
@@ -3823,144 +4062,144 @@ const Mn = (o) => {
3823
4062
  vertical: "top",
3824
4063
  horizontal: "left"
3825
4064
  },
3826
- anchorPosition: c,
3827
- anchorReference: f = "anchorEl",
4065
+ anchorPosition: u,
4066
+ anchorReference: d = "anchorEl",
3828
4067
  children: b,
3829
4068
  className: y,
3830
4069
  container: h,
3831
- elevation: T = 8,
3832
- marginThreshold: d = 16,
4070
+ elevation: v = 8,
4071
+ marginThreshold: p = 16,
3833
4072
  open: g,
3834
- PaperProps: F = {},
3835
- slots: R = {},
4073
+ PaperProps: k = {},
4074
+ slots: E = {},
3836
4075
  slotProps: m = {},
3837
- transformOrigin: v = {
4076
+ transformOrigin: T = {
3838
4077
  vertical: "top",
3839
4078
  horizontal: "left"
3840
4079
  },
3841
- TransitionComponent: l = St,
3842
- transitionDuration: p = "auto",
4080
+ TransitionComponent: l = xt,
4081
+ transitionDuration: f = "auto",
3843
4082
  TransitionProps: {
3844
- onEntering: O,
4083
+ onEntering: S,
3845
4084
  ...I
3846
4085
  } = {},
3847
- disableScrollLock: x = !1,
3848
- ...S
3849
- } = r, k = (m == null ? void 0 : m.paper) ?? F, N = u.useRef(), z = {
4086
+ disableScrollLock: P = !1,
4087
+ ...C
4088
+ } = r, N = (m == null ? void 0 : m.paper) ?? k, M = c.useRef(), A = {
3850
4089
  ...r,
3851
4090
  anchorOrigin: a,
3852
- anchorReference: f,
3853
- elevation: T,
3854
- marginThreshold: d,
3855
- externalPaperSlotProps: k,
3856
- transformOrigin: v,
4091
+ anchorReference: d,
4092
+ elevation: v,
4093
+ marginThreshold: p,
4094
+ externalPaperSlotProps: N,
4095
+ transformOrigin: T,
3857
4096
  TransitionComponent: l,
3858
- transitionDuration: p,
4097
+ transitionDuration: f,
3859
4098
  TransitionProps: I
3860
- }, _ = Mn(z), K = u.useCallback(() => {
3861
- if (f === "anchorPosition")
3862
- return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
3863
- const W = qe(i), B = W && W.nodeType === 1 ? W : le(N.current).body, L = B.getBoundingClientRect();
4099
+ }, W = $n(A), H = c.useCallback(() => {
4100
+ if (d === "anchorPosition")
4101
+ return process.env.NODE_ENV !== "production" && (u || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), u;
4102
+ const V = qe(i), z = V && V.nodeType === 1 ? V : le(M.current).body, B = z.getBoundingClientRect();
3864
4103
  if (process.env.NODE_ENV !== "production") {
3865
- const X = B.getBoundingClientRect();
4104
+ const X = z.getBoundingClientRect();
3866
4105
  process.env.NODE_ENV !== "test" && X.top === 0 && X.left === 0 && X.right === 0 && X.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(`
3867
4106
  `));
3868
4107
  }
3869
4108
  return {
3870
- top: L.top + Do(L, a.vertical),
3871
- left: L.left + Ao(L, a.horizontal)
4109
+ top: B.top + jo(B, a.vertical),
4110
+ left: B.left + $o(B, a.horizontal)
3872
4111
  };
3873
- }, [i, a.horizontal, a.vertical, c, f]), D = u.useCallback((W) => ({
3874
- vertical: Do(W, v.vertical),
3875
- horizontal: Ao(W, v.horizontal)
3876
- }), [v.horizontal, v.vertical]), C = u.useCallback((W) => {
3877
- const B = {
3878
- width: W.offsetWidth,
3879
- height: W.offsetHeight
3880
- }, L = D(B);
3881
- if (f === "none")
4112
+ }, [i, a.horizontal, a.vertical, u, d]), F = c.useCallback((V) => ({
4113
+ vertical: jo(V, T.vertical),
4114
+ horizontal: $o(V, T.horizontal)
4115
+ }), [T.horizontal, T.vertical]), R = c.useCallback((V) => {
4116
+ const z = {
4117
+ width: V.offsetWidth,
4118
+ height: V.offsetHeight
4119
+ }, B = F(z);
4120
+ if (d === "none")
3882
4121
  return {
3883
4122
  top: null,
3884
4123
  left: null,
3885
- transformOrigin: jo(L)
4124
+ transformOrigin: Lo(B)
3886
4125
  };
3887
- const X = K();
3888
- let j = X.top - L.vertical, H = X.left - L.horizontal;
3889
- const Te = j + B.height, Ee = H + B.width, me = ve(qe(i)), te = me.innerHeight - d, Ie = me.innerWidth - d;
3890
- if (d !== null && j < d) {
3891
- const Y = j - d;
3892
- j -= Y, L.vertical += Y;
3893
- } else if (d !== null && Te > te) {
3894
- const Y = Te - te;
3895
- j -= Y, L.vertical += Y;
4126
+ const X = H();
4127
+ let L = X.top - B.vertical, K = X.left - B.horizontal;
4128
+ const Ee = L + z.height, Re = K + z.width, be = Te(qe(i)), se = be.innerHeight - p, Ie = be.innerWidth - p;
4129
+ if (p !== null && L < p) {
4130
+ const Y = L - p;
4131
+ L -= Y, B.vertical += Y;
4132
+ } else if (p !== null && Ee > se) {
4133
+ const Y = Ee - se;
4134
+ L -= Y, B.vertical += Y;
3896
4135
  }
3897
- if (process.env.NODE_ENV !== "production" && B.height > te && B.height && te && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${B.height - te}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
3898
- `)), d !== null && H < d) {
3899
- const Y = H - d;
3900
- H -= Y, L.horizontal += Y;
3901
- } else if (Ee > Ie) {
3902
- const Y = Ee - Ie;
3903
- H -= Y, L.horizontal += Y;
4136
+ if (process.env.NODE_ENV !== "production" && z.height > se && z.height && se && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${z.height - se}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
4137
+ `)), p !== null && K < p) {
4138
+ const Y = K - p;
4139
+ K -= Y, B.horizontal += Y;
4140
+ } else if (Re > Ie) {
4141
+ const Y = Re - Ie;
4142
+ K -= Y, B.horizontal += Y;
3904
4143
  }
3905
4144
  return {
3906
- top: `${Math.round(j)}px`,
3907
- left: `${Math.round(H)}px`,
3908
- transformOrigin: jo(L)
4145
+ top: `${Math.round(L)}px`,
4146
+ left: `${Math.round(K)}px`,
4147
+ transformOrigin: Lo(B)
3909
4148
  };
3910
- }, [i, f, K, D, d]), [w, U] = u.useState(g), M = u.useCallback(() => {
3911
- const W = N.current;
3912
- if (!W)
4149
+ }, [i, d, H, F, p]), [w, U] = c.useState(g), D = c.useCallback(() => {
4150
+ const V = M.current;
4151
+ if (!V)
3913
4152
  return;
3914
- const B = C(W);
3915
- B.top !== null && W.style.setProperty("top", B.top), B.left !== null && (W.style.left = B.left), W.style.transformOrigin = B.transformOrigin, U(!0);
3916
- }, [C]);
3917
- u.useEffect(() => (x && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [i, x, M]);
3918
- const Q = (W, B) => {
3919
- O && O(W, B), M();
3920
- }, Se = () => {
4153
+ const z = R(V);
4154
+ z.top !== null && V.style.setProperty("top", z.top), z.left !== null && (V.style.left = z.left), V.style.transformOrigin = z.transformOrigin, U(!0);
4155
+ }, [R]);
4156
+ c.useEffect(() => (P && window.addEventListener("scroll", D), () => window.removeEventListener("scroll", D)), [i, P, D]);
4157
+ const ee = (V, z) => {
4158
+ S && S(V, z), D();
4159
+ }, we = () => {
3921
4160
  U(!1);
3922
4161
  };
3923
- u.useEffect(() => {
3924
- g && M();
3925
- }), u.useImperativeHandle(s, () => g ? {
4162
+ c.useEffect(() => {
4163
+ g && D();
4164
+ }), c.useImperativeHandle(s, () => g ? {
3926
4165
  updatePosition: () => {
3927
- M();
4166
+ D();
3928
4167
  }
3929
- } : null, [g, M]), u.useEffect(() => {
4168
+ } : null, [g, D]), c.useEffect(() => {
3930
4169
  if (!g)
3931
4170
  return;
3932
- const W = Yo(() => {
3933
- M();
3934
- }), B = ve(i);
3935
- return B.addEventListener("resize", W), () => {
3936
- W.clear(), B.removeEventListener("resize", W);
4171
+ const V = Jo(() => {
4172
+ D();
4173
+ }), z = Te(i);
4174
+ return z.addEventListener("resize", V), () => {
4175
+ V.clear(), z.removeEventListener("resize", V);
3937
4176
  };
3938
- }, [i, g, M]);
3939
- let ue = p;
3940
- p === "auto" && !l.muiSupportAuto && (ue = void 0);
3941
- const de = h || (i ? le(qe(i)).body : void 0), q = {
3942
- slots: R,
4177
+ }, [i, g, D]);
4178
+ let de = f;
4179
+ f === "auto" && !l.muiSupportAuto && (de = void 0);
4180
+ const pe = h || (i ? le(qe(i)).body : void 0), q = {
4181
+ slots: E,
3943
4182
  slotProps: {
3944
4183
  ...m,
3945
- paper: k
4184
+ paper: N
3946
4185
  }
3947
4186
  }, [G, ie] = De("paper", {
3948
- elementType: ct,
4187
+ elementType: dt,
3949
4188
  externalForwardedProps: q,
3950
4189
  additionalProps: {
3951
- elevation: T,
3952
- className: ee(_.paper, k == null ? void 0 : k.className),
3953
- style: w ? k.style : {
3954
- ...k.style,
4190
+ elevation: v,
4191
+ className: Q(W.paper, N == null ? void 0 : N.className),
4192
+ style: w ? N.style : {
4193
+ ...N.style,
3955
4194
  opacity: 0
3956
4195
  }
3957
4196
  },
3958
- ownerState: z
4197
+ ownerState: A
3959
4198
  }), [ae, {
3960
- slotProps: pe,
3961
- ...fe
4199
+ slotProps: fe,
4200
+ ...me
3962
4201
  }] = De("root", {
3963
- elementType: kn,
4202
+ elementType: Ln,
3964
4203
  externalForwardedProps: q,
3965
4204
  additionalProps: {
3966
4205
  slotProps: {
@@ -3968,36 +4207,36 @@ const Mn = (o) => {
3968
4207
  invisible: !0
3969
4208
  }
3970
4209
  },
3971
- container: de,
4210
+ container: pe,
3972
4211
  open: g
3973
4212
  },
3974
- ownerState: z,
3975
- className: ee(_.root, y)
3976
- }), oe = ge(N, ie.ref);
3977
- return /* @__PURE__ */ P(ae, {
3978
- ...fe,
3979
- ...!ao(ae) && {
3980
- slotProps: pe,
3981
- disableScrollLock: x
4213
+ ownerState: A,
4214
+ className: Q(W.root, y)
4215
+ }), re = ye(M, ie.ref);
4216
+ return /* @__PURE__ */ x(ae, {
4217
+ ...me,
4218
+ ...!co(ae) && {
4219
+ slotProps: fe,
4220
+ disableScrollLock: P
3982
4221
  },
3983
- ...S,
4222
+ ...C,
3984
4223
  ref: n,
3985
- children: /* @__PURE__ */ P(l, {
4224
+ children: /* @__PURE__ */ x(l, {
3986
4225
  appear: !0,
3987
4226
  in: g,
3988
- onEntering: Q,
3989
- onExited: Se,
3990
- timeout: ue,
4227
+ onEntering: ee,
4228
+ onExited: we,
4229
+ timeout: de,
3991
4230
  ...I,
3992
- children: /* @__PURE__ */ P(G, {
4231
+ children: /* @__PURE__ */ x(G, {
3993
4232
  ...ie,
3994
- ref: oe,
4233
+ ref: re,
3995
4234
  children: b
3996
4235
  })
3997
4236
  })
3998
4237
  });
3999
4238
  });
4000
- process.env.NODE_ENV !== "production" && (ut.propTypes = {
4239
+ process.env.NODE_ENV !== "production" && (pt.propTypes = {
4001
4240
  // ┌────────────────────────────── Warning ──────────────────────────────┐
4002
4241
  // │ These PropTypes are generated from the TypeScript type definitions. │
4003
4242
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -4006,13 +4245,13 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
4006
4245
  * A ref for imperative actions.
4007
4246
  * It currently only supports updatePosition() action.
4008
4247
  */
4009
- action: xe,
4248
+ action: Pe,
4010
4249
  /**
4011
4250
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
4012
4251
  * or a function that returns either.
4013
4252
  * It's used to set the position of the popover.
4014
4253
  */
4015
- anchorEl: Ho(e.oneOfType([Ge, e.func]), (o) => {
4254
+ anchorEl: Go(e.oneOfType([Ge, e.func]), (o) => {
4016
4255
  if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
4017
4256
  const t = qe(o.anchorEl);
4018
4257
  if (t && t.nodeType === 1) {
@@ -4106,7 +4345,7 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
4106
4345
  * The elevation of the popover.
4107
4346
  * @default 8
4108
4347
  */
4109
- elevation: Wo,
4348
+ elevation: Ho,
4110
4349
  /**
4111
4350
  * Specifies how close to the edge of the window the popover can appear.
4112
4351
  * If null, the popover will not be constrained by the window.
@@ -4131,7 +4370,7 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
4131
4370
  * @default {}
4132
4371
  */
4133
4372
  PaperProps: e.shape({
4134
- component: Ko
4373
+ component: Yo
4135
4374
  }),
4136
4375
  /**
4137
4376
  * The props used for each slot inside.
@@ -4191,31 +4430,31 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
4191
4430
  */
4192
4431
  TransitionProps: e.object
4193
4432
  });
4194
- function Fn(o) {
4195
- return re("MuiMenu", o);
4433
+ function Bn(o) {
4434
+ return te("MuiMenu", o);
4196
4435
  }
4197
- ne("MuiMenu", ["root", "paper", "list"]);
4198
- const Dn = {
4436
+ oe("MuiMenu", ["root", "paper", "list"]);
4437
+ const Wn = {
4199
4438
  vertical: "top",
4200
4439
  horizontal: "right"
4201
- }, An = {
4440
+ }, zn = {
4202
4441
  vertical: "top",
4203
4442
  horizontal: "left"
4204
- }, jn = (o) => {
4443
+ }, Un = (o) => {
4205
4444
  const {
4206
4445
  classes: t
4207
4446
  } = o;
4208
- return se({
4447
+ return ne({
4209
4448
  root: ["root"],
4210
4449
  paper: ["paper"],
4211
4450
  list: ["list"]
4212
- }, Fn, t);
4213
- }, $n = $(ut, {
4214
- shouldForwardProp: (o) => we(o) || o === "classes",
4451
+ }, Bn, t);
4452
+ }, Vn = $(pt, {
4453
+ shouldForwardProp: (o) => Se(o) || o === "classes",
4215
4454
  name: "MuiMenu",
4216
4455
  slot: "Root",
4217
4456
  overridesResolver: (o, t) => t.root
4218
- })({}), Ln = $(ct, {
4457
+ })({}), _n = $(dt, {
4219
4458
  name: "MuiMenu",
4220
4459
  slot: "Paper",
4221
4460
  overridesResolver: (o, t) => t.paper
@@ -4226,107 +4465,107 @@ const Dn = {
4226
4465
  maxHeight: "calc(100% - 96px)",
4227
4466
  // Add iOS momentum scrolling for iOS < 13.0
4228
4467
  WebkitOverflowScrolling: "touch"
4229
- }), Bn = $(rt, {
4468
+ }), Hn = $(it, {
4230
4469
  name: "MuiMenu",
4231
4470
  slot: "List",
4232
4471
  overridesResolver: (o, t) => t.list
4233
4472
  })({
4234
4473
  // We disable the focus ring for mouse, touch and keyboard users.
4235
4474
  outline: 0
4236
- }), dt = /* @__PURE__ */ u.forwardRef(function(t, n) {
4237
- const r = he({
4475
+ }), ft = /* @__PURE__ */ c.forwardRef(function(t, n) {
4476
+ const r = ce({
4238
4477
  props: t,
4239
4478
  name: "MuiMenu"
4240
4479
  }), {
4241
4480
  autoFocus: s = !0,
4242
4481
  children: i,
4243
4482
  className: a,
4244
- disableAutoFocusItem: c = !1,
4245
- MenuListProps: f = {},
4483
+ disableAutoFocusItem: u = !1,
4484
+ MenuListProps: d = {},
4246
4485
  onClose: b,
4247
4486
  open: y,
4248
4487
  PaperProps: h = {},
4249
- PopoverClasses: T,
4250
- transitionDuration: d = "auto",
4488
+ PopoverClasses: v,
4489
+ transitionDuration: p = "auto",
4251
4490
  TransitionProps: {
4252
4491
  onEntering: g,
4253
- ...F
4492
+ ...k
4254
4493
  } = {},
4255
- variant: R = "selectedMenu",
4494
+ variant: E = "selectedMenu",
4256
4495
  slots: m = {},
4257
- slotProps: v = {},
4496
+ slotProps: T = {},
4258
4497
  ...l
4259
- } = r, p = Tt(), O = {
4498
+ } = r, f = Rt(), S = {
4260
4499
  ...r,
4261
4500
  autoFocus: s,
4262
- disableAutoFocusItem: c,
4263
- MenuListProps: f,
4501
+ disableAutoFocusItem: u,
4502
+ MenuListProps: d,
4264
4503
  onEntering: g,
4265
4504
  PaperProps: h,
4266
- transitionDuration: d,
4267
- TransitionProps: F,
4268
- variant: R
4269
- }, I = jn(O), x = s && !c && y, S = u.useRef(null), k = (w, U) => {
4270
- S.current && S.current.adjustStyleForScrollbar(w, {
4271
- direction: p ? "rtl" : "ltr"
4505
+ transitionDuration: p,
4506
+ TransitionProps: k,
4507
+ variant: E
4508
+ }, I = Un(S), P = s && !u && y, C = c.useRef(null), N = (w, U) => {
4509
+ C.current && C.current.adjustStyleForScrollbar(w, {
4510
+ direction: f ? "rtl" : "ltr"
4272
4511
  }), g && g(w, U);
4273
- }, N = (w) => {
4512
+ }, M = (w) => {
4274
4513
  w.key === "Tab" && (w.preventDefault(), b && b(w, "tabKeyDown"));
4275
4514
  };
4276
- let z = -1;
4277
- u.Children.map(i, (w, U) => {
4278
- /* @__PURE__ */ u.isValidElement(w) && (process.env.NODE_ENV !== "production" && co.isFragment(w) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4279
- `)), w.props.disabled || (R === "selectedMenu" && w.props.selected || z === -1) && (z = U));
4515
+ let A = -1;
4516
+ c.Children.map(i, (w, U) => {
4517
+ /* @__PURE__ */ c.isValidElement(w) && (process.env.NODE_ENV !== "production" && po.isFragment(w) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4518
+ `)), w.props.disabled || (E === "selectedMenu" && w.props.selected || A === -1) && (A = U));
4280
4519
  });
4281
- const _ = m.paper ?? Ln, K = v.paper ?? h, D = Oo({
4520
+ const W = m.paper ?? _n, H = T.paper ?? h, F = wo({
4282
4521
  elementType: m.root,
4283
- externalSlotProps: v.root,
4284
- ownerState: O,
4522
+ externalSlotProps: T.root,
4523
+ ownerState: S,
4285
4524
  className: [I.root, a]
4286
- }), C = Oo({
4287
- elementType: _,
4288
- externalSlotProps: K,
4289
- ownerState: O,
4525
+ }), R = wo({
4526
+ elementType: W,
4527
+ externalSlotProps: H,
4528
+ ownerState: S,
4290
4529
  className: I.paper
4291
4530
  });
4292
- return /* @__PURE__ */ P($n, {
4531
+ return /* @__PURE__ */ x(Vn, {
4293
4532
  onClose: b,
4294
4533
  anchorOrigin: {
4295
4534
  vertical: "bottom",
4296
- horizontal: p ? "right" : "left"
4535
+ horizontal: f ? "right" : "left"
4297
4536
  },
4298
- transformOrigin: p ? Dn : An,
4537
+ transformOrigin: f ? Wn : zn,
4299
4538
  slots: {
4300
- paper: _,
4539
+ paper: W,
4301
4540
  root: m.root
4302
4541
  },
4303
4542
  slotProps: {
4304
- root: D,
4305
- paper: C
4543
+ root: F,
4544
+ paper: R
4306
4545
  },
4307
4546
  open: y,
4308
4547
  ref: n,
4309
- transitionDuration: d,
4548
+ transitionDuration: p,
4310
4549
  TransitionProps: {
4311
- onEntering: k,
4312
- ...F
4550
+ onEntering: N,
4551
+ ...k
4313
4552
  },
4314
- ownerState: O,
4553
+ ownerState: S,
4315
4554
  ...l,
4316
- classes: T,
4317
- children: /* @__PURE__ */ P(Bn, {
4318
- onKeyDown: N,
4319
- actions: S,
4320
- autoFocus: s && (z === -1 || c),
4321
- autoFocusItem: x,
4322
- variant: R,
4323
- ...f,
4324
- className: ee(I.list, f.className),
4555
+ classes: v,
4556
+ children: /* @__PURE__ */ x(Hn, {
4557
+ onKeyDown: M,
4558
+ actions: C,
4559
+ autoFocus: s && (A === -1 || u),
4560
+ autoFocusItem: P,
4561
+ variant: E,
4562
+ ...d,
4563
+ className: Q(I.list, d.className),
4325
4564
  children: i
4326
4565
  })
4327
4566
  });
4328
4567
  });
4329
- process.env.NODE_ENV !== "production" && (dt.propTypes = {
4568
+ process.env.NODE_ENV !== "production" && (ft.propTypes = {
4330
4569
  // ┌────────────────────────────── Warning ──────────────────────────────┐
4331
4570
  // │ These PropTypes are generated from the TypeScript type definitions. │
4332
4571
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -4429,10 +4668,10 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
4429
4668
  */
4430
4669
  variant: e.oneOf(["menu", "selectedMenu"])
4431
4670
  });
4432
- function zn(o) {
4433
- return re("MuiNativeSelect", o);
4671
+ function Kn(o) {
4672
+ return te("MuiNativeSelect", o);
4434
4673
  }
4435
- const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Un = (o) => {
4674
+ const yo = oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), qn = (o) => {
4436
4675
  const {
4437
4676
  classes: t,
4438
4677
  variant: n,
@@ -4440,12 +4679,12 @@ const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4440
4679
  multiple: s,
4441
4680
  open: i,
4442
4681
  error: a
4443
- } = o, c = {
4682
+ } = o, u = {
4444
4683
  select: ["select", n, r && "disabled", s && "multiple", a && "error"],
4445
- icon: ["icon", `icon${Oe(n)}`, i && "iconOpen", r && "disabled"]
4684
+ icon: ["icon", `icon${ge(n)}`, i && "iconOpen", r && "disabled"]
4446
4685
  };
4447
- return se(c, zn, t);
4448
- }, pt = $("select")(({
4686
+ return ne(u, Kn, t);
4687
+ }, mt = $("select")(({
4449
4688
  theme: o
4450
4689
  }) => ({
4451
4690
  // Reset
@@ -4462,7 +4701,7 @@ const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4462
4701
  // Reset Chrome style
4463
4702
  borderRadius: 0
4464
4703
  },
4465
- [`&.${ho.disabled}`]: {
4704
+ [`&.${yo.disabled}`]: {
4466
4705
  cursor: "default"
4467
4706
  },
4468
4707
  "&[multiple]": {
@@ -4507,19 +4746,19 @@ const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4507
4746
  }
4508
4747
  }
4509
4748
  }]
4510
- })), Wn = $(pt, {
4749
+ })), Gn = $(mt, {
4511
4750
  name: "MuiNativeSelect",
4512
4751
  slot: "Select",
4513
- shouldForwardProp: we,
4752
+ shouldForwardProp: Se,
4514
4753
  overridesResolver: (o, t) => {
4515
4754
  const {
4516
4755
  ownerState: n
4517
4756
  } = o;
4518
4757
  return [t.select, t[n.variant], n.error && t.error, {
4519
- [`&.${ho.multiple}`]: t.multiple
4758
+ [`&.${yo.multiple}`]: t.multiple
4520
4759
  }];
4521
4760
  }
4522
- })({}), ft = $("svg")(({
4761
+ })({}), bt = $("svg")(({
4523
4762
  theme: o
4524
4763
  }) => ({
4525
4764
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -4531,7 +4770,7 @@ const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4531
4770
  // Don't block pointer events on the select under the icon.
4532
4771
  pointerEvents: "none",
4533
4772
  color: (o.vars || o).palette.action.active,
4534
- [`&.${ho.disabled}`]: {
4773
+ [`&.${yo.disabled}`]: {
4535
4774
  color: (o.vars || o).palette.action.disabled
4536
4775
  },
4537
4776
  variants: [{
@@ -4556,45 +4795,45 @@ const ho = ne("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
4556
4795
  right: 7
4557
4796
  }
4558
4797
  }]
4559
- })), Vn = $(ft, {
4798
+ })), Yn = $(bt, {
4560
4799
  name: "MuiNativeSelect",
4561
4800
  slot: "Icon",
4562
4801
  overridesResolver: (o, t) => {
4563
4802
  const {
4564
4803
  ownerState: n
4565
4804
  } = o;
4566
- return [t.icon, n.variant && t[`icon${Oe(n.variant)}`], n.open && t.iconOpen];
4805
+ return [t.icon, n.variant && t[`icon${ge(n.variant)}`], n.open && t.iconOpen];
4567
4806
  }
4568
- })({}), mt = /* @__PURE__ */ u.forwardRef(function(t, n) {
4807
+ })({}), ht = /* @__PURE__ */ c.forwardRef(function(t, n) {
4569
4808
  const {
4570
4809
  className: r,
4571
4810
  disabled: s,
4572
4811
  error: i,
4573
4812
  IconComponent: a,
4574
- inputRef: c,
4575
- variant: f = "standard",
4813
+ inputRef: u,
4814
+ variant: d = "standard",
4576
4815
  ...b
4577
4816
  } = t, y = {
4578
4817
  ...t,
4579
4818
  disabled: s,
4580
- variant: f,
4819
+ variant: d,
4581
4820
  error: i
4582
- }, h = Un(y);
4583
- return /* @__PURE__ */ ye(u.Fragment, {
4584
- children: [/* @__PURE__ */ P(Wn, {
4821
+ }, h = qn(y);
4822
+ return /* @__PURE__ */ ve(c.Fragment, {
4823
+ children: [/* @__PURE__ */ x(Gn, {
4585
4824
  ownerState: y,
4586
- className: ee(h.select, r),
4825
+ className: Q(h.select, r),
4587
4826
  disabled: s,
4588
- ref: c || n,
4827
+ ref: u || n,
4589
4828
  ...b
4590
- }), t.multiple ? null : /* @__PURE__ */ P(Vn, {
4829
+ }), t.multiple ? null : /* @__PURE__ */ x(Yn, {
4591
4830
  as: a,
4592
4831
  ownerState: y,
4593
4832
  className: h.icon
4594
4833
  })]
4595
4834
  });
4596
4835
  });
4597
- process.env.NODE_ENV !== "production" && (mt.propTypes = {
4836
+ process.env.NODE_ENV !== "production" && (ht.propTypes = {
4598
4837
  /**
4599
4838
  * The option elements to populate the select with.
4600
4839
  * Can be some `<option>` elements.
@@ -4624,7 +4863,7 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
4624
4863
  * Use that prop to pass a ref to the native select element.
4625
4864
  * @deprecated
4626
4865
  */
4627
- inputRef: xe,
4866
+ inputRef: Pe,
4628
4867
  /**
4629
4868
  * @ignore
4630
4869
  */
@@ -4649,12 +4888,12 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
4649
4888
  */
4650
4889
  variant: e.oneOf(["standard", "outlined", "filled"])
4651
4890
  });
4652
- function _n(o) {
4653
- return re("MuiSelect", o);
4891
+ function Xn(o) {
4892
+ return te("MuiSelect", o);
4654
4893
  }
4655
- const We = ne("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
4656
- var $o;
4657
- const Hn = $(pt, {
4894
+ const Ue = oe("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
4895
+ var Bo;
4896
+ const Zn = $(mt, {
4658
4897
  name: "MuiSelect",
4659
4898
  slot: "Select",
4660
4899
  overridesResolver: (o, t) => {
@@ -4664,22 +4903,22 @@ const Hn = $(pt, {
4664
4903
  return [
4665
4904
  // Win specificity over the input base
4666
4905
  {
4667
- [`&.${We.select}`]: t.select
4906
+ [`&.${Ue.select}`]: t.select
4668
4907
  },
4669
4908
  {
4670
- [`&.${We.select}`]: t[n.variant]
4909
+ [`&.${Ue.select}`]: t[n.variant]
4671
4910
  },
4672
4911
  {
4673
- [`&.${We.error}`]: t.error
4912
+ [`&.${Ue.error}`]: t.error
4674
4913
  },
4675
4914
  {
4676
- [`&.${We.multiple}`]: t.multiple
4915
+ [`&.${Ue.multiple}`]: t.multiple
4677
4916
  }
4678
4917
  ];
4679
4918
  }
4680
4919
  })({
4681
4920
  // Win specificity over the input base
4682
- [`&.${We.select}`]: {
4921
+ [`&.${Ue.select}`]: {
4683
4922
  height: "auto",
4684
4923
  // Resets for multiple select with chips
4685
4924
  minHeight: "1.4375em",
@@ -4688,17 +4927,17 @@ const Hn = $(pt, {
4688
4927
  whiteSpace: "nowrap",
4689
4928
  overflow: "hidden"
4690
4929
  }
4691
- }), Kn = $(ft, {
4930
+ }), Jn = $(bt, {
4692
4931
  name: "MuiSelect",
4693
4932
  slot: "Icon",
4694
4933
  overridesResolver: (o, t) => {
4695
4934
  const {
4696
4935
  ownerState: n
4697
4936
  } = o;
4698
- return [t.icon, n.variant && t[`icon${Oe(n.variant)}`], n.open && t.iconOpen];
4937
+ return [t.icon, n.variant && t[`icon${ge(n.variant)}`], n.open && t.iconOpen];
4699
4938
  }
4700
- })({}), qn = $("input", {
4701
- shouldForwardProp: (o) => yt(o) && o !== "classes",
4939
+ })({}), Qn = $("input", {
4940
+ shouldForwardProp: (o) => Tt(o) && o !== "classes",
4702
4941
  name: "MuiSelect",
4703
4942
  slot: "NativeInput",
4704
4943
  overridesResolver: (o, t) => t.nativeInput
@@ -4711,13 +4950,13 @@ const Hn = $(pt, {
4711
4950
  width: "100%",
4712
4951
  boxSizing: "border-box"
4713
4952
  });
4714
- function Lo(o, t) {
4953
+ function Wo(o, t) {
4715
4954
  return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
4716
4955
  }
4717
- function Gn(o) {
4956
+ function er(o) {
4718
4957
  return o == null || typeof o == "string" && !o.trim();
4719
4958
  }
4720
- const Yn = (o) => {
4959
+ const or = (o) => {
4721
4960
  const {
4722
4961
  classes: t,
4723
4962
  variant: n,
@@ -4725,235 +4964,235 @@ const Yn = (o) => {
4725
4964
  multiple: s,
4726
4965
  open: i,
4727
4966
  error: a
4728
- } = o, c = {
4967
+ } = o, u = {
4729
4968
  select: ["select", n, r && "disabled", s && "multiple", a && "error"],
4730
- icon: ["icon", `icon${Oe(n)}`, i && "iconOpen", r && "disabled"],
4969
+ icon: ["icon", `icon${ge(n)}`, i && "iconOpen", r && "disabled"],
4731
4970
  nativeInput: ["nativeInput"]
4732
4971
  };
4733
- return se(c, _n, t);
4734
- }, bt = /* @__PURE__ */ u.forwardRef(function(t, n) {
4735
- var yo;
4972
+ return ne(u, Xn, t);
4973
+ }, gt = /* @__PURE__ */ c.forwardRef(function(t, n) {
4974
+ var To;
4736
4975
  const {
4737
4976
  "aria-describedby": r,
4738
4977
  "aria-label": s,
4739
4978
  autoFocus: i,
4740
4979
  autoWidth: a,
4741
- children: c,
4742
- className: f,
4980
+ children: u,
4981
+ className: d,
4743
4982
  defaultOpen: b,
4744
4983
  defaultValue: y,
4745
4984
  disabled: h,
4746
- displayEmpty: T,
4747
- error: d = !1,
4985
+ displayEmpty: v,
4986
+ error: p = !1,
4748
4987
  IconComponent: g,
4749
- inputRef: F,
4750
- labelId: R,
4988
+ inputRef: k,
4989
+ labelId: E,
4751
4990
  MenuProps: m = {},
4752
- multiple: v,
4991
+ multiple: T,
4753
4992
  name: l,
4754
- onBlur: p,
4755
- onChange: O,
4993
+ onBlur: f,
4994
+ onChange: S,
4756
4995
  onClose: I,
4757
- onFocus: x,
4758
- onOpen: S,
4759
- open: k,
4760
- readOnly: N,
4761
- renderValue: z,
4762
- SelectDisplayProps: _ = {},
4763
- tabIndex: K,
4996
+ onFocus: P,
4997
+ onOpen: C,
4998
+ open: N,
4999
+ readOnly: M,
5000
+ renderValue: A,
5001
+ SelectDisplayProps: W = {},
5002
+ tabIndex: H,
4764
5003
  // catching `type` from Input which makes no sense for SelectInput
4765
- type: D,
4766
- value: C,
5004
+ type: F,
5005
+ value: R,
4767
5006
  variant: w = "standard",
4768
5007
  ...U
4769
- } = t, [M, Q] = So({
4770
- controlled: C,
5008
+ } = t, [D, ee] = xo({
5009
+ controlled: R,
4771
5010
  default: y,
4772
5011
  name: "Select"
4773
- }), [Se, ue] = So({
4774
- controlled: k,
5012
+ }), [we, de] = xo({
5013
+ controlled: N,
4775
5014
  default: b,
4776
5015
  name: "Select"
4777
- }), de = u.useRef(null), q = u.useRef(null), [G, ie] = u.useState(null), {
5016
+ }), pe = c.useRef(null), q = c.useRef(null), [G, ie] = c.useState(null), {
4778
5017
  current: ae
4779
- } = u.useRef(k != null), [pe, fe] = u.useState(), oe = ge(n, F), W = u.useCallback((E) => {
4780
- q.current = E, E && ie(E);
4781
- }, []), B = G == null ? void 0 : G.parentNode;
4782
- u.useImperativeHandle(oe, () => ({
5018
+ } = c.useRef(N != null), [fe, me] = c.useState(), re = ye(n, k), V = c.useCallback((O) => {
5019
+ q.current = O, O && ie(O);
5020
+ }, []), z = G == null ? void 0 : G.parentNode;
5021
+ c.useImperativeHandle(re, () => ({
4783
5022
  focus: () => {
4784
5023
  q.current.focus();
4785
5024
  },
4786
- node: de.current,
4787
- value: M
4788
- }), [M]), u.useEffect(() => {
4789
- b && Se && G && !ae && (fe(a ? null : B.clientWidth), q.current.focus());
4790
- }, [G, a]), u.useEffect(() => {
5025
+ node: pe.current,
5026
+ value: D
5027
+ }), [D]), c.useEffect(() => {
5028
+ b && we && G && !ae && (me(a ? null : z.clientWidth), q.current.focus());
5029
+ }, [G, a]), c.useEffect(() => {
4791
5030
  i && q.current.focus();
4792
- }, [i]), u.useEffect(() => {
4793
- if (!R)
5031
+ }, [i]), c.useEffect(() => {
5032
+ if (!E)
4794
5033
  return;
4795
- const E = le(q.current).getElementById(R);
4796
- if (E) {
4797
- const A = () => {
5034
+ const O = le(q.current).getElementById(E);
5035
+ if (O) {
5036
+ const j = () => {
4798
5037
  getSelection().isCollapsed && q.current.focus();
4799
5038
  };
4800
- return E.addEventListener("click", A), () => {
4801
- E.removeEventListener("click", A);
5039
+ return O.addEventListener("click", j), () => {
5040
+ O.removeEventListener("click", j);
4802
5041
  };
4803
5042
  }
4804
- }, [R]);
4805
- const L = (E, A) => {
4806
- E ? S && S(A) : I && I(A), ae || (fe(a ? null : B.clientWidth), ue(E));
4807
- }, X = (E) => {
4808
- E.button === 0 && (E.preventDefault(), q.current.focus(), L(!0, E));
4809
- }, j = (E) => {
4810
- L(!1, E);
4811
- }, H = u.Children.toArray(c), Te = (E) => {
4812
- const A = H.find((Z) => Z.props.value === E.target.value);
4813
- A !== void 0 && (Q(A.props.value), O && O(E, A));
4814
- }, Ee = (E) => (A) => {
5043
+ }, [E]);
5044
+ const B = (O, j) => {
5045
+ O ? C && C(j) : I && I(j), ae || (me(a ? null : z.clientWidth), de(O));
5046
+ }, X = (O) => {
5047
+ O.button === 0 && (O.preventDefault(), q.current.focus(), B(!0, O));
5048
+ }, L = (O) => {
5049
+ B(!1, O);
5050
+ }, K = c.Children.toArray(u), Ee = (O) => {
5051
+ const j = K.find((Z) => Z.props.value === O.target.value);
5052
+ j !== void 0 && (ee(j.props.value), S && S(O, j));
5053
+ }, Re = (O) => (j) => {
4815
5054
  let Z;
4816
- if (A.currentTarget.hasAttribute("tabindex")) {
4817
- if (v) {
4818
- Z = Array.isArray(M) ? M.slice() : [];
4819
- const Fe = M.indexOf(E.props.value);
4820
- Fe === -1 ? Z.push(E.props.value) : Z.splice(Fe, 1);
5055
+ if (j.currentTarget.hasAttribute("tabindex")) {
5056
+ if (T) {
5057
+ Z = Array.isArray(D) ? D.slice() : [];
5058
+ const Fe = D.indexOf(O.props.value);
5059
+ Fe === -1 ? Z.push(O.props.value) : Z.splice(Fe, 1);
4821
5060
  } else
4822
- Z = E.props.value;
4823
- if (E.props.onClick && E.props.onClick(A), M !== Z && (Q(Z), O)) {
4824
- const Fe = A.nativeEvent || A, vo = new Fe.constructor(Fe.type, Fe);
4825
- Object.defineProperty(vo, "target", {
5061
+ Z = O.props.value;
5062
+ if (O.props.onClick && O.props.onClick(j), D !== Z && (ee(Z), S)) {
5063
+ const Fe = j.nativeEvent || j, Eo = new Fe.constructor(Fe.type, Fe);
5064
+ Object.defineProperty(Eo, "target", {
4826
5065
  writable: !0,
4827
5066
  value: {
4828
5067
  value: Z,
4829
5068
  name: l
4830
5069
  }
4831
- }), O(vo, E);
5070
+ }), S(Eo, O);
4832
5071
  }
4833
- v || L(!1, A);
5072
+ T || B(!1, j);
4834
5073
  }
4835
- }, me = (E) => {
4836
- N || [
5074
+ }, be = (O) => {
5075
+ M || [
4837
5076
  " ",
4838
5077
  "ArrowUp",
4839
5078
  "ArrowDown",
4840
5079
  // The native select doesn't respond to enter on macOS, but it's recommended by
4841
5080
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
4842
5081
  "Enter"
4843
- ].includes(E.key) && (E.preventDefault(), L(!0, E));
4844
- }, te = G !== null && Se, Ie = (E) => {
4845
- !te && p && (Object.defineProperty(E, "target", {
5082
+ ].includes(O.key) && (O.preventDefault(), B(!0, O));
5083
+ }, se = G !== null && we, Ie = (O) => {
5084
+ !se && f && (Object.defineProperty(O, "target", {
4846
5085
  writable: !0,
4847
5086
  value: {
4848
- value: M,
5087
+ value: D,
4849
5088
  name: l
4850
5089
  }
4851
- }), p(E));
5090
+ }), f(O));
4852
5091
  };
4853
5092
  delete U["aria-invalid"];
4854
5093
  let Y, _e;
4855
- const Re = [];
5094
+ const Oe = [];
4856
5095
  let J = !1, je = !1;
4857
- (Qo({
4858
- value: M
4859
- }) || T) && (z ? Y = z(M) : J = !0);
4860
- const $e = H.map((E) => {
4861
- if (!/* @__PURE__ */ u.isValidElement(E))
5096
+ (Xe({
5097
+ value: D
5098
+ }) || v) && (A ? Y = A(D) : J = !0);
5099
+ const $e = K.map((O) => {
5100
+ if (!/* @__PURE__ */ c.isValidElement(O))
4862
5101
  return null;
4863
- process.env.NODE_ENV !== "production" && co.isFragment(E) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
5102
+ process.env.NODE_ENV !== "production" && po.isFragment(O) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
4864
5103
  `));
4865
- let A;
4866
- if (v) {
4867
- if (!Array.isArray(M))
4868
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Uo(2));
4869
- A = M.some((Z) => Lo(Z, E.props.value)), A && J && Re.push(E.props.children);
5104
+ let j;
5105
+ if (T) {
5106
+ if (!Array.isArray(D))
5107
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Vo(2));
5108
+ j = D.some((Z) => Wo(Z, O.props.value)), j && J && Oe.push(O.props.children);
4870
5109
  } else
4871
- A = Lo(M, E.props.value), A && J && (_e = E.props.children);
4872
- return A && (je = !0), /* @__PURE__ */ u.cloneElement(E, {
4873
- "aria-selected": A ? "true" : "false",
4874
- onClick: Ee(E),
5110
+ j = Wo(D, O.props.value), j && J && (_e = O.props.children);
5111
+ return j && (je = !0), /* @__PURE__ */ c.cloneElement(O, {
5112
+ "aria-selected": j ? "true" : "false",
5113
+ onClick: Re(O),
4875
5114
  onKeyUp: (Z) => {
4876
- Z.key === " " && Z.preventDefault(), E.props.onKeyUp && E.props.onKeyUp(Z);
5115
+ Z.key === " " && Z.preventDefault(), O.props.onKeyUp && O.props.onKeyUp(Z);
4877
5116
  },
4878
5117
  role: "option",
4879
- selected: A,
5118
+ selected: j,
4880
5119
  value: void 0,
4881
5120
  // The value is most likely not a valid HTML attribute.
4882
- "data-value": E.props.value
5121
+ "data-value": O.props.value
4883
5122
  // Instead, we provide it as a data attribute.
4884
5123
  });
4885
5124
  });
4886
- process.env.NODE_ENV !== "production" && u.useEffect(() => {
4887
- if (!je && !v && M !== "") {
4888
- const E = H.map((A) => A.props.value);
4889
- console.warn([`MUI: You have provided an out-of-range value \`${M}\` for the select ${l ? `(name="${l}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${E.filter((A) => A != null).map((A) => `\`${A}\``).join(", ") || '""'}.`].join(`
5125
+ process.env.NODE_ENV !== "production" && c.useEffect(() => {
5126
+ if (!je && !T && D !== "") {
5127
+ const O = K.map((j) => j.props.value);
5128
+ console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${l ? `(name="${l}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${O.filter((j) => j != null).map((j) => `\`${j}\``).join(", ") || '""'}.`].join(`
4890
5129
  `));
4891
5130
  }
4892
- }, [je, H, v, l, M]), J && (v ? Re.length === 0 ? Y = null : Y = Re.reduce((E, A, Z) => (E.push(A), Z < Re.length - 1 && E.push(", "), E), []) : Y = _e);
4893
- let Le = pe;
4894
- !a && ae && G && (Le = B.clientWidth);
5131
+ }, [je, K, T, l, D]), J && (T ? Oe.length === 0 ? Y = null : Y = Oe.reduce((O, j, Z) => (O.push(j), Z < Oe.length - 1 && O.push(", "), O), []) : Y = _e);
5132
+ let Le = fe;
5133
+ !a && ae && G && (Le = z.clientWidth);
4895
5134
  let Ne;
4896
- typeof K < "u" ? Ne = K : Ne = h ? null : 0;
4897
- const Me = _.id || (l ? `mui-component-select-${l}` : void 0), Pe = {
5135
+ typeof H < "u" ? Ne = H : Ne = h ? null : 0;
5136
+ const Me = W.id || (l ? `mui-component-select-${l}` : void 0), Ce = {
4898
5137
  ...t,
4899
5138
  variant: w,
4900
- value: M,
4901
- open: te,
4902
- error: d
4903
- }, V = Yn(Pe), ke = {
5139
+ value: D,
5140
+ open: se,
5141
+ error: p
5142
+ }, _ = or(Ce), ke = {
4904
5143
  ...m.PaperProps,
4905
- ...(yo = m.slotProps) == null ? void 0 : yo.paper
5144
+ ...(To = m.slotProps) == null ? void 0 : To.paper
4906
5145
  }, Be = Pt();
4907
- return /* @__PURE__ */ ye(u.Fragment, {
4908
- children: [/* @__PURE__ */ P(Hn, {
5146
+ return /* @__PURE__ */ ve(c.Fragment, {
5147
+ children: [/* @__PURE__ */ x(Zn, {
4909
5148
  as: "div",
4910
- ref: W,
5149
+ ref: V,
4911
5150
  tabIndex: Ne,
4912
5151
  role: "combobox",
4913
5152
  "aria-controls": Be,
4914
5153
  "aria-disabled": h ? "true" : void 0,
4915
- "aria-expanded": te ? "true" : "false",
5154
+ "aria-expanded": se ? "true" : "false",
4916
5155
  "aria-haspopup": "listbox",
4917
5156
  "aria-label": s,
4918
- "aria-labelledby": [R, Me].filter(Boolean).join(" ") || void 0,
5157
+ "aria-labelledby": [E, Me].filter(Boolean).join(" ") || void 0,
4919
5158
  "aria-describedby": r,
4920
- onKeyDown: me,
4921
- onMouseDown: h || N ? null : X,
5159
+ onKeyDown: be,
5160
+ onMouseDown: h || M ? null : X,
4922
5161
  onBlur: Ie,
4923
- onFocus: x,
4924
- ..._,
4925
- ownerState: Pe,
4926
- className: ee(_.className, V.select, f),
5162
+ onFocus: P,
5163
+ ...W,
5164
+ ownerState: Ce,
5165
+ className: Q(W.className, _.select, d),
4927
5166
  id: Me,
4928
- children: Gn(Y) ? (
5167
+ children: er(Y) ? (
4929
5168
  // notranslate needed while Google Translate will not fix zero-width space issue
4930
- $o || ($o = /* @__PURE__ */ P("span", {
5169
+ Bo || (Bo = /* @__PURE__ */ x("span", {
4931
5170
  className: "notranslate",
4932
5171
  children: "​"
4933
5172
  }))
4934
5173
  ) : Y
4935
- }), /* @__PURE__ */ P(qn, {
4936
- "aria-invalid": d,
4937
- value: Array.isArray(M) ? M.join(",") : M,
5174
+ }), /* @__PURE__ */ x(Qn, {
5175
+ "aria-invalid": p,
5176
+ value: Array.isArray(D) ? D.join(",") : D,
4938
5177
  name: l,
4939
- ref: de,
5178
+ ref: pe,
4940
5179
  "aria-hidden": !0,
4941
- onChange: Te,
5180
+ onChange: Ee,
4942
5181
  tabIndex: -1,
4943
5182
  disabled: h,
4944
- className: V.nativeInput,
5183
+ className: _.nativeInput,
4945
5184
  autoFocus: i,
4946
5185
  ...U,
4947
- ownerState: Pe
4948
- }), /* @__PURE__ */ P(Kn, {
5186
+ ownerState: Ce
5187
+ }), /* @__PURE__ */ x(Jn, {
4949
5188
  as: g,
4950
- className: V.icon,
4951
- ownerState: Pe
4952
- }), /* @__PURE__ */ P(dt, {
5189
+ className: _.icon,
5190
+ ownerState: Ce
5191
+ }), /* @__PURE__ */ x(ft, {
4953
5192
  id: `menu-${l || ""}`,
4954
- anchorEl: B,
4955
- open: te,
4956
- onClose: j,
5193
+ anchorEl: z,
5194
+ open: se,
5195
+ onClose: L,
4957
5196
  anchorOrigin: {
4958
5197
  vertical: "bottom",
4959
5198
  horizontal: "center"
@@ -4964,9 +5203,9 @@ const Yn = (o) => {
4964
5203
  },
4965
5204
  ...m,
4966
5205
  MenuListProps: {
4967
- "aria-labelledby": R,
5206
+ "aria-labelledby": E,
4968
5207
  role: "listbox",
4969
- "aria-multiselectable": v ? "true" : void 0,
5208
+ "aria-multiselectable": T ? "true" : void 0,
4970
5209
  disableListWrap: !0,
4971
5210
  id: Be,
4972
5211
  ...m.MenuListProps
@@ -4985,7 +5224,7 @@ const Yn = (o) => {
4985
5224
  })]
4986
5225
  });
4987
5226
  });
4988
- process.env.NODE_ENV !== "production" && (bt.propTypes = {
5227
+ process.env.NODE_ENV !== "production" && (gt.propTypes = {
4989
5228
  /**
4990
5229
  * @ignore
4991
5230
  */
@@ -5045,7 +5284,7 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
5045
5284
  * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
5046
5285
  * Equivalent to `ref`
5047
5286
  */
5048
- inputRef: xe,
5287
+ inputRef: Pe,
5049
5288
  /**
5050
5289
  * The ID of an element that acts as an additional label. The Select will
5051
5290
  * be labelled by the additional label and the selected value.
@@ -5129,116 +5368,116 @@ process.env.NODE_ENV !== "production" && (bt.propTypes = {
5129
5368
  */
5130
5369
  variant: e.oneOf(["standard", "outlined", "filled"])
5131
5370
  });
5132
- const Xn = xt(/* @__PURE__ */ P("path", {
5371
+ const tr = It(/* @__PURE__ */ x("path", {
5133
5372
  d: "M7 10l5 5 5-5z"
5134
- }), "ArrowDropDown"), Zn = (o) => {
5373
+ }), "ArrowDropDown"), nr = (o) => {
5135
5374
  const {
5136
5375
  classes: t
5137
5376
  } = o;
5138
5377
  return t;
5139
- }, go = {
5378
+ }, vo = {
5140
5379
  name: "MuiSelect",
5141
5380
  overridesResolver: (o, t) => t.root,
5142
- shouldForwardProp: (o) => we(o) && o !== "variant",
5381
+ shouldForwardProp: (o) => Se(o) && o !== "variant",
5143
5382
  slot: "Root"
5144
- }, Jn = $(Xe, go)(""), Qn = $(Je, go)(""), er = $(Ze, go)(""), ht = /* @__PURE__ */ u.forwardRef(function(t, n) {
5145
- const r = Dt({
5383
+ }, rr = $(Ze, vo)(""), sr = $(Qe, vo)(""), ir = $(Je, vo)(""), yt = /* @__PURE__ */ c.forwardRef(function(t, n) {
5384
+ const r = At({
5146
5385
  name: "MuiSelect",
5147
5386
  props: t
5148
5387
  }), {
5149
5388
  autoWidth: s = !1,
5150
5389
  children: i,
5151
5390
  classes: a = {},
5152
- className: c,
5153
- defaultOpen: f = !1,
5391
+ className: u,
5392
+ defaultOpen: d = !1,
5154
5393
  displayEmpty: b = !1,
5155
- IconComponent: y = Xn,
5394
+ IconComponent: y = tr,
5156
5395
  id: h,
5157
- input: T,
5158
- inputProps: d,
5396
+ input: v,
5397
+ inputProps: p,
5159
5398
  label: g,
5160
- labelId: F,
5161
- MenuProps: R,
5399
+ labelId: k,
5400
+ MenuProps: E,
5162
5401
  multiple: m = !1,
5163
- native: v = !1,
5402
+ native: T = !1,
5164
5403
  onClose: l,
5165
- onOpen: p,
5166
- open: O,
5404
+ onOpen: f,
5405
+ open: S,
5167
5406
  renderValue: I,
5168
- SelectDisplayProps: x,
5169
- variant: S = "outlined",
5170
- ...k
5171
- } = r, N = v ? mt : bt, z = fo(), _ = bo({
5407
+ SelectDisplayProps: P,
5408
+ variant: C = "outlined",
5409
+ ...N
5410
+ } = r, M = T ? ht : gt, A = fo(), W = go({
5172
5411
  props: r,
5173
- muiFormControl: z,
5412
+ muiFormControl: A,
5174
5413
  states: ["variant", "error"]
5175
- }), K = _.variant || S, D = {
5414
+ }), H = W.variant || C, F = {
5176
5415
  ...r,
5177
- variant: K,
5416
+ variant: H,
5178
5417
  classes: a
5179
- }, C = Zn(D), {
5418
+ }, R = nr(F), {
5180
5419
  root: w,
5181
5420
  ...U
5182
- } = C, M = T || {
5183
- standard: /* @__PURE__ */ P(Jn, {
5184
- ownerState: D
5421
+ } = R, D = v || {
5422
+ standard: /* @__PURE__ */ x(rr, {
5423
+ ownerState: F
5185
5424
  }),
5186
- outlined: /* @__PURE__ */ P(Qn, {
5425
+ outlined: /* @__PURE__ */ x(sr, {
5187
5426
  label: g,
5188
- ownerState: D
5427
+ ownerState: F
5189
5428
  }),
5190
- filled: /* @__PURE__ */ P(er, {
5191
- ownerState: D
5429
+ filled: /* @__PURE__ */ x(ir, {
5430
+ ownerState: F
5192
5431
  })
5193
- }[K], Q = ge(n, uo(M));
5194
- return /* @__PURE__ */ P(u.Fragment, {
5195
- children: /* @__PURE__ */ u.cloneElement(M, {
5432
+ }[H], ee = ye(n, mo(D));
5433
+ return /* @__PURE__ */ x(c.Fragment, {
5434
+ children: /* @__PURE__ */ c.cloneElement(D, {
5196
5435
  // Most of the logic is implemented in `SelectInput`.
5197
5436
  // The `Select` component is a simple API wrapper to expose something better to play with.
5198
- inputComponent: N,
5437
+ inputComponent: M,
5199
5438
  inputProps: {
5200
5439
  children: i,
5201
- error: _.error,
5440
+ error: W.error,
5202
5441
  IconComponent: y,
5203
- variant: K,
5442
+ variant: H,
5204
5443
  type: void 0,
5205
5444
  // We render a select. We can ignore the type provided by the `Input`.
5206
5445
  multiple: m,
5207
- ...v ? {
5446
+ ...T ? {
5208
5447
  id: h
5209
5448
  } : {
5210
5449
  autoWidth: s,
5211
- defaultOpen: f,
5450
+ defaultOpen: d,
5212
5451
  displayEmpty: b,
5213
- labelId: F,
5214
- MenuProps: R,
5452
+ labelId: k,
5453
+ MenuProps: E,
5215
5454
  onClose: l,
5216
- onOpen: p,
5217
- open: O,
5455
+ onOpen: f,
5456
+ open: S,
5218
5457
  renderValue: I,
5219
5458
  SelectDisplayProps: {
5220
5459
  id: h,
5221
- ...x
5460
+ ...P
5222
5461
  }
5223
5462
  },
5224
- ...d,
5225
- classes: d ? lo(U, d.classes) : U,
5226
- ...T ? T.props.inputProps : {}
5463
+ ...p,
5464
+ classes: p ? uo(U, p.classes) : U,
5465
+ ...v ? v.props.inputProps : {}
5227
5466
  },
5228
- ...(m && v || b) && K === "outlined" ? {
5467
+ ...(m && T || b) && H === "outlined" ? {
5229
5468
  notched: !0
5230
5469
  } : {},
5231
- ref: Q,
5232
- className: ee(M.props.className, c, C.root),
5470
+ ref: ee,
5471
+ className: Q(D.props.className, u, R.root),
5233
5472
  // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
5234
- ...!T && {
5235
- variant: K
5473
+ ...!v && {
5474
+ variant: H
5236
5475
  },
5237
- ...k
5476
+ ...N
5238
5477
  })
5239
5478
  });
5240
5479
  });
5241
- process.env.NODE_ENV !== "production" && (ht.propTypes = {
5480
+ process.env.NODE_ENV !== "production" && (yt.propTypes = {
5242
5481
  // ┌────────────────────────────── Warning ──────────────────────────────┐
5243
5482
  // │ These PropTypes are generated from the TypeScript type definitions. │
5244
5483
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -5385,18 +5624,18 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
5385
5624
  */
5386
5625
  variant: e.oneOf(["filled", "outlined", "standard"])
5387
5626
  });
5388
- ht.muiName = "Select";
5627
+ yt.muiName = "Select";
5389
5628
  export {
5390
- Ze as F,
5391
- Xe as I,
5392
- at as M,
5393
- Je as O,
5394
- lt as P,
5395
- ht as S,
5396
- Qo as a,
5397
- Yo as d,
5398
- bo as f,
5399
- Mt as g,
5400
- br as i,
5401
- ve as o
5629
+ sn as F,
5630
+ Ze as I,
5631
+ nt as L,
5632
+ ct as M,
5633
+ Qe as O,
5634
+ ut as P,
5635
+ yt as S,
5636
+ Je as a,
5637
+ Jo as d,
5638
+ go as f,
5639
+ kt as g,
5640
+ Te as o
5402
5641
  };