dropdown_react_aqdas
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -1,7 +0,7 @@ | ||
import vr, { useState as er, useEffect as Wr, StrictMode as qr } from "react"; | ||
import Lr from "react-dom"; | ||
function Ur(a) { | ||
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a; | ||
import vr, { useState as Qe, StrictMode as Wr } from "react"; | ||
import qr from "react-dom"; | ||
function Lr(i) { | ||
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i; | ||
} | ||
var Fe = { exports: {} }, ge = {}; | ||
var Me = { exports: {} }, me = {}; | ||
/** | ||
@@ -16,17 +16,17 @@ * @license React | ||
*/ | ||
var rr; | ||
function Nr() { | ||
if (rr) return ge; | ||
rr = 1; | ||
var a = vr, $ = Symbol.for("react.element"), j = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function C(v, y, R) { | ||
var c, u = {}, w = null, D = null; | ||
R !== void 0 && (w = "" + R), y.key !== void 0 && (w = "" + y.key), y.ref !== void 0 && (D = y.ref); | ||
for (c in y) l.call(y, c) && !d.hasOwnProperty(c) && (u[c] = y[c]); | ||
if (v && v.defaultProps) for (c in y = v.defaultProps, y) u[c] === void 0 && (u[c] = y[c]); | ||
return { $$typeof: $, type: v, key: w, ref: D, props: u, _owner: O.current }; | ||
var er; | ||
function Ur() { | ||
if (er) return me; | ||
er = 1; | ||
var i = vr, D = Symbol.for("react.element"), I = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, C = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function w(d, b, O) { | ||
var c, m = {}, k = null, F = null; | ||
O !== void 0 && (k = "" + O), b.key !== void 0 && (k = "" + b.key), b.ref !== void 0 && (F = b.ref); | ||
for (c in b) l.call(b, c) && !f.hasOwnProperty(c) && (m[c] = b[c]); | ||
if (d && d.defaultProps) for (c in b = d.defaultProps, b) m[c] === void 0 && (m[c] = b[c]); | ||
return { $$typeof: D, type: d, key: k, ref: F, props: m, _owner: C.current }; | ||
} | ||
return ge.Fragment = j, ge.jsx = C, ge.jsxs = C, ge; | ||
return me.Fragment = I, me.jsx = w, me.jsxs = w, me; | ||
} | ||
var _e = {}; | ||
var ge = {}; | ||
/** | ||
@@ -41,34 +41,34 @@ * @license React | ||
*/ | ||
var tr; | ||
var rr; | ||
function Vr() { | ||
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var a = vr, $ = Symbol.for("react.element"), j = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), v = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), z = Symbol.iterator, F = "@@iterator"; | ||
function V(e) { | ||
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() { | ||
var i = vr, D = Symbol.for("react.element"), I = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), z = Symbol.iterator, M = "@@iterator"; | ||
function N(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = z && e[z] || e[F]; | ||
var r = z && e[z] || e[M]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var U = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var U = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function Y(e) { | ||
{ | ||
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++) | ||
o[f - 1] = arguments[f]; | ||
N("error", e, o); | ||
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++) | ||
a[s - 1] = arguments[s]; | ||
V("error", e, a); | ||
} | ||
} | ||
function N(e, r, o) { | ||
function V(e, r, a) { | ||
{ | ||
var f = U.ReactDebugCurrentFrame, A = f.getStackAddendum(); | ||
A !== "" && (r += "%s", o = o.concat([A])); | ||
var M = o.map(function(P) { | ||
return String(P); | ||
var s = U.ReactDebugCurrentFrame, x = s.getStackAddendum(); | ||
x !== "" && (r += "%s", a = a.concat([x])); | ||
var $ = a.map(function(S) { | ||
return String(S); | ||
}); | ||
M.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, M); | ||
$.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, $); | ||
} | ||
} | ||
var q = !1, i = !1, te = !1, ye = !1, be = !1, ue; | ||
var q = !1, o = !1, re = !1, pe = !1, ye = !1, ue; | ||
ue = Symbol.for("react.module.reference"); | ||
function he(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === l || e === d || be || e === O || e === R || e === c || ye || e === D || q || i || te || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === u || e.$$typeof === C || e.$$typeof === v || e.$$typeof === y || // This needs to include all possible module reference object | ||
function be(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === l || e === f || ye || e === C || e === O || e === c || pe || e === F || q || o || re || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === m || e.$$typeof === w || e.$$typeof === d || e.$$typeof === b || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -79,8 +79,8 @@ // we don't know which Flight build this will end up being used | ||
} | ||
function ce(e, r, o) { | ||
var f = e.displayName; | ||
if (f) | ||
return f; | ||
var A = r.displayName || r.name || ""; | ||
return A !== "" ? o + "(" + A + ")" : o; | ||
function se(e, r, a) { | ||
var s = e.displayName; | ||
if (s) | ||
return s; | ||
var x = r.displayName || r.name || ""; | ||
return x !== "" ? a + "(" + x + ")" : a; | ||
} | ||
@@ -100,9 +100,9 @@ function fe(e) { | ||
return "Fragment"; | ||
case j: | ||
case I: | ||
return "Portal"; | ||
case d: | ||
case f: | ||
return "Profiler"; | ||
case C: | ||
return "StrictMode"; | ||
case O: | ||
return "StrictMode"; | ||
case R: | ||
return "Suspense"; | ||
@@ -114,17 +114,17 @@ case c: | ||
switch (e.$$typeof) { | ||
case v: | ||
case d: | ||
var r = e; | ||
return fe(r) + ".Consumer"; | ||
case C: | ||
var o = e; | ||
return fe(o._context) + ".Provider"; | ||
case y: | ||
return ce(e, e.render, "ForwardRef"); | ||
case u: | ||
var f = e.displayName || null; | ||
return f !== null ? f : K(e.type) || "Memo"; | ||
case w: { | ||
var A = e, M = A._payload, P = A._init; | ||
case w: | ||
var a = e; | ||
return fe(a._context) + ".Provider"; | ||
case b: | ||
return se(e, e.render, "ForwardRef"); | ||
case m: | ||
var s = e.displayName || null; | ||
return s !== null ? s : K(e.type) || "Memo"; | ||
case k: { | ||
var x = e, $ = x._payload, S = x._init; | ||
try { | ||
return K(P(M)); | ||
return K(S($)); | ||
} catch { | ||
@@ -137,14 +137,14 @@ return null; | ||
} | ||
var G = Object.assign, ne = 0, H, ee, oe, le, t, s, E; | ||
function m() { | ||
var G = Object.assign, te = 0, H, ee, ne, ce, t, u, h; | ||
function E() { | ||
} | ||
m.__reactDisabledLog = !0; | ||
function p() { | ||
E.__reactDisabledLog = !0; | ||
function v() { | ||
{ | ||
if (ne === 0) { | ||
H = console.log, ee = console.info, oe = console.warn, le = console.error, t = console.group, s = console.groupCollapsed, E = console.groupEnd; | ||
if (te === 0) { | ||
H = console.log, ee = console.info, ne = console.warn, ce = console.error, t = console.group, u = console.groupCollapsed, h = console.groupEnd; | ||
var e = { | ||
configurable: !0, | ||
enumerable: !0, | ||
value: m, | ||
value: E, | ||
writable: !0 | ||
@@ -162,8 +162,8 @@ }; | ||
} | ||
ne++; | ||
te++; | ||
} | ||
} | ||
function S() { | ||
function R() { | ||
{ | ||
if (ne--, ne === 0) { | ||
if (te--, te === 0) { | ||
var e = { | ||
@@ -182,6 +182,6 @@ configurable: !0, | ||
warn: G({}, e, { | ||
value: oe | ||
value: ne | ||
}), | ||
error: G({}, e, { | ||
value: le | ||
value: ce | ||
}), | ||
@@ -192,27 +192,27 @@ group: G({}, e, { | ||
groupCollapsed: G({}, e, { | ||
value: s | ||
value: u | ||
}), | ||
groupEnd: G({}, e, { | ||
value: E | ||
value: h | ||
}) | ||
}); | ||
} | ||
ne < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
te < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var b = U.ReactCurrentDispatcher, h; | ||
function g(e, r, o) { | ||
var p = U.ReactCurrentDispatcher, y; | ||
function g(e, r, a) { | ||
{ | ||
if (h === void 0) | ||
if (y === void 0) | ||
try { | ||
throw Error(); | ||
} catch (A) { | ||
var f = A.stack.trim().match(/\n( *(at )?)/); | ||
h = f && f[1] || ""; | ||
} catch (x) { | ||
var s = x.stack.trim().match(/\n( *(at )?)/); | ||
y = s && s[1] || ""; | ||
} | ||
return ` | ||
` + h + e; | ||
` + y + e; | ||
} | ||
} | ||
var x = !1, _; | ||
var P = !1, _; | ||
{ | ||
@@ -223,21 +223,21 @@ var B = typeof WeakMap == "function" ? WeakMap : Map; | ||
function n(e, r) { | ||
if (!e || x) | ||
if (!e || P) | ||
return ""; | ||
{ | ||
var o = _.get(e); | ||
if (o !== void 0) | ||
return o; | ||
var a = _.get(e); | ||
if (a !== void 0) | ||
return a; | ||
} | ||
var f; | ||
x = !0; | ||
var A = Error.prepareStackTrace; | ||
var s; | ||
P = !0; | ||
var x = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var M; | ||
M = b.current, b.current = null, p(); | ||
var $; | ||
$ = p.current, p.current = null, v(); | ||
try { | ||
if (r) { | ||
var P = function() { | ||
var S = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(P.prototype, "props", { | ||
if (Object.defineProperty(S.prototype, "props", { | ||
set: function() { | ||
@@ -248,14 +248,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(P, []); | ||
Reflect.construct(S, []); | ||
} catch (X) { | ||
f = X; | ||
s = X; | ||
} | ||
Reflect.construct(e, [], P); | ||
Reflect.construct(e, [], S); | ||
} else { | ||
try { | ||
P.call(); | ||
S.call(); | ||
} catch (X) { | ||
f = X; | ||
s = X; | ||
} | ||
e.call(P.prototype); | ||
e.call(S.prototype); | ||
} | ||
@@ -266,3 +266,3 @@ } else { | ||
} catch (X) { | ||
f = X; | ||
s = X; | ||
} | ||
@@ -272,5 +272,5 @@ e(); | ||
} catch (X) { | ||
if (X && f && typeof X.stack == "string") { | ||
if (X && s && typeof X.stack == "string") { | ||
for (var T = X.stack.split(` | ||
`), J = f.stack.split(` | ||
`), J = s.stack.split(` | ||
`), W = T.length - 1, L = J.length - 1; W >= 1 && L >= 0 && T[W] !== J[L]; ) | ||
@@ -292,23 +292,23 @@ L--; | ||
} finally { | ||
x = !1, b.current = M, S(), Error.prepareStackTrace = A; | ||
P = !1, p.current = $, R(), Error.prepareStackTrace = x; | ||
} | ||
var pe = e ? e.displayName || e.name : "", ie = pe ? g(pe) : ""; | ||
return typeof e == "function" && _.set(e, ie), ie; | ||
var ve = e ? e.displayName || e.name : "", oe = ve ? g(ve) : ""; | ||
return typeof e == "function" && _.set(e, oe), oe; | ||
} | ||
function Z(e, r, o) { | ||
function Z(e, r, a) { | ||
return n(e, !1); | ||
} | ||
function de(e) { | ||
function le(e) { | ||
var r = e.prototype; | ||
return !!(r && r.isReactComponent); | ||
} | ||
function ae(e, r, o) { | ||
function ae(e, r, a) { | ||
if (e == null) | ||
return ""; | ||
if (typeof e == "function") | ||
return n(e, de(e)); | ||
return n(e, le(e)); | ||
if (typeof e == "string") | ||
return g(e); | ||
switch (e) { | ||
case R: | ||
case O: | ||
return g("Suspense"); | ||
@@ -320,10 +320,10 @@ case c: | ||
switch (e.$$typeof) { | ||
case y: | ||
case b: | ||
return Z(e.render); | ||
case u: | ||
return ae(e.type, r, o); | ||
case w: { | ||
var f = e, A = f._payload, M = f._init; | ||
case m: | ||
return ae(e.type, r, a); | ||
case k: { | ||
var s = e, x = s._payload, $ = s._init; | ||
try { | ||
return ae(M(A), r, o); | ||
return ae($(x), r, a); | ||
} catch { | ||
@@ -335,37 +335,37 @@ } | ||
} | ||
var me = Object.prototype.hasOwnProperty, Le = {}, Ue = U.ReactDebugCurrentFrame; | ||
function Te(e) { | ||
var Ee = Object.prototype.hasOwnProperty, qe = {}, Le = U.ReactDebugCurrentFrame; | ||
function _e(e) { | ||
if (e) { | ||
var r = e._owner, o = ae(e.type, e._source, r ? r.type : null); | ||
Ue.setExtraStackFrame(o); | ||
var r = e._owner, a = ae(e.type, e._source, r ? r.type : null); | ||
Le.setExtraStackFrame(a); | ||
} else | ||
Ue.setExtraStackFrame(null); | ||
Le.setExtraStackFrame(null); | ||
} | ||
function hr(e, r, o, f, A) { | ||
function Er(e, r, a, s, x) { | ||
{ | ||
var M = Function.call.bind(me); | ||
for (var P in e) | ||
if (M(e, P)) { | ||
var $ = Function.call.bind(Ee); | ||
for (var S in e) | ||
if ($(e, S)) { | ||
var T = void 0; | ||
try { | ||
if (typeof e[P] != "function") { | ||
var J = Error((f || "React class") + ": " + o + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
if (typeof e[S] != "function") { | ||
var J = Error((s || "React class") + ": " + a + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw J.name = "Invariant Violation", J; | ||
} | ||
T = e[P](r, P, f, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
T = e[S](r, S, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (W) { | ||
T = W; | ||
} | ||
T && !(T instanceof Error) && (Te(A), Y("%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).", f || "React class", o, P, typeof T), Te(null)), T instanceof Error && !(T.message in Le) && (Le[T.message] = !0, Te(A), Y("Failed %s type: %s", o, T.message), Te(null)); | ||
T && !(T instanceof Error) && (_e(x), Y("%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).", s || "React class", a, S, typeof T), _e(null)), T instanceof Error && !(T.message in qe) && (qe[T.message] = !0, _e(x), Y("Failed %s type: %s", a, T.message), _e(null)); | ||
} | ||
} | ||
} | ||
var mr = Array.isArray; | ||
var hr = Array.isArray; | ||
function Se(e) { | ||
return mr(e); | ||
return hr(e); | ||
} | ||
function Er(e) { | ||
function mr(e) { | ||
{ | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return o; | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return a; | ||
} | ||
@@ -375,3 +375,3 @@ } | ||
try { | ||
return Ne(e), !1; | ||
return Ue(e), !1; | ||
} catch { | ||
@@ -381,3 +381,3 @@ return !0; | ||
} | ||
function Ne(e) { | ||
function Ue(e) { | ||
return "" + e; | ||
@@ -387,5 +387,5 @@ } | ||
if (gr(e)) | ||
return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Er(e)), Ne(e); | ||
return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(e)), Ue(e); | ||
} | ||
var Ee = U.ReactCurrentOwner, _r = { | ||
var he = U.ReactCurrentOwner, _r = { | ||
key: !0, | ||
@@ -395,6 +395,6 @@ ref: !0, | ||
__source: !0 | ||
}, ze, Be, Pe; | ||
Pe = {}; | ||
}, Ne, ze, Oe; | ||
Oe = {}; | ||
function Tr(e) { | ||
if (me.call(e, "ref")) { | ||
if (Ee.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
@@ -407,3 +407,3 @@ if (r && r.isReactWarning) | ||
function Rr(e) { | ||
if (me.call(e, "key")) { | ||
if (Ee.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
@@ -415,15 +415,15 @@ if (r && r.isReactWarning) | ||
} | ||
function Or(e, r) { | ||
if (typeof e.ref == "string" && Ee.current && r && Ee.current.stateNode !== r) { | ||
var o = K(Ee.current.type); | ||
Pe[o] || (Y('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', K(Ee.current.type), e.ref), Pe[o] = !0); | ||
function Sr(e, r) { | ||
if (typeof e.ref == "string" && he.current && r && he.current.stateNode !== r) { | ||
var a = K(he.current.type); | ||
Oe[a] || (Y('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', K(he.current.type), e.ref), Oe[a] = !0); | ||
} | ||
} | ||
function Sr(e, r) { | ||
function Or(e, r) { | ||
{ | ||
var o = function() { | ||
ze || (ze = !0, Y("%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)", r)); | ||
var a = function() { | ||
Ne || (Ne = !0, Y("%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)", r)); | ||
}; | ||
o.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: o, | ||
a.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: a, | ||
configurable: !0 | ||
@@ -435,7 +435,7 @@ }); | ||
{ | ||
var o = function() { | ||
Be || (Be = !0, Y("%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)", r)); | ||
var a = function() { | ||
ze || (ze = !0, Y("%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)", r)); | ||
}; | ||
o.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: o, | ||
a.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: a, | ||
configurable: !0 | ||
@@ -445,13 +445,13 @@ }); | ||
} | ||
var Cr = function(e, r, o, f, A, M, P) { | ||
var Cr = function(e, r, a, s, x, $, S) { | ||
var T = { | ||
// This tag allows us to uniquely identify this as a React Element | ||
$$typeof: $, | ||
$$typeof: D, | ||
// Built-in properties that belong on the element | ||
type: e, | ||
key: r, | ||
ref: o, | ||
props: P, | ||
ref: a, | ||
props: S, | ||
// Record the component responsible for creating this element. | ||
_owner: M | ||
_owner: $ | ||
}; | ||
@@ -467,3 +467,3 @@ return T._store = {}, Object.defineProperty(T._store, "validated", { | ||
writable: !1, | ||
value: f | ||
value: s | ||
}), Object.defineProperty(T, "_source", { | ||
@@ -473,40 +473,40 @@ configurable: !1, | ||
writable: !1, | ||
value: A | ||
value: x | ||
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T; | ||
}; | ||
function wr(e, r, o, f, A) { | ||
function wr(e, r, a, s, x) { | ||
{ | ||
var M, P = {}, T = null, J = null; | ||
o !== void 0 && (Ve(o), T = "" + o), Rr(r) && (Ve(r.key), T = "" + r.key), Tr(r) && (J = r.ref, Or(r, A)); | ||
for (M in r) | ||
me.call(r, M) && !_r.hasOwnProperty(M) && (P[M] = r[M]); | ||
var $, S = {}, T = null, J = null; | ||
a !== void 0 && (Ve(a), T = "" + a), Rr(r) && (Ve(r.key), T = "" + r.key), Tr(r) && (J = r.ref, Sr(r, x)); | ||
for ($ in r) | ||
Ee.call(r, $) && !_r.hasOwnProperty($) && (S[$] = r[$]); | ||
if (e && e.defaultProps) { | ||
var W = e.defaultProps; | ||
for (M in W) | ||
P[M] === void 0 && (P[M] = W[M]); | ||
for ($ in W) | ||
S[$] === void 0 && (S[$] = W[$]); | ||
} | ||
if (T || J) { | ||
var L = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
T && Sr(P, L), J && Pr(P, L); | ||
T && Or(S, L), J && Pr(S, L); | ||
} | ||
return Cr(e, T, J, A, f, Ee.current, P); | ||
return Cr(e, T, J, x, s, he.current, S); | ||
} | ||
} | ||
var Ce = U.ReactCurrentOwner, Je = U.ReactDebugCurrentFrame; | ||
function ve(e) { | ||
var Pe = U.ReactCurrentOwner, Be = U.ReactDebugCurrentFrame; | ||
function de(e) { | ||
if (e) { | ||
var r = e._owner, o = ae(e.type, e._source, r ? r.type : null); | ||
Je.setExtraStackFrame(o); | ||
var r = e._owner, a = ae(e.type, e._source, r ? r.type : null); | ||
Be.setExtraStackFrame(a); | ||
} else | ||
Je.setExtraStackFrame(null); | ||
Be.setExtraStackFrame(null); | ||
} | ||
var we; | ||
we = !1; | ||
function xe(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === $; | ||
var Ce; | ||
Ce = !1; | ||
function we(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === D; | ||
} | ||
function Ke() { | ||
function Je() { | ||
{ | ||
if (Ce.current) { | ||
var e = K(Ce.current.type); | ||
if (Pe.current) { | ||
var e = K(Pe.current.type); | ||
if (e) | ||
@@ -523,11 +523,11 @@ return ` | ||
} | ||
var Ge = {}; | ||
var Ke = {}; | ||
function jr(e) { | ||
{ | ||
var r = Ke(); | ||
var r = Je(); | ||
if (!r) { | ||
var o = typeof e == "string" ? e : e.displayName || e.name; | ||
o && (r = ` | ||
var a = typeof e == "string" ? e : e.displayName || e.name; | ||
a && (r = ` | ||
Check the top-level render call using <` + o + ">."); | ||
Check the top-level render call using <` + a + ">."); | ||
} | ||
@@ -537,3 +537,3 @@ return r; | ||
} | ||
function Xe(e, r) { | ||
function Ge(e, r) { | ||
{ | ||
@@ -543,11 +543,11 @@ if (!e._store || e._store.validated || e.key != null) | ||
e._store.validated = !0; | ||
var o = jr(r); | ||
if (Ge[o]) | ||
var a = jr(r); | ||
if (Ke[a]) | ||
return; | ||
Ge[o] = !0; | ||
var f = ""; | ||
e && e._owner && e._owner !== Ce.current && (f = " It was passed a child from " + K(e._owner.type) + "."), ve(e), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, f), ve(null); | ||
Ke[a] = !0; | ||
var s = ""; | ||
e && e._owner && e._owner !== Pe.current && (s = " It was passed a child from " + K(e._owner.type) + "."), de(e), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), de(null); | ||
} | ||
} | ||
function He(e, r) { | ||
function Xe(e, r) { | ||
{ | ||
@@ -557,13 +557,13 @@ if (typeof e != "object") | ||
if (Se(e)) | ||
for (var o = 0; o < e.length; o++) { | ||
var f = e[o]; | ||
xe(f) && Xe(f, r); | ||
for (var a = 0; a < e.length; a++) { | ||
var s = e[a]; | ||
we(s) && Ge(s, r); | ||
} | ||
else if (xe(e)) | ||
else if (we(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var A = V(e); | ||
if (typeof A == "function" && A !== e.entries) | ||
for (var M = A.call(e), P; !(P = M.next()).done; ) | ||
xe(P.value) && Xe(P.value, r); | ||
var x = N(e); | ||
if (typeof x == "function" && x !== e.entries) | ||
for (var $ = x.call(e), S; !(S = $.next()).done; ) | ||
we(S.value) && Ge(S.value, r); | ||
} | ||
@@ -577,18 +577,18 @@ } | ||
return; | ||
var o; | ||
var a; | ||
if (typeof r == "function") | ||
o = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here. | ||
a = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === b || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === u)) | ||
o = r.propTypes; | ||
r.$$typeof === m)) | ||
a = r.propTypes; | ||
else | ||
return; | ||
if (o) { | ||
var f = K(r); | ||
hr(o, e.props, "prop", f, e); | ||
} else if (r.PropTypes !== void 0 && !we) { | ||
we = !0; | ||
var A = K(r); | ||
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown"); | ||
if (a) { | ||
var s = K(r); | ||
Er(a, e.props, "prop", s, e); | ||
} else if (r.PropTypes !== void 0 && !Ce) { | ||
Ce = !0; | ||
var x = K(r); | ||
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown"); | ||
} | ||
@@ -600,34 +600,34 @@ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
{ | ||
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) { | ||
var f = r[o]; | ||
if (f !== "children" && f !== "key") { | ||
ve(e), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), ve(null); | ||
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) { | ||
var s = r[a]; | ||
if (s !== "children" && s !== "key") { | ||
de(e), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), de(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (ve(e), Y("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null)); | ||
e.ref !== null && (de(e), Y("Invalid attribute `ref` supplied to `React.Fragment`."), de(null)); | ||
} | ||
} | ||
var Ze = {}; | ||
function Qe(e, r, o, f, A, M) { | ||
var He = {}; | ||
function Ze(e, r, a, s, x, $) { | ||
{ | ||
var P = he(e); | ||
if (!P) { | ||
var S = be(e); | ||
if (!S) { | ||
var T = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (T += " 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 J = xr(); | ||
J ? T += J : T += Ke(); | ||
J ? T += J : T += Je(); | ||
var W; | ||
e === null ? W = "null" : Se(e) ? W = "array" : e !== void 0 && e.$$typeof === $ ? (W = "<" + (K(e.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, T); | ||
e === null ? W = "null" : Se(e) ? W = "array" : e !== void 0 && e.$$typeof === D ? (W = "<" + (K(e.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, T); | ||
} | ||
var L = wr(e, r, o, A, M); | ||
var L = wr(e, r, a, x, $); | ||
if (L == null) | ||
return L; | ||
if (P) { | ||
if (S) { | ||
var Q = r.children; | ||
if (Q !== void 0) | ||
if (f) | ||
if (s) | ||
if (Se(Q)) { | ||
for (var pe = 0; pe < Q.length; pe++) | ||
He(Q[pe], e); | ||
for (var ve = 0; ve < Q.length; ve++) | ||
Xe(Q[ve], e); | ||
Object.freeze && Object.freeze(Q); | ||
@@ -637,9 +637,9 @@ } else | ||
else | ||
He(Q, e); | ||
Xe(Q, e); | ||
} | ||
if (me.call(r, "key")) { | ||
var ie = K(e), X = Object.keys(r).filter(function(Yr) { | ||
if (Ee.call(r, "key")) { | ||
var oe = K(e), X = Object.keys(r).filter(function(Yr) { | ||
return Yr !== "key"; | ||
}), je = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}"; | ||
if (!Ze[ie + je]) { | ||
}), xe = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}"; | ||
if (!He[oe + xe]) { | ||
var Fr = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}"; | ||
@@ -651,3 +651,3 @@ Y(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
<%s key={someKey} {...props} />`, je, ie, Fr, ie), Ze[ie + je] = !0; | ||
<%s key={someKey} {...props} />`, xe, oe, Fr, oe), He[oe + xe] = !0; | ||
} | ||
@@ -658,22 +658,22 @@ } | ||
} | ||
function kr(e, r, o) { | ||
return Qe(e, r, o, !0); | ||
function kr(e, r, a) { | ||
return Ze(e, r, a, !0); | ||
} | ||
function $r(e, r, o) { | ||
return Qe(e, r, o, !1); | ||
function $r(e, r, a) { | ||
return Ze(e, r, a, !1); | ||
} | ||
var Dr = $r, Mr = kr; | ||
_e.Fragment = l, _e.jsx = Dr, _e.jsxs = Mr; | ||
}()), _e; | ||
ge.Fragment = l, ge.jsx = Dr, ge.jsxs = Mr; | ||
}()), ge; | ||
} | ||
process.env.NODE_ENV === "production" ? Fe.exports = Nr() : Fe.exports = Vr(); | ||
var re = Fe.exports, Ye, Re = Lr; | ||
process.env.NODE_ENV === "production" ? Me.exports = Ur() : Me.exports = Vr(); | ||
var tr = Me.exports, Fe, Te = qr; | ||
if (process.env.NODE_ENV === "production") | ||
Ye = Re.createRoot, Re.hydrateRoot; | ||
Fe = Te.createRoot, Te.hydrateRoot; | ||
else { | ||
var nr = Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
Ye = function(a, $) { | ||
var nr = Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
Fe = function(i, D) { | ||
nr.usingClientEntryPoint = !0; | ||
try { | ||
return Re.createRoot(a, $); | ||
return Te.createRoot(i, D); | ||
} finally { | ||
@@ -684,3 +684,3 @@ nr.usingClientEntryPoint = !1; | ||
} | ||
var We = { exports: {} }, Oe = { exports: {} }, I = {}; | ||
var Ye = { exports: {} }, Re = { exports: {} }, j = {}; | ||
/** @license React v16.13.1 | ||
@@ -694,69 +694,69 @@ * react-is.production.min.js | ||
*/ | ||
var or; | ||
function zr() { | ||
if (or) return I; | ||
or = 1; | ||
var a = typeof Symbol == "function" && Symbol.for, $ = a ? Symbol.for("react.element") : 60103, j = a ? Symbol.for("react.portal") : 60106, l = a ? Symbol.for("react.fragment") : 60107, O = a ? Symbol.for("react.strict_mode") : 60108, d = a ? Symbol.for("react.profiler") : 60114, C = a ? Symbol.for("react.provider") : 60109, v = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, R = a ? Symbol.for("react.concurrent_mode") : 60111, c = a ? Symbol.for("react.forward_ref") : 60112, u = a ? Symbol.for("react.suspense") : 60113, w = a ? Symbol.for("react.suspense_list") : 60120, D = a ? Symbol.for("react.memo") : 60115, z = a ? Symbol.for("react.lazy") : 60116, F = a ? Symbol.for("react.block") : 60121, V = a ? Symbol.for("react.fundamental") : 60117, U = a ? Symbol.for("react.responder") : 60118, Y = a ? Symbol.for("react.scope") : 60119; | ||
function N(i) { | ||
if (typeof i == "object" && i !== null) { | ||
var te = i.$$typeof; | ||
switch (te) { | ||
case $: | ||
switch (i = i.type, i) { | ||
case y: | ||
case R: | ||
var ar; | ||
function Nr() { | ||
if (ar) return j; | ||
ar = 1; | ||
var i = typeof Symbol == "function" && Symbol.for, D = i ? Symbol.for("react.element") : 60103, I = i ? Symbol.for("react.portal") : 60106, l = i ? Symbol.for("react.fragment") : 60107, C = i ? Symbol.for("react.strict_mode") : 60108, f = i ? Symbol.for("react.profiler") : 60114, w = i ? Symbol.for("react.provider") : 60109, d = i ? Symbol.for("react.context") : 60110, b = i ? Symbol.for("react.async_mode") : 60111, O = i ? Symbol.for("react.concurrent_mode") : 60111, c = i ? Symbol.for("react.forward_ref") : 60112, m = i ? Symbol.for("react.suspense") : 60113, k = i ? Symbol.for("react.suspense_list") : 60120, F = i ? Symbol.for("react.memo") : 60115, z = i ? Symbol.for("react.lazy") : 60116, M = i ? Symbol.for("react.block") : 60121, N = i ? Symbol.for("react.fundamental") : 60117, U = i ? Symbol.for("react.responder") : 60118, Y = i ? Symbol.for("react.scope") : 60119; | ||
function V(o) { | ||
if (typeof o == "object" && o !== null) { | ||
var re = o.$$typeof; | ||
switch (re) { | ||
case D: | ||
switch (o = o.type, o) { | ||
case b: | ||
case O: | ||
case l: | ||
case d: | ||
case O: | ||
case u: | ||
return i; | ||
case f: | ||
case C: | ||
case m: | ||
return o; | ||
default: | ||
switch (i = i && i.$$typeof, i) { | ||
case v: | ||
switch (o = o && o.$$typeof, o) { | ||
case d: | ||
case c: | ||
case z: | ||
case D: | ||
case C: | ||
return i; | ||
case F: | ||
case w: | ||
return o; | ||
default: | ||
return te; | ||
return re; | ||
} | ||
} | ||
case j: | ||
return te; | ||
case I: | ||
return re; | ||
} | ||
} | ||
} | ||
function q(i) { | ||
return N(i) === R; | ||
function q(o) { | ||
return V(o) === O; | ||
} | ||
return I.AsyncMode = y, I.ConcurrentMode = R, I.ContextConsumer = v, I.ContextProvider = C, I.Element = $, I.ForwardRef = c, I.Fragment = l, I.Lazy = z, I.Memo = D, I.Portal = j, I.Profiler = d, I.StrictMode = O, I.Suspense = u, I.isAsyncMode = function(i) { | ||
return q(i) || N(i) === y; | ||
}, I.isConcurrentMode = q, I.isContextConsumer = function(i) { | ||
return N(i) === v; | ||
}, I.isContextProvider = function(i) { | ||
return N(i) === C; | ||
}, I.isElement = function(i) { | ||
return typeof i == "object" && i !== null && i.$$typeof === $; | ||
}, I.isForwardRef = function(i) { | ||
return N(i) === c; | ||
}, I.isFragment = function(i) { | ||
return N(i) === l; | ||
}, I.isLazy = function(i) { | ||
return N(i) === z; | ||
}, I.isMemo = function(i) { | ||
return N(i) === D; | ||
}, I.isPortal = function(i) { | ||
return N(i) === j; | ||
}, I.isProfiler = function(i) { | ||
return N(i) === d; | ||
}, I.isStrictMode = function(i) { | ||
return N(i) === O; | ||
}, I.isSuspense = function(i) { | ||
return N(i) === u; | ||
}, I.isValidElementType = function(i) { | ||
return typeof i == "string" || typeof i == "function" || i === l || i === R || i === d || i === O || i === u || i === w || typeof i == "object" && i !== null && (i.$$typeof === z || i.$$typeof === D || i.$$typeof === C || i.$$typeof === v || i.$$typeof === c || i.$$typeof === V || i.$$typeof === U || i.$$typeof === Y || i.$$typeof === F); | ||
}, I.typeOf = N, I; | ||
return j.AsyncMode = b, j.ConcurrentMode = O, j.ContextConsumer = d, j.ContextProvider = w, j.Element = D, j.ForwardRef = c, j.Fragment = l, j.Lazy = z, j.Memo = F, j.Portal = I, j.Profiler = f, j.StrictMode = C, j.Suspense = m, j.isAsyncMode = function(o) { | ||
return q(o) || V(o) === b; | ||
}, j.isConcurrentMode = q, j.isContextConsumer = function(o) { | ||
return V(o) === d; | ||
}, j.isContextProvider = function(o) { | ||
return V(o) === w; | ||
}, j.isElement = function(o) { | ||
return typeof o == "object" && o !== null && o.$$typeof === D; | ||
}, j.isForwardRef = function(o) { | ||
return V(o) === c; | ||
}, j.isFragment = function(o) { | ||
return V(o) === l; | ||
}, j.isLazy = function(o) { | ||
return V(o) === z; | ||
}, j.isMemo = function(o) { | ||
return V(o) === F; | ||
}, j.isPortal = function(o) { | ||
return V(o) === I; | ||
}, j.isProfiler = function(o) { | ||
return V(o) === f; | ||
}, j.isStrictMode = function(o) { | ||
return V(o) === C; | ||
}, j.isSuspense = function(o) { | ||
return V(o) === m; | ||
}, j.isValidElementType = function(o) { | ||
return typeof o == "string" || typeof o == "function" || o === l || o === O || o === f || o === C || o === m || o === k || typeof o == "object" && o !== null && (o.$$typeof === z || o.$$typeof === F || o.$$typeof === w || o.$$typeof === d || o.$$typeof === c || o.$$typeof === N || o.$$typeof === U || o.$$typeof === Y || o.$$typeof === M); | ||
}, j.typeOf = V, j; | ||
} | ||
var k = {}; | ||
var A = {}; | ||
/** @license React v16.13.1 | ||
@@ -770,9 +770,9 @@ * react-is.development.js | ||
*/ | ||
var ar; | ||
function Br() { | ||
return ar || (ar = 1, process.env.NODE_ENV !== "production" && function() { | ||
var a = typeof Symbol == "function" && Symbol.for, $ = a ? Symbol.for("react.element") : 60103, j = a ? Symbol.for("react.portal") : 60106, l = a ? Symbol.for("react.fragment") : 60107, O = a ? Symbol.for("react.strict_mode") : 60108, d = a ? Symbol.for("react.profiler") : 60114, C = a ? Symbol.for("react.provider") : 60109, v = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, R = a ? Symbol.for("react.concurrent_mode") : 60111, c = a ? Symbol.for("react.forward_ref") : 60112, u = a ? Symbol.for("react.suspense") : 60113, w = a ? Symbol.for("react.suspense_list") : 60120, D = a ? Symbol.for("react.memo") : 60115, z = a ? Symbol.for("react.lazy") : 60116, F = a ? Symbol.for("react.block") : 60121, V = a ? Symbol.for("react.fundamental") : 60117, U = a ? Symbol.for("react.responder") : 60118, Y = a ? Symbol.for("react.scope") : 60119; | ||
function N(n) { | ||
var or; | ||
function zr() { | ||
return or || (or = 1, process.env.NODE_ENV !== "production" && function() { | ||
var i = typeof Symbol == "function" && Symbol.for, D = i ? Symbol.for("react.element") : 60103, I = i ? Symbol.for("react.portal") : 60106, l = i ? Symbol.for("react.fragment") : 60107, C = i ? Symbol.for("react.strict_mode") : 60108, f = i ? Symbol.for("react.profiler") : 60114, w = i ? Symbol.for("react.provider") : 60109, d = i ? Symbol.for("react.context") : 60110, b = i ? Symbol.for("react.async_mode") : 60111, O = i ? Symbol.for("react.concurrent_mode") : 60111, c = i ? Symbol.for("react.forward_ref") : 60112, m = i ? Symbol.for("react.suspense") : 60113, k = i ? Symbol.for("react.suspense_list") : 60120, F = i ? Symbol.for("react.memo") : 60115, z = i ? Symbol.for("react.lazy") : 60116, M = i ? Symbol.for("react.block") : 60121, N = i ? Symbol.for("react.fundamental") : 60117, U = i ? Symbol.for("react.responder") : 60118, Y = i ? Symbol.for("react.scope") : 60119; | ||
function V(n) { | ||
return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | ||
n === l || n === R || n === d || n === O || n === u || n === w || typeof n == "object" && n !== null && (n.$$typeof === z || n.$$typeof === D || n.$$typeof === C || n.$$typeof === v || n.$$typeof === c || n.$$typeof === V || n.$$typeof === U || n.$$typeof === Y || n.$$typeof === F); | ||
n === l || n === O || n === f || n === C || n === m || n === k || typeof n == "object" && n !== null && (n.$$typeof === z || n.$$typeof === F || n.$$typeof === w || n.$$typeof === d || n.$$typeof === c || n.$$typeof === N || n.$$typeof === U || n.$$typeof === Y || n.$$typeof === M); | ||
} | ||
@@ -783,20 +783,20 @@ function q(n) { | ||
switch (Z) { | ||
case $: | ||
var de = n.type; | ||
switch (de) { | ||
case y: | ||
case R: | ||
case D: | ||
var le = n.type; | ||
switch (le) { | ||
case b: | ||
case O: | ||
case l: | ||
case d: | ||
case O: | ||
case u: | ||
return de; | ||
case f: | ||
case C: | ||
case m: | ||
return le; | ||
default: | ||
var ae = de && de.$$typeof; | ||
var ae = le && le.$$typeof; | ||
switch (ae) { | ||
case v: | ||
case d: | ||
case c: | ||
case z: | ||
case D: | ||
case C: | ||
case F: | ||
case w: | ||
return ae; | ||
@@ -807,3 +807,3 @@ default: | ||
} | ||
case j: | ||
case I: | ||
return Z; | ||
@@ -813,48 +813,48 @@ } | ||
} | ||
var i = y, te = R, ye = v, be = C, ue = $, he = c, ce = l, fe = z, K = D, G = j, ne = d, H = O, ee = u, oe = !1; | ||
function le(n) { | ||
return oe || (oe = !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.")), t(n) || q(n) === y; | ||
var o = b, re = O, pe = d, ye = w, ue = D, be = c, se = l, fe = z, K = F, G = I, te = f, H = C, ee = m, ne = !1; | ||
function ce(n) { | ||
return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(n) || q(n) === b; | ||
} | ||
function t(n) { | ||
return q(n) === R; | ||
return q(n) === O; | ||
} | ||
function s(n) { | ||
return q(n) === v; | ||
function u(n) { | ||
return q(n) === d; | ||
} | ||
function h(n) { | ||
return q(n) === w; | ||
} | ||
function E(n) { | ||
return q(n) === C; | ||
return typeof n == "object" && n !== null && n.$$typeof === D; | ||
} | ||
function m(n) { | ||
return typeof n == "object" && n !== null && n.$$typeof === $; | ||
} | ||
function p(n) { | ||
function v(n) { | ||
return q(n) === c; | ||
} | ||
function S(n) { | ||
function R(n) { | ||
return q(n) === l; | ||
} | ||
function b(n) { | ||
function p(n) { | ||
return q(n) === z; | ||
} | ||
function h(n) { | ||
return q(n) === D; | ||
function y(n) { | ||
return q(n) === F; | ||
} | ||
function g(n) { | ||
return q(n) === j; | ||
return q(n) === I; | ||
} | ||
function x(n) { | ||
return q(n) === d; | ||
function P(n) { | ||
return q(n) === f; | ||
} | ||
function _(n) { | ||
return q(n) === O; | ||
return q(n) === C; | ||
} | ||
function B(n) { | ||
return q(n) === u; | ||
return q(n) === m; | ||
} | ||
k.AsyncMode = i, k.ConcurrentMode = te, k.ContextConsumer = ye, k.ContextProvider = be, k.Element = ue, k.ForwardRef = he, k.Fragment = ce, k.Lazy = fe, k.Memo = K, k.Portal = G, k.Profiler = ne, k.StrictMode = H, k.Suspense = ee, k.isAsyncMode = le, k.isConcurrentMode = t, k.isContextConsumer = s, k.isContextProvider = E, k.isElement = m, k.isForwardRef = p, k.isFragment = S, k.isLazy = b, k.isMemo = h, k.isPortal = g, k.isProfiler = x, k.isStrictMode = _, k.isSuspense = B, k.isValidElementType = N, k.typeOf = q; | ||
}()), k; | ||
A.AsyncMode = o, A.ConcurrentMode = re, A.ContextConsumer = pe, A.ContextProvider = ye, A.Element = ue, A.ForwardRef = be, A.Fragment = se, A.Lazy = fe, A.Memo = K, A.Portal = G, A.Profiler = te, A.StrictMode = H, A.Suspense = ee, A.isAsyncMode = ce, A.isConcurrentMode = t, A.isContextConsumer = u, A.isContextProvider = h, A.isElement = E, A.isForwardRef = v, A.isFragment = R, A.isLazy = p, A.isMemo = y, A.isPortal = g, A.isProfiler = P, A.isStrictMode = _, A.isSuspense = B, A.isValidElementType = V, A.typeOf = q; | ||
}()), A; | ||
} | ||
var ir; | ||
function pr() { | ||
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Oe.exports = zr() : Oe.exports = Br()), Oe.exports; | ||
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Re.exports = Nr() : Re.exports = zr()), Re.exports; | ||
} | ||
@@ -866,30 +866,30 @@ /* | ||
*/ | ||
var Ae, sr; | ||
function Jr() { | ||
if (sr) return Ae; | ||
sr = 1; | ||
var a = Object.getOwnPropertySymbols, $ = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable; | ||
function l(d) { | ||
if (d == null) | ||
var je, ur; | ||
function Br() { | ||
if (ur) return je; | ||
ur = 1; | ||
var i = Object.getOwnPropertySymbols, D = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable; | ||
function l(f) { | ||
if (f == null) | ||
throw new TypeError("Object.assign cannot be called with null or undefined"); | ||
return Object(d); | ||
return Object(f); | ||
} | ||
function O() { | ||
function C() { | ||
try { | ||
if (!Object.assign) | ||
return !1; | ||
var d = new String("abc"); | ||
if (d[5] = "de", Object.getOwnPropertyNames(d)[0] === "5") | ||
var f = new String("abc"); | ||
if (f[5] = "de", Object.getOwnPropertyNames(f)[0] === "5") | ||
return !1; | ||
for (var C = {}, v = 0; v < 10; v++) | ||
C["_" + String.fromCharCode(v)] = v; | ||
var y = Object.getOwnPropertyNames(C).map(function(c) { | ||
return C[c]; | ||
for (var w = {}, d = 0; d < 10; d++) | ||
w["_" + String.fromCharCode(d)] = d; | ||
var b = Object.getOwnPropertyNames(w).map(function(c) { | ||
return w[c]; | ||
}); | ||
if (y.join("") !== "0123456789") | ||
if (b.join("") !== "0123456789") | ||
return !1; | ||
var R = {}; | ||
var O = {}; | ||
return "abcdefghijklmnopqrst".split("").forEach(function(c) { | ||
R[c] = c; | ||
}), Object.keys(Object.assign({}, R)).join("") === "abcdefghijklmnopqrst"; | ||
O[c] = c; | ||
}), Object.keys(Object.assign({}, O)).join("") === "abcdefghijklmnopqrst"; | ||
} catch { | ||
@@ -899,40 +899,40 @@ return !1; | ||
} | ||
return Ae = O() ? Object.assign : function(d, C) { | ||
for (var v, y = l(d), R, c = 1; c < arguments.length; c++) { | ||
v = Object(arguments[c]); | ||
for (var u in v) | ||
$.call(v, u) && (y[u] = v[u]); | ||
if (a) { | ||
R = a(v); | ||
for (var w = 0; w < R.length; w++) | ||
j.call(v, R[w]) && (y[R[w]] = v[R[w]]); | ||
return je = C() ? Object.assign : function(f, w) { | ||
for (var d, b = l(f), O, c = 1; c < arguments.length; c++) { | ||
d = Object(arguments[c]); | ||
for (var m in d) | ||
D.call(d, m) && (b[m] = d[m]); | ||
if (i) { | ||
O = i(d); | ||
for (var k = 0; k < O.length; k++) | ||
I.call(d, O[k]) && (b[O[k]] = d[O[k]]); | ||
} | ||
} | ||
return y; | ||
}, Ae; | ||
return b; | ||
}, je; | ||
} | ||
var Ie, ur; | ||
function qe() { | ||
if (ur) return Ie; | ||
ur = 1; | ||
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | ||
return Ie = a, Ie; | ||
var Ae, sr; | ||
function We() { | ||
if (sr) return Ae; | ||
sr = 1; | ||
var i = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | ||
return Ae = i, Ae; | ||
} | ||
var ke, cr; | ||
var Ie, fr; | ||
function yr() { | ||
return cr || (cr = 1, ke = Function.call.bind(Object.prototype.hasOwnProperty)), ke; | ||
return fr || (fr = 1, Ie = Function.call.bind(Object.prototype.hasOwnProperty)), Ie; | ||
} | ||
var $e, fr; | ||
function Kr() { | ||
if (fr) return $e; | ||
fr = 1; | ||
var a = function() { | ||
var ke, cr; | ||
function Jr() { | ||
if (cr) return ke; | ||
cr = 1; | ||
var i = function() { | ||
}; | ||
if (process.env.NODE_ENV !== "production") { | ||
var $ = qe(), j = {}, l = yr(); | ||
a = function(d) { | ||
var C = "Warning: " + d; | ||
typeof console < "u" && console.error(C); | ||
var D = We(), I = {}, l = yr(); | ||
i = function(f) { | ||
var w = "Warning: " + f; | ||
typeof console < "u" && console.error(w); | ||
try { | ||
throw new Error(C); | ||
throw new Error(w); | ||
} catch { | ||
@@ -942,25 +942,25 @@ } | ||
} | ||
function O(d, C, v, y, R) { | ||
function C(f, w, d, b, O) { | ||
if (process.env.NODE_ENV !== "production") { | ||
for (var c in d) | ||
if (l(d, c)) { | ||
var u; | ||
for (var c in f) | ||
if (l(f, c)) { | ||
var m; | ||
try { | ||
if (typeof d[c] != "function") { | ||
var w = Error( | ||
(y || "React class") + ": " + v + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." | ||
if (typeof f[c] != "function") { | ||
var k = Error( | ||
(b || "React class") + ": " + d + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." | ||
); | ||
throw w.name = "Invariant Violation", w; | ||
throw k.name = "Invariant Violation", k; | ||
} | ||
u = d[c](C, c, y, v, null, $); | ||
m = f[c](w, c, b, d, null, D); | ||
} catch (z) { | ||
u = z; | ||
m = z; | ||
} | ||
if (u && !(u instanceof Error) && a( | ||
(y || "React class") + ": type specification of " + v + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." | ||
), u instanceof Error && !(u.message in j)) { | ||
j[u.message] = !0; | ||
var D = R ? R() : ""; | ||
a( | ||
"Failed " + v + " type: " + u.message + (D ?? "") | ||
if (m && !(m instanceof Error) && i( | ||
(b || "React class") + ": type specification of " + d + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." | ||
), m instanceof Error && !(m.message in I)) { | ||
I[m.message] = !0; | ||
var F = O ? O() : ""; | ||
i( | ||
"Failed " + d + " type: " + m.message + (F ?? "") | ||
); | ||
@@ -971,31 +971,31 @@ } | ||
} | ||
return O.resetWarningCache = function() { | ||
process.env.NODE_ENV !== "production" && (j = {}); | ||
}, $e = O, $e; | ||
return C.resetWarningCache = function() { | ||
process.env.NODE_ENV !== "production" && (I = {}); | ||
}, ke = C, ke; | ||
} | ||
var De, lr; | ||
function Gr() { | ||
if (lr) return De; | ||
var $e, lr; | ||
function Kr() { | ||
if (lr) return $e; | ||
lr = 1; | ||
var a = pr(), $ = Jr(), j = qe(), l = yr(), O = Kr(), d = function() { | ||
var i = pr(), D = Br(), I = We(), l = yr(), C = Jr(), f = function() { | ||
}; | ||
process.env.NODE_ENV !== "production" && (d = function(v) { | ||
var y = "Warning: " + v; | ||
typeof console < "u" && console.error(y); | ||
process.env.NODE_ENV !== "production" && (f = function(d) { | ||
var b = "Warning: " + d; | ||
typeof console < "u" && console.error(b); | ||
try { | ||
throw new Error(y); | ||
throw new Error(b); | ||
} catch { | ||
} | ||
}); | ||
function C() { | ||
function w() { | ||
return null; | ||
} | ||
return De = function(v, y) { | ||
var R = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator"; | ||
function u(t) { | ||
var s = t && (R && t[R] || t[c]); | ||
if (typeof s == "function") | ||
return s; | ||
return $e = function(d, b) { | ||
var O = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator"; | ||
function m(t) { | ||
var u = t && (O && t[O] || t[c]); | ||
if (typeof u == "function") | ||
return u; | ||
} | ||
var w = "<<anonymous>>", D = { | ||
var k = "<<anonymous>>", F = { | ||
array: U("array"), | ||
@@ -1010,9 +1010,9 @@ bigint: U("bigint"), | ||
any: Y(), | ||
arrayOf: N, | ||
arrayOf: V, | ||
element: q(), | ||
elementType: i(), | ||
instanceOf: te, | ||
node: he(), | ||
objectOf: be, | ||
oneOf: ye, | ||
elementType: o(), | ||
instanceOf: re, | ||
node: be(), | ||
objectOf: ye, | ||
oneOf: pe, | ||
oneOfType: ue, | ||
@@ -1022,15 +1022,15 @@ shape: fe, | ||
}; | ||
function z(t, s) { | ||
return t === s ? t !== 0 || 1 / t === 1 / s : t !== t && s !== s; | ||
function z(t, u) { | ||
return t === u ? t !== 0 || 1 / t === 1 / u : t !== t && u !== u; | ||
} | ||
function F(t, s) { | ||
this.message = t, this.data = s && typeof s == "object" ? s : {}, this.stack = ""; | ||
function M(t, u) { | ||
this.message = t, this.data = u && typeof u == "object" ? u : {}, this.stack = ""; | ||
} | ||
F.prototype = Error.prototype; | ||
function V(t) { | ||
M.prototype = Error.prototype; | ||
function N(t) { | ||
if (process.env.NODE_ENV !== "production") | ||
var s = {}, E = 0; | ||
function m(S, b, h, g, x, _, B) { | ||
if (g = g || w, _ = _ || h, B !== j) { | ||
if (y) { | ||
var u = {}, h = 0; | ||
function E(R, p, y, g, P, _, B) { | ||
if (g = g || k, _ = _ || y, B !== I) { | ||
if (b) { | ||
var n = new Error( | ||
@@ -1041,21 +1041,21 @@ "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" | ||
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") { | ||
var Z = g + ":" + h; | ||
!s[Z] && // Avoid spamming the console because they are often not actionable except for lib authors | ||
E < 3 && (d( | ||
var Z = g + ":" + y; | ||
!u[Z] && // Avoid spamming the console because they are often not actionable except for lib authors | ||
h < 3 && (f( | ||
"You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + g + "`. 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." | ||
), s[Z] = !0, E++); | ||
), u[Z] = !0, h++); | ||
} | ||
} | ||
return b[h] == null ? S ? b[h] === null ? new F("The " + x + " `" + _ + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new F("The " + x + " `" + _ + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : t(b, h, g, x, _); | ||
return p[y] == null ? R ? p[y] === null ? new M("The " + P + " `" + _ + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new M("The " + P + " `" + _ + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : t(p, y, g, P, _); | ||
} | ||
var p = m.bind(null, !1); | ||
return p.isRequired = m.bind(null, !0), p; | ||
var v = E.bind(null, !1); | ||
return v.isRequired = E.bind(null, !0), v; | ||
} | ||
function U(t) { | ||
function s(E, m, p, S, b, h) { | ||
var g = E[m], x = H(g); | ||
if (x !== t) { | ||
function u(h, E, v, R, p, y) { | ||
var g = h[E], P = H(g); | ||
if (P !== t) { | ||
var _ = ee(g); | ||
return new F( | ||
"Invalid " + S + " `" + b + "` of type " + ("`" + _ + "` supplied to `" + p + "`, expected ") + ("`" + t + "`."), | ||
return new M( | ||
"Invalid " + R + " `" + p + "` of type " + ("`" + _ + "` supplied to `" + v + "`, expected ") + ("`" + t + "`."), | ||
{ expectedType: t } | ||
@@ -1066,18 +1066,18 @@ ); | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function Y() { | ||
return V(C); | ||
return N(w); | ||
} | ||
function N(t) { | ||
function s(E, m, p, S, b) { | ||
function V(t) { | ||
function u(h, E, v, R, p) { | ||
if (typeof t != "function") | ||
return new F("Property `" + b + "` of component `" + p + "` has invalid PropType notation inside arrayOf."); | ||
var h = E[m]; | ||
if (!Array.isArray(h)) { | ||
var g = H(h); | ||
return new F("Invalid " + S + " `" + b + "` of type " + ("`" + g + "` supplied to `" + p + "`, expected an array.")); | ||
return new M("Property `" + p + "` of component `" + v + "` has invalid PropType notation inside arrayOf."); | ||
var y = h[E]; | ||
if (!Array.isArray(y)) { | ||
var g = H(y); | ||
return new M("Invalid " + R + " `" + p + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an array.")); | ||
} | ||
for (var x = 0; x < h.length; x++) { | ||
var _ = t(h, x, p, S, b + "[" + x + "]", j); | ||
for (var P = 0; P < y.length; P++) { | ||
var _ = t(y, P, v, R, p + "[" + P + "]", I); | ||
if (_ instanceof Error) | ||
@@ -1088,63 +1088,63 @@ return _; | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function q() { | ||
function t(s, E, m, p, S) { | ||
var b = s[E]; | ||
if (!v(b)) { | ||
var h = H(b); | ||
return new F("Invalid " + p + " `" + S + "` of type " + ("`" + h + "` supplied to `" + m + "`, expected a single ReactElement.")); | ||
function t(u, h, E, v, R) { | ||
var p = u[h]; | ||
if (!d(p)) { | ||
var y = H(p); | ||
return new M("Invalid " + v + " `" + R + "` of type " + ("`" + y + "` supplied to `" + E + "`, expected a single ReactElement.")); | ||
} | ||
return null; | ||
} | ||
return V(t); | ||
return N(t); | ||
} | ||
function i() { | ||
function t(s, E, m, p, S) { | ||
var b = s[E]; | ||
if (!a.isValidElementType(b)) { | ||
var h = H(b); | ||
return new F("Invalid " + p + " `" + S + "` of type " + ("`" + h + "` supplied to `" + m + "`, expected a single ReactElement type.")); | ||
function o() { | ||
function t(u, h, E, v, R) { | ||
var p = u[h]; | ||
if (!i.isValidElementType(p)) { | ||
var y = H(p); | ||
return new M("Invalid " + v + " `" + R + "` of type " + ("`" + y + "` supplied to `" + E + "`, expected a single ReactElement type.")); | ||
} | ||
return null; | ||
} | ||
return V(t); | ||
return N(t); | ||
} | ||
function te(t) { | ||
function s(E, m, p, S, b) { | ||
if (!(E[m] instanceof t)) { | ||
var h = t.name || w, g = le(E[m]); | ||
return new F("Invalid " + S + " `" + b + "` of type " + ("`" + g + "` supplied to `" + p + "`, expected ") + ("instance of `" + h + "`.")); | ||
function re(t) { | ||
function u(h, E, v, R, p) { | ||
if (!(h[E] instanceof t)) { | ||
var y = t.name || k, g = ce(h[E]); | ||
return new M("Invalid " + R + " `" + p + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected ") + ("instance of `" + y + "`.")); | ||
} | ||
return null; | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function ye(t) { | ||
function pe(t) { | ||
if (!Array.isArray(t)) | ||
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? d( | ||
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? f( | ||
"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])." | ||
) : d("Invalid argument supplied to oneOf, expected an array.")), C; | ||
function s(E, m, p, S, b) { | ||
for (var h = E[m], g = 0; g < t.length; g++) | ||
if (z(h, t[g])) | ||
) : f("Invalid argument supplied to oneOf, expected an array.")), w; | ||
function u(h, E, v, R, p) { | ||
for (var y = h[E], g = 0; g < t.length; g++) | ||
if (z(y, t[g])) | ||
return null; | ||
var x = JSON.stringify(t, function(B, n) { | ||
var P = JSON.stringify(t, function(B, n) { | ||
var Z = ee(n); | ||
return Z === "symbol" ? String(n) : n; | ||
}); | ||
return new F("Invalid " + S + " `" + b + "` of value `" + String(h) + "` " + ("supplied to `" + p + "`, expected one of " + x + ".")); | ||
return new M("Invalid " + R + " `" + p + "` of value `" + String(y) + "` " + ("supplied to `" + v + "`, expected one of " + P + ".")); | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function be(t) { | ||
function s(E, m, p, S, b) { | ||
function ye(t) { | ||
function u(h, E, v, R, p) { | ||
if (typeof t != "function") | ||
return new F("Property `" + b + "` of component `" + p + "` has invalid PropType notation inside objectOf."); | ||
var h = E[m], g = H(h); | ||
return new M("Property `" + p + "` of component `" + v + "` has invalid PropType notation inside objectOf."); | ||
var y = h[E], g = H(y); | ||
if (g !== "object") | ||
return new F("Invalid " + S + " `" + b + "` of type " + ("`" + g + "` supplied to `" + p + "`, expected an object.")); | ||
for (var x in h) | ||
if (l(h, x)) { | ||
var _ = t(h, x, p, S, b + "." + x, j); | ||
return new M("Invalid " + R + " `" + p + "` of type " + ("`" + g + "` supplied to `" + v + "`, expected an object.")); | ||
for (var P in y) | ||
if (l(y, P)) { | ||
var _ = t(y, P, v, R, p + "." + P, I); | ||
if (_ instanceof Error) | ||
@@ -1155,47 +1155,47 @@ return _; | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function ue(t) { | ||
if (!Array.isArray(t)) | ||
return process.env.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), C; | ||
for (var s = 0; s < t.length; s++) { | ||
var E = t[s]; | ||
if (typeof E != "function") | ||
return d( | ||
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(E) + " at index " + s + "." | ||
), C; | ||
return process.env.NODE_ENV !== "production" && f("Invalid argument supplied to oneOfType, expected an instance of array."), w; | ||
for (var u = 0; u < t.length; u++) { | ||
var h = t[u]; | ||
if (typeof h != "function") | ||
return f( | ||
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(h) + " at index " + u + "." | ||
), w; | ||
} | ||
function m(p, S, b, h, g) { | ||
for (var x = [], _ = 0; _ < t.length; _++) { | ||
var B = t[_], n = B(p, S, b, h, g, j); | ||
function E(v, R, p, y, g) { | ||
for (var P = [], _ = 0; _ < t.length; _++) { | ||
var B = t[_], n = B(v, R, p, y, g, I); | ||
if (n == null) | ||
return null; | ||
n.data && l(n.data, "expectedType") && x.push(n.data.expectedType); | ||
n.data && l(n.data, "expectedType") && P.push(n.data.expectedType); | ||
} | ||
var Z = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : ""; | ||
return new F("Invalid " + h + " `" + g + "` supplied to " + ("`" + b + "`" + Z + ".")); | ||
var Z = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : ""; | ||
return new M("Invalid " + y + " `" + g + "` supplied to " + ("`" + p + "`" + Z + ".")); | ||
} | ||
return V(m); | ||
return N(E); | ||
} | ||
function he() { | ||
function t(s, E, m, p, S) { | ||
return G(s[E]) ? null : new F("Invalid " + p + " `" + S + "` supplied to " + ("`" + m + "`, expected a ReactNode.")); | ||
function be() { | ||
function t(u, h, E, v, R) { | ||
return G(u[h]) ? null : new M("Invalid " + v + " `" + R + "` supplied to " + ("`" + E + "`, expected a ReactNode.")); | ||
} | ||
return V(t); | ||
return N(t); | ||
} | ||
function ce(t, s, E, m, p) { | ||
return new F( | ||
(t || "React class") + ": " + s + " type `" + E + "." + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`." | ||
function se(t, u, h, E, v) { | ||
return new M( | ||
(t || "React class") + ": " + u + " type `" + h + "." + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`." | ||
); | ||
} | ||
function fe(t) { | ||
function s(E, m, p, S, b) { | ||
var h = E[m], g = H(h); | ||
function u(h, E, v, R, p) { | ||
var y = h[E], g = H(y); | ||
if (g !== "object") | ||
return new F("Invalid " + S + " `" + b + "` of type `" + g + "` " + ("supplied to `" + p + "`, expected `object`.")); | ||
for (var x in t) { | ||
var _ = t[x]; | ||
return new M("Invalid " + R + " `" + p + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`.")); | ||
for (var P in t) { | ||
var _ = t[P]; | ||
if (typeof _ != "function") | ||
return ce(p, S, b, x, ee(_)); | ||
var B = _(h, x, p, S, b + "." + x, j); | ||
return se(v, R, p, P, ee(_)); | ||
var B = _(y, P, v, R, p + "." + P, I); | ||
if (B) | ||
@@ -1206,20 +1206,20 @@ return B; | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
function K(t) { | ||
function s(E, m, p, S, b) { | ||
var h = E[m], g = H(h); | ||
function u(h, E, v, R, p) { | ||
var y = h[E], g = H(y); | ||
if (g !== "object") | ||
return new F("Invalid " + S + " `" + b + "` of type `" + g + "` " + ("supplied to `" + p + "`, expected `object`.")); | ||
var x = $({}, E[m], t); | ||
for (var _ in x) { | ||
return new M("Invalid " + R + " `" + p + "` of type `" + g + "` " + ("supplied to `" + v + "`, expected `object`.")); | ||
var P = D({}, h[E], t); | ||
for (var _ in P) { | ||
var B = t[_]; | ||
if (l(t, _) && typeof B != "function") | ||
return ce(p, S, b, _, ee(B)); | ||
return se(v, R, p, _, ee(B)); | ||
if (!B) | ||
return new F( | ||
"Invalid " + S + " `" + b + "` key `" + _ + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(E[m], null, " ") + ` | ||
return new M( | ||
"Invalid " + R + " `" + p + "` key `" + _ + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(h[E], null, " ") + ` | ||
Valid keys: ` + JSON.stringify(Object.keys(t), null, " ") | ||
); | ||
var n = B(h, _, p, S, b + "." + _, j); | ||
var n = B(y, _, v, R, p + "." + _, I); | ||
if (n) | ||
@@ -1230,3 +1230,3 @@ return n; | ||
} | ||
return V(s); | ||
return N(u); | ||
} | ||
@@ -1244,15 +1244,15 @@ function G(t) { | ||
return t.every(G); | ||
if (t === null || v(t)) | ||
if (t === null || d(t)) | ||
return !0; | ||
var s = u(t); | ||
if (s) { | ||
var E = s.call(t), m; | ||
if (s !== t.entries) { | ||
for (; !(m = E.next()).done; ) | ||
if (!G(m.value)) | ||
var u = m(t); | ||
if (u) { | ||
var h = u.call(t), E; | ||
if (u !== t.entries) { | ||
for (; !(E = h.next()).done; ) | ||
if (!G(E.value)) | ||
return !1; | ||
} else | ||
for (; !(m = E.next()).done; ) { | ||
var p = m.value; | ||
if (p && !G(p[1])) | ||
for (; !(E = h.next()).done; ) { | ||
var v = E.value; | ||
if (v && !G(v[1])) | ||
return !1; | ||
@@ -1267,8 +1267,8 @@ } | ||
} | ||
function ne(t, s) { | ||
return t === "symbol" ? !0 : s ? s["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && s instanceof Symbol : !1; | ||
function te(t, u) { | ||
return t === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1; | ||
} | ||
function H(t) { | ||
var s = typeof t; | ||
return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : ne(s, t) ? "symbol" : s; | ||
var u = typeof t; | ||
return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : te(u, t) ? "symbol" : u; | ||
} | ||
@@ -1278,4 +1278,4 @@ function ee(t) { | ||
return "" + t; | ||
var s = H(t); | ||
if (s === "object") { | ||
var u = H(t); | ||
if (u === "object") { | ||
if (t instanceof Date) | ||
@@ -1286,47 +1286,47 @@ return "date"; | ||
} | ||
return s; | ||
return u; | ||
} | ||
function oe(t) { | ||
var s = ee(t); | ||
switch (s) { | ||
function ne(t) { | ||
var u = ee(t); | ||
switch (u) { | ||
case "array": | ||
case "object": | ||
return "an " + s; | ||
return "an " + u; | ||
case "boolean": | ||
case "date": | ||
case "regexp": | ||
return "a " + s; | ||
return "a " + u; | ||
default: | ||
return s; | ||
return u; | ||
} | ||
} | ||
function le(t) { | ||
return !t.constructor || !t.constructor.name ? w : t.constructor.name; | ||
function ce(t) { | ||
return !t.constructor || !t.constructor.name ? k : t.constructor.name; | ||
} | ||
return D.checkPropTypes = O, D.resetWarningCache = O.resetWarningCache, D.PropTypes = D, D; | ||
}, De; | ||
return F.checkPropTypes = C, F.resetWarningCache = C.resetWarningCache, F.PropTypes = F, F; | ||
}, $e; | ||
} | ||
var Me, dr; | ||
function Xr() { | ||
if (dr) return Me; | ||
var De, dr; | ||
function Gr() { | ||
if (dr) return De; | ||
dr = 1; | ||
var a = qe(); | ||
function $() { | ||
var i = We(); | ||
function D() { | ||
} | ||
function j() { | ||
function I() { | ||
} | ||
return j.resetWarningCache = $, Me = function() { | ||
function l(C, v, y, R, c, u) { | ||
if (u !== a) { | ||
var w = new Error( | ||
return I.resetWarningCache = D, De = function() { | ||
function l(w, d, b, O, c, m) { | ||
if (m !== i) { | ||
var k = new Error( | ||
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" | ||
); | ||
throw w.name = "Invariant Violation", w; | ||
throw k.name = "Invariant Violation", k; | ||
} | ||
} | ||
l.isRequired = l; | ||
function O() { | ||
function C() { | ||
return l; | ||
} | ||
var d = { | ||
var f = { | ||
array: l, | ||
@@ -1341,80 +1341,42 @@ bigint: l, | ||
any: l, | ||
arrayOf: O, | ||
arrayOf: C, | ||
element: l, | ||
elementType: l, | ||
instanceOf: O, | ||
instanceOf: C, | ||
node: l, | ||
objectOf: O, | ||
oneOf: O, | ||
oneOfType: O, | ||
shape: O, | ||
exact: O, | ||
checkPropTypes: j, | ||
resetWarningCache: $ | ||
objectOf: C, | ||
oneOf: C, | ||
oneOfType: C, | ||
shape: C, | ||
exact: C, | ||
checkPropTypes: I, | ||
resetWarningCache: D | ||
}; | ||
return d.PropTypes = d, d; | ||
}, Me; | ||
return f.PropTypes = f, f; | ||
}, De; | ||
} | ||
if (process.env.NODE_ENV !== "production") { | ||
var Hr = pr(), Zr = !0; | ||
We.exports = Gr()(Hr.isElement, Zr); | ||
var Xr = pr(), Hr = !0; | ||
Ye.exports = Kr()(Xr.isElement, Hr); | ||
} else | ||
We.exports = Xr()(); | ||
var Qr = We.exports; | ||
const se = /* @__PURE__ */ Ur(Qr), br = ({ data: a, onSelect: $, ASC: j, initialOption: l }) => { | ||
const [O, d] = er(!1), [C, v] = er( | ||
l || (j ? a.sort((u, w) => u.name.localeCompare(w.name))[0].name : a[0].name) | ||
), y = () => d(!O), R = (u) => { | ||
v(u), $(u), d(!1); | ||
}; | ||
Wr(() => { | ||
l && v(l); | ||
}, [l]); | ||
const c = j ? [...a].sort((u, w) => u.name.localeCompare(w.name)) : a; | ||
return /* @__PURE__ */ re.jsxs("div", { className: "dropdown", children: [ | ||
/* @__PURE__ */ re.jsxs("div", { className: "dropdown-header", onClick: y, children: [ | ||
C, | ||
/* @__PURE__ */ re.jsx("span", { className: "dropdown-icon", children: O ? "▲" : "▼" }) | ||
] }), | ||
O && /* @__PURE__ */ re.jsx("div", { className: "dropdown-list", children: c.map((u, w) => /* @__PURE__ */ re.jsx( | ||
"div", | ||
{ | ||
className: "dropdown-item", | ||
onClick: () => R(u.name), | ||
onMouseOver: (D) => D.target.style.backgroundColor = "#d3cdcd", | ||
onMouseOut: (D) => D.target.style.backgroundColor = "#fff", | ||
children: u.name | ||
}, | ||
w | ||
)) }) | ||
] }); | ||
Ye.exports = Gr()(); | ||
var Zr = Ye.exports; | ||
const ie = /* @__PURE__ */ Lr(Zr), br = ({ data: i, onSelect: D, ASC: I, initialOption: l }) => { | ||
Qe(!1), Qe( | ||
l || (I ? i.sort((C, f) => C.name.localeCompare(f.name))[0].name : i[0].name) | ||
); | ||
}; | ||
br.propTypes = { | ||
data: se.arrayOf( | ||
se.shape({ | ||
name: se.string.isRequired, | ||
abbreviation: se.string | ||
data: ie.arrayOf( | ||
ie.shape({ | ||
name: ie.string.isRequired, | ||
abbreviation: ie.string | ||
}) | ||
).isRequired, | ||
onSelect: se.func.isRequired, | ||
ASC: se.bool, | ||
initialOption: se.string | ||
onSelect: ie.func.isRequired, | ||
ASC: ie.bool, | ||
initialOption: ie.string | ||
}; | ||
function et() { | ||
const a = (j) => { | ||
console.log("Selected option:", j); | ||
}, $ = [ | ||
{ name: "Option 1", abbreviation: "O1" }, | ||
{ name: "Option 2", abbreviation: "O2" } | ||
]; | ||
return /* @__PURE__ */ re.jsxs("div", { children: [ | ||
/* @__PURE__ */ re.jsx("h1", { children: "My Application" }), | ||
/* @__PURE__ */ re.jsx(br, { data: $, onSelect: a, ASC: !0 }) | ||
] }); | ||
} | ||
Ye(document.getElementById("root")).render( | ||
/* @__PURE__ */ re.jsx(qr, { children: /* @__PURE__ */ re.jsx(et, {}) }) | ||
Fe(document.getElementById("root")).render( | ||
/* @__PURE__ */ tr.jsx(Wr, { children: /* @__PURE__ */ tr.jsx(br, {}) }) | ||
); | ||
export { | ||
br as Dropdown_menu | ||
}; |
@@ -1,2 +0,2 @@ | ||
(function(ae,ee){typeof exports=="object"&&typeof module<"u"?ee(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ee):(ae=typeof globalThis<"u"?globalThis:ae||self,ee(ae.MyComponentLibrary={},ae.React,ae.ReactDOM))})(this,function(ae,ee,hr){"use strict";function mr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ce={exports:{}},he={};/** | ||
(function(ee,ye){typeof exports=="object"&&typeof module<"u"?ye(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ye):(ee=typeof globalThis<"u"?globalThis:ee||self,ye(ee.React,ee.ReactDOM))})(this,function(ee,ye){"use strict";function hr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Pe={exports:{}},be={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Ve;function Er(){if(Ve)return he;Ve=1;var a=ee,D=Symbol.for("react.element"),j=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,O=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function C(v,y,R){var c,u={},w=null,M=null;R!==void 0&&(w=""+R),y.key!==void 0&&(w=""+y.key),y.ref!==void 0&&(M=y.ref);for(c in y)l.call(y,c)&&!d.hasOwnProperty(c)&&(u[c]=y[c]);if(v&&v.defaultProps)for(c in y=v.defaultProps,y)u[c]===void 0&&(u[c]=y[c]);return{$$typeof:D,type:v,key:w,ref:M,props:u,_owner:O.current}}return he.Fragment=j,he.jsx=C,he.jsxs=C,he}var me={};/** | ||
*/var Ue;function Er(){if(Ue)return be;Ue=1;var i=ee,M=Symbol.for("react.element"),I=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,C=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function w(d,b,O){var c,m={},k=null,F=null;O!==void 0&&(k=""+O),b.key!==void 0&&(k=""+b.key),b.ref!==void 0&&(F=b.ref);for(c in b)l.call(b,c)&&!f.hasOwnProperty(c)&&(m[c]=b[c]);if(d&&d.defaultProps)for(c in b=d.defaultProps,b)m[c]===void 0&&(m[c]=b[c]);return{$$typeof:M,type:d,key:k,ref:F,props:m,_owner:C.current}}return be.Fragment=I,be.jsx=w,be.jsxs=w,be}var he={};/** | ||
* @license React | ||
@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var ze;function gr(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var a=ee,D=Symbol.for("react.element"),j=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),z=Symbol.iterator,F="@@iterator";function V(e){if(e===null||typeof e!="object")return null;var r=z&&e[z]||e[F];return typeof r=="function"?r:null}var U=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),f=1;f<r;f++)o[f-1]=arguments[f];N("error",e,o)}}function N(e,r,o){{var f=U.ReactDebugCurrentFrame,k=f.getStackAddendum();k!==""&&(r+="%s",o=o.concat([k]));var $=o.map(function(P){return String(P)});$.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,$)}}var L=!1,i=!1,ne=!1,Ee=!1,ge=!1,fe;fe=Symbol.for("react.module.reference");function _e(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===d||ge||e===O||e===R||e===c||Ee||e===M||L||i||ne||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===u||e.$$typeof===C||e.$$typeof===v||e.$$typeof===y||e.$$typeof===fe||e.getModuleId!==void 0))}function le(e,r,o){var f=e.displayName;if(f)return f;var k=r.displayName||r.name||"";return k!==""?o+"("+k+")":o}function de(e){return e.displayName||"Context"}function K(e){if(e==null)return null;if(typeof e.tag=="number"&&Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case j:return"Portal";case d:return"Profiler";case O:return"StrictMode";case R:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return de(r)+".Consumer";case C:var o=e;return de(o._context)+".Provider";case y:return le(e,e.render,"ForwardRef");case u:var f=e.displayName||null;return f!==null?f:K(e.type)||"Memo";case w:{var k=e,$=k._payload,P=k._init;try{return K(P($))}catch{return null}}}return null}var G=Object.assign,oe=0,H,te,se,ve,t,s,E;function m(){}m.__reactDisabledLog=!0;function p(){{if(oe===0){H=console.log,te=console.info,se=console.warn,ve=console.error,t=console.group,s=console.groupCollapsed,E=console.groupEnd;var e={configurable:!0,enumerable:!0,value:m,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}oe++}}function S(){{if(oe--,oe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:H}),info:G({},e,{value:te}),warn:G({},e,{value:se}),error:G({},e,{value:ve}),group:G({},e,{value:t}),groupCollapsed:G({},e,{value:s}),groupEnd:G({},e,{value:E})})}oe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var b=U.ReactCurrentDispatcher,h;function g(e,r,o){{if(h===void 0)try{throw Error()}catch(k){var f=k.stack.trim().match(/\n( *(at )?)/);h=f&&f[1]||""}return` | ||
`+h+e}}var x=!1,_;{var B=typeof WeakMap=="function"?WeakMap:Map;_=new B}function n(e,r){if(!e||x)return"";{var o=_.get(e);if(o!==void 0)return o}var f;x=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $;$=b.current,b.current=null,p();try{if(r){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(X){f=X}Reflect.construct(e,[],P)}else{try{P.call()}catch(X){f=X}e.call(P.prototype)}}else{try{throw Error()}catch(X){f=X}e()}}catch(X){if(X&&f&&typeof X.stack=="string"){for(var T=X.stack.split(` | ||
`),J=f.stack.split(` | ||
*/var Ve;function mr(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&function(){var i=ee,M=Symbol.for("react.element"),I=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),d=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),z=Symbol.iterator,$="@@iterator";function N(e){if(e===null||typeof e!="object")return null;var r=z&&e[z]||e[$];return typeof r=="function"?r:null}var U=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];V("error",e,a)}}function V(e,r,a){{var s=U.ReactDebugCurrentFrame,A=s.getStackAddendum();A!==""&&(r+="%s",a=a.concat([A]));var D=a.map(function(S){return String(S)});D.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,D)}}var L=!1,o=!1,te=!1,Ee=!1,me=!1,se;se=Symbol.for("react.module.reference");function ge(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===f||me||e===C||e===O||e===c||Ee||e===F||L||o||te||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===m||e.$$typeof===w||e.$$typeof===d||e.$$typeof===b||e.$$typeof===se||e.getModuleId!==void 0))}function fe(e,r,a){var s=e.displayName;if(s)return s;var A=r.displayName||r.name||"";return A!==""?a+"("+A+")":a}function ce(e){return e.displayName||"Context"}function K(e){if(e==null)return null;if(typeof e.tag=="number"&&Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case I:return"Portal";case f:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var r=e;return ce(r)+".Consumer";case w:var a=e;return ce(a._context)+".Provider";case b:return fe(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:K(e.type)||"Memo";case k:{var A=e,D=A._payload,S=A._init;try{return K(S(D))}catch{return null}}}return null}var G=Object.assign,ne=0,H,re,oe,le,t,u,E;function h(){}h.__reactDisabledLog=!0;function v(){{if(ne===0){H=console.log,re=console.info,oe=console.warn,le=console.error,t=console.group,u=console.groupCollapsed,E=console.groupEnd;var e={configurable:!0,enumerable:!0,value:h,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ne++}}function R(){{if(ne--,ne===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:H}),info:G({},e,{value:re}),warn:G({},e,{value:oe}),error:G({},e,{value:le}),group:G({},e,{value:t}),groupCollapsed:G({},e,{value:u}),groupEnd:G({},e,{value:E})})}ne<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var p=U.ReactCurrentDispatcher,y;function g(e,r,a){{if(y===void 0)try{throw Error()}catch(A){var s=A.stack.trim().match(/\n( *(at )?)/);y=s&&s[1]||""}return` | ||
`+y+e}}var P=!1,_;{var B=typeof WeakMap=="function"?WeakMap:Map;_=new B}function n(e,r){if(!e||P)return"";{var a=_.get(e);if(a!==void 0)return a}var s;P=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=p.current,p.current=null,v();try{if(r){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(X){s=X}Reflect.construct(e,[],S)}else{try{S.call()}catch(X){s=X}e.call(S.prototype)}}else{try{throw Error()}catch(X){s=X}e()}}catch(X){if(X&&s&&typeof X.stack=="string"){for(var T=X.stack.split(` | ||
`),J=s.stack.split(` | ||
`),W=T.length-1,q=J.length-1;W>=1&&q>=0&&T[W]!==J[q];)q--;for(;W>=1&&q>=0;W--,q--)if(T[W]!==J[q]){if(W!==1||q!==1)do if(W--,q--,q<0||T[W]!==J[q]){var Q=` | ||
`+T[W].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&_.set(e,Q),Q}while(W>=1&&q>=0);break}}}finally{x=!1,b.current=$,S(),Error.prepareStackTrace=k}var be=e?e.displayName||e.name:"",ce=be?g(be):"";return typeof e=="function"&&_.set(e,ce),ce}function Z(e,r,o){return n(e,!1)}function pe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ue(e,r,o){if(e==null)return"";if(typeof e=="function")return n(e,pe(e));if(typeof e=="string")return g(e);switch(e){case R:return g("Suspense");case c:return g("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Z(e.render);case u:return ue(e.type,r,o);case w:{var f=e,k=f._payload,$=f._init;try{return ue($(k),r,o)}catch{}}}return""}var Te=Object.prototype.hasOwnProperty,or={},ar=U.ReactDebugCurrentFrame;function Pe(e){if(e){var r=e._owner,o=ue(e.type,e._source,r?r.type:null);ar.setExtraStackFrame(o)}else ar.setExtraStackFrame(null)}function Ar(e,r,o,f,k){{var $=Function.call.bind(Te);for(var P in e)if($(e,P)){var T=void 0;try{if(typeof e[P]!="function"){var J=Error((f||"React class")+": "+o+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}T=e[P](r,P,f,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){T=W}T&&!(T instanceof Error)&&(Pe(k),Y("%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).",f||"React class",o,P,typeof T),Pe(null)),T instanceof Error&&!(T.message in or)&&(or[T.message]=!0,Pe(k),Y("Failed %s type: %s",o,T.message),Pe(null))}}}var Ir=Array.isArray;function Ye(e){return Ir(e)}function kr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Dr(e){try{return ir(e),!1}catch{return!0}}function ir(e){return""+e}function sr(e){if(Dr(e))return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kr(e)),ir(e)}var Re=U.ReactCurrentOwner,Mr={key:!0,ref:!0,__self:!0,__source:!0},ur,cr,We;We={};function $r(e){if(Te.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Fr(e){if(Te.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Yr(e,r){if(typeof e.ref=="string"&&Re.current&&r&&Re.current.stateNode!==r){var o=K(Re.current.type);We[o]||(Y('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',K(Re.current.type),e.ref),We[o]=!0)}}function Wr(e,r){{var o=function(){ur||(ur=!0,Y("%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)",r))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Lr(e,r){{var o=function(){cr||(cr=!0,Y("%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)",r))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var qr=function(e,r,o,f,k,$,P){var T={$$typeof:D,type:e,key:r,ref:o,props:P,_owner:$};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function Ur(e,r,o,f,k){{var $,P={},T=null,J=null;o!==void 0&&(sr(o),T=""+o),Fr(r)&&(sr(r.key),T=""+r.key),$r(r)&&(J=r.ref,Yr(r,k));for($ in r)Te.call(r,$)&&!Mr.hasOwnProperty($)&&(P[$]=r[$]);if(e&&e.defaultProps){var W=e.defaultProps;for($ in W)P[$]===void 0&&(P[$]=W[$])}if(T||J){var q=typeof e=="function"?e.displayName||e.name||"Unknown":e;T&&Wr(P,q),J&&Lr(P,q)}return qr(e,T,J,k,f,Re.current,P)}}var Le=U.ReactCurrentOwner,fr=U.ReactDebugCurrentFrame;function ye(e){if(e){var r=e._owner,o=ue(e.type,e._source,r?r.type:null);fr.setExtraStackFrame(o)}else fr.setExtraStackFrame(null)}var qe;qe=!1;function Ue(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}function lr(){{if(Le.current){var e=K(Le.current.type);if(e)return` | ||
`+T[W].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&_.set(e,Q),Q}while(W>=1&&q>=0);break}}}finally{P=!1,p.current=D,R(),Error.prepareStackTrace=A}var pe=e?e.displayName||e.name:"",ue=pe?g(pe):"";return typeof e=="function"&&_.set(e,ue),ue}function Z(e,r,a){return n(e,!1)}function de(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ie(e,r,a){if(e==null)return"";if(typeof e=="function")return n(e,de(e));if(typeof e=="string")return g(e);switch(e){case O:return g("Suspense");case c:return g("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return Z(e.render);case m:return ie(e.type,r,a);case k:{var s=e,A=s._payload,D=s._init;try{return ie(D(A),r,a)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,ar={},or=U.ReactDebugCurrentFrame;function Oe(e){if(e){var r=e._owner,a=ie(e.type,e._source,r?r.type:null);or.setExtraStackFrame(a)}else or.setExtraStackFrame(null)}function xr(e,r,a,s,A){{var D=Function.call.bind(_e);for(var S in e)if(D(e,S)){var T=void 0;try{if(typeof e[S]!="function"){var J=Error((s||"React class")+": "+a+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}T=e[S](r,S,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){T=W}T&&!(T instanceof Error)&&(Oe(A),Y("%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).",s||"React class",a,S,typeof T),Oe(null)),T instanceof Error&&!(T.message in ar)&&(ar[T.message]=!0,Oe(A),Y("Failed %s type: %s",a,T.message),Oe(null))}}}var jr=Array.isArray;function $e(e){return jr(e)}function Ar(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Ir(e){try{return ir(e),!1}catch{return!0}}function ir(e){return""+e}function ur(e){if(Ir(e))return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(e)),ir(e)}var Te=U.ReactCurrentOwner,kr={key:!0,ref:!0,__self:!0,__source:!0},sr,fr,Fe;Fe={};function Dr(e){if(_e.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Mr(e){if(_e.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function $r(e,r){if(typeof e.ref=="string"&&Te.current&&r&&Te.current.stateNode!==r){var a=K(Te.current.type);Fe[a]||(Y('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',K(Te.current.type),e.ref),Fe[a]=!0)}}function Fr(e,r){{var a=function(){sr||(sr=!0,Y("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Yr(e,r){{var a=function(){fr||(fr=!0,Y("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Wr=function(e,r,a,s,A,D,S){var T={$$typeof:M,type:e,key:r,ref:a,props:S,_owner:D};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function Lr(e,r,a,s,A){{var D,S={},T=null,J=null;a!==void 0&&(ur(a),T=""+a),Mr(r)&&(ur(r.key),T=""+r.key),Dr(r)&&(J=r.ref,$r(r,A));for(D in r)_e.call(r,D)&&!kr.hasOwnProperty(D)&&(S[D]=r[D]);if(e&&e.defaultProps){var W=e.defaultProps;for(D in W)S[D]===void 0&&(S[D]=W[D])}if(T||J){var q=typeof e=="function"?e.displayName||e.name||"Unknown":e;T&&Fr(S,q),J&&Yr(S,q)}return Wr(e,T,J,A,s,Te.current,S)}}var Ye=U.ReactCurrentOwner,cr=U.ReactDebugCurrentFrame;function ve(e){if(e){var r=e._owner,a=ie(e.type,e._source,r?r.type:null);cr.setExtraStackFrame(a)}else cr.setExtraStackFrame(null)}var We;We=!1;function Le(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function lr(){{if(Ye.current){var e=K(Ye.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function Nr(e){return""}var dr={};function Vr(e){{var r=lr();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=` | ||
Check the render method of \``+e+"`."}return""}}function qr(e){return""}var dr={};function Ur(e){{var r=lr();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=` | ||
Check the top-level render call using <`+o+">.")}return r}}function vr(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Vr(r);if(dr[o])return;dr[o]=!0;var f="";e&&e._owner&&e._owner!==Le.current&&(f=" It was passed a child from "+K(e._owner.type)+"."),ye(e),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,f),ye(null)}}function pr(e,r){{if(typeof e!="object")return;if(Ye(e))for(var o=0;o<e.length;o++){var f=e[o];Ue(f)&&vr(f,r)}else if(Ue(e))e._store&&(e._store.validated=!0);else if(e){var k=V(e);if(typeof k=="function"&&k!==e.entries)for(var $=k.call(e),P;!(P=$.next()).done;)Ue(P.value)&&vr(P.value,r)}}}function zr(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===u))o=r.propTypes;else return;if(o){var f=K(r);Ar(o,e.props,"prop",f,e)}else if(r.PropTypes!==void 0&&!qe){qe=!0;var k=K(r);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Br(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var f=r[o];if(f!=="children"&&f!=="key"){ye(e),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),ye(null);break}}e.ref!==null&&(ye(e),Y("Invalid attribute `ref` supplied to `React.Fragment`."),ye(null))}}var yr={};function br(e,r,o,f,k,$){{var P=_e(e);if(!P){var T="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(T+=" 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 J=Nr();J?T+=J:T+=lr();var W;e===null?W="null":Ye(e)?W="array":e!==void 0&&e.$$typeof===D?(W="<"+(K(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):W=typeof e,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,T)}var q=Ur(e,r,o,k,$);if(q==null)return q;if(P){var Q=r.children;if(Q!==void 0)if(f)if(Ye(Q)){for(var be=0;be<Q.length;be++)pr(Q[be],e);Object.freeze&&Object.freeze(Q)}else Y("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 pr(Q,e)}if(Te.call(r,"key")){var ce=K(e),X=Object.keys(r).filter(function(Zr){return Zr!=="key"}),Ne=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!yr[ce+Ne]){var Hr=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";Y(`A props object containing a "key" prop is being spread into JSX: | ||
Check the top-level render call using <`+a+">.")}return r}}function vr(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ur(r);if(dr[a])return;dr[a]=!0;var s="";e&&e._owner&&e._owner!==Ye.current&&(s=" It was passed a child from "+K(e._owner.type)+"."),ve(e),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),ve(null)}}function pr(e,r){{if(typeof e!="object")return;if($e(e))for(var a=0;a<e.length;a++){var s=e[a];Le(s)&&vr(s,r)}else if(Le(e))e._store&&(e._store.validated=!0);else if(e){var A=N(e);if(typeof A=="function"&&A!==e.entries)for(var D=A.call(e),S;!(S=D.next()).done;)Le(S.value)&&vr(S.value,r)}}}function Vr(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===m))a=r.propTypes;else return;if(a){var s=K(r);xr(a,e.props,"prop",s,e)}else if(r.PropTypes!==void 0&&!We){We=!0;var A=K(r);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nr(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var s=r[a];if(s!=="children"&&s!=="key"){ve(e),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),ve(null);break}}e.ref!==null&&(ve(e),Y("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}var yr={};function br(e,r,a,s,A,D){{var S=ge(e);if(!S){var T="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(T+=" 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 J=qr();J?T+=J:T+=lr();var W;e===null?W="null":$e(e)?W="array":e!==void 0&&e.$$typeof===M?(W="<"+(K(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):W=typeof e,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,T)}var q=Lr(e,r,a,A,D);if(q==null)return q;if(S){var Q=r.children;if(Q!==void 0)if(s)if($e(Q)){for(var pe=0;pe<Q.length;pe++)pr(Q[pe],e);Object.freeze&&Object.freeze(Q)}else Y("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 pr(Q,e)}if(_e.call(r,"key")){var ue=K(e),X=Object.keys(r).filter(function(Xr){return Xr!=="key"}),qe=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!yr[ue+qe]){var Gr=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";Y(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
@@ -32,3 +32,3 @@ <%s {...props} /> | ||
let props = %s; | ||
<%s key={someKey} {...props} />`,Ne,ce,Hr,ce),yr[ce+Ne]=!0}}return e===l?Br(q):zr(q),q}}function Jr(e,r,o){return br(e,r,o,!0)}function Kr(e,r,o){return br(e,r,o,!1)}var Gr=Kr,Xr=Jr;me.Fragment=l,me.jsx=Gr,me.jsxs=Xr}()),me}process.env.NODE_ENV==="production"?Ce.exports=Er():Ce.exports=gr();var re=Ce.exports,we,Oe=hr;if(process.env.NODE_ENV==="production")we=Oe.createRoot,Oe.hydrateRoot;else{var Be=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;we=function(a,D){Be.usingClientEntryPoint=!0;try{return Oe.createRoot(a,D)}finally{Be.usingClientEntryPoint=!1}}}var xe={exports:{}},Se={exports:{}},A={};/** @license React v16.13.1 | ||
<%s key={someKey} {...props} />`,qe,ue,Gr,ue),yr[ue+qe]=!0}}return e===l?Nr(q):Vr(q),q}}function zr(e,r,a){return br(e,r,a,!0)}function Br(e,r,a){return br(e,r,a,!1)}var Jr=Br,Kr=zr;he.Fragment=l,he.jsx=Jr,he.jsxs=Kr}()),he}process.env.NODE_ENV==="production"?Pe.exports=Er():Pe.exports=mr();var Ne=Pe.exports,Ce,Re=ye;if(process.env.NODE_ENV==="production")Ce=Re.createRoot,Re.hydrateRoot;else{var ze=Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ce=function(i,M){ze.usingClientEntryPoint=!0;try{return Re.createRoot(i,M)}finally{ze.usingClientEntryPoint=!1}}}var we={exports:{}},Se={exports:{}},x={};/** @license React v16.13.1 | ||
* react-is.production.min.js | ||
@@ -40,3 +40,3 @@ * | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Je;function _r(){if(Je)return A;Je=1;var a=typeof Symbol=="function"&&Symbol.for,D=a?Symbol.for("react.element"):60103,j=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,O=a?Symbol.for("react.strict_mode"):60108,d=a?Symbol.for("react.profiler"):60114,C=a?Symbol.for("react.provider"):60109,v=a?Symbol.for("react.context"):60110,y=a?Symbol.for("react.async_mode"):60111,R=a?Symbol.for("react.concurrent_mode"):60111,c=a?Symbol.for("react.forward_ref"):60112,u=a?Symbol.for("react.suspense"):60113,w=a?Symbol.for("react.suspense_list"):60120,M=a?Symbol.for("react.memo"):60115,z=a?Symbol.for("react.lazy"):60116,F=a?Symbol.for("react.block"):60121,V=a?Symbol.for("react.fundamental"):60117,U=a?Symbol.for("react.responder"):60118,Y=a?Symbol.for("react.scope"):60119;function N(i){if(typeof i=="object"&&i!==null){var ne=i.$$typeof;switch(ne){case D:switch(i=i.type,i){case y:case R:case l:case d:case O:case u:return i;default:switch(i=i&&i.$$typeof,i){case v:case c:case z:case M:case C:return i;default:return ne}}case j:return ne}}}function L(i){return N(i)===R}return A.AsyncMode=y,A.ConcurrentMode=R,A.ContextConsumer=v,A.ContextProvider=C,A.Element=D,A.ForwardRef=c,A.Fragment=l,A.Lazy=z,A.Memo=M,A.Portal=j,A.Profiler=d,A.StrictMode=O,A.Suspense=u,A.isAsyncMode=function(i){return L(i)||N(i)===y},A.isConcurrentMode=L,A.isContextConsumer=function(i){return N(i)===v},A.isContextProvider=function(i){return N(i)===C},A.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===D},A.isForwardRef=function(i){return N(i)===c},A.isFragment=function(i){return N(i)===l},A.isLazy=function(i){return N(i)===z},A.isMemo=function(i){return N(i)===M},A.isPortal=function(i){return N(i)===j},A.isProfiler=function(i){return N(i)===d},A.isStrictMode=function(i){return N(i)===O},A.isSuspense=function(i){return N(i)===u},A.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===l||i===R||i===d||i===O||i===u||i===w||typeof i=="object"&&i!==null&&(i.$$typeof===z||i.$$typeof===M||i.$$typeof===C||i.$$typeof===v||i.$$typeof===c||i.$$typeof===V||i.$$typeof===U||i.$$typeof===Y||i.$$typeof===F)},A.typeOf=N,A}var I={};/** @license React v16.13.1 | ||
*/var Be;function gr(){if(Be)return x;Be=1;var i=typeof Symbol=="function"&&Symbol.for,M=i?Symbol.for("react.element"):60103,I=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,C=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,w=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,b=i?Symbol.for("react.async_mode"):60111,O=i?Symbol.for("react.concurrent_mode"):60111,c=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,k=i?Symbol.for("react.suspense_list"):60120,F=i?Symbol.for("react.memo"):60115,z=i?Symbol.for("react.lazy"):60116,$=i?Symbol.for("react.block"):60121,N=i?Symbol.for("react.fundamental"):60117,U=i?Symbol.for("react.responder"):60118,Y=i?Symbol.for("react.scope"):60119;function V(o){if(typeof o=="object"&&o!==null){var te=o.$$typeof;switch(te){case M:switch(o=o.type,o){case b:case O:case l:case f:case C:case m:return o;default:switch(o=o&&o.$$typeof,o){case d:case c:case z:case F:case w:return o;default:return te}}case I:return te}}}function L(o){return V(o)===O}return x.AsyncMode=b,x.ConcurrentMode=O,x.ContextConsumer=d,x.ContextProvider=w,x.Element=M,x.ForwardRef=c,x.Fragment=l,x.Lazy=z,x.Memo=F,x.Portal=I,x.Profiler=f,x.StrictMode=C,x.Suspense=m,x.isAsyncMode=function(o){return L(o)||V(o)===b},x.isConcurrentMode=L,x.isContextConsumer=function(o){return V(o)===d},x.isContextProvider=function(o){return V(o)===w},x.isElement=function(o){return typeof o=="object"&&o!==null&&o.$$typeof===M},x.isForwardRef=function(o){return V(o)===c},x.isFragment=function(o){return V(o)===l},x.isLazy=function(o){return V(o)===z},x.isMemo=function(o){return V(o)===F},x.isPortal=function(o){return V(o)===I},x.isProfiler=function(o){return V(o)===f},x.isStrictMode=function(o){return V(o)===C},x.isSuspense=function(o){return V(o)===m},x.isValidElementType=function(o){return typeof o=="string"||typeof o=="function"||o===l||o===O||o===f||o===C||o===m||o===k||typeof o=="object"&&o!==null&&(o.$$typeof===z||o.$$typeof===F||o.$$typeof===w||o.$$typeof===d||o.$$typeof===c||o.$$typeof===N||o.$$typeof===U||o.$$typeof===Y||o.$$typeof===$)},x.typeOf=V,x}var j={};/** @license React v16.13.1 | ||
* react-is.development.js | ||
@@ -48,7 +48,7 @@ * | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Ke;function Tr(){return Ke||(Ke=1,process.env.NODE_ENV!=="production"&&function(){var a=typeof Symbol=="function"&&Symbol.for,D=a?Symbol.for("react.element"):60103,j=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,O=a?Symbol.for("react.strict_mode"):60108,d=a?Symbol.for("react.profiler"):60114,C=a?Symbol.for("react.provider"):60109,v=a?Symbol.for("react.context"):60110,y=a?Symbol.for("react.async_mode"):60111,R=a?Symbol.for("react.concurrent_mode"):60111,c=a?Symbol.for("react.forward_ref"):60112,u=a?Symbol.for("react.suspense"):60113,w=a?Symbol.for("react.suspense_list"):60120,M=a?Symbol.for("react.memo"):60115,z=a?Symbol.for("react.lazy"):60116,F=a?Symbol.for("react.block"):60121,V=a?Symbol.for("react.fundamental"):60117,U=a?Symbol.for("react.responder"):60118,Y=a?Symbol.for("react.scope"):60119;function N(n){return typeof n=="string"||typeof n=="function"||n===l||n===R||n===d||n===O||n===u||n===w||typeof n=="object"&&n!==null&&(n.$$typeof===z||n.$$typeof===M||n.$$typeof===C||n.$$typeof===v||n.$$typeof===c||n.$$typeof===V||n.$$typeof===U||n.$$typeof===Y||n.$$typeof===F)}function L(n){if(typeof n=="object"&&n!==null){var Z=n.$$typeof;switch(Z){case D:var pe=n.type;switch(pe){case y:case R:case l:case d:case O:case u:return pe;default:var ue=pe&&pe.$$typeof;switch(ue){case v:case c:case z:case M:case C:return ue;default:return Z}}case j:return Z}}}var i=y,ne=R,Ee=v,ge=C,fe=D,_e=c,le=l,de=z,K=M,G=j,oe=d,H=O,te=u,se=!1;function ve(n){return se||(se=!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.")),t(n)||L(n)===y}function t(n){return L(n)===R}function s(n){return L(n)===v}function E(n){return L(n)===C}function m(n){return typeof n=="object"&&n!==null&&n.$$typeof===D}function p(n){return L(n)===c}function S(n){return L(n)===l}function b(n){return L(n)===z}function h(n){return L(n)===M}function g(n){return L(n)===j}function x(n){return L(n)===d}function _(n){return L(n)===O}function B(n){return L(n)===u}I.AsyncMode=i,I.ConcurrentMode=ne,I.ContextConsumer=Ee,I.ContextProvider=ge,I.Element=fe,I.ForwardRef=_e,I.Fragment=le,I.Lazy=de,I.Memo=K,I.Portal=G,I.Profiler=oe,I.StrictMode=H,I.Suspense=te,I.isAsyncMode=ve,I.isConcurrentMode=t,I.isContextConsumer=s,I.isContextProvider=E,I.isElement=m,I.isForwardRef=p,I.isFragment=S,I.isLazy=b,I.isMemo=h,I.isPortal=g,I.isProfiler=x,I.isStrictMode=_,I.isSuspense=B,I.isValidElementType=N,I.typeOf=L}()),I}var Ge;function Xe(){return Ge||(Ge=1,process.env.NODE_ENV==="production"?Se.exports=_r():Se.exports=Tr()),Se.exports}/* | ||
*/var Je;function _r(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&function(){var i=typeof Symbol=="function"&&Symbol.for,M=i?Symbol.for("react.element"):60103,I=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,C=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,w=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,b=i?Symbol.for("react.async_mode"):60111,O=i?Symbol.for("react.concurrent_mode"):60111,c=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,k=i?Symbol.for("react.suspense_list"):60120,F=i?Symbol.for("react.memo"):60115,z=i?Symbol.for("react.lazy"):60116,$=i?Symbol.for("react.block"):60121,N=i?Symbol.for("react.fundamental"):60117,U=i?Symbol.for("react.responder"):60118,Y=i?Symbol.for("react.scope"):60119;function V(n){return typeof n=="string"||typeof n=="function"||n===l||n===O||n===f||n===C||n===m||n===k||typeof n=="object"&&n!==null&&(n.$$typeof===z||n.$$typeof===F||n.$$typeof===w||n.$$typeof===d||n.$$typeof===c||n.$$typeof===N||n.$$typeof===U||n.$$typeof===Y||n.$$typeof===$)}function L(n){if(typeof n=="object"&&n!==null){var Z=n.$$typeof;switch(Z){case M:var de=n.type;switch(de){case b:case O:case l:case f:case C:case m:return de;default:var ie=de&&de.$$typeof;switch(ie){case d:case c:case z:case F:case w:return ie;default:return Z}}case I:return Z}}}var o=b,te=O,Ee=d,me=w,se=M,ge=c,fe=l,ce=z,K=F,G=I,ne=f,H=C,re=m,oe=!1;function le(n){return oe||(oe=!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.")),t(n)||L(n)===b}function t(n){return L(n)===O}function u(n){return L(n)===d}function E(n){return L(n)===w}function h(n){return typeof n=="object"&&n!==null&&n.$$typeof===M}function v(n){return L(n)===c}function R(n){return L(n)===l}function p(n){return L(n)===z}function y(n){return L(n)===F}function g(n){return L(n)===I}function P(n){return L(n)===f}function _(n){return L(n)===C}function B(n){return L(n)===m}j.AsyncMode=o,j.ConcurrentMode=te,j.ContextConsumer=Ee,j.ContextProvider=me,j.Element=se,j.ForwardRef=ge,j.Fragment=fe,j.Lazy=ce,j.Memo=K,j.Portal=G,j.Profiler=ne,j.StrictMode=H,j.Suspense=re,j.isAsyncMode=le,j.isConcurrentMode=t,j.isContextConsumer=u,j.isContextProvider=E,j.isElement=h,j.isForwardRef=v,j.isFragment=R,j.isLazy=p,j.isMemo=y,j.isPortal=g,j.isProfiler=P,j.isStrictMode=_,j.isSuspense=B,j.isValidElementType=V,j.typeOf=L}()),j}var Ke;function Ge(){return Ke||(Ke=1,process.env.NODE_ENV==="production"?Se.exports=gr():Se.exports=_r()),Se.exports}/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/var je,He;function Rr(){if(He)return je;He=1;var a=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;function l(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function O(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var C={},v=0;v<10;v++)C["_"+String.fromCharCode(v)]=v;var y=Object.getOwnPropertyNames(C).map(function(c){return C[c]});if(y.join("")!=="0123456789")return!1;var R={};return"abcdefghijklmnopqrst".split("").forEach(function(c){R[c]=c}),Object.keys(Object.assign({},R)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return je=O()?Object.assign:function(d,C){for(var v,y=l(d),R,c=1;c<arguments.length;c++){v=Object(arguments[c]);for(var u in v)D.call(v,u)&&(y[u]=v[u]);if(a){R=a(v);for(var w=0;w<R.length;w++)j.call(v,R[w])&&(y[R[w]]=v[R[w]])}}return y},je}var Ae,Ze;function Ie(){if(Ze)return Ae;Ze=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ae=a,Ae}var ke,Qe;function er(){return Qe||(Qe=1,ke=Function.call.bind(Object.prototype.hasOwnProperty)),ke}var De,rr;function Or(){if(rr)return De;rr=1;var a=function(){};if(process.env.NODE_ENV!=="production"){var D=Ie(),j={},l=er();a=function(d){var C="Warning: "+d;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}}}function O(d,C,v,y,R){if(process.env.NODE_ENV!=="production"){for(var c in d)if(l(d,c)){var u;try{if(typeof d[c]!="function"){var w=Error((y||"React class")+": "+v+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}u=d[c](C,c,y,v,null,D)}catch(z){u=z}if(u&&!(u instanceof Error)&&a((y||"React class")+": type specification of "+v+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in j)){j[u.message]=!0;var M=R?R():"";a("Failed "+v+" type: "+u.message+(M??""))}}}}return O.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(j={})},De=O,De}var Me,tr;function Sr(){if(tr)return Me;tr=1;var a=Xe(),D=Rr(),j=Ie(),l=er(),O=Or(),d=function(){};process.env.NODE_ENV!=="production"&&(d=function(v){var y="Warning: "+v;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function C(){return null}return Me=function(v,y){var R=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function u(t){var s=t&&(R&&t[R]||t[c]);if(typeof s=="function")return s}var w="<<anonymous>>",M={array:U("array"),bigint:U("bigint"),bool:U("boolean"),func:U("function"),number:U("number"),object:U("object"),string:U("string"),symbol:U("symbol"),any:Y(),arrayOf:N,element:L(),elementType:i(),instanceOf:ne,node:_e(),objectOf:ge,oneOf:Ee,oneOfType:fe,shape:de,exact:K};function z(t,s){return t===s?t!==0||1/t===1/s:t!==t&&s!==s}function F(t,s){this.message=t,this.data=s&&typeof s=="object"?s:{},this.stack=""}F.prototype=Error.prototype;function V(t){if(process.env.NODE_ENV!=="production")var s={},E=0;function m(S,b,h,g,x,_,B){if(g=g||w,_=_||h,B!==j){if(y){var n=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 n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=g+":"+h;!s[Z]&&E<3&&(d("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+g+"`. 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."),s[Z]=!0,E++)}}return b[h]==null?S?b[h]===null?new F("The "+x+" `"+_+"` is marked as required "+("in `"+g+"`, but its value is `null`.")):new F("The "+x+" `"+_+"` is marked as required in "+("`"+g+"`, but its value is `undefined`.")):null:t(b,h,g,x,_)}var p=m.bind(null,!1);return p.isRequired=m.bind(null,!0),p}function U(t){function s(E,m,p,S,b,h){var g=E[m],x=H(g);if(x!==t){var _=te(g);return new F("Invalid "+S+" `"+b+"` of type "+("`"+_+"` supplied to `"+p+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return V(s)}function Y(){return V(C)}function N(t){function s(E,m,p,S,b){if(typeof t!="function")return new F("Property `"+b+"` of component `"+p+"` has invalid PropType notation inside arrayOf.");var h=E[m];if(!Array.isArray(h)){var g=H(h);return new F("Invalid "+S+" `"+b+"` of type "+("`"+g+"` supplied to `"+p+"`, expected an array."))}for(var x=0;x<h.length;x++){var _=t(h,x,p,S,b+"["+x+"]",j);if(_ instanceof Error)return _}return null}return V(s)}function L(){function t(s,E,m,p,S){var b=s[E];if(!v(b)){var h=H(b);return new F("Invalid "+p+" `"+S+"` of type "+("`"+h+"` supplied to `"+m+"`, expected a single ReactElement."))}return null}return V(t)}function i(){function t(s,E,m,p,S){var b=s[E];if(!a.isValidElementType(b)){var h=H(b);return new F("Invalid "+p+" `"+S+"` of type "+("`"+h+"` supplied to `"+m+"`, expected a single ReactElement type."))}return null}return V(t)}function ne(t){function s(E,m,p,S,b){if(!(E[m]instanceof t)){var h=t.name||w,g=ve(E[m]);return new F("Invalid "+S+" `"+b+"` of type "+("`"+g+"` supplied to `"+p+"`, expected ")+("instance of `"+h+"`."))}return null}return V(s)}function Ee(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?d("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])."):d("Invalid argument supplied to oneOf, expected an array.")),C;function s(E,m,p,S,b){for(var h=E[m],g=0;g<t.length;g++)if(z(h,t[g]))return null;var x=JSON.stringify(t,function(B,n){var Z=te(n);return Z==="symbol"?String(n):n});return new F("Invalid "+S+" `"+b+"` of value `"+String(h)+"` "+("supplied to `"+p+"`, expected one of "+x+"."))}return V(s)}function ge(t){function s(E,m,p,S,b){if(typeof t!="function")return new F("Property `"+b+"` of component `"+p+"` has invalid PropType notation inside objectOf.");var h=E[m],g=H(h);if(g!=="object")return new F("Invalid "+S+" `"+b+"` of type "+("`"+g+"` supplied to `"+p+"`, expected an object."));for(var x in h)if(l(h,x)){var _=t(h,x,p,S,b+"."+x,j);if(_ instanceof Error)return _}return null}return V(s)}function fe(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&d("Invalid argument supplied to oneOfType, expected an instance of array."),C;for(var s=0;s<t.length;s++){var E=t[s];if(typeof E!="function")return d("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(E)+" at index "+s+"."),C}function m(p,S,b,h,g){for(var x=[],_=0;_<t.length;_++){var B=t[_],n=B(p,S,b,h,g,j);if(n==null)return null;n.data&&l(n.data,"expectedType")&&x.push(n.data.expectedType)}var Z=x.length>0?", expected one of type ["+x.join(", ")+"]":"";return new F("Invalid "+h+" `"+g+"` supplied to "+("`"+b+"`"+Z+"."))}return V(m)}function _e(){function t(s,E,m,p,S){return G(s[E])?null:new F("Invalid "+p+" `"+S+"` supplied to "+("`"+m+"`, expected a ReactNode."))}return V(t)}function le(t,s,E,m,p){return new F((t||"React class")+": "+s+" type `"+E+"."+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+p+"`.")}function de(t){function s(E,m,p,S,b){var h=E[m],g=H(h);if(g!=="object")return new F("Invalid "+S+" `"+b+"` of type `"+g+"` "+("supplied to `"+p+"`, expected `object`."));for(var x in t){var _=t[x];if(typeof _!="function")return le(p,S,b,x,te(_));var B=_(h,x,p,S,b+"."+x,j);if(B)return B}return null}return V(s)}function K(t){function s(E,m,p,S,b){var h=E[m],g=H(h);if(g!=="object")return new F("Invalid "+S+" `"+b+"` of type `"+g+"` "+("supplied to `"+p+"`, expected `object`."));var x=D({},E[m],t);for(var _ in x){var B=t[_];if(l(t,_)&&typeof B!="function")return le(p,S,b,_,te(B));if(!B)return new F("Invalid "+S+" `"+b+"` key `"+_+"` supplied to `"+p+"`.\nBad object: "+JSON.stringify(E[m],null," ")+` | ||
Valid keys: `+JSON.stringify(Object.keys(t),null," "));var n=B(h,_,p,S,b+"."+_,j);if(n)return n}return null}return V(s)}function G(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(G);if(t===null||v(t))return!0;var s=u(t);if(s){var E=s.call(t),m;if(s!==t.entries){for(;!(m=E.next()).done;)if(!G(m.value))return!1}else for(;!(m=E.next()).done;){var p=m.value;if(p&&!G(p[1]))return!1}}else return!1;return!0;default:return!1}}function oe(t,s){return t==="symbol"?!0:s?s["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&s instanceof Symbol:!1}function H(t){var s=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":oe(s,t)?"symbol":s}function te(t){if(typeof t>"u"||t===null)return""+t;var s=H(t);if(s==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return s}function se(t){var s=te(t);switch(s){case"array":case"object":return"an "+s;case"boolean":case"date":case"regexp":return"a "+s;default:return s}}function ve(t){return!t.constructor||!t.constructor.name?w:t.constructor.name}return M.checkPropTypes=O,M.resetWarningCache=O.resetWarningCache,M.PropTypes=M,M},Me}var $e,nr;function Pr(){if(nr)return $e;nr=1;var a=Ie();function D(){}function j(){}return j.resetWarningCache=D,$e=function(){function l(C,v,y,R,c,u){if(u!==a){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}l.isRequired=l;function O(){return l}var d={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:O,element:l,elementType:l,instanceOf:O,node:l,objectOf:O,oneOf:O,oneOfType:O,shape:O,exact:O,checkPropTypes:j,resetWarningCache:D};return d.PropTypes=d,d},$e}if(process.env.NODE_ENV!=="production"){var Cr=Xe(),wr=!0;xe.exports=Sr()(Cr.isElement,wr)}else xe.exports=Pr()();var xr=xe.exports;const ie=mr(xr),Fe=({data:a,onSelect:D,ASC:j,initialOption:l})=>{const[O,d]=ee.useState(!1),[C,v]=ee.useState(l||(j?a.sort((u,w)=>u.name.localeCompare(w.name))[0].name:a[0].name)),y=()=>d(!O),R=u=>{v(u),D(u),d(!1)};ee.useEffect(()=>{l&&v(l)},[l]);const c=j?[...a].sort((u,w)=>u.name.localeCompare(w.name)):a;return re.jsxs("div",{className:"dropdown",children:[re.jsxs("div",{className:"dropdown-header",onClick:y,children:[C,re.jsx("span",{className:"dropdown-icon",children:O?"▲":"▼"})]}),O&&re.jsx("div",{className:"dropdown-list",children:c.map((u,w)=>re.jsx("div",{className:"dropdown-item",onClick:()=>R(u.name),onMouseOver:M=>M.target.style.backgroundColor="#d3cdcd",onMouseOut:M=>M.target.style.backgroundColor="#fff",children:u.name},w))})]})};Fe.propTypes={data:ie.arrayOf(ie.shape({name:ie.string.isRequired,abbreviation:ie.string})).isRequired,onSelect:ie.func.isRequired,ASC:ie.bool,initialOption:ie.string};function jr(){const a=j=>{console.log("Selected option:",j)},D=[{name:"Option 1",abbreviation:"O1"},{name:"Option 2",abbreviation:"O2"}];return re.jsxs("div",{children:[re.jsx("h1",{children:"My Application"}),re.jsx(Fe,{data:D,onSelect:a,ASC:!0})]})}we(document.getElementById("root")).render(re.jsx(ee.StrictMode,{children:re.jsx(jr,{})})),ae.Dropdown_menu=Fe,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})}); | ||
*/var xe,Xe;function Tr(){if(Xe)return xe;Xe=1;var i=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;function l(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function C(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var w={},d=0;d<10;d++)w["_"+String.fromCharCode(d)]=d;var b=Object.getOwnPropertyNames(w).map(function(c){return w[c]});if(b.join("")!=="0123456789")return!1;var O={};return"abcdefghijklmnopqrst".split("").forEach(function(c){O[c]=c}),Object.keys(Object.assign({},O)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xe=C()?Object.assign:function(f,w){for(var d,b=l(f),O,c=1;c<arguments.length;c++){d=Object(arguments[c]);for(var m in d)M.call(d,m)&&(b[m]=d[m]);if(i){O=i(d);for(var k=0;k<O.length;k++)I.call(d,O[k])&&(b[O[k]]=d[O[k]])}}return b},xe}var je,He;function Ae(){if(He)return je;He=1;var i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return je=i,je}var Ie,Ze;function Qe(){return Ze||(Ze=1,Ie=Function.call.bind(Object.prototype.hasOwnProperty)),Ie}var ke,er;function Rr(){if(er)return ke;er=1;var i=function(){};if(process.env.NODE_ENV!=="production"){var M=Ae(),I={},l=Qe();i=function(f){var w="Warning: "+f;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}}}function C(f,w,d,b,O){if(process.env.NODE_ENV!=="production"){for(var c in f)if(l(f,c)){var m;try{if(typeof f[c]!="function"){var k=Error((b||"React class")+": "+d+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw k.name="Invariant Violation",k}m=f[c](w,c,b,d,null,M)}catch(z){m=z}if(m&&!(m instanceof Error)&&i((b||"React class")+": type specification of "+d+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in I)){I[m.message]=!0;var F=O?O():"";i("Failed "+d+" type: "+m.message+(F??""))}}}}return C.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(I={})},ke=C,ke}var De,rr;function Sr(){if(rr)return De;rr=1;var i=Ge(),M=Tr(),I=Ae(),l=Qe(),C=Rr(),f=function(){};process.env.NODE_ENV!=="production"&&(f=function(d){var b="Warning: "+d;typeof console<"u"&&console.error(b);try{throw new Error(b)}catch{}});function w(){return null}return De=function(d,b){var O=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function m(t){var u=t&&(O&&t[O]||t[c]);if(typeof u=="function")return u}var k="<<anonymous>>",F={array:U("array"),bigint:U("bigint"),bool:U("boolean"),func:U("function"),number:U("number"),object:U("object"),string:U("string"),symbol:U("symbol"),any:Y(),arrayOf:V,element:L(),elementType:o(),instanceOf:te,node:ge(),objectOf:me,oneOf:Ee,oneOfType:se,shape:ce,exact:K};function z(t,u){return t===u?t!==0||1/t===1/u:t!==t&&u!==u}function $(t,u){this.message=t,this.data=u&&typeof u=="object"?u:{},this.stack=""}$.prototype=Error.prototype;function N(t){if(process.env.NODE_ENV!=="production")var u={},E=0;function h(R,p,y,g,P,_,B){if(g=g||k,_=_||y,B!==I){if(b){var n=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 n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=g+":"+y;!u[Z]&&E<3&&(f("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+g+"`. 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."),u[Z]=!0,E++)}}return p[y]==null?R?p[y]===null?new $("The "+P+" `"+_+"` is marked as required "+("in `"+g+"`, but its value is `null`.")):new $("The "+P+" `"+_+"` is marked as required in "+("`"+g+"`, but its value is `undefined`.")):null:t(p,y,g,P,_)}var v=h.bind(null,!1);return v.isRequired=h.bind(null,!0),v}function U(t){function u(E,h,v,R,p,y){var g=E[h],P=H(g);if(P!==t){var _=re(g);return new $("Invalid "+R+" `"+p+"` of type "+("`"+_+"` supplied to `"+v+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return N(u)}function Y(){return N(w)}function V(t){function u(E,h,v,R,p){if(typeof t!="function")return new $("Property `"+p+"` of component `"+v+"` has invalid PropType notation inside arrayOf.");var y=E[h];if(!Array.isArray(y)){var g=H(y);return new $("Invalid "+R+" `"+p+"` of type "+("`"+g+"` supplied to `"+v+"`, expected an array."))}for(var P=0;P<y.length;P++){var _=t(y,P,v,R,p+"["+P+"]",I);if(_ instanceof Error)return _}return null}return N(u)}function L(){function t(u,E,h,v,R){var p=u[E];if(!d(p)){var y=H(p);return new $("Invalid "+v+" `"+R+"` of type "+("`"+y+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return N(t)}function o(){function t(u,E,h,v,R){var p=u[E];if(!i.isValidElementType(p)){var y=H(p);return new $("Invalid "+v+" `"+R+"` of type "+("`"+y+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return N(t)}function te(t){function u(E,h,v,R,p){if(!(E[h]instanceof t)){var y=t.name||k,g=le(E[h]);return new $("Invalid "+R+" `"+p+"` of type "+("`"+g+"` supplied to `"+v+"`, expected ")+("instance of `"+y+"`."))}return null}return N(u)}function Ee(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?f("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])."):f("Invalid argument supplied to oneOf, expected an array.")),w;function u(E,h,v,R,p){for(var y=E[h],g=0;g<t.length;g++)if(z(y,t[g]))return null;var P=JSON.stringify(t,function(B,n){var Z=re(n);return Z==="symbol"?String(n):n});return new $("Invalid "+R+" `"+p+"` of value `"+String(y)+"` "+("supplied to `"+v+"`, expected one of "+P+"."))}return N(u)}function me(t){function u(E,h,v,R,p){if(typeof t!="function")return new $("Property `"+p+"` of component `"+v+"` has invalid PropType notation inside objectOf.");var y=E[h],g=H(y);if(g!=="object")return new $("Invalid "+R+" `"+p+"` of type "+("`"+g+"` supplied to `"+v+"`, expected an object."));for(var P in y)if(l(y,P)){var _=t(y,P,v,R,p+"."+P,I);if(_ instanceof Error)return _}return null}return N(u)}function se(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),w;for(var u=0;u<t.length;u++){var E=t[u];if(typeof E!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(E)+" at index "+u+"."),w}function h(v,R,p,y,g){for(var P=[],_=0;_<t.length;_++){var B=t[_],n=B(v,R,p,y,g,I);if(n==null)return null;n.data&&l(n.data,"expectedType")&&P.push(n.data.expectedType)}var Z=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new $("Invalid "+y+" `"+g+"` supplied to "+("`"+p+"`"+Z+"."))}return N(h)}function ge(){function t(u,E,h,v,R){return G(u[E])?null:new $("Invalid "+v+" `"+R+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return N(t)}function fe(t,u,E,h,v){return new $((t||"React class")+": "+u+" type `"+E+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+v+"`.")}function ce(t){function u(E,h,v,R,p){var y=E[h],g=H(y);if(g!=="object")return new $("Invalid "+R+" `"+p+"` of type `"+g+"` "+("supplied to `"+v+"`, expected `object`."));for(var P in t){var _=t[P];if(typeof _!="function")return fe(v,R,p,P,re(_));var B=_(y,P,v,R,p+"."+P,I);if(B)return B}return null}return N(u)}function K(t){function u(E,h,v,R,p){var y=E[h],g=H(y);if(g!=="object")return new $("Invalid "+R+" `"+p+"` of type `"+g+"` "+("supplied to `"+v+"`, expected `object`."));var P=M({},E[h],t);for(var _ in P){var B=t[_];if(l(t,_)&&typeof B!="function")return fe(v,R,p,_,re(B));if(!B)return new $("Invalid "+R+" `"+p+"` key `"+_+"` supplied to `"+v+"`.\nBad object: "+JSON.stringify(E[h],null," ")+` | ||
Valid keys: `+JSON.stringify(Object.keys(t),null," "));var n=B(y,_,v,R,p+"."+_,I);if(n)return n}return null}return N(u)}function G(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(G);if(t===null||d(t))return!0;var u=m(t);if(u){var E=u.call(t),h;if(u!==t.entries){for(;!(h=E.next()).done;)if(!G(h.value))return!1}else for(;!(h=E.next()).done;){var v=h.value;if(v&&!G(v[1]))return!1}}else return!1;return!0;default:return!1}}function ne(t,u){return t==="symbol"?!0:u?u["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&u instanceof Symbol:!1}function H(t){var u=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":ne(u,t)?"symbol":u}function re(t){if(typeof t>"u"||t===null)return""+t;var u=H(t);if(u==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return u}function oe(t){var u=re(t);switch(u){case"array":case"object":return"an "+u;case"boolean":case"date":case"regexp":return"a "+u;default:return u}}function le(t){return!t.constructor||!t.constructor.name?k:t.constructor.name}return F.checkPropTypes=C,F.resetWarningCache=C.resetWarningCache,F.PropTypes=F,F},De}var Me,tr;function Or(){if(tr)return Me;tr=1;var i=Ae();function M(){}function I(){}return I.resetWarningCache=M,Me=function(){function l(w,d,b,O,c,m){if(m!==i){var k=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 k.name="Invariant Violation",k}}l.isRequired=l;function C(){return l}var f={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:C,element:l,elementType:l,instanceOf:C,node:l,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:I,resetWarningCache:M};return f.PropTypes=f,f},Me}if(process.env.NODE_ENV!=="production"){var Pr=Ge(),Cr=!0;we.exports=Sr()(Pr.isElement,Cr)}else we.exports=Or()();var wr=we.exports;const ae=hr(wr),nr=({data:i,onSelect:M,ASC:I,initialOption:l})=>{ee.useState(!1),ee.useState(l||(I?i.sort((C,f)=>C.name.localeCompare(f.name))[0].name:i[0].name))};nr.propTypes={data:ae.arrayOf(ae.shape({name:ae.string.isRequired,abbreviation:ae.string})).isRequired,onSelect:ae.func.isRequired,ASC:ae.bool,initialOption:ae.string},Ce(document.getElementById("root")).render(Ne.jsx(ee.StrictMode,{children:Ne.jsx(nr,{})}))}); |
{ | ||
"name": "dropdown_react_aqdas", | ||
"private": false, | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/my-component-library.umd.js", |
@@ -1,22 +0,30 @@ | ||
import React from 'react'; | ||
import DropDown from './components/DropdownMenu'; | ||
import React, { useState, useEffect } from "react"; | ||
import PropTypes from "prop-types"; | ||
function App() { | ||
const handleSelect = (option) => { | ||
console.log('Selected option:', option); | ||
}; | ||
const DropDown = ({ data, onSelect, ASC, initialOption }) => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
const [selectedOption, setSelectedOption] = useState( | ||
initialOption || | ||
(ASC | ||
? data.sort((a, b) => a.name.localeCompare(b.name))[0].name | ||
: data[0].name) | ||
); | ||
const options = [ | ||
{ name: 'Option 1', abbreviation: 'O1' }, | ||
{ name: 'Option 2', abbreviation: 'O2' }, | ||
]; | ||
const toggleDropDown = () => setIsOpen(!isOpen); | ||
return ( | ||
<div> | ||
<h1>My Application</h1> | ||
<DropDown data={options} onSelect={handleSelect} ASC={true} /> | ||
</div> | ||
); | ||
} | ||
// Rest of the component code... | ||
}; | ||
export default App; | ||
DropDown.propTypes = { | ||
data: PropTypes.arrayOf( | ||
PropTypes.shape({ | ||
name: PropTypes.string.isRequired, | ||
abbreviation: PropTypes.string, | ||
}) | ||
).isRequired, | ||
onSelect: PropTypes.func.isRequired, | ||
ASC: PropTypes.bool, | ||
initialOption: PropTypes.string, | ||
}; | ||
export { DropDown }; |
import { StrictMode } from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import App from './App.jsx' | ||
import './index.css' | ||
import Dropdown_menu from './components/DropdownMenu.jsx' | ||
import { DropDown } from './App.jsx' | ||
createRoot(document.getElementById('root')).render( | ||
<StrictMode> | ||
<App /> | ||
</StrictMode>, | ||
<DropDown /> | ||
</StrictMode>, | ||
) | ||
export { Dropdown_menu } | ||
90811
15
1680