@storybook/core
Version:
Storybook framework-agnostic API
1,518 lines (1,492 loc) • 97.9 kB
JavaScript
var vn = Object.create;
var nr = Object.defineProperty;
var yn = Object.getOwnPropertyDescriptor;
var xn = Object.getOwnPropertyNames;
var wn = Object.getPrototypeOf, En = Object.prototype.hasOwnProperty;
var o = (e, r) => nr(e, "name", { value: r, configurable: !0 }), we = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
"u" ? new Proxy(e, {
get: (r, t) => (typeof require < "u" ? require : r)[t]
}) : e)(function(e) {
if (typeof require < "u") return require.apply(this, arguments);
throw Error('Dynamic require of "' + e + '" is not supported');
});
var ze = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports);
var Sn = (e, r, t, n) => {
if (r && typeof r == "object" || typeof r == "function")
for (let a of xn(r))
!En.call(e, a) && a !== t && nr(e, a, { get: () => r[a], enumerable: !(n = yn(r, a)) || n.enumerable });
return e;
};
var ar = (e, r, t) => (t = e != null ? vn(wn(e)) : {}, Sn(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
r || !e || !e.__esModule ? nr(t, "default", { value: e, enumerable: !0 }) : t,
e
));
// ../node_modules/react-is/cjs/react-is.development.js
var rt = ze((O) => {
"use strict";
(function() {
"use strict";
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106,
n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114,
s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111,
l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") :
60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116,
d = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118,
x = e ? Symbol.for("react.scope") : 60119;
function A(g) {
return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
g === n || g === l || g === i || g === a || g === p || g === m || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof ===
w || g.$$typeof === s || g.$$typeof === u || g.$$typeof === c || g.$$typeof === v || g.$$typeof === y || g.$$typeof === x || g.$$typeof ===
d);
}
o(A, "isValidElementType");
function S(g) {
if (typeof g == "object" && g !== null) {
var tr = g.$$typeof;
switch (tr) {
case r:
var Le = g.type;
switch (Le) {
case f:
case l:
case n:
case i:
case a:
case p:
return Le;
default:
var Lr = Le && Le.$$typeof;
switch (Lr) {
case u:
case c:
case b:
case w:
case s:
return Lr;
default:
return tr;
}
}
case t:
return tr;
}
}
}
o(S, "typeOf");
var R = f, F = l, T = u, ae = s, oe = r, V = c, G = n, Qe = b, er = w, rr = t, tn = i, nn = a, an = p, Ir = !1;
function on(g) {
return Ir || (Ir = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\
r code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Pr(g) || S(g) === f;
}
o(on, "isAsyncMode");
function Pr(g) {
return S(g) === l;
}
o(Pr, "isConcurrentMode");
function sn(g) {
return S(g) === u;
}
o(sn, "isContextConsumer");
function un(g) {
return S(g) === s;
}
o(un, "isContextProvider");
function fn(g) {
return typeof g == "object" && g !== null && g.$$typeof === r;
}
o(fn, "isElement");
function cn(g) {
return S(g) === c;
}
o(cn, "isForwardRef");
function ln(g) {
return S(g) === n;
}
o(ln, "isFragment");
function pn(g) {
return S(g) === b;
}
o(pn, "isLazy");
function dn(g) {
return S(g) === w;
}
o(dn, "isMemo");
function mn(g) {
return S(g) === t;
}
o(mn, "isPortal");
function hn(g) {
return S(g) === i;
}
o(hn, "isProfiler");
function gn(g) {
return S(g) === a;
}
o(gn, "isStrictMode");
function bn(g) {
return S(g) === p;
}
o(bn, "isSuspense"), O.AsyncMode = R, O.ConcurrentMode = F, O.ContextConsumer = T, O.ContextProvider = ae, O.Element = oe, O.ForwardRef =
V, O.Fragment = G, O.Lazy = Qe, O.Memo = er, O.Portal = rr, O.Profiler = tn, O.StrictMode = nn, O.Suspense = an, O.isAsyncMode = on, O.isConcurrentMode =
Pr, O.isContextConsumer = sn, O.isContextProvider = un, O.isElement = fn, O.isForwardRef = cn, O.isFragment = ln, O.isLazy = pn, O.isMemo =
dn, O.isPortal = mn, O.isProfiler = hn, O.isStrictMode = gn, O.isSuspense = bn, O.isValidElementType = A, O.typeOf = S;
})();
});
// ../node_modules/react-is/index.js
var nt = ze((Vo, tt) => {
"use strict";
tt.exports = rt();
});
// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
var pr = ze((Go, ft) => {
"use strict";
var cr = nt(), Mn = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, kn = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, Nn = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, st = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, lr = {};
lr[cr.ForwardRef] = Nn;
lr[cr.Memo] = st;
function at(e) {
return cr.isMemo(e) ? st : lr[e.$$typeof] || Mn;
}
o(at, "getStatics");
var Bn = Object.defineProperty, Dn = Object.getOwnPropertyNames, ot = Object.getOwnPropertySymbols, $n = Object.getOwnPropertyDescriptor, jn = Object.
getPrototypeOf, it = Object.prototype;
function ut(e, r, t) {
if (typeof r != "string") {
if (it) {
var n = jn(r);
n && n !== it && ut(e, n, t);
}
var a = Dn(r);
ot && (a = a.concat(ot(r)));
for (var i = at(e), s = at(r), u = 0; u < a.length; ++u) {
var f = a[u];
if (!kn[f] && !(t && t[f]) && !(s && s[f]) && !(i && i[f])) {
var l = $n(r, f);
try {
Bn(e, f, l);
} catch {
}
}
}
}
return e;
}
o(ut, "hoistNonReactStatics");
ft.exports = ut;
});
// ../node_modules/memoizerific/memoizerific.js
var Ht = ze((jt, Cr) => {
(function(e) {
if (typeof jt == "object" && typeof Cr < "u")
Cr.exports = e();
else if (typeof define == "function" && define.amd)
define([], e);
else {
var r;
typeof window < "u" ? r = window : typeof global < "u" ? r = global : typeof self < "u" ? r = self : r = this, r.memoizerific = e();
}
})(function() {
var e, r, t;
return (/* @__PURE__ */ o(function n(a, i, s) {
function u(c, p) {
if (!i[c]) {
if (!a[c]) {
var m = typeof we == "function" && we;
if (!p && m) return m(c, !0);
if (f) return f(c, !0);
var w = new Error("Cannot find module '" + c + "'");
throw w.code = "MODULE_NOT_FOUND", w;
}
var b = i[c] = { exports: {} };
a[c][0].call(b.exports, function(d) {
var v = a[c][1][d];
return u(v || d);
}, b, b.exports, n, a, i, s);
}
return i[c].exports;
}
o(u, "s");
for (var f = typeof we == "function" && we, l = 0; l < s.length; l++) u(s[l]);
return u;
}, "e"))({ 1: [function(n, a, i) {
a.exports = function(s) {
if (typeof Map != "function" || s) {
var u = n("./similar");
return new u();
} else
return /* @__PURE__ */ new Map();
};
}, { "./similar": 2 }], 2: [function(n, a, i) {
function s() {
return this.list = [], this.lastItem = void 0, this.size = 0, this;
}
o(s, "Similar"), s.prototype.get = function(u) {
var f;
if (this.lastItem && this.isEqual(this.lastItem.key, u))
return this.lastItem.val;
if (f = this.indexOf(u), f >= 0)
return this.lastItem = this.list[f], this.list[f].val;
}, s.prototype.set = function(u, f) {
var l;
return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = f, this) : (l = this.indexOf(u), l >= 0 ? (this.lastItem =
this.list[l], this.list[l].val = f, this) : (this.lastItem = { key: u, val: f }, this.list.push(this.lastItem), this.size++, this));
}, s.prototype.delete = function(u) {
var f;
if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), f = this.indexOf(u), f >= 0)
return this.size--, this.list.splice(f, 1)[0];
}, s.prototype.has = function(u) {
var f;
return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (f = this.indexOf(u), f >= 0 ? (this.lastItem = this.list[f], !0) :
!1);
}, s.prototype.forEach = function(u, f) {
var l;
for (l = 0; l < this.size; l++)
u.call(f || this, this.list[l].val, this.list[l].key, this);
}, s.prototype.indexOf = function(u) {
var f;
for (f = 0; f < this.size; f++)
if (this.isEqual(this.list[f].key, u))
return f;
return -1;
}, s.prototype.isEqual = function(u, f) {
return u === f || u !== u && f !== f;
}, a.exports = s;
}, {}], 3: [function(n, a, i) {
var s = n("map-or-similar");
a.exports = function(c) {
var p = new s(!1), m = [];
return function(w) {
var b = /* @__PURE__ */ o(function() {
var d = p, v, y, x = arguments.length - 1, A = Array(x + 1), S = !0, R;
if ((b.numArgs || b.numArgs === 0) && b.numArgs !== x + 1)
throw new Error("Memoizerific functions should always be called with the same number of arguments");
for (R = 0; R < x; R++) {
if (A[R] = {
cacheItem: d,
arg: arguments[R]
}, d.has(arguments[R])) {
d = d.get(arguments[R]);
continue;
}
S = !1, v = new s(!1), d.set(arguments[R], v), d = v;
}
return S && (d.has(arguments[x]) ? y = d.get(arguments[x]) : S = !1), S || (y = w.apply(null, arguments), d.set(arguments[x], y)),
c > 0 && (A[x] = {
cacheItem: d,
arg: arguments[x]
}, S ? u(m, A) : m.push(A), m.length > c && f(m.shift())), b.wasMemoized = S, b.numArgs = x + 1, y;
}, "memoizerific");
return b.limit = c, b.wasMemoized = !1, b.cache = p, b.lru = m, b;
};
};
function u(c, p) {
var m = c.length, w = p.length, b, d, v;
for (d = 0; d < m; d++) {
for (b = !0, v = 0; v < w; v++)
if (!l(c[d][v].arg, p[v].arg)) {
b = !1;
break;
}
if (b)
break;
}
c.push(c.splice(d, 1)[0]);
}
o(u, "moveToMostRecentLru");
function f(c) {
var p = c.length, m = c[p - 1], w, b;
for (m.cacheItem.delete(m.arg), b = p - 2; b >= 0 && (m = c[b], w = m.cacheItem.get(m.arg), !w || !w.size); b--)
m.cacheItem.delete(m.arg);
}
o(f, "removeCachedResult");
function l(c, p) {
return c === p || c !== c && p !== p;
}
o(l, "isEqual");
}, { "map-or-similar": 1 }] }, {}, [3])(3);
});
});
// ../node_modules/@babel/runtime/helpers/esm/extends.js
function N() {
return N = Object.assign ? Object.assign.bind() : function(e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r];
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
}
return e;
}, N.apply(null, arguments);
}
o(N, "_extends");
// ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
import * as P from "react";
import { useContext as Jn, forwardRef as Kn } from "react";
// ../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
var Tn = !1;
function Cn(e) {
if (e.sheet)
return e.sheet;
for (var r = 0; r < document.styleSheets.length; r++)
if (document.styleSheets[r].ownerNode === e)
return document.styleSheets[r];
}
o(Cn, "sheetForTag");
function On(e) {
var r = document.createElement("style");
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode(
"")), r.setAttribute("data-s", ""), r;
}
o(On, "createStyleElement");
var zr = /* @__PURE__ */ function() {
function e(t) {
var n = this;
this._insertTag = function(a) {
var i;
n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i =
n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, i), n.tags.push(a);
}, this.isSpeedy = t.speedy === void 0 ? !Tn : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container =
t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
}
o(e, "StyleSheet");
var r = e.prototype;
return r.hydrate = /* @__PURE__ */ o(function(n) {
n.forEach(this._insertTag);
}, "hydrate"), r.insert = /* @__PURE__ */ o(function(n) {
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(On(this));
var a = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
var i = Cn(a);
try {
i.insertRule(n, i.cssRules.length);
} catch {
}
} else
a.appendChild(document.createTextNode(n));
this.ctr++;
}, "insert"), r.flush = /* @__PURE__ */ o(function() {
this.tags.forEach(function(n) {
var a;
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
}), this.tags = [], this.ctr = 0;
}, "flush"), e;
}();
// ../node_modules/stylis/src/Enum.js
var L = "-ms-", Ee = "-moz-", C = "-webkit-", Me = "comm", ie = "rule", se = "decl";
var Mr = "@import";
var ke = "@keyframes";
var kr = "@layer";
// ../node_modules/stylis/src/Utility.js
var Nr = Math.abs, X = String.fromCharCode, Br = Object.assign;
function Dr(e, r) {
return _(e, 0) ^ 45 ? (((r << 2 ^ _(e, 0)) << 2 ^ _(e, 1)) << 2 ^ _(e, 2)) << 2 ^ _(e, 3) : 0;
}
o(Dr, "hash");
function Ne(e) {
return e.trim();
}
o(Ne, "trim");
function or(e, r) {
return (e = r.exec(e)) ? e[0] : e;
}
o(or, "match");
function E(e, r, t) {
return e.replace(r, t);
}
o(E, "replace");
function Se(e, r) {
return e.indexOf(r);
}
o(Se, "indexof");
function _(e, r) {
return e.charCodeAt(r) | 0;
}
o(_, "charat");
function Y(e, r, t) {
return e.slice(r, t);
}
o(Y, "substr");
function z(e) {
return e.length;
}
o(z, "strlen");
function ue(e) {
return e.length;
}
o(ue, "sizeof");
function fe(e, r) {
return r.push(e), e;
}
o(fe, "append");
function ir(e, r) {
return e.map(r).join("");
}
o(ir, "combine");
// ../node_modules/stylis/src/Tokenizer.js
var Be = 1, ce = 1, $r = 0, M = 0, I = 0, pe = "";
function Te(e, r, t, n, a, i, s) {
return { value: e, root: r, parent: t, type: n, props: a, children: i, line: Be, column: ce, length: s, return: "" };
}
o(Te, "node");
function de(e, r) {
return Br(Te("", null, null, "", null, null, 0), e, { length: -e.length }, r);
}
o(de, "copy");
function jr() {
return I;
}
o(jr, "char");
function Hr() {
return I = M > 0 ? _(pe, --M) : 0, ce--, I === 10 && (ce = 1, Be--), I;
}
o(Hr, "prev");
function k() {
return I = M < $r ? _(pe, M++) : 0, ce++, I === 10 && (ce = 1, Be++), I;
}
o(k, "next");
function B() {
return _(pe, M);
}
o(B, "peek");
function Ce() {
return M;
}
o(Ce, "caret");
function me(e, r) {
return Y(pe, e, r);
}
o(me, "slice");
function le(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
o(le, "token");
function De(e) {
return Be = ce = 1, $r = z(pe = e), M = 0, [];
}
o(De, "alloc");
function $e(e) {
return pe = "", e;
}
o($e, "dealloc");
function he(e) {
return Ne(me(M - 1, sr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
o(he, "delimit");
function Wr(e) {
for (; (I = B()) && I < 33; )
k();
return le(e) > 2 || le(I) > 3 ? "" : " ";
}
o(Wr, "whitespace");
function Ur(e, r) {
for (; --r && k() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
;
return me(e, Ce() + (r < 6 && B() == 32 && k() == 32));
}
o(Ur, "escaping");
function sr(e) {
for (; k(); )
switch (I) {
// ] ) " '
case e:
return M;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && sr(I);
break;
// (
case 40:
e === 41 && sr(e);
break;
// \
case 92:
k();
break;
}
return M;
}
o(sr, "delimiter");
function Vr(e, r) {
for (; k() && e + I !== 57; )
if (e + I === 84 && B() === 47)
break;
return "/*" + me(r, M - 1) + "*" + X(e === 47 ? e : k());
}
o(Vr, "commenter");
function Gr(e) {
for (; !le(B()); )
k();
return me(e, M);
}
o(Gr, "identifier");
// ../node_modules/stylis/src/Parser.js
function Jr(e) {
return $e(je("", null, null, null, [""], e = De(e), 0, [0], e));
}
o(Jr, "compile");
function je(e, r, t, n, a, i, s, u, f) {
for (var l = 0, c = 0, p = s, m = 0, w = 0, b = 0, d = 1, v = 1, y = 1, x = 0, A = "", S = a, R = i, F = n, T = A; v; )
switch (b = x, x = k()) {
// (
case 40:
if (b != 108 && _(T, p - 1) == 58) {
Se(T += E(he(x), "&", "&\f"), "&\f") != -1 && (y = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
T += he(x);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
T += Wr(b);
break;
// \
case 92:
T += Ur(Ce() - 1, 7);
continue;
// /
case 47:
switch (B()) {
case 42:
case 47:
fe(Rn(Vr(k(), Ce()), r, t), f);
break;
default:
T += "/";
}
break;
// {
case 123 * d:
u[l++] = z(T) * y;
// } ; \0
case 125 * d:
case 59:
case 0:
switch (x) {
// \0 }
case 0:
case 125:
v = 0;
// ;
case 59 + c:
y == -1 && (T = E(T, /\f/g, "")), w > 0 && z(T) - p && fe(w > 32 ? qr(T + ";", n, t, p - 1) : qr(E(T, " ", "") + ";", n, t, p - 2),
f);
break;
// @ ;
case 59:
T += ";";
// { rule/at-rule
default:
if (fe(F = Yr(T, r, t, l, c, a, u, A, S = [], R = [], p), i), x === 123)
if (c === 0)
je(T, r, F, F, S, i, p, u, R);
else
switch (m === 99 && _(T, 3) === 110 ? 100 : m) {
// d l m s
case 100:
case 108:
case 109:
case 115:
je(e, F, F, n && fe(Yr(e, F, F, 0, 0, a, u, A, a, S = [], p), R), a, R, p, u, n ? S : R);
break;
default:
je(T, F, F, F, [""], R, 0, u, R);
}
}
l = c = w = 0, d = y = 1, A = T = "", p = s;
break;
// :
case 58:
p = 1 + z(T), w = b;
default:
if (d < 1) {
if (x == 123)
--d;
else if (x == 125 && d++ == 0 && Hr() == 125)
continue;
}
switch (T += X(x), x * d) {
// &
case 38:
y = c > 0 ? 1 : (T += "\f", -1);
break;
// ,
case 44:
u[l++] = (z(T) - 1) * y, y = 1;
break;
// @
case 64:
B() === 45 && (T += he(k())), m = B(), c = p = z(A = T += Gr(Ce())), x++;
break;
// -
case 45:
b === 45 && z(T) == 2 && (d = 0);
}
}
return i;
}
o(je, "parse");
function Yr(e, r, t, n, a, i, s, u, f, l, c) {
for (var p = a - 1, m = a === 0 ? i : [""], w = ue(m), b = 0, d = 0, v = 0; b < n; ++b)
for (var y = 0, x = Y(e, p + 1, p = Nr(d = s[b])), A = e; y < w; ++y)
(A = Ne(d > 0 ? m[y] + " " + x : E(x, /&\f/g, m[y]))) && (f[v++] = A);
return Te(e, r, t, a === 0 ? ie : u, f, l, c);
}
o(Yr, "ruleset");
function Rn(e, r, t) {
return Te(e, r, t, Me, X(jr()), Y(e, 2, -2), 0);
}
o(Rn, "comment");
function qr(e, r, t, n) {
return Te(e, r, t, se, Y(e, 0, n), Y(e, n + 1, -1), n);
}
o(qr, "declaration");
// ../node_modules/stylis/src/Serializer.js
function Z(e, r) {
for (var t = "", n = ue(e), a = 0; a < n; a++)
t += r(e[a], a, e, r) || "";
return t;
}
o(Z, "serialize");
function Kr(e, r, t, n) {
switch (e.type) {
case kr:
if (e.children.length) break;
case Mr:
case se:
return e.return = e.return || e.value;
case Me:
return "";
case ke:
return e.return = e.value + "{" + Z(e.children, n) + "}";
case ie:
e.value = e.props.join(",");
}
return z(t = Z(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
}
o(Kr, "stringify");
// ../node_modules/stylis/src/Middleware.js
function Xr(e) {
var r = ue(e);
return function(t, n, a, i) {
for (var s = "", u = 0; u < r; u++)
s += e[u](t, n, a, i) || "";
return s;
};
}
o(Xr, "middleware");
function Zr(e) {
return function(r) {
r.root || (r = r.return) && e(r);
};
}
o(Zr, "rulesheet");
// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
var ur = /* @__PURE__ */ o(function(r) {
var t = /* @__PURE__ */ new WeakMap();
return function(n) {
if (t.has(n))
return t.get(n);
var a = r(n);
return t.set(n, a), a;
};
}, "weakMemoize");
// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
function He(e) {
var r = /* @__PURE__ */ Object.create(null);
return function(t) {
return r[t] === void 0 && (r[t] = e(t)), r[t];
};
}
o(He, "memoize");
// ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
var An = /* @__PURE__ */ o(function(r, t, n) {
for (var a = 0, i = 0; a = i, i = B(), a === 38 && i === 12 && (t[n] = 1), !le(i); )
k();
return me(r, M);
}, "identifierWithPointTracking"), Fn = /* @__PURE__ */ o(function(r, t) {
var n = -1, a = 44;
do
switch (le(a)) {
case 0:
a === 38 && B() === 12 && (t[n] = 1), r[n] += An(M - 1, t, n);
break;
case 2:
r[n] += he(a);
break;
case 4:
if (a === 44) {
r[++n] = B() === 58 ? "&\f" : "", t[n] = r[n].length;
break;
}
// fallthrough
default:
r[n] += X(a);
}
while (a = k());
return r;
}, "toRules"), _n = /* @__PURE__ */ o(function(r, t) {
return $e(Fn(De(r), t));
}, "getRules"), Qr = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ o(function(r) {
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
r.length < 1)) {
for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
if (n = n.parent, !n) return;
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Qr.get(n)) && !a) {
Qr.set(r, !0);
for (var i = [], s = _n(t, i), u = n.props, f = 0, l = 0; f < s.length; f++)
for (var c = 0; c < u.length; c++, l++)
r.props[l] = i[f] ? s[f].replace(/&\f/g, u[c]) : u[c] + " " + s[f];
}
}
}, "compat"), Pn = /* @__PURE__ */ o(function(r) {
if (r.type === "decl") {
var t = r.value;
// charcode for l
t.charCodeAt(0) === 108 && // charcode for b
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
}
}, "removeLabel");
function et(e, r) {
switch (Dr(e, r)) {
// color-adjust
case 5103:
return C + "print-" + e + e;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829:
return C + e + e;
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return C + e + Ee + e + L + e + e;
// flex, flex-direction
case 6828:
case 4268:
return C + e + L + e + e;
// order
case 6165:
return C + e + L + "flex-" + e + e;
// align-items
case 5187:
return C + e + E(e, /(\w+).+(:[^]+)/, C + "box-$1$2" + L + "flex-$1$2") + e;
// align-self
case 5443:
return C + e + L + "flex-item-" + E(e, /flex-|-self/, "") + e;
// align-content
case 4675:
return C + e + L + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
// flex-shrink
case 5548:
return C + e + L + E(e, "shrink", "negative") + e;
// flex-basis
case 5292:
return C + e + L + E(e, "basis", "preferred-size") + e;
// flex-grow
case 6060:
return C + "box-" + E(e, "-grow", "") + C + e + L + E(e, "grow", "positive") + e;
// transition
case 4554:
return C + E(e, /([^-])(transform)/g, "$1" + C + "$2") + e;
// cursor
case 6187:
return E(E(E(e, /(zoom-|grab)/, C + "$1"), /(image-set)/, C + "$1"), e, "") + e;
// background, background-image
case 5495:
case 3959:
return E(e, /(image-set\([^]*)/, C + "$1$`$1");
// justify-content
case 4968:
return E(E(e, /(.+:)(flex-)?(.*)/, C + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + C + e + e;
// (margin|padding)-inline-(start|end)
case 4095:
case 3583:
case 4068:
case 2532:
return E(e, /(.+)-inline(.+)/, C + "$1$2") + e;
// (min|max)?(width|height|inline-size|block-size)
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (z(e) - 1 - r > 6) switch (_(e, r + 1)) {
// (m)ax-content, (m)in-content
case 109:
if (_(e, r + 4) !== 45) break;
// (f)ill-available, (f)it-content
case 102:
return E(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + Ee + (_(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
// (s)tretch
case 115:
return ~Se(e, "stretch") ? et(E(e, "stretch", "fill-available"), r) + e : e;
}
break;
// position: sticky
case 4949:
if (_(e, r + 1) !== 115) break;
// display: (flex|inline-flex)
case 6444:
switch (_(e, z(e) - 3 - (~Se(e, "!important") && 10))) {
// stic(k)y
case 107:
return E(e, ":", ":" + C) + e;
// (inline-)?fl(e)x
case 101:
return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + C + (_(e, 14) === 45 ? "inline-" : "") + "box$3$1" + C + "$2$3$1" + L + "$2box$3") + e;
}
break;
// writing-mode
case 5936:
switch (_(e, r + 11)) {
// vertical-l(r)
case 114:
return C + e + L + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
// vertical-r(l)
case 108:
return C + e + L + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
// horizontal(-)tb
case 45:
return C + e + L + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
return C + e + L + e + e;
}
return e;
}
o(et, "prefix");
var Ln = /* @__PURE__ */ o(function(r, t, n, a) {
if (r.length > -1 && !r.return) switch (r.type) {
case se:
r.return = et(r.value, r.length);
break;
case ke:
return Z([de(r, {
value: E(r.value, "@", "@" + C)
})], a);
case ie:
if (r.length) return ir(r.props, function(i) {
switch (or(i, /(::plac\w+|:read-\w+)/)) {
// :read-(only|write)
case ":read-only":
case ":read-write":
return Z([de(r, {
props: [E(i, /:(read-\w+)/, ":" + Ee + "$1")]
})], a);
// :placeholder
case "::placeholder":
return Z([de(r, {
props: [E(i, /:(plac\w+)/, ":" + C + "input-$1")]
}), de(r, {
props: [E(i, /:(plac\w+)/, ":" + Ee + "$1")]
}), de(r, {
props: [E(i, /:(plac\w+)/, L + "input-$1")]
})], a);
}
return "";
});
}
}, "prefixer"), zn = [Ln], fr = /* @__PURE__ */ o(function(r) {
var t = r.key;
if (t === "css") {
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(n, function(d) {
var v = d.getAttribute("data-emotion");
v.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
});
}
var a = r.stylisPlugins || zn, i = {}, s, u = [];
s = r.container || document.head, Array.prototype.forEach.call(
// this means we will ignore elements which don't have a space in them which
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
function(d) {
for (var v = d.getAttribute("data-emotion").split(" "), y = 1; y < v.length; y++)
i[v[y]] = !0;
u.push(d);
}
);
var f, l = [In, Pn];
{
var c, p = [Kr, Zr(function(d) {
c.insert(d);
})], m = Xr(l.concat(a, p)), w = /* @__PURE__ */ o(function(v) {
return Z(Jr(v), m);
}, "stylis");
f = /* @__PURE__ */ o(function(v, y, x, A) {
c = x, w(v ? v + "{" + y.styles + "}" : y.styles), A && (b.inserted[y.name] = !0);
}, "insert");
}
var b = {
key: t,
sheet: new zr({
key: t,
container: s,
nonce: r.nonce,
speedy: r.speedy,
prepend: r.prepend,
insertionPoint: r.insertionPoint
}),
nonce: r.nonce,
inserted: i,
registered: {},
insert: f
};
return b.sheet.hydrate(u), b;
}, "createCache");
// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
var ct = ar(pr());
var lt = /* @__PURE__ */ o(function(e, r) {
return (0, ct.default)(e, r);
}, "hoistNonReactStatics");
// ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
var Hn = !0;
function ge(e, r, t) {
var n = "";
return t.split(" ").forEach(function(a) {
e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
}), n;
}
o(ge, "getRegisteredStyles");
var Q = /* @__PURE__ */ o(function(r, t, n) {
var a = r.key + "-" + t.name;
// we only need to add the styles to the registered cache if the
// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(n === !1 || // we need to always store it if we're in compat mode and
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
Hn === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
}, "registerStyles"), ee = /* @__PURE__ */ o(function(r, t, n) {
Q(r, t, n);
var a = r.key + "-" + t.name;
if (r.inserted[t.name] === void 0) {
var i = t;
do
r.insert(t === i ? "." + a : "", i, r.sheet, !0), i = i.next;
while (i !== void 0);
}
}, "insertStyles");
// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
function pt(e) {
for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
t >>> 24, r = /* Math.imul(k, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
switch (a) {
case 3:
r ^= (e.charCodeAt(n + 2) & 255) << 16;
case 2:
r ^= (e.charCodeAt(n + 1) & 255) << 8;
case 1:
r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
}
return r ^= r >>> 13, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
}
o(pt, "murmur2");
// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
var dt = {
animationIterationCount: 1,
aspectRatio: 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,
scale: 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
};
// ../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
var Wn = !1, Un = /[A-Z]|^ms/g, Vn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, bt = /* @__PURE__ */ o(function(r) {
return r.charCodeAt(1) === 45;
}, "isCustomProperty"), mt = /* @__PURE__ */ o(function(r) {
return r != null && typeof r != "boolean";
}, "isProcessableValue"), dr = /* @__PURE__ */ He(function(e) {
return bt(e) ? e : e.replace(Un, "-$&").toLowerCase();
}), ht = /* @__PURE__ */ o(function(r, t) {
switch (r) {
case "animation":
case "animationName":
if (typeof t == "string")
return t.replace(Vn, function(n, a, i) {
return H = {
name: a,
styles: i,
next: H
}, a;
});
}
return dt[r] !== 1 && !bt(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
}, "processStyleValue"), Gn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or an\
other Emotion-aware compiler transform.";
function Oe(e, r, t) {
if (t == null)
return "";
var n = t;
if (n.__emotion_styles !== void 0)
return n;
switch (typeof t) {
case "boolean":
return "";
case "object": {
var a = t;
if (a.anim === 1)
return H = {
name: a.name,
styles: a.styles,
next: H
}, a.name;
var i = t;
if (i.styles !== void 0) {
var s = i.next;
if (s !== void 0)
for (; s !== void 0; )
H = {
name: s.name,
styles: s.styles,
next: H
}, s = s.next;
var u = i.styles + ";";
return u;
}
return Yn(e, r, t);
}
case "function": {
if (e !== void 0) {
var f = H, l = t(e);
return H = f, Oe(e, r, l);
}
break;
}
}
var c = t;
if (r == null)
return c;
var p = r[c];
return p !== void 0 ? p : c;
}
o(Oe, "handleInterpolation");
function Yn(e, r, t) {
var n = "";
if (Array.isArray(t))
for (var a = 0; a < t.length; a++)
n += Oe(e, r, t[a]) + ";";
else
for (var i in t) {
var s = t[i];
if (typeof s != "object") {
var u = s;
r != null && r[u] !== void 0 ? n += i + "{" + r[u] + "}" : mt(u) && (n += dr(i) + ":" + ht(i, u) + ";");
} else {
if (i === "NO_COMPONENT_SELECTOR" && Wn)
throw new Error(Gn);
if (Array.isArray(s) && typeof s[0] == "string" && (r == null || r[s[0]] === void 0))
for (var f = 0; f < s.length; f++)
mt(s[f]) && (n += dr(i) + ":" + ht(i, s[f]) + ";");
else {
var l = Oe(e, r, s);
switch (i) {
case "animation":
case "animationName": {
n += dr(i) + ":" + l + ";";
break;
}
default:
n += i + "{" + l + "}";
}
}
}
}
return n;
}
o(Yn, "createStringFromObject");
var gt = /label:\s*([^\s;{]+)\s*(;|$)/g, H;
function q(e, r, t) {
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
return e[0];
var n = !0, a = "";
H = void 0;
var i = e[0];
if (i == null || i.raw === void 0)
n = !1, a += Oe(t, r, i);
else {
var s = i;
a += s[0];
}
for (var u = 1; u < e.length; u++)
if (a += Oe(t, r, e[u]), n) {
var f = i;
a += f[u];
}
gt.lastIndex = 0;
for (var l = "", c; (c = gt.exec(a)) !== null; )
l += "-" + c[1];
var p = pt(a) + l;
return {
name: p,
styles: a,
next: H
};
}
o(q, "serializeStyles");
// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
import * as Re from "react";
var qn = /* @__PURE__ */ o(function(r) {
return r();
}, "syncFallback"), vt = Re.useInsertionEffect ? Re.useInsertionEffect : !1, be = vt || qn, mr = vt || Re.useLayoutEffect;
// ../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
var We = !1, yt = /* @__PURE__ */ P.createContext(
// we're doing this to avoid preconstruct's dead code elimination in this one case
// because this module is primarily intended for the browser and node
// but it's also required in react native and similar environments sometimes
// and we could have a special build just for that
// but this is much easier and the native packages
// might use a different theme context in the future anyway
typeof HTMLElement < "u" ? /* @__PURE__ */ fr({
key: "css"
}) : null
), xt = yt.Provider;
var re = /* @__PURE__ */ o(function(r) {
return /* @__PURE__ */ Kn(function(t, n) {
var a = Jn(yt);
return r(t, a, n);
});
}, "withEmotionCache"), $ = /* @__PURE__ */ P.createContext({}), wt = /* @__PURE__ */ o(function() {
return P.useContext($);
}, "useTheme"), Xn = /* @__PURE__ */ o(function(r, t) {
if (typeof t == "function") {
var n = t(r);
return n;
}
return N({}, r, t);
}, "getTheme"), Zn = /* @__PURE__ */ ur(function(e) {
return ur(function(r) {
return Xn(e, r);
});
}), Et = /* @__PURE__ */ o(function(r) {
var t = P.useContext($);
return r.theme !== t && (t = Zn(t)(r.theme)), /* @__PURE__ */ P.createElement($.Provider, {
value: t
}, r.children);
}, "ThemeProvider");
function St(e) {
var r = e.displayName || e.name || "Component", t = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ o(function(a, i) {
var s = P.useContext($);
return /* @__PURE__ */ P.createElement(e, N({
theme: s,
ref: i
}, a));
}, "render"));
return t.displayName = "WithTheme(" + r + ")", lt(t, e);
}
o(St, "withTheme");
var Ue = {}.hasOwnProperty, hr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Tt = /* @__PURE__ */ o(function(r, t) {
var n = {};
for (var a in t)
Ue.call(t, a) && (n[a] = t[a]);
return n[hr] = r, n;
}, "createEmotionProps"), Qn = /* @__PURE__ */ o(function(r) {
var t = r.cache, n = r.serialized, a = r.isStringTag;
return Q(t, n, a), be(function() {
return ee(t, n, a);
}), null;
}, "Insertion"), ea = /* @__PURE__ */ re(function(e, r, t) {
var n = e.css;
typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
var a = e[hr], i = [n], s = "";
typeof e.className == "string" ? s = ge(r.registered, i, e.className) : e.className != null && (s = e.className + " ");
var u = q(i, void 0, P.useContext($));
s += r.key + "-" + u.name;
var f = {};
for (var l in e)
Ue.call(e, l) && l !== "css" && l !== hr && !We && (f[l] = e[l]);
return f.className = s, t && (f.ref = t), /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(Qn, {
cache: r,
serialized: u,
isStringTag: typeof a == "string"
}), /* @__PURE__ */ P.createElement(a, f));
}), Ct = ea;
// ../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
import * as D from "react";
var Oi = ar(pr());
var gr = /* @__PURE__ */ o(function(r, t) {
var n = arguments;
if (t == null || !Ue.call(t, "css"))
return D.createElement.apply(void 0, n);
var a = n.length, i = new Array(a);
i[0] = Ct, i[1] = Tt(r, t);
for (var s = 2; s < a; s++)
i[s] = n[s];
return D.createElement.apply(null, i);
}, "jsx");
(function(e) {
var r;
r || (r = e.JSX || (e.JSX = {}));
})(gr || (gr = {}));
var ra = /* @__PURE__ */ re(function(e, r) {
var t = e.styles, n = q([t], void 0, D.useContext($)), a = D.useRef();
return mr(function() {
var i = r.key + "-global", s = new r.sheet.constructor({
key: i,
nonce: r.sheet.nonce,
container: r.sheet.container,
speedy: r.sheet.isSpeedy
}), u = !1, f = document.querySelector('style[data-emotion="' + i + " " + n.name + '"]');
return r.sheet.tags.length && (s.before = r.sheet.tags[0]), f !== null && (u = !0, f.setAttribute("data-emotion", i), s.hydrate([f])), a.
current = [s, u], function() {
s.flush();
};
}, [r]), mr(function() {
var i = a.current, s = i[0], u = i[1];
if (u) {
i[1] = !1;
return;
}
if (n.next !== void 0 && ee(r, n.next, !0), s.tags.length) {
var f = s.tags[s.tags.length - 1].nextElementSibling;
s.before = f, s.flush();
}
r.insert("", n, s, !1);
}, [r, n.name]), null;
});
function Ae() {
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
r[t] = arguments[t];
return q(r);
}
o(Ae, "css");
function ve() {
var e = Ae.apply(void 0, arguments), r = "animation-" + e.name;
return {
name: r,
styles: "@keyframes " + r + "{" + e.styles + "}",
anim: 1,
toString: /* @__PURE__ */ o(function() {
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
}, "toString")
};
}
o(ve, "keyframes");
var ta = /* @__PURE__ */ o(function e(r) {
for (var t = r.length, n = 0, a = ""; n < t; n++) {
var i = r[n];
if (i != null) {
var s = void 0;
switch (typeof i) {
case "boolean":
break;
case "object": {
if (Array.isArray(i))
s = e(i);
else {
s = "";
for (var u in i)
i[u] && u && (s && (s += " "), s += u);
}
break;
}
default:
s = i;
}
s && (a && (a += " "), a += s);
}
}
return a;
}, "classnames");
function na(e, r, t) {
var n = [], a = ge(e, n, t);
return n.length < 2 ? t : a + r(n);
}
o(na, "merge");
var aa = /* @__PURE__ */ o(function(r) {
var t = r.cache, n = r.serializedArr;
return be(function() {
for (var a = 0; a < n.length; a++)
ee(t, n[a], !1);
}), null;
}, "Insertion"), oa = /* @__PURE__ */ re(function(e, r) {
var t = !1, n = [], a = /* @__PURE__ */ o(function() {
if (t && We)
throw new Error("css can only be used during render");
for (var l = arguments.length, c = new Array(l), p = 0; p < l; p++)
c[p] = arguments[p];
var m = q(c, r.registered);
return n.push(m), Q(r, m, !1), r.key + "-" + m.name;
}, "css"), i = /* @__PURE__ */ o(function() {
if (t && We)
throw new Error("cx can only be used during render");
for (var l = arguments.length, c = new Array(l), p = 0; p < l; p++)
c[p] = arguments[p];
return na(r.registered, a, ta(c));
}, "cx"), s = {
css: a,
cx: i,
theme: D.useContext($)
}, u = e.children(s);
return t = !0, /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement(aa, {
cache: r,
serializedArr: n
}), u);
});
// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
import * as J from "react";
// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
var ia = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|tar