@cgi-learning-hub/icons
Version:
@cgi-learning-hub/icons is an open-source React component library icons specific that implements icons for HUB's features
1,636 lines (1,635 loc) • 122 kB
JavaScript
import * as fe from "react";
import { jsxs as Mr, jsx as dr } from "react/jsx-runtime";
import Dr from "@emotion/styled";
import "@emotion/react";
const kt = (e) => e, Br = () => {
let e = kt;
return {
configure(t) {
e = t;
},
generate(t) {
return e(t);
},
reset() {
e = kt;
}
};
}, jr = Br();
function Be(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 qe(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Be(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
function Vr(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var We = { exports: {} }, ze = { exports: {} }, L = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Nt;
function Fr() {
if (Nt) return L;
Nt = 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, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, N = 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 u:
case d:
case n:
case i:
case o:
case m:
return b;
default:
switch (b = b && b.$$typeof, b) {
case c:
case p:
case h:
case S:
case s:
return b;
default:
return w;
}
}
case r:
return w;
}
}
}
function x(b) {
return D(b) === d;
}
return L.AsyncMode = u, L.ConcurrentMode = d, L.ContextConsumer = c, L.ContextProvider = s, L.Element = t, L.ForwardRef = p, L.Fragment = n, L.Lazy = h, L.Memo = S, L.Portal = r, L.Profiler = i, L.StrictMode = o, L.Suspense = m, L.isAsyncMode = function(b) {
return x(b) || D(b) === u;
}, L.isConcurrentMode = x, L.isContextConsumer = function(b) {
return D(b) === c;
}, L.isContextProvider = function(b) {
return D(b) === s;
}, L.isElement = function(b) {
return typeof b == "object" && b !== null && b.$$typeof === t;
}, L.isForwardRef = function(b) {
return D(b) === p;
}, L.isFragment = function(b) {
return D(b) === n;
}, L.isLazy = function(b) {
return D(b) === h;
}, L.isMemo = function(b) {
return D(b) === S;
}, L.isPortal = function(b) {
return D(b) === r;
}, L.isProfiler = function(b) {
return D(b) === i;
}, L.isStrictMode = function(b) {
return D(b) === o;
}, L.isSuspense = function(b) {
return D(b) === m;
}, L.isValidElementType = function(b) {
return typeof b == "string" || typeof b == "function" || b === n || b === d || b === i || b === o || b === m || b === g || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === S || b.$$typeof === s || b.$$typeof === c || b.$$typeof === p || b.$$typeof === E || b.$$typeof === O || b.$$typeof === N || b.$$typeof === l);
}, L.typeOf = D, L;
}
var W = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Mt;
function Lr() {
return Mt || (Mt = 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, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
function D(C) {
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
C === n || C === d || C === i || C === o || C === m || C === g || typeof C == "object" && C !== null && (C.$$typeof === h || C.$$typeof === S || C.$$typeof === s || C.$$typeof === c || C.$$typeof === p || C.$$typeof === E || C.$$typeof === O || C.$$typeof === N || C.$$typeof === l);
}
function x(C) {
if (typeof C == "object" && C !== null) {
var le = C.$$typeof;
switch (le) {
case t:
var Le = C.type;
switch (Le) {
case u:
case d:
case n:
case i:
case o:
case m:
return Le;
default:
var It = Le && Le.$$typeof;
switch (It) {
case c:
case p:
case h:
case S:
case s:
return It;
default:
return le;
}
}
case r:
return le;
}
}
}
var b = u, w = d, K = c, ee = s, re = t, ce = p, H = n, a = h, T = S, v = r, _ = i, R = o, te = m, ne = !1;
function $e(C) {
return ne || (ne = !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.")), y(C) || x(C) === u;
}
function y(C) {
return x(C) === d;
}
function $(C) {
return x(C) === c;
}
function M(C) {
return x(C) === s;
}
function I(C) {
return typeof C == "object" && C !== null && C.$$typeof === t;
}
function A(C) {
return x(C) === p;
}
function B(C) {
return x(C) === n;
}
function P(C) {
return x(C) === h;
}
function k(C) {
return x(C) === S;
}
function j(C) {
return x(C) === r;
}
function z(C) {
return x(C) === i;
}
function V(C) {
return x(C) === o;
}
function oe(C) {
return x(C) === m;
}
W.AsyncMode = b, W.ConcurrentMode = w, W.ContextConsumer = K, W.ContextProvider = ee, W.Element = re, W.ForwardRef = ce, W.Fragment = H, W.Lazy = a, W.Memo = T, W.Portal = v, W.Profiler = _, W.StrictMode = R, W.Suspense = te, W.isAsyncMode = $e, W.isConcurrentMode = y, W.isContextConsumer = $, W.isContextProvider = M, W.isElement = I, W.isForwardRef = A, W.isFragment = B, W.isLazy = P, W.isMemo = k, W.isPortal = j, W.isProfiler = z, W.isStrictMode = V, W.isSuspense = oe, W.isValidElementType = D, W.typeOf = x;
})()), W;
}
var Dt;
function pr() {
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? ze.exports = Fr() : ze.exports = Lr()), ze.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var ft, Bt;
function Wr() {
if (Bt) return ft;
Bt = 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 u = Object.getOwnPropertyNames(s).map(function(p) {
return s[p];
});
if (u.join("") !== "0123456789")
return !1;
var d = {};
return "abcdefghijklmnopqrst".split("").forEach(function(p) {
d[p] = p;
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return ft = o() ? Object.assign : function(i, s) {
for (var c, u = n(i), d, p = 1; p < arguments.length; p++) {
c = Object(arguments[p]);
for (var m in c)
t.call(c, m) && (u[m] = c[m]);
if (e) {
d = e(c);
for (var g = 0; g < d.length; g++)
r.call(c, d[g]) && (u[d[g]] = c[d[g]]);
}
}
return u;
}, ft;
}
var dt, jt;
function xt() {
if (jt) return dt;
jt = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return dt = e, dt;
}
var pt, Vt;
function mr() {
return Vt || (Vt = 1, pt = Function.call.bind(Object.prototype.hasOwnProperty)), pt;
}
var mt, Ft;
function zr() {
if (Ft) return mt;
Ft = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ xt(), r = {}, n = /* @__PURE__ */ mr();
e = function(i) {
var s = "Warning: " + i;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function o(i, s, c, u, d) {
if (process.env.NODE_ENV !== "production") {
for (var p in i)
if (n(i, p)) {
var m;
try {
if (typeof i[p] != "function") {
var g = Error(
(u || "React class") + ": " + c + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw g.name = "Invariant Violation", g;
}
m = i[p](s, p, u, c, null, t);
} catch (h) {
m = h;
}
if (m && !(m instanceof Error) && e(
(u || "React class") + ": type specification of " + c + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), m instanceof Error && !(m.message in r)) {
r[m.message] = !0;
var S = d ? d() : "";
e(
"Failed " + c + " type: " + m.message + (S ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
}, mt = o, mt;
}
var gt, Lt;
function Ur() {
if (Lt) return gt;
Lt = 1;
var e = pr(), t = Wr(), r = /* @__PURE__ */ xt(), n = /* @__PURE__ */ mr(), o = /* @__PURE__ */ zr(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(c) {
var u = "Warning: " + c;
typeof console < "u" && console.error(u);
try {
throw new Error(u);
} catch {
}
});
function s() {
return null;
}
return gt = function(c, u) {
var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
function m(y) {
var $ = y && (d && y[d] || y[p]);
if (typeof $ == "function")
return $;
}
var g = "<<anonymous>>", S = {
array: O("array"),
bigint: O("bigint"),
bool: O("boolean"),
func: O("function"),
number: O("number"),
object: O("object"),
string: O("string"),
symbol: O("symbol"),
any: N(),
arrayOf: D,
element: x(),
elementType: b(),
instanceOf: w,
node: ce(),
objectOf: ee,
oneOf: K,
oneOfType: re,
shape: a,
exact: T
};
function h(y, $) {
return y === $ ? y !== 0 || 1 / y === 1 / $ : y !== y && $ !== $;
}
function l(y, $) {
this.message = y, this.data = $ && typeof $ == "object" ? $ : {}, this.stack = "";
}
l.prototype = Error.prototype;
function E(y) {
if (process.env.NODE_ENV !== "production")
var $ = {}, M = 0;
function I(B, P, k, j, z, V, oe) {
if (j = j || g, V = V || k, oe !== r) {
if (u) {
var C = 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 C.name = "Invariant Violation", C;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var le = j + ":" + k;
!$[le] && // Avoid spamming the console because they are often not actionable except for lib authors
M < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + j + "`. 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."
), $[le] = !0, M++);
}
}
return P[k] == null ? B ? P[k] === null ? new l("The " + z + " `" + V + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new l("The " + z + " `" + V + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : y(P, k, j, z, V);
}
var A = I.bind(null, !1);
return A.isRequired = I.bind(null, !0), A;
}
function O(y) {
function $(M, I, A, B, P, k) {
var j = M[I], z = R(j);
if (z !== y) {
var V = te(j);
return new l(
"Invalid " + B + " `" + P + "` of type " + ("`" + V + "` supplied to `" + A + "`, expected ") + ("`" + y + "`."),
{ expectedType: y }
);
}
return null;
}
return E($);
}
function N() {
return E(s);
}
function D(y) {
function $(M, I, A, B, P) {
if (typeof y != "function")
return new l("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
var k = M[I];
if (!Array.isArray(k)) {
var j = R(k);
return new l("Invalid " + B + " `" + P + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an array."));
}
for (var z = 0; z < k.length; z++) {
var V = y(k, z, A, B, P + "[" + z + "]", r);
if (V instanceof Error)
return V;
}
return null;
}
return E($);
}
function x() {
function y($, M, I, A, B) {
var P = $[M];
if (!c(P)) {
var k = R(P);
return new l("Invalid " + A + " `" + B + "` of type " + ("`" + k + "` supplied to `" + I + "`, expected a single ReactElement."));
}
return null;
}
return E(y);
}
function b() {
function y($, M, I, A, B) {
var P = $[M];
if (!e.isValidElementType(P)) {
var k = R(P);
return new l("Invalid " + A + " `" + B + "` of type " + ("`" + k + "` supplied to `" + I + "`, expected a single ReactElement type."));
}
return null;
}
return E(y);
}
function w(y) {
function $(M, I, A, B, P) {
if (!(M[I] instanceof y)) {
var k = y.name || g, j = $e(M[I]);
return new l("Invalid " + B + " `" + P + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected ") + ("instance of `" + k + "`."));
}
return null;
}
return E($);
}
function K(y) {
if (!Array.isArray(y))
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 $(M, I, A, B, P) {
for (var k = M[I], j = 0; j < y.length; j++)
if (h(k, y[j]))
return null;
var z = JSON.stringify(y, function(oe, C) {
var le = te(C);
return le === "symbol" ? String(C) : C;
});
return new l("Invalid " + B + " `" + P + "` of value `" + String(k) + "` " + ("supplied to `" + A + "`, expected one of " + z + "."));
}
return E($);
}
function ee(y) {
function $(M, I, A, B, P) {
if (typeof y != "function")
return new l("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
var k = M[I], j = R(k);
if (j !== "object")
return new l("Invalid " + B + " `" + P + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an object."));
for (var z in k)
if (n(k, z)) {
var V = y(k, z, A, B, P + "." + z, r);
if (V instanceof Error)
return V;
}
return null;
}
return E($);
}
function re(y) {
if (!Array.isArray(y))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var $ = 0; $ < y.length; $++) {
var M = y[$];
if (typeof M != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(M) + " at index " + $ + "."
), s;
}
function I(A, B, P, k, j) {
for (var z = [], V = 0; V < y.length; V++) {
var oe = y[V], C = oe(A, B, P, k, j, r);
if (C == null)
return null;
C.data && n(C.data, "expectedType") && z.push(C.data.expectedType);
}
var le = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
return new l("Invalid " + k + " `" + j + "` supplied to " + ("`" + P + "`" + le + "."));
}
return E(I);
}
function ce() {
function y($, M, I, A, B) {
return v($[M]) ? null : new l("Invalid " + A + " `" + B + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
}
return E(y);
}
function H(y, $, M, I, A) {
return new l(
(y || "React class") + ": " + $ + " type `" + M + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
);
}
function a(y) {
function $(M, I, A, B, P) {
var k = M[I], j = R(k);
if (j !== "object")
return new l("Invalid " + B + " `" + P + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
for (var z in y) {
var V = y[z];
if (typeof V != "function")
return H(A, B, P, z, te(V));
var oe = V(k, z, A, B, P + "." + z, r);
if (oe)
return oe;
}
return null;
}
return E($);
}
function T(y) {
function $(M, I, A, B, P) {
var k = M[I], j = R(k);
if (j !== "object")
return new l("Invalid " + B + " `" + P + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
var z = t({}, M[I], y);
for (var V in z) {
var oe = y[V];
if (n(y, V) && typeof oe != "function")
return H(A, B, P, V, te(oe));
if (!oe)
return new l(
"Invalid " + B + " `" + P + "` key `" + V + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(M[I], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
);
var C = oe(k, V, A, B, P + "." + V, r);
if (C)
return C;
}
return null;
}
return E($);
}
function v(y) {
switch (typeof y) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !y;
case "object":
if (Array.isArray(y))
return y.every(v);
if (y === null || c(y))
return !0;
var $ = m(y);
if ($) {
var M = $.call(y), I;
if ($ !== y.entries) {
for (; !(I = M.next()).done; )
if (!v(I.value))
return !1;
} else
for (; !(I = M.next()).done; ) {
var A = I.value;
if (A && !v(A[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function _(y, $) {
return y === "symbol" ? !0 : $ ? $["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && $ instanceof Symbol : !1;
}
function R(y) {
var $ = typeof y;
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : _($, y) ? "symbol" : $;
}
function te(y) {
if (typeof y > "u" || y === null)
return "" + y;
var $ = R(y);
if ($ === "object") {
if (y instanceof Date)
return "date";
if (y instanceof RegExp)
return "regexp";
}
return $;
}
function ne(y) {
var $ = te(y);
switch ($) {
case "array":
case "object":
return "an " + $;
case "boolean":
case "date":
case "regexp":
return "a " + $;
default:
return $;
}
}
function $e(y) {
return !y.constructor || !y.constructor.name ? g : y.constructor.name;
}
return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
}, gt;
}
var ht, Wt;
function Yr() {
if (Wt) return ht;
Wt = 1;
var e = /* @__PURE__ */ xt();
function t() {
}
function r() {
}
return r.resetWarningCache = t, ht = function() {
function n(s, c, u, d, p, m) {
if (m !== e) {
var g = 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 g.name = "Invariant Violation", g;
}
}
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;
}, ht;
}
var zt;
function Gr() {
if (zt) return We.exports;
if (zt = 1, process.env.NODE_ENV !== "production") {
var e = pr(), t = !0;
We.exports = /* @__PURE__ */ Ur()(e.isElement, t);
} else
We.exports = /* @__PURE__ */ Yr()();
return We.exports;
}
var qr = /* @__PURE__ */ Gr();
const F = /* @__PURE__ */ Vr(qr);
function gr(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 = gr(e[t])) && (n && (n += " "), n += r);
} else for (r in e) e[r] && (n && (n += " "), n += r);
return n;
}
function hr() {
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = gr(e)) && (n && (n += " "), n += t);
return n;
}
function Kr(e, t, r = void 0) {
const n = {};
for (const o in e) {
const i = e[o];
let s = "", c = !0;
for (let u = 0; u < i.length; u += 1) {
const d = i[u];
d && (s += (c === !0 ? "" : " ") + t(d), c = !1, r && r[d] && (s += " " + r[d]));
}
n[o] = s;
}
return n;
}
function Ke(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 wt(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ke(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
var Ue = { exports: {} }, G = {};
/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ut;
function Hr() {
if (Ut) return G;
Ut = 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"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.view_transition"), S = Symbol.for("react.client.reference");
function h(l) {
if (typeof l == "object" && l !== null) {
var E = l.$$typeof;
switch (E) {
case e:
switch (l = l.type, l) {
case r:
case o:
case n:
case u:
case d:
case g:
return l;
default:
switch (l = l && l.$$typeof, l) {
case s:
case c:
case m:
case p:
return l;
case i:
return l;
default:
return E;
}
}
case t:
return E;
}
}
}
return G.ContextConsumer = i, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy = m, G.Memo = p, G.Portal = t, G.Profiler = o, G.StrictMode = n, G.Suspense = u, G.SuspenseList = d, G.isContextConsumer = function(l) {
return h(l) === i;
}, G.isContextProvider = function(l) {
return h(l) === s;
}, G.isElement = function(l) {
return typeof l == "object" && l !== null && l.$$typeof === e;
}, G.isForwardRef = function(l) {
return h(l) === c;
}, G.isFragment = function(l) {
return h(l) === r;
}, G.isLazy = function(l) {
return h(l) === m;
}, G.isMemo = function(l) {
return h(l) === p;
}, G.isPortal = function(l) {
return h(l) === t;
}, G.isProfiler = function(l) {
return h(l) === o;
}, G.isStrictMode = function(l) {
return h(l) === n;
}, G.isSuspense = function(l) {
return h(l) === u;
}, G.isSuspenseList = function(l) {
return h(l) === d;
}, G.isValidElementType = function(l) {
return typeof l == "string" || typeof l == "function" || l === r || l === o || l === n || l === u || l === d || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === p || l.$$typeof === s || l.$$typeof === i || l.$$typeof === c || l.$$typeof === S || l.getModuleId !== void 0);
}, G.typeOf = h, G;
}
var q = {};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Yt;
function Qr() {
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && (function() {
function e(l) {
if (typeof l == "object" && l !== null) {
var E = l.$$typeof;
switch (E) {
case t:
switch (l = l.type, l) {
case n:
case i:
case o:
case d:
case p:
case S:
return l;
default:
switch (l = l && l.$$typeof, l) {
case c:
case u:
case g:
case m:
return l;
case s:
return l;
default:
return E;
}
}
case r:
return E;
}
}
}
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"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
q.ContextConsumer = s, q.ContextProvider = c, q.Element = t, q.ForwardRef = u, q.Fragment = n, q.Lazy = g, q.Memo = m, q.Portal = r, q.Profiler = i, q.StrictMode = o, q.Suspense = d, q.SuspenseList = p, q.isContextConsumer = function(l) {
return e(l) === s;
}, q.isContextProvider = function(l) {
return e(l) === c;
}, q.isElement = function(l) {
return typeof l == "object" && l !== null && l.$$typeof === t;
}, q.isForwardRef = function(l) {
return e(l) === u;
}, q.isFragment = function(l) {
return e(l) === n;
}, q.isLazy = function(l) {
return e(l) === g;
}, q.isMemo = function(l) {
return e(l) === m;
}, q.isPortal = function(l) {
return e(l) === r;
}, q.isProfiler = function(l) {
return e(l) === i;
}, q.isStrictMode = function(l) {
return e(l) === o;
}, q.isSuspense = function(l) {
return e(l) === d;
}, q.isSuspenseList = function(l) {
return e(l) === p;
}, q.isValidElementType = function(l) {
return typeof l == "string" || typeof l == "function" || l === n || l === i || l === o || l === d || l === p || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === m || l.$$typeof === c || l.$$typeof === s || l.$$typeof === u || l.$$typeof === h || l.getModuleId !== void 0);
}, q.typeOf = e;
})()), q;
}
var Gt;
function Xr() {
return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? Ue.exports = /* @__PURE__ */ Hr() : Ue.exports = /* @__PURE__ */ Qr()), Ue.exports;
}
var Pe = /* @__PURE__ */ Xr();
function ve(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 yr(e) {
if (/* @__PURE__ */ fe.isValidElement(e) || Pe.isValidElementType(e) || !ve(e))
return e;
const t = {};
return Object.keys(e).forEach((r) => {
t[r] = yr(e[r]);
}), t;
}
function Ee(e, t, r = {
clone: !0
}) {
const n = r.clone ? {
...e
} : e;
return ve(e) && ve(t) && Object.keys(t).forEach((o) => {
/* @__PURE__ */ fe.isValidElement(t[o]) || Pe.isValidElementType(t[o]) ? n[o] = t[o] : ve(t[o]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(e, o) && ve(e[o]) ? n[o] = Ee(e[o], t[o], r) : r.clone ? n[o] = ve(t[o]) ? yr(t[o]) : t[o] : n[o] = t[o];
}), n;
}
function De(e, t) {
return t ? Ee(e, t, {
clone: !1
// No need to clone deep, it's way faster.
}) : e;
}
const ye = process.env.NODE_ENV !== "production" ? F.oneOfType([F.number, F.string, F.object, F.array]) : {};
function qt(e, t) {
if (!e.containerQueries)
return t;
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
var s, c;
const i = /min-width:\s*([0-9.]+)/;
return +(((s = n.match(i)) == null ? void 0 : s[1]) || 0) - +(((c = o.match(i)) == null ? void 0 : c[1]) || 0);
});
return r.length ? r.reduce((n, o) => {
const i = t[o];
return delete n[o], n[o] = i, n;
}, {
...t
}) : t;
}
function Jr(e, t) {
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
}
function Zr(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\`.` : Ke(18, `(${t})`));
return null;
}
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
return e.containerQueries(o).up(i);
}
function en(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 u = t(e.breakpoints.not(...c), s);
return u.includes("not all and") ? u.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : u;
};
}
const n = {}, o = (i) => (r(n, i), n);
return r(o), {
...e,
containerQueries: o
};
}
const Je = {
xs: 0,
// phone
sm: 600,
// tablet
md: 900,
// small laptop
lg: 1200,
// desktop
xl: 1536
// large screen
}, Kt = {
// 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:${Je[e]}px)`
}, tn = {
containerQueries: (e) => ({
up: (t) => {
let r = typeof t == "number" ? t : Je[t] || t;
return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
}
})
};
function pe(e, t, r) {
const n = e.theme || {};
if (Array.isArray(t)) {
const i = n.breakpoints || Kt;
return t.reduce((s, c, u) => (s[i.up(i.keys[u])] = r(t[u]), s), {});
}
if (typeof t == "object") {
const i = n.breakpoints || Kt;
return Object.keys(t).reduce((s, c) => {
if (Jr(i.keys, c)) {
const u = Zr(n.containerQueries ? n : tn, c);
u && (s[u] = r(t[c], c));
} else if (Object.keys(i.values || Je).includes(c)) {
const u = i.up(c);
s[u] = r(t[c], c);
} else {
const u = c;
s[u] = t[u];
}
return s;
}, {});
}
return r(t);
}
function rn(e = {}) {
var r;
return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
const i = e.up(o);
return n[i] = {}, n;
}, {})) || {};
}
function Ht(e, t) {
return e.reduce((r, n) => {
const o = r[n];
return (!o || Object.keys(o).length === 0) && delete r[n], r;
}, t);
}
function Ze(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 He(e, t, r, n = r) {
let o;
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = Ze(e, r) || n, t && (o = t(o, n, e)), o;
}
function Z(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], u = s.theme, d = Ze(u, n) || {};
return pe(s, c, (m) => {
let g = He(d, o, m);
return m === g && typeof m == "string" && (g = He(d, o, `${t}${m === "default" ? "" : wt(m)}`, m)), r === !1 ? g : {
[r]: g
};
});
};
return i.propTypes = process.env.NODE_ENV !== "production" ? {
[t]: ye
} : {}, i.filterProps = [t], i;
}
function nn(e) {
const t = {};
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
}
const on = {
m: "margin",
p: "padding"
}, an = {
t: "Top",
r: "Right",
b: "Bottom",
l: "Left",
x: ["Left", "Right"],
y: ["Top", "Bottom"]
}, Qt = {
marginX: "mx",
marginY: "my",
paddingX: "px",
paddingY: "py"
}, sn = nn((e) => {
if (e.length > 2)
if (Qt[e])
e = Qt[e];
else
return [e];
const [t, r] = e.split(""), n = on[t], o = an[r] || "";
return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
}), et = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], tt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], cn = [...et, ...tt];
function Ve(e, t, r, n) {
const o = Ze(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 Ot(e) {
return Ve(e, "spacing", 8, "spacing");
}
function Fe(e, t) {
return typeof t == "string" || t == null ? t : e(t);
}
function ln(e, t) {
return (r) => e.reduce((n, o) => (n[o] = Fe(t, r), n), {});
}
function un(e, t, r, n) {
if (!t.includes(r))
return null;
const o = sn(r), i = ln(o, n), s = e[r];
return pe(e, s, i);
}
function br(e, t) {
const r = Ot(e.theme);
return Object.keys(e).map((n) => un(e, t, n, r)).reduce(De, {});
}
function X(e) {
return br(e, et);
}
X.propTypes = process.env.NODE_ENV !== "production" ? et.reduce((e, t) => (e[t] = ye, e), {}) : {};
X.filterProps = et;
function J(e) {
return br(e, tt);
}
J.propTypes = process.env.NODE_ENV !== "production" ? tt.reduce((e, t) => (e[t] = ye, e), {}) : {};
J.filterProps = tt;
process.env.NODE_ENV !== "production" && cn.reduce((e, t) => (e[t] = ye, e), {});
function rt(...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] ? De(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 ae(e) {
return typeof e != "number" ? e : `${e}px solid`;
}
function se(e, t) {
return Z({
prop: e,
themeKey: "borders",
transform: t
});
}
const fn = se("border", ae), dn = se("borderTop", ae), pn = se("borderRight", ae), mn = se("borderBottom", ae), gn = se("borderLeft", ae), hn = se("borderColor"), yn = se("borderTopColor"), bn = se("borderRightColor"), vn = se("borderBottomColor"), Sn = se("borderLeftColor"), En = se("outline", ae), Cn = se("outlineColor"), nt = (e) => {
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
const t = Ve(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
borderRadius: Fe(t, n)
});
return pe(e, e.borderRadius, r);
}
return null;
};
nt.propTypes = process.env.NODE_ENV !== "production" ? {
borderRadius: ye
} : {};
nt.filterProps = ["borderRadius"];
rt(fn, dn, pn, mn, gn, hn, yn, bn, vn, Sn, nt, En, Cn);
const ot = (e) => {
if (e.gap !== void 0 && e.gap !== null) {
const t = Ve(e.theme, "spacing", 8, "gap"), r = (n) => ({
gap: Fe(t, n)
});
return pe(e, e.gap, r);
}
return null;
};
ot.propTypes = process.env.NODE_ENV !== "production" ? {
gap: ye
} : {};
ot.filterProps = ["gap"];
const it = (e) => {
if (e.columnGap !== void 0 && e.columnGap !== null) {
const t = Ve(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
columnGap: Fe(t, n)
});
return pe(e, e.columnGap, r);
}
return null;
};
it.propTypes = process.env.NODE_ENV !== "production" ? {
columnGap: ye
} : {};
it.filterProps = ["columnGap"];
const at = (e) => {
if (e.rowGap !== void 0 && e.rowGap !== null) {
const t = Ve(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
rowGap: Fe(t, n)
});
return pe(e, e.rowGap, r);
}
return null;
};
at.propTypes = process.env.NODE_ENV !== "production" ? {
rowGap: ye
} : {};
at.filterProps = ["rowGap"];
const Tn = Z({
prop: "gridColumn"
}), $n = Z({
prop: "gridRow"
}), xn = Z({
prop: "gridAutoFlow"
}), wn = Z({
prop: "gridAutoColumns"
}), On = Z({
prop: "gridAutoRows"
}), _n = Z({
prop: "gridTemplateColumns"
}), An = Z({
prop: "gridTemplateRows"
}), Rn = Z({
prop: "gridTemplateAreas"
}), Pn = Z({
prop: "gridArea"
});
rt(ot, it, at, Tn, $n, xn, wn, On, _n, An, Rn, Pn);
function Re(e, t) {
return t === "grey" ? t : e;
}
const In = Z({
prop: "color",
themeKey: "palette",
transform: Re
}), kn = Z({
prop: "bgcolor",
cssProperty: "backgroundColor",
themeKey: "palette",
transform: Re
}), Nn = Z({
prop: "backgroundColor",
themeKey: "palette",
transform: Re
});
rt(In, kn, Nn);
function ie(e) {
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
}
const Mn = Z({
prop: "width",
transform: ie
}), _t = (e) => {
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
const t = (r) => {
var o, i, s, c, u;
const n = ((s = (i = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : i.values) == null ? void 0 : s[r]) || Je[r];
return n ? ((u = (c = e.theme) == null ? void 0 : c.breakpoints) == null ? void 0 : u.unit) !== "px" ? {
maxWidth: `${n}${e.theme.breakpoints.unit}`
} : {
maxWidth: n
} : {
maxWidth: ie(r)
};
};
return pe(e, e.maxWidth, t);
}
return null;
};
_t.filterProps = ["maxWidth"];
const Dn = Z({
prop: "minWidth",
transform: ie
}), Bn = Z({
prop: "height",
transform: ie
}), jn = Z({
prop: "maxHeight",
transform: ie
}), Vn = Z({
prop: "minHeight",
transform: ie
});
Z({
prop: "size",
cssProperty: "width",
transform: ie
});
Z({
prop: "size",
cssProperty: "height",
transform: ie
});
const Fn = Z({
prop: "boxSizing"
});
rt(Mn, _t, Dn, Bn, jn, Vn, Fn);
const st = {
// borders
border: {
themeKey: "borders",
transform: ae
},
borderTop: {
themeKey: "borders",
transform: ae
},
borderRight: {
themeKey: "borders",
transform: ae
},
borderBottom: {
themeKey: "borders",
transform: ae
},
borderLeft: {
themeKey: "borders",
transform: ae
},
borderColor: {
themeKey: "palette"
},
borderTopColor: {
themeKey: "palette"
},
borderRightColor: {
themeKey: "palette"
},
borderBottomColor: {
themeKey: "palette"
},
borderLeftColor: {
themeKey: "palette"
},
outline: {
themeKey: "borders",
transform: ae
},
outlineColor: {
themeKey: "palette"
},
borderRadius: {
themeKey: "shape.borderRadius",
style: nt
},
// palette
color: {
themeKey: "palette",
transform: Re
},
bgcolor: {
themeKey: "palette",
cssProperty: "backgroundColor",
transform: Re
},
backgroundColor: {
themeKey: "palette",
transform: Re
},
// spacing
p: {
style: J
},
pt: {
style: J
},
pr: {
style: J
},
pb: {
style: J
},
pl: {
style: J
},
px: {
style: J
},
py: {
style: J
},
padding: {
style: J
},
paddingTop: {
style: J
},
paddingRight: {
style: J
},
paddingBottom: {
style: J
},
paddingLeft: {
style: J
},
paddingX: {
style: J
},
paddingY: {
style: J
},
paddingInline: {
style: J
},
paddingInlineStart: {
style: J
},
paddingInlineEnd: {
style: J
},
paddingBlock: {
style: J
},
paddingBlockStart: {
style: J
},
paddingBlockEnd: {
style: J
},
m: {
style: X
},
mt: {
style: X
},
mr: {
style: X
},
mb: {
style: X
},
ml: {
style: X
},
mx: {
style: X
},
my: {
style: X
},
margin: {
style: X
},
marginTop: {
style: X
},
marginRight: {
style: X
},
marginBottom: {
style: X
},
marginLeft: {
style: X
},
marginX: {
style: X
},
marginY: {
style: X
},
marginInline: {
style: X
},
marginInlineStart: {
style: X
},
marginInlineEnd: {
style: X
},
marginBlock: {
style: X
},
marginBlockStart: {
style: X
},
marginBlockEnd: {
style: X
},
// 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: ot
},
rowGap: {
style: at
},
columnGap: {
style: it
},
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: ie
},
maxWidth: {
style: _t
},
minWidth: {
transform: ie
},
height: {
transform: ie
},
maxHeight: {
transform: ie
},
minHeight: {
transform: ie
},
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 Ln(...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 Wn(e, t) {
return typeof e == "function" ? e(t) : e;
}
function zn() {
function e(r, n, o, i) {
const s = {
[r]: n,
theme: o
}, c = i[r];
if (!c)
return {
[r]: n
};
const {
cssProperty: u = r,
themeKey: d,
transform: p,
style: m
} = c;
if (n == null)
return null;
if (d === "typography" && n === "inherit")
return {
[r]: n
};
const g = Ze(o, d) || {};
return m ? m(s) : pe(s, n, (h) => {
let l = He(g, p, h);
return h === l && typeof h == "string" && (l = He(g, p, `${r}${h === "default" ? "" : wt(h)}`, h)), u === !1 ? l : {
[u]: l
};
});
}
function t(r) {
const {
sx: n,
theme: o = {},
nested: i
} = r || {};
if (!n)
return null;
const s = o.unstable_sxConfig ?? st;
function c(u) {
let d = u;
if (typeof u == "function")
d = u(o);
else if (typeof u != "object")
return u;
if (!d)
return null;
const p = rn(o.breakpoints), m = Object.keys(p);
let g = p;
return Object.keys(d).forEach((S) => {
const h = Wn(d[S], o);
if (h != null)
if (typeof h == "object")
if (s[S])
g = De(g, e(S, h, o, s));
else {
const l = pe({