data-table-material
Version:
A dynamic and customizable table component for React, built with Material UI & TypeScript.
1,364 lines (1,362 loc) • 171 kB
JavaScript
import * as ce from "react";
import On, { useState as Jr, useCallback as Vt, useEffect as $n, useMemo as Rn } from "react";
import { useTheme as Qr, TableCell as Ct, Typography as Zr, TablePagination as _n, IconButton as en, Switch as An, TableRow as cr, Collapse as Pn, Box as kn, Paper as Nn, Toolbar as jn, Stack as Mn, Button as ur, Checkbox as In } from "@mui/material";
import Bn from "@emotion/styled";
import "@emotion/react";
function Dn(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var pt = { exports: {} }, Qe = {};
/**
* @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 fr;
function Vn() {
if (fr) return Qe;
fr = 1;
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
function r(n, o, i) {
var s = null;
if (i !== void 0 && (s = "" + i), o.key !== void 0 && (s = "" + o.key), "key" in o) {
i = {};
for (var l in o)
l !== "key" && (i[l] = o[l]);
} else i = o;
return o = i.ref, {
$$typeof: e,
type: n,
key: s,
ref: o !== void 0 ? o : null,
props: i
};
}
return Qe.Fragment = t, Qe.jsx = r, Qe.jsxs = r, Qe;
}
var Ze = {};
/**
* @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 dr;
function zn() {
return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() {
function e(u) {
if (u == null) return null;
if (typeof u == "function")
return u.$$typeof === xe ? null : u.displayName || u.name || null;
if (typeof u == "string") return u;
switch (u) {
case z:
return "Fragment";
case b:
return "Portal";
case oe:
return "Profiler";
case ee:
return "StrictMode";
case k:
return "Suspense";
case D:
return "SuspenseList";
}
if (typeof u == "object")
switch (typeof u.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), u.$$typeof) {
case a:
return (u.displayName || "Context") + ".Provider";
case re:
return (u._context.displayName || "Context") + ".Consumer";
case T:
var _ = u.render;
return u = u.displayName, u || (u = _.displayName || _.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
case Y:
return _ = u.displayName || null, _ !== null ? _ : e(u.type) || "Memo";
case le:
_ = u._payload, u = u._init;
try {
return e(u(_));
} catch {
}
}
return null;
}
function t(u) {
return "" + u;
}
function r(u) {
try {
t(u);
var _ = !1;
} catch {
_ = !0;
}
if (_) {
_ = console;
var A = _.error, G = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
return A.call(
_,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
G
), t(u);
}
}
function n() {
}
function o() {
if (N === 0) {
F = console.log, M = console.info, B = console.warn, W = console.error, H = console.group, U = console.groupCollapsed, fe = console.groupEnd;
var u = {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
};
Object.defineProperties(console, {
info: u,
log: u,
warn: u,
error: u,
group: u,
groupCollapsed: u,
groupEnd: u
});
}
N++;
}
function i() {
if (N--, N === 0) {
var u = { configurable: !0, enumerable: !0, writable: !0 };
Object.defineProperties(console, {
log: O({}, u, { value: F }),
info: O({}, u, { value: M }),
warn: O({}, u, { value: B }),
error: O({}, u, { value: W }),
group: O({}, u, { value: H }),
groupCollapsed: O({}, u, { value: U }),
groupEnd: O({}, u, { value: fe })
});
}
0 > N && console.error(
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
);
}
function s(u) {
if (C === void 0)
try {
throw Error();
} catch (A) {
var _ = A.stack.trim().match(/\n( *(at )?)/);
C = _ && _[1] || "", ge = -1 < A.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < A.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + C + u + ge;
}
function l(u, _) {
if (!u || Ae) return "";
var A = We.get(u);
if (A !== void 0) return A;
Ae = !0, A = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
var G = null;
G = Ee.H, Ee.H = null, o();
try {
var de = {
DetermineComponentFrameRoot: function() {
try {
if (_) {
var Pe = function() {
throw Error();
};
if (Object.defineProperty(Pe.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Pe, []);
} catch (we) {
var dt = we;
}
Reflect.construct(u, [], Pe);
} else {
try {
Pe.call();
} catch (we) {
dt = we;
}
u.call(Pe.prototype);
}
} else {
try {
throw Error();
} catch (we) {
dt = we;
}
(Pe = u()) && typeof Pe.catch == "function" && Pe.catch(function() {
});
}
} catch (we) {
if (we && dt && typeof we.stack == "string")
return [we.stack, dt.stack];
}
return [null, null];
}
};
de.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var ne = Object.getOwnPropertyDescriptor(
de.DetermineComponentFrameRoot,
"name"
);
ne && ne.configurable && Object.defineProperty(
de.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var I = de.DetermineComponentFrameRoot(), Ce = I[0], Ue = I[1];
if (Ce && Ue) {
var pe = Ce.split(`
`), Ie = Ue.split(`
`);
for (I = ne = 0; ne < pe.length && !pe[ne].includes(
"DetermineComponentFrameRoot"
); )
ne++;
for (; I < Ie.length && !Ie[I].includes(
"DetermineComponentFrameRoot"
); )
I++;
if (ne === pe.length || I === Ie.length)
for (ne = pe.length - 1, I = Ie.length - 1; 1 <= ne && 0 <= I && pe[ne] !== Ie[I]; )
I--;
for (; 1 <= ne && 0 <= I; ne--, I--)
if (pe[ne] !== Ie[I]) {
if (ne !== 1 || I !== 1)
do
if (ne--, I--, 0 > I || pe[ne] !== Ie[I]) {
var Je = `
` + pe[ne].replace(
" at new ",
" at "
);
return u.displayName && Je.includes("<anonymous>") && (Je = Je.replace("<anonymous>", u.displayName)), typeof u == "function" && We.set(u, Je), Je;
}
while (1 <= ne && 0 <= I);
break;
}
}
} finally {
Ae = !1, Ee.H = G, i(), Error.prepareStackTrace = A;
}
return pe = (pe = u ? u.displayName || u.name : "") ? s(pe) : "", typeof u == "function" && We.set(u, pe), pe;
}
function f(u) {
if (u == null) return "";
if (typeof u == "function") {
var _ = u.prototype;
return l(
u,
!(!_ || !_.isReactComponent)
);
}
if (typeof u == "string") return s(u);
switch (u) {
case k:
return s("Suspense");
case D:
return s("SuspenseList");
}
if (typeof u == "object")
switch (u.$$typeof) {
case T:
return u = l(u.render, !1), u;
case Y:
return f(u.type);
case le:
_ = u._payload, u = u._init;
try {
return f(u(_));
} catch {
}
}
return "";
}
function d() {
var u = Ee.A;
return u === null ? null : u.getOwner();
}
function m(u) {
if (E.call(u, "key")) {
var _ = Object.getOwnPropertyDescriptor(u, "key").get;
if (_ && _.isReactWarning) return !1;
}
return u.key !== void 0;
}
function p(u, _) {
function A() {
ir || (ir = !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)",
_
));
}
A.isReactWarning = !0, Object.defineProperty(u, "key", {
get: A,
configurable: !0
});
}
function h() {
var u = e(this.type);
return ar[u] || (ar[u] = !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."
)), u = this.props.ref, u !== void 0 ? u : null;
}
function S(u, _, A, G, de, ne) {
return A = ne.ref, u = {
$$typeof: w,
type: u,
key: _,
props: ne,
_owner: de
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(u, "ref", {
enumerable: !1,
get: h
}) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(u, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
}
function v(u, _, A, G, de, ne) {
if (typeof u == "string" || typeof u == "function" || u === z || u === oe || u === ee || u === k || u === D || u === ue || typeof u == "object" && u !== null && (u.$$typeof === le || u.$$typeof === Y || u.$$typeof === a || u.$$typeof === re || u.$$typeof === T || u.$$typeof === V || u.getModuleId !== void 0)) {
var I = _.children;
if (I !== void 0)
if (G)
if (j(I)) {
for (G = 0; G < I.length; G++)
c(I[G], u);
Object.freeze && Object.freeze(I);
} 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 c(I, u);
} else
I = "", (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), u === null ? G = "null" : j(u) ? G = "array" : u !== void 0 && u.$$typeof === w ? (G = "<" + (e(u.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : G = typeof u, 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",
G,
I
);
if (E.call(_, "key")) {
I = e(u);
var Ce = Object.keys(_).filter(function(pe) {
return pe !== "key";
});
G = 0 < Ce.length ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}", sr[I + G] || (Ce = 0 < Ce.length ? "{" + Ce.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} />`,
G,
I,
Ce,
I
), sr[I + G] = !0);
}
if (I = null, A !== void 0 && (r(A), I = "" + A), m(_) && (r(_.key), I = "" + _.key), "key" in _) {
A = {};
for (var Ue in _)
Ue !== "key" && (A[Ue] = _[Ue]);
} else A = _;
return I && p(
A,
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
), S(u, I, ne, de, d(), A);
}
function c(u, _) {
if (typeof u == "object" && u && u.$$typeof !== wn) {
if (j(u))
for (var A = 0; A < u.length; A++) {
var G = u[A];
x(G) && $(G, _);
}
else if (x(u))
u._store && (u._store.validated = 1);
else if (u === null || typeof u != "object" ? A = null : (A = me && u[me] || u["@@iterator"], A = typeof A == "function" ? A : null), typeof A == "function" && A !== u.entries && (A = A.call(u), A !== u))
for (; !(u = A.next()).done; )
x(u.value) && $(u.value, _);
}
}
function x(u) {
return typeof u == "object" && u !== null && u.$$typeof === w;
}
function $(u, _) {
if (u._store && !u._store.validated && u.key == null && (u._store.validated = 1, _ = L(_), !lr[_])) {
lr[_] = !0;
var A = "";
u && u._owner != null && u._owner !== d() && (A = null, typeof u._owner.tag == "number" ? A = e(u._owner.type) : typeof u._owner.name == "string" && (A = u._owner.name), A = " It was passed a child from " + A + ".");
var G = Ee.getCurrentStack;
Ee.getCurrentStack = function() {
var de = f(u.type);
return G && (de += G() || ""), de;
}, 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.',
_,
A
), Ee.getCurrentStack = G;
}
}
function L(u) {
var _ = "", A = d();
return A && (A = e(A.type)) && (_ = `
Check the render method of \`` + A + "`."), _ || (u = e(u)) && (_ = `
Check the top-level render call using <` + u + ">."), _;
}
var P = On, w = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), z = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), oe = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), a = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), le = Symbol.for("react.lazy"), ue = Symbol.for("react.offscreen"), me = Symbol.iterator, xe = Symbol.for("react.client.reference"), Ee = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, O = Object.assign, V = Symbol.for("react.client.reference"), j = Array.isArray, N = 0, F, M, B, W, H, U, fe;
n.__reactDisabledLog = !0;
var C, ge, Ae = !1, We = new (typeof WeakMap == "function" ? WeakMap : Map)(), wn = Symbol.for("react.client.reference"), ir, ar = {}, sr = {}, lr = {};
Ze.Fragment = z, Ze.jsx = function(u, _, A, G, de) {
return v(u, _, A, !1, G, de);
}, Ze.jsxs = function(u, _, A, G, de) {
return v(u, _, A, !0, G, de);
};
}()), Ze;
}
var pr;
function Fn() {
return pr || (pr = 1, process.env.NODE_ENV === "production" ? pt.exports = Vn() : pt.exports = zn()), pt.exports;
}
var R = Fn(), mt = { exports: {} }, gt = { exports: {} }, q = {};
/** @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 mr;
function Wn() {
if (mr) return q;
mr = 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, l = 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, S = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
function P(b) {
if (typeof b == "object" && b !== null) {
var z = b.$$typeof;
switch (z) {
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 l:
case m:
case v:
case S:
case s:
return b;
default:
return z;
}
}
case r:
return z;
}
}
}
function w(b) {
return P(b) === d;
}
return q.AsyncMode = f, q.ConcurrentMode = d, q.ContextConsumer = l, q.ContextProvider = s, q.Element = t, q.ForwardRef = m, q.Fragment = n, q.Lazy = v, q.Memo = S, q.Portal = r, q.Profiler = i, q.StrictMode = o, q.Suspense = p, q.isAsyncMode = function(b) {
return w(b) || P(b) === f;
}, q.isConcurrentMode = w, q.isContextConsumer = function(b) {
return P(b) === l;
}, q.isContextProvider = function(b) {
return P(b) === s;
}, q.isElement = function(b) {
return typeof b == "object" && b !== null && b.$$typeof === t;
}, q.isForwardRef = function(b) {
return P(b) === m;
}, q.isFragment = function(b) {
return P(b) === n;
}, q.isLazy = function(b) {
return P(b) === v;
}, q.isMemo = function(b) {
return P(b) === S;
}, q.isPortal = function(b) {
return P(b) === r;
}, q.isProfiler = function(b) {
return P(b) === i;
}, q.isStrictMode = function(b) {
return P(b) === o;
}, q.isSuspense = function(b) {
return P(b) === p;
}, q.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 === v || b.$$typeof === S || b.$$typeof === s || b.$$typeof === l || b.$$typeof === m || b.$$typeof === x || b.$$typeof === $ || b.$$typeof === L || b.$$typeof === c);
}, q.typeOf = P, q;
}
var K = {};
/** @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 gr;
function Un() {
return gr || (gr = 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, l = 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, S = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
function P(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 === p || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === S || C.$$typeof === s || C.$$typeof === l || C.$$typeof === m || C.$$typeof === x || C.$$typeof === $ || C.$$typeof === L || C.$$typeof === c);
}
function w(C) {
if (typeof C == "object" && C !== null) {
var ge = C.$$typeof;
switch (ge) {
case t:
var Ae = C.type;
switch (Ae) {
case f:
case d:
case n:
case i:
case o:
case p:
return Ae;
default:
var We = Ae && Ae.$$typeof;
switch (We) {
case l:
case m:
case v:
case S:
case s:
return We;
default:
return ge;
}
}
case r:
return ge;
}
}
}
var b = f, z = d, ee = l, oe = s, re = t, a = m, T = n, k = v, D = S, Y = r, le = i, ue = o, me = p, xe = !1;
function Ee(C) {
return xe || (xe = !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.")), E(C) || w(C) === f;
}
function E(C) {
return w(C) === d;
}
function O(C) {
return w(C) === l;
}
function V(C) {
return w(C) === s;
}
function j(C) {
return typeof C == "object" && C !== null && C.$$typeof === t;
}
function N(C) {
return w(C) === m;
}
function F(C) {
return w(C) === n;
}
function M(C) {
return w(C) === v;
}
function B(C) {
return w(C) === S;
}
function W(C) {
return w(C) === r;
}
function H(C) {
return w(C) === i;
}
function U(C) {
return w(C) === o;
}
function fe(C) {
return w(C) === p;
}
K.AsyncMode = b, K.ConcurrentMode = z, K.ContextConsumer = ee, K.ContextProvider = oe, K.Element = re, K.ForwardRef = a, K.Fragment = T, K.Lazy = k, K.Memo = D, K.Portal = Y, K.Profiler = le, K.StrictMode = ue, K.Suspense = me, K.isAsyncMode = Ee, K.isConcurrentMode = E, K.isContextConsumer = O, K.isContextProvider = V, K.isElement = j, K.isForwardRef = N, K.isFragment = F, K.isLazy = M, K.isMemo = B, K.isPortal = W, K.isProfiler = H, K.isStrictMode = U, K.isSuspense = fe, K.isValidElementType = P, K.typeOf = w;
}()), K;
}
var hr;
function tn() {
return hr || (hr = 1, process.env.NODE_ENV === "production" ? gt.exports = Wn() : gt.exports = Un()), gt.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var zt, yr;
function Yn() {
if (yr) return zt;
yr = 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 = {}, l = 0; l < 10; l++)
s["_" + String.fromCharCode(l)] = l;
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 zt = o() ? Object.assign : function(i, s) {
for (var l, f = n(i), d, m = 1; m < arguments.length; m++) {
l = Object(arguments[m]);
for (var p in l)
t.call(l, p) && (f[p] = l[p]);
if (e) {
d = e(l);
for (var h = 0; h < d.length; h++)
r.call(l, d[h]) && (f[d[h]] = l[d[h]]);
}
}
return f;
}, zt;
}
var Ft, br;
function Zt() {
if (br) return Ft;
br = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Ft = e, Ft;
}
var Wt, vr;
function rn() {
return vr || (vr = 1, Wt = Function.call.bind(Object.prototype.hasOwnProperty)), Wt;
}
var Ut, Sr;
function Ln() {
if (Sr) return Ut;
Sr = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ Zt(), r = {}, n = /* @__PURE__ */ rn();
e = function(i) {
var s = "Warning: " + i;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function o(i, s, l, 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") + ": " + l + " 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, l, null, t);
} catch (v) {
p = v;
}
if (p && !(p instanceof Error) && e(
(f || "React class") + ": type specification of " + l + " `" + 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 S = d ? d() : "";
e(
"Failed " + l + " type: " + p.message + (S ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
}, Ut = o, Ut;
}
var Yt, Er;
function Hn() {
if (Er) return Yt;
Er = 1;
var e = tn(), t = Yn(), r = /* @__PURE__ */ Zt(), n = /* @__PURE__ */ rn(), o = /* @__PURE__ */ Ln(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(l) {
var f = "Warning: " + l;
typeof console < "u" && console.error(f);
try {
throw new Error(f);
} catch {
}
});
function s() {
return null;
}
return Yt = function(l, f) {
var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
function p(E) {
var O = E && (d && E[d] || E[m]);
if (typeof O == "function")
return O;
}
var h = "<<anonymous>>", S = {
array: $("array"),
bigint: $("bigint"),
bool: $("boolean"),
func: $("function"),
number: $("number"),
object: $("object"),
string: $("string"),
symbol: $("symbol"),
any: L(),
arrayOf: P,
element: w(),
elementType: b(),
instanceOf: z,
node: a(),
objectOf: oe,
oneOf: ee,
oneOfType: re,
shape: k,
exact: D
};
function v(E, O) {
return E === O ? E !== 0 || 1 / E === 1 / O : E !== E && O !== O;
}
function c(E, O) {
this.message = E, this.data = O && typeof O == "object" ? O : {}, this.stack = "";
}
c.prototype = Error.prototype;
function x(E) {
if (process.env.NODE_ENV !== "production")
var O = {}, V = 0;
function j(F, M, B, W, H, U, fe) {
if (W = W || h, U = U || B, fe !== r) {
if (f) {
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 ge = W + ":" + B;
!O[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
V < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + W + "`. 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."
), O[ge] = !0, V++);
}
}
return M[B] == null ? F ? M[B] === null ? new c("The " + H + " `" + U + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new c("The " + H + " `" + U + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : E(M, B, W, H, U);
}
var N = j.bind(null, !1);
return N.isRequired = j.bind(null, !0), N;
}
function $(E) {
function O(V, j, N, F, M, B) {
var W = V[j], H = ue(W);
if (H !== E) {
var U = me(W);
return new c(
"Invalid " + F + " `" + M + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("`" + E + "`."),
{ expectedType: E }
);
}
return null;
}
return x(O);
}
function L() {
return x(s);
}
function P(E) {
function O(V, j, N, F, M) {
if (typeof E != "function")
return new c("Property `" + M + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
var B = V[j];
if (!Array.isArray(B)) {
var W = ue(B);
return new c("Invalid " + F + " `" + M + "` of type " + ("`" + W + "` supplied to `" + N + "`, expected an array."));
}
for (var H = 0; H < B.length; H++) {
var U = E(B, H, N, F, M + "[" + H + "]", r);
if (U instanceof Error)
return U;
}
return null;
}
return x(O);
}
function w() {
function E(O, V, j, N, F) {
var M = O[V];
if (!l(M)) {
var B = ue(M);
return new c("Invalid " + N + " `" + F + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected a single ReactElement."));
}
return null;
}
return x(E);
}
function b() {
function E(O, V, j, N, F) {
var M = O[V];
if (!e.isValidElementType(M)) {
var B = ue(M);
return new c("Invalid " + N + " `" + F + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected a single ReactElement type."));
}
return null;
}
return x(E);
}
function z(E) {
function O(V, j, N, F, M) {
if (!(V[j] instanceof E)) {
var B = E.name || h, W = Ee(V[j]);
return new c("Invalid " + F + " `" + M + "` of type " + ("`" + W + "` supplied to `" + N + "`, expected ") + ("instance of `" + B + "`."));
}
return null;
}
return x(O);
}
function ee(E) {
if (!Array.isArray(E))
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 O(V, j, N, F, M) {
for (var B = V[j], W = 0; W < E.length; W++)
if (v(B, E[W]))
return null;
var H = JSON.stringify(E, function(fe, C) {
var ge = me(C);
return ge === "symbol" ? String(C) : C;
});
return new c("Invalid " + F + " `" + M + "` of value `" + String(B) + "` " + ("supplied to `" + N + "`, expected one of " + H + "."));
}
return x(O);
}
function oe(E) {
function O(V, j, N, F, M) {
if (typeof E != "function")
return new c("Property `" + M + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
var B = V[j], W = ue(B);
if (W !== "object")
return new c("Invalid " + F + " `" + M + "` of type " + ("`" + W + "` supplied to `" + N + "`, expected an object."));
for (var H in B)
if (n(B, H)) {
var U = E(B, H, N, F, M + "." + H, r);
if (U instanceof Error)
return U;
}
return null;
}
return x(O);
}
function re(E) {
if (!Array.isArray(E))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var O = 0; O < E.length; O++) {
var V = E[O];
if (typeof V != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(V) + " at index " + O + "."
), s;
}
function j(N, F, M, B, W) {
for (var H = [], U = 0; U < E.length; U++) {
var fe = E[U], C = fe(N, F, M, B, W, r);
if (C == null)
return null;
C.data && n(C.data, "expectedType") && H.push(C.data.expectedType);
}
var ge = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
return new c("Invalid " + B + " `" + W + "` supplied to " + ("`" + M + "`" + ge + "."));
}
return x(j);
}
function a() {
function E(O, V, j, N, F) {
return Y(O[V]) ? null : new c("Invalid " + N + " `" + F + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
}
return x(E);
}
function T(E, O, V, j, N) {
return new c(
(E || "React class") + ": " + O + " type `" + V + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
);
}
function k(E) {
function O(V, j, N, F, M) {
var B = V[j], W = ue(B);
if (W !== "object")
return new c("Invalid " + F + " `" + M + "` of type `" + W + "` " + ("supplied to `" + N + "`, expected `object`."));
for (var H in E) {
var U = E[H];
if (typeof U != "function")
return T(N, F, M, H, me(U));
var fe = U(B, H, N, F, M + "." + H, r);
if (fe)
return fe;
}
return null;
}
return x(O);
}
function D(E) {
function O(V, j, N, F, M) {
var B = V[j], W = ue(B);
if (W !== "object")
return new c("Invalid " + F + " `" + M + "` of type `" + W + "` " + ("supplied to `" + N + "`, expected `object`."));
var H = t({}, V[j], E);
for (var U in H) {
var fe = E[U];
if (n(E, U) && typeof fe != "function")
return T(N, F, M, U, me(fe));
if (!fe)
return new c(
"Invalid " + F + " `" + M + "` key `" + U + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(V[j], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
);
var C = fe(B, U, N, F, M + "." + U, r);
if (C)
return C;
}
return null;
}
return x(O);
}
function Y(E) {
switch (typeof E) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !E;
case "object":
if (Array.isArray(E))
return E.every(Y);
if (E === null || l(E))
return !0;
var O = p(E);
if (O) {
var V = O.call(E), j;
if (O !== E.entries) {
for (; !(j = V.next()).done; )
if (!Y(j.value))
return !1;
} else
for (; !(j = V.next()).done; ) {
var N = j.value;
if (N && !Y(N[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function le(E, O) {
return E === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1;
}
function ue(E) {
var O = typeof E;
return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : le(O, E) ? "symbol" : O;
}
function me(E) {
if (typeof E > "u" || E === null)
return "" + E;
var O = ue(E);
if (O === "object") {
if (E instanceof Date)
return "date";
if (E instanceof RegExp)
return "regexp";
}
return O;
}
function xe(E) {
var O = me(E);
switch (O) {
case "array":
case "object":
return "an " + O;
case "boolean":
case "date":
case "regexp":
return "a " + O;
default:
return O;
}
}
function Ee(E) {
return !E.constructor || !E.constructor.name ? h : E.constructor.name;
}
return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
}, Yt;
}
var Lt, Tr;
function Gn() {
if (Tr) return Lt;
Tr = 1;
var e = /* @__PURE__ */ Zt();
function t() {
}
function r() {
}
return r.resetWarningCache = t, Lt = function() {
function n(s, l, 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;
}, Lt;
}
var xr;
function qn() {
if (xr) return mt.exports;
if (xr = 1, process.env.NODE_ENV !== "production") {
var e = tn(), t = !0;
mt.exports = /* @__PURE__ */ Hn()(e.isElement, t);
} else
mt.exports = /* @__PURE__ */ Gn()();
return mt.exports;
}
var Kn = /* @__PURE__ */ qn();
const y = /* @__PURE__ */ Dn(Kn);
function nn(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 = nn(e[t])) && (n && (n += " "), n += r);
} else for (r in e) e[r] && (n && (n += " "), n += r);
return n;
}
function Be() {
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = nn(e)) && (n && (n += " "), n += t);
return n;
}
function De(e, t, r = void 0) {
const n = {};
for (const o in e) {
const i = e[o];
let s = "", l = !0;
for (let f = 0; f < i.length; f += 1) {
const d = i[f];
d && (s += (l === !0 ? "" : " ") + t(d), l = !1, r && r[d] && (s += " " + r[d]));
}
n[o] = s;
}
return n;
}
const er = /* @__PURE__ */ ce.createContext();
process.env.NODE_ENV !== "production" && (er.displayName = "TableContext");
function Ne(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 ye(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ne(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
var ht = { exports: {} }, X = {};
/**
* @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 Cr;
function Xn() {
if (Cr) return X;
Cr = 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"), l = 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.offscreen"), S = Symbol.for("react.client.reference");
function v(c) {
if (typeof c == "object" && c !== null) {
var x = c.$$typeof;
switch (x) {
case e:
switch (c = c.type, c) {
case r:
case o:
case n:
case f:
case d:
return c;
default:
switch (c = c && c.$$typeof, c) {
case s:
case l:
case p:
case m:
return c;
case i:
return c;
default:
return x;
}
}
case t:
return x;
}
}
}
return X.ContextConsumer = i, X.ContextProvider = s, X.Element = e, X.ForwardRef = l, X.Fragment = r, X.Lazy = p, X.Memo = m, X.Portal = t, X.Profiler = o, X.StrictMode = n, X.Suspense = f, X.SuspenseList = d, X.isContextConsumer = function(c) {
return v(c) === i;
}, X.isContextProvider = function(c) {
return v(c) === s;
}, X.isElement = function(c) {
return typeof c == "object" && c !== null && c.$$typeof === e;
}, X.isForwardRef = function(c) {
return v(c) === l;
}, X.isFragment = function(c) {
return v(c) === r;
}, X.isLazy = function(c) {
return v(c) === p;
}, X.isMemo = function(c) {
return v(c) === m;
}, X.isPortal = function(c) {
return v(c) === t;
}, X.isProfiler = function(c) {
return v(c) === o;
}, X.isStrictMode = function(c) {
return v(c) === n;
}, X.isSuspense = function(c) {
return v(c) === f;
}, X.isSuspenseList = function(c) {
return v(c) === d;
}, X.isValidElementType = function(c) {
return typeof c == "string" || typeof c == "function" || c === r || c === o || c === n || c === f || c === d || c === h || typeof c == "object" && c !== null && (c.$$typeof === p || c.$$typeof === m || c.$$typeof === s || c.$$typeof === i || c.$$typeof === l || c.$$typeof === S || c.getModuleId !== void 0);
}, X.typeOf = v, X;
}
var J = {};
/**
* @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 wr;
function Jn() {
return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
function e(c) {
if (typeof c == "object" && c !== null) {
var x = c.$$typeof;
switch (x) {
case t:
switch (c = c.type, c) {
case n:
case i:
case o:
case d:
case m:
return c;
default:
switch (c = c && c.$$typeof, c) {
case l:
case f:
case h:
case p:
return c;
case s:
return c;
default:
return x;
}
}
case r:
return x;
}
}
}
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"), l = 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"), S = Symbol.for("react.offscreen"), v = Symbol.for("react.client.reference");
J.ContextConsumer = s, J.ContextProvider = l, J.Element = t, J.ForwardRef = f, J.Fragment = n, J.Lazy = h, J.Memo = p, J.Portal = r, J.Profiler = i, J.StrictMode = o, J.Suspense = d, J.SuspenseList = m, J.isContextConsumer = function(c) {
return e(c) === s;
}, J.isContextProvider = function(c) {
return e(c) === l;
}, J.isElement = function(c) {
return typeof c == "object" && c !== null && c.$$typeof === t;
}, J.isForwardRef = function(c) {
return e(c) === f;
}, J.isFragment = function(c) {
return e(c) === n;
}, J.isLazy = function(c) {
return e(c) === h;
}, J.isMemo = function(c) {
return e(c) === p;
}, J.isPortal = function(c) {
return e(c) === r;
}, J.isProfiler = function(c) {
return e(c) === i;
}, J.isStrictMode = function(c) {
return e(c) === o;
}, J.isSuspense = function(c) {
return e(c) === d;
}, J.isSuspenseList = function(c) {
return e(c) === m;
}, J.isValidElementType = function(c) {
return typeof c == "string" || typeof c == "function" || c === n || c === i || c === o || c === d || c === m || c === S || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === p || c.$$typeof === l || c.$$typeof === s || c.$$typeof === f || c.$$typeof === v || c.getModuleId !== void 0);
}, J.typeOf = e;
}()), J;
}
var Or;
function Qn() {
return Or || (Or = 1, process.env.NODE_ENV === "production" ? ht.exports = /* @__PURE__ */ Xn() : ht.exports = /* @__PURE__ */ Jn()), ht.exports;
}
var St = /* @__PURE__ */ Qn();
function $e(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 on(e) {
if (/* @__PURE__ */ ce.isValidElement(e) || St.isValidElementType(e) || !$e(e))
return e;
const t = {};
return Object.keys(e).forEach((r) => {
t[r] = on(e[r]);
}), t;
}
function be(e, t, r = {
clone: !0
}) {
const n = r.clone ? {
...e
} : e;
return $e(e) && $e(t) && Object.keys(t).forEach((o) => {
/* @__PURE__ */ ce.isValidElement(t[o]) || St.isValidElementType(t[o]) ? n[o] = t[o] : $e(t[o]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(e, o) && $e(e[o]) ? n[o] = be(e[o], t[o], r) : r.clone ? n[o] = $e(t[o]) ? on(t[o]) : t[o] : n[o] = t[o];
}), n;
}
function ot(e, t) {
return t ? be(e, t, {
clone: !1
// No need to clone deep, it's way faster.
}) : e;
}
const Me = process.env.NODE_ENV !== "production" ? y.oneOfType([y.number, y.string, y.object, y.array]) : {};
function Zn(e, t) {
if (!e.containerQueries)
return t;
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
var s, l;
const i = /min-width:\s*([0-9.]+)/;
return +(((s = n.match(i)) == null ? void 0 : s[1]) || 0) - +(((l = o.match(i)) == null ? void 0 : l[1]) || 0);
});
return r.length ? r.reduce((n, o) => {
const i = t[o];
return delete n[o], n[o] = i, n;
}, {
...t
}) : t;
}
function eo(e, t) {
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
}
function to(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\`.` : Ne(18, `(${t})`));
return null;
}
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
return e.containerQueries(o).up(i);
}
function ro(e) {
const t = (i, s) => i.replace("@media", s ? `@container ${s}` : "@container");
function r(i, s) {
i.up = (...l) => t(e.breakpoints.up(...l), s), i.down = (...l) => t(e.breakpoints.down(...l), s), i.between = (...l) => t(e.breakpoints.between(...l), s),