@fastspace/schema-form 0.0.6 → 0.0.7

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,11 +1,11 @@
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 Be, useEffect as _e, useCallback as ho, useRef as rt, isValidElement as _t, cloneElement as Nt, Children as hi, useMemo as qe, useImperativeHandle as gi } from "react";
5
- import { Controller as Vr, useFieldArray as yi, useForm as bi, useWatch as vi, FormProvider as Si } from "react-hook-form";
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
6
  import { ThemeContext as xi, keyframes as St, css as go } from "@emotion/react";
7
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 jr, Checkbox as wi, FormHelperText as zr, Grid as $t, RadioGroup as Ei, Radio as Oi, Stack as nn, FormLabel as Vt, Rating as $i, Slider as Ri, Switch as ki } from "@mui/material";
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";
9
9
  import { LocalizationProvider as Wr } from "@mui/x-date-pickers";
10
10
  import { AdapterDayjs as Lr } from "@mui/x-date-pickers/AdapterDayjs";
11
11
  import { DateTimePicker as Ai } from "@mui/x-date-pickers/DateTimePicker";
@@ -36,9 +36,9 @@ function Ni(e, t) {
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
38
  function Bi(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;
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;
40
40
  }
41
- function Ve(e, t) {
41
+ function je(e, t) {
42
42
  return e ? typeof e == "function" ? e(t) : So(e) ? Ni(e, t) : _i(e) ? Bi(e, t) : !0 : !0;
43
43
  }
44
44
  function nt(e) {
@@ -56,11 +56,11 @@ 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 = Ve(e.visibleWhen, t));
59
+ o && e.visibleWhen && (o = je(e.visibleWhen, t));
60
60
  let i = e.disabled ?? !1;
61
- !i && e.disabledWhen && (i = Ve(e.disabledWhen, t)), r && (i = !0);
61
+ !i && e.disabledWhen && (i = je(e.disabledWhen, t)), r && (i = !0);
62
62
  let a = e.rules?.some((u) => u.type === "required") ?? !1;
63
- !a && e.requiredWhen && (a = Ve(e.requiredWhen, t));
63
+ !a && e.requiredWhen && (a = je(e.requiredWhen, t));
64
64
  const l = e.readonly ?? n;
65
65
  return { visible: o, disabled: i, required: a, readonly: l };
66
66
  }
@@ -98,7 +98,7 @@ function Di(e) {
98
98
  }
99
99
  return Array.from(t);
100
100
  }
101
- function Vi(e) {
101
+ function ji(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 Vi(e) {
119
119
  ]);
120
120
  return r.filter((o) => !n.has(o));
121
121
  }
122
- function ji(e) {
122
+ function Vi(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 ji(e) {
146
146
  for (const d of a.compute.dependencies)
147
147
  u.add(d);
148
148
  else
149
- for (const d of Vi(a.compute.expr))
149
+ for (const d of ji(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);
@@ -179,7 +179,7 @@ function Mu(e, t) {
179
179
  };
180
180
  }
181
181
  function zi(e, t) {
182
- return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ? Ve(e.requiredWhen, t) : !1;
182
+ return e.rules?.some((n) => n.type === "required") ? !0 : e.requiredWhen ? je(e.requiredWhen, t) : !1;
183
183
  }
184
184
  function Wi(e) {
185
185
  const t = e.rules?.find((n) => n.type === "required"), r = e.ui?.label ?? String(e.name);
@@ -351,7 +351,7 @@ function Li(e, t) {
351
351
  continue;
352
352
  }
353
353
  if (n.component !== "Group") {
354
- if (n.visibleWhen && !Ve(n.visibleWhen, t)) {
354
+ if (n.visibleWhen && !je(n.visibleWhen, t)) {
355
355
  r[n.name] = A.optional(A.unknown());
356
356
  continue;
357
357
  }
@@ -440,7 +440,7 @@ var on;
440
440
  function Gi() {
441
441
  if (on) return te;
442
442
  on = 1;
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, p = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = 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;
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
444
  function I(S) {
445
445
  if (typeof S == "object" && S !== null) {
446
446
  var w = S.$$typeof;
@@ -457,7 +457,7 @@ function Gi() {
457
457
  default:
458
458
  switch (S = S && S.$$typeof, S) {
459
459
  case l:
460
- case p:
460
+ case m:
461
461
  case h:
462
462
  case b:
463
463
  case a:
@@ -474,7 +474,7 @@ function Gi() {
474
474
  function $(S) {
475
475
  return I(S) === d;
476
476
  }
477
- return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = a, te.Element = t, te.ForwardRef = p, 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) {
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
478
  return $(S) || I(S) === u;
479
479
  }, te.isConcurrentMode = $, te.isContextConsumer = function(S) {
480
480
  return I(S) === l;
@@ -483,7 +483,7 @@ function Gi() {
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) === p;
486
+ return I(S) === m;
487
487
  }, te.isFragment = function(S) {
488
488
  return I(S) === n;
489
489
  }, te.isLazy = function(S) {
@@ -499,37 +499,37 @@ function Gi() {
499
499
  }, te.isSuspense = function(S) {
500
500
  return I(S) === y;
501
501
  }, te.isValidElementType = function(S) {
502
- return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === m || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === p || S.$$typeof === g || S.$$typeof === C || S.$$typeof === k || S.$$typeof === f);
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
503
  }, te.typeOf = I, te;
504
504
  }
505
505
  var re = {};
506
506
  var sn;
507
507
  function Ui() {
508
508
  return sn || (sn = 1, process.env.NODE_ENV !== "production" && (function() {
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, p = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = 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;
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
510
  function I(_) {
511
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 || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === b || _.$$typeof === a || _.$$typeof === l || _.$$typeof === p || _.$$typeof === g || _.$$typeof === C || _.$$typeof === k || _.$$typeof === f);
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);
513
513
  }
514
514
  function $(_) {
515
515
  if (typeof _ == "object" && _ !== null) {
516
516
  var ye = _.$$typeof;
517
517
  switch (ye) {
518
518
  case t:
519
- var Ne = _.type;
520
- switch (Ne) {
519
+ var _e = _.type;
520
+ switch (_e) {
521
521
  case u:
522
522
  case d:
523
523
  case n:
524
524
  case i:
525
525
  case o:
526
526
  case y:
527
- return Ne;
527
+ return _e;
528
528
  default:
529
- var wt = Ne && Ne.$$typeof;
529
+ var wt = _e && _e.$$typeof;
530
530
  switch (wt) {
531
531
  case l:
532
- case p:
532
+ case m:
533
533
  case h:
534
534
  case b:
535
535
  case a:
@@ -543,7 +543,7 @@ function Ui() {
543
543
  }
544
544
  }
545
545
  }
546
- var S = u, w = d, V = l, G = a, j = t, W = p, P = n, c = h, T = b, x = r, N = i, M = o, D = y, F = !1;
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
547
  function U(_) {
548
548
  return F || (F = !0), O(_) || $(_) === u;
549
549
  }
@@ -560,7 +560,7 @@ function Ui() {
560
560
  return typeof _ == "object" && _ !== null && _.$$typeof === t;
561
561
  }
562
562
  function q(_) {
563
- return $(_) === p;
563
+ return $(_) === m;
564
564
  }
565
565
  function X(_) {
566
566
  return $(_) === n;
@@ -583,7 +583,7 @@ function Ui() {
583
583
  function me(_) {
584
584
  return $(_) === y;
585
585
  }
586
- re.AsyncMode = S, re.ConcurrentMode = w, re.ContextConsumer = V, re.ContextProvider = G, re.Element = j, 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 = 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 = $;
587
587
  })()), re;
588
588
  }
589
589
  var an;
@@ -609,28 +609,28 @@ function Yi() {
609
609
  return !1;
610
610
  for (var a = {}, l = 0; l < 10; l++)
611
611
  a["_" + String.fromCharCode(l)] = l;
612
- var u = Object.getOwnPropertyNames(a).map(function(p) {
613
- return a[p];
612
+ var u = Object.getOwnPropertyNames(a).map(function(m) {
613
+ return a[m];
614
614
  });
615
615
  if (u.join("") !== "0123456789")
616
616
  return !1;
617
617
  var d = {};
618
- return "abcdefghijklmnopqrst".split("").forEach(function(p) {
619
- d[p] = p;
618
+ return "abcdefghijklmnopqrst".split("").forEach(function(m) {
619
+ d[m] = m;
620
620
  }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
621
621
  } catch {
622
622
  return !1;
623
623
  }
624
624
  }
625
625
  return dr = o() ? Object.assign : function(i, a) {
626
- for (var l, u = n(i), d, p = 1; p < arguments.length; p++) {
627
- l = Object(arguments[p]);
626
+ for (var l, u = n(i), d, m = 1; m < arguments.length; m++) {
627
+ l = Object(arguments[m]);
628
628
  for (var y in l)
629
629
  t.call(l, y) && (u[y] = l[y]);
630
630
  if (e) {
631
631
  d = e(l);
632
- for (var m = 0; m < d.length; m++)
633
- r.call(l, d[m]) && (u[d[m]] = l[d[m]]);
632
+ for (var p = 0; p < d.length; p++)
633
+ r.call(l, d[p]) && (u[d[p]] = l[d[p]]);
634
634
  }
635
635
  }
636
636
  return u;
@@ -665,22 +665,22 @@ function Hi() {
665
665
  }
666
666
  function o(i, a, l, u, d) {
667
667
  if (process.env.NODE_ENV !== "production") {
668
- for (var p in i)
669
- if (n(i, p)) {
668
+ for (var m in i)
669
+ if (n(i, m)) {
670
670
  var y;
671
671
  try {
672
- if (typeof i[p] != "function") {
673
- var m = Error(
674
- (u || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
672
+ if (typeof i[m] != "function") {
673
+ var p = Error(
674
+ (u || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
675
675
  );
676
- throw m.name = "Invariant Violation", m;
676
+ throw p.name = "Invariant Violation", p;
677
677
  }
678
- y = i[p](a, p, u, l, null, t);
678
+ y = i[m](a, m, u, l, null, t);
679
679
  } catch (h) {
680
680
  y = h;
681
681
  }
682
682
  if (y && !(y instanceof Error) && e(
683
- (u || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
683
+ (u || "React class") + ": type specification of " + l + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
684
684
  ), y instanceof Error && !(y.message in r)) {
685
685
  r[y.message] = !0;
686
686
  var b = d ? d() : "";
@@ -712,13 +712,13 @@ function Ki() {
712
712
  return null;
713
713
  }
714
714
  return gr = function(l, u) {
715
- var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
715
+ var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
716
716
  function y(O) {
717
- var R = O && (d && O[d] || O[p]);
717
+ var R = O && (d && O[d] || O[m]);
718
718
  if (typeof R == "function")
719
719
  return R;
720
720
  }
721
- var m = "<<anonymous>>", b = {
721
+ var p = "<<anonymous>>", b = {
722
722
  array: C("array"),
723
723
  bigint: C("bigint"),
724
724
  bool: C("boolean"),
@@ -734,8 +734,8 @@ function Ki() {
734
734
  instanceOf: w,
735
735
  node: W(),
736
736
  objectOf: G,
737
- oneOf: V,
738
- oneOfType: j,
737
+ oneOf: j,
738
+ oneOfType: V,
739
739
  shape: c,
740
740
  exact: T
741
741
  };
@@ -750,7 +750,7 @@ function Ki() {
750
750
  if (process.env.NODE_ENV !== "production")
751
751
  var R = {}, z = 0;
752
752
  function L(X, H, K, Q, ee, J, me) {
753
- if (Q = Q || m, J = J || K, me !== r) {
753
+ if (Q = Q || p, J = J || K, me !== r) {
754
754
  if (u) {
755
755
  var _ = 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"
@@ -829,14 +829,14 @@ function Ki() {
829
829
  function w(O) {
830
830
  function R(z, L, q, X, H) {
831
831
  if (!(z[L] instanceof O)) {
832
- var K = O.name || m, Q = U(z[L]);
832
+ var K = O.name || p, Q = U(z[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 V(O) {
839
+ function j(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])."
@@ -870,7 +870,7 @@ function Ki() {
870
870
  }
871
871
  return g(R);
872
872
  }
873
- function j(O) {
873
+ function V(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++) {
@@ -1010,7 +1010,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
1010
1010
  }
1011
1011
  }
1012
1012
  function U(O) {
1013
- return !O.constructor || !O.constructor.name ? m : O.constructor.name;
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;
@@ -1025,12 +1025,12 @@ function Xi() {
1025
1025
  function r() {
1026
1026
  }
1027
1027
  return r.resetWarningCache = t, yr = function() {
1028
- function n(a, l, u, d, p, y) {
1028
+ function n(a, l, u, d, m, y) {
1029
1029
  if (y !== e) {
1030
- var m = new Error(
1030
+ var p = new Error(
1031
1031
  "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"
1032
1032
  );
1033
- throw m.name = "Invariant Violation", m;
1033
+ throw p.name = "Invariant Violation", p;
1034
1034
  }
1035
1035
  }
1036
1036
  n.isRequired = n;
@@ -1227,16 +1227,16 @@ var is = /[A-Z]|^ms/g, ss = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
1227
1227
  case "animationName":
1228
1228
  if (typeof r == "string")
1229
1229
  return r.replace(ss, function(n, o, i) {
1230
- return De = {
1230
+ return Be = {
1231
1231
  name: o,
1232
1232
  styles: i,
1233
- next: De
1233
+ next: Be
1234
1234
  }, o;
1235
1235
  });
1236
1236
  }
1237
1237
  return ns[t] !== 1 && !$o(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1238
1238
  };
1239
- function jt(e, t, r) {
1239
+ function Vt(e, t, r) {
1240
1240
  if (r == null)
1241
1241
  return "";
1242
1242
  var n = r;
@@ -1248,20 +1248,20 @@ function jt(e, t, r) {
1248
1248
  case "object": {
1249
1249
  var o = r;
1250
1250
  if (o.anim === 1)
1251
- return De = {
1251
+ return Be = {
1252
1252
  name: o.name,
1253
1253
  styles: o.styles,
1254
- next: De
1254
+ next: Be
1255
1255
  }, o.name;
1256
1256
  var i = r;
1257
1257
  if (i.styles !== void 0) {
1258
1258
  var a = i.next;
1259
1259
  if (a !== void 0)
1260
1260
  for (; a !== void 0; )
1261
- De = {
1261
+ Be = {
1262
1262
  name: a.name,
1263
1263
  styles: a.styles,
1264
- next: De
1264
+ next: Be
1265
1265
  }, a = a.next;
1266
1266
  var l = i.styles + ";";
1267
1267
  return l;
@@ -1276,7 +1276,7 @@ function as(e, t, r) {
1276
1276
  var n = "";
1277
1277
  if (Array.isArray(r))
1278
1278
  for (var o = 0; o < r.length; o++)
1279
- n += jt(e, t, r[o]) + ";";
1279
+ n += Vt(e, t, r[o]) + ";";
1280
1280
  else
1281
1281
  for (var i in r) {
1282
1282
  var a = r[i];
@@ -1287,7 +1287,7 @@ function as(e, t, r) {
1287
1287
  for (var u = 0; u < a.length; u++)
1288
1288
  gn(a[u]) && (n += br(i) + ":" + yn(i, a[u]) + ";");
1289
1289
  else {
1290
- var d = jt(e, t, a);
1290
+ var d = Vt(e, t, a);
1291
1291
  switch (i) {
1292
1292
  case "animation":
1293
1293
  case "animationName": {
@@ -1301,32 +1301,32 @@ function as(e, t, r) {
1301
1301
  }
1302
1302
  return n;
1303
1303
  }
1304
- var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, De;
1304
+ var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, Be;
1305
1305
  function ls(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 = "";
1309
- De = void 0;
1309
+ Be = void 0;
1310
1310
  var i = e[0];
1311
1311
  if (i == null || i.raw === void 0)
1312
- n = !1, o += jt(r, t, i);
1312
+ n = !1, o += Vt(r, t, i);
1313
1313
  else {
1314
1314
  var a = i;
1315
1315
  o += a[0];
1316
1316
  }
1317
1317
  for (var l = 1; l < e.length; l++)
1318
- if (o += jt(r, t, e[l]), n) {
1318
+ if (o += Vt(r, t, e[l]), n) {
1319
1319
  var u = i;
1320
1320
  o += u[l];
1321
1321
  }
1322
1322
  bn.lastIndex = 0;
1323
- for (var d = "", p; (p = bn.exec(o)) !== null; )
1324
- d += "-" + p[1];
1323
+ for (var d = "", m; (m = bn.exec(o)) !== null; )
1324
+ d += "-" + m[1];
1325
1325
  var y = rs(o) + d;
1326
1326
  return {
1327
1327
  name: y,
1328
1328
  styles: o,
1329
- next: De
1329
+ next: Be
1330
1330
  };
1331
1331
  }
1332
1332
  function Ro(e, t) {
@@ -1340,7 +1340,7 @@ function cs(e, t) {
1340
1340
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
1341
1341
  }
1342
1342
  const vn = [];
1343
- function Ye(e) {
1343
+ function He(e) {
1344
1344
  return vn[0] = e, ls(vn);
1345
1345
  }
1346
1346
  var Pt = { exports: {} }, ie = {};
@@ -1348,7 +1348,7 @@ var Sn;
1348
1348
  function us() {
1349
1349
  if (Sn) return ie;
1350
1350
  Sn = 1;
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"), p = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
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");
1352
1352
  function h(f) {
1353
1353
  if (typeof f == "object" && f !== null) {
1354
1354
  var g = f.$$typeof;
@@ -1360,14 +1360,14 @@ function us() {
1360
1360
  case n:
1361
1361
  case u:
1362
1362
  case d:
1363
- case m:
1363
+ case p:
1364
1364
  return f;
1365
1365
  default:
1366
1366
  switch (f = f && f.$$typeof, f) {
1367
1367
  case a:
1368
1368
  case l:
1369
1369
  case y:
1370
- case p:
1370
+ case m:
1371
1371
  return f;
1372
1372
  case i:
1373
1373
  return f;
@@ -1380,7 +1380,7 @@ function us() {
1380
1380
  }
1381
1381
  }
1382
1382
  }
1383
- return ie.ContextConsumer = i, ie.ContextProvider = a, ie.Element = e, ie.ForwardRef = l, ie.Fragment = r, ie.Lazy = y, ie.Memo = p, ie.Portal = t, ie.Profiler = o, ie.StrictMode = n, ie.Suspense = u, ie.SuspenseList = d, ie.isContextConsumer = function(f) {
1383
+ return ie.ContextConsumer = i, ie.ContextProvider = a, ie.Element = e, ie.ForwardRef = l, ie.Fragment = r, ie.Lazy = y, ie.Memo = m, ie.Portal = t, ie.Profiler = o, ie.StrictMode = n, ie.Suspense = u, ie.SuspenseList = d, ie.isContextConsumer = function(f) {
1384
1384
  return h(f) === i;
1385
1385
  }, ie.isContextProvider = function(f) {
1386
1386
  return h(f) === a;
@@ -1393,7 +1393,7 @@ function us() {
1393
1393
  }, ie.isLazy = function(f) {
1394
1394
  return h(f) === y;
1395
1395
  }, ie.isMemo = function(f) {
1396
- return h(f) === p;
1396
+ return h(f) === m;
1397
1397
  }, ie.isPortal = function(f) {
1398
1398
  return h(f) === t;
1399
1399
  }, ie.isProfiler = function(f) {
@@ -1405,7 +1405,7 @@ function us() {
1405
1405
  }, ie.isSuspenseList = function(f) {
1406
1406
  return h(f) === d;
1407
1407
  }, ie.isValidElementType = function(f) {
1408
- return typeof f == "string" || typeof f == "function" || f === r || f === o || f === n || f === u || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === p || f.$$typeof === a || f.$$typeof === i || f.$$typeof === l || f.$$typeof === b || f.getModuleId !== void 0);
1408
+ return typeof f == "string" || typeof f == "function" || f === r || f === o || f === n || f === u || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === m || f.$$typeof === a || f.$$typeof === i || f.$$typeof === l || f.$$typeof === b || f.getModuleId !== void 0);
1409
1409
  }, ie.typeOf = h, ie;
1410
1410
  }
1411
1411
  var se = {};
@@ -1422,14 +1422,14 @@ function fs() {
1422
1422
  case i:
1423
1423
  case o:
1424
1424
  case d:
1425
- case p:
1425
+ case m:
1426
1426
  case b:
1427
1427
  return f;
1428
1428
  default:
1429
1429
  switch (f = f && f.$$typeof, f) {
1430
1430
  case l:
1431
1431
  case u:
1432
- case m:
1432
+ case p:
1433
1433
  case y:
1434
1434
  return f;
1435
1435
  case a:
@@ -1443,8 +1443,8 @@ function fs() {
1443
1443
  }
1444
1444
  }
1445
1445
  }
1446
- var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
1447
- se.ContextConsumer = a, se.ContextProvider = l, se.Element = t, se.ForwardRef = u, se.Fragment = n, se.Lazy = m, se.Memo = y, se.Portal = r, se.Profiler = i, se.StrictMode = o, se.Suspense = d, se.SuspenseList = p, se.isContextConsumer = function(f) {
1446
+ var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
1447
+ se.ContextConsumer = a, se.ContextProvider = l, se.Element = t, se.ForwardRef = u, se.Fragment = n, se.Lazy = p, se.Memo = y, se.Portal = r, se.Profiler = i, se.StrictMode = o, se.Suspense = d, se.SuspenseList = m, se.isContextConsumer = function(f) {
1448
1448
  return e(f) === a;
1449
1449
  }, se.isContextProvider = function(f) {
1450
1450
  return e(f) === l;
@@ -1455,7 +1455,7 @@ function fs() {
1455
1455
  }, se.isFragment = function(f) {
1456
1456
  return e(f) === n;
1457
1457
  }, se.isLazy = function(f) {
1458
- return e(f) === m;
1458
+ return e(f) === p;
1459
1459
  }, se.isMemo = function(f) {
1460
1460
  return e(f) === y;
1461
1461
  }, se.isPortal = function(f) {
@@ -1467,9 +1467,9 @@ function fs() {
1467
1467
  }, se.isSuspense = function(f) {
1468
1468
  return e(f) === d;
1469
1469
  }, se.isSuspenseList = function(f) {
1470
- return e(f) === p;
1470
+ return e(f) === m;
1471
1471
  }, se.isValidElementType = function(f) {
1472
- return typeof f == "string" || typeof f == "function" || f === n || f === i || f === o || f === d || f === p || typeof f == "object" && f !== null && (f.$$typeof === m || f.$$typeof === y || f.$$typeof === l || f.$$typeof === a || f.$$typeof === u || f.$$typeof === h || f.getModuleId !== void 0);
1472
+ return typeof f == "string" || typeof f == "function" || f === n || f === i || f === o || f === d || f === m || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === y || f.$$typeof === l || f.$$typeof === a || f.$$typeof === u || f.$$typeof === h || f.getModuleId !== void 0);
1473
1473
  }, se.typeOf = e;
1474
1474
  })()), se;
1475
1475
  }
@@ -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 je(e, ...t) {
1506
+ function Ve(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." : je(7));
1512
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ve(7));
1513
1513
  return e.charAt(0).toUpperCase() + e.slice(1);
1514
1514
  }
1515
1515
  function Ao(e, t = "") {
@@ -1566,22 +1566,22 @@ function hs(e) {
1566
1566
  step: n = 5,
1567
1567
  ...o
1568
1568
  } = e, i = ms(t), a = Object.keys(i);
1569
- function l(m) {
1570
- return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r})`;
1569
+ function l(p) {
1570
+ return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r})`;
1571
1571
  }
1572
- function u(m) {
1573
- return `@media (max-width:${(typeof t[m] == "number" ? t[m] : m) - n / 100}${r})`;
1572
+ function u(p) {
1573
+ return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
1574
1574
  }
1575
- function d(m, b) {
1575
+ function d(p, b) {
1576
1576
  const h = a.indexOf(b);
1577
- return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r}) and (max-width:${(h !== -1 && typeof t[a[h]] == "number" ? t[a[h]] : b) - n / 100}${r})`;
1577
+ return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(h !== -1 && typeof t[a[h]] == "number" ? t[a[h]] : b) - n / 100}${r})`;
1578
1578
  }
1579
- function p(m) {
1580
- return a.indexOf(m) + 1 < a.length ? d(m, a[a.indexOf(m) + 1]) : l(m);
1579
+ function m(p) {
1580
+ return a.indexOf(p) + 1 < a.length ? d(p, a[a.indexOf(p) + 1]) : l(p);
1581
1581
  }
1582
- function y(m) {
1583
- const b = a.indexOf(m);
1584
- return b === 0 ? l(a[1]) : b === a.length - 1 ? u(a[b]) : d(m, a[a.indexOf(m) + 1]).replace("@media", "@media not all and");
1582
+ function y(p) {
1583
+ const b = a.indexOf(p);
1584
+ return b === 0 ? l(a[1]) : b === a.length - 1 ? u(a[b]) : d(p, a[a.indexOf(p) + 1]).replace("@media", "@media not all and");
1585
1585
  }
1586
1586
  return {
1587
1587
  keys: a,
@@ -1589,7 +1589,7 @@ function hs(e) {
1589
1589
  up: l,
1590
1590
  down: u,
1591
1591
  between: d,
1592
- only: p,
1592
+ only: m,
1593
1593
  not: y,
1594
1594
  unit: r,
1595
1595
  ...o
@@ -1617,7 +1617,7 @@ function ys(e, t) {
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\`.` : je(18, `(${t})`));
1620
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ve(18, `(${t})`));
1621
1621
  return null;
1622
1622
  }
1623
1623
  const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
@@ -1756,9 +1756,9 @@ function de(e) {
1756
1756
  return null;
1757
1757
  const l = a[t], u = a.theme, d = Xt(u, n) || {};
1758
1758
  return we(a, l, (y) => {
1759
- let m = Wt(d, o, y);
1760
- return y === m && typeof y == "string" && (m = Wt(d, o, `${t}${y === "default" ? "" : Z(y)}`, y)), r === !1 ? m : {
1761
- [r]: m
1759
+ let p = Wt(d, o, y);
1760
+ return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : Z(y)}`, y)), r === !1 ? p : {
1761
+ [r]: p
1762
1762
  };
1763
1763
  });
1764
1764
  };
@@ -1809,11 +1809,11 @@ function xt(e, t, r, n) {
1809
1809
  function Zt(e) {
1810
1810
  return xt(e, "spacing", 8, "spacing");
1811
1811
  }
1812
- function Ke(e, t) {
1812
+ function Xe(e, t) {
1813
1813
  return typeof t == "string" || t == null ? t : e(t);
1814
1814
  }
1815
1815
  function Rs(e, t) {
1816
- return (r) => e.reduce((n, o) => (n[o] = Ke(t, r), n), {});
1816
+ return (r) => e.reduce((n, o) => (n[o] = Xe(t, r), n), {});
1817
1817
  }
1818
1818
  function ks(e, t, r, n) {
1819
1819
  if (!t.includes(r))
@@ -1863,10 +1863,10 @@ 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"), Vs = Ce("borderBottomColor"), js = Ce("borderLeftColor"), zs = Ce("outline", ve), Ws = Ce("outlineColor"), tr = (e) => {
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) => {
1867
1867
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1868
1868
  const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1869
- borderRadius: Ke(t, n)
1869
+ borderRadius: Xe(t, n)
1870
1870
  });
1871
1871
  return we(e, e.borderRadius, r);
1872
1872
  }
@@ -1876,11 +1876,11 @@ tr.propTypes = process.env.NODE_ENV !== "production" ? {
1876
1876
  borderRadius: We
1877
1877
  } : {};
1878
1878
  tr.filterProps = ["borderRadius"];
1879
- er(As, Ps, Is, Ms, _s, Ns, Bs, Ds, Vs, js, tr, zs, Ws);
1879
+ er(As, Ps, Is, Ms, _s, Ns, Bs, Ds, js, Vs, tr, zs, Ws);
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) => ({
1883
- gap: Ke(t, n)
1883
+ gap: Xe(t, n)
1884
1884
  });
1885
1885
  return we(e, e.gap, r);
1886
1886
  }
@@ -1893,7 +1893,7 @@ rr.filterProps = ["gap"];
1893
1893
  const nr = (e) => {
1894
1894
  if (e.columnGap !== void 0 && e.columnGap !== null) {
1895
1895
  const t = xt(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
1896
- columnGap: Ke(t, n)
1896
+ columnGap: Xe(t, n)
1897
1897
  });
1898
1898
  return we(e, e.columnGap, r);
1899
1899
  }
@@ -1906,7 +1906,7 @@ nr.filterProps = ["columnGap"];
1906
1906
  const or = (e) => {
1907
1907
  if (e.rowGap !== void 0 && e.rowGap !== null) {
1908
1908
  const t = xt(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
1909
- rowGap: Ke(t, n)
1909
+ rowGap: Xe(t, n)
1910
1910
  });
1911
1911
  return we(e, e.rowGap, r);
1912
1912
  }
@@ -2312,7 +2312,7 @@ function la() {
2312
2312
  const {
2313
2313
  cssProperty: u = r,
2314
2314
  themeKey: d,
2315
- transform: p,
2315
+ transform: m,
2316
2316
  style: y
2317
2317
  } = l;
2318
2318
  if (n == null)
@@ -2321,10 +2321,10 @@ function la() {
2321
2321
  return {
2322
2322
  [r]: n
2323
2323
  };
2324
- const m = Xt(o, d) || {};
2324
+ const p = Xt(o, d) || {};
2325
2325
  return y ? y(a) : we(a, n, (h) => {
2326
- let f = Wt(m, p, h);
2327
- return h === f && typeof h == "string" && (f = Wt(m, p, `${r}${h === "default" ? "" : Z(h)}`, h)), u === !1 ? f : {
2326
+ let f = Wt(p, m, h);
2327
+ return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : Z(h)}`, h)), u === !1 ? f : {
2328
2328
  [u]: f
2329
2329
  };
2330
2330
  });
@@ -2346,38 +2346,38 @@ function la() {
2346
2346
  return u;
2347
2347
  if (!d)
2348
2348
  return null;
2349
- const p = Po(o.breakpoints), y = Object.keys(p);
2350
- let m = p;
2349
+ const m = Po(o.breakpoints), y = Object.keys(m);
2350
+ let p = m;
2351
2351
  return Object.keys(d).forEach((b) => {
2352
2352
  const h = aa(d[b], o);
2353
2353
  if (h != null)
2354
2354
  if (typeof h == "object")
2355
2355
  if (a[b])
2356
- m = gt(m, e(b, h, o, a));
2356
+ p = gt(p, e(b, h, o, a));
2357
2357
  else {
2358
2358
  const f = we({
2359
2359
  theme: o
2360
2360
  }, h, (g) => ({
2361
2361
  [b]: g
2362
2362
  }));
2363
- sa(f, h) ? m[b] = t({
2363
+ sa(f, h) ? p[b] = t({
2364
2364
  sx: h,
2365
2365
  theme: o,
2366
2366
  nested: !0
2367
- }) : m = gt(m, f);
2367
+ }) : p = gt(p, f);
2368
2368
  }
2369
2369
  else
2370
- m = gt(m, e(b, h, o, a));
2370
+ p = gt(p, e(b, h, o, a));
2371
2371
  }), !i && o.modularCssLayers ? {
2372
- "@layer sx": wn(o, Er(y, m))
2373
- } : wn(o, Er(y, m));
2372
+ "@layer sx": wn(o, Er(y, p))
2373
+ } : wn(o, Er(y, p));
2374
2374
  }
2375
2375
  return Array.isArray(n) ? n.map(l) : l(n);
2376
2376
  }
2377
2377
  return t;
2378
2378
  }
2379
- const Xe = la();
2380
- Xe.filterProps = ["sx"];
2379
+ const Qe = la();
2380
+ Qe.filterProps = ["sx"];
2381
2381
  function ca(e, t) {
2382
2382
  const r = this;
2383
2383
  if (r.vars) {
@@ -2413,11 +2413,11 @@ function Tt(e = {}, ...t) {
2413
2413
  ...i
2414
2414
  }
2415
2415
  }, a);
2416
- return d = bs(d), d.applyStyles = ca, d = t.reduce((p, y) => he(p, y), d), d.unstable_sxConfig = {
2416
+ return d = bs(d), d.applyStyles = ca, 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) {
2420
- return Xe({
2420
+ return Qe({
2421
2421
  sx: y,
2422
2422
  theme: this
2423
2423
  });
@@ -2461,11 +2461,11 @@ function _o(e) {
2461
2461
  ...r
2462
2462
  } = e, n = {
2463
2463
  variants: t,
2464
- style: Ye(r),
2464
+ style: He(r),
2465
2465
  isProcessed: !0
2466
2466
  };
2467
2467
  return n.style === r || t && t.forEach((o) => {
2468
- typeof o.style != "function" && (o.style = Ye(o.style));
2468
+ typeof o.style != "function" && (o.style = He(o.style));
2469
2469
  }), n;
2470
2470
  }
2471
2471
  const fa = Tt();
@@ -2494,11 +2494,11 @@ function Bt(e, t, r) {
2494
2494
  variants: i,
2495
2495
  ...a
2496
2496
  } = n;
2497
- o = r ? Ge(Ye(a), r) : a;
2497
+ o = r ? Ge(He(a), r) : a;
2498
2498
  }
2499
2499
  return No(e, n.variants, [o], r);
2500
2500
  }
2501
- return n?.isProcessed ? r ? Ge(Ye(n.style), r) : n.style : r ? Ge(Ye(n), r) : n;
2501
+ return n?.isProcessed ? r ? Ge(He(n.style), r) : n.style : r ? Ge(He(n), r) : n;
2502
2502
  }
2503
2503
  function No(e, t, r = [], n = void 0) {
2504
2504
  let o;
@@ -2519,7 +2519,7 @@ 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(Ye(a.style(o)), n) : a.style(o))) : r.push(n ? Ge(Ye(a.style), n) : a.style);
2522
+ }, r.push(n ? Ge(He(a.style(o)), n) : a.style(o))) : r.push(n ? Ge(He(a.style), n) : a.style);
2523
2523
  }
2524
2524
  return r;
2525
2525
  }
@@ -2534,26 +2534,26 @@ function Bo(e = {}) {
2534
2534
  pa(l, t, r);
2535
2535
  }
2536
2536
  return (l, u = {}) => {
2537
- cs(l, (w) => w.filter((V) => V !== Xe));
2537
+ cs(l, (w) => w.filter((j) => j !== Qe));
2538
2538
  const {
2539
2539
  name: d,
2540
- slot: p,
2540
+ slot: m,
2541
2541
  skipVariantsResolver: y,
2542
- skipSx: m,
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(p)),
2545
+ overridesResolver: b = da(Do(m)),
2546
2546
  ...h
2547
- } = u, f = d && d.startsWith("Mui") || p ? "components" : "custom", g = y !== void 0 ? y : (
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
2549
2549
  // For more details: https://github.com/mui/material-ui/pull/37908
2550
- p && p !== "Root" && p !== "root" || !1
2551
- ), C = m || !1;
2550
+ m && m !== "Root" && m !== "root" || !1
2551
+ ), C = p || !1;
2552
2552
  let k = Sr;
2553
- p === "Root" || p === "root" ? k = n : p ? k = o : ya(l) && (k = void 0);
2553
+ m === "Root" || m === "root" ? k = n : m ? k = o : ya(l) && (k = void 0);
2554
2554
  const I = Ro(l, {
2555
2555
  shouldForwardProp: k,
2556
- label: ha(d, p),
2556
+ label: ha(d, m),
2557
2557
  ...h
2558
2558
  }), $ = (w) => {
2559
2559
  if (w.__emotion_real === w)
@@ -2563,15 +2563,15 @@ function Bo(e = {}) {
2563
2563
  return Bt(G, w, G.theme.modularCssLayers ? f : void 0);
2564
2564
  };
2565
2565
  if (Re(w)) {
2566
- const V = _o(w);
2567
- return function(j) {
2568
- return V.variants ? Bt(j, V, j.theme.modularCssLayers ? f : void 0) : j.theme.modularCssLayers ? Ge(V.style, f) : V.style;
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;
2569
2569
  };
2570
2570
  }
2571
2571
  return w;
2572
2572
  }, S = (...w) => {
2573
- const V = [], G = w.map($), j = [];
2574
- if (V.push(i), d && b && j.push(function(T) {
2573
+ const j = [], G = w.map($), V = [];
2574
+ if (j.push(i), d && b && V.push(function(T) {
2575
2575
  const N = T.theme.components?.[d]?.styleOverrides;
2576
2576
  if (!N)
2577
2577
  return null;
@@ -2579,16 +2579,16 @@ function Bo(e = {}) {
2579
2579
  for (const D in N)
2580
2580
  M[D] = Bt(T, N[D], T.theme.modularCssLayers ? "theme" : void 0);
2581
2581
  return b(T, M);
2582
- }), d && !g && j.push(function(T) {
2582
+ }), d && !g && V.push(function(T) {
2583
2583
  const N = T.theme?.components?.[d]?.variants;
2584
2584
  return N ? No(T, N, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
2585
- }), C || j.push(Xe), Array.isArray(G[0])) {
2586
- const c = G.shift(), T = new Array(V.length).fill(""), x = new Array(j.length).fill("");
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
2587
  let N;
2588
- N = [...T, ...c, ...x], N.raw = [...T, ...c.raw, ...x], V.unshift(N);
2588
+ N = [...T, ...c, ...x], N.raw = [...T, ...c.raw, ...x], j.unshift(N);
2589
2589
  }
2590
- const W = [...V, ...G, ...j], P = I(...W);
2591
- return l.muiName && (P.muiName = l.muiName), process.env.NODE_ENV !== "production" && (P.displayName = ma(d, p, l)), P;
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;
2592
2592
  };
2593
2593
  return I.withConfig && (S.withConfig = I.withConfig), S;
2594
2594
  };
@@ -2614,7 +2614,7 @@ function ya(e) {
2614
2614
  function Do(e) {
2615
2615
  return e && e.charAt(0).toLowerCase() + e.slice(1);
2616
2616
  }
2617
- const Vo = Bo();
2617
+ const jo = Bo();
2618
2618
  function yt(e, t, r = !1) {
2619
2619
  const n = {
2620
2620
  ...t
@@ -2669,7 +2669,7 @@ const xa = Tt();
2669
2669
  function sr(e = xa) {
2670
2670
  return Sa(e);
2671
2671
  }
2672
- function jo({
2672
+ function Vo({
2673
2673
  props: e,
2674
2674
  name: t,
2675
2675
  defaultTheme: r,
@@ -2844,12 +2844,12 @@ function Ma(e, t) {
2844
2844
  Rn.includes(n) || Rn.push(n);
2845
2845
  });
2846
2846
  }
2847
- const _a = Tt(), Na = Vo("div", {
2847
+ const _a = Tt(), Na = jo("div", {
2848
2848
  name: "MuiGrid",
2849
2849
  slot: "Root"
2850
2850
  });
2851
2851
  function Ba(e) {
2852
- return jo({
2852
+ return Vo({
2853
2853
  props: e,
2854
2854
  name: "MuiGrid",
2855
2855
  defaultTheme: _a
@@ -2862,30 +2862,30 @@ function Da(e = {}) {
2862
2862
  useThemeProps: r = Ba,
2863
2863
  useTheme: n = sr,
2864
2864
  componentName: o = "MuiGrid"
2865
- } = e, i = (d, p) => {
2865
+ } = e, i = (d, m) => {
2866
2866
  const {
2867
2867
  container: y,
2868
- direction: m,
2868
+ direction: p,
2869
2869
  spacing: b,
2870
2870
  wrap: h,
2871
2871
  size: f
2872
2872
  } = d, g = {
2873
- root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ia(m), ...Aa(f), ...y ? Pa(b, p.breakpoints.keys[0]) : []]
2873
+ root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ia(p), ...Aa(f), ...y ? Pa(b, m.breakpoints.keys[0]) : []]
2874
2874
  };
2875
2875
  return Ae(g, (C) => xe(o, C), {});
2876
2876
  };
2877
- function a(d, p, y = () => !0) {
2878
- const m = {};
2877
+ function a(d, m, y = () => !0) {
2878
+ const p = {};
2879
2879
  return d === null || (Array.isArray(d) ? d.forEach((b, h) => {
2880
- b !== null && y(b) && p.keys[h] && (m[p.keys[h]] = b);
2880
+ b !== null && y(b) && m.keys[h] && (p[m.keys[h]] = b);
2881
2881
  }) : typeof d == "object" ? Object.keys(d).forEach((b) => {
2882
2882
  const h = d[b];
2883
- h != null && y(h) && (m[b] = h);
2884
- }) : m[p.keys[0]] = d), m;
2883
+ h != null && y(h) && (p[b] = h);
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(p, y) {
2887
- const m = n(), b = r(p), h = ir(b);
2888
- Ma(h, m.breakpoints);
2886
+ const l = t(Ea, $a, Oa, Ta, Ra, ka, wa), u = /* @__PURE__ */ B.forwardRef(function(m, y) {
2887
+ const p = n(), b = r(m), h = ir(b);
2888
+ Ma(h, p.breakpoints);
2889
2889
  const {
2890
2890
  className: f,
2891
2891
  children: g,
@@ -2895,13 +2895,13 @@ function Da(e = {}) {
2895
2895
  direction: $ = "row",
2896
2896
  wrap: S = "wrap",
2897
2897
  size: w = {},
2898
- offset: V = {},
2898
+ offset: j = {},
2899
2899
  spacing: G = 0,
2900
- rowSpacing: j = G,
2900
+ rowSpacing: V = G,
2901
2901
  columnSpacing: W = G,
2902
2902
  unstable_level: P = 0,
2903
2903
  ...c
2904
- } = h, T = a(w, m.breakpoints, (R) => R !== !1), x = a(V, m.breakpoints), N = p.columns ?? (P ? void 0 : C), M = p.spacing ?? (P ? void 0 : G), D = p.rowSpacing ?? p.spacing ?? (P ? void 0 : j), F = p.columnSpacing ?? p.spacing ?? (P ? void 0 : W), U = {
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 = {
2905
2905
  ...h,
2906
2906
  level: P,
2907
2907
  columns: N,
@@ -2913,7 +2913,7 @@ function Da(e = {}) {
2913
2913
  columnSpacing: F,
2914
2914
  size: T,
2915
2915
  offset: x
2916
- }, O = i(U, m);
2916
+ }, O = i(U, p);
2917
2917
  return /* @__PURE__ */ E(l, {
2918
2918
  ref: y,
2919
2919
  as: I,
@@ -2947,16 +2947,16 @@ function Pe(e, t, r = "Mui") {
2947
2947
  n[o] = xe(e, o, r);
2948
2948
  }), n;
2949
2949
  }
2950
- function Va(e, t) {
2950
+ function ja(e, t) {
2951
2951
  if (process.env.NODE_ENV === "production")
2952
2952
  return () => () => null;
2953
2953
  const r = t ? {
2954
2954
  ...t.propTypes
2955
2955
  } : null;
2956
- return (o) => (i, a, l, u, d, ...p) => {
2957
- const y = d || a, m = r?.[y];
2958
- if (m) {
2959
- const b = m(i, a, l, u, d, ...p);
2956
+ return (o) => (i, a, l, u, d, ...m) => {
2957
+ const y = d || a, p = r?.[y];
2958
+ if (p) {
2959
+ const b = p(i, a, l, u, d, ...m);
2960
2960
  if (b)
2961
2961
  return b;
2962
2962
  }
@@ -2964,7 +2964,7 @@ function Va(e, t) {
2964
2964
  };
2965
2965
  }
2966
2966
  const Ur = "$$material";
2967
- function ja(e = {}) {
2967
+ function Va(e = {}) {
2968
2968
  const {
2969
2969
  themeId: t,
2970
2970
  defaultTheme: r,
@@ -2972,18 +2972,18 @@ function ja(e = {}) {
2972
2972
  generateClassName: o
2973
2973
  } = e, i = Ro("div", {
2974
2974
  shouldForwardProp: (l) => l !== "theme" && l !== "sx" && l !== "as"
2975
- })(Xe);
2975
+ })(Qe);
2976
2976
  return /* @__PURE__ */ B.forwardRef(function(u, d) {
2977
- const p = sr(r), {
2977
+ const m = sr(r), {
2978
2978
  className: y,
2979
- component: m = "div",
2979
+ component: p = "div",
2980
2980
  ...b
2981
2981
  } = ir(u);
2982
2982
  return /* @__PURE__ */ E(i, {
2983
- as: m,
2983
+ as: p,
2984
2984
  ref: d,
2985
2985
  className: ue(y, o ? o(n) : n),
2986
- theme: t && p[t] || p,
2986
+ theme: t && m[t] || m,
2987
2987
  ...b
2988
2988
  });
2989
2989
  });
@@ -3009,12 +3009,12 @@ function ze(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().` : je(9, e));
3012
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ve(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.` : je(10, o));
3017
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ve(10, o));
3018
3018
  } else
3019
3019
  n = n.split(",");
3020
3020
  return n = n.map((i) => parseFloat(i)), {
@@ -3047,7 +3047,7 @@ function zo(e) {
3047
3047
  e = ze(e);
3048
3048
  const {
3049
3049
  values: t
3050
- } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), a = (d, p = (d + r / 30) % 12) => o - i * Math.max(Math.min(p - 3, 9 - p, 1), -1);
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);
3051
3051
  let l = "rgb";
3052
3052
  const u = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
3053
3053
  return e.type === "hsla" && (l += "a", u.push(t[3])), lr({
@@ -3201,10 +3201,10 @@ function xr(e, t) {
3201
3201
  e,
3202
3202
  (l, u, d) => {
3203
3203
  if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
3204
- const p = `--${r ? `${r}-` : ""}${l.join("-")}`, y = Za(l, u);
3204
+ const m = `--${r ? `${r}-` : ""}${l.join("-")}`, y = Za(l, u);
3205
3205
  Object.assign(o, {
3206
- [p]: y
3207
- }), Mn(i, l, `var(${p})`, d), Mn(a, l, `var(${p}, ${y})`, d);
3206
+ [m]: y
3207
+ }), Mn(i, l, `var(${m})`, d), Mn(a, l, `var(${m}, ${y})`, d);
3208
3208
  }
3209
3209
  },
3210
3210
  (l) => l[0] === "vars"
@@ -3227,11 +3227,11 @@ function el(e, t = {}) {
3227
3227
  defaultColorScheme: u = "light",
3228
3228
  ...d
3229
3229
  } = e, {
3230
- vars: p,
3230
+ vars: m,
3231
3231
  css: y,
3232
- varsWithDefaults: m
3232
+ varsWithDefaults: p
3233
3233
  } = xr(d, t);
3234
- let b = m;
3234
+ let b = p;
3235
3235
  const h = {}, {
3236
3236
  [u]: f,
3237
3237
  ...g
@@ -3239,11 +3239,11 @@ function el(e, t = {}) {
3239
3239
  if (Object.entries(g || {}).forEach(([$, S]) => {
3240
3240
  const {
3241
3241
  vars: w,
3242
- css: V,
3242
+ css: j,
3243
3243
  varsWithDefaults: G
3244
3244
  } = xr(S, t);
3245
3245
  b = he(b, G), h[$] = {
3246
- css: V,
3246
+ css: j,
3247
3247
  vars: w
3248
3248
  };
3249
3249
  }), f) {
@@ -3275,7 +3275,7 @@ function el(e, t = {}) {
3275
3275
  vars: b,
3276
3276
  generateThemeVars: () => {
3277
3277
  let $ = {
3278
- ...p
3278
+ ...m
3279
3279
  };
3280
3280
  return Object.entries(h).forEach(([, {
3281
3281
  vars: S
@@ -3285,43 +3285,43 @@ function el(e, t = {}) {
3285
3285
  },
3286
3286
  generateStyleSheets: () => {
3287
3287
  const $ = [], S = e.defaultColorScheme || "light";
3288
- function w(j, W) {
3289
- Object.keys(W).length && $.push(typeof j == "string" ? {
3290
- [j]: {
3288
+ function w(V, W) {
3289
+ Object.keys(W).length && $.push(typeof V == "string" ? {
3290
+ [V]: {
3291
3291
  ...W
3292
3292
  }
3293
- } : j);
3293
+ } : V);
3294
3294
  }
3295
3295
  w(r(void 0, {
3296
3296
  ...y
3297
3297
  }), y);
3298
3298
  const {
3299
- [S]: V,
3299
+ [S]: j,
3300
3300
  ...G
3301
3301
  } = h;
3302
- if (V) {
3302
+ if (j) {
3303
3303
  const {
3304
- css: j
3305
- } = V, W = a[S]?.palette?.mode, P = !n && W ? {
3304
+ css: V
3305
+ } = j, W = a[S]?.palette?.mode, P = !n && W ? {
3306
3306
  colorScheme: W,
3307
- ...j
3307
+ ...V
3308
3308
  } : {
3309
- ...j
3309
+ ...V
3310
3310
  };
3311
3311
  w(r(S, {
3312
3312
  ...P
3313
3313
  }), P);
3314
3314
  }
3315
- return Object.entries(G).forEach(([j, {
3315
+ return Object.entries(G).forEach(([V, {
3316
3316
  css: W
3317
3317
  }]) => {
3318
- const P = a[j]?.palette?.mode, c = !n && P ? {
3318
+ const P = a[V]?.palette?.mode, c = !n && P ? {
3319
3319
  colorScheme: P,
3320
3320
  ...W
3321
3321
  } : {
3322
3322
  ...W
3323
3323
  };
3324
- w(r(j, {
3324
+ w(r(V, {
3325
3325
  ...c
3326
3326
  }), c);
3327
3327
  }), i && $.push({
@@ -3341,12 +3341,12 @@ function tl(e) {
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 = Vo("div", {
3344
+ const rl = Tt(), nl = jo("div", {
3345
3345
  name: "MuiStack",
3346
3346
  slot: "Root"
3347
3347
  });
3348
3348
  function ol(e) {
3349
- return jo({
3349
+ return Vo({
3350
3350
  props: e,
3351
3351
  name: "MuiStack",
3352
3352
  defaultTheme: rl
@@ -3387,15 +3387,15 @@ const sl = (e) => ({
3387
3387
  values: e.spacing,
3388
3388
  base: o
3389
3389
  });
3390
- typeof i == "object" && Object.keys(i).forEach((u, d, p) => {
3390
+ typeof i == "object" && Object.keys(i).forEach((u, d, m) => {
3391
3391
  if (!i[u]) {
3392
- const m = d > 0 ? i[p[d - 1]] : "column";
3393
- i[u] = m;
3392
+ const p = d > 0 ? i[m[d - 1]] : "column";
3393
+ i[u] = p;
3394
3394
  }
3395
3395
  }), r = he(r, we({
3396
3396
  theme: t
3397
3397
  }, a, (u, d) => e.useFlexGap ? {
3398
- gap: Ke(n, u)
3398
+ gap: Xe(n, u)
3399
3399
  } : {
3400
3400
  // The useFlexGap={false} implement relies on each child to give up control of the margin.
3401
3401
  // We need to reset the margin to avoid double spacing.
@@ -3403,7 +3403,7 @@ const sl = (e) => ({
3403
3403
  margin: 0
3404
3404
  },
3405
3405
  "& > :not(style) ~ :not(style)": {
3406
- [`margin${sl(d ? i[d] : e.direction)}`]: Ke(n, u)
3406
+ [`margin${sl(d ? i[d] : e.direction)}`]: Xe(n, u)
3407
3407
  }
3408
3408
  }));
3409
3409
  }
@@ -3418,8 +3418,8 @@ function ll(e = {}) {
3418
3418
  } = e, o = () => Ae({
3419
3419
  root: ["root"]
3420
3420
  }, (u) => xe(n, u), {}), i = t(al), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
3421
- const p = r(u), y = ir(p), {
3422
- component: m = "div",
3421
+ const m = r(u), y = ir(m), {
3422
+ component: p = "div",
3423
3423
  direction: b = "column",
3424
3424
  spacing: h = 0,
3425
3425
  divider: f,
@@ -3433,7 +3433,7 @@ function ll(e = {}) {
3433
3433
  useFlexGap: k
3434
3434
  }, S = o();
3435
3435
  return /* @__PURE__ */ E(i, {
3436
- as: m,
3436
+ as: p,
3437
3437
  ownerState: $,
3438
3438
  ref: d,
3439
3439
  className: ue(S.root, C),
@@ -3467,14 +3467,14 @@ const bt = {
3467
3467
  A200: "#eeeeee",
3468
3468
  A400: "#bdbdbd",
3469
3469
  A700: "#616161"
3470
- }, Qe = {
3470
+ }, Je = {
3471
3471
  50: "#f3e5f5",
3472
3472
  200: "#ce93d8",
3473
3473
  300: "#ba68c8",
3474
3474
  400: "#ab47bc",
3475
3475
  500: "#9c27b0",
3476
3476
  700: "#7b1fa2"
3477
- }, Je = {
3477
+ }, Ze = {
3478
3478
  300: "#e57373",
3479
3479
  400: "#ef5350",
3480
3480
  500: "#f44336",
@@ -3486,19 +3486,19 @@ const bt = {
3486
3486
  500: "#ff9800",
3487
3487
  700: "#f57c00",
3488
3488
  900: "#e65100"
3489
- }, Ze = {
3489
+ }, et = {
3490
3490
  50: "#e3f2fd",
3491
3491
  200: "#90caf9",
3492
3492
  400: "#42a5f5",
3493
3493
  700: "#1976d2",
3494
3494
  800: "#1565c0"
3495
- }, et = {
3495
+ }, tt = {
3496
3496
  300: "#4fc3f7",
3497
3497
  400: "#29b6f6",
3498
3498
  500: "#03a9f4",
3499
3499
  700: "#0288d1",
3500
3500
  900: "#01579b"
3501
- }, tt = {
3501
+ }, rt = {
3502
3502
  300: "#81c784",
3503
3503
  400: "#66bb6a",
3504
3504
  500: "#4caf50",
@@ -3586,59 +3586,59 @@ function Nn(e, t, r, n, o) {
3586
3586
  }
3587
3587
  function ul(e = "light") {
3588
3588
  return e === "dark" ? {
3589
- main: Ze[200],
3590
- light: Ze[50],
3591
- dark: Ze[400]
3589
+ main: et[200],
3590
+ light: et[50],
3591
+ dark: et[400]
3592
3592
  } : {
3593
- main: Ze[700],
3594
- light: Ze[400],
3595
- dark: Ze[800]
3593
+ main: et[700],
3594
+ light: et[400],
3595
+ dark: et[800]
3596
3596
  };
3597
3597
  }
3598
3598
  function fl(e = "light") {
3599
3599
  return e === "dark" ? {
3600
- main: Qe[200],
3601
- light: Qe[50],
3602
- dark: Qe[400]
3600
+ main: Je[200],
3601
+ light: Je[50],
3602
+ dark: Je[400]
3603
3603
  } : {
3604
- main: Qe[500],
3605
- light: Qe[300],
3606
- dark: Qe[700]
3607
- };
3608
- }
3609
- function dl(e = "light") {
3610
- return e === "dark" ? {
3611
3604
  main: Je[500],
3612
3605
  light: Je[300],
3613
3606
  dark: Je[700]
3614
- } : {
3615
- main: Je[700],
3616
- light: Je[400],
3617
- dark: Je[800]
3618
3607
  };
3619
3608
  }
3620
- function pl(e = "light") {
3609
+ function dl(e = "light") {
3621
3610
  return e === "dark" ? {
3622
- main: et[400],
3623
- light: et[300],
3624
- dark: et[700]
3611
+ main: Ze[500],
3612
+ light: Ze[300],
3613
+ dark: Ze[700]
3625
3614
  } : {
3626
- main: et[700],
3627
- light: et[500],
3628
- dark: et[900]
3615
+ main: Ze[700],
3616
+ light: Ze[400],
3617
+ dark: Ze[800]
3629
3618
  };
3630
3619
  }
3631
- function ml(e = "light") {
3620
+ function pl(e = "light") {
3632
3621
  return e === "dark" ? {
3633
3622
  main: tt[400],
3634
3623
  light: tt[300],
3635
3624
  dark: tt[700]
3636
3625
  } : {
3637
- main: tt[800],
3626
+ main: tt[700],
3638
3627
  light: tt[500],
3639
3628
  dark: tt[900]
3640
3629
  };
3641
3630
  }
3631
+ function ml(e = "light") {
3632
+ return e === "dark" ? {
3633
+ main: rt[400],
3634
+ light: rt[300],
3635
+ dark: rt[700]
3636
+ } : {
3637
+ main: rt[800],
3638
+ light: rt[500],
3639
+ dark: rt[900]
3640
+ };
3641
+ }
3642
3642
  function hl(e = "light") {
3643
3643
  return e === "dark" ? {
3644
3644
  main: ft[400],
@@ -3661,8 +3661,8 @@ 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), p = e.success || ml(t), y = e.warning || hl(t);
3665
- function m(g) {
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);
3665
+ function p(g) {
3666
3666
  if (o)
3667
3667
  return gl(g);
3668
3668
  const C = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
@@ -3679,7 +3679,7 @@ function Hr(e) {
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.` : je(11, C ? ` (${C})` : "", k));
3682
+ The color object needs to have a \`main\` property or a \`${k}\` property.` : Ve(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
- } });` : je(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 = m(g.main)), g;
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;
3699
3699
  };
3700
3700
  let h;
3701
3701
  return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV, he({
@@ -3736,7 +3736,7 @@ const theme2 = createTheme({ palette: {
3736
3736
  }),
3737
3737
  // The colors used to indicate the successful completion of an action that user triggered.
3738
3738
  success: b({
3739
- color: p,
3739
+ color: m,
3740
3740
  name: "success"
3741
3741
  }),
3742
3742
  // The grey colors.
@@ -3745,7 +3745,7 @@ const theme2 = createTheme({ palette: {
3745
3745
  // the background and the text.
3746
3746
  contrastThreshold: r,
3747
3747
  // Takes a background color and returns the text color that maximizes the contrast.
3748
- getContrastText: m,
3748
+ getContrastText: p,
3749
3749
  // Generate a rich color object.
3750
3750
  augmentColor: b,
3751
3751
  // Used by the functions below to shift a color's luminance by approximately
@@ -3800,11 +3800,11 @@ function Sl(e, t) {
3800
3800
  htmlFontSize: u = 16,
3801
3801
  // Apply the CSS properties to all the variants.
3802
3802
  allVariants: d,
3803
- pxToRem: p,
3803
+ pxToRem: m,
3804
3804
  ...y
3805
3805
  } = typeof t == "function" ? t(e) : t;
3806
3806
  process.env.NODE_ENV;
3807
- const m = n / 14, b = p || ((g) => `${g / u * m}rem`), h = (g, C, k, I, $) => ({
3807
+ const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k, I, $) => ({
3808
3808
  fontFamily: r,
3809
3809
  fontWeight: g,
3810
3810
  fontSize: b(C),
@@ -3882,7 +3882,7 @@ const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
3882
3882
  // recommended when something is leaving screen
3883
3883
  leavingScreen: 195
3884
3884
  };
3885
- function Vn(e) {
3885
+ function jn(e) {
3886
3886
  return `${Math.round(e)}ms`;
3887
3887
  }
3888
3888
  function $l(e) {
@@ -3909,10 +3909,10 @@ function Rl(e) {
3909
3909
  ...d
3910
3910
  } = i;
3911
3911
  if (process.env.NODE_ENV !== "production") {
3912
- const p = (m) => typeof m == "string", y = (m) => !Number.isNaN(parseFloat(m));
3913
- !p(o) && Array.isArray(o), !y(a) && p(a), p(l), !y(u) && p(u), Object.keys(d).length;
3912
+ const m = (p) => typeof p == "string", y = (p) => !Number.isNaN(parseFloat(p));
3913
+ !m(o) && Array.isArray(o), !y(a) && m(a), m(l), !y(u) && m(u), Object.keys(d).length;
3914
3914
  }
3915
- return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof a == "string" ? a : Vn(a)} ${l} ${typeof u == "string" ? u : Vn(u)}`).join(",");
3915
+ return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof a == "string" ? a : jn(a)} ${l} ${typeof u == "string" ? u : jn(u)}`).join(",");
3916
3916
  },
3917
3917
  ...e,
3918
3918
  easing: t,
@@ -3954,7 +3954,7 @@ theme.transitions = createTransitions(theme.transitions || {});
3954
3954
 
3955
3955
  export default theme;`;
3956
3956
  }
3957
- function jn(e) {
3957
+ function Vn(e) {
3958
3958
  return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
3959
3959
  }
3960
3960
  const Pl = (e) => {
@@ -3976,11 +3976,11 @@ function Il(e) {
3976
3976
  },
3977
3977
  lighten(t, r) {
3978
3978
  const n = this || e;
3979
- return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${jn(r)})` : ur(t, r);
3979
+ return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${Vn(r)})` : ur(t, r);
3980
3980
  },
3981
3981
  darken(t, r) {
3982
3982
  const n = this || e;
3983
- return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${jn(r)})` : cr(t, r);
3983
+ return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${Vn(r)})` : cr(t, r);
3984
3984
  }
3985
3985
  });
3986
3986
  }
@@ -3994,18 +3994,18 @@ function Rr(e = {}, ...t) {
3994
3994
  typography: l = {},
3995
3995
  shape: u,
3996
3996
  colorSpace: d,
3997
- ...p
3997
+ ...m
3998
3998
  } = e;
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." : je(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." : Ve(20));
4003
4003
  const y = Hr({
4004
4004
  ...i,
4005
4005
  colorSpace: d
4006
- }), m = Tt(e);
4007
- let b = he(m, {
4008
- mixins: bl(m.breakpoints, n),
4006
+ }), p = Tt(e);
4007
+ let b = he(p, {
4008
+ mixins: bl(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
4011
  shadows: wl.slice(),
@@ -4015,7 +4015,7 @@ function Rr(e = {}, ...t) {
4015
4015
  ...kl
4016
4016
  }
4017
4017
  });
4018
- if (b = he(b, p), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
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) {
@@ -4035,9 +4035,9 @@ function Rr(e = {}, ...t) {
4035
4035
  }
4036
4036
  return b.unstable_sxConfig = {
4037
4037
  ...Ct,
4038
- ...p?.unstable_sxConfig
4038
+ ...m?.unstable_sxConfig
4039
4039
  }, b.unstable_sx = function(f) {
4040
- return Xe({
4040
+ return Qe({
4041
4041
  sx: f,
4042
4042
  theme: this
4043
4043
  });
@@ -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 Vl(e, t) {
4132
+ function jl(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 jl(e) {
4147
+ function Vl(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) => {
@@ -4202,9 +4202,9 @@ function Wl(e = {}, ...t) {
4202
4202
  shouldSkipGeneratingVar: l = Nl,
4203
4203
  colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
4204
4204
  rootSelector: d = ":root",
4205
- ...p
4206
- } = e, y = Object.keys(r)[0], m = n || (r.light && y !== "light" ? "light" : y), b = zl(i), {
4207
- [m]: h,
4205
+ ...m
4206
+ } = e, y = Object.keys(r)[0], p = n || (r.light && y !== "light" ? "light" : y), b = zl(i), {
4207
+ [p]: h,
4208
4208
  light: f,
4209
4209
  dark: g,
4210
4210
  ...C
@@ -4212,14 +4212,14 @@ function Wl(e = {}, ...t) {
4212
4212
  ...C
4213
4213
  };
4214
4214
  let I = h;
4215
- if ((m === "dark" && !("dark" in r) || m === "light" && !("light" in r)) && (I = !0), !I)
4216
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${m}\` option is either missing or invalid.` : je(21, m));
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));
4217
4217
  let $;
4218
4218
  a && ($ = "oklch");
4219
- const S = Cr($, k, I, p, m);
4219
+ const S = Cr($, k, I, m, p);
4220
4220
  f && !k.light && Cr($, k, f, void 0, "light"), g && !k.dark && Cr($, k, g, void 0, "dark");
4221
4221
  let w = {
4222
- defaultColorScheme: m,
4222
+ defaultColorScheme: p,
4223
4223
  ...S,
4224
4224
  cssVarPrefix: i,
4225
4225
  colorSchemeSelector: u,
@@ -4230,7 +4230,7 @@ function Wl(e = {}, ...t) {
4230
4230
  ...yl(S.typography),
4231
4231
  ...S.font
4232
4232
  },
4233
- spacing: jl(p.spacing)
4233
+ spacing: Vl(m.spacing)
4234
4234
  };
4235
4235
  Object.keys(w.colorSchemes).forEach((P) => {
4236
4236
  const c = w.colorSchemes[P].palette, T = (N) => {
@@ -4245,7 +4245,7 @@ function Wl(e = {}, ...t) {
4245
4245
  }
4246
4246
  return N(M, D);
4247
4247
  }
4248
- if (Vl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4248
+ if (jl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4249
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
4250
  const N = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
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));
@@ -4260,7 +4260,7 @@ function Wl(e = {}, ...t) {
4260
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")));
4261
4261
  });
4262
4262
  }), w = t.reduce((P, c) => he(P, c), w);
4263
- const V = {
4263
+ const j = {
4264
4264
  prefix: i,
4265
4265
  disableCssColorScheme: o,
4266
4266
  shouldSkipGeneratingVar: l,
@@ -4268,18 +4268,18 @@ function Wl(e = {}, ...t) {
4268
4268
  enableContrastVars: a
4269
4269
  }, {
4270
4270
  vars: G,
4271
- generateThemeVars: j,
4271
+ generateThemeVars: V,
4272
4272
  generateStyleSheets: W
4273
- } = el(w, V);
4273
+ } = el(w, j);
4274
4274
  return w.vars = G, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([P, c]) => {
4275
4275
  w[P] = c;
4276
- }), w.generateThemeVars = j, w.generateStyleSheets = W, w.generateSpacing = function() {
4277
- return Mo(p.spacing, Zt(this));
4276
+ }), w.generateThemeVars = V, w.generateStyleSheets = W, w.generateSpacing = function() {
4277
+ return Mo(m.spacing, Zt(this));
4278
4278
  }, w.getColorSchemeSelector = tl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
4279
4279
  ...Ct,
4280
- ...p?.unstable_sxConfig
4280
+ ...m?.unstable_sxConfig
4281
4281
  }, w.unstable_sx = function(c) {
4282
- return Xe({
4282
+ return Qe({
4283
4283
  sx: c,
4284
4284
  theme: this
4285
4285
  });
@@ -4316,13 +4316,13 @@ function Ho(e = {}, ...t) {
4316
4316
  if (n === !1) {
4317
4317
  if (!("colorSchemes" in e))
4318
4318
  return Rr(e, ...t);
4319
- let p = r;
4320
- "palette" in e || d[l] && (d[l] !== !0 ? p = d[l].palette : l === "dark" && (p = {
4319
+ let m = r;
4320
+ "palette" in e || d[l] && (d[l] !== !0 ? m = d[l].palette : l === "dark" && (m = {
4321
4321
  mode: "dark"
4322
4322
  }));
4323
4323
  const y = Rr({
4324
4324
  ...e,
4325
- palette: p
4325
+ palette: m
4326
4326
  }, ...t);
4327
4327
  return y.defaultColorScheme = l, y.colorSchemes = d, y.palette.mode === "light" && (y.colorSchemes.light = {
4328
4328
  ...d.light !== !0 && d.light,
@@ -4356,7 +4356,7 @@ process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
4356
4356
  function Oe(e) {
4357
4357
  return Ya(e);
4358
4358
  }
4359
- const He = Da({
4359
+ const Ke = Da({
4360
4360
  createStyledComponent: pe("div", {
4361
4361
  name: "MuiGrid",
4362
4362
  slot: "Root",
@@ -4374,7 +4374,7 @@ const He = Da({
4374
4374
  }),
4375
4375
  useTheme: Xo
4376
4376
  });
4377
- process.env.NODE_ENV !== "production" && (He.propTypes = {
4377
+ process.env.NODE_ENV !== "production" && (Ke.propTypes = {
4378
4378
  // ┌────────────────────────────── Warning ──────────────────────────────┐
4379
4379
  // │ These PropTypes are generated from the TypeScript type definitions. │
4380
4380
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -4464,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (He.propTypes = {
4464
4464
  wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
4465
4465
  });
4466
4466
  if (process.env.NODE_ENV !== "production") {
4467
- const e = He, t = Va("Grid", e);
4467
+ const e = Ke, t = ja("Grid", e);
4468
4468
  e.propTypes = {
4469
4469
  // eslint-disable-next-line react/forbid-foreign-prop-types
4470
4470
  ...e.propTypes,
@@ -4513,8 +4513,8 @@ function Gl({
4513
4513
  const d = Ht(e, r, o, i);
4514
4514
  if (!d.visible)
4515
4515
  return null;
4516
- const p = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ E(
4517
- p,
4516
+ const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ E(
4517
+ m,
4518
4518
  {
4519
4519
  field: {
4520
4520
  name: e.name,
@@ -4536,12 +4536,12 @@ function Gl({
4536
4536
  values: r
4537
4537
  }
4538
4538
  ) : /* @__PURE__ */ E(
4539
- Vr,
4539
+ jr,
4540
4540
  {
4541
4541
  control: n.control,
4542
4542
  name: e.name,
4543
4543
  render: ({ field: h, fieldState: f }) => /* @__PURE__ */ E(
4544
- p,
4544
+ m,
4545
4545
  {
4546
4546
  error: !!f.error,
4547
4547
  field: h,
@@ -4564,7 +4564,7 @@ function Gl({
4564
4564
  );
4565
4565
  if (u) {
4566
4566
  const h = Fl(e.colSpan);
4567
- return /* @__PURE__ */ E(He, { size: h, children: b }, `${String(e.name)}-${t}`);
4567
+ return /* @__PURE__ */ E(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
4568
4568
  }
4569
4569
  return b;
4570
4570
  }
@@ -4581,7 +4581,7 @@ const Ul = mi(Gl, (e, t) => {
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(He, { container: !0, spacing: e, children: t }), Jo = ll({
4584
+ }), Yl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = ll({
4585
4585
  createStyledComponent: pe("div", {
4586
4586
  name: "MuiStack",
4587
4587
  slot: "Root"
@@ -4757,26 +4757,26 @@ 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: p, ...y } = i ?? {}, m = l?.ui?.remoteConfig, [b, h] = Be([]), [f, g] = Be(!1), [C, k] = Be(!1), [I, $] = Be(""), [S, w] = Be(!1), [V, G] = Be(1), [j, W] = Be(!0), P = m ? b : o, c = m?.pageSize ?? 20;
4761
- _e(() => {
4762
- if (!m?.fetchById || !e.value) return;
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
4763
  const F = (Array.isArray(e.value) ? e.value : [e.value]).filter(
4764
4764
  (U) => !b.some((O) => O.value === U)
4765
4765
  );
4766
4766
  F.length !== 0 && F.forEach(async (U) => {
4767
4767
  try {
4768
- const O = await m.fetchById(U);
4768
+ const O = await p.fetchById(U);
4769
4769
  O && h((R) => R.some((z) => z.value === O.value) ? R : [...R, O]);
4770
4770
  } catch {
4771
4771
  }
4772
4772
  });
4773
- }, [e.value, m, b]);
4773
+ }, [e.value, p, b]);
4774
4774
  const T = ho(
4775
4775
  async (D, F, U = !1) => {
4776
- if (m) {
4777
- U || (G(1), W(!0)), U ? k(!0) : g(!0), m.onLoadingChange?.(!0);
4776
+ if (p) {
4777
+ U || (G(1), W(!0)), U ? k(!0) : g(!0), p.onLoadingChange?.(!0);
4778
4778
  try {
4779
- const O = await m.fetchOptions(D, F, c);
4779
+ const O = await p.fetchOptions(D, F, c);
4780
4780
  h(U ? (R) => {
4781
4781
  const z = O.data.filter(
4782
4782
  (L) => !R.some((q) => q.value === L.value)
@@ -4785,27 +4785,27 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4785
4785
  } : O.data), W(O.hasMore);
4786
4786
  } catch {
4787
4787
  } finally {
4788
- U ? k(!1) : g(!1), m.onLoadingChange?.(!1);
4788
+ U ? k(!1) : g(!1), p.onLoadingChange?.(!1);
4789
4789
  }
4790
4790
  }
4791
4791
  },
4792
- [m, c]
4793
- ), x = rt(null);
4794
- _e(() => {
4795
- S && m && T(I, 1, !1);
4792
+ [p, c]
4793
+ ), x = Ye(null);
4794
+ De(() => {
4795
+ S && p && T(I, 1, !1);
4796
4796
  }, [S]);
4797
4797
  const N = (D, F, U) => {
4798
- $(F), m && (x.current && clearTimeout(x.current), (U === "input" || U === "clear") && (x.current = setTimeout(() => {
4798
+ $(F), p && (x.current && clearTimeout(x.current), (U === "input" || U === "clear") && (x.current = setTimeout(() => {
4799
4799
  T(F, 1, !1);
4800
- }, m.debounceTimeout ?? 500)));
4800
+ }, p.debounceTimeout ?? 500)));
4801
4801
  };
4802
- _e(() => () => {
4802
+ De(() => () => {
4803
4803
  x.current && clearTimeout(x.current);
4804
4804
  }, []);
4805
4805
  const M = (D) => {
4806
4806
  const F = D.currentTarget;
4807
- if (!f && !C && j && F.scrollTop + F.clientHeight >= F.scrollHeight - 20) {
4808
- const U = V + 1;
4807
+ if (!f && !C && V && F.scrollTop + F.clientHeight >= F.scrollHeight - 20) {
4808
+ const U = j + 1;
4809
4809
  G(U), T(I, U, !0);
4810
4810
  }
4811
4811
  };
@@ -4826,27 +4826,27 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4826
4826
  open: S,
4827
4827
  onOpen: () => w(!0),
4828
4828
  onClose: () => w(!1),
4829
- inputValue: m ? I : void 0,
4830
- onInputChange: m ? N : void 0,
4829
+ inputValue: p ? I : void 0,
4830
+ onInputChange: p ? N : void 0,
4831
4831
  options: P,
4832
- loading: f || p,
4833
- filterOptions: m ? (D) => D : void 0,
4832
+ loading: f || m,
4833
+ filterOptions: p ? (D) => D : void 0,
4834
4834
  value: d ? P.filter((D) => (e.value ?? []).includes(D.value)) : P.find((D) => D.value === e.value) ?? null,
4835
4835
  onChange: (D, F) => {
4836
4836
  const U = d ? F.map((O) => O.value) : F?.value ?? null;
4837
4837
  e.onChange(U), typeof u == "function" && u(D, F), a?.trigger(e.name);
4838
4838
  },
4839
4839
  slots: {
4840
- listbox: m ? Xl : void 0
4840
+ listbox: p ? Xl : void 0
4841
4841
  },
4842
4842
  slotProps: {
4843
4843
  listbox: {
4844
- onScroll: m ? M : void 0,
4844
+ onScroll: p ? M : void 0,
4845
4845
  style: { maxHeight: 260 },
4846
4846
  // 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
4847
- ...m ? {
4847
+ ...p ? {
4848
4848
  fetchingMore: C,
4849
- hasMore: j,
4849
+ hasMore: V,
4850
4850
  showNoMore: b.length > 0,
4851
4851
  empty: b.length === 0 && !f && !C,
4852
4852
  error: !1
@@ -4892,7 +4892,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4892
4892
  input: {
4893
4893
  ...D.InputProps,
4894
4894
  endAdornment: /* @__PURE__ */ fe(Dr, { children: [
4895
- f || p ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4895
+ f || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4896
4896
  D.InputProps.endAdornment
4897
4897
  ] })
4898
4898
  }
@@ -4921,7 +4921,7 @@ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4921
4921
  e
4922
4922
  ] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
4923
4923
  /* @__PURE__ */ E(
4924
- jr,
4924
+ Vr,
4925
4925
  {
4926
4926
  control: /* @__PURE__ */ E(
4927
4927
  wi,
@@ -5157,9 +5157,9 @@ const Zl = (e) => {
5157
5157
  component: l = "svg",
5158
5158
  fontSize: u = "medium",
5159
5159
  htmlColor: d,
5160
- inheritViewBox: p = !1,
5160
+ inheritViewBox: m = !1,
5161
5161
  titleAccess: y,
5162
- viewBox: m = "0 0 24 24",
5162
+ viewBox: p = "0 0 24 24",
5163
5163
  ...b
5164
5164
  } = n, h = /* @__PURE__ */ B.isValidElement(o) && o.type === "svg", f = {
5165
5165
  ...n,
@@ -5167,11 +5167,11 @@ const Zl = (e) => {
5167
5167
  component: l,
5168
5168
  fontSize: u,
5169
5169
  instanceFontSize: t.fontSize,
5170
- inheritViewBox: p,
5171
- viewBox: m,
5170
+ inheritViewBox: m,
5171
+ viewBox: p,
5172
5172
  hasSvgAsChild: h
5173
5173
  }, g = {};
5174
- p || (g.viewBox = m);
5174
+ m || (g.viewBox = p);
5175
5175
  const C = Zl(f);
5176
5176
  return /* @__PURE__ */ fe(ec, {
5177
5177
  as: l,
@@ -5312,7 +5312,7 @@ const tc = Kr(/* @__PURE__ */ E("path", {
5312
5312
  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
5313
  }), "ContentCopy"), nc = Kr(/* @__PURE__ */ E("path", {
5314
5314
  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 = ja({
5315
+ }), "Delete"), oc = Pe("MuiBox", ["root"]), ic = Ho(), Gt = Va({
5316
5316
  themeId: Ur,
5317
5317
  defaultTheme: ic,
5318
5318
  defaultClassName: oc.root,
@@ -5462,8 +5462,8 @@ function Xr(e, t) {
5462
5462
  }
5463
5463
  function hc(e, t) {
5464
5464
  e = e || {}, t = t || {};
5465
- function r(p) {
5466
- return p in t ? t[p] : e[p];
5465
+ function r(m) {
5466
+ return m in t ? t[m] : e[m];
5467
5467
  }
5468
5468
  var n = /* @__PURE__ */ Object.create(null), o = [];
5469
5469
  for (var i in e)
@@ -5500,13 +5500,13 @@ function yc(e, t, r) {
5500
5500
  return Object.keys(o).forEach(function(i) {
5501
5501
  var a = o[i];
5502
5502
  if (_t(a)) {
5503
- var l = i in t, u = i in n, d = t[i], p = _t(d) && !d.props.in;
5504
- u && (!l || p) ? o[i] = Nt(a, {
5503
+ var l = i in t, u = i in n, d = t[i], m = _t(d) && !d.props.in;
5504
+ u && (!l || m) ? o[i] = Nt(a, {
5505
5505
  onExited: r.bind(null, a),
5506
5506
  in: !0,
5507
5507
  exit: Ue(a, "exit", e),
5508
5508
  enter: Ue(a, "enter", e)
5509
- }) : !u && l && !p ? o[i] = Nt(a, {
5509
+ }) : !u && l && !m ? o[i] = Nt(a, {
5510
5510
  in: !1
5511
5511
  }) : u && l && _t(d) && (o[i] = Nt(a, {
5512
5512
  onExited: r.bind(null, a),
@@ -5663,13 +5663,13 @@ function ei(e) {
5663
5663
  in: l,
5664
5664
  onExited: u,
5665
5665
  timeout: d
5666
- } = e, [p, y] = B.useState(!1), m = ue(t, r.ripple, r.rippleVisible, n && r.ripplePulsate), b = {
5666
+ } = e, [m, y] = B.useState(!1), p = ue(t, r.ripple, r.rippleVisible, n && r.ripplePulsate), b = {
5667
5667
  width: a,
5668
5668
  height: a,
5669
5669
  top: -(a / 2) + i,
5670
5670
  left: -(a / 2) + o
5671
- }, h = ue(r.child, p && r.childLeaving, n && r.childPulsate);
5672
- return !l && !p && y(!0), B.useEffect(() => {
5671
+ }, h = ue(r.child, m && r.childLeaving, n && r.childPulsate);
5672
+ return !l && !m && y(!0), B.useEffect(() => {
5673
5673
  if (!l && u != null) {
5674
5674
  const f = setTimeout(u, d);
5675
5675
  return () => {
@@ -5677,7 +5677,7 @@ function ei(e) {
5677
5677
  };
5678
5678
  }
5679
5679
  }, [u, l, d]), /* @__PURE__ */ E("span", {
5680
- className: m,
5680
+ className: p,
5681
5681
  style: b,
5682
5682
  children: /* @__PURE__ */ E("span", {
5683
5683
  className: h
@@ -5825,17 +5825,17 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5825
5825
  classes: i = {},
5826
5826
  className: a,
5827
5827
  ...l
5828
- } = n, [u, d] = B.useState([]), p = B.useRef(0), y = B.useRef(null);
5828
+ } = n, [u, d] = B.useState([]), m = B.useRef(0), y = B.useRef(null);
5829
5829
  B.useEffect(() => {
5830
5830
  y.current && (y.current(), y.current = null);
5831
5831
  }, [u]);
5832
- const m = B.useRef(!1), b = Cc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5832
+ const p = B.useRef(!1), b = Cc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5833
5833
  const {
5834
5834
  pulsate: S,
5835
5835
  rippleX: w,
5836
- rippleY: V,
5836
+ rippleY: j,
5837
5837
  rippleSize: G,
5838
- cb: j
5838
+ cb: V
5839
5839
  } = $;
5840
5840
  d((W) => [...W, /* @__PURE__ */ E(Rc, {
5841
5841
  classes: {
@@ -5849,23 +5849,23 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5849
5849
  timeout: Ir,
5850
5850
  pulsate: S,
5851
5851
  rippleX: w,
5852
- rippleY: V,
5852
+ rippleY: j,
5853
5853
  rippleSize: G
5854
- }, p.current)]), p.current += 1, y.current = j;
5854
+ }, m.current)]), m.current += 1, y.current = V;
5855
5855
  }, [i]), C = B.useCallback(($ = {}, S = {}, w = () => {
5856
5856
  }) => {
5857
5857
  const {
5858
- pulsate: V = !1,
5858
+ pulsate: j = !1,
5859
5859
  center: G = o || S.pulsate,
5860
- fakeElement: j = !1
5860
+ fakeElement: V = !1
5861
5861
  // For test purposes
5862
5862
  } = S;
5863
- if ($?.type === "mousedown" && m.current) {
5864
- m.current = !1;
5863
+ if ($?.type === "mousedown" && p.current) {
5864
+ p.current = !1;
5865
5865
  return;
5866
5866
  }
5867
- $?.type === "touchstart" && (m.current = !0);
5868
- const W = j ? null : f.current, P = W ? W.getBoundingClientRect() : {
5867
+ $?.type === "touchstart" && (p.current = !0);
5868
+ const W = V ? null : f.current, P = W ? W.getBoundingClientRect() : {
5869
5869
  width: 0,
5870
5870
  height: 0,
5871
5871
  left: 0,
@@ -5889,7 +5889,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5889
5889
  }
5890
5890
  $?.touches ? h.current === null && (h.current = () => {
5891
5891
  g({
5892
- pulsate: V,
5892
+ pulsate: j,
5893
5893
  rippleX: c,
5894
5894
  rippleY: T,
5895
5895
  rippleSize: x,
@@ -5898,7 +5898,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5898
5898
  }, b.start(Tc, () => {
5899
5899
  h.current && (h.current(), h.current = null);
5900
5900
  })) : g({
5901
- pulsate: V,
5901
+ pulsate: j,
5902
5902
  rippleX: c,
5903
5903
  rippleY: T,
5904
5904
  rippleSize: x,
@@ -6013,9 +6013,9 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6013
6013
  className: l,
6014
6014
  component: u = "button",
6015
6015
  disabled: d = !1,
6016
- disableRipple: p = !1,
6016
+ disableRipple: m = !1,
6017
6017
  disableTouchRipple: y = !1,
6018
- focusRipple: m = !1,
6018
+ focusRipple: p = !1,
6019
6019
  focusVisibleClassName: b,
6020
6020
  LinkComponent: h = "a",
6021
6021
  onBlur: f,
@@ -6026,9 +6026,9 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6026
6026
  onFocusVisible: $,
6027
6027
  onKeyDown: S,
6028
6028
  onKeyUp: w,
6029
- onMouseDown: V,
6029
+ onMouseDown: j,
6030
6030
  onMouseLeave: G,
6031
- onMouseUp: j,
6031
+ onMouseUp: V,
6032
6032
  onTouchEnd: W,
6033
6033
  onTouchMove: P,
6034
6034
  onTouchStart: c,
@@ -6043,27 +6043,27 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6043
6043
  z(!0), F.current.focus();
6044
6044
  }
6045
6045
  }), []);
6046
- const L = U.shouldMount && !p && !d;
6046
+ const L = U.shouldMount && !m && !d;
6047
6047
  B.useEffect(() => {
6048
- R && m && !p && U.pulsate();
6049
- }, [p, m, R, U]);
6050
- const q = Me(U, "start", V, y), X = Me(U, "stop", C, y), H = Me(U, "stop", k, y), K = Me(U, "stop", j, y), Q = Me(U, "stop", (Y) => {
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) => {
6051
6051
  R && Y.preventDefault(), G && G(Y);
6052
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
6053
  Hn(Y.target) || z(!1), f && f(Y);
6054
6054
  }, !1), ye = Dt((Y) => {
6055
6055
  F.current || (F.current = Y.currentTarget), Hn(Y.target) && (z(!0), $ && $(Y)), I && I(Y);
6056
- }), Ne = () => {
6056
+ }), _e = () => {
6057
6057
  const Y = F.current;
6058
6058
  return u && u !== "button" && !(Y.tagName === "A" && Y.href);
6059
6059
  }, wt = Dt((Y) => {
6060
- m && !Y.repeat && R && Y.key === " " && U.stop(Y, () => {
6060
+ p && !Y.repeat && R && Y.key === " " && U.stop(Y, () => {
6061
6061
  U.start(Y);
6062
- }), Y.target === Y.currentTarget && Ne() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && Ne() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
6062
+ }), 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
6063
  }), fi = Dt((Y) => {
6064
- m && Y.key === " " && R && !Y.defaultPrevented && U.stop(Y, () => {
6064
+ p && Y.key === " " && R && !Y.defaultPrevented && U.stop(Y, () => {
6065
6065
  U.pulsate(Y);
6066
- }), w && w(Y), g && Y.target === Y.currentTarget && Ne() && Y.key === " " && !Y.defaultPrevented && g(Y);
6066
+ }), w && w(Y), g && Y.target === Y.currentTarget && _e() && Y.key === " " && !Y.defaultPrevented && g(Y);
6067
6067
  });
6068
6068
  let Et = u;
6069
6069
  Et === "button" && (D.href || D.to) && (Et = h);
@@ -6078,9 +6078,9 @@ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) =
6078
6078
  centerRipple: i,
6079
6079
  component: u,
6080
6080
  disabled: d,
6081
- disableRipple: p,
6081
+ disableRipple: m,
6082
6082
  disableTouchRipple: y,
6083
- focusRipple: m,
6083
+ focusRipple: p,
6084
6084
  tabIndex: T,
6085
6085
  focusVisible: R
6086
6086
  }, pi = Pc(rn);
@@ -6323,7 +6323,7 @@ const Te = 44, Mr = St`
6323
6323
  animation: ${Mr} 1.4s linear infinite;
6324
6324
  ` : null, Dc = typeof _r != "string" ? go`
6325
6325
  animation: ${_r} 1.4s ease-in-out infinite;
6326
- ` : null, Vc = (e) => {
6326
+ ` : null, jc = (e) => {
6327
6327
  const {
6328
6328
  classes: t,
6329
6329
  variant: r,
@@ -6336,7 +6336,7 @@ const Te = 44, Mr = St`
6336
6336
  circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
6337
6337
  };
6338
6338
  return Ae(i, Nc, t);
6339
- }, jc = pe("span", {
6339
+ }, Vc = pe("span", {
6340
6340
  name: "MuiCircularProgress",
6341
6341
  slot: "Root",
6342
6342
  overridesResolver: (e, t) => {
@@ -6435,25 +6435,25 @@ const Te = 44, Mr = St`
6435
6435
  enableTrackSlot: l = !1,
6436
6436
  size: u = 40,
6437
6437
  style: d,
6438
- thickness: p = 3.6,
6438
+ thickness: m = 3.6,
6439
6439
  value: y = 0,
6440
- variant: m = "indeterminate",
6440
+ variant: p = "indeterminate",
6441
6441
  ...b
6442
6442
  } = n, h = {
6443
6443
  ...n,
6444
6444
  color: i,
6445
6445
  disableShrink: a,
6446
6446
  size: u,
6447
- thickness: p,
6447
+ thickness: m,
6448
6448
  value: y,
6449
- variant: m,
6449
+ variant: p,
6450
6450
  enableTrackSlot: l
6451
- }, f = Vc(h), g = {}, C = {}, k = {};
6452
- if (m === "determinate") {
6453
- const I = 2 * Math.PI * ((Te - p) / 2);
6451
+ }, f = jc(h), g = {}, C = {}, k = {};
6452
+ if (p === "determinate") {
6453
+ const I = 2 * Math.PI * ((Te - m) / 2);
6454
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)";
6455
6455
  }
6456
- return /* @__PURE__ */ E(jc, {
6456
+ return /* @__PURE__ */ E(Vc, {
6457
6457
  className: ue(f.root, o),
6458
6458
  style: {
6459
6459
  width: u,
@@ -6475,9 +6475,9 @@ const Te = 44, Mr = St`
6475
6475
  ownerState: h,
6476
6476
  cx: Te,
6477
6477
  cy: Te,
6478
- r: (Te - p) / 2,
6478
+ r: (Te - m) / 2,
6479
6479
  fill: "none",
6480
- strokeWidth: p,
6480
+ strokeWidth: m,
6481
6481
  "aria-hidden": "true"
6482
6482
  }) : null, /* @__PURE__ */ E(Wc, {
6483
6483
  className: f.circle,
@@ -6485,9 +6485,9 @@ const Te = 44, Mr = St`
6485
6485
  ownerState: h,
6486
6486
  cx: Te,
6487
6487
  cy: Te,
6488
- r: (Te - p) / 2,
6488
+ r: (Te - m) / 2,
6489
6489
  fill: "none",
6490
- strokeWidth: p
6490
+ strokeWidth: m
6491
6491
  })]
6492
6492
  })
6493
6493
  });
@@ -6580,11 +6580,11 @@ const qc = (e) => {
6580
6580
  endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
6581
6581
  loadingIndicator: ["loadingIndicator"],
6582
6582
  loadingWrapper: ["loadingWrapper"]
6583
- }, p = Ae(d, Fc, u);
6583
+ }, m = Ae(d, Fc, u);
6584
6584
  return {
6585
6585
  ...u,
6586
6586
  // forward the focused, disabled, etc. classes to the ButtonBase
6587
- ...p
6587
+ ...m
6588
6588
  };
6589
6589
  }, oi = [{
6590
6590
  props: {
@@ -7012,9 +7012,9 @@ const qc = (e) => {
7012
7012
  children: l,
7013
7013
  color: u = "primary",
7014
7014
  component: d = "button",
7015
- className: p,
7015
+ className: m,
7016
7016
  disabled: y = !1,
7017
- disableElevation: m = !1,
7017
+ disableElevation: p = !1,
7018
7018
  disableFocusRipple: b = !1,
7019
7019
  endIcon: h,
7020
7020
  focusVisibleClassName: f,
@@ -7025,9 +7025,9 @@ const qc = (e) => {
7025
7025
  loadingPosition: $ = "center",
7026
7026
  size: S = "medium",
7027
7027
  startIcon: w,
7028
- type: V,
7028
+ type: j,
7029
7029
  variant: G = "text",
7030
- ...j
7030
+ ...V
7031
7031
  } = a, W = Wo(C), P = I ?? /* @__PURE__ */ E(en, {
7032
7032
  "aria-labelledby": W,
7033
7033
  color: "inherit",
@@ -7037,14 +7037,14 @@ const qc = (e) => {
7037
7037
  color: u,
7038
7038
  component: d,
7039
7039
  disabled: y,
7040
- disableElevation: m,
7040
+ disableElevation: p,
7041
7041
  disableFocusRipple: b,
7042
7042
  fullWidth: g,
7043
7043
  loading: k,
7044
7044
  loadingIndicator: P,
7045
7045
  loadingPosition: $,
7046
7046
  size: S,
7047
- type: V,
7047
+ type: j,
7048
7048
  variant: G
7049
7049
  }, T = qc(c), x = (w || k && $ === "start") && /* @__PURE__ */ E(Uc, {
7050
7050
  className: T.startIcon,
@@ -7076,15 +7076,15 @@ const qc = (e) => {
7076
7076
  ) : null;
7077
7077
  return /* @__PURE__ */ fe(Gc, {
7078
7078
  ownerState: c,
7079
- className: ue(n.className, T.root, p, M),
7079
+ className: ue(n.className, T.root, m, M),
7080
7080
  component: d,
7081
7081
  disabled: y || k,
7082
7082
  focusRipple: !b,
7083
7083
  focusVisibleClassName: ue(T.focusVisible, f),
7084
7084
  ref: r,
7085
- type: V,
7085
+ type: j,
7086
7086
  id: k ? W : C,
7087
- ...j,
7087
+ ...V,
7088
7088
  classes: T,
7089
7089
  children: [x, $ !== "end" && D, l, $ === "end" && D, N]
7090
7090
  });
@@ -7401,9 +7401,9 @@ const Xc = (e) => {
7401
7401
  orientation: l = "horizontal",
7402
7402
  component: u = i || l === "vertical" ? "div" : "hr",
7403
7403
  flexItem: d = !1,
7404
- light: p = !1,
7404
+ light: m = !1,
7405
7405
  role: y = u !== "hr" ? "separator" : void 0,
7406
- textAlign: m = "center",
7406
+ textAlign: p = "center",
7407
7407
  variant: b = "fullWidth",
7408
7408
  ...h
7409
7409
  } = n, f = {
@@ -7411,10 +7411,10 @@ const Xc = (e) => {
7411
7411
  absolute: o,
7412
7412
  component: u,
7413
7413
  flexItem: d,
7414
- light: p,
7414
+ light: m,
7415
7415
  orientation: l,
7416
7416
  role: y,
7417
- textAlign: m,
7417
+ textAlign: p,
7418
7418
  variant: b
7419
7419
  }, g = Xc(f);
7420
7420
  return /* @__PURE__ */ E(Qc, {
@@ -7657,9 +7657,9 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7657
7657
  color: l = "default",
7658
7658
  disabled: u = !1,
7659
7659
  disableFocusRipple: d = !1,
7660
- size: p = "medium",
7660
+ size: m = "medium",
7661
7661
  id: y,
7662
- loading: m = null,
7662
+ loading: p = null,
7663
7663
  loadingIndicator: b,
7664
7664
  ...h
7665
7665
  } = n, f = Wo(y), g = b ?? /* @__PURE__ */ E(en, {
@@ -7672,20 +7672,20 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7672
7672
  color: l,
7673
7673
  disabled: u,
7674
7674
  disableFocusRipple: d,
7675
- loading: m,
7675
+ loading: p,
7676
7676
  loadingIndicator: g,
7677
- size: p
7677
+ size: m
7678
7678
  }, k = eu(C);
7679
7679
  return /* @__PURE__ */ fe(tu, {
7680
- id: m ? f : y,
7680
+ id: p ? f : y,
7681
7681
  className: ue(k.root, a),
7682
7682
  centerRipple: !0,
7683
7683
  focusRipple: !d,
7684
- disabled: u || m,
7684
+ disabled: u || p,
7685
7685
  ref: r,
7686
7686
  ...h,
7687
7687
  ownerState: C,
7688
- children: [typeof m == "boolean" && // use plain HTML span to minimize the runtime overhead
7688
+ children: [typeof p == "boolean" && // use plain HTML span to minimize the runtime overhead
7689
7689
  /* @__PURE__ */ E("span", {
7690
7690
  className: k.loadingWrapper,
7691
7691
  style: {
@@ -7694,7 +7694,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7694
7694
  children: /* @__PURE__ */ E(ru, {
7695
7695
  className: k.loadingIndicator,
7696
7696
  ownerState: C,
7697
- children: m && g
7697
+ children: p && g
7698
7698
  })
7699
7699
  }), i]
7700
7700
  });
@@ -7868,20 +7868,20 @@ const su = (e) => {
7868
7868
  elevation: l = 1,
7869
7869
  square: u = !1,
7870
7870
  variant: d = "elevation",
7871
- ...p
7871
+ ...m
7872
7872
  } = n, y = {
7873
7873
  ...n,
7874
7874
  component: a,
7875
7875
  elevation: l,
7876
7876
  square: u,
7877
7877
  variant: d
7878
- }, m = su(y);
7878
+ }, p = su(y);
7879
7879
  return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(au, {
7880
7880
  as: a,
7881
7881
  ownerState: y,
7882
- className: ue(m.root, i),
7882
+ className: ue(p.root, i),
7883
7883
  ref: r,
7884
- ...p,
7884
+ ...m,
7885
7885
  style: {
7886
7886
  ...d === "elevation" && {
7887
7887
  "--Paper-shadow": (o.vars || o).shadows[l],
@@ -7892,7 +7892,7 @@ const su = (e) => {
7892
7892
  "--Paper-overlay": `linear-gradient(${Ft("#fff", kr(l))}, ${Ft("#fff", kr(l))})`
7893
7893
  }
7894
7894
  },
7895
- ...p.style
7895
+ ...m.style
7896
7896
  }
7897
7897
  });
7898
7898
  });
@@ -8076,9 +8076,9 @@ const cu = {
8076
8076
  align: l = "inherit",
8077
8077
  className: u,
8078
8078
  component: d,
8079
- gutterBottom: p = !1,
8079
+ gutterBottom: m = !1,
8080
8080
  noWrap: y = !1,
8081
- paragraph: m = !1,
8081
+ paragraph: p = !1,
8082
8082
  variant: b = "body1",
8083
8083
  variantMapping: h = Zn,
8084
8084
  ...f
@@ -8088,12 +8088,12 @@ const cu = {
8088
8088
  color: n,
8089
8089
  className: u,
8090
8090
  component: d,
8091
- gutterBottom: p,
8091
+ gutterBottom: m,
8092
8092
  noWrap: y,
8093
- paragraph: m,
8093
+ paragraph: p,
8094
8094
  variant: b,
8095
8095
  variantMapping: h
8096
- }, C = d || (m ? "p" : h[b] || Zn[b]) || "span", k = fu(g);
8096
+ }, C = d || (p ? "p" : h[b] || Zn[b]) || "span", k = fu(g);
8097
8097
  return /* @__PURE__ */ E(du, {
8098
8098
  as: C,
8099
8099
  ref: r,
@@ -8230,14 +8230,14 @@ const Tr = ({
8230
8230
  const { fields: l, append: u, remove: d } = yi({
8231
8231
  control: t.control,
8232
8232
  name: e.name
8233
- }), p = qe(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, V) => {
8234
- if (!p.some(
8235
- (W) => W.dependencies.includes(V)
8233
+ }), m = qe(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, j) => {
8234
+ if (!m.some(
8235
+ (W) => W.dependencies.includes(j)
8236
8236
  )) return;
8237
- const j = t.getValues(`${e.name}.${w}`);
8238
- j && p.forEach(({ name: W, expr: P, dependencies: c, precision: T, roundMode: x }) => {
8239
- if (W === V || !c.includes(V) || !c.every((F) => Fr(j[F]))) return;
8240
- const M = Co(P, j, c, T, x), D = j[W];
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
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, {
8242
8242
  shouldValidate: !0,
8243
8243
  // 计算更新通常需要触发验证
@@ -8245,7 +8245,7 @@ const Tr = ({
8245
8245
  shouldTouch: !0
8246
8246
  });
8247
8247
  });
8248
- }, m = t.watch(), {
8248
+ }, p = t.watch(), {
8249
8249
  columns: b = [],
8250
8250
  minItems: h = 0,
8251
8251
  maxItems: f = 1 / 0,
@@ -8257,12 +8257,12 @@ const Tr = ({
8257
8257
  u(w);
8258
8258
  }, I = (w) => {
8259
8259
  if (l.length >= f) return;
8260
- const V = t.getValues(`${e.name}.${w}`);
8261
- u(V);
8260
+ const j = t.getValues(`${e.name}.${w}`);
8261
+ u(j);
8262
8262
  }, $ = (w) => {
8263
8263
  l.length <= h || d(w);
8264
- }, S = (w, V, G) => {
8265
- const j = `${e.name}.${V}.${w.name}`, W = m?.[e.name]?.[V] || {}, P = { ...m, ...W }, c = Ht(
8264
+ }, S = (w, j, G) => {
8265
+ const V = `${e.name}.${j}.${w.name}`, W = p?.[e.name]?.[j] || {}, P = { ...p, ...W }, c = Ht(
8266
8266
  w,
8267
8267
  P,
8268
8268
  o,
@@ -8278,21 +8278,21 @@ const Tr = ({
8278
8278
  children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: w.columns?.map(
8279
8279
  (M, D) => S(
8280
8280
  { ...M, name: M.name },
8281
- V,
8281
+ j,
8282
8282
  D
8283
8283
  )
8284
8284
  ) })
8285
8285
  },
8286
- `${j}-${G}`
8286
+ `${V}-${G}`
8287
8287
  );
8288
8288
  const T = r[w.component] ?? r.Text;
8289
8289
  if (!T) return null;
8290
8290
  const x = n[w.name] ?? w.ui?.options ?? [], N = eo(w.colSpan);
8291
8291
  return /* @__PURE__ */ E($t, { size: N, children: /* @__PURE__ */ E(
8292
- Vr,
8292
+ jr,
8293
8293
  {
8294
8294
  control: t.control,
8295
- name: j,
8295
+ name: V,
8296
8296
  render: ({ field: M, fieldState: D }) => /* @__PURE__ */ E(
8297
8297
  T,
8298
8298
  {
@@ -8300,7 +8300,7 @@ const Tr = ({
8300
8300
  field: {
8301
8301
  ...M,
8302
8302
  onBlur: (F) => {
8303
- M.onBlur(), y(V, w.name);
8303
+ M.onBlur(), y(j, w.name);
8304
8304
  }
8305
8305
  },
8306
8306
  fieldProps: {
@@ -8317,11 +8317,11 @@ const Tr = ({
8317
8317
  }
8318
8318
  )
8319
8319
  }
8320
- ) }, `${j}-${G}`);
8320
+ ) }, `${V}-${G}`);
8321
8321
  };
8322
8322
  return /* @__PURE__ */ fe(Gt, { children: [
8323
8323
  a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
8324
- l.map((w, V) => /* @__PURE__ */ fe(
8324
+ l.map((w, j) => /* @__PURE__ */ fe(
8325
8325
  li,
8326
8326
  {
8327
8327
  variant: "outlined",
@@ -8342,7 +8342,7 @@ const Tr = ({
8342
8342
  Nr,
8343
8343
  {
8344
8344
  size: "small",
8345
- onClick: () => I(V),
8345
+ onClick: () => I(j),
8346
8346
  title: "复制",
8347
8347
  children: /* @__PURE__ */ E(rc, { fontSize: "small" })
8348
8348
  }
@@ -8351,7 +8351,7 @@ const Tr = ({
8351
8351
  Nr,
8352
8352
  {
8353
8353
  size: "small",
8354
- onClick: () => $(V),
8354
+ onClick: () => $(j),
8355
8355
  color: "error",
8356
8356
  title: "删除",
8357
8357
  children: /* @__PURE__ */ E(nc, { fontSize: "small" })
@@ -8360,7 +8360,7 @@ const Tr = ({
8360
8360
  ]
8361
8361
  }
8362
8362
  ),
8363
- /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, j) => S(G, V, j)) })
8363
+ /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, V) => S(G, j, V)) })
8364
8364
  ]
8365
8365
  },
8366
8366
  w.id
@@ -8394,20 +8394,20 @@ const to = ({
8394
8394
  const l = a || t.watch();
8395
8395
  return /* @__PURE__ */ fe(Gt, { sx: { width: "100%" }, children: [
8396
8396
  e.ui?.label && /* @__PURE__ */ E(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
8397
- /* @__PURE__ */ E(He, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
8398
- const p = Ht(
8397
+ /* @__PURE__ */ E(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
8398
+ const m = Ht(
8399
8399
  u,
8400
8400
  l,
8401
8401
  o,
8402
8402
  i
8403
8403
  );
8404
- if (!p.visible)
8404
+ if (!m.visible)
8405
8405
  return null;
8406
8406
  const y = r[u.component] ?? r.Text;
8407
8407
  if (!y)
8408
8408
  return null;
8409
- const m = n[u.name] ?? u.ui?.options ?? [], b = pu(u.colSpan);
8410
- return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(He, { size: b, children: /* @__PURE__ */ E(
8409
+ const p = n[u.name] ?? u.ui?.options ?? [], b = pu(u.colSpan);
8410
+ return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
8411
8411
  y,
8412
8412
  {
8413
8413
  field: { name: u.name, value: void 0, onChange: () => {
@@ -8422,8 +8422,8 @@ const to = ({
8422
8422
  widgets: r,
8423
8423
  values: l
8424
8424
  }
8425
- ) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(He, { size: b, children: /* @__PURE__ */ E(
8426
- Vr,
8425
+ ) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
8426
+ jr,
8427
8427
  {
8428
8428
  control: t.control,
8429
8429
  name: u.name,
@@ -8434,15 +8434,15 @@ const to = ({
8434
8434
  field: h,
8435
8435
  fieldProps: {
8436
8436
  ...u.ui?.props,
8437
- disabled: p.disabled,
8438
- required: p.required,
8439
- readOnly: p.readonly,
8437
+ disabled: m.disabled,
8438
+ required: m.required,
8439
+ readOnly: m.readonly,
8440
8440
  placeholder: u.ui?.placeholder
8441
8441
  },
8442
8442
  form: t,
8443
8443
  helperText: f.error?.message ?? u.ui?.helperText,
8444
8444
  label: u.ui?.label,
8445
- options: m,
8445
+ options: p,
8446
8446
  values: l
8447
8447
  }
8448
8448
  )
@@ -8504,25 +8504,25 @@ const to = ({
8504
8504
  backgroundColor: "#1A2027"
8505
8505
  })
8506
8506
  })), so = ({ field: e, label: t, options: r = [], error: n, helperText: o, fieldProps: i }) => {
8507
- const a = (p) => r.find((m) => String(m.value) === p)?.value ?? p, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ E(
8507
+ 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
8508
  Ei,
8509
8509
  {
8510
8510
  row: !0,
8511
- onChange: (p) => {
8512
- const y = a(p.target.value);
8511
+ onChange: (m) => {
8512
+ const y = a(m.target.value);
8513
8513
  e.onChange(y);
8514
8514
  },
8515
8515
  value: l,
8516
8516
  sx: u ? { flexWrap: "nowrap" } : void 0,
8517
- children: r.map((p) => /* @__PURE__ */ E(
8518
- jr,
8517
+ children: r.map((m) => /* @__PURE__ */ E(
8518
+ Vr,
8519
8519
  {
8520
8520
  control: /* @__PURE__ */ E(Oi, { size: "small" }),
8521
- disabled: p.disabled,
8522
- label: p.label,
8523
- value: String(p.value)
8521
+ disabled: m.disabled,
8522
+ label: m.label,
8523
+ value: String(m.value)
8524
8524
  },
8525
- String(p.value)
8525
+ String(m.value)
8526
8526
  ))
8527
8527
  }
8528
8528
  );
@@ -8551,13 +8551,13 @@ const to = ({
8551
8551
  u ? (
8552
8552
  // 行内布局:label 和 radio 在同一行
8553
8553
  /* @__PURE__ */ fe(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
8554
- /* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
8554
+ /* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
8555
8555
  /* @__PURE__ */ E(io, { children: d })
8556
8556
  ] })
8557
8557
  ) : (
8558
8558
  // 默认布局:label 在上,radio 在下
8559
8559
  /* @__PURE__ */ fe(nn, { spacing: 0, children: [
8560
- t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, children: Se(t, i?.required) }),
8560
+ t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, children: Se(t, i?.required) }),
8561
8561
  d
8562
8562
  ] })
8563
8563
  ),
@@ -8566,7 +8566,7 @@ const to = ({
8566
8566
  }
8567
8567
  );
8568
8568
  }, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { children: [
8569
- t && /* @__PURE__ */ E(Vt, { children: t }),
8569
+ t && /* @__PURE__ */ E(jt, { children: t }),
8570
8570
  /* @__PURE__ */ E(
8571
8571
  $i,
8572
8572
  {
@@ -8578,7 +8578,7 @@ const to = ({
8578
8578
  }
8579
8579
  )
8580
8580
  ] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { fullWidth: !0, children: [
8581
- t && /* @__PURE__ */ E(Vt, { children: t }),
8581
+ t && /* @__PURE__ */ E(jt, { children: t }),
8582
8582
  /* @__PURE__ */ E(
8583
8583
  Ri,
8584
8584
  {
@@ -8590,7 +8590,7 @@ const to = ({
8590
8590
  )
8591
8591
  ] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
8592
8592
  /* @__PURE__ */ E(
8593
- jr,
8593
+ Vr,
8594
8594
  {
8595
8595
  control: /* @__PURE__ */ E(
8596
8596
  ki,
@@ -8717,7 +8717,6 @@ const to = ({
8717
8717
  formList: Tr,
8718
8718
  formlist: Tr
8719
8719
  };
8720
- performance.mark("schemaform-start");
8721
8720
  async function hu(e, t) {
8722
8721
  const r = e.ui?.optionRequest;
8723
8722
  if (!r)
@@ -8729,36 +8728,46 @@ async function hu(e, t) {
8729
8728
  }
8730
8729
  }
8731
8730
  function gu(e, t) {
8732
- const [r, n] = Be({}), o = rt({}), i = rt(!1);
8733
- return _e(() => {
8734
- i.current = !1, o.current = {};
8735
- const a = {};
8736
- for (const l of e)
8737
- a[l.name] = l.ui?.options ?? [];
8738
- n(a);
8739
- }, [e]), _e(() => {
8740
- let a = !0;
8741
- return (async () => {
8742
- const u = o.current, d = { ...t };
8743
- for (const p of e) {
8744
- if (!p.ui?.optionRequest) continue;
8745
- let y = !1;
8746
- const m = p.dependencies;
8747
- if (!m || m.length === 0 ? i.current || (y = !0) : (m.some((h) => t[h] !== u[h]) || !i.current) && (y = !0), y)
8748
- try {
8749
- const b = await hu(p, t);
8750
- if (!a) return;
8751
- b !== null && n((h) => ({
8752
- ...h,
8753
- [p.name]: b
8754
- }));
8755
- } catch {
8756
- }
8731
+ const [r, n] = Ne({}), o = Ye({}), i = Ye(/* @__PURE__ */ new Set()), a = Ye({});
8732
+ return De(() => {
8733
+ i.current.clear(), o.current = {}, a.current = {};
8734
+ const l = {};
8735
+ for (const u of e)
8736
+ l[u.name] = u.ui?.options ?? [];
8737
+ n(l);
8738
+ }, [e]), De(() => {
8739
+ e.forEach(async (l) => {
8740
+ if (!l.ui?.optionRequest) return;
8741
+ const u = l.name, d = l.dependencies || [];
8742
+ let m = !1;
8743
+ const y = {};
8744
+ if (d.forEach((p) => {
8745
+ y[p] = t[p];
8746
+ }), d.length === 0)
8747
+ i.current.has(u) || (m = !0);
8748
+ else if (!i.current.has(u))
8749
+ m = !0;
8750
+ else {
8751
+ const p = o.current[u];
8752
+ d.some(
8753
+ (h) => y[h] !== p?.[h]
8754
+ ) && (m = !0);
8757
8755
  }
8758
- o.current = d, i.current = !0;
8759
- })(), () => {
8760
- a = !1;
8761
- };
8756
+ if (m) {
8757
+ i.current.add(u), o.current[u] = y;
8758
+ const p = (a.current[u] || 0) + 1;
8759
+ a.current[u] = p;
8760
+ try {
8761
+ const b = await hu(l, t);
8762
+ a.current[u] === p && b !== null && n((h) => ({
8763
+ ...h,
8764
+ [u]: b
8765
+ }));
8766
+ } catch {
8767
+ a.current[u];
8768
+ }
8769
+ }
8770
+ });
8762
8771
  }, [e, t]), r;
8763
8772
  }
8764
8773
  function yu(e, t) {
@@ -8771,31 +8780,20 @@ function yu(e, t) {
8771
8780
  readOnly: l = !1,
8772
8781
  disabled: u = !1,
8773
8782
  widgets: d = {},
8774
- children: p,
8783
+ children: m,
8775
8784
  spacing: y
8776
- } = e, m = qe(() => {
8777
- performance.mark("schema-parse-start");
8778
- const P = ji(r);
8779
- return performance.mark("schema-parse-end"), performance.measure(
8780
- "schema-parse",
8781
- "schema-parse-start",
8782
- "schema-parse-end"
8783
- ), P;
8784
- }, [r]), b = rt(void 0);
8785
+ } = e, p = qe(() => Vi(r), [r]), b = Ye(void 0);
8785
8786
  b.current === void 0 && (b.current = {
8786
- ...m.defaultValues,
8787
+ ...p.defaultValues,
8787
8788
  ...n || {}
8788
8789
  });
8789
- const h = qe(() => ({ ...mu, ...d }), [d]), f = qe(() => Fi(m), [m]), g = bi({
8790
+ const h = qe(() => ({ ...mu, ...d }), [d]), f = qe(() => Fi(p), [p]), g = bi({
8790
8791
  defaultValues: b.current,
8791
8792
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8792
8793
  resolver: f,
8793
8794
  mode: "onBlur",
8794
8795
  reValidateMode: "onBlur"
8795
- }), C = qe(() => Di(m), [m]);
8796
- _e(() => {
8797
- }, [C]);
8798
- const k = vi({
8796
+ }), C = qe(() => Di(p), [p]), k = vi({
8799
8797
  control: g.control,
8800
8798
  name: C
8801
8799
  }), I = qe(() => {
@@ -8803,8 +8801,8 @@ function yu(e, t) {
8803
8801
  return Array.isArray(k) && C.forEach((c, T) => {
8804
8802
  P[c] = k[T];
8805
8803
  }), P;
8806
- }, [k, C]), $ = gu(m.allFields, I), S = rt({});
8807
- _e(() => {
8804
+ }, [k, C]), $ = gu(p.allFields, I), S = Ye({});
8805
+ De(() => {
8808
8806
  const P = S.current;
8809
8807
  if (Object.keys(P).length === 0) {
8810
8808
  S.current = { ...I };
@@ -8812,7 +8810,7 @@ function yu(e, t) {
8812
8810
  }
8813
8811
  const c = {};
8814
8812
  let T = !1;
8815
- for (const x of m.allFields)
8813
+ for (const x of p.allFields)
8816
8814
  if (x.dependencies?.length && x.dependencies.some(
8817
8815
  (M) => I[M] !== P[M]
8818
8816
  )) {
@@ -8826,31 +8824,31 @@ function yu(e, t) {
8826
8824
  shouldTouch: !0
8827
8825
  });
8828
8826
  }), S.current = { ...I };
8829
- }, [I, m.allFields, g]), _e(() => {
8827
+ }, [I, p.allFields, g]), De(() => {
8830
8828
  i && i(g.getValues());
8831
8829
  }, [I, i, g]);
8832
- const w = qe(() => m.allFields.filter((P) => P.compute).map((P) => ({
8830
+ const w = qe(() => p.allFields.filter((P) => P.compute).map((P) => ({
8833
8831
  name: P.name,
8834
8832
  expr: P.compute.expr,
8835
8833
  dependencies: P.compute.dependencies || xo(P.compute.expr),
8836
8834
  precision: P.compute.precision,
8837
8835
  roundMode: P.compute.roundMode
8838
- })), [m.allFields]), V = rt({});
8839
- _e(() => {
8836
+ })), [p.allFields]), j = Ye({});
8837
+ De(() => {
8840
8838
  if (w.length === 0) return;
8841
8839
  let P = !1;
8842
8840
  const c = {};
8843
8841
  for (const { name: T, expr: x, dependencies: N, precision: M, roundMode: D } of w) {
8844
- const F = N.map((L) => `${L}:${I[L]}`).join("|"), U = V.current[T];
8842
+ const F = N.map((L) => `${L}:${I[L]}`).join("|"), U = j.current[T];
8845
8843
  if (F === U)
8846
8844
  continue;
8847
8845
  if (!N.every((L) => Fr(I[L]))) {
8848
- V.current[T] = F;
8846
+ j.current[T] = F;
8849
8847
  continue;
8850
8848
  }
8851
8849
  const R = Co(x, I, N, M, D), z = g.getValues(T);
8852
8850
  R !== void 0 && R !== z && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
8853
- (typeof R != "number" || typeof z != "number" || Math.abs(R - z) > 1e-4) && (c[T] = R, P = !0), V.current[T] = F;
8851
+ (typeof R != "number" || typeof z != "number" || Math.abs(R - z) > 1e-4) && (c[T] = R, P = !0), j.current[T] = F;
8854
8852
  }
8855
8853
  P && g.reset(
8856
8854
  {
@@ -8875,7 +8873,7 @@ function yu(e, t) {
8875
8873
  const G = ho(
8876
8874
  async (P) => {
8877
8875
  const c = g.getValues(), T = {};
8878
- for (const x of m.allFields) {
8876
+ for (const x of p.allFields) {
8879
8877
  if (x.noSubmit)
8880
8878
  continue;
8881
8879
  const N = x.name;
@@ -8884,7 +8882,7 @@ function yu(e, t) {
8884
8882
  }
8885
8883
  o && await o(T);
8886
8884
  },
8887
- [m.allFields, o, g]
8885
+ [p.allFields, o, g]
8888
8886
  );
8889
8887
  gi(
8890
8888
  t,
@@ -8895,7 +8893,7 @@ function yu(e, t) {
8895
8893
  },
8896
8894
  getFormValues: () => {
8897
8895
  const c = g.getValues(), T = {};
8898
- for (const x of m.allFields)
8896
+ for (const x of p.allFields)
8899
8897
  x.noSubmit || (T[x.name] = c[x.name]);
8900
8898
  return T;
8901
8899
  },
@@ -8904,9 +8902,9 @@ function yu(e, t) {
8904
8902
  x !== void 0 && g.setValue(T, x);
8905
8903
  }
8906
8904
  }),
8907
- [g, m, G]
8905
+ [g, p, G]
8908
8906
  );
8909
- const j = () => m.input.fields.flatMap((c, T) => {
8907
+ const V = () => p.input.fields.flatMap((c, T) => {
8910
8908
  if (c.component === "Hidden")
8911
8909
  return [];
8912
8910
  const x = [];
@@ -8929,8 +8927,8 @@ function yu(e, t) {
8929
8927
  ), x;
8930
8928
  }), W = y ?? r.layout?.spacing ?? 2;
8931
8929
  return /* @__PURE__ */ E(Si, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8932
- a ? /* @__PURE__ */ E(Yl, { spacing: W, children: j() }) : /* @__PURE__ */ E(Hl, { spacing: W, children: j() }),
8933
- p
8930
+ a ? /* @__PURE__ */ E(Yl, { spacing: W, children: V() }) : /* @__PURE__ */ E(Hl, { spacing: W, children: V() }),
8931
+ m
8934
8932
  ] }) });
8935
8933
  }
8936
8934
  const _u = mo(yu);
@@ -8965,10 +8963,10 @@ export {
8965
8963
  Ht as computeFieldState,
8966
8964
  Fi as createDynamicResolver,
8967
8965
  mu as defaultWidgets,
8968
- Ve as evaluateCondition,
8966
+ je as evaluateCondition,
8969
8967
  nt as extractDependencies,
8970
8968
  Iu as getDownstreamFields,
8971
8969
  Di as getWatchFields,
8972
8970
  Mu as mergeDefaultValues,
8973
- ji as parseSchema
8971
+ Vi as parseSchema
8974
8972
  };