mui-dynamic-field
Version:
A dynamic and customizable input field component for React, built with Material UI & TypeScript.
1,361 lines (1,359 loc) • 826 kB
JavaScript
var Jf = Object.defineProperty;
var Vf = (A, e, t) => e in A ? Jf(A, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : A[e] = t;
var er = (A, e, t) => Vf(A, typeof e != "symbol" ? e + "" : e, t);
import * as b from "react";
import ve, { forwardRef as yi, useContext as bi, useState as ne, isValidElement as ct, cloneElement as lt, Children as hc, useMemo as Bn, useCallback as Vo, useRef as Qt, useEffect as Ir, createContext as Wf, useImperativeHandle as $f } from "react";
import { TextField as Se, IconButton as ft, Autocomplete as Di, MenuItem as Qc, Typography as NA, Modal as Ec, Box as se, Button as qf, useTheme as yc, LinearProgress as Zf, CircularProgress as xi, Checkbox as bc, Chip as _f, FormGroup as Au, FormControlLabel as eu, FormControl as tu, InputLabel as ru, Select as nu, FormHelperText as ou } from "@mui/material";
import * as iu from "react-dom";
import Yr from "react-dom";
function su(A) {
return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
}
var Xr = { exports: {} }, tr = {};
/**
* @license React
* react-jsx-runtime.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 Ps;
function au() {
if (Ps) return tr;
Ps = 1;
var A = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
function t(r, n, o) {
var i = null;
if (o !== void 0 && (i = "" + o), n.key !== void 0 && (i = "" + n.key), "key" in n) {
o = {};
for (var s in n)
s !== "key" && (o[s] = n[s]);
} else o = n;
return n = o.ref, {
$$typeof: A,
type: r,
key: i,
ref: n !== void 0 ? n : null,
props: o
};
}
return tr.Fragment = e, tr.jsx = t, tr.jsxs = t, tr;
}
var rr = {};
/**
* @license React
* react-jsx-runtime.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 ms;
function cu() {
return ms || (ms = 1, process.env.NODE_ENV !== "production" && function() {
function A(v) {
if (v == null) return null;
if (typeof v == "function")
return v.$$typeof === _ ? null : v.displayName || v.name || null;
if (typeof v == "string") return v;
switch (v) {
case M:
return "Fragment";
case d:
return "Portal";
case L:
return "Profiler";
case k:
return "StrictMode";
case S:
return "Suspense";
case H:
return "SuspenseList";
}
if (typeof v == "object")
switch (typeof v.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), v.$$typeof) {
case l:
return (v.displayName || "Context") + ".Provider";
case z:
return (v._context.displayName || "Context") + ".Consumer";
case x:
var j = v.render;
return v = v.displayName, v || (v = j.displayName || j.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
case O:
return j = v.displayName || null, j !== null ? j : A(v.type) || "Memo";
case $:
j = v._payload, v = v._init;
try {
return A(v(j));
} catch {
}
}
return null;
}
function e(v) {
return "" + v;
}
function t(v) {
try {
e(v);
var j = !1;
} catch {
j = !0;
}
if (j) {
j = console;
var G = j.error, iA = typeof Symbol == "function" && Symbol.toStringTag && v[Symbol.toStringTag] || v.constructor.name || "Object";
return G.call(
j,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
iA
), e(v);
}
}
function r() {
}
function n() {
if (Y === 0) {
U = console.log, K = console.info, W = console.warn, eA = console.error, V = console.group, X = console.groupCollapsed, rA = console.groupEnd;
var v = {
configurable: !0,
enumerable: !0,
value: r,
writable: !0
};
Object.defineProperties(console, {
info: v,
log: v,
warn: v,
error: v,
group: v,
groupCollapsed: v,
groupEnd: v
});
}
Y++;
}
function o() {
if (Y--, Y === 0) {
var v = { configurable: !0, enumerable: !0, writable: !0 };
Object.defineProperties(console, {
log: F({}, v, { value: U }),
info: F({}, v, { value: K }),
warn: F({}, v, { value: W }),
error: F({}, v, { value: eA }),
group: F({}, v, { value: V }),
groupCollapsed: F({}, v, { value: X }),
groupEnd: F({}, v, { value: rA })
});
}
0 > Y && console.error(
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
);
}
function i(v) {
if (E === void 0)
try {
throw Error();
} catch (G) {
var j = G.stack.trim().match(/\n( *(at )?)/);
E = j && j[1] || "", cA = -1 < G.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < G.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + E + v + cA;
}
function s(v, j) {
if (!v || fA) return "";
var G = BA.get(v);
if (G !== void 0) return G;
fA = !0, G = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
var iA = null;
iA = AA.H, AA.H = null, n();
try {
var uA = {
DetermineComponentFrameRoot: function() {
try {
if (j) {
var ee = function() {
throw Error();
};
if (Object.defineProperty(ee.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(ee, []);
} catch (ZA) {
var we = ZA;
}
Reflect.construct(v, [], ee);
} else {
try {
ee.call();
} catch (ZA) {
we = ZA;
}
v.call(ee.prototype);
}
} else {
try {
throw Error();
} catch (ZA) {
we = ZA;
}
(ee = v()) && typeof ee.catch == "function" && ee.catch(function() {
});
}
} catch (ZA) {
if (ZA && we && typeof ZA.stack == "string")
return [ZA.stack, we.stack];
}
return [null, null];
}
};
uA.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var lA = Object.getOwnPropertyDescriptor(
uA.DetermineComponentFrameRoot,
"name"
);
lA && lA.configurable && Object.defineProperty(
uA.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var tA = uA.DetermineComponentFrameRoot(), qA = tA[0], pe = tA[1];
if (qA && pe) {
var gA = qA.split(`
`), ie = pe.split(`
`);
for (tA = lA = 0; lA < gA.length && !gA[lA].includes(
"DetermineComponentFrameRoot"
); )
lA++;
for (; tA < ie.length && !ie[tA].includes(
"DetermineComponentFrameRoot"
); )
tA++;
if (lA === gA.length || tA === ie.length)
for (lA = gA.length - 1, tA = ie.length - 1; 1 <= lA && 0 <= tA && gA[lA] !== ie[tA]; )
tA--;
for (; 1 <= lA && 0 <= tA; lA--, tA--)
if (gA[lA] !== ie[tA]) {
if (lA !== 1 || tA !== 1)
do
if (lA--, tA--, 0 > tA || gA[lA] !== ie[tA]) {
var he = `
` + gA[lA].replace(
" at new ",
" at "
);
return v.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", v.displayName)), typeof v == "function" && BA.set(v, he), he;
}
while (1 <= lA && 0 <= tA);
break;
}
}
} finally {
fA = !1, AA.H = iA, o(), Error.prepareStackTrace = G;
}
return gA = (gA = v ? v.displayName || v.name : "") ? i(gA) : "", typeof v == "function" && BA.set(v, gA), gA;
}
function u(v) {
if (v == null) return "";
if (typeof v == "function") {
var j = v.prototype;
return s(
v,
!(!j || !j.isReactComponent)
);
}
if (typeof v == "string") return i(v);
switch (v) {
case S:
return i("Suspense");
case H:
return i("SuspenseList");
}
if (typeof v == "object")
switch (v.$$typeof) {
case x:
return v = s(v.render, !1), v;
case O:
return u(v.type);
case $:
j = v._payload, v = v._init;
try {
return u(v(j));
} catch {
}
}
return "";
}
function f() {
var v = AA.A;
return v === null ? null : v.getOwner();
}
function p(v) {
if (D.call(v, "key")) {
var j = Object.getOwnPropertyDescriptor(v, "key").get;
if (j && j.isReactWarning) return !1;
}
return v.key !== void 0;
}
function g(v, j) {
function G() {
kA || (kA = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
j
));
}
G.isReactWarning = !0, Object.defineProperty(v, "key", {
get: G,
configurable: !0
});
}
function w() {
var v = A(this.type);
return RA[v] || (RA[v] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), v = this.props.ref, v !== void 0 ? v : null;
}
function P(v, j, G, iA, uA, lA) {
return G = lA.ref, v = {
$$typeof: m,
type: v,
key: j,
props: lA,
_owner: uA
}, (G !== void 0 ? G : null) !== null ? Object.defineProperty(v, "ref", {
enumerable: !1,
get: w
}) : Object.defineProperty(v, "ref", { enumerable: !1, value: null }), v._store = {}, Object.defineProperty(v._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(v, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
}
function B(v, j, G, iA, uA, lA) {
if (typeof v == "string" || typeof v == "function" || v === M || v === L || v === k || v === S || v === H || v === q || typeof v == "object" && v !== null && (v.$$typeof === $ || v.$$typeof === O || v.$$typeof === l || v.$$typeof === z || v.$$typeof === x || v.$$typeof === Z || v.getModuleId !== void 0)) {
var tA = j.children;
if (tA !== void 0)
if (iA)
if (J(tA)) {
for (iA = 0; iA < tA.length; iA++)
a(tA[iA], v);
Object.freeze && Object.freeze(tA);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else a(tA, v);
} else
tA = "", (v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (tA += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), v === null ? iA = "null" : J(v) ? iA = "array" : v !== void 0 && v.$$typeof === m ? (iA = "<" + (A(v.type) || "Unknown") + " />", tA = " Did you accidentally export a JSX literal instead of a component?") : iA = typeof v, console.error(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
iA,
tA
);
if (D.call(j, "key")) {
tA = A(v);
var qA = Object.keys(j).filter(function(gA) {
return gA !== "key";
});
iA = 0 < qA.length ? "{key: someKey, " + qA.join(": ..., ") + ": ...}" : "{key: someKey}", ue[tA + iA] || (qA = 0 < qA.length ? "{" + qA.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
iA,
tA,
qA,
tA
), ue[tA + iA] = !0);
}
if (tA = null, G !== void 0 && (t(G), tA = "" + G), p(j) && (t(j.key), tA = "" + j.key), "key" in j) {
G = {};
for (var pe in j)
pe !== "key" && (G[pe] = j[pe]);
} else G = j;
return tA && g(
G,
typeof v == "function" ? v.displayName || v.name || "Unknown" : v
), P(v, tA, lA, uA, f(), G);
}
function a(v, j) {
if (typeof v == "object" && v && v.$$typeof !== YA) {
if (J(v))
for (var G = 0; G < v.length; G++) {
var iA = v[G];
C(iA) && Q(iA, j);
}
else if (C(v))
v._store && (v._store.validated = 1);
else if (v === null || typeof v != "object" ? G = null : (G = nA && v[nA] || v["@@iterator"], G = typeof G == "function" ? G : null), typeof G == "function" && G !== v.entries && (G = G.call(v), G !== v))
for (; !(v = G.next()).done; )
C(v.value) && Q(v.value, j);
}
}
function C(v) {
return typeof v == "object" && v !== null && v.$$typeof === m;
}
function Q(v, j) {
if (v._store && !v._store.validated && v.key == null && (v._store.validated = 1, j = y(j), !IA[j])) {
IA[j] = !0;
var G = "";
v && v._owner != null && v._owner !== f() && (G = null, typeof v._owner.tag == "number" ? G = A(v._owner.type) : typeof v._owner.name == "string" && (G = v._owner.name), G = " It was passed a child from " + G + ".");
var iA = AA.getCurrentStack;
AA.getCurrentStack = function() {
var uA = u(v.type);
return iA && (uA += iA() || ""), uA;
}, console.error(
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
j,
G
), AA.getCurrentStack = iA;
}
}
function y(v) {
var j = "", G = f();
return G && (G = A(G.type)) && (j = `
Check the render method of \`` + G + "`."), j || (v = A(v)) && (j = `
Check the top-level render call using <` + v + ">."), j;
}
var h = ve, m = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), l = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), nA = Symbol.iterator, _ = Symbol.for("react.client.reference"), AA = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, F = Object.assign, Z = Symbol.for("react.client.reference"), J = Array.isArray, Y = 0, U, K, W, eA, V, X, rA;
r.__reactDisabledLog = !0;
var E, cA, fA = !1, BA = new (typeof WeakMap == "function" ? WeakMap : Map)(), YA = Symbol.for("react.client.reference"), kA, RA = {}, ue = {}, IA = {};
rr.Fragment = M, rr.jsx = function(v, j, G, iA, uA) {
return B(v, j, G, !1, iA, uA);
}, rr.jsxs = function(v, j, G, iA, uA) {
return B(v, j, G, !0, iA, uA);
};
}()), rr;
}
var Cs;
function lu() {
return Cs || (Cs = 1, process.env.NODE_ENV === "production" ? Xr.exports = au() : Xr.exports = cu()), Xr.exports;
}
var oA = lu();
function fu(A, e) {
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
return A(...r) || e(...r);
};
}
var Kr = { exports: {} }, MA = {};
/**
* @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 hs;
function uu() {
if (hs) return MA;
hs = 1;
var A = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.for("react.client.reference");
function B(a) {
if (typeof a == "object" && a !== null) {
var C = a.$$typeof;
switch (C) {
case A:
switch (a = a.type, a) {
case t:
case n:
case r:
case u:
case f:
return a;
default:
switch (a = a && a.$$typeof, a) {
case i:
case s:
case g:
case p:
return a;
case o:
return a;
default:
return C;
}
}
case e:
return C;
}
}
}
return MA.ContextConsumer = o, MA.ContextProvider = i, MA.Element = A, MA.ForwardRef = s, MA.Fragment = t, MA.Lazy = g, MA.Memo = p, MA.Portal = e, MA.Profiler = n, MA.StrictMode = r, MA.Suspense = u, MA.SuspenseList = f, MA.isContextConsumer = function(a) {
return B(a) === o;
}, MA.isContextProvider = function(a) {
return B(a) === i;
}, MA.isElement = function(a) {
return typeof a == "object" && a !== null && a.$$typeof === A;
}, MA.isForwardRef = function(a) {
return B(a) === s;
}, MA.isFragment = function(a) {
return B(a) === t;
}, MA.isLazy = function(a) {
return B(a) === g;
}, MA.isMemo = function(a) {
return B(a) === p;
}, MA.isPortal = function(a) {
return B(a) === e;
}, MA.isProfiler = function(a) {
return B(a) === n;
}, MA.isStrictMode = function(a) {
return B(a) === r;
}, MA.isSuspense = function(a) {
return B(a) === u;
}, MA.isSuspenseList = function(a) {
return B(a) === f;
}, MA.isValidElementType = function(a) {
return typeof a == "string" || typeof a == "function" || a === t || a === n || a === r || a === u || a === f || a === w || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === p || a.$$typeof === i || a.$$typeof === o || a.$$typeof === s || a.$$typeof === P || a.getModuleId !== void 0);
}, MA.typeOf = B, MA;
}
var FA = {};
/**
* @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 Qs;
function gu() {
return Qs || (Qs = 1, process.env.NODE_ENV !== "production" && function() {
function A(a) {
if (typeof a == "object" && a !== null) {
var C = a.$$typeof;
switch (C) {
case e:
switch (a = a.type, a) {
case r:
case o:
case n:
case f:
case p:
return a;
default:
switch (a = a && a.$$typeof, a) {
case s:
case u:
case w:
case g:
return a;
case i:
return a;
default:
return C;
}
}
case t:
return C;
}
}
}
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"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), B = Symbol.for("react.client.reference");
FA.ContextConsumer = i, FA.ContextProvider = s, FA.Element = e, FA.ForwardRef = u, FA.Fragment = r, FA.Lazy = w, FA.Memo = g, FA.Portal = t, FA.Profiler = o, FA.StrictMode = n, FA.Suspense = f, FA.SuspenseList = p, FA.isContextConsumer = function(a) {
return A(a) === i;
}, FA.isContextProvider = function(a) {
return A(a) === s;
}, FA.isElement = function(a) {
return typeof a == "object" && a !== null && a.$$typeof === e;
}, FA.isForwardRef = function(a) {
return A(a) === u;
}, FA.isFragment = function(a) {
return A(a) === r;
}, FA.isLazy = function(a) {
return A(a) === w;
}, FA.isMemo = function(a) {
return A(a) === g;
}, FA.isPortal = function(a) {
return A(a) === t;
}, FA.isProfiler = function(a) {
return A(a) === o;
}, FA.isStrictMode = function(a) {
return A(a) === n;
}, FA.isSuspense = function(a) {
return A(a) === f;
}, FA.isSuspenseList = function(a) {
return A(a) === p;
}, FA.isValidElementType = function(a) {
return typeof a == "string" || typeof a == "function" || a === r || a === o || a === n || a === f || a === p || a === P || typeof a == "object" && a !== null && (a.$$typeof === w || a.$$typeof === g || a.$$typeof === s || a.$$typeof === i || a.$$typeof === u || a.$$typeof === B || a.getModuleId !== void 0);
}, FA.typeOf = A;
}()), FA;
}
var Es;
function du() {
return Es || (Es = 1, process.env.NODE_ENV === "production" ? Kr.exports = /* @__PURE__ */ uu() : Kr.exports = /* @__PURE__ */ gu()), Kr.exports;
}
var wn = /* @__PURE__ */ du();
function tt(A) {
if (typeof A != "object" || A === null)
return !1;
const e = Object.getPrototypeOf(A);
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in A) && !(Symbol.iterator in A);
}
function Dc(A) {
if (/* @__PURE__ */ b.isValidElement(A) || wn.isValidElementType(A) || !tt(A))
return A;
const e = {};
return Object.keys(A).forEach((t) => {
e[t] = Dc(A[t]);
}), e;
}
function ye(A, e, t = {
clone: !0
}) {
const r = t.clone ? {
...A
} : A;
return tt(A) && tt(e) && Object.keys(e).forEach((n) => {
/* @__PURE__ */ b.isValidElement(e[n]) || wn.isValidElementType(e[n]) ? r[n] = e[n] : tt(e[n]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(A, n) && tt(A[n]) ? r[n] = ye(A[n], e[n], t) : t.clone ? r[n] = tt(e[n]) ? Dc(e[n]) : e[n] : r[n] = e[n];
}), r;
}
var Jr = { exports: {} }, Vr = { exports: {} }, hA = {};
/** @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 ys;
function vu() {
if (ys) return hA;
ys = 1;
var A = typeof Symbol == "function" && Symbol.for, e = A ? Symbol.for("react.element") : 60103, t = A ? Symbol.for("react.portal") : 60106, r = A ? Symbol.for("react.fragment") : 60107, n = A ? Symbol.for("react.strict_mode") : 60108, o = A ? Symbol.for("react.profiler") : 60114, i = A ? Symbol.for("react.provider") : 60109, s = A ? Symbol.for("react.context") : 60110, u = A ? Symbol.for("react.async_mode") : 60111, f = A ? Symbol.for("react.concurrent_mode") : 60111, p = A ? Symbol.for("react.forward_ref") : 60112, g = A ? Symbol.for("react.suspense") : 60113, w = A ? Symbol.for("react.suspense_list") : 60120, P = A ? Symbol.for("react.memo") : 60115, B = A ? Symbol.for("react.lazy") : 60116, a = A ? Symbol.for("react.block") : 60121, C = A ? Symbol.for("react.fundamental") : 60117, Q = A ? Symbol.for("react.responder") : 60118, y = A ? Symbol.for("react.scope") : 60119;
function h(d) {
if (typeof d == "object" && d !== null) {
var M = d.$$typeof;
switch (M) {
case e:
switch (d = d.type, d) {
case u:
case f:
case r:
case o:
case n:
case g:
return d;
default:
switch (d = d && d.$$typeof, d) {
case s:
case p:
case B:
case P:
case i:
return d;
default:
return M;
}
}
case t:
return M;
}
}
}
function m(d) {
return h(d) === f;
}
return hA.AsyncMode = u, hA.ConcurrentMode = f, hA.ContextConsumer = s, hA.ContextProvider = i, hA.Element = e, hA.ForwardRef = p, hA.Fragment = r, hA.Lazy = B, hA.Memo = P, hA.Portal = t, hA.Profiler = o, hA.StrictMode = n, hA.Suspense = g, hA.isAsyncMode = function(d) {
return m(d) || h(d) === u;
}, hA.isConcurrentMode = m, hA.isContextConsumer = function(d) {
return h(d) === s;
}, hA.isContextProvider = function(d) {
return h(d) === i;
}, hA.isElement = function(d) {
return typeof d == "object" && d !== null && d.$$typeof === e;
}, hA.isForwardRef = function(d) {
return h(d) === p;
}, hA.isFragment = function(d) {
return h(d) === r;
}, hA.isLazy = function(d) {
return h(d) === B;
}, hA.isMemo = function(d) {
return h(d) === P;
}, hA.isPortal = function(d) {
return h(d) === t;
}, hA.isProfiler = function(d) {
return h(d) === o;
}, hA.isStrictMode = function(d) {
return h(d) === n;
}, hA.isSuspense = function(d) {
return h(d) === g;
}, hA.isValidElementType = function(d) {
return typeof d == "string" || typeof d == "function" || d === r || d === f || d === o || d === n || d === g || d === w || typeof d == "object" && d !== null && (d.$$typeof === B || d.$$typeof === P || d.$$typeof === i || d.$$typeof === s || d.$$typeof === p || d.$$typeof === C || d.$$typeof === Q || d.$$typeof === y || d.$$typeof === a);
}, hA.typeOf = h, hA;
}
var QA = {};
/** @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 bs;
function pu() {
return bs || (bs = 1, process.env.NODE_ENV !== "production" && function() {
var A = typeof Symbol == "function" && Symbol.for, e = A ? Symbol.for("react.element") : 60103, t = A ? Symbol.for("react.portal") : 60106, r = A ? Symbol.for("react.fragment") : 60107, n = A ? Symbol.for("react.strict_mode") : 60108, o = A ? Symbol.for("react.profiler") : 60114, i = A ? Symbol.for("react.provider") : 60109, s = A ? Symbol.for("react.context") : 60110, u = A ? Symbol.for("react.async_mode") : 60111, f = A ? Symbol.for("react.concurrent_mode") : 60111, p = A ? Symbol.for("react.forward_ref") : 60112, g = A ? Symbol.for("react.suspense") : 60113, w = A ? Symbol.for("react.suspense_list") : 60120, P = A ? Symbol.for("react.memo") : 60115, B = A ? Symbol.for("react.lazy") : 60116, a = A ? Symbol.for("react.block") : 60121, C = A ? Symbol.for("react.fundamental") : 60117, Q = A ? Symbol.for("react.responder") : 60118, y = A ? Symbol.for("react.scope") : 60119;
function h(E) {
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
E === r || E === f || E === o || E === n || E === g || E === w || typeof E == "object" && E !== null && (E.$$typeof === B || E.$$typeof === P || E.$$typeof === i || E.$$typeof === s || E.$$typeof === p || E.$$typeof === C || E.$$typeof === Q || E.$$typeof === y || E.$$typeof === a);
}
function m(E) {
if (typeof E == "object" && E !== null) {
var cA = E.$$typeof;
switch (cA) {
case e:
var fA = E.type;
switch (fA) {
case u:
case f:
case r:
case o:
case n:
case g:
return fA;
default:
var BA = fA && fA.$$typeof;
switch (BA) {
case s:
case p:
case B:
case P:
case i:
return BA;
default:
return cA;
}
}
case t:
return cA;
}
}
}
var d = u, M = f, k = s, L = i, z = e, l = p, x = r, S = B, H = P, O = t, $ = o, q = n, nA = g, _ = !1;
function AA(E) {
return _ || (_ = !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.")), D(E) || m(E) === u;
}
function D(E) {
return m(E) === f;
}
function F(E) {
return m(E) === s;
}
function Z(E) {
return m(E) === i;
}
function J(E) {
return typeof E == "object" && E !== null && E.$$typeof === e;
}
function Y(E) {
return m(E) === p;
}
function U(E) {
return m(E) === r;
}
function K(E) {
return m(E) === B;
}
function W(E) {
return m(E) === P;
}
function eA(E) {
return m(E) === t;
}
function V(E) {
return m(E) === o;
}
function X(E) {
return m(E) === n;
}
function rA(E) {
return m(E) === g;
}
QA.AsyncMode = d, QA.ConcurrentMode = M, QA.ContextConsumer = k, QA.ContextProvider = L, QA.Element = z, QA.ForwardRef = l, QA.Fragment = x, QA.Lazy = S, QA.Memo = H, QA.Portal = O, QA.Profiler = $, QA.StrictMode = q, QA.Suspense = nA, QA.isAsyncMode = AA, QA.isConcurrentMode = D, QA.isContextConsumer = F, QA.isContextProvider = Z, QA.isElement = J, QA.isForwardRef = Y, QA.isFragment = U, QA.isLazy = K, QA.isMemo = W, QA.isPortal = eA, QA.isProfiler = V, QA.isStrictMode = X, QA.isSuspense = rA, QA.isValidElementType = h, QA.typeOf = m;
}()), QA;
}
var Ds;
function xc() {
return Ds || (Ds = 1, process.env.NODE_ENV === "production" ? Vr.exports = vu() : Vr.exports = pu()), Vr.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Po, xs;
function Bu() {
if (xs) return Po;
xs = 1;
var A = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
function r(o) {
if (o == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(o);
}
function n() {
try {
if (!Object.assign)
return !1;
var o = new String("abc");
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
return !1;
for (var i = {}, s = 0; s < 10; s++)
i["_" + String.fromCharCode(s)] = s;
var u = Object.getOwnPropertyNames(i).map(function(p) {
return i[p];
});
if (u.join("") !== "0123456789")
return !1;
var f = {};
return "abcdefghijklmnopqrst".split("").forEach(function(p) {
f[p] = p;
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Po = n() ? Object.assign : function(o, i) {
for (var s, u = r(o), f, p = 1; p < arguments.length; p++) {
s = Object(arguments[p]);
for (var g in s)
e.call(s, g) && (u[g] = s[g]);
if (A) {
f = A(s);
for (var w = 0; w < f.length; w++)
t.call(s, f[w]) && (u[f[w]] = s[f[w]]);
}
}
return u;
}, Po;
}
var mo, Ts;
function Ti() {
if (Ts) return mo;
Ts = 1;
var A = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return mo = A, mo;
}
var Co, Is;
function Tc() {
return Is || (Is = 1, Co = Function.call.bind(Object.prototype.hasOwnProperty)), Co;
}
var ho, Ms;
function wu() {
if (Ms) return ho;
Ms = 1;
var A = function() {
};
if (process.env.NODE_ENV !== "production") {
var e = /* @__PURE__ */ Ti(), t = {}, r = /* @__PURE__ */ Tc();
A = function(o) {
var i = "Warning: " + o;
typeof console < "u" && console.error(i);
try {
throw new Error(i);
} catch {
}
};
}
function n(o, i, s, u, f) {
if (process.env.NODE_ENV !== "production") {
for (var p in o)
if (r(o, p)) {
var g;
try {
if (typeof o[p] != "function") {
var w = Error(
(u || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw w.name = "Invariant Violation", w;
}
g = o[p](i, p, u, s, null, e);
} catch (B) {
g = B;
}
if (g && !(g instanceof Error) && A(
(u || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), g instanceof Error && !(g.message in t)) {
t[g.message] = !0;
var P = f ? f() : "";
A(
"Failed " + s + " type: " + g.message + (P ?? "")
);
}
}
}
}
return n.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (t = {});
}, ho = n, ho;
}
var Qo, Fs;
function Pu() {
if (Fs) return Qo;
Fs = 1;
var A = xc(), e = Bu(), t = /* @__PURE__ */ Ti(), r = /* @__PURE__ */ Tc(), n = /* @__PURE__ */ wu(), o = function() {
};
process.env.NODE_ENV !== "production" && (o = function(s) {
var u = "Warning: " + s;
typeof console < "u" && console.error(u);
try {
throw new Error(u);
} catch {
}
});
function i() {
return null;
}
return Qo = function(s, u) {
var f = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
function g(D) {
var F = D && (f && D[f] || D[p]);
if (typeof F == "function")
return F;
}
var w = "<<anonymous>>", P = {
array: Q("array"),
bigint: Q("bigint"),
bool: Q("boolean"),
func: Q("function"),
number: Q("number"),
object: Q("object"),
string: Q("string"),
symbol: Q("symbol"),
any: y(),
arrayOf: h,
element: m(),
elementType: d(),
instanceOf: M,
node: l(),
objectOf: L,
oneOf: k,
oneOfType: z,
shape: S,
exact: H
};
function B(D, F) {
return D === F ? D !== 0 || 1 / D === 1 / F : D !== D && F !== F;
}
function a(D, F) {
this.message = D, this.data = F && typeof F == "object" ? F : {}, this.stack = "";
}
a.prototype = Error.prototype;
function C(D) {
if (process.env.NODE_ENV !== "production")
var F = {}, Z = 0;
function J(U, K, W, eA, V, X, rA) {
if (eA = eA || w, X = X || W, rA !== t) {
if (u) {
var E = 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 E.name = "Invariant Violation", E;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var cA = eA + ":" + W;
!F[cA] && // Avoid spamming the console because they are often not actionable except for lib authors
Z < 3 && (o(
"You are manually calling a React.PropTypes validation function for the `" + X + "` prop on `" + eA + "`. 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."
), F[cA] = !0, Z++);
}
}
return K[W] == null ? U ? K[W] === null ? new a("The " + V + " `" + X + "` is marked as required " + ("in `" + eA + "`, but its value is `null`.")) : new a("The " + V + " `" + X + "` is marked as required in " + ("`" + eA + "`, but its value is `undefined`.")) : null : D(K, W, eA, V, X);
}
var Y = J.bind(null, !1);
return Y.isRequired = J.bind(null, !0), Y;
}
function Q(D) {
function F(Z, J, Y, U, K, W) {
var eA = Z[J], V = q(eA);
if (V !== D) {
var X = nA(eA);
return new a(
"Invalid " + U + " `" + K + "` of type " + ("`" + X + "` supplied to `" + Y + "`, expected ") + ("`" + D + "`."),
{ expectedType: D }
);
}
return null;
}
return C(F);
}
function y() {
return C(i);
}
function h(D) {
function F(Z, J, Y, U, K) {
if (typeof D != "function")
return new a("Property `" + K + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
var W = Z[J];
if (!Array.isArray(W)) {
var eA = q(W);
return new a("Invalid " + U + " `" + K + "` of type " + ("`" + eA + "` supplied to `" + Y + "`, expected an array."));
}
for (var V = 0; V < W.length; V++) {
var X = D(W, V, Y, U, K + "[" + V + "]", t);
if (X instanceof Error)
return X;
}
return null;
}
return C(F);
}
function m() {
function D(F, Z, J, Y, U) {
var K = F[Z];
if (!s(K)) {
var W = q(K);
return new a("Invalid " + Y + " `" + U + "` of type " + ("`" + W + "` supplied to `" + J + "`, expected a single ReactElement."));
}
return null;
}
return C(D);
}
function d() {
function D(F, Z, J, Y, U) {
var K = F[Z];
if (!A.isValidElementType(K)) {
var W = q(K);
return new a("Invalid " + Y + " `" + U + "` of type " + ("`" + W + "` supplied to `" + J + "`, expected a single ReactElement type."));
}
return null;
}
return C(D);
}
function M(D) {
function F(Z, J, Y, U, K) {
if (!(Z[J] instanceof D)) {
var W = D.name || w, eA = AA(Z[J]);
return new a("Invalid " + U + " `" + K + "` of type " + ("`" + eA + "` supplied to `" + Y + "`, expected ") + ("instance of `" + W + "`."));
}
return null;
}
return C(F);
}
function k(D) {
if (!Array.isArray(D))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
"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])."
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
function F(Z, J, Y, U, K) {
for (var W = Z[J], eA = 0; eA < D.length; eA++)
if (B(W, D[eA]))
return null;
var V = JSON.stringify(D, function(rA, E) {
var cA = nA(E);
return cA === "symbol" ? String(E) : E;
});
return new a("Invalid " + U + " `" + K + "` of value `" + String(W) + "` " + ("supplied to `" + Y + "`, expected one of " + V + "."));
}
return C(F);
}
function L(D) {
function F(Z, J, Y, U, K) {
if (typeof D != "function")
return new a("Property `" + K + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
var W = Z[J], eA = q(W);
if (eA !== "object")
return new a("Invalid " + U + " `" + K + "` of type " + ("`" + eA + "` supplied to `" + Y + "`, expected an object."));
for (var V in W)
if (r(W, V)) {
var X = D(W, V, Y, U, K + "." + V, t);
if (X instanceof Error)
return X;
}
return null;
}
return C(F);
}
function z(D) {
if (!Array.isArray(D))
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
for (var F = 0; F < D.length; F++) {
var Z = D[F];
if (typeof Z != "function")
return o(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + _(Z) + " at index " + F + "."
), i;
}
function J(Y, U, K, W, eA) {
for (var V = [], X = 0; X < D.length; X++) {
var rA = D[X], E = rA(Y, U, K, W, eA, t);
if (E == null)
return null;
E.data && r(E.data, "expectedType") && V.push(E.data.expectedType);
}
var cA = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
return new a("Invalid " + W + " `" + eA + "` supplied to " + ("`" + K + "`" + cA + "."));
}
return C(J);
}
function l() {
function D(F, Z, J, Y, U) {
return O(F[Z]) ? null : new a("Invalid " + Y + " `" + U + "` supplied to " + ("`" + J + "`, expected a ReactNode."));
}
return C(D);
}
function x(D, F, Z, J, Y) {
return new a(
(D || "React class") + ": " + F + " type `" + Z + "." + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
);
}
function S(D) {
function F(Z, J, Y, U, K) {
var W = Z[J], eA = q(W);
if (eA !== "object")
return new a("Invalid " + U + " `" + K + "` of type `" + eA + "` " + ("supplied to `" + Y + "`, expected `object`."));
for (var V in D) {
var X = D[V];
if (typeof X != "function")
return x(Y, U, K, V, nA(X));
var rA = X(W, V, Y, U, K + "." + V, t);
if (rA)
return rA;
}
return null;
}
return C(F);
}
function H(D) {
function F(Z, J, Y, U, K) {
var W = Z[J], eA = q(W);
if (eA !== "object")
return new a("Invalid " + U + " `" + K + "` of type `" + eA + "` " + ("supplied to `" + Y + "`, expected `object`."));
var V = e({}, Z[J], D);
for (var X in V) {
var rA = D[X];
if (r(D, X) && typeof rA != "function")
return x(Y, U, K, X, nA(rA));
if (!rA)
return new a(
"Invalid " + U + " `" + K + "` key `" + X + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(Z[J], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
);
var E = rA(W, X, Y, U, K + "." + X, t);
if (E)
return E;
}
return null;
}
return C(F);
}
function O(D) {
switch (typeof D) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !D;
case "object":
if (Array.isArray(D))
return D.every(O);
if (D === null || s(D))
return !0;
var F = g(D);
if (F) {
var Z = F.call(D), J;
if (F !== D.entries) {
for (; !(J = Z.next()).done; )
if (!O(J.value))
return !1;
} else
for (; !(J = Z.next()).done; ) {
var Y = J.value;
if (Y && !O(Y[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function $(D, F) {
return D === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
}
function q(D) {
var F = typeof D;
return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : $(F, D) ? "symbol" : F;
}
function nA(D) {
if (typeof D > "u" || D === null)
return "" + D;
var F = q(D);
if (F === "object") {
if (D instanceof Date)
return "date";
if (D instanceof RegExp)
return "regexp";
}
return F;
}
function _(D) {
var F = nA(D);
switch (F) {
case "array":
case "object":
return "an " + F;
case "boolean":
case "date":
case "regexp":
return "a " + F;
default:
return F;
}
}
function AA(D) {
return !D.constructor || !D.constructor.name ? w : D.constructor.name;
}
return P.checkPropTypes = n, P.resetWarningCache = n.resetWarningCache, P.PropTypes = P, P;
}, Qo;
}
var Eo, Ss;
function mu() {
if (Ss) return Eo;
Ss = 1;
var A = /* @__PURE__ */ Ti();
function e() {
}
function t() {
}
return t.resetWarningCache = e, Eo = function() {
function r(i, s, u, f, p, g) {
if (g !== A) {
var w = 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 w.name = "Invariant Violation", w;
}
}
r.isRequired = r;
function n() {
return r;
}
var o = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: n,
element: r,
elementType: r,
instanceOf: n,
node: r,
objectOf: n,
oneOf: n,
oneOfType: n,
shape: n,
exact: n,
checkPropTypes: t,
resetWarningCache: e
};
return o.PropTypes = o, o;
}, Eo;
}
var ks;
function Cu() {
if (ks) return Jr.exports;
if (ks = 1, process.env.NODE_ENV !== "production") {
var A = xc(), e = !0;
Jr.exports = /* @__PURE__ */ Pu()(A.isElement, e);
} else
Jr.exports = /* @__PURE__ */ mu()();
return Jr.exports;
}
var hu = /* @__PURE__ */ Cu();
const I = /* @__PURE__ */ su(hu);
function Qu(A) {
const {
prototype: e = {}
} = A;
return !!e.isReactComponent;
}
function Eu(A, e, t, r, n) {
const o = A[e], i = n || e;
if (o == null || // When server-side rendering React doesn't warn either.
// This is not an accurate check for SSR.
// This is only in place for emotion compat.
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
typeof window > "u")
return null;
let s;
return typeof o == "function" && !Qu(o) && (s = "Did you accidentally provide a plain function component instead?"), s !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
}
const yu = fu(I.elementType, Eu);
function ut(A, ...e) {
const t = new URL(`https://mui.com/production-error/?code=${A}`);
return e.forEach((r) => t.searchParams.append("args[]", r)), `Minified MUI error #${A}; visit ${t} for the full message.`;
}
function Ic(A, e = "") {
return A.displayName || A.name || e;
}
function Hs(A, e, t) {
const r = Ic(e);
return A.displayName || (r !== "" ? `${t}(${r})` : t);
}
function bu(A) {
if (A != null) {
if (typeof A == "string")
return A;
if (typeof A == "function")
return Ic(A, "Component");
if (typeof A == "object")
switch (A.$$typeof) {
case wn.ForwardRef:
return Hs(A, A.render, "ForwardRef");
case wn.Memo:
return Hs(A, A.type, "memo");
default:
return;
}
}
}
const Mc = I.oneOfType([I.func, I.object]);
function je(A) {
if (typeof A != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ut(7));
return A.charAt(0).toUpperCase() + A.slice(1);
}
function Du(A, e) {
typeof A == "function" ? A(e) : A && (A.current = e);
}
const xu = typeof window < "u" ? b.useLayoutEffect : b.useEffect;
function Tu({
controlled: A,
default: e,
name: t,
state: r = "value"
}) {
const {
current: n
} = b.useRef(A !== void 0), [o, i] = b.useState(e), s = n ? A : o;