@tutim/fields
Version:
form infrastructure for web applications
1,484 lines (1,481 loc) • 835 kB
JavaScript
import * as w from "react";
import en, { useLayoutEffect as Ud, forwardRef as qd, useContext as ao, createContext as dc, createElement as Mn, Fragment as xi, useRef as Hd, Children as Kd, isValidElement as _o, cloneElement as Io, useState as Gd } from "react";
import * as Yd from "react-dom";
import Oo, { flushSync as Xd } from "react-dom";
import { getFieldsFromMap as Jd, useForm as Zd, useWizardContext as pc, useStep as Qd, useWizard as ep, WizardProvider as tp } from "@tutim/headless";
var Bt = /* @__PURE__ */ ((e) => (e.Text = "text", e.Select = "select", e.Radio = "radio", e.Switch = "switch", e.Checkbox = "checkbox", e.Number = "number", e.Date = "date", e.Password = "password", e.TextArea = "text-area", e.Json = "json", e.MultiText = "multi-text", e.MultiSelect = "multi-select", e.MultiCheckbox = "multi-checkbox", e.Object = "object", e.Array = "array", e.Custom = "custom", e))(Bt || {}), Xa = /* @__PURE__ */ ((e) => (e.MultiStepWizard = "multi-step-wizard", e.SingleStepForm = "single-step-form", e))(Xa || {}), zr = /* @__PURE__ */ ((e) => (e[e.One = 1] = "One", e[e.Two = 2] = "Two", e[e.Three = 3] = "Three", e))(zr || {}), np = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function rp(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function fc(e) {
if (e.__esModule)
return e;
var t = e.default;
if (typeof t == "function") {
var o = function r() {
if (this instanceof r) {
var i = [null];
i.push.apply(i, arguments);
var a = Function.bind.apply(t, i);
return new a();
}
return t.apply(this, arguments);
};
o.prototype = t.prototype;
} else
o = {};
return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
var i = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(o, r, i.get ? i : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), o;
}
var Xr = {}, op = {
get exports() {
return Xr;
},
set exports(e) {
Xr = e;
}
}, $r = {};
/**
* @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 xs;
function ap() {
if (xs)
return $r;
xs = 1;
var e = en, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(l, c, u) {
var d, f = {}, m = null, v = null;
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (v = c.ref);
for (d in c)
r.call(c, d) && !a.hasOwnProperty(d) && (f[d] = c[d]);
if (l && l.defaultProps)
for (d in c = l.defaultProps, c)
f[d] === void 0 && (f[d] = c[d]);
return { $$typeof: t, type: l, key: m, ref: v, props: f, _owner: i.current };
}
return $r.Fragment = o, $r.jsx = s, $r.jsxs = s, $r;
}
var kr = {};
/**
* @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 Es;
function ip() {
return Es || (Es = 1, process.env.NODE_ENV !== "production" && function() {
var e = en, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E = Symbol.iterator, x = "@@iterator";
function C(F) {
if (F === null || typeof F != "object")
return null;
var pe = E && F[E] || F[x];
return typeof pe == "function" ? pe : null;
}
var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function $(F) {
{
for (var pe = arguments.length, b = new Array(pe > 1 ? pe - 1 : 0), y = 1; y < pe; y++)
b[y - 1] = arguments[y];
k("error", F, b);
}
}
function k(F, pe, b) {
{
var y = N.ReactDebugCurrentFrame, h = y.getStackAddendum();
h !== "" && (pe += "%s", b = b.concat([h]));
var O = b.map(function(S) {
return String(S);
});
O.unshift("Warning: " + pe), Function.prototype.apply.call(console[F], console, O);
}
}
var p = !1, g = !1, P = !1, I = !1, V = !1, R;
R = Symbol.for("react.module.reference");
function _(F) {
return !!(typeof F == "string" || typeof F == "function" || F === r || F === a || V || F === i || F === u || F === d || I || F === v || p || g || P || typeof F == "object" && F !== null && (F.$$typeof === m || F.$$typeof === f || F.$$typeof === s || F.$$typeof === l || F.$$typeof === c || // 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.
F.$$typeof === R || F.getModuleId !== void 0));
}
function D(F, pe, b) {
var y = F.displayName;
if (y)
return y;
var h = pe.displayName || pe.name || "";
return h !== "" ? b + "(" + h + ")" : b;
}
function ee(F) {
return F.displayName || "Context";
}
function M(F) {
if (F == null)
return null;
if (typeof F.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof F == "function")
return F.displayName || F.name || null;
if (typeof F == "string")
return F;
switch (F) {
case r:
return "Fragment";
case o:
return "Portal";
case a:
return "Profiler";
case i:
return "StrictMode";
case u:
return "Suspense";
case d:
return "SuspenseList";
}
if (typeof F == "object")
switch (F.$$typeof) {
case l:
var pe = F;
return ee(pe) + ".Consumer";
case s:
var b = F;
return ee(b._context) + ".Provider";
case c:
return D(F, F.render, "ForwardRef");
case f:
var y = F.displayName || null;
return y !== null ? y : M(F.type) || "Memo";
case m: {
var h = F, O = h._payload, S = h._init;
try {
return M(S(O));
} catch {
return null;
}
}
}
return null;
}
var K = Object.assign, H = 0, A, ae, fe, ce, L, Z, oe;
function ue() {
}
ue.__reactDisabledLog = !0;
function ie() {
{
if (H === 0) {
A = console.log, ae = console.info, fe = console.warn, ce = console.error, L = console.group, Z = console.groupCollapsed, oe = console.groupEnd;
var F = {
configurable: !0,
enumerable: !0,
value: ue,
writable: !0
};
Object.defineProperties(console, {
info: F,
log: F,
warn: F,
error: F,
group: F,
groupCollapsed: F,
groupEnd: F
});
}
H++;
}
}
function he() {
{
if (H--, H === 0) {
var F = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: K({}, F, {
value: A
}),
info: K({}, F, {
value: ae
}),
warn: K({}, F, {
value: fe
}),
error: K({}, F, {
value: ce
}),
group: K({}, F, {
value: L
}),
groupCollapsed: K({}, F, {
value: Z
}),
groupEnd: K({}, F, {
value: oe
})
});
}
H < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ne = N.ReactCurrentDispatcher, le;
function se(F, pe, b) {
{
if (le === void 0)
try {
throw Error();
} catch (h) {
var y = h.stack.trim().match(/\n( *(at )?)/);
le = y && y[1] || "";
}
return `
` + le + F;
}
}
var de = !1, ye;
{
var me = typeof WeakMap == "function" ? WeakMap : Map;
ye = new me();
}
function Y(F, pe) {
if (!F || de)
return "";
{
var b = ye.get(F);
if (b !== void 0)
return b;
}
var y;
de = !0;
var h = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var O;
O = ne.current, ne.current = null, ie();
try {
if (pe) {
var S = function() {
throw Error();
};
if (Object.defineProperty(S.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(S, []);
} catch (Ue) {
y = Ue;
}
Reflect.construct(F, [], S);
} else {
try {
S.call();
} catch (Ue) {
y = Ue;
}
F.call(S.prototype);
}
} else {
try {
throw Error();
} catch (Ue) {
y = Ue;
}
F();
}
} catch (Ue) {
if (Ue && y && typeof Ue.stack == "string") {
for (var z = Ue.stack.split(`
`), X = y.stack.split(`
`), q = z.length - 1, B = X.length - 1; q >= 1 && B >= 0 && z[q] !== X[B]; )
B--;
for (; q >= 1 && B >= 0; q--, B--)
if (z[q] !== X[B]) {
if (q !== 1 || B !== 1)
do
if (q--, B--, B < 0 || z[q] !== X[B]) {
var Q = `
` + z[q].replace(" at new ", " at ");
return F.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", F.displayName)), typeof F == "function" && ye.set(F, Q), Q;
}
while (q >= 1 && B >= 0);
break;
}
}
} finally {
de = !1, ne.current = O, he(), Error.prepareStackTrace = h;
}
var Oe = F ? F.displayName || F.name : "", He = Oe ? se(Oe) : "";
return typeof F == "function" && ye.set(F, He), He;
}
function $e(F, pe, b) {
return Y(F, !1);
}
function be(F) {
var pe = F.prototype;
return !!(pe && pe.isReactComponent);
}
function xe(F, pe, b) {
if (F == null)
return "";
if (typeof F == "function")
return Y(F, be(F));
if (typeof F == "string")
return se(F);
switch (F) {
case u:
return se("Suspense");
case d:
return se("SuspenseList");
}
if (typeof F == "object")
switch (F.$$typeof) {
case c:
return $e(F.render);
case f:
return xe(F.type, pe, b);
case m: {
var y = F, h = y._payload, O = y._init;
try {
return xe(O(h), pe, b);
} catch {
}
}
}
return "";
}
var Ge = Object.prototype.hasOwnProperty, we = {}, ze = N.ReactDebugCurrentFrame;
function Ke(F) {
if (F) {
var pe = F._owner, b = xe(F.type, F._source, pe ? pe.type : null);
ze.setExtraStackFrame(b);
} else
ze.setExtraStackFrame(null);
}
function Qe(F, pe, b, y, h) {
{
var O = Function.call.bind(Ge);
for (var S in F)
if (O(F, S)) {
var z = void 0;
try {
if (typeof F[S] != "function") {
var X = Error((y || "React class") + ": " + b + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof F[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw X.name = "Invariant Violation", X;
}
z = F[S](pe, S, y, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (q) {
z = q;
}
z && !(z instanceof Error) && (Ke(h), $("%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).", y || "React class", b, S, typeof z), Ke(null)), z instanceof Error && !(z.message in we) && (we[z.message] = !0, Ke(h), $("Failed %s type: %s", b, z.message), Ke(null));
}
}
}
var Ne = Array.isArray;
function Xe(F) {
return Ne(F);
}
function Me(F) {
{
var pe = typeof Symbol == "function" && Symbol.toStringTag, b = pe && F[Symbol.toStringTag] || F.constructor.name || "Object";
return b;
}
}
function et(F) {
try {
return te(F), !1;
} catch {
return !0;
}
}
function te(F) {
return "" + F;
}
function U(F) {
if (et(F))
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(F)), te(F);
}
var W = N.ReactCurrentOwner, G = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, J, re, Ee;
Ee = {};
function Ce(F) {
if (Ge.call(F, "ref")) {
var pe = Object.getOwnPropertyDescriptor(F, "ref").get;
if (pe && pe.isReactWarning)
return !1;
}
return F.ref !== void 0;
}
function Re(F) {
if (Ge.call(F, "key")) {
var pe = Object.getOwnPropertyDescriptor(F, "key").get;
if (pe && pe.isReactWarning)
return !1;
}
return F.key !== void 0;
}
function Ae(F, pe) {
if (typeof F.ref == "string" && W.current && pe && W.current.stateNode !== pe) {
var b = M(W.current.type);
Ee[b] || ($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(W.current.type), F.ref), Ee[b] = !0);
}
}
function qe(F, pe) {
{
var b = function() {
J || (J = !0, $("%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)", pe));
};
b.isReactWarning = !0, Object.defineProperty(F, "key", {
get: b,
configurable: !0
});
}
}
function ft(F, pe) {
{
var b = function() {
re || (re = !0, $("%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)", pe));
};
b.isReactWarning = !0, Object.defineProperty(F, "ref", {
get: b,
configurable: !0
});
}
}
var Ie = function(F, pe, b, y, h, O, S) {
var z = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: F,
key: pe,
ref: b,
props: S,
// Record the component responsible for creating this element.
_owner: O
};
return z._store = {}, Object.defineProperty(z._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(z, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: y
}), Object.defineProperty(z, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: h
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
};
function nt(F, pe, b, y, h) {
{
var O, S = {}, z = null, X = null;
b !== void 0 && (U(b), z = "" + b), Re(pe) && (U(pe.key), z = "" + pe.key), Ce(pe) && (X = pe.ref, Ae(pe, h));
for (O in pe)
Ge.call(pe, O) && !G.hasOwnProperty(O) && (S[O] = pe[O]);
if (F && F.defaultProps) {
var q = F.defaultProps;
for (O in q)
S[O] === void 0 && (S[O] = q[O]);
}
if (z || X) {
var B = typeof F == "function" ? F.displayName || F.name || "Unknown" : F;
z && qe(S, B), X && ft(S, B);
}
return Ie(F, z, X, h, y, W.current, S);
}
}
var Je = N.ReactCurrentOwner, mt = N.ReactDebugCurrentFrame;
function De(F) {
if (F) {
var pe = F._owner, b = xe(F.type, F._source, pe ? pe.type : null);
mt.setExtraStackFrame(b);
} else
mt.setExtraStackFrame(null);
}
var Fe;
Fe = !1;
function Pe(F) {
return typeof F == "object" && F !== null && F.$$typeof === t;
}
function vt() {
{
if (Je.current) {
var F = M(Je.current.type);
if (F)
return `
Check the render method of \`` + F + "`.";
}
return "";
}
}
function yt(F) {
{
if (F !== void 0) {
var pe = F.fileName.replace(/^.*[\\\/]/, ""), b = F.lineNumber;
return `
Check your code at ` + pe + ":" + b + ".";
}
return "";
}
}
var It = {};
function $t(F) {
{
var pe = vt();
if (!pe) {
var b = typeof F == "string" ? F : F.displayName || F.name;
b && (pe = `
Check the top-level render call using <` + b + ">.");
}
return pe;
}
}
function Ot(F, pe) {
{
if (!F._store || F._store.validated || F.key != null)
return;
F._store.validated = !0;
var b = $t(pe);
if (It[b])
return;
It[b] = !0;
var y = "";
F && F._owner && F._owner !== Je.current && (y = " It was passed a child from " + M(F._owner.type) + "."), De(F), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, y), De(null);
}
}
function St(F, pe) {
{
if (typeof F != "object")
return;
if (Xe(F))
for (var b = 0; b < F.length; b++) {
var y = F[b];
Pe(y) && Ot(y, pe);
}
else if (Pe(F))
F._store && (F._store.validated = !0);
else if (F) {
var h = C(F);
if (typeof h == "function" && h !== F.entries)
for (var O = h.call(F), S; !(S = O.next()).done; )
Pe(S.value) && Ot(S.value, pe);
}
}
}
function kt(F) {
{
var pe = F.type;
if (pe == null || typeof pe == "string")
return;
var b;
if (typeof pe == "function")
b = pe.propTypes;
else if (typeof pe == "object" && (pe.$$typeof === c || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
pe.$$typeof === f))
b = pe.propTypes;
else
return;
if (b) {
var y = M(pe);
Qe(b, F.props, "prop", y, F);
} else if (pe.PropTypes !== void 0 && !Fe) {
Fe = !0;
var h = M(pe);
$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
}
typeof pe.getDefaultProps == "function" && !pe.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Mt(F) {
{
for (var pe = Object.keys(F.props), b = 0; b < pe.length; b++) {
var y = pe[b];
if (y !== "children" && y !== "key") {
De(F), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), De(null);
break;
}
}
F.ref !== null && (De(F), $("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
}
}
function Zt(F, pe, b, y, h, O) {
{
var S = _(F);
if (!S) {
var z = "";
(F === void 0 || typeof F == "object" && F !== null && Object.keys(F).length === 0) && (z += " 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 X = yt(h);
X ? z += X : z += vt();
var q;
F === null ? q = "null" : Xe(F) ? q = "array" : F !== void 0 && F.$$typeof === t ? (q = "<" + (M(F.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : q = typeof F, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, z);
}
var B = nt(F, pe, b, h, O);
if (B == null)
return B;
if (S) {
var Q = pe.children;
if (Q !== void 0)
if (y)
if (Xe(Q)) {
for (var Oe = 0; Oe < Q.length; Oe++)
St(Q[Oe], F);
Object.freeze && Object.freeze(Q);
} else
$("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
St(Q, F);
}
return F === r ? Mt(B) : kt(B), B;
}
}
function We(F, pe, b) {
return Zt(F, pe, b, !0);
}
function Ct(F, pe, b) {
return Zt(F, pe, b, !1);
}
var gt = Ct, Ht = We;
kr.Fragment = r, kr.jsx = gt, kr.jsxs = Ht;
}()), kr;
}
(function(e) {
process.env.NODE_ENV === "production" ? e.exports = ap() : e.exports = ip();
})(op);
const mc = Xr.Fragment, j = Xr.jsx, ke = Xr.jsxs, sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Fragment: mc,
jsx: j,
jsxs: ke
}, Symbol.toStringTag, { value: "Module" })), lp = {
black: "#000",
white: "#fff"
}, Jr = lp, cp = {
50: "#ffebee",
100: "#ffcdd2",
200: "#ef9a9a",
300: "#e57373",
400: "#ef5350",
500: "#f44336",
600: "#e53935",
700: "#d32f2f",
800: "#c62828",
900: "#b71c1c",
A100: "#ff8a80",
A200: "#ff5252",
A400: "#ff1744",
A700: "#d50000"
}, sr = cp, up = {
50: "#f3e5f5",
100: "#e1bee7",
200: "#ce93d8",
300: "#ba68c8",
400: "#ab47bc",
500: "#9c27b0",
600: "#8e24aa",
700: "#7b1fa2",
800: "#6a1b9a",
900: "#4a148c",
A100: "#ea80fc",
A200: "#e040fb",
A400: "#d500f9",
A700: "#aa00ff"
}, lr = up, dp = {
50: "#e3f2fd",
100: "#bbdefb",
200: "#90caf9",
300: "#64b5f6",
400: "#42a5f5",
500: "#2196f3",
600: "#1e88e5",
700: "#1976d2",
800: "#1565c0",
900: "#0d47a1",
A100: "#82b1ff",
A200: "#448aff",
A400: "#2979ff",
A700: "#2962ff"
}, cr = dp, pp = {
50: "#e1f5fe",
100: "#b3e5fc",
200: "#81d4fa",
300: "#4fc3f7",
400: "#29b6f6",
500: "#03a9f4",
600: "#039be5",
700: "#0288d1",
800: "#0277bd",
900: "#01579b",
A100: "#80d8ff",
A200: "#40c4ff",
A400: "#00b0ff",
A700: "#0091ea"
}, ur = pp, fp = {
50: "#e8f5e9",
100: "#c8e6c9",
200: "#a5d6a7",
300: "#81c784",
400: "#66bb6a",
500: "#4caf50",
600: "#43a047",
700: "#388e3c",
800: "#2e7d32",
900: "#1b5e20",
A100: "#b9f6ca",
A200: "#69f0ae",
A400: "#00e676",
A700: "#00c853"
}, dr = fp, mp = {
50: "#fff3e0",
100: "#ffe0b2",
200: "#ffcc80",
300: "#ffb74d",
400: "#ffa726",
500: "#ff9800",
600: "#fb8c00",
700: "#f57c00",
800: "#ef6c00",
900: "#e65100",
A100: "#ffd180",
A200: "#ffab40",
A400: "#ff9100",
A700: "#ff6d00"
}, _r = mp, bp = {
50: "#fafafa",
100: "#f5f5f5",
200: "#eeeeee",
300: "#e0e0e0",
400: "#bdbdbd",
500: "#9e9e9e",
600: "#757575",
700: "#616161",
800: "#424242",
900: "#212121",
A100: "#f5f5f5",
A200: "#eeeeee",
A400: "#bdbdbd",
A700: "#616161"
}, hp = bp;
function yn(e, t) {
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
return e(...r) || t(...r);
};
}
function jn() {
return jn = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var o = arguments[t];
for (var r in o)
Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
}
return e;
}, jn.apply(this, arguments);
}
function Kn(e) {
return e !== null && typeof e == "object" && e.constructor === Object;
}
function bc(e) {
if (!Kn(e))
return e;
const t = {};
return Object.keys(e).forEach((o) => {
t[o] = bc(e[o]);
}), t;
}
function nn(e, t, o = {
clone: !0
}) {
const r = o.clone ? jn({}, e) : e;
return Kn(e) && Kn(t) && Object.keys(t).forEach((i) => {
i !== "__proto__" && (Kn(t[i]) && i in e && Kn(e[i]) ? r[i] = nn(e[i], t[i], o) : o.clone ? r[i] = Kn(t[i]) ? bc(t[i]) : t[i] : r[i] = t[i]);
}), r;
}
var n = {}, Os = {
get exports() {
return n;
},
set exports(e) {
n = e;
}
}, Fo = {}, vp = {
get exports() {
return Fo;
},
set exports(e) {
Fo = e;
}
}, at = {};
/** @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 Cs;
function gp() {
if (Cs)
return at;
Cs = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
function k(g) {
if (typeof g == "object" && g !== null) {
var P = g.$$typeof;
switch (P) {
case t:
switch (g = g.type, g) {
case c:
case u:
case r:
case a:
case i:
case f:
return g;
default:
switch (g = g && g.$$typeof, g) {
case l:
case d:
case E:
case v:
case s:
return g;
default:
return P;
}
}
case o:
return P;
}
}
}
function p(g) {
return k(g) === u;
}
return at.AsyncMode = c, at.ConcurrentMode = u, at.ContextConsumer = l, at.ContextProvider = s, at.Element = t, at.ForwardRef = d, at.Fragment = r, at.Lazy = E, at.Memo = v, at.Portal = o, at.Profiler = a, at.StrictMode = i, at.Suspense = f, at.isAsyncMode = function(g) {
return p(g) || k(g) === c;
}, at.isConcurrentMode = p, at.isContextConsumer = function(g) {
return k(g) === l;
}, at.isContextProvider = function(g) {
return k(g) === s;
}, at.isElement = function(g) {
return typeof g == "object" && g !== null && g.$$typeof === t;
}, at.isForwardRef = function(g) {
return k(g) === d;
}, at.isFragment = function(g) {
return k(g) === r;
}, at.isLazy = function(g) {
return k(g) === E;
}, at.isMemo = function(g) {
return k(g) === v;
}, at.isPortal = function(g) {
return k(g) === o;
}, at.isProfiler = function(g) {
return k(g) === a;
}, at.isStrictMode = function(g) {
return k(g) === i;
}, at.isSuspense = function(g) {
return k(g) === f;
}, at.isValidElementType = function(g) {
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === a || g === i || g === f || g === m || typeof g == "object" && g !== null && (g.$$typeof === E || g.$$typeof === v || g.$$typeof === s || g.$$typeof === l || g.$$typeof === d || g.$$typeof === C || g.$$typeof === N || g.$$typeof === $ || g.$$typeof === x);
}, at.typeOf = k, at;
}
var it = {};
/** @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 Ss;
function yp() {
return Ss || (Ss = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
function k(Y) {
return typeof Y == "string" || typeof Y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
Y === r || Y === u || Y === a || Y === i || Y === f || Y === m || typeof Y == "object" && Y !== null && (Y.$$typeof === E || Y.$$typeof === v || Y.$$typeof === s || Y.$$typeof === l || Y.$$typeof === d || Y.$$typeof === C || Y.$$typeof === N || Y.$$typeof === $ || Y.$$typeof === x);
}
function p(Y) {
if (typeof Y == "object" && Y !== null) {
var $e = Y.$$typeof;
switch ($e) {
case t:
var be = Y.type;
switch (be) {
case c:
case u:
case r:
case a:
case i:
case f:
return be;
default:
var xe = be && be.$$typeof;
switch (xe) {
case l:
case d:
case E:
case v:
case s:
return xe;
default:
return $e;
}
}
case o:
return $e;
}
}
}
var g = c, P = u, I = l, V = s, R = t, _ = d, D = r, ee = E, M = v, K = o, H = a, A = i, ae = f, fe = !1;
function ce(Y) {
return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(Y) || p(Y) === c;
}
function L(Y) {
return p(Y) === u;
}
function Z(Y) {
return p(Y) === l;
}
function oe(Y) {
return p(Y) === s;
}
function ue(Y) {
return typeof Y == "object" && Y !== null && Y.$$typeof === t;
}
function ie(Y) {
return p(Y) === d;
}
function he(Y) {
return p(Y) === r;
}
function ne(Y) {
return p(Y) === E;
}
function le(Y) {
return p(Y) === v;
}
function se(Y) {
return p(Y) === o;
}
function de(Y) {
return p(Y) === a;
}
function ye(Y) {
return p(Y) === i;
}
function me(Y) {
return p(Y) === f;
}
it.AsyncMode = g, it.ConcurrentMode = P, it.ContextConsumer = I, it.ContextProvider = V, it.Element = R, it.ForwardRef = _, it.Fragment = D, it.Lazy = ee, it.Memo = M, it.Portal = K, it.Profiler = H, it.StrictMode = A, it.Suspense = ae, it.isAsyncMode = ce, it.isConcurrentMode = L, it.isContextConsumer = Z, it.isContextProvider = oe, it.isElement = ue, it.isForwardRef = ie, it.isFragment = he, it.isLazy = ne, it.isMemo = le, it.isPortal = se, it.isProfiler = de, it.isStrictMode = ye, it.isSuspense = me, it.isValidElementType = k, it.typeOf = p;
}()), it;
}
var ws;
function hc() {
return ws || (ws = 1, function(e) {
process.env.NODE_ENV === "production" ? e.exports = gp() : e.exports = yp();
}(vp)), Fo;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Ia, Ts;
function xp() {
if (Ts)
return Ia;
Ts = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
function r(a) {
if (a == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(a);
}
function i() {
try {
if (!Object.assign)
return !1;
var a = new String("abc");
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
return !1;
for (var s = {}, l = 0; l < 10; l++)
s["_" + String.fromCharCode(l)] = l;
var c = Object.getOwnPropertyNames(s).map(function(d) {
return s[d];
});
if (c.join("") !== "0123456789")
return !1;
var u = {};
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
u[d] = d;
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Ia = i() ? Object.assign : function(a, s) {
for (var l, c = r(a), u, d = 1; d < arguments.length; d++) {
l = Object(arguments[d]);
for (var f in l)
t.call(l, f) && (c[f] = l[f]);
if (e) {
u = e(l);
for (var m = 0; m < u.length; m++)
o.call(l, u[m]) && (c[u[m]] = l[u[m]]);
}
}
return c;
}, Ia;
}
var Na, Rs;
function Ei() {
if (Rs)
return Na;
Rs = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Na = e, Na;
}
var Ma, Ps;
function vc() {
return Ps || (Ps = 1, Ma = Function.call.bind(Object.prototype.hasOwnProperty)), Ma;
}
var ja, $s;
function Ep() {
if ($s)
return ja;
$s = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = Ei(), o = {}, r = vc();
e = function(a) {
var s = "Warning: " + a;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function i(a, s, l, c, u) {
if (process.env.NODE_ENV !== "production") {
for (var d in a)
if (r(a, d)) {
var f;
try {
if (typeof a[d] != "function") {
var m = Error(
(c || "React class") + ": " + l + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw m.name = "Invariant Violation", m;
}
f = a[d](s, d, c, l, null, t);
} catch (E) {
f = E;
}
if (f && !(f instanceof Error) && e(
(c || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), f instanceof Error && !(f.message in o)) {
o[f.message] = !0;
var v = u ? u() : "";
e(
"Failed " + l + " type: " + f.message + (v ?? "")
);
}
}
}
}
return i.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (o = {});
}, ja = i, ja;
}
var Aa, ks;
function Op() {
if (ks)
return Aa;
ks = 1;
var e = hc(), t = xp(), o = Ei(), r = vc(), i = Ep(), a = function() {
};
process.env.NODE_ENV !== "production" && (a = function(l) {
var c = "Warning: " + l;
typeof console < "u" && console.error(c);
try {
throw new Error(c);
} catch {
}
});
function s() {
return null;
}
return Aa = function(l, c) {
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
function f(L) {
var Z = L && (u && L[u] || L[d]);
if (typeof Z == "function")
return Z;
}
var m = "<<anonymous>>", v = {
array: N("array"),
bigint: N("bigint"),
bool: N("boolean"),
func: N("function"),
number: N("number"),
object: N("object"),
string: N("string"),
symbol: N("symbol"),
any: $(),
arrayOf: k,
element: p(),
elementType: g(),
instanceOf: P,
node: _(),
objectOf: V,
oneOf: I,
oneOfType: R,
shape: ee,
exact: M
};
function E(L, Z) {
return L === Z ? L !== 0 || 1 / L === 1 / Z : L !== L && Z !== Z;
}
function x(L, Z) {
this.message = L, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
}
x.prototype = Error.prototype;
function C(L) {
if (process.env.NODE_ENV !== "production")
var Z = {}, oe = 0;
function ue(he, ne, le, se, de, ye, me) {
if (se = se || m, ye = ye || le, me !== o) {
if (c) {
var Y = 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 Y.name = "Invariant Violation", Y;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var $e = se + ":" + le;
!Z[$e] && // Avoid spamming the console because they are often not actionable except for lib authors
oe < 3 && (a(
"You are manually calling a React.PropTypes validation function for the `" + ye + "` prop on `" + se + "`. 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."
), Z[$e] = !0, oe++);
}
}
return ne[le] == null ? he ? ne[le] === null ? new x("The " + de + " `" + ye + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new x("The " + de + " `" + ye + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : L(ne, le, se, de, ye);
}
var ie = ue.bind(null, !1);
return ie.isRequired = ue.bind(null, !0), ie;
}
function N(L) {
function Z(oe, ue, ie, he, ne, le) {
var se = oe[ue], de = A(se);
if (de !== L) {
var ye = ae(se);
return new x(
"Invalid " + he + " `" + ne + "` of type " + ("`" + ye + "` supplied to `" + ie + "`, expected ") + ("`" + L + "`."),
{ expectedType: L }
);
}
return null;
}
return C(Z);
}
function $() {
return C(s);
}
function k(L) {
function Z(oe, ue, ie, he, ne) {
if (typeof L != "function")
return new x("Property `" + ne + "` of component `" + ie + "` has invalid PropType notation inside arrayOf.");
var le = oe[ue];
if (!Array.isArray(le)) {
var se = A(le);
return new x("Invalid " + he + " `" + ne + "` of type " + ("`" + se + "` supplied to `" + ie + "`, expected an array."));
}
for (var de = 0; de < le.length; de++) {
var ye = L(le, de, ie, he, ne + "[" + de + "]", o);
if (ye instanceof Error)
return ye;
}
return null;
}
return C(Z);
}
function p() {
function L(Z, oe, ue, ie, he) {
var ne = Z[oe];
if (!l(ne)) {
var le = A(ne);
return new x("Invalid " + ie + " `" + he + "` of type " + ("`" + le + "` supplied to `" + ue + "`, expected a single ReactElement."));
}
return null;
}
return C(L);
}
function g() {
function L(Z, oe, ue, ie, he) {
var ne = Z[oe];
if (!e.isValidElementType(ne)) {
var le = A(ne);
return new x("Invalid " + ie + " `" + he + "` of type " + ("`" + le + "` supplied to `" + ue + "`, expected a single ReactElement type."));
}
return null;
}
return C(L);
}
function P(L) {
function Z(oe, ue, ie, he, ne) {
if (!(oe[ue] instanceof L)) {
var le = L.name || m, se = ce(oe[ue]);
return new x("Invalid " + he + " `" + ne + "` of type " + ("`" + se + "` supplied to `" + ie + "`, expected ") + ("instance of `" + le + "`."));
}
return null;
}
return C(Z);
}
function I(L) {
if (!Array.isArray(L))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
"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])."
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
function Z(oe, ue, ie, he, ne) {
for (var le = oe[ue], se = 0; se < L.length; se++)
if (E(le, L[se]))
return null;
var de = JSON.stringify(L, function(me, Y) {
var $e = ae(Y);
return $e === "symbol" ? String(Y) : Y;
});
return new x("Invalid " + he + " `" + ne + "` of value `" + String(le) + "` " + ("supplied to `" + ie + "`, expected one of " + de + "."));
}
return C(Z);
}
function V(L) {
function Z(oe, ue, ie, he, ne) {
if (typeof L != "function")
return new x("Property `" + ne + "` of component `" + ie + "` has invalid PropType notation inside objectOf.");
var le = oe[ue], se = A(le);
if (se !== "object")
return new x("Invalid " + he + " `" + ne + "` of type " + ("`" + se + "` supplied to `" + ie + "`, expected an object."));
for (var de in le)
if (r(le, de)) {
var ye = L(le, de, ie, he, ne + "." + de, o);
if (ye instanceof Error)
return ye;
}
return null;
}
return C(Z);
}
function R(L) {
if (!Array.isArray(L))
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var Z = 0; Z < L.length; Z++) {
var oe = L[Z];
if (typeof oe != "function")
return a(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(oe) + " at index " + Z + "."
), s;
}
function ue(ie, he, ne, le, se) {
for (var de = [], ye = 0; ye < L.length; ye++) {
var me = L[ye], Y = me(ie, he, ne, le, se, o);
if (Y == null)
return null;
Y.data && r(Y.data, "expectedType") && de.push(Y.data.expectedType);
}
var $e = de.length > 0 ? ", expected one of type [" + de.join(", ") + "]" : "";
return new x("Invalid " + le + " `" + se + "` supplied to " + ("`" + ne + "`" + $e + "."));
}
return C(ue);
}
function _() {
function L(Z, oe, ue, ie, he) {
return K(Z[oe]) ? null : new x("Invalid " + ie + " `" + he + "` supplied to " + ("`" + ue + "`, expected a ReactNode."));
}
return C(L);
}
function D(L, Z, oe, ue, ie) {
return new x(
(L || "React class") + ": " + Z + " type `" + oe + "." + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ie + "`."
);
}
function ee(L) {
function Z(oe, ue, ie, he, ne) {
var le = oe[ue], se = A(le);
if (se !== "object")
return new x("Invalid " + he + " `" + ne + "` of type `" + se + "` " + ("supplied to `" + ie + "`, expected `object`."));
for (var de in L) {
var ye = L[de];
if (typeof ye != "function")
return D(ie, he, ne, de, ae(ye));
var me = ye(le, de, ie, he, ne + "." + de, o);
if (me)
return me;
}
return null;
}
return C(Z);
}
function M(L) {
function Z(oe, ue, ie, he, ne) {
var le = oe[ue], se = A(le);
if (se !== "object")
return new x("Invalid " + he + " `" + ne + "` of type `" + se + "` " + ("supplied to `" + ie + "`, expected `object`."));
var de = t({}, oe[ue], L);
for (var ye in de) {
var me = L[ye];
if (r(L, ye) && typeof me != "function")
return D(ie, he, ne, ye, ae(me));
if (!me)
return new x(
"Invalid " + he + " `" + ne + "` key `" + ye + "` supplied to `" + ie + "`.\nBad object: " + JSON.stringify(oe[ue], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
);
var Y = me(le, ye, ie, he, ne + "." + ye, o);
if (Y)
return Y;
}
return null;
}
return C(Z);
}
function K(L) {
switch (typeof L) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !L;
case "object":
if (Array.isArray(L))
return L.every(K);
if (L === null || l(L))
return !0;
var Z = f(L);
if (Z) {
var oe = Z.call(L), ue;
if (Z !== L.entries) {
for (; !(ue = oe.next()).done; )
if (!K(ue.value))
return !1;
} else
for (; !(ue = oe.next()).done; ) {
var ie = ue.value;
if (ie && !K(ie[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function H(L, Z) {
return L === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
}
function A(L) {
var Z = typeof L;
return Array.isArray(L) ? "array" : L instanceof RegExp ? "object" : H(Z, L) ? "symbol" : Z;
}
function ae(L) {
if (typeof L > "u" || L === null)
return "" + L;
var Z = A(L);
if (Z === "object") {
if (L instanceof Date)
return "date";
if (L instanceof RegExp)
return "regexp";
}
return Z;
}
function fe(L) {
var Z = ae(L);
switch (Z) {
case "array":
case "object":
return "an " + Z;
case "boolean":
case "date":
case "regexp":
return "a " + Z;
default:
return Z;
}
}
function ce(L) {
return !L.constructor || !L.constructor.name ? m : L.constructor.name;
}
return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
}, Aa;
}
var Da, _s;
function Cp() {
if (_s)
return Da;
_s = 1;
var e = Ei();
function t() {
}
function o() {
}
return o.resetWarningCache = t, Da = function() {
function r(s, l, c, u, d, f) {
if (f !== e) {
var m = 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 m.name = "Invariant Violation", m;
}
}
r.isRequired = r;
function i() {
return r;
}
var a = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: i,
element: r,
elementType: r,
instanceOf: i,
node: r,
objectOf: i,
oneOf: i,
oneOfT