From e7806af73b42821e43dfe35335c9872dc2258425 Mon Sep 17 00:00:00 2001 From: firmansyah Date: Tue, 19 May 2026 15:12:46 +0700 Subject: [PATCH] feat: input virtual add header request api --- dist/index.js | 2160 +++++++++++++++++++++++++------------------------ 1 file changed, 1082 insertions(+), 1078 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4fe201b..42fcb89 100644 --- a/dist/index.js +++ b/dist/index.js @@ -70,10 +70,10 @@ function xu() { Ne.unshift("Warning: " + U), Function.prototype.apply.call(console[R], console, Ne); } } - var v = !1, E = !1, w = !1, k = !1, L = !1, z; + var v = !1, E = !1, w = !1, N = !1, L = !1, z; z = Symbol.for("react.module.reference"); - function W(R) { - return !!(typeof R == "string" || typeof R == "function" || R === r || R === s || L || R === i || R === u || R === d || k || R === m || v || E || w || typeof R == "object" && R !== null && (R.$$typeof === b || R.$$typeof === h || R.$$typeof === a || R.$$typeof === l || R.$$typeof === c || // This needs to include all possible module reference object + function H(R) { + return !!(typeof R == "string" || typeof R == "function" || R === r || R === s || L || R === i || R === u || R === d || N || R === m || v || E || w || typeof R == "object" && R !== null && (R.$$typeof === b || R.$$typeof === h || R.$$typeof === a || R.$$typeof === l || R.$$typeof === c || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. @@ -89,7 +89,7 @@ function xu() { function p(R) { return R.displayName || "Context"; } - function A(R) { + function _(R) { if (R == null) return null; if (typeof R.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function") @@ -122,11 +122,11 @@ function xu() { return F(R, R.render, "ForwardRef"); case h: var ce = R.displayName || null; - return ce !== null ? ce : A(R.type) || "Memo"; + return ce !== null ? ce : _(R.type) || "Memo"; case b: { var Te = R, Ne = Te._payload, he = Te._init; try { - return A(he(Ne)); + return _(he(Ne)); } catch { return null; } @@ -134,14 +134,14 @@ function xu() { } return null; } - var P = Object.assign, D = 0, j, H, te, G, N, I, X; + var A = Object.assign, M = 0, j, q, te, K, I, D, W; function B() { } B.__reactDisabledLog = !0; - function Y() { + function X() { { - if (D === 0) { - j = console.log, H = console.info, te = console.warn, G = console.error, N = console.group, I = console.groupCollapsed, X = console.groupEnd; + if (M === 0) { + j = console.log, q = console.info, te = console.warn, K = console.error, I = console.group, D = console.groupCollapsed, W = console.groupEnd; var R = { configurable: !0, enumerable: !0, @@ -158,46 +158,46 @@ function xu() { groupEnd: R }); } - D++; + M++; } } - function q() { + function Q() { { - if (D--, D === 0) { + if (M--, M === 0) { var R = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { - log: P({}, R, { + log: A({}, R, { value: j }), - info: P({}, R, { - value: H + info: A({}, R, { + value: q }), - warn: P({}, R, { + warn: A({}, R, { value: te }), - error: P({}, R, { - value: G + error: A({}, R, { + value: K }), - group: P({}, R, { - value: N - }), - groupCollapsed: P({}, R, { + group: A({}, R, { value: I }), - groupEnd: P({}, R, { - value: X + groupCollapsed: A({}, R, { + value: D + }), + groupEnd: A({}, R, { + value: W }) }); } - D < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + M < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } - var Q = S.ReactCurrentDispatcher, J; - function K(R, U, ee) { + var G = S.ReactCurrentDispatcher, J; + function Y(R, U, ee) { { if (J === void 0) try { @@ -215,7 +215,7 @@ function xu() { var ne = typeof WeakMap == "function" ? WeakMap : Map; V = new ne(); } - function _(R, U) { + function P(R, U) { if (!R || Z) return ""; { @@ -228,7 +228,7 @@ function xu() { var Te = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var Ne; - Ne = Q.current, Q.current = null, Y(); + Ne = G.current, G.current = null, X(); try { if (U) { var he = function() { @@ -281,13 +281,13 @@ function xu() { } } } finally { - Z = !1, Q.current = Ne, q(), Error.prepareStackTrace = Te; + Z = !1, G.current = Ne, Q(), Error.prepareStackTrace = Te; } - var Sn = R ? R.displayName || R.name : "", Jt = Sn ? K(Sn) : ""; + var Sn = R ? R.displayName || R.name : "", Jt = Sn ? Y(Sn) : ""; return typeof R == "function" && V.set(R, Jt), Jt; } function de(R, U, ee) { - return _(R, !1); + return P(R, !1); } function re(R) { var U = R.prototype; @@ -297,14 +297,14 @@ function xu() { if (R == null) return ""; if (typeof R == "function") - return _(R, re(R)); + return P(R, re(R)); if (typeof R == "string") - return K(R); + return Y(R); switch (R) { case u: - return K("Suspense"); + return Y("Suspense"); case d: - return K("SuspenseList"); + return Y("SuspenseList"); } if (typeof R == "object") switch (R.$$typeof) { @@ -483,7 +483,7 @@ function xu() { function Wn() { { if (Vn.current) { - var R = A(Vn.current.type); + var R = _(Vn.current.type); if (R) return ` @@ -518,7 +518,7 @@ Check the top-level render call using <` + ee + ">."); return; fe[ee] = !0; var ce = ""; - R && R._owner && R._owner !== Vn.current && (ce = " It was passed a child from " + A(R._owner.type) + "."), Mt(R), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ee, ce), Mt(null); + R && R._owner && R._owner !== Vn.current && (ce = " It was passed a child from " + _(R._owner.type) + "."), Mt(R), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ee, ce), Mt(null); } } function Hn(R, U) { @@ -555,11 +555,11 @@ Check the top-level render call using <` + ee + ">."); else return; if (ee) { - var ce = A(U); + var ce = _(U); at(ee, R.props, "prop", ce, R); } else if (U.PropTypes !== void 0 && !vn) { vn = !0; - var Te = A(U); + var Te = _(U); O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Te || "Unknown"); } typeof U.getDefaultProps == "function" && !U.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); @@ -580,14 +580,14 @@ Check the top-level render call using <` + ee + ">."); var Ss = {}; function Ts(R, U, ee, ce, Te, Ne) { { - var he = W(R); + var he = H(R); if (!he) { var pe = ""; (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (pe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var tt = se(); tt ? pe += tt : pe += Wn(); var ze; - R === null ? ze = "null" : le(R) ? ze = "array" : R !== void 0 && R.$$typeof === t ? (ze = "<" + (A(R.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof R, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, pe); + R === null ? ze = "null" : le(R) ? ze = "array" : R !== void 0 && R.$$typeof === t ? (ze = "<" + (_(R.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof R, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, pe); } var qe = Un(R, U, ee, Te, Ne); if (qe == null) @@ -606,7 +606,7 @@ Check the top-level render call using <` + ee + ">."); Hn(ft, R); } if ($e.call(U, "key")) { - var Jt = A(R), ot = Object.keys(U).filter(function(fu) { + var Jt = _(R), ot = Object.keys(U).filter(function(fu) { return fu !== "key"; }), Go = ot.length > 0 ? "{key: someKey, " + ot.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Ss[Jt + Go]) { @@ -633,7 +633,7 @@ React keys must be passed directly to JSX without using spread: }()), Yn; } process.env.NODE_ENV === "production" ? mi.exports = Tu() : mi.exports = xu(); -var $ = mi.exports; +var k = mi.exports; const ur = { black: "#000", white: "#fff" @@ -888,26 +888,26 @@ function Uu(e) { return ul(zr("", null, null, null, [""], e = cl(e), 0, [0], e)); } function zr(e, t, n, r, i, s, a, l, c) { - for (var u = 0, d = 0, h = a, b = 0, m = 0, g = 0, f = 1, y = 1, S = 1, O = 0, T = "", v = i, E = s, w = r, k = T; y; ) + for (var u = 0, d = 0, h = a, b = 0, m = 0, g = 0, f = 1, y = 1, S = 1, O = 0, T = "", v = i, E = s, w = r, N = T; y; ) switch (g = O, O = dt()) { case 40: - if (g != 108 && Xe(k, h - 1) == 58) { - hi(k += ve(Vr(O), "&", "&\f"), "&\f") != -1 && (S = -1); + if (g != 108 && Xe(N, h - 1) == 58) { + hi(N += ve(Vr(O), "&", "&\f"), "&\f") != -1 && (S = -1); break; } case 34: case 39: case 91: - k += Vr(O); + N += Vr(O); break; case 9: case 10: case 13: case 32: - k += ju(g); + N += ju(g); break; case 92: - k += Lu(Ur() - 1, 7); + N += Lu(Ur() - 1, 7); continue; case 47: switch (At()) { @@ -916,11 +916,11 @@ function zr(e, t, n, r, i, s, a, l, c) { Nr(Vu(Bu(dt(), Ur()), t, n), c); break; default: - k += "/"; + N += "/"; } break; case 123 * f: - l[u++] = Ct(k) * S; + l[u++] = Ct(N) * S; case 125 * f: case 59: case 0: @@ -929,16 +929,16 @@ function zr(e, t, n, r, i, s, a, l, c) { case 125: y = 0; case 59 + d: - S == -1 && (k = ve(k, /\f/g, "")), m > 0 && Ct(k) - h && Nr(m > 32 ? Cs(k + ";", r, n, h - 1) : Cs(ve(k, " ", "") + ";", r, n, h - 2), c); + S == -1 && (N = ve(N, /\f/g, "")), m > 0 && Ct(N) - h && Nr(m > 32 ? Cs(N + ";", r, n, h - 1) : Cs(ve(N, " ", "") + ";", r, n, h - 2), c); break; case 59: - k += ";"; + N += ";"; default: - if (Nr(w = ws(k, t, n, u, d, i, l, T, v = [], E = [], h), s), O === 123) + if (Nr(w = ws(N, t, n, u, d, i, l, T, v = [], E = [], h), s), O === 123) if (d === 0) - zr(k, t, w, w, v, s, h, l, E); + zr(N, t, w, w, v, s, h, l, E); else - switch (b === 99 && Xe(k, 3) === 110 ? 100 : b) { + switch (b === 99 && Xe(N, 3) === 110 ? 100 : b) { case 100: case 108: case 109: @@ -946,13 +946,13 @@ function zr(e, t, n, r, i, s, a, l, c) { zr(e, w, w, r && Nr(ws(e, w, w, 0, 0, i, l, T, i, v = [], h), E), i, E, h, l, r ? v : E); break; default: - zr(k, w, w, w, [""], E, 0, l, E); + zr(N, w, w, w, [""], E, 0, l, E); } } - u = d = m = 0, f = S = 1, T = k = "", h = a; + u = d = m = 0, f = S = 1, T = N = "", h = a; break; case 58: - h = 1 + Ct(k), m = g; + h = 1 + Ct(N), m = g; default: if (f < 1) { if (O == 123) @@ -960,18 +960,18 @@ function zr(e, t, n, r, i, s, a, l, c) { else if (O == 125 && f++ == 0 && Du() == 125) continue; } - switch (k += mo(O), O * f) { + switch (N += mo(O), O * f) { case 38: - S = d > 0 ? 1 : (k += "\f", -1); + S = d > 0 ? 1 : (N += "\f", -1); break; case 44: - l[u++] = (Ct(k) - 1) * S, S = 1; + l[u++] = (Ct(N) - 1) * S, S = 1; break; case 64: - At() === 45 && (k += Vr(dt())), b = At(), d = h = Ct(T = k += Fu(Ur())), O++; + At() === 45 && (N += Vr(dt())), b = At(), d = h = Ct(T = N += Fu(Ur())), O++; break; case 45: - g === 45 && Ct(k) == 2 && (f = 0); + g === 45 && Ct(N) == 2 && (f = 0); } } return s; @@ -1350,16 +1350,16 @@ var As; function td() { return As || (As = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, O = e ? Symbol.for("react.scope") : 60119; - function T(_) { - return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - _ === r || _ === u || _ === s || _ === i || _ === h || _ === b || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === m || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === y || _.$$typeof === S || _.$$typeof === O || _.$$typeof === f); + function T(P) { + return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + P === r || P === u || P === s || P === i || P === h || P === b || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === m || P.$$typeof === a || P.$$typeof === l || P.$$typeof === d || P.$$typeof === y || P.$$typeof === S || P.$$typeof === O || P.$$typeof === f); } - function v(_) { - if (typeof _ == "object" && _ !== null) { - var de = _.$$typeof; + function v(P) { + if (typeof P == "object" && P !== null) { + var de = P.$$typeof; switch (de) { case t: - var re = _.type; + var re = P.type; switch (re) { case c: case u: @@ -1386,47 +1386,47 @@ function td() { } } } - var E = c, w = u, k = l, L = a, z = t, W = d, F = r, p = g, A = m, P = n, D = s, j = i, H = h, te = !1; - function G(_) { - return te || (te = !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.")), N(_) || v(_) === c; + var E = c, w = u, N = l, L = a, z = t, H = d, F = r, p = g, _ = m, A = n, M = s, j = i, q = h, te = !1; + function K(P) { + return te || (te = !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.")), I(P) || v(P) === c; } - function N(_) { - return v(_) === u; + function I(P) { + return v(P) === u; } - function I(_) { - return v(_) === l; + function D(P) { + return v(P) === l; } - function X(_) { - return v(_) === a; + function W(P) { + return v(P) === a; } - function B(_) { - return typeof _ == "object" && _ !== null && _.$$typeof === t; + function B(P) { + return typeof P == "object" && P !== null && P.$$typeof === t; } - function Y(_) { - return v(_) === d; + function X(P) { + return v(P) === d; } - function q(_) { - return v(_) === r; + function Q(P) { + return v(P) === r; } - function Q(_) { - return v(_) === g; + function G(P) { + return v(P) === g; } - function J(_) { - return v(_) === m; + function J(P) { + return v(P) === m; } - function K(_) { - return v(_) === n; + function Y(P) { + return v(P) === n; } - function Z(_) { - return v(_) === s; + function Z(P) { + return v(P) === s; } - function V(_) { - return v(_) === i; + function V(P) { + return v(P) === i; } - function ne(_) { - return v(_) === h; + function ne(P) { + return v(P) === h; } - Re.AsyncMode = E, Re.ConcurrentMode = w, Re.ContextConsumer = k, Re.ContextProvider = L, Re.Element = z, Re.ForwardRef = W, Re.Fragment = F, Re.Lazy = p, Re.Memo = A, Re.Portal = P, Re.Profiler = D, Re.StrictMode = j, Re.Suspense = H, Re.isAsyncMode = G, Re.isConcurrentMode = N, Re.isContextConsumer = I, Re.isContextProvider = X, Re.isElement = B, Re.isForwardRef = Y, Re.isFragment = q, Re.isLazy = Q, Re.isMemo = J, Re.isPortal = K, Re.isProfiler = Z, Re.isStrictMode = V, Re.isSuspense = ne, Re.isValidElementType = T, Re.typeOf = v; + Re.AsyncMode = E, Re.ConcurrentMode = w, Re.ContextConsumer = N, Re.ContextProvider = L, Re.Element = z, Re.ForwardRef = H, Re.Fragment = F, Re.Lazy = p, Re.Memo = _, Re.Portal = A, Re.Profiler = M, Re.StrictMode = j, Re.Suspense = q, Re.isAsyncMode = K, Re.isConcurrentMode = I, Re.isContextConsumer = D, Re.isContextProvider = W, Re.isElement = B, Re.isForwardRef = X, Re.isFragment = Q, Re.isLazy = G, Re.isMemo = J, Re.isPortal = Y, Re.isProfiler = Z, Re.isStrictMode = V, Re.isSuspense = ne, Re.isValidElementType = T, Re.typeOf = v; }()), Re; } process.env.NODE_ENV === "production" ? gi.exports = ed() : gi.exports = td(); @@ -1810,21 +1810,21 @@ var gd = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def var T = u && y.as || i, v = "", E = [], w = y; if (y.theme == null) { w = {}; - for (var k in y) - w[k] = y[k]; + for (var N in y) + w[N] = y[N]; w.theme = x.useContext(go); } typeof y.className == "string" ? v = hl(S.registered, E, y.className) : y.className != null && (v = y.className + " "); var L = gr(h.concat(E), S.registered, w); v += S.key + "-" + L.name, a !== void 0 && (v += " " + a); - var z = u && l === void 0 ? Ds(T) : c, W = {}; + var z = u && l === void 0 ? Ds(T) : c, H = {}; for (var F in y) - u && F === "as" || z(F) && (W[F] = y[F]); - return W.className = v, O && (W.ref = O), /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(Sd, { + u && F === "as" || z(F) && (H[F] = y[F]); + return H.className = v, O && (H.ref = O), /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(Sd, { cache: S, serialized: L, isStringTag: typeof T == "string" - }), /* @__PURE__ */ x.createElement(T, W)); + }), /* @__PURE__ */ x.createElement(T, H)); }); return f.displayName = s !== void 0 ? s : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = i, f.__emotion_styles = h, f.__emotion_forwardProp = l, Object.defineProperty(f, "toString", { value: function() { @@ -2065,16 +2065,16 @@ var Bs; function Od() { return Bs || (Bs = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, O = e ? Symbol.for("react.scope") : 60119; - function T(_) { - return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - _ === r || _ === u || _ === s || _ === i || _ === h || _ === b || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === m || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === y || _.$$typeof === S || _.$$typeof === O || _.$$typeof === f); + function T(P) { + return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + P === r || P === u || P === s || P === i || P === h || P === b || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === m || P.$$typeof === a || P.$$typeof === l || P.$$typeof === d || P.$$typeof === y || P.$$typeof === S || P.$$typeof === O || P.$$typeof === f); } - function v(_) { - if (typeof _ == "object" && _ !== null) { - var de = _.$$typeof; + function v(P) { + if (typeof P == "object" && P !== null) { + var de = P.$$typeof; switch (de) { case t: - var re = _.type; + var re = P.type; switch (re) { case c: case u: @@ -2101,47 +2101,47 @@ function Od() { } } } - var E = c, w = u, k = l, L = a, z = t, W = d, F = r, p = g, A = m, P = n, D = s, j = i, H = h, te = !1; - function G(_) { - return te || (te = !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.")), N(_) || v(_) === c; + var E = c, w = u, N = l, L = a, z = t, H = d, F = r, p = g, _ = m, A = n, M = s, j = i, q = h, te = !1; + function K(P) { + return te || (te = !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.")), I(P) || v(P) === c; } - function N(_) { - return v(_) === u; + function I(P) { + return v(P) === u; } - function I(_) { - return v(_) === l; + function D(P) { + return v(P) === l; } - function X(_) { - return v(_) === a; + function W(P) { + return v(P) === a; } - function B(_) { - return typeof _ == "object" && _ !== null && _.$$typeof === t; + function B(P) { + return typeof P == "object" && P !== null && P.$$typeof === t; } - function Y(_) { - return v(_) === d; + function X(P) { + return v(P) === d; } - function q(_) { - return v(_) === r; + function Q(P) { + return v(P) === r; } - function Q(_) { - return v(_) === g; + function G(P) { + return v(P) === g; } - function J(_) { - return v(_) === m; + function J(P) { + return v(P) === m; } - function K(_) { - return v(_) === n; + function Y(P) { + return v(P) === n; } - function Z(_) { - return v(_) === s; + function Z(P) { + return v(P) === s; } - function V(_) { - return v(_) === i; + function V(P) { + return v(P) === i; } - function ne(_) { - return v(_) === h; + function ne(P) { + return v(P) === h; } - we.AsyncMode = E, we.ConcurrentMode = w, we.ContextConsumer = k, we.ContextProvider = L, we.Element = z, we.ForwardRef = W, we.Fragment = F, we.Lazy = p, we.Memo = A, we.Portal = P, we.Profiler = D, we.StrictMode = j, we.Suspense = H, we.isAsyncMode = G, we.isConcurrentMode = N, we.isContextConsumer = I, we.isContextProvider = X, we.isElement = B, we.isForwardRef = Y, we.isFragment = q, we.isLazy = Q, we.isMemo = J, we.isPortal = K, we.isProfiler = Z, we.isStrictMode = V, we.isSuspense = ne, we.isValidElementType = T, we.typeOf = v; + we.AsyncMode = E, we.ConcurrentMode = w, we.ContextConsumer = N, we.ContextProvider = L, we.Element = z, we.ForwardRef = H, we.Fragment = F, we.Lazy = p, we.Memo = _, we.Portal = A, we.Profiler = M, we.StrictMode = j, we.Suspense = q, we.isAsyncMode = K, we.isConcurrentMode = I, we.isContextConsumer = D, we.isContextProvider = W, we.isElement = B, we.isForwardRef = X, we.isFragment = Q, we.isLazy = G, we.isMemo = J, we.isPortal = Y, we.isProfiler = Z, we.isStrictMode = V, we.isSuspense = ne, we.isValidElementType = T, we.typeOf = v; }()), we; } var Fs; @@ -2278,10 +2278,10 @@ function Pd() { } return Zo = function(l, c) { var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator"; - function h(N) { - var I = N && (u && N[u] || N[d]); - if (typeof I == "function") - return I; + function h(I) { + var D = I && (u && I[u] || I[d]); + if (typeof D == "function") + return D; } var b = "<>", m = { array: S("array"), @@ -2297,241 +2297,241 @@ function Pd() { element: v(), elementType: E(), instanceOf: w, - node: W(), + node: H(), objectOf: L, - oneOf: k, + oneOf: N, oneOfType: z, shape: p, - exact: A + exact: _ }; - function g(N, I) { - return N === I ? N !== 0 || 1 / N === 1 / I : N !== N && I !== I; + function g(I, D) { + return I === D ? I !== 0 || 1 / I === 1 / D : I !== I && D !== D; } - function f(N, I) { - this.message = N, this.data = I && typeof I == "object" ? I : {}, this.stack = ""; + function f(I, D) { + this.message = I, this.data = D && typeof D == "object" ? D : {}, this.stack = ""; } f.prototype = Error.prototype; - function y(N) { + function y(I) { if (process.env.NODE_ENV !== "production") - var I = {}, X = 0; - function B(q, Q, J, K, Z, V, ne) { - if (K = K || b, V = V || J, ne !== n) { + var D = {}, W = 0; + function B(Q, G, J, Y, Z, V, ne) { + if (Y = Y || b, V = V || J, ne !== n) { if (c) { - var _ = new Error( + var P = new Error( "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" ); - throw _.name = "Invariant Violation", _; + throw P.name = "Invariant Violation", P; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var de = K + ":" + J; - !I[de] && // Avoid spamming the console because they are often not actionable except for lib authors - X < 3 && (s( - "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + K + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." - ), I[de] = !0, X++); + var de = Y + ":" + J; + !D[de] && // Avoid spamming the console because they are often not actionable except for lib authors + W < 3 && (s( + "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + Y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." + ), D[de] = !0, W++); } } - return Q[J] == null ? q ? Q[J] === null ? new f("The " + Z + " `" + V + "` is marked as required " + ("in `" + K + "`, but its value is `null`.")) : new f("The " + Z + " `" + V + "` is marked as required in " + ("`" + K + "`, but its value is `undefined`.")) : null : N(Q, J, K, Z, V); + return G[J] == null ? Q ? G[J] === null ? new f("The " + Z + " `" + V + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new f("The " + Z + " `" + V + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : I(G, J, Y, Z, V); } - var Y = B.bind(null, !1); - return Y.isRequired = B.bind(null, !0), Y; + var X = B.bind(null, !1); + return X.isRequired = B.bind(null, !0), X; } - function S(N) { - function I(X, B, Y, q, Q, J) { - var K = X[B], Z = j(K); - if (Z !== N) { - var V = H(K); + function S(I) { + function D(W, B, X, Q, G, J) { + var Y = W[B], Z = j(Y); + if (Z !== I) { + var V = q(Y); return new f( - "Invalid " + q + " `" + Q + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + N + "`."), - { expectedType: N } + "Invalid " + Q + " `" + G + "` of type " + ("`" + V + "` supplied to `" + X + "`, expected ") + ("`" + I + "`."), + { expectedType: I } ); } return null; } - return y(I); + return y(D); } function O() { return y(a); } - function T(N) { - function I(X, B, Y, q, Q) { - if (typeof N != "function") - return new f("Property `" + Q + "` of component `" + Y + "` has invalid PropType notation inside arrayOf."); - var J = X[B]; + function T(I) { + function D(W, B, X, Q, G) { + if (typeof I != "function") + return new f("Property `" + G + "` of component `" + X + "` has invalid PropType notation inside arrayOf."); + var J = W[B]; if (!Array.isArray(J)) { - var K = j(J); - return new f("Invalid " + q + " `" + Q + "` of type " + ("`" + K + "` supplied to `" + Y + "`, expected an array.")); + var Y = j(J); + return new f("Invalid " + Q + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + X + "`, expected an array.")); } for (var Z = 0; Z < J.length; Z++) { - var V = N(J, Z, Y, q, Q + "[" + Z + "]", n); + var V = I(J, Z, X, Q, G + "[" + Z + "]", n); if (V instanceof Error) return V; } return null; } - return y(I); + return y(D); } function v() { - function N(I, X, B, Y, q) { - var Q = I[X]; - if (!l(Q)) { - var J = j(Q); - return new f("Invalid " + Y + " `" + q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement.")); - } - return null; - } - return y(N); - } - function E() { - function N(I, X, B, Y, q) { - var Q = I[X]; - if (!e.isValidElementType(Q)) { - var J = j(Q); - return new f("Invalid " + Y + " `" + q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type.")); - } - return null; - } - return y(N); - } - function w(N) { - function I(X, B, Y, q, Q) { - if (!(X[B] instanceof N)) { - var J = N.name || b, K = G(X[B]); - return new f("Invalid " + q + " `" + Q + "` of type " + ("`" + K + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`.")); + function I(D, W, B, X, Q) { + var G = D[W]; + if (!l(G)) { + var J = j(G); + return new f("Invalid " + X + " `" + Q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement.")); } return null; } return y(I); } - function k(N) { - if (!Array.isArray(N)) + function E() { + function I(D, W, B, X, Q) { + var G = D[W]; + if (!e.isValidElementType(G)) { + var J = j(G); + return new f("Invalid " + X + " `" + Q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type.")); + } + return null; + } + return y(I); + } + function w(I) { + function D(W, B, X, Q, G) { + if (!(W[B] instanceof I)) { + var J = I.name || b, Y = K(W[B]); + return new f("Invalid " + Q + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + X + "`, expected ") + ("instance of `" + J + "`.")); + } + return null; + } + return y(D); + } + function N(I) { + if (!Array.isArray(I)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s( "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])." ) : s("Invalid argument supplied to oneOf, expected an array.")), a; - function I(X, B, Y, q, Q) { - for (var J = X[B], K = 0; K < N.length; K++) - if (g(J, N[K])) + function D(W, B, X, Q, G) { + for (var J = W[B], Y = 0; Y < I.length; Y++) + if (g(J, I[Y])) return null; - var Z = JSON.stringify(N, function(ne, _) { - var de = H(_); - return de === "symbol" ? String(_) : _; + var Z = JSON.stringify(I, function(ne, P) { + var de = q(P); + return de === "symbol" ? String(P) : P; }); - return new f("Invalid " + q + " `" + Q + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + Z + ".")); + return new f("Invalid " + Q + " `" + G + "` of value `" + String(J) + "` " + ("supplied to `" + X + "`, expected one of " + Z + ".")); } - return y(I); + return y(D); } - function L(N) { - function I(X, B, Y, q, Q) { - if (typeof N != "function") - return new f("Property `" + Q + "` of component `" + Y + "` has invalid PropType notation inside objectOf."); - var J = X[B], K = j(J); - if (K !== "object") - return new f("Invalid " + q + " `" + Q + "` of type " + ("`" + K + "` supplied to `" + Y + "`, expected an object.")); + function L(I) { + function D(W, B, X, Q, G) { + if (typeof I != "function") + return new f("Property `" + G + "` of component `" + X + "` has invalid PropType notation inside objectOf."); + var J = W[B], Y = j(J); + if (Y !== "object") + return new f("Invalid " + Q + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + X + "`, expected an object.")); for (var Z in J) if (r(J, Z)) { - var V = N(J, Z, Y, q, Q + "." + Z, n); + var V = I(J, Z, X, Q, G + "." + Z, n); if (V instanceof Error) return V; } return null; } - return y(I); + return y(D); } - function z(N) { - if (!Array.isArray(N)) + function z(I) { + if (!Array.isArray(I)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a; - for (var I = 0; I < N.length; I++) { - var X = N[I]; - if (typeof X != "function") + for (var D = 0; D < I.length; D++) { + var W = I[D]; + if (typeof W != "function") return s( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(X) + " at index " + I + "." + "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(W) + " at index " + D + "." ), a; } - function B(Y, q, Q, J, K) { - for (var Z = [], V = 0; V < N.length; V++) { - var ne = N[V], _ = ne(Y, q, Q, J, K, n); - if (_ == null) + function B(X, Q, G, J, Y) { + for (var Z = [], V = 0; V < I.length; V++) { + var ne = I[V], P = ne(X, Q, G, J, Y, n); + if (P == null) return null; - _.data && r(_.data, "expectedType") && Z.push(_.data.expectedType); + P.data && r(P.data, "expectedType") && Z.push(P.data.expectedType); } var de = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : ""; - return new f("Invalid " + J + " `" + K + "` supplied to " + ("`" + Q + "`" + de + ".")); + return new f("Invalid " + J + " `" + Y + "` supplied to " + ("`" + G + "`" + de + ".")); } return y(B); } - function W() { - function N(I, X, B, Y, q) { - return P(I[X]) ? null : new f("Invalid " + Y + " `" + q + "` supplied to " + ("`" + B + "`, expected a ReactNode.")); + function H() { + function I(D, W, B, X, Q) { + return A(D[W]) ? null : new f("Invalid " + X + " `" + Q + "` supplied to " + ("`" + B + "`, expected a ReactNode.")); } - return y(N); + return y(I); } - function F(N, I, X, B, Y) { + function F(I, D, W, B, X) { return new f( - (N || "React class") + ": " + I + " type `" + X + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`." + (I || "React class") + ": " + D + " type `" + W + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + X + "`." ); } - function p(N) { - function I(X, B, Y, q, Q) { - var J = X[B], K = j(J); - if (K !== "object") - return new f("Invalid " + q + " `" + Q + "` of type `" + K + "` " + ("supplied to `" + Y + "`, expected `object`.")); - for (var Z in N) { - var V = N[Z]; + function p(I) { + function D(W, B, X, Q, G) { + var J = W[B], Y = j(J); + if (Y !== "object") + return new f("Invalid " + Q + " `" + G + "` of type `" + Y + "` " + ("supplied to `" + X + "`, expected `object`.")); + for (var Z in I) { + var V = I[Z]; if (typeof V != "function") - return F(Y, q, Q, Z, H(V)); - var ne = V(J, Z, Y, q, Q + "." + Z, n); + return F(X, Q, G, Z, q(V)); + var ne = V(J, Z, X, Q, G + "." + Z, n); if (ne) return ne; } return null; } - return y(I); + return y(D); } - function A(N) { - function I(X, B, Y, q, Q) { - var J = X[B], K = j(J); - if (K !== "object") - return new f("Invalid " + q + " `" + Q + "` of type `" + K + "` " + ("supplied to `" + Y + "`, expected `object`.")); - var Z = t({}, X[B], N); + function _(I) { + function D(W, B, X, Q, G) { + var J = W[B], Y = j(J); + if (Y !== "object") + return new f("Invalid " + Q + " `" + G + "` of type `" + Y + "` " + ("supplied to `" + X + "`, expected `object`.")); + var Z = t({}, W[B], I); for (var V in Z) { - var ne = N[V]; - if (r(N, V) && typeof ne != "function") - return F(Y, q, Q, V, H(ne)); + var ne = I[V]; + if (r(I, V) && typeof ne != "function") + return F(X, Q, G, V, q(ne)); if (!ne) return new f( - "Invalid " + q + " `" + Q + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(X[B], null, " ") + ` -Valid keys: ` + JSON.stringify(Object.keys(N), null, " ") + "Invalid " + Q + " `" + G + "` key `" + V + "` supplied to `" + X + "`.\nBad object: " + JSON.stringify(W[B], null, " ") + ` +Valid keys: ` + JSON.stringify(Object.keys(I), null, " ") ); - var _ = ne(J, V, Y, q, Q + "." + V, n); - if (_) - return _; + var P = ne(J, V, X, Q, G + "." + V, n); + if (P) + return P; } return null; } - return y(I); + return y(D); } - function P(N) { - switch (typeof N) { + function A(I) { + switch (typeof I) { case "number": case "string": case "undefined": return !0; case "boolean": - return !N; + return !I; case "object": - if (Array.isArray(N)) - return N.every(P); - if (N === null || l(N)) + if (Array.isArray(I)) + return I.every(A); + if (I === null || l(I)) return !0; - var I = h(N); - if (I) { - var X = I.call(N), B; - if (I !== N.entries) { - for (; !(B = X.next()).done; ) - if (!P(B.value)) + var D = h(I); + if (D) { + var W = D.call(I), B; + if (D !== I.entries) { + for (; !(B = W.next()).done; ) + if (!A(B.value)) return !1; } else - for (; !(B = X.next()).done; ) { - var Y = B.value; - if (Y && !P(Y[1])) + for (; !(B = W.next()).done; ) { + var X = B.value; + if (X && !A(X[1])) return !1; } } else @@ -2541,41 +2541,41 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ") return !1; } } - function D(N, I) { - return N === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1; + function M(I, D) { + return I === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1; } - function j(N) { - var I = typeof N; - return Array.isArray(N) ? "array" : N instanceof RegExp ? "object" : D(I, N) ? "symbol" : I; + function j(I) { + var D = typeof I; + return Array.isArray(I) ? "array" : I instanceof RegExp ? "object" : M(D, I) ? "symbol" : D; } - function H(N) { - if (typeof N > "u" || N === null) - return "" + N; - var I = j(N); - if (I === "object") { - if (N instanceof Date) + function q(I) { + if (typeof I > "u" || I === null) + return "" + I; + var D = j(I); + if (D === "object") { + if (I instanceof Date) return "date"; - if (N instanceof RegExp) + if (I instanceof RegExp) return "regexp"; } - return I; + return D; } - function te(N) { - var I = H(N); - switch (I) { + function te(I) { + var D = q(I); + switch (D) { case "array": case "object": - return "an " + I; + return "an " + D; case "boolean": case "date": case "regexp": - return "a " + I; + return "a " + D; default: - return I; + return D; } } - function G(N) { - return !N.constructor || !N.constructor.name ? b : N.constructor.name; + function K(I) { + return !I.constructor || !I.constructor.name ? b : I.constructor.name; } return m.checkPropTypes = i, m.resetWarningCache = i.resetWarningCache, m.PropTypes = m, m; }, Zo; @@ -2643,7 +2643,7 @@ function Tl(e) { styles: t, defaultTheme: n = {} } = e, r = typeof t == "function" ? (i) => t(kd(i) ? n : i) : t; - return /* @__PURE__ */ $.jsx(yd, { + return /* @__PURE__ */ k.jsx(yd, { styles: r }); } @@ -3747,7 +3747,7 @@ function Cl({ }) { const r = wl(n), i = t && r[t] || r; let s = typeof e == "function" ? e(i) : e; - return i.modularCssLayers && (Array.isArray(s) ? s = s.map((a) => ti(typeof a == "function" ? a(i) : a)) : s = ti(s)), /* @__PURE__ */ $.jsx(Tl, { + return i.modularCssLayers && (Array.isArray(s) ? s = s.map((a) => ti(typeof a == "function" ? a(i) : a)) : s = ti(s)), /* @__PURE__ */ k.jsx(Tl, { styles: s }); } @@ -3957,7 +3957,7 @@ function qf(e = {}) { Hf(l, t, n); } return (l, c = {}) => { - Md(l, (w) => w.filter((k) => k !== $n)); + Md(l, (w) => w.filter((N) => N !== $n)); const { name: u, slot: d, @@ -3986,33 +3986,33 @@ function qf(e = {}) { return Wr(L, w, L.theme.modularCssLayers ? f : void 0); }; if (_t(w)) { - const k = Al(w); + const N = Al(w); return function(z) { - return k.variants ? Wr(z, k, z.theme.modularCssLayers ? f : void 0) : z.theme.modularCssLayers ? on(k.style, f) : k.style; + return N.variants ? Wr(z, N, z.theme.modularCssLayers ? f : void 0) : z.theme.modularCssLayers ? on(N.style, f) : N.style; }; } return w; }, E = (...w) => { - const k = [], L = w.map(v), z = []; - if (k.push(s), u && m && z.push(function(A) { - var H, te; - const D = (te = (H = A.theme.components) == null ? void 0 : H[u]) == null ? void 0 : te.styleOverrides; - if (!D) + const N = [], L = w.map(v), z = []; + if (N.push(s), u && m && z.push(function(_) { + var q, te; + const M = (te = (q = _.theme.components) == null ? void 0 : q[u]) == null ? void 0 : te.styleOverrides; + if (!M) return null; const j = {}; - for (const G in D) - j[G] = Wr(A, D[G], A.theme.modularCssLayers ? "theme" : void 0); - return m(A, j); - }), u && !y && z.push(function(A) { - var j, H; - const P = A.theme, D = (H = (j = P == null ? void 0 : P.components) == null ? void 0 : j[u]) == null ? void 0 : H.variants; - return D ? Il(A, D, [], A.theme.modularCssLayers ? "theme" : void 0) : null; + for (const K in M) + j[K] = Wr(_, M[K], _.theme.modularCssLayers ? "theme" : void 0); + return m(_, j); + }), u && !y && z.push(function(_) { + var j, q; + const A = _.theme, M = (q = (j = A == null ? void 0 : A.components) == null ? void 0 : j[u]) == null ? void 0 : q.variants; + return M ? Il(_, M, [], _.theme.modularCssLayers ? "theme" : void 0) : null; }), S || z.push($n), Array.isArray(L[0])) { - const p = L.shift(), A = new Array(k.length).fill(""), P = new Array(z.length).fill(""); - let D; - D = [...A, ...p, ...P], D.raw = [...A, ...p.raw, ...P], k.unshift(D); + const p = L.shift(), _ = new Array(N.length).fill(""), A = new Array(z.length).fill(""); + let M; + M = [..._, ...p, ...A], M.raw = [..._, ...p.raw, ...A], N.unshift(M); } - const W = [...k, ...L, ...z], F = T(...W); + const H = [...N, ...L, ...z], F = T(...H); return l.muiName && (F.muiName = l.muiName), process.env.NODE_ENV !== "production" && (F.displayName = Gf(u, d, l)), F; }; return T.withConfig && (E.withConfig = T.withConfig), E; @@ -4337,11 +4337,11 @@ function pp(e, t = {}) { if (Object.entries(y || {}).forEach(([v, E]) => { const { vars: w, - css: k, + css: N, varsWithDefaults: L } = ri(E, t); m = et(m, L), g[v] = { - css: k, + css: N, vars: w }; }), f) { @@ -4356,12 +4356,12 @@ function pp(e, t = {}) { }; } function S(v, E) { - var k, L; + var N, L; let w = i; if (i === "class" && (w = ".%s"), i === "data" && (w = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (w = `[${i}="%s"]`), v) { if (w === "media") return e.defaultColorScheme === v ? ":root" : { - [`@media (prefers-color-scheme: ${((L = (k = a[v]) == null ? void 0 : k.palette) == null ? void 0 : L.mode) || v})`]: { + [`@media (prefers-color-scheme: ${((L = (N = a[v]) == null ? void 0 : N.palette) == null ? void 0 : L.mode) || v})`]: { ":root": E } }; @@ -4383,7 +4383,7 @@ function pp(e, t = {}) { }), v; }, generateStyleSheets: () => { - var z, W; + var z, H; const v = [], E = e.defaultColorScheme || "light"; function w(F, p) { Object.keys(p).length && v.push(typeof F == "string" ? { @@ -4396,35 +4396,35 @@ function pp(e, t = {}) { ...h }), h); const { - [E]: k, + [E]: N, ...L } = g; - if (k) { + if (N) { const { css: F - } = k, p = (W = (z = a[E]) == null ? void 0 : z.palette) == null ? void 0 : W.mode, A = !r && p ? { + } = N, p = (H = (z = a[E]) == null ? void 0 : z.palette) == null ? void 0 : H.mode, _ = !r && p ? { colorScheme: p, ...F } : { ...F }; w(n(E, { - ...A - }), A); + ..._ + }), _); } return Object.entries(L).forEach(([F, { css: p }]) => { - var D, j; - const A = (j = (D = a[F]) == null ? void 0 : D.palette) == null ? void 0 : j.mode, P = !r && A ? { - colorScheme: A, + var M, j; + const _ = (j = (M = a[F]) == null ? void 0 : M.palette) == null ? void 0 : j.mode, A = !r && _ ? { + colorScheme: _, ...p } : { ...p }; w(n(F, { - ...P - }), P); + ...A + }), A); }), s && v.push({ ":root": { // use double underscore to indicate that these are private variables @@ -5105,7 +5105,7 @@ function zp(e, t) { e[n] || (e[n] = {}); }); } -function M(e, t, n) { +function $(e, t, n) { !e[t] && n && (e[t] = n); } function rr(e) { @@ -5204,34 +5204,34 @@ function qp(e = {}, ...t) { spacing: Wp(d.spacing) }; Object.keys(w.colorSchemes).forEach((F) => { - const p = w.colorSchemes[F].palette, A = (D) => { - const j = D.split("-"), H = j[1], te = j[2]; - return m(D, p[H][te]); + const p = w.colorSchemes[F].palette, _ = (M) => { + const j = M.split("-"), q = j[1], te = j[2]; + return m(M, p[q][te]); }; - p.mode === "light" && (M(p.common, "background", "#fff"), M(p.common, "onBackground", "#000")), p.mode === "dark" && (M(p.common, "background", "#000"), M(p.common, "onBackground", "#fff")); - function P(D, j, H) { + p.mode === "light" && ($(p.common, "background", "#fff"), $(p.common, "onBackground", "#000")), p.mode === "dark" && ($(p.common, "background", "#000"), $(p.common, "onBackground", "#fff")); + function A(M, j, q) { if (v) { let te; - return D === Zt && (te = `transparent ${((1 - H) * 100).toFixed(0)}%`), D === Pe && (te = `#000 ${(H * 100).toFixed(0)}%`), D === _e && (te = `#fff ${(H * 100).toFixed(0)}%`), `color-mix(in ${v}, ${j}, ${te})`; + return M === Zt && (te = `transparent ${((1 - q) * 100).toFixed(0)}%`), M === Pe && (te = `#000 ${(q * 100).toFixed(0)}%`), M === _e && (te = `#fff ${(q * 100).toFixed(0)}%`), `color-mix(in ${v}, ${j}, ${te})`; } - return D(j, H); + return M(j, q); } if (zp(p, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), p.mode === "light") { - M(p.Alert, "errorColor", P(Pe, a ? m("palette-error-light") : p.error.light, 0.6)), M(p.Alert, "infoColor", P(Pe, a ? m("palette-info-light") : p.info.light, 0.6)), M(p.Alert, "successColor", P(Pe, a ? m("palette-success-light") : p.success.light, 0.6)), M(p.Alert, "warningColor", P(Pe, a ? m("palette-warning-light") : p.warning.light, 0.6)), M(p.Alert, "errorFilledBg", A("palette-error-main")), M(p.Alert, "infoFilledBg", A("palette-info-main")), M(p.Alert, "successFilledBg", A("palette-success-main")), M(p.Alert, "warningFilledBg", A("palette-warning-main")), M(p.Alert, "errorFilledColor", Ot(() => p.getContrastText(p.error.main))), M(p.Alert, "infoFilledColor", Ot(() => p.getContrastText(p.info.main))), M(p.Alert, "successFilledColor", Ot(() => p.getContrastText(p.success.main))), M(p.Alert, "warningFilledColor", Ot(() => p.getContrastText(p.warning.main))), M(p.Alert, "errorStandardBg", P(_e, a ? m("palette-error-light") : p.error.light, 0.9)), M(p.Alert, "infoStandardBg", P(_e, a ? m("palette-info-light") : p.info.light, 0.9)), M(p.Alert, "successStandardBg", P(_e, a ? m("palette-success-light") : p.success.light, 0.9)), M(p.Alert, "warningStandardBg", P(_e, a ? m("palette-warning-light") : p.warning.light, 0.9)), M(p.Alert, "errorIconColor", A("palette-error-main")), M(p.Alert, "infoIconColor", A("palette-info-main")), M(p.Alert, "successIconColor", A("palette-success-main")), M(p.Alert, "warningIconColor", A("palette-warning-main")), M(p.AppBar, "defaultBg", A("palette-grey-100")), M(p.Avatar, "defaultBg", A("palette-grey-400")), M(p.Button, "inheritContainedBg", A("palette-grey-300")), M(p.Button, "inheritContainedHoverBg", A("palette-grey-A100")), M(p.Chip, "defaultBorder", A("palette-grey-400")), M(p.Chip, "defaultAvatarColor", A("palette-grey-700")), M(p.Chip, "defaultIconColor", A("palette-grey-700")), M(p.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), M(p.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), M(p.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), M(p.LinearProgress, "primaryBg", P(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), M(p.LinearProgress, "secondaryBg", P(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), M(p.LinearProgress, "errorBg", P(_e, a ? m("palette-error-main") : p.error.main, 0.62)), M(p.LinearProgress, "infoBg", P(_e, a ? m("palette-info-main") : p.info.main, 0.62)), M(p.LinearProgress, "successBg", P(_e, a ? m("palette-success-main") : p.success.main, 0.62)), M(p.LinearProgress, "warningBg", P(_e, a ? m("palette-warning-light") : p.warning.main, 0.62)), M(p.Skeleton, "bg", v ? P(Zt, a ? m("palette-text-primary") : p.text.primary, 0.11) : `rgba(${A("palette-text-primaryChannel")} / 0.11)`), M(p.Slider, "primaryTrack", P(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), M(p.Slider, "secondaryTrack", P(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), M(p.Slider, "errorTrack", P(_e, a ? m("palette-error-main") : p.error.main, 0.62)), M(p.Slider, "infoTrack", P(_e, a ? m("palette-info-main") : p.info.main, 0.62)), M(p.Slider, "successTrack", P(_e, a ? m("palette-success-main") : p.success.main, 0.62)), M(p.Slider, "warningTrack", P(_e, a ? m("palette-warning-main") : p.warning.main, 0.62)); - const D = v ? P(Pe, a ? m("palette-background-default") : p.background.default, 0.6825) : $r(p.background.default, 0.8); - M(p.SnackbarContent, "bg", D), M(p.SnackbarContent, "color", Ot(() => v ? xi.text.primary : p.getContrastText(D))), M(p.SpeedDialAction, "fabHoverBg", $r(p.background.paper, 0.15)), M(p.StepConnector, "border", A("palette-grey-400")), M(p.StepContent, "border", A("palette-grey-400")), M(p.Switch, "defaultColor", A("palette-common-white")), M(p.Switch, "defaultDisabledColor", A("palette-grey-100")), M(p.Switch, "primaryDisabledColor", P(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), M(p.Switch, "secondaryDisabledColor", P(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), M(p.Switch, "errorDisabledColor", P(_e, a ? m("palette-error-main") : p.error.main, 0.62)), M(p.Switch, "infoDisabledColor", P(_e, a ? m("palette-info-main") : p.info.main, 0.62)), M(p.Switch, "successDisabledColor", P(_e, a ? m("palette-success-main") : p.success.main, 0.62)), M(p.Switch, "warningDisabledColor", P(_e, a ? m("palette-warning-main") : p.warning.main, 0.62)), M(p.TableCell, "border", P(_e, Zt(a ? m("palette-divider") : p.divider, 1), 0.88)), M(p.Tooltip, "bg", P(Zt, a ? m("palette-grey-700") : p.grey[700], 0.92)); + $(p.Alert, "errorColor", A(Pe, a ? m("palette-error-light") : p.error.light, 0.6)), $(p.Alert, "infoColor", A(Pe, a ? m("palette-info-light") : p.info.light, 0.6)), $(p.Alert, "successColor", A(Pe, a ? m("palette-success-light") : p.success.light, 0.6)), $(p.Alert, "warningColor", A(Pe, a ? m("palette-warning-light") : p.warning.light, 0.6)), $(p.Alert, "errorFilledBg", _("palette-error-main")), $(p.Alert, "infoFilledBg", _("palette-info-main")), $(p.Alert, "successFilledBg", _("palette-success-main")), $(p.Alert, "warningFilledBg", _("palette-warning-main")), $(p.Alert, "errorFilledColor", Ot(() => p.getContrastText(p.error.main))), $(p.Alert, "infoFilledColor", Ot(() => p.getContrastText(p.info.main))), $(p.Alert, "successFilledColor", Ot(() => p.getContrastText(p.success.main))), $(p.Alert, "warningFilledColor", Ot(() => p.getContrastText(p.warning.main))), $(p.Alert, "errorStandardBg", A(_e, a ? m("palette-error-light") : p.error.light, 0.9)), $(p.Alert, "infoStandardBg", A(_e, a ? m("palette-info-light") : p.info.light, 0.9)), $(p.Alert, "successStandardBg", A(_e, a ? m("palette-success-light") : p.success.light, 0.9)), $(p.Alert, "warningStandardBg", A(_e, a ? m("palette-warning-light") : p.warning.light, 0.9)), $(p.Alert, "errorIconColor", _("palette-error-main")), $(p.Alert, "infoIconColor", _("palette-info-main")), $(p.Alert, "successIconColor", _("palette-success-main")), $(p.Alert, "warningIconColor", _("palette-warning-main")), $(p.AppBar, "defaultBg", _("palette-grey-100")), $(p.Avatar, "defaultBg", _("palette-grey-400")), $(p.Button, "inheritContainedBg", _("palette-grey-300")), $(p.Button, "inheritContainedHoverBg", _("palette-grey-A100")), $(p.Chip, "defaultBorder", _("palette-grey-400")), $(p.Chip, "defaultAvatarColor", _("palette-grey-700")), $(p.Chip, "defaultIconColor", _("palette-grey-700")), $(p.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), $(p.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), $(p.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), $(p.LinearProgress, "primaryBg", A(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), $(p.LinearProgress, "secondaryBg", A(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), $(p.LinearProgress, "errorBg", A(_e, a ? m("palette-error-main") : p.error.main, 0.62)), $(p.LinearProgress, "infoBg", A(_e, a ? m("palette-info-main") : p.info.main, 0.62)), $(p.LinearProgress, "successBg", A(_e, a ? m("palette-success-main") : p.success.main, 0.62)), $(p.LinearProgress, "warningBg", A(_e, a ? m("palette-warning-light") : p.warning.main, 0.62)), $(p.Skeleton, "bg", v ? A(Zt, a ? m("palette-text-primary") : p.text.primary, 0.11) : `rgba(${_("palette-text-primaryChannel")} / 0.11)`), $(p.Slider, "primaryTrack", A(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), $(p.Slider, "secondaryTrack", A(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), $(p.Slider, "errorTrack", A(_e, a ? m("palette-error-main") : p.error.main, 0.62)), $(p.Slider, "infoTrack", A(_e, a ? m("palette-info-main") : p.info.main, 0.62)), $(p.Slider, "successTrack", A(_e, a ? m("palette-success-main") : p.success.main, 0.62)), $(p.Slider, "warningTrack", A(_e, a ? m("palette-warning-main") : p.warning.main, 0.62)); + const M = v ? A(Pe, a ? m("palette-background-default") : p.background.default, 0.6825) : $r(p.background.default, 0.8); + $(p.SnackbarContent, "bg", M), $(p.SnackbarContent, "color", Ot(() => v ? xi.text.primary : p.getContrastText(M))), $(p.SpeedDialAction, "fabHoverBg", $r(p.background.paper, 0.15)), $(p.StepConnector, "border", _("palette-grey-400")), $(p.StepContent, "border", _("palette-grey-400")), $(p.Switch, "defaultColor", _("palette-common-white")), $(p.Switch, "defaultDisabledColor", _("palette-grey-100")), $(p.Switch, "primaryDisabledColor", A(_e, a ? m("palette-primary-main") : p.primary.main, 0.62)), $(p.Switch, "secondaryDisabledColor", A(_e, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), $(p.Switch, "errorDisabledColor", A(_e, a ? m("palette-error-main") : p.error.main, 0.62)), $(p.Switch, "infoDisabledColor", A(_e, a ? m("palette-info-main") : p.info.main, 0.62)), $(p.Switch, "successDisabledColor", A(_e, a ? m("palette-success-main") : p.success.main, 0.62)), $(p.Switch, "warningDisabledColor", A(_e, a ? m("palette-warning-main") : p.warning.main, 0.62)), $(p.TableCell, "border", A(_e, Zt(a ? m("palette-divider") : p.divider, 1), 0.88)), $(p.Tooltip, "bg", A(Zt, a ? m("palette-grey-700") : p.grey[700], 0.92)); } if (p.mode === "dark") { - M(p.Alert, "errorColor", P(_e, a ? m("palette-error-light") : p.error.light, 0.6)), M(p.Alert, "infoColor", P(_e, a ? m("palette-info-light") : p.info.light, 0.6)), M(p.Alert, "successColor", P(_e, a ? m("palette-success-light") : p.success.light, 0.6)), M(p.Alert, "warningColor", P(_e, a ? m("palette-warning-light") : p.warning.light, 0.6)), M(p.Alert, "errorFilledBg", A("palette-error-dark")), M(p.Alert, "infoFilledBg", A("palette-info-dark")), M(p.Alert, "successFilledBg", A("palette-success-dark")), M(p.Alert, "warningFilledBg", A("palette-warning-dark")), M(p.Alert, "errorFilledColor", Ot(() => p.getContrastText(p.error.dark))), M(p.Alert, "infoFilledColor", Ot(() => p.getContrastText(p.info.dark))), M(p.Alert, "successFilledColor", Ot(() => p.getContrastText(p.success.dark))), M(p.Alert, "warningFilledColor", Ot(() => p.getContrastText(p.warning.dark))), M(p.Alert, "errorStandardBg", P(Pe, a ? m("palette-error-light") : p.error.light, 0.9)), M(p.Alert, "infoStandardBg", P(Pe, a ? m("palette-info-light") : p.info.light, 0.9)), M(p.Alert, "successStandardBg", P(Pe, a ? m("palette-success-light") : p.success.light, 0.9)), M(p.Alert, "warningStandardBg", P(Pe, a ? m("palette-warning-light") : p.warning.light, 0.9)), M(p.Alert, "errorIconColor", A("palette-error-main")), M(p.Alert, "infoIconColor", A("palette-info-main")), M(p.Alert, "successIconColor", A("palette-success-main")), M(p.Alert, "warningIconColor", A("palette-warning-main")), M(p.AppBar, "defaultBg", A("palette-grey-900")), M(p.AppBar, "darkBg", A("palette-background-paper")), M(p.AppBar, "darkColor", A("palette-text-primary")), M(p.Avatar, "defaultBg", A("palette-grey-600")), M(p.Button, "inheritContainedBg", A("palette-grey-800")), M(p.Button, "inheritContainedHoverBg", A("palette-grey-700")), M(p.Chip, "defaultBorder", A("palette-grey-700")), M(p.Chip, "defaultAvatarColor", A("palette-grey-300")), M(p.Chip, "defaultIconColor", A("palette-grey-300")), M(p.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), M(p.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), M(p.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), M(p.LinearProgress, "primaryBg", P(Pe, a ? m("palette-primary-main") : p.primary.main, 0.5)), M(p.LinearProgress, "secondaryBg", P(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), M(p.LinearProgress, "errorBg", P(Pe, a ? m("palette-error-main") : p.error.main, 0.5)), M(p.LinearProgress, "infoBg", P(Pe, a ? m("palette-info-main") : p.info.main, 0.5)), M(p.LinearProgress, "successBg", P(Pe, a ? m("palette-success-main") : p.success.main, 0.5)), M(p.LinearProgress, "warningBg", P(Pe, a ? m("palette-warning-main") : p.warning.main, 0.5)), M(p.Skeleton, "bg", v ? P(Zt, a ? m("palette-text-primary") : p.text.primary, 0.13) : `rgba(${A("palette-text-primaryChannel")} / 0.13)`), M(p.Slider, "primaryTrack", P(Pe, a ? m("palette-primary-main") : p.primary.main, 0.5)), M(p.Slider, "secondaryTrack", P(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), M(p.Slider, "errorTrack", P(Pe, a ? m("palette-error-main") : p.error.main, 0.5)), M(p.Slider, "infoTrack", P(Pe, a ? m("palette-info-main") : p.info.main, 0.5)), M(p.Slider, "successTrack", P(Pe, a ? m("palette-success-main") : p.success.main, 0.5)), M(p.Slider, "warningTrack", P(Pe, a ? m("palette-warning-light") : p.warning.main, 0.5)); - const D = v ? P(_e, a ? m("palette-background-default") : p.background.default, 0.985) : $r(p.background.default, 0.98); - M(p.SnackbarContent, "bg", D), M(p.SnackbarContent, "color", Ot(() => v ? Dl.text.primary : p.getContrastText(D))), M(p.SpeedDialAction, "fabHoverBg", $r(p.background.paper, 0.15)), M(p.StepConnector, "border", A("palette-grey-600")), M(p.StepContent, "border", A("palette-grey-600")), M(p.Switch, "defaultColor", A("palette-grey-300")), M(p.Switch, "defaultDisabledColor", A("palette-grey-600")), M(p.Switch, "primaryDisabledColor", P(Pe, a ? m("palette-primary-main") : p.primary.main, 0.55)), M(p.Switch, "secondaryDisabledColor", P(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.55)), M(p.Switch, "errorDisabledColor", P(Pe, a ? m("palette-error-main") : p.error.main, 0.55)), M(p.Switch, "infoDisabledColor", P(Pe, a ? m("palette-info-main") : p.info.main, 0.55)), M(p.Switch, "successDisabledColor", P(Pe, a ? m("palette-success-main") : p.success.main, 0.55)), M(p.Switch, "warningDisabledColor", P(Pe, a ? m("palette-warning-light") : p.warning.main, 0.55)), M(p.TableCell, "border", P(Pe, Zt(a ? m("palette-divider") : p.divider, 1), 0.68)), M(p.Tooltip, "bg", P(Zt, a ? m("palette-grey-700") : p.grey[700], 0.92)); + $(p.Alert, "errorColor", A(_e, a ? m("palette-error-light") : p.error.light, 0.6)), $(p.Alert, "infoColor", A(_e, a ? m("palette-info-light") : p.info.light, 0.6)), $(p.Alert, "successColor", A(_e, a ? m("palette-success-light") : p.success.light, 0.6)), $(p.Alert, "warningColor", A(_e, a ? m("palette-warning-light") : p.warning.light, 0.6)), $(p.Alert, "errorFilledBg", _("palette-error-dark")), $(p.Alert, "infoFilledBg", _("palette-info-dark")), $(p.Alert, "successFilledBg", _("palette-success-dark")), $(p.Alert, "warningFilledBg", _("palette-warning-dark")), $(p.Alert, "errorFilledColor", Ot(() => p.getContrastText(p.error.dark))), $(p.Alert, "infoFilledColor", Ot(() => p.getContrastText(p.info.dark))), $(p.Alert, "successFilledColor", Ot(() => p.getContrastText(p.success.dark))), $(p.Alert, "warningFilledColor", Ot(() => p.getContrastText(p.warning.dark))), $(p.Alert, "errorStandardBg", A(Pe, a ? m("palette-error-light") : p.error.light, 0.9)), $(p.Alert, "infoStandardBg", A(Pe, a ? m("palette-info-light") : p.info.light, 0.9)), $(p.Alert, "successStandardBg", A(Pe, a ? m("palette-success-light") : p.success.light, 0.9)), $(p.Alert, "warningStandardBg", A(Pe, a ? m("palette-warning-light") : p.warning.light, 0.9)), $(p.Alert, "errorIconColor", _("palette-error-main")), $(p.Alert, "infoIconColor", _("palette-info-main")), $(p.Alert, "successIconColor", _("palette-success-main")), $(p.Alert, "warningIconColor", _("palette-warning-main")), $(p.AppBar, "defaultBg", _("palette-grey-900")), $(p.AppBar, "darkBg", _("palette-background-paper")), $(p.AppBar, "darkColor", _("palette-text-primary")), $(p.Avatar, "defaultBg", _("palette-grey-600")), $(p.Button, "inheritContainedBg", _("palette-grey-800")), $(p.Button, "inheritContainedHoverBg", _("palette-grey-700")), $(p.Chip, "defaultBorder", _("palette-grey-700")), $(p.Chip, "defaultAvatarColor", _("palette-grey-300")), $(p.Chip, "defaultIconColor", _("palette-grey-300")), $(p.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), $(p.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), $(p.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), $(p.LinearProgress, "primaryBg", A(Pe, a ? m("palette-primary-main") : p.primary.main, 0.5)), $(p.LinearProgress, "secondaryBg", A(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), $(p.LinearProgress, "errorBg", A(Pe, a ? m("palette-error-main") : p.error.main, 0.5)), $(p.LinearProgress, "infoBg", A(Pe, a ? m("palette-info-main") : p.info.main, 0.5)), $(p.LinearProgress, "successBg", A(Pe, a ? m("palette-success-main") : p.success.main, 0.5)), $(p.LinearProgress, "warningBg", A(Pe, a ? m("palette-warning-main") : p.warning.main, 0.5)), $(p.Skeleton, "bg", v ? A(Zt, a ? m("palette-text-primary") : p.text.primary, 0.13) : `rgba(${_("palette-text-primaryChannel")} / 0.13)`), $(p.Slider, "primaryTrack", A(Pe, a ? m("palette-primary-main") : p.primary.main, 0.5)), $(p.Slider, "secondaryTrack", A(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), $(p.Slider, "errorTrack", A(Pe, a ? m("palette-error-main") : p.error.main, 0.5)), $(p.Slider, "infoTrack", A(Pe, a ? m("palette-info-main") : p.info.main, 0.5)), $(p.Slider, "successTrack", A(Pe, a ? m("palette-success-main") : p.success.main, 0.5)), $(p.Slider, "warningTrack", A(Pe, a ? m("palette-warning-light") : p.warning.main, 0.5)); + const M = v ? A(_e, a ? m("palette-background-default") : p.background.default, 0.985) : $r(p.background.default, 0.98); + $(p.SnackbarContent, "bg", M), $(p.SnackbarContent, "color", Ot(() => v ? Dl.text.primary : p.getContrastText(M))), $(p.SpeedDialAction, "fabHoverBg", $r(p.background.paper, 0.15)), $(p.StepConnector, "border", _("palette-grey-600")), $(p.StepContent, "border", _("palette-grey-600")), $(p.Switch, "defaultColor", _("palette-grey-300")), $(p.Switch, "defaultDisabledColor", _("palette-grey-600")), $(p.Switch, "primaryDisabledColor", A(Pe, a ? m("palette-primary-main") : p.primary.main, 0.55)), $(p.Switch, "secondaryDisabledColor", A(Pe, a ? m("palette-secondary-main") : p.secondary.main, 0.55)), $(p.Switch, "errorDisabledColor", A(Pe, a ? m("palette-error-main") : p.error.main, 0.55)), $(p.Switch, "infoDisabledColor", A(Pe, a ? m("palette-info-main") : p.info.main, 0.55)), $(p.Switch, "successDisabledColor", A(Pe, a ? m("palette-success-main") : p.success.main, 0.55)), $(p.Switch, "warningDisabledColor", A(Pe, a ? m("palette-warning-light") : p.warning.main, 0.55)), $(p.TableCell, "border", A(Pe, Zt(a ? m("palette-divider") : p.divider, 1), 0.68)), $(p.Tooltip, "bg", A(Zt, a ? m("palette-grey-700") : p.grey[700], 0.92)); } - a || (jt(p.background, "default"), jt(p.background, "paper"), jt(p.common, "background"), jt(p.common, "onBackground"), jt(p, "divider")), Object.keys(p).forEach((D) => { - const j = p[D]; - D !== "tonalOffset" && !a && j && typeof j == "object" && (j.main && M(p[D], "mainChannel", nr(rr(j.main))), j.light && M(p[D], "lightChannel", nr(rr(j.light))), j.dark && M(p[D], "darkChannel", nr(rr(j.dark))), j.contrastText && M(p[D], "contrastTextChannel", nr(rr(j.contrastText))), D === "text" && (jt(p[D], "primary"), jt(p[D], "secondary")), D === "action" && (j.active && jt(p[D], "active"), j.selected && jt(p[D], "selected"))); + a || (jt(p.background, "default"), jt(p.background, "paper"), jt(p.common, "background"), jt(p.common, "onBackground"), jt(p, "divider")), Object.keys(p).forEach((M) => { + const j = p[M]; + M !== "tonalOffset" && !a && j && typeof j == "object" && (j.main && $(p[M], "mainChannel", nr(rr(j.main))), j.light && $(p[M], "lightChannel", nr(rr(j.light))), j.dark && $(p[M], "darkChannel", nr(rr(j.dark))), j.contrastText && $(p[M], "contrastTextChannel", nr(rr(j.contrastText))), M === "text" && (jt(p[M], "primary"), jt(p[M], "secondary")), M === "action" && (j.active && jt(p[M], "active"), j.selected && jt(p[M], "selected"))); }); }), w = t.reduce((F, p) => et(F, p), w); - const k = { + const N = { prefix: s, disableCssColorScheme: i, shouldSkipGeneratingVar: l, @@ -5240,11 +5240,11 @@ function qp(e = {}, ...t) { }, { vars: L, generateThemeVars: z, - generateStyleSheets: W - } = pp(w, k); + generateStyleSheets: H + } = pp(w, N); return w.vars = L, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([F, p]) => { w[F] = p; - }), w.generateThemeVars = z, w.generateStyleSheets = W, w.generateSpacing = function() { + }), w.generateThemeVars = z, w.generateStyleSheets = H, w.generateSpacing = function() { return Ol(d.spacing, Ji(this)); }, w.getColorSchemeSelector = mp(c), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = { ...Sr, @@ -5330,7 +5330,7 @@ function ma(...e) { }); } function Vl(e) { - return /* @__PURE__ */ $.jsx(Cl, { + return /* @__PURE__ */ k.jsx(Cl, { ...e, defaultTheme: ns, themeId: Ui @@ -5350,7 +5350,7 @@ function Yp(e) { return function(n) { return ( // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value. - /* @__PURE__ */ $.jsx(Vl, { + /* @__PURE__ */ k.jsx(Vl, { styles: typeof e == "function" ? (r) => e({ theme: r, ...n @@ -5508,7 +5508,7 @@ const Jp = (e) => { }, y = {}; d || (y.viewBox = b); const S = Jp(f); - return /* @__PURE__ */ $.jsxs(Qp, { + return /* @__PURE__ */ k.jsxs(Qp, { as: l, className: ue(S.root, s), focusable: "false", @@ -5520,7 +5520,7 @@ const Jp = (e) => { ...m, ...g && i.props, ownerState: f, - children: [g ? i.props.children : i, h ? /* @__PURE__ */ $.jsx("title", { + children: [g ? i.props.children : i, h ? /* @__PURE__ */ k.jsx("title", { children: h }) : null] }); @@ -5600,7 +5600,7 @@ process.env.NODE_ENV !== "production" && (Zr.propTypes = { Zr.muiName = "SvgIcon"; function zl(e, t) { function n(r, i) { - return /* @__PURE__ */ $.jsx(Zr, { + return /* @__PURE__ */ k.jsx(Zr, { "data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0, ref: i, ...r, @@ -6586,7 +6586,7 @@ const hm = (e) => { variant: u }, b = hm(h); return process.env.NODE_ENV !== "production" && i.shadows[l] === void 0 && console.error([`MUI: The elevation provided is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(` -`)), /* @__PURE__ */ $.jsx(ym, { +`)), /* @__PURE__ */ k.jsx(ym, { as: a, ownerState: h, className: ue(b.root, s), @@ -6747,10 +6747,10 @@ function oc(e) { clearTimeout(f); }; } - }, [c, l, u]), /* @__PURE__ */ $.jsx("span", { + }, [c, l, u]), /* @__PURE__ */ k.jsx("span", { className: b, style: m, - children: /* @__PURE__ */ $.jsx("span", { + children: /* @__PURE__ */ k.jsx("span", { className: g }) }); @@ -6904,11 +6904,11 @@ const mt = Ee("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa const { pulsate: E, rippleX: w, - rippleY: k, + rippleY: N, rippleSize: L, cb: z } = v; - u((W) => [...W, /* @__PURE__ */ $.jsx(Rm, { + u((H) => [...H, /* @__PURE__ */ k.jsx(Rm, { classes: { ripple: ue(s.ripple, mt.ripple), rippleVisible: ue(s.rippleVisible, mt.rippleVisible), @@ -6920,13 +6920,13 @@ const mt = Ee("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa timeout: _i, pulsate: E, rippleX: w, - rippleY: k, + rippleY: N, rippleSize: L }, d.current)]), d.current += 1, h.current = z; }, [s]), S = x.useCallback((v = {}, E = {}, w = () => { }) => { const { - pulsate: k = !1, + pulsate: N = !1, center: L = i || E.pulsate, fakeElement: z = !1 // For test purposes @@ -6936,43 +6936,43 @@ const mt = Ee("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa return; } (v == null ? void 0 : v.type) === "touchstart" && (b.current = !0); - const W = z ? null : f.current, F = W ? W.getBoundingClientRect() : { + const H = z ? null : f.current, F = H ? H.getBoundingClientRect() : { width: 0, height: 0, left: 0, top: 0 }; - let p, A, P; + let p, _, A; if (L || v === void 0 || v.clientX === 0 && v.clientY === 0 || !v.clientX && !v.touches) - p = Math.round(F.width / 2), A = Math.round(F.height / 2); + p = Math.round(F.width / 2), _ = Math.round(F.height / 2); else { const { - clientX: D, + clientX: M, clientY: j } = v.touches && v.touches.length > 0 ? v.touches[0] : v; - p = Math.round(D - F.left), A = Math.round(j - F.top); + p = Math.round(M - F.left), _ = Math.round(j - F.top); } if (L) - P = Math.sqrt((2 * F.width ** 2 + F.height ** 2) / 3), P % 2 === 0 && (P += 1); + A = Math.sqrt((2 * F.width ** 2 + F.height ** 2) / 3), A % 2 === 0 && (A += 1); else { - const D = Math.max(Math.abs((W ? W.clientWidth : 0) - p), p) * 2 + 2, j = Math.max(Math.abs((W ? W.clientHeight : 0) - A), A) * 2 + 2; - P = Math.sqrt(D ** 2 + j ** 2); + const M = Math.max(Math.abs((H ? H.clientWidth : 0) - p), p) * 2 + 2, j = Math.max(Math.abs((H ? H.clientHeight : 0) - _), _) * 2 + 2; + A = Math.sqrt(M ** 2 + j ** 2); } v != null && v.touches ? g.current === null && (g.current = () => { y({ - pulsate: k, + pulsate: N, rippleX: p, - rippleY: A, - rippleSize: P, + rippleY: _, + rippleSize: A, cb: w }); }, m.start(vm, () => { g.current && (g.current(), g.current = null); })) : y({ - pulsate: k, + pulsate: N, rippleX: p, - rippleY: A, - rippleSize: P, + rippleY: _, + rippleSize: A, cb: w }); }, [i, y, m]), O = x.useCallback(() => { @@ -6992,11 +6992,11 @@ const mt = Ee("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa pulsate: O, start: S, stop: T - }), [O, S, T]), /* @__PURE__ */ $.jsx(xm, { + }), [O, S, T]), /* @__PURE__ */ k.jsx(xm, { className: ue(mt.root, s.root, a), ref: f, ...l, - children: /* @__PURE__ */ $.jsx(os, { + children: /* @__PURE__ */ k.jsx(os, { component: null, exit: !0, children: c @@ -7097,53 +7097,53 @@ const wm = Ee("MuiButtonBase", ["root", "disabled", "focusVisible"]), Cm = (e) = onFocusVisible: v, onKeyDown: E, onKeyUp: w, - onMouseDown: k, + onMouseDown: N, onMouseLeave: L, onMouseUp: z, - onTouchEnd: W, + onTouchEnd: H, onTouchMove: F, onTouchStart: p, - tabIndex: A = 0, - TouchRippleProps: P, - touchRippleRef: D, + tabIndex: _ = 0, + TouchRippleProps: A, + touchRippleRef: M, type: j, - ...H - } = r, te = x.useRef(null), G = gm(), N = rt(G.ref, D), [I, X] = x.useState(!1); - u && I && X(!1), x.useImperativeHandle(i, () => ({ + ...q + } = r, te = x.useRef(null), K = gm(), I = rt(K.ref, M), [D, W] = x.useState(!1); + u && D && W(!1), x.useImperativeHandle(i, () => ({ focusVisible: () => { - X(!0), te.current.focus(); + W(!0), te.current.focus(); } }), []); - const B = G.shouldMount && !d && !u; + const B = K.shouldMount && !d && !u; x.useEffect(() => { - I && b && !d && G.pulsate(); - }, [d, b, I, G]); - const Y = Lt(G, "start", k, h), q = Lt(G, "stop", S, h), Q = Lt(G, "stop", O, h), J = Lt(G, "stop", z, h), K = Lt(G, "stop", (le) => { - I && le.preventDefault(), L && L(le); - }, h), Z = Lt(G, "start", p, h), V = Lt(G, "stop", W, h), ne = Lt(G, "stop", F, h), _ = Lt(G, "stop", (le) => { - Ea(le.target) || X(!1), f && f(le); + D && b && !d && K.pulsate(); + }, [d, b, D, K]); + const X = Lt(K, "start", N, h), Q = Lt(K, "stop", S, h), G = Lt(K, "stop", O, h), J = Lt(K, "stop", z, h), Y = Lt(K, "stop", (le) => { + D && le.preventDefault(), L && L(le); + }, h), Z = Lt(K, "start", p, h), V = Lt(K, "stop", H, h), ne = Lt(K, "stop", F, h), P = Lt(K, "stop", (le) => { + Ea(le.target) || W(!1), f && f(le); }, !1), de = ln((le) => { - te.current || (te.current = le.currentTarget), Ea(le.target) && (X(!0), v && v(le)), T && T(le); + te.current || (te.current = le.currentTarget), Ea(le.target) && (W(!0), v && v(le)), T && T(le); }), re = () => { const le = te.current; return le ? le.tagName === "BUTTON" ? !1 : !(le.tagName === "A" && le.href) : c && c !== "button"; }, me = ln((le) => { - b && !le.repeat && I && le.key === " " && G.stop(le, () => { - G.start(le); + b && !le.repeat && D && le.key === " " && K.stop(le, () => { + K.start(le); }), le.target === le.currentTarget && re() && le.key === " " && le.preventDefault(), E && E(le), le.target === le.currentTarget && re() && le.key === "Enter" && !u && (le.preventDefault(), y && y(le)); }), $e = ln((le) => { - b && le.key === " " && I && !le.defaultPrevented && G.stop(le, () => { - G.pulsate(le); + b && le.key === " " && D && !le.defaultPrevented && K.stop(le, () => { + K.pulsate(le); }), w && w(le), y && le.target === le.currentTarget && re() && le.key === " " && !le.defaultPrevented && !u && y(le); }); let Me = c; - Me === "button" && (H.href || H.to) && (Me = g); + Me === "button" && (q.href || q.to) && (Me = g); const De = {}; if (Me === "button") { - const le = !!H.formAction; + const le = !!q.formAction; De.type = j === void 0 && !le ? "button" : j, De.disabled = u; } else - !H.href && !H.to && (De.role = "button"), u && (De["aria-disabled"] = u); + !q.href && !q.to && (De.role = "button"), u && (De["aria-disabled"] = u); const Ke = rt(n, te), at = { ...r, centerRipple: s, @@ -7152,35 +7152,35 @@ const wm = Ee("MuiButtonBase", ["root", "disabled", "focusVisible"]), Cm = (e) = disableRipple: d, disableTouchRipple: h, focusRipple: b, - tabIndex: A, - focusVisible: I + tabIndex: _, + focusVisible: D }, je = Cm(at); - return /* @__PURE__ */ $.jsxs(Pm, { + return /* @__PURE__ */ k.jsxs(Pm, { as: Me, className: ue(je.root, l), ownerState: at, - onBlur: _, + onBlur: P, onClick: y, - onContextMenu: q, + onContextMenu: Q, onFocus: de, onKeyDown: me, onKeyUp: $e, - onMouseDown: Y, - onMouseLeave: K, + onMouseDown: X, + onMouseLeave: Y, onMouseUp: J, - onDragLeave: Q, + onDragLeave: G, onTouchEnd: V, onTouchMove: ne, onTouchStart: Z, ref: Ke, - tabIndex: u ? -1 : A, + tabIndex: u ? -1 : _, type: j, ...De, - ...H, - children: [a, B ? /* @__PURE__ */ $.jsx(ic, { - ref: N, + ...q, + children: [a, B ? /* @__PURE__ */ k.jsx(ic, { + ref: I, center: s, - ...P + ...A }) : null] }); }); @@ -7524,7 +7524,7 @@ const Tt = 44, Ai = br` const T = 2 * Math.PI * ((Tt - d) / 2); y.strokeDasharray = T.toFixed(3), O["aria-valuenow"] = Math.round(h), y.strokeDashoffset = `${((100 - h) / 100 * T).toFixed(3)}px`, S.transform = "rotate(-90deg)"; } - return /* @__PURE__ */ $.jsx(Mm, { + return /* @__PURE__ */ k.jsx(Mm, { className: ue(f.root, i), style: { width: c, @@ -7537,11 +7537,11 @@ const Tt = 44, Ai = br` role: "progressbar", ...O, ...m, - children: /* @__PURE__ */ $.jsxs(Dm, { + children: /* @__PURE__ */ k.jsxs(Dm, { className: f.svg, ownerState: g, viewBox: `${Tt / 2} ${Tt / 2} ${Tt} ${Tt}`, - children: [l ? /* @__PURE__ */ $.jsx(Lm, { + children: [l ? /* @__PURE__ */ k.jsx(Lm, { className: f.track, ownerState: g, cx: Tt, @@ -7550,7 +7550,7 @@ const Tt = 44, Ai = br` fill: "none", strokeWidth: d, "aria-hidden": "true" - }) : null, /* @__PURE__ */ $.jsx(jm, { + }) : null, /* @__PURE__ */ k.jsx(jm, { className: f.circle, style: y, ownerState: g, @@ -7794,7 +7794,7 @@ const Sa = Ee("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar loading: b = null, loadingIndicator: m, ...g - } = r, f = Tr(h), y = m ?? /* @__PURE__ */ $.jsx(as, { + } = r, f = Tr(h), y = m ?? /* @__PURE__ */ k.jsx(as, { "aria-labelledby": f, color: "inherit", size: 16 @@ -7808,7 +7808,7 @@ const Sa = Ee("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar loadingIndicator: y, size: d }, O = Fm(S); - return /* @__PURE__ */ $.jsxs(Um, { + return /* @__PURE__ */ k.jsxs(Um, { id: b ? f : h, className: ue(O.root, a), centerRipple: !0, @@ -7818,12 +7818,12 @@ const Sa = Ee("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar ...g, ownerState: S, children: [typeof b == "boolean" && // use plain HTML span to minimize the runtime overhead - /* @__PURE__ */ $.jsx("span", { + /* @__PURE__ */ k.jsx("span", { className: O.loadingWrapper, style: { display: "contents" }, - children: /* @__PURE__ */ $.jsx(Vm, { + children: /* @__PURE__ */ k.jsx(Vm, { className: O.loadingIndicator, ownerState: S, children: b && y @@ -8057,7 +8057,7 @@ const Ta = Ee("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub variant: m, variantMapping: g }, S = u || (b ? "p" : g[m] || xa[m]) || "span", O = qm(y); - return /* @__PURE__ */ $.jsx(Gm, { + return /* @__PURE__ */ k.jsx(Gm, { as: S, ref: n, className: ue(O.root, c), @@ -8311,15 +8311,15 @@ const lc = /* @__PURE__ */ x.forwardRef(function(t, n) { }; v.style.width = w.width, v.value = T.value || t.placeholder || "x", v.value.slice(-1) === ` ` && (v.value += " "); - const k = w.boxSizing, L = Mr(w.paddingBottom) + Mr(w.paddingTop), z = Mr(w.borderBottomWidth) + Mr(w.borderTopWidth), W = v.scrollHeight; + const N = w.boxSizing, L = Mr(w.paddingBottom) + Mr(w.paddingTop), z = Mr(w.borderBottomWidth) + Mr(w.borderTopWidth), H = v.scrollHeight; v.value = "x"; const F = v.scrollHeight; - let p = W; + let p = H; s && (p = Math.max(Number(s) * F, p)), i && (p = Math.min(Number(i) * F, p)), p = Math.max(p, F); - const A = p + (k === "border-box" ? L + z : 0), P = Math.abs(p - W) <= 1; + const _ = p + (N === "border-box" ? L + z : 0), A = Math.abs(p - H) <= 1; return { - outerHeightStyle: A, - overflowing: P + outerHeightStyle: _, + overflowing: A }; }, [i, s, t.placeholder]), f = ln(() => { const T = d.current, v = g(); @@ -8354,18 +8354,18 @@ const lc = /* @__PURE__ */ x.forwardRef(function(t, n) { const O = (T) => { u || y(); const v = T.target, E = v.value.length, w = v.value.endsWith(` -`), k = v.selectionStart === E; - w && k && v.setSelectionRange(E, E), r && r(T); +`), N = v.selectionStart === E; + w && N && v.setSelectionRange(E, E), r && r(T); }; - return /* @__PURE__ */ $.jsxs(x.Fragment, { - children: [/* @__PURE__ */ $.jsx("textarea", { + return /* @__PURE__ */ k.jsxs(x.Fragment, { + children: [/* @__PURE__ */ k.jsx("textarea", { value: l, onChange: O, ref: h, rows: s, style: a, ...c - }), /* @__PURE__ */ $.jsx("textarea", { + }), /* @__PURE__ */ k.jsx("textarea", { "aria-hidden": !0, className: t.className, readOnly: !0, @@ -8675,32 +8675,32 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { inputRef: v, margin: E, maxRows: w, - minRows: k, + minRows: N, multiline: L = !1, name: z, - onBlur: W, + onBlur: H, onChange: F, onClick: p, - onFocus: A, - onKeyDown: P, - onKeyUp: D, + onFocus: _, + onKeyDown: A, + onKeyUp: M, placeholder: j, - readOnly: H, + readOnly: q, renderSuffix: te, - rows: G, - size: N, - slotProps: I = {}, - slots: X = {}, + rows: K, + size: I, + slotProps: D = {}, + slots: W = {}, startAdornment: B, - type: Y = "text", - value: q, - ...Q - } = r, J = T.value != null ? T.value : q, { - current: K + type: X = "text", + value: Q, + ...G + } = r, J = T.value != null ? T.value : Q, { + current: Y } = x.useRef(J != null), Z = x.useRef(), V = x.useCallback((ye) => { process.env.NODE_ENV !== "production" && ye && ye.nodeName !== "INPUT" && !ye.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(` `)); - }, []), ne = rt(Z, v, T.ref, V), [_, de] = x.useState(!1), re = pn(); + }, []), ne = rt(Z, v, T.ref, V), [P, de] = x.useState(!1), re = pn(); process.env.NODE_ENV !== "production" && x.useEffect(() => { if (re) return re.registerEffect(); @@ -8710,17 +8710,17 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { muiFormControl: re, states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"] }); - me.focused = re ? re.focused : _, x.useEffect(() => { - !re && b && _ && (de(!1), W && W()); - }, [re, b, _, W]); + me.focused = re ? re.focused : P, x.useEffect(() => { + !re && b && P && (de(!1), H && H()); + }, [re, b, P, H]); const $e = re && re.onFilled, Me = re && re.onEmpty, De = x.useCallback((ye) => { io(ye) ? $e && $e() : Me && Me(); }, [$e, Me]); Vt(() => { - K && De({ + Y && De({ value: J }); - }, [J, De, K]), Vt(() => { + }, [J, De, Y]), Vt(() => { if (!a) return; const ye = Z.current; @@ -8730,11 +8730,11 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { ye === ct ? re && re.onFocus ? re.onFocus() : de(!0) : bn && ye.focus(); }, [a]); const Ke = (ye) => { - A && A(ye), T.onFocus && T.onFocus(ye), re && re.onFocus ? re.onFocus(ye) : de(!0); + _ && _(ye), T.onFocus && T.onFocus(ye), re && re.onFocus ? re.onFocus(ye) : de(!0); }, at = (ye) => { - W && W(ye), T.onBlur && T.onBlur(ye), re && re.onBlur ? re.onBlur(ye) : de(!1); + H && H(ye), T.onBlur && T.onBlur(ye), re && re.onBlur ? re.onBlur(ye) : de(!1); }, je = (ye, ...St) => { - if (!K) { + if (!Y) { const ct = ye.target || Z.current; if (ct == null) throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ft(1)); @@ -8751,15 +8751,15 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { Z.current && ye.currentTarget === ye.target && Z.current.focus(), p && p(ye); }; let Nt = O, Je = T; - L && Nt === "input" && (G ? (process.env.NODE_ENV !== "production" && (k || w) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), Je = { + L && Nt === "input" && (K ? (process.env.NODE_ENV !== "production" && (N || w) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), Je = { type: void 0, - minRows: G, - maxRows: G, + minRows: K, + maxRows: K, ...Je }) : Je = { type: void 0, maxRows: w, - minRows: k, + minRows: N, ...Je }, Nt = lc); const gn = (ye) => { @@ -8783,29 +8783,29 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { multiline: L, size: me.size, startAdornment: B, - type: Y - }, qt = eh(lt), kt = X.root || u.Root || Mo, Et = I.root || d.root || {}, $t = X.input || u.Input || Do; + type: X + }, qt = eh(lt), kt = W.root || u.Root || Mo, Et = D.root || d.root || {}, $t = W.input || u.Input || Do; return Je = { ...Je, - ...I.input ?? d.input - }, /* @__PURE__ */ $.jsxs(x.Fragment, { + ...D.input ?? d.input + }, /* @__PURE__ */ k.jsxs(x.Fragment, { children: [!m && typeof Pa == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function // For Pigment CSS, this has no effect because the InputGlobalStyles will be null. - (Ca || (Ca = /* @__PURE__ */ $.jsx(Pa, {}))), /* @__PURE__ */ $.jsxs(kt, { + (Ca || (Ca = /* @__PURE__ */ k.jsx(Pa, {}))), /* @__PURE__ */ k.jsxs(kt, { ...Et, ref: n, onClick: le, - ...Q, + ...G, ...!no(kt) && { ownerState: { ...lt, ...Et.ownerState } }, - className: ue(qt.root, Et.className, l, H && "MuiInputBase-readOnly"), - children: [B, /* @__PURE__ */ $.jsx(Rr.Provider, { + className: ue(qt.root, Et.className, l, q && "MuiInputBase-readOnly"), + children: [B, /* @__PURE__ */ k.jsx(Rr.Provider, { value: null, - children: /* @__PURE__ */ $.jsx($t, { + children: /* @__PURE__ */ k.jsx($t, { "aria-invalid": me.error, "aria-describedby": i, autoComplete: s, @@ -8816,13 +8816,13 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { onAnimationStart: gn, name: z, placeholder: j, - readOnly: H, + readOnly: q, required: me.required, - rows: G, + rows: K, value: J, - onKeyDown: P, - onKeyUp: D, - type: Y, + onKeyDown: A, + onKeyUp: M, + type: X, ...Je, ...!no($t) && { as: Nt, @@ -8832,7 +8832,7 @@ const Ni = "mui-auto-fill", so = "mui-auto-fill-cancel", ko = (e, t) => { } }, ref: ne, - className: ue(qt.input, Je.className, H && "MuiInputBase-readOnly"), + className: ue(qt.input, Je.className, q && "MuiInputBase-readOnly"), onBlur: at, onChange: je, onFocus: Ke @@ -9092,7 +9092,7 @@ function rh(e) { const en = { ...Mn, ...Ee("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"]) -}, oh = zl(/* @__PURE__ */ $.jsx("path", { +}, oh = zl(/* @__PURE__ */ k.jsx("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown"); function ih(e) { @@ -9150,52 +9150,52 @@ const sh = { style: y, timeout: S = i, ...O - } = t, T = x.useRef(null), v = rt(T, xr(l), n), E = yt(T, b), w = yt(T, (p, A) => { + } = t, T = x.useRef(null), v = rt(T, xr(l), n), E = yt(T, b), w = yt(T, (p, _) => { Kl(p); - const P = to({ + const A = to({ style: y, timeout: S, easing: c }, { mode: "enter" }); - p.style.transition = r.transitions.create("opacity", P), d && d(p, A); - }), k = yt(T, h), L = yt(T, f), z = yt(T, (p) => { - const A = to({ + p.style.transition = r.transitions.create("opacity", A), d && d(p, _); + }), N = yt(T, h), L = yt(T, f), z = yt(T, (p) => { + const _ = to({ style: y, timeout: S, easing: c }, { mode: "exit" }); - p.style.transition = r.transitions.create("opacity", A), m && m(p); - }), W = yt(T, (p) => { + p.style.transition = r.transitions.create("opacity", _), m && m(p); + }), H = yt(T, (p) => { p.style.transition = "", g && g(p); }), F = (p) => { s && s(T.current, p); }; - return /* @__PURE__ */ $.jsx(It, { + return /* @__PURE__ */ k.jsx(It, { appear: a, in: u, nodeRef: T, onEnter: w, - onEntered: k, + onEntered: N, onEntering: E, onExit: z, - onExited: W, + onExited: H, onExiting: L, addEndListener: F, timeout: S, ...O, children: (p, { - ownerState: A, - ...P + ownerState: _, + ...A }) => { - const D = Xl(p, u, sh, ah, y, l.props.style); + const M = Xl(p, u, sh, ah, y, l.props.style); return /* @__PURE__ */ x.cloneElement(l, { - style: D, + style: M, ref: v, - ...P + ...A }); } }); @@ -9352,17 +9352,17 @@ const ch = (e) => { externalForwardedProps: v, className: ue(S.root, s), ownerState: y - }), [k, L] = Fe("transition", { + }), [N, L] = Fe("transition", { elementType: ao, externalForwardedProps: v, ownerState: y }); - return /* @__PURE__ */ $.jsx(k, { + return /* @__PURE__ */ k.jsx(N, { in: c, timeout: g, ...f, ...L, - children: /* @__PURE__ */ $.jsx(E, { + children: /* @__PURE__ */ k.jsx(E, { "aria-hidden": !0, ...w, ref: n, @@ -9939,11 +9939,11 @@ const fh = (e) => { loadingPosition: v = "center", size: E = "medium", startIcon: w, - type: k, + type: N, variant: L = "text", ...z - } = a, W = Tr(S), F = T ?? /* @__PURE__ */ $.jsx(as, { - "aria-labelledby": W, + } = a, H = Tr(S), F = T ?? /* @__PURE__ */ k.jsx(as, { + "aria-labelledby": H, color: "inherit", size: 16 }), p = { @@ -9958,52 +9958,52 @@ const fh = (e) => { loadingIndicator: F, loadingPosition: v, size: E, - type: k, + type: N, variant: L - }, A = fh(p), P = (w || O && v === "start") && /* @__PURE__ */ $.jsx(mh, { - className: A.startIcon, + }, _ = fh(p), A = (w || O && v === "start") && /* @__PURE__ */ k.jsx(mh, { + className: _.startIcon, ownerState: p, - children: w || /* @__PURE__ */ $.jsx(_a, { - className: A.loadingIconPlaceholder, + children: w || /* @__PURE__ */ k.jsx(_a, { + className: _.loadingIconPlaceholder, ownerState: p }) - }), D = (g || O && v === "end") && /* @__PURE__ */ $.jsx(hh, { - className: A.endIcon, + }), M = (g || O && v === "end") && /* @__PURE__ */ k.jsx(hh, { + className: _.endIcon, ownerState: p, - children: g || /* @__PURE__ */ $.jsx(_a, { - className: A.loadingIconPlaceholder, + children: g || /* @__PURE__ */ k.jsx(_a, { + className: _.loadingIconPlaceholder, ownerState: p }) - }), j = i || "", H = typeof O == "boolean" ? ( + }), j = i || "", q = typeof O == "boolean" ? ( // use plain HTML span to minimize the runtime overhead - /* @__PURE__ */ $.jsx("span", { - className: A.loadingWrapper, + /* @__PURE__ */ k.jsx("span", { + className: _.loadingWrapper, style: { display: "contents" }, - children: O && /* @__PURE__ */ $.jsx(yh, { - className: A.loadingIndicator, + children: O && /* @__PURE__ */ k.jsx(yh, { + className: _.loadingIndicator, ownerState: p, children: F }) }) ) : null, { root: te, - ...G - } = A; - return /* @__PURE__ */ $.jsxs(ph, { + ...K + } = _; + return /* @__PURE__ */ k.jsxs(ph, { ownerState: p, - className: ue(r.className, A.root, d, j), + className: ue(r.className, _.root, d, j), component: u, disabled: h || O, focusRipple: !m, - focusVisibleClassName: ue(A.focusVisible, f), + focusVisibleClassName: ue(_.focusVisible, f), ref: n, - type: k, - id: O ? W : S, + type: N, + id: O ? H : S, ...z, - classes: G, - children: [P, v !== "end" && H, l, v === "end" && H, D] + classes: K, + children: [A, v !== "end" && q, l, v === "end" && q, M] }); }); process.env.NODE_ENV !== "production" && (ki.propTypes = { @@ -10303,21 +10303,21 @@ function lo(e) { }, [l]), x.useEffect(() => { if (!l || !g.current) return; - const T = gt(g.current), v = (k) => { - if (y.current = k, r || !a() || k.key !== "Tab") + const T = gt(g.current), v = (N) => { + if (y.current = N, r || !a() || N.key !== "Tab") return; - An(T) === g.current && k.shiftKey && (c.current = !0, d.current && d.current.focus()); + An(T) === g.current && N.shiftKey && (c.current = !0, d.current && d.current.focus()); }, E = () => { - var W, F; - const k = g.current; - if (k === null) + var H, F; + const N = g.current; + if (N === null) return; const L = An(T); if (!T.hasFocus() || !a() || c.current) { c.current = !1; return; } - if (Ra(k, L) || r && L !== u.current && L !== d.current) + if (Ra(N, L) || r && L !== u.current && L !== d.current) return; if (L !== b.current) b.current = null; @@ -10327,15 +10327,15 @@ function lo(e) { return; let z = []; if ((L === u.current || L === d.current) && (z = s(g.current)), z.length > 0) { - const p = !!((W = y.current) != null && W.shiftKey && ((F = y.current) == null ? void 0 : F.key) === "Tab"), A = z[0], P = z[z.length - 1]; - typeof A != "string" && typeof P != "string" && (p ? P.focus() : A.focus()); + const p = !!((H = y.current) != null && H.shiftKey && ((F = y.current) == null ? void 0 : F.key) === "Tab"), _ = z[0], A = z[z.length - 1]; + typeof _ != "string" && typeof A != "string" && (p ? A.focus() : _.focus()); } else - k.focus(); + N.focus(); }; T.addEventListener("focusin", E), T.addEventListener("keydown", v, !0); const w = setInterval(() => { - const k = An(T); - k && k.tagName === "BODY" && E(); + const N = An(T); + N && N.tagName === "BODY" && E(); }, 50); return () => { clearInterval(w), T.removeEventListener("focusin", E), T.removeEventListener("keydown", v, !0); @@ -10348,8 +10348,8 @@ function lo(e) { }, O = (T) => { h.current === null && (h.current = T.relatedTarget), m.current = !0; }; - return /* @__PURE__ */ $.jsxs(x.Fragment, { - children: [/* @__PURE__ */ $.jsx("div", { + return /* @__PURE__ */ k.jsxs(x.Fragment, { + children: [/* @__PURE__ */ k.jsx("div", { tabIndex: l ? 0 : -1, onFocus: O, ref: u, @@ -10357,7 +10357,7 @@ function lo(e) { }), /* @__PURE__ */ x.cloneElement(t, { ref: f, onFocus: S - }), /* @__PURE__ */ $.jsx("div", { + }), /* @__PURE__ */ k.jsx("div", { tabIndex: l ? 0 : -1, onFocus: O, ref: d, @@ -10448,10 +10448,10 @@ function Ih(e) { disableScrollLock: r }), m.current && (m.current.scrollTop = 0); }, w = ln(() => { - const D = _h(t) || T().body; - Dr.add(v(), D), m.current && E(); - }), k = () => Dr.isTopModal(v()), L = ln((D) => { - b.current = D, D && (u && k() ? E() : m.current && ar(m.current, O)); + const M = _h(t) || T().body; + Dr.add(v(), M), m.current && E(); + }), N = () => Dr.isTopModal(v()), L = ln((M) => { + b.current = M, M && (u && N() ? E() : m.current && ar(m.current, O)); }), z = x.useCallback(() => { Dr.remove(v(), O); }, [O]); @@ -10460,21 +10460,21 @@ function Ih(e) { }, [z]), x.useEffect(() => { u ? w() : (!S || !i) && z(); }, [u, z, S, i, w]); - const W = (D) => (j) => { - var H; - (H = D.onKeyDown) == null || H.call(D, j), !(j.key !== "Escape" || j.which === 229 || // Wait until IME is settled. - !k()) && (n || (j.stopPropagation(), c && c(j, "escapeKeyDown"))); - }, F = (D) => (j) => { - var H; - (H = D.onClick) == null || H.call(D, j), j.target === j.currentTarget && c && c(j, "backdropClick"); + const H = (M) => (j) => { + var q; + (q = M.onKeyDown) == null || q.call(M, j), !(j.key !== "Escape" || j.which === 229 || // Wait until IME is settled. + !N()) && (n || (j.stopPropagation(), c && c(j, "escapeKeyDown"))); + }, F = (M) => (j) => { + var q; + (q = M.onClick) == null || q.call(M, j), j.target === j.currentTarget && c && c(j, "backdropClick"); }; return { - getRootProps: (D = {}) => { + getRootProps: (M = {}) => { const j = Zl(e); delete j.onTransitionEnter, delete j.onTransitionExited; - const H = { + const q = { ...j, - ...D + ...M }; return { /* @@ -10484,13 +10484,13 @@ function Ih(e) { * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md */ role: "presentation", - ...H, - onKeyDown: W(H), + ...q, + onKeyDown: H(q), ref: g }; }, - getBackdropProps: (D = {}) => { - const j = D; + getBackdropProps: (M = {}) => { + const j = M; return { "aria-hidden": !0, ...j, @@ -10499,19 +10499,19 @@ function Ih(e) { }; }, getTransitionProps: () => { - const D = () => { + const M = () => { y(!1), s && s(); }, j = () => { y(!0), a && a(), i && z(); }; return { - onEnter: ma(D, (l == null ? void 0 : l.props.onEnter) ?? Na), + onEnter: ma(M, (l == null ? void 0 : l.props.onEnter) ?? Na), onExited: ma(j, (l == null ? void 0 : l.props.onExited) ?? Na) }; }, rootRef: g, portalRef: L, - isTopModal: k, + isTopModal: N, exited: f, hasTransition: S }; @@ -10585,15 +10585,15 @@ const kh = (e) => { hideBackdrop: v = !1, keepMounted: E = !1, onClose: w, - onTransitionEnter: k, + onTransitionEnter: N, onTransitionExited: L, open: z, - slotProps: W = {}, + slotProps: H = {}, slots: F = {}, // eslint-disable-next-line react/prop-types theme: p, - ...A - } = r, P = { + ..._ + } = r, A = { ...r, closeAfterTransition: c, disableAutoFocus: g, @@ -10605,28 +10605,28 @@ const kh = (e) => { hideBackdrop: v, keepMounted: E }, { - getRootProps: D, + getRootProps: M, getBackdropProps: j, - getTransitionProps: H, + getTransitionProps: q, portalRef: te, - isTopModal: G, - exited: N, - hasTransition: I + isTopModal: K, + exited: I, + hasTransition: D } = Ih({ - ...P, + ...A, rootRef: n - }), X = { - ...P, - exited: N - }, B = kh(X), Y = {}; - if (u.props.tabIndex === void 0 && (Y.tabIndex = "-1"), I) { + }), W = { + ...A, + exited: I + }, B = kh(W), X = {}; + if (u.props.tabIndex === void 0 && (X.tabIndex = "-1"), D) { const { onEnter: V, onExited: ne - } = H(); - Y.onEnter = V, Y.onExited = ne; + } = q(); + X.onEnter = V, X.onExited = ne; } - const q = { + const Q = { slots: { root: b.Root, backdrop: b.Backdrop, @@ -10634,23 +10634,23 @@ const kh = (e) => { }, slotProps: { ...m, - ...W + ...H } - }, [Q, J] = Fe("root", { + }, [G, J] = Fe("root", { ref: n, elementType: $h, externalForwardedProps: { - ...q, - ...A, + ...Q, + ..._, component: h }, - getSlotProps: D, - ownerState: X, - className: ue(l, B == null ? void 0 : B.root, !X.open && X.exited && (B == null ? void 0 : B.hidden)) - }), [K, Z] = Fe("backdrop", { + getSlotProps: M, + ownerState: W, + className: ue(l, B == null ? void 0 : B.root, !W.open && W.exited && (B == null ? void 0 : B.hidden)) + }), [Y, Z] = Fe("backdrop", { ref: s == null ? void 0 : s.ref, elementType: i, - externalForwardedProps: q, + externalForwardedProps: Q, shouldForwardComponentProp: !0, additionalProps: s, getSlotProps: (V) => j({ @@ -10660,23 +10660,23 @@ const kh = (e) => { } }), className: ue(s == null ? void 0 : s.className, B == null ? void 0 : B.backdrop), - ownerState: X + ownerState: W }); - return !E && !z && (!I || N) ? null : /* @__PURE__ */ $.jsx(oo, { + return !E && !z && (!D || I) ? null : /* @__PURE__ */ k.jsx(oo, { ref: te, container: d, disablePortal: S, - children: /* @__PURE__ */ $.jsxs(Q, { + children: /* @__PURE__ */ k.jsxs(G, { ...J, - children: [!v && i ? /* @__PURE__ */ $.jsx(K, { + children: [!v && i ? /* @__PURE__ */ k.jsx(Y, { ...Z - }) : null, /* @__PURE__ */ $.jsx(lo, { + }) : null, /* @__PURE__ */ k.jsx(lo, { disableEnforceFocus: f, disableAutoFocus: g, disableRestoreFocus: O, - isEnabled: G, + isEnabled: K, open: z, - children: /* @__PURE__ */ x.cloneElement(u, Y) + children: /* @__PURE__ */ x.cloneElement(u, X) })] }) }); @@ -11044,61 +11044,61 @@ const jh = ie(ls, { PaperComponent: v = Io, PaperProps: E = {}, role: w = "dialog", - scroll: k = "paper", + scroll: N = "paper", slots: L = {}, slotProps: z = {}, - TransitionComponent: W = ao, + TransitionComponent: H = ao, transitionDuration: F = s, TransitionProps: p, - ...A - } = r, P = { + ..._ + } = r, A = { ...r, disableEscapeKeyDown: m, fullScreen: g, fullWidth: f, maxWidth: y, - scroll: k - }, D = Lh(P), j = x.useRef(), H = (re) => { + scroll: N + }, M = Lh(A), j = x.useRef(), q = (re) => { j.current = re.target === re.currentTarget; }, te = (re) => { S && S(re), j.current && (j.current = null, O && O(re, "backdropClick")); - }, G = Tr(l), N = x.useMemo(() => ({ - titleId: G - }), [G]), I = { - transition: W, + }, K = Tr(l), I = x.useMemo(() => ({ + titleId: K + }), [K]), D = { + transition: H, ...L - }, X = { + }, W = { transition: p, paper: E, backdrop: d, ...z }, B = { - slots: I, - slotProps: X - }, [Y, q] = Fe("root", { + slots: D, + slotProps: W + }, [X, Q] = Fe("root", { elementType: Bh, shouldForwardComponentProp: !0, externalForwardedProps: B, - ownerState: P, - className: ue(D.root, b), + ownerState: A, + className: ue(M.root, b), ref: n - }), [Q, J] = Fe("backdrop", { + }), [G, J] = Fe("backdrop", { elementType: jh, shouldForwardComponentProp: !0, externalForwardedProps: B, - ownerState: P, - className: D.backdrop - }), [K, Z] = Fe("paper", { + ownerState: A, + className: M.backdrop + }), [Y, Z] = Fe("paper", { elementType: Uh, shouldForwardComponentProp: !0, externalForwardedProps: B, - ownerState: P, - className: D.paper, + ownerState: A, + className: M.paper, additionalProps: { elevation: 24, role: w, "aria-describedby": a, - "aria-labelledby": G, + "aria-labelledby": K, "aria-modal": c, tabIndex: -1, [$i]: "" @@ -11106,12 +11106,12 @@ const jh = ie(ls, { }), [V, ne] = Fe("container", { elementType: Fh, externalForwardedProps: B, - ownerState: P, - className: D.container - }), [_, de] = Fe("transition", { + ownerState: A, + className: M.container + }), [P, de] = Fe("transition", { elementType: ao, externalForwardedProps: B, - ownerState: P, + ownerState: A, additionalProps: { appear: !0, in: T, @@ -11119,10 +11119,10 @@ const jh = ie(ls, { role: "presentation" } }); - return /* @__PURE__ */ $.jsx(Y, { + return /* @__PURE__ */ k.jsx(X, { closeAfterTransition: !0, slots: { - backdrop: Q + backdrop: G }, slotProps: { backdrop: { @@ -11135,18 +11135,18 @@ const jh = ie(ls, { onClose: O, open: T, onClick: te, - ...q, - ...A, - children: /* @__PURE__ */ $.jsx(_, { + ...Q, + ..._, + children: /* @__PURE__ */ k.jsx(P, { ...de, - children: /* @__PURE__ */ $.jsx(V, { - onMouseDown: H, + children: /* @__PURE__ */ k.jsx(V, { + onMouseDown: q, ...ne, - children: /* @__PURE__ */ $.jsx(K, { + children: /* @__PURE__ */ k.jsx(Y, { as: v, ...Z, - children: /* @__PURE__ */ $.jsx(us.Provider, { - value: N, + children: /* @__PURE__ */ k.jsx(us.Provider, { + value: I, children: h }) }) @@ -11365,7 +11365,7 @@ const zh = (e) => { ...r, disableSpacing: s }, c = zh(l); - return /* @__PURE__ */ $.jsx(Wh, { + return /* @__PURE__ */ k.jsx(Wh, { className: ue(c.root, i), ownerState: l, ref: n, @@ -11462,7 +11462,7 @@ const Gh = Ee("MuiDialogTitle", ["root"]), Yh = (e) => { ...r, dividers: s }, c = Yh(l); - return /* @__PURE__ */ $.jsx(Kh, { + return /* @__PURE__ */ k.jsx(Kh, { className: ue(c.root, i), ownerState: l, ref: n, @@ -11520,7 +11520,7 @@ const Xh = (e) => { } = r, l = r, c = Xh(l), { titleId: u = s } = x.useContext(us); - return /* @__PURE__ */ $.jsx(Jh, { + return /* @__PURE__ */ k.jsx(Jh, { component: "h2", className: ue(c.root, i), ownerState: l, @@ -11834,7 +11834,7 @@ const Qh = (e) => { ownerState: f } }, O = h ?? a ? et(S, h ?? a) : S, T = b.root ?? s.Root ?? Zh, v = b.input ?? s.Input ?? ey; - return /* @__PURE__ */ $.jsx(jo, { + return /* @__PURE__ */ k.jsx(jo, { slots: { root: T, input: v @@ -12132,38 +12132,38 @@ const ny = (e) => { variant: y }, T = ny(O), [v, E] = x.useState(() => { let j = !1; - return i && x.Children.forEach(i, (H) => { - if (!oi(H, ["Input", "Select"])) + return i && x.Children.forEach(i, (q) => { + if (!oi(q, ["Input", "Select"])) return; - const te = oi(H, ["Select"]) ? H.props.input : H; + const te = oi(q, ["Select"]) ? q.props.input : q; te && Qm(te.props) && (j = !0); }), j; - }), [w, k] = x.useState(() => { + }), [w, N] = x.useState(() => { let j = !1; - return i && x.Children.forEach(i, (H) => { - oi(H, ["Input", "Select"]) && (io(H.props, !0) || io(H.props.inputProps, !0)) && (j = !0); + return i && x.Children.forEach(i, (q) => { + oi(q, ["Input", "Select"]) && (io(q.props, !0) || io(q.props.inputProps, !0)) && (j = !0); }), j; }), [L, z] = x.useState(!1); c && L && z(!1); - const W = d !== void 0 && !c ? d : L; + const H = d !== void 0 && !c ? d : L; let F; const p = x.useRef(!1); process.env.NODE_ENV !== "production" && (F = () => (p.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(` `)), p.current = !0, () => { p.current = !1; })); - const A = x.useCallback(() => { - k(!0); - }, []), P = x.useCallback(() => { - k(!1); - }, []), D = x.useMemo(() => ({ + const _ = x.useCallback(() => { + N(!0); + }, []), A = x.useCallback(() => { + N(!1); + }, []), M = x.useMemo(() => ({ adornedStart: v, setAdornedStart: E, color: a, disabled: c, error: u, filled: w, - focused: W, + focused: H, fullWidth: h, hiddenLabel: b, size: f, @@ -12173,15 +12173,15 @@ const ny = (e) => { onFocus: () => { z(!0); }, - onEmpty: P, - onFilled: A, + onEmpty: A, + onFilled: _, registerEffect: F, required: g, variant: y - }), [v, a, c, u, w, W, h, b, F, P, A, g, f, y]); - return /* @__PURE__ */ $.jsx(Rr.Provider, { - value: D, - children: /* @__PURE__ */ $.jsx(ry, { + }), [v, a, c, u, w, H, h, b, F, A, _, g, f, y]); + return /* @__PURE__ */ k.jsx(Rr.Provider, { + value: M, + children: /* @__PURE__ */ k.jsx(ry, { as: l, ownerState: O, className: ue(T.root, s), @@ -12365,7 +12365,7 @@ const iy = (e) => { }; delete S.ownerState; const O = iy(S); - return /* @__PURE__ */ $.jsx(sy, { + return /* @__PURE__ */ k.jsx(sy, { as: a, className: ue(O.root, s), ref: n, @@ -12373,7 +12373,7 @@ const iy = (e) => { ownerState: S, children: i === " " ? ( // notranslate needed while Google Translate will not fix zero-width space issue - $a || ($a = /* @__PURE__ */ $.jsx("span", { + $a || ($a = /* @__PURE__ */ k.jsx("span", { className: "notranslate", "aria-hidden": !0, children: "​" @@ -12531,13 +12531,13 @@ const lr = Ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", focused: f.focused, required: f.required }, S = ly(y); - return /* @__PURE__ */ $.jsxs(cy, { + return /* @__PURE__ */ k.jsxs(cy, { as: l, ownerState: y, className: ue(S.root, s), ref: n, ...m, - children: [i, f.required && /* @__PURE__ */ $.jsxs(uy, { + children: [i, f.required && /* @__PURE__ */ k.jsxs(uy, { ownerState: y, "aria-hidden": !0, className: S.asterisk, @@ -12638,12 +12638,12 @@ const dy = { style: g, timeout: f = "auto", ...y - } = t, S = Yl(), O = x.useRef(), T = Ao(), v = x.useRef(null), E = rt(v, xr(s), n), w = yt(v, d), k = yt(v, (A, P) => { - Kl(A); + } = t, S = Yl(), O = x.useRef(), T = Ao(), v = x.useRef(null), E = rt(v, xr(s), n), w = yt(v, d), N = yt(v, (_, A) => { + Kl(_); const { - duration: D, + duration: M, delay: j, - easing: H + easing: q } = to({ style: g, timeout: f, @@ -12652,18 +12652,18 @@ const dy = { mode: "enter" }); let te; - f === "auto" ? (te = T.transitions.getAutoHeightDuration(A.clientHeight), O.current = te) : te = D, A.style.transition = [T.transitions.create("opacity", { + f === "auto" ? (te = T.transitions.getAutoHeightDuration(_.clientHeight), O.current = te) : te = M, _.style.transition = [T.transitions.create("opacity", { duration: te, delay: j }), T.transitions.create("transform", { duration: te * 0.666, delay: j, - easing: H - })].join(","), c && c(A, P); - }), L = yt(v, u), z = yt(v, m), W = yt(v, (A) => { + easing: q + })].join(","), c && c(_, A); + }), L = yt(v, u), z = yt(v, m), H = yt(v, (_) => { const { - duration: P, - delay: D, + duration: A, + delay: M, easing: j } = to({ style: g, @@ -12672,42 +12672,42 @@ const dy = { }, { mode: "exit" }); - let H; - f === "auto" ? (H = T.transitions.getAutoHeightDuration(A.clientHeight), O.current = H) : H = P, A.style.transition = [T.transitions.create("opacity", { - duration: H, - delay: D + let q; + f === "auto" ? (q = T.transitions.getAutoHeightDuration(_.clientHeight), O.current = q) : q = A, _.style.transition = [T.transitions.create("opacity", { + duration: q, + delay: M }), T.transitions.create("transform", { - duration: H * 0.666, - delay: D || H * 0.333, + duration: q * 0.666, + delay: M || q * 0.333, easing: j - })].join(","), A.style.opacity = 0, A.style.transform = cr(0.75), h && h(A); - }), F = yt(v, (A) => { - A.style.transition = "", b && b(A); - }), p = (A) => { - f === "auto" && S.start(O.current || 0, A), r && r(v.current, A); + })].join(","), _.style.opacity = 0, _.style.transform = cr(0.75), h && h(_); + }), F = yt(v, (_) => { + _.style.transition = "", b && b(_); + }), p = (_) => { + f === "auto" && S.start(O.current || 0, _), r && r(v.current, _); }; - return /* @__PURE__ */ $.jsx(It, { + return /* @__PURE__ */ k.jsx(It, { appear: i, in: l, nodeRef: v, - onEnter: k, + onEnter: N, onEntered: L, onEntering: w, - onExit: W, + onExit: H, onExited: F, onExiting: z, addEndListener: p, timeout: f === "auto" ? null : f, ...y, - children: (A, { - ownerState: P, - ...D + children: (_, { + ownerState: A, + ...M }) => { - const j = Xl(A, l, dy, fy, g, s.props.style); + const j = Xl(_, l, dy, fy, g, s.props.style); return /* @__PURE__ */ x.cloneElement(s, { style: j, ref: E, - ...D + ...M }); } }); @@ -12916,7 +12916,7 @@ const py = (e) => { } } }, S = d ?? a ? et(d ?? a, y) : y, O = h.root ?? s.Root ?? my, T = h.input ?? s.Input ?? hy; - return /* @__PURE__ */ $.jsx(jo, { + return /* @__PURE__ */ k.jsx(jo, { slots: { root: O, input: T @@ -13206,21 +13206,21 @@ const gy = (e, t) => { position: u, variant: m }, f = by(g); - return /* @__PURE__ */ $.jsx(Rr.Provider, { + return /* @__PURE__ */ k.jsx(Rr.Provider, { value: null, - children: /* @__PURE__ */ $.jsx(vy, { + children: /* @__PURE__ */ k.jsx(vy, { as: a, ownerState: g, className: ue(f.root, s), ref: n, ...h, - children: typeof i == "string" && !c ? /* @__PURE__ */ $.jsx(Bt, { + children: typeof i == "string" && !c ? /* @__PURE__ */ k.jsx(Bt, { color: "textSecondary", children: i - }) : /* @__PURE__ */ $.jsxs(x.Fragment, { + }) : /* @__PURE__ */ k.jsxs(x.Fragment, { children: [u === "start" ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */ - Da || (Da = /* @__PURE__ */ $.jsx("span", { + Da || (Da = /* @__PURE__ */ k.jsx("span", { className: "notranslate", "aria-hidden": !0, children: "​" @@ -13462,7 +13462,7 @@ const Sy = (e) => { required: b.required, focused: b.focused }, g = Sy(m); - return /* @__PURE__ */ $.jsx(Ty, { + return /* @__PURE__ */ k.jsx(Ty, { "data-shrink": h, ref: n, className: ue(g.root, c), @@ -13604,9 +13604,9 @@ const Ry = (e) => { dense: l, disablePadding: c }, m = Ry(b); - return /* @__PURE__ */ $.jsx(hr.Provider, { + return /* @__PURE__ */ k.jsx(hr.Provider, { value: h, - children: /* @__PURE__ */ $.jsxs(Oy, { + children: /* @__PURE__ */ k.jsxs(Oy, { as: a, className: ue(m.root, s), ref: n, @@ -13799,9 +13799,9 @@ const Qn = Ee("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems root: v, ...E } = T, w = rt(S, n); - return /* @__PURE__ */ $.jsx(hr.Provider, { + return /* @__PURE__ */ k.jsx(hr.Provider, { value: y, - children: /* @__PURE__ */ $.jsx(_y, { + children: /* @__PURE__ */ k.jsx(_y, { ref: w, href: g.href || g.to, component: (g.href || g.to) && a === "div" ? "button" : a, @@ -13992,28 +13992,28 @@ const jr = Ee("MuiListItemText", ["root", "multiline", "dense", "inset", "primar }, ownerState: O, ref: n - }), [k, L] = Fe("primary", { + }), [N, L] = Fe("primary", { className: T.primary, elementType: Bt, externalForwardedProps: v, ownerState: O - }), [z, W] = Fe("secondary", { + }), [z, H] = Fe("secondary", { className: T.secondary, elementType: Bt, externalForwardedProps: v, ownerState: O }); - return y != null && y.type !== Bt && !a && (y = /* @__PURE__ */ $.jsx(k, { + return y != null && y.type !== Bt && !a && (y = /* @__PURE__ */ k.jsx(N, { variant: f ? "body2" : "body1", component: L != null && L.variant ? void 0 : "span", ...L, children: y - })), S != null && S.type !== Bt && !a && (S = /* @__PURE__ */ $.jsx(z, { + })), S != null && S.type !== Bt && !a && (S = /* @__PURE__ */ k.jsx(z, { variant: "body2", color: "textSecondary", - ...W, + ...H, children: S - })), /* @__PURE__ */ $.jsxs(E, { + })), /* @__PURE__ */ k.jsxs(E, { ...w, children: [y, S] }); @@ -14160,20 +14160,20 @@ const wc = /* @__PURE__ */ x.forwardRef(function(t, n) { d && d(T); return; } - const k = An(gt(v)); + const N = An(gt(v)); if (E === "ArrowDown") - T.preventDefault(), Zn(v, k, u, c, li); + T.preventDefault(), Zn(v, N, u, c, li); else if (E === "ArrowUp") - T.preventDefault(), Zn(v, k, u, c, ja); + T.preventDefault(), Zn(v, N, u, c, ja); else if (E === "Home") T.preventDefault(), Zn(v, null, u, c, li); else if (E === "End") T.preventDefault(), Zn(v, null, u, c, ja); else if (E.length === 1) { - const L = g.current, z = E.toLowerCase(), W = performance.now(); - L.keys.length > 0 && (W - L.lastTime > 500 ? (L.keys = [], L.repeating = !0, L.previousKeyMatched = !0) : L.repeating && z !== L.keys[0] && (L.repeating = !1)), L.lastTime = W, L.keys.push(z); - const F = k && !L.repeating && Oc(k, L); - L.previousKeyMatched && (F || Zn(v, k, !1, c, li, L)) ? T.preventDefault() : L.previousKeyMatched = !1; + const L = g.current, z = E.toLowerCase(), H = performance.now(); + L.keys.length > 0 && (H - L.lastTime > 500 ? (L.keys = [], L.repeating = !0, L.previousKeyMatched = !0) : L.repeating && z !== L.keys[0] && (L.repeating = !1)), L.lastTime = H, L.keys.push(z); + const F = N && !L.repeating && Oc(N, L); + L.previousKeyMatched && (F || Zn(v, N, !1, c, li, L)) ? T.preventDefault() : L.previousKeyMatched = !1; } d && d(T); }, y = rt(m, n); @@ -14193,7 +14193,7 @@ const wc = /* @__PURE__ */ x.forwardRef(function(t, n) { } return T; }); - return /* @__PURE__ */ $.jsx(ds, { + return /* @__PURE__ */ k.jsx(ds, { role: "menu", ref: y, className: l, @@ -14325,7 +14325,7 @@ const $y = (e) => { TransitionProps: E = {}, // TODO: remove in v7 disableScrollLock: w = !1, - ...k + ...N } = r, L = x.useRef(), z = { ...r, anchorOrigin: a, @@ -14336,68 +14336,68 @@ const $y = (e) => { TransitionComponent: T, transitionDuration: v, TransitionProps: E - }, W = $y(z), F = x.useCallback(() => { + }, H = $y(z), F = x.useCallback(() => { if (c === "anchorPosition") return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using .')), l; - const V = ir(s), ne = V && V.nodeType === 1 ? V : gt(L.current).body, _ = ne.getBoundingClientRect(); + const V = ir(s), ne = V && V.nodeType === 1 ? V : gt(L.current).body, P = ne.getBoundingClientRect(); if (process.env.NODE_ENV !== "production") { const de = ne.getBoundingClientRect(); ac() && de.top === 0 && de.left === 0 && de.right === 0 && de.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } return { - top: _.top + La(_, a.vertical), - left: _.left + Ba(_, a.horizontal) + top: P.top + La(P, a.vertical), + left: P.left + Ba(P, a.horizontal) }; }, [s, a.horizontal, a.vertical, l, c]), p = x.useCallback((V) => ({ vertical: La(V, O.vertical), horizontal: Ba(V, O.horizontal) - }), [O.horizontal, O.vertical]), A = x.useCallback((V) => { + }), [O.horizontal, O.vertical]), _ = x.useCallback((V) => { const ne = { width: V.offsetWidth, height: V.offsetHeight - }, _ = p(ne); + }, P = p(ne); if (c === "none") return { top: null, left: null, - transformOrigin: Fa(_) + transformOrigin: Fa(P) }; const de = F(); - let re = de.top - _.vertical, me = de.left - _.horizontal; + let re = de.top - P.vertical, me = de.left - P.horizontal; const $e = re + ne.height, Me = me + ne.width, De = zt(ir(s)), Ke = De.innerHeight - m, at = De.innerWidth - m; if (m !== null && re < m) { const je = re - m; - re -= je, _.vertical += je; + re -= je, P.vertical += je; } else if (m !== null && $e > Ke) { const je = $e - Ke; - re -= je, _.vertical += je; + re -= je, P.vertical += je; } if (process.env.NODE_ENV !== "production" && ne.height > Ke && ne.height && Ke && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${ne.height - Ke}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(` `)), m !== null && me < m) { const je = me - m; - me -= je, _.horizontal += je; + me -= je, P.horizontal += je; } else if (Me > at) { const je = Me - at; - me -= je, _.horizontal += je; + me -= je, P.horizontal += je; } return { top: `${Math.round(re)}px`, left: `${Math.round(me)}px`, - transformOrigin: Fa(_) + transformOrigin: Fa(P) }; - }, [s, c, F, p, m]), [P, D] = x.useState(g), j = x.useCallback(() => { + }, [s, c, F, p, m]), [A, M] = x.useState(g), j = x.useCallback(() => { const V = L.current; if (!V) return; - const ne = A(V); - ne.top !== null && V.style.setProperty("top", ne.top), ne.left !== null && (V.style.left = ne.left), V.style.transformOrigin = ne.transformOrigin, D(!0); - }, [A]); + const ne = _(V); + ne.top !== null && V.style.setProperty("top", ne.top), ne.left !== null && (V.style.left = ne.left), V.style.transformOrigin = ne.transformOrigin, M(!0); + }, [_]); x.useEffect(() => (w && window.addEventListener("scroll", j), () => window.removeEventListener("scroll", j)), [s, w, j]); - const H = () => { + const q = () => { j(); }, te = () => { - D(!1); + M(!1); }; x.useEffect(() => { g && j(); @@ -14415,8 +14415,8 @@ const $y = (e) => { V.clear(), ne.removeEventListener("resize", V); }; }, [s, g, j]); - let G = v; - const N = { + let K = v; + const I = { slots: { transition: T, ...y @@ -14426,19 +14426,19 @@ const $y = (e) => { paper: f, ...S } - }, [I, X] = Fe("transition", { + }, [D, W] = Fe("transition", { elementType: co, - externalForwardedProps: N, + externalForwardedProps: I, ownerState: z, getSlotProps: (V) => ({ ...V, - onEntering: (ne, _) => { + onEntering: (ne, P) => { var de; - (de = V.onEntering) == null || de.call(V, ne, _), H(); + (de = V.onEntering) == null || de.call(V, ne, P), q(); }, onExited: (ne) => { - var _; - (_ = V.onExited) == null || _.call(V, ne), te(); + var P; + (P = V.onExited) == null || P.call(V, ne), te(); } }), additionalProps: { @@ -14446,17 +14446,17 @@ const $y = (e) => { in: g } }); - v === "auto" && !I.muiSupportAuto && (G = void 0); - const B = h || (s ? gt(ir(s)).body : void 0), [Y, { - slots: q, - slotProps: Q, + v === "auto" && !D.muiSupportAuto && (K = void 0); + const B = h || (s ? gt(ir(s)).body : void 0), [X, { + slots: Q, + slotProps: G, ...J }] = Fe("root", { ref: n, elementType: My, externalForwardedProps: { - ...N, - ...k + ...I, + ...N }, shouldForwardComponentProp: !0, additionalProps: { @@ -14472,32 +14472,32 @@ const $y = (e) => { open: g }, ownerState: z, - className: ue(W.root, d) - }), [K, Z] = Fe("paper", { + className: ue(H.root, d) + }), [Y, Z] = Fe("paper", { ref: L, - className: W.paper, + className: H.paper, elementType: Cc, - externalForwardedProps: N, + externalForwardedProps: I, shouldForwardComponentProp: !0, additionalProps: { elevation: b, - style: P ? void 0 : { + style: A ? void 0 : { opacity: 0 } }, ownerState: z }); - return /* @__PURE__ */ $.jsx(Y, { + return /* @__PURE__ */ k.jsx(X, { ...J, - ...!no(Y) && { - slots: q, - slotProps: Q, + ...!no(X) && { + slots: Q, + slotProps: G, disableScrollLock: w }, - children: /* @__PURE__ */ $.jsx(I, { - ...X, - timeout: G, - children: /* @__PURE__ */ $.jsx(K, { + children: /* @__PURE__ */ k.jsx(D, { + ...W, + timeout: K, + children: /* @__PURE__ */ k.jsx(Y, { ...Z, children: u }) @@ -14775,17 +14775,17 @@ const jy = { transitionDuration: m, TransitionProps: f, variant: y - }, w = By(E), k = i && !l && d, L = x.useRef(null), z = (G, N) => { - L.current && L.current.adjustStyleForScrollbar(G, { + }, w = By(E), N = i && !l && d, L = x.useRef(null), z = (K, I) => { + L.current && L.current.adjustStyleForScrollbar(K, { direction: v ? "rtl" : "ltr" - }), g && g(G, N); - }, W = (G) => { - G.key === "Tab" && (G.preventDefault(), u && u(G, "tabKeyDown")); + }), g && g(K, I); + }, H = (K) => { + K.key === "Tab" && (K.preventDefault(), u && u(K, "tabKeyDown")); }; let F = -1; - x.Children.map(s, (G, N) => { - /* @__PURE__ */ x.isValidElement(G) && (process.env.NODE_ENV !== "production" && un.isFragment(G) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` -`)), G.props.disabled || (y === "selectedMenu" && G.props.selected || F === -1) && (F = N)); + x.Children.map(s, (K, I) => { + /* @__PURE__ */ x.isValidElement(K) && (process.env.NODE_ENV !== "production" && un.isFragment(K) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` +`)), K.props.disabled || (y === "selectedMenu" && K.props.selected || F === -1) && (F = I)); }); const p = { slots: S, @@ -14795,32 +14795,32 @@ const jy = { paper: h, ...O } - }, A = Ym({ + }, _ = Ym({ elementType: S.root, externalSlotProps: O.root, ownerState: E, className: [w.root, a] - }), [P, D] = Fe("paper", { + }), [A, M] = Fe("paper", { className: w.paper, elementType: Uy, externalForwardedProps: p, shouldForwardComponentProp: !0, ownerState: E - }), [j, H] = Fe("list", { + }), [j, q] = Fe("list", { className: ue(w.list, c.className), elementType: Vy, shouldForwardComponentProp: !0, externalForwardedProps: p, - getSlotProps: (G) => ({ - ...G, - onKeyDown: (N) => { - var I; - W(N), (I = G.onKeyDown) == null || I.call(G, N); + getSlotProps: (K) => ({ + ...K, + onKeyDown: (I) => { + var D; + H(I), (D = K.onKeyDown) == null || D.call(K, I); } }), ownerState: E }), te = typeof p.slotProps.transition == "function" ? p.slotProps.transition(E) : p.slotProps.transition; - return /* @__PURE__ */ $.jsx(Fy, { + return /* @__PURE__ */ k.jsx(Fy, { onClose: u, anchorOrigin: { vertical: "bottom", @@ -14829,7 +14829,7 @@ const jy = { transformOrigin: v ? jy : Ly, slots: { root: S.root, - paper: P, + paper: A, backdrop: S.backdrop, ...S.transition && { // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover @@ -14837,14 +14837,14 @@ const jy = { } }, slotProps: { - root: A, - paper: D, + root: _, + paper: M, backdrop: typeof O.backdrop == "function" ? O.backdrop(E) : O.backdrop, transition: { ...te, - onEntering: (...G) => { - var N; - z(...G), (N = te == null ? void 0 : te.onEntering) == null || N.call(te, ...G); + onEntering: (...K) => { + var I; + z(...K), (I = te == null ? void 0 : te.onEntering) == null || I.call(te, ...K); } } }, @@ -14854,12 +14854,12 @@ const jy = { ownerState: E, ...T, classes: b, - children: /* @__PURE__ */ $.jsx(j, { + children: /* @__PURE__ */ k.jsx(j, { actions: L, autoFocus: i && (F === -1 || l), - autoFocusItem: k, + autoFocusItem: N, variant: y, - ...H, + ...q, children: s }) }); @@ -15130,14 +15130,14 @@ const fs = Ee("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli variant: c, error: s }, h = Wy(d); - return /* @__PURE__ */ $.jsxs(x.Fragment, { - children: [/* @__PURE__ */ $.jsx(Hy, { + return /* @__PURE__ */ k.jsxs(x.Fragment, { + children: [/* @__PURE__ */ k.jsx(Hy, { ownerState: d, className: ue(h.select, r), disabled: i, ref: l || n, ...u - }), t.multiple ? null : /* @__PURE__ */ $.jsx(qy, { + }), t.multiple ? null : /* @__PURE__ */ k.jsx(qy, { as: a, ownerState: d, className: h.icon @@ -15308,43 +15308,43 @@ const Xy = ie(Ac, { onBlur: v, onChange: E, onClose: w, - onFocus: k, + onFocus: N, // eslint-disable-next-line react/prop-types onKeyDown: L, // eslint-disable-next-line react/prop-types onMouseDown: z, - onOpen: W, + onOpen: H, open: F, readOnly: p, - renderValue: A, - required: P, - SelectDisplayProps: D = {}, + renderValue: _, + required: A, + SelectDisplayProps: M = {}, tabIndex: j, // catching `type` from Input which makes no sense for SelectInput - type: H, + type: q, value: te, - variant: G = "standard", - ...N - } = t, [I, X] = ya({ + variant: K = "standard", + ...I + } = t, [D, W] = ya({ controlled: te, default: d, name: "Select" - }), [B, Y] = ya({ + }), [B, X] = ya({ controlled: F, default: u, name: "Select" - }), q = x.useRef(null), Q = x.useRef(null), [J, K] = x.useState(null), { + }), Q = x.useRef(null), G = x.useRef(null), [J, Y] = x.useState(null), { current: Z - } = x.useRef(F != null), [V, ne] = x.useState(), [_, de] = x.useState(null), re = rt(n, f), me = x.useCallback((se) => { - Q.current = se, se && K(se); + } = x.useRef(F != null), [V, ne] = x.useState(), [P, de] = x.useState(null), re = rt(n, f), me = x.useCallback((se) => { + G.current = se, se && Y(se); }, []), $e = J == null ? void 0 : J.parentNode; x.useImperativeHandle(re, () => ({ focus: () => { - Q.current.focus(); + G.current.focus(); }, - node: q.current, - value: I - }), [I]); + node: Q.current, + value: D + }), [D]); const Me = J !== null && B; x.useEffect(() => { if (!Me || !$e || a || typeof ResizeObserver > "u") @@ -15356,16 +15356,16 @@ const Xy = ie(Ac, { se.disconnect(); }; }, [Me, $e, a]), x.useEffect(() => { - u && B && J && !Z && (ne(a ? null : $e.clientWidth), Q.current.focus()); + u && B && J && !Z && (ne(a ? null : $e.clientWidth), G.current.focus()); }, [J, a]), x.useEffect(() => { - s && Q.current.focus(); + s && G.current.focus(); }, [s]), x.useEffect(() => { if (!y) return; - const se = gt(Q.current).getElementById(y); + const se = gt(G.current).getElementById(y); if (se) { const fe = () => { - getSelection().isCollapsed && Q.current.focus(); + getSelection().isCollapsed && G.current.focus(); }; return se.addEventListener("click", fe), () => { se.removeEventListener("click", fe); @@ -15373,24 +15373,24 @@ const Xy = ie(Ac, { } }, [y]); const De = (se, fe) => { - se ? (de(Gy(fe)), W && W(fe)) : (de(null), w && w(fe)), Z || (ne(a ? null : $e.clientWidth), Y(se)); + se ? (de(Gy(fe)), H && H(fe)) : (de(null), w && w(fe)), Z || (ne(a ? null : $e.clientWidth), X(se)); }, Ke = (se) => { - z == null || z(se), se.button === 0 && (se.preventDefault(), Q.current.focus(), De(!0, se)); + z == null || z(se), se.button === 0 && (se.preventDefault(), G.current.focus(), De(!0, se)); }, at = (se) => { De(!1, se); }, je = x.Children.toArray(l), le = (se) => { const fe = je.find((Ye) => Ye.props.value === se.target.value); - fe !== void 0 && (X(fe.props.value), E && E(se, fe)); + fe !== void 0 && (W(fe.props.value), E && E(se, fe)); }, Nt = (se) => (fe) => { let Ye; if (fe.currentTarget.hasAttribute("tabindex")) { if (O) { - Ye = Array.isArray(I) ? I.slice() : []; - const Dt = I.indexOf(se.props.value); + Ye = Array.isArray(D) ? D.slice() : []; + const Dt = D.indexOf(se.props.value); Dt === -1 ? Ye.push(se.props.value) : Ye.splice(Dt, 1); } else Ye = se.props.value; - if (se.props.onClick && se.props.onClick(fe), I !== Ye && (X(Ye), E)) { + if (se.props.onClick && se.props.onClick(fe), D !== Ye && (W(Ye), E)) { const Dt = fe.nativeEvent || fe, Hn = new Dt.constructor(Dt.type, Dt); Object.defineProperty(Hn, "target", { writable: !0, @@ -15415,18 +15415,18 @@ const Xy = ie(Ac, { !Me && v && (Object.defineProperty(se, "target", { writable: !0, value: { - value: I, + value: D, name: T } }), v(se)); }; - delete N["aria-invalid"]; + delete I["aria-invalid"]; let lt, qt; const kt = []; let Et = !1, $t = !1; (io({ - value: I - }) || b) && (A ? lt = A(I) : Et = !0); + value: D + }) || b) && (_ ? lt = _(D) : Et = !0); const ye = je.map((se) => { if (!/* @__PURE__ */ x.isValidElement(se)) return null; @@ -15434,11 +15434,11 @@ const Xy = ie(Ac, { `)); let fe; if (O) { - if (!Array.isArray(I)) + if (!Array.isArray(D)) throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Ft(2)); - fe = I.some((Ye) => Ua(Ye, se.props.value)), fe && Et && kt.push(se.props.children); + fe = D.some((Ye) => Ua(Ye, se.props.value)), fe && Et && kt.push(se.props.children); } else - fe = Ua(I, se.props.value), fe && Et && (qt = se.props.children); + fe = Ua(D, se.props.value), fe && Et && (qt = se.props.children); return fe && ($t = !0), /* @__PURE__ */ x.cloneElement(se, { "aria-selected": fe ? "true" : "false", onClick: Nt(se), @@ -15454,20 +15454,20 @@ const Xy = ie(Ac, { }); }); process.env.NODE_ENV !== "production" && x.useEffect(() => { - if (!$t && !O && I !== "") { + if (!$t && !O && D !== "") { const se = je.map((fe) => fe.props.value); - console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${T ? `(name="${T}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${se.filter((fe) => fe != null).map((fe) => `\`${fe}\``).join(", ") || '""'}.`].join(` + console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${T ? `(name="${T}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${se.filter((fe) => fe != null).map((fe) => `\`${fe}\``).join(", ") || '""'}.`].join(` `)); } - }, [$t, je, O, T, I]), Et && (O ? kt.length === 0 ? lt = null : lt = kt.reduce((se, fe, Ye) => (se.push(fe), Ye < kt.length - 1 && se.push(", "), se), []) : lt = qt); + }, [$t, je, O, T, D]), Et && (O ? kt.length === 0 ? lt = null : lt = kt.reduce((se, fe, Ye) => (se.push(fe), Ye < kt.length - 1 && se.push(", "), se), []) : lt = qt); let St = V; !a && Z && J && (St = $e.clientWidth); let ct; typeof j < "u" ? ct = j : ct = h ? null : 0; - const bn = D.id || (T ? `mui-component-select-${T}` : void 0), Gt = { + const bn = M.id || (T ? `mui-component-select-${T}` : void 0), Gt = { ...t, - variant: G, - value: I, + variant: K, + value: D, open: Me, error: m }, Fn = Zy(Gt), Un = { @@ -15477,8 +15477,8 @@ const Xy = ie(Ac, { ...S.MenuListProps, ...typeof ((En = S.slotProps) == null ? void 0 : En.list) == "function" ? S.slotProps.list(Gt) : (Wn = S.slotProps) == null ? void 0 : Wn.list }, zn = Tr(); - return /* @__PURE__ */ $.jsxs(x.Fragment, { - children: [/* @__PURE__ */ $.jsx(Xy, { + return /* @__PURE__ */ k.jsxs(x.Fragment, { + children: [/* @__PURE__ */ k.jsx(Xy, { as: "div", ref: me, tabIndex: ct, @@ -15490,45 +15490,45 @@ const Xy = ie(Ac, { "aria-label": i, "aria-labelledby": [y, bn].filter(Boolean).join(" ") || void 0, "aria-describedby": r, - "aria-required": P ? "true" : void 0, + "aria-required": A ? "true" : void 0, "aria-invalid": m ? "true" : void 0, onKeyDown: Je, onMouseDown: h || p ? null : Ke, onBlur: gn, - onFocus: k, - ...D, + onFocus: N, + ...M, ownerState: Gt, - className: ue(D.className, Fn.select, c), + className: ue(M.className, Fn.select, c), id: bn, children: Yy(lt) ? ( // notranslate needed while Google Translate will not fix zero-width space issue - Va || (Va = /* @__PURE__ */ $.jsx("span", { + Va || (Va = /* @__PURE__ */ k.jsx("span", { className: "notranslate", "aria-hidden": !0, children: "​" })) ) : lt - }), /* @__PURE__ */ $.jsx(Qy, { + }), /* @__PURE__ */ k.jsx(Qy, { "aria-invalid": m, - value: Array.isArray(I) ? I.join(",") : I, + value: Array.isArray(D) ? D.join(",") : D, name: T, - ref: q, + ref: Q, "aria-hidden": !0, onChange: le, tabIndex: -1, disabled: h, className: Fn.nativeInput, autoFocus: s, - required: P, - ...N, + required: A, + ...I, ownerState: Gt - }), /* @__PURE__ */ $.jsx(Jy, { + }), /* @__PURE__ */ k.jsx(Jy, { as: g, className: Fn.icon, ownerState: Gt - }), /* @__PURE__ */ $.jsx(Ky, { - value: _, - children: /* @__PURE__ */ $.jsx(_c, { + }), /* @__PURE__ */ k.jsx(Ky, { + value: P, + children: /* @__PURE__ */ k.jsx(_c, { id: `menu-${T || ""}`, anchorEl: $e, open: Me, @@ -15810,18 +15810,18 @@ function Dc(e) { notched: s, withLabel: l }; - return /* @__PURE__ */ $.jsx(eg, { + return /* @__PURE__ */ k.jsx(eg, { "aria-hidden": !0, className: r, ownerState: c, ...a, - children: /* @__PURE__ */ $.jsx(tg, { + children: /* @__PURE__ */ k.jsx(tg, { ownerState: c, - children: l ? /* @__PURE__ */ $.jsx("span", { + children: l ? /* @__PURE__ */ k.jsx("span", { children: i }) : ( // notranslate needed while Google Translate will not fix zero-width space issue - za || (za = /* @__PURE__ */ $.jsx("span", { + za || (za = /* @__PURE__ */ k.jsx("span", { className: "notranslate", "aria-hidden": !0, children: "​" @@ -16052,18 +16052,18 @@ const ng = (e) => { slotProps: h }, additionalProps: { - label: l != null && l !== "" && y.required ? /* @__PURE__ */ $.jsxs(x.Fragment, { + label: l != null && l !== "" && y.required ? /* @__PURE__ */ k.jsxs(x.Fragment, { children: [l, " ", "*"] }) : l } }); - return /* @__PURE__ */ $.jsx(jo, { + return /* @__PURE__ */ k.jsx(jo, { slots: { root: O, input: T }, slotProps: h, - renderSuffix: (w) => /* @__PURE__ */ $.jsx(v, { + renderSuffix: (w) => /* @__PURE__ */ k.jsx(v, { ...E, notched: typeof u < "u" ? u : !!(w.startAdornment || w.filled || w.focused) }), @@ -16290,42 +16290,42 @@ const sg = (e) => { onOpen: v, open: E, renderValue: w, - SelectDisplayProps: k, + SelectDisplayProps: N, variant: L = "outlined", ...z - } = r, W = O ? Nc : Mc, F = pn(), p = Ln({ + } = r, H = O ? Nc : Mc, F = pn(), p = Ln({ props: r, muiFormControl: F, states: ["variant", "error"] - }), A = p.variant || L, P = { + }), _ = p.variant || L, A = { ...r, - variant: A, + variant: _, classes: a - }, D = sg(P), { + }, M = sg(A), { root: j, - ...H - } = D, te = b || { - standard: /* @__PURE__ */ $.jsx(ag, { - ownerState: P + ...q + } = M, te = b || { + standard: /* @__PURE__ */ k.jsx(ag, { + ownerState: A }), - outlined: /* @__PURE__ */ $.jsx(lg, { + outlined: /* @__PURE__ */ k.jsx(lg, { label: g, - ownerState: P + ownerState: A }), - filled: /* @__PURE__ */ $.jsx(cg, { - ownerState: P + filled: /* @__PURE__ */ k.jsx(cg, { + ownerState: A }) - }[A], G = rt(n, xr(te)); - return /* @__PURE__ */ $.jsx(x.Fragment, { + }[_], K = rt(n, xr(te)); + return /* @__PURE__ */ k.jsx(x.Fragment, { children: /* @__PURE__ */ x.cloneElement(te, { // Most of the logic is implemented in `SelectInput`. // The `Select` component is a simple API wrapper to expose something better to play with. - inputComponent: W, + inputComponent: H, inputProps: { children: s, error: p.error, IconComponent: d, - variant: A, + variant: _, type: void 0, // We render a select. We can ignore the type provided by the `Input`. multiple: S, @@ -16343,21 +16343,21 @@ const sg = (e) => { renderValue: w, SelectDisplayProps: { id: h, - ...k + ...N } }, ...m, - classes: m ? et(H, m.classes) : H, + classes: m ? et(q, m.classes) : q, ...b ? b.props.inputProps : {} }, - ...(S && O || u) && A === "outlined" ? { + ...(S && O || u) && _ === "outlined" ? { notched: !0 } : {}, - ref: G, - className: ue(te.props.className, l, D.root), + ref: K, + className: ue(te.props.className, l, M.root), // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894. ...!b && { - variant: A + variant: _ }, ...z }) @@ -16553,22 +16553,22 @@ const dg = { label: v, maxRows: E, minRows: w, - multiline: k = !1, + multiline: N = !1, name: L, onBlur: z, - onChange: W, + onChange: H, onFocus: F, placeholder: p, - required: A = !1, - rows: P, - select: D = !1, + required: _ = !1, + rows: A, + select: M = !1, SelectProps: j, - slots: H = {}, + slots: q = {}, slotProps: te = {}, - type: G, - value: N, - variant: I = "outlined", - ...X + type: K, + value: I, + variant: D = "outlined", + ...W } = r, B = { ...r, autoFocus: s, @@ -16576,14 +16576,14 @@ const dg = { disabled: d, error: h, fullWidth: m, - multiline: k, - required: A, - select: D, - variant: I - }, Y = fg(B); - process.env.NODE_ENV !== "production" && D && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`."); - const q = Tr(f), Q = g && q ? `${q}-helper-text` : void 0, J = v && q ? `${q}-label` : void 0, K = dg[I], Z = { - slots: H, + multiline: N, + required: _, + select: M, + variant: D + }, X = fg(B); + process.env.NODE_ENV !== "production" && M && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`."); + const Q = Tr(f), G = g && Q ? `${Q}-helper-text` : void 0, J = v && Q ? `${Q}-label` : void 0, Y = dg[D], Z = { + slots: q, slotProps: { input: O, inputLabel: y, @@ -16593,27 +16593,27 @@ const dg = { ...te } }, V = {}, ne = Z.slotProps.inputLabel; - I === "outlined" && (ne && typeof ne.shrink < "u" && (V.notched = ne.shrink), V.label = v), D && ((!j || !j.native) && (V.id = void 0), V["aria-describedby"] = void 0); - const [_, de] = Fe("root", { + D === "outlined" && (ne && typeof ne.shrink < "u" && (V.notched = ne.shrink), V.label = v), M && ((!j || !j.native) && (V.id = void 0), V["aria-describedby"] = void 0); + const [P, de] = Fe("root", { elementType: pg, shouldForwardComponentProp: !0, externalForwardedProps: { ...Z, - ...X + ...W }, ownerState: B, - className: ue(Y.root, l), + className: ue(X.root, l), ref: n, additionalProps: { disabled: d, error: h, fullWidth: m, - required: A, + required: _, color: c, - variant: I + variant: D } }), [re, me] = Fe("input", { - elementType: K, + elementType: Y, externalForwardedProps: Z, additionalProps: V, ownerState: B @@ -16633,48 +16633,48 @@ const dg = { elementType: ms, externalForwardedProps: Z, ownerState: B - }), Je = /* @__PURE__ */ $.jsx(re, { - "aria-describedby": Q, + }), Je = /* @__PURE__ */ k.jsx(re, { + "aria-describedby": G, autoComplete: i, autoFocus: s, defaultValue: u, fullWidth: m, - multiline: k, + multiline: N, name: L, - rows: P, + rows: A, maxRows: E, minRows: w, - type: G, - value: N, - id: q, + type: K, + value: I, + id: Q, inputRef: T, onBlur: z, - onChange: W, + onChange: H, onFocus: F, placeholder: p, inputProps: Ke, slots: { - input: H.htmlInput ? De : void 0 + input: q.htmlInput ? De : void 0 }, ...me }); - return /* @__PURE__ */ $.jsxs(_, { + return /* @__PURE__ */ k.jsxs(P, { ...de, - children: [v != null && v !== "" && /* @__PURE__ */ $.jsx($e, { - htmlFor: q, + children: [v != null && v !== "" && /* @__PURE__ */ k.jsx($e, { + htmlFor: Q, id: J, ...Me, children: v - }), D ? /* @__PURE__ */ $.jsx(le, { - "aria-describedby": Q, - id: q, + }), M ? /* @__PURE__ */ k.jsx(le, { + "aria-describedby": G, + id: Q, labelId: J, - value: N, + value: I, input: Je, ...Nt, children: a - }) : Je, g && /* @__PURE__ */ $.jsx(at, { - id: Q, + }) : Je, g && /* @__PURE__ */ k.jsx(at, { + id: G, ...je, children: g })] @@ -16882,7 +16882,7 @@ process.env.NODE_ENV !== "production" && (Mi.propTypes = { */ variant: o.oneOf(["filled", "outlined", "standard"]) }); -const mg = zl(/* @__PURE__ */ $.jsx("path", { +const mg = zl(/* @__PURE__ */ k.jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Clear"); class uo { @@ -18205,11 +18205,11 @@ const Vb = (e) => encodeURIComponent(e).replace( request: y }; Qc( - function(k) { - n(k), f(); + function(N) { + n(N), f(); }, - function(k) { - r(k), f(); + function(N) { + r(N), f(); }, E ), y = null; @@ -18445,157 +18445,157 @@ const vs = "1.16.1", Za = 64 * 1024, { isFunction: Lr } = C, el = (e, ...t) => { data: v, signal: E, cancelToken: w, - timeout: k, + timeout: N, onDownloadProgress: L, onUploadProgress: z, - responseType: W, + responseType: H, headers: F, withCredentials: p = "same-origin", - fetchOptions: A, - maxContentLength: P, - maxBodyLength: D + fetchOptions: _, + maxContentLength: A, + maxBodyLength: M } = eu(S); - const j = C.isNumber(P) && P > -1, H = C.isNumber(D) && D > -1; + const j = C.isNumber(A) && A > -1, q = C.isNumber(M) && M > -1; let te = i || fetch; - W = W ? (W + "").toLowerCase() : "text"; - let G = Hb( + H = H ? (H + "").toLowerCase() : "text"; + let K = Hb( [E, w && w.toAbortSignal()], - k - ), N = null; - const I = G && G.unsubscribe && (() => { - G.unsubscribe(); + N + ), I = null; + const D = K && K.unsubscribe && (() => { + K.unsubscribe(); }); - let X; + let W; try { - if (j && typeof O == "string" && O.startsWith("data:") && Kb(O) > P) + if (j && typeof O == "string" && O.startsWith("data:") && Kb(O) > A) throw new oe( - "maxContentLength size of " + P + " exceeded", + "maxContentLength size of " + A + " exceeded", oe.ERR_BAD_RESPONSE, S, - N + I ); - if (H && T !== "get" && T !== "head") { - const K = await y(F, v); - if (typeof K == "number" && isFinite(K) && K > D) + if (q && T !== "get" && T !== "head") { + const Y = await y(F, v); + if (typeof Y == "number" && isFinite(Y) && Y > M) throw new oe( "Request body larger than maxBodyLength limit", oe.ERR_BAD_REQUEST, S, - N + I ); } - if (z && b && T !== "get" && T !== "head" && (X = await y(F, v)) !== 0) { - let K = new s(O, { + if (z && b && T !== "get" && T !== "head" && (W = await y(F, v)) !== 0) { + let Y = new s(O, { method: "POST", body: v, duplex: "half" }), Z; - if (C.isFormData(v) && (Z = K.headers.get("content-type")) && F.setContentType(Z), K.body) { + if (C.isFormData(v) && (Z = Y.headers.get("content-type")) && F.setContentType(Z), Y.body) { const [V, ne] = Ka( - X, + W, po(Xa(z)) ); - v = Qa(K.body, Za, V, ne); + v = Qa(Y.body, Za, V, ne); } } C.isString(p) || (p = p ? "include" : "omit"); const B = c && "credentials" in s.prototype; if (C.isFormData(v)) { - const K = F.getContentType(); - K && /^multipart\/form-data/i.test(K) && !/boundary=/i.test(K) && F.delete("content-type"); + const Y = F.getContentType(); + Y && /^multipart\/form-data/i.test(Y) && !/boundary=/i.test(Y) && F.delete("content-type"); } F.set("User-Agent", "axios/" + vs, !1); - const Y = { - ...A, - signal: G, + const X = { + ..._, + signal: K, method: T.toUpperCase(), headers: Hc(F.normalize()), body: v, duplex: "half", credentials: B ? p : void 0 }; - N = c && new s(O, Y); - let q = await (c ? te(N, A) : te(O, Y)); + I = c && new s(O, X); + let Q = await (c ? te(I, _) : te(O, X)); if (j) { - const K = C.toFiniteNumber(q.headers.get("content-length")); - if (K != null && K > P) + const Y = C.toFiniteNumber(Q.headers.get("content-length")); + if (Y != null && Y > A) throw new oe( - "maxContentLength size of " + P + " exceeded", + "maxContentLength size of " + A + " exceeded", oe.ERR_BAD_RESPONSE, S, - N + I ); } - const Q = m && (W === "stream" || W === "response"); - if (m && q.body && (L || j || Q && I)) { - const K = {}; + const G = m && (H === "stream" || H === "response"); + if (m && Q.body && (L || j || G && D)) { + const Y = {}; ["status", "statusText", "headers"].forEach((re) => { - K[re] = q[re]; + Y[re] = Q[re]; }); - const Z = C.toFiniteNumber(q.headers.get("content-length")), [V, ne] = L && Ka( + const Z = C.toFiniteNumber(Q.headers.get("content-length")), [V, ne] = L && Ka( Z, po(Xa(L), !0) ) || []; - let _ = 0; + let P = 0; const de = (re) => { - if (j && (_ = re, _ > P)) + if (j && (P = re, P > A)) throw new oe( - "maxContentLength size of " + P + " exceeded", + "maxContentLength size of " + A + " exceeded", oe.ERR_BAD_RESPONSE, S, - N + I ); V && V(re); }; - q = new a( - Qa(q.body, Za, de, () => { - ne && ne(), I && I(); + Q = new a( + Qa(Q.body, Za, de, () => { + ne && ne(), D && D(); }), - K + Y ); } - W = W || "text"; - let J = await g[C.findKey(g, W) || "text"]( - q, + H = H || "text"; + let J = await g[C.findKey(g, H) || "text"]( + Q, S ); - if (j && !m && !Q) { - let K; - if (J != null && (typeof J.byteLength == "number" ? K = J.byteLength : typeof J.size == "number" ? K = J.size : typeof J == "string" && (K = typeof r == "function" ? new r().encode(J).byteLength : J.length)), typeof K == "number" && K > P) + if (j && !m && !G) { + let Y; + if (J != null && (typeof J.byteLength == "number" ? Y = J.byteLength : typeof J.size == "number" ? Y = J.size : typeof J == "string" && (Y = typeof r == "function" ? new r().encode(J).byteLength : J.length)), typeof Y == "number" && Y > A) throw new oe( - "maxContentLength size of " + P + " exceeded", + "maxContentLength size of " + A + " exceeded", oe.ERR_BAD_RESPONSE, S, - N + I ); } - return !Q && I && I(), await new Promise((K, Z) => { - Qc(K, Z, { + return !G && D && D(), await new Promise((Y, Z) => { + Qc(Y, Z, { data: J, - headers: nt.from(q.headers), - status: q.status, - statusText: q.statusText, + headers: nt.from(Q.headers), + status: Q.status, + statusText: Q.statusText, config: S, - request: N + request: I }); }); } catch (B) { - if (I && I(), G && G.aborted && G.reason instanceof oe) { - const Y = G.reason; - throw Y.config = S, N && (Y.request = N), B !== Y && (Y.cause = B), Y; + if (D && D(), K && K.aborted && K.reason instanceof oe) { + const X = K.reason; + throw X.config = S, I && (X.request = I), B !== X && (X.cause = B), X; } throw B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign( new oe( "Network Error", oe.ERR_NETWORK, S, - N, + I, B && B.response ), { cause: B.cause || B } - ) : oe.from(B, B && B.code, S, N, B && B.response); + ) : oe.from(B, B && B.code, S, I, B && B.response); } }; }, Jb = /* @__PURE__ */ new Map(), tu = (e) => { @@ -19130,10 +19130,7 @@ const hn = (e, t = !1) => { baseURL: e, headers: { "Content-Type": "application/json", Accept: "application/json" } }); - return n.interceptors.request.use((r) => { - const i = typeof window < "u" ? localStorage.getItem("token") : null; - return i && (r.headers = r.headers ?? {}, r.headers.Authorization = `Bearer ${i}`), r; - }), t && n.interceptors.response.use( + return t && n.interceptors.response.use( (r) => { var i; return fo({ @@ -19256,86 +19253,93 @@ function jv({ size: h = "medium", helperText: b, filter: m, - isApiGo: g = !1 + isApiGo: g = !1, + headersRequest: f }) { - const [f, y] = Qt(!1), [S, O] = Qt(""), [T, v] = Qt([]), [E, w] = Qt(null), [k, L] = Qt(!1), [z, W] = Qt(0), [F, p] = Qt(0), A = (I, X = 400) => { - let B; - return (...Y) => { - clearTimeout(B), B = setTimeout(() => { - I(...Y); - }, X); + const [y, S] = Qt(!1), [O, T] = Qt(""), [v, E] = Qt([]), [w, N] = Qt(null), [L, z] = Qt(!1), [H, F] = Qt(0), [p, _] = Qt(0), A = (W, B = 400) => { + let X; + return (...Q) => { + clearTimeout(X), X = setTimeout(() => { + W(...Q); + }, B); }; - }, P = bu(async (I = "", X = 0, B = !1) => { - L(!0); - const Y = new uo().setPaging(X, i).setOrder([n], !0); - I && Y.like(n, I), m && m.length > 0 && m.forEach((q) => Y.where(q.logic_operator || "=", q.name, q.value, q.operator || "AND", q.value1 || null, q.table_name || null)); + }, M = bu(async (W = "", B = 0, X = !1) => { + z(!0); + const Q = new uo().setPaging(B, i).setOrder([n], !0); + W && Q.like(n, W), m && m.length > 0 && m.forEach((G) => Q.where(G.logic_operator || "=", G.name, G.value, G.operator || "AND", G.value1 || null, G.table_name || null)); try { - const q = await ol.search( + const G = await ol.search( r, - Y.build(), + Q.build(), {}, - { isApiGo: g } - ), Q = q.data || []; - v((J) => B ? [...J, ...Q] : Q), p(q.totalRecord || 0), W(X); - } catch (q) { - console.error("Fetch Error:", q); + { + isApiGo: g, + headers: f + } + ), J = G.data || []; + E((Y) => X ? [...Y, ...J] : J), _(G.totalRecord || 0), F(B); + } catch (G) { + console.error("Fetch Error:", G); } finally { - L(!1); + z(!1); } - }, [r, n, i, m]), D = (I) => { - const { scrollTop: X, scrollHeight: B, clientHeight: Y } = I.currentTarget; - if (B - X <= Y + 20 && !k && T.length < F) { - const Q = z + i; - P(S, Q, !0); + }, [r, n, i, m]), j = (W) => { + const { scrollTop: B, scrollHeight: X, clientHeight: Q } = W.currentTarget; + if (X - B <= Q + 20 && !L && v.length < p) { + const J = H + i; + M(O, J, !0); } - }, j = vu( - () => A((I) => { - W(0), P(I, 0, !1); + }, q = vu( + () => A((W) => { + F(0), M(W, 0, !1); }, 400), - [P] + [M] ); xs(() => { - f && (W(0), P(S, 0, !1)); - }, [f]); - const H = async (I) => { - var B; - L(!0); - const X = new uo().setPaging(0, 1).equal("id", I); + y && (F(0), M(O, 0, !1)); + }, [y]); + const te = async (W) => { + var X; + z(!0); + const B = new uo().setPaging(0, 1).equal("id", W); try { - const q = (B = (await ol.search( + const G = (X = (await ol.search( r, - X.build(), + B.build(), {}, - { isApiGo: g } - )).data) == null ? void 0 : B[0]; - q && w(q); - } catch (Y) { - console.error(Y); + { + isApiGo: g, + headers: f + } + )).data) == null ? void 0 : X[0]; + G && N(G); + } catch (Q) { + console.error(Q); } - L(!1); + z(!1); }; xs(() => { - a && (typeof a == "object" ? w(a) : H(a)); + a && (typeof a == "object" ? N(a) : te(a)); }, [a]); - const te = (I) => { - w(I), y(!1), O(""), s && s(I); - }, G = () => { - w(null), O(""), v([]), s && s(null); - }, N = E ? E[n] : l || ""; - return /* @__PURE__ */ $.jsxs($.Fragment, { children: [ - /* @__PURE__ */ $.jsx( + const K = (W) => { + N(W), S(!1), T(""), s && s(W); + }, I = () => { + N(null), T(""), E([]), s && s(null); + }, D = w ? w[n] : l || ""; + return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [ + /* @__PURE__ */ k.jsx( Mi, { id: e, label: t, - value: N, + value: D, fullWidth: !0, required: c, disabled: u, size: h, helperText: b, error: !!d, - onClick: () => !u && y(!0), + onClick: () => !u && S(!0), sx: { "& .MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline": { borderColor: "error.main" @@ -19343,14 +19347,14 @@ function jv({ }, slotProps: { input: { - endAdornment: E && /* @__PURE__ */ $.jsx(Sc, { position: "end", children: /* @__PURE__ */ $.jsx( + endAdornment: w && /* @__PURE__ */ k.jsx(Sc, { position: "end", children: /* @__PURE__ */ k.jsx( sc, { size: "small", - onClick: (I) => { - I.stopPropagation(), G(); + onClick: (W) => { + W.stopPropagation(), I(); }, - children: /* @__PURE__ */ $.jsx(mg, { sx: { fontSize: 16 } }) + children: /* @__PURE__ */ k.jsx(mg, { sx: { fontSize: 16 } }) } ) }) }, @@ -19362,18 +19366,18 @@ function jv({ } } ), - /* @__PURE__ */ $.jsxs(mc, { open: f, onClose: () => y(!1), maxWidth: "sm", fullWidth: !0, children: [ - /* @__PURE__ */ $.jsxs(gc, { sx: { fontSize: 14 }, children: [ + /* @__PURE__ */ k.jsxs(mc, { open: y, onClose: () => S(!1), maxWidth: "sm", fullWidth: !0, children: [ + /* @__PURE__ */ k.jsxs(gc, { sx: { fontSize: 14 }, children: [ "Search ", t ] }), - /* @__PURE__ */ $.jsxs( + /* @__PURE__ */ k.jsxs( yc, { - onScroll: D, + onScroll: j, sx: { height: 400, overflowY: "auto", py: 0 }, children: [ - /* @__PURE__ */ $.jsx( + /* @__PURE__ */ k.jsx( Mi, { fullWidth: !0, @@ -19381,23 +19385,23 @@ function jv({ placeholder: `Search ${t}`, size: "small", sx: { my: 2, position: "sticky", top: 0, zIndex: 10, bgcolor: "background.paper" }, - onChange: (I) => { - const X = I.target.value; - O(X), j(X); + onChange: (W) => { + const B = W.target.value; + T(B), q(B); } } ), - /* @__PURE__ */ $.jsxs(ds, { disablePadding: !0, children: [ - T.map((I, X) => /* @__PURE__ */ $.jsx(xc, { onClick: () => te(I), children: /* @__PURE__ */ $.jsx(Rc, { primary: I[n], slotProps: { primary: { fontSize: 14 } } }) }, `${I.id}-${X}`)), - k && /* @__PURE__ */ $.jsx(Bt, { variant: "caption", sx: { display: "block", textAlign: "center", p: 1 }, children: "Loading more..." }) + /* @__PURE__ */ k.jsxs(ds, { disablePadding: !0, children: [ + v.map((W, B) => /* @__PURE__ */ k.jsx(xc, { onClick: () => K(W), children: /* @__PURE__ */ k.jsx(Rc, { primary: W[n], slotProps: { primary: { fontSize: 14 } } }) }, `${W.id}-${B}`)), + L && /* @__PURE__ */ k.jsx(Bt, { variant: "caption", sx: { display: "block", textAlign: "center", p: 1 }, children: "Loading more..." }) ] }), - !k && T.length === 0 && /* @__PURE__ */ $.jsx(Bt, { sx: { textAlign: "center", fontSize: 12, color: "text.secondary", py: 3 }, children: "No Data" }) + !L && v.length === 0 && /* @__PURE__ */ k.jsx(Bt, { sx: { textAlign: "center", fontSize: 12, color: "text.secondary", py: 3 }, children: "No Data" }) ] } ), - /* @__PURE__ */ $.jsxs(hc, { children: [ - /* @__PURE__ */ $.jsx(ki, { onClick: G, size: "small", children: "Clear" }), - /* @__PURE__ */ $.jsx(ki, { onClick: () => y(!1), size: "small", children: "Cancel" }) + /* @__PURE__ */ k.jsxs(hc, { children: [ + /* @__PURE__ */ k.jsx(ki, { onClick: I, size: "small", children: "Clear" }), + /* @__PURE__ */ k.jsx(ki, { onClick: () => S(!1), size: "small", children: "Cancel" }) ] }) ] }) ] });