@bitnoi.se/react-scheduler
Version:
<div align="center"> <img src="logo.svg" style="height: 60px" alt="@bitnoise/react-scheduler"> <hr /> <p align="center"> ✨ <a href="https://scheduler.bitnoise.pl/">https://scheduler.bitnoise.pl/</a> ✨ <br/> Open sourced, typescript orien
1,191 lines (1,175 loc) • 174 kB
JavaScript
var cn = Object.defineProperty;
var ln = (e, r, t) => r in e ? cn(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
var er = (e, r, t) => (ln(e, typeof r != "symbol" ? r + "" : r, t), t);
import { jsx as O, jsxs as oe, Fragment as Ft } from "react/jsx-runtime";
import * as W from "react";
import Ie, { useRef as ge, useContext as Re, useLayoutEffect as Pr, useMemo as Oe, useDebugValue as tr, createElement as dn, createContext as Ar, useState as fe, useCallback as ye, useEffect as ue, forwardRef as un } from "react";
var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, je = {}, hn = {
get exports() {
return je;
},
set exports(e) {
je = e;
}
}, re = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var rr;
function fn() {
if (rr)
return re;
rr = 1;
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
function Z(p) {
if (typeof p == "object" && p !== null) {
var C = p.$$typeof;
switch (C) {
case r:
switch (p = p.type, p) {
case l:
case c:
case n:
case s:
case o:
case u:
return p;
default:
switch (p = p && p.$$typeof, p) {
case a:
case d:
case v:
case m:
case i:
return p;
default:
return C;
}
}
case t:
return C;
}
}
}
function A(p) {
return Z(p) === c;
}
return re.AsyncMode = l, re.ConcurrentMode = c, re.ContextConsumer = a, re.ContextProvider = i, re.Element = r, re.ForwardRef = d, re.Fragment = n, re.Lazy = v, re.Memo = m, re.Portal = t, re.Profiler = s, re.StrictMode = o, re.Suspense = u, re.isAsyncMode = function(p) {
return A(p) || Z(p) === l;
}, re.isConcurrentMode = A, re.isContextConsumer = function(p) {
return Z(p) === a;
}, re.isContextProvider = function(p) {
return Z(p) === i;
}, re.isElement = function(p) {
return typeof p == "object" && p !== null && p.$$typeof === r;
}, re.isForwardRef = function(p) {
return Z(p) === d;
}, re.isFragment = function(p) {
return Z(p) === n;
}, re.isLazy = function(p) {
return Z(p) === v;
}, re.isMemo = function(p) {
return Z(p) === m;
}, re.isPortal = function(p) {
return Z(p) === t;
}, re.isProfiler = function(p) {
return Z(p) === s;
}, re.isStrictMode = function(p) {
return Z(p) === o;
}, re.isSuspense = function(p) {
return Z(p) === u;
}, re.isValidElementType = function(p) {
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === s || p === o || p === u || p === f || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === m || p.$$typeof === i || p.$$typeof === a || p.$$typeof === d || p.$$typeof === _ || p.$$typeof === E || p.$$typeof === P || p.$$typeof === $);
}, re.typeOf = Z, re;
}
var ne = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var nr;
function pn() {
return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
function Z(y) {
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
y === n || y === c || y === s || y === o || y === u || y === f || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === m || y.$$typeof === i || y.$$typeof === a || y.$$typeof === d || y.$$typeof === _ || y.$$typeof === E || y.$$typeof === P || y.$$typeof === $);
}
function A(y) {
if (typeof y == "object" && y !== null) {
var se = y.$$typeof;
switch (se) {
case r:
var ae = y.type;
switch (ae) {
case l:
case c:
case n:
case s:
case o:
case u:
return ae;
default:
var Q = ae && ae.$$typeof;
switch (Q) {
case a:
case d:
case v:
case m:
case i:
return Q;
default:
return se;
}
}
case t:
return se;
}
}
}
var p = l, C = c, T = a, F = i, B = r, L = d, J = n, K = v, D = m, k = t, w = s, Y = o, g = u, I = !1;
function j(y) {
return I || (I = !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.")), U(y) || A(y) === l;
}
function U(y) {
return A(y) === c;
}
function ee(y) {
return A(y) === a;
}
function M(y) {
return A(y) === i;
}
function S(y) {
return typeof y == "object" && y !== null && y.$$typeof === r;
}
function b(y) {
return A(y) === d;
}
function N(y) {
return A(y) === n;
}
function h(y) {
return A(y) === v;
}
function z(y) {
return A(y) === m;
}
function x(y) {
return A(y) === t;
}
function X(y) {
return A(y) === s;
}
function V(y) {
return A(y) === o;
}
function q(y) {
return A(y) === u;
}
ne.AsyncMode = p, ne.ConcurrentMode = C, ne.ContextConsumer = T, ne.ContextProvider = F, ne.Element = B, ne.ForwardRef = L, ne.Fragment = J, ne.Lazy = K, ne.Memo = D, ne.Portal = k, ne.Profiler = w, ne.StrictMode = Y, ne.Suspense = g, ne.isAsyncMode = j, ne.isConcurrentMode = U, ne.isContextConsumer = ee, ne.isContextProvider = M, ne.isElement = S, ne.isForwardRef = b, ne.isFragment = N, ne.isLazy = h, ne.isMemo = z, ne.isPortal = x, ne.isProfiler = X, ne.isStrictMode = V, ne.isSuspense = q, ne.isValidElementType = Z, ne.typeOf = A;
}()), ne;
}
(function(e) {
process.env.NODE_ENV === "production" ? e.exports = fn() : e.exports = pn();
})(hn);
function mn(e) {
function r(M, S, b, N, h) {
for (var z = 0, x = 0, X = 0, V = 0, q, y, se = 0, ae = 0, Q, he = Q = q = 0, te = 0, le = 0, tt = 0, de = 0, it = b.length, rt = it - 1, Ce, G = "", ie = "", yt = "", gt = "", Te; te < it; ) {
if (y = b.charCodeAt(te), te === rt && x + V + X + z !== 0 && (x !== 0 && (y = x === 47 ? 10 : 47), V = X = z = 0, it++, rt++), x + V + X + z === 0) {
if (te === rt && (0 < le && (G = G.replace(f, "")), 0 < G.trim().length)) {
switch (y) {
case 32:
case 9:
case 59:
case 13:
case 10:
break;
default:
G += b.charAt(te);
}
y = 59;
}
switch (y) {
case 123:
for (G = G.trim(), q = G.charCodeAt(0), Q = 1, de = ++te; te < it; ) {
switch (y = b.charCodeAt(te)) {
case 123:
Q++;
break;
case 125:
Q--;
break;
case 47:
switch (y = b.charCodeAt(te + 1)) {
case 42:
case 47:
e: {
for (he = te + 1; he < rt; ++he)
switch (b.charCodeAt(he)) {
case 47:
if (y === 42 && b.charCodeAt(he - 1) === 42 && te + 2 !== he) {
te = he + 1;
break e;
}
break;
case 10:
if (y === 47) {
te = he + 1;
break e;
}
}
te = he;
}
}
break;
case 91:
y++;
case 40:
y++;
case 34:
case 39:
for (; te++ < rt && b.charCodeAt(te) !== y; )
;
}
if (Q === 0)
break;
te++;
}
switch (Q = b.substring(de, te), q === 0 && (q = (G = G.replace(u, "").trim()).charCodeAt(0)), q) {
case 64:
switch (0 < le && (G = G.replace(f, "")), y = G.charCodeAt(1), y) {
case 100:
case 109:
case 115:
case 45:
le = S;
break;
default:
le = Y;
}
if (Q = r(S, le, Q, y, h + 1), de = Q.length, 0 < I && (le = t(Y, G, tt), Te = a(3, Q, le, S, D, K, de, y, h, N), G = le.join(""), Te !== void 0 && (de = (Q = Te.trim()).length) === 0 && (y = 0, Q = "")), 0 < de)
switch (y) {
case 115:
G = G.replace(C, i);
case 100:
case 109:
case 45:
Q = G + "{" + Q + "}";
break;
case 107:
G = G.replace(P, "$1 $2"), Q = G + "{" + Q + "}", Q = w === 1 || w === 2 && s("@" + Q, 3) ? "@-webkit-" + Q + "@" + Q : "@" + Q;
break;
default:
Q = G + Q, N === 112 && (Q = (ie += Q, ""));
}
else
Q = "";
break;
default:
Q = r(S, t(S, G, tt), Q, N, h + 1);
}
yt += Q, Q = tt = le = he = q = 0, G = "", y = b.charCodeAt(++te);
break;
case 125:
case 59:
if (G = (0 < le ? G.replace(f, "") : G).trim(), 1 < (de = G.length))
switch (he === 0 && (q = G.charCodeAt(0), q === 45 || 96 < q && 123 > q) && (de = (G = G.replace(" ", ":")).length), 0 < I && (Te = a(1, G, S, M, D, K, ie.length, N, h, N)) !== void 0 && (de = (G = Te.trim()).length) === 0 && (G = "\0\0"), q = G.charCodeAt(0), y = G.charCodeAt(1), q) {
case 0:
break;
case 64:
if (y === 105 || y === 99) {
gt += G + b.charAt(te);
break;
}
default:
G.charCodeAt(de - 1) !== 58 && (ie += o(G, q, y, G.charCodeAt(2)));
}
tt = le = he = q = 0, G = "", y = b.charCodeAt(++te);
}
}
switch (y) {
case 13:
case 10:
x === 47 ? x = 0 : 1 + q === 0 && N !== 107 && 0 < G.length && (le = 1, G += "\0"), 0 < I * U && a(0, G, S, M, D, K, ie.length, N, h, N), K = 1, D++;
break;
case 59:
case 125:
if (x + V + X + z === 0) {
K++;
break;
}
default:
switch (K++, Ce = b.charAt(te), y) {
case 9:
case 32:
if (V + z + x === 0)
switch (se) {
case 44:
case 58:
case 9:
case 32:
Ce = "";
break;
default:
y !== 32 && (Ce = " ");
}
break;
case 0:
Ce = "\\0";
break;
case 12:
Ce = "\\f";
break;
case 11:
Ce = "\\v";
break;
case 38:
V + x + z === 0 && (le = tt = 1, Ce = "\f" + Ce);
break;
case 108:
if (V + x + z + k === 0 && 0 < he)
switch (te - he) {
case 2:
se === 112 && b.charCodeAt(te - 3) === 58 && (k = se);
case 8:
ae === 111 && (k = ae);
}
break;
case 58:
V + x + z === 0 && (he = te);
break;
case 44:
x + X + V + z === 0 && (le = 1, Ce += "\r");
break;
case 34:
case 39:
x === 0 && (V = V === y ? 0 : V === 0 ? y : V);
break;
case 91:
V + x + X === 0 && z++;
break;
case 93:
V + x + X === 0 && z--;
break;
case 41:
V + x + z === 0 && X--;
break;
case 40:
if (V + x + z === 0) {
if (q === 0)
switch (2 * se + 3 * ae) {
case 533:
break;
default:
q = 1;
}
X++;
}
break;
case 64:
x + X + V + z + he + Q === 0 && (Q = 1);
break;
case 42:
case 47:
if (!(0 < V + z + X))
switch (x) {
case 0:
switch (2 * y + 3 * b.charCodeAt(te + 1)) {
case 235:
x = 47;
break;
case 220:
de = te, x = 42;
}
break;
case 42:
y === 47 && se === 42 && de + 2 !== te && (b.charCodeAt(de + 2) === 33 && (ie += b.substring(de, te + 1)), Ce = "", x = 0);
}
}
x === 0 && (G += Ce);
}
ae = se, se = y, te++;
}
if (de = ie.length, 0 < de) {
if (le = S, 0 < I && (Te = a(2, ie, le, M, D, K, de, N, h, N), Te !== void 0 && (ie = Te).length === 0))
return gt + ie + yt;
if (ie = le.join(",") + "{" + ie + "}", w * k !== 0) {
switch (w !== 2 || s(ie, 2) || (k = 0), k) {
case 111:
ie = ie.replace(A, ":-moz-$1") + ie;
break;
case 112:
ie = ie.replace(Z, "::-webkit-input-$1") + ie.replace(Z, "::-moz-$1") + ie.replace(Z, ":-ms-input-$1") + ie;
}
k = 0;
}
}
return gt + ie + yt;
}
function t(M, S, b) {
var N = S.trim().split(_);
S = N;
var h = N.length, z = M.length;
switch (z) {
case 0:
case 1:
var x = 0;
for (M = z === 0 ? "" : M[0] + " "; x < h; ++x)
S[x] = n(M, S[x], b).trim();
break;
default:
var X = x = 0;
for (S = []; x < h; ++x)
for (var V = 0; V < z; ++V)
S[X++] = n(M[V] + " ", N[x], b).trim();
}
return S;
}
function n(M, S, b) {
var N = S.charCodeAt(0);
switch (33 > N && (N = (S = S.trim()).charCodeAt(0)), N) {
case 38:
return S.replace(E, "$1" + M.trim());
case 58:
return M.trim() + S.replace(E, "$1" + M.trim());
default:
if (0 < 1 * b && 0 < S.indexOf("\f"))
return S.replace(E, (M.charCodeAt(0) === 58 ? "" : "$1") + M.trim());
}
return M + S;
}
function o(M, S, b, N) {
var h = M + ";", z = 2 * S + 3 * b + 4 * N;
if (z === 944) {
M = h.indexOf(":", 9) + 1;
var x = h.substring(M, h.length - 1).trim();
return x = h.substring(0, M).trim() + x + ";", w === 1 || w === 2 && s(x, 1) ? "-webkit-" + x + x : x;
}
if (w === 0 || w === 2 && !s(h, 1))
return h;
switch (z) {
case 1015:
return h.charCodeAt(10) === 97 ? "-webkit-" + h + h : h;
case 951:
return h.charCodeAt(3) === 116 ? "-webkit-" + h + h : h;
case 963:
return h.charCodeAt(5) === 110 ? "-webkit-" + h + h : h;
case 1009:
if (h.charCodeAt(4) !== 100)
break;
case 969:
case 942:
return "-webkit-" + h + h;
case 978:
return "-webkit-" + h + "-moz-" + h + h;
case 1019:
case 983:
return "-webkit-" + h + "-moz-" + h + "-ms-" + h + h;
case 883:
if (h.charCodeAt(8) === 45)
return "-webkit-" + h + h;
if (0 < h.indexOf("image-set(", 11))
return h.replace(J, "$1-webkit-$2") + h;
break;
case 932:
if (h.charCodeAt(4) === 45)
switch (h.charCodeAt(5)) {
case 103:
return "-webkit-box-" + h.replace("-grow", "") + "-webkit-" + h + "-ms-" + h.replace("grow", "positive") + h;
case 115:
return "-webkit-" + h + "-ms-" + h.replace("shrink", "negative") + h;
case 98:
return "-webkit-" + h + "-ms-" + h.replace("basis", "preferred-size") + h;
}
return "-webkit-" + h + "-ms-" + h + h;
case 964:
return "-webkit-" + h + "-ms-flex-" + h + h;
case 1023:
if (h.charCodeAt(8) !== 99)
break;
return x = h.substring(h.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + x + "-webkit-" + h + "-ms-flex-pack" + x + h;
case 1005:
return v.test(h) ? h.replace(m, ":-webkit-") + h.replace(m, ":-moz-") + h : h;
case 1e3:
switch (x = h.substring(13).trim(), S = x.indexOf("-") + 1, x.charCodeAt(0) + x.charCodeAt(S)) {
case 226:
x = h.replace(p, "tb");
break;
case 232:
x = h.replace(p, "tb-rl");
break;
case 220:
x = h.replace(p, "lr");
break;
default:
return h;
}
return "-webkit-" + h + "-ms-" + x + h;
case 1017:
if (h.indexOf("sticky", 9) === -1)
break;
case 975:
switch (S = (h = M).length - 10, x = (h.charCodeAt(S) === 33 ? h.substring(0, S) : h).substring(M.indexOf(":", 7) + 1).trim(), z = x.charCodeAt(0) + (x.charCodeAt(7) | 0)) {
case 203:
if (111 > x.charCodeAt(8))
break;
case 115:
h = h.replace(x, "-webkit-" + x) + ";" + h;
break;
case 207:
case 102:
h = h.replace(x, "-webkit-" + (102 < z ? "inline-" : "") + "box") + ";" + h.replace(x, "-webkit-" + x) + ";" + h.replace(x, "-ms-" + x + "box") + ";" + h;
}
return h + ";";
case 938:
if (h.charCodeAt(5) === 45)
switch (h.charCodeAt(6)) {
case 105:
return x = h.replace("-items", ""), "-webkit-" + h + "-webkit-box-" + x + "-ms-flex-" + x + h;
case 115:
return "-webkit-" + h + "-ms-flex-item-" + h.replace(F, "") + h;
default:
return "-webkit-" + h + "-ms-flex-line-pack" + h.replace("align-content", "").replace(F, "") + h;
}
break;
case 973:
case 989:
if (h.charCodeAt(3) !== 45 || h.charCodeAt(4) === 122)
break;
case 931:
case 953:
if (L.test(M) === !0)
return (x = M.substring(M.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(M.replace("stretch", "fill-available"), S, b, N).replace(":fill-available", ":stretch") : h.replace(x, "-webkit-" + x) + h.replace(x, "-moz-" + x.replace("fill-", "")) + h;
break;
case 962:
if (h = "-webkit-" + h + (h.charCodeAt(5) === 102 ? "-ms-" + h : "") + h, b + N === 211 && h.charCodeAt(13) === 105 && 0 < h.indexOf("transform", 10))
return h.substring(0, h.indexOf(";", 27) + 1).replace($, "$1-webkit-$2") + h;
}
return h;
}
function s(M, S) {
var b = M.indexOf(S === 1 ? ":" : "{"), N = M.substring(0, S !== 3 ? b : 10);
return b = M.substring(b + 1, M.length - 1), j(S !== 2 ? N : N.replace(B, "$1"), b, S);
}
function i(M, S) {
var b = o(S, S.charCodeAt(0), S.charCodeAt(1), S.charCodeAt(2));
return b !== S + ";" ? b.replace(T, " or ($1)").substring(4) : "(" + S + ")";
}
function a(M, S, b, N, h, z, x, X, V, q) {
for (var y = 0, se = S, ae; y < I; ++y)
switch (ae = g[y].call(d, M, se, b, N, h, z, x, X, V, q)) {
case void 0:
case !1:
case !0:
case null:
break;
default:
se = ae;
}
if (se !== S)
return se;
}
function l(M) {
switch (M) {
case void 0:
case null:
I = g.length = 0;
break;
default:
if (typeof M == "function")
g[I++] = M;
else if (typeof M == "object")
for (var S = 0, b = M.length; S < b; ++S)
l(M[S]);
else
U = !!M | 0;
}
return l;
}
function c(M) {
return M = M.prefix, M !== void 0 && (j = null, M ? typeof M != "function" ? w = 1 : (w = 2, j = M) : w = 0), c;
}
function d(M, S) {
var b = M;
if (33 > b.charCodeAt(0) && (b = b.trim()), ee = b, b = [ee], 0 < I) {
var N = a(-1, S, b, b, D, K, 0, 0, 0, 0);
N !== void 0 && typeof N == "string" && (S = N);
}
var h = r(Y, b, S, 0, 0);
return 0 < I && (N = a(-2, h, b, b, D, K, h.length, 0, 0, 0), N !== void 0 && (h = N)), ee = "", k = 0, K = D = 1, h;
}
var u = /^\0+/g, f = /[\0\r\f]/g, m = /: */g, v = /zoo|gra/, $ = /([,: ])(transform)/g, _ = /,\r+?/g, E = /([\t\r\n ])*\f?&/g, P = /@(k\w+)\s*(\S*)\s*/, Z = /::(place)/g, A = /:(read-only)/g, p = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, T = /([\s\S]*?);/g, F = /-self|flex-/g, B = /[^]*?(:[rp][el]a[\w-]+)[^]*/, L = /stretch|:\s*\w+\-(?:conte|avail)/, J = /([^-])(image-set\()/, K = 1, D = 1, k = 0, w = 1, Y = [], g = [], I = 0, j = null, U = 0, ee = "";
return d.use = l, d.set = c, e !== void 0 && c(e), d;
}
var vn = {
animationIterationCount: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
// SVG-related properties
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
};
function yn(e) {
var r = /* @__PURE__ */ Object.create(null);
return function(t) {
return r[t] === void 0 && (r[t] = e(t)), r[t];
};
}
var gn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, or = /* @__PURE__ */ yn(
function(e) {
return gn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), Bt = je, wn = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, xn = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, bn = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, Rr = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, jt = {};
jt[Bt.ForwardRef] = bn;
jt[Bt.Memo] = Rr;
function sr(e) {
return Bt.isMemo(e) ? Rr : jt[e.$$typeof] || wn;
}
var Cn = Object.defineProperty, Sn = Object.getOwnPropertyNames, ir = Object.getOwnPropertySymbols, kn = Object.getOwnPropertyDescriptor, Mn = Object.getPrototypeOf, ar = Object.prototype;
function Lr(e, r, t) {
if (typeof r != "string") {
if (ar) {
var n = Mn(r);
n && n !== ar && Lr(e, n, t);
}
var o = Sn(r);
ir && (o = o.concat(ir(r)));
for (var s = sr(e), i = sr(r), a = 0; a < o.length; ++a) {
var l = o[a];
if (!xn[l] && !(t && t[l]) && !(i && i[l]) && !(s && s[l])) {
var c = kn(r, l);
try {
Cn(e, l, c);
} catch {
}
}
}
}
return e;
}
var $n = Lr;
function Se() {
return (Se = Object.assign || function(e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r];
for (var n in t)
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
}
return e;
}).apply(this, arguments);
}
var cr = function(e, r) {
for (var t = [e[0]], n = 0, o = r.length; n < o; n += 1)
t.push(r[n], e[n + 1]);
return t;
}, St = function(e) {
return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !je.typeOf(e);
}, ht = Object.freeze([]), Pe = Object.freeze({});
function ze(e) {
return typeof e == "function";
}
function kt(e) {
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
}
function zt(e) {
return e && typeof e.styledComponentId == "string";
}
var Ve = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Vt = typeof window < "u" && "HTMLElement" in window, _n = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production")), En = {}, Tn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
- Are you trying to reuse it across renders?
- Are you accidentally calling collectStyles twice?
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
- Does this error occur on the client and is your target falsy?
- Does this error occur on the server and is the sheet falsy?
`, 5: `The clone method cannot be used on the client!
- Are you running in a client-like environment on the server?
- Are you trying to run SSR on the client?
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
- Are you using a custom target that isn't mounted?
- Does your document not have a valid head element?
- Have you accidentally removed a style tag manually?
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
`, 14: `ThemeProvider: "theme" prop is required.
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
as for instance in your render method then you may be running into this limitation.
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
Has styled-components' style tag been unmounted or altered by another script?
` } : {};
function Dn() {
for (var e = arguments.length <= 0 ? void 0 : arguments[0], r = [], t = 1, n = arguments.length; t < n; t += 1)
r.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
return r.forEach(function(o) {
e = e.replace(/%[a-z]/, o);
}), e;
}
function $e(e) {
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(Dn.apply(void 0, [Tn[e]].concat(t)).trim());
}
var On = function() {
function e(t) {
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
}
var r = e.prototype;
return r.indexOfGroup = function(t) {
for (var n = 0, o = 0; o < t; o++)
n += this.groupSizes[o];
return n;
}, r.insertRules = function(t, n) {
if (t >= this.groupSizes.length) {
for (var o = this.groupSizes, s = o.length, i = s; t >= i; )
(i <<= 1) < 0 && $e(16, "" + t);
this.groupSizes = new Uint32Array(i), this.groupSizes.set(o), this.length = i;
for (var a = s; a < i; a++)
this.groupSizes[a] = 0;
}
for (var l = this.indexOfGroup(t + 1), c = 0, d = n.length; c < d; c++)
this.tag.insertRule(l, n[c]) && (this.groupSizes[t]++, l++);
}, r.clearGroup = function(t) {
if (t < this.length) {
var n = this.groupSizes[t], o = this.indexOfGroup(t), s = o + n;
this.groupSizes[t] = 0;
for (var i = o; i < s; i++)
this.tag.deleteRule(o);
}
}, r.getGroup = function(t) {
var n = "";
if (t >= this.length || this.groupSizes[t] === 0)
return n;
for (var o = this.groupSizes[t], s = this.indexOfGroup(t), i = s + o, a = s; a < i; a++)
n += this.tag.getRule(a) + `/*!sc*/
`;
return n;
}, e;
}(), dt = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), ot = 1, at = function(e) {
if (dt.has(e))
return dt.get(e);
for (; ft.has(ot); )
ot++;
var r = ot++;
return process.env.NODE_ENV !== "production" && ((0 | r) < 0 || r > 1 << 30) && $e(16, "" + r), dt.set(e, r), ft.set(r, e), r;
}, Pn = function(e) {
return ft.get(e);
}, An = function(e, r) {
r >= ot && (ot = r + 1), dt.set(e, r), ft.set(r, e);
}, Rn = "style[" + Ve + '][data-styled-version="5.3.8"]', Ln = new RegExp("^" + Ve + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Yn = function(e, r, t) {
for (var n, o = t.split(","), s = 0, i = o.length; s < i; s++)
(n = o[s]) && e.registerName(r, n);
}, In = function(e, r) {
for (var t = (r.textContent || "").split(`/*!sc*/
`), n = [], o = 0, s = t.length; o < s; o++) {
var i = t[o].trim();
if (i) {
var a = i.match(Ln);
if (a) {
var l = 0 | parseInt(a[1], 10), c = a[2];
l !== 0 && (An(c, l), Yn(e, c, a[3]), e.getTag().insertRules(l, n)), n.length = 0;
} else
n.push(i);
}
}
}, Nn = function() {
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
}, Yr = function(e) {
var r = document.head, t = e || r, n = document.createElement("style"), o = function(a) {
for (var l = a.childNodes, c = l.length; c >= 0; c--) {
var d = l[c];
if (d && d.nodeType === 1 && d.hasAttribute(Ve))
return d;
}
}(t), s = o !== void 0 ? o.nextSibling : null;
n.setAttribute(Ve, "active"), n.setAttribute("data-styled-version", "5.3.8");
var i = Nn();
return i && n.setAttribute("nonce", i), t.insertBefore(n, s), n;
}, Hn = function() {
function e(t) {
var n = this.element = Yr(t);
n.appendChild(document.createTextNode("")), this.sheet = function(o) {
if (o.sheet)
return o.sheet;
for (var s = document.styleSheets, i = 0, a = s.length; i < a; i++) {
var l = s[i];
if (l.ownerNode === o)
return l;
}
$e(17);
}(n), this.length = 0;
}
var r = e.prototype;
return r.insertRule = function(t, n) {
try {
return this.sheet.insertRule(n, t), this.length++, !0;
} catch {
return !1;
}
}, r.deleteRule = function(t) {
this.sheet.deleteRule(t), this.length--;
}, r.getRule = function(t) {
var n = this.sheet.cssRules[t];
return n !== void 0 && typeof n.cssText == "string" ? n.cssText : "";
}, e;
}(), Zn = function() {
function e(t) {
var n = this.element = Yr(t);
this.nodes = n.childNodes, this.length = 0;
}
var r = e.prototype;
return r.insertRule = function(t, n) {
if (t <= this.length && t >= 0) {
var o = document.createTextNode(n), s = this.nodes[t];
return this.element.insertBefore(o, s || null), this.length++, !0;
}
return !1;
}, r.deleteRule = function(t) {
this.element.removeChild(this.nodes[t]), this.length--;
}, r.getRule = function(t) {
return t < this.length ? this.nodes[t].textContent : "";
}, e;
}(), Wn = function() {
function e(t) {
this.rules = [], this.length = 0;
}
var r = e.prototype;
return r.insertRule = function(t, n) {
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
}, r.deleteRule = function(t) {
this.rules.splice(t, 1), this.length--;
}, r.getRule = function(t) {
return t < this.length ? this.rules[t] : "";
}, e;
}(), lr = Vt, Fn = { isServer: !Vt, useCSSOMInjection: !_n }, pt = function() {
function e(t, n, o) {
t === void 0 && (t = Pe), n === void 0 && (n = {}), this.options = Se({}, Fn, {}, t), this.gs = n, this.names = new Map(o), this.server = !!t.isServer, !this.server && Vt && lr && (lr = !1, function(s) {
for (var i = document.querySelectorAll(Rn), a = 0, l = i.length; a < l; a++) {
var c = i[a];
c && c.getAttribute(Ve) !== "active" && (In(s, c), c.parentNode && c.parentNode.removeChild(c));
}
}(this));
}
e.registerId = function(t) {
return at(t);
};
var r = e.prototype;
return r.reconstructWithOptions = function(t, n) {
return n === void 0 && (n = !0), new e(Se({}, this.options, {}, t), this.gs, n && this.names || void 0);
}, r.allocateGSInstance = function(t) {
return this.gs[t] = (this.gs[t] || 0) + 1;
}, r.getTag = function() {
return this.tag || (this.tag = (o = (n = this.options).isServer, s = n.useCSSOMInjection, i = n.target, t = o ? new Wn(i) : s ? new Hn(i) : new Zn(i), new On(t)));
var t, n, o, s, i;
}, r.hasNameForId = function(t, n) {
return this.names.has(t) && this.names.get(t).has(n);
}, r.registerName = function(t, n) {
if (at(t), this.names.has(t))
this.names.get(t).add(n);
else {
var o = /* @__PURE__ */ new Set();
o.add(n), this.names.set(t, o);
}
}, r.insertRules = function(t, n, o) {
this.registerName(t, n), this.getTag().insertRules(at(t), o);
}, r.clearNames = function(t) {
this.names.has(t) && this.names.get(t).clear();
}, r.clearRules = function(t) {
this.getTag().clearGroup(at(t)), this.clearNames(t);
}, r.clearTag = function() {
this.tag = void 0;
}, r.toString = function() {
return function(t) {
for (var n = t.getTag(), o = n.length, s = "", i = 0; i < o; i++) {
var a = Pn(i);
if (a !== void 0) {
var l = t.names.get(a), c = n.getGroup(i);
if (l && c && l.size) {
var d = Ve + ".g" + i + '[id="' + a + '"]', u = "";
l !== void 0 && l.forEach(function(f) {
f.length > 0 && (u += f + ",");
}), s += "" + c + d + '{content:"' + u + `"}/*!sc*/
`;
}
}
}
return s;
}(this);
}, e;
}(), Bn = /(a)(d)/gi, dr = function(e) {
return String.fromCharCode(e + (e > 25 ? 39 : 97));
};
function Mt(e) {
var r, t = "";
for (r = Math.abs(e); r > 52; r = r / 52 | 0)
t = dr(r % 52) + t;
return (dr(r % 52) + t).replace(Bn, "$1-$2");
}
var Le = function(e, r) {
for (var t = r.length; t; )
e = 33 * e ^ r.charCodeAt(--t);
return e;
}, Ir = function(e) {
return Le(5381, e);
};
function Nr(e) {
for (var r = 0; r < e.length; r += 1) {
var t = e[r];
if (ze(t) && !zt(t))
return !1;
}
return !0;
}
var jn = Ir("5.3.8"), zn = function() {
function e(r, t, n) {
this.rules = r, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Nr(r), this.componentId = t, this.baseHash = Le(jn, t), this.baseStyle = n, pt.registerId(t);
}
return e.prototype.generateAndInjectStyles = function(r, t, n) {
var o = this.componentId, s = [];
if (this.baseStyle && s.push(this.baseStyle.generateAndInjectStyles(r, t, n)), this.isStatic && !n.hash)
if (this.staticRulesId && t.hasNameForId(o, this.staticRulesId))
s.push(this.staticRulesId);
else {
var i = Ne(this.rules, r, t, n).join(""), a = Mt(Le(this.baseHash, i) >>> 0);
if (!t.hasNameForId(o, a)) {
var l = n(i, "." + a, void 0, o);
t.insertRules(o, a, l);
}
s.push(a), this.staticRulesId = a;
}
else {
for (var c = this.rules.length, d = Le(this.baseHash, n.hash), u = "", f = 0; f < c; f++) {
var m = this.rules[f];
if (typeof m == "string")
u += m, process.env.NODE_ENV !== "production" && (d = Le(d, m + f));
else if (m) {
var v = Ne(m, r, t, n), $ = Array.isArray(v) ? v.join("") : v;
d = Le(d, $ + f), u += $;
}
}
if (u) {
var _ = Mt(d >>> 0);
if (!t.hasNameForId(o, _)) {
var E = n(u, "." + _, void 0, o);
t.insertRules(o, _, E);
}
s.push(_);
}
}
return s.join(" ");
}, e;
}(), Vn = /^\s*\/\/.*$/gm, Gn = [":", "[", ".", "#"];
function Un(e) {
var r, t, n, o, s = e === void 0 ? Pe : e, i = s.options, a = i === void 0 ? Pe : i, l = s.plugins, c = l === void 0 ? ht : l, d = new mn(a), u = [], f = function($) {
function _(E) {
if (E)
try {
$(E + "}");
} catch {
}
}
return function(E, P, Z, A, p, C, T, F, B, L) {
switch (E) {
case 1:
if (B === 0 && P.charCodeAt(0) === 64)
return $(P + ";"), "";
break;
case 2:
if (F === 0)
return P + "/*|*/";
break;
case 3:
switch (F) {
case 102:
case 112:
return $(Z[0] + P), "";
default:
return P + (L === 0 ? "/*|*/" : "");
}
case -2:
P.split("/*|*/}").forEach(_);
}
};
}(function($) {
u.push($);
}), m = function($, _, E) {
return _ === 0 && Gn.indexOf(E[t.length]) !== -1 || E.match(o) ? $ : "." + r;
};
function v($, _, E, P) {
P === void 0 && (P = "&");
var Z = $.replace(Vn, ""), A = _ && E ? E + " " + _ + " { " + Z + " }" : Z;
return r = P, t = _, n = new RegExp("\\" + t + "\\b", "g"), o = new RegExp("(\\" + t + "\\b){2,}"), d(E || !_ ? "" : _, A);
}
return d.use([].concat(c, [function($, _, E) {
$ === 2 && E.length && E[0].lastIndexOf(t) > 0 && (E[0] = E[0].replace(n, m));
}, f, function($) {
if ($ === -2) {
var _ = u;
return u = [], _;
}
}])), v.hash = c.length ? c.reduce(function($, _) {
return _.name || $e(15), Le($, _.name);
}, 5381).toString() : "", v;
}
var Hr = Ie.createContext();
Hr.Consumer;
var Zr = Ie.createContext(), Xn = (Zr.Consumer, new pt()), $t = Un();
function Wr() {
return Re(Hr) || Xn;
}
function Fr() {
return Re(Zr) || $t;
}
var Br = function() {
function e(r, t) {
var n = this;
this.inject = function(o, s) {
s === void 0 && (s = $t);
var i = n.name + s.hash;
o.hasNameForId(n.id, i) || o.insertRules(n.id, i, s(n.rules, i, "@keyframes"));
}, this.toString = function() {
return $e(12, String(n.name));
}, this.name = r, this.id = "sc-keyframes-" + r, this.rules = t;
}
return e.prototype.getName = function(r) {
return r === void 0 && (r = $t), this.name + r.hash;
}, e;
}(), Jn = /([A-Z])/, qn = /([A-Z])/g, Kn = /^ms-/, Qn = function(e) {
return "-" + e.toLowerCase();
};
function ur(e) {
return Jn.test(e) ? e.replace(qn, Qn).replace(Kn, "-ms-") : e;
}
var hr = function(e) {
return e == null || e === !1 || e === "";
};
function Ne(e, r, t, n) {
if (Array.isArray(e)) {
for (var o, s = [], i = 0, a = e.length; i < a; i += 1)
(o = Ne(e[i], r, t, n)) !== "" && (Array.isArray(o) ? s.push.apply(s, o) : s.push(o));
return s;
}
if (hr(e))
return "";
if (zt(e))
return "." + e.styledComponentId;
if (ze(e)) {
if (typeof (c = e) != "function" || c.prototype && c.prototype.isReactComponent || !r)
return e;
var l = e(r);
return process.env.NODE_ENV !== "production" && je.isElement(l) && console.warn(kt(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), Ne(l, r, t, n);
}
var c;
return e instanceof Br ? t ? (e.inject(t, n), e.getName(n)) : e : St(e) ? function d(u, f) {
var m, v, $ = [];
for (var _ in u)
u.hasOwnProperty(_) && !hr(u[_]) && (Array.isArray(u[_]) && u[_].isCss || ze(u[_]) ? $.push(ur(_) + ":", u[_], ";") : St(u[_]) ? $.push.apply($, d(u[_], _)) : $.push(ur(_) + ": " + (m = _, (v = u[_]) == null || typeof v == "boolean" || v === "" ? "" : typeof v != "number" || v === 0 || m in vn ? String(v).trim() : v + "px") + ";"));
return f ? [f + " {"].concat($, ["}"]) : $;
}(e) : e.toString();
}
var fr = function(e) {
return Array.isArray(e) && (e.isCss = !0), e;
};
function Gt(e) {
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
return ze(e) || St(e) ? fr(Ne(cr(ht, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : fr(Ne(cr(e, t)));
}
var pr = /invalid hook call/i, ct = /* @__PURE__ */ new Set(), jr = function(e, r) {
if (process.env.NODE_ENV !== "production") {
var t = "The component " + e + (r ? ' with the id of "' + r + '"' : "") + ` has been created dynamically.
You may see this warning because you've called styled inside another component.
To resolve this only create new StyledComponents outside of any render method and function component.`, n = console.error;
try {
var o = !0;
console.error = function(s) {
if (pr.test(s))
o = !1, ct.delete(t);
else {
for (var i = argume