@js-smart/react-kit
Version:
1,624 lines • 134 kB
JavaScript
import { jsxs as Ce, jsx as E, Fragment as Tr } from "react/jsx-runtime";
import { Button as be, Tooltip as xr, IconButton as ye, Snackbar as Xe, Alert as je, Slide as Or, CircularProgress as Zr, Dialog as en, DialogTitle as tn, DialogContent as rn, DialogActions as nn, Link as wr, Icon as on, Box as $r, Typography as an } from "@mui/material";
import * as pe from "react";
import { useState as Me, useEffect as _r } from "react";
import sn from "@emotion/styled";
import { ThemeContext as cn } from "@emotion/react";
import { Link as Ar } from "react-router-dom";
import { format as kr, parseISO as ln } from "date-fns";
const Ft = (e) => e, un = () => {
let e = Ft;
return {
configure(t) {
e = t;
},
generate(t) {
return e(t);
},
reset() {
e = Ft;
}
};
}, fn = un();
function Ee(e, ...t) {
const r = new URL(`https://mui.com/production-error/?code=${e}`);
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
}
function _e(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ee(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
function dn(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var He = { exports: {} }, Ge = { exports: {} }, z = {};
var jt;
function mn() {
if (jt) return z;
jt = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
function D(b) {
if (typeof b == "object" && b !== null) {
var w = b.$$typeof;
switch (w) {
case t:
switch (b = b.type, b) {
case f:
case d:
case n:
case i:
case o:
case p:
return b;
default:
switch (b = b && b.$$typeof, b) {
case c:
case m:
case y:
case v:
case s:
return b;
default:
return w;
}
}
case r:
return w;
}
}
}
function O(b) {
return D(b) === d;
}
return z.AsyncMode = f, z.ConcurrentMode = d, z.ContextConsumer = c, z.ContextProvider = s, z.Element = t, z.ForwardRef = m, z.Fragment = n, z.Lazy = y, z.Memo = v, z.Portal = r, z.Profiler = i, z.StrictMode = o, z.Suspense = p, z.isAsyncMode = function(b) {
return O(b) || D(b) === f;
}, z.isConcurrentMode = O, z.isContextConsumer = function(b) {
return D(b) === c;
}, z.isContextProvider = function(b) {
return D(b) === s;
}, z.isElement = function(b) {
return typeof b == "object" && b !== null && b.$$typeof === t;
}, z.isForwardRef = function(b) {
return D(b) === m;
}, z.isFragment = function(b) {
return D(b) === n;
}, z.isLazy = function(b) {
return D(b) === y;
}, z.isMemo = function(b) {
return D(b) === v;
}, z.isPortal = function(b) {
return D(b) === r;
}, z.isProfiler = function(b) {
return D(b) === i;
}, z.isStrictMode = function(b) {
return D(b) === o;
}, z.isSuspense = function(b) {
return D(b) === p;
}, z.isValidElementType = function(b) {
return typeof b == "string" || typeof b == "function" || b === n || b === d || b === i || b === o || b === p || b === h || typeof b == "object" && b !== null && (b.$$typeof === y || b.$$typeof === v || b.$$typeof === s || b.$$typeof === c || b.$$typeof === m || b.$$typeof === C || b.$$typeof === _ || b.$$typeof === M || b.$$typeof === l);
}, z.typeOf = D, z;
}
var U = {};
var zt;
function pn() {
return zt || (zt = 1, process.env.NODE_ENV !== "production" && (function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
function D(T) {
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
T === n || T === d || T === i || T === o || T === p || T === h || typeof T == "object" && T !== null && (T.$$typeof === y || T.$$typeof === v || T.$$typeof === s || T.$$typeof === c || T.$$typeof === m || T.$$typeof === C || T.$$typeof === _ || T.$$typeof === M || T.$$typeof === l);
}
function O(T) {
if (typeof T == "object" && T !== null) {
var de = T.$$typeof;
switch (de) {
case t:
var We = T.type;
switch (We) {
case f:
case d:
case n:
case i:
case o:
case p:
return We;
default:
var Vt = We && We.$$typeof;
switch (Vt) {
case c:
case m:
case y:
case v:
case s:
return Vt;
default:
return de;
}
}
case r:
return de;
}
}
}
var b = f, w = d, Q = c, re = s, q = t, oe = m, J = n, a = y, $ = v, S = r, A = i, B = o, ne = p, fe = !1;
function ht(T) {
return fe || (fe = !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.")), g(T) || O(T) === f;
}
function g(T) {
return O(T) === d;
}
function x(T) {
return O(T) === c;
}
function N(T) {
return O(T) === s;
}
function P(T) {
return typeof T == "object" && T !== null && T.$$typeof === t;
}
function k(T) {
return O(T) === m;
}
function L(T) {
return O(T) === n;
}
function R(T) {
return O(T) === y;
}
function I(T) {
return O(T) === v;
}
function V(T) {
return O(T) === r;
}
function Y(T) {
return O(T) === i;
}
function F(T) {
return O(T) === o;
}
function ie(T) {
return O(T) === p;
}
U.AsyncMode = b, U.ConcurrentMode = w, U.ContextConsumer = Q, U.ContextProvider = re, U.Element = q, U.ForwardRef = oe, U.Fragment = J, U.Lazy = a, U.Memo = $, U.Portal = S, U.Profiler = A, U.StrictMode = B, U.Suspense = ne, U.isAsyncMode = ht, U.isConcurrentMode = g, U.isContextConsumer = x, U.isContextProvider = N, U.isElement = P, U.isForwardRef = k, U.isFragment = L, U.isLazy = R, U.isMemo = I, U.isPortal = V, U.isProfiler = Y, U.isStrictMode = F, U.isSuspense = ie, U.isValidElementType = D, U.typeOf = O;
})()), U;
}
var Ut;
function Rr() {
return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? Ge.exports = mn() : Ge.exports = pn()), Ge.exports;
}
var gt, Yt;
function hn() {
if (Yt) return gt;
Yt = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
function n(i) {
if (i == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(i);
}
function o() {
try {
if (!Object.assign)
return !1;
var i = new String("abc");
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
return !1;
for (var s = {}, c = 0; c < 10; c++)
s["_" + String.fromCharCode(c)] = c;
var f = Object.getOwnPropertyNames(s).map(function(m) {
return s[m];
});
if (f.join("") !== "0123456789")
return !1;
var d = {};
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
d[m] = m;
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return gt = o() ? Object.assign : function(i, s) {
for (var c, f = n(i), d, m = 1; m < arguments.length; m++) {
c = Object(arguments[m]);
for (var p in c)
t.call(c, p) && (f[p] = c[p]);
if (e) {
d = e(c);
for (var h = 0; h < d.length; h++)
r.call(c, d[h]) && (f[d[h]] = c[d[h]]);
}
}
return f;
}, gt;
}
var yt, Wt;
function kt() {
if (Wt) return yt;
Wt = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return yt = e, yt;
}
var bt, Ht;
function Pr() {
return Ht || (Ht = 1, bt = Function.call.bind(Object.prototype.hasOwnProperty)), bt;
}
var vt, Gt;
function gn() {
if (Gt) return vt;
Gt = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ kt(), r = {}, n = /* @__PURE__ */ Pr();
e = function(i) {
var s = "Warning: " + i;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function o(i, s, c, f, d) {
if (process.env.NODE_ENV !== "production") {
for (var m in i)
if (n(i, m)) {
var p;
try {
if (typeof i[m] != "function") {
var h = Error(
(f || "React class") + ": " + c + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw h.name = "Invariant Violation", h;
}
p = i[m](s, m, f, c, null, t);
} catch (y) {
p = y;
}
if (p && !(p instanceof Error) && e(
(f || "React class") + ": type specification of " + c + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), p instanceof Error && !(p.message in r)) {
r[p.message] = !0;
var v = d ? d() : "";
e(
"Failed " + c + " type: " + p.message + (v ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
}, vt = o, vt;
}
var St, Kt;
function yn() {
if (Kt) return St;
Kt = 1;
var e = Rr(), t = hn(), r = /* @__PURE__ */ kt(), n = /* @__PURE__ */ Pr(), o = /* @__PURE__ */ gn(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(c) {
var f = "Warning: " + c;
typeof console < "u" && console.error(f);
try {
throw new Error(f);
} catch {
}
});
function s() {
return null;
}
return St = function(c, f) {
var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
function p(g) {
var x = g && (d && g[d] || g[m]);
if (typeof x == "function")
return x;
}
var h = "<<anonymous>>", v = {
array: _("array"),
bigint: _("bigint"),
bool: _("boolean"),
func: _("function"),
number: _("number"),
object: _("object"),
string: _("string"),
symbol: _("symbol"),
any: M(),
arrayOf: D,
element: O(),
elementType: b(),
instanceOf: w,
node: oe(),
objectOf: re,
oneOf: Q,
oneOfType: q,
shape: a,
exact: $
};
function y(g, x) {
return g === x ? g !== 0 || 1 / g === 1 / x : g !== g && x !== x;
}
function l(g, x) {
this.message = g, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
}
l.prototype = Error.prototype;
function C(g) {
if (process.env.NODE_ENV !== "production")
var x = {}, N = 0;
function P(L, R, I, V, Y, F, ie) {
if (V = V || h, F = F || I, ie !== r) {
if (f) {
var T = 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 T.name = "Invariant Violation", T;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var de = V + ":" + I;
!x[de] && // Avoid spamming the console because they are often not actionable except for lib authors
N < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + V + "`. 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."
), x[de] = !0, N++);
}
}
return R[I] == null ? L ? R[I] === null ? new l("The " + Y + " `" + F + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new l("The " + Y + " `" + F + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : g(R, I, V, Y, F);
}
var k = P.bind(null, !1);
return k.isRequired = P.bind(null, !0), k;
}
function _(g) {
function x(N, P, k, L, R, I) {
var V = N[P], Y = B(V);
if (Y !== g) {
var F = ne(V);
return new l(
"Invalid " + L + " `" + R + "` of type " + ("`" + F + "` supplied to `" + k + "`, expected ") + ("`" + g + "`."),
{ expectedType: g }
);
}
return null;
}
return C(x);
}
function M() {
return C(s);
}
function D(g) {
function x(N, P, k, L, R) {
if (typeof g != "function")
return new l("Property `" + R + "` of component `" + k + "` has invalid PropType notation inside arrayOf.");
var I = N[P];
if (!Array.isArray(I)) {
var V = B(I);
return new l("Invalid " + L + " `" + R + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected an array."));
}
for (var Y = 0; Y < I.length; Y++) {
var F = g(I, Y, k, L, R + "[" + Y + "]", r);
if (F instanceof Error)
return F;
}
return null;
}
return C(x);
}
function O() {
function g(x, N, P, k, L) {
var R = x[N];
if (!c(R)) {
var I = B(R);
return new l("Invalid " + k + " `" + L + "` of type " + ("`" + I + "` supplied to `" + P + "`, expected a single ReactElement."));
}
return null;
}
return C(g);
}
function b() {
function g(x, N, P, k, L) {
var R = x[N];
if (!e.isValidElementType(R)) {
var I = B(R);
return new l("Invalid " + k + " `" + L + "` of type " + ("`" + I + "` supplied to `" + P + "`, expected a single ReactElement type."));
}
return null;
}
return C(g);
}
function w(g) {
function x(N, P, k, L, R) {
if (!(N[P] instanceof g)) {
var I = g.name || h, V = ht(N[P]);
return new l("Invalid " + L + " `" + R + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected ") + ("instance of `" + I + "`."));
}
return null;
}
return C(x);
}
function Q(g) {
if (!Array.isArray(g))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
"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])."
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
function x(N, P, k, L, R) {
for (var I = N[P], V = 0; V < g.length; V++)
if (y(I, g[V]))
return null;
var Y = JSON.stringify(g, function(ie, T) {
var de = ne(T);
return de === "symbol" ? String(T) : T;
});
return new l("Invalid " + L + " `" + R + "` of value `" + String(I) + "` " + ("supplied to `" + k + "`, expected one of " + Y + "."));
}
return C(x);
}
function re(g) {
function x(N, P, k, L, R) {
if (typeof g != "function")
return new l("Property `" + R + "` of component `" + k + "` has invalid PropType notation inside objectOf.");
var I = N[P], V = B(I);
if (V !== "object")
return new l("Invalid " + L + " `" + R + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected an object."));
for (var Y in I)
if (n(I, Y)) {
var F = g(I, Y, k, L, R + "." + Y, r);
if (F instanceof Error)
return F;
}
return null;
}
return C(x);
}
function q(g) {
if (!Array.isArray(g))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var x = 0; x < g.length; x++) {
var N = g[x];
if (typeof N != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(N) + " at index " + x + "."
), s;
}
function P(k, L, R, I, V) {
for (var Y = [], F = 0; F < g.length; F++) {
var ie = g[F], T = ie(k, L, R, I, V, r);
if (T == null)
return null;
T.data && n(T.data, "expectedType") && Y.push(T.data.expectedType);
}
var de = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
return new l("Invalid " + I + " `" + V + "` supplied to " + ("`" + R + "`" + de + "."));
}
return C(P);
}
function oe() {
function g(x, N, P, k, L) {
return S(x[N]) ? null : new l("Invalid " + k + " `" + L + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
}
return C(g);
}
function J(g, x, N, P, k) {
return new l(
(g || "React class") + ": " + x + " type `" + N + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + k + "`."
);
}
function a(g) {
function x(N, P, k, L, R) {
var I = N[P], V = B(I);
if (V !== "object")
return new l("Invalid " + L + " `" + R + "` of type `" + V + "` " + ("supplied to `" + k + "`, expected `object`."));
for (var Y in g) {
var F = g[Y];
if (typeof F != "function")
return J(k, L, R, Y, ne(F));
var ie = F(I, Y, k, L, R + "." + Y, r);
if (ie)
return ie;
}
return null;
}
return C(x);
}
function $(g) {
function x(N, P, k, L, R) {
var I = N[P], V = B(I);
if (V !== "object")
return new l("Invalid " + L + " `" + R + "` of type `" + V + "` " + ("supplied to `" + k + "`, expected `object`."));
var Y = t({}, N[P], g);
for (var F in Y) {
var ie = g[F];
if (n(g, F) && typeof ie != "function")
return J(k, L, R, F, ne(ie));
if (!ie)
return new l(
"Invalid " + L + " `" + R + "` key `" + F + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(N[P], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
);
var T = ie(I, F, k, L, R + "." + F, r);
if (T)
return T;
}
return null;
}
return C(x);
}
function S(g) {
switch (typeof g) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !g;
case "object":
if (Array.isArray(g))
return g.every(S);
if (g === null || c(g))
return !0;
var x = p(g);
if (x) {
var N = x.call(g), P;
if (x !== g.entries) {
for (; !(P = N.next()).done; )
if (!S(P.value))
return !1;
} else
for (; !(P = N.next()).done; ) {
var k = P.value;
if (k && !S(k[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function A(g, x) {
return g === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
}
function B(g) {
var x = typeof g;
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : A(x, g) ? "symbol" : x;
}
function ne(g) {
if (typeof g > "u" || g === null)
return "" + g;
var x = B(g);
if (x === "object") {
if (g instanceof Date)
return "date";
if (g instanceof RegExp)
return "regexp";
}
return x;
}
function fe(g) {
var x = ne(g);
switch (x) {
case "array":
case "object":
return "an " + x;
case "boolean":
case "date":
case "regexp":
return "a " + x;
default:
return x;
}
}
function ht(g) {
return !g.constructor || !g.constructor.name ? h : g.constructor.name;
}
return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
}, St;
}
var Ct, qt;
function bn() {
if (qt) return Ct;
qt = 1;
var e = /* @__PURE__ */ kt();
function t() {
}
function r() {
}
return r.resetWarningCache = t, Ct = function() {
function n(s, c, f, d, m, p) {
if (p !== e) {
var h = 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 h.name = "Invariant Violation", h;
}
}
n.isRequired = n;
function o() {
return n;
}
var i = {
array: n,
bigint: n,
bool: n,
func: n,
number: n,
object: n,
string: n,
symbol: n,
any: n,
arrayOf: o,
element: n,
elementType: n,
instanceOf: o,
node: n,
objectOf: o,
oneOf: o,
oneOfType: o,
shape: o,
exact: o,
checkPropTypes: r,
resetWarningCache: t
};
return i.PropTypes = i, i;
}, Ct;
}
var Qt;
function vn() {
if (Qt) return He.exports;
if (Qt = 1, process.env.NODE_ENV !== "production") {
var e = Rr(), t = !0;
He.exports = /* @__PURE__ */ yn()(e.isElement, t);
} else
He.exports = /* @__PURE__ */ bn()();
return He.exports;
}
var Sn = /* @__PURE__ */ vn();
const j = /* @__PURE__ */ dn(Sn);
function Ir(e) {
var t, r, n = "";
if (typeof e == "string" || typeof e == "number") n += e;
else if (typeof e == "object") if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (r = Ir(e[t])) && (n && (n += " "), n += r);
} else for (r in e) e[r] && (n && (n += " "), n += r);
return n;
}
function Mr() {
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Ir(e)) && (n && (n += " "), n += t);
return n;
}
function Cn(e, t, r = void 0) {
const n = {};
for (const o in e) {
const i = e[o];
let s = "", c = !0;
for (let f = 0; f < i.length; f += 1) {
const d = i[f];
d && (s += (c === !0 ? "" : " ") + t(d), c = !1, r && r[d] && (s += " " + r[d]));
}
n[o] = s;
}
return n;
}
var Ke = { exports: {} }, G = {};
var Xt;
function En() {
if (Xt) return G;
Xt = 1;
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
function y(l) {
if (typeof l == "object" && l !== null) {
var C = l.$$typeof;
switch (C) {
case e:
switch (l = l.type, l) {
case r:
case o:
case n:
case f:
case d:
case h:
return l;
default:
switch (l = l && l.$$typeof, l) {
case s:
case c:
case p:
case m:
return l;
case i:
return l;
default:
return C;
}
}
case t:
return C;
}
}
}
return G.ContextConsumer = i, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy = p, G.Memo = m, G.Portal = t, G.Profiler = o, G.StrictMode = n, G.Suspense = f, G.SuspenseList = d, G.isContextConsumer = function(l) {
return y(l) === i;
}, G.isContextProvider = function(l) {
return y(l) === s;
}, G.isElement = function(l) {
return typeof l == "object" && l !== null && l.$$typeof === e;
}, G.isForwardRef = function(l) {
return y(l) === c;
}, G.isFragment = function(l) {
return y(l) === r;
}, G.isLazy = function(l) {
return y(l) === p;
}, G.isMemo = function(l) {
return y(l) === m;
}, G.isPortal = function(l) {
return y(l) === t;
}, G.isProfiler = function(l) {
return y(l) === o;
}, G.isStrictMode = function(l) {
return y(l) === n;
}, G.isSuspense = function(l) {
return y(l) === f;
}, G.isSuspenseList = function(l) {
return y(l) === d;
}, G.isValidElementType = function(l) {
return typeof l == "string" || typeof l == "function" || l === r || l === o || l === n || l === f || l === d || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === m || l.$$typeof === s || l.$$typeof === i || l.$$typeof === c || l.$$typeof === v || l.getModuleId !== void 0);
}, G.typeOf = y, G;
}
var K = {};
var Jt;
function Tn() {
return Jt || (Jt = 1, process.env.NODE_ENV !== "production" && (function() {
function e(l) {
if (typeof l == "object" && l !== null) {
var C = l.$$typeof;
switch (C) {
case t:
switch (l = l.type, l) {
case n:
case i:
case o:
case d:
case m:
case v:
return l;
default:
switch (l = l && l.$$typeof, l) {
case c:
case f:
case h:
case p:
return l;
case s:
return l;
default:
return C;
}
}
case r:
return C;
}
}
}
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.view_transition"), y = Symbol.for("react.client.reference");
K.ContextConsumer = s, K.ContextProvider = c, K.Element = t, K.ForwardRef = f, K.Fragment = n, K.Lazy = h, K.Memo = p, K.Portal = r, K.Profiler = i, K.StrictMode = o, K.Suspense = d, K.SuspenseList = m, K.isContextConsumer = function(l) {
return e(l) === s;
}, K.isContextProvider = function(l) {
return e(l) === c;
}, K.isElement = function(l) {
return typeof l == "object" && l !== null && l.$$typeof === t;
}, K.isForwardRef = function(l) {
return e(l) === f;
}, K.isFragment = function(l) {
return e(l) === n;
}, K.isLazy = function(l) {
return e(l) === h;
}, K.isMemo = function(l) {
return e(l) === p;
}, K.isPortal = function(l) {
return e(l) === r;
}, K.isProfiler = function(l) {
return e(l) === i;
}, K.isStrictMode = function(l) {
return e(l) === o;
}, K.isSuspense = function(l) {
return e(l) === d;
}, K.isSuspenseList = function(l) {
return e(l) === m;
}, K.isValidElementType = function(l) {
return typeof l == "string" || typeof l == "function" || l === n || l === i || l === o || l === d || l === m || typeof l == "object" && l !== null && (l.$$typeof === h || l.$$typeof === p || l.$$typeof === c || l.$$typeof === s || l.$$typeof === f || l.$$typeof === y || l.getModuleId !== void 0);
}, K.typeOf = e;
})()), K;
}
var Zt;
function xn() {
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? Ke.exports = /* @__PURE__ */ En() : Ke.exports = /* @__PURE__ */ Tn()), Ke.exports;
}
var Je = /* @__PURE__ */ xn();
function ge(e) {
if (typeof e != "object" || e === null)
return !1;
const t = Object.getPrototypeOf(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function Nr(e) {
if (/* @__PURE__ */ pe.isValidElement(e) || Je.isValidElementType(e) || !ge(e))
return e;
const t = {};
return Object.keys(e).forEach((r) => {
t[r] = Nr(e[r]);
}), t;
}
function se(e, t, r = {
clone: !0
}) {
const n = r.clone ? {
...e
} : e;
return ge(e) && ge(t) && Object.keys(t).forEach((o) => {
/* @__PURE__ */ pe.isValidElement(t[o]) || Je.isValidElementType(t[o]) ? n[o] = t[o] : ge(t[o]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(e, o) && ge(e[o]) ? n[o] = se(e[o], t[o], r) : r.clone ? n[o] = ge(t[o]) ? Nr(t[o]) : t[o] : n[o] = t[o];
}), n;
}
function Fe(e, t) {
return t ? se(e, t, {
clone: !1
// No need to clone deep, it's way faster.
}) : e;
}
const xe = process.env.NODE_ENV !== "production" ? j.oneOfType([j.number, j.string, j.object, j.array]) : {};
function er(e, t) {
if (!e.containerQueries)
return t;
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
const i = /min-width:\s*([0-9.]+)/;
return +(n.match(i)?.[1] || 0) - +(o.match(i)?.[1] || 0);
});
return r.length ? r.reduce((n, o) => {
const i = t[o];
return delete n[o], n[o] = i, n;
}, {
...t
}) : t;
}
function On(e, t) {
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
}
function wn(e, t) {
const r = t.match(/^@([^/]+)?\/?(.+)?$/);
if (!r) {
if (process.env.NODE_ENV !== "production")
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ee(18, `(${t})`));
return null;
}
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
return e.containerQueries(o).up(i);
}
function $n(e) {
const t = (i, s) => i.replace("@media", s ? `@container ${s}` : "@container");
function r(i, s) {
i.up = (...c) => t(e.breakpoints.up(...c), s), i.down = (...c) => t(e.breakpoints.down(...c), s), i.between = (...c) => t(e.breakpoints.between(...c), s), i.only = (...c) => t(e.breakpoints.only(...c), s), i.not = (...c) => {
const f = t(e.breakpoints.not(...c), s);
return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
};
}
const n = {}, o = (i) => (r(n, i), n);
return r(o), {
...e,
containerQueries: o
};
}
const rt = {
xs: 0,
// phone
sm: 600,
// tablet
md: 900,
// small laptop
lg: 1200,
// desktop
xl: 1536
// large screen
}, tr = {
// Sorted ASC by size. That's important.
// It can't be configured as it's used statically for propTypes.
keys: ["xs", "sm", "md", "lg", "xl"],
up: (e) => `@media (min-width:${rt[e]}px)`
}, _n = {
containerQueries: (e) => ({
up: (t) => {
let r = typeof t == "number" ? t : rt[t] || t;
return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
}
})
};
function ve(e, t, r) {
const n = e.theme || {};
if (Array.isArray(t)) {
const i = n.breakpoints || tr;
return t.reduce((s, c, f) => (s[i.up(i.keys[f])] = r(t[f]), s), {});
}
if (typeof t == "object") {
const i = n.breakpoints || tr;
return Object.keys(t).reduce((s, c) => {
if (On(i.keys, c)) {
const f = wn(n.containerQueries ? n : _n, c);
f && (s[f] = r(t[c], c));
} else if (Object.keys(i.values || rt).includes(c)) {
const f = i.up(c);
s[f] = r(t[c], c);
} else {
const f = c;
s[f] = t[f];
}
return s;
}, {});
}
return r(t);
}
function An(e = {}) {
return e.keys?.reduce((r, n) => {
const o = e.up(n);
return r[o] = {}, r;
}, {}) || {};
}
function rr(e, t) {
return e.reduce((r, n) => {
const o = r[n];
return (!o || Object.keys(o).length === 0) && delete r[n], r;
}, t);
}
function nt(e, t, r = !0) {
if (!t || typeof t != "string")
return null;
if (e && e.vars && r) {
const n = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
if (n != null)
return n;
}
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
}
function Ze(e, t, r, n = r) {
let o;
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = nt(e, r) || n, t && (o = t(o, n, e)), o;
}
function te(e) {
const {
prop: t,
cssProperty: r = e.prop,
themeKey: n,
transform: o
} = e, i = (s) => {
if (s[t] == null)
return null;
const c = s[t], f = s.theme, d = nt(f, n) || {};
return ve(s, c, (p) => {
let h = Ze(d, o, p);
return p === h && typeof p == "string" && (h = Ze(d, o, `${t}${p === "default" ? "" : _e(p)}`, p)), r === !1 ? h : {
[r]: h
};
});
};
return i.propTypes = process.env.NODE_ENV !== "production" ? {
[t]: xe
} : {}, i.filterProps = [t], i;
}
function kn(e) {
const t = {};
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
}
const Rn = {
m: "margin",
p: "padding"
}, Pn = {
t: "Top",
r: "Right",
b: "Bottom",
l: "Left",
x: ["Left", "Right"],
y: ["Top", "Bottom"]
}, nr = {
marginX: "mx",
marginY: "my",
paddingX: "px",
paddingY: "py"
}, In = kn((e) => {
if (e.length > 2)
if (nr[e])
e = nr[e];
else
return [e];
const [t, r] = e.split(""), n = Rn[t], o = Pn[r] || "";
return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
}), ot = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], it = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Mn = [...ot, ...it];
function Ue(e, t, r, n) {
const o = nt(e, t, !0) ?? r;
return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
if (typeof i == "string")
return i;
const s = Math.abs(i);
process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > o.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${s} > ${o.length - 1}, you need to add the missing values.`].join(`
`)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));
const c = o[s];
return i >= 0 ? c : typeof c == "number" ? -c : typeof c == "string" && c.startsWith("var(") ? `calc(-1 * ${c})` : `-${c}`;
} : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
`)), () => {
});
}
function Rt(e) {
return Ue(e, "spacing", 8, "spacing");
}
function Ye(e, t) {
return typeof t == "string" || t == null ? t : e(t);
}
function Nn(e, t) {
return (r) => e.reduce((n, o) => (n[o] = Ye(t, r), n), {});
}
function Dn(e, t, r, n) {
if (!t.includes(r))
return null;
const o = In(r), i = Nn(o, n), s = e[r];
return ve(e, s, i);
}
function Dr(e, t) {
const r = Rt(e.theme);
return Object.keys(e).map((n) => Dn(e, t, n, r)).reduce(Fe, {});
}
function Z(e) {
return Dr(e, ot);
}
Z.propTypes = process.env.NODE_ENV !== "production" ? ot.reduce((e, t) => (e[t] = xe, e), {}) : {};
Z.filterProps = ot;
function ee(e) {
return Dr(e, it);
}
ee.propTypes = process.env.NODE_ENV !== "production" ? it.reduce((e, t) => (e[t] = xe, e), {}) : {};
ee.filterProps = it;
process.env.NODE_ENV !== "production" && Mn.reduce((e, t) => (e[t] = xe, e), {});
function at(...e) {
const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
n[i] = o;
}), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? Fe(o, t[i](n)) : o, {});
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
}
function le(e) {
return typeof e != "number" ? e : `${e}px solid`;
}
function ue(e, t) {
return te({
prop: e,
themeKey: "borders",
transform: t
});
}
const Bn = ue("border", le), Ln = ue("borderTop", le), Vn = ue("borderRight", le), Fn = ue("borderBottom", le), jn = ue("borderLeft", le), zn = ue("borderColor"), Un = ue("borderTopColor"), Yn = ue("borderRightColor"), Wn = ue("borderBottomColor"), Hn = ue("borderLeftColor"), Gn = ue("outline", le), Kn = ue("outlineColor"), st = (e) => {
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
const t = Ue(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
borderRadius: Ye(t, n)
});
return ve(e, e.borderRadius, r);
}
return null;
};
st.propTypes = process.env.NODE_ENV !== "production" ? {
borderRadius: xe
} : {};
st.filterProps = ["borderRadius"];
at(Bn, Ln, Vn, Fn, jn, zn, Un, Yn, Wn, Hn, st, Gn, Kn);
const ct = (e) => {
if (e.gap !== void 0 && e.gap !== null) {
const t = Ue(e.theme, "spacing", 8, "gap"), r = (n) => ({
gap: Ye(t, n)
});
return ve(e, e.gap, r);
}
return null;
};
ct.propTypes = process.env.NODE_ENV !== "production" ? {
gap: xe
} : {};
ct.filterProps = ["gap"];
const lt = (e) => {
if (e.columnGap !== void 0 && e.columnGap !== null) {
const t = Ue(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
columnGap: Ye(t, n)
});
return ve(e, e.columnGap, r);
}
return null;
};
lt.propTypes = process.env.NODE_ENV !== "production" ? {
columnGap: xe
} : {};
lt.filterProps = ["columnGap"];
const ut = (e) => {
if (e.rowGap !== void 0 && e.rowGap !== null) {
const t = Ue(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
rowGap: Ye(t, n)
});
return ve(e, e.rowGap, r);
}
return null;
};
ut.propTypes = process.env.NODE_ENV !== "production" ? {
rowGap: xe
} : {};
ut.filterProps = ["rowGap"];
const qn = te({
prop: "gridColumn"
}), Qn = te({
prop: "gridRow"
}), Xn = te({
prop: "gridAutoFlow"
}), Jn = te({
prop: "gridAutoColumns"
}), Zn = te({
prop: "gridAutoRows"
}), eo = te({
prop: "gridTemplateColumns"
}), to = te({
prop: "gridTemplateRows"
}), ro = te({
prop: "gridTemplateAreas"
}), no = te({
prop: "gridArea"
});
at(ct, lt, ut, qn, Qn, Xn, Jn, Zn, eo, to, ro, no);
function Ne(e, t) {
return t === "grey" ? t : e;
}
const oo = te({
prop: "color",
themeKey: "palette",
transform: Ne
}), io = te({
prop: "bgcolor",
cssProperty: "backgroundColor",
themeKey: "palette",
transform: Ne
}), ao = te({
prop: "backgroundColor",
themeKey: "palette",
transform: Ne
});
at(oo, io, ao);
function ae(e) {
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
}
const so = te({
prop: "width",
transform: ae
}), Pt = (e) => {
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
const t = (r) => {
const n = e.theme?.breakpoints?.values?.[r] || rt[r];
return n ? e.theme?.breakpoints?.unit !== "px" ? {
maxWidth: `${n}${e.theme.breakpoints.unit}`
} : {
maxWidth: n
} : {
maxWidth: ae(r)
};
};
return ve(e, e.maxWidth, t);
}
return null;
};
Pt.filterProps = ["maxWidth"];
const co = te({
prop: "minWidth",
transform: ae
}), lo = te({
prop: "height",
transform: ae
}), uo = te({
prop: "maxHeight",
transform: ae
}), fo = te({
prop: "minHeight",
transform: ae
});
te({
prop: "size",
cssProperty: "width",
transform: ae
});
te({
prop: "size",
cssProperty: "height",
transform: ae
});
const mo = te({
prop: "boxSizing"
});
at(so, Pt, co, lo, uo, fo, mo);
const ft = {
// borders
border: {
themeKey: "borders",
transform: le
},
borderTop: {
themeKey: "borders",
transform: le
},
borderRight: {
themeKey: "borders",
transform: le
},
borderBottom: {
themeKey: "borders",
transform: le
},
borderLeft: {
themeKey: "borders",
transform: le
},
borderColor: {
themeKey: "palette"
},
borderTopColor: {
themeKey: "palette"
},
borderRightColor: {
themeKey: "palette"
},
borderBottomColor: {
themeKey: "palette"
},
borderLeftColor: {
themeKey: "palette"
},
outline: {
themeKey: "borders",
transform: le
},
outlineColor: {
themeKey: "palette"
},
borderRadius: {
themeKey: "shape.borderRadius",
style: st
},
// palette
color: {
themeKey: "palette",
transform: Ne
},
bgcolor: {
themeKey: "palette",
cssProperty: "backgroundColor",
transform: Ne
},
backgroundColor: {
themeKey: "palette",
transform: Ne
},
// spacing
p: {
style: ee
},
pt: {
style: ee
},
pr: {
style: ee
},
pb: {
style: ee
},
pl: {
style: ee
},
px: {
style: ee
},
py: {
style: ee
},
padding: {
style: ee
},
paddingTop: {
style: ee
},
paddingRight: {
style: ee
},
paddingBottom: {
style: ee
},
paddingLeft: {
style: ee
},
paddingX: {
style: ee
},
paddingY: {
style: ee
},
paddingInline: {
style: ee
},
paddingInlineStart: {
style: ee
},
paddingInlineEnd: {
style: ee
},
paddingBlock: {
style: ee
},
paddingBlockStart: {
style: ee
},
paddingBlockEnd: {
style: ee
},
m: {
style: Z
},
mt: {
style: Z
},
mr: {
style: Z
},
mb: {
style: Z
},
ml: {
style: Z
},
mx: {
style: Z
},
my: {
style: Z
},
margin: {
style: Z
},
marginTop: {
style: Z
},
marginRight: {
style: Z
},
marginBottom: {
style: Z
},
marginLeft: {
style: Z
},
marginX: {
style: Z
},
marginY: {
style: Z
},
marginInline: {
style: Z
},
marginInlineStart: {
style: Z
},
marginInlineEnd: {
style: Z
},
marginBlock: {
style: Z
},
marginBlockStart: {
style: Z
},
marginBlockEnd: {
style: Z
},
// display
displayPrint: {
cssProperty: !1,
transform: (e) => ({
"@media print": {
display: e
}
})
},
display: {},
overflow: {},
textOverflow: {},
visibility: {},
whiteSpace: {},
// flexbox
flexBasis: {},
flexDirection: {},
flexWrap: {},
justifyContent: {},
alignItems: {},
alignContent: {},
order: {},
flex: {},
flexGrow: {},
flexShrink: {},
alignSelf: {},
justifyItems: {},
justifySelf: {},
// grid
gap: {
style: ct
},
rowGap: {
style: ut
},
columnGap: {
style: lt
},
gridColumn: {},
gridRow: {},
gridAutoFlow: {},
gridAutoColumns: {},
gridAutoRows: {},
gridTemplateColumns: {},
gridTemplateRows: {},
gridTemplateAreas: {},
gridArea: {},
// positions
position: {},
zIndex: {
themeKey: "zIndex"
},
top: {},
right: {},
bottom: {},
left: {},
// shadows
boxShadow: {
themeKey: "shadows"
},
// sizing
width: {
transform: ae
},
maxWidth: {
style: Pt
},
minWidth: {
transform: ae
},
height: {
transform: ae
},
maxHeight: {
transform: ae
},
minHeight: {
transform: ae
},
boxSizing: {},
// typography
font: {
themeKey: "font"
},
fontFamily: {
themeKey: "typography"
},
fontSize: {
themeKey: "typography"
},
fontStyle: {
themeKey: "typography"
},
fontWeight: {
themeKey: "typography"
},
letterSpacing: {},
textTransform: {},
lineHeight: {},
textAlign: {},
typography: {
cssProperty: !1,
themeKey: "typography"
}
};
function po(...e) {
const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
return e.every((n) => r.size === Object.keys(n).length);
}
function ho(e, t) {
return typeof e == "function" ? e(t) : e;
}
function go() {
function e(r, n, o, i) {
const s = {
[r]: n,
theme: o
}, c = i[r];
if (!c)
return {
[r]: n
};
const {
cssProperty: f = r,
themeKey: d,
transform: m,
style: p
} = c;
if (n == null)
return null;
if (d === "typography" && n === "inherit")
return {
[r]: n
};
const h = nt(o, d) || {};
return p ? p(s) : ve(s, n, (y) => {
let l = Ze(h, m, y);
return y === l && typeof y == "string" && (l = Ze(h, m, `${r}${y === "default" ? "" : _e(y)}`, y)), f === !1 ? l : {
[f]: l
};
});
}
function t(r) {
const {
sx: n,
theme: o = {},
nested: i
} = r || {};
if (!n)
return null;
const s = o.unstable_sxConfig ?? ft;
function c(f) {
let d = f;
if (typeof f == "function")
d = f(o);
else if (typeof f != "object")
return f;
if (!d)
return null;
const m = An(o.breakpoints), p = Object.keys(m);
let h = m;
return Object.keys(d).forEach((v) => {
const y = ho(d[v], o);
if (y != null)
if (typeof y == "object")
if (s[v])
h = Fe(h, e(v, y, o, s));
else {
const l = ve({
theme: o
}, y, (C) => ({
[v]: C
}));
po(l, y) ? h[v] = t({
sx: y,
theme: o,
nested: !0
}) : h = Fe(h, l);
}
else
h = Fe(h, e(v, y, o, s));
}), !i && o.modularCssLayers ? {
"@layer sx": er(o, rr(p, h))
} : er(o, rr(p, h));
}
return Array.isArray(n) ? n.map(c) : c(n);
}
return t;
}
const De = go();
De.filterProps = ["sx"];
function yo(e) {
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
r >>> 24, t = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
switch (o) {
case 3:
t ^= (e.charCodeAt(n + 2) & 255) << 16;
case 2:
t ^= (e.charCodeAt(n + 1) & 255) << 8;
case 1:
t ^= e.charCodeAt(n) & 255, t = /* M