@fastspace/schema-form 0.0.5 → 0.0.6

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.
@@ -64,7 +64,7 @@ function Ht(e, t, r = !1, n = !1) {
64
64
  const l = e.readonly ?? n;
65
65
  return { visible: o, disabled: i, required: a, readonly: l };
66
66
  }
67
- function Iu(e, t, r = !1, n = !1) {
67
+ function Pu(e, t, r = !1, n = !1) {
68
68
  const o = /* @__PURE__ */ new Map();
69
69
  for (const i of e.input.fields) {
70
70
  const a = Ht(
@@ -160,7 +160,7 @@ function ji(e) {
160
160
  // 新增:扁平化的所有字段列表
161
161
  };
162
162
  }
163
- function Mu(e, t) {
163
+ function Iu(e, t) {
164
164
  const r = /* @__PURE__ */ new Set(), n = [e];
165
165
  for (; n.length > 0; ) {
166
166
  const o = n.shift();
@@ -172,7 +172,7 @@ function Mu(e, t) {
172
172
  }
173
173
  return r;
174
174
  }
175
- function _u(e, t) {
175
+ function Mu(e, t) {
176
176
  return {
177
177
  ...e.defaultValues,
178
178
  ...t
@@ -316,10 +316,10 @@ function wr(e, t) {
316
316
  for (const w of S.columns)
317
317
  C[w.name] = wr(w, t);
318
318
  else S.component !== "Group" && (C[S.name] = wr(S, t));
319
- const k = A.object(C), P = [];
320
- f > 0 && P.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && P.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
319
+ const k = A.object(C), I = [];
320
+ f > 0 && I.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && I.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
321
321
  const $ = A.array(k);
322
- return P.length > 0 ? A.pipe($, ...P) : $;
322
+ return I.length > 0 ? A.pipe($, ...I) : $;
323
323
  }
324
324
  if (n === "Upload") {
325
325
  const h = o.find((g) => g.type === "array"), f = h?.type === "array" ? h.minItems ?? (i ? 1 : 0) : i ? 1 : 0;
@@ -441,7 +441,7 @@ function Gi() {
441
441
  if (on) return te;
442
442
  on = 1;
443
443
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, 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;
444
- function P(S) {
444
+ function I(S) {
445
445
  if (typeof S == "object" && S !== null) {
446
446
  var w = S.$$typeof;
447
447
  switch (w) {
@@ -472,51 +472,51 @@ function Gi() {
472
472
  }
473
473
  }
474
474
  function $(S) {
475
- return P(S) === d;
475
+ return I(S) === d;
476
476
  }
477
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) {
478
- return $(S) || P(S) === u;
478
+ return $(S) || I(S) === u;
479
479
  }, te.isConcurrentMode = $, te.isContextConsumer = function(S) {
480
- return P(S) === l;
480
+ return I(S) === l;
481
481
  }, te.isContextProvider = function(S) {
482
- return P(S) === a;
482
+ return I(S) === a;
483
483
  }, te.isElement = function(S) {
484
484
  return typeof S == "object" && S !== null && S.$$typeof === t;
485
485
  }, te.isForwardRef = function(S) {
486
- return P(S) === p;
486
+ return I(S) === p;
487
487
  }, te.isFragment = function(S) {
488
- return P(S) === n;
488
+ return I(S) === n;
489
489
  }, te.isLazy = function(S) {
490
- return P(S) === h;
490
+ return I(S) === h;
491
491
  }, te.isMemo = function(S) {
492
- return P(S) === b;
492
+ return I(S) === b;
493
493
  }, te.isPortal = function(S) {
494
- return P(S) === r;
494
+ return I(S) === r;
495
495
  }, te.isProfiler = function(S) {
496
- return P(S) === i;
496
+ return I(S) === i;
497
497
  }, te.isStrictMode = function(S) {
498
- return P(S) === o;
498
+ return I(S) === o;
499
499
  }, te.isSuspense = function(S) {
500
- return P(S) === y;
500
+ return I(S) === y;
501
501
  }, te.isValidElementType = function(S) {
502
502
  return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === 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);
503
- }, te.typeOf = P, te;
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
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;
510
- function P(N) {
511
- return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
512
- N === n || N === d || N === i || N === o || N === y || N === m || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === p || N.$$typeof === g || N.$$typeof === C || N.$$typeof === k || N.$$typeof === f);
510
+ function I(_) {
511
+ return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
512
+ _ === n || _ === d || _ === i || _ === o || _ === y || _ === m || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === b || _.$$typeof === a || _.$$typeof === l || _.$$typeof === p || _.$$typeof === g || _.$$typeof === C || _.$$typeof === k || _.$$typeof === f);
513
513
  }
514
- function $(N) {
515
- if (typeof N == "object" && N !== null) {
516
- var ye = N.$$typeof;
514
+ function $(_) {
515
+ if (typeof _ == "object" && _ !== null) {
516
+ var ye = _.$$typeof;
517
517
  switch (ye) {
518
518
  case t:
519
- var Ne = N.type;
519
+ var Ne = _.type;
520
520
  switch (Ne) {
521
521
  case u:
522
522
  case d:
@@ -543,47 +543,47 @@ function Ui() {
543
543
  }
544
544
  }
545
545
  }
546
- var S = u, w = d, V = l, U = a, j = t, L = p, I = n, c = h, T = b, x = r, M = i, _ = o, D = y, F = !1;
547
- function q(N) {
548
- return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(N) || $(N) === u;
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;
547
+ function U(_) {
548
+ return F || (F = !0), O(_) || $(_) === u;
549
549
  }
550
- function O(N) {
551
- return $(N) === d;
550
+ function O(_) {
551
+ return $(_) === d;
552
552
  }
553
- function R(N) {
554
- return $(N) === l;
553
+ function R(_) {
554
+ return $(_) === l;
555
555
  }
556
- function z(N) {
557
- return $(N) === a;
556
+ function z(_) {
557
+ return $(_) === a;
558
558
  }
559
- function W(N) {
560
- return typeof N == "object" && N !== null && N.$$typeof === t;
559
+ function L(_) {
560
+ return typeof _ == "object" && _ !== null && _.$$typeof === t;
561
561
  }
562
- function G(N) {
563
- return $(N) === p;
562
+ function q(_) {
563
+ return $(_) === p;
564
564
  }
565
- function X(N) {
566
- return $(N) === n;
565
+ function X(_) {
566
+ return $(_) === n;
567
567
  }
568
- function H(N) {
569
- return $(N) === h;
568
+ function H(_) {
569
+ return $(_) === h;
570
570
  }
571
- function K(N) {
572
- return $(N) === b;
571
+ function K(_) {
572
+ return $(_) === b;
573
573
  }
574
- function Q(N) {
575
- return $(N) === r;
574
+ function Q(_) {
575
+ return $(_) === r;
576
576
  }
577
- function ee(N) {
578
- return $(N) === i;
577
+ function ee(_) {
578
+ return $(_) === i;
579
579
  }
580
- function J(N) {
581
- return $(N) === o;
580
+ function J(_) {
581
+ return $(_) === o;
582
582
  }
583
- function me(N) {
584
- return $(N) === y;
583
+ function me(_) {
584
+ return $(_) === y;
585
585
  }
586
- re.AsyncMode = S, re.ConcurrentMode = w, re.ContextConsumer = V, re.ContextProvider = U, re.Element = j, re.ForwardRef = L, re.Fragment = I, re.Lazy = c, re.Memo = T, re.Portal = x, re.Profiler = M, re.StrictMode = _, re.Suspense = D, re.isAsyncMode = q, re.isConcurrentMode = O, re.isContextConsumer = R, re.isContextProvider = z, re.isElement = W, re.isForwardRef = G, re.isFragment = X, re.isLazy = H, re.isMemo = K, re.isPortal = Q, re.isProfiler = ee, re.isStrictMode = J, re.isSuspense = me, re.isValidElementType = P, re.typeOf = $;
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 = $;
587
587
  })()), re;
588
588
  }
589
589
  var an;
@@ -657,7 +657,6 @@ function Hi() {
657
657
  var t = /* @__PURE__ */ qr(), r = {}, n = /* @__PURE__ */ wo();
658
658
  e = function(i) {
659
659
  var a = "Warning: " + i;
660
- typeof console < "u" && console.error(a);
661
660
  try {
662
661
  throw new Error(a);
663
662
  } catch {
@@ -704,7 +703,6 @@ function Ki() {
704
703
  };
705
704
  process.env.NODE_ENV !== "production" && (i = function(l) {
706
705
  var u = "Warning: " + l;
707
- typeof console < "u" && console.error(u);
708
706
  try {
709
707
  throw new Error(u);
710
708
  } catch {
@@ -730,12 +728,12 @@ function Ki() {
730
728
  string: C("string"),
731
729
  symbol: C("symbol"),
732
730
  any: k(),
733
- arrayOf: P,
731
+ arrayOf: I,
734
732
  element: $(),
735
733
  elementType: S(),
736
734
  instanceOf: w,
737
- node: L(),
738
- objectOf: U,
735
+ node: W(),
736
+ objectOf: G,
739
737
  oneOf: V,
740
738
  oneOfType: j,
741
739
  shape: c,
@@ -751,13 +749,13 @@ function Ki() {
751
749
  function g(O) {
752
750
  if (process.env.NODE_ENV !== "production")
753
751
  var R = {}, z = 0;
754
- function W(X, H, K, Q, ee, J, me) {
752
+ function L(X, H, K, Q, ee, J, me) {
755
753
  if (Q = Q || m, J = J || K, me !== r) {
756
754
  if (u) {
757
- var N = new Error(
755
+ var _ = new Error(
758
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"
759
757
  );
760
- throw N.name = "Invariant Violation", N;
758
+ throw _.name = "Invariant Violation", _;
761
759
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
762
760
  var ye = Q + ":" + K;
763
761
  !R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -768,16 +766,16 @@ function Ki() {
768
766
  }
769
767
  return H[K] == null ? X ? H[K] === null ? new f("The " + ee + " `" + J + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new f("The " + ee + " `" + J + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : O(H, K, Q, ee, J);
770
768
  }
771
- var G = W.bind(null, !1);
772
- return G.isRequired = W.bind(null, !0), G;
769
+ var q = L.bind(null, !1);
770
+ return q.isRequired = L.bind(null, !0), q;
773
771
  }
774
772
  function C(O) {
775
- function R(z, W, G, X, H, K) {
776
- var Q = z[W], ee = _(Q);
773
+ function R(z, L, q, X, H, K) {
774
+ var Q = z[L], ee = M(Q);
777
775
  if (ee !== O) {
778
776
  var J = D(Q);
779
777
  return new f(
780
- "Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" + G + "`, expected ") + ("`" + O + "`."),
778
+ "Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" + q + "`, expected ") + ("`" + O + "`."),
781
779
  { expectedType: O }
782
780
  );
783
781
  }
@@ -788,17 +786,17 @@ function Ki() {
788
786
  function k() {
789
787
  return g(a);
790
788
  }
791
- function P(O) {
792
- function R(z, W, G, X, H) {
789
+ function I(O) {
790
+ function R(z, L, q, X, H) {
793
791
  if (typeof O != "function")
794
- return new f("Property `" + H + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
795
- var K = z[W];
792
+ return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
793
+ var K = z[L];
796
794
  if (!Array.isArray(K)) {
797
- var Q = _(K);
798
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + G + "`, expected an array."));
795
+ var Q = M(K);
796
+ return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an array."));
799
797
  }
800
798
  for (var ee = 0; ee < K.length; ee++) {
801
- var J = O(K, ee, G, X, H + "[" + ee + "]", r);
799
+ var J = O(K, ee, q, X, H + "[" + ee + "]", r);
802
800
  if (J instanceof Error)
803
801
  return J;
804
802
  }
@@ -807,32 +805,32 @@ function Ki() {
807
805
  return g(R);
808
806
  }
809
807
  function $() {
810
- function O(R, z, W, G, X) {
808
+ function O(R, z, L, q, X) {
811
809
  var H = R[z];
812
810
  if (!l(H)) {
813
- var K = _(H);
814
- return new f("Invalid " + G + " `" + X + "` of type " + ("`" + K + "` supplied to `" + W + "`, expected a single ReactElement."));
811
+ var K = M(H);
812
+ return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement."));
815
813
  }
816
814
  return null;
817
815
  }
818
816
  return g(O);
819
817
  }
820
818
  function S() {
821
- function O(R, z, W, G, X) {
819
+ function O(R, z, L, q, X) {
822
820
  var H = R[z];
823
821
  if (!e.isValidElementType(H)) {
824
- var K = _(H);
825
- return new f("Invalid " + G + " `" + X + "` of type " + ("`" + K + "` supplied to `" + W + "`, expected a single ReactElement type."));
822
+ var K = M(H);
823
+ return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement type."));
826
824
  }
827
825
  return null;
828
826
  }
829
827
  return g(O);
830
828
  }
831
829
  function w(O) {
832
- function R(z, W, G, X, H) {
833
- if (!(z[W] instanceof O)) {
834
- var K = O.name || m, Q = q(z[W]);
835
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + G + "`, expected ") + ("instance of `" + K + "`."));
830
+ function R(z, L, q, X, H) {
831
+ if (!(z[L] instanceof O)) {
832
+ var K = O.name || m, Q = U(z[L]);
833
+ return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected ") + ("instance of `" + K + "`."));
836
834
  }
837
835
  return null;
838
836
  }
@@ -843,28 +841,28 @@ function Ki() {
843
841
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
844
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])."
845
843
  ) : i("Invalid argument supplied to oneOf, expected an array.")), a;
846
- function R(z, W, G, X, H) {
847
- for (var K = z[W], Q = 0; Q < O.length; Q++)
844
+ function R(z, L, q, X, H) {
845
+ for (var K = z[L], Q = 0; Q < O.length; Q++)
848
846
  if (h(K, O[Q]))
849
847
  return null;
850
- var ee = JSON.stringify(O, function(me, N) {
851
- var ye = D(N);
852
- return ye === "symbol" ? String(N) : N;
848
+ var ee = JSON.stringify(O, function(me, _) {
849
+ var ye = D(_);
850
+ return ye === "symbol" ? String(_) : _;
853
851
  });
854
- return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" + G + "`, expected one of " + ee + "."));
852
+ return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" + q + "`, expected one of " + ee + "."));
855
853
  }
856
854
  return g(R);
857
855
  }
858
- function U(O) {
859
- function R(z, W, G, X, H) {
856
+ function G(O) {
857
+ function R(z, L, q, X, H) {
860
858
  if (typeof O != "function")
861
- return new f("Property `" + H + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
862
- var K = z[W], Q = _(K);
859
+ return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
860
+ var K = z[L], Q = M(K);
863
861
  if (Q !== "object")
864
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + G + "`, expected an object."));
862
+ return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an object."));
865
863
  for (var ee in K)
866
864
  if (n(K, ee)) {
867
- var J = O(K, ee, G, X, H + "." + ee, r);
865
+ var J = O(K, ee, q, X, H + "." + ee, r);
868
866
  if (J instanceof Error)
869
867
  return J;
870
868
  }
@@ -882,39 +880,39 @@ function Ki() {
882
880
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(z) + " at index " + R + "."
883
881
  ), a;
884
882
  }
885
- function W(G, X, H, K, Q) {
883
+ function L(q, X, H, K, Q) {
886
884
  for (var ee = [], J = 0; J < O.length; J++) {
887
- var me = O[J], N = me(G, X, H, K, Q, r);
888
- if (N == null)
885
+ var me = O[J], _ = me(q, X, H, K, Q, r);
886
+ if (_ == null)
889
887
  return null;
890
- N.data && n(N.data, "expectedType") && ee.push(N.data.expectedType);
888
+ _.data && n(_.data, "expectedType") && ee.push(_.data.expectedType);
891
889
  }
892
890
  var ye = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
893
891
  return new f("Invalid " + K + " `" + Q + "` supplied to " + ("`" + H + "`" + ye + "."));
894
892
  }
895
- return g(W);
893
+ return g(L);
896
894
  }
897
- function L() {
898
- function O(R, z, W, G, X) {
899
- return x(R[z]) ? null : new f("Invalid " + G + " `" + X + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
895
+ function W() {
896
+ function O(R, z, L, q, X) {
897
+ return x(R[z]) ? null : new f("Invalid " + q + " `" + X + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
900
898
  }
901
899
  return g(O);
902
900
  }
903
- function I(O, R, z, W, G) {
901
+ function P(O, R, z, L, q) {
904
902
  return new f(
905
- (O || "React class") + ": " + R + " type `" + z + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
903
+ (O || "React class") + ": " + R + " type `" + z + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + q + "`."
906
904
  );
907
905
  }
908
906
  function c(O) {
909
- function R(z, W, G, X, H) {
910
- var K = z[W], Q = _(K);
907
+ function R(z, L, q, X, H) {
908
+ var K = z[L], Q = M(K);
911
909
  if (Q !== "object")
912
- return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + G + "`, expected `object`."));
910
+ return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
913
911
  for (var ee in O) {
914
912
  var J = O[ee];
915
913
  if (typeof J != "function")
916
- return I(G, X, H, ee, D(J));
917
- var me = J(K, ee, G, X, H + "." + ee, r);
914
+ return P(q, X, H, ee, D(J));
915
+ var me = J(K, ee, q, X, H + "." + ee, r);
918
916
  if (me)
919
917
  return me;
920
918
  }
@@ -923,23 +921,23 @@ function Ki() {
923
921
  return g(R);
924
922
  }
925
923
  function T(O) {
926
- function R(z, W, G, X, H) {
927
- var K = z[W], Q = _(K);
924
+ function R(z, L, q, X, H) {
925
+ var K = z[L], Q = M(K);
928
926
  if (Q !== "object")
929
- return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + G + "`, expected `object`."));
930
- var ee = t({}, z[W], O);
927
+ return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
928
+ var ee = t({}, z[L], O);
931
929
  for (var J in ee) {
932
930
  var me = O[J];
933
931
  if (n(O, J) && typeof me != "function")
934
- return I(G, X, H, J, D(me));
932
+ return P(q, X, H, J, D(me));
935
933
  if (!me)
936
934
  return new f(
937
- "Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(z[W], null, " ") + `
935
+ "Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(z[L], null, " ") + `
938
936
  Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
939
937
  );
940
- var N = me(K, J, G, X, H + "." + J, r);
941
- if (N)
942
- return N;
938
+ var _ = me(K, J, q, X, H + "." + J, r);
939
+ if (_)
940
+ return _;
943
941
  }
944
942
  return null;
945
943
  }
@@ -960,15 +958,15 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
960
958
  return !0;
961
959
  var R = y(O);
962
960
  if (R) {
963
- var z = R.call(O), W;
961
+ var z = R.call(O), L;
964
962
  if (R !== O.entries) {
965
- for (; !(W = z.next()).done; )
966
- if (!x(W.value))
963
+ for (; !(L = z.next()).done; )
964
+ if (!x(L.value))
967
965
  return !1;
968
966
  } else
969
- for (; !(W = z.next()).done; ) {
970
- var G = W.value;
971
- if (G && !x(G[1]))
967
+ for (; !(L = z.next()).done; ) {
968
+ var q = L.value;
969
+ if (q && !x(q[1]))
972
970
  return !1;
973
971
  }
974
972
  } else
@@ -978,17 +976,17 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
978
976
  return !1;
979
977
  }
980
978
  }
981
- function M(O, R) {
979
+ function N(O, R) {
982
980
  return O === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
983
981
  }
984
- function _(O) {
982
+ function M(O) {
985
983
  var R = typeof O;
986
- return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : M(R, O) ? "symbol" : R;
984
+ return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : N(R, O) ? "symbol" : R;
987
985
  }
988
986
  function D(O) {
989
987
  if (typeof O > "u" || O === null)
990
988
  return "" + O;
991
- var R = _(O);
989
+ var R = M(O);
992
990
  if (R === "object") {
993
991
  if (O instanceof Date)
994
992
  return "date";
@@ -1011,7 +1009,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
1011
1009
  return R;
1012
1010
  }
1013
1011
  }
1014
- function q(O) {
1012
+ function U(O) {
1015
1013
  return !O.constructor || !O.constructor.name ? m : O.constructor.name;
1016
1014
  }
1017
1015
  return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
@@ -1335,8 +1333,7 @@ function Ro(e, t) {
1335
1333
  const r = Ci(e, t);
1336
1334
  return process.env.NODE_ENV !== "production" ? (...n) => {
1337
1335
  const o = typeof e == "string" ? `"${e}"` : "component";
1338
- return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
1339
- `)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
1336
+ return n.length === 0 || n.some((i) => i === void 0), r(...n);
1340
1337
  } : r;
1341
1338
  }
1342
1339
  function cs(e, t) {
@@ -1799,17 +1796,14 @@ const ws = {
1799
1796
  }), Qt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Jt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], $s = [...Qt, ...Jt];
1800
1797
  function xt(e, t, r, n) {
1801
1798
  const o = Xt(e, t, !0) ?? r;
1802
- return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
1799
+ return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV, typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
1803
1800
  if (typeof i == "string")
1804
1801
  return i;
1805
1802
  const a = Math.abs(i);
1806
- process.env.NODE_ENV !== "production" && (Number.isInteger(a) ? a > o.length - 1 && console.error([`MUI: The value provided (${a}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${a} > ${o.length - 1}, you need to add the missing values.`].join(`
1807
- `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
1808
- `)));
1803
+ process.env.NODE_ENV !== "production" && Number.isInteger(a) && a > o.length - 1;
1809
1804
  const l = o[a];
1810
1805
  return i >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`;
1811
- } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
1812
- `)), () => {
1806
+ } : typeof o == "function" ? o : (process.env.NODE_ENV, () => {
1813
1807
  });
1814
1808
  }
1815
1809
  function Zt(e) {
@@ -1847,7 +1841,7 @@ function Mo(e = 8, t = Zt({
1847
1841
  })) {
1848
1842
  if (e.mui)
1849
1843
  return e;
1850
- const r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((i) => {
1844
+ const r = (...n) => (process.env.NODE_ENV !== "production" && n.length <= 4, (n.length === 0 ? [1] : n).map((i) => {
1851
1845
  const a = t(i);
1852
1846
  return typeof a == "number" ? `${a}px` : a;
1853
1847
  }).join(" "));
@@ -2557,7 +2551,7 @@ function Bo(e = {}) {
2557
2551
  ), C = m || !1;
2558
2552
  let k = Sr;
2559
2553
  p === "Root" || p === "root" ? k = n : p ? k = o : ya(l) && (k = void 0);
2560
- const P = Ro(l, {
2554
+ const I = Ro(l, {
2561
2555
  shouldForwardProp: k,
2562
2556
  label: ha(d, p),
2563
2557
  ...h
@@ -2565,8 +2559,8 @@ function Bo(e = {}) {
2565
2559
  if (w.__emotion_real === w)
2566
2560
  return w;
2567
2561
  if (typeof w == "function")
2568
- return function(U) {
2569
- return Bt(U, w, U.theme.modularCssLayers ? f : void 0);
2562
+ return function(G) {
2563
+ return Bt(G, w, G.theme.modularCssLayers ? f : void 0);
2570
2564
  };
2571
2565
  if (Re(w)) {
2572
2566
  const V = _o(w);
@@ -2576,27 +2570,27 @@ function Bo(e = {}) {
2576
2570
  }
2577
2571
  return w;
2578
2572
  }, S = (...w) => {
2579
- const V = [], U = w.map($), j = [];
2573
+ const V = [], G = w.map($), j = [];
2580
2574
  if (V.push(i), d && b && j.push(function(T) {
2581
- const M = T.theme.components?.[d]?.styleOverrides;
2582
- if (!M)
2575
+ const N = T.theme.components?.[d]?.styleOverrides;
2576
+ if (!N)
2583
2577
  return null;
2584
- const _ = {};
2585
- for (const D in M)
2586
- _[D] = Bt(T, M[D], T.theme.modularCssLayers ? "theme" : void 0);
2587
- return b(T, _);
2578
+ const M = {};
2579
+ for (const D in N)
2580
+ M[D] = Bt(T, N[D], T.theme.modularCssLayers ? "theme" : void 0);
2581
+ return b(T, M);
2588
2582
  }), d && !g && j.push(function(T) {
2589
- const M = T.theme?.components?.[d]?.variants;
2590
- return M ? No(T, M, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
2591
- }), C || j.push(Xe), Array.isArray(U[0])) {
2592
- const c = U.shift(), T = new Array(V.length).fill(""), x = new Array(j.length).fill("");
2593
- let M;
2594
- M = [...T, ...c, ...x], M.raw = [...T, ...c.raw, ...x], V.unshift(M);
2583
+ const N = T.theme?.components?.[d]?.variants;
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("");
2587
+ let N;
2588
+ N = [...T, ...c, ...x], N.raw = [...T, ...c.raw, ...x], V.unshift(N);
2595
2589
  }
2596
- const L = [...V, ...U, ...j], I = P(...L);
2597
- return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ma(d, p, l)), I;
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;
2598
2592
  };
2599
- return P.withConfig && (S.withConfig = P.withConfig), S;
2593
+ return I.withConfig && (S.withConfig = I.withConfig), S;
2600
2594
  };
2601
2595
  }
2602
2596
  function ma(e, t, r) {
@@ -2840,32 +2834,32 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", Ta = ({
2840
2834
  }), n;
2841
2835
  }
2842
2836
  return [];
2843
- }, Ia = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, r]) => `direction-${t}-${r}`) : [`direction-xs-${String(e)}`], Ma = (e) => ["item", "zeroMinWidth"].includes(e) ? `The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.` : `The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`, Rn = [];
2844
- function _a(e, t) {
2837
+ }, Ia = (e) => e === void 0 ? [] : typeof e == "object" ? Object.entries(e).map(([t, r]) => `direction-${t}-${r}`) : [`direction-xs-${String(e)}`];
2838
+ const Rn = [];
2839
+ function Ma(e, t) {
2845
2840
  const r = [];
2846
2841
  e.item !== void 0 && (delete e.item, r.push("item")), e.zeroMinWidth !== void 0 && (delete e.zeroMinWidth, r.push("zeroMinWidth")), t.keys.forEach((n) => {
2847
2842
  e[n] !== void 0 && (r.push(n), delete e[n]);
2848
2843
  }), process.env.NODE_ENV !== "production" && r.forEach((n) => {
2849
- Rn.includes(n) || (Rn.push(n), console.warn(`MUI Grid: ${Ma(n)}
2850
- `));
2844
+ Rn.includes(n) || Rn.push(n);
2851
2845
  });
2852
2846
  }
2853
- const Na = Tt(), Ba = Vo("div", {
2847
+ const _a = Tt(), Na = Vo("div", {
2854
2848
  name: "MuiGrid",
2855
2849
  slot: "Root"
2856
2850
  });
2857
- function Da(e) {
2851
+ function Ba(e) {
2858
2852
  return jo({
2859
2853
  props: e,
2860
2854
  name: "MuiGrid",
2861
- defaultTheme: Na
2855
+ defaultTheme: _a
2862
2856
  });
2863
2857
  }
2864
- function Va(e = {}) {
2858
+ function Da(e = {}) {
2865
2859
  const {
2866
2860
  // This will allow adding custom styled fn (for example for custom sx style function)
2867
- createStyledComponent: t = Ba,
2868
- useThemeProps: r = Da,
2861
+ createStyledComponent: t = Na,
2862
+ useThemeProps: r = Ba,
2869
2863
  useTheme: n = sr,
2870
2864
  componentName: o = "MuiGrid"
2871
2865
  } = e, i = (d, p) => {
@@ -2891,43 +2885,43 @@ function Va(e = {}) {
2891
2885
  }
2892
2886
  const l = t(Ea, $a, Oa, Ta, Ra, ka, wa), u = /* @__PURE__ */ B.forwardRef(function(p, y) {
2893
2887
  const m = n(), b = r(p), h = ir(b);
2894
- _a(h, m.breakpoints);
2888
+ Ma(h, m.breakpoints);
2895
2889
  const {
2896
2890
  className: f,
2897
2891
  children: g,
2898
2892
  columns: C = 12,
2899
2893
  container: k = !1,
2900
- component: P = "div",
2894
+ component: I = "div",
2901
2895
  direction: $ = "row",
2902
2896
  wrap: S = "wrap",
2903
2897
  size: w = {},
2904
2898
  offset: V = {},
2905
- spacing: U = 0,
2906
- rowSpacing: j = U,
2907
- columnSpacing: L = U,
2908
- unstable_level: I = 0,
2899
+ spacing: G = 0,
2900
+ rowSpacing: j = G,
2901
+ columnSpacing: W = G,
2902
+ unstable_level: P = 0,
2909
2903
  ...c
2910
- } = h, T = a(w, m.breakpoints, (R) => R !== !1), x = a(V, m.breakpoints), M = p.columns ?? (I ? void 0 : C), _ = p.spacing ?? (I ? void 0 : U), D = p.rowSpacing ?? p.spacing ?? (I ? void 0 : j), F = p.columnSpacing ?? p.spacing ?? (I ? void 0 : L), q = {
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 = {
2911
2905
  ...h,
2912
- level: I,
2913
- columns: M,
2906
+ level: P,
2907
+ columns: N,
2914
2908
  container: k,
2915
2909
  direction: $,
2916
2910
  wrap: S,
2917
- spacing: _,
2911
+ spacing: M,
2918
2912
  rowSpacing: D,
2919
2913
  columnSpacing: F,
2920
2914
  size: T,
2921
2915
  offset: x
2922
- }, O = i(q, m);
2916
+ }, O = i(U, m);
2923
2917
  return /* @__PURE__ */ E(l, {
2924
2918
  ref: y,
2925
- as: P,
2926
- ownerState: q,
2919
+ as: I,
2920
+ ownerState: U,
2927
2921
  className: ue(O.root, f),
2928
2922
  ...c,
2929
2923
  children: B.Children.map(g, (R) => /* @__PURE__ */ B.isValidElement(R) && Zi(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ B.cloneElement(R, {
2930
- unstable_level: R.props?.unstable_level ?? I + 1
2924
+ unstable_level: R.props?.unstable_level ?? P + 1
2931
2925
  }) : R)
2932
2926
  });
2933
2927
  });
@@ -2953,7 +2947,7 @@ function Pe(e, t, r = "Mui") {
2953
2947
  n[o] = xe(e, o, r);
2954
2948
  }), n;
2955
2949
  }
2956
- function ja(e, t) {
2950
+ function Va(e, t) {
2957
2951
  if (process.env.NODE_ENV === "production")
2958
2952
  return () => () => null;
2959
2953
  const r = t ? {
@@ -2970,7 +2964,7 @@ function ja(e, t) {
2970
2964
  };
2971
2965
  }
2972
2966
  const Ur = "$$material";
2973
- function za(e = {}) {
2967
+ function ja(e = {}) {
2974
2968
  const {
2975
2969
  themeId: t,
2976
2970
  defaultTheme: r,
@@ -2994,24 +2988,24 @@ function za(e = {}) {
2994
2988
  });
2995
2989
  });
2996
2990
  }
2997
- const Wa = typeof window < "u" ? B.useLayoutEffect : B.useEffect;
2998
- function La(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2991
+ const za = typeof window < "u" ? B.useLayoutEffect : B.useEffect;
2992
+ function Wa(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2999
2993
  return Math.max(t, Math.min(e, r));
3000
2994
  }
3001
2995
  function Yr(e, t = 0, r = 1) {
3002
- return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), La(e, t, r);
2996
+ return process.env.NODE_ENV !== "production" && (e < t || e > r), Wa(e, t, r);
3003
2997
  }
3004
- function Fa(e) {
2998
+ function La(e) {
3005
2999
  e = e.slice(1);
3006
3000
  const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
3007
3001
  let r = e.match(t);
3008
- return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
3002
+ return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && (e.length, e.trim().length), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
3009
3003
  }
3010
3004
  function ze(e) {
3011
3005
  if (e.type)
3012
3006
  return e;
3013
3007
  if (e.charAt(0) === "#")
3014
- return ze(Fa(e));
3008
+ return ze(La(e));
3015
3009
  const t = e.indexOf("("), r = e.substring(0, t);
3016
3010
  if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
3017
3011
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
@@ -3029,14 +3023,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
3029
3023
  colorSpace: o
3030
3024
  };
3031
3025
  }
3032
- const qa = (e) => {
3026
+ const Fa = (e) => {
3033
3027
  const t = ze(e);
3034
3028
  return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
3035
3029
  }, mt = (e, t) => {
3036
3030
  try {
3037
- return qa(e);
3031
+ return Fa(e);
3038
3032
  } catch {
3039
- return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
3033
+ return t && process.env.NODE_ENV, e;
3040
3034
  }
3041
3035
  };
3042
3036
  function lr(e) {
@@ -3077,7 +3071,7 @@ function Le(e, t, r) {
3077
3071
  try {
3078
3072
  return Ft(e, t);
3079
3073
  } catch {
3080
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
3074
+ return r && process.env.NODE_ENV, e;
3081
3075
  }
3082
3076
  }
3083
3077
  function cr(e, t) {
@@ -3092,7 +3086,7 @@ function ne(e, t, r) {
3092
3086
  try {
3093
3087
  return cr(e, t);
3094
3088
  } catch {
3095
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
3089
+ return r && process.env.NODE_ENV, e;
3096
3090
  }
3097
3091
  }
3098
3092
  function ur(e, t) {
@@ -3110,22 +3104,22 @@ function oe(e, t, r) {
3110
3104
  try {
3111
3105
  return ur(e, t);
3112
3106
  } catch {
3113
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
3107
+ return r && process.env.NODE_ENV, e;
3114
3108
  }
3115
3109
  }
3116
- function Ga(e, t = 0.15) {
3110
+ function qa(e, t = 0.15) {
3117
3111
  return Or(e) > 0.5 ? cr(e, t) : ur(e, t);
3118
3112
  }
3119
3113
  function It(e, t, r) {
3120
3114
  try {
3121
- return Ga(e, t);
3115
+ return qa(e, t);
3122
3116
  } catch {
3123
3117
  return e;
3124
3118
  }
3125
3119
  }
3126
- const Ua = /* @__PURE__ */ B.createContext(void 0);
3120
+ const Ga = /* @__PURE__ */ B.createContext(void 0);
3127
3121
  process.env.NODE_ENV !== "production" && (s.node, s.object);
3128
- function Ya(e) {
3122
+ function Ua(e) {
3129
3123
  const {
3130
3124
  theme: t,
3131
3125
  name: r,
@@ -3136,12 +3130,12 @@ function Ya(e) {
3136
3130
  const o = t.components[r];
3137
3131
  return o.defaultProps ? yt(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? yt(o, n, t.components.mergeClassNameAndStyle) : n;
3138
3132
  }
3139
- function Ha({
3133
+ function Ya({
3140
3134
  props: e,
3141
3135
  name: t
3142
3136
  }) {
3143
- const r = B.useContext(Ua);
3144
- return Ya({
3137
+ const r = B.useContext(Ga);
3138
+ return Ua({
3145
3139
  props: e,
3146
3140
  name: t,
3147
3141
  theme: {
@@ -3150,33 +3144,33 @@ function Ha({
3150
3144
  });
3151
3145
  }
3152
3146
  let An = 0;
3153
- function Ka(e) {
3147
+ function Ha(e) {
3154
3148
  const [t, r] = B.useState(e), n = e || t;
3155
3149
  return B.useEffect(() => {
3156
3150
  t == null && (An += 1, r(`mui-${An}`));
3157
3151
  }, [t]), n;
3158
3152
  }
3159
- const Xa = {
3153
+ const Ka = {
3160
3154
  ...B
3161
- }, Pn = Xa.useId;
3155
+ }, Pn = Ka.useId;
3162
3156
  function Wo(e) {
3163
3157
  if (Pn !== void 0) {
3164
3158
  const t = Pn();
3165
3159
  return e ?? t;
3166
3160
  }
3167
- return Ka(e);
3161
+ return Ha(e);
3168
3162
  }
3169
3163
  const In = {
3170
3164
  theme: void 0
3171
3165
  };
3172
- function Qa(e) {
3166
+ function Xa(e) {
3173
3167
  let t, r;
3174
3168
  return function(o) {
3175
3169
  let i = t;
3176
3170
  return (i === void 0 || o.theme !== r) && (In.theme = o.theme, i = _o(e(In)), t = i, r = o.theme), i;
3177
3171
  };
3178
3172
  }
3179
- function Ja(e = "") {
3173
+ function Qa(e = "") {
3180
3174
  function t(...n) {
3181
3175
  if (!n.length)
3182
3176
  return "";
@@ -3190,24 +3184,24 @@ const Mn = (e, t, r, n = []) => {
3190
3184
  t.forEach((i, a) => {
3191
3185
  a === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
3192
3186
  });
3193
- }, Za = (e, t, r) => {
3187
+ }, Ja = (e, t, r) => {
3194
3188
  function n(o, i = [], a = []) {
3195
3189
  Object.entries(o).forEach(([l, u]) => {
3196
3190
  (!r || r && !r([...i, l])) && u != null && (typeof u == "object" && Object.keys(u).length > 0 ? n(u, [...i, l], Array.isArray(u) ? [...a, l] : a) : t([...i, l], u, a));
3197
3191
  });
3198
3192
  }
3199
3193
  n(e);
3200
- }, el = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
3194
+ }, Za = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
3201
3195
  function xr(e, t) {
3202
3196
  const {
3203
3197
  prefix: r,
3204
3198
  shouldSkipGeneratingVar: n
3205
3199
  } = t || {}, o = {}, i = {}, a = {};
3206
- return Za(
3200
+ return Ja(
3207
3201
  e,
3208
3202
  (l, u, d) => {
3209
3203
  if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
3210
- const p = `--${r ? `${r}-` : ""}${l.join("-")}`, y = el(l, u);
3204
+ const p = `--${r ? `${r}-` : ""}${l.join("-")}`, y = Za(l, u);
3211
3205
  Object.assign(o, {
3212
3206
  [p]: y
3213
3207
  }), Mn(i, l, `var(${p})`, d), Mn(a, l, `var(${p}, ${y})`, d);
@@ -3221,7 +3215,7 @@ function xr(e, t) {
3221
3215
  varsWithDefaults: a
3222
3216
  };
3223
3217
  }
3224
- function tl(e, t = {}) {
3218
+ function el(e, t = {}) {
3225
3219
  const {
3226
3220
  getSelector: r = C,
3227
3221
  disableCssColorScheme: n,
@@ -3246,9 +3240,9 @@ function tl(e, t = {}) {
3246
3240
  const {
3247
3241
  vars: w,
3248
3242
  css: V,
3249
- varsWithDefaults: U
3243
+ varsWithDefaults: G
3250
3244
  } = xr(S, t);
3251
- b = he(b, U), h[$] = {
3245
+ b = he(b, G), h[$] = {
3252
3246
  css: V,
3253
3247
  vars: w
3254
3248
  };
@@ -3291,10 +3285,10 @@ function tl(e, t = {}) {
3291
3285
  },
3292
3286
  generateStyleSheets: () => {
3293
3287
  const $ = [], S = e.defaultColorScheme || "light";
3294
- function w(j, L) {
3295
- Object.keys(L).length && $.push(typeof j == "string" ? {
3288
+ function w(j, W) {
3289
+ Object.keys(W).length && $.push(typeof j == "string" ? {
3296
3290
  [j]: {
3297
- ...L
3291
+ ...W
3298
3292
  }
3299
3293
  } : j);
3300
3294
  }
@@ -3303,29 +3297,29 @@ function tl(e, t = {}) {
3303
3297
  }), y);
3304
3298
  const {
3305
3299
  [S]: V,
3306
- ...U
3300
+ ...G
3307
3301
  } = h;
3308
3302
  if (V) {
3309
3303
  const {
3310
3304
  css: j
3311
- } = V, L = a[S]?.palette?.mode, I = !n && L ? {
3312
- colorScheme: L,
3305
+ } = V, W = a[S]?.palette?.mode, P = !n && W ? {
3306
+ colorScheme: W,
3313
3307
  ...j
3314
3308
  } : {
3315
3309
  ...j
3316
3310
  };
3317
3311
  w(r(S, {
3318
- ...I
3319
- }), I);
3312
+ ...P
3313
+ }), P);
3320
3314
  }
3321
- return Object.entries(U).forEach(([j, {
3322
- css: L
3315
+ return Object.entries(G).forEach(([j, {
3316
+ css: W
3323
3317
  }]) => {
3324
- const I = a[j]?.palette?.mode, c = !n && I ? {
3325
- colorScheme: I,
3326
- ...L
3318
+ const P = a[j]?.palette?.mode, c = !n && P ? {
3319
+ colorScheme: P,
3320
+ ...W
3327
3321
  } : {
3328
- ...L
3322
+ ...W
3329
3323
  };
3330
3324
  w(r(j, {
3331
3325
  ...c
@@ -3342,34 +3336,34 @@ function tl(e, t = {}) {
3342
3336
  }
3343
3337
  };
3344
3338
  }
3345
- function rl(e) {
3339
+ function tl(e) {
3346
3340
  return function(r) {
3347
- return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@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)} &` : "&";
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)} &` : "&";
3348
3342
  };
3349
3343
  }
3350
- const nl = Tt(), ol = Vo("div", {
3344
+ const rl = Tt(), nl = Vo("div", {
3351
3345
  name: "MuiStack",
3352
3346
  slot: "Root"
3353
3347
  });
3354
- function il(e) {
3348
+ function ol(e) {
3355
3349
  return jo({
3356
3350
  props: e,
3357
3351
  name: "MuiStack",
3358
- defaultTheme: nl
3352
+ defaultTheme: rl
3359
3353
  });
3360
3354
  }
3361
- function sl(e, t) {
3355
+ function il(e, t) {
3362
3356
  const r = B.Children.toArray(e).filter(Boolean);
3363
3357
  return r.reduce((n, o, i) => (n.push(o), i < r.length - 1 && n.push(/* @__PURE__ */ B.cloneElement(t, {
3364
3358
  key: `separator-${i}`
3365
3359
  })), n), []);
3366
3360
  }
3367
- const al = (e) => ({
3361
+ const sl = (e) => ({
3368
3362
  row: "Left",
3369
3363
  "row-reverse": "Right",
3370
3364
  column: "Top",
3371
3365
  "column-reverse": "Bottom"
3372
- })[e], ll = ({
3366
+ })[e], al = ({
3373
3367
  ownerState: e,
3374
3368
  theme: t
3375
3369
  }) => {
@@ -3409,21 +3403,21 @@ const al = (e) => ({
3409
3403
  margin: 0
3410
3404
  },
3411
3405
  "& > :not(style) ~ :not(style)": {
3412
- [`margin${al(d ? i[d] : e.direction)}`]: Ke(n, u)
3406
+ [`margin${sl(d ? i[d] : e.direction)}`]: Ke(n, u)
3413
3407
  }
3414
3408
  }));
3415
3409
  }
3416
3410
  return r = xs(t.breakpoints, r), r;
3417
3411
  };
3418
- function cl(e = {}) {
3412
+ function ll(e = {}) {
3419
3413
  const {
3420
3414
  // This will allow adding custom styled fn (for example for custom sx style function)
3421
- createStyledComponent: t = ol,
3422
- useThemeProps: r = il,
3415
+ createStyledComponent: t = nl,
3416
+ useThemeProps: r = ol,
3423
3417
  componentName: n = "MuiStack"
3424
3418
  } = e, o = () => Ae({
3425
3419
  root: ["root"]
3426
- }, (u) => xe(n, u), {}), i = t(ll), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
3420
+ }, (u) => xe(n, u), {}), i = t(al), a = /* @__PURE__ */ B.forwardRef(function(u, d) {
3427
3421
  const p = r(u), y = ir(p), {
3428
3422
  component: m = "div",
3429
3423
  direction: b = "column",
@@ -3432,7 +3426,7 @@ function cl(e = {}) {
3432
3426
  children: g,
3433
3427
  className: C,
3434
3428
  useFlexGap: k = !1,
3435
- ...P
3429
+ ...I
3436
3430
  } = y, $ = {
3437
3431
  direction: b,
3438
3432
  spacing: h,
@@ -3443,8 +3437,8 @@ function cl(e = {}) {
3443
3437
  ownerState: $,
3444
3438
  ref: d,
3445
3439
  className: ue(S.root, C),
3446
- ...P,
3447
- children: f ? sl(g, f) : g
3440
+ ...I,
3441
+ children: f ? il(g, f) : g
3448
3442
  });
3449
3443
  });
3450
3444
  return process.env.NODE_ENV !== "production" && (a.propTypes = {
@@ -3458,7 +3452,7 @@ function cl(e = {}) {
3458
3452
  const bt = {
3459
3453
  black: "#000",
3460
3454
  white: "#fff"
3461
- }, ul = {
3455
+ }, cl = {
3462
3456
  50: "#fafafa",
3463
3457
  100: "#f5f5f5",
3464
3458
  200: "#eeeeee",
@@ -3590,7 +3584,7 @@ function Nn(e, t, r, n, o) {
3590
3584
  const i = o.light || o, a = o.dark || o * 1.5;
3591
3585
  t[r] || (t.hasOwnProperty(n) ? t[r] = t[n] : r === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(i * 100).toFixed(0)}%)` : r === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(a * 100).toFixed(0)}%)`));
3592
3586
  }
3593
- function fl(e = "light") {
3587
+ function ul(e = "light") {
3594
3588
  return e === "dark" ? {
3595
3589
  main: Ze[200],
3596
3590
  light: Ze[50],
@@ -3601,7 +3595,7 @@ function fl(e = "light") {
3601
3595
  dark: Ze[800]
3602
3596
  };
3603
3597
  }
3604
- function dl(e = "light") {
3598
+ function fl(e = "light") {
3605
3599
  return e === "dark" ? {
3606
3600
  main: Qe[200],
3607
3601
  light: Qe[50],
@@ -3612,7 +3606,7 @@ function dl(e = "light") {
3612
3606
  dark: Qe[700]
3613
3607
  };
3614
3608
  }
3615
- function pl(e = "light") {
3609
+ function dl(e = "light") {
3616
3610
  return e === "dark" ? {
3617
3611
  main: Je[500],
3618
3612
  light: Je[300],
@@ -3623,7 +3617,7 @@ function pl(e = "light") {
3623
3617
  dark: Je[800]
3624
3618
  };
3625
3619
  }
3626
- function ml(e = "light") {
3620
+ function pl(e = "light") {
3627
3621
  return e === "dark" ? {
3628
3622
  main: et[400],
3629
3623
  light: et[300],
@@ -3634,7 +3628,7 @@ function ml(e = "light") {
3634
3628
  dark: et[900]
3635
3629
  };
3636
3630
  }
3637
- function hl(e = "light") {
3631
+ function ml(e = "light") {
3638
3632
  return e === "dark" ? {
3639
3633
  main: tt[400],
3640
3634
  light: tt[300],
@@ -3645,7 +3639,7 @@ function hl(e = "light") {
3645
3639
  dark: tt[900]
3646
3640
  };
3647
3641
  }
3648
- function gl(e = "light") {
3642
+ function hl(e = "light") {
3649
3643
  return e === "dark" ? {
3650
3644
  main: ft[400],
3651
3645
  light: ft[300],
@@ -3657,7 +3651,7 @@ function gl(e = "light") {
3657
3651
  dark: ft[900]
3658
3652
  };
3659
3653
  }
3660
- function yl(e) {
3654
+ function gl(e) {
3661
3655
  return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
3662
3656
  }
3663
3657
  function Hr(e) {
@@ -3667,23 +3661,18 @@ function Hr(e) {
3667
3661
  tonalOffset: n = 0.2,
3668
3662
  colorSpace: o,
3669
3663
  ...i
3670
- } = e, a = e.primary || fl(t), l = e.secondary || dl(t), u = e.error || pl(t), d = e.info || ml(t), p = e.success || hl(t), y = e.warning || gl(t);
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);
3671
3665
  function m(g) {
3672
3666
  if (o)
3673
- return yl(g);
3667
+ return gl(g);
3674
3668
  const C = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
3675
- if (process.env.NODE_ENV !== "production") {
3676
- const k = kn(g, C);
3677
- k < 3 && console.error([`MUI: The contrast ratio of ${k}:1 for ${C} on ${g}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
3678
- `));
3679
- }
3680
- return C;
3669
+ return process.env.NODE_ENV !== "production" && kn(g, C) < 3, C;
3681
3670
  }
3682
3671
  const b = ({
3683
3672
  color: g,
3684
3673
  name: C,
3685
3674
  mainShade: k = 500,
3686
- lightShade: P = 300,
3675
+ lightShade: I = 300,
3687
3676
  darkShade: $ = 700
3688
3677
  }) => {
3689
3678
  if (g = {
@@ -3706,10 +3695,10 @@ const theme1 = createTheme({ palette: {
3706
3695
  const theme2 = createTheme({ palette: {
3707
3696
  primary: { main: green[500] },
3708
3697
  } });` : je(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
3709
- return o ? (Nn(o, g, "light", P, n), Nn(o, g, "dark", $, n)) : (_n(g, "light", P, n), _n(g, "dark", $, n)), g.contrastText || (g.contrastText = m(g.main)), g;
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;
3710
3699
  };
3711
3700
  let h;
3712
- return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV !== "production" && (h || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), he({
3701
+ return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV, he({
3713
3702
  // A collection of common colors.
3714
3703
  common: {
3715
3704
  ...bt
@@ -3751,7 +3740,7 @@ const theme2 = createTheme({ palette: {
3751
3740
  name: "success"
3752
3741
  }),
3753
3742
  // The grey colors.
3754
- grey: ul,
3743
+ grey: cl,
3755
3744
  // Used by `getContrastText()` to maximize the contrast between
3756
3745
  // the background and the text.
3757
3746
  contrastThreshold: r,
@@ -3767,14 +3756,14 @@ const theme2 = createTheme({ palette: {
3767
3756
  ...h
3768
3757
  }, i);
3769
3758
  }
3770
- function bl(e) {
3759
+ function yl(e) {
3771
3760
  const t = {};
3772
3761
  return Object.entries(e).forEach((n) => {
3773
3762
  const [o, i] = n;
3774
3763
  typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
3775
3764
  }), t;
3776
3765
  }
3777
- function vl(e, t) {
3766
+ function bl(e, t) {
3778
3767
  return {
3779
3768
  toolbar: {
3780
3769
  minHeight: 56,
@@ -3790,13 +3779,13 @@ function vl(e, t) {
3790
3779
  ...t
3791
3780
  };
3792
3781
  }
3793
- function Sl(e) {
3782
+ function vl(e) {
3794
3783
  return Math.round(e * 1e5) / 1e5;
3795
3784
  }
3796
3785
  const Bn = {
3797
3786
  textTransform: "uppercase"
3798
3787
  }, Dn = '"Roboto", "Helvetica", "Arial", sans-serif';
3799
- function xl(e, t) {
3788
+ function Sl(e, t) {
3800
3789
  const {
3801
3790
  fontFamily: r = Dn,
3802
3791
  // The default font size of the Material Specification.
@@ -3814,8 +3803,8 @@ function xl(e, t) {
3814
3803
  pxToRem: p,
3815
3804
  ...y
3816
3805
  } = typeof t == "function" ? t(e) : t;
3817
- process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
3818
- const m = n / 14, b = p || ((g) => `${g / u * m}rem`), h = (g, C, k, P, $) => ({
3806
+ process.env.NODE_ENV;
3807
+ const m = n / 14, b = p || ((g) => `${g / u * m}rem`), h = (g, C, k, I, $) => ({
3819
3808
  fontFamily: r,
3820
3809
  fontWeight: g,
3821
3810
  fontSize: b(C),
@@ -3824,7 +3813,7 @@ function xl(e, t) {
3824
3813
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
3825
3814
  // across font-families can cause issues with the kerning.
3826
3815
  ...r === Dn ? {
3827
- letterSpacing: `${Sl(P / C)}em`
3816
+ letterSpacing: `${vl(I / C)}em`
3828
3817
  } : {},
3829
3818
  ...$,
3830
3819
  ...d
@@ -3866,11 +3855,11 @@ function xl(e, t) {
3866
3855
  // No need to clone deep
3867
3856
  });
3868
3857
  }
3869
- const Cl = 0.2, Tl = 0.14, wl = 0.12;
3858
+ const xl = 0.2, Cl = 0.14, Tl = 0.12;
3870
3859
  function ae(...e) {
3871
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cl})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Tl})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wl})`].join(",");
3860
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xl})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Cl})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tl})`].join(",");
3872
3861
  }
3873
- const El = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ae(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ae(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ae(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ae(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ae(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ae(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ae(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ae(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ae(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ae(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ae(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ae(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ae(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ae(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ae(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ae(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ae(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ae(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ae(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ae(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ae(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ae(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ol = {
3862
+ const wl = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ae(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ae(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ae(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ae(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ae(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ae(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ae(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ae(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ae(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ae(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ae(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ae(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ae(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ae(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ae(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ae(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ae(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ae(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ae(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ae(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ae(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ae(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], El = {
3874
3863
  // This is the most common easing curve.
3875
3864
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
3876
3865
  // Objects enter the screen at full velocity from off-screen and
@@ -3880,7 +3869,7 @@ const El = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
3880
3869
  easeIn: "cubic-bezier(0.4, 0, 1, 1)",
3881
3870
  // The sharp curve is used by objects that may return to the screen at any time.
3882
3871
  sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
3883
- }, $l = {
3872
+ }, Ol = {
3884
3873
  shortest: 150,
3885
3874
  shorter: 200,
3886
3875
  short: 250,
@@ -3896,22 +3885,22 @@ const El = ["none", ae(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ae(0, 3, 1, -2, 0,
3896
3885
  function Vn(e) {
3897
3886
  return `${Math.round(e)}ms`;
3898
3887
  }
3899
- function Rl(e) {
3888
+ function $l(e) {
3900
3889
  if (!e)
3901
3890
  return 0;
3902
3891
  const t = e / 36;
3903
3892
  return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
3904
3893
  }
3905
- function kl(e) {
3894
+ function Rl(e) {
3906
3895
  const t = {
3907
- ...Ol,
3896
+ ...El,
3908
3897
  ...e.easing
3909
3898
  }, r = {
3910
- ...$l,
3899
+ ...Ol,
3911
3900
  ...e.duration
3912
3901
  };
3913
3902
  return {
3914
- getAutoHeightDuration: Rl,
3903
+ getAutoHeightDuration: $l,
3915
3904
  create: (o = ["all"], i = {}) => {
3916
3905
  const {
3917
3906
  duration: a = r.standard,
@@ -3921,8 +3910,7 @@ function kl(e) {
3921
3910
  } = i;
3922
3911
  if (process.env.NODE_ENV !== "production") {
3923
3912
  const p = (m) => typeof m == "string", y = (m) => !Number.isNaN(parseFloat(m));
3924
- !p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !y(a) && !p(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), p(l) || console.error('MUI: Argument "easing" must be a string.'), !y(u) && !p(u) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
3925
- `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
3913
+ !p(o) && Array.isArray(o), !y(a) && p(a), p(l), !y(u) && p(u), Object.keys(d).length;
3926
3914
  }
3927
3915
  return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof a == "string" ? a : Vn(a)} ${l} ${typeof u == "string" ? u : Vn(u)}`).join(",");
3928
3916
  },
@@ -3931,7 +3919,7 @@ function kl(e) {
3931
3919
  duration: r
3932
3920
  };
3933
3921
  }
3934
- const Al = {
3922
+ const kl = {
3935
3923
  mobileStepper: 1e3,
3936
3924
  fab: 1050,
3937
3925
  speedDial: 1050,
@@ -3941,7 +3929,7 @@ const Al = {
3941
3929
  snackbar: 1400,
3942
3930
  tooltip: 1500
3943
3931
  };
3944
- function Pl(e) {
3932
+ function Al(e) {
3945
3933
  return Re(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
3946
3934
  }
3947
3935
  function Go(e = {}) {
@@ -3952,7 +3940,7 @@ function Go(e = {}) {
3952
3940
  const o = Object.entries(n);
3953
3941
  for (let i = 0; i < o.length; i++) {
3954
3942
  const [a, l] = o[i];
3955
- !Pl(l) || a.startsWith("unstable_") ? delete n[a] : Re(l) && (n[a] = {
3943
+ !Al(l) || a.startsWith("unstable_") ? delete n[a] : Re(l) && (n[a] = {
3956
3944
  ...l
3957
3945
  }, r(n[a]));
3958
3946
  }
@@ -3969,7 +3957,7 @@ export default theme;`;
3969
3957
  function jn(e) {
3970
3958
  return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
3971
3959
  }
3972
- const Il = (e) => {
3960
+ const Pl = (e) => {
3973
3961
  if (!Number.isNaN(+e))
3974
3962
  return +e;
3975
3963
  const t = e.match(/\d*\.?\d+/g);
@@ -3980,11 +3968,11 @@ const Il = (e) => {
3980
3968
  r += +t[n];
3981
3969
  return r;
3982
3970
  };
3983
- function Ml(e) {
3971
+ function Il(e) {
3984
3972
  Object.assign(e, {
3985
3973
  alpha(t, r) {
3986
3974
  const n = this || e;
3987
- return n.colorSpace ? `oklch(from ${t} l c h / ${typeof r == "string" ? `calc(${r})` : r})` : n.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof r == "string" ? `calc(${r})` : r})` : Ft(t, Il(r));
3975
+ return n.colorSpace ? `oklch(from ${t} l c h / ${typeof r == "string" ? `calc(${r})` : r})` : n.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof r == "string" ? `calc(${r})` : r})` : Ft(t, Pl(r));
3988
3976
  },
3989
3977
  lighten(t, r) {
3990
3978
  const n = this || e;
@@ -4017,30 +4005,24 @@ function Rr(e = {}, ...t) {
4017
4005
  colorSpace: d
4018
4006
  }), m = Tt(e);
4019
4007
  let b = he(m, {
4020
- mixins: vl(m.breakpoints, n),
4008
+ mixins: bl(m.breakpoints, n),
4021
4009
  palette: y,
4022
4010
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
4023
- shadows: El.slice(),
4024
- typography: xl(y, l),
4025
- transitions: kl(a),
4011
+ shadows: wl.slice(),
4012
+ typography: Sl(y, l),
4013
+ transitions: Rl(a),
4026
4014
  zIndex: {
4027
- ...Al
4015
+ ...kl
4028
4016
  }
4029
4017
  });
4030
4018
  if (b = he(b, p), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
4031
4019
  const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, C) => {
4032
4020
  let k;
4033
4021
  for (k in g) {
4034
- const P = g[k];
4035
- if (h.includes(k) && Object.keys(P).length > 0) {
4022
+ const I = g[k];
4023
+ if (h.includes(k) && Object.keys(I).length > 0) {
4036
4024
  if (process.env.NODE_ENV !== "production") {
4037
4025
  const $ = xe("", k);
4038
- console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${k}\` internal state.`, "You can not override it like this: ", JSON.stringify(g, null, 2), "", `Instead, you need to use the '&.${$}' syntax:`, JSON.stringify({
4039
- root: {
4040
- [`&.${$}`]: P
4041
- }
4042
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
4043
- `));
4044
4026
  }
4045
4027
  g[k] = {};
4046
4028
  }
@@ -4059,13 +4041,13 @@ function Rr(e = {}, ...t) {
4059
4041
  sx: f,
4060
4042
  theme: this
4061
4043
  });
4062
- }, b.toRuntimeSource = Go, Ml(b), b;
4044
+ }, b.toRuntimeSource = Go, Il(b), b;
4063
4045
  }
4064
4046
  function kr(e) {
4065
4047
  let t;
4066
4048
  return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
4067
4049
  }
4068
- const _l = [...Array(25)].map((e, t) => {
4050
+ const Ml = [...Array(25)].map((e, t) => {
4069
4051
  if (t === 0)
4070
4052
  return "none";
4071
4053
  const r = kr(t);
@@ -4080,9 +4062,9 @@ function Uo(e) {
4080
4062
  };
4081
4063
  }
4082
4064
  function Yo(e) {
4083
- return e === "dark" ? _l : [];
4065
+ return e === "dark" ? Ml : [];
4084
4066
  }
4085
- function Nl(e) {
4067
+ function _l(e) {
4086
4068
  const {
4087
4069
  palette: t = {
4088
4070
  mode: "light"
@@ -4106,17 +4088,17 @@ function Nl(e) {
4106
4088
  ...i
4107
4089
  };
4108
4090
  }
4109
- function Bl(e) {
4091
+ function Nl(e) {
4110
4092
  return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
4111
4093
  e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
4112
4094
  }
4113
- const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Vl = (e) => (t, r) => {
4095
+ const Bl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Dl = (e) => (t, r) => {
4114
4096
  const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
4115
4097
  let i = o;
4116
4098
  if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
4117
4099
  if (t === "dark") {
4118
4100
  const a = {};
4119
- return Dl(e.cssVarPrefix).forEach((l) => {
4101
+ return Bl(e.cssVarPrefix).forEach((l) => {
4120
4102
  a[l] = r[l], delete r[l];
4121
4103
  }), i === "media" ? {
4122
4104
  [n]: r,
@@ -4147,7 +4129,7 @@ const Dl = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlay
4147
4129
  }
4148
4130
  return n;
4149
4131
  };
4150
- function jl(e, t) {
4132
+ function Vl(e, t) {
4151
4133
  t.forEach((r) => {
4152
4134
  e[r] || (e[r] = {});
4153
4135
  });
@@ -4162,7 +4144,7 @@ function Ie(e, t) {
4162
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().
4163
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.`));
4164
4146
  }
4165
- function zl(e) {
4147
+ function jl(e) {
4166
4148
  return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
4167
4149
  }
4168
4150
  const $e = (e) => {
@@ -4170,14 +4152,14 @@ const $e = (e) => {
4170
4152
  return e();
4171
4153
  } catch {
4172
4154
  }
4173
- }, Wl = (e = "mui") => Ja(e);
4155
+ }, zl = (e = "mui") => Qa(e);
4174
4156
  function Cr(e, t, r, n, o) {
4175
4157
  if (!r)
4176
4158
  return;
4177
4159
  r = r === !0 ? {} : r;
4178
4160
  const i = o === "dark" ? "dark" : "light";
4179
4161
  if (!n) {
4180
- t[o] = Nl({
4162
+ t[o] = _l({
4181
4163
  ...r,
4182
4164
  palette: {
4183
4165
  mode: i,
@@ -4208,7 +4190,7 @@ function Cr(e, t, r, n, o) {
4208
4190
  overlays: r?.overlays || Yo(i)
4209
4191
  }, l;
4210
4192
  }
4211
- function Ll(e = {}, ...t) {
4193
+ function Wl(e = {}, ...t) {
4212
4194
  const {
4213
4195
  colorSchemes: r = {
4214
4196
  light: !0
@@ -4217,11 +4199,11 @@ function Ll(e = {}, ...t) {
4217
4199
  disableCssColorScheme: o = !1,
4218
4200
  cssVarPrefix: i = "mui",
4219
4201
  nativeColor: a = !1,
4220
- shouldSkipGeneratingVar: l = Bl,
4202
+ shouldSkipGeneratingVar: l = Nl,
4221
4203
  colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
4222
4204
  rootSelector: d = ":root",
4223
4205
  ...p
4224
- } = e, y = Object.keys(r)[0], m = n || (r.light && y !== "light" ? "light" : y), b = Wl(i), {
4206
+ } = e, y = Object.keys(r)[0], m = n || (r.light && y !== "light" ? "light" : y), b = zl(i), {
4225
4207
  [m]: h,
4226
4208
  light: f,
4227
4209
  dark: g,
@@ -4229,12 +4211,12 @@ function Ll(e = {}, ...t) {
4229
4211
  } = r, k = {
4230
4212
  ...C
4231
4213
  };
4232
- let P = h;
4233
- if ((m === "dark" && !("dark" in r) || m === "light" && !("light" in r)) && (P = !0), !P)
4214
+ let I = h;
4215
+ if ((m === "dark" && !("dark" in r) || m === "light" && !("light" in r)) && (I = !0), !I)
4234
4216
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${m}\` option is either missing or invalid.` : je(21, m));
4235
4217
  let $;
4236
4218
  a && ($ = "oklch");
4237
- const S = Cr($, k, P, p, m);
4219
+ const S = Cr($, k, I, p, m);
4238
4220
  f && !k.light && Cr($, k, f, void 0, "light"), g && !k.dark && Cr($, k, g, void 0, "dark");
4239
4221
  let w = {
4240
4222
  defaultColorScheme: m,
@@ -4245,55 +4227,55 @@ function Ll(e = {}, ...t) {
4245
4227
  getCssVar: b,
4246
4228
  colorSchemes: k,
4247
4229
  font: {
4248
- ...bl(S.typography),
4230
+ ...yl(S.typography),
4249
4231
  ...S.font
4250
4232
  },
4251
- spacing: zl(p.spacing)
4233
+ spacing: jl(p.spacing)
4252
4234
  };
4253
- Object.keys(w.colorSchemes).forEach((I) => {
4254
- const c = w.colorSchemes[I].palette, T = (M) => {
4255
- const _ = M.split("-"), D = _[1], F = _[2];
4256
- return b(M, c[D][F]);
4235
+ Object.keys(w.colorSchemes).forEach((P) => {
4236
+ const c = w.colorSchemes[P].palette, T = (N) => {
4237
+ const M = N.split("-"), D = M[1], F = M[2];
4238
+ return b(N, c[D][F]);
4257
4239
  };
4258
4240
  c.mode === "light" && (v(c.common, "background", "#fff"), v(c.common, "onBackground", "#000")), c.mode === "dark" && (v(c.common, "background", "#000"), v(c.common, "onBackground", "#fff"));
4259
- function x(M, _, D) {
4241
+ function x(N, M, D) {
4260
4242
  if ($) {
4261
4243
  let F;
4262
- return M === Le && (F = `transparent ${((1 - D) * 100).toFixed(0)}%`), M === ne && (F = `#000 ${(D * 100).toFixed(0)}%`), M === oe && (F = `#fff ${(D * 100).toFixed(0)}%`), `color-mix(in ${$}, ${_}, ${F})`;
4244
+ return N === Le && (F = `transparent ${((1 - D) * 100).toFixed(0)}%`), N === ne && (F = `#000 ${(D * 100).toFixed(0)}%`), N === oe && (F = `#fff ${(D * 100).toFixed(0)}%`), `color-mix(in ${$}, ${M}, ${F})`;
4263
4245
  }
4264
- return M(_, D);
4246
+ return N(M, D);
4265
4247
  }
4266
- if (jl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4248
+ if (Vl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4267
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));
4268
- const M = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4269
- v(c.SnackbarContent, "bg", M), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(M))), 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));
4250
+ const N = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
+ v(c.SnackbarContent, "bg", N), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(N))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", T("palette-grey-400")), v(c.StepContent, "border", T("palette-grey-400")), v(c.Switch, "defaultColor", T("palette-common-white")), v(c.Switch, "defaultDisabledColor", T("palette-grey-100")), v(c.Switch, "primaryDisabledColor", x(oe, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", x(oe, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", x(oe, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", x(oe, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", x(oe, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", x(oe, c.warning.main, 0.62)), v(c.TableCell, "border", x(oe, x(Le, c.divider, 1), 0.88)), v(c.Tooltip, "bg", x(Le, c.grey[700], 0.92));
4270
4252
  }
4271
4253
  if (c.mode === "dark") {
4272
4254
  v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", T("palette-error-dark")), v(c.Alert, "infoFilledBg", T("palette-info-dark")), v(c.Alert, "successFilledBg", T("palette-success-dark")), v(c.Alert, "warningFilledBg", T("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", T("palette-error-main")), v(c.Alert, "infoIconColor", T("palette-info-main")), v(c.Alert, "successIconColor", T("palette-success-main")), v(c.Alert, "warningIconColor", T("palette-warning-main")), v(c.AppBar, "defaultBg", T("palette-grey-900")), v(c.AppBar, "darkBg", T("palette-background-paper")), v(c.AppBar, "darkColor", T("palette-text-primary")), v(c.Avatar, "defaultBg", T("palette-grey-600")), v(c.Button, "inheritContainedBg", T("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", T("palette-grey-700")), v(c.Chip, "defaultBorder", T("palette-grey-700")), v(c.Chip, "defaultAvatarColor", T("palette-grey-300")), v(c.Chip, "defaultIconColor", T("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.5)), v(c.LinearProgress, "successBg", x(ne, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.5)), v(c.Skeleton, "bg", $ ? x(Le, c.text.primary, 0.13) : `rgba(${T("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", x(ne, c.error.main, 0.5)), v(c.Slider, "infoTrack", x(ne, c.info.main, 0.5)), v(c.Slider, "successTrack", x(ne, c.success.main, 0.5)), v(c.Slider, "warningTrack", x(ne, c.warning.main, 0.5));
4273
- const M = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
4274
- v(c.SnackbarContent, "bg", M), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(M))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", T("palette-grey-600")), v(c.StepContent, "border", T("palette-grey-600")), v(c.Switch, "defaultColor", T("palette-grey-300")), v(c.Switch, "defaultDisabledColor", T("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Le, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Le, c.grey[700], 0.92));
4255
+ const N = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
4256
+ v(c.SnackbarContent, "bg", N), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(N))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", T("palette-grey-600")), v(c.StepContent, "border", T("palette-grey-600")), v(c.Switch, "defaultColor", T("palette-grey-300")), v(c.Switch, "defaultDisabledColor", T("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Le, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Le, c.grey[700], 0.92));
4275
4257
  }
4276
- Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((M) => {
4277
- const _ = c[M];
4278
- M !== "tonalOffset" && _ && typeof _ == "object" && (_.main && v(c[M], "mainChannel", mt(ht(_.main))), _.light && v(c[M], "lightChannel", mt(ht(_.light))), _.dark && v(c[M], "darkChannel", mt(ht(_.dark))), _.contrastText && v(c[M], "contrastTextChannel", mt(ht(_.contrastText))), M === "text" && (Ie(c[M], "primary"), Ie(c[M], "secondary")), M === "action" && (_.active && Ie(c[M], "active"), _.selected && Ie(c[M], "selected")));
4258
+ Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((N) => {
4259
+ const M = c[N];
4260
+ N !== "tonalOffset" && M && typeof M == "object" && (M.main && v(c[N], "mainChannel", mt(ht(M.main))), M.light && v(c[N], "lightChannel", mt(ht(M.light))), M.dark && v(c[N], "darkChannel", mt(ht(M.dark))), M.contrastText && v(c[N], "contrastTextChannel", mt(ht(M.contrastText))), N === "text" && (Ie(c[N], "primary"), Ie(c[N], "secondary")), N === "action" && (M.active && Ie(c[N], "active"), M.selected && Ie(c[N], "selected")));
4279
4261
  });
4280
- }), w = t.reduce((I, c) => he(I, c), w);
4262
+ }), w = t.reduce((P, c) => he(P, c), w);
4281
4263
  const V = {
4282
4264
  prefix: i,
4283
4265
  disableCssColorScheme: o,
4284
4266
  shouldSkipGeneratingVar: l,
4285
- getSelector: Vl(w),
4267
+ getSelector: Dl(w),
4286
4268
  enableContrastVars: a
4287
4269
  }, {
4288
- vars: U,
4270
+ vars: G,
4289
4271
  generateThemeVars: j,
4290
- generateStyleSheets: L
4291
- } = tl(w, V);
4292
- return w.vars = U, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([I, c]) => {
4293
- w[I] = c;
4294
- }), w.generateThemeVars = j, w.generateStyleSheets = L, w.generateSpacing = function() {
4272
+ generateStyleSheets: W
4273
+ } = el(w, V);
4274
+ return w.vars = G, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([P, c]) => {
4275
+ w[P] = c;
4276
+ }), w.generateThemeVars = j, w.generateStyleSheets = W, w.generateSpacing = function() {
4295
4277
  return Mo(p.spacing, Zt(this));
4296
- }, w.getColorSchemeSelector = rl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
4278
+ }, w.getColorSchemeSelector = tl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
4297
4279
  ...Ct,
4298
4280
  ...p?.unstable_sxConfig
4299
4281
  }, w.unstable_sx = function(c) {
@@ -4350,7 +4332,7 @@ function Ho(e = {}, ...t) {
4350
4332
  palette: y.palette
4351
4333
  }, zn(y, "light", d.light)), y;
4352
4334
  }
4353
- return !r && !("light" in d) && l === "light" && (d.light = !0), Ll({
4335
+ return !r && !("light" in d) && l === "light" && (d.light = !0), Wl({
4354
4336
  ...a,
4355
4337
  colorSchemes: d,
4356
4338
  defaultColorScheme: l,
@@ -4362,19 +4344,19 @@ function Xo() {
4362
4344
  const e = sr(Ko);
4363
4345
  return process.env.NODE_ENV !== "production" && B.useDebugValue(e), e[Ur] || e;
4364
4346
  }
4365
- function Fl(e) {
4347
+ function Ll(e) {
4366
4348
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
4367
4349
  }
4368
- const Qo = (e) => Fl(e) && e !== "classes", pe = Bo({
4350
+ const Qo = (e) => Ll(e) && e !== "classes", pe = Bo({
4369
4351
  themeId: Ur,
4370
4352
  defaultTheme: Ko,
4371
4353
  rootShouldForwardProp: Qo
4372
4354
  });
4373
4355
  process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
4374
4356
  function Oe(e) {
4375
- return Ha(e);
4357
+ return Ya(e);
4376
4358
  }
4377
- const He = Va({
4359
+ const He = Da({
4378
4360
  createStyledComponent: pe("div", {
4379
4361
  name: "MuiGrid",
4380
4362
  slot: "Root",
@@ -4482,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (He.propTypes = {
4482
4464
  wrap: s.oneOf(["nowrap", "wrap-reverse", "wrap"])
4483
4465
  });
4484
4466
  if (process.env.NODE_ENV !== "production") {
4485
- const e = He, t = ja("Grid", e);
4467
+ const e = He, t = Va("Grid", e);
4486
4468
  e.propTypes = {
4487
4469
  // eslint-disable-next-line react/forbid-foreign-prop-types
4488
4470
  ...e.propTypes,
@@ -4491,10 +4473,10 @@ if (process.env.NODE_ENV !== "production") {
4491
4473
  wrap: t("container")
4492
4474
  };
4493
4475
  }
4494
- function ql(e) {
4476
+ function Fl(e) {
4495
4477
  return e == null ? { xs: 12 } : typeof e == "object" ? e : { xs: e };
4496
4478
  }
4497
- function Gl(e) {
4479
+ function ql(e) {
4498
4480
  const t = /* @__PURE__ */ new Set(), r = (n) => {
4499
4481
  const o = (i) => {
4500
4482
  if (i) {
@@ -4517,7 +4499,7 @@ function Gl(e) {
4517
4499
  }
4518
4500
  return Array.from(t);
4519
4501
  }
4520
- function Ul({
4502
+ function Gl({
4521
4503
  field: e,
4522
4504
  index: t,
4523
4505
  values: r,
@@ -4581,25 +4563,25 @@ function Ul({
4581
4563
  }
4582
4564
  );
4583
4565
  if (u) {
4584
- const h = ql(e.colSpan);
4566
+ const h = Fl(e.colSpan);
4585
4567
  return /* @__PURE__ */ E(He, { size: h, children: b }, `${String(e.name)}-${t}`);
4586
4568
  }
4587
4569
  return b;
4588
4570
  }
4589
- const Yl = mi(Ul, (e, t) => {
4571
+ const Ul = mi(Gl, (e, t) => {
4590
4572
  if (e.field !== t.field || e.index !== t.index || e.disabled !== t.disabled || e.readOnly !== t.readOnly || e.useGrid !== t.useGrid || e.widgets !== t.widgets || e.form !== t.form)
4591
4573
  return !1;
4592
4574
  const r = e.optionsMap[e.field.name], n = t.optionsMap[t.field.name];
4593
4575
  if (r !== n)
4594
4576
  return !1;
4595
- const o = Gl(t.field);
4577
+ const o = ql(t.field);
4596
4578
  if (o.includes("*"))
4597
4579
  return !1;
4598
4580
  for (const i of o)
4599
4581
  if (e.values[i] !== t.values[i])
4600
4582
  return !1;
4601
4583
  return !0;
4602
- }), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(He, { container: !0, spacing: e, children: t }), Jo = cl({
4584
+ }), Yl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(He, { container: !0, spacing: e, children: t }), Jo = ll({
4603
4585
  createStyledComponent: pe("div", {
4604
4586
  name: "MuiStack",
4605
4587
  slot: "Root"
@@ -4653,7 +4635,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
4653
4635
  */
4654
4636
  useFlexGap: s.bool
4655
4637
  });
4656
- const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), ke = {
4638
+ const Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), ke = {
4657
4639
  "& .MuiInputBase-input": {
4658
4640
  fontSize: 14,
4659
4641
  padding: "8px 12px"
@@ -4675,7 +4657,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4675
4657
  "& .MuiInputLabel-asterisk": {
4676
4658
  display: "none"
4677
4659
  }
4678
- }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", Xl = yo("ul")(({ theme: e }) => ({
4660
+ }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", Kl = yo("ul")(({ theme: e }) => ({
4679
4661
  padding: e.spacing(0.5),
4680
4662
  margin: 0,
4681
4663
  listStyle: "none",
@@ -4713,7 +4695,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4713
4695
  cursor: "default",
4714
4696
  pointerEvents: "none"
4715
4697
  }
4716
- })), Ql = mo((e, t) => {
4698
+ })), Xl = mo((e, t) => {
4717
4699
  const {
4718
4700
  children: r,
4719
4701
  fetchingMore: n,
@@ -4723,7 +4705,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4723
4705
  error: l,
4724
4706
  ...u
4725
4707
  } = e;
4726
- return /* @__PURE__ */ fe(Xl, { ...u, ref: t, children: [
4708
+ return /* @__PURE__ */ fe(Kl, { ...u, ref: t, children: [
4727
4709
  r,
4728
4710
  a && !n && /* @__PURE__ */ E(
4729
4711
  pt,
@@ -4775,58 +4757,56 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4775
4757
  form: a,
4776
4758
  schema: l
4777
4759
  }) => {
4778
- 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), [P, $] = Be(""), [S, w] = Be(!1), [V, U] = Be(1), [j, L] = Be(!0), I = m ? b : o, c = m?.pageSize ?? 20;
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;
4779
4761
  _e(() => {
4780
4762
  if (!m?.fetchById || !e.value) return;
4781
4763
  const F = (Array.isArray(e.value) ? e.value : [e.value]).filter(
4782
- (q) => !b.some((O) => O.value === q)
4764
+ (U) => !b.some((O) => O.value === U)
4783
4765
  );
4784
- F.length !== 0 && F.forEach(async (q) => {
4766
+ F.length !== 0 && F.forEach(async (U) => {
4785
4767
  try {
4786
- const O = await m.fetchById(q);
4768
+ const O = await m.fetchById(U);
4787
4769
  O && h((R) => R.some((z) => z.value === O.value) ? R : [...R, O]);
4788
- } catch (O) {
4789
- console.error(`Failed to fetch option for value ${q}:`, O);
4770
+ } catch {
4790
4771
  }
4791
4772
  });
4792
4773
  }, [e.value, m, b]);
4793
4774
  const T = ho(
4794
- async (D, F, q = !1) => {
4775
+ async (D, F, U = !1) => {
4795
4776
  if (m) {
4796
- q || (U(1), L(!0)), q ? k(!0) : g(!0), m.onLoadingChange?.(!0);
4777
+ U || (G(1), W(!0)), U ? k(!0) : g(!0), m.onLoadingChange?.(!0);
4797
4778
  try {
4798
4779
  const O = await m.fetchOptions(D, F, c);
4799
- h(q ? (R) => {
4780
+ h(U ? (R) => {
4800
4781
  const z = O.data.filter(
4801
- (W) => !R.some((G) => G.value === W.value)
4782
+ (L) => !R.some((q) => q.value === L.value)
4802
4783
  );
4803
4784
  return [...R, ...z];
4804
- } : O.data), L(O.hasMore);
4805
- } catch (O) {
4806
- console.error("Failed to fetch options:", O);
4785
+ } : O.data), W(O.hasMore);
4786
+ } catch {
4807
4787
  } finally {
4808
- q ? k(!1) : g(!1), m.onLoadingChange?.(!1);
4788
+ U ? k(!1) : g(!1), m.onLoadingChange?.(!1);
4809
4789
  }
4810
4790
  }
4811
4791
  },
4812
4792
  [m, c]
4813
4793
  ), x = rt(null);
4814
4794
  _e(() => {
4815
- S && m && T(P, 1, !1);
4795
+ S && m && T(I, 1, !1);
4816
4796
  }, [S]);
4817
- const M = (D, F, q) => {
4818
- $(F), m && (x.current && clearTimeout(x.current), (q === "input" || q === "clear") && (x.current = setTimeout(() => {
4797
+ const N = (D, F, U) => {
4798
+ $(F), m && (x.current && clearTimeout(x.current), (U === "input" || U === "clear") && (x.current = setTimeout(() => {
4819
4799
  T(F, 1, !1);
4820
4800
  }, m.debounceTimeout ?? 500)));
4821
4801
  };
4822
4802
  _e(() => () => {
4823
4803
  x.current && clearTimeout(x.current);
4824
4804
  }, []);
4825
- const _ = (D) => {
4805
+ const M = (D) => {
4826
4806
  const F = D.currentTarget;
4827
4807
  if (!f && !C && j && F.scrollTop + F.clientHeight >= F.scrollHeight - 20) {
4828
- const q = V + 1;
4829
- U(q), T(P, q, !0);
4808
+ const U = V + 1;
4809
+ G(U), T(I, U, !0);
4830
4810
  }
4831
4811
  };
4832
4812
  return /* @__PURE__ */ E(
@@ -4846,22 +4826,22 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4846
4826
  open: S,
4847
4827
  onOpen: () => w(!0),
4848
4828
  onClose: () => w(!1),
4849
- inputValue: m ? P : void 0,
4850
- onInputChange: m ? M : void 0,
4851
- options: I,
4829
+ inputValue: m ? I : void 0,
4830
+ onInputChange: m ? N : void 0,
4831
+ options: P,
4852
4832
  loading: f || p,
4853
4833
  filterOptions: m ? (D) => D : void 0,
4854
- value: d ? I.filter((D) => (e.value ?? []).includes(D.value)) : I.find((D) => D.value === e.value) ?? null,
4834
+ value: d ? P.filter((D) => (e.value ?? []).includes(D.value)) : P.find((D) => D.value === e.value) ?? null,
4855
4835
  onChange: (D, F) => {
4856
- const q = d ? F.map((O) => O.value) : F?.value ?? null;
4857
- e.onChange(q), typeof u == "function" && u(D, F), a?.trigger(e.name);
4836
+ const U = d ? F.map((O) => O.value) : F?.value ?? null;
4837
+ e.onChange(U), typeof u == "function" && u(D, F), a?.trigger(e.name);
4858
4838
  },
4859
4839
  slots: {
4860
- listbox: m ? Ql : void 0
4840
+ listbox: m ? Xl : void 0
4861
4841
  },
4862
4842
  slotProps: {
4863
4843
  listbox: {
4864
- onScroll: m ? _ : void 0,
4844
+ onScroll: m ? M : void 0,
4865
4845
  style: { maxHeight: 260 },
4866
4846
  // 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
4867
4847
  ...m ? {
@@ -5054,15 +5034,15 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5054
5034
  ...o
5055
5035
  }
5056
5036
  ) });
5057
- function Jl() {
5037
+ function Ql() {
5058
5038
  return ir;
5059
5039
  }
5060
- const Ee = Qa;
5061
- function Zl(e) {
5040
+ const Ee = Xa;
5041
+ function Jl(e) {
5062
5042
  return xe("MuiSvgIcon", e);
5063
5043
  }
5064
5044
  Pe("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
5065
- const ec = (e) => {
5045
+ const Zl = (e) => {
5066
5046
  const {
5067
5047
  color: t,
5068
5048
  fontSize: r,
@@ -5070,8 +5050,8 @@ const ec = (e) => {
5070
5050
  } = e, o = {
5071
5051
  root: ["root", t !== "inherit" && `color${Z(t)}`, `fontSize${Z(r)}`]
5072
5052
  };
5073
- return Ae(o, Zl, n);
5074
- }, tc = pe("svg", {
5053
+ return Ae(o, Jl, n);
5054
+ }, ec = pe("svg", {
5075
5055
  name: "MuiSvgIcon",
5076
5056
  slot: "Root",
5077
5057
  overridesResolver: (e, t) => {
@@ -5192,8 +5172,8 @@ const ec = (e) => {
5192
5172
  hasSvgAsChild: h
5193
5173
  }, g = {};
5194
5174
  p || (g.viewBox = m);
5195
- const C = ec(f);
5196
- return /* @__PURE__ */ fe(tc, {
5175
+ const C = Zl(f);
5176
+ return /* @__PURE__ */ fe(ec, {
5197
5177
  as: l,
5198
5178
  className: ue(C.root, i),
5199
5179
  focusable: "false",
@@ -5296,7 +5276,7 @@ function Kr(e, t) {
5296
5276
  }
5297
5277
  function Dt(e) {
5298
5278
  const t = B.useRef(e);
5299
- return Wa(() => {
5279
+ return za(() => {
5300
5280
  t.current = e;
5301
5281
  }), B.useRef((...r) => (
5302
5282
  // @ts-expect-error hide `this`
@@ -5326,16 +5306,16 @@ function Yn(...e) {
5326
5306
  t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
5327
5307
  }, e);
5328
5308
  }
5329
- const rc = Kr(/* @__PURE__ */ E("path", {
5309
+ const tc = Kr(/* @__PURE__ */ E("path", {
5330
5310
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
5331
- }), "Add"), nc = Kr(/* @__PURE__ */ E("path", {
5311
+ }), "Add"), rc = Kr(/* @__PURE__ */ E("path", {
5332
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"
5333
- }), "ContentCopy"), oc = Kr(/* @__PURE__ */ E("path", {
5313
+ }), "ContentCopy"), nc = Kr(/* @__PURE__ */ E("path", {
5334
5314
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
5335
- }), "Delete"), ic = Pe("MuiBox", ["root"]), sc = Ho(), Gt = za({
5315
+ }), "Delete"), oc = Pe("MuiBox", ["root"]), ic = Ho(), Gt = ja({
5336
5316
  themeId: Ur,
5337
- defaultTheme: sc,
5338
- defaultClassName: ic.root,
5317
+ defaultTheme: ic,
5318
+ defaultClassName: oc.root,
5339
5319
  generateClassName: Oo.generate
5340
5320
  });
5341
5321
  process.env.NODE_ENV !== "production" && (Gt.propTypes = {
@@ -5357,19 +5337,19 @@ process.env.NODE_ENV !== "production" && (Gt.propTypes = {
5357
5337
  */
5358
5338
  sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
5359
5339
  });
5360
- const ac = s.oneOfType([s.func, s.object]);
5340
+ const sc = s.oneOfType([s.func, s.object]);
5361
5341
  function fr(e, t) {
5362
5342
  return process.env.NODE_ENV === "production" ? () => null : function(...n) {
5363
5343
  return e(...n) || t(...n);
5364
5344
  };
5365
5345
  }
5366
- function lc(e) {
5346
+ function ac(e) {
5367
5347
  const {
5368
5348
  prototype: t = {}
5369
5349
  } = e;
5370
5350
  return !!t.isReactComponent;
5371
5351
  }
5372
- function cc(e, t, r, n, o) {
5352
+ function lc(e, t, r, n, o) {
5373
5353
  const i = e[t], a = o || t;
5374
5354
  if (i == null || // When server-side rendering React doesn't warn either.
5375
5355
  // This is not an accurate check for SSR.
@@ -5378,15 +5358,14 @@ function cc(e, t, r, n, o) {
5378
5358
  typeof window > "u")
5379
5359
  return null;
5380
5360
  let l;
5381
- return typeof i == "function" && !lc(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
5361
+ return typeof i == "function" && !ac(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
5382
5362
  }
5383
- const uc = fr(s.elementType, cc);
5363
+ const cc = fr(s.elementType, lc);
5384
5364
  function Hn(e) {
5385
5365
  try {
5386
5366
  return e.matches(":focus-visible");
5387
5367
  } catch {
5388
- process.env.NODE_ENV !== "production" && !window.navigator.userAgent.includes("jsdom") && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
5389
- `));
5368
+ process.env.NODE_ENV !== "production" && window.navigator.userAgent.includes("jsdom");
5390
5369
  }
5391
5370
  return !1;
5392
5371
  }
@@ -5414,7 +5393,7 @@ class Ut {
5414
5393
  }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
5415
5394
  }
5416
5395
  mount() {
5417
- return this.mounted || (this.mounted = dc(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
5396
+ return this.mounted || (this.mounted = fc(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
5418
5397
  }
5419
5398
  mountEffect = () => {
5420
5399
  this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
@@ -5430,10 +5409,10 @@ class Ut {
5430
5409
  this.mount().then(() => this.ref.current?.pulsate(...t));
5431
5410
  }
5432
5411
  }
5433
- function fc() {
5412
+ function uc() {
5434
5413
  return Ut.use();
5435
5414
  }
5436
- function dc() {
5415
+ function fc() {
5437
5416
  let e, t;
5438
5417
  const r = new Promise((n, o) => {
5439
5418
  e = n, t = o;
@@ -5449,7 +5428,7 @@ function Ar() {
5449
5428
  return e;
5450
5429
  }, Ar.apply(null, arguments);
5451
5430
  }
5452
- function pc(e, t) {
5431
+ function dc(e, t) {
5453
5432
  if (e == null) return {};
5454
5433
  var r = {};
5455
5434
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -5463,11 +5442,11 @@ function Pr(e, t) {
5463
5442
  return r.__proto__ = n, r;
5464
5443
  }, Pr(e, t);
5465
5444
  }
5466
- function mc(e, t) {
5445
+ function pc(e, t) {
5467
5446
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pr(e, t);
5468
5447
  }
5469
5448
  const Xn = dt.createContext(null);
5470
- function hc(e) {
5449
+ function mc(e) {
5471
5450
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5472
5451
  return e;
5473
5452
  }
@@ -5481,7 +5460,7 @@ function Xr(e, t) {
5481
5460
  n[o.key] = r(o);
5482
5461
  }), n;
5483
5462
  }
5484
- function gc(e, t) {
5463
+ function hc(e, t) {
5485
5464
  e = e || {}, t = t || {};
5486
5465
  function r(p) {
5487
5466
  return p in t ? t[p] : e[p];
@@ -5505,7 +5484,7 @@ function gc(e, t) {
5505
5484
  function Ue(e, t, r) {
5506
5485
  return r[t] != null ? r[t] : e.props[t];
5507
5486
  }
5508
- function yc(e, t) {
5487
+ function gc(e, t) {
5509
5488
  return Xr(e.children, function(r) {
5510
5489
  return Nt(r, {
5511
5490
  onExited: t.bind(null, r),
@@ -5516,8 +5495,8 @@ function yc(e, t) {
5516
5495
  });
5517
5496
  });
5518
5497
  }
5519
- function bc(e, t, r) {
5520
- var n = Xr(e.children), o = gc(t, n);
5498
+ function yc(e, t, r) {
5499
+ var n = Xr(e.children), o = hc(t, n);
5521
5500
  return Object.keys(o).forEach(function(i) {
5522
5501
  var a = o[i];
5523
5502
  if (_t(a)) {
@@ -5538,21 +5517,21 @@ function bc(e, t, r) {
5538
5517
  }
5539
5518
  }), o;
5540
5519
  }
5541
- var vc = Object.values || function(e) {
5520
+ var bc = Object.values || function(e) {
5542
5521
  return Object.keys(e).map(function(t) {
5543
5522
  return e[t];
5544
5523
  });
5545
- }, Sc = {
5524
+ }, vc = {
5546
5525
  component: "div",
5547
5526
  childFactory: function(t) {
5548
5527
  return t;
5549
5528
  }
5550
5529
  }, Qr = /* @__PURE__ */ (function(e) {
5551
- mc(t, e);
5530
+ pc(t, e);
5552
5531
  function t(n, o) {
5553
5532
  var i;
5554
5533
  i = e.call(this, n, o) || this;
5555
- var a = i.handleExited.bind(hc(i));
5534
+ var a = i.handleExited.bind(mc(i));
5556
5535
  return i.state = {
5557
5536
  contextValue: {
5558
5537
  isMounting: !0
@@ -5573,7 +5552,7 @@ var vc = Object.values || function(e) {
5573
5552
  }, t.getDerivedStateFromProps = function(o, i) {
5574
5553
  var a = i.children, l = i.handleExited, u = i.firstRender;
5575
5554
  return {
5576
- children: u ? yc(o, l) : bc(o, a, l),
5555
+ children: u ? gc(o, l) : yc(o, a, l),
5577
5556
  firstRender: !1
5578
5557
  };
5579
5558
  }, r.handleExited = function(o, i) {
@@ -5585,7 +5564,7 @@ var vc = Object.values || function(e) {
5585
5564
  };
5586
5565
  }));
5587
5566
  }, r.render = function() {
5588
- var o = this.props, i = o.component, a = o.childFactory, l = pc(o, ["component", "childFactory"]), u = this.state.contextValue, d = vc(this.state.children).map(a);
5567
+ var o = this.props, i = o.component, a = o.childFactory, l = dc(o, ["component", "childFactory"]), u = this.state.contextValue, d = bc(this.state.children).map(a);
5589
5568
  return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ dt.createElement(Xn.Provider, {
5590
5569
  value: u
5591
5570
  }, d) : /* @__PURE__ */ dt.createElement(Xn.Provider, {
@@ -5646,10 +5625,10 @@ Qr.propTypes = process.env.NODE_ENV !== "production" ? {
5646
5625
  */
5647
5626
  childFactory: s.func
5648
5627
  } : {};
5649
- Qr.defaultProps = Sc;
5650
- const xc = [];
5651
- function Cc(e) {
5652
- B.useEffect(e, xc);
5628
+ Qr.defaultProps = vc;
5629
+ const Sc = [];
5630
+ function xc(e) {
5631
+ B.useEffect(e, Sc);
5653
5632
  }
5654
5633
  class Jr {
5655
5634
  static create() {
@@ -5669,9 +5648,9 @@ class Jr {
5669
5648
  };
5670
5649
  disposeEffect = () => this.clear;
5671
5650
  }
5672
- function Tc() {
5651
+ function Cc() {
5673
5652
  const e = Zo(Jr.create).current;
5674
- return Cc(e.disposeEffect), e;
5653
+ return xc(e.disposeEffect), e;
5675
5654
  }
5676
5655
  function ei(e) {
5677
5656
  const {
@@ -5740,7 +5719,7 @@ process.env.NODE_ENV !== "production" && (ei.propTypes = {
5740
5719
  */
5741
5720
  timeout: s.number.isRequired
5742
5721
  });
5743
- const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, wc = 80, Ec = St`
5722
+ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, Tc = 80, wc = St`
5744
5723
  0% {
5745
5724
  transform: scale(0);
5746
5725
  opacity: 0.1;
@@ -5750,7 +5729,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5750
5729
  transform: scale(1);
5751
5730
  opacity: 0.3;
5752
5731
  }
5753
- `, Oc = St`
5732
+ `, Ec = St`
5754
5733
  0% {
5755
5734
  opacity: 1;
5756
5735
  }
@@ -5758,7 +5737,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5758
5737
  100% {
5759
5738
  opacity: 0;
5760
5739
  }
5761
- `, $c = St`
5740
+ `, Oc = St`
5762
5741
  0% {
5763
5742
  transform: scale(1);
5764
5743
  }
@@ -5770,7 +5749,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5770
5749
  100% {
5771
5750
  transform: scale(1);
5772
5751
  }
5773
- `, Rc = pe("span", {
5752
+ `, $c = pe("span", {
5774
5753
  name: "MuiTouchRipple",
5775
5754
  slot: "Root"
5776
5755
  })({
@@ -5783,7 +5762,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5783
5762
  bottom: 0,
5784
5763
  left: 0,
5785
5764
  borderRadius: "inherit"
5786
- }), kc = pe(ei, {
5765
+ }), Rc = pe(ei, {
5787
5766
  name: "MuiTouchRipple",
5788
5767
  slot: "Ripple"
5789
5768
  })`
@@ -5793,7 +5772,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5793
5772
  &.${be.rippleVisible} {
5794
5773
  opacity: 0.3;
5795
5774
  transform: scale(1);
5796
- animation-name: ${Ec};
5775
+ animation-name: ${wc};
5797
5776
  animation-duration: ${Ir}ms;
5798
5777
  animation-timing-function: ${({
5799
5778
  theme: e
@@ -5817,7 +5796,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5817
5796
 
5818
5797
  & .${be.childLeaving} {
5819
5798
  opacity: 0;
5820
- animation-name: ${Oc};
5799
+ animation-name: ${Ec};
5821
5800
  animation-duration: ${Ir}ms;
5822
5801
  animation-timing-function: ${({
5823
5802
  theme: e
@@ -5829,7 +5808,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5829
5808
  /* @noflip */
5830
5809
  left: 0px;
5831
5810
  top: 0;
5832
- animation-name: ${$c};
5811
+ animation-name: ${Oc};
5833
5812
  animation-duration: 2500ms;
5834
5813
  animation-timing-function: ${({
5835
5814
  theme: e
@@ -5850,15 +5829,15 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5850
5829
  B.useEffect(() => {
5851
5830
  y.current && (y.current(), y.current = null);
5852
5831
  }, [u]);
5853
- const m = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5832
+ const m = B.useRef(!1), b = Cc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5854
5833
  const {
5855
5834
  pulsate: S,
5856
5835
  rippleX: w,
5857
5836
  rippleY: V,
5858
- rippleSize: U,
5837
+ rippleSize: G,
5859
5838
  cb: j
5860
5839
  } = $;
5861
- d((L) => [...L, /* @__PURE__ */ E(kc, {
5840
+ d((W) => [...W, /* @__PURE__ */ E(Rc, {
5862
5841
  classes: {
5863
5842
  ripple: ue(i.ripple, be.ripple),
5864
5843
  rippleVisible: ue(i.rippleVisible, be.rippleVisible),
@@ -5871,13 +5850,13 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5871
5850
  pulsate: S,
5872
5851
  rippleX: w,
5873
5852
  rippleY: V,
5874
- rippleSize: U
5853
+ rippleSize: G
5875
5854
  }, p.current)]), p.current += 1, y.current = j;
5876
5855
  }, [i]), C = B.useCallback(($ = {}, S = {}, w = () => {
5877
5856
  }) => {
5878
5857
  const {
5879
5858
  pulsate: V = !1,
5880
- center: U = o || S.pulsate,
5859
+ center: G = o || S.pulsate,
5881
5860
  fakeElement: j = !1
5882
5861
  // For test purposes
5883
5862
  } = S;
@@ -5886,27 +5865,27 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5886
5865
  return;
5887
5866
  }
5888
5867
  $?.type === "touchstart" && (m.current = !0);
5889
- const L = j ? null : f.current, I = L ? L.getBoundingClientRect() : {
5868
+ const W = j ? null : f.current, P = W ? W.getBoundingClientRect() : {
5890
5869
  width: 0,
5891
5870
  height: 0,
5892
5871
  left: 0,
5893
5872
  top: 0
5894
5873
  };
5895
5874
  let c, T, x;
5896
- if (U || $ === void 0 || $.clientX === 0 && $.clientY === 0 || !$.clientX && !$.touches)
5897
- c = Math.round(I.width / 2), T = Math.round(I.height / 2);
5875
+ if (G || $ === void 0 || $.clientX === 0 && $.clientY === 0 || !$.clientX && !$.touches)
5876
+ c = Math.round(P.width / 2), T = Math.round(P.height / 2);
5898
5877
  else {
5899
5878
  const {
5900
- clientX: M,
5901
- clientY: _
5879
+ clientX: N,
5880
+ clientY: M
5902
5881
  } = $.touches && $.touches.length > 0 ? $.touches[0] : $;
5903
- c = Math.round(M - I.left), T = Math.round(_ - I.top);
5882
+ c = Math.round(N - P.left), T = Math.round(M - P.top);
5904
5883
  }
5905
- if (U)
5906
- x = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), x % 2 === 0 && (x += 1);
5884
+ if (G)
5885
+ x = Math.sqrt((2 * P.width ** 2 + P.height ** 2) / 3), x % 2 === 0 && (x += 1);
5907
5886
  else {
5908
- const M = Math.max(Math.abs((L ? L.clientWidth : 0) - c), c) * 2 + 2, _ = Math.max(Math.abs((L ? L.clientHeight : 0) - T), T) * 2 + 2;
5909
- x = Math.sqrt(M ** 2 + _ ** 2);
5887
+ const N = Math.max(Math.abs((W ? W.clientWidth : 0) - c), c) * 2 + 2, M = Math.max(Math.abs((W ? W.clientHeight : 0) - T), T) * 2 + 2;
5888
+ x = Math.sqrt(N ** 2 + M ** 2);
5910
5889
  }
5911
5890
  $?.touches ? h.current === null && (h.current = () => {
5912
5891
  g({
@@ -5916,7 +5895,7 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5916
5895
  rippleSize: x,
5917
5896
  cb: w
5918
5897
  });
5919
- }, b.start(wc, () => {
5898
+ }, b.start(Tc, () => {
5920
5899
  h.current && (h.current(), h.current = null);
5921
5900
  })) : g({
5922
5901
  pulsate: V,
@@ -5929,10 +5908,10 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5929
5908
  C({}, {
5930
5909
  pulsate: !0
5931
5910
  });
5932
- }, [C]), P = B.useCallback(($, S) => {
5911
+ }, [C]), I = B.useCallback(($, S) => {
5933
5912
  if (b.clear(), $?.type === "touchend" && h.current) {
5934
5913
  h.current(), h.current = null, b.start(0, () => {
5935
- P($, S);
5914
+ I($, S);
5936
5915
  });
5937
5916
  return;
5938
5917
  }
@@ -5941,8 +5920,8 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5941
5920
  return B.useImperativeHandle(r, () => ({
5942
5921
  pulsate: k,
5943
5922
  start: C,
5944
- stop: P
5945
- }), [k, C, P]), /* @__PURE__ */ E(Rc, {
5923
+ stop: I
5924
+ }), [k, C, I]), /* @__PURE__ */ E($c, {
5946
5925
  className: ue(be.root, i.root, a),
5947
5926
  ref: f,
5948
5927
  ...l,
@@ -5968,10 +5947,10 @@ process.env.NODE_ENV !== "production" && (ti.propTypes = {
5968
5947
  */
5969
5948
  className: s.string
5970
5949
  });
5971
- function Ac(e) {
5950
+ function kc(e) {
5972
5951
  return xe("MuiButtonBase", e);
5973
5952
  }
5974
- const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) => {
5953
+ const Ac = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Pc = (e) => {
5975
5954
  const {
5976
5955
  disabled: t,
5977
5956
  focusVisible: r,
@@ -5979,9 +5958,9 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
5979
5958
  classes: o
5980
5959
  } = e, a = Ae({
5981
5960
  root: ["root", t && "disabled", r && "focusVisible"]
5982
- }, Ac, o);
5961
+ }, kc, o);
5983
5962
  return r && n && (a.root += ` ${n}`), a;
5984
- }, Mc = pe("button", {
5963
+ }, Ic = pe("button", {
5985
5964
  name: "MuiButtonBase",
5986
5965
  slot: "Root"
5987
5966
  })({
@@ -6015,7 +5994,7 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6015
5994
  borderStyle: "none"
6016
5995
  // Remove Firefox dotted outline.
6017
5996
  },
6018
- [`&.${Pc.disabled}`]: {
5997
+ [`&.${Ac.disabled}`]: {
6019
5998
  pointerEvents: "none",
6020
5999
  // Disable link interactions
6021
6000
  cursor: "default"
@@ -6043,47 +6022,47 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6043
6022
  onClick: g,
6044
6023
  onContextMenu: C,
6045
6024
  onDragLeave: k,
6046
- onFocus: P,
6025
+ onFocus: I,
6047
6026
  onFocusVisible: $,
6048
6027
  onKeyDown: S,
6049
6028
  onKeyUp: w,
6050
6029
  onMouseDown: V,
6051
- onMouseLeave: U,
6030
+ onMouseLeave: G,
6052
6031
  onMouseUp: j,
6053
- onTouchEnd: L,
6054
- onTouchMove: I,
6032
+ onTouchEnd: W,
6033
+ onTouchMove: P,
6055
6034
  onTouchStart: c,
6056
6035
  tabIndex: T = 0,
6057
6036
  TouchRippleProps: x,
6058
- touchRippleRef: M,
6059
- type: _,
6037
+ touchRippleRef: N,
6038
+ type: M,
6060
6039
  ...D
6061
- } = n, F = B.useRef(null), q = fc(), O = Yn(q.ref, M), [R, z] = B.useState(!1);
6040
+ } = n, F = B.useRef(null), U = uc(), O = Yn(U.ref, N), [R, z] = B.useState(!1);
6062
6041
  d && R && z(!1), B.useImperativeHandle(o, () => ({
6063
6042
  focusVisible: () => {
6064
6043
  z(!0), F.current.focus();
6065
6044
  }
6066
6045
  }), []);
6067
- const W = q.shouldMount && !p && !d;
6046
+ const L = U.shouldMount && !p && !d;
6068
6047
  B.useEffect(() => {
6069
- R && m && !p && q.pulsate();
6070
- }, [p, m, R, q]);
6071
- const G = Me(q, "start", V, y), X = Me(q, "stop", C, y), H = Me(q, "stop", k, y), K = Me(q, "stop", j, y), Q = Me(q, "stop", (Y) => {
6072
- R && Y.preventDefault(), U && U(Y);
6073
- }, y), ee = Me(q, "start", c, y), J = Me(q, "stop", L, y), me = Me(q, "stop", I, y), N = Me(q, "stop", (Y) => {
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) => {
6051
+ R && Y.preventDefault(), G && G(Y);
6052
+ }, y), ee = Me(U, "start", c, y), J = Me(U, "stop", W, y), me = Me(U, "stop", P, y), _ = Me(U, "stop", (Y) => {
6074
6053
  Hn(Y.target) || z(!1), f && f(Y);
6075
6054
  }, !1), ye = Dt((Y) => {
6076
- F.current || (F.current = Y.currentTarget), Hn(Y.target) && (z(!0), $ && $(Y)), P && P(Y);
6055
+ F.current || (F.current = Y.currentTarget), Hn(Y.target) && (z(!0), $ && $(Y)), I && I(Y);
6077
6056
  }), Ne = () => {
6078
6057
  const Y = F.current;
6079
6058
  return u && u !== "button" && !(Y.tagName === "A" && Y.href);
6080
6059
  }, wt = Dt((Y) => {
6081
- m && !Y.repeat && R && Y.key === " " && q.stop(Y, () => {
6082
- q.start(Y);
6060
+ m && !Y.repeat && R && Y.key === " " && U.stop(Y, () => {
6061
+ U.start(Y);
6083
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));
6084
6063
  }), fi = Dt((Y) => {
6085
- m && Y.key === " " && R && !Y.defaultPrevented && q.stop(Y, () => {
6086
- q.pulsate(Y);
6064
+ m && Y.key === " " && R && !Y.defaultPrevented && U.stop(Y, () => {
6065
+ U.pulsate(Y);
6087
6066
  }), w && w(Y), g && Y.target === Y.currentTarget && Ne() && Y.key === " " && !Y.defaultPrevented && g(Y);
6088
6067
  });
6089
6068
  let Et = u;
@@ -6091,7 +6070,7 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6091
6070
  const ut = {};
6092
6071
  if (Et === "button") {
6093
6072
  const Y = !!D.formAction;
6094
- ut.type = _ === void 0 && !Y ? "button" : _, ut.disabled = d;
6073
+ ut.type = M === void 0 && !Y ? "button" : M, ut.disabled = d;
6095
6074
  } else
6096
6075
  !D.href && !D.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
6097
6076
  const di = Yn(r, F), rn = {
@@ -6104,18 +6083,18 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6104
6083
  focusRipple: m,
6105
6084
  tabIndex: T,
6106
6085
  focusVisible: R
6107
- }, pi = Ic(rn);
6108
- return /* @__PURE__ */ fe(Mc, {
6086
+ }, pi = Pc(rn);
6087
+ return /* @__PURE__ */ fe(Ic, {
6109
6088
  as: Et,
6110
6089
  className: ue(pi.root, l),
6111
6090
  ownerState: rn,
6112
- onBlur: N,
6091
+ onBlur: _,
6113
6092
  onClick: g,
6114
6093
  onContextMenu: X,
6115
6094
  onFocus: ye,
6116
6095
  onKeyDown: wt,
6117
6096
  onKeyUp: fi,
6118
- onMouseDown: G,
6097
+ onMouseDown: q,
6119
6098
  onMouseLeave: Q,
6120
6099
  onMouseUp: K,
6121
6100
  onDragLeave: H,
@@ -6124,10 +6103,10 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6124
6103
  onTouchStart: ee,
6125
6104
  ref: di,
6126
6105
  tabIndex: d ? -1 : T,
6127
- type: _,
6106
+ type: M,
6128
6107
  ...ut,
6129
6108
  ...D,
6130
- children: [a, W ? /* @__PURE__ */ E(ti, {
6109
+ children: [a, L ? /* @__PURE__ */ E(ti, {
6131
6110
  ref: O,
6132
6111
  center: i,
6133
6112
  ...x
@@ -6146,7 +6125,7 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6146
6125
  * A ref for imperative actions.
6147
6126
  * It currently only supports `focusVisible()` action.
6148
6127
  */
6149
- action: ac,
6128
+ action: sc,
6150
6129
  /**
6151
6130
  * If `true`, the ripples are centered.
6152
6131
  * They won't start at the cursor interaction position.
@@ -6169,7 +6148,7 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6169
6148
  * The component used for the root node.
6170
6149
  * Either a string to use a HTML element or a component.
6171
6150
  */
6172
- component: uc,
6151
+ component: cc,
6173
6152
  /**
6174
6153
  * If `true`, the component is disabled.
6175
6154
  * @default false
@@ -6299,11 +6278,11 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = {
6299
6278
  */
6300
6279
  type: s.oneOfType([s.oneOf(["button", "reset", "submit"]), s.string])
6301
6280
  });
6302
- function _c(e) {
6281
+ function Mc(e) {
6303
6282
  return typeof e.main == "string";
6304
6283
  }
6305
- function Nc(e, t = []) {
6306
- if (!_c(e))
6284
+ function _c(e, t = []) {
6285
+ if (!Mc(e))
6307
6286
  return !1;
6308
6287
  for (const r of t)
6309
6288
  if (!e.hasOwnProperty(r) || typeof e[r] != "string")
@@ -6311,9 +6290,9 @@ function Nc(e, t = []) {
6311
6290
  return !0;
6312
6291
  }
6313
6292
  function vt(e = []) {
6314
- return ([, t]) => t && Nc(t, e);
6293
+ return ([, t]) => t && _c(t, e);
6315
6294
  }
6316
- function Bc(e) {
6295
+ function Nc(e) {
6317
6296
  return xe("MuiCircularProgress", e);
6318
6297
  }
6319
6298
  Pe("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
@@ -6340,11 +6319,11 @@ const Te = 44, Mr = St`
6340
6319
  stroke-dasharray: 1px, 200px;
6341
6320
  stroke-dashoffset: -126px;
6342
6321
  }
6343
- `, Dc = typeof Mr != "string" ? go`
6322
+ `, Bc = typeof Mr != "string" ? go`
6344
6323
  animation: ${Mr} 1.4s linear infinite;
6345
- ` : null, Vc = typeof _r != "string" ? go`
6324
+ ` : null, Dc = typeof _r != "string" ? go`
6346
6325
  animation: ${_r} 1.4s ease-in-out infinite;
6347
- ` : null, jc = (e) => {
6326
+ ` : null, Vc = (e) => {
6348
6327
  const {
6349
6328
  classes: t,
6350
6329
  variant: r,
@@ -6356,8 +6335,8 @@ const Te = 44, Mr = St`
6356
6335
  track: ["track"],
6357
6336
  circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
6358
6337
  };
6359
- return Ae(i, Bc, t);
6360
- }, zc = pe("span", {
6338
+ return Ae(i, Nc, t);
6339
+ }, jc = pe("span", {
6361
6340
  name: "MuiCircularProgress",
6362
6341
  slot: "Root",
6363
6342
  overridesResolver: (e, t) => {
@@ -6381,7 +6360,7 @@ const Te = 44, Mr = St`
6381
6360
  props: {
6382
6361
  variant: "indeterminate"
6383
6362
  },
6384
- style: Dc || {
6363
+ style: Bc || {
6385
6364
  animation: `${Mr} 1.4s linear infinite`
6386
6365
  }
6387
6366
  }, ...Object.entries(e.palette).filter(vt()).map(([t]) => ({
@@ -6392,13 +6371,13 @@ const Te = 44, Mr = St`
6392
6371
  color: (e.vars || e).palette[t].main
6393
6372
  }
6394
6373
  }))]
6395
- }))), Wc = pe("svg", {
6374
+ }))), zc = pe("svg", {
6396
6375
  name: "MuiCircularProgress",
6397
6376
  slot: "Svg"
6398
6377
  })({
6399
6378
  display: "block"
6400
6379
  // Keeps the progress centered
6401
- }), Lc = pe("circle", {
6380
+ }), Wc = pe("circle", {
6402
6381
  name: "MuiCircularProgress",
6403
6382
  slot: "Circle",
6404
6383
  overridesResolver: (e, t) => {
@@ -6432,12 +6411,12 @@ const Te = 44, Mr = St`
6432
6411
  props: ({
6433
6412
  ownerState: t
6434
6413
  }) => t.variant === "indeterminate" && !t.disableShrink,
6435
- style: Vc || {
6414
+ style: Dc || {
6436
6415
  // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
6437
6416
  animation: `${_r} 1.4s ease-in-out infinite`
6438
6417
  }
6439
6418
  }]
6440
- }))), Fc = pe("circle", {
6419
+ }))), Lc = pe("circle", {
6441
6420
  name: "MuiCircularProgress",
6442
6421
  slot: "Track"
6443
6422
  })(Ee(({
@@ -6469,12 +6448,12 @@ const Te = 44, Mr = St`
6469
6448
  value: y,
6470
6449
  variant: m,
6471
6450
  enableTrackSlot: l
6472
- }, f = jc(h), g = {}, C = {}, k = {};
6451
+ }, f = Vc(h), g = {}, C = {}, k = {};
6473
6452
  if (m === "determinate") {
6474
- const P = 2 * Math.PI * ((Te - p) / 2);
6475
- g.strokeDasharray = P.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * P).toFixed(3)}px`, C.transform = "rotate(-90deg)";
6453
+ const I = 2 * Math.PI * ((Te - p) / 2);
6454
+ g.strokeDasharray = I.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * I).toFixed(3)}px`, C.transform = "rotate(-90deg)";
6476
6455
  }
6477
- return /* @__PURE__ */ E(zc, {
6456
+ return /* @__PURE__ */ E(jc, {
6478
6457
  className: ue(f.root, o),
6479
6458
  style: {
6480
6459
  width: u,
@@ -6487,11 +6466,11 @@ const Te = 44, Mr = St`
6487
6466
  role: "progressbar",
6488
6467
  ...k,
6489
6468
  ...b,
6490
- children: /* @__PURE__ */ fe(Wc, {
6469
+ children: /* @__PURE__ */ fe(zc, {
6491
6470
  className: f.svg,
6492
6471
  ownerState: h,
6493
6472
  viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
6494
- children: [l ? /* @__PURE__ */ E(Fc, {
6473
+ children: [l ? /* @__PURE__ */ E(Lc, {
6495
6474
  className: f.track,
6496
6475
  ownerState: h,
6497
6476
  cx: Te,
@@ -6500,7 +6479,7 @@ const Te = 44, Mr = St`
6500
6479
  fill: "none",
6501
6480
  strokeWidth: p,
6502
6481
  "aria-hidden": "true"
6503
- }) : null, /* @__PURE__ */ E(Lc, {
6482
+ }) : null, /* @__PURE__ */ E(Wc, {
6504
6483
  className: f.circle,
6505
6484
  style: g,
6506
6485
  ownerState: h,
@@ -6578,14 +6557,14 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
6578
6557
  */
6579
6558
  variant: s.oneOf(["determinate", "indeterminate"])
6580
6559
  });
6581
- function qc(e) {
6560
+ function Fc(e) {
6582
6561
  return xe("MuiButton", e);
6583
6562
  }
6584
6563
  const Fe = Pe("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ri = /* @__PURE__ */ B.createContext({});
6585
6564
  process.env.NODE_ENV !== "production" && (ri.displayName = "ButtonGroupContext");
6586
6565
  const ni = /* @__PURE__ */ B.createContext(void 0);
6587
6566
  process.env.NODE_ENV !== "production" && (ni.displayName = "ButtonGroupButtonContext");
6588
- const Gc = (e) => {
6567
+ const qc = (e) => {
6589
6568
  const {
6590
6569
  color: t,
6591
6570
  disableElevation: r,
@@ -6601,7 +6580,7 @@ const Gc = (e) => {
6601
6580
  endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
6602
6581
  loadingIndicator: ["loadingIndicator"],
6603
6582
  loadingWrapper: ["loadingWrapper"]
6604
- }, p = Ae(d, qc, u);
6583
+ }, p = Ae(d, Fc, u);
6605
6584
  return {
6606
6585
  ...u,
6607
6586
  // forward the focused, disabled, etc. classes to the ButtonBase
@@ -6634,7 +6613,7 @@ const Gc = (e) => {
6634
6613
  fontSize: 22
6635
6614
  }
6636
6615
  }
6637
- }], Uc = pe(Zr, {
6616
+ }], Gc = pe(Zr, {
6638
6617
  shouldForwardProp: (e) => Qo(e) || e === "classes",
6639
6618
  name: "MuiButton",
6640
6619
  slot: "Root",
@@ -6842,7 +6821,7 @@ const Gc = (e) => {
6842
6821
  }
6843
6822
  }]
6844
6823
  };
6845
- })), Yc = pe("span", {
6824
+ })), Uc = pe("span", {
6846
6825
  name: "MuiButton",
6847
6826
  slot: "StartIcon",
6848
6827
  overridesResolver: (e, t) => {
@@ -6885,7 +6864,7 @@ const Gc = (e) => {
6885
6864
  marginRight: -8
6886
6865
  }
6887
6866
  }, ...oi]
6888
- })), Hc = pe("span", {
6867
+ })), Yc = pe("span", {
6889
6868
  name: "MuiButton",
6890
6869
  slot: "EndIcon",
6891
6870
  overridesResolver: (e, t) => {
@@ -6928,7 +6907,7 @@ const Gc = (e) => {
6928
6907
  marginLeft: -8
6929
6908
  }
6930
6909
  }, ...oi]
6931
- })), Kc = pe("span", {
6910
+ })), Hc = pe("span", {
6932
6911
  name: "MuiButton",
6933
6912
  slot: "LoadingIndicator"
6934
6913
  })(({
@@ -7042,15 +7021,15 @@ const Gc = (e) => {
7042
7021
  fullWidth: g = !1,
7043
7022
  id: C,
7044
7023
  loading: k = null,
7045
- loadingIndicator: P,
7024
+ loadingIndicator: I,
7046
7025
  loadingPosition: $ = "center",
7047
7026
  size: S = "medium",
7048
7027
  startIcon: w,
7049
7028
  type: V,
7050
- variant: U = "text",
7029
+ variant: G = "text",
7051
7030
  ...j
7052
- } = a, L = Wo(C), I = P ?? /* @__PURE__ */ E(en, {
7053
- "aria-labelledby": L,
7031
+ } = a, W = Wo(C), P = I ?? /* @__PURE__ */ E(en, {
7032
+ "aria-labelledby": W,
7054
7033
  color: "inherit",
7055
7034
  size: 16
7056
7035
  }), c = {
@@ -7062,52 +7041,52 @@ const Gc = (e) => {
7062
7041
  disableFocusRipple: b,
7063
7042
  fullWidth: g,
7064
7043
  loading: k,
7065
- loadingIndicator: I,
7044
+ loadingIndicator: P,
7066
7045
  loadingPosition: $,
7067
7046
  size: S,
7068
7047
  type: V,
7069
- variant: U
7070
- }, T = Gc(c), x = (w || k && $ === "start") && /* @__PURE__ */ E(Yc, {
7048
+ variant: G
7049
+ }, T = qc(c), x = (w || k && $ === "start") && /* @__PURE__ */ E(Uc, {
7071
7050
  className: T.startIcon,
7072
7051
  ownerState: c,
7073
7052
  children: w || /* @__PURE__ */ E(Qn, {
7074
7053
  className: T.loadingIconPlaceholder,
7075
7054
  ownerState: c
7076
7055
  })
7077
- }), M = (h || k && $ === "end") && /* @__PURE__ */ E(Hc, {
7056
+ }), N = (h || k && $ === "end") && /* @__PURE__ */ E(Yc, {
7078
7057
  className: T.endIcon,
7079
7058
  ownerState: c,
7080
7059
  children: h || /* @__PURE__ */ E(Qn, {
7081
7060
  className: T.loadingIconPlaceholder,
7082
7061
  ownerState: c
7083
7062
  })
7084
- }), _ = o || "", D = typeof k == "boolean" ? (
7063
+ }), M = o || "", D = typeof k == "boolean" ? (
7085
7064
  // use plain HTML span to minimize the runtime overhead
7086
7065
  /* @__PURE__ */ E("span", {
7087
7066
  className: T.loadingWrapper,
7088
7067
  style: {
7089
7068
  display: "contents"
7090
7069
  },
7091
- children: k && /* @__PURE__ */ E(Kc, {
7070
+ children: k && /* @__PURE__ */ E(Hc, {
7092
7071
  className: T.loadingIndicator,
7093
7072
  ownerState: c,
7094
- children: I
7073
+ children: P
7095
7074
  })
7096
7075
  })
7097
7076
  ) : null;
7098
- return /* @__PURE__ */ fe(Uc, {
7077
+ return /* @__PURE__ */ fe(Gc, {
7099
7078
  ownerState: c,
7100
- className: ue(n.className, T.root, p, _),
7079
+ className: ue(n.className, T.root, p, M),
7101
7080
  component: d,
7102
7081
  disabled: y || k,
7103
7082
  focusRipple: !b,
7104
7083
  focusVisibleClassName: ue(T.focusVisible, f),
7105
7084
  ref: r,
7106
7085
  type: V,
7107
- id: k ? L : C,
7086
+ id: k ? W : C,
7108
7087
  ...j,
7109
7088
  classes: T,
7110
- children: [x, $ !== "end" && D, l, $ === "end" && D, M]
7089
+ children: [x, $ !== "end" && D, l, $ === "end" && D, N]
7111
7090
  });
7112
7091
  });
7113
7092
  process.env.NODE_ENV !== "production" && (ii.propTypes = {
@@ -7226,11 +7205,11 @@ process.env.NODE_ENV !== "production" && (ii.propTypes = {
7226
7205
  */
7227
7206
  variant: s.oneOfType([s.oneOf(["contained", "outlined", "text"]), s.string])
7228
7207
  });
7229
- function Xc(e) {
7208
+ function Kc(e) {
7230
7209
  return xe("MuiDivider", e);
7231
7210
  }
7232
7211
  Pe("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
7233
- const Qc = (e) => {
7212
+ const Xc = (e) => {
7234
7213
  const {
7235
7214
  absolute: t,
7236
7215
  children: r,
@@ -7244,8 +7223,8 @@ const Qc = (e) => {
7244
7223
  return Ae({
7245
7224
  root: ["root", t && "absolute", u, i && "light", a === "vertical" && "vertical", o && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", l === "right" && a !== "vertical" && "textAlignRight", l === "left" && a !== "vertical" && "textAlignLeft"],
7246
7225
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
7247
- }, Xc, n);
7248
- }, Jc = pe("div", {
7226
+ }, Kc, n);
7227
+ }, Qc = pe("div", {
7249
7228
  name: "MuiDivider",
7250
7229
  slot: "Root",
7251
7230
  overridesResolver: (e, t) => {
@@ -7386,7 +7365,7 @@ const Qc = (e) => {
7386
7365
  }
7387
7366
  }
7388
7367
  }]
7389
- }))), Zc = pe("span", {
7368
+ }))), Jc = pe("span", {
7390
7369
  name: "MuiDivider",
7391
7370
  slot: "Wrapper",
7392
7371
  overridesResolver: (e, t) => {
@@ -7437,8 +7416,8 @@ const Qc = (e) => {
7437
7416
  role: y,
7438
7417
  textAlign: m,
7439
7418
  variant: b
7440
- }, g = Qc(f);
7441
- return /* @__PURE__ */ E(Jc, {
7419
+ }, g = Xc(f);
7420
+ return /* @__PURE__ */ E(Qc, {
7442
7421
  as: u,
7443
7422
  className: ue(g.root, a),
7444
7423
  role: y,
@@ -7446,7 +7425,7 @@ const Qc = (e) => {
7446
7425
  ownerState: f,
7447
7426
  "aria-orientation": y === "separator" && (u !== "hr" || l === "vertical") ? l : void 0,
7448
7427
  ...h,
7449
- children: i ? /* @__PURE__ */ E(Zc, {
7428
+ children: i ? /* @__PURE__ */ E(Jc, {
7450
7429
  className: g.wrapper,
7451
7430
  ownerState: f,
7452
7431
  children: i
@@ -7517,10 +7496,10 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
7517
7496
  */
7518
7497
  variant: s.oneOfType([s.oneOf(["fullWidth", "inset", "middle"]), s.string])
7519
7498
  });
7520
- function eu(e) {
7499
+ function Zc(e) {
7521
7500
  return xe("MuiIconButton", e);
7522
7501
  }
7523
- const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), tu = (e) => {
7502
+ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), eu = (e) => {
7524
7503
  const {
7525
7504
  classes: t,
7526
7505
  disabled: r,
@@ -7533,8 +7512,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7533
7512
  loadingIndicator: ["loadingIndicator"],
7534
7513
  loadingWrapper: ["loadingWrapper"]
7535
7514
  };
7536
- return Ae(l, eu, t);
7537
- }, ru = pe(Zr, {
7515
+ return Ae(l, Zc, t);
7516
+ }, tu = pe(Zr, {
7538
7517
  name: "MuiIconButton",
7539
7518
  slot: "Root",
7540
7519
  overridesResolver: (e, t) => {
@@ -7646,7 +7625,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7646
7625
  [`&.${Jn.loading}`]: {
7647
7626
  color: "transparent"
7648
7627
  }
7649
- }))), nu = pe("span", {
7628
+ }))), ru = pe("span", {
7650
7629
  name: "MuiIconButton",
7651
7630
  slot: "LoadingIndicator"
7652
7631
  })(({
@@ -7696,8 +7675,8 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7696
7675
  loading: m,
7697
7676
  loadingIndicator: g,
7698
7677
  size: p
7699
- }, k = tu(C);
7700
- return /* @__PURE__ */ fe(ru, {
7678
+ }, k = eu(C);
7679
+ return /* @__PURE__ */ fe(tu, {
7701
7680
  id: m ? f : y,
7702
7681
  className: ue(k.root, a),
7703
7682
  centerRipple: !0,
@@ -7712,7 +7691,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7712
7691
  style: {
7713
7692
  display: "contents"
7714
7693
  },
7715
- children: /* @__PURE__ */ E(nu, {
7694
+ children: /* @__PURE__ */ E(ru, {
7716
7695
  className: k.loadingIndicator,
7717
7696
  ownerState: C,
7718
7697
  children: m && g
@@ -7799,7 +7778,7 @@ process.env.NODE_ENV !== "production" && (Nr.propTypes = {
7799
7778
  */
7800
7779
  sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
7801
7780
  });
7802
- function ou(e) {
7781
+ function nu(e) {
7803
7782
  const t = typeof e;
7804
7783
  switch (t) {
7805
7784
  case "number":
@@ -7813,7 +7792,7 @@ function ou(e) {
7813
7792
  function si(e, t, r, n) {
7814
7793
  const o = e[t];
7815
7794
  if (o == null || !Number.isInteger(o)) {
7816
- const i = ou(o);
7795
+ const i = nu(o);
7817
7796
  return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`);
7818
7797
  }
7819
7798
  return null;
@@ -7826,12 +7805,12 @@ function Br() {
7826
7805
  }
7827
7806
  ai.isRequired = si;
7828
7807
  Br.isRequired = Br;
7829
- const iu = process.env.NODE_ENV === "production" ? Br : ai;
7830
- function su(e) {
7808
+ const ou = process.env.NODE_ENV === "production" ? Br : ai;
7809
+ function iu(e) {
7831
7810
  return xe("MuiPaper", e);
7832
7811
  }
7833
7812
  Pe("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
7834
- const au = (e) => {
7813
+ const su = (e) => {
7835
7814
  const {
7836
7815
  square: t,
7837
7816
  elevation: r,
@@ -7840,8 +7819,8 @@ const au = (e) => {
7840
7819
  } = e, i = {
7841
7820
  root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`]
7842
7821
  };
7843
- return Ae(i, su, o);
7844
- }, lu = pe("div", {
7822
+ return Ae(i, iu, o);
7823
+ }, au = pe("div", {
7845
7824
  name: "MuiPaper",
7846
7825
  slot: "Root",
7847
7826
  overridesResolver: (e, t) => {
@@ -7896,9 +7875,8 @@ const au = (e) => {
7896
7875
  elevation: l,
7897
7876
  square: u,
7898
7877
  variant: d
7899
- }, m = au(y);
7900
- return process.env.NODE_ENV !== "production" && o.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
7901
- `)), /* @__PURE__ */ E(lu, {
7878
+ }, m = su(y);
7879
+ return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(au, {
7902
7880
  as: a,
7903
7881
  ownerState: y,
7904
7882
  className: ue(m.root, i),
@@ -7945,7 +7923,7 @@ process.env.NODE_ENV !== "production" && (li.propTypes = {
7945
7923
  * It accepts values between 0 and 24 inclusive.
7946
7924
  * @default 1
7947
7925
  */
7948
- elevation: fr(iu, (e) => {
7926
+ elevation: fr(ou, (e) => {
7949
7927
  const {
7950
7928
  elevation: t,
7951
7929
  variant: r
@@ -7971,11 +7949,11 @@ process.env.NODE_ENV !== "production" && (li.propTypes = {
7971
7949
  */
7972
7950
  variant: s.oneOfType([s.oneOf(["elevation", "outlined"]), s.string])
7973
7951
  });
7974
- function cu(e) {
7952
+ function lu(e) {
7975
7953
  return xe("MuiTypography", e);
7976
7954
  }
7977
7955
  Pe("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
7978
- const uu = {
7956
+ const cu = {
7979
7957
  primary: !0,
7980
7958
  secondary: !0,
7981
7959
  error: !0,
@@ -7985,7 +7963,7 @@ const uu = {
7985
7963
  textPrimary: !0,
7986
7964
  textSecondary: !0,
7987
7965
  textDisabled: !0
7988
- }, fu = Jl(), du = (e) => {
7966
+ }, uu = Ql(), fu = (e) => {
7989
7967
  const {
7990
7968
  align: t,
7991
7969
  gutterBottom: r,
@@ -7996,8 +7974,8 @@ const uu = {
7996
7974
  } = e, l = {
7997
7975
  root: ["root", i, e.align !== "inherit" && `align${Z(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
7998
7976
  };
7999
- return Ae(l, cu, a);
8000
- }, pu = pe("span", {
7977
+ return Ae(l, lu, a);
7978
+ }, du = pe("span", {
8001
7979
  name: "MuiTypography",
8002
7980
  slot: "Root",
8003
7981
  overridesResolver: (e, t) => {
@@ -8089,7 +8067,7 @@ const uu = {
8089
8067
  } = Oe({
8090
8068
  props: t,
8091
8069
  name: "MuiTypography"
8092
- }), i = !uu[n], a = fu({
8070
+ }), i = !cu[n], a = uu({
8093
8071
  ...o,
8094
8072
  ...i && {
8095
8073
  color: n
@@ -8115,8 +8093,8 @@ const uu = {
8115
8093
  paragraph: m,
8116
8094
  variant: b,
8117
8095
  variantMapping: h
8118
- }, C = d || (m ? "p" : h[b] || Zn[b]) || "span", k = du(g);
8119
- return /* @__PURE__ */ E(pu, {
8096
+ }, C = d || (m ? "p" : h[b] || Zn[b]) || "span", k = fu(g);
8097
+ return /* @__PURE__ */ E(du, {
8120
8098
  as: C,
8121
8099
  ref: r,
8122
8100
  className: ue(k.root, u),
@@ -8254,13 +8232,13 @@ const Tr = ({
8254
8232
  name: e.name
8255
8233
  }), p = qe(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, V) => {
8256
8234
  if (!p.some(
8257
- (L) => L.dependencies.includes(V)
8235
+ (W) => W.dependencies.includes(V)
8258
8236
  )) return;
8259
8237
  const j = t.getValues(`${e.name}.${w}`);
8260
- j && p.forEach(({ name: L, expr: I, dependencies: c, precision: T, roundMode: x }) => {
8261
- if (L === V || !c.includes(V) || !c.every((F) => Fr(j[F]))) return;
8262
- const _ = Co(I, j, c, T, x), D = j[L];
8263
- _ !== void 0 && _ !== D && !Number.isNaN(_) && (typeof _ != "number" || typeof D != "number" || Math.abs(_ - D) > 1e-4) && t.setValue(`${e.name}.${w}.${L}`, _, {
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];
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, {
8264
8242
  shouldValidate: !0,
8265
8243
  // 计算更新通常需要触发验证
8266
8244
  shouldDirty: !0,
@@ -8277,16 +8255,16 @@ const Tr = ({
8277
8255
  if (l.length >= f) return;
8278
8256
  const w = ci(b);
8279
8257
  u(w);
8280
- }, P = (w) => {
8258
+ }, I = (w) => {
8281
8259
  if (l.length >= f) return;
8282
8260
  const V = t.getValues(`${e.name}.${w}`);
8283
8261
  u(V);
8284
8262
  }, $ = (w) => {
8285
8263
  l.length <= h || d(w);
8286
- }, S = (w, V, U) => {
8287
- const j = `${e.name}.${V}.${w.name}`, L = m?.[e.name]?.[V] || {}, I = { ...m, ...L }, c = Ht(
8264
+ }, S = (w, V, G) => {
8265
+ const j = `${e.name}.${V}.${w.name}`, W = m?.[e.name]?.[V] || {}, P = { ...m, ...W }, c = Ht(
8288
8266
  w,
8289
- I,
8267
+ P,
8290
8268
  o,
8291
8269
  i
8292
8270
  );
@@ -8298,31 +8276,31 @@ const Tr = ({
8298
8276
  {
8299
8277
  size: eo(w.colSpan),
8300
8278
  children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: w.columns?.map(
8301
- (_, D) => S(
8302
- { ..._, name: _.name },
8279
+ (M, D) => S(
8280
+ { ...M, name: M.name },
8303
8281
  V,
8304
8282
  D
8305
8283
  )
8306
8284
  ) })
8307
8285
  },
8308
- `${j}-${U}`
8286
+ `${j}-${G}`
8309
8287
  );
8310
8288
  const T = r[w.component] ?? r.Text;
8311
8289
  if (!T) return null;
8312
- const x = n[w.name] ?? w.ui?.options ?? [], M = eo(w.colSpan);
8313
- return /* @__PURE__ */ E($t, { size: M, children: /* @__PURE__ */ E(
8290
+ const x = n[w.name] ?? w.ui?.options ?? [], N = eo(w.colSpan);
8291
+ return /* @__PURE__ */ E($t, { size: N, children: /* @__PURE__ */ E(
8314
8292
  Vr,
8315
8293
  {
8316
8294
  control: t.control,
8317
8295
  name: j,
8318
- render: ({ field: _, fieldState: D }) => /* @__PURE__ */ E(
8296
+ render: ({ field: M, fieldState: D }) => /* @__PURE__ */ E(
8319
8297
  T,
8320
8298
  {
8321
8299
  error: !!D.error,
8322
8300
  field: {
8323
- ..._,
8301
+ ...M,
8324
8302
  onBlur: (F) => {
8325
- _.onBlur(), y(V, w.name);
8303
+ M.onBlur(), y(V, w.name);
8326
8304
  }
8327
8305
  },
8328
8306
  fieldProps: {
@@ -8339,7 +8317,7 @@ const Tr = ({
8339
8317
  }
8340
8318
  )
8341
8319
  }
8342
- ) }, `${j}-${U}`);
8320
+ ) }, `${j}-${G}`);
8343
8321
  };
8344
8322
  return /* @__PURE__ */ fe(Gt, { children: [
8345
8323
  a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
@@ -8364,9 +8342,9 @@ const Tr = ({
8364
8342
  Nr,
8365
8343
  {
8366
8344
  size: "small",
8367
- onClick: () => P(V),
8345
+ onClick: () => I(V),
8368
8346
  title: "复制",
8369
- children: /* @__PURE__ */ E(nc, { fontSize: "small" })
8347
+ children: /* @__PURE__ */ E(rc, { fontSize: "small" })
8370
8348
  }
8371
8349
  ),
8372
8350
  l.length > h && !o && /* @__PURE__ */ E(
@@ -8376,13 +8354,13 @@ const Tr = ({
8376
8354
  onClick: () => $(V),
8377
8355
  color: "error",
8378
8356
  title: "删除",
8379
- children: /* @__PURE__ */ E(oc, { fontSize: "small" })
8357
+ children: /* @__PURE__ */ E(nc, { fontSize: "small" })
8380
8358
  }
8381
8359
  )
8382
8360
  ]
8383
8361
  }
8384
8362
  ),
8385
- /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((U, j) => S(U, V, j)) })
8363
+ /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, j) => S(G, V, j)) })
8386
8364
  ]
8387
8365
  },
8388
8366
  w.id
@@ -8392,14 +8370,14 @@ const Tr = ({
8392
8370
  {
8393
8371
  variant: "text",
8394
8372
  size: "small",
8395
- startIcon: /* @__PURE__ */ E(rc, {}),
8373
+ startIcon: /* @__PURE__ */ E(tc, {}),
8396
8374
  onClick: k,
8397
8375
  children: g
8398
8376
  }
8399
8377
  ) }) })
8400
8378
  ] });
8401
8379
  };
8402
- function mu(e) {
8380
+ function pu(e) {
8403
8381
  return e ? typeof e == "object" && ("xs" in e || "sm" in e || "md" in e) ? e : { xs: e } : { xs: 12 };
8404
8382
  }
8405
8383
  const to = ({
@@ -8428,7 +8406,7 @@ const to = ({
8428
8406
  const y = r[u.component] ?? r.Text;
8429
8407
  if (!y)
8430
8408
  return null;
8431
- const m = n[u.name] ?? u.ui?.options ?? [], b = mu(u.colSpan);
8409
+ const m = n[u.name] ?? u.ui?.options ?? [], b = pu(u.colSpan);
8432
8410
  return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(He, { size: b, children: /* @__PURE__ */ E(
8433
8411
  y,
8434
8412
  {
@@ -8696,7 +8674,7 @@ const to = ({
8696
8674
  value: e.value ?? null,
8697
8675
  ...o
8698
8676
  }
8699
- ) }), hu = {
8677
+ ) }), mu = {
8700
8678
  // 标准大小写
8701
8679
  Hidden: ro,
8702
8680
  Text: fo,
@@ -8740,7 +8718,7 @@ const to = ({
8740
8718
  formlist: Tr
8741
8719
  };
8742
8720
  performance.mark("schemaform-start");
8743
- async function gu(e, t) {
8721
+ async function hu(e, t) {
8744
8722
  const r = e.ui?.optionRequest;
8745
8723
  if (!r)
8746
8724
  return null;
@@ -8750,7 +8728,7 @@ async function gu(e, t) {
8750
8728
  return e.ui?.options ?? [];
8751
8729
  }
8752
8730
  }
8753
- function yu(e, t) {
8731
+ function gu(e, t) {
8754
8732
  const [r, n] = Be({}), o = rt({}), i = rt(!1);
8755
8733
  return _e(() => {
8756
8734
  i.current = !1, o.current = {};
@@ -8768,14 +8746,13 @@ function yu(e, t) {
8768
8746
  const m = p.dependencies;
8769
8747
  if (!m || m.length === 0 ? i.current || (y = !0) : (m.some((h) => t[h] !== u[h]) || !i.current) && (y = !0), y)
8770
8748
  try {
8771
- const b = await gu(p, t);
8749
+ const b = await hu(p, t);
8772
8750
  if (!a) return;
8773
8751
  b !== null && n((h) => ({
8774
8752
  ...h,
8775
8753
  [p.name]: b
8776
8754
  }));
8777
- } catch (b) {
8778
- console.error(`Failed to load options for field ${String(p.name)}`, b);
8755
+ } catch {
8779
8756
  }
8780
8757
  }
8781
8758
  o.current = d, i.current = !0;
@@ -8784,7 +8761,7 @@ function yu(e, t) {
8784
8761
  };
8785
8762
  }, [e, t]), r;
8786
8763
  }
8787
- function bu(e, t) {
8764
+ function yu(e, t) {
8788
8765
  const {
8789
8766
  schema: r,
8790
8767
  defaultValues: n,
@@ -8798,18 +8775,18 @@ function bu(e, t) {
8798
8775
  spacing: y
8799
8776
  } = e, m = qe(() => {
8800
8777
  performance.mark("schema-parse-start");
8801
- const I = ji(r);
8778
+ const P = ji(r);
8802
8779
  return performance.mark("schema-parse-end"), performance.measure(
8803
8780
  "schema-parse",
8804
8781
  "schema-parse-start",
8805
8782
  "schema-parse-end"
8806
- ), I;
8783
+ ), P;
8807
8784
  }, [r]), b = rt(void 0);
8808
8785
  b.current === void 0 && (b.current = {
8809
8786
  ...m.defaultValues,
8810
8787
  ...n || {}
8811
8788
  });
8812
- const h = qe(() => ({ ...hu, ...d }), [d]), f = qe(() => Fi(m), [m]), g = bi({
8789
+ const h = qe(() => ({ ...mu, ...d }), [d]), f = qe(() => Fi(m), [m]), g = bi({
8813
8790
  defaultValues: b.current,
8814
8791
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8815
8792
  resolver: f,
@@ -8817,71 +8794,65 @@ function bu(e, t) {
8817
8794
  reValidateMode: "onBlur"
8818
8795
  }), C = qe(() => Di(m), [m]);
8819
8796
  _e(() => {
8820
- console.log("👀 watchFields:", C);
8821
8797
  }, [C]);
8822
8798
  const k = vi({
8823
8799
  control: g.control,
8824
8800
  name: C
8825
- }), P = qe(() => {
8826
- const I = {};
8801
+ }), I = qe(() => {
8802
+ const P = {};
8827
8803
  return Array.isArray(k) && C.forEach((c, T) => {
8828
- I[c] = k[T];
8829
- }), I;
8830
- }, [k, C]), $ = yu(m.allFields, P), S = rt({});
8804
+ P[c] = k[T];
8805
+ }), P;
8806
+ }, [k, C]), $ = gu(m.allFields, I), S = rt({});
8831
8807
  _e(() => {
8832
- const I = S.current;
8833
- if (Object.keys(I).length === 0) {
8834
- S.current = { ...P };
8808
+ const P = S.current;
8809
+ if (Object.keys(P).length === 0) {
8810
+ S.current = { ...I };
8835
8811
  return;
8836
8812
  }
8837
8813
  const c = {};
8838
8814
  let T = !1;
8839
8815
  for (const x of m.allFields)
8840
8816
  if (x.dependencies?.length && x.dependencies.some(
8841
- (_) => P[_] !== I[_]
8817
+ (M) => I[M] !== P[M]
8842
8818
  )) {
8843
- const _ = g.getValues(x.name);
8844
- _ != null && _ !== "" && (console.log(`🧹 Auto-resetting field ${String(x.name)} due to dependency change`), c[x.name] = null, T = !0);
8819
+ const M = g.getValues(x.name);
8820
+ M != null && M !== "" && (c[x.name] = null, T = !0);
8845
8821
  }
8846
- T && Object.entries(c).forEach(([x, M]) => {
8847
- g.setValue(x, M, {
8822
+ T && Object.entries(c).forEach(([x, N]) => {
8823
+ g.setValue(x, N, {
8848
8824
  shouldValidate: !0,
8849
8825
  shouldDirty: !0,
8850
8826
  shouldTouch: !0
8851
8827
  });
8852
- }), S.current = { ...P };
8853
- }, [P, m.allFields, g]), _e(() => {
8828
+ }), S.current = { ...I };
8829
+ }, [I, m.allFields, g]), _e(() => {
8854
8830
  i && i(g.getValues());
8855
- }, [P, i, g]);
8856
- const w = qe(() => m.allFields.filter((I) => I.compute).map((I) => ({
8857
- name: I.name,
8858
- expr: I.compute.expr,
8859
- dependencies: I.compute.dependencies || xo(I.compute.expr),
8860
- precision: I.compute.precision,
8861
- roundMode: I.compute.roundMode
8831
+ }, [I, i, g]);
8832
+ const w = qe(() => m.allFields.filter((P) => P.compute).map((P) => ({
8833
+ name: P.name,
8834
+ expr: P.compute.expr,
8835
+ dependencies: P.compute.dependencies || xo(P.compute.expr),
8836
+ precision: P.compute.precision,
8837
+ roundMode: P.compute.roundMode
8862
8838
  })), [m.allFields]), V = rt({});
8863
8839
  _e(() => {
8864
8840
  if (w.length === 0) return;
8865
- let I = !1;
8841
+ let P = !1;
8866
8842
  const c = {};
8867
- for (const { name: T, expr: x, dependencies: M, precision: _, roundMode: D } of w) {
8868
- const F = M.map((W) => `${W}:${P[W]}`).join("|"), q = V.current[T];
8869
- if (F !== q && console.log(`🧮 Compute triggered for ${T}:`, {
8870
- dependencies: M,
8871
- values: M.map((W) => P[W]),
8872
- depsSnapshot: F,
8873
- prevSnapshot: q
8874
- }), F === q)
8843
+ 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];
8845
+ if (F === U)
8875
8846
  continue;
8876
- if (!M.every((W) => Fr(P[W]))) {
8847
+ if (!N.every((L) => Fr(I[L]))) {
8877
8848
  V.current[T] = F;
8878
8849
  continue;
8879
8850
  }
8880
- const R = Co(x, P, M, _, D), z = g.getValues(T);
8851
+ const R = Co(x, I, N, M, D), z = g.getValues(T);
8881
8852
  R !== void 0 && R !== z && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
8882
- (typeof R != "number" || typeof z != "number" || Math.abs(R - z) > 1e-4) && (c[T] = R, I = !0), V.current[T] = F;
8853
+ (typeof R != "number" || typeof z != "number" || Math.abs(R - z) > 1e-4) && (c[T] = R, P = !0), V.current[T] = F;
8883
8854
  }
8884
- I && (console.log("🔄 Performing batch update via reset:", c), g.reset(
8855
+ P && g.reset(
8885
8856
  {
8886
8857
  ...g.getValues(),
8887
8858
  ...c
@@ -8899,17 +8870,17 @@ function bu(e, t) {
8899
8870
  // No, reset(values) sets both defaultValues and values to 'values'.
8900
8871
  // keepDirty: true means "if a field was dirty, keep it dirty".
8901
8872
  }
8902
- ));
8903
- }, [P, w, g]);
8904
- const U = ho(
8905
- async (I) => {
8873
+ );
8874
+ }, [I, w, g]);
8875
+ const G = ho(
8876
+ async (P) => {
8906
8877
  const c = g.getValues(), T = {};
8907
8878
  for (const x of m.allFields) {
8908
8879
  if (x.noSubmit)
8909
8880
  continue;
8910
- const M = x.name;
8911
- let _ = M in I ? I[M] : c[M];
8912
- x.transform ? T[M] = x.transform(_, c) : T[M] = _;
8881
+ const N = x.name;
8882
+ let M = N in P ? P[N] : c[N];
8883
+ x.transform ? T[N] = x.transform(M, c) : T[N] = M;
8913
8884
  }
8914
8885
  o && await o(T);
8915
8886
  },
@@ -8920,7 +8891,7 @@ function bu(e, t) {
8920
8891
  () => ({
8921
8892
  ...g,
8922
8893
  submit: async () => {
8923
- await g.handleSubmit(U)();
8894
+ await g.handleSubmit(G)();
8924
8895
  },
8925
8896
  getFormValues: () => {
8926
8897
  const c = g.getValues(), T = {};
@@ -8933,7 +8904,7 @@ function bu(e, t) {
8933
8904
  x !== void 0 && g.setValue(T, x);
8934
8905
  }
8935
8906
  }),
8936
- [g, m, U]
8907
+ [g, m, G]
8937
8908
  );
8938
8909
  const j = () => m.input.fields.flatMap((c, T) => {
8939
8910
  if (c.component === "Hidden")
@@ -8941,11 +8912,11 @@ function bu(e, t) {
8941
8912
  const x = [];
8942
8913
  return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${T}-newline`)), x.push(
8943
8914
  /* @__PURE__ */ E(
8944
- Yl,
8915
+ Ul,
8945
8916
  {
8946
8917
  field: c,
8947
8918
  index: T,
8948
- values: P,
8919
+ values: I,
8949
8920
  form: g,
8950
8921
  disabled: u,
8951
8922
  readOnly: l,
@@ -8956,13 +8927,13 @@ function bu(e, t) {
8956
8927
  `${String(c.name)}-${T}`
8957
8928
  )
8958
8929
  ), x;
8959
- }), L = y ?? r.layout?.spacing ?? 2;
8930
+ }), W = y ?? r.layout?.spacing ?? 2;
8960
8931
  return /* @__PURE__ */ E(Si, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8961
- a ? /* @__PURE__ */ E(Hl, { spacing: L, children: j() }) : /* @__PURE__ */ E(Kl, { spacing: L, children: j() }),
8932
+ a ? /* @__PURE__ */ E(Yl, { spacing: W, children: j() }) : /* @__PURE__ */ E(Hl, { spacing: W, children: j() }),
8962
8933
  p
8963
8934
  ] }) });
8964
8935
  }
8965
- const Nu = mo(bu);
8936
+ const _u = mo(yu);
8966
8937
  export {
8967
8938
  Mt as AutocompleteWidget,
8968
8939
  Fn as CheckboxWidget,
@@ -8971,33 +8942,33 @@ export {
8971
8942
  Wn as DATE_FORMAT,
8972
8943
  Gn as DateTimeWidget,
8973
8944
  Un as DateWidget,
8974
- Yl as FieldRenderer,
8945
+ Ul as FieldRenderer,
8975
8946
  Tr as FormListWidget,
8976
- Hl as GridLayout,
8947
+ Yl as GridLayout,
8977
8948
  to as GroupWidget,
8978
8949
  ro as HiddenWidget,
8979
8950
  no as NumberWidget,
8980
8951
  oo as PasswordWidget,
8981
8952
  so as RadioWidget,
8982
8953
  ao as RatingWidget,
8983
- Nu as SchemaForm,
8954
+ _u as SchemaForm,
8984
8955
  Mt as SelectWidget,
8985
8956
  lo as SliderWidget,
8986
- Kl as StackLayout,
8957
+ Hl as StackLayout,
8987
8958
  co as SwitchWidget,
8988
8959
  fo as TextWidget,
8989
8960
  uo as TextareaWidget,
8990
8961
  po as TimeWidget,
8991
8962
  Li as buildValibotSchema,
8992
8963
  ke as compactFieldStyles,
8993
- Iu as computeAllFieldStates,
8964
+ Pu as computeAllFieldStates,
8994
8965
  Ht as computeFieldState,
8995
8966
  Fi as createDynamicResolver,
8996
- hu as defaultWidgets,
8967
+ mu as defaultWidgets,
8997
8968
  Ve as evaluateCondition,
8998
8969
  nt as extractDependencies,
8999
- Mu as getDownstreamFields,
8970
+ Iu as getDownstreamFields,
9000
8971
  Di as getWatchFields,
9001
- _u as mergeDefaultValues,
8972
+ Mu as mergeDefaultValues,
9002
8973
  ji as parseSchema
9003
8974
  };