simpletext-modal-react
Version:
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
1,322 lines (1,320 loc) • 95.5 kB
JavaScript
import Ce, { useRef as Dn, useDebugValue as st, createElement as $n, useContext as Nn } from "react";
function Mn(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Xe = { exports: {} }, Ve = {};
/**
* @license React
* react-jsx-runtime.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 ct;
function Fn() {
if (ct) return Ve;
ct = 1;
var e = Ce, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(p, l, g) {
var h, v = {}, b = null, E = null;
g !== void 0 && (b = "" + g), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (E = l.ref);
for (h in l) n.call(l, h) && !i.hasOwnProperty(h) && (v[h] = l[h]);
if (p && p.defaultProps) for (h in l = p.defaultProps, l) v[h] === void 0 && (v[h] = l[h]);
return { $$typeof: r, type: p, key: b, ref: E, props: v, _owner: a.current };
}
return Ve.Fragment = t, Ve.jsx = s, Ve.jsxs = s, Ve;
}
var Ue = {};
/**
* @license React
* react-jsx-runtime.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 ut;
function Yn() {
return ut || (ut = 1, process.env.NODE_ENV !== "production" && function() {
var e = Ce, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), p = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), N = Symbol.iterator, R = "@@iterator";
function z(o) {
if (o === null || typeof o != "object")
return null;
var u = N && o[N] || o[R];
return typeof u == "function" ? u : null;
}
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function k(o) {
{
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), _ = 1; _ < u; _++)
m[_ - 1] = arguments[_];
P("error", o, m);
}
}
function P(o, u, m) {
{
var _ = M.ReactDebugCurrentFrame, q = _.getStackAddendum();
q !== "" && (u += "%s", m = m.concat([q]));
var G = m.map(function(W) {
return String(W);
});
G.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, G);
}
}
var x = !1, f = !1, I = !1, C = !1, ce = !1, ue;
ue = Symbol.for("react.module.reference");
function we(o) {
return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || ce || o === a || o === g || o === h || C || o === E || x || f || I || typeof o == "object" && o !== null && (o.$$typeof === b || o.$$typeof === v || o.$$typeof === s || o.$$typeof === p || o.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
o.$$typeof === ue || o.getModuleId !== void 0));
}
function ge(o, u, m) {
var _ = o.displayName;
if (_)
return _;
var q = u.displayName || u.name || "";
return q !== "" ? m + "(" + q + ")" : m;
}
function be(o) {
return o.displayName || "Context";
}
function te(o) {
if (o == null)
return null;
if (typeof o.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
return o.displayName || o.name || null;
if (typeof o == "string")
return o;
switch (o) {
case n:
return "Fragment";
case t:
return "Portal";
case i:
return "Profiler";
case a:
return "StrictMode";
case g:
return "Suspense";
case h:
return "SuspenseList";
}
if (typeof o == "object")
switch (o.$$typeof) {
case p:
var u = o;
return be(u) + ".Consumer";
case s:
var m = o;
return be(m._context) + ".Provider";
case l:
return ge(o, o.render, "ForwardRef");
case v:
var _ = o.displayName || null;
return _ !== null ? _ : te(o.type) || "Memo";
case b: {
var q = o, G = q._payload, W = q._init;
try {
return te(W(G));
} catch {
return null;
}
}
}
return null;
}
var ee = Object.assign, de = 0, ne, ae, ye, re, c, y, w;
function j() {
}
j.__reactDisabledLog = !0;
function T() {
{
if (de === 0) {
ne = console.log, ae = console.info, ye = console.warn, re = console.error, c = console.group, y = console.groupCollapsed, w = console.groupEnd;
var o = {
configurable: !0,
enumerable: !0,
value: j,
writable: !0
};
Object.defineProperties(console, {
info: o,
log: o,
warn: o,
error: o,
group: o,
groupCollapsed: o,
groupEnd: o
});
}
de++;
}
}
function Y() {
{
if (de--, de === 0) {
var o = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: ee({}, o, {
value: ne
}),
info: ee({}, o, {
value: ae
}),
warn: ee({}, o, {
value: ye
}),
error: ee({}, o, {
value: re
}),
group: ee({}, o, {
value: c
}),
groupCollapsed: ee({}, o, {
value: y
}),
groupEnd: ee({}, o, {
value: w
})
});
}
de < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var S = M.ReactCurrentDispatcher, O;
function A(o, u, m) {
{
if (O === void 0)
try {
throw Error();
} catch (q) {
var _ = q.stack.trim().match(/\n( *(at )?)/);
O = _ && _[1] || "";
}
return `
` + O + o;
}
}
var D = !1, $;
{
var X = typeof WeakMap == "function" ? WeakMap : Map;
$ = new X();
}
function d(o, u) {
if (!o || D)
return "";
{
var m = $.get(o);
if (m !== void 0)
return m;
}
var _;
D = !0;
var q = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var G;
G = S.current, S.current = null, T();
try {
if (u) {
var W = function() {
throw Error();
};
if (Object.defineProperty(W.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(W, []);
} catch (ie) {
_ = ie;
}
Reflect.construct(o, [], W);
} else {
try {
W.call();
} catch (ie) {
_ = ie;
}
o.call(W.prototype);
}
} else {
try {
throw Error();
} catch (ie) {
_ = ie;
}
o();
}
} catch (ie) {
if (ie && _ && typeof ie.stack == "string") {
for (var L = ie.stack.split(`
`), oe = _.stack.split(`
`), J = L.length - 1, K = oe.length - 1; J >= 1 && K >= 0 && L[J] !== oe[K]; )
K--;
for (; J >= 1 && K >= 0; J--, K--)
if (L[J] !== oe[K]) {
if (J !== 1 || K !== 1)
do
if (J--, K--, K < 0 || L[J] !== oe[K]) {
var le = `
` + L[J].replace(" at new ", " at ");
return o.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", o.displayName)), typeof o == "function" && $.set(o, le), le;
}
while (J >= 1 && K >= 0);
break;
}
}
} finally {
D = !1, S.current = G, Y(), Error.prepareStackTrace = q;
}
var Ie = o ? o.displayName || o.name : "", Re = Ie ? A(Ie) : "";
return typeof o == "function" && $.set(o, Re), Re;
}
function fe(o, u, m) {
return d(o, !1);
}
function ke(o) {
var u = o.prototype;
return !!(u && u.isReactComponent);
}
function Se(o, u, m) {
if (o == null)
return "";
if (typeof o == "function")
return d(o, ke(o));
if (typeof o == "string")
return A(o);
switch (o) {
case g:
return A("Suspense");
case h:
return A("SuspenseList");
}
if (typeof o == "object")
switch (o.$$typeof) {
case l:
return fe(o.render);
case v:
return Se(o.type, u, m);
case b: {
var _ = o, q = _._payload, G = _._init;
try {
return Se(G(q), u, m);
} catch {
}
}
}
return "";
}
var qe = Object.prototype.hasOwnProperty, Gr = {}, Hr = M.ReactDebugCurrentFrame;
function He(o) {
if (o) {
var u = o._owner, m = Se(o.type, o._source, u ? u.type : null);
Hr.setExtraStackFrame(m);
} else
Hr.setExtraStackFrame(null);
}
function pn(o, u, m, _, q) {
{
var G = Function.call.bind(qe);
for (var W in o)
if (G(o, W)) {
var L = void 0;
try {
if (typeof o[W] != "function") {
var oe = Error((_ || "React class") + ": " + m + " type `" + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[W] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw oe.name = "Invariant Violation", oe;
}
L = o[W](u, W, _, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (J) {
L = J;
}
L && !(L instanceof Error) && (He(q), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", m, W, typeof L), He(null)), L instanceof Error && !(L.message in Gr) && (Gr[L.message] = !0, He(q), k("Failed %s type: %s", m, L.message), He(null));
}
}
}
var dn = Array.isArray;
function gr(o) {
return dn(o);
}
function hn(o) {
{
var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
return m;
}
}
function yn(o) {
try {
return Xr(o), !1;
} catch {
return !0;
}
}
function Xr(o) {
return "" + o;
}
function Jr(o) {
if (yn(o))
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hn(o)), Xr(o);
}
var Kr = M.ReactCurrentOwner, vn = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Zr, Qr;
function mn(o) {
if (qe.call(o, "ref")) {
var u = Object.getOwnPropertyDescriptor(o, "ref").get;
if (u && u.isReactWarning)
return !1;
}
return o.ref !== void 0;
}
function gn(o) {
if (qe.call(o, "key")) {
var u = Object.getOwnPropertyDescriptor(o, "key").get;
if (u && u.isReactWarning)
return !1;
}
return o.key !== void 0;
}
function bn(o, u) {
typeof o.ref == "string" && Kr.current;
}
function En(o, u) {
{
var m = function() {
Zr || (Zr = !0, k("%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://reactjs.org/link/special-props)", u));
};
m.isReactWarning = !0, Object.defineProperty(o, "key", {
get: m,
configurable: !0
});
}
}
function wn(o, u) {
{
var m = function() {
Qr || (Qr = !0, k("%s: `ref` 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://reactjs.org/link/special-props)", u));
};
m.isReactWarning = !0, Object.defineProperty(o, "ref", {
get: m,
configurable: !0
});
}
}
var Sn = function(o, u, m, _, q, G, W) {
var L = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: r,
// Built-in properties that belong on the element
type: o,
key: u,
ref: m,
props: W,
// Record the component responsible for creating this element.
_owner: G
};
return L._store = {}, Object.defineProperty(L._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(L, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: _
}), Object.defineProperty(L, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: q
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
};
function Rn(o, u, m, _, q) {
{
var G, W = {}, L = null, oe = null;
m !== void 0 && (Jr(m), L = "" + m), gn(u) && (Jr(u.key), L = "" + u.key), mn(u) && (oe = u.ref, bn(u, q));
for (G in u)
qe.call(u, G) && !vn.hasOwnProperty(G) && (W[G] = u[G]);
if (o && o.defaultProps) {
var J = o.defaultProps;
for (G in J)
W[G] === void 0 && (W[G] = J[G]);
}
if (L || oe) {
var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
L && En(W, K), oe && wn(W, K);
}
return Sn(o, L, oe, q, _, Kr.current, W);
}
}
var br = M.ReactCurrentOwner, et = M.ReactDebugCurrentFrame;
function Ae(o) {
if (o) {
var u = o._owner, m = Se(o.type, o._source, u ? u.type : null);
et.setExtraStackFrame(m);
} else
et.setExtraStackFrame(null);
}
var Er;
Er = !1;
function wr(o) {
return typeof o == "object" && o !== null && o.$$typeof === r;
}
function rt() {
{
if (br.current) {
var o = te(br.current.type);
if (o)
return `
Check the render method of \`` + o + "`.";
}
return "";
}
}
function Tn(o) {
return "";
}
var tt = {};
function _n(o) {
{
var u = rt();
if (!u) {
var m = typeof o == "string" ? o : o.displayName || o.name;
m && (u = `
Check the top-level render call using <` + m + ">.");
}
return u;
}
}
function nt(o, u) {
{
if (!o._store || o._store.validated || o.key != null)
return;
o._store.validated = !0;
var m = _n(u);
if (tt[m])
return;
tt[m] = !0;
var _ = "";
o && o._owner && o._owner !== br.current && (_ = " It was passed a child from " + te(o._owner.type) + "."), Ae(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, _), Ae(null);
}
}
function ot(o, u) {
{
if (typeof o != "object")
return;
if (gr(o))
for (var m = 0; m < o.length; m++) {
var _ = o[m];
wr(_) && nt(_, u);
}
else if (wr(o))
o._store && (o._store.validated = !0);
else if (o) {
var q = z(o);
if (typeof q == "function" && q !== o.entries)
for (var G = q.call(o), W; !(W = G.next()).done; )
wr(W.value) && nt(W.value, u);
}
}
}
function Pn(o) {
{
var u = o.type;
if (u == null || typeof u == "string")
return;
var m;
if (typeof u == "function")
m = u.propTypes;
else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
u.$$typeof === v))
m = u.propTypes;
else
return;
if (m) {
var _ = te(u);
pn(m, o.props, "prop", _, o);
} else if (u.PropTypes !== void 0 && !Er) {
Er = !0;
var q = te(u);
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
}
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function xn(o) {
{
for (var u = Object.keys(o.props), m = 0; m < u.length; m++) {
var _ = u[m];
if (_ !== "children" && _ !== "key") {
Ae(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ae(null);
break;
}
}
o.ref !== null && (Ae(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
}
}
var at = {};
function it(o, u, m, _, q, G) {
{
var W = we(o);
if (!W) {
var L = "";
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var oe = Tn();
oe ? L += oe : L += rt();
var J;
o === null ? J = "null" : gr(o) ? J = "array" : o !== void 0 && o.$$typeof === r ? (J = "<" + (te(o.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : J = typeof o, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, L);
}
var K = Rn(o, u, m, q, G);
if (K == null)
return K;
if (W) {
var le = u.children;
if (le !== void 0)
if (_)
if (gr(le)) {
for (var Ie = 0; Ie < le.length; Ie++)
ot(le[Ie], o);
Object.freeze && Object.freeze(le);
} else
k("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
ot(le, o);
}
if (qe.call(u, "key")) {
var Re = te(o), ie = Object.keys(u).filter(function(jn) {
return jn !== "key";
}), Sr = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!at[Re + Sr]) {
var In = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
k(`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} />`, Sr, Re, In, Re), at[Re + Sr] = !0;
}
}
return o === n ? xn(K) : Pn(K), K;
}
}
function Cn(o, u, m) {
return it(o, u, m, !0);
}
function On(o, u, m) {
return it(o, u, m, !1);
}
var kn = On, An = Cn;
Ue.Fragment = n, Ue.jsx = kn, Ue.jsxs = An;
}()), Ue;
}
var ft;
function Ln() {
return ft || (ft = 1, process.env.NODE_ENV === "production" ? Xe.exports = Fn() : Xe.exports = Yn()), Xe.exports;
}
var je = Ln(), Je = { exports: {} }, Ke = { exports: {} }, V = {};
/** @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 lt;
function Wn() {
if (lt) return V;
lt = 1;
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
function P(f) {
if (typeof f == "object" && f !== null) {
var I = f.$$typeof;
switch (I) {
case r:
switch (f = f.type, f) {
case l:
case g:
case n:
case i:
case a:
case v:
return f;
default:
switch (f = f && f.$$typeof, f) {
case p:
case h:
case N:
case E:
case s:
return f;
default:
return I;
}
}
case t:
return I;
}
}
}
function x(f) {
return P(f) === g;
}
return V.AsyncMode = l, V.ConcurrentMode = g, V.ContextConsumer = p, V.ContextProvider = s, V.Element = r, V.ForwardRef = h, V.Fragment = n, V.Lazy = N, V.Memo = E, V.Portal = t, V.Profiler = i, V.StrictMode = a, V.Suspense = v, V.isAsyncMode = function(f) {
return x(f) || P(f) === l;
}, V.isConcurrentMode = x, V.isContextConsumer = function(f) {
return P(f) === p;
}, V.isContextProvider = function(f) {
return P(f) === s;
}, V.isElement = function(f) {
return typeof f == "object" && f !== null && f.$$typeof === r;
}, V.isForwardRef = function(f) {
return P(f) === h;
}, V.isFragment = function(f) {
return P(f) === n;
}, V.isLazy = function(f) {
return P(f) === N;
}, V.isMemo = function(f) {
return P(f) === E;
}, V.isPortal = function(f) {
return P(f) === t;
}, V.isProfiler = function(f) {
return P(f) === i;
}, V.isStrictMode = function(f) {
return P(f) === a;
}, V.isSuspense = function(f) {
return P(f) === v;
}, V.isValidElementType = function(f) {
return typeof f == "string" || typeof f == "function" || f === n || f === g || f === i || f === a || f === v || f === b || typeof f == "object" && f !== null && (f.$$typeof === N || f.$$typeof === E || f.$$typeof === s || f.$$typeof === p || f.$$typeof === h || f.$$typeof === z || f.$$typeof === M || f.$$typeof === k || f.$$typeof === R);
}, V.typeOf = P, V;
}
var U = {};
/** @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 pt;
function zn() {
return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
function P(d) {
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
d === n || d === g || d === i || d === a || d === v || d === b || typeof d == "object" && d !== null && (d.$$typeof === N || d.$$typeof === E || d.$$typeof === s || d.$$typeof === p || d.$$typeof === h || d.$$typeof === z || d.$$typeof === M || d.$$typeof === k || d.$$typeof === R);
}
function x(d) {
if (typeof d == "object" && d !== null) {
var fe = d.$$typeof;
switch (fe) {
case r:
var ke = d.type;
switch (ke) {
case l:
case g:
case n:
case i:
case a:
case v:
return ke;
default:
var Se = ke && ke.$$typeof;
switch (Se) {
case p:
case h:
case N:
case E:
case s:
return Se;
default:
return fe;
}
}
case t:
return fe;
}
}
}
var f = l, I = g, C = p, ce = s, ue = r, we = h, ge = n, be = N, te = E, ee = t, de = i, ne = a, ae = v, ye = !1;
function re(d) {
return ye || (ye = !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.")), c(d) || x(d) === l;
}
function c(d) {
return x(d) === g;
}
function y(d) {
return x(d) === p;
}
function w(d) {
return x(d) === s;
}
function j(d) {
return typeof d == "object" && d !== null && d.$$typeof === r;
}
function T(d) {
return x(d) === h;
}
function Y(d) {
return x(d) === n;
}
function S(d) {
return x(d) === N;
}
function O(d) {
return x(d) === E;
}
function A(d) {
return x(d) === t;
}
function D(d) {
return x(d) === i;
}
function $(d) {
return x(d) === a;
}
function X(d) {
return x(d) === v;
}
U.AsyncMode = f, U.ConcurrentMode = I, U.ContextConsumer = C, U.ContextProvider = ce, U.Element = ue, U.ForwardRef = we, U.Fragment = ge, U.Lazy = be, U.Memo = te, U.Portal = ee, U.Profiler = de, U.StrictMode = ne, U.Suspense = ae, U.isAsyncMode = re, U.isConcurrentMode = c, U.isContextConsumer = y, U.isContextProvider = w, U.isElement = j, U.isForwardRef = T, U.isFragment = Y, U.isLazy = S, U.isMemo = O, U.isPortal = A, U.isProfiler = D, U.isStrictMode = $, U.isSuspense = X, U.isValidElementType = P, U.typeOf = x;
}()), U;
}
var dt;
function Yt() {
return dt || (dt = 1, process.env.NODE_ENV === "production" ? Ke.exports = Wn() : Ke.exports = zn()), Ke.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Rr, ht;
function qn() {
if (ht) return Rr;
ht = 1;
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = 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 a() {
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 = {}, p = 0; p < 10; p++)
s["_" + String.fromCharCode(p)] = p;
var l = Object.getOwnPropertyNames(s).map(function(h) {
return s[h];
});
if (l.join("") !== "0123456789")
return !1;
var g = {};
return "abcdefghijklmnopqrst".split("").forEach(function(h) {
g[h] = h;
}), Object.keys(Object.assign({}, g)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Rr = a() ? Object.assign : function(i, s) {
for (var p, l = n(i), g, h = 1; h < arguments.length; h++) {
p = Object(arguments[h]);
for (var v in p)
r.call(p, v) && (l[v] = p[v]);
if (e) {
g = e(p);
for (var b = 0; b < g.length; b++)
t.call(p, g[b]) && (l[g[b]] = p[g[b]]);
}
}
return l;
}, Rr;
}
var Tr, yt;
function Wr() {
if (yt) return Tr;
yt = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Tr = e, Tr;
}
var _r, vt;
function Lt() {
return vt || (vt = 1, _r = Function.call.bind(Object.prototype.hasOwnProperty)), _r;
}
var Pr, mt;
function Vn() {
if (mt) return Pr;
mt = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var r = /* @__PURE__ */ Wr(), t = {}, n = /* @__PURE__ */ Lt();
e = function(i) {
var s = "Warning: " + i;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function a(i, s, p, l, g) {
if (process.env.NODE_ENV !== "production") {
for (var h in i)
if (n(i, h)) {
var v;
try {
if (typeof i[h] != "function") {
var b = Error(
(l || "React class") + ": " + p + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw b.name = "Invariant Violation", b;
}
v = i[h](s, h, l, p, null, r);
} catch (N) {
v = N;
}
if (v && !(v instanceof Error) && e(
(l || "React class") + ": type specification of " + p + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), v instanceof Error && !(v.message in t)) {
t[v.message] = !0;
var E = g ? g() : "";
e(
"Failed " + p + " type: " + v.message + (E ?? "")
);
}
}
}
}
return a.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (t = {});
}, Pr = a, Pr;
}
var xr, gt;
function Un() {
if (gt) return xr;
gt = 1;
var e = Yt(), r = qn(), t = /* @__PURE__ */ Wr(), n = /* @__PURE__ */ Lt(), a = /* @__PURE__ */ Vn(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(p) {
var l = "Warning: " + p;
typeof console < "u" && console.error(l);
try {
throw new Error(l);
} catch {
}
});
function s() {
return null;
}
return xr = function(p, l) {
var g = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
function v(c) {
var y = c && (g && c[g] || c[h]);
if (typeof y == "function")
return y;
}
var b = "<<anonymous>>", E = {
array: M("array"),
bigint: M("bigint"),
bool: M("boolean"),
func: M("function"),
number: M("number"),
object: M("object"),
string: M("string"),
symbol: M("symbol"),
any: k(),
arrayOf: P,
element: x(),
elementType: f(),
instanceOf: I,
node: we(),
objectOf: ce,
oneOf: C,
oneOfType: ue,
shape: be,
exact: te
};
function N(c, y) {
return c === y ? c !== 0 || 1 / c === 1 / y : c !== c && y !== y;
}
function R(c, y) {
this.message = c, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
}
R.prototype = Error.prototype;
function z(c) {
if (process.env.NODE_ENV !== "production")
var y = {}, w = 0;
function j(Y, S, O, A, D, $, X) {
if (A = A || b, $ = $ || O, X !== t) {
if (l) {
var d = 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 d.name = "Invariant Violation", d;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var fe = A + ":" + O;
!y[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
w < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + A + "`. 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."
), y[fe] = !0, w++);
}
}
return S[O] == null ? Y ? S[O] === null ? new R("The " + D + " `" + $ + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new R("The " + D + " `" + $ + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : c(S, O, A, D, $);
}
var T = j.bind(null, !1);
return T.isRequired = j.bind(null, !0), T;
}
function M(c) {
function y(w, j, T, Y, S, O) {
var A = w[j], D = ne(A);
if (D !== c) {
var $ = ae(A);
return new R(
"Invalid " + Y + " `" + S + "` of type " + ("`" + $ + "` supplied to `" + T + "`, expected ") + ("`" + c + "`."),
{ expectedType: c }
);
}
return null;
}
return z(y);
}
function k() {
return z(s);
}
function P(c) {
function y(w, j, T, Y, S) {
if (typeof c != "function")
return new R("Property `" + S + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
var O = w[j];
if (!Array.isArray(O)) {
var A = ne(O);
return new R("Invalid " + Y + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an array."));
}
for (var D = 0; D < O.length; D++) {
var $ = c(O, D, T, Y, S + "[" + D + "]", t);
if ($ instanceof Error)
return $;
}
return null;
}
return z(y);
}
function x() {
function c(y, w, j, T, Y) {
var S = y[w];
if (!p(S)) {
var O = ne(S);
return new R("Invalid " + T + " `" + Y + "` of type " + ("`" + O + "` supplied to `" + j + "`, expected a single ReactElement."));
}
return null;
}
return z(c);
}
function f() {
function c(y, w, j, T, Y) {
var S = y[w];
if (!e.isValidElementType(S)) {
var O = ne(S);
return new R("Invalid " + T + " `" + Y + "` of type " + ("`" + O + "` supplied to `" + j + "`, expected a single ReactElement type."));
}
return null;
}
return z(c);
}
function I(c) {
function y(w, j, T, Y, S) {
if (!(w[j] instanceof c)) {
var O = c.name || b, A = re(w[j]);
return new R("Invalid " + Y + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + O + "`."));
}
return null;
}
return z(y);
}
function C(c) {
if (!Array.isArray(c))
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 y(w, j, T, Y, S) {
for (var O = w[j], A = 0; A < c.length; A++)
if (N(O, c[A]))
return null;
var D = JSON.stringify(c, function(X, d) {
var fe = ae(d);
return fe === "symbol" ? String(d) : d;
});
return new R("Invalid " + Y + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + T + "`, expected one of " + D + "."));
}
return z(y);
}
function ce(c) {
function y(w, j, T, Y, S) {
if (typeof c != "function")
return new R("Property `" + S + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
var O = w[j], A = ne(O);
if (A !== "object")
return new R("Invalid " + Y + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an object."));
for (var D in O)
if (n(O, D)) {
var $ = c(O, D, T, Y, S + "." + D, t);
if ($ instanceof Error)
return $;
}
return null;
}
return z(y);
}
function ue(c) {
if (!Array.isArray(c))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var y = 0; y < c.length; y++) {
var w = c[y];
if (typeof w != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ye(w) + " at index " + y + "."
), s;
}
function j(T, Y, S, O, A) {
for (var D = [], $ = 0; $ < c.length; $++) {
var X = c[$], d = X(T, Y, S, O, A, t);
if (d == null)
return null;
d.data && n(d.data, "expectedType") && D.push(d.data.expectedType);
}
var fe = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
return new R("Invalid " + O + " `" + A + "` supplied to " + ("`" + S + "`" + fe + "."));
}
return z(j);
}
function we() {
function c(y, w, j, T, Y) {
return ee(y[w]) ? null : new R("Invalid " + T + " `" + Y + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
}
return z(c);
}
function ge(c, y, w, j, T) {
return new R(
(c || "React class") + ": " + y + " type `" + w + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
);
}
function be(c) {
function y(w, j, T, Y, S) {
var O = w[j], A = ne(O);
if (A !== "object")
return new R("Invalid " + Y + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
for (var D in c) {
var $ = c[D];
if (typeof $ != "function")
return ge(T, Y, S, D, ae($));
var X = $(O, D, T, Y, S + "." + D, t);
if (X)
return X;
}
return null;
}
return z(y);
}
function te(c) {
function y(w, j, T, Y, S) {
var O = w[j], A = ne(O);
if (A !== "object")
return new R("Invalid " + Y + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
var D = r({}, w[j], c);
for (var $ in D) {
var X = c[$];
if (n(c, $) && typeof X != "function")
return ge(T, Y, S, $, ae(X));
if (!X)
return new R(
"Invalid " + Y + " `" + S + "` key `" + $ + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(w[j], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
);
var d = X(O, $, T, Y, S + "." + $, t);
if (d)
return d;
}
return null;
}
return z(y);
}
function ee(c) {
switch (typeof c) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !c;
case "object":
if (Array.isArray(c))
return c.every(ee);
if (c === null || p(c))
return !0;
var y = v(c);
if (y) {
var w = y.call(c), j;
if (y !== c.entries) {
for (; !(j = w.next()).done; )
if (!ee(j.value))
return !1;
} else
for (; !(j = w.next()).done; ) {
var T = j.value;
if (T && !ee(T[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function de(c, y) {
return c === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
}
function ne(c) {
var y = typeof c;
return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : de(y, c) ? "symbol" : y;
}
function ae(c) {
if (typeof c > "u" || c === null)
return "" + c;
var y = ne(c);
if (y === "object") {
if (c instanceof Date)
return "date";
if (c instanceof RegExp)
return "regexp";
}
return y;
}
function ye(c) {
var y = ae(c);
switch (y) {
case "array":
case "object":
return "an " + y;
case "boolean":
case "date":
case "regexp":
return "a " + y;
default:
return y;
}
}
function re(c) {
return !c.constructor || !c.constructor.name ? b : c.constructor.name;
}
return E.checkPropTypes = a, E.resetWarningCache = a.resetWarningCache, E.PropTypes = E, E;
}, xr;
}
var Cr, bt;
function Bn() {
if (bt) return Cr;
bt = 1;
var e = /* @__PURE__ */ Wr();
function r() {
}
function t() {
}
return t.resetWarningCache = r, Cr = function() {
function n(s, p, l, g, h, v) {
if (v !== e) {
var b = 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 b.name = "Invariant Violation", b;
}
}
n.isRequired = n;
function a() {
return n;
}
var i = {
array: n,
bigint: n,
bool: n,
func: n,
number: n,
object: n,
string: n,
symbol: n,
any: n,
arrayOf: a,
element: n,
elementType: n,
instanceOf: a,
node: n,
objectOf: a,
oneOf: a,
oneOfType: a,
shape: a,
exact: a,
checkPropTypes: t,
resetWarningCache: r
};
return i.PropTypes = i, i;
}, Cr;
}
var Et;
function Gn() {
if (Et) return Je.exports;
if (Et = 1, process.env.NODE_ENV !== "production") {
var e = Yt(), r = !0;
Je.exports = /* @__PURE__ */ Un()(e.isElement, r);
} else
Je.exports = /* @__PURE__ */ Bn()();
return Je.exports;
}
var Hn = /* @__PURE__ */ Gn();
const Ze = /* @__PURE__ */ Mn(Hn);
var se = function() {
return se = Object.assign || function(r) {
for (var t, n = 1, a = arguments.length; n < a; n++) {
t = arguments[n];
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (r[i] = t[i]);
}
return r;
}, se.apply(this, arguments);
};
function $e(e, r, t) {
if (t || arguments.length === 2) for (var n = 0, a = r.length, i; n < a; n++)
(i || !(n in r)) && (i || (i = Array.prototype.slice.call(r, 0, n)), i[n] = r[n]);
return e.concat(i || Array.prototype.slice.call(r));
}
function Xn(e) {
var r = /* @__PURE__ */ Object.create(null);
return function(t) {
return r[t] === void 0 && (r[t] = e(t)), r[t];
};
}
var Jn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Kn = /* @__PURE__ */ Xn(
function(e) {
return Jn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), H = "-ms-", Ge = "-moz-", B = "-webkit-", Wt = "comm", lr = "rule", zr = "decl", Zn = "@import", zt = "@keyframes", Qn = "@layer", qt = Math.abs, qr = String.fromCharCode, jr = Object.assign;
function