@smart-factor/gem-ui-components 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,249 +1,339 @@
1
- import ft, { jsx as x, jsxs as de } from "react/jsx-runtime";
2
- import { c as J, P as n, _ as f, o as q, C as mt, a as H, b as ht, s as ye, u as Ee, d as bt, e as vt, f as gt, g as xe, h as Y, i as yt, j as Et, k as Q, l as ee, m as L, n as Ie, p as te, q as z, r as pe, t as V, v as ne, T as Ue, w as ze, x as le, y as We, z as Ke, A as xt, B as Me, D as Tt, E as kt, F as Pt, S as Pe, G as Rt, H as wt, I as Nt } from "./Stack-eW3BwJUw.js";
3
- import * as u from "react";
4
- import * as Ct from "react-dom";
5
- var ve = {};
6
- function Ot(e) {
1
+ import gn, { jsx as x, jsxs as de } from "react/jsx-runtime";
2
+ import { c as J, P as t, _ as d, a as V, b as H, u as W, C as yn, d as U, e as En, s as ye, f as Ee, g as xn, h as xe, i as Tn, j as kn, k as Q, l as ee, m as L, n as $e, o as ne, p as pe, q as te, T as Ke, r as Ye, t as le, v as Ge, w as Xe, x as Pn, y as Rn, B as Nn, S as Pe, z as wn, A as Cn, I as Sn } from "./Stack-dIR9-9Sw.js";
3
+ import * as p from "react";
4
+ import * as On from "react-dom";
5
+ var be = {};
6
+ function In(e) {
7
7
  const {
8
- prototype: t = {}
8
+ prototype: n = {}
9
9
  } = e;
10
- return !!t.isReactComponent;
10
+ return !!n.isReactComponent;
11
11
  }
12
- function Ye(e, t, r, o, i) {
13
- const s = e[t], a = i || t;
14
- if (s == null || // When server-side rendering React doesn't warn either.
12
+ function Ze(e, n, r, o, s) {
13
+ const i = e[n], a = s || n;
14
+ if (i == null || // When server-side rendering React doesn't warn either.
15
15
  // This is not an accurate check for SSR.
16
16
  // This is only in place for Emotion compat.
17
17
  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
18
18
  typeof window > "u")
19
19
  return null;
20
20
  let l;
21
- const c = s.type;
22
- return typeof c == "function" && !Ot(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
21
+ const c = i.type;
22
+ return typeof c == "function" && !In(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
23
23
  }
24
- const oe = J(n.element, Ye);
25
- oe.isRequired = J(n.element.isRequired, Ye);
26
- const St = "exact-prop: ​";
27
- function Ge(e) {
28
- return process.env.NODE_ENV === "production" ? e : f({}, e, {
29
- [St]: (t) => {
30
- const r = Object.keys(t).filter((o) => !e.hasOwnProperty(o));
24
+ const oe = J(t.element, Ze);
25
+ oe.isRequired = J(t.element.isRequired, Ze);
26
+ const Dn = "exact-prop: ​";
27
+ function Je(e) {
28
+ return process.env.NODE_ENV === "production" ? e : d({}, e, {
29
+ [Dn]: (n) => {
30
+ const r = Object.keys(n).filter((o) => !e.hasOwnProperty(o));
31
31
  return r.length > 0 ? new Error(`The following props are not supported: ${r.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
32
32
  }
33
33
  });
34
34
  }
35
- function Re(e, t, r, o, i) {
35
+ function Re(e, n, r, o, s) {
36
36
  if (process.env.NODE_ENV === "production")
37
37
  return null;
38
- const s = e[t], a = i || t;
39
- return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
38
+ const i = e[n], a = s || n;
39
+ return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
40
40
  }
41
41
  function Te(...e) {
42
- return e.reduce((t, r) => r == null ? t : function(...i) {
43
- t.apply(this, i), r.apply(this, i);
42
+ return e.reduce((n, r) => r == null ? n : function(...s) {
43
+ n.apply(this, s), r.apply(this, s);
44
44
  }, () => {
45
45
  });
46
46
  }
47
- function Xe(e, t = 166) {
47
+ function Qe(e, n = 166) {
48
48
  let r;
49
- function o(...i) {
50
- const s = () => {
51
- e.apply(this, i);
49
+ function o(...s) {
50
+ const i = () => {
51
+ e.apply(this, s);
52
52
  };
53
- clearTimeout(r), r = setTimeout(s, t);
53
+ clearTimeout(r), r = setTimeout(i, n);
54
54
  }
55
55
  return o.clear = () => {
56
56
  clearTimeout(r);
57
57
  }, o;
58
58
  }
59
- function Dt(e, t) {
60
- return process.env.NODE_ENV === "production" ? () => null : (r, o, i, s, a) => {
61
- const l = i || "<<anonymous>>", c = a || o;
62
- return typeof r[o] < "u" ? new Error(`The ${s} \`${c}\` of \`${l}\` is deprecated. ${t}`) : null;
59
+ function $n(e, n) {
60
+ return process.env.NODE_ENV === "production" ? () => null : (r, o, s, i, a) => {
61
+ const l = s || "<<anonymous>>", c = a || o;
62
+ return typeof r[o] < "u" ? new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${n}`) : null;
63
63
  };
64
64
  }
65
- function $t(e, t) {
65
+ function Mn(e, n) {
66
66
  var r, o;
67
- return /* @__PURE__ */ u.isValidElement(e) && t.indexOf(
67
+ return /* @__PURE__ */ p.isValidElement(e) && n.indexOf(
68
68
  // For server components `muiName` is avaialble in element.type._payload.value.muiName
69
69
  // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
70
70
  // eslint-disable-next-line no-underscore-dangle
71
71
  (r = e.type.muiName) != null ? r : (o = e.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
72
72
  ) !== -1;
73
73
  }
74
+ function q(e) {
75
+ return e && e.ownerDocument || document;
76
+ }
74
77
  function G(e) {
75
78
  return q(e).defaultView || window;
76
79
  }
77
- function It(e, t) {
80
+ function _n(e, n) {
78
81
  if (process.env.NODE_ENV === "production")
79
82
  return () => null;
80
- const r = t ? f({}, t.propTypes) : null;
81
- return (i) => (s, a, l, c, d, ...m) => {
82
- const v = d || a, g = r == null ? void 0 : r[v];
83
+ const r = n ? d({}, n.propTypes) : null;
84
+ return (s) => (i, a, l, c, u, ...f) => {
85
+ const b = u || a, g = r == null ? void 0 : r[b];
83
86
  if (g) {
84
- const y = g(s, a, l, c, d, ...m);
87
+ const y = g(i, a, l, c, u, ...f);
85
88
  if (y)
86
89
  return y;
87
90
  }
88
- return typeof s[a] < "u" && !s[i] ? new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${i}\` prop.`) : null;
91
+ return typeof i[a] < "u" && !i[s] ? new Error(`The prop \`${b}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
89
92
  };
90
93
  }
91
- function Mt(e) {
92
- const t = e.documentElement.clientWidth;
93
- return Math.abs(window.innerWidth - t);
94
+ let Me = 0;
95
+ function Fn(e) {
96
+ const [n, r] = p.useState(e), o = e || n;
97
+ return p.useEffect(() => {
98
+ n == null && (Me += 1, r(`mui-${Me}`));
99
+ }, [n]), o;
100
+ }
101
+ const _e = p.useId;
102
+ function Bn(e) {
103
+ if (_e !== void 0) {
104
+ const n = _e();
105
+ return e ?? n;
106
+ }
107
+ return Fn(e);
108
+ }
109
+ function jn(e, n, r, o, s) {
110
+ if (process.env.NODE_ENV === "production")
111
+ return null;
112
+ const i = s || n;
113
+ return typeof e[n] < "u" ? new Error(`The prop \`${i}\` is not supported. Please remove it.`) : null;
114
+ }
115
+ function An(e) {
116
+ const n = e.documentElement.clientWidth;
117
+ return Math.abs(window.innerWidth - n);
94
118
  }
95
- function _t(e) {
96
- const t = typeof e;
97
- switch (t) {
119
+ function Vn(e) {
120
+ const n = typeof e;
121
+ switch (n) {
98
122
  case "number":
99
123
  return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
100
124
  case "object":
101
125
  return e === null ? "null" : e.constructor.name;
102
126
  default:
103
- return t;
127
+ return n;
104
128
  }
105
129
  }
106
- function Ft(e) {
130
+ function Ln(e) {
107
131
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
108
132
  }
109
- const Bt = Number.isInteger || Ft;
110
- function Ze(e, t, r, o) {
111
- const i = e[t];
112
- if (i == null || !Bt(i)) {
113
- const s = _t(i);
114
- return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${r}\`, expected \`integer\`.`);
133
+ const qn = Number.isInteger || Ln;
134
+ function en(e, n, r, o) {
135
+ const s = e[n];
136
+ if (s == null || !qn(s)) {
137
+ const i = Vn(s);
138
+ return new RangeError(`Invalid ${o} \`${n}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`);
115
139
  }
116
140
  return null;
117
141
  }
118
- function Je(e, t, ...r) {
119
- return e[t] === void 0 ? null : Ze(e, t, ...r);
142
+ function nn(e, n, ...r) {
143
+ return e[n] === void 0 ? null : en(e, n, ...r);
120
144
  }
121
145
  function ke() {
122
146
  return null;
123
147
  }
124
- Je.isRequired = Ze;
148
+ nn.isRequired = en;
125
149
  ke.isRequired = ke;
126
- const Qe = process.env.NODE_ENV === "production" ? ke : Je;
150
+ const tn = process.env.NODE_ENV === "production" ? ke : nn;
151
+ function Hn(e) {
152
+ return typeof e == "string";
153
+ }
154
+ function Un(e, n, r) {
155
+ return e === void 0 || Hn(e) ? n : d({}, n, {
156
+ ownerState: d({}, n.ownerState, r)
157
+ });
158
+ }
159
+ function on(e, n = []) {
160
+ if (e === void 0)
161
+ return {};
162
+ const r = {};
163
+ return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !n.includes(o)).forEach((o) => {
164
+ r[o] = e[o];
165
+ }), r;
166
+ }
167
+ function Fe(e) {
168
+ if (e === void 0)
169
+ return {};
170
+ const n = {};
171
+ return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => {
172
+ n[r] = e[r];
173
+ }), n;
174
+ }
175
+ function zn(e) {
176
+ const {
177
+ getSlotProps: n,
178
+ additionalProps: r,
179
+ externalSlotProps: o,
180
+ externalForwardedProps: s,
181
+ className: i
182
+ } = e;
183
+ if (!n) {
184
+ const y = V(r == null ? void 0 : r.className, i, s == null ? void 0 : s.className, o == null ? void 0 : o.className), v = d({}, r == null ? void 0 : r.style, s == null ? void 0 : s.style, o == null ? void 0 : o.style), P = d({}, r, s, o);
185
+ return y.length > 0 && (P.className = y), Object.keys(v).length > 0 && (P.style = v), {
186
+ props: P,
187
+ internalRef: void 0
188
+ };
189
+ }
190
+ const a = on(d({}, s, o)), l = Fe(o), c = Fe(s), u = n(a), f = V(u == null ? void 0 : u.className, r == null ? void 0 : r.className, i, s == null ? void 0 : s.className, o == null ? void 0 : o.className), b = d({}, u == null ? void 0 : u.style, r == null ? void 0 : r.style, s == null ? void 0 : s.style, o == null ? void 0 : o.style), g = d({}, u, r, c, l);
191
+ return f.length > 0 && (g.className = f), Object.keys(b).length > 0 && (g.style = b), {
192
+ props: g,
193
+ internalRef: u.ref
194
+ };
195
+ }
196
+ function Wn(e, n, r) {
197
+ return typeof e == "function" ? e(n, r) : e;
198
+ }
199
+ const Kn = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
200
+ function Be(e) {
201
+ var n;
202
+ const {
203
+ elementType: r,
204
+ externalSlotProps: o,
205
+ ownerState: s,
206
+ skipResolvingSlotProps: i = !1
207
+ } = e, a = H(e, Kn), l = i ? {} : Wn(o, s), {
208
+ props: c,
209
+ internalRef: u
210
+ } = zn(d({}, a, {
211
+ externalSlotProps: l
212
+ })), f = W(u, l == null ? void 0 : l.ref, (n = e.additionalProps) == null ? void 0 : n.ref);
213
+ return Un(r, d({}, c, {
214
+ ref: f
215
+ }), s);
216
+ }
127
217
  function fe(e) {
128
- if (parseInt(u.version, 10) >= 19) {
129
- var t;
130
- return (e == null || (t = e.props) == null ? void 0 : t.ref) || null;
218
+ if (parseInt(p.version, 10) >= 19) {
219
+ var n;
220
+ return (e == null || (n = e.props) == null ? void 0 : n.ref) || null;
131
221
  }
132
222
  return (e == null ? void 0 : e.ref) || null;
133
223
  }
134
- const jt = {
224
+ const Yn = {
135
225
  configure: (e) => {
136
226
  process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
137
- `)), mt.configure(e);
227
+ `)), yn.configure(e);
138
228
  }
139
- }, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
229
+ }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
140
230
  __proto__: null,
141
- capitalize: H,
231
+ capitalize: U,
142
232
  createChainedFunction: Te,
143
- createSvgIcon: ht,
144
- debounce: Xe,
145
- deprecatedPropType: Dt,
146
- isMuiElement: $t,
233
+ createSvgIcon: En,
234
+ debounce: Qe,
235
+ deprecatedPropType: $n,
236
+ isMuiElement: Mn,
147
237
  ownerDocument: q,
148
238
  ownerWindow: G,
149
- requirePropFactory: It,
239
+ requirePropFactory: _n,
150
240
  setRef: ye,
151
- unstable_ClassNameGenerator: jt,
241
+ unstable_ClassNameGenerator: Yn,
152
242
  unstable_useEnhancedEffect: Ee,
153
- unstable_useId: bt,
154
- unsupportedProp: vt,
155
- useControlled: gt,
243
+ unstable_useId: Bn,
244
+ unsupportedProp: jn,
245
+ useControlled: xn,
156
246
  useEventCallback: xe,
157
- useForkRef: Y,
158
- useIsFocusVisible: yt
159
- }, Symbol.toStringTag, { value: "Module" })), Lt = /* @__PURE__ */ Et(At);
160
- var _e;
161
- function Vt() {
162
- return _e || (_e = 1, function(e) {
247
+ useForkRef: W,
248
+ useIsFocusVisible: Tn
249
+ }, Symbol.toStringTag, { value: "Module" })), Xn = /* @__PURE__ */ kn(Gn);
250
+ var je;
251
+ function Zn() {
252
+ return je || (je = 1, function(e) {
163
253
  "use client";
164
254
  Object.defineProperty(e, "__esModule", {
165
255
  value: !0
166
256
  }), Object.defineProperty(e, "default", {
167
257
  enumerable: !0,
168
258
  get: function() {
169
- return t.createSvgIcon;
259
+ return n.createSvgIcon;
170
260
  }
171
261
  });
172
- var t = Lt;
173
- }(ve)), ve;
262
+ var n = Xn;
263
+ }(be)), be;
174
264
  }
175
- const Fe = (e) => {
176
- let t;
177
- return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
265
+ const Ae = (e) => {
266
+ let n;
267
+ return e < 1 ? n = 5.11916 * e ** 2 : n = 4.5 * Math.log(e + 1) + 2, (n / 100).toFixed(2);
178
268
  };
179
- function qt(e) {
269
+ function Jn(e) {
180
270
  return Q("MuiPaper", e);
181
271
  }
182
272
  ee("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"]);
183
- const Ht = ["className", "component", "elevation", "square", "variant"], Ut = (e) => {
273
+ const Qn = ["className", "component", "elevation", "square", "variant"], et = (e) => {
184
274
  const {
185
- square: t,
275
+ square: n,
186
276
  elevation: r,
187
277
  variant: o,
188
- classes: i
189
- } = e, s = {
190
- root: ["root", o, !t && "rounded", o === "elevation" && `elevation${r}`]
278
+ classes: s
279
+ } = e, i = {
280
+ root: ["root", o, !n && "rounded", o === "elevation" && `elevation${r}`]
191
281
  };
192
- return ne(s, qt, i);
193
- }, zt = L("div", {
282
+ return te(i, Jn, s);
283
+ }, nt = L("div", {
194
284
  name: "MuiPaper",
195
285
  slot: "Root",
196
- overridesResolver: (e, t) => {
286
+ overridesResolver: (e, n) => {
197
287
  const {
198
288
  ownerState: r
199
289
  } = e;
200
- return [t.root, t[r.variant], !r.square && t.rounded, r.variant === "elevation" && t[`elevation${r.elevation}`]];
290
+ return [n.root, n[r.variant], !r.square && n.rounded, r.variant === "elevation" && n[`elevation${r.elevation}`]];
201
291
  }
202
292
  })(({
203
293
  theme: e,
204
- ownerState: t
294
+ ownerState: n
205
295
  }) => {
206
296
  var r;
207
- return f({
297
+ return d({
208
298
  backgroundColor: (e.vars || e).palette.background.paper,
209
299
  color: (e.vars || e).palette.text.primary,
210
300
  transition: e.transitions.create("box-shadow")
211
- }, !t.square && {
301
+ }, !n.square && {
212
302
  borderRadius: e.shape.borderRadius
213
- }, t.variant === "outlined" && {
303
+ }, n.variant === "outlined" && {
214
304
  border: `1px solid ${(e.vars || e).palette.divider}`
215
- }, t.variant === "elevation" && f({
216
- boxShadow: (e.vars || e).shadows[t.elevation]
305
+ }, n.variant === "elevation" && d({
306
+ boxShadow: (e.vars || e).shadows[n.elevation]
217
307
  }, !e.vars && e.palette.mode === "dark" && {
218
- backgroundImage: `linear-gradient(${Ie("#fff", Fe(t.elevation))}, ${Ie("#fff", Fe(t.elevation))})`
308
+ backgroundImage: `linear-gradient(${$e("#fff", Ae(n.elevation))}, ${$e("#fff", Ae(n.elevation))})`
219
309
  }, e.vars && {
220
- backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[t.elevation]
310
+ backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[n.elevation]
221
311
  }));
222
- }), et = /* @__PURE__ */ u.forwardRef(function(t, r) {
223
- const o = te({
224
- props: t,
312
+ }), rn = /* @__PURE__ */ p.forwardRef(function(n, r) {
313
+ const o = ne({
314
+ props: n,
225
315
  name: "MuiPaper"
226
316
  }), {
227
- className: i,
228
- component: s = "div",
317
+ className: s,
318
+ component: i = "div",
229
319
  elevation: a = 1,
230
320
  square: l = !1,
231
321
  variant: c = "elevation"
232
- } = o, d = z(o, Ht), m = f({}, o, {
233
- component: s,
322
+ } = o, u = H(o, Qn), f = d({}, o, {
323
+ component: i,
234
324
  elevation: a,
235
325
  square: l,
236
326
  variant: c
237
- }), v = Ut(m);
327
+ }), b = et(f);
238
328
  return process.env.NODE_ENV !== "production" && pe().shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
239
- `)), /* @__PURE__ */ x(zt, f({
240
- as: s,
241
- ownerState: m,
242
- className: V(v.root, i),
329
+ `)), /* @__PURE__ */ x(nt, d({
330
+ as: i,
331
+ ownerState: f,
332
+ className: V(b.root, s),
243
333
  ref: r
244
- }, d));
334
+ }, u));
245
335
  });
246
- process.env.NODE_ENV !== "production" && (et.propTypes = {
336
+ process.env.NODE_ENV !== "production" && (rn.propTypes = {
247
337
  // ┌────────────────────────────── Warning ──────────────────────────────┐
248
338
  // │ These PropTypes are generated from the TypeScript type definitions. │
249
339
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -251,76 +341,76 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
251
341
  /**
252
342
  * The content of the component.
253
343
  */
254
- children: n.node,
344
+ children: t.node,
255
345
  /**
256
346
  * Override or extend the styles applied to the component.
257
347
  */
258
- classes: n.object,
348
+ classes: t.object,
259
349
  /**
260
350
  * @ignore
261
351
  */
262
- className: n.string,
352
+ className: t.string,
263
353
  /**
264
354
  * The component used for the root node.
265
355
  * Either a string to use a HTML element or a component.
266
356
  */
267
- component: n.elementType,
357
+ component: t.elementType,
268
358
  /**
269
359
  * Shadow depth, corresponds to `dp` in the spec.
270
360
  * It accepts values between 0 and 24 inclusive.
271
361
  * @default 1
272
362
  */
273
- elevation: J(Qe, (e) => {
363
+ elevation: J(tn, (e) => {
274
364
  const {
275
- elevation: t,
365
+ elevation: n,
276
366
  variant: r
277
367
  } = e;
278
- return t > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
368
+ return n > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
279
369
  }),
280
370
  /**
281
371
  * If `true`, rounded corners are disabled.
282
372
  * @default false
283
373
  */
284
- square: n.bool,
374
+ square: t.bool,
285
375
  /**
286
376
  * The system prop that allows defining system overrides as well as additional CSS styles.
287
377
  */
288
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
378
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
289
379
  /**
290
380
  * The variant to use.
291
381
  * @default 'elevation'
292
382
  */
293
- variant: n.oneOfType([n.oneOf(["elevation", "outlined"]), n.string])
383
+ variant: t.oneOfType([t.oneOf(["elevation", "outlined"]), t.string])
294
384
  });
295
- function Wt(e) {
385
+ function tt(e) {
296
386
  return typeof e == "function" ? e() : e;
297
387
  }
298
- const ce = /* @__PURE__ */ u.forwardRef(function(t, r) {
388
+ const ce = /* @__PURE__ */ p.forwardRef(function(n, r) {
299
389
  const {
300
390
  children: o,
301
- container: i,
302
- disablePortal: s = !1
303
- } = t, [a, l] = u.useState(null), c = Y(/* @__PURE__ */ u.isValidElement(o) ? fe(o) : null, r);
391
+ container: s,
392
+ disablePortal: i = !1
393
+ } = n, [a, l] = p.useState(null), c = W(/* @__PURE__ */ p.isValidElement(o) ? fe(o) : null, r);
304
394
  if (Ee(() => {
305
- s || l(Wt(i) || document.body);
306
- }, [i, s]), Ee(() => {
307
- if (a && !s)
395
+ i || l(tt(s) || document.body);
396
+ }, [s, i]), Ee(() => {
397
+ if (a && !i)
308
398
  return ye(r, a), () => {
309
399
  ye(r, null);
310
400
  };
311
- }, [r, a, s]), s) {
312
- if (/* @__PURE__ */ u.isValidElement(o)) {
313
- const d = {
401
+ }, [r, a, i]), i) {
402
+ if (/* @__PURE__ */ p.isValidElement(o)) {
403
+ const u = {
314
404
  ref: c
315
405
  };
316
- return /* @__PURE__ */ u.cloneElement(o, d);
406
+ return /* @__PURE__ */ p.cloneElement(o, u);
317
407
  }
318
- return /* @__PURE__ */ x(u.Fragment, {
408
+ return /* @__PURE__ */ x(p.Fragment, {
319
409
  children: o
320
410
  });
321
411
  }
322
- return /* @__PURE__ */ x(u.Fragment, {
323
- children: a && /* @__PURE__ */ Ct.createPortal(o, a)
412
+ return /* @__PURE__ */ x(p.Fragment, {
413
+ children: a && /* @__PURE__ */ On.createPortal(o, a)
324
414
  });
325
415
  });
326
416
  process.env.NODE_ENV !== "production" && (ce.propTypes = {
@@ -331,7 +421,7 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
331
421
  /**
332
422
  * The children to render into the `container`.
333
423
  */
334
- children: n.node,
424
+ children: t.node,
335
425
  /**
336
426
  * An HTML element or function that returns one.
337
427
  * The `container` will have the portal children appended to it.
@@ -342,91 +432,91 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
342
432
  * By default, it uses the body of the top-level document object,
343
433
  * so it's simply `document.body` most of the time.
344
434
  */
345
- container: n.oneOfType([Re, n.func]),
435
+ container: t.oneOfType([Re, t.func]),
346
436
  /**
347
437
  * The `children` will be under the DOM hierarchy of the parent component.
348
438
  * @default false
349
439
  */
350
- disablePortal: n.bool
440
+ disablePortal: t.bool
351
441
  });
352
- process.env.NODE_ENV !== "production" && (ce.propTypes = Ge(ce.propTypes));
353
- const Kt = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Yt = {
442
+ process.env.NODE_ENV !== "production" && (ce.propTypes = Je(ce.propTypes));
443
+ const ot = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], rt = {
354
444
  entering: {
355
445
  opacity: 1
356
446
  },
357
447
  entered: {
358
448
  opacity: 1
359
449
  }
360
- }, tt = /* @__PURE__ */ u.forwardRef(function(t, r) {
361
- const o = pe(), i = {
450
+ }, sn = /* @__PURE__ */ p.forwardRef(function(n, r) {
451
+ const o = pe(), s = {
362
452
  enter: o.transitions.duration.enteringScreen,
363
453
  exit: o.transitions.duration.leavingScreen
364
454
  }, {
365
- addEndListener: s,
455
+ addEndListener: i,
366
456
  appear: a = !0,
367
457
  children: l,
368
458
  easing: c,
369
- in: d,
370
- onEnter: m,
371
- onEntered: v,
459
+ in: u,
460
+ onEnter: f,
461
+ onEntered: b,
372
462
  onEntering: g,
373
463
  onExit: y,
374
- onExited: b,
375
- onExiting: C,
464
+ onExited: v,
465
+ onExiting: P,
376
466
  style: w,
377
- timeout: O = i,
467
+ timeout: S = s,
378
468
  // eslint-disable-next-line react/prop-types
379
- TransitionComponent: $ = Ue
380
- } = t, p = z(t, Kt), T = u.useRef(null), N = Y(T, fe(l), r), S = (P) => (A) => {
381
- if (P) {
469
+ TransitionComponent: D = Ke
470
+ } = n, m = H(n, ot), T = p.useRef(null), C = W(T, fe(l), r), O = (R) => (A) => {
471
+ if (R) {
382
472
  const k = T.current;
383
- A === void 0 ? P(k) : P(k, A);
473
+ A === void 0 ? R(k) : R(k, A);
384
474
  }
385
- }, E = S(g), M = S((P, A) => {
386
- ze(P);
475
+ }, E = O(g), M = O((R, A) => {
476
+ Ye(R);
387
477
  const k = le({
388
478
  style: w,
389
- timeout: O,
479
+ timeout: S,
390
480
  easing: c
391
481
  }, {
392
482
  mode: "enter"
393
483
  });
394
- P.style.webkitTransition = o.transitions.create("opacity", k), P.style.transition = o.transitions.create("opacity", k), m && m(P, A);
395
- }), _ = S(v), D = S(C), I = S((P) => {
484
+ R.style.webkitTransition = o.transitions.create("opacity", k), R.style.transition = o.transitions.create("opacity", k), f && f(R, A);
485
+ }), _ = O(b), I = O(P), $ = O((R) => {
396
486
  const A = le({
397
487
  style: w,
398
- timeout: O,
488
+ timeout: S,
399
489
  easing: c
400
490
  }, {
401
491
  mode: "exit"
402
492
  });
403
- P.style.webkitTransition = o.transitions.create("opacity", A), P.style.transition = o.transitions.create("opacity", A), y && y(P);
404
- }), B = S(b);
405
- return /* @__PURE__ */ x($, f({
493
+ R.style.webkitTransition = o.transitions.create("opacity", A), R.style.transition = o.transitions.create("opacity", A), y && y(R);
494
+ }), B = O(v);
495
+ return /* @__PURE__ */ x(D, d({
406
496
  appear: a,
407
- in: d,
497
+ in: u,
408
498
  nodeRef: T,
409
499
  onEnter: M,
410
500
  onEntered: _,
411
501
  onEntering: E,
412
- onExit: I,
502
+ onExit: $,
413
503
  onExited: B,
414
- onExiting: D,
415
- addEndListener: (P) => {
416
- s && s(T.current, P);
504
+ onExiting: I,
505
+ addEndListener: (R) => {
506
+ i && i(T.current, R);
417
507
  },
418
- timeout: O
419
- }, p, {
420
- children: (P, A) => /* @__PURE__ */ u.cloneElement(l, f({
421
- style: f({
508
+ timeout: S
509
+ }, m, {
510
+ children: (R, A) => /* @__PURE__ */ p.cloneElement(l, d({
511
+ style: d({
422
512
  opacity: 0,
423
- visibility: P === "exited" && !d ? "hidden" : void 0
424
- }, Yt[P], w, l.props.style),
425
- ref: N
513
+ visibility: R === "exited" && !u ? "hidden" : void 0
514
+ }, rt[R], w, l.props.style),
515
+ ref: C
426
516
  }, A))
427
517
  }));
428
518
  });
429
- process.env.NODE_ENV !== "production" && (tt.propTypes = {
519
+ process.env.NODE_ENV !== "production" && (sn.propTypes = {
430
520
  // ┌────────────────────────────── Warning ──────────────────────────────┐
431
521
  // │ These PropTypes are generated from the TypeScript type definitions. │
432
522
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -436,13 +526,13 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
436
526
  * node and a done callback. Allows for more fine grained transition end
437
527
  * logic. Note: Timeouts are still used as a fallback if provided.
438
528
  */
439
- addEndListener: n.func,
529
+ addEndListener: t.func,
440
530
  /**
441
531
  * Perform the enter transition when it first mounts if `in` is also `true`.
442
532
  * Set this to `false` to disable this behavior.
443
533
  * @default true
444
534
  */
445
- appear: n.bool,
535
+ appear: t.bool,
446
536
  /**
447
537
  * A single child content element.
448
538
  */
@@ -451,42 +541,42 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
451
541
  * The transition timing function.
452
542
  * You may specify a single easing or a object containing enter and exit values.
453
543
  */
454
- easing: n.oneOfType([n.shape({
455
- enter: n.string,
456
- exit: n.string
457
- }), n.string]),
544
+ easing: t.oneOfType([t.shape({
545
+ enter: t.string,
546
+ exit: t.string
547
+ }), t.string]),
458
548
  /**
459
549
  * If `true`, the component will transition in.
460
550
  */
461
- in: n.bool,
551
+ in: t.bool,
462
552
  /**
463
553
  * @ignore
464
554
  */
465
- onEnter: n.func,
555
+ onEnter: t.func,
466
556
  /**
467
557
  * @ignore
468
558
  */
469
- onEntered: n.func,
559
+ onEntered: t.func,
470
560
  /**
471
561
  * @ignore
472
562
  */
473
- onEntering: n.func,
563
+ onEntering: t.func,
474
564
  /**
475
565
  * @ignore
476
566
  */
477
- onExit: n.func,
567
+ onExit: t.func,
478
568
  /**
479
569
  * @ignore
480
570
  */
481
- onExited: n.func,
571
+ onExited: t.func,
482
572
  /**
483
573
  * @ignore
484
574
  */
485
- onExiting: n.func,
575
+ onExiting: t.func,
486
576
  /**
487
577
  * @ignore
488
578
  */
489
- style: n.object,
579
+ style: t.object,
490
580
  /**
491
581
  * The duration for the transition, in milliseconds.
492
582
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -495,36 +585,36 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
495
585
  * exit: theme.transitions.duration.leavingScreen,
496
586
  * }
497
587
  */
498
- timeout: n.oneOfType([n.number, n.shape({
499
- appear: n.number,
500
- enter: n.number,
501
- exit: n.number
588
+ timeout: t.oneOfType([t.number, t.shape({
589
+ appear: t.number,
590
+ enter: t.number,
591
+ exit: t.number
502
592
  })])
503
593
  });
504
- function Gt(e) {
594
+ function st(e) {
505
595
  return Q("MuiBackdrop", e);
506
596
  }
507
597
  ee("MuiBackdrop", ["root", "invisible"]);
508
- const Xt = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Zt = (e) => {
598
+ const it = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], at = (e) => {
509
599
  const {
510
- classes: t,
600
+ classes: n,
511
601
  invisible: r
512
602
  } = e;
513
- return ne({
603
+ return te({
514
604
  root: ["root", r && "invisible"]
515
- }, Gt, t);
516
- }, Jt = L("div", {
605
+ }, st, n);
606
+ }, lt = L("div", {
517
607
  name: "MuiBackdrop",
518
608
  slot: "Root",
519
- overridesResolver: (e, t) => {
609
+ overridesResolver: (e, n) => {
520
610
  const {
521
611
  ownerState: r
522
612
  } = e;
523
- return [t.root, r.invisible && t.invisible];
613
+ return [n.root, r.invisible && n.invisible];
524
614
  }
525
615
  })(({
526
616
  ownerState: e
527
- }) => f({
617
+ }) => d({
528
618
  position: "fixed",
529
619
  display: "flex",
530
620
  alignItems: "center",
@@ -537,44 +627,44 @@ const Xt = ["children", "className", "component", "components", "componentsProps
537
627
  WebkitTapHighlightColor: "transparent"
538
628
  }, e.invisible && {
539
629
  backgroundColor: "transparent"
540
- })), we = /* @__PURE__ */ u.forwardRef(function(t, r) {
541
- var o, i, s;
542
- const a = te({
543
- props: t,
630
+ })), Ne = /* @__PURE__ */ p.forwardRef(function(n, r) {
631
+ var o, s, i;
632
+ const a = ne({
633
+ props: n,
544
634
  name: "MuiBackdrop"
545
635
  }), {
546
636
  children: l,
547
637
  className: c,
548
- component: d = "div",
549
- components: m = {},
550
- componentsProps: v = {},
638
+ component: u = "div",
639
+ components: f = {},
640
+ componentsProps: b = {},
551
641
  invisible: g = !1,
552
642
  open: y,
553
- slotProps: b = {},
554
- slots: C = {},
555
- TransitionComponent: w = tt,
556
- transitionDuration: O
557
- } = a, $ = z(a, Xt), p = f({}, a, {
558
- component: d,
643
+ slotProps: v = {},
644
+ slots: P = {},
645
+ TransitionComponent: w = sn,
646
+ transitionDuration: S
647
+ } = a, D = H(a, it), m = d({}, a, {
648
+ component: u,
559
649
  invisible: g
560
- }), T = Zt(p), N = (o = b.root) != null ? o : v.root;
561
- return /* @__PURE__ */ x(w, f({
650
+ }), T = at(m), C = (o = v.root) != null ? o : b.root;
651
+ return /* @__PURE__ */ x(w, d({
562
652
  in: y,
563
- timeout: O
564
- }, $, {
565
- children: /* @__PURE__ */ x(Jt, f({
653
+ timeout: S
654
+ }, D, {
655
+ children: /* @__PURE__ */ x(lt, d({
566
656
  "aria-hidden": !0
567
- }, N, {
568
- as: (i = (s = C.root) != null ? s : m.Root) != null ? i : d,
569
- className: V(T.root, c, N == null ? void 0 : N.className),
570
- ownerState: f({}, p, N == null ? void 0 : N.ownerState),
657
+ }, C, {
658
+ as: (s = (i = P.root) != null ? i : f.Root) != null ? s : u,
659
+ className: V(T.root, c, C == null ? void 0 : C.className),
660
+ ownerState: d({}, m, C == null ? void 0 : C.ownerState),
571
661
  classes: T,
572
662
  ref: r,
573
663
  children: l
574
664
  }))
575
665
  }));
576
666
  });
577
- process.env.NODE_ENV !== "production" && (we.propTypes = {
667
+ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
578
668
  // ┌────────────────────────────── Warning ──────────────────────────────┐
579
669
  // │ These PropTypes are generated from the TypeScript type definitions. │
580
670
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -582,20 +672,20 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
582
672
  /**
583
673
  * The content of the component.
584
674
  */
585
- children: n.node,
675
+ children: t.node,
586
676
  /**
587
677
  * Override or extend the styles applied to the component.
588
678
  */
589
- classes: n.object,
679
+ classes: t.object,
590
680
  /**
591
681
  * @ignore
592
682
  */
593
- className: n.string,
683
+ className: t.string,
594
684
  /**
595
685
  * The component used for the root node.
596
686
  * Either a string to use a HTML element or a component.
597
687
  */
598
- component: n.elementType,
688
+ component: t.elementType,
599
689
  /**
600
690
  * The components used for each slot inside.
601
691
  *
@@ -604,8 +694,8 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
604
694
  *
605
695
  * @default {}
606
696
  */
607
- components: n.shape({
608
- Root: n.elementType
697
+ components: t.shape({
698
+ Root: t.elementType
609
699
  }),
610
700
  /**
611
701
  * The extra props for the slot components.
@@ -616,19 +706,19 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
616
706
  *
617
707
  * @default {}
618
708
  */
619
- componentsProps: n.shape({
620
- root: n.object
709
+ componentsProps: t.shape({
710
+ root: t.object
621
711
  }),
622
712
  /**
623
713
  * If `true`, the backdrop is invisible.
624
714
  * It can be used when rendering a popover or a custom select component.
625
715
  * @default false
626
716
  */
627
- invisible: n.bool,
717
+ invisible: t.bool,
628
718
  /**
629
719
  * If `true`, the component is shown.
630
720
  */
631
- open: n.bool.isRequired,
721
+ open: t.bool.isRequired,
632
722
  /**
633
723
  * The extra props for the slot components.
634
724
  * You can override the existing props or add new ones.
@@ -637,8 +727,8 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
637
727
  *
638
728
  * @default {}
639
729
  */
640
- slotProps: n.shape({
641
- root: n.object
730
+ slotProps: t.shape({
731
+ root: t.object
642
732
  }),
643
733
  /**
644
734
  * The components used for each slot inside.
@@ -647,36 +737,36 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
647
737
  *
648
738
  * @default {}
649
739
  */
650
- slots: n.shape({
651
- root: n.elementType
740
+ slots: t.shape({
741
+ root: t.elementType
652
742
  }),
653
743
  /**
654
744
  * The system prop that allows defining system overrides as well as additional CSS styles.
655
745
  */
656
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
746
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
657
747
  /**
658
748
  * The component used for the transition.
659
749
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
660
750
  * @default Fade
661
751
  */
662
- TransitionComponent: n.elementType,
752
+ TransitionComponent: t.elementType,
663
753
  /**
664
754
  * The duration for the transition, in milliseconds.
665
755
  * You may specify a single timeout for all transitions, or individually with an object.
666
756
  */
667
- transitionDuration: n.oneOfType([n.number, n.shape({
668
- appear: n.number,
669
- enter: n.number,
670
- exit: n.number
757
+ transitionDuration: t.oneOfType([t.number, t.shape({
758
+ appear: t.number,
759
+ enter: t.number,
760
+ exit: t.number
671
761
  })])
672
762
  });
673
- function Qt(e) {
763
+ function ct(e) {
674
764
  return Q("MuiCircularProgress", e);
675
765
  }
676
766
  ee("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
677
- const en = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
678
- let me = (e) => e, Be, je, Ae, Le;
679
- const U = 44, tn = We(Be || (Be = me`
767
+ const ut = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
768
+ let me = (e) => e, Ve, Le, qe, He;
769
+ const z = 44, dt = Ge(Ve || (Ve = me`
680
770
  0% {
681
771
  transform: rotate(0deg);
682
772
  }
@@ -684,7 +774,7 @@ const U = 44, tn = We(Be || (Be = me`
684
774
  100% {
685
775
  transform: rotate(360deg);
686
776
  }
687
- `)), nn = We(je || (je = me`
777
+ `)), pt = Ge(Le || (Le = me`
688
778
  0% {
689
779
  stroke-dasharray: 1px, 200px;
690
780
  stroke-dashoffset: 0;
@@ -699,63 +789,63 @@ const U = 44, tn = We(Be || (Be = me`
699
789
  stroke-dasharray: 100px, 200px;
700
790
  stroke-dashoffset: -125px;
701
791
  }
702
- `)), on = (e) => {
792
+ `)), ft = (e) => {
703
793
  const {
704
- classes: t,
794
+ classes: n,
705
795
  variant: r,
706
796
  color: o,
707
- disableShrink: i
708
- } = e, s = {
709
- root: ["root", r, `color${H(o)}`],
797
+ disableShrink: s
798
+ } = e, i = {
799
+ root: ["root", r, `color${U(o)}`],
710
800
  svg: ["svg"],
711
- circle: ["circle", `circle${H(r)}`, i && "circleDisableShrink"]
801
+ circle: ["circle", `circle${U(r)}`, s && "circleDisableShrink"]
712
802
  };
713
- return ne(s, Qt, t);
714
- }, rn = L("span", {
803
+ return te(i, ct, n);
804
+ }, mt = L("span", {
715
805
  name: "MuiCircularProgress",
716
806
  slot: "Root",
717
- overridesResolver: (e, t) => {
807
+ overridesResolver: (e, n) => {
718
808
  const {
719
809
  ownerState: r
720
810
  } = e;
721
- return [t.root, t[r.variant], t[`color${H(r.color)}`]];
811
+ return [n.root, n[r.variant], n[`color${U(r.color)}`]];
722
812
  }
723
813
  })(({
724
814
  ownerState: e,
725
- theme: t
726
- }) => f({
815
+ theme: n
816
+ }) => d({
727
817
  display: "inline-block"
728
818
  }, e.variant === "determinate" && {
729
- transition: t.transitions.create("transform")
819
+ transition: n.transitions.create("transform")
730
820
  }, e.color !== "inherit" && {
731
- color: (t.vars || t).palette[e.color].main
821
+ color: (n.vars || n).palette[e.color].main
732
822
  }), ({
733
823
  ownerState: e
734
- }) => e.variant === "indeterminate" && Ke(Ae || (Ae = me`
824
+ }) => e.variant === "indeterminate" && Xe(qe || (qe = me`
735
825
  animation: ${0} 1.4s linear infinite;
736
- `), tn)), sn = L("svg", {
826
+ `), dt)), ht = L("svg", {
737
827
  name: "MuiCircularProgress",
738
828
  slot: "Svg",
739
- overridesResolver: (e, t) => t.svg
829
+ overridesResolver: (e, n) => n.svg
740
830
  })({
741
831
  display: "block"
742
832
  // Keeps the progress centered
743
- }), an = L("circle", {
833
+ }), vt = L("circle", {
744
834
  name: "MuiCircularProgress",
745
835
  slot: "Circle",
746
- overridesResolver: (e, t) => {
836
+ overridesResolver: (e, n) => {
747
837
  const {
748
838
  ownerState: r
749
839
  } = e;
750
- return [t.circle, t[`circle${H(r.variant)}`], r.disableShrink && t.circleDisableShrink];
840
+ return [n.circle, n[`circle${U(r.variant)}`], r.disableShrink && n.circleDisableShrink];
751
841
  }
752
842
  })(({
753
843
  ownerState: e,
754
- theme: t
755
- }) => f({
844
+ theme: n
845
+ }) => d({
756
846
  stroke: "currentColor"
757
847
  }, e.variant === "determinate" && {
758
- transition: t.transitions.create("stroke-dashoffset")
848
+ transition: n.transitions.create("stroke-dashoffset")
759
849
  }, e.variant === "indeterminate" && {
760
850
  // Some default value that looks fine waiting for the animation to kicks in.
761
851
  strokeDasharray: "80px, 200px",
@@ -763,61 +853,61 @@ const U = 44, tn = We(Be || (Be = me`
763
853
  // Add the unit to fix a Edge 16 and below bug.
764
854
  }), ({
765
855
  ownerState: e
766
- }) => e.variant === "indeterminate" && !e.disableShrink && Ke(Le || (Le = me`
856
+ }) => e.variant === "indeterminate" && !e.disableShrink && Xe(He || (He = me`
767
857
  animation: ${0} 1.4s ease-in-out infinite;
768
- `), nn)), nt = /* @__PURE__ */ u.forwardRef(function(t, r) {
769
- const o = te({
770
- props: t,
858
+ `), pt)), an = /* @__PURE__ */ p.forwardRef(function(n, r) {
859
+ const o = ne({
860
+ props: n,
771
861
  name: "MuiCircularProgress"
772
862
  }), {
773
- className: i,
774
- color: s = "primary",
863
+ className: s,
864
+ color: i = "primary",
775
865
  disableShrink: a = !1,
776
866
  size: l = 40,
777
867
  style: c,
778
- thickness: d = 3.6,
779
- value: m = 0,
780
- variant: v = "indeterminate"
781
- } = o, g = z(o, en), y = f({}, o, {
782
- color: s,
868
+ thickness: u = 3.6,
869
+ value: f = 0,
870
+ variant: b = "indeterminate"
871
+ } = o, g = H(o, ut), y = d({}, o, {
872
+ color: i,
783
873
  disableShrink: a,
784
874
  size: l,
785
- thickness: d,
786
- value: m,
787
- variant: v
788
- }), b = on(y), C = {}, w = {}, O = {};
789
- if (v === "determinate") {
790
- const $ = 2 * Math.PI * ((U - d) / 2);
791
- C.strokeDasharray = $.toFixed(3), O["aria-valuenow"] = Math.round(m), C.strokeDashoffset = `${((100 - m) / 100 * $).toFixed(3)}px`, w.transform = "rotate(-90deg)";
875
+ thickness: u,
876
+ value: f,
877
+ variant: b
878
+ }), v = ft(y), P = {}, w = {}, S = {};
879
+ if (b === "determinate") {
880
+ const D = 2 * Math.PI * ((z - u) / 2);
881
+ P.strokeDasharray = D.toFixed(3), S["aria-valuenow"] = Math.round(f), P.strokeDashoffset = `${((100 - f) / 100 * D).toFixed(3)}px`, w.transform = "rotate(-90deg)";
792
882
  }
793
- return /* @__PURE__ */ x(rn, f({
794
- className: V(b.root, i),
795
- style: f({
883
+ return /* @__PURE__ */ x(mt, d({
884
+ className: V(v.root, s),
885
+ style: d({
796
886
  width: l,
797
887
  height: l
798
888
  }, w, c),
799
889
  ownerState: y,
800
890
  ref: r,
801
891
  role: "progressbar"
802
- }, O, g, {
803
- children: /* @__PURE__ */ x(sn, {
804
- className: b.svg,
892
+ }, S, g, {
893
+ children: /* @__PURE__ */ x(ht, {
894
+ className: v.svg,
805
895
  ownerState: y,
806
- viewBox: `${U / 2} ${U / 2} ${U} ${U}`,
807
- children: /* @__PURE__ */ x(an, {
808
- className: b.circle,
809
- style: C,
896
+ viewBox: `${z / 2} ${z / 2} ${z} ${z}`,
897
+ children: /* @__PURE__ */ x(vt, {
898
+ className: v.circle,
899
+ style: P,
810
900
  ownerState: y,
811
- cx: U,
812
- cy: U,
813
- r: (U - d) / 2,
901
+ cx: z,
902
+ cy: z,
903
+ r: (z - u) / 2,
814
904
  fill: "none",
815
- strokeWidth: d
905
+ strokeWidth: u
816
906
  })
817
907
  })
818
908
  }));
819
909
  });
820
- process.env.NODE_ENV !== "production" && (nt.propTypes = {
910
+ process.env.NODE_ENV !== "production" && (an.propTypes = {
821
911
  // ┌────────────────────────────── Warning ──────────────────────────────┐
822
912
  // │ These PropTypes are generated from the TypeScript type definitions. │
823
913
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -825,284 +915,284 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
825
915
  /**
826
916
  * Override or extend the styles applied to the component.
827
917
  */
828
- classes: n.object,
918
+ classes: t.object,
829
919
  /**
830
920
  * @ignore
831
921
  */
832
- className: n.string,
922
+ className: t.string,
833
923
  /**
834
924
  * The color of the component.
835
925
  * It supports both default and custom theme colors, which can be added as shown in the
836
926
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
837
927
  * @default 'primary'
838
928
  */
839
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
929
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
840
930
  /**
841
931
  * If `true`, the shrink animation is disabled.
842
932
  * This only works if variant is `indeterminate`.
843
933
  * @default false
844
934
  */
845
- disableShrink: J(n.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
935
+ disableShrink: J(t.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
846
936
  /**
847
937
  * The size of the component.
848
938
  * If using a number, the pixel unit is assumed.
849
939
  * If using a string, you need to provide the CSS unit, for example '3rem'.
850
940
  * @default 40
851
941
  */
852
- size: n.oneOfType([n.number, n.string]),
942
+ size: t.oneOfType([t.number, t.string]),
853
943
  /**
854
944
  * @ignore
855
945
  */
856
- style: n.object,
946
+ style: t.object,
857
947
  /**
858
948
  * The system prop that allows defining system overrides as well as additional CSS styles.
859
949
  */
860
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
950
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
861
951
  /**
862
952
  * The thickness of the circle.
863
953
  * @default 3.6
864
954
  */
865
- thickness: n.number,
955
+ thickness: t.number,
866
956
  /**
867
957
  * The value of the progress indicator for the determinate variant.
868
958
  * Value between 0 and 100.
869
959
  * @default 0
870
960
  */
871
- value: n.number,
961
+ value: t.number,
872
962
  /**
873
963
  * The variant to use.
874
964
  * Use indeterminate when there is no progress value.
875
965
  * @default 'indeterminate'
876
966
  */
877
- variant: n.oneOf(["determinate", "indeterminate"])
967
+ variant: t.oneOf(["determinate", "indeterminate"])
878
968
  });
879
- function ln(e) {
880
- const t = q(e);
881
- return t.body === e ? G(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
969
+ function bt(e) {
970
+ const n = q(e);
971
+ return n.body === e ? G(e).innerWidth > n.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
882
972
  }
883
- function Z(e, t) {
884
- t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
973
+ function Z(e, n) {
974
+ n ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
885
975
  }
886
- function Ve(e) {
976
+ function Ue(e) {
887
977
  return parseInt(G(e).getComputedStyle(e).paddingRight, 10) || 0;
888
978
  }
889
- function cn(e) {
979
+ function gt(e) {
890
980
  const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
891
981
  return r || o;
892
982
  }
893
- function qe(e, t, r, o, i) {
894
- const s = [t, r, ...o];
983
+ function ze(e, n, r, o, s) {
984
+ const i = [n, r, ...o];
895
985
  [].forEach.call(e.children, (a) => {
896
- const l = s.indexOf(a) === -1, c = !cn(a);
897
- l && c && Z(a, i);
986
+ const l = i.indexOf(a) === -1, c = !gt(a);
987
+ l && c && Z(a, s);
898
988
  });
899
989
  }
900
- function ge(e, t) {
990
+ function ge(e, n) {
901
991
  let r = -1;
902
- return e.some((o, i) => t(o) ? (r = i, !0) : !1), r;
992
+ return e.some((o, s) => n(o) ? (r = s, !0) : !1), r;
903
993
  }
904
- function un(e, t) {
994
+ function yt(e, n) {
905
995
  const r = [], o = e.container;
906
- if (!t.disableScrollLock) {
907
- if (ln(o)) {
908
- const a = Mt(q(o));
996
+ if (!n.disableScrollLock) {
997
+ if (bt(o)) {
998
+ const a = An(q(o));
909
999
  r.push({
910
1000
  value: o.style.paddingRight,
911
1001
  property: "padding-right",
912
1002
  el: o
913
- }), o.style.paddingRight = `${Ve(o) + a}px`;
1003
+ }), o.style.paddingRight = `${Ue(o) + a}px`;
914
1004
  const l = q(o).querySelectorAll(".mui-fixed");
915
1005
  [].forEach.call(l, (c) => {
916
1006
  r.push({
917
1007
  value: c.style.paddingRight,
918
1008
  property: "padding-right",
919
1009
  el: c
920
- }), c.style.paddingRight = `${Ve(c) + a}px`;
1010
+ }), c.style.paddingRight = `${Ue(c) + a}px`;
921
1011
  });
922
1012
  }
923
- let s;
1013
+ let i;
924
1014
  if (o.parentNode instanceof DocumentFragment)
925
- s = q(o).body;
1015
+ i = q(o).body;
926
1016
  else {
927
1017
  const a = o.parentElement, l = G(o);
928
- s = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
1018
+ i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
929
1019
  }
930
1020
  r.push({
931
- value: s.style.overflow,
1021
+ value: i.style.overflow,
932
1022
  property: "overflow",
933
- el: s
1023
+ el: i
934
1024
  }, {
935
- value: s.style.overflowX,
1025
+ value: i.style.overflowX,
936
1026
  property: "overflow-x",
937
- el: s
1027
+ el: i
938
1028
  }, {
939
- value: s.style.overflowY,
1029
+ value: i.style.overflowY,
940
1030
  property: "overflow-y",
941
- el: s
942
- }), s.style.overflow = "hidden";
1031
+ el: i
1032
+ }), i.style.overflow = "hidden";
943
1033
  }
944
1034
  return () => {
945
1035
  r.forEach(({
946
- value: s,
1036
+ value: i,
947
1037
  el: a,
948
1038
  property: l
949
1039
  }) => {
950
- s ? a.style.setProperty(l, s) : a.style.removeProperty(l);
1040
+ i ? a.style.setProperty(l, i) : a.style.removeProperty(l);
951
1041
  });
952
1042
  };
953
1043
  }
954
- function dn(e) {
955
- const t = [];
1044
+ function Et(e) {
1045
+ const n = [];
956
1046
  return [].forEach.call(e.children, (r) => {
957
- r.getAttribute("aria-hidden") === "true" && t.push(r);
958
- }), t;
1047
+ r.getAttribute("aria-hidden") === "true" && n.push(r);
1048
+ }), n;
959
1049
  }
960
- class pn {
1050
+ class xt {
961
1051
  constructor() {
962
1052
  this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
963
1053
  }
964
- add(t, r) {
965
- let o = this.modals.indexOf(t);
1054
+ add(n, r) {
1055
+ let o = this.modals.indexOf(n);
966
1056
  if (o !== -1)
967
1057
  return o;
968
- o = this.modals.length, this.modals.push(t), t.modalRef && Z(t.modalRef, !1);
969
- const i = dn(r);
970
- qe(r, t.mount, t.modalRef, i, !0);
971
- const s = ge(this.containers, (a) => a.container === r);
972
- return s !== -1 ? (this.containers[s].modals.push(t), o) : (this.containers.push({
973
- modals: [t],
1058
+ o = this.modals.length, this.modals.push(n), n.modalRef && Z(n.modalRef, !1);
1059
+ const s = Et(r);
1060
+ ze(r, n.mount, n.modalRef, s, !0);
1061
+ const i = ge(this.containers, (a) => a.container === r);
1062
+ return i !== -1 ? (this.containers[i].modals.push(n), o) : (this.containers.push({
1063
+ modals: [n],
974
1064
  container: r,
975
1065
  restore: null,
976
- hiddenSiblings: i
1066
+ hiddenSiblings: s
977
1067
  }), o);
978
1068
  }
979
- mount(t, r) {
980
- const o = ge(this.containers, (s) => s.modals.indexOf(t) !== -1), i = this.containers[o];
981
- i.restore || (i.restore = un(i, r));
1069
+ mount(n, r) {
1070
+ const o = ge(this.containers, (i) => i.modals.indexOf(n) !== -1), s = this.containers[o];
1071
+ s.restore || (s.restore = yt(s, r));
982
1072
  }
983
- remove(t, r = !0) {
984
- const o = this.modals.indexOf(t);
1073
+ remove(n, r = !0) {
1074
+ const o = this.modals.indexOf(n);
985
1075
  if (o === -1)
986
1076
  return o;
987
- const i = ge(this.containers, (a) => a.modals.indexOf(t) !== -1), s = this.containers[i];
988
- if (s.modals.splice(s.modals.indexOf(t), 1), this.modals.splice(o, 1), s.modals.length === 0)
989
- s.restore && s.restore(), t.modalRef && Z(t.modalRef, r), qe(s.container, t.mount, t.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
1077
+ const s = ge(this.containers, (a) => a.modals.indexOf(n) !== -1), i = this.containers[s];
1078
+ if (i.modals.splice(i.modals.indexOf(n), 1), this.modals.splice(o, 1), i.modals.length === 0)
1079
+ i.restore && i.restore(), n.modalRef && Z(n.modalRef, r), ze(i.container, n.mount, n.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
990
1080
  else {
991
- const a = s.modals[s.modals.length - 1];
1081
+ const a = i.modals[i.modals.length - 1];
992
1082
  a.modalRef && Z(a.modalRef, !1);
993
1083
  }
994
1084
  return o;
995
1085
  }
996
- isTopModal(t) {
997
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
1086
+ isTopModal(n) {
1087
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
998
1088
  }
999
1089
  }
1000
- const fn = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
1001
- function mn(e) {
1002
- const t = parseInt(e.getAttribute("tabindex") || "", 10);
1003
- return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
1090
+ const Tt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
1091
+ function kt(e) {
1092
+ const n = parseInt(e.getAttribute("tabindex") || "", 10);
1093
+ return Number.isNaN(n) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : n;
1004
1094
  }
1005
- function hn(e) {
1095
+ function Pt(e) {
1006
1096
  if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
1007
1097
  return !1;
1008
- const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
1009
- let r = t(`[name="${e.name}"]:checked`);
1010
- return r || (r = t(`[name="${e.name}"]`)), r !== e;
1098
+ const n = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
1099
+ let r = n(`[name="${e.name}"]:checked`);
1100
+ return r || (r = n(`[name="${e.name}"]`)), r !== e;
1011
1101
  }
1012
- function bn(e) {
1013
- return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || hn(e));
1102
+ function Rt(e) {
1103
+ return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Pt(e));
1014
1104
  }
1015
- function vn(e) {
1016
- const t = [], r = [];
1017
- return Array.from(e.querySelectorAll(fn)).forEach((o, i) => {
1018
- const s = mn(o);
1019
- s === -1 || !bn(o) || (s === 0 ? t.push(o) : r.push({
1020
- documentOrder: i,
1021
- tabIndex: s,
1105
+ function Nt(e) {
1106
+ const n = [], r = [];
1107
+ return Array.from(e.querySelectorAll(Tt)).forEach((o, s) => {
1108
+ const i = kt(o);
1109
+ i === -1 || !Rt(o) || (i === 0 ? n.push(o) : r.push({
1110
+ documentOrder: s,
1111
+ tabIndex: i,
1022
1112
  node: o
1023
1113
  }));
1024
- }), r.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
1114
+ }), r.sort((o, s) => o.tabIndex === s.tabIndex ? o.documentOrder - s.documentOrder : o.tabIndex - s.tabIndex).map((o) => o.node).concat(n);
1025
1115
  }
1026
- function gn() {
1116
+ function wt() {
1027
1117
  return !0;
1028
1118
  }
1029
1119
  function ue(e) {
1030
1120
  const {
1031
- children: t,
1121
+ children: n,
1032
1122
  disableAutoFocus: r = !1,
1033
1123
  disableEnforceFocus: o = !1,
1034
- disableRestoreFocus: i = !1,
1035
- getTabbable: s = vn,
1036
- isEnabled: a = gn,
1124
+ disableRestoreFocus: s = !1,
1125
+ getTabbable: i = Nt,
1126
+ isEnabled: a = wt,
1037
1127
  open: l
1038
- } = e, c = u.useRef(!1), d = u.useRef(null), m = u.useRef(null), v = u.useRef(null), g = u.useRef(null), y = u.useRef(!1), b = u.useRef(null), C = Y(fe(t), b), w = u.useRef(null);
1039
- u.useEffect(() => {
1040
- !l || !b.current || (y.current = !r);
1041
- }, [r, l]), u.useEffect(() => {
1042
- if (!l || !b.current)
1128
+ } = e, c = p.useRef(!1), u = p.useRef(null), f = p.useRef(null), b = p.useRef(null), g = p.useRef(null), y = p.useRef(!1), v = p.useRef(null), P = W(fe(n), v), w = p.useRef(null);
1129
+ p.useEffect(() => {
1130
+ !l || !v.current || (y.current = !r);
1131
+ }, [r, l]), p.useEffect(() => {
1132
+ if (!l || !v.current)
1043
1133
  return;
1044
- const p = q(b.current);
1045
- return b.current.contains(p.activeElement) || (b.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(`
1046
- `)), b.current.setAttribute("tabIndex", "-1")), y.current && b.current.focus()), () => {
1047
- i || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null);
1134
+ const m = q(v.current);
1135
+ return v.current.contains(m.activeElement) || (v.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(`
1136
+ `)), v.current.setAttribute("tabIndex", "-1")), y.current && v.current.focus()), () => {
1137
+ s || (b.current && b.current.focus && (c.current = !0, b.current.focus()), b.current = null);
1048
1138
  };
1049
- }, [l]), u.useEffect(() => {
1050
- if (!l || !b.current)
1139
+ }, [l]), p.useEffect(() => {
1140
+ if (!l || !v.current)
1051
1141
  return;
1052
- const p = q(b.current), T = (E) => {
1053
- w.current = E, !(o || !a() || E.key !== "Tab") && p.activeElement === b.current && E.shiftKey && (c.current = !0, m.current && m.current.focus());
1054
- }, N = () => {
1055
- const E = b.current;
1142
+ const m = q(v.current), T = (E) => {
1143
+ w.current = E, !(o || !a() || E.key !== "Tab") && m.activeElement === v.current && E.shiftKey && (c.current = !0, f.current && f.current.focus());
1144
+ }, C = () => {
1145
+ const E = v.current;
1056
1146
  if (E === null)
1057
1147
  return;
1058
- if (!p.hasFocus() || !a() || c.current) {
1148
+ if (!m.hasFocus() || !a() || c.current) {
1059
1149
  c.current = !1;
1060
1150
  return;
1061
1151
  }
1062
- if (E.contains(p.activeElement) || o && p.activeElement !== d.current && p.activeElement !== m.current)
1152
+ if (E.contains(m.activeElement) || o && m.activeElement !== u.current && m.activeElement !== f.current)
1063
1153
  return;
1064
- if (p.activeElement !== g.current)
1154
+ if (m.activeElement !== g.current)
1065
1155
  g.current = null;
1066
1156
  else if (g.current !== null)
1067
1157
  return;
1068
1158
  if (!y.current)
1069
1159
  return;
1070
1160
  let M = [];
1071
- if ((p.activeElement === d.current || p.activeElement === m.current) && (M = s(b.current)), M.length > 0) {
1072
- var _, D;
1073
- const I = !!((_ = w.current) != null && _.shiftKey && ((D = w.current) == null ? void 0 : D.key) === "Tab"), B = M[0], j = M[M.length - 1];
1074
- typeof B != "string" && typeof j != "string" && (I ? j.focus() : B.focus());
1161
+ if ((m.activeElement === u.current || m.activeElement === f.current) && (M = i(v.current)), M.length > 0) {
1162
+ var _, I;
1163
+ const $ = !!((_ = w.current) != null && _.shiftKey && ((I = w.current) == null ? void 0 : I.key) === "Tab"), B = M[0], j = M[M.length - 1];
1164
+ typeof B != "string" && typeof j != "string" && ($ ? j.focus() : B.focus());
1075
1165
  } else
1076
1166
  E.focus();
1077
1167
  };
1078
- p.addEventListener("focusin", N), p.addEventListener("keydown", T, !0);
1079
- const S = setInterval(() => {
1080
- p.activeElement && p.activeElement.tagName === "BODY" && N();
1168
+ m.addEventListener("focusin", C), m.addEventListener("keydown", T, !0);
1169
+ const O = setInterval(() => {
1170
+ m.activeElement && m.activeElement.tagName === "BODY" && C();
1081
1171
  }, 50);
1082
1172
  return () => {
1083
- clearInterval(S), p.removeEventListener("focusin", N), p.removeEventListener("keydown", T, !0);
1173
+ clearInterval(O), m.removeEventListener("focusin", C), m.removeEventListener("keydown", T, !0);
1084
1174
  };
1085
- }, [r, o, i, a, l, s]);
1086
- const O = (p) => {
1087
- v.current === null && (v.current = p.relatedTarget), y.current = !0, g.current = p.target;
1088
- const T = t.props.onFocus;
1089
- T && T(p);
1090
- }, $ = (p) => {
1091
- v.current === null && (v.current = p.relatedTarget), y.current = !0;
1175
+ }, [r, o, s, a, l, i]);
1176
+ const S = (m) => {
1177
+ b.current === null && (b.current = m.relatedTarget), y.current = !0, g.current = m.target;
1178
+ const T = n.props.onFocus;
1179
+ T && T(m);
1180
+ }, D = (m) => {
1181
+ b.current === null && (b.current = m.relatedTarget), y.current = !0;
1092
1182
  };
1093
- return /* @__PURE__ */ de(u.Fragment, {
1183
+ return /* @__PURE__ */ de(p.Fragment, {
1094
1184
  children: [/* @__PURE__ */ x("div", {
1095
1185
  tabIndex: l ? 0 : -1,
1096
- onFocus: $,
1097
- ref: d,
1186
+ onFocus: D,
1187
+ ref: u,
1098
1188
  "data-testid": "sentinelStart"
1099
- }), /* @__PURE__ */ u.cloneElement(t, {
1100
- ref: C,
1101
- onFocus: O
1189
+ }), /* @__PURE__ */ p.cloneElement(n, {
1190
+ ref: P,
1191
+ onFocus: S
1102
1192
  }), /* @__PURE__ */ x("div", {
1103
1193
  tabIndex: l ? 0 : -1,
1104
- onFocus: $,
1105
- ref: m,
1194
+ onFocus: D,
1195
+ ref: f,
1106
1196
  "data-testid": "sentinelEnd"
1107
1197
  })]
1108
1198
  });
@@ -1125,7 +1215,7 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
1125
1215
  * accessible to assistive technologies, like screen readers.
1126
1216
  * @default false
1127
1217
  */
1128
- disableAutoFocus: n.bool,
1218
+ disableAutoFocus: t.bool,
1129
1219
  /**
1130
1220
  * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
1131
1221
  *
@@ -1133,19 +1223,19 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
1133
1223
  * accessible to assistive technologies, like screen readers.
1134
1224
  * @default false
1135
1225
  */
1136
- disableEnforceFocus: n.bool,
1226
+ disableEnforceFocus: t.bool,
1137
1227
  /**
1138
1228
  * If `true`, the focus trap will not restore focus to previously focused element once
1139
1229
  * focus trap is hidden or unmounted.
1140
1230
  * @default false
1141
1231
  */
1142
- disableRestoreFocus: n.bool,
1232
+ disableRestoreFocus: t.bool,
1143
1233
  /**
1144
1234
  * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
1145
1235
  * For instance, you can provide the "tabbable" npm dependency.
1146
1236
  * @param {HTMLElement} root
1147
1237
  */
1148
- getTabbable: n.func,
1238
+ getTabbable: t.func,
1149
1239
  /**
1150
1240
  * This prop extends the `open` prop.
1151
1241
  * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
@@ -1155,240 +1245,240 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
1155
1245
  * return true;
1156
1246
  * }
1157
1247
  */
1158
- isEnabled: n.func,
1248
+ isEnabled: t.func,
1159
1249
  /**
1160
1250
  * If `true`, focus is locked.
1161
1251
  */
1162
- open: n.bool.isRequired
1252
+ open: t.bool.isRequired
1163
1253
  });
1164
- process.env.NODE_ENV !== "production" && (ue.propTypes = Ge(ue.propTypes));
1165
- function yn(e) {
1254
+ process.env.NODE_ENV !== "production" && (ue.propTypes = Je(ue.propTypes));
1255
+ function Ct(e) {
1166
1256
  return typeof e == "function" ? e() : e;
1167
1257
  }
1168
- function En(e) {
1258
+ function St(e) {
1169
1259
  return e ? e.props.hasOwnProperty("in") : !1;
1170
1260
  }
1171
- const xn = new pn();
1172
- function Tn(e) {
1261
+ const Ot = new xt();
1262
+ function It(e) {
1173
1263
  const {
1174
- container: t,
1264
+ container: n,
1175
1265
  disableEscapeKeyDown: r = !1,
1176
1266
  disableScrollLock: o = !1,
1177
1267
  // @ts-ignore internal logic - Base UI supports the manager as a prop too
1178
- manager: i = xn,
1179
- closeAfterTransition: s = !1,
1268
+ manager: s = Ot,
1269
+ closeAfterTransition: i = !1,
1180
1270
  onTransitionEnter: a,
1181
1271
  onTransitionExited: l,
1182
1272
  children: c,
1183
- onClose: d,
1184
- open: m,
1185
- rootRef: v
1186
- } = e, g = u.useRef({}), y = u.useRef(null), b = u.useRef(null), C = Y(b, v), [w, O] = u.useState(!m), $ = En(c);
1187
- let p = !0;
1188
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (p = !1);
1189
- const T = () => q(y.current), N = () => (g.current.modalRef = b.current, g.current.mount = y.current, g.current), S = () => {
1190
- i.mount(N(), {
1273
+ onClose: u,
1274
+ open: f,
1275
+ rootRef: b
1276
+ } = e, g = p.useRef({}), y = p.useRef(null), v = p.useRef(null), P = W(v, b), [w, S] = p.useState(!f), D = St(c);
1277
+ let m = !0;
1278
+ (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (m = !1);
1279
+ const T = () => q(y.current), C = () => (g.current.modalRef = v.current, g.current.mount = y.current, g.current), O = () => {
1280
+ s.mount(C(), {
1191
1281
  disableScrollLock: o
1192
- }), b.current && (b.current.scrollTop = 0);
1282
+ }), v.current && (v.current.scrollTop = 0);
1193
1283
  }, E = xe(() => {
1194
- const k = yn(t) || T().body;
1195
- i.add(N(), k), b.current && S();
1196
- }), M = u.useCallback(() => i.isTopModal(N()), [i]), _ = xe((k) => {
1197
- y.current = k, k && (m && M() ? S() : b.current && Z(b.current, p));
1198
- }), D = u.useCallback(() => {
1199
- i.remove(N(), p);
1200
- }, [p, i]);
1201
- u.useEffect(() => () => {
1202
- D();
1203
- }, [D]), u.useEffect(() => {
1204
- m ? E() : (!$ || !s) && D();
1205
- }, [m, D, $, s, E]);
1206
- const I = (k) => (R) => {
1284
+ const k = Ct(n) || T().body;
1285
+ s.add(C(), k), v.current && O();
1286
+ }), M = p.useCallback(() => s.isTopModal(C()), [s]), _ = xe((k) => {
1287
+ y.current = k, k && (f && M() ? O() : v.current && Z(v.current, m));
1288
+ }), I = p.useCallback(() => {
1289
+ s.remove(C(), m);
1290
+ }, [m, s]);
1291
+ p.useEffect(() => () => {
1292
+ I();
1293
+ }, [I]), p.useEffect(() => {
1294
+ f ? E() : (!D || !i) && I();
1295
+ }, [f, I, D, i, E]);
1296
+ const $ = (k) => (N) => {
1207
1297
  var h;
1208
- (h = k.onKeyDown) == null || h.call(k, R), !(R.key !== "Escape" || R.which === 229 || // Wait until IME is settled.
1209
- !M()) && (r || (R.stopPropagation(), d && d(R, "escapeKeyDown")));
1210
- }, B = (k) => (R) => {
1298
+ (h = k.onKeyDown) == null || h.call(k, N), !(N.key !== "Escape" || N.which === 229 || // Wait until IME is settled.
1299
+ !M()) && (r || (N.stopPropagation(), u && u(N, "escapeKeyDown")));
1300
+ }, B = (k) => (N) => {
1211
1301
  var h;
1212
- (h = k.onClick) == null || h.call(k, R), R.target === R.currentTarget && d && d(R, "backdropClick");
1302
+ (h = k.onClick) == null || h.call(k, N), N.target === N.currentTarget && u && u(N, "backdropClick");
1213
1303
  };
1214
1304
  return {
1215
1305
  getRootProps: (k = {}) => {
1216
- const R = xt(e);
1217
- delete R.onTransitionEnter, delete R.onTransitionExited;
1218
- const h = f({}, R, k);
1219
- return f({
1306
+ const N = on(e);
1307
+ delete N.onTransitionEnter, delete N.onTransitionExited;
1308
+ const h = d({}, N, k);
1309
+ return d({
1220
1310
  role: "presentation"
1221
1311
  }, h, {
1222
- onKeyDown: I(h),
1223
- ref: C
1312
+ onKeyDown: $(h),
1313
+ ref: P
1224
1314
  });
1225
1315
  },
1226
1316
  getBackdropProps: (k = {}) => {
1227
- const R = k;
1228
- return f({
1317
+ const N = k;
1318
+ return d({
1229
1319
  "aria-hidden": !0
1230
- }, R, {
1231
- onClick: B(R),
1232
- open: m
1320
+ }, N, {
1321
+ onClick: B(N),
1322
+ open: f
1233
1323
  });
1234
1324
  },
1235
1325
  getTransitionProps: () => {
1236
1326
  const k = () => {
1237
- O(!1), a && a();
1238
- }, R = () => {
1239
- O(!0), l && l(), s && D();
1327
+ S(!1), a && a();
1328
+ }, N = () => {
1329
+ S(!0), l && l(), i && I();
1240
1330
  };
1241
1331
  return {
1242
1332
  onEnter: Te(k, c == null ? void 0 : c.props.onEnter),
1243
- onExited: Te(R, c == null ? void 0 : c.props.onExited)
1333
+ onExited: Te(N, c == null ? void 0 : c.props.onExited)
1244
1334
  };
1245
1335
  },
1246
- rootRef: C,
1336
+ rootRef: P,
1247
1337
  portalRef: _,
1248
1338
  isTopModal: M,
1249
1339
  exited: w,
1250
- hasTransition: $
1340
+ hasTransition: D
1251
1341
  };
1252
1342
  }
1253
- function kn(e) {
1343
+ function Dt(e) {
1254
1344
  return Q("MuiModal", e);
1255
1345
  }
1256
1346
  ee("MuiModal", ["root", "hidden", "backdrop"]);
1257
- const Pn = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Rn = (e) => {
1347
+ const $t = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Mt = (e) => {
1258
1348
  const {
1259
- open: t,
1349
+ open: n,
1260
1350
  exited: r,
1261
1351
  classes: o
1262
1352
  } = e;
1263
- return ne({
1264
- root: ["root", !t && r && "hidden"],
1353
+ return te({
1354
+ root: ["root", !n && r && "hidden"],
1265
1355
  backdrop: ["backdrop"]
1266
- }, kn, o);
1267
- }, wn = L("div", {
1356
+ }, Dt, o);
1357
+ }, _t = L("div", {
1268
1358
  name: "MuiModal",
1269
1359
  slot: "Root",
1270
- overridesResolver: (e, t) => {
1360
+ overridesResolver: (e, n) => {
1271
1361
  const {
1272
1362
  ownerState: r
1273
1363
  } = e;
1274
- return [t.root, !r.open && r.exited && t.hidden];
1364
+ return [n.root, !r.open && r.exited && n.hidden];
1275
1365
  }
1276
1366
  })(({
1277
1367
  theme: e,
1278
- ownerState: t
1279
- }) => f({
1368
+ ownerState: n
1369
+ }) => d({
1280
1370
  position: "fixed",
1281
1371
  zIndex: (e.vars || e).zIndex.modal,
1282
1372
  right: 0,
1283
1373
  bottom: 0,
1284
1374
  top: 0,
1285
1375
  left: 0
1286
- }, !t.open && t.exited && {
1376
+ }, !n.open && n.exited && {
1287
1377
  visibility: "hidden"
1288
- })), Nn = L(we, {
1378
+ })), Ft = L(Ne, {
1289
1379
  name: "MuiModal",
1290
1380
  slot: "Backdrop",
1291
- overridesResolver: (e, t) => t.backdrop
1381
+ overridesResolver: (e, n) => n.backdrop
1292
1382
  })({
1293
1383
  zIndex: -1
1294
- }), ot = /* @__PURE__ */ u.forwardRef(function(t, r) {
1295
- var o, i, s, a, l, c;
1296
- const d = te({
1384
+ }), ln = /* @__PURE__ */ p.forwardRef(function(n, r) {
1385
+ var o, s, i, a, l, c;
1386
+ const u = ne({
1297
1387
  name: "MuiModal",
1298
- props: t
1388
+ props: n
1299
1389
  }), {
1300
- BackdropComponent: m = Nn,
1301
- BackdropProps: v,
1390
+ BackdropComponent: f = Ft,
1391
+ BackdropProps: b,
1302
1392
  className: g,
1303
1393
  closeAfterTransition: y = !1,
1304
- children: b,
1305
- container: C,
1394
+ children: v,
1395
+ container: P,
1306
1396
  component: w,
1307
- components: O = {},
1308
- componentsProps: $ = {},
1309
- disableAutoFocus: p = !1,
1397
+ components: S = {},
1398
+ componentsProps: D = {},
1399
+ disableAutoFocus: m = !1,
1310
1400
  disableEnforceFocus: T = !1,
1311
- disableEscapeKeyDown: N = !1,
1312
- disablePortal: S = !1,
1401
+ disableEscapeKeyDown: C = !1,
1402
+ disablePortal: O = !1,
1313
1403
  disableRestoreFocus: E = !1,
1314
1404
  disableScrollLock: M = !1,
1315
1405
  hideBackdrop: _ = !1,
1316
- keepMounted: D = !1,
1317
- onBackdropClick: I,
1406
+ keepMounted: I = !1,
1407
+ onBackdropClick: $,
1318
1408
  open: B,
1319
1409
  slotProps: j,
1320
- slots: P
1410
+ slots: R
1321
1411
  // eslint-disable-next-line react/prop-types
1322
- } = d, A = z(d, Pn), k = f({}, d, {
1412
+ } = u, A = H(u, $t), k = d({}, u, {
1323
1413
  closeAfterTransition: y,
1324
- disableAutoFocus: p,
1414
+ disableAutoFocus: m,
1325
1415
  disableEnforceFocus: T,
1326
- disableEscapeKeyDown: N,
1327
- disablePortal: S,
1416
+ disableEscapeKeyDown: C,
1417
+ disablePortal: O,
1328
1418
  disableRestoreFocus: E,
1329
1419
  disableScrollLock: M,
1330
1420
  hideBackdrop: _,
1331
- keepMounted: D
1421
+ keepMounted: I
1332
1422
  }), {
1333
- getRootProps: R,
1423
+ getRootProps: N,
1334
1424
  getBackdropProps: h,
1335
1425
  getTransitionProps: F,
1336
1426
  portalRef: re,
1337
- isTopModal: ut,
1338
- exited: Oe,
1339
- hasTransition: Se
1340
- } = Tn(f({}, k, {
1427
+ isTopModal: hn,
1428
+ exited: Se,
1429
+ hasTransition: Oe
1430
+ } = It(d({}, k, {
1341
1431
  rootRef: r
1342
- })), X = f({}, k, {
1343
- exited: Oe
1344
- }), W = Rn(X), ie = {};
1345
- if (b.props.tabIndex === void 0 && (ie.tabIndex = "-1"), Se) {
1432
+ })), X = d({}, k, {
1433
+ exited: Se
1434
+ }), K = Mt(X), se = {};
1435
+ if (v.props.tabIndex === void 0 && (se.tabIndex = "-1"), Oe) {
1346
1436
  const {
1347
- onEnter: K,
1348
- onExited: se
1437
+ onEnter: Y,
1438
+ onExited: ie
1349
1439
  } = F();
1350
- ie.onEnter = K, ie.onExited = se;
1440
+ se.onEnter = Y, se.onExited = ie;
1351
1441
  }
1352
- const De = (o = (i = P == null ? void 0 : P.root) != null ? i : O.Root) != null ? o : wn, $e = (s = (a = P == null ? void 0 : P.backdrop) != null ? a : O.Backdrop) != null ? s : m, he = (l = j == null ? void 0 : j.root) != null ? l : $.root, be = (c = j == null ? void 0 : j.backdrop) != null ? c : $.backdrop, dt = Me({
1353
- elementType: De,
1442
+ const Ie = (o = (s = R == null ? void 0 : R.root) != null ? s : S.Root) != null ? o : _t, De = (i = (a = R == null ? void 0 : R.backdrop) != null ? a : S.Backdrop) != null ? i : f, he = (l = j == null ? void 0 : j.root) != null ? l : D.root, ve = (c = j == null ? void 0 : j.backdrop) != null ? c : D.backdrop, vn = Be({
1443
+ elementType: Ie,
1354
1444
  externalSlotProps: he,
1355
1445
  externalForwardedProps: A,
1356
- getSlotProps: R,
1446
+ getSlotProps: N,
1357
1447
  additionalProps: {
1358
1448
  ref: r,
1359
1449
  as: w
1360
1450
  },
1361
1451
  ownerState: X,
1362
- className: V(g, he == null ? void 0 : he.className, W == null ? void 0 : W.root, !X.open && X.exited && (W == null ? void 0 : W.hidden))
1363
- }), pt = Me({
1364
- elementType: $e,
1365
- externalSlotProps: be,
1366
- additionalProps: v,
1367
- getSlotProps: (K) => h(f({}, K, {
1368
- onClick: (se) => {
1369
- I && I(se), K != null && K.onClick && K.onClick(se);
1452
+ className: V(g, he == null ? void 0 : he.className, K == null ? void 0 : K.root, !X.open && X.exited && (K == null ? void 0 : K.hidden))
1453
+ }), bn = Be({
1454
+ elementType: De,
1455
+ externalSlotProps: ve,
1456
+ additionalProps: b,
1457
+ getSlotProps: (Y) => h(d({}, Y, {
1458
+ onClick: (ie) => {
1459
+ $ && $(ie), Y != null && Y.onClick && Y.onClick(ie);
1370
1460
  }
1371
1461
  })),
1372
- className: V(be == null ? void 0 : be.className, v == null ? void 0 : v.className, W == null ? void 0 : W.backdrop),
1462
+ className: V(ve == null ? void 0 : ve.className, b == null ? void 0 : b.className, K == null ? void 0 : K.backdrop),
1373
1463
  ownerState: X
1374
1464
  });
1375
- return !D && !B && (!Se || Oe) ? null : /* @__PURE__ */ x(ce, {
1465
+ return !I && !B && (!Oe || Se) ? null : /* @__PURE__ */ x(ce, {
1376
1466
  ref: re,
1377
- container: C,
1378
- disablePortal: S,
1379
- children: /* @__PURE__ */ de(De, f({}, dt, {
1380
- children: [!_ && m ? /* @__PURE__ */ x($e, f({}, pt)) : null, /* @__PURE__ */ x(ue, {
1467
+ container: P,
1468
+ disablePortal: O,
1469
+ children: /* @__PURE__ */ de(Ie, d({}, vn, {
1470
+ children: [!_ && f ? /* @__PURE__ */ x(De, d({}, bn)) : null, /* @__PURE__ */ x(ue, {
1381
1471
  disableEnforceFocus: T,
1382
- disableAutoFocus: p,
1472
+ disableAutoFocus: m,
1383
1473
  disableRestoreFocus: E,
1384
- isEnabled: ut,
1474
+ isEnabled: hn,
1385
1475
  open: B,
1386
- children: /* @__PURE__ */ u.cloneElement(b, ie)
1476
+ children: /* @__PURE__ */ p.cloneElement(v, se)
1387
1477
  })]
1388
1478
  }))
1389
1479
  });
1390
1480
  });
1391
- process.env.NODE_ENV !== "production" && (ot.propTypes = {
1481
+ process.env.NODE_ENV !== "production" && (ln.propTypes = {
1392
1482
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1393
1483
  // │ These PropTypes are generated from the TypeScript type definitions. │
1394
1484
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1407,12 +1497,12 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1407
1497
  * zIndex: -1,
1408
1498
  * })
1409
1499
  */
1410
- BackdropComponent: n.elementType,
1500
+ BackdropComponent: t.elementType,
1411
1501
  /**
1412
1502
  * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1413
1503
  * @deprecated Use `slotProps.backdrop` instead.
1414
1504
  */
1415
- BackdropProps: n.object,
1505
+ BackdropProps: t.object,
1416
1506
  /**
1417
1507
  * A single child content element.
1418
1508
  */
@@ -1420,21 +1510,21 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1420
1510
  /**
1421
1511
  * Override or extend the styles applied to the component.
1422
1512
  */
1423
- classes: n.object,
1513
+ classes: t.object,
1424
1514
  /**
1425
1515
  * @ignore
1426
1516
  */
1427
- className: n.string,
1517
+ className: t.string,
1428
1518
  /**
1429
1519
  * When set to true the Modal waits until a nested Transition is completed before closing.
1430
1520
  * @default false
1431
1521
  */
1432
- closeAfterTransition: n.bool,
1522
+ closeAfterTransition: t.bool,
1433
1523
  /**
1434
1524
  * The component used for the root node.
1435
1525
  * Either a string to use a HTML element or a component.
1436
1526
  */
1437
- component: n.elementType,
1527
+ component: t.elementType,
1438
1528
  /**
1439
1529
  * The components used for each slot inside.
1440
1530
  *
@@ -1443,9 +1533,9 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1443
1533
  *
1444
1534
  * @default {}
1445
1535
  */
1446
- components: n.shape({
1447
- Backdrop: n.elementType,
1448
- Root: n.elementType
1536
+ components: t.shape({
1537
+ Backdrop: t.elementType,
1538
+ Root: t.elementType
1449
1539
  }),
1450
1540
  /**
1451
1541
  * The extra props for the slot components.
@@ -1456,9 +1546,9 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1456
1546
  *
1457
1547
  * @default {}
1458
1548
  */
1459
- componentsProps: n.shape({
1460
- backdrop: n.oneOfType([n.func, n.object]),
1461
- root: n.oneOfType([n.func, n.object])
1549
+ componentsProps: t.shape({
1550
+ backdrop: t.oneOfType([t.func, t.object]),
1551
+ root: t.oneOfType([t.func, t.object])
1462
1552
  }),
1463
1553
  /**
1464
1554
  * An HTML element or function that returns one.
@@ -1470,7 +1560,7 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1470
1560
  * By default, it uses the body of the top-level document object,
1471
1561
  * so it's simply `document.body` most of the time.
1472
1562
  */
1473
- container: n.oneOfType([Re, n.func]),
1563
+ container: t.oneOfType([Re, t.func]),
1474
1564
  /**
1475
1565
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
1476
1566
  * replace it to the last focused element when it closes.
@@ -1480,7 +1570,7 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1480
1570
  * accessible to assistive technologies, like screen readers.
1481
1571
  * @default false
1482
1572
  */
1483
- disableAutoFocus: n.bool,
1573
+ disableAutoFocus: t.bool,
1484
1574
  /**
1485
1575
  * If `true`, the modal will not prevent focus from leaving the modal while open.
1486
1576
  *
@@ -1488,45 +1578,45 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1488
1578
  * accessible to assistive technologies, like screen readers.
1489
1579
  * @default false
1490
1580
  */
1491
- disableEnforceFocus: n.bool,
1581
+ disableEnforceFocus: t.bool,
1492
1582
  /**
1493
1583
  * If `true`, hitting escape will not fire the `onClose` callback.
1494
1584
  * @default false
1495
1585
  */
1496
- disableEscapeKeyDown: n.bool,
1586
+ disableEscapeKeyDown: t.bool,
1497
1587
  /**
1498
1588
  * The `children` will be under the DOM hierarchy of the parent component.
1499
1589
  * @default false
1500
1590
  */
1501
- disablePortal: n.bool,
1591
+ disablePortal: t.bool,
1502
1592
  /**
1503
1593
  * If `true`, the modal will not restore focus to previously focused element once
1504
1594
  * modal is hidden or unmounted.
1505
1595
  * @default false
1506
1596
  */
1507
- disableRestoreFocus: n.bool,
1597
+ disableRestoreFocus: t.bool,
1508
1598
  /**
1509
1599
  * Disable the scroll lock behavior.
1510
1600
  * @default false
1511
1601
  */
1512
- disableScrollLock: n.bool,
1602
+ disableScrollLock: t.bool,
1513
1603
  /**
1514
1604
  * If `true`, the backdrop is not rendered.
1515
1605
  * @default false
1516
1606
  */
1517
- hideBackdrop: n.bool,
1607
+ hideBackdrop: t.bool,
1518
1608
  /**
1519
1609
  * Always keep the children in the DOM.
1520
1610
  * This prop can be useful in SEO situation or
1521
1611
  * when you want to maximize the responsiveness of the Modal.
1522
1612
  * @default false
1523
1613
  */
1524
- keepMounted: n.bool,
1614
+ keepMounted: t.bool,
1525
1615
  /**
1526
1616
  * Callback fired when the backdrop is clicked.
1527
1617
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1528
1618
  */
1529
- onBackdropClick: n.func,
1619
+ onBackdropClick: t.func,
1530
1620
  /**
1531
1621
  * Callback fired when the component requests to be closed.
1532
1622
  * The `reason` parameter can optionally be used to control the response to `onClose`.
@@ -1534,152 +1624,152 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
1534
1624
  * @param {object} event The event source of the callback.
1535
1625
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1536
1626
  */
1537
- onClose: n.func,
1627
+ onClose: t.func,
1538
1628
  /**
1539
1629
  * A function called when a transition enters.
1540
1630
  */
1541
- onTransitionEnter: n.func,
1631
+ onTransitionEnter: t.func,
1542
1632
  /**
1543
1633
  * A function called when a transition has exited.
1544
1634
  */
1545
- onTransitionExited: n.func,
1635
+ onTransitionExited: t.func,
1546
1636
  /**
1547
1637
  * If `true`, the component is shown.
1548
1638
  */
1549
- open: n.bool.isRequired,
1639
+ open: t.bool.isRequired,
1550
1640
  /**
1551
1641
  * The props used for each slot inside the Modal.
1552
1642
  * @default {}
1553
1643
  */
1554
- slotProps: n.shape({
1555
- backdrop: n.oneOfType([n.func, n.object]),
1556
- root: n.oneOfType([n.func, n.object])
1644
+ slotProps: t.shape({
1645
+ backdrop: t.oneOfType([t.func, t.object]),
1646
+ root: t.oneOfType([t.func, t.object])
1557
1647
  }),
1558
1648
  /**
1559
1649
  * The components used for each slot inside the Modal.
1560
1650
  * Either a string to use a HTML element or a component.
1561
1651
  * @default {}
1562
1652
  */
1563
- slots: n.shape({
1564
- backdrop: n.elementType,
1565
- root: n.elementType
1653
+ slots: t.shape({
1654
+ backdrop: t.elementType,
1655
+ root: t.elementType
1566
1656
  }),
1567
1657
  /**
1568
1658
  * The system prop that allows defining system overrides as well as additional CSS styles.
1569
1659
  */
1570
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1660
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
1571
1661
  });
1572
- const Cn = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
1573
- function On(e, t, r) {
1574
- const o = t.getBoundingClientRect(), i = r && r.getBoundingClientRect(), s = G(t);
1662
+ const Bt = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
1663
+ function jt(e, n, r) {
1664
+ const o = n.getBoundingClientRect(), s = r && r.getBoundingClientRect(), i = G(n);
1575
1665
  let a;
1576
- if (t.fakeTransform)
1577
- a = t.fakeTransform;
1666
+ if (n.fakeTransform)
1667
+ a = n.fakeTransform;
1578
1668
  else {
1579
- const d = s.getComputedStyle(t);
1580
- a = d.getPropertyValue("-webkit-transform") || d.getPropertyValue("transform");
1669
+ const u = i.getComputedStyle(n);
1670
+ a = u.getPropertyValue("-webkit-transform") || u.getPropertyValue("transform");
1581
1671
  }
1582
1672
  let l = 0, c = 0;
1583
1673
  if (a && a !== "none" && typeof a == "string") {
1584
- const d = a.split("(")[1].split(")")[0].split(",");
1585
- l = parseInt(d[4], 10), c = parseInt(d[5], 10);
1674
+ const u = a.split("(")[1].split(")")[0].split(",");
1675
+ l = parseInt(u[4], 10), c = parseInt(u[5], 10);
1586
1676
  }
1587
- return e === "left" ? i ? `translateX(${i.right + l - o.left}px)` : `translateX(${s.innerWidth + l - o.left}px)` : e === "right" ? i ? `translateX(-${o.right - i.left - l}px)` : `translateX(-${o.left + o.width - l}px)` : e === "up" ? i ? `translateY(${i.bottom + c - o.top}px)` : `translateY(${s.innerHeight + c - o.top}px)` : i ? `translateY(-${o.top - i.top + o.height - c}px)` : `translateY(-${o.top + o.height - c}px)`;
1677
+ return e === "left" ? s ? `translateX(${s.right + l - o.left}px)` : `translateX(${i.innerWidth + l - o.left}px)` : e === "right" ? s ? `translateX(-${o.right - s.left - l}px)` : `translateX(-${o.left + o.width - l}px)` : e === "up" ? s ? `translateY(${s.bottom + c - o.top}px)` : `translateY(${i.innerHeight + c - o.top}px)` : s ? `translateY(-${o.top - s.top + o.height - c}px)` : `translateY(-${o.top + o.height - c}px)`;
1588
1678
  }
1589
- function rt(e) {
1679
+ function cn(e) {
1590
1680
  return typeof e == "function" ? e() : e;
1591
1681
  }
1592
- function ae(e, t, r) {
1593
- const o = rt(r), i = On(e, t, o);
1594
- i && (t.style.webkitTransform = i, t.style.transform = i);
1682
+ function ae(e, n, r) {
1683
+ const o = cn(r), s = jt(e, n, o);
1684
+ s && (n.style.webkitTransform = s, n.style.transform = s);
1595
1685
  }
1596
- const it = /* @__PURE__ */ u.forwardRef(function(t, r) {
1597
- const o = pe(), i = {
1686
+ const un = /* @__PURE__ */ p.forwardRef(function(n, r) {
1687
+ const o = pe(), s = {
1598
1688
  enter: o.transitions.easing.easeOut,
1599
1689
  exit: o.transitions.easing.sharp
1600
- }, s = {
1690
+ }, i = {
1601
1691
  enter: o.transitions.duration.enteringScreen,
1602
1692
  exit: o.transitions.duration.leavingScreen
1603
1693
  }, {
1604
1694
  addEndListener: a,
1605
1695
  appear: l = !0,
1606
1696
  children: c,
1607
- container: d,
1608
- direction: m = "down",
1609
- easing: v = i,
1697
+ container: u,
1698
+ direction: f = "down",
1699
+ easing: b = s,
1610
1700
  in: g,
1611
1701
  onEnter: y,
1612
- onEntered: b,
1613
- onEntering: C,
1702
+ onEntered: v,
1703
+ onEntering: P,
1614
1704
  onExit: w,
1615
- onExited: O,
1616
- onExiting: $,
1617
- style: p,
1618
- timeout: T = s,
1705
+ onExited: S,
1706
+ onExiting: D,
1707
+ style: m,
1708
+ timeout: T = i,
1619
1709
  // eslint-disable-next-line react/prop-types
1620
- TransitionComponent: N = Ue
1621
- } = t, S = z(t, Cn), E = u.useRef(null), M = Y(fe(c), E, r), _ = (h) => (F) => {
1710
+ TransitionComponent: C = Ke
1711
+ } = n, O = H(n, Bt), E = p.useRef(null), M = W(fe(c), E, r), _ = (h) => (F) => {
1622
1712
  h && (F === void 0 ? h(E.current) : h(E.current, F));
1623
- }, D = _((h, F) => {
1624
- ae(m, h, d), ze(h), y && y(h, F);
1625
- }), I = _((h, F) => {
1713
+ }, I = _((h, F) => {
1714
+ ae(f, h, u), Ye(h), y && y(h, F);
1715
+ }), $ = _((h, F) => {
1626
1716
  const re = le({
1627
1717
  timeout: T,
1628
- style: p,
1629
- easing: v
1718
+ style: m,
1719
+ easing: b
1630
1720
  }, {
1631
1721
  mode: "enter"
1632
1722
  });
1633
- h.style.webkitTransition = o.transitions.create("-webkit-transform", f({}, re)), h.style.transition = o.transitions.create("transform", f({}, re)), h.style.webkitTransform = "none", h.style.transform = "none", C && C(h, F);
1634
- }), B = _(b), j = _($), P = _((h) => {
1723
+ h.style.webkitTransition = o.transitions.create("-webkit-transform", d({}, re)), h.style.transition = o.transitions.create("transform", d({}, re)), h.style.webkitTransform = "none", h.style.transform = "none", P && P(h, F);
1724
+ }), B = _(v), j = _(D), R = _((h) => {
1635
1725
  const F = le({
1636
1726
  timeout: T,
1637
- style: p,
1638
- easing: v
1727
+ style: m,
1728
+ easing: b
1639
1729
  }, {
1640
1730
  mode: "exit"
1641
1731
  });
1642
- h.style.webkitTransition = o.transitions.create("-webkit-transform", F), h.style.transition = o.transitions.create("transform", F), ae(m, h, d), w && w(h);
1732
+ h.style.webkitTransition = o.transitions.create("-webkit-transform", F), h.style.transition = o.transitions.create("transform", F), ae(f, h, u), w && w(h);
1643
1733
  }), A = _((h) => {
1644
- h.style.webkitTransition = "", h.style.transition = "", O && O(h);
1734
+ h.style.webkitTransition = "", h.style.transition = "", S && S(h);
1645
1735
  }), k = (h) => {
1646
1736
  a && a(E.current, h);
1647
- }, R = u.useCallback(() => {
1648
- E.current && ae(m, E.current, d);
1649
- }, [m, d]);
1650
- return u.useEffect(() => {
1651
- if (g || m === "down" || m === "right")
1737
+ }, N = p.useCallback(() => {
1738
+ E.current && ae(f, E.current, u);
1739
+ }, [f, u]);
1740
+ return p.useEffect(() => {
1741
+ if (g || f === "down" || f === "right")
1652
1742
  return;
1653
- const h = Xe(() => {
1654
- E.current && ae(m, E.current, d);
1743
+ const h = Qe(() => {
1744
+ E.current && ae(f, E.current, u);
1655
1745
  }), F = G(E.current);
1656
1746
  return F.addEventListener("resize", h), () => {
1657
1747
  h.clear(), F.removeEventListener("resize", h);
1658
1748
  };
1659
- }, [m, g, d]), u.useEffect(() => {
1660
- g || R();
1661
- }, [g, R]), /* @__PURE__ */ x(N, f({
1749
+ }, [f, g, u]), p.useEffect(() => {
1750
+ g || N();
1751
+ }, [g, N]), /* @__PURE__ */ x(C, d({
1662
1752
  nodeRef: E,
1663
- onEnter: D,
1753
+ onEnter: I,
1664
1754
  onEntered: B,
1665
- onEntering: I,
1666
- onExit: P,
1755
+ onEntering: $,
1756
+ onExit: R,
1667
1757
  onExited: A,
1668
1758
  onExiting: j,
1669
1759
  addEndListener: k,
1670
1760
  appear: l,
1671
1761
  in: g,
1672
1762
  timeout: T
1673
- }, S, {
1674
- children: (h, F) => /* @__PURE__ */ u.cloneElement(c, f({
1763
+ }, O, {
1764
+ children: (h, F) => /* @__PURE__ */ p.cloneElement(c, d({
1675
1765
  ref: M,
1676
- style: f({
1766
+ style: d({
1677
1767
  visibility: h === "exited" && !g ? "hidden" : void 0
1678
- }, p, c.props.style)
1768
+ }, m, c.props.style)
1679
1769
  }, F))
1680
1770
  }));
1681
1771
  });
1682
- process.env.NODE_ENV !== "production" && (it.propTypes = {
1772
+ process.env.NODE_ENV !== "production" && (un.propTypes = {
1683
1773
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1684
1774
  // │ These PropTypes are generated from the TypeScript type definitions. │
1685
1775
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1689,13 +1779,13 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
1689
1779
  * node and a done callback. Allows for more fine grained transition end
1690
1780
  * logic. Note: Timeouts are still used as a fallback if provided.
1691
1781
  */
1692
- addEndListener: n.func,
1782
+ addEndListener: t.func,
1693
1783
  /**
1694
1784
  * Perform the enter transition when it first mounts if `in` is also `true`.
1695
1785
  * Set this to `false` to disable this behavior.
1696
1786
  * @default true
1697
1787
  */
1698
- appear: n.bool,
1788
+ appear: t.bool,
1699
1789
  /**
1700
1790
  * A single child content element.
1701
1791
  */
@@ -1704,15 +1794,15 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
1704
1794
  * An HTML element, or a function that returns one.
1705
1795
  * It's used to set the container the Slide is transitioning from.
1706
1796
  */
1707
- container: J(n.oneOfType([Re, n.func]), (e) => {
1797
+ container: J(t.oneOfType([Re, t.func]), (e) => {
1708
1798
  if (e.open) {
1709
- const t = rt(e.container);
1710
- if (t && t.nodeType === 1) {
1711
- const r = t.getBoundingClientRect();
1799
+ const n = cn(e.container);
1800
+ if (n && n.nodeType === 1) {
1801
+ const r = n.getBoundingClientRect();
1712
1802
  if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1713
1803
  return new Error(["MUI: The `container` 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(`
1714
1804
  `));
1715
- } else if (!t || typeof t.getBoundingClientRect != "function" || t.contextElement != null && t.contextElement.nodeType !== 1)
1805
+ } else if (!n || typeof n.getBoundingClientRect != "function" || n.contextElement != null && n.contextElement.nodeType !== 1)
1716
1806
  return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join(`
1717
1807
  `));
1718
1808
  }
@@ -1722,7 +1812,7 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
1722
1812
  * Direction the child node will enter from.
1723
1813
  * @default 'down'
1724
1814
  */
1725
- direction: n.oneOf(["down", "left", "right", "up"]),
1815
+ direction: t.oneOf(["down", "left", "right", "up"]),
1726
1816
  /**
1727
1817
  * The transition timing function.
1728
1818
  * You may specify a single easing or a object containing enter and exit values.
@@ -1731,42 +1821,42 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
1731
1821
  * exit: theme.transitions.easing.sharp,
1732
1822
  * }
1733
1823
  */
1734
- easing: n.oneOfType([n.shape({
1735
- enter: n.string,
1736
- exit: n.string
1737
- }), n.string]),
1824
+ easing: t.oneOfType([t.shape({
1825
+ enter: t.string,
1826
+ exit: t.string
1827
+ }), t.string]),
1738
1828
  /**
1739
1829
  * If `true`, the component will transition in.
1740
1830
  */
1741
- in: n.bool,
1831
+ in: t.bool,
1742
1832
  /**
1743
1833
  * @ignore
1744
1834
  */
1745
- onEnter: n.func,
1835
+ onEnter: t.func,
1746
1836
  /**
1747
1837
  * @ignore
1748
1838
  */
1749
- onEntered: n.func,
1839
+ onEntered: t.func,
1750
1840
  /**
1751
1841
  * @ignore
1752
1842
  */
1753
- onEntering: n.func,
1843
+ onEntering: t.func,
1754
1844
  /**
1755
1845
  * @ignore
1756
1846
  */
1757
- onExit: n.func,
1847
+ onExit: t.func,
1758
1848
  /**
1759
1849
  * @ignore
1760
1850
  */
1761
- onExited: n.func,
1851
+ onExited: t.func,
1762
1852
  /**
1763
1853
  * @ignore
1764
1854
  */
1765
- onExiting: n.func,
1855
+ onExiting: t.func,
1766
1856
  /**
1767
1857
  * @ignore
1768
1858
  */
1769
- style: n.object,
1859
+ style: t.object,
1770
1860
  /**
1771
1861
  * The duration for the transition, in milliseconds.
1772
1862
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -1775,62 +1865,62 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
1775
1865
  * exit: theme.transitions.duration.leavingScreen,
1776
1866
  * }
1777
1867
  */
1778
- timeout: n.oneOfType([n.number, n.shape({
1779
- appear: n.number,
1780
- enter: n.number,
1781
- exit: n.number
1868
+ timeout: t.oneOfType([t.number, t.shape({
1869
+ appear: t.number,
1870
+ enter: t.number,
1871
+ exit: t.number
1782
1872
  })])
1783
1873
  });
1784
- function Sn(e) {
1874
+ function At(e) {
1785
1875
  return Q("MuiDrawer", e);
1786
1876
  }
1787
1877
  ee("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
1788
- const Dn = ["BackdropProps"], $n = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"], st = (e, t) => {
1878
+ const Vt = ["BackdropProps"], Lt = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"], dn = (e, n) => {
1789
1879
  const {
1790
1880
  ownerState: r
1791
1881
  } = e;
1792
- return [t.root, (r.variant === "permanent" || r.variant === "persistent") && t.docked, t.modal];
1793
- }, In = (e) => {
1882
+ return [n.root, (r.variant === "permanent" || r.variant === "persistent") && n.docked, n.modal];
1883
+ }, qt = (e) => {
1794
1884
  const {
1795
- classes: t,
1885
+ classes: n,
1796
1886
  anchor: r,
1797
1887
  variant: o
1798
- } = e, i = {
1888
+ } = e, s = {
1799
1889
  root: ["root"],
1800
1890
  docked: [(o === "permanent" || o === "persistent") && "docked"],
1801
1891
  modal: ["modal"],
1802
- paper: ["paper", `paperAnchor${H(r)}`, o !== "temporary" && `paperAnchorDocked${H(r)}`]
1892
+ paper: ["paper", `paperAnchor${U(r)}`, o !== "temporary" && `paperAnchorDocked${U(r)}`]
1803
1893
  };
1804
- return ne(i, Sn, t);
1805
- }, Mn = L(ot, {
1894
+ return te(s, At, n);
1895
+ }, Ht = L(ln, {
1806
1896
  name: "MuiDrawer",
1807
1897
  slot: "Root",
1808
- overridesResolver: st
1898
+ overridesResolver: dn
1809
1899
  })(({
1810
1900
  theme: e
1811
1901
  }) => ({
1812
1902
  zIndex: (e.vars || e).zIndex.drawer
1813
- })), He = L("div", {
1814
- shouldForwardProp: Tt,
1903
+ })), We = L("div", {
1904
+ shouldForwardProp: Pn,
1815
1905
  name: "MuiDrawer",
1816
1906
  slot: "Docked",
1817
1907
  skipVariantsResolver: !1,
1818
- overridesResolver: st
1908
+ overridesResolver: dn
1819
1909
  })({
1820
1910
  flex: "0 0 auto"
1821
- }), _n = L(et, {
1911
+ }), Ut = L(rn, {
1822
1912
  name: "MuiDrawer",
1823
1913
  slot: "Paper",
1824
- overridesResolver: (e, t) => {
1914
+ overridesResolver: (e, n) => {
1825
1915
  const {
1826
1916
  ownerState: r
1827
1917
  } = e;
1828
- return [t.paper, t[`paperAnchor${H(r.anchor)}`], r.variant !== "temporary" && t[`paperAnchorDocked${H(r.anchor)}`]];
1918
+ return [n.paper, n[`paperAnchor${U(r.anchor)}`], r.variant !== "temporary" && n[`paperAnchorDocked${U(r.anchor)}`]];
1829
1919
  }
1830
1920
  })(({
1831
1921
  theme: e,
1832
- ownerState: t
1833
- }) => f({
1922
+ ownerState: n
1923
+ }) => d({
1834
1924
  overflowY: "auto",
1835
1925
  display: "flex",
1836
1926
  flexDirection: "column",
@@ -1846,126 +1936,126 @@ const Dn = ["BackdropProps"], $n = ["anchor", "BackdropProps", "children", "clas
1846
1936
  // At some point, it would be better to keep it for keyboard users.
1847
1937
  // :focus-ring CSS pseudo-class will help.
1848
1938
  outline: 0
1849
- }, t.anchor === "left" && {
1939
+ }, n.anchor === "left" && {
1850
1940
  left: 0
1851
- }, t.anchor === "top" && {
1941
+ }, n.anchor === "top" && {
1852
1942
  top: 0,
1853
1943
  left: 0,
1854
1944
  right: 0,
1855
1945
  height: "auto",
1856
1946
  maxHeight: "100%"
1857
- }, t.anchor === "right" && {
1947
+ }, n.anchor === "right" && {
1858
1948
  right: 0
1859
- }, t.anchor === "bottom" && {
1949
+ }, n.anchor === "bottom" && {
1860
1950
  top: "auto",
1861
1951
  left: 0,
1862
1952
  bottom: 0,
1863
1953
  right: 0,
1864
1954
  height: "auto",
1865
1955
  maxHeight: "100%"
1866
- }, t.anchor === "left" && t.variant !== "temporary" && {
1956
+ }, n.anchor === "left" && n.variant !== "temporary" && {
1867
1957
  borderRight: `1px solid ${(e.vars || e).palette.divider}`
1868
- }, t.anchor === "top" && t.variant !== "temporary" && {
1958
+ }, n.anchor === "top" && n.variant !== "temporary" && {
1869
1959
  borderBottom: `1px solid ${(e.vars || e).palette.divider}`
1870
- }, t.anchor === "right" && t.variant !== "temporary" && {
1960
+ }, n.anchor === "right" && n.variant !== "temporary" && {
1871
1961
  borderLeft: `1px solid ${(e.vars || e).palette.divider}`
1872
- }, t.anchor === "bottom" && t.variant !== "temporary" && {
1962
+ }, n.anchor === "bottom" && n.variant !== "temporary" && {
1873
1963
  borderTop: `1px solid ${(e.vars || e).palette.divider}`
1874
- })), at = {
1964
+ })), pn = {
1875
1965
  left: "right",
1876
1966
  right: "left",
1877
1967
  top: "down",
1878
1968
  bottom: "up"
1879
1969
  };
1880
- function Fn(e) {
1970
+ function zt(e) {
1881
1971
  return ["left", "right"].indexOf(e) !== -1;
1882
1972
  }
1883
- function Bn({
1973
+ function Wt({
1884
1974
  direction: e
1885
- }, t) {
1886
- return e === "rtl" && Fn(t) ? at[t] : t;
1975
+ }, n) {
1976
+ return e === "rtl" && zt(n) ? pn[n] : n;
1887
1977
  }
1888
- const lt = /* @__PURE__ */ u.forwardRef(function(t, r) {
1889
- const o = te({
1890
- props: t,
1978
+ const fn = /* @__PURE__ */ p.forwardRef(function(n, r) {
1979
+ const o = ne({
1980
+ props: n,
1891
1981
  name: "MuiDrawer"
1892
- }), i = pe(), s = kt(), a = {
1893
- enter: i.transitions.duration.enteringScreen,
1894
- exit: i.transitions.duration.leavingScreen
1982
+ }), s = pe(), i = Rn(), a = {
1983
+ enter: s.transitions.duration.enteringScreen,
1984
+ exit: s.transitions.duration.leavingScreen
1895
1985
  }, {
1896
1986
  anchor: l = "left",
1897
1987
  BackdropProps: c,
1898
- children: d,
1899
- className: m,
1900
- elevation: v = 16,
1988
+ children: u,
1989
+ className: f,
1990
+ elevation: b = 16,
1901
1991
  hideBackdrop: g = !1,
1902
1992
  ModalProps: {
1903
1993
  BackdropProps: y
1904
1994
  } = {},
1905
- onClose: b,
1906
- open: C = !1,
1995
+ onClose: v,
1996
+ open: P = !1,
1907
1997
  PaperProps: w = {},
1908
- SlideProps: O,
1998
+ SlideProps: S,
1909
1999
  // eslint-disable-next-line react/prop-types
1910
- TransitionComponent: $ = it,
1911
- transitionDuration: p = a,
2000
+ TransitionComponent: D = un,
2001
+ transitionDuration: m = a,
1912
2002
  variant: T = "temporary"
1913
- } = o, N = z(o.ModalProps, Dn), S = z(o, $n), E = u.useRef(!1);
1914
- u.useEffect(() => {
2003
+ } = o, C = H(o.ModalProps, Vt), O = H(o, Lt), E = p.useRef(!1);
2004
+ p.useEffect(() => {
1915
2005
  E.current = !0;
1916
2006
  }, []);
1917
- const M = Bn({
1918
- direction: s ? "rtl" : "ltr"
1919
- }, l), D = f({}, o, {
2007
+ const M = Wt({
2008
+ direction: i ? "rtl" : "ltr"
2009
+ }, l), I = d({}, o, {
1920
2010
  anchor: l,
1921
- elevation: v,
1922
- open: C,
2011
+ elevation: b,
2012
+ open: P,
1923
2013
  variant: T
1924
- }, S), I = In(D), B = /* @__PURE__ */ x(_n, f({
1925
- elevation: T === "temporary" ? v : 0,
2014
+ }, O), $ = qt(I), B = /* @__PURE__ */ x(Ut, d({
2015
+ elevation: T === "temporary" ? b : 0,
1926
2016
  square: !0
1927
2017
  }, w, {
1928
- className: V(I.paper, w.className),
1929
- ownerState: D,
1930
- children: d
2018
+ className: V($.paper, w.className),
2019
+ ownerState: I,
2020
+ children: u
1931
2021
  }));
1932
2022
  if (T === "permanent")
1933
- return /* @__PURE__ */ x(He, f({
1934
- className: V(I.root, I.docked, m),
1935
- ownerState: D,
2023
+ return /* @__PURE__ */ x(We, d({
2024
+ className: V($.root, $.docked, f),
2025
+ ownerState: I,
1936
2026
  ref: r
1937
- }, S, {
2027
+ }, O, {
1938
2028
  children: B
1939
2029
  }));
1940
- const j = /* @__PURE__ */ x($, f({
1941
- in: C,
1942
- direction: at[M],
1943
- timeout: p,
2030
+ const j = /* @__PURE__ */ x(D, d({
2031
+ in: P,
2032
+ direction: pn[M],
2033
+ timeout: m,
1944
2034
  appear: E.current
1945
- }, O, {
2035
+ }, S, {
1946
2036
  children: B
1947
2037
  }));
1948
- return T === "persistent" ? /* @__PURE__ */ x(He, f({
1949
- className: V(I.root, I.docked, m),
1950
- ownerState: D,
2038
+ return T === "persistent" ? /* @__PURE__ */ x(We, d({
2039
+ className: V($.root, $.docked, f),
2040
+ ownerState: I,
1951
2041
  ref: r
1952
- }, S, {
2042
+ }, O, {
1953
2043
  children: j
1954
- })) : /* @__PURE__ */ x(Mn, f({
1955
- BackdropProps: f({}, c, y, {
1956
- transitionDuration: p
2044
+ })) : /* @__PURE__ */ x(Ht, d({
2045
+ BackdropProps: d({}, c, y, {
2046
+ transitionDuration: m
1957
2047
  }),
1958
- className: V(I.root, I.modal, m),
1959
- open: C,
1960
- ownerState: D,
1961
- onClose: b,
2048
+ className: V($.root, $.modal, f),
2049
+ open: P,
2050
+ ownerState: I,
2051
+ onClose: v,
1962
2052
  hideBackdrop: g,
1963
2053
  ref: r
1964
- }, S, N, {
2054
+ }, O, C, {
1965
2055
  children: j
1966
2056
  }));
1967
2057
  });
1968
- process.env.NODE_ENV !== "production" && (lt.propTypes = {
2058
+ process.env.NODE_ENV !== "production" && (fn.propTypes = {
1969
2059
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1970
2060
  // │ These PropTypes are generated from the TypeScript type definitions. │
1971
2061
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1974,38 +2064,38 @@ process.env.NODE_ENV !== "production" && (lt.propTypes = {
1974
2064
  * Side from which the drawer will appear.
1975
2065
  * @default 'left'
1976
2066
  */
1977
- anchor: n.oneOf(["bottom", "left", "right", "top"]),
2067
+ anchor: t.oneOf(["bottom", "left", "right", "top"]),
1978
2068
  /**
1979
2069
  * @ignore
1980
2070
  */
1981
- BackdropProps: n.object,
2071
+ BackdropProps: t.object,
1982
2072
  /**
1983
2073
  * The content of the component.
1984
2074
  */
1985
- children: n.node,
2075
+ children: t.node,
1986
2076
  /**
1987
2077
  * Override or extend the styles applied to the component.
1988
2078
  */
1989
- classes: n.object,
2079
+ classes: t.object,
1990
2080
  /**
1991
2081
  * @ignore
1992
2082
  */
1993
- className: n.string,
2083
+ className: t.string,
1994
2084
  /**
1995
2085
  * The elevation of the drawer.
1996
2086
  * @default 16
1997
2087
  */
1998
- elevation: Qe,
2088
+ elevation: tn,
1999
2089
  /**
2000
2090
  * If `true`, the backdrop is not rendered.
2001
2091
  * @default false
2002
2092
  */
2003
- hideBackdrop: n.bool,
2093
+ hideBackdrop: t.bool,
2004
2094
  /**
2005
2095
  * Props applied to the [`Modal`](/material-ui/api/modal/) element.
2006
2096
  * @default {}
2007
2097
  */
2008
- ModalProps: n.object,
2098
+ ModalProps: t.object,
2009
2099
  /**
2010
2100
  * Callback fired when the component requests to be closed.
2011
2101
  * The `reason` parameter can optionally be used to control the response to `onClose`.
@@ -2013,25 +2103,25 @@ process.env.NODE_ENV !== "production" && (lt.propTypes = {
2013
2103
  * @param {object} event The event source of the callback.
2014
2104
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
2015
2105
  */
2016
- onClose: n.func,
2106
+ onClose: t.func,
2017
2107
  /**
2018
2108
  * If `true`, the component is shown.
2019
2109
  * @default false
2020
2110
  */
2021
- open: n.bool,
2111
+ open: t.bool,
2022
2112
  /**
2023
2113
  * Props applied to the [`Paper`](/material-ui/api/paper/) element.
2024
2114
  * @default {}
2025
2115
  */
2026
- PaperProps: n.object,
2116
+ PaperProps: t.object,
2027
2117
  /**
2028
2118
  * Props applied to the [`Slide`](/material-ui/api/slide/) element.
2029
2119
  */
2030
- SlideProps: n.object,
2120
+ SlideProps: t.object,
2031
2121
  /**
2032
2122
  * The system prop that allows defining system overrides as well as additional CSS styles.
2033
2123
  */
2034
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2124
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
2035
2125
  /**
2036
2126
  * The duration for the transition, in milliseconds.
2037
2127
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -2040,38 +2130,38 @@ process.env.NODE_ENV !== "production" && (lt.propTypes = {
2040
2130
  * exit: theme.transitions.duration.leavingScreen,
2041
2131
  * }
2042
2132
  */
2043
- transitionDuration: n.oneOfType([n.number, n.shape({
2044
- appear: n.number,
2045
- enter: n.number,
2046
- exit: n.number
2133
+ transitionDuration: t.oneOfType([t.number, t.shape({
2134
+ appear: t.number,
2135
+ enter: t.number,
2136
+ exit: t.number
2047
2137
  })]),
2048
2138
  /**
2049
2139
  * The variant to use.
2050
2140
  * @default 'temporary'
2051
2141
  */
2052
- variant: n.oneOf(["permanent", "persistent", "temporary"])
2142
+ variant: t.oneOf(["permanent", "persistent", "temporary"])
2053
2143
  });
2054
- const jn = ({
2144
+ const Kt = ({
2055
2145
  size: e = 36,
2056
- ...t
2146
+ ...n
2057
2147
  }) => /* @__PURE__ */ x(
2058
- we,
2148
+ Ne,
2059
2149
  {
2060
- ...t,
2150
+ ...n,
2061
2151
  sx: { position: "absolute", backgroundColor: "rgba(0, 0, 0, 0.3)" },
2062
2152
  "data-testid": "loading-backdrop",
2063
- children: /* @__PURE__ */ x(nt, { color: "secondary", size: e })
2153
+ children: /* @__PURE__ */ x(an, { color: "secondary", size: e })
2064
2154
  }
2065
- ), An = ({ children: e }) => /* @__PURE__ */ x(Pt, { flex: 1, children: e }), Ln = ({ children: e }) => /* @__PURE__ */ x(Pe, { direction: "row", justifyContent: "end", columnGap: 1, pb: 2, children: e });
2066
- var Ne = {}, Vn = Rt;
2067
- Object.defineProperty(Ne, "__esModule", {
2155
+ ), Yt = ({ children: e }) => /* @__PURE__ */ x(Nn, { flex: 1, children: e }), Gt = ({ children: e }) => /* @__PURE__ */ x(Pe, { direction: "row", justifyContent: "end", columnGap: 1, pb: 2, children: e });
2156
+ var we = {}, Xt = wn;
2157
+ Object.defineProperty(we, "__esModule", {
2068
2158
  value: !0
2069
2159
  });
2070
- var ct = Ne.default = void 0, qn = Vn(Vt()), Hn = ft;
2071
- ct = Ne.default = (0, qn.default)(/* @__PURE__ */ (0, Hn.jsx)("path", {
2160
+ var mn = we.default = void 0, Zt = Xt(Zn()), Jt = gn;
2161
+ mn = we.default = (0, Zt.default)(/* @__PURE__ */ (0, Jt.jsx)("path", {
2072
2162
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
2073
2163
  }), "Close");
2074
- const Un = ({ children: e, onClose: t }) => /* @__PURE__ */ de(
2164
+ const Qt = ({ children: e, onClose: n }) => /* @__PURE__ */ de(
2075
2165
  Pe,
2076
2166
  {
2077
2167
  direction: "row",
@@ -2079,42 +2169,50 @@ const Un = ({ children: e, onClose: t }) => /* @__PURE__ */ de(
2079
2169
  alignItems: "center",
2080
2170
  pb: 2,
2081
2171
  children: [
2082
- /* @__PURE__ */ x(wt, { fontSize: 16, fontWeight: "bold", children: e }),
2083
- /* @__PURE__ */ x(Nt, { size: "small", onClick: t, "data-testid": "drawer-close", children: /* @__PURE__ */ x(ct, { fontSize: "inherit" }) })
2172
+ /* @__PURE__ */ x(Cn, { fontSize: 16, fontWeight: "bold", children: e }),
2173
+ /* @__PURE__ */ x(Sn, { size: "small", onClick: n, "data-testid": "drawer-close", children: /* @__PURE__ */ x(mn, { fontSize: "inherit" }) })
2084
2174
  ]
2085
2175
  }
2086
2176
  ), Ce = ({
2087
2177
  anchor: e = "right",
2088
- children: t,
2178
+ children: n,
2089
2179
  width: r,
2090
2180
  loading: o = !1,
2091
- ...i
2092
- }) => /* @__PURE__ */ x(lt, { anchor: e, "data-testid": "drawer", ...i, children: /* @__PURE__ */ de(Pe, { height: "100%", p: 2, width: r, position: "relative", children: [
2093
- t,
2094
- /* @__PURE__ */ x(jn, { open: o })
2181
+ ...s
2182
+ }) => /* @__PURE__ */ x(fn, { anchor: e, "data-testid": "drawer", ...s, children: /* @__PURE__ */ de(Pe, { height: "100%", p: 2, width: r, position: "relative", children: [
2183
+ n,
2184
+ /* @__PURE__ */ x(Kt, { open: o })
2095
2185
  ] }) });
2096
- Ce.Header = Un;
2097
- Ce.Content = An;
2098
- Ce.Footer = Ln;
2186
+ Ce.Header = Qt;
2187
+ Ce.Content = Yt;
2188
+ Ce.Footer = Gt;
2099
2189
  export {
2100
- we as B,
2101
- nt as C,
2190
+ Ne as B,
2191
+ an as C,
2102
2192
  Ce as D,
2103
- tt as F,
2193
+ sn as F,
2104
2194
  Re as H,
2105
- jn as L,
2106
- ot as M,
2107
- et as P,
2108
- ce as a,
2109
- $t as b,
2110
- It as c,
2111
- Xe as d,
2112
- Ge as e,
2113
- oe as f,
2114
- fe as g,
2115
- Mt as h,
2116
- Qe as i,
2117
- ue as j,
2118
- G as o,
2119
- Vt as r
2195
+ Kt as L,
2196
+ ln as M,
2197
+ rn as P,
2198
+ Wn as a,
2199
+ Un as b,
2200
+ ce as c,
2201
+ Be as d,
2202
+ Je as e,
2203
+ jn as f,
2204
+ G as g,
2205
+ Qe as h,
2206
+ Hn as i,
2207
+ tn as j,
2208
+ Mn as k,
2209
+ _n as l,
2210
+ zn as m,
2211
+ fe as n,
2212
+ q as o,
2213
+ oe as p,
2214
+ An as q,
2215
+ Zn as r,
2216
+ ue as s,
2217
+ Bn as u
2120
2218
  };