@fastspace/schema-form 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,22 @@
1
1
  import * as A from "valibot";
2
2
  import { jsx as E, jsxs as fe, Fragment as Dr } from "react/jsx-runtime";
3
3
  import * as B from "react";
4
- import dt, { memo as mi, forwardRef as mo, useState as Ne, useEffect as De, useCallback as ho, useRef as Ye, isValidElement as _t, cloneElement as Nt, Children as hi, useMemo as qe, useImperativeHandle as gi } from "react";
5
- import { Controller as jr, useFieldArray as yi, useForm as bi, useWatch as vi, FormProvider as Si } from "react-hook-form";
6
- import { ThemeContext as xi, keyframes as St, css as go } from "@emotion/react";
7
- import Ci from "@emotion/styled";
8
- import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as Ti, TextField as lt, FormControlLabel as Vr, Checkbox as wi, FormHelperText as zr, Grid as $t, RadioGroup as Ei, Radio as Oi, Stack as nn, FormLabel as jt, Rating as $i, Slider as Ri, Switch as ki } from "@mui/material";
4
+ import dt, { memo as mi, forwardRef as mo, useRef as De, useState as Ne, useEffect as je, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
5
+ import { Controller as jr, useFieldArray as bi, useForm as vi, useWatch as Si, FormProvider as xi } from "react-hook-form";
6
+ import { ThemeContext as Ci, keyframes as St, css as go } from "@emotion/react";
7
+ import Ti from "@emotion/styled";
8
+ import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as wi, TextField as lt, FormControlLabel as Vr, Checkbox as Ei, FormHelperText as zr, Grid as $t, RadioGroup as Oi, Radio as $i, Stack as nn, FormLabel as jt, Rating as Ri, Slider as ki, Switch as Ai } from "@mui/material";
9
9
  import { LocalizationProvider as Wr } from "@mui/x-date-pickers";
10
10
  import { AdapterDayjs as Lr } from "@mui/x-date-pickers/AdapterDayjs";
11
- import { DateTimePicker as Ai } from "@mui/x-date-pickers/DateTimePicker";
11
+ import { DateTimePicker as Pi } from "@mui/x-date-pickers/DateTimePicker";
12
12
  import vo from "dayjs";
13
13
  import "dayjs/locale/zh-cn";
14
- import { DatePicker as Pi } from "@mui/x-date-pickers/DatePicker";
15
- import { TimePicker as Ii } from "@mui/x-date-pickers/TimePicker";
14
+ import { DatePicker as Ii } from "@mui/x-date-pickers/DatePicker";
15
+ import { TimePicker as Mi } from "@mui/x-date-pickers/TimePicker";
16
16
  function Rt(e) {
17
17
  return !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0);
18
18
  }
19
- function Mi(e, t) {
19
+ function _i(e, t) {
20
20
  const r = t.split(".");
21
21
  let n = e;
22
22
  for (const o of r) {
@@ -28,18 +28,18 @@ function Mi(e, t) {
28
28
  function So(e) {
29
29
  return "field" in e;
30
30
  }
31
- function _i(e) {
31
+ function Ni(e) {
32
32
  return "and" in e || "or" in e || "not" in e;
33
33
  }
34
- function Ni(e, t) {
35
- const r = Mi(t, e.field);
34
+ function Bi(e, t) {
35
+ const r = _i(t, e.field);
36
36
  return "eq" in e ? r === e.eq : "ne" in e ? r !== e.ne : "gt" in e && typeof r == "number" ? r > e.gt : "gte" in e && typeof r == "number" ? r >= e.gte : "lt" in e && typeof r == "number" ? r < e.lt : "lte" in e && typeof r == "number" ? r <= e.lte : "in" in e && Array.isArray(e.in) ? e.in.includes(r) : "notIn" in e && Array.isArray(e.notIn) ? !e.notIn.includes(r) : "empty" in e ? e.empty ? Rt(r) : !Rt(r) : "notEmpty" in e ? e.notEmpty ? !Rt(r) : Rt(r) : !1;
37
37
  }
38
- function Bi(e, t) {
39
- return "and" in e ? e.and.every((r) => je(r, t)) : "or" in e ? e.or.some((r) => je(r, t)) : "not" in e ? !je(e.not, t) : !1;
38
+ function Di(e, t) {
39
+ return "and" in e ? e.and.every((r) => Ve(r, t)) : "or" in e ? e.or.some((r) => Ve(r, t)) : "not" in e ? !Ve(e.not, t) : !1;
40
40
  }
41
- function je(e, t) {
42
- return e ? typeof e == "function" ? e(t) : So(e) ? Ni(e, t) : _i(e) ? Bi(e, t) : !0 : !0;
41
+ function Ve(e, t) {
42
+ return e ? typeof e == "function" ? e(t) : So(e) ? Bi(e, t) : Ni(e) ? Di(e, t) : !0 : !0;
43
43
  }
44
44
  function nt(e) {
45
45
  const t = [];
@@ -56,15 +56,15 @@ function nt(e) {
56
56
  }
57
57
  function Ht(e, t, r = !1, n = !1) {
58
58
  let o = !e.hidden;
59
- o && e.visibleWhen && (o = je(e.visibleWhen, t));
59
+ o && e.visibleWhen && (o = Ve(e.visibleWhen, t));
60
60
  let i = e.disabled ?? !1;
61
- !i && e.disabledWhen && (i = je(e.disabledWhen, t)), r && (i = !0);
61
+ !i && e.disabledWhen && (i = Ve(e.disabledWhen, t)), r && (i = !0);
62
62
  let a = e.rules?.some((u) => u.type === "required") ?? !1;
63
- !a && e.requiredWhen && (a = je(e.requiredWhen, t));
63
+ !a && e.requiredWhen && (a = Ve(e.requiredWhen, t));
64
64
  const l = e.readonly ?? n;
65
65
  return { visible: o, disabled: i, required: a, readonly: l };
66
66
  }
67
- function Pu(e, t, r = !1, n = !1) {
67
+ function Iu(e, t, r = !1, n = !1) {
68
68
  const o = /* @__PURE__ */ new Map();
69
69
  for (const i of e.input.fields) {
70
70
  const a = Ht(
@@ -86,7 +86,7 @@ function ot(e, t) {
86
86
  "and" in e && Array.isArray(e.and) && e.and.forEach((r) => ot(r, t)), "or" in e && Array.isArray(e.or) && e.or.forEach((r) => ot(r, t)), "not" in e && ot(e.not, t);
87
87
  }
88
88
  }
89
- function Di(e) {
89
+ function ji(e) {
90
90
  const t = /* @__PURE__ */ new Set();
91
91
  for (const r of e.allFields) {
92
92
  if (r.dependencies)
@@ -98,7 +98,7 @@ function Di(e) {
98
98
  }
99
99
  return Array.from(t);
100
100
  }
101
- function ji(e) {
101
+ function Vi(e) {
102
102
  const t = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g, r = e.match(t) ?? [], n = /* @__PURE__ */ new Set([
103
103
  "true",
104
104
  "false",
@@ -119,7 +119,7 @@ function ji(e) {
119
119
  ]);
120
120
  return r.filter((o) => !n.has(o));
121
121
  }
122
- function Vi(e) {
122
+ function zi(e) {
123
123
  const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = {}, o = [], i = (a) => {
124
124
  for (const l of a) {
125
125
  const u = l.name;
@@ -146,7 +146,7 @@ function Vi(e) {
146
146
  for (const d of a.compute.dependencies)
147
147
  u.add(d);
148
148
  else
149
- for (const d of ji(a.compute.expr))
149
+ for (const d of Vi(a.compute.expr))
150
150
  u.add(d);
151
151
  for (const d of u)
152
152
  r.has(d) || r.set(d, /* @__PURE__ */ new Set()), r.get(d)?.add(l);
@@ -160,7 +160,7 @@ function Vi(e) {
160
160
  // 新增:扁平化的所有字段列表
161
161
  };
162
162
  }
163
- function Iu(e, t) {
163
+ function Mu(e, t) {
164
164
  const r = /* @__PURE__ */ new Set(), n = [e];
165
165
  for (; n.length > 0; ) {
166
166
  const o = n.shift();
@@ -172,21 +172,21 @@ function Iu(e, t) {
172
172
  }
173
173
  return r;
174
174
  }
175
- function Mu(e, t) {
175
+ function _u(e, t) {
176
176
  return {
177
177
  ...e.defaultValues,
178
178
  ...t
179
179
  };
180
180
  }
181
- function zi(e, t) {
182
- return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ? je(e.requiredWhen, t) : !1;
181
+ function Wi(e, t) {
182
+ return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ? Ve(e.requiredWhen, t) : !1;
183
183
  }
184
- function Wi(e) {
184
+ function Li(e) {
185
185
  const t = e.rules?.find((n) => n.type === "required"), r = e.ui?.label ?? String(e.name);
186
186
  return t?.message ?? `${r}不能为空`;
187
187
  }
188
188
  function wr(e, t) {
189
- const r = e.ui?.label ?? String(e.name), n = e.component, o = e.rules ?? [], i = zi(e, t), a = Wi(e), l = e.ui?.props?.multiple === !0;
189
+ const r = e.ui?.label ?? String(e.name), n = e.component, o = e.rules ?? [], i = Wi(e, t), a = Li(e), l = e.ui?.props?.multiple === !0;
190
190
  if ((n === "Autocomplete" || n === "Select") && l) {
191
191
  const h = [];
192
192
  i && h.push(
@@ -313,13 +313,13 @@ function wr(e, t) {
313
313
  const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, C = {};
314
314
  for (const S of h)
315
315
  if (S.component === "Group" && S.columns)
316
- for (const w of S.columns)
317
- C[w.name] = wr(w, t);
316
+ for (const T of S.columns)
317
+ C[T.name] = wr(T, t);
318
318
  else S.component !== "Group" && (C[S.name] = wr(S, t));
319
- const k = A.object(C), I = [];
320
- f > 0 && I.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && I.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
319
+ const k = A.object(C), M = [];
320
+ f > 0 && M.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && M.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
321
321
  const $ = A.array(k);
322
- return I.length > 0 ? A.pipe($, ...I) : $;
322
+ return M.length > 0 ? A.pipe($, ...M) : $;
323
323
  }
324
324
  if (n === "Upload") {
325
325
  const h = o.find((g) => g.type === "array"), f = h?.type === "array" ? h.minItems ?? (i ? 1 : 0) : i ? 1 : 0;
@@ -343,7 +343,7 @@ function wr(e, t) {
343
343
  A.check((h) => h != null && h !== "", a)
344
344
  ) : A.optional(A.unknown());
345
345
  }
346
- function Li(e, t) {
346
+ function Fi(e, t) {
347
347
  const r = {};
348
348
  for (const n of e.input.fields) {
349
349
  if (n.hidden || n.component === "Hidden") {
@@ -351,7 +351,7 @@ function Li(e, t) {
351
351
  continue;
352
352
  }
353
353
  if (n.component !== "Group") {
354
- if (n.visibleWhen && !je(n.visibleWhen, t)) {
354
+ if (n.visibleWhen && !Ve(n.visibleWhen, t)) {
355
355
  r[n.name] = A.optional(A.unknown());
356
356
  continue;
357
357
  }
@@ -360,9 +360,9 @@ function Li(e, t) {
360
360
  }
361
361
  return A.object(r);
362
362
  }
363
- function Fi(e) {
363
+ function qi(e) {
364
364
  return async (t, r, n) => {
365
- const o = Li(e, t), i = A.safeParse(o, t);
365
+ const o = Fi(e, t), i = A.safeParse(o, t);
366
366
  if (i.success)
367
367
  return { values: i.output, errors: {} };
368
368
  const a = {};
@@ -432,19 +432,19 @@ function Co(e, t, r, n, o = "round") {
432
432
  return;
433
433
  }
434
434
  }
435
- function qi(e) {
435
+ function Gi(e) {
436
436
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
437
437
  }
438
438
  var kt = { exports: {} }, At = { exports: {} }, te = {};
439
439
  var on;
440
- function Gi() {
440
+ function Ui() {
441
441
  if (on) return te;
442
442
  on = 1;
443
443
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
444
- function I(S) {
444
+ function M(S) {
445
445
  if (typeof S == "object" && S !== null) {
446
- var w = S.$$typeof;
447
- switch (w) {
446
+ var T = S.$$typeof;
447
+ switch (T) {
448
448
  case t:
449
449
  switch (S = S.type, S) {
450
450
  case u:
@@ -463,60 +463,60 @@ function Gi() {
463
463
  case a:
464
464
  return S;
465
465
  default:
466
- return w;
466
+ return T;
467
467
  }
468
468
  }
469
469
  case r:
470
- return w;
470
+ return T;
471
471
  }
472
472
  }
473
473
  }
474
474
  function $(S) {
475
- return I(S) === d;
475
+ return M(S) === d;
476
476
  }
477
477
  return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = a, te.Element = t, te.ForwardRef = m, te.Fragment = n, te.Lazy = h, te.Memo = b, te.Portal = r, te.Profiler = i, te.StrictMode = o, te.Suspense = y, te.isAsyncMode = function(S) {
478
- return $(S) || I(S) === u;
478
+ return $(S) || M(S) === u;
479
479
  }, te.isConcurrentMode = $, te.isContextConsumer = function(S) {
480
- return I(S) === l;
480
+ return M(S) === l;
481
481
  }, te.isContextProvider = function(S) {
482
- return I(S) === a;
482
+ return M(S) === a;
483
483
  }, te.isElement = function(S) {
484
484
  return typeof S == "object" && S !== null && S.$$typeof === t;
485
485
  }, te.isForwardRef = function(S) {
486
- return I(S) === m;
486
+ return M(S) === m;
487
487
  }, te.isFragment = function(S) {
488
- return I(S) === n;
488
+ return M(S) === n;
489
489
  }, te.isLazy = function(S) {
490
- return I(S) === h;
490
+ return M(S) === h;
491
491
  }, te.isMemo = function(S) {
492
- return I(S) === b;
492
+ return M(S) === b;
493
493
  }, te.isPortal = function(S) {
494
- return I(S) === r;
494
+ return M(S) === r;
495
495
  }, te.isProfiler = function(S) {
496
- return I(S) === i;
496
+ return M(S) === i;
497
497
  }, te.isStrictMode = function(S) {
498
- return I(S) === o;
498
+ return M(S) === o;
499
499
  }, te.isSuspense = function(S) {
500
- return I(S) === y;
500
+ return M(S) === y;
501
501
  }, te.isValidElementType = function(S) {
502
502
  return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof === C || S.$$typeof === k || S.$$typeof === f);
503
- }, te.typeOf = I, te;
503
+ }, te.typeOf = M, te;
504
504
  }
505
505
  var re = {};
506
506
  var sn;
507
- function Ui() {
507
+ function Yi() {
508
508
  return sn || (sn = 1, process.env.NODE_ENV !== "production" && (function() {
509
509
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
510
- function I(_) {
511
- return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
512
- _ === n || _ === d || _ === i || _ === o || _ === y || _ === p || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === b || _.$$typeof === a || _.$$typeof === l || _.$$typeof === m || _.$$typeof === g || _.$$typeof === C || _.$$typeof === k || _.$$typeof === f);
510
+ function M(N) {
511
+ return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
512
+ N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof === C || N.$$typeof === k || N.$$typeof === f);
513
513
  }
514
- function $(_) {
515
- if (typeof _ == "object" && _ !== null) {
516
- var ye = _.$$typeof;
514
+ function $(N) {
515
+ if (typeof N == "object" && N !== null) {
516
+ var ye = N.$$typeof;
517
517
  switch (ye) {
518
518
  case t:
519
- var _e = _.type;
519
+ var _e = N.type;
520
520
  switch (_e) {
521
521
  case u:
522
522
  case d:
@@ -543,55 +543,55 @@ function Ui() {
543
543
  }
544
544
  }
545
545
  }
546
- var S = u, w = d, j = l, G = a, V = t, W = m, P = n, c = h, T = b, x = r, N = i, M = o, D = y, F = !1;
547
- function U(_) {
548
- return F || (F = !0), O(_) || $(_) === u;
546
+ var S = u, T = d, D = l, G = a, z = t, F = m, I = n, c = h, w = b, x = r, P = i, _ = o, U = y, j = !1;
547
+ function W(N) {
548
+ return j || (j = !0), O(N) || $(N) === u;
549
549
  }
550
- function O(_) {
551
- return $(_) === d;
550
+ function O(N) {
551
+ return $(N) === d;
552
552
  }
553
- function R(_) {
554
- return $(_) === l;
553
+ function R(N) {
554
+ return $(N) === l;
555
555
  }
556
- function z(_) {
557
- return $(_) === a;
556
+ function V(N) {
557
+ return $(N) === a;
558
558
  }
559
- function L(_) {
560
- return typeof _ == "object" && _ !== null && _.$$typeof === t;
559
+ function L(N) {
560
+ return typeof N == "object" && N !== null && N.$$typeof === t;
561
561
  }
562
- function q(_) {
563
- return $(_) === m;
562
+ function q(N) {
563
+ return $(N) === m;
564
564
  }
565
- function X(_) {
566
- return $(_) === n;
565
+ function X(N) {
566
+ return $(N) === n;
567
567
  }
568
- function H(_) {
569
- return $(_) === h;
568
+ function H(N) {
569
+ return $(N) === h;
570
570
  }
571
- function K(_) {
572
- return $(_) === b;
571
+ function K(N) {
572
+ return $(N) === b;
573
573
  }
574
- function Q(_) {
575
- return $(_) === r;
574
+ function Q(N) {
575
+ return $(N) === r;
576
576
  }
577
- function ee(_) {
578
- return $(_) === i;
577
+ function ee(N) {
578
+ return $(N) === i;
579
579
  }
580
- function J(_) {
581
- return $(_) === o;
580
+ function J(N) {
581
+ return $(N) === o;
582
582
  }
583
- function me(_) {
584
- return $(_) === y;
583
+ function me(N) {
584
+ return $(N) === y;
585
585
  }
586
- re.AsyncMode = S, re.ConcurrentMode = w, re.ContextConsumer = j, re.ContextProvider = G, re.Element = V, re.ForwardRef = W, re.Fragment = P, re.Lazy = c, re.Memo = T, re.Portal = x, re.Profiler = N, re.StrictMode = M, re.Suspense = D, re.isAsyncMode = U, re.isConcurrentMode = O, re.isContextConsumer = R, re.isContextProvider = z, re.isElement = L, re.isForwardRef = q, re.isFragment = X, re.isLazy = H, re.isMemo = K, re.isPortal = Q, re.isProfiler = ee, re.isStrictMode = J, re.isSuspense = me, re.isValidElementType = I, re.typeOf = $;
586
+ re.AsyncMode = S, re.ConcurrentMode = T, re.ContextConsumer = D, re.ContextProvider = G, re.Element = z, re.ForwardRef = F, re.Fragment = I, re.Lazy = c, re.Memo = w, re.Portal = x, re.Profiler = P, re.StrictMode = _, re.Suspense = U, re.isAsyncMode = W, re.isConcurrentMode = O, re.isContextConsumer = R, re.isContextProvider = V, re.isElement = L, re.isForwardRef = q, re.isFragment = X, re.isLazy = H, re.isMemo = K, re.isPortal = Q, re.isProfiler = ee, re.isStrictMode = J, re.isSuspense = me, re.isValidElementType = M, re.typeOf = $;
587
587
  })()), re;
588
588
  }
589
589
  var an;
590
590
  function To() {
591
- return an || (an = 1, process.env.NODE_ENV === "production" ? At.exports = Gi() : At.exports = Ui()), At.exports;
591
+ return an || (an = 1, process.env.NODE_ENV === "production" ? At.exports = Ui() : At.exports = Yi()), At.exports;
592
592
  }
593
593
  var dr, ln;
594
- function Yi() {
594
+ function Hi() {
595
595
  if (ln) return dr;
596
596
  ln = 1;
597
597
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -648,7 +648,7 @@ function wo() {
648
648
  return un || (un = 1, mr = Function.call.bind(Object.prototype.hasOwnProperty)), mr;
649
649
  }
650
650
  var hr, fn;
651
- function Hi() {
651
+ function Ki() {
652
652
  if (fn) return hr;
653
653
  fn = 1;
654
654
  var e = function() {
@@ -696,10 +696,10 @@ function Hi() {
696
696
  }, hr = o, hr;
697
697
  }
698
698
  var gr, dn;
699
- function Ki() {
699
+ function Xi() {
700
700
  if (dn) return gr;
701
701
  dn = 1;
702
- var e = To(), t = Yi(), r = /* @__PURE__ */ qr(), n = /* @__PURE__ */ wo(), o = /* @__PURE__ */ Hi(), i = function() {
702
+ var e = To(), t = Hi(), r = /* @__PURE__ */ qr(), n = /* @__PURE__ */ wo(), o = /* @__PURE__ */ Ki(), i = function() {
703
703
  };
704
704
  process.env.NODE_ENV !== "production" && (i = function(l) {
705
705
  var u = "Warning: " + l;
@@ -728,16 +728,16 @@ function Ki() {
728
728
  string: C("string"),
729
729
  symbol: C("symbol"),
730
730
  any: k(),
731
- arrayOf: I,
731
+ arrayOf: M,
732
732
  element: $(),
733
733
  elementType: S(),
734
- instanceOf: w,
735
- node: W(),
734
+ instanceOf: T,
735
+ node: F(),
736
736
  objectOf: G,
737
- oneOf: j,
738
- oneOfType: V,
737
+ oneOf: D,
738
+ oneOfType: z,
739
739
  shape: c,
740
- exact: T
740
+ exact: w
741
741
  };
742
742
  function h(O, R) {
743
743
  return O === R ? O !== 0 || 1 / O === 1 / R : O !== O && R !== R;
@@ -748,20 +748,20 @@ function Ki() {
748
748
  f.prototype = Error.prototype;
749
749
  function g(O) {
750
750
  if (process.env.NODE_ENV !== "production")
751
- var R = {}, z = 0;
751
+ var R = {}, V = 0;
752
752
  function L(X, H, K, Q, ee, J, me) {
753
753
  if (Q = Q || p, J = J || K, me !== r) {
754
754
  if (u) {
755
- var _ = new Error(
755
+ var N = new Error(
756
756
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
757
757
  );
758
- throw _.name = "Invariant Violation", _;
758
+ throw N.name = "Invariant Violation", N;
759
759
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
760
760
  var ye = Q + ":" + K;
761
761
  !R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
762
- z < 3 && (i(
762
+ V < 3 && (i(
763
763
  "You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
764
- ), R[ye] = !0, z++);
764
+ ), R[ye] = !0, V++);
765
765
  }
766
766
  }
767
767
  return H[K] == null ? X ? H[K] === null ? new f("The " + ee + " `" + J + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new f("The " + ee + " `" + J + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : O(H, K, Q, ee, J);
@@ -770,10 +770,10 @@ function Ki() {
770
770
  return q.isRequired = L.bind(null, !0), q;
771
771
  }
772
772
  function C(O) {
773
- function R(z, L, q, X, H, K) {
774
- var Q = z[L], ee = M(Q);
773
+ function R(V, L, q, X, H, K) {
774
+ var Q = V[L], ee = _(Q);
775
775
  if (ee !== O) {
776
- var J = D(Q);
776
+ var J = U(Q);
777
777
  return new f(
778
778
  "Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" + q + "`, expected ") + ("`" + O + "`."),
779
779
  { expectedType: O }
@@ -786,13 +786,13 @@ function Ki() {
786
786
  function k() {
787
787
  return g(a);
788
788
  }
789
- function I(O) {
790
- function R(z, L, q, X, H) {
789
+ function M(O) {
790
+ function R(V, L, q, X, H) {
791
791
  if (typeof O != "function")
792
792
  return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
793
- var K = z[L];
793
+ var K = V[L];
794
794
  if (!Array.isArray(K)) {
795
- var Q = M(K);
795
+ var Q = _(K);
796
796
  return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an array."));
797
797
  }
798
798
  for (var ee = 0; ee < K.length; ee++) {
@@ -805,10 +805,10 @@ function Ki() {
805
805
  return g(R);
806
806
  }
807
807
  function $() {
808
- function O(R, z, L, q, X) {
809
- var H = R[z];
808
+ function O(R, V, L, q, X) {
809
+ var H = R[V];
810
810
  if (!l(H)) {
811
- var K = M(H);
811
+ var K = _(H);
812
812
  return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement."));
813
813
  }
814
814
  return null;
@@ -816,48 +816,48 @@ function Ki() {
816
816
  return g(O);
817
817
  }
818
818
  function S() {
819
- function O(R, z, L, q, X) {
820
- var H = R[z];
819
+ function O(R, V, L, q, X) {
820
+ var H = R[V];
821
821
  if (!e.isValidElementType(H)) {
822
- var K = M(H);
822
+ var K = _(H);
823
823
  return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement type."));
824
824
  }
825
825
  return null;
826
826
  }
827
827
  return g(O);
828
828
  }
829
- function w(O) {
830
- function R(z, L, q, X, H) {
831
- if (!(z[L] instanceof O)) {
832
- var K = O.name || p, Q = U(z[L]);
829
+ function T(O) {
830
+ function R(V, L, q, X, H) {
831
+ if (!(V[L] instanceof O)) {
832
+ var K = O.name || p, Q = W(V[L]);
833
833
  return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected ") + ("instance of `" + K + "`."));
834
834
  }
835
835
  return null;
836
836
  }
837
837
  return g(R);
838
838
  }
839
- function j(O) {
839
+ function D(O) {
840
840
  if (!Array.isArray(O))
841
841
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
842
842
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
843
843
  ) : i("Invalid argument supplied to oneOf, expected an array.")), a;
844
- function R(z, L, q, X, H) {
845
- for (var K = z[L], Q = 0; Q < O.length; Q++)
844
+ function R(V, L, q, X, H) {
845
+ for (var K = V[L], Q = 0; Q < O.length; Q++)
846
846
  if (h(K, O[Q]))
847
847
  return null;
848
- var ee = JSON.stringify(O, function(me, _) {
849
- var ye = D(_);
850
- return ye === "symbol" ? String(_) : _;
848
+ var ee = JSON.stringify(O, function(me, N) {
849
+ var ye = U(N);
850
+ return ye === "symbol" ? String(N) : N;
851
851
  });
852
852
  return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" + q + "`, expected one of " + ee + "."));
853
853
  }
854
854
  return g(R);
855
855
  }
856
856
  function G(O) {
857
- function R(z, L, q, X, H) {
857
+ function R(V, L, q, X, H) {
858
858
  if (typeof O != "function")
859
859
  return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
860
- var K = z[L], Q = M(K);
860
+ var K = V[L], Q = _(K);
861
861
  if (Q !== "object")
862
862
  return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an object."));
863
863
  for (var ee in K)
@@ -870,48 +870,48 @@ function Ki() {
870
870
  }
871
871
  return g(R);
872
872
  }
873
- function V(O) {
873
+ function z(O) {
874
874
  if (!Array.isArray(O))
875
875
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
876
876
  for (var R = 0; R < O.length; R++) {
877
- var z = O[R];
878
- if (typeof z != "function")
877
+ var V = O[R];
878
+ if (typeof V != "function")
879
879
  return i(
880
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(z) + " at index " + R + "."
880
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(V) + " at index " + R + "."
881
881
  ), a;
882
882
  }
883
883
  function L(q, X, H, K, Q) {
884
884
  for (var ee = [], J = 0; J < O.length; J++) {
885
- var me = O[J], _ = me(q, X, H, K, Q, r);
886
- if (_ == null)
885
+ var me = O[J], N = me(q, X, H, K, Q, r);
886
+ if (N == null)
887
887
  return null;
888
- _.data && n(_.data, "expectedType") && ee.push(_.data.expectedType);
888
+ N.data && n(N.data, "expectedType") && ee.push(N.data.expectedType);
889
889
  }
890
890
  var ye = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
891
891
  return new f("Invalid " + K + " `" + Q + "` supplied to " + ("`" + H + "`" + ye + "."));
892
892
  }
893
893
  return g(L);
894
894
  }
895
- function W() {
896
- function O(R, z, L, q, X) {
897
- return x(R[z]) ? null : new f("Invalid " + q + " `" + X + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
895
+ function F() {
896
+ function O(R, V, L, q, X) {
897
+ return x(R[V]) ? null : new f("Invalid " + q + " `" + X + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
898
898
  }
899
899
  return g(O);
900
900
  }
901
- function P(O, R, z, L, q) {
901
+ function I(O, R, V, L, q) {
902
902
  return new f(
903
- (O || "React class") + ": " + R + " type `" + z + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + q + "`."
903
+ (O || "React class") + ": " + R + " type `" + V + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + q + "`."
904
904
  );
905
905
  }
906
906
  function c(O) {
907
- function R(z, L, q, X, H) {
908
- var K = z[L], Q = M(K);
907
+ function R(V, L, q, X, H) {
908
+ var K = V[L], Q = _(K);
909
909
  if (Q !== "object")
910
910
  return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
911
911
  for (var ee in O) {
912
912
  var J = O[ee];
913
913
  if (typeof J != "function")
914
- return P(q, X, H, ee, D(J));
914
+ return I(q, X, H, ee, U(J));
915
915
  var me = J(K, ee, q, X, H + "." + ee, r);
916
916
  if (me)
917
917
  return me;
@@ -920,24 +920,24 @@ function Ki() {
920
920
  }
921
921
  return g(R);
922
922
  }
923
- function T(O) {
924
- function R(z, L, q, X, H) {
925
- var K = z[L], Q = M(K);
923
+ function w(O) {
924
+ function R(V, L, q, X, H) {
925
+ var K = V[L], Q = _(K);
926
926
  if (Q !== "object")
927
927
  return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
928
- var ee = t({}, z[L], O);
928
+ var ee = t({}, V[L], O);
929
929
  for (var J in ee) {
930
930
  var me = O[J];
931
931
  if (n(O, J) && typeof me != "function")
932
- return P(q, X, H, J, D(me));
932
+ return I(q, X, H, J, U(me));
933
933
  if (!me)
934
934
  return new f(
935
- "Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(z[L], null, " ") + `
935
+ "Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(V[L], null, " ") + `
936
936
  Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
937
937
  );
938
- var _ = me(K, J, q, X, H + "." + J, r);
939
- if (_)
940
- return _;
938
+ var N = me(K, J, q, X, H + "." + J, r);
939
+ if (N)
940
+ return N;
941
941
  }
942
942
  return null;
943
943
  }
@@ -958,13 +958,13 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
958
958
  return !0;
959
959
  var R = y(O);
960
960
  if (R) {
961
- var z = R.call(O), L;
961
+ var V = R.call(O), L;
962
962
  if (R !== O.entries) {
963
- for (; !(L = z.next()).done; )
963
+ for (; !(L = V.next()).done; )
964
964
  if (!x(L.value))
965
965
  return !1;
966
966
  } else
967
- for (; !(L = z.next()).done; ) {
967
+ for (; !(L = V.next()).done; ) {
968
968
  var q = L.value;
969
969
  if (q && !x(q[1]))
970
970
  return !1;
@@ -976,17 +976,17 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
976
976
  return !1;
977
977
  }
978
978
  }
979
- function N(O, R) {
979
+ function P(O, R) {
980
980
  return O === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
981
981
  }
982
- function M(O) {
982
+ function _(O) {
983
983
  var R = typeof O;
984
- return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : N(R, O) ? "symbol" : R;
984
+ return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : P(R, O) ? "symbol" : R;
985
985
  }
986
- function D(O) {
986
+ function U(O) {
987
987
  if (typeof O > "u" || O === null)
988
988
  return "" + O;
989
- var R = M(O);
989
+ var R = _(O);
990
990
  if (R === "object") {
991
991
  if (O instanceof Date)
992
992
  return "date";
@@ -995,8 +995,8 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
995
995
  }
996
996
  return R;
997
997
  }
998
- function F(O) {
999
- var R = D(O);
998
+ function j(O) {
999
+ var R = U(O);
1000
1000
  switch (R) {
1001
1001
  case "array":
1002
1002
  case "object":
@@ -1009,14 +1009,14 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
1009
1009
  return R;
1010
1010
  }
1011
1011
  }
1012
- function U(O) {
1012
+ function W(O) {
1013
1013
  return !O.constructor || !O.constructor.name ? p : O.constructor.name;
1014
1014
  }
1015
1015
  return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
1016
1016
  }, gr;
1017
1017
  }
1018
1018
  var yr, pn;
1019
- function Xi() {
1019
+ function Qi() {
1020
1020
  if (pn) return yr;
1021
1021
  pn = 1;
1022
1022
  var e = /* @__PURE__ */ qr();
@@ -1064,17 +1064,17 @@ function Xi() {
1064
1064
  }, yr;
1065
1065
  }
1066
1066
  var mn;
1067
- function Qi() {
1067
+ function Ji() {
1068
1068
  if (mn) return kt.exports;
1069
1069
  if (mn = 1, process.env.NODE_ENV !== "production") {
1070
1070
  var e = To(), t = !0;
1071
- kt.exports = /* @__PURE__ */ Ki()(e.isElement, t);
1071
+ kt.exports = /* @__PURE__ */ Xi()(e.isElement, t);
1072
1072
  } else
1073
- kt.exports = /* @__PURE__ */ Xi()();
1073
+ kt.exports = /* @__PURE__ */ Qi()();
1074
1074
  return kt.exports;
1075
1075
  }
1076
- var Ji = /* @__PURE__ */ Qi();
1077
- const s = /* @__PURE__ */ qi(Ji);
1076
+ var Zi = /* @__PURE__ */ Ji();
1077
+ const s = /* @__PURE__ */ Gi(Zi);
1078
1078
  function Eo(e) {
1079
1079
  var t, r, n = "";
1080
1080
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -1088,7 +1088,7 @@ function ue() {
1088
1088
  for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Eo(e)) && (n && (n += " "), n += t);
1089
1089
  return n;
1090
1090
  }
1091
- function Zi(e, t) {
1091
+ function es(e, t) {
1092
1092
  return /* @__PURE__ */ B.isValidElement(e) && t.indexOf(
1093
1093
  // For server components `muiName` is available in element.type._payload.value.muiName
1094
1094
  // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
@@ -1096,7 +1096,7 @@ function Zi(e, t) {
1096
1096
  e.type.muiName ?? e.type?._payload?.value?.muiName
1097
1097
  ) !== -1;
1098
1098
  }
1099
- const hn = (e) => e, es = () => {
1099
+ const hn = (e) => e, ts = () => {
1100
1100
  let e = hn;
1101
1101
  return {
1102
1102
  configure(t) {
@@ -1109,7 +1109,7 @@ const hn = (e) => e, es = () => {
1109
1109
  e = hn;
1110
1110
  }
1111
1111
  };
1112
- }, Oo = es(), ts = {
1112
+ }, Oo = ts(), rs = {
1113
1113
  active: "active",
1114
1114
  checked: "checked",
1115
1115
  completed: "completed",
@@ -1124,7 +1124,7 @@ const hn = (e) => e, es = () => {
1124
1124
  selected: "selected"
1125
1125
  };
1126
1126
  function xe(e, t, r = "Mui") {
1127
- const n = ts[t];
1127
+ const n = rs[t];
1128
1128
  return n ? `${r}-${n}` : `${Oo.generate(e)}-${t}`;
1129
1129
  }
1130
1130
  function Ae(e, t, r = void 0) {
@@ -1140,7 +1140,7 @@ function Ae(e, t, r = void 0) {
1140
1140
  }
1141
1141
  return n;
1142
1142
  }
1143
- function rs(e) {
1143
+ function ns(e) {
1144
1144
  for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
1145
1145
  r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
1146
1146
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -1159,7 +1159,7 @@ function rs(e) {
1159
1159
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
1160
1160
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
1161
1161
  }
1162
- var ns = {
1162
+ var os = {
1163
1163
  animationIterationCount: 1,
1164
1164
  aspectRatio: 1,
1165
1165
  borderImageOutset: 1,
@@ -1209,24 +1209,24 @@ var ns = {
1209
1209
  strokeOpacity: 1,
1210
1210
  strokeWidth: 1
1211
1211
  };
1212
- function os(e) {
1212
+ function is(e) {
1213
1213
  var t = /* @__PURE__ */ Object.create(null);
1214
1214
  return function(r) {
1215
1215
  return t[r] === void 0 && (t[r] = e(r)), t[r];
1216
1216
  };
1217
1217
  }
1218
- var is = /[A-Z]|^ms/g, ss = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
1218
+ var ss = /[A-Z]|^ms/g, as = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
1219
1219
  return t.charCodeAt(1) === 45;
1220
1220
  }, gn = function(t) {
1221
1221
  return t != null && typeof t != "boolean";
1222
- }, br = /* @__PURE__ */ os(function(e) {
1223
- return $o(e) ? e : e.replace(is, "-$&").toLowerCase();
1222
+ }, br = /* @__PURE__ */ is(function(e) {
1223
+ return $o(e) ? e : e.replace(ss, "-$&").toLowerCase();
1224
1224
  }), yn = function(t, r) {
1225
1225
  switch (t) {
1226
1226
  case "animation":
1227
1227
  case "animationName":
1228
1228
  if (typeof r == "string")
1229
- return r.replace(ss, function(n, o, i) {
1229
+ return r.replace(as, function(n, o, i) {
1230
1230
  return Be = {
1231
1231
  name: o,
1232
1232
  styles: i,
@@ -1234,7 +1234,7 @@ var is = /[A-Z]|^ms/g, ss = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
1234
1234
  }, o;
1235
1235
  });
1236
1236
  }
1237
- return ns[t] !== 1 && !$o(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1237
+ return os[t] !== 1 && !$o(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1238
1238
  };
1239
1239
  function Vt(e, t, r) {
1240
1240
  if (r == null)
@@ -1266,13 +1266,13 @@ function Vt(e, t, r) {
1266
1266
  var l = i.styles + ";";
1267
1267
  return l;
1268
1268
  }
1269
- return as(e, t, r);
1269
+ return ls(e, t, r);
1270
1270
  }
1271
1271
  }
1272
1272
  var u = r;
1273
1273
  return u;
1274
1274
  }
1275
- function as(e, t, r) {
1275
+ function ls(e, t, r) {
1276
1276
  var n = "";
1277
1277
  if (Array.isArray(r))
1278
1278
  for (var o = 0; o < r.length; o++)
@@ -1302,7 +1302,7 @@ function as(e, t, r) {
1302
1302
  return n;
1303
1303
  }
1304
1304
  var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, Be;
1305
- function ls(e, t, r) {
1305
+ function cs(e, t, r) {
1306
1306
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1307
1307
  return e[0];
1308
1308
  var n = !0, o = "";
@@ -1322,7 +1322,7 @@ function ls(e, t, r) {
1322
1322
  bn.lastIndex = 0;
1323
1323
  for (var d = "", m; (m = bn.exec(o)) !== null; )
1324
1324
  d += "-" + m[1];
1325
- var y = rs(o) + d;
1325
+ var y = ns(o) + d;
1326
1326
  return {
1327
1327
  name: y,
1328
1328
  styles: o,
@@ -1330,22 +1330,22 @@ function ls(e, t, r) {
1330
1330
  };
1331
1331
  }
1332
1332
  function Ro(e, t) {
1333
- const r = Ci(e, t);
1333
+ const r = Ti(e, t);
1334
1334
  return process.env.NODE_ENV !== "production" ? (...n) => {
1335
1335
  const o = typeof e == "string" ? `"${e}"` : "component";
1336
1336
  return n.length === 0 || n.some((i) => i === void 0), r(...n);
1337
1337
  } : r;
1338
1338
  }
1339
- function cs(e, t) {
1339
+ function us(e, t) {
1340
1340
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
1341
1341
  }
1342
1342
  const vn = [];
1343
1343
  function He(e) {
1344
- return vn[0] = e, ls(vn);
1344
+ return vn[0] = e, cs(vn);
1345
1345
  }
1346
1346
  var Pt = { exports: {} }, ie = {};
1347
1347
  var Sn;
1348
- function us() {
1348
+ function fs() {
1349
1349
  if (Sn) return ie;
1350
1350
  Sn = 1;
1351
1351
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
@@ -1410,7 +1410,7 @@ function us() {
1410
1410
  }
1411
1411
  var se = {};
1412
1412
  var xn;
1413
- function fs() {
1413
+ function ds() {
1414
1414
  return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
1415
1415
  function e(f) {
1416
1416
  if (typeof f == "object" && f !== null) {
@@ -1474,10 +1474,10 @@ function fs() {
1474
1474
  })()), se;
1475
1475
  }
1476
1476
  var Cn;
1477
- function ds() {
1478
- return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? Pt.exports = /* @__PURE__ */ us() : Pt.exports = /* @__PURE__ */ fs()), Pt.exports;
1477
+ function ps() {
1478
+ return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? Pt.exports = /* @__PURE__ */ fs() : Pt.exports = /* @__PURE__ */ ds()), Pt.exports;
1479
1479
  }
1480
- var zt = /* @__PURE__ */ ds();
1480
+ var zt = /* @__PURE__ */ ps();
1481
1481
  function Re(e) {
1482
1482
  if (typeof e != "object" || e === null)
1483
1483
  return !1;
@@ -1503,13 +1503,13 @@ function he(e, t, r = {
1503
1503
  Object.prototype.hasOwnProperty.call(e, o) && Re(e[o]) ? n[o] = he(e[o], t[o], r) : r.clone ? n[o] = Re(t[o]) ? ko(t[o]) : t[o] : n[o] = t[o];
1504
1504
  }), n;
1505
1505
  }
1506
- function Ve(e, ...t) {
1506
+ function ze(e, ...t) {
1507
1507
  const r = new URL(`https://mui.com/production-error/?code=${e}`);
1508
1508
  return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
1509
1509
  }
1510
1510
  function Z(e) {
1511
1511
  if (typeof e != "string")
1512
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ve(7));
1512
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ze(7));
1513
1513
  return e.charAt(0).toUpperCase() + e.slice(1);
1514
1514
  }
1515
1515
  function Ao(e, t = "") {
@@ -1519,7 +1519,7 @@ function Tn(e, t, r) {
1519
1519
  const n = Ao(t);
1520
1520
  return e.displayName || (n !== "" ? `${r}(${n})` : r);
1521
1521
  }
1522
- function ps(e) {
1522
+ function ms(e) {
1523
1523
  if (e != null) {
1524
1524
  if (typeof e == "string")
1525
1525
  return e;
@@ -1536,7 +1536,7 @@ function ps(e) {
1536
1536
  }
1537
1537
  }
1538
1538
  }
1539
- const ms = (e) => {
1539
+ const hs = (e) => {
1540
1540
  const t = Object.keys(e).map((r) => ({
1541
1541
  key: r,
1542
1542
  val: e[r]
@@ -1546,7 +1546,7 @@ const ms = (e) => {
1546
1546
  [n.key]: n.val
1547
1547
  }), {});
1548
1548
  };
1549
- function hs(e) {
1549
+ function gs(e) {
1550
1550
  const {
1551
1551
  // The breakpoint **start** at this value.
1552
1552
  // For instance with the first breakpoint xs: [xs, sm).
@@ -1565,7 +1565,7 @@ function hs(e) {
1565
1565
  unit: r = "px",
1566
1566
  step: n = 5,
1567
1567
  ...o
1568
- } = e, i = ms(t), a = Object.keys(i);
1568
+ } = e, i = hs(t), a = Object.keys(i);
1569
1569
  function l(p) {
1570
1570
  return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r})`;
1571
1571
  }
@@ -1609,21 +1609,21 @@ function wn(e, t) {
1609
1609
  ...t
1610
1610
  }) : t;
1611
1611
  }
1612
- function gs(e, t) {
1612
+ function ys(e, t) {
1613
1613
  return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
1614
1614
  }
1615
- function ys(e, t) {
1615
+ function bs(e, t) {
1616
1616
  const r = t.match(/^@([^/]+)?\/?(.+)?$/);
1617
1617
  if (!r) {
1618
1618
  if (process.env.NODE_ENV !== "production")
1619
1619
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
1620
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ve(18, `(${t})`));
1620
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : ze(18, `(${t})`));
1621
1621
  return null;
1622
1622
  }
1623
1623
  const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
1624
1624
  return e.containerQueries(o).up(i);
1625
1625
  }
1626
- function bs(e) {
1626
+ function vs(e) {
1627
1627
  const t = (i, a) => i.replace("@media", a ? `@container ${a}` : "@container");
1628
1628
  function r(i, a) {
1629
1629
  i.up = (...l) => t(e.breakpoints.up(...l), a), i.down = (...l) => t(e.breakpoints.down(...l), a), i.between = (...l) => t(e.breakpoints.between(...l), a), i.only = (...l) => t(e.breakpoints.only(...l), a), i.not = (...l) => {
@@ -1637,9 +1637,9 @@ function bs(e) {
1637
1637
  containerQueries: o
1638
1638
  };
1639
1639
  }
1640
- const vs = {
1640
+ const Ss = {
1641
1641
  borderRadius: 4
1642
- }, We = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.string, s.object, s.array]) : {};
1642
+ }, Le = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.string, s.object, s.array]) : {};
1643
1643
  function gt(e, t) {
1644
1644
  return t ? he(e, t, {
1645
1645
  clone: !1
@@ -1662,7 +1662,7 @@ const Kt = {
1662
1662
  // It can't be configured as it's used statically for propTypes.
1663
1663
  keys: ["xs", "sm", "md", "lg", "xl"],
1664
1664
  up: (e) => `@media (min-width:${Kt[e]}px)`
1665
- }, Ss = {
1665
+ }, xs = {
1666
1666
  containerQueries: (e) => ({
1667
1667
  up: (t) => {
1668
1668
  let r = typeof t == "number" ? t : Kt[t] || t;
@@ -1679,8 +1679,8 @@ function we(e, t, r) {
1679
1679
  if (typeof t == "object") {
1680
1680
  const i = n.breakpoints || En;
1681
1681
  return Object.keys(t).reduce((a, l) => {
1682
- if (gs(i.keys, l)) {
1683
- const u = ys(n.containerQueries ? n : Ss, l);
1682
+ if (ys(i.keys, l)) {
1683
+ const u = bs(n.containerQueries ? n : xs, l);
1684
1684
  u && (a[u] = r(t[l], l));
1685
1685
  } else if (Object.keys(i.values || Kt).includes(l)) {
1686
1686
  const u = i.up(l);
@@ -1706,11 +1706,11 @@ function Er(e, t) {
1706
1706
  return (!o || Object.keys(o).length === 0) && delete r[n], r;
1707
1707
  }, t);
1708
1708
  }
1709
- function xs(e, ...t) {
1709
+ function Cs(e, ...t) {
1710
1710
  const r = Po(e), n = [r, ...t].reduce((o, i) => he(o, i), {});
1711
1711
  return Er(Object.keys(r), n);
1712
1712
  }
1713
- function Cs(e, t) {
1713
+ function Ts(e, t) {
1714
1714
  if (typeof e != "object")
1715
1715
  return {};
1716
1716
  const r = {}, n = Object.keys(t);
@@ -1725,7 +1725,7 @@ function vr({
1725
1725
  breakpoints: t,
1726
1726
  base: r
1727
1727
  }) {
1728
- const n = r || Cs(e, t), o = Object.keys(n);
1728
+ const n = r || Ts(e, t), o = Object.keys(n);
1729
1729
  if (o.length === 0)
1730
1730
  return e;
1731
1731
  let i;
@@ -1763,17 +1763,17 @@ function de(e) {
1763
1763
  });
1764
1764
  };
1765
1765
  return i.propTypes = process.env.NODE_ENV !== "production" ? {
1766
- [t]: We
1766
+ [t]: Le
1767
1767
  } : {}, i.filterProps = [t], i;
1768
1768
  }
1769
- function Ts(e) {
1769
+ function ws(e) {
1770
1770
  const t = {};
1771
1771
  return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
1772
1772
  }
1773
- const ws = {
1773
+ const Es = {
1774
1774
  m: "margin",
1775
1775
  p: "padding"
1776
- }, Es = {
1776
+ }, Os = {
1777
1777
  t: "Top",
1778
1778
  r: "Right",
1779
1779
  b: "Bottom",
@@ -1785,15 +1785,15 @@ const ws = {
1785
1785
  marginY: "my",
1786
1786
  paddingX: "px",
1787
1787
  paddingY: "py"
1788
- }, Os = Ts((e) => {
1788
+ }, $s = ws((e) => {
1789
1789
  if (e.length > 2)
1790
1790
  if (On[e])
1791
1791
  e = On[e];
1792
1792
  else
1793
1793
  return [e];
1794
- const [t, r] = e.split(""), n = ws[t], o = Es[r] || "";
1794
+ const [t, r] = e.split(""), n = Es[t], o = Os[r] || "";
1795
1795
  return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
1796
- }), Qt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Jt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], $s = [...Qt, ...Jt];
1796
+ }), Qt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Jt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Rs = [...Qt, ...Jt];
1797
1797
  function xt(e, t, r, n) {
1798
1798
  const o = Xt(e, t, !0) ?? r;
1799
1799
  return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV, typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
@@ -1812,30 +1812,30 @@ function Zt(e) {
1812
1812
  function Xe(e, t) {
1813
1813
  return typeof t == "string" || t == null ? t : e(t);
1814
1814
  }
1815
- function Rs(e, t) {
1815
+ function ks(e, t) {
1816
1816
  return (r) => e.reduce((n, o) => (n[o] = Xe(t, r), n), {});
1817
1817
  }
1818
- function ks(e, t, r, n) {
1818
+ function As(e, t, r, n) {
1819
1819
  if (!t.includes(r))
1820
1820
  return null;
1821
- const o = Os(r), i = Rs(o, n), a = e[r];
1821
+ const o = $s(r), i = ks(o, n), a = e[r];
1822
1822
  return we(e, a, i);
1823
1823
  }
1824
1824
  function Io(e, t) {
1825
1825
  const r = Zt(e.theme);
1826
- return Object.keys(e).map((n) => ks(e, t, n, r)).reduce(gt, {});
1826
+ return Object.keys(e).map((n) => As(e, t, n, r)).reduce(gt, {});
1827
1827
  }
1828
1828
  function le(e) {
1829
1829
  return Io(e, Qt);
1830
1830
  }
1831
- le.propTypes = process.env.NODE_ENV !== "production" ? Qt.reduce((e, t) => (e[t] = We, e), {}) : {};
1831
+ le.propTypes = process.env.NODE_ENV !== "production" ? Qt.reduce((e, t) => (e[t] = Le, e), {}) : {};
1832
1832
  le.filterProps = Qt;
1833
1833
  function ce(e) {
1834
1834
  return Io(e, Jt);
1835
1835
  }
1836
- ce.propTypes = process.env.NODE_ENV !== "production" ? Jt.reduce((e, t) => (e[t] = We, e), {}) : {};
1836
+ ce.propTypes = process.env.NODE_ENV !== "production" ? Jt.reduce((e, t) => (e[t] = Le, e), {}) : {};
1837
1837
  ce.filterProps = Jt;
1838
- process.env.NODE_ENV !== "production" && $s.reduce((e, t) => (e[t] = We, e), {});
1838
+ process.env.NODE_ENV !== "production" && Rs.reduce((e, t) => (e[t] = Le, e), {});
1839
1839
  function Mo(e = 8, t = Zt({
1840
1840
  spacing: e
1841
1841
  })) {
@@ -1863,7 +1863,7 @@ function Ce(e, t) {
1863
1863
  transform: t
1864
1864
  });
1865
1865
  }
1866
- const As = Ce("border", ve), Ps = Ce("borderTop", ve), Is = Ce("borderRight", ve), Ms = Ce("borderBottom", ve), _s = Ce("borderLeft", ve), Ns = Ce("borderColor"), Bs = Ce("borderTopColor"), Ds = Ce("borderRightColor"), js = Ce("borderBottomColor"), Vs = Ce("borderLeftColor"), zs = Ce("outline", ve), Ws = Ce("outlineColor"), tr = (e) => {
1866
+ const Ps = Ce("border", ve), Is = Ce("borderTop", ve), Ms = Ce("borderRight", ve), _s = Ce("borderBottom", ve), Ns = Ce("borderLeft", ve), Bs = Ce("borderColor"), Ds = Ce("borderTopColor"), js = Ce("borderRightColor"), Vs = Ce("borderBottomColor"), zs = Ce("borderLeftColor"), Ws = Ce("outline", ve), Ls = Ce("outlineColor"), tr = (e) => {
1867
1867
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1868
1868
  const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1869
1869
  borderRadius: Xe(t, n)
@@ -1873,10 +1873,10 @@ const As = Ce("border", ve), Ps = Ce("borderTop", ve), Is = Ce("borderRight", ve
1873
1873
  return null;
1874
1874
  };
1875
1875
  tr.propTypes = process.env.NODE_ENV !== "production" ? {
1876
- borderRadius: We
1876
+ borderRadius: Le
1877
1877
  } : {};
1878
1878
  tr.filterProps = ["borderRadius"];
1879
- er(As, Ps, Is, Ms, _s, Ns, Bs, Ds, js, Vs, tr, zs, Ws);
1879
+ er(Ps, Is, Ms, _s, Ns, Bs, Ds, js, Vs, zs, tr, Ws, Ls);
1880
1880
  const rr = (e) => {
1881
1881
  if (e.gap !== void 0 && e.gap !== null) {
1882
1882
  const t = xt(e.theme, "spacing", 8, "gap"), r = (n) => ({
@@ -1887,7 +1887,7 @@ const rr = (e) => {
1887
1887
  return null;
1888
1888
  };
1889
1889
  rr.propTypes = process.env.NODE_ENV !== "production" ? {
1890
- gap: We
1890
+ gap: Le
1891
1891
  } : {};
1892
1892
  rr.filterProps = ["gap"];
1893
1893
  const nr = (e) => {
@@ -1900,7 +1900,7 @@ const nr = (e) => {
1900
1900
  return null;
1901
1901
  };
1902
1902
  nr.propTypes = process.env.NODE_ENV !== "production" ? {
1903
- columnGap: We
1903
+ columnGap: Le
1904
1904
  } : {};
1905
1905
  nr.filterProps = ["columnGap"];
1906
1906
  const or = (e) => {
@@ -1913,51 +1913,51 @@ const or = (e) => {
1913
1913
  return null;
1914
1914
  };
1915
1915
  or.propTypes = process.env.NODE_ENV !== "production" ? {
1916
- rowGap: We
1916
+ rowGap: Le
1917
1917
  } : {};
1918
1918
  or.filterProps = ["rowGap"];
1919
- const Ls = de({
1919
+ const Fs = de({
1920
1920
  prop: "gridColumn"
1921
- }), Fs = de({
1922
- prop: "gridRow"
1923
1921
  }), qs = de({
1924
- prop: "gridAutoFlow"
1922
+ prop: "gridRow"
1925
1923
  }), Gs = de({
1926
- prop: "gridAutoColumns"
1924
+ prop: "gridAutoFlow"
1927
1925
  }), Us = de({
1928
- prop: "gridAutoRows"
1926
+ prop: "gridAutoColumns"
1929
1927
  }), Ys = de({
1930
- prop: "gridTemplateColumns"
1928
+ prop: "gridAutoRows"
1931
1929
  }), Hs = de({
1932
- prop: "gridTemplateRows"
1930
+ prop: "gridTemplateColumns"
1933
1931
  }), Ks = de({
1934
- prop: "gridTemplateAreas"
1932
+ prop: "gridTemplateRows"
1935
1933
  }), Xs = de({
1934
+ prop: "gridTemplateAreas"
1935
+ }), Qs = de({
1936
1936
  prop: "gridArea"
1937
1937
  });
1938
- er(rr, nr, or, Ls, Fs, qs, Gs, Us, Ys, Hs, Ks, Xs);
1938
+ er(rr, nr, or, Fs, qs, Gs, Us, Ys, Hs, Ks, Xs, Qs);
1939
1939
  function it(e, t) {
1940
1940
  return t === "grey" ? t : e;
1941
1941
  }
1942
- const Qs = de({
1942
+ const Js = de({
1943
1943
  prop: "color",
1944
1944
  themeKey: "palette",
1945
1945
  transform: it
1946
- }), Js = de({
1946
+ }), Zs = de({
1947
1947
  prop: "bgcolor",
1948
1948
  cssProperty: "backgroundColor",
1949
1949
  themeKey: "palette",
1950
1950
  transform: it
1951
- }), Zs = de({
1951
+ }), ea = de({
1952
1952
  prop: "backgroundColor",
1953
1953
  themeKey: "palette",
1954
1954
  transform: it
1955
1955
  });
1956
- er(Qs, Js, Zs);
1956
+ er(Js, Zs, ea);
1957
1957
  function ge(e) {
1958
1958
  return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1959
1959
  }
1960
- const ea = de({
1960
+ const ta = de({
1961
1961
  prop: "width",
1962
1962
  transform: ge
1963
1963
  }), Gr = (e) => {
@@ -1977,16 +1977,16 @@ const ea = de({
1977
1977
  return null;
1978
1978
  };
1979
1979
  Gr.filterProps = ["maxWidth"];
1980
- const ta = de({
1980
+ const ra = de({
1981
1981
  prop: "minWidth",
1982
1982
  transform: ge
1983
- }), ra = de({
1983
+ }), na = de({
1984
1984
  prop: "height",
1985
1985
  transform: ge
1986
- }), na = de({
1986
+ }), oa = de({
1987
1987
  prop: "maxHeight",
1988
1988
  transform: ge
1989
- }), oa = de({
1989
+ }), ia = de({
1990
1990
  prop: "minHeight",
1991
1991
  transform: ge
1992
1992
  });
@@ -2000,10 +2000,10 @@ de({
2000
2000
  cssProperty: "height",
2001
2001
  transform: ge
2002
2002
  });
2003
- const ia = de({
2003
+ const sa = de({
2004
2004
  prop: "boxSizing"
2005
2005
  });
2006
- er(ea, Gr, ta, ra, na, oa, ia);
2006
+ er(ta, Gr, ra, na, oa, ia, sa);
2007
2007
  const Ct = {
2008
2008
  // borders
2009
2009
  border: {
@@ -2292,14 +2292,14 @@ const Ct = {
2292
2292
  themeKey: "typography"
2293
2293
  }
2294
2294
  };
2295
- function sa(...e) {
2295
+ function aa(...e) {
2296
2296
  const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
2297
2297
  return e.every((n) => r.size === Object.keys(n).length);
2298
2298
  }
2299
- function aa(e, t) {
2299
+ function la(e, t) {
2300
2300
  return typeof e == "function" ? e(t) : e;
2301
2301
  }
2302
- function la() {
2302
+ function ca() {
2303
2303
  function e(r, n, o, i) {
2304
2304
  const a = {
2305
2305
  [r]: n,
@@ -2349,7 +2349,7 @@ function la() {
2349
2349
  const m = Po(o.breakpoints), y = Object.keys(m);
2350
2350
  let p = m;
2351
2351
  return Object.keys(d).forEach((b) => {
2352
- const h = aa(d[b], o);
2352
+ const h = la(d[b], o);
2353
2353
  if (h != null)
2354
2354
  if (typeof h == "object")
2355
2355
  if (a[b])
@@ -2360,7 +2360,7 @@ function la() {
2360
2360
  }, h, (g) => ({
2361
2361
  [b]: g
2362
2362
  }));
2363
- sa(f, h) ? p[b] = t({
2363
+ aa(f, h) ? p[b] = t({
2364
2364
  sx: h,
2365
2365
  theme: o,
2366
2366
  nested: !0
@@ -2376,9 +2376,9 @@ function la() {
2376
2376
  }
2377
2377
  return t;
2378
2378
  }
2379
- const Qe = la();
2379
+ const Qe = ca();
2380
2380
  Qe.filterProps = ["sx"];
2381
- function ca(e, t) {
2381
+ function ua(e, t) {
2382
2382
  const r = this;
2383
2383
  if (r.vars) {
2384
2384
  if (!r.colorSchemes?.[e] || typeof r.getColorSchemeSelector != "function")
@@ -2397,7 +2397,7 @@ function Tt(e = {}, ...t) {
2397
2397
  spacing: o,
2398
2398
  shape: i = {},
2399
2399
  ...a
2400
- } = e, l = hs(r), u = Mo(o);
2400
+ } = e, l = gs(r), u = Mo(o);
2401
2401
  let d = he({
2402
2402
  breakpoints: l,
2403
2403
  direction: "ltr",
@@ -2409,11 +2409,11 @@ function Tt(e = {}, ...t) {
2409
2409
  },
2410
2410
  spacing: u,
2411
2411
  shape: {
2412
- ...vs,
2412
+ ...Ss,
2413
2413
  ...i
2414
2414
  }
2415
2415
  }, a);
2416
- return d = bs(d), d.applyStyles = ca, d = t.reduce((m, y) => he(m, y), d), d.unstable_sxConfig = {
2416
+ return d = vs(d), d.applyStyles = ua, d = t.reduce((m, y) => he(m, y), d), d.unstable_sxConfig = {
2417
2417
  ...Ct,
2418
2418
  ...a?.unstable_sxConfig
2419
2419
  }, d.unstable_sx = function(y) {
@@ -2423,7 +2423,7 @@ function Tt(e = {}, ...t) {
2423
2423
  });
2424
2424
  }, d;
2425
2425
  }
2426
- const ua = (e) => {
2426
+ const fa = (e) => {
2427
2427
  const t = {
2428
2428
  systemProps: {},
2429
2429
  otherProps: {}
@@ -2439,7 +2439,7 @@ function ir(e) {
2439
2439
  } = e, {
2440
2440
  systemProps: n,
2441
2441
  otherProps: o
2442
- } = ua(r);
2442
+ } = fa(r);
2443
2443
  let i;
2444
2444
  return Array.isArray(t) ? i = [n, ...t] : typeof t == "function" ? i = (...a) => {
2445
2445
  const l = t(...a);
@@ -2468,18 +2468,18 @@ function _o(e) {
2468
2468
  typeof o.style != "function" && (o.style = He(o.style));
2469
2469
  }), n;
2470
2470
  }
2471
- const fa = Tt();
2471
+ const da = Tt();
2472
2472
  function Sr(e) {
2473
2473
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
2474
2474
  }
2475
- function Ge(e, t) {
2475
+ function Ue(e, t) {
2476
2476
  return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
2477
2477
  }
2478
- function da(e) {
2478
+ function pa(e) {
2479
2479
  return e ? (t, r) => r[e] : null;
2480
2480
  }
2481
- function pa(e, t, r) {
2482
- e.theme = ga(e.theme) ? r : e.theme[t] || e.theme;
2481
+ function ma(e, t, r) {
2482
+ e.theme = ya(e.theme) ? r : e.theme[t] || e.theme;
2483
2483
  }
2484
2484
  function Bt(e, t, r) {
2485
2485
  const n = typeof t == "function" ? t(e) : t;
@@ -2488,17 +2488,17 @@ function Bt(e, t, r) {
2488
2488
  if (Array.isArray(n?.variants)) {
2489
2489
  let o;
2490
2490
  if (n.isProcessed)
2491
- o = r ? Ge(n.style, r) : n.style;
2491
+ o = r ? Ue(n.style, r) : n.style;
2492
2492
  else {
2493
2493
  const {
2494
2494
  variants: i,
2495
2495
  ...a
2496
2496
  } = n;
2497
- o = r ? Ge(He(a), r) : a;
2497
+ o = r ? Ue(He(a), r) : a;
2498
2498
  }
2499
2499
  return No(e, n.variants, [o], r);
2500
2500
  }
2501
- return n?.isProcessed ? r ? Ge(He(n.style), r) : n.style : r ? Ge(He(n), r) : n;
2501
+ return n?.isProcessed ? r ? Ue(He(n.style), r) : n.style : r ? Ue(He(n), r) : n;
2502
2502
  }
2503
2503
  function No(e, t, r = [], n = void 0) {
2504
2504
  let o;
@@ -2519,22 +2519,22 @@ function No(e, t, r = [], n = void 0) {
2519
2519
  ...e,
2520
2520
  ...e.ownerState,
2521
2521
  ownerState: e.ownerState
2522
- }, r.push(n ? Ge(He(a.style(o)), n) : a.style(o))) : r.push(n ? Ge(He(a.style), n) : a.style);
2522
+ }, r.push(n ? Ue(He(a.style(o)), n) : a.style(o))) : r.push(n ? Ue(He(a.style), n) : a.style);
2523
2523
  }
2524
2524
  return r;
2525
2525
  }
2526
2526
  function Bo(e = {}) {
2527
2527
  const {
2528
2528
  themeId: t,
2529
- defaultTheme: r = fa,
2529
+ defaultTheme: r = da,
2530
2530
  rootShouldForwardProp: n = Sr,
2531
2531
  slotShouldForwardProp: o = Sr
2532
2532
  } = e;
2533
2533
  function i(l) {
2534
- pa(l, t, r);
2534
+ ma(l, t, r);
2535
2535
  }
2536
2536
  return (l, u = {}) => {
2537
- cs(l, (w) => w.filter((j) => j !== Qe));
2537
+ us(l, (T) => T.filter((D) => D !== Qe));
2538
2538
  const {
2539
2539
  name: d,
2540
2540
  slot: m,
@@ -2542,7 +2542,7 @@ function Bo(e = {}) {
2542
2542
  skipSx: p,
2543
2543
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
2544
2544
  // For more details: https://github.com/mui/material-ui/pull/37908
2545
- overridesResolver: b = da(Do(m)),
2545
+ overridesResolver: b = pa(Do(m)),
2546
2546
  ...h
2547
2547
  } = u, f = d && d.startsWith("Mui") || m ? "components" : "custom", g = y !== void 0 ? y : (
2548
2548
  // TODO v6: remove `Root` in the next major release
@@ -2550,62 +2550,62 @@ function Bo(e = {}) {
2550
2550
  m && m !== "Root" && m !== "root" || !1
2551
2551
  ), C = p || !1;
2552
2552
  let k = Sr;
2553
- m === "Root" || m === "root" ? k = n : m ? k = o : ya(l) && (k = void 0);
2554
- const I = Ro(l, {
2553
+ m === "Root" || m === "root" ? k = n : m ? k = o : ba(l) && (k = void 0);
2554
+ const M = Ro(l, {
2555
2555
  shouldForwardProp: k,
2556
- label: ha(d, m),
2556
+ label: ga(d, m),
2557
2557
  ...h
2558
- }), $ = (w) => {
2559
- if (w.__emotion_real === w)
2560
- return w;
2561
- if (typeof w == "function")
2558
+ }), $ = (T) => {
2559
+ if (T.__emotion_real === T)
2560
+ return T;
2561
+ if (typeof T == "function")
2562
2562
  return function(G) {
2563
- return Bt(G, w, G.theme.modularCssLayers ? f : void 0);
2563
+ return Bt(G, T, G.theme.modularCssLayers ? f : void 0);
2564
2564
  };
2565
- if (Re(w)) {
2566
- const j = _o(w);
2567
- return function(V) {
2568
- return j.variants ? Bt(V, j, V.theme.modularCssLayers ? f : void 0) : V.theme.modularCssLayers ? Ge(j.style, f) : j.style;
2565
+ if (Re(T)) {
2566
+ const D = _o(T);
2567
+ return function(z) {
2568
+ return D.variants ? Bt(z, D, z.theme.modularCssLayers ? f : void 0) : z.theme.modularCssLayers ? Ue(D.style, f) : D.style;
2569
2569
  };
2570
2570
  }
2571
- return w;
2572
- }, S = (...w) => {
2573
- const j = [], G = w.map($), V = [];
2574
- if (j.push(i), d && b && V.push(function(T) {
2575
- const N = T.theme.components?.[d]?.styleOverrides;
2576
- if (!N)
2571
+ return T;
2572
+ }, S = (...T) => {
2573
+ const D = [], G = T.map($), z = [];
2574
+ if (D.push(i), d && b && z.push(function(w) {
2575
+ const P = w.theme.components?.[d]?.styleOverrides;
2576
+ if (!P)
2577
2577
  return null;
2578
- const M = {};
2579
- for (const D in N)
2580
- M[D] = Bt(T, N[D], T.theme.modularCssLayers ? "theme" : void 0);
2581
- return b(T, M);
2582
- }), d && !g && V.push(function(T) {
2583
- const N = T.theme?.components?.[d]?.variants;
2584
- return N ? No(T, N, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
2585
- }), C || V.push(Qe), Array.isArray(G[0])) {
2586
- const c = G.shift(), T = new Array(j.length).fill(""), x = new Array(V.length).fill("");
2587
- let N;
2588
- N = [...T, ...c, ...x], N.raw = [...T, ...c.raw, ...x], j.unshift(N);
2578
+ const _ = {};
2579
+ for (const U in P)
2580
+ _[U] = Bt(w, P[U], w.theme.modularCssLayers ? "theme" : void 0);
2581
+ return b(w, _);
2582
+ }), d && !g && z.push(function(w) {
2583
+ const P = w.theme?.components?.[d]?.variants;
2584
+ return P ? No(w, P, [], w.theme.modularCssLayers ? "theme" : void 0) : null;
2585
+ }), C || z.push(Qe), Array.isArray(G[0])) {
2586
+ const c = G.shift(), w = new Array(D.length).fill(""), x = new Array(z.length).fill("");
2587
+ let P;
2588
+ P = [...w, ...c, ...x], P.raw = [...w, ...c.raw, ...x], D.unshift(P);
2589
2589
  }
2590
- const W = [...j, ...G, ...V], P = I(...W);
2591
- return l.muiName && (P.muiName = l.muiName), process.env.NODE_ENV !== "production" && (P.displayName = ma(d, m, l)), P;
2590
+ const F = [...D, ...G, ...z], I = M(...F);
2591
+ return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ha(d, m, l)), I;
2592
2592
  };
2593
- return I.withConfig && (S.withConfig = I.withConfig), S;
2593
+ return M.withConfig && (S.withConfig = M.withConfig), S;
2594
2594
  };
2595
2595
  }
2596
- function ma(e, t, r) {
2597
- return e ? `${e}${Z(t || "")}` : `Styled(${ps(r)})`;
2596
+ function ha(e, t, r) {
2597
+ return e ? `${e}${Z(t || "")}` : `Styled(${ms(r)})`;
2598
2598
  }
2599
- function ha(e, t) {
2599
+ function ga(e, t) {
2600
2600
  let r;
2601
2601
  return process.env.NODE_ENV !== "production" && e && (r = `${e}-${Do(t || "Root")}`), r;
2602
2602
  }
2603
- function ga(e) {
2603
+ function ya(e) {
2604
2604
  for (const t in e)
2605
2605
  return !1;
2606
2606
  return !0;
2607
2607
  }
2608
- function ya(e) {
2608
+ function ba(e) {
2609
2609
  return typeof e == "string" && // 96 is one less than the char code
2610
2610
  // for "a" so this is checking that
2611
2611
  // it's a lowercase character
@@ -2650,7 +2650,7 @@ function yt(e, t, r = !1) {
2650
2650
  }
2651
2651
  return n;
2652
2652
  }
2653
- function ba(e) {
2653
+ function va(e) {
2654
2654
  const {
2655
2655
  theme: t,
2656
2656
  name: r,
@@ -2658,16 +2658,16 @@ function ba(e) {
2658
2658
  } = e;
2659
2659
  return !t || !t.components || !t.components[r] || !t.components[r].defaultProps ? n : yt(t.components[r].defaultProps, n);
2660
2660
  }
2661
- function va(e) {
2661
+ function Sa(e) {
2662
2662
  return Object.keys(e).length === 0;
2663
2663
  }
2664
- function Sa(e = null) {
2665
- const t = B.useContext(xi);
2666
- return !t || va(t) ? e : t;
2664
+ function xa(e = null) {
2665
+ const t = B.useContext(Ci);
2666
+ return !t || Sa(t) ? e : t;
2667
2667
  }
2668
- const xa = Tt();
2669
- function sr(e = xa) {
2670
- return Sa(e);
2668
+ const Ca = Tt();
2669
+ function sr(e = Ca) {
2670
+ return xa(e);
2671
2671
  }
2672
2672
  function Vo({
2673
2673
  props: e,
@@ -2676,19 +2676,19 @@ function Vo({
2676
2676
  themeId: n
2677
2677
  }) {
2678
2678
  let o = sr(r);
2679
- return n && (o = o[n] || o), ba({
2679
+ return n && (o = o[n] || o), va({
2680
2680
  theme: o,
2681
2681
  name: t,
2682
2682
  props: e
2683
2683
  });
2684
2684
  }
2685
- const Ca = (e, t) => e.filter((r) => t.includes(r)), ct = (e, t, r) => {
2685
+ const Ta = (e, t) => e.filter((r) => t.includes(r)), ct = (e, t, r) => {
2686
2686
  const n = e.keys[0];
2687
2687
  Array.isArray(t) ? t.forEach((o, i) => {
2688
2688
  r((a, l) => {
2689
2689
  i <= e.keys.length - 1 && (i === 0 ? Object.assign(a, l) : a[e.up(e.keys[i])] = l);
2690
2690
  }, o);
2691
- }) : t && typeof t == "object" ? (Object.keys(t).length > e.keys.length ? e.keys : Ca(e.keys, Object.keys(t))).forEach((i) => {
2691
+ }) : t && typeof t == "object" ? (Object.keys(t).length > e.keys.length ? e.keys : Ta(e.keys, Object.keys(t))).forEach((i) => {
2692
2692
  if (e.keys.includes(i)) {
2693
2693
  const a = t[i];
2694
2694
  a !== void 0 && r((l, u) => {
@@ -2705,7 +2705,7 @@ function Lt(e) {
2705
2705
  function ar(e) {
2706
2706
  return `--Grid-parent-${e}Spacing`;
2707
2707
  }
2708
- const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2708
+ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2709
2709
  theme: e,
2710
2710
  ownerState: t
2711
2711
  }) => {
@@ -2728,7 +2728,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2728
2728
  width: `calc(100% * ${o} / var(${st}) - (var(${st}) - ${o}) * (var(${ar("column")}) / var(${st})))`
2729
2729
  }), n(r, i);
2730
2730
  }), r;
2731
- }, wa = ({
2731
+ }, Ea = ({
2732
2732
  theme: e,
2733
2733
  ownerState: t
2734
2734
  }) => {
@@ -2741,7 +2741,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2741
2741
  marginLeft: o === 0 ? "0px" : `calc(100% * ${o} / var(${st}) + var(${ar("column")}) * ${o} / var(${st}))`
2742
2742
  }), n(r, i);
2743
2743
  }), r;
2744
- }, Ea = ({
2744
+ }, Oa = ({
2745
2745
  theme: e,
2746
2746
  ownerState: t
2747
2747
  }) => {
@@ -2759,7 +2759,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2759
2759
  }
2760
2760
  });
2761
2761
  }), r;
2762
- }, Oa = ({
2762
+ }, $a = ({
2763
2763
  theme: e,
2764
2764
  ownerState: t
2765
2765
  }) => {
@@ -2775,7 +2775,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2775
2775
  }
2776
2776
  });
2777
2777
  }), r;
2778
- }, $a = ({
2778
+ }, Ra = ({
2779
2779
  theme: e,
2780
2780
  ownerState: t
2781
2781
  }) => {
@@ -2791,7 +2791,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2791
2791
  }
2792
2792
  });
2793
2793
  }), r;
2794
- }, Ra = ({
2794
+ }, ka = ({
2795
2795
  theme: e,
2796
2796
  ownerState: t
2797
2797
  }) => {
@@ -2803,7 +2803,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2803
2803
  flexDirection: o
2804
2804
  });
2805
2805
  }), r;
2806
- }, ka = ({
2806
+ }, Aa = ({
2807
2807
  ownerState: e
2808
2808
  }) => ({
2809
2809
  minWidth: 0,
@@ -2816,12 +2816,12 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2816
2816
  },
2817
2817
  gap: `var(${Lt("row")}) var(${Lt("column")})`
2818
2818
  }
2819
- }), Aa = (e) => {
2819
+ }), Pa = (e) => {
2820
2820
  const t = [];
2821
2821
  return Object.entries(e).forEach(([r, n]) => {
2822
2822
  n !== !1 && n !== void 0 && t.push(`grid-${r}-${String(n)}`);
2823
2823
  }), t;
2824
- }, Pa = (e, t = "xs") => {
2824
+ }, Ia = (e, t = "xs") => {
2825
2825
  function r(n) {
2826
2826
  return n === void 0 ? !1 : typeof n == "string" && !Number.isNaN(Number(n)) || typeof n == "number" && n > 0;
2827
2827
  }
@@ -2834,9 +2834,9 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2834
2834
  }), n;
2835
2835
  }
2836
2836
  return [];
2837
- }, Ia = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, r]) => `direction-${t}-${r}`) : [`direction-xs-${String(e)}`];
2837
+ }, Ma = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, r]) => `direction-${t}-${r}`) : [`direction-xs-${String(e)}`];
2838
2838
  const Rn = [];
2839
- function Ma(e, t) {
2839
+ function _a(e, t) {
2840
2840
  const r = [];
2841
2841
  e.item !== void 0 && (delete e.item, r.push("item")), e.zeroMinWidth !== void 0 && (delete e.zeroMinWidth, r.push("zeroMinWidth")), t.keys.forEach((n) => {
2842
2842
  e[n] !== void 0 && (r.push(n), delete e[n]);
@@ -2844,22 +2844,22 @@ function Ma(e, t) {
2844
2844
  Rn.includes(n) || Rn.push(n);
2845
2845
  });
2846
2846
  }
2847
- const _a = Tt(), Na = jo("div", {
2847
+ const Na = Tt(), Ba = jo("div", {
2848
2848
  name: "MuiGrid",
2849
2849
  slot: "Root"
2850
2850
  });
2851
- function Ba(e) {
2851
+ function Da(e) {
2852
2852
  return Vo({
2853
2853
  props: e,
2854
2854
  name: "MuiGrid",
2855
- defaultTheme: _a
2855
+ defaultTheme: Na
2856
2856
  });
2857
2857
  }
2858
- function Da(e = {}) {
2858
+ function ja(e = {}) {
2859
2859
  const {
2860
2860
  // This will allow adding custom styled fn (for example for custom sx style function)
2861
- createStyledComponent: t = Na,
2862
- useThemeProps: r = Ba,
2861
+ createStyledComponent: t = Ba,
2862
+ useThemeProps: r = Da,
2863
2863
  useTheme: n = sr,
2864
2864
  componentName: o = "MuiGrid"
2865
2865
  } = e, i = (d, m) => {
@@ -2870,7 +2870,7 @@ function Da(e = {}) {
2870
2870
  wrap: h,
2871
2871
  size: f
2872
2872
  } = d, g = {
2873
- root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ia(p), ...Aa(f), ...y ? Pa(b, m.breakpoints.keys[0]) : []]
2873
+ root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ma(p), ...Pa(f), ...y ? Ia(b, m.breakpoints.keys[0]) : []]
2874
2874
  };
2875
2875
  return Ae(g, (C) => xe(o, C), {});
2876
2876
  };
@@ -2883,45 +2883,45 @@ function Da(e = {}) {
2883
2883
  h != null && y(h) && (p[b] = h);
2884
2884
  }) : p[m.keys[0]] = d), p;
2885
2885
  }
2886
- const l = t(Ea, $a, Oa, Ta, Ra, ka, wa), u = /* @__PURE__ */ B.forwardRef(function(m, y) {
2886
+ const l = t(Oa, Ra, $a, wa, ka, Aa, Ea), u = /* @__PURE__ */ B.forwardRef(function(m, y) {
2887
2887
  const p = n(), b = r(m), h = ir(b);
2888
- Ma(h, p.breakpoints);
2888
+ _a(h, p.breakpoints);
2889
2889
  const {
2890
2890
  className: f,
2891
2891
  children: g,
2892
2892
  columns: C = 12,
2893
2893
  container: k = !1,
2894
- component: I = "div",
2894
+ component: M = "div",
2895
2895
  direction: $ = "row",
2896
2896
  wrap: S = "wrap",
2897
- size: w = {},
2898
- offset: j = {},
2897
+ size: T = {},
2898
+ offset: D = {},
2899
2899
  spacing: G = 0,
2900
- rowSpacing: V = G,
2901
- columnSpacing: W = G,
2902
- unstable_level: P = 0,
2900
+ rowSpacing: z = G,
2901
+ columnSpacing: F = G,
2902
+ unstable_level: I = 0,
2903
2903
  ...c
2904
- } = h, T = a(w, p.breakpoints, (R) => R !== !1), x = a(j, p.breakpoints), N = m.columns ?? (P ? void 0 : C), M = m.spacing ?? (P ? void 0 : G), D = m.rowSpacing ?? m.spacing ?? (P ? void 0 : V), F = m.columnSpacing ?? m.spacing ?? (P ? void 0 : W), U = {
2904
+ } = h, w = a(T, p.breakpoints, (R) => R !== !1), x = a(D, p.breakpoints), P = m.columns ?? (I ? void 0 : C), _ = m.spacing ?? (I ? void 0 : G), U = m.rowSpacing ?? m.spacing ?? (I ? void 0 : z), j = m.columnSpacing ?? m.spacing ?? (I ? void 0 : F), W = {
2905
2905
  ...h,
2906
- level: P,
2907
- columns: N,
2906
+ level: I,
2907
+ columns: P,
2908
2908
  container: k,
2909
2909
  direction: $,
2910
2910
  wrap: S,
2911
- spacing: M,
2912
- rowSpacing: D,
2913
- columnSpacing: F,
2914
- size: T,
2911
+ spacing: _,
2912
+ rowSpacing: U,
2913
+ columnSpacing: j,
2914
+ size: w,
2915
2915
  offset: x
2916
- }, O = i(U, p);
2916
+ }, O = i(W, p);
2917
2917
  return /* @__PURE__ */ E(l, {
2918
2918
  ref: y,
2919
- as: I,
2920
- ownerState: U,
2919
+ as: M,
2920
+ ownerState: W,
2921
2921
  className: ue(O.root, f),
2922
2922
  ...c,
2923
- children: B.Children.map(g, (R) => /* @__PURE__ */ B.isValidElement(R) && Zi(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ B.cloneElement(R, {
2924
- unstable_level: R.props?.unstable_level ?? P + 1
2923
+ children: B.Children.map(g, (R) => /* @__PURE__ */ B.isValidElement(R) && es(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ B.cloneElement(R, {
2924
+ unstable_level: R.props?.unstable_level ?? I + 1
2925
2925
  }) : R)
2926
2926
  });
2927
2927
  });
@@ -2947,7 +2947,7 @@ function Pe(e, t, r = "Mui") {
2947
2947
  n[o] = xe(e, o, r);
2948
2948
  }), n;
2949
2949
  }
2950
- function ja(e, t) {
2950
+ function Va(e, t) {
2951
2951
  if (process.env.NODE_ENV === "production")
2952
2952
  return () => () => null;
2953
2953
  const r = t ? {
@@ -2964,7 +2964,7 @@ function ja(e, t) {
2964
2964
  };
2965
2965
  }
2966
2966
  const Ur = "$$material";
2967
- function Va(e = {}) {
2967
+ function za(e = {}) {
2968
2968
  const {
2969
2969
  themeId: t,
2970
2970
  defaultTheme: r,
@@ -2988,33 +2988,33 @@ function Va(e = {}) {
2988
2988
  });
2989
2989
  });
2990
2990
  }
2991
- const za = typeof window < "u" ? B.useLayoutEffect : B.useEffect;
2992
- function Wa(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2991
+ const Wa = typeof window < "u" ? B.useLayoutEffect : B.useEffect;
2992
+ function La(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2993
2993
  return Math.max(t, Math.min(e, r));
2994
2994
  }
2995
2995
  function Yr(e, t = 0, r = 1) {
2996
- return process.env.NODE_ENV !== "production" && (e < t || e > r), Wa(e, t, r);
2996
+ return process.env.NODE_ENV !== "production" && (e < t || e > r), La(e, t, r);
2997
2997
  }
2998
- function La(e) {
2998
+ function Fa(e) {
2999
2999
  e = e.slice(1);
3000
3000
  const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
3001
3001
  let r = e.match(t);
3002
3002
  return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && (e.length, e.trim().length), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
3003
3003
  }
3004
- function ze(e) {
3004
+ function We(e) {
3005
3005
  if (e.type)
3006
3006
  return e;
3007
3007
  if (e.charAt(0) === "#")
3008
- return ze(La(e));
3008
+ return We(Fa(e));
3009
3009
  const t = e.indexOf("("), r = e.substring(0, t);
3010
3010
  if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
3011
3011
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
3012
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ve(9, e));
3012
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ze(9, e));
3013
3013
  let n = e.substring(t + 1, e.length - 1), o;
3014
3014
  if (r === "color") {
3015
3015
  if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
3016
3016
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
3017
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ve(10, o));
3017
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ze(10, o));
3018
3018
  } else
3019
3019
  n = n.split(",");
3020
3020
  return n = n.map((i) => parseFloat(i)), {
@@ -3023,12 +3023,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
3023
3023
  colorSpace: o
3024
3024
  };
3025
3025
  }
3026
- const Fa = (e) => {
3027
- const t = ze(e);
3026
+ const qa = (e) => {
3027
+ const t = We(e);
3028
3028
  return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
3029
3029
  }, mt = (e, t) => {
3030
3030
  try {
3031
- return Fa(e);
3031
+ return qa(e);
3032
3032
  } catch {
3033
3033
  return t && process.env.NODE_ENV, e;
3034
3034
  }
@@ -3044,7 +3044,7 @@ function lr(e) {
3044
3044
  return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
3045
3045
  }
3046
3046
  function zo(e) {
3047
- e = ze(e);
3047
+ e = We(e);
3048
3048
  const {
3049
3049
  values: t
3050
3050
  } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), a = (d, m = (d + r / 30) % 12) => o - i * Math.max(Math.min(m - 3, 9 - m, 1), -1);
@@ -3056,8 +3056,8 @@ function zo(e) {
3056
3056
  });
3057
3057
  }
3058
3058
  function Or(e) {
3059
- e = ze(e);
3060
- let t = e.type === "hsl" || e.type === "hsla" ? ze(zo(e)).values : e.values;
3059
+ e = We(e);
3060
+ let t = e.type === "hsl" || e.type === "hsla" ? We(zo(e)).values : e.values;
3061
3061
  return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
3062
3062
  }
3063
3063
  function kn(e, t) {
@@ -3065,9 +3065,9 @@ function kn(e, t) {
3065
3065
  return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
3066
3066
  }
3067
3067
  function Ft(e, t) {
3068
- return e = ze(e), t = Yr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, lr(e);
3068
+ return e = We(e), t = Yr(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, lr(e);
3069
3069
  }
3070
- function Le(e, t, r) {
3070
+ function Fe(e, t, r) {
3071
3071
  try {
3072
3072
  return Ft(e, t);
3073
3073
  } catch {
@@ -3075,7 +3075,7 @@ function Le(e, t, r) {
3075
3075
  }
3076
3076
  }
3077
3077
  function cr(e, t) {
3078
- if (e = ze(e), t = Yr(t), e.type.includes("hsl"))
3078
+ if (e = We(e), t = Yr(t), e.type.includes("hsl"))
3079
3079
  e.values[2] *= 1 - t;
3080
3080
  else if (e.type.includes("rgb") || e.type.includes("color"))
3081
3081
  for (let r = 0; r < 3; r += 1)
@@ -3090,7 +3090,7 @@ function ne(e, t, r) {
3090
3090
  }
3091
3091
  }
3092
3092
  function ur(e, t) {
3093
- if (e = ze(e), t = Yr(t), e.type.includes("hsl"))
3093
+ if (e = We(e), t = Yr(t), e.type.includes("hsl"))
3094
3094
  e.values[2] += (100 - e.values[2]) * t;
3095
3095
  else if (e.type.includes("rgb"))
3096
3096
  for (let r = 0; r < 3; r += 1)
@@ -3107,19 +3107,19 @@ function oe(e, t, r) {
3107
3107
  return r && process.env.NODE_ENV, e;
3108
3108
  }
3109
3109
  }
3110
- function qa(e, t = 0.15) {
3110
+ function Ga(e, t = 0.15) {
3111
3111
  return Or(e) > 0.5 ? cr(e, t) : ur(e, t);
3112
3112
  }
3113
3113
  function It(e, t, r) {
3114
3114
  try {
3115
- return qa(e, t);
3115
+ return Ga(e, t);
3116
3116
  } catch {
3117
3117
  return e;
3118
3118
  }
3119
3119
  }
3120
- const Ga = /* @__PURE__ */ B.createContext(void 0);
3120
+ const Ua = /* @__PURE__ */ B.createContext(void 0);
3121
3121
  process.env.NODE_ENV !== "production" && (s.node, s.object);
3122
- function Ua(e) {
3122
+ function Ya(e) {
3123
3123
  const {
3124
3124
  theme: t,
3125
3125
  name: r,
@@ -3130,12 +3130,12 @@ function Ua(e) {
3130
3130
  const o = t.components[r];
3131
3131
  return o.defaultProps ? yt(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? yt(o, n, t.components.mergeClassNameAndStyle) : n;
3132
3132
  }
3133
- function Ya({
3133
+ function Ha({
3134
3134
  props: e,
3135
3135
  name: t
3136
3136
  }) {
3137
- const r = B.useContext(Ga);
3138
- return Ua({
3137
+ const r = B.useContext(Ua);
3138
+ return Ya({
3139
3139
  props: e,
3140
3140
  name: t,
3141
3141
  theme: {
@@ -3144,33 +3144,33 @@ function Ya({
3144
3144
  });
3145
3145
  }
3146
3146
  let An = 0;
3147
- function Ha(e) {
3147
+ function Ka(e) {
3148
3148
  const [t, r] = B.useState(e), n = e || t;
3149
3149
  return B.useEffect(() => {
3150
3150
  t == null && (An += 1, r(`mui-${An}`));
3151
3151
  }, [t]), n;
3152
3152
  }
3153
- const Ka = {
3153
+ const Xa = {
3154
3154
  ...B
3155
- }, Pn = Ka.useId;
3155
+ }, Pn = Xa.useId;
3156
3156
  function Wo(e) {
3157
3157
  if (Pn !== void 0) {
3158
3158
  const t = Pn();
3159
3159
  return e ?? t;
3160
3160
  }
3161
- return Ha(e);
3161
+ return Ka(e);
3162
3162
  }
3163
3163
  const In = {
3164
3164
  theme: void 0
3165
3165
  };
3166
- function Xa(e) {
3166
+ function Qa(e) {
3167
3167
  let t, r;
3168
3168
  return function(o) {
3169
3169
  let i = t;
3170
3170
  return (i === void 0 || o.theme !== r) && (In.theme = o.theme, i = _o(e(In)), t = i, r = o.theme), i;
3171
3171
  };
3172
3172
  }
3173
- function Qa(e = "") {
3173
+ function Ja(e = "") {
3174
3174
  function t(...n) {
3175
3175
  if (!n.length)
3176
3176
  return "";
@@ -3184,24 +3184,24 @@ const Mn = (e, t, r, n = []) => {
3184
3184
  t.forEach((i, a) => {
3185
3185
  a === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
3186
3186
  });
3187
- }, Ja = (e, t, r) => {
3187
+ }, Za = (e, t, r) => {
3188
3188
  function n(o, i = [], a = []) {
3189
3189
  Object.entries(o).forEach(([l, u]) => {
3190
3190
  (!r || r && !r([...i, l])) && u != null && (typeof u == "object" && Object.keys(u).length > 0 ? n(u, [...i, l], Array.isArray(u) ? [...a, l] : a) : t([...i, l], u, a));
3191
3191
  });
3192
3192
  }
3193
3193
  n(e);
3194
- }, Za = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
3194
+ }, el = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
3195
3195
  function xr(e, t) {
3196
3196
  const {
3197
3197
  prefix: r,
3198
3198
  shouldSkipGeneratingVar: n
3199
3199
  } = t || {}, o = {}, i = {}, a = {};
3200
- return Ja(
3200
+ return Za(
3201
3201
  e,
3202
3202
  (l, u, d) => {
3203
3203
  if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
3204
- const m = `--${r ? `${r}-` : ""}${l.join("-")}`, y = Za(l, u);
3204
+ const m = `--${r ? `${r}-` : ""}${l.join("-")}`, y = el(l, u);
3205
3205
  Object.assign(o, {
3206
3206
  [m]: y
3207
3207
  }), Mn(i, l, `var(${m})`, d), Mn(a, l, `var(${m}, ${y})`, d);
@@ -3215,7 +3215,7 @@ function xr(e, t) {
3215
3215
  varsWithDefaults: a
3216
3216
  };
3217
3217
  }
3218
- function el(e, t = {}) {
3218
+ function tl(e, t = {}) {
3219
3219
  const {
3220
3220
  getSelector: r = C,
3221
3221
  disableCssColorScheme: n,
@@ -3238,36 +3238,36 @@ function el(e, t = {}) {
3238
3238
  } = a;
3239
3239
  if (Object.entries(g || {}).forEach(([$, S]) => {
3240
3240
  const {
3241
- vars: w,
3242
- css: j,
3241
+ vars: T,
3242
+ css: D,
3243
3243
  varsWithDefaults: G
3244
3244
  } = xr(S, t);
3245
3245
  b = he(b, G), h[$] = {
3246
- css: j,
3247
- vars: w
3246
+ css: D,
3247
+ vars: T
3248
3248
  };
3249
3249
  }), f) {
3250
3250
  const {
3251
3251
  css: $,
3252
3252
  vars: S,
3253
- varsWithDefaults: w
3253
+ varsWithDefaults: T
3254
3254
  } = xr(f, t);
3255
- b = he(b, w), h[u] = {
3255
+ b = he(b, T), h[u] = {
3256
3256
  css: $,
3257
3257
  vars: S
3258
3258
  };
3259
3259
  }
3260
3260
  function C($, S) {
3261
- let w = o;
3262
- if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), $) {
3263
- if (w === "media")
3261
+ let T = o;
3262
+ if (o === "class" && (T = ".%s"), o === "data" && (T = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (T = `[${o}="%s"]`), $) {
3263
+ if (T === "media")
3264
3264
  return e.defaultColorScheme === $ ? ":root" : {
3265
3265
  [`@media (prefers-color-scheme: ${a[$]?.palette?.mode || $})`]: {
3266
3266
  ":root": S
3267
3267
  }
3268
3268
  };
3269
- if (w)
3270
- return e.defaultColorScheme === $ ? `:root, ${w.replace("%s", String($))}` : w.replace("%s", String($));
3269
+ if (T)
3270
+ return e.defaultColorScheme === $ ? `:root, ${T.replace("%s", String($))}` : T.replace("%s", String($));
3271
3271
  }
3272
3272
  return ":root";
3273
3273
  }
@@ -3285,43 +3285,43 @@ function el(e, t = {}) {
3285
3285
  },
3286
3286
  generateStyleSheets: () => {
3287
3287
  const $ = [], S = e.defaultColorScheme || "light";
3288
- function w(V, W) {
3289
- Object.keys(W).length && $.push(typeof V == "string" ? {
3290
- [V]: {
3291
- ...W
3288
+ function T(z, F) {
3289
+ Object.keys(F).length && $.push(typeof z == "string" ? {
3290
+ [z]: {
3291
+ ...F
3292
3292
  }
3293
- } : V);
3293
+ } : z);
3294
3294
  }
3295
- w(r(void 0, {
3295
+ T(r(void 0, {
3296
3296
  ...y
3297
3297
  }), y);
3298
3298
  const {
3299
- [S]: j,
3299
+ [S]: D,
3300
3300
  ...G
3301
3301
  } = h;
3302
- if (j) {
3302
+ if (D) {
3303
3303
  const {
3304
- css: V
3305
- } = j, W = a[S]?.palette?.mode, P = !n && W ? {
3306
- colorScheme: W,
3307
- ...V
3304
+ css: z
3305
+ } = D, F = a[S]?.palette?.mode, I = !n && F ? {
3306
+ colorScheme: F,
3307
+ ...z
3308
3308
  } : {
3309
- ...V
3309
+ ...z
3310
3310
  };
3311
- w(r(S, {
3312
- ...P
3313
- }), P);
3311
+ T(r(S, {
3312
+ ...I
3313
+ }), I);
3314
3314
  }
3315
- return Object.entries(G).forEach(([V, {
3316
- css: W
3315
+ return Object.entries(G).forEach(([z, {
3316
+ css: F
3317
3317
  }]) => {
3318
- const P = a[V]?.palette?.mode, c = !n && P ? {
3319
- colorScheme: P,
3320
- ...W
3318
+ const I = a[z]?.palette?.mode, c = !n && I ? {
3319
+ colorScheme: I,
3320
+ ...F
3321
3321
  } : {
3322
- ...W
3322
+ ...F
3323
3323
  };
3324
- w(r(V, {
3324
+ T(r(z, {
3325
3325
  ...c
3326
3326
  }), c);
3327
3327
  }), i && $.push({
@@ -3336,34 +3336,34 @@ function el(e, t = {}) {
3336
3336
  }
3337
3337
  };
3338
3338
  }
3339
- function tl(e) {
3339
+ function rl(e) {
3340
3340
  return function(r) {
3341
3341
  return e === "media" ? (process.env.NODE_ENV, `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
3342
3342
  };
3343
3343
  }
3344
- const rl = Tt(), nl = jo("div", {
3344
+ const nl = Tt(), ol = jo("div", {
3345
3345
  name: "MuiStack",
3346
3346
  slot: "Root"
3347
3347
  });
3348
- function ol(e) {
3348
+ function il(e) {
3349
3349
  return Vo({
3350
3350
  props: e,
3351
3351
  name: "MuiStack",
3352
- defaultTheme: rl
3352
+ defaultTheme: nl
3353
3353
  });
3354
3354
  }
3355
- function il(e, t) {
3355
+ function sl(e, t) {
3356
3356
  const r = B.Children.toArray(e).filter(Boolean);
3357
3357
  return r.reduce((n, o, i) => (n.push(o), i < r.length - 1 && n.push(/* @__PURE__ */ B.cloneElement(t, {
3358
3358
  key: `separator-${i}`
3359
3359
  })), n), []);
3360
3360
  }
3361
- const sl = (e) => ({
3361
+ const al = (e) => ({
3362
3362
  row: "Left",
3363
3363
  "row-reverse": "Right",
3364
3364
  column: "Top",
3365
3365
  "column-reverse": "Bottom"
3366
- })[e], al = ({
3366
+ })[e], ll = ({
3367
3367
  ownerState: e,
3368
3368
  theme: t
3369
3369
  }) => {
@@ -3403,21 +3403,21 @@ const sl = (e) => ({
3403
3403
  margin: 0
3404
3404
  },
3405
3405
  "& > :not(style) ~ :not(style)": {
3406
- [`margin${sl(d ? i[d] : e.direction)}`]: Xe(n, u)
3406
+ [`margin${al(d ? i[d] : e.direction)}`]: Xe(n, u)
3407
3407
  }
3408
3408
  }));
3409
3409
  }
3410
- return r = xs(t.breakpoints, r), r;
3410
+ return r = Cs(t.breakpoints, r), r;
3411
3411
  };
3412
- function ll(e = {}) {
3412
+ function cl(e = {}) {
3413
3413
  const {
3414
3414
  // This will allow adding custom styled fn (for example for custom sx style function)
3415
- createStyledComponent: t = nl,
3416
- useThemeProps: r = ol,
3415
+ createStyledComponent: t = ol,
3416
+ useThemeProps: r = il,
3417
3417
  componentName: n = "MuiStack"
3418
3418
  } = e, o = () => Ae({
3419
3419
  root: ["root"]
3420
- }, (u) => xe(n, u), {}), i = t(al), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
3420
+ }, (u) => xe(n, u), {}), i = t(ll), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
3421
3421
  const m = r(u), y = ir(m), {
3422
3422
  component: p = "div",
3423
3423
  direction: b = "column",
@@ -3426,7 +3426,7 @@ function ll(e = {}) {
3426
3426
  children: g,
3427
3427
  className: C,
3428
3428
  useFlexGap: k = !1,
3429
- ...I
3429
+ ...M
3430
3430
  } = y, $ = {
3431
3431
  direction: b,
3432
3432
  spacing: h,
@@ -3437,8 +3437,8 @@ function ll(e = {}) {
3437
3437
  ownerState: $,
3438
3438
  ref: d,
3439
3439
  className: ue(S.root, C),
3440
- ...I,
3441
- children: f ? il(g, f) : g
3440
+ ...M,
3441
+ children: f ? sl(g, f) : g
3442
3442
  });
3443
3443
  });
3444
3444
  return process.env.NODE_ENV !== "production" && (a.propTypes = {
@@ -3452,7 +3452,7 @@ function ll(e = {}) {
3452
3452
  const bt = {
3453
3453
  black: "#000",
3454
3454
  white: "#fff"
3455
- }, cl = {
3455
+ }, ul = {
3456
3456
  50: "#fafafa",
3457
3457
  100: "#f5f5f5",
3458
3458
  200: "#eeeeee",
@@ -3584,7 +3584,7 @@ function Nn(e, t, r, n, o) {
3584
3584
  const i = o.light || o, a = o.dark || o * 1.5;
3585
3585
  t[r] || (t.hasOwnProperty(n) ? t[r] = t[n] : r === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(i * 100).toFixed(0)}%)` : r === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(a * 100).toFixed(0)}%)`));
3586
3586
  }
3587
- function ul(e = "light") {
3587
+ function fl(e = "light") {
3588
3588
  return e === "dark" ? {
3589
3589
  main: et[200],
3590
3590
  light: et[50],
@@ -3595,7 +3595,7 @@ function ul(e = "light") {
3595
3595
  dark: et[800]
3596
3596
  };
3597
3597
  }
3598
- function fl(e = "light") {
3598
+ function dl(e = "light") {
3599
3599
  return e === "dark" ? {
3600
3600
  main: Je[200],
3601
3601
  light: Je[50],
@@ -3606,7 +3606,7 @@ function fl(e = "light") {
3606
3606
  dark: Je[700]
3607
3607
  };
3608
3608
  }
3609
- function dl(e = "light") {
3609
+ function pl(e = "light") {
3610
3610
  return e === "dark" ? {
3611
3611
  main: Ze[500],
3612
3612
  light: Ze[300],
@@ -3617,7 +3617,7 @@ function dl(e = "light") {
3617
3617
  dark: Ze[800]
3618
3618
  };
3619
3619
  }
3620
- function pl(e = "light") {
3620
+ function ml(e = "light") {
3621
3621
  return e === "dark" ? {
3622
3622
  main: tt[400],
3623
3623
  light: tt[300],
@@ -3628,7 +3628,7 @@ function pl(e = "light") {
3628
3628
  dark: tt[900]
3629
3629
  };
3630
3630
  }
3631
- function ml(e = "light") {
3631
+ function hl(e = "light") {
3632
3632
  return e === "dark" ? {
3633
3633
  main: rt[400],
3634
3634
  light: rt[300],
@@ -3639,7 +3639,7 @@ function ml(e = "light") {
3639
3639
  dark: rt[900]
3640
3640
  };
3641
3641
  }
3642
- function hl(e = "light") {
3642
+ function gl(e = "light") {
3643
3643
  return e === "dark" ? {
3644
3644
  main: ft[400],
3645
3645
  light: ft[300],
@@ -3651,7 +3651,7 @@ function hl(e = "light") {
3651
3651
  dark: ft[900]
3652
3652
  };
3653
3653
  }
3654
- function gl(e) {
3654
+ function yl(e) {
3655
3655
  return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
3656
3656
  }
3657
3657
  function Hr(e) {
@@ -3661,10 +3661,10 @@ function Hr(e) {
3661
3661
  tonalOffset: n = 0.2,
3662
3662
  colorSpace: o,
3663
3663
  ...i
3664
- } = e, a = e.primary || ul(t), l = e.secondary || fl(t), u = e.error || dl(t), d = e.info || pl(t), m = e.success || ml(t), y = e.warning || hl(t);
3664
+ } = e, a = e.primary || fl(t), l = e.secondary || dl(t), u = e.error || pl(t), d = e.info || ml(t), m = e.success || hl(t), y = e.warning || gl(t);
3665
3665
  function p(g) {
3666
3666
  if (o)
3667
- return gl(g);
3667
+ return yl(g);
3668
3668
  const C = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
3669
3669
  return process.env.NODE_ENV !== "production" && kn(g, C) < 3, C;
3670
3670
  }
@@ -3672,14 +3672,14 @@ function Hr(e) {
3672
3672
  color: g,
3673
3673
  name: C,
3674
3674
  mainShade: k = 500,
3675
- lightShade: I = 300,
3675
+ lightShade: M = 300,
3676
3676
  darkShade: $ = 700
3677
3677
  }) => {
3678
3678
  if (g = {
3679
3679
  ...g
3680
3680
  }, !g.main && g[k] && (g.main = g[k]), !g.hasOwnProperty("main"))
3681
3681
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
3682
- The color object needs to have a \`main\` property or a \`${k}\` property.` : Ve(11, C ? ` (${C})` : "", k));
3682
+ The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11, C ? ` (${C})` : "", k));
3683
3683
  if (typeof g.main != "string")
3684
3684
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
3685
3685
  \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
@@ -3694,8 +3694,8 @@ const theme1 = createTheme({ palette: {
3694
3694
 
3695
3695
  const theme2 = createTheme({ palette: {
3696
3696
  primary: { main: green[500] },
3697
- } });` : Ve(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
3698
- return o ? (Nn(o, g, "light", I, n), Nn(o, g, "dark", $, n)) : (_n(g, "light", I, n), _n(g, "dark", $, n)), g.contrastText || (g.contrastText = p(g.main)), g;
3697
+ } });` : ze(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
3698
+ return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark", $, n)) : (_n(g, "light", M, n), _n(g, "dark", $, n)), g.contrastText || (g.contrastText = p(g.main)), g;
3699
3699
  };
3700
3700
  let h;
3701
3701
  return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV, he({
@@ -3740,7 +3740,7 @@ const theme2 = createTheme({ palette: {
3740
3740
  name: "success"
3741
3741
  }),
3742
3742
  // The grey colors.
3743
- grey: cl,
3743
+ grey: ul,
3744
3744
  // Used by `getContrastText()` to maximize the contrast between
3745
3745
  // the background and the text.
3746
3746
  contrastThreshold: r,
@@ -3756,14 +3756,14 @@ const theme2 = createTheme({ palette: {
3756
3756
  ...h
3757
3757
  }, i);
3758
3758
  }
3759
- function yl(e) {
3759
+ function bl(e) {
3760
3760
  const t = {};
3761
3761
  return Object.entries(e).forEach((n) => {
3762
3762
  const [o, i] = n;
3763
3763
  typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
3764
3764
  }), t;
3765
3765
  }
3766
- function bl(e, t) {
3766
+ function vl(e, t) {
3767
3767
  return {
3768
3768
  toolbar: {
3769
3769
  minHeight: 56,
@@ -3779,13 +3779,13 @@ function bl(e, t) {
3779
3779
  ...t
3780
3780
  };
3781
3781
  }
3782
- function vl(e) {
3782
+ function Sl(e) {
3783
3783
  return Math.round(e * 1e5) / 1e5;
3784
3784
  }
3785
3785
  const Bn = {
3786
3786
  textTransform: "uppercase"
3787
3787
  }, Dn = '"Roboto", "Helvetica", "Arial", sans-serif';
3788
- function Sl(e, t) {
3788
+ function xl(e, t) {
3789
3789
  const {
3790
3790
  fontFamily: r = Dn,
3791
3791
  // The default font size of the Material Specification.
@@ -3804,7 +3804,7 @@ function Sl(e, t) {
3804
3804
  ...y
3805
3805
  } = typeof t == "function" ? t(e) : t;
3806
3806
  process.env.NODE_ENV;
3807
- const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k, I, $) => ({
3807
+ const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k, M, $) => ({
3808
3808
  fontFamily: r,
3809
3809
  fontWeight: g,
3810
3810
  fontSize: b(C),
@@ -3813,7 +3813,7 @@ function Sl(e, t) {
3813
3813
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
3814
3814
  // across font-families can cause issues with the kerning.
3815
3815
  ...r === Dn ? {
3816
- letterSpacing: `${vl(I / C)}em`
3816
+ letterSpacing: `${Sl(M / C)}em`
3817
3817
  } : {},
3818
3818
  ...$,
3819
3819
  ...d
@@ -3855,11 +3855,11 @@ function Sl(e, t) {
3855
3855
  // No need to clone deep
3856
3856
  });
3857
3857
  }
3858
- const xl = 0.2, Cl = 0.14, Tl = 0.12;
3858
+ const Cl = 0.2, Tl = 0.14, wl = 0.12;
3859
3859
  function ae(...e) {
3860
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xl})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Cl})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tl})`].join(",");
3860
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cl})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Tl})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wl})`].join(",");
3861
3861
  }
3862
- const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ae(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ae(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ae(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ae(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ae(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ae(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ae(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ae(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ae(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ae(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ae(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ae(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ae(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ae(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ae(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ae(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ae(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ae(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ae(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ae(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ae(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ae(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], El = {
3862
+ const El = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ae(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ae(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ae(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ae(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ae(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ae(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ae(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ae(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ae(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ae(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ae(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ae(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ae(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ae(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ae(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ae(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ae(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ae(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ae(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ae(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ae(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ae(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ol = {
3863
3863
  // This is the most common easing curve.
3864
3864
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
3865
3865
  // Objects enter the screen at full velocity from off-screen and
@@ -3869,7 +3869,7 @@ const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
3869
3869
  easeIn: "cubic-bezier(0.4, 0, 1, 1)",
3870
3870
  // The sharp curve is used by objects that may return to the screen at any time.
3871
3871
  sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
3872
- }, Ol = {
3872
+ }, $l = {
3873
3873
  shortest: 150,
3874
3874
  shorter: 200,
3875
3875
  short: 250,
@@ -3885,22 +3885,22 @@ const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
3885
3885
  function jn(e) {
3886
3886
  return `${Math.round(e)}ms`;
3887
3887
  }
3888
- function $l(e) {
3888
+ function Rl(e) {
3889
3889
  if (!e)
3890
3890
  return 0;
3891
3891
  const t = e / 36;
3892
3892
  return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
3893
3893
  }
3894
- function Rl(e) {
3894
+ function kl(e) {
3895
3895
  const t = {
3896
- ...El,
3896
+ ...Ol,
3897
3897
  ...e.easing
3898
3898
  }, r = {
3899
- ...Ol,
3899
+ ...$l,
3900
3900
  ...e.duration
3901
3901
  };
3902
3902
  return {
3903
- getAutoHeightDuration: $l,
3903
+ getAutoHeightDuration: Rl,
3904
3904
  create: (o = ["all"], i = {}) => {
3905
3905
  const {
3906
3906
  duration: a = r.standard,
@@ -3919,7 +3919,7 @@ function Rl(e) {
3919
3919
  duration: r
3920
3920
  };
3921
3921
  }
3922
- const kl = {
3922
+ const Al = {
3923
3923
  mobileStepper: 1e3,
3924
3924
  fab: 1050,
3925
3925
  speedDial: 1050,
@@ -3929,7 +3929,7 @@ const kl = {
3929
3929
  snackbar: 1400,
3930
3930
  tooltip: 1500
3931
3931
  };
3932
- function Al(e) {
3932
+ function Pl(e) {
3933
3933
  return Re(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
3934
3934
  }
3935
3935
  function Go(e = {}) {
@@ -3940,7 +3940,7 @@ function Go(e = {}) {
3940
3940
  const o = Object.entries(n);
3941
3941
  for (let i = 0; i < o.length; i++) {
3942
3942
  const [a, l] = o[i];
3943
- !Al(l) || a.startsWith("unstable_") ? delete n[a] : Re(l) && (n[a] = {
3943
+ !Pl(l) || a.startsWith("unstable_") ? delete n[a] : Re(l) && (n[a] = {
3944
3944
  ...l
3945
3945
  }, r(n[a]));
3946
3946
  }
@@ -3957,7 +3957,7 @@ export default theme;`;
3957
3957
  function Vn(e) {
3958
3958
  return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
3959
3959
  }
3960
- const Pl = (e) => {
3960
+ const Il = (e) => {
3961
3961
  if (!Number.isNaN(+e))
3962
3962
  return +e;
3963
3963
  const t = e.match(/\d*\.?\d+/g);
@@ -3968,11 +3968,11 @@ const Pl = (e) => {
3968
3968
  r += +t[n];
3969
3969
  return r;
3970
3970
  };
3971
- function Il(e) {
3971
+ function Ml(e) {
3972
3972
  Object.assign(e, {
3973
3973
  alpha(t, r) {
3974
3974
  const n = this || e;
3975
- return n.colorSpace ? `oklch(from ${t} l c h / ${typeof r == "string" ? `calc(${r})` : r})` : n.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof r == "string" ? `calc(${r})` : r})` : Ft(t, Pl(r));
3975
+ return n.colorSpace ? `oklch(from ${t} l c h / ${typeof r == "string" ? `calc(${r})` : r})` : n.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof r == "string" ? `calc(${r})` : r})` : Ft(t, Il(r));
3976
3976
  },
3977
3977
  lighten(t, r) {
3978
3978
  const n = this || e;
@@ -3999,28 +3999,28 @@ function Rr(e = {}, ...t) {
3999
3999
  if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
4000
4000
  // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
4001
4001
  e.generateThemeVars === void 0)
4002
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Ve(20));
4002
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : ze(20));
4003
4003
  const y = Hr({
4004
4004
  ...i,
4005
4005
  colorSpace: d
4006
4006
  }), p = Tt(e);
4007
4007
  let b = he(p, {
4008
- mixins: bl(p.breakpoints, n),
4008
+ mixins: vl(p.breakpoints, n),
4009
4009
  palette: y,
4010
4010
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
4011
- shadows: wl.slice(),
4012
- typography: Sl(y, l),
4013
- transitions: Rl(a),
4011
+ shadows: El.slice(),
4012
+ typography: xl(y, l),
4013
+ transitions: kl(a),
4014
4014
  zIndex: {
4015
- ...kl
4015
+ ...Al
4016
4016
  }
4017
4017
  });
4018
4018
  if (b = he(b, m), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
4019
4019
  const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, C) => {
4020
4020
  let k;
4021
4021
  for (k in g) {
4022
- const I = g[k];
4023
- if (h.includes(k) && Object.keys(I).length > 0) {
4022
+ const M = g[k];
4023
+ if (h.includes(k) && Object.keys(M).length > 0) {
4024
4024
  if (process.env.NODE_ENV !== "production") {
4025
4025
  const $ = xe("", k);
4026
4026
  }
@@ -4041,13 +4041,13 @@ function Rr(e = {}, ...t) {
4041
4041
  sx: f,
4042
4042
  theme: this
4043
4043
  });
4044
- }, b.toRuntimeSource = Go, Il(b), b;
4044
+ }, b.toRuntimeSource = Go, Ml(b), b;
4045
4045
  }
4046
4046
  function kr(e) {
4047
4047
  let t;
4048
4048
  return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
4049
4049
  }
4050
- const Ml = [...Array(25)].map((e, t) => {
4050
+ const _l = [...Array(25)].map((e, t) => {
4051
4051
  if (t === 0)
4052
4052
  return "none";
4053
4053
  const r = kr(t);
@@ -4062,9 +4062,9 @@ function Uo(e) {
4062
4062
  };
4063
4063
  }
4064
4064
  function Yo(e) {
4065
- return e === "dark" ? Ml : [];
4065
+ return e === "dark" ? _l : [];
4066
4066
  }
4067
- function _l(e) {
4067
+ function Nl(e) {
4068
4068
  const {
4069
4069
  palette: t = {
4070
4070
  mode: "light"
@@ -4088,17 +4088,17 @@ function _l(e) {
4088
4088
  ...i
4089
4089
  };
4090
4090
  }
4091
- function Nl(e) {
4091
+ function Bl(e) {
4092
4092
  return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
4093
4093
  e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
4094
4094
  }
4095
- const Bl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Dl = (e) => (t, r) => {
4095
+ const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], jl = (e) => (t, r) => {
4096
4096
  const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
4097
4097
  let i = o;
4098
4098
  if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
4099
4099
  if (t === "dark") {
4100
4100
  const a = {};
4101
- return Bl(e.cssVarPrefix).forEach((l) => {
4101
+ return Dl(e.cssVarPrefix).forEach((l) => {
4102
4102
  a[l] = r[l], delete r[l];
4103
4103
  }), i === "media" ? {
4104
4104
  [n]: r,
@@ -4129,7 +4129,7 @@ const Bl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlay
4129
4129
  }
4130
4130
  return n;
4131
4131
  };
4132
- function jl(e, t) {
4132
+ function Vl(e, t) {
4133
4133
  t.forEach((r) => {
4134
4134
  e[r] || (e[r] = {});
4135
4135
  });
@@ -4144,7 +4144,7 @@ function Ie(e, t) {
4144
4144
  `${t}Channel` in e || (e[`${t}Channel`] = mt(ht(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
4145
4145
  To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
4146
4146
  }
4147
- function Vl(e) {
4147
+ function zl(e) {
4148
4148
  return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
4149
4149
  }
4150
4150
  const $e = (e) => {
@@ -4152,14 +4152,14 @@ const $e = (e) => {
4152
4152
  return e();
4153
4153
  } catch {
4154
4154
  }
4155
- }, zl = (e = "mui") => Qa(e);
4155
+ }, Wl = (e = "mui") => Ja(e);
4156
4156
  function Cr(e, t, r, n, o) {
4157
4157
  if (!r)
4158
4158
  return;
4159
4159
  r = r === !0 ? {} : r;
4160
4160
  const i = o === "dark" ? "dark" : "light";
4161
4161
  if (!n) {
4162
- t[o] = _l({
4162
+ t[o] = Nl({
4163
4163
  ...r,
4164
4164
  palette: {
4165
4165
  mode: i,
@@ -4190,7 +4190,7 @@ function Cr(e, t, r, n, o) {
4190
4190
  overlays: r?.overlays || Yo(i)
4191
4191
  }, l;
4192
4192
  }
4193
- function Wl(e = {}, ...t) {
4193
+ function Ll(e = {}, ...t) {
4194
4194
  const {
4195
4195
  colorSchemes: r = {
4196
4196
  light: !0
@@ -4199,11 +4199,11 @@ function Wl(e = {}, ...t) {
4199
4199
  disableCssColorScheme: o = !1,
4200
4200
  cssVarPrefix: i = "mui",
4201
4201
  nativeColor: a = !1,
4202
- shouldSkipGeneratingVar: l = Nl,
4202
+ shouldSkipGeneratingVar: l = Bl,
4203
4203
  colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
4204
4204
  rootSelector: d = ":root",
4205
4205
  ...m
4206
- } = e, y = Object.keys(r)[0], p = n || (r.light && y !== "light" ? "light" : y), b = zl(i), {
4206
+ } = e, y = Object.keys(r)[0], p = n || (r.light && y !== "light" ? "light" : y), b = Wl(i), {
4207
4207
  [p]: h,
4208
4208
  light: f,
4209
4209
  dark: g,
@@ -4211,14 +4211,14 @@ function Wl(e = {}, ...t) {
4211
4211
  } = r, k = {
4212
4212
  ...C
4213
4213
  };
4214
- let I = h;
4215
- if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (I = !0), !I)
4216
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : Ve(21, p));
4214
+ let M = h;
4215
+ if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (M = !0), !M)
4216
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ze(21, p));
4217
4217
  let $;
4218
4218
  a && ($ = "oklch");
4219
- const S = Cr($, k, I, m, p);
4219
+ const S = Cr($, k, M, m, p);
4220
4220
  f && !k.light && Cr($, k, f, void 0, "light"), g && !k.dark && Cr($, k, g, void 0, "dark");
4221
- let w = {
4221
+ let T = {
4222
4222
  defaultColorScheme: p,
4223
4223
  ...S,
4224
4224
  cssVarPrefix: i,
@@ -4227,63 +4227,63 @@ function Wl(e = {}, ...t) {
4227
4227
  getCssVar: b,
4228
4228
  colorSchemes: k,
4229
4229
  font: {
4230
- ...yl(S.typography),
4230
+ ...bl(S.typography),
4231
4231
  ...S.font
4232
4232
  },
4233
- spacing: Vl(m.spacing)
4233
+ spacing: zl(m.spacing)
4234
4234
  };
4235
- Object.keys(w.colorSchemes).forEach((P) => {
4236
- const c = w.colorSchemes[P].palette, T = (N) => {
4237
- const M = N.split("-"), D = M[1], F = M[2];
4238
- return b(N, c[D][F]);
4235
+ Object.keys(T.colorSchemes).forEach((I) => {
4236
+ const c = T.colorSchemes[I].palette, w = (P) => {
4237
+ const _ = P.split("-"), U = _[1], j = _[2];
4238
+ return b(P, c[U][j]);
4239
4239
  };
4240
4240
  c.mode === "light" && (v(c.common, "background", "#fff"), v(c.common, "onBackground", "#000")), c.mode === "dark" && (v(c.common, "background", "#000"), v(c.common, "onBackground", "#fff"));
4241
- function x(N, M, D) {
4241
+ function x(P, _, U) {
4242
4242
  if ($) {
4243
- let F;
4244
- return N === Le && (F = `transparent ${((1 - D) * 100).toFixed(0)}%`), N === ne && (F = `#000 ${(D * 100).toFixed(0)}%`), N === oe && (F = `#fff ${(D * 100).toFixed(0)}%`), `color-mix(in ${$}, ${M}, ${F})`;
4243
+ let j;
4244
+ return P === Fe && (j = `transparent ${((1 - U) * 100).toFixed(0)}%`), P === ne && (j = `#000 ${(U * 100).toFixed(0)}%`), P === oe && (j = `#fff ${(U * 100).toFixed(0)}%`), `color-mix(in ${$}, ${_}, ${j})`;
4245
4245
  }
4246
- return N(M, D);
4246
+ return P(_, U);
4247
4247
  }
4248
- if (jl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4249
- v(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), v(c.Alert, "successColor", x(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", T("palette-error-main")), v(c.Alert, "infoFilledBg", T("palette-info-main")), v(c.Alert, "successFilledBg", T("palette-success-main")), v(c.Alert, "warningFilledBg", T("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", x(oe, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(oe, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(oe, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(oe, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", T("palette-error-main")), v(c.Alert, "infoIconColor", T("palette-info-main")), v(c.Alert, "successIconColor", T("palette-success-main")), v(c.Alert, "warningIconColor", T("palette-warning-main")), v(c.AppBar, "defaultBg", T("palette-grey-100")), v(c.Avatar, "defaultBg", T("palette-grey-400")), v(c.Button, "inheritContainedBg", T("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", T("palette-grey-A100")), v(c.Chip, "defaultBorder", T("palette-grey-400")), v(c.Chip, "defaultAvatarColor", T("palette-grey-700")), v(c.Chip, "defaultIconColor", T("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", x(oe, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", x(oe, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", x(oe, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", x(oe, c.info.main, 0.62)), v(c.LinearProgress, "successBg", x(oe, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", x(oe, c.warning.main, 0.62)), v(c.Skeleton, "bg", $ ? x(Le, c.text.primary, 0.11) : `rgba(${T("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", x(oe, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", x(oe, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", x(oe, c.error.main, 0.62)), v(c.Slider, "infoTrack", x(oe, c.info.main, 0.62)), v(c.Slider, "successTrack", x(oe, c.success.main, 0.62)), v(c.Slider, "warningTrack", x(oe, c.warning.main, 0.62));
4250
- const N = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
- v(c.SnackbarContent, "bg", N), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(N))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", T("palette-grey-400")), v(c.StepContent, "border", T("palette-grey-400")), v(c.Switch, "defaultColor", T("palette-common-white")), v(c.Switch, "defaultDisabledColor", T("palette-grey-100")), v(c.Switch, "primaryDisabledColor", x(oe, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", x(oe, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", x(oe, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", x(oe, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", x(oe, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", x(oe, c.warning.main, 0.62)), v(c.TableCell, "border", x(oe, x(Le, c.divider, 1), 0.88)), v(c.Tooltip, "bg", x(Le, c.grey[700], 0.92));
4248
+ if (Vl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4249
+ v(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), v(c.Alert, "successColor", x(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-main")), v(c.Alert, "infoFilledBg", w("palette-info-main")), v(c.Alert, "successFilledBg", w("palette-success-main")), v(c.Alert, "warningFilledBg", w("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", x(oe, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(oe, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(oe, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(oe, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-100")), v(c.Avatar, "defaultBg", w("palette-grey-400")), v(c.Button, "inheritContainedBg", w("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-A100")), v(c.Chip, "defaultBorder", w("palette-grey-400")), v(c.Chip, "defaultAvatarColor", w("palette-grey-700")), v(c.Chip, "defaultIconColor", w("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", x(oe, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", x(oe, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", x(oe, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", x(oe, c.info.main, 0.62)), v(c.LinearProgress, "successBg", x(oe, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", x(oe, c.warning.main, 0.62)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.11) : `rgba(${w("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", x(oe, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", x(oe, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", x(oe, c.error.main, 0.62)), v(c.Slider, "infoTrack", x(oe, c.info.main, 0.62)), v(c.Slider, "successTrack", x(oe, c.success.main, 0.62)), v(c.Slider, "warningTrack", x(oe, c.warning.main, 0.62));
4250
+ const P = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
+ v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-400")), v(c.StepContent, "border", w("palette-grey-400")), v(c.Switch, "defaultColor", w("palette-common-white")), v(c.Switch, "defaultDisabledColor", w("palette-grey-100")), v(c.Switch, "primaryDisabledColor", x(oe, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", x(oe, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", x(oe, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", x(oe, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", x(oe, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", x(oe, c.warning.main, 0.62)), v(c.TableCell, "border", x(oe, x(Fe, c.divider, 1), 0.88)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
4252
4252
  }
4253
4253
  if (c.mode === "dark") {
4254
- v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", T("palette-error-dark")), v(c.Alert, "infoFilledBg", T("palette-info-dark")), v(c.Alert, "successFilledBg", T("palette-success-dark")), v(c.Alert, "warningFilledBg", T("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", T("palette-error-main")), v(c.Alert, "infoIconColor", T("palette-info-main")), v(c.Alert, "successIconColor", T("palette-success-main")), v(c.Alert, "warningIconColor", T("palette-warning-main")), v(c.AppBar, "defaultBg", T("palette-grey-900")), v(c.AppBar, "darkBg", T("palette-background-paper")), v(c.AppBar, "darkColor", T("palette-text-primary")), v(c.Avatar, "defaultBg", T("palette-grey-600")), v(c.Button, "inheritContainedBg", T("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", T("palette-grey-700")), v(c.Chip, "defaultBorder", T("palette-grey-700")), v(c.Chip, "defaultAvatarColor", T("palette-grey-300")), v(c.Chip, "defaultIconColor", T("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.5)), v(c.LinearProgress, "successBg", x(ne, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.5)), v(c.Skeleton, "bg", $ ? x(Le, c.text.primary, 0.13) : `rgba(${T("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", x(ne, c.error.main, 0.5)), v(c.Slider, "infoTrack", x(ne, c.info.main, 0.5)), v(c.Slider, "successTrack", x(ne, c.success.main, 0.5)), v(c.Slider, "warningTrack", x(ne, c.warning.main, 0.5));
4255
- const N = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
4256
- v(c.SnackbarContent, "bg", N), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(N))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", T("palette-grey-600")), v(c.StepContent, "border", T("palette-grey-600")), v(c.Switch, "defaultColor", T("palette-grey-300")), v(c.Switch, "defaultDisabledColor", T("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Le, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Le, c.grey[700], 0.92));
4254
+ v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-dark")), v(c.Alert, "infoFilledBg", w("palette-info-dark")), v(c.Alert, "successFilledBg", w("palette-success-dark")), v(c.Alert, "warningFilledBg", w("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-900")), v(c.AppBar, "darkBg", w("palette-background-paper")), v(c.AppBar, "darkColor", w("palette-text-primary")), v(c.Avatar, "defaultBg", w("palette-grey-600")), v(c.Button, "inheritContainedBg", w("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-700")), v(c.Chip, "defaultBorder", w("palette-grey-700")), v(c.Chip, "defaultAvatarColor", w("palette-grey-300")), v(c.Chip, "defaultIconColor", w("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.5)), v(c.LinearProgress, "successBg", x(ne, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.5)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.13) : `rgba(${w("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", x(ne, c.error.main, 0.5)), v(c.Slider, "infoTrack", x(ne, c.info.main, 0.5)), v(c.Slider, "successTrack", x(ne, c.success.main, 0.5)), v(c.Slider, "warningTrack", x(ne, c.warning.main, 0.5));
4255
+ const P = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
4256
+ v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-600")), v(c.StepContent, "border", w("palette-grey-600")), v(c.Switch, "defaultColor", w("palette-grey-300")), v(c.Switch, "defaultDisabledColor", w("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Fe, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
4257
4257
  }
4258
- Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((N) => {
4259
- const M = c[N];
4260
- N !== "tonalOffset" && M && typeof M == "object" && (M.main && v(c[N], "mainChannel", mt(ht(M.main))), M.light && v(c[N], "lightChannel", mt(ht(M.light))), M.dark && v(c[N], "darkChannel", mt(ht(M.dark))), M.contrastText && v(c[N], "contrastTextChannel", mt(ht(M.contrastText))), N === "text" && (Ie(c[N], "primary"), Ie(c[N], "secondary")), N === "action" && (M.active && Ie(c[N], "active"), M.selected && Ie(c[N], "selected")));
4258
+ Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((P) => {
4259
+ const _ = c[P];
4260
+ P !== "tonalOffset" && _ && typeof _ == "object" && (_.main && v(c[P], "mainChannel", mt(ht(_.main))), _.light && v(c[P], "lightChannel", mt(ht(_.light))), _.dark && v(c[P], "darkChannel", mt(ht(_.dark))), _.contrastText && v(c[P], "contrastTextChannel", mt(ht(_.contrastText))), P === "text" && (Ie(c[P], "primary"), Ie(c[P], "secondary")), P === "action" && (_.active && Ie(c[P], "active"), _.selected && Ie(c[P], "selected")));
4261
4261
  });
4262
- }), w = t.reduce((P, c) => he(P, c), w);
4263
- const j = {
4262
+ }), T = t.reduce((I, c) => he(I, c), T);
4263
+ const D = {
4264
4264
  prefix: i,
4265
4265
  disableCssColorScheme: o,
4266
4266
  shouldSkipGeneratingVar: l,
4267
- getSelector: Dl(w),
4267
+ getSelector: jl(T),
4268
4268
  enableContrastVars: a
4269
4269
  }, {
4270
4270
  vars: G,
4271
- generateThemeVars: V,
4272
- generateStyleSheets: W
4273
- } = el(w, j);
4274
- return w.vars = G, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([P, c]) => {
4275
- w[P] = c;
4276
- }), w.generateThemeVars = V, w.generateStyleSheets = W, w.generateSpacing = function() {
4271
+ generateThemeVars: z,
4272
+ generateStyleSheets: F
4273
+ } = tl(T, D);
4274
+ return T.vars = G, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([I, c]) => {
4275
+ T[I] = c;
4276
+ }), T.generateThemeVars = z, T.generateStyleSheets = F, T.generateSpacing = function() {
4277
4277
  return Mo(m.spacing, Zt(this));
4278
- }, w.getColorSchemeSelector = tl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
4278
+ }, T.getColorSchemeSelector = rl(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = l, T.unstable_sxConfig = {
4279
4279
  ...Ct,
4280
4280
  ...m?.unstable_sxConfig
4281
- }, w.unstable_sx = function(c) {
4281
+ }, T.unstable_sx = function(c) {
4282
4282
  return Qe({
4283
4283
  sx: c,
4284
4284
  theme: this
4285
4285
  });
4286
- }, w.toRuntimeSource = Go, w;
4286
+ }, T.toRuntimeSource = Go, T;
4287
4287
  }
4288
4288
  function zn(e, t, r) {
4289
4289
  e.colorSchemes && r && (e.colorSchemes[t] = {
@@ -4332,7 +4332,7 @@ function Ho(e = {}, ...t) {
4332
4332
  palette: y.palette
4333
4333
  }, zn(y, "light", d.light)), y;
4334
4334
  }
4335
- return !r && !("light" in d) && l === "light" && (d.light = !0), Wl({
4335
+ return !r && !("light" in d) && l === "light" && (d.light = !0), Ll({
4336
4336
  ...a,
4337
4337
  colorSchemes: d,
4338
4338
  defaultColorScheme: l,
@@ -4344,19 +4344,19 @@ function Xo() {
4344
4344
  const e = sr(Ko);
4345
4345
  return process.env.NODE_ENV !== "production" && B.useDebugValue(e), e[Ur] || e;
4346
4346
  }
4347
- function Ll(e) {
4347
+ function Fl(e) {
4348
4348
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
4349
4349
  }
4350
- const Qo = (e) => Ll(e) && e !== "classes", pe = Bo({
4350
+ const Qo = (e) => Fl(e) && e !== "classes", pe = Bo({
4351
4351
  themeId: Ur,
4352
4352
  defaultTheme: Ko,
4353
4353
  rootShouldForwardProp: Qo
4354
4354
  });
4355
4355
  process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
4356
4356
  function Oe(e) {
4357
- return Ya(e);
4357
+ return Ha(e);
4358
4358
  }
4359
- const Ke = Da({
4359
+ const Ke = ja({
4360
4360
  createStyledComponent: pe("div", {
4361
4361
  name: "MuiGrid",
4362
4362
  slot: "Root",
@@ -4464,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (Ke.propTypes = {
4464
4464
  wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
4465
4465
  });
4466
4466
  if (process.env.NODE_ENV !== "production") {
4467
- const e = Ke, t = ja("Grid", e);
4467
+ const e = Ke, t = Va("Grid", e);
4468
4468
  e.propTypes = {
4469
4469
  // eslint-disable-next-line react/forbid-foreign-prop-types
4470
4470
  ...e.propTypes,
@@ -4473,10 +4473,10 @@ if (process.env.NODE_ENV !== "production") {
4473
4473
  wrap: t("container")
4474
4474
  };
4475
4475
  }
4476
- function Fl(e) {
4476
+ function ql(e) {
4477
4477
  return e == null ? { xs: 12 } : typeof e == "object" ? e : { xs: e };
4478
4478
  }
4479
- function ql(e) {
4479
+ function Gl(e) {
4480
4480
  const t = /* @__PURE__ */ new Set(), r = (n) => {
4481
4481
  const o = (i) => {
4482
4482
  if (i) {
@@ -4499,7 +4499,7 @@ function ql(e) {
4499
4499
  }
4500
4500
  return Array.from(t);
4501
4501
  }
4502
- function Gl({
4502
+ function Ul({
4503
4503
  field: e,
4504
4504
  index: t,
4505
4505
  values: r,
@@ -4563,25 +4563,25 @@ function Gl({
4563
4563
  }
4564
4564
  );
4565
4565
  if (u) {
4566
- const h = Fl(e.colSpan);
4566
+ const h = ql(e.colSpan);
4567
4567
  return /* @__PURE__ */ E(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
4568
4568
  }
4569
4569
  return b;
4570
4570
  }
4571
- const Ul = mi(Gl, (e, t) => {
4571
+ const Yl = mi(Ul, (e, t) => {
4572
4572
  if (e.field !== t.field || e.index !== t.index || e.disabled !== t.disabled || e.readOnly !== t.readOnly || e.useGrid !== t.useGrid || e.widgets !== t.widgets || e.form !== t.form)
4573
4573
  return !1;
4574
4574
  const r = e.optionsMap[e.field.name], n = t.optionsMap[t.field.name];
4575
4575
  if (r !== n)
4576
4576
  return !1;
4577
- const o = ql(t.field);
4577
+ const o = Gl(t.field);
4578
4578
  if (o.includes("*"))
4579
4579
  return !1;
4580
4580
  for (const i of o)
4581
4581
  if (e.values[i] !== t.values[i])
4582
4582
  return !1;
4583
4583
  return !0;
4584
- }), Yl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = ll({
4584
+ }), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
4585
4585
  createStyledComponent: pe("div", {
4586
4586
  name: "MuiStack",
4587
4587
  slot: "Root"
@@ -4635,7 +4635,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
4635
4635
  */
4636
4636
  useFlexGap: s.bool
4637
4637
  });
4638
- const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), ke = {
4638
+ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), ke = {
4639
4639
  "& .MuiInputBase-input": {
4640
4640
  fontSize: 14,
4641
4641
  padding: "8px 12px"
@@ -4657,7 +4657,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4657
4657
  "& .MuiInputLabel-asterisk": {
4658
4658
  display: "none"
4659
4659
  }
4660
- }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", Kl = yo("ul")(({ theme: e }) => ({
4660
+ }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", Xl = yo("ul")(({ theme: e }) => ({
4661
4661
  padding: e.spacing(0.5),
4662
4662
  margin: 0,
4663
4663
  listStyle: "none",
@@ -4695,7 +4695,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4695
4695
  cursor: "default",
4696
4696
  pointerEvents: "none"
4697
4697
  }
4698
- })), Xl = mo((e, t) => {
4698
+ })), Ql = mo((e, t) => {
4699
4699
  const {
4700
4700
  children: r,
4701
4701
  fetchingMore: n,
@@ -4705,7 +4705,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4705
4705
  error: l,
4706
4706
  ...u
4707
4707
  } = e;
4708
- return /* @__PURE__ */ fe(Kl, { ...u, ref: t, children: [
4708
+ return /* @__PURE__ */ fe(Xl, { ...u, ref: t, children: [
4709
4709
  r,
4710
4710
  a && !n && /* @__PURE__ */ E(
4711
4711
  pt,
@@ -4757,56 +4757,61 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4757
4757
  form: a,
4758
4758
  schema: l
4759
4759
  }) => {
4760
- const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, [b, h] = Ne([]), [f, g] = Ne(!1), [C, k] = Ne(!1), [I, $] = Ne(""), [S, w] = Ne(!1), [j, G] = Ne(1), [V, W] = Ne(!0), P = p ? b : o, c = p?.pageSize ?? 20;
4761
- De(() => {
4762
- if (!p?.fetchById || !e.value) return;
4763
- const F = (Array.isArray(e.value) ? e.value : [e.value]).filter(
4764
- (U) => !b.some((O) => O.value === U)
4760
+ const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b = De(p);
4761
+ b.current = p;
4762
+ const [h, f] = Ne([]), [g, C] = Ne(!1), [k, M] = Ne(!1), [$, S] = Ne(""), [T, D] = Ne(!1), [G, z] = Ne(1), [F, I] = Ne(!0), c = p ? h : o, w = p?.pageSize ?? 20;
4763
+ je(() => {
4764
+ const j = b.current;
4765
+ if (!j?.fetchById || !e.value) return;
4766
+ const O = (Array.isArray(e.value) ? e.value : [e.value]).filter(
4767
+ // 使用宽松比较 (==) 以兼容 string/number 差异
4768
+ // eslint-disable-next-line eqeqeq
4769
+ (R) => !h.some((V) => V.value == R)
4765
4770
  );
4766
- F.length !== 0 && F.forEach(async (U) => {
4771
+ O.length !== 0 && O.forEach(async (R) => {
4767
4772
  try {
4768
- const O = await p.fetchById(U);
4769
- O && h((R) => R.some((z) => z.value === O.value) ? R : [...R, O]);
4773
+ const V = await j.fetchById(R);
4774
+ V && f((L) => L.some((q) => q.value == V.value) ? L : [...L, V]);
4770
4775
  } catch {
4771
4776
  }
4772
4777
  });
4773
- }, [e.value, p, b]);
4774
- const T = ho(
4775
- async (D, F, U = !1) => {
4778
+ }, [e.value, h]);
4779
+ const x = ho(
4780
+ async (j, W, O = !1) => {
4776
4781
  if (p) {
4777
- U || (G(1), W(!0)), U ? k(!0) : g(!0), p.onLoadingChange?.(!0);
4782
+ O || (z(1), I(!0)), O ? M(!0) : C(!0), p.onLoadingChange?.(!0);
4778
4783
  try {
4779
- const O = await p.fetchOptions(D, F, c);
4780
- h(U ? (R) => {
4781
- const z = O.data.filter(
4782
- (L) => !R.some((q) => q.value === L.value)
4784
+ const R = await p.fetchOptions(j, W, w);
4785
+ f(O ? (V) => {
4786
+ const L = R.data.filter(
4787
+ (q) => !V.some((X) => X.value === q.value)
4783
4788
  );
4784
- return [...R, ...z];
4785
- } : O.data), W(O.hasMore);
4789
+ return [...V, ...L];
4790
+ } : R.data), I(R.hasMore);
4786
4791
  } catch {
4787
4792
  } finally {
4788
- U ? k(!1) : g(!1), p.onLoadingChange?.(!1);
4793
+ O ? M(!1) : C(!1), p.onLoadingChange?.(!1);
4789
4794
  }
4790
4795
  }
4791
4796
  },
4792
- [p, c]
4793
- ), x = Ye(null);
4794
- De(() => {
4795
- S && p && T(I, 1, !1);
4796
- }, [S]);
4797
- const N = (D, F, U) => {
4798
- $(F), p && (x.current && clearTimeout(x.current), (U === "input" || U === "clear") && (x.current = setTimeout(() => {
4799
- T(F, 1, !1);
4797
+ [p, w]
4798
+ ), P = De(null);
4799
+ je(() => {
4800
+ T && p && x($, 1, !1);
4801
+ }, [T]);
4802
+ const _ = (j, W, O) => {
4803
+ S(W), p && (P.current && clearTimeout(P.current), (O === "input" || O === "clear") && (P.current = setTimeout(() => {
4804
+ x(W, 1, !1);
4800
4805
  }, p.debounceTimeout ?? 500)));
4801
4806
  };
4802
- De(() => () => {
4803
- x.current && clearTimeout(x.current);
4807
+ je(() => () => {
4808
+ P.current && clearTimeout(P.current);
4804
4809
  }, []);
4805
- const M = (D) => {
4806
- const F = D.currentTarget;
4807
- if (!f && !C && V && F.scrollTop + F.clientHeight >= F.scrollHeight - 20) {
4808
- const U = j + 1;
4809
- G(U), T(I, U, !0);
4810
+ const U = (j) => {
4811
+ const W = j.currentTarget;
4812
+ if (!g && !k && F && W.scrollTop + W.clientHeight >= W.scrollHeight - 20) {
4813
+ const O = G + 1;
4814
+ z(O), x($, O, !0);
4810
4815
  }
4811
4816
  };
4812
4817
  return /* @__PURE__ */ E(
@@ -4819,36 +4824,36 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4819
4824
  size: "small",
4820
4825
  sx: ke,
4821
4826
  children: /* @__PURE__ */ E(
4822
- Ti,
4827
+ wi,
4823
4828
  {
4824
4829
  multiple: d,
4825
4830
  disableCloseOnSelect: d,
4826
- open: S,
4827
- onOpen: () => w(!0),
4828
- onClose: () => w(!1),
4829
- inputValue: p ? I : void 0,
4830
- onInputChange: p ? N : void 0,
4831
- options: P,
4832
- loading: f || m,
4833
- filterOptions: p ? (D) => D : void 0,
4834
- value: d ? P.filter((D) => (e.value ?? []).includes(D.value)) : P.find((D) => D.value === e.value) ?? null,
4835
- onChange: (D, F) => {
4836
- const U = d ? F.map((O) => O.value) : F?.value ?? null;
4837
- e.onChange(U), typeof u == "function" && u(D, F), a?.trigger(e.name);
4831
+ open: T,
4832
+ onOpen: () => D(!0),
4833
+ onClose: () => D(!1),
4834
+ inputValue: p ? $ : void 0,
4835
+ onInputChange: p ? _ : void 0,
4836
+ options: c,
4837
+ loading: g || m,
4838
+ filterOptions: p ? (j) => j : void 0,
4839
+ value: d ? c.filter((j) => (e.value ?? []).includes(j.value)) : c.find((j) => j.value === e.value) ?? null,
4840
+ onChange: (j, W) => {
4841
+ const O = d ? W.map((R) => R.value) : W?.value ?? null;
4842
+ e.onChange(O), typeof u == "function" && u(j, W), a?.trigger(e.name);
4838
4843
  },
4839
4844
  slots: {
4840
- listbox: p ? Xl : void 0
4845
+ listbox: p ? Ql : void 0
4841
4846
  },
4842
4847
  slotProps: {
4843
4848
  listbox: {
4844
- onScroll: p ? M : void 0,
4849
+ onScroll: p ? U : void 0,
4845
4850
  style: { maxHeight: 260 },
4846
4851
  // 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
4847
4852
  ...p ? {
4848
- fetchingMore: C,
4849
- hasMore: V,
4850
- showNoMore: b.length > 0,
4851
- empty: b.length === 0 && !f && !C,
4853
+ fetchingMore: k,
4854
+ hasMore: F,
4855
+ showNoMore: h.length > 0,
4856
+ empty: h.length === 0 && !g && !k,
4852
4857
  error: !1
4853
4858
  } : {}
4854
4859
  },
@@ -4870,14 +4875,19 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4870
4875
  }
4871
4876
  }
4872
4877
  },
4873
- getOptionLabel: (D) => D?.label ?? "",
4874
- isOptionEqualToValue: (D, F) => D?.value === F?.value,
4878
+ getOptionLabel: (j) => j?.label ?? "",
4879
+ getOptionKey: (j) => {
4880
+ const W = j?.key ?? j?.value;
4881
+ return typeof W == "string" || typeof W == "number" ? W : String(W);
4882
+ },
4883
+ isOptionEqualToValue: (j, W) => j?.value === W?.value,
4875
4884
  size: "small",
4876
4885
  disabled: y?.disabled,
4877
- renderInput: (D) => /* @__PURE__ */ E(
4886
+ renderOption: (j, W) => /* @__PURE__ */ hi("li", { ...j, key: W.key ?? W.value }, W.listLabel ?? W.label),
4887
+ renderInput: (j) => /* @__PURE__ */ E(
4878
4888
  lt,
4879
4889
  {
4880
- ...D,
4890
+ ...j,
4881
4891
  error: r,
4882
4892
  fullWidth: !0,
4883
4893
  helperText: n,
@@ -4890,10 +4900,10 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4890
4900
  sx: ke,
4891
4901
  slotProps: {
4892
4902
  input: {
4893
- ...D.InputProps,
4903
+ ...j.InputProps,
4894
4904
  endAdornment: /* @__PURE__ */ fe(Dr, { children: [
4895
- f || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4896
- D.InputProps.endAdornment
4905
+ g || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4906
+ j.InputProps.endAdornment
4897
4907
  ] })
4898
4908
  }
4899
4909
  }
@@ -4924,7 +4934,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4924
4934
  Vr,
4925
4935
  {
4926
4936
  control: /* @__PURE__ */ E(
4927
- wi,
4937
+ Ei,
4928
4938
  {
4929
4939
  checked: e.value ?? !1,
4930
4940
  disabled: o?.disabled,
@@ -4985,7 +4995,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4985
4995
  helperText: n,
4986
4996
  fieldProps: o
4987
4997
  }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
4988
- Ai,
4998
+ Pi,
4989
4999
  {
4990
5000
  value: e.value ? vo(e.value) : null,
4991
5001
  onChange: (i) => e.onChange(i?.isValid() ? i.format(Ln) : ""),
@@ -5012,7 +5022,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5012
5022
  fieldProps: o,
5013
5023
  form: i
5014
5024
  }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
5015
- Pi,
5025
+ Ii,
5016
5026
  {
5017
5027
  value: e.value ? vo(e.value) : null,
5018
5028
  onChange: (a) => e.onChange(a?.isValid() ? a.format(Wn) : ""),
@@ -5034,15 +5044,15 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5034
5044
  ...o
5035
5045
  }
5036
5046
  ) });
5037
- function Ql() {
5047
+ function Jl() {
5038
5048
  return ir;
5039
5049
  }
5040
- const Ee = Xa;
5041
- function Jl(e) {
5050
+ const Ee = Qa;
5051
+ function Zl(e) {
5042
5052
  return xe("MuiSvgIcon", e);
5043
5053
  }
5044
5054
  Pe("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
5045
- const Zl = (e) => {
5055
+ const ec = (e) => {
5046
5056
  const {
5047
5057
  color: t,
5048
5058
  fontSize: r,
@@ -5050,8 +5060,8 @@ const Zl = (e) => {
5050
5060
  } = e, o = {
5051
5061
  root: ["root", t !== "inherit" && `color${Z(t)}`, `fontSize${Z(r)}`]
5052
5062
  };
5053
- return Ae(o, Jl, n);
5054
- }, ec = pe("svg", {
5063
+ return Ae(o, Zl, n);
5064
+ }, tc = pe("svg", {
5055
5065
  name: "MuiSvgIcon",
5056
5066
  slot: "Root",
5057
5067
  overridesResolver: (e, t) => {
@@ -5172,8 +5182,8 @@ const Zl = (e) => {
5172
5182
  hasSvgAsChild: h
5173
5183
  }, g = {};
5174
5184
  m || (g.viewBox = p);
5175
- const C = Zl(f);
5176
- return /* @__PURE__ */ fe(ec, {
5185
+ const C = ec(f);
5186
+ return /* @__PURE__ */ fe(tc, {
5177
5187
  as: l,
5178
5188
  className: ue(C.root, i),
5179
5189
  focusable: "false",
@@ -5276,7 +5286,7 @@ function Kr(e, t) {
5276
5286
  }
5277
5287
  function Dt(e) {
5278
5288
  const t = B.useRef(e);
5279
- return za(() => {
5289
+ return Wa(() => {
5280
5290
  t.current = e;
5281
5291
  }), B.useRef((...r) => (
5282
5292
  // @ts-expect-error hide `this`
@@ -5306,16 +5316,16 @@ function Yn(...e) {
5306
5316
  t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
5307
5317
  }, e);
5308
5318
  }
5309
- const tc = Kr(/* @__PURE__ */ E("path", {
5319
+ const rc = Kr(/* @__PURE__ */ E("path", {
5310
5320
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
5311
- }), "Add"), rc = Kr(/* @__PURE__ */ E("path", {
5321
+ }), "Add"), nc = Kr(/* @__PURE__ */ E("path", {
5312
5322
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
5313
- }), "ContentCopy"), nc = Kr(/* @__PURE__ */ E("path", {
5323
+ }), "ContentCopy"), oc = Kr(/* @__PURE__ */ E("path", {
5314
5324
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
5315
- }), "Delete"), oc = Pe("MuiBox", ["root"]), ic = Ho(), Gt = Va({
5325
+ }), "Delete"), ic = Pe("MuiBox", ["root"]), sc = Ho(), Gt = za({
5316
5326
  themeId: Ur,
5317
- defaultTheme: ic,
5318
- defaultClassName: oc.root,
5327
+ defaultTheme: sc,
5328
+ defaultClassName: ic.root,
5319
5329
  generateClassName: Oo.generate
5320
5330
  });
5321
5331
  process.env.NODE_ENV !== "production" && (Gt.propTypes = {
@@ -5337,19 +5347,19 @@ process.env.NODE_ENV !== "production" && (Gt.propTypes = {
5337
5347
  */
5338
5348
  sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
5339
5349
  });
5340
- const sc = s.oneOfType([s.func, s.object]);
5350
+ const ac = s.oneOfType([s.func, s.object]);
5341
5351
  function fr(e, t) {
5342
5352
  return process.env.NODE_ENV === "production" ? () => null : function(...n) {
5343
5353
  return e(...n) || t(...n);
5344
5354
  };
5345
5355
  }
5346
- function ac(e) {
5356
+ function lc(e) {
5347
5357
  const {
5348
5358
  prototype: t = {}
5349
5359
  } = e;
5350
5360
  return !!t.isReactComponent;
5351
5361
  }
5352
- function lc(e, t, r, n, o) {
5362
+ function cc(e, t, r, n, o) {
5353
5363
  const i = e[t], a = o || t;
5354
5364
  if (i == null || // When server-side rendering React doesn't warn either.
5355
5365
  // This is not an accurate check for SSR.
@@ -5358,9 +5368,9 @@ function lc(e, t, r, n, o) {
5358
5368
  typeof window > "u")
5359
5369
  return null;
5360
5370
  let l;
5361
- return typeof i == "function" && !ac(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
5371
+ return typeof i == "function" && !lc(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
5362
5372
  }
5363
- const cc = fr(s.elementType, lc);
5373
+ const uc = fr(s.elementType, cc);
5364
5374
  function Hn(e) {
5365
5375
  try {
5366
5376
  return e.matches(":focus-visible");
@@ -5393,7 +5403,7 @@ class Ut {
5393
5403
  }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
5394
5404
  }
5395
5405
  mount() {
5396
- return this.mounted || (this.mounted = fc(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
5406
+ return this.mounted || (this.mounted = dc(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
5397
5407
  }
5398
5408
  mountEffect = () => {
5399
5409
  this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
@@ -5409,10 +5419,10 @@ class Ut {
5409
5419
  this.mount().then(() => this.ref.current?.pulsate(...t));
5410
5420
  }
5411
5421
  }
5412
- function uc() {
5422
+ function fc() {
5413
5423
  return Ut.use();
5414
5424
  }
5415
- function fc() {
5425
+ function dc() {
5416
5426
  let e, t;
5417
5427
  const r = new Promise((n, o) => {
5418
5428
  e = n, t = o;
@@ -5428,7 +5438,7 @@ function Ar() {
5428
5438
  return e;
5429
5439
  }, Ar.apply(null, arguments);
5430
5440
  }
5431
- function dc(e, t) {
5441
+ function pc(e, t) {
5432
5442
  if (e == null) return {};
5433
5443
  var r = {};
5434
5444
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -5442,11 +5452,11 @@ function Pr(e, t) {
5442
5452
  return r.__proto__ = n, r;
5443
5453
  }, Pr(e, t);
5444
5454
  }
5445
- function pc(e, t) {
5455
+ function mc(e, t) {
5446
5456
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pr(e, t);
5447
5457
  }
5448
5458
  const Xn = dt.createContext(null);
5449
- function mc(e) {
5459
+ function hc(e) {
5450
5460
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5451
5461
  return e;
5452
5462
  }
@@ -5454,13 +5464,13 @@ function Xr(e, t) {
5454
5464
  var r = function(i) {
5455
5465
  return t && _t(i) ? t(i) : i;
5456
5466
  }, n = /* @__PURE__ */ Object.create(null);
5457
- return e && hi.map(e, function(o) {
5467
+ return e && gi.map(e, function(o) {
5458
5468
  return o;
5459
5469
  }).forEach(function(o) {
5460
5470
  n[o.key] = r(o);
5461
5471
  }), n;
5462
5472
  }
5463
- function hc(e, t) {
5473
+ function gc(e, t) {
5464
5474
  e = e || {}, t = t || {};
5465
5475
  function r(m) {
5466
5476
  return m in t ? t[m] : e[m];
@@ -5481,22 +5491,22 @@ function hc(e, t) {
5481
5491
  l[o[a]] = r(o[a]);
5482
5492
  return l;
5483
5493
  }
5484
- function Ue(e, t, r) {
5494
+ function Ye(e, t, r) {
5485
5495
  return r[t] != null ? r[t] : e.props[t];
5486
5496
  }
5487
- function gc(e, t) {
5497
+ function yc(e, t) {
5488
5498
  return Xr(e.children, function(r) {
5489
5499
  return Nt(r, {
5490
5500
  onExited: t.bind(null, r),
5491
5501
  in: !0,
5492
- appear: Ue(r, "appear", e),
5493
- enter: Ue(r, "enter", e),
5494
- exit: Ue(r, "exit", e)
5502
+ appear: Ye(r, "appear", e),
5503
+ enter: Ye(r, "enter", e),
5504
+ exit: Ye(r, "exit", e)
5495
5505
  });
5496
5506
  });
5497
5507
  }
5498
- function yc(e, t, r) {
5499
- var n = Xr(e.children), o = hc(t, n);
5508
+ function bc(e, t, r) {
5509
+ var n = Xr(e.children), o = gc(t, n);
5500
5510
  return Object.keys(o).forEach(function(i) {
5501
5511
  var a = o[i];
5502
5512
  if (_t(a)) {
@@ -5504,34 +5514,34 @@ function yc(e, t, r) {
5504
5514
  u && (!l || m) ? o[i] = Nt(a, {
5505
5515
  onExited: r.bind(null, a),
5506
5516
  in: !0,
5507
- exit: Ue(a, "exit", e),
5508
- enter: Ue(a, "enter", e)
5517
+ exit: Ye(a, "exit", e),
5518
+ enter: Ye(a, "enter", e)
5509
5519
  }) : !u && l && !m ? o[i] = Nt(a, {
5510
5520
  in: !1
5511
5521
  }) : u && l && _t(d) && (o[i] = Nt(a, {
5512
5522
  onExited: r.bind(null, a),
5513
5523
  in: d.props.in,
5514
- exit: Ue(a, "exit", e),
5515
- enter: Ue(a, "enter", e)
5524
+ exit: Ye(a, "exit", e),
5525
+ enter: Ye(a, "enter", e)
5516
5526
  }));
5517
5527
  }
5518
5528
  }), o;
5519
5529
  }
5520
- var bc = Object.values || function(e) {
5530
+ var vc = Object.values || function(e) {
5521
5531
  return Object.keys(e).map(function(t) {
5522
5532
  return e[t];
5523
5533
  });
5524
- }, vc = {
5534
+ }, Sc = {
5525
5535
  component: "div",
5526
5536
  childFactory: function(t) {
5527
5537
  return t;
5528
5538
  }
5529
5539
  }, Qr = /* @__PURE__ */ (function(e) {
5530
- pc(t, e);
5540
+ mc(t, e);
5531
5541
  function t(n, o) {
5532
5542
  var i;
5533
5543
  i = e.call(this, n, o) || this;
5534
- var a = i.handleExited.bind(mc(i));
5544
+ var a = i.handleExited.bind(hc(i));
5535
5545
  return i.state = {
5536
5546
  contextValue: {
5537
5547
  isMounting: !0
@@ -5552,7 +5562,7 @@ var bc = Object.values || function(e) {
5552
5562
  }, t.getDerivedStateFromProps = function(o, i) {
5553
5563
  var a = i.children, l = i.handleExited, u = i.firstRender;
5554
5564
  return {
5555
- children: u ? gc(o, l) : yc(o, a, l),
5565
+ children: u ? yc(o, l) : bc(o, a, l),
5556
5566
  firstRender: !1
5557
5567
  };
5558
5568
  }, r.handleExited = function(o, i) {
@@ -5564,7 +5574,7 @@ var bc = Object.values || function(e) {
5564
5574
  };
5565
5575
  }));
5566
5576
  }, r.render = function() {
5567
- var o = this.props, i = o.component, a = o.childFactory, l = dc(o, ["component", "childFactory"]), u = this.state.contextValue, d = bc(this.state.children).map(a);
5577
+ var o = this.props, i = o.component, a = o.childFactory, l = pc(o, ["component", "childFactory"]), u = this.state.contextValue, d = vc(this.state.children).map(a);
5568
5578
  return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ dt.createElement(Xn.Provider, {
5569
5579
  value: u
5570
5580
  }, d) : /* @__PURE__ */ dt.createElement(Xn.Provider, {
@@ -5625,10 +5635,10 @@ Qr.propTypes = process.env.NODE_ENV !== "production" ? {
5625
5635
  */
5626
5636
  childFactory: s.func
5627
5637
  } : {};
5628
- Qr.defaultProps = vc;
5629
- const Sc = [];
5630
- function xc(e) {
5631
- B.useEffect(e, Sc);
5638
+ Qr.defaultProps = Sc;
5639
+ const xc = [];
5640
+ function Cc(e) {
5641
+ B.useEffect(e, xc);
5632
5642
  }
5633
5643
  class Jr {
5634
5644
  static create() {
@@ -5648,9 +5658,9 @@ class Jr {
5648
5658
  };
5649
5659
  disposeEffect = () => this.clear;
5650
5660
  }
5651
- function Cc() {
5661
+ function Tc() {
5652
5662
  const e = Zo(Jr.create).current;
5653
- return xc(e.disposeEffect), e;
5663
+ return Cc(e.disposeEffect), e;
5654
5664
  }
5655
5665
  function ei(e) {
5656
5666
  const {
@@ -5719,7 +5729,7 @@ process.env.NODE_ENV !== "production" && (ei.propTypes = {
5719
5729
  */
5720
5730
  timeout: s.number.isRequired
5721
5731
  });
5722
- const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, Tc = 80, wc = St`
5732
+ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, wc = 80, Ec = St`
5723
5733
  0% {
5724
5734
  transform: scale(0);
5725
5735
  opacity: 0.1;
@@ -5729,7 +5739,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5729
5739
  transform: scale(1);
5730
5740
  opacity: 0.3;
5731
5741
  }
5732
- `, Ec = St`
5742
+ `, Oc = St`
5733
5743
  0% {
5734
5744
  opacity: 1;
5735
5745
  }
@@ -5737,7 +5747,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5737
5747
  100% {
5738
5748
  opacity: 0;
5739
5749
  }
5740
- `, Oc = St`
5750
+ `, $c = St`
5741
5751
  0% {
5742
5752
  transform: scale(1);
5743
5753
  }
@@ -5749,7 +5759,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5749
5759
  100% {
5750
5760
  transform: scale(1);
5751
5761
  }
5752
- `, $c = pe("span", {
5762
+ `, Rc = pe("span", {
5753
5763
  name: "MuiTouchRipple",
5754
5764
  slot: "Root"
5755
5765
  })({
@@ -5762,7 +5772,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5762
5772
  bottom: 0,
5763
5773
  left: 0,
5764
5774
  borderRadius: "inherit"
5765
- }), Rc = pe(ei, {
5775
+ }), kc = pe(ei, {
5766
5776
  name: "MuiTouchRipple",
5767
5777
  slot: "Ripple"
5768
5778
  })`
@@ -5772,7 +5782,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5772
5782
  &.${be.rippleVisible} {
5773
5783
  opacity: 0.3;
5774
5784
  transform: scale(1);
5775
- animation-name: ${wc};
5785
+ animation-name: ${Ec};
5776
5786
  animation-duration: ${Ir}ms;
5777
5787
  animation-timing-function: ${({
5778
5788
  theme: e
@@ -5796,7 +5806,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5796
5806
 
5797
5807
  & .${be.childLeaving} {
5798
5808
  opacity: 0;
5799
- animation-name: ${Ec};
5809
+ animation-name: ${Oc};
5800
5810
  animation-duration: ${Ir}ms;
5801
5811
  animation-timing-function: ${({
5802
5812
  theme: e
@@ -5808,7 +5818,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5808
5818
  /* @noflip */
5809
5819
  left: 0px;
5810
5820
  top: 0;
5811
- animation-name: ${Oc};
5821
+ animation-name: ${$c};
5812
5822
  animation-duration: 2500ms;
5813
5823
  animation-timing-function: ${({
5814
5824
  theme: e
@@ -5829,15 +5839,15 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5829
5839
  B.useEffect(() => {
5830
5840
  y.current && (y.current(), y.current = null);
5831
5841
  }, [u]);
5832
- const p = B.useRef(!1), b = Cc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5842
+ const p = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5833
5843
  const {
5834
5844
  pulsate: S,
5835
- rippleX: w,
5836
- rippleY: j,
5845
+ rippleX: T,
5846
+ rippleY: D,
5837
5847
  rippleSize: G,
5838
- cb: V
5848
+ cb: z
5839
5849
  } = $;
5840
- d((W) => [...W, /* @__PURE__ */ E(Rc, {
5850
+ d((F) => [...F, /* @__PURE__ */ E(kc, {
5841
5851
  classes: {
5842
5852
  ripple: ue(i.ripple, be.ripple),
5843
5853
  rippleVisible: ue(i.rippleVisible, be.rippleVisible),
@@ -5848,16 +5858,16 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5848
5858
  },
5849
5859
  timeout: Ir,
5850
5860
  pulsate: S,
5851
- rippleX: w,
5852
- rippleY: j,
5861
+ rippleX: T,
5862
+ rippleY: D,
5853
5863
  rippleSize: G
5854
- }, m.current)]), m.current += 1, y.current = V;
5855
- }, [i]), C = B.useCallback(($ = {}, S = {}, w = () => {
5864
+ }, m.current)]), m.current += 1, y.current = z;
5865
+ }, [i]), C = B.useCallback(($ = {}, S = {}, T = () => {
5856
5866
  }) => {
5857
5867
  const {
5858
- pulsate: j = !1,
5868
+ pulsate: D = !1,
5859
5869
  center: G = o || S.pulsate,
5860
- fakeElement: V = !1
5870
+ fakeElement: z = !1
5861
5871
  // For test purposes
5862
5872
  } = S;
5863
5873
  if ($?.type === "mousedown" && p.current) {
@@ -5865,63 +5875,63 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5865
5875
  return;
5866
5876
  }
5867
5877
  $?.type === "touchstart" && (p.current = !0);
5868
- const W = V ? null : f.current, P = W ? W.getBoundingClientRect() : {
5878
+ const F = z ? null : f.current, I = F ? F.getBoundingClientRect() : {
5869
5879
  width: 0,
5870
5880
  height: 0,
5871
5881
  left: 0,
5872
5882
  top: 0
5873
5883
  };
5874
- let c, T, x;
5884
+ let c, w, x;
5875
5885
  if (G || $ === void 0 || $.clientX === 0 && $.clientY === 0 || !$.clientX && !$.touches)
5876
- c = Math.round(P.width / 2), T = Math.round(P.height / 2);
5886
+ c = Math.round(I.width / 2), w = Math.round(I.height / 2);
5877
5887
  else {
5878
5888
  const {
5879
- clientX: N,
5880
- clientY: M
5889
+ clientX: P,
5890
+ clientY: _
5881
5891
  } = $.touches && $.touches.length > 0 ? $.touches[0] : $;
5882
- c = Math.round(N - P.left), T = Math.round(M - P.top);
5892
+ c = Math.round(P - I.left), w = Math.round(_ - I.top);
5883
5893
  }
5884
5894
  if (G)
5885
- x = Math.sqrt((2 * P.width ** 2 + P.height ** 2) / 3), x % 2 === 0 && (x += 1);
5895
+ x = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), x % 2 === 0 && (x += 1);
5886
5896
  else {
5887
- const N = Math.max(Math.abs((W ? W.clientWidth : 0) - c), c) * 2 + 2, M = Math.max(Math.abs((W ? W.clientHeight : 0) - T), T) * 2 + 2;
5888
- x = Math.sqrt(N ** 2 + M ** 2);
5897
+ const P = Math.max(Math.abs((F ? F.clientWidth : 0) - c), c) * 2 + 2, _ = Math.max(Math.abs((F ? F.clientHeight : 0) - w), w) * 2 + 2;
5898
+ x = Math.sqrt(P ** 2 + _ ** 2);
5889
5899
  }
5890
5900
  $?.touches ? h.current === null && (h.current = () => {
5891
5901
  g({
5892
- pulsate: j,
5902
+ pulsate: D,
5893
5903
  rippleX: c,
5894
- rippleY: T,
5904
+ rippleY: w,
5895
5905
  rippleSize: x,
5896
- cb: w
5906
+ cb: T
5897
5907
  });
5898
- }, b.start(Tc, () => {
5908
+ }, b.start(wc, () => {
5899
5909
  h.current && (h.current(), h.current = null);
5900
5910
  })) : g({
5901
- pulsate: j,
5911
+ pulsate: D,
5902
5912
  rippleX: c,
5903
- rippleY: T,
5913
+ rippleY: w,
5904
5914
  rippleSize: x,
5905
- cb: w
5915
+ cb: T
5906
5916
  });
5907
5917
  }, [o, g, b]), k = B.useCallback(() => {
5908
5918
  C({}, {
5909
5919
  pulsate: !0
5910
5920
  });
5911
- }, [C]), I = B.useCallback(($, S) => {
5921
+ }, [C]), M = B.useCallback(($, S) => {
5912
5922
  if (b.clear(), $?.type === "touchend" && h.current) {
5913
5923
  h.current(), h.current = null, b.start(0, () => {
5914
- I($, S);
5924
+ M($, S);
5915
5925
  });
5916
5926
  return;
5917
5927
  }
5918
- h.current = null, d((w) => w.length > 0 ? w.slice(1) : w), y.current = S;
5928
+ h.current = null, d((T) => T.length > 0 ? T.slice(1) : T), y.current = S;
5919
5929
  }, [b]);
5920
5930
  return B.useImperativeHandle(r, () => ({
5921
5931
  pulsate: k,
5922
5932
  start: C,
5923
- stop: I
5924
- }), [k, C, I]), /* @__PURE__ */ E($c, {
5933
+ stop: M
5934
+ }), [k, C, M]), /* @__PURE__ */ E(Rc, {
5925
5935
  className: ue(be.root, i.root, a),
5926
5936
  ref: f,
5927
5937
  ...l,
@@ -5947,10 +5957,10 @@ process.env.NODE_ENV !== "production" && (ti.propTypes = {
5947
5957
  */
5948
5958
  className: s.string
5949
5959
  });
5950
- function kc(e) {
5960
+ function Ac(e) {
5951
5961
  return xe("MuiButtonBase", e);
5952
5962
  }
5953
- const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) => {
5963
+ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) => {
5954
5964
  const {
5955
5965
  disabled: t,
5956
5966
  focusVisible: r,
@@ -5958,9 +5968,9 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
5958
5968
  classes: o
5959
5969
  } = e, a = Ae({
5960
5970
  root: ["root", t && "disabled", r && "focusVisible"]
5961
- }, kc, o);
5971
+ }, Ac, o);
5962
5972
  return r && n && (a.root += ` ${n}`), a;
5963
- }, Ic = pe("button", {
5973
+ }, Mc = pe("button", {
5964
5974
  name: "MuiButtonBase",
5965
5975
  slot: "Root"
5966
5976
  })({
@@ -5994,7 +6004,7 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
5994
6004
  borderStyle: "none"
5995
6005
  // Remove Firefox dotted outline.
5996
6006
  },
5997
- [`&.${Ac.disabled}`]: {
6007
+ [`&.${Pc.disabled}`]: {
5998
6008
  pointerEvents: "none",
5999
6009
  // Disable link interactions
6000
6010
  cursor: "default"
@@ -6022,58 +6032,58 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6022
6032
  onClick: g,
6023
6033
  onContextMenu: C,
6024
6034
  onDragLeave: k,
6025
- onFocus: I,
6035
+ onFocus: M,
6026
6036
  onFocusVisible: $,
6027
6037
  onKeyDown: S,
6028
- onKeyUp: w,
6029
- onMouseDown: j,
6038
+ onKeyUp: T,
6039
+ onMouseDown: D,
6030
6040
  onMouseLeave: G,
6031
- onMouseUp: V,
6032
- onTouchEnd: W,
6033
- onTouchMove: P,
6041
+ onMouseUp: z,
6042
+ onTouchEnd: F,
6043
+ onTouchMove: I,
6034
6044
  onTouchStart: c,
6035
- tabIndex: T = 0,
6045
+ tabIndex: w = 0,
6036
6046
  TouchRippleProps: x,
6037
- touchRippleRef: N,
6038
- type: M,
6039
- ...D
6040
- } = n, F = B.useRef(null), U = uc(), O = Yn(U.ref, N), [R, z] = B.useState(!1);
6041
- d && R && z(!1), B.useImperativeHandle(o, () => ({
6047
+ touchRippleRef: P,
6048
+ type: _,
6049
+ ...U
6050
+ } = n, j = B.useRef(null), W = fc(), O = Yn(W.ref, P), [R, V] = B.useState(!1);
6051
+ d && R && V(!1), B.useImperativeHandle(o, () => ({
6042
6052
  focusVisible: () => {
6043
- z(!0), F.current.focus();
6053
+ V(!0), j.current.focus();
6044
6054
  }
6045
6055
  }), []);
6046
- const L = U.shouldMount && !m && !d;
6056
+ const L = W.shouldMount && !m && !d;
6047
6057
  B.useEffect(() => {
6048
- R && p && !m && U.pulsate();
6049
- }, [m, p, R, U]);
6050
- const q = Me(U, "start", j, y), X = Me(U, "stop", C, y), H = Me(U, "stop", k, y), K = Me(U, "stop", V, y), Q = Me(U, "stop", (Y) => {
6058
+ R && p && !m && W.pulsate();
6059
+ }, [m, p, R, W]);
6060
+ const q = Me(W, "start", D, y), X = Me(W, "stop", C, y), H = Me(W, "stop", k, y), K = Me(W, "stop", z, y), Q = Me(W, "stop", (Y) => {
6051
6061
  R && Y.preventDefault(), G && G(Y);
6052
- }, y), ee = Me(U, "start", c, y), J = Me(U, "stop", W, y), me = Me(U, "stop", P, y), _ = Me(U, "stop", (Y) => {
6053
- Hn(Y.target) || z(!1), f && f(Y);
6062
+ }, y), ee = Me(W, "start", c, y), J = Me(W, "stop", F, y), me = Me(W, "stop", I, y), N = Me(W, "stop", (Y) => {
6063
+ Hn(Y.target) || V(!1), f && f(Y);
6054
6064
  }, !1), ye = Dt((Y) => {
6055
- F.current || (F.current = Y.currentTarget), Hn(Y.target) && (z(!0), $ && $(Y)), I && I(Y);
6065
+ j.current || (j.current = Y.currentTarget), Hn(Y.target) && (V(!0), $ && $(Y)), M && M(Y);
6056
6066
  }), _e = () => {
6057
- const Y = F.current;
6067
+ const Y = j.current;
6058
6068
  return u && u !== "button" && !(Y.tagName === "A" && Y.href);
6059
6069
  }, wt = Dt((Y) => {
6060
- p && !Y.repeat && R && Y.key === " " && U.stop(Y, () => {
6061
- U.start(Y);
6070
+ p && !Y.repeat && R && Y.key === " " && W.stop(Y, () => {
6071
+ W.start(Y);
6062
6072
  }), Y.target === Y.currentTarget && _e() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && _e() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
6063
6073
  }), fi = Dt((Y) => {
6064
- p && Y.key === " " && R && !Y.defaultPrevented && U.stop(Y, () => {
6065
- U.pulsate(Y);
6066
- }), w && w(Y), g && Y.target === Y.currentTarget && _e() && Y.key === " " && !Y.defaultPrevented && g(Y);
6074
+ p && Y.key === " " && R && !Y.defaultPrevented && W.stop(Y, () => {
6075
+ W.pulsate(Y);
6076
+ }), T && T(Y), g && Y.target === Y.currentTarget && _e() && Y.key === " " && !Y.defaultPrevented && g(Y);
6067
6077
  });
6068
6078
  let Et = u;
6069
- Et === "button" && (D.href || D.to) && (Et = h);
6079
+ Et === "button" && (U.href || U.to) && (Et = h);
6070
6080
  const ut = {};
6071
6081
  if (Et === "button") {
6072
- const Y = !!D.formAction;
6073
- ut.type = M === void 0 && !Y ? "button" : M, ut.disabled = d;
6082
+ const Y = !!U.formAction;
6083
+ ut.type = _ === void 0 && !Y ? "button" : _, ut.disabled = d;
6074
6084
  } else
6075
- !D.href && !D.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
6076
- const di = Yn(r, F), rn = {
6085
+ !U.href && !U.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
6086
+ const di = Yn(r, j), rn = {
6077
6087
  ...n,
6078
6088
  centerRipple: i,
6079
6089
  component: u,
@@ -6081,14 +6091,14 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6081
6091
  disableRipple: m,
6082
6092
  disableTouchRipple: y,
6083
6093
  focusRipple: p,
6084
- tabIndex: T,
6094
+ tabIndex: w,
6085
6095
  focusVisible: R
6086
- }, pi = Pc(rn);
6087
- return /* @__PURE__ */ fe(Ic, {
6096
+ }, pi = Ic(rn);
6097
+ return /* @__PURE__ */ fe(Mc, {
6088
6098
  as: Et,
6089
6099
  className: ue(pi.root, l),
6090
6100
  ownerState: rn,
6091
- onBlur: _,
6101
+ onBlur: N,
6092
6102
  onClick: g,
6093
6103
  onContextMenu: X,
6094
6104
  onFocus: ye,
@@ -6102,10 +6112,10 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6102
6112
  onTouchMove: me,
6103
6113
  onTouchStart: ee,
6104
6114
  ref: di,
6105
- tabIndex: d ? -1 : T,
6106
- type: M,
6115
+ tabIndex: d ? -1 : w,
6116
+ type: _,
6107
6117
  ...ut,
6108
- ...D,
6118
+ ...U,
6109
6119
  children: [a, L ? /* @__PURE__ */ E(ti, {
6110
6120
  ref: O,
6111
6121
  center: i,
@@ -6125,7 +6135,7 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6125
6135
  * A ref for imperative actions.
6126
6136
  * It currently only supports `focusVisible()` action.
6127
6137
  */
6128
- action: sc,
6138
+ action: ac,
6129
6139
  /**
6130
6140
  * If `true`, the ripples are centered.
6131
6141
  * They won't start at the cursor interaction position.
@@ -6148,7 +6158,7 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6148
6158
  * The component used for the root node.
6149
6159
  * Either a string to use a HTML element or a component.
6150
6160
  */
6151
- component: cc,
6161
+ component: uc,
6152
6162
  /**
6153
6163
  * If `true`, the component is disabled.
6154
6164
  * @default false
@@ -6278,11 +6288,11 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6278
6288
  */
6279
6289
  type: s.oneOfType([s.oneOf(["button", "reset", "submit"]), s.string])
6280
6290
  });
6281
- function Mc(e) {
6291
+ function _c(e) {
6282
6292
  return typeof e.main == "string";
6283
6293
  }
6284
- function _c(e, t = []) {
6285
- if (!Mc(e))
6294
+ function Nc(e, t = []) {
6295
+ if (!_c(e))
6286
6296
  return !1;
6287
6297
  for (const r of t)
6288
6298
  if (!e.hasOwnProperty(r) || typeof e[r] != "string")
@@ -6290,9 +6300,9 @@ function _c(e, t = []) {
6290
6300
  return !0;
6291
6301
  }
6292
6302
  function vt(e = []) {
6293
- return ([, t]) => t && _c(t, e);
6303
+ return ([, t]) => t && Nc(t, e);
6294
6304
  }
6295
- function Nc(e) {
6305
+ function Bc(e) {
6296
6306
  return xe("MuiCircularProgress", e);
6297
6307
  }
6298
6308
  Pe("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
@@ -6319,11 +6329,11 @@ const Te = 44, Mr = St`
6319
6329
  stroke-dasharray: 1px, 200px;
6320
6330
  stroke-dashoffset: -126px;
6321
6331
  }
6322
- `, Bc = typeof Mr != "string" ? go`
6332
+ `, Dc = typeof Mr != "string" ? go`
6323
6333
  animation: ${Mr} 1.4s linear infinite;
6324
- ` : null, Dc = typeof _r != "string" ? go`
6334
+ ` : null, jc = typeof _r != "string" ? go`
6325
6335
  animation: ${_r} 1.4s ease-in-out infinite;
6326
- ` : null, jc = (e) => {
6336
+ ` : null, Vc = (e) => {
6327
6337
  const {
6328
6338
  classes: t,
6329
6339
  variant: r,
@@ -6335,8 +6345,8 @@ const Te = 44, Mr = St`
6335
6345
  track: ["track"],
6336
6346
  circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
6337
6347
  };
6338
- return Ae(i, Nc, t);
6339
- }, Vc = pe("span", {
6348
+ return Ae(i, Bc, t);
6349
+ }, zc = pe("span", {
6340
6350
  name: "MuiCircularProgress",
6341
6351
  slot: "Root",
6342
6352
  overridesResolver: (e, t) => {
@@ -6360,7 +6370,7 @@ const Te = 44, Mr = St`
6360
6370
  props: {
6361
6371
  variant: "indeterminate"
6362
6372
  },
6363
- style: Bc || {
6373
+ style: Dc || {
6364
6374
  animation: `${Mr} 1.4s linear infinite`
6365
6375
  }
6366
6376
  }, ...Object.entries(e.palette).filter(vt()).map(([t]) => ({
@@ -6371,13 +6381,13 @@ const Te = 44, Mr = St`
6371
6381
  color: (e.vars || e).palette[t].main
6372
6382
  }
6373
6383
  }))]
6374
- }))), zc = pe("svg", {
6384
+ }))), Wc = pe("svg", {
6375
6385
  name: "MuiCircularProgress",
6376
6386
  slot: "Svg"
6377
6387
  })({
6378
6388
  display: "block"
6379
6389
  // Keeps the progress centered
6380
- }), Wc = pe("circle", {
6390
+ }), Lc = pe("circle", {
6381
6391
  name: "MuiCircularProgress",
6382
6392
  slot: "Circle",
6383
6393
  overridesResolver: (e, t) => {
@@ -6411,12 +6421,12 @@ const Te = 44, Mr = St`
6411
6421
  props: ({
6412
6422
  ownerState: t
6413
6423
  }) => t.variant === "indeterminate" && !t.disableShrink,
6414
- style: Dc || {
6424
+ style: jc || {
6415
6425
  // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
6416
6426
  animation: `${_r} 1.4s ease-in-out infinite`
6417
6427
  }
6418
6428
  }]
6419
- }))), Lc = pe("circle", {
6429
+ }))), Fc = pe("circle", {
6420
6430
  name: "MuiCircularProgress",
6421
6431
  slot: "Track"
6422
6432
  })(Ee(({
@@ -6448,12 +6458,12 @@ const Te = 44, Mr = St`
6448
6458
  value: y,
6449
6459
  variant: p,
6450
6460
  enableTrackSlot: l
6451
- }, f = jc(h), g = {}, C = {}, k = {};
6461
+ }, f = Vc(h), g = {}, C = {}, k = {};
6452
6462
  if (p === "determinate") {
6453
- const I = 2 * Math.PI * ((Te - m) / 2);
6454
- g.strokeDasharray = I.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * I).toFixed(3)}px`, C.transform = "rotate(-90deg)";
6463
+ const M = 2 * Math.PI * ((Te - m) / 2);
6464
+ g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`, C.transform = "rotate(-90deg)";
6455
6465
  }
6456
- return /* @__PURE__ */ E(Vc, {
6466
+ return /* @__PURE__ */ E(zc, {
6457
6467
  className: ue(f.root, o),
6458
6468
  style: {
6459
6469
  width: u,
@@ -6466,11 +6476,11 @@ const Te = 44, Mr = St`
6466
6476
  role: "progressbar",
6467
6477
  ...k,
6468
6478
  ...b,
6469
- children: /* @__PURE__ */ fe(zc, {
6479
+ children: /* @__PURE__ */ fe(Wc, {
6470
6480
  className: f.svg,
6471
6481
  ownerState: h,
6472
6482
  viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
6473
- children: [l ? /* @__PURE__ */ E(Lc, {
6483
+ children: [l ? /* @__PURE__ */ E(Fc, {
6474
6484
  className: f.track,
6475
6485
  ownerState: h,
6476
6486
  cx: Te,
@@ -6479,7 +6489,7 @@ const Te = 44, Mr = St`
6479
6489
  fill: "none",
6480
6490
  strokeWidth: m,
6481
6491
  "aria-hidden": "true"
6482
- }) : null, /* @__PURE__ */ E(Wc, {
6492
+ }) : null, /* @__PURE__ */ E(Lc, {
6483
6493
  className: f.circle,
6484
6494
  style: g,
6485
6495
  ownerState: h,
@@ -6557,14 +6567,14 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
6557
6567
  */
6558
6568
  variant: s.oneOf(["determinate", "indeterminate"])
6559
6569
  });
6560
- function Fc(e) {
6570
+ function qc(e) {
6561
6571
  return xe("MuiButton", e);
6562
6572
  }
6563
- const Fe = Pe("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ri = /* @__PURE__ */ B.createContext({});
6573
+ const qe = Pe("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ri = /* @__PURE__ */ B.createContext({});
6564
6574
  process.env.NODE_ENV !== "production" && (ri.displayName = "ButtonGroupContext");
6565
6575
  const ni = /* @__PURE__ */ B.createContext(void 0);
6566
6576
  process.env.NODE_ENV !== "production" && (ni.displayName = "ButtonGroupButtonContext");
6567
- const qc = (e) => {
6577
+ const Gc = (e) => {
6568
6578
  const {
6569
6579
  color: t,
6570
6580
  disableElevation: r,
@@ -6580,7 +6590,7 @@ const qc = (e) => {
6580
6590
  endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
6581
6591
  loadingIndicator: ["loadingIndicator"],
6582
6592
  loadingWrapper: ["loadingWrapper"]
6583
- }, m = Ae(d, Fc, u);
6593
+ }, m = Ae(d, qc, u);
6584
6594
  return {
6585
6595
  ...u,
6586
6596
  // forward the focused, disabled, etc. classes to the ButtonBase
@@ -6613,7 +6623,7 @@ const qc = (e) => {
6613
6623
  fontSize: 22
6614
6624
  }
6615
6625
  }
6616
- }], Gc = pe(Zr, {
6626
+ }], Uc = pe(Zr, {
6617
6627
  shouldForwardProp: (e) => Qo(e) || e === "classes",
6618
6628
  name: "MuiButton",
6619
6629
  slot: "Root",
@@ -6639,7 +6649,7 @@ const qc = (e) => {
6639
6649
  "&:hover": {
6640
6650
  textDecoration: "none"
6641
6651
  },
6642
- [`&.${Fe.disabled}`]: {
6652
+ [`&.${qe.disabled}`]: {
6643
6653
  color: (e.vars || e).palette.action.disabled
6644
6654
  },
6645
6655
  variants: [{
@@ -6660,10 +6670,10 @@ const qc = (e) => {
6660
6670
  "&:active": {
6661
6671
  boxShadow: (e.vars || e).shadows[8]
6662
6672
  },
6663
- [`&.${Fe.focusVisible}`]: {
6673
+ [`&.${qe.focusVisible}`]: {
6664
6674
  boxShadow: (e.vars || e).shadows[6]
6665
6675
  },
6666
- [`&.${Fe.disabled}`]: {
6676
+ [`&.${qe.disabled}`]: {
6667
6677
  color: (e.vars || e).palette.action.disabled,
6668
6678
  boxShadow: (e.vars || e).shadows[0],
6669
6679
  backgroundColor: (e.vars || e).palette.action.disabledBackground
@@ -6679,7 +6689,7 @@ const qc = (e) => {
6679
6689
  borderColor: "var(--variant-outlinedBorder, currentColor)",
6680
6690
  backgroundColor: "var(--variant-outlinedBg)",
6681
6691
  color: "var(--variant-outlinedColor)",
6682
- [`&.${Fe.disabled}`]: {
6692
+ [`&.${qe.disabled}`]: {
6683
6693
  border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
6684
6694
  }
6685
6695
  }
@@ -6790,13 +6800,13 @@ const qc = (e) => {
6790
6800
  "&:hover": {
6791
6801
  boxShadow: "none"
6792
6802
  },
6793
- [`&.${Fe.focusVisible}`]: {
6803
+ [`&.${qe.focusVisible}`]: {
6794
6804
  boxShadow: "none"
6795
6805
  },
6796
6806
  "&:active": {
6797
6807
  boxShadow: "none"
6798
6808
  },
6799
- [`&.${Fe.disabled}`]: {
6809
+ [`&.${qe.disabled}`]: {
6800
6810
  boxShadow: "none"
6801
6811
  }
6802
6812
  }
@@ -6815,13 +6825,13 @@ const qc = (e) => {
6815
6825
  transition: e.transitions.create(["background-color", "box-shadow", "border-color"], {
6816
6826
  duration: e.transitions.duration.short
6817
6827
  }),
6818
- [`&.${Fe.loading}`]: {
6828
+ [`&.${qe.loading}`]: {
6819
6829
  color: "transparent"
6820
6830
  }
6821
6831
  }
6822
6832
  }]
6823
6833
  };
6824
- })), Uc = pe("span", {
6834
+ })), Yc = pe("span", {
6825
6835
  name: "MuiButton",
6826
6836
  slot: "StartIcon",
6827
6837
  overridesResolver: (e, t) => {
@@ -6864,7 +6874,7 @@ const qc = (e) => {
6864
6874
  marginRight: -8
6865
6875
  }
6866
6876
  }, ...oi]
6867
- })), Yc = pe("span", {
6877
+ })), Hc = pe("span", {
6868
6878
  name: "MuiButton",
6869
6879
  slot: "EndIcon",
6870
6880
  overridesResolver: (e, t) => {
@@ -6907,7 +6917,7 @@ const qc = (e) => {
6907
6917
  marginLeft: -8
6908
6918
  }
6909
6919
  }, ...oi]
6910
- })), Hc = pe("span", {
6920
+ })), Kc = pe("span", {
6911
6921
  name: "MuiButton",
6912
6922
  slot: "LoadingIndicator"
6913
6923
  })(({
@@ -7021,15 +7031,15 @@ const qc = (e) => {
7021
7031
  fullWidth: g = !1,
7022
7032
  id: C,
7023
7033
  loading: k = null,
7024
- loadingIndicator: I,
7034
+ loadingIndicator: M,
7025
7035
  loadingPosition: $ = "center",
7026
7036
  size: S = "medium",
7027
- startIcon: w,
7028
- type: j,
7037
+ startIcon: T,
7038
+ type: D,
7029
7039
  variant: G = "text",
7030
- ...V
7031
- } = a, W = Wo(C), P = I ?? /* @__PURE__ */ E(en, {
7032
- "aria-labelledby": W,
7040
+ ...z
7041
+ } = a, F = Wo(C), I = M ?? /* @__PURE__ */ E(en, {
7042
+ "aria-labelledby": F,
7033
7043
  color: "inherit",
7034
7044
  size: 16
7035
7045
  }), c = {
@@ -7041,52 +7051,52 @@ const qc = (e) => {
7041
7051
  disableFocusRipple: b,
7042
7052
  fullWidth: g,
7043
7053
  loading: k,
7044
- loadingIndicator: P,
7054
+ loadingIndicator: I,
7045
7055
  loadingPosition: $,
7046
7056
  size: S,
7047
- type: j,
7057
+ type: D,
7048
7058
  variant: G
7049
- }, T = qc(c), x = (w || k && $ === "start") && /* @__PURE__ */ E(Uc, {
7050
- className: T.startIcon,
7059
+ }, w = Gc(c), x = (T || k && $ === "start") && /* @__PURE__ */ E(Yc, {
7060
+ className: w.startIcon,
7051
7061
  ownerState: c,
7052
- children: w || /* @__PURE__ */ E(Qn, {
7053
- className: T.loadingIconPlaceholder,
7062
+ children: T || /* @__PURE__ */ E(Qn, {
7063
+ className: w.loadingIconPlaceholder,
7054
7064
  ownerState: c
7055
7065
  })
7056
- }), N = (h || k && $ === "end") && /* @__PURE__ */ E(Yc, {
7057
- className: T.endIcon,
7066
+ }), P = (h || k && $ === "end") && /* @__PURE__ */ E(Hc, {
7067
+ className: w.endIcon,
7058
7068
  ownerState: c,
7059
7069
  children: h || /* @__PURE__ */ E(Qn, {
7060
- className: T.loadingIconPlaceholder,
7070
+ className: w.loadingIconPlaceholder,
7061
7071
  ownerState: c
7062
7072
  })
7063
- }), M = o || "", D = typeof k == "boolean" ? (
7073
+ }), _ = o || "", U = typeof k == "boolean" ? (
7064
7074
  // use plain HTML span to minimize the runtime overhead
7065
7075
  /* @__PURE__ */ E("span", {
7066
- className: T.loadingWrapper,
7076
+ className: w.loadingWrapper,
7067
7077
  style: {
7068
7078
  display: "contents"
7069
7079
  },
7070
- children: k && /* @__PURE__ */ E(Hc, {
7071
- className: T.loadingIndicator,
7080
+ children: k && /* @__PURE__ */ E(Kc, {
7081
+ className: w.loadingIndicator,
7072
7082
  ownerState: c,
7073
- children: P
7083
+ children: I
7074
7084
  })
7075
7085
  })
7076
7086
  ) : null;
7077
- return /* @__PURE__ */ fe(Gc, {
7087
+ return /* @__PURE__ */ fe(Uc, {
7078
7088
  ownerState: c,
7079
- className: ue(n.className, T.root, m, M),
7089
+ className: ue(n.className, w.root, m, _),
7080
7090
  component: d,
7081
7091
  disabled: y || k,
7082
7092
  focusRipple: !b,
7083
- focusVisibleClassName: ue(T.focusVisible, f),
7093
+ focusVisibleClassName: ue(w.focusVisible, f),
7084
7094
  ref: r,
7085
- type: j,
7086
- id: k ? W : C,
7087
- ...V,
7088
- classes: T,
7089
- children: [x, $ !== "end" && D, l, $ === "end" && D, N]
7095
+ type: D,
7096
+ id: k ? F : C,
7097
+ ...z,
7098
+ classes: w,
7099
+ children: [x, $ !== "end" && U, l, $ === "end" && U, P]
7090
7100
  });
7091
7101
  });
7092
7102
  process.env.NODE_ENV !== "production" && (ii.propTypes = {
@@ -7205,11 +7215,11 @@ process.env.NODE_ENV !== "production" && (ii.propTypes = {
7205
7215
  */
7206
7216
  variant: s.oneOfType([s.oneOf(["contained", "outlined", "text"]), s.string])
7207
7217
  });
7208
- function Kc(e) {
7218
+ function Xc(e) {
7209
7219
  return xe("MuiDivider", e);
7210
7220
  }
7211
7221
  Pe("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
7212
- const Xc = (e) => {
7222
+ const Qc = (e) => {
7213
7223
  const {
7214
7224
  absolute: t,
7215
7225
  children: r,
@@ -7223,8 +7233,8 @@ const Xc = (e) => {
7223
7233
  return Ae({
7224
7234
  root: ["root", t && "absolute", u, i && "light", a === "vertical" && "vertical", o && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", l === "right" && a !== "vertical" && "textAlignRight", l === "left" && a !== "vertical" && "textAlignLeft"],
7225
7235
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
7226
- }, Kc, n);
7227
- }, Qc = pe("div", {
7236
+ }, Xc, n);
7237
+ }, Jc = pe("div", {
7228
7238
  name: "MuiDivider",
7229
7239
  slot: "Root",
7230
7240
  overridesResolver: (e, t) => {
@@ -7365,7 +7375,7 @@ const Xc = (e) => {
7365
7375
  }
7366
7376
  }
7367
7377
  }]
7368
- }))), Jc = pe("span", {
7378
+ }))), Zc = pe("span", {
7369
7379
  name: "MuiDivider",
7370
7380
  slot: "Wrapper",
7371
7381
  overridesResolver: (e, t) => {
@@ -7416,8 +7426,8 @@ const Xc = (e) => {
7416
7426
  role: y,
7417
7427
  textAlign: p,
7418
7428
  variant: b
7419
- }, g = Xc(f);
7420
- return /* @__PURE__ */ E(Qc, {
7429
+ }, g = Qc(f);
7430
+ return /* @__PURE__ */ E(Jc, {
7421
7431
  as: u,
7422
7432
  className: ue(g.root, a),
7423
7433
  role: y,
@@ -7425,7 +7435,7 @@ const Xc = (e) => {
7425
7435
  ownerState: f,
7426
7436
  "aria-orientation": y === "separator" && (u !== "hr" || l === "vertical") ? l : void 0,
7427
7437
  ...h,
7428
- children: i ? /* @__PURE__ */ E(Jc, {
7438
+ children: i ? /* @__PURE__ */ E(Zc, {
7429
7439
  className: g.wrapper,
7430
7440
  ownerState: f,
7431
7441
  children: i
@@ -7496,10 +7506,10 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
7496
7506
  */
7497
7507
  variant: s.oneOfType([s.oneOf(["fullWidth", "inset", "middle"]), s.string])
7498
7508
  });
7499
- function Zc(e) {
7509
+ function eu(e) {
7500
7510
  return xe("MuiIconButton", e);
7501
7511
  }
7502
- const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), eu = (e) => {
7512
+ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), tu = (e) => {
7503
7513
  const {
7504
7514
  classes: t,
7505
7515
  disabled: r,
@@ -7512,8 +7522,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7512
7522
  loadingIndicator: ["loadingIndicator"],
7513
7523
  loadingWrapper: ["loadingWrapper"]
7514
7524
  };
7515
- return Ae(l, Zc, t);
7516
- }, tu = pe(Zr, {
7525
+ return Ae(l, eu, t);
7526
+ }, ru = pe(Zr, {
7517
7527
  name: "MuiIconButton",
7518
7528
  slot: "Root",
7519
7529
  overridesResolver: (e, t) => {
@@ -7625,7 +7635,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7625
7635
  [`&.${Jn.loading}`]: {
7626
7636
  color: "transparent"
7627
7637
  }
7628
- }))), ru = pe("span", {
7638
+ }))), nu = pe("span", {
7629
7639
  name: "MuiIconButton",
7630
7640
  slot: "LoadingIndicator"
7631
7641
  })(({
@@ -7675,8 +7685,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7675
7685
  loading: p,
7676
7686
  loadingIndicator: g,
7677
7687
  size: m
7678
- }, k = eu(C);
7679
- return /* @__PURE__ */ fe(tu, {
7688
+ }, k = tu(C);
7689
+ return /* @__PURE__ */ fe(ru, {
7680
7690
  id: p ? f : y,
7681
7691
  className: ue(k.root, a),
7682
7692
  centerRipple: !0,
@@ -7691,7 +7701,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7691
7701
  style: {
7692
7702
  display: "contents"
7693
7703
  },
7694
- children: /* @__PURE__ */ E(ru, {
7704
+ children: /* @__PURE__ */ E(nu, {
7695
7705
  className: k.loadingIndicator,
7696
7706
  ownerState: C,
7697
7707
  children: p && g
@@ -7778,7 +7788,7 @@ process.env.NODE_ENV !== "production" && (Nr.propTypes = {
7778
7788
  */
7779
7789
  sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
7780
7790
  });
7781
- function nu(e) {
7791
+ function ou(e) {
7782
7792
  const t = typeof e;
7783
7793
  switch (t) {
7784
7794
  case "number":
@@ -7792,7 +7802,7 @@ function nu(e) {
7792
7802
  function si(e, t, r, n) {
7793
7803
  const o = e[t];
7794
7804
  if (o == null || !Number.isInteger(o)) {
7795
- const i = nu(o);
7805
+ const i = ou(o);
7796
7806
  return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`);
7797
7807
  }
7798
7808
  return null;
@@ -7805,12 +7815,12 @@ function Br() {
7805
7815
  }
7806
7816
  ai.isRequired = si;
7807
7817
  Br.isRequired = Br;
7808
- const ou = process.env.NODE_ENV === "production" ? Br : ai;
7809
- function iu(e) {
7818
+ const iu = process.env.NODE_ENV === "production" ? Br : ai;
7819
+ function su(e) {
7810
7820
  return xe("MuiPaper", e);
7811
7821
  }
7812
7822
  Pe("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"]);
7813
- const su = (e) => {
7823
+ const au = (e) => {
7814
7824
  const {
7815
7825
  square: t,
7816
7826
  elevation: r,
@@ -7819,8 +7829,8 @@ const su = (e) => {
7819
7829
  } = e, i = {
7820
7830
  root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`]
7821
7831
  };
7822
- return Ae(i, iu, o);
7823
- }, au = pe("div", {
7832
+ return Ae(i, su, o);
7833
+ }, lu = pe("div", {
7824
7834
  name: "MuiPaper",
7825
7835
  slot: "Root",
7826
7836
  overridesResolver: (e, t) => {
@@ -7875,8 +7885,8 @@ const su = (e) => {
7875
7885
  elevation: l,
7876
7886
  square: u,
7877
7887
  variant: d
7878
- }, p = su(y);
7879
- return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(au, {
7888
+ }, p = au(y);
7889
+ return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(lu, {
7880
7890
  as: a,
7881
7891
  ownerState: y,
7882
7892
  className: ue(p.root, i),
@@ -7923,7 +7933,7 @@ process.env.NODE_ENV !== "production" && (li.propTypes = {
7923
7933
  * It accepts values between 0 and 24 inclusive.
7924
7934
  * @default 1
7925
7935
  */
7926
- elevation: fr(ou, (e) => {
7936
+ elevation: fr(iu, (e) => {
7927
7937
  const {
7928
7938
  elevation: t,
7929
7939
  variant: r
@@ -7949,11 +7959,11 @@ process.env.NODE_ENV !== "production" && (li.propTypes = {
7949
7959
  */
7950
7960
  variant: s.oneOfType([s.oneOf(["elevation", "outlined"]), s.string])
7951
7961
  });
7952
- function lu(e) {
7962
+ function cu(e) {
7953
7963
  return xe("MuiTypography", e);
7954
7964
  }
7955
7965
  Pe("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
7956
- const cu = {
7966
+ const uu = {
7957
7967
  primary: !0,
7958
7968
  secondary: !0,
7959
7969
  error: !0,
@@ -7963,7 +7973,7 @@ const cu = {
7963
7973
  textPrimary: !0,
7964
7974
  textSecondary: !0,
7965
7975
  textDisabled: !0
7966
- }, uu = Ql(), fu = (e) => {
7976
+ }, fu = Jl(), du = (e) => {
7967
7977
  const {
7968
7978
  align: t,
7969
7979
  gutterBottom: r,
@@ -7974,8 +7984,8 @@ const cu = {
7974
7984
  } = e, l = {
7975
7985
  root: ["root", i, e.align !== "inherit" && `align${Z(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
7976
7986
  };
7977
- return Ae(l, lu, a);
7978
- }, du = pe("span", {
7987
+ return Ae(l, cu, a);
7988
+ }, pu = pe("span", {
7979
7989
  name: "MuiTypography",
7980
7990
  slot: "Root",
7981
7991
  overridesResolver: (e, t) => {
@@ -8067,7 +8077,7 @@ const cu = {
8067
8077
  } = Oe({
8068
8078
  props: t,
8069
8079
  name: "MuiTypography"
8070
- }), i = !cu[n], a = uu({
8080
+ }), i = !uu[n], a = fu({
8071
8081
  ...o,
8072
8082
  ...i && {
8073
8083
  color: n
@@ -8093,8 +8103,8 @@ const cu = {
8093
8103
  paragraph: p,
8094
8104
  variant: b,
8095
8105
  variantMapping: h
8096
- }, C = d || (p ? "p" : h[b] || Zn[b]) || "span", k = fu(g);
8097
- return /* @__PURE__ */ E(du, {
8106
+ }, C = d || (p ? "p" : h[b] || Zn[b]) || "span", k = du(g);
8107
+ return /* @__PURE__ */ E(pu, {
8098
8108
  as: C,
8099
8109
  ref: r,
8100
8110
  className: ue(k.root, u),
@@ -8227,18 +8237,18 @@ const Tr = ({
8227
8237
  }) => {
8228
8238
  if (!e || !t || !r)
8229
8239
  return null;
8230
- const { fields: l, append: u, remove: d } = yi({
8240
+ const { fields: l, append: u, remove: d } = bi({
8231
8241
  control: t.control,
8232
8242
  name: e.name
8233
- }), m = qe(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, j) => {
8243
+ }), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (T, D) => {
8234
8244
  if (!m.some(
8235
- (W) => W.dependencies.includes(j)
8245
+ (F) => F.dependencies.includes(D)
8236
8246
  )) return;
8237
- const V = t.getValues(`${e.name}.${w}`);
8238
- V && m.forEach(({ name: W, expr: P, dependencies: c, precision: T, roundMode: x }) => {
8239
- if (W === j || !c.includes(j) || !c.every((F) => Fr(V[F]))) return;
8240
- const M = Co(P, V, c, T, x), D = V[W];
8241
- M !== void 0 && M !== D && !Number.isNaN(M) && (typeof M != "number" || typeof D != "number" || Math.abs(M - D) > 1e-4) && t.setValue(`${e.name}.${w}.${W}`, M, {
8247
+ const z = t.getValues(`${e.name}.${T}`);
8248
+ z && m.forEach(({ name: F, expr: I, dependencies: c, precision: w, roundMode: x }) => {
8249
+ if (F === D || !c.includes(D) || !c.every((j) => Fr(z[j]))) return;
8250
+ const _ = Co(I, z, c, w, x), U = z[F];
8251
+ _ !== void 0 && _ !== U && !Number.isNaN(_) && (typeof _ != "number" || typeof U != "number" || Math.abs(_ - U) > 1e-4) && t.setValue(`${e.name}.${T}.${F}`, _, {
8242
8252
  shouldValidate: !0,
8243
8253
  // 计算更新通常需要触发验证
8244
8254
  shouldDirty: !0,
@@ -8253,75 +8263,75 @@ const Tr = ({
8253
8263
  copyable: C = !1
8254
8264
  } = e, k = () => {
8255
8265
  if (l.length >= f) return;
8256
- const w = ci(b);
8257
- u(w);
8258
- }, I = (w) => {
8266
+ const T = ci(b);
8267
+ u(T);
8268
+ }, M = (T) => {
8259
8269
  if (l.length >= f) return;
8260
- const j = t.getValues(`${e.name}.${w}`);
8261
- u(j);
8262
- }, $ = (w) => {
8263
- l.length <= h || d(w);
8264
- }, S = (w, j, G) => {
8265
- const V = `${e.name}.${j}.${w.name}`, W = p?.[e.name]?.[j] || {}, P = { ...p, ...W }, c = Ht(
8266
- w,
8267
- P,
8270
+ const D = t.getValues(`${e.name}.${T}`);
8271
+ u(D);
8272
+ }, $ = (T) => {
8273
+ l.length <= h || d(T);
8274
+ }, S = (T, D, G) => {
8275
+ const z = `${e.name}.${D}.${T.name}`, F = p?.[e.name]?.[D] || {}, I = { ...p, ...F }, c = Ht(
8276
+ T,
8277
+ I,
8268
8278
  o,
8269
8279
  i
8270
8280
  );
8271
8281
  if (!c.visible)
8272
8282
  return null;
8273
- if (w.component === "Group")
8283
+ if (T.component === "Group")
8274
8284
  return /* @__PURE__ */ E(
8275
8285
  $t,
8276
8286
  {
8277
- size: eo(w.colSpan),
8278
- children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: w.columns?.map(
8279
- (M, D) => S(
8280
- { ...M, name: M.name },
8281
- j,
8282
- D
8287
+ size: eo(T.colSpan),
8288
+ children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: T.columns?.map(
8289
+ (_, U) => S(
8290
+ { ..._, name: _.name },
8291
+ D,
8292
+ U
8283
8293
  )
8284
8294
  ) })
8285
8295
  },
8286
- `${V}-${G}`
8296
+ `${z}-${G}`
8287
8297
  );
8288
- const T = r[w.component] ?? r.Text;
8289
- if (!T) return null;
8290
- const x = n[w.name] ?? w.ui?.options ?? [], N = eo(w.colSpan);
8291
- return /* @__PURE__ */ E($t, { size: N, children: /* @__PURE__ */ E(
8298
+ const w = r[T.component] ?? r.Text;
8299
+ if (!w) return null;
8300
+ const x = n[T.name] ?? T.ui?.options ?? [], P = eo(T.colSpan);
8301
+ return /* @__PURE__ */ E($t, { size: P, children: /* @__PURE__ */ E(
8292
8302
  jr,
8293
8303
  {
8294
8304
  control: t.control,
8295
- name: V,
8296
- render: ({ field: M, fieldState: D }) => /* @__PURE__ */ E(
8297
- T,
8305
+ name: z,
8306
+ render: ({ field: _, fieldState: U }) => /* @__PURE__ */ E(
8307
+ w,
8298
8308
  {
8299
- error: !!D.error,
8309
+ error: !!U.error,
8300
8310
  field: {
8301
- ...M,
8302
- onBlur: (F) => {
8303
- M.onBlur(), y(j, w.name);
8311
+ ..._,
8312
+ onBlur: (j) => {
8313
+ _.onBlur(), y(D, T.name);
8304
8314
  }
8305
8315
  },
8306
8316
  fieldProps: {
8307
- ...w.ui?.props,
8317
+ ...T.ui?.props,
8308
8318
  disabled: c.disabled,
8309
8319
  required: c.required,
8310
8320
  readOnly: c.readonly,
8311
- placeholder: w.ui?.placeholder
8321
+ placeholder: T.ui?.placeholder
8312
8322
  },
8313
8323
  form: t,
8314
- helperText: D.error?.message ?? w.ui?.helperText,
8315
- label: w.ui?.label,
8324
+ helperText: U.error?.message ?? T.ui?.helperText,
8325
+ label: T.ui?.label,
8316
8326
  options: x
8317
8327
  }
8318
8328
  )
8319
8329
  }
8320
- ) }, `${V}-${G}`);
8330
+ ) }, `${z}-${G}`);
8321
8331
  };
8322
8332
  return /* @__PURE__ */ fe(Gt, { children: [
8323
8333
  a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
8324
- l.map((w, j) => /* @__PURE__ */ fe(
8334
+ l.map((T, D) => /* @__PURE__ */ fe(
8325
8335
  li,
8326
8336
  {
8327
8337
  variant: "outlined",
@@ -8342,42 +8352,42 @@ const Tr = ({
8342
8352
  Nr,
8343
8353
  {
8344
8354
  size: "small",
8345
- onClick: () => I(j),
8355
+ onClick: () => M(D),
8346
8356
  title: "复制",
8347
- children: /* @__PURE__ */ E(rc, { fontSize: "small" })
8357
+ children: /* @__PURE__ */ E(nc, { fontSize: "small" })
8348
8358
  }
8349
8359
  ),
8350
8360
  l.length > h && !o && /* @__PURE__ */ E(
8351
8361
  Nr,
8352
8362
  {
8353
8363
  size: "small",
8354
- onClick: () => $(j),
8364
+ onClick: () => $(D),
8355
8365
  color: "error",
8356
8366
  title: "删除",
8357
- children: /* @__PURE__ */ E(nc, { fontSize: "small" })
8367
+ children: /* @__PURE__ */ E(oc, { fontSize: "small" })
8358
8368
  }
8359
8369
  )
8360
8370
  ]
8361
8371
  }
8362
8372
  ),
8363
- /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, V) => S(G, j, V)) })
8373
+ /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, z) => S(G, D, z)) })
8364
8374
  ]
8365
8375
  },
8366
- w.id
8376
+ T.id
8367
8377
  )),
8368
8378
  l.length < f && !o && /* @__PURE__ */ E(Dr, { children: /* @__PURE__ */ E(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ E(
8369
8379
  ii,
8370
8380
  {
8371
8381
  variant: "text",
8372
8382
  size: "small",
8373
- startIcon: /* @__PURE__ */ E(tc, {}),
8383
+ startIcon: /* @__PURE__ */ E(rc, {}),
8374
8384
  onClick: k,
8375
8385
  children: g
8376
8386
  }
8377
8387
  ) }) })
8378
8388
  ] });
8379
8389
  };
8380
- function pu(e) {
8390
+ function mu(e) {
8381
8391
  return e ? typeof e == "object" && ("xs" in e || "sm" in e || "md" in e) ? e : { xs: e } : { xs: 12 };
8382
8392
  }
8383
8393
  const to = ({
@@ -8406,7 +8416,7 @@ const to = ({
8406
8416
  const y = r[u.component] ?? r.Text;
8407
8417
  if (!y)
8408
8418
  return null;
8409
- const p = n[u.name] ?? u.ui?.options ?? [], b = pu(u.colSpan);
8419
+ const p = n[u.name] ?? u.ui?.options ?? [], b = mu(u.colSpan);
8410
8420
  return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
8411
8421
  y,
8412
8422
  {
@@ -8505,7 +8515,7 @@ const to = ({
8505
8515
  })
8506
8516
  })), so = ({ field: e, label: t, options: r = [], error: n, helperText: o, fieldProps: i }) => {
8507
8517
  const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ E(
8508
- Ei,
8518
+ Oi,
8509
8519
  {
8510
8520
  row: !0,
8511
8521
  onChange: (m) => {
@@ -8517,7 +8527,7 @@ const to = ({
8517
8527
  children: r.map((m) => /* @__PURE__ */ E(
8518
8528
  Vr,
8519
8529
  {
8520
- control: /* @__PURE__ */ E(Oi, { size: "small" }),
8530
+ control: /* @__PURE__ */ E($i, { size: "small" }),
8521
8531
  disabled: m.disabled,
8522
8532
  label: m.label,
8523
8533
  value: String(m.value)
@@ -8568,7 +8578,7 @@ const to = ({
8568
8578
  }, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { children: [
8569
8579
  t && /* @__PURE__ */ E(jt, { children: t }),
8570
8580
  /* @__PURE__ */ E(
8571
- $i,
8581
+ Ri,
8572
8582
  {
8573
8583
  value: e.value ?? 0,
8574
8584
  onChange: (n, o) => e.onChange(o),
@@ -8580,7 +8590,7 @@ const to = ({
8580
8590
  ] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { fullWidth: !0, children: [
8581
8591
  t && /* @__PURE__ */ E(jt, { children: t }),
8582
8592
  /* @__PURE__ */ E(
8583
- Ri,
8593
+ ki,
8584
8594
  {
8585
8595
  value: e.value ?? 0,
8586
8596
  onChange: (n, o) => e.onChange(o),
@@ -8593,7 +8603,7 @@ const to = ({
8593
8603
  Vr,
8594
8604
  {
8595
8605
  control: /* @__PURE__ */ E(
8596
- ki,
8606
+ Ai,
8597
8607
  {
8598
8608
  checked: e.value ?? !1,
8599
8609
  disabled: o?.disabled,
@@ -8656,7 +8666,7 @@ const to = ({
8656
8666
  helperText: n,
8657
8667
  fieldProps: o
8658
8668
  }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
8659
- Ii,
8669
+ Mi,
8660
8670
  {
8661
8671
  disabled: o?.disabled,
8662
8672
  onChange: (i) => e.onChange(i),
@@ -8674,7 +8684,7 @@ const to = ({
8674
8684
  value: e.value ?? null,
8675
8685
  ...o
8676
8686
  }
8677
- ) }), mu = {
8687
+ ) }), hu = {
8678
8688
  // 标准大小写
8679
8689
  Hidden: ro,
8680
8690
  Text: fo,
@@ -8717,7 +8727,7 @@ const to = ({
8717
8727
  formList: Tr,
8718
8728
  formlist: Tr
8719
8729
  };
8720
- async function hu(e, t) {
8730
+ async function gu(e, t) {
8721
8731
  const r = e.ui?.optionRequest;
8722
8732
  if (!r)
8723
8733
  return null;
@@ -8727,15 +8737,15 @@ async function hu(e, t) {
8727
8737
  return e.ui?.options ?? [];
8728
8738
  }
8729
8739
  }
8730
- function gu(e, t) {
8731
- const [r, n] = Ne({}), o = Ye({}), i = Ye(/* @__PURE__ */ new Set()), a = Ye({});
8732
- return De(() => {
8740
+ function yu(e, t) {
8741
+ const [r, n] = Ne({}), o = De({}), i = De(/* @__PURE__ */ new Set()), a = De({});
8742
+ return je(() => {
8733
8743
  i.current.clear(), o.current = {}, a.current = {};
8734
8744
  const l = {};
8735
8745
  for (const u of e)
8736
8746
  l[u.name] = u.ui?.options ?? [];
8737
8747
  n(l);
8738
- }, [e]), De(() => {
8748
+ }, [e]), je(() => {
8739
8749
  e.forEach(async (l) => {
8740
8750
  if (!l.ui?.optionRequest) return;
8741
8751
  const u = l.name, d = l.dependencies || [];
@@ -8758,7 +8768,7 @@ function gu(e, t) {
8758
8768
  const p = (a.current[u] || 0) + 1;
8759
8769
  a.current[u] = p;
8760
8770
  try {
8761
- const b = await hu(l, t);
8771
+ const b = await gu(l, t);
8762
8772
  a.current[u] === p && b !== null && n((h) => ({
8763
8773
  ...h,
8764
8774
  [u]: b
@@ -8770,7 +8780,7 @@ function gu(e, t) {
8770
8780
  });
8771
8781
  }, [e, t]), r;
8772
8782
  }
8773
- function yu(e, t) {
8783
+ function bu(e, t) {
8774
8784
  const {
8775
8785
  schema: r,
8776
8786
  defaultValues: n,
@@ -8782,75 +8792,75 @@ function yu(e, t) {
8782
8792
  widgets: d = {},
8783
8793
  children: m,
8784
8794
  spacing: y
8785
- } = e, p = qe(() => Vi(r), [r]), b = Ye(void 0);
8795
+ } = e, p = Ge(() => zi(r), [r]), b = De(void 0);
8786
8796
  b.current === void 0 && (b.current = {
8787
8797
  ...p.defaultValues,
8788
8798
  ...n || {}
8789
8799
  });
8790
- const h = qe(() => ({ ...mu, ...d }), [d]), f = qe(() => Fi(p), [p]), g = bi({
8800
+ const h = Ge(() => ({ ...hu, ...d }), [d]), f = Ge(() => qi(p), [p]), g = vi({
8791
8801
  defaultValues: b.current,
8792
8802
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8793
8803
  resolver: f,
8794
8804
  mode: "onBlur",
8795
8805
  reValidateMode: "onBlur"
8796
- }), C = qe(() => Di(p), [p]), k = vi({
8806
+ }), C = Ge(() => ji(p), [p]), k = Si({
8797
8807
  control: g.control,
8798
8808
  name: C
8799
- }), I = qe(() => {
8800
- const P = {};
8801
- return Array.isArray(k) && C.forEach((c, T) => {
8802
- P[c] = k[T];
8803
- }), P;
8804
- }, [k, C]), $ = gu(p.allFields, I), S = Ye({});
8805
- De(() => {
8806
- const P = S.current;
8807
- if (Object.keys(P).length === 0) {
8808
- S.current = { ...I };
8809
+ }), M = Ge(() => {
8810
+ const I = {};
8811
+ return Array.isArray(k) && C.forEach((c, w) => {
8812
+ I[c] = k[w];
8813
+ }), I;
8814
+ }, [k, C]), $ = yu(p.allFields, M), S = De({});
8815
+ je(() => {
8816
+ const I = S.current;
8817
+ if (Object.keys(I).length === 0) {
8818
+ S.current = { ...M };
8809
8819
  return;
8810
8820
  }
8811
8821
  const c = {};
8812
- let T = !1;
8822
+ let w = !1;
8813
8823
  for (const x of p.allFields)
8814
8824
  if (x.dependencies?.length && x.dependencies.some(
8815
- (M) => I[M] !== P[M]
8825
+ (_) => M[_] !== I[_]
8816
8826
  )) {
8817
- const M = g.getValues(x.name);
8818
- M != null && M !== "" && (c[x.name] = null, T = !0);
8827
+ const _ = g.getValues(x.name);
8828
+ _ != null && _ !== "" && (c[x.name] = null, w = !0);
8819
8829
  }
8820
- T && Object.entries(c).forEach(([x, N]) => {
8821
- g.setValue(x, N, {
8830
+ w && Object.entries(c).forEach(([x, P]) => {
8831
+ g.setValue(x, P, {
8822
8832
  shouldValidate: !0,
8823
8833
  shouldDirty: !0,
8824
8834
  shouldTouch: !0
8825
8835
  });
8826
- }), S.current = { ...I };
8827
- }, [I, p.allFields, g]), De(() => {
8836
+ }), S.current = { ...M };
8837
+ }, [M, p.allFields, g]), je(() => {
8828
8838
  i && i(g.getValues());
8829
- }, [I, i, g]);
8830
- const w = qe(() => p.allFields.filter((P) => P.compute).map((P) => ({
8831
- name: P.name,
8832
- expr: P.compute.expr,
8833
- dependencies: P.compute.dependencies || xo(P.compute.expr),
8834
- precision: P.compute.precision,
8835
- roundMode: P.compute.roundMode
8836
- })), [p.allFields]), j = Ye({});
8837
- De(() => {
8838
- if (w.length === 0) return;
8839
- let P = !1;
8839
+ }, [M, i, g]);
8840
+ const T = Ge(() => p.allFields.filter((I) => I.compute).map((I) => ({
8841
+ name: I.name,
8842
+ expr: I.compute.expr,
8843
+ dependencies: I.compute.dependencies || xo(I.compute.expr),
8844
+ precision: I.compute.precision,
8845
+ roundMode: I.compute.roundMode
8846
+ })), [p.allFields]), D = De({});
8847
+ je(() => {
8848
+ if (T.length === 0) return;
8849
+ let I = !1;
8840
8850
  const c = {};
8841
- for (const { name: T, expr: x, dependencies: N, precision: M, roundMode: D } of w) {
8842
- const F = N.map((L) => `${L}:${I[L]}`).join("|"), U = j.current[T];
8843
- if (F === U)
8851
+ for (const { name: w, expr: x, dependencies: P, precision: _, roundMode: U } of T) {
8852
+ const j = P.map((L) => `${L}:${M[L]}`).join("|"), W = D.current[w];
8853
+ if (j === W)
8844
8854
  continue;
8845
- if (!N.every((L) => Fr(I[L]))) {
8846
- j.current[T] = F;
8855
+ if (!P.every((L) => Fr(M[L]))) {
8856
+ D.current[w] = j;
8847
8857
  continue;
8848
8858
  }
8849
- const R = Co(x, I, N, M, D), z = g.getValues(T);
8850
- R !== void 0 && R !== z && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
8851
- (typeof R != "number" || typeof z != "number" || Math.abs(R - z) > 1e-4) && (c[T] = R, P = !0), j.current[T] = F;
8859
+ const R = Co(x, M, P, _, U), V = g.getValues(w);
8860
+ R !== void 0 && R !== V && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
8861
+ (typeof R != "number" || typeof V != "number" || Math.abs(R - V) > 1e-4) && (c[w] = R, I = !0), D.current[w] = j;
8852
8862
  }
8853
- P && g.reset(
8863
+ I && g.reset(
8854
8864
  {
8855
8865
  ...g.getValues(),
8856
8866
  ...c
@@ -8869,22 +8879,22 @@ function yu(e, t) {
8869
8879
  // keepDirty: true means "if a field was dirty, keep it dirty".
8870
8880
  }
8871
8881
  );
8872
- }, [I, w, g]);
8882
+ }, [M, T, g]);
8873
8883
  const G = ho(
8874
- async (P) => {
8875
- const c = g.getValues(), T = {};
8884
+ async (I) => {
8885
+ const c = g.getValues(), w = {};
8876
8886
  for (const x of p.allFields) {
8877
8887
  if (x.noSubmit)
8878
8888
  continue;
8879
- const N = x.name;
8880
- let M = N in P ? P[N] : c[N];
8881
- x.transform ? T[N] = x.transform(M, c) : T[N] = M;
8889
+ const P = x.name;
8890
+ let _ = P in I ? I[P] : c[P];
8891
+ x.transform ? w[P] = x.transform(_, c) : w[P] = _;
8882
8892
  }
8883
- o && await o(T);
8893
+ o && await o(w);
8884
8894
  },
8885
8895
  [p.allFields, o, g]
8886
8896
  );
8887
- gi(
8897
+ yi(
8888
8898
  t,
8889
8899
  () => ({
8890
8900
  ...g,
@@ -8892,29 +8902,29 @@ function yu(e, t) {
8892
8902
  await g.handleSubmit(G)();
8893
8903
  },
8894
8904
  getFormValues: () => {
8895
- const c = g.getValues(), T = {};
8905
+ const c = g.getValues(), w = {};
8896
8906
  for (const x of p.allFields)
8897
- x.noSubmit || (T[x.name] = c[x.name]);
8898
- return T;
8907
+ x.noSubmit || (w[x.name] = c[x.name]);
8908
+ return w;
8899
8909
  },
8900
8910
  setValues: (c) => {
8901
- for (const [T, x] of Object.entries(c))
8902
- x !== void 0 && g.setValue(T, x);
8911
+ for (const [w, x] of Object.entries(c))
8912
+ x !== void 0 && g.setValue(w, x);
8903
8913
  }
8904
8914
  }),
8905
8915
  [g, p, G]
8906
8916
  );
8907
- const V = () => p.input.fields.flatMap((c, T) => {
8917
+ const z = () => p.input.fields.flatMap((c, w) => {
8908
8918
  if (c.component === "Hidden")
8909
8919
  return [];
8910
8920
  const x = [];
8911
- return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${T}-newline`)), x.push(
8921
+ return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${w}-newline`)), x.push(
8912
8922
  /* @__PURE__ */ E(
8913
- Ul,
8923
+ Yl,
8914
8924
  {
8915
8925
  field: c,
8916
- index: T,
8917
- values: I,
8926
+ index: w,
8927
+ values: M,
8918
8928
  form: g,
8919
8929
  disabled: u,
8920
8930
  readOnly: l,
@@ -8922,16 +8932,16 @@ function yu(e, t) {
8922
8932
  optionsMap: $,
8923
8933
  useGrid: a
8924
8934
  },
8925
- `${String(c.name)}-${T}`
8935
+ `${String(c.name)}-${w}`
8926
8936
  )
8927
8937
  ), x;
8928
- }), W = y ?? r.layout?.spacing ?? 2;
8929
- return /* @__PURE__ */ E(Si, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8930
- a ? /* @__PURE__ */ E(Yl, { spacing: W, children: V() }) : /* @__PURE__ */ E(Hl, { spacing: W, children: V() }),
8938
+ }), F = y ?? r.layout?.spacing ?? 2;
8939
+ return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8940
+ a ? /* @__PURE__ */ E(Hl, { spacing: F, children: z() }) : /* @__PURE__ */ E(Kl, { spacing: F, children: z() }),
8931
8941
  m
8932
8942
  ] }) });
8933
8943
  }
8934
- const _u = mo(yu);
8944
+ const Nu = mo(bu);
8935
8945
  export {
8936
8946
  Mt as AutocompleteWidget,
8937
8947
  Fn as CheckboxWidget,
@@ -8940,33 +8950,33 @@ export {
8940
8950
  Wn as DATE_FORMAT,
8941
8951
  Gn as DateTimeWidget,
8942
8952
  Un as DateWidget,
8943
- Ul as FieldRenderer,
8953
+ Yl as FieldRenderer,
8944
8954
  Tr as FormListWidget,
8945
- Yl as GridLayout,
8955
+ Hl as GridLayout,
8946
8956
  to as GroupWidget,
8947
8957
  ro as HiddenWidget,
8948
8958
  no as NumberWidget,
8949
8959
  oo as PasswordWidget,
8950
8960
  so as RadioWidget,
8951
8961
  ao as RatingWidget,
8952
- _u as SchemaForm,
8962
+ Nu as SchemaForm,
8953
8963
  Mt as SelectWidget,
8954
8964
  lo as SliderWidget,
8955
- Hl as StackLayout,
8965
+ Kl as StackLayout,
8956
8966
  co as SwitchWidget,
8957
8967
  fo as TextWidget,
8958
8968
  uo as TextareaWidget,
8959
8969
  po as TimeWidget,
8960
- Li as buildValibotSchema,
8970
+ Fi as buildValibotSchema,
8961
8971
  ke as compactFieldStyles,
8962
- Pu as computeAllFieldStates,
8972
+ Iu as computeAllFieldStates,
8963
8973
  Ht as computeFieldState,
8964
- Fi as createDynamicResolver,
8965
- mu as defaultWidgets,
8966
- je as evaluateCondition,
8974
+ qi as createDynamicResolver,
8975
+ hu as defaultWidgets,
8976
+ Ve as evaluateCondition,
8967
8977
  nt as extractDependencies,
8968
- Iu as getDownstreamFields,
8969
- Di as getWatchFields,
8970
- Mu as mergeDefaultValues,
8971
- Vi as parseSchema
8978
+ Mu as getDownstreamFields,
8979
+ ji as getWatchFields,
8980
+ _u as mergeDefaultValues,
8981
+ zi as parseSchema
8972
8982
  };