import e, { useState as t, useMemo as n, useEffect as r, useContext as o, useRef as s, useDebugValue as a, createElement as i } from "react";
import { g as c } from "./alasql-f59e855e.js";
var l = function() {
  return l = Object.assign || function(e2) {
    for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
      for (var o2 in t2 = arguments[n2])
        Object.prototype.hasOwnProperty.call(t2, o2) && (e2[o2] = t2[o2]);
    return e2;
  }, l.apply(this, arguments);
};
function u(e2, t2, n2) {
  if (n2 || 2 === arguments.length)
    for (var r2, o2 = 0, s2 = t2.length; o2 < s2; o2++)
      !r2 && o2 in t2 || (r2 || (r2 = Array.prototype.slice.call(t2, 0, o2)), r2[o2] = t2[o2]);
  return e2.concat(r2 || Array.prototype.slice.call(t2));
}
function p(e2) {
  var t2 = /* @__PURE__ */ Object.create(null);
  return function(n2) {
    return void 0 === t2[n2] && (t2[n2] = e2(n2)), t2[n2];
  };
}
var d = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, h = p(function(e2) {
  return d.test(e2) || 111 === e2.charCodeAt(0) && 110 === e2.charCodeAt(1) && e2.charCodeAt(2) < 91;
});
const f = c(function(e2, t2, n2, r2) {
  var o2 = n2 ? n2.call(r2, e2, t2) : void 0;
  if (void 0 !== o2)
    return !!o2;
  if (e2 === t2)
    return true;
  if ("object" != typeof e2 || !e2 || "object" != typeof t2 || !t2)
    return false;
  var s2 = Object.keys(e2), a2 = Object.keys(t2);
  if (s2.length !== a2.length)
    return false;
  for (var i2 = Object.prototype.hasOwnProperty.bind(t2), c2 = 0; c2 < s2.length; c2++) {
    var l2 = s2[c2];
    if (!i2(l2))
      return false;
    var u2 = e2[l2], p2 = t2[l2];
    if (false === (o2 = n2 ? n2.call(r2, u2, p2, l2) : void 0) || void 0 === o2 && u2 !== p2)
      return false;
  }
  return true;
});
var m = "-ms-", y = "-moz-", g = "-webkit-", v = "comm", S = "rule", b = "decl", w = "@keyframes", k = Math.abs, C = String.fromCharCode, x = Object.assign;
function E(e2) {
  return e2.trim();
}
function P(e2, t2) {
  return (e2 = t2.exec(e2)) ? e2[0] : e2;
}
function A(e2, t2, n2) {
  return e2.replace(t2, n2);
}
function N(e2, t2, n2) {
  return e2.indexOf(t2, n2);
}
function O(e2, t2) {
  return 0 | e2.charCodeAt(t2);
}
function I(e2, t2, n2) {
  return e2.slice(t2, n2);
}
function _(e2) {
  return e2.length;
}
function T(e2) {
  return e2.length;
}
function R(e2, t2) {
  return t2.push(e2), e2;
}
function D(e2, t2) {
  return e2.filter(function(e3) {
    return !P(e3, t2);
  });
}
var j = 1, $ = 1, z = 0, M = 0, L = 0, F = "";
function V(e2, t2, n2, r2, o2, s2, a2, i2) {
  return { value: e2, root: t2, parent: n2, type: r2, props: o2, children: s2, line: j, column: $, length: a2, return: "", siblings: i2 };
}
function B(e2, t2) {
  return x(V("", null, null, "", null, null, 0, e2.siblings), e2, { length: -e2.length }, t2);
}
function G(e2) {
  for (; e2.root; )
    e2 = B(e2.root, { children: [e2] });
  R(e2, e2.siblings);
}
function H() {
  return L = M > 0 ? O(F, --M) : 0, $--, 10 === L && ($ = 1, j--), L;
}
function W() {
  return L = M < z ? O(F, M++) : 0, $++, 10 === L && ($ = 1, j++), L;
}
function Y() {
  return O(F, M);
}
function q() {
  return M;
}
function U(e2, t2) {
  return I(F, e2, t2);
}
function X(e2) {
  switch (e2) {
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    case 59:
    case 123:
    case 125:
      return 4;
    case 58:
      return 3;
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
function K(e2) {
  return E(U(M - 1, Q(91 === e2 ? e2 + 2 : 40 === e2 ? e2 + 1 : e2)));
}
function Z(e2) {
  for (; (L = Y()) && L < 33; )
    W();
  return X(e2) > 2 || X(L) > 3 ? "" : " ";
}
function J(e2, t2) {
  for (; --t2 && W() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
    ;
  return U(e2, q() + (t2 < 6 && 32 == Y() && 32 == W()));
}
function Q(e2) {
  for (; W(); )
    switch (L) {
      case e2:
        return M;
      case 34:
      case 39:
        34 !== e2 && 39 !== e2 && Q(L);
        break;
      case 40:
        41 === e2 && Q(e2);
        break;
      case 92:
        W();
    }
  return M;
}
function ee(e2, t2) {
  for (; W() && e2 + L !== 57 && (e2 + L !== 84 || 47 !== Y()); )
    ;
  return "/*" + U(t2, M - 1) + "*" + C(47 === e2 ? e2 : W());
}
function te(e2) {
  for (; !X(Y()); )
    W();
  return U(e2, M);
}
function ne(e2) {
  return function(e3) {
    return F = "", e3;
  }(re("", null, null, null, [""], e2 = function(e3) {
    return j = $ = 1, z = _(F = e3), M = 0, [];
  }(e2), 0, [0], e2));
}
function re(e2, t2, n2, r2, o2, s2, a2, i2, c2) {
  for (var l2 = 0, u2 = 0, p2 = a2, d2 = 0, h2 = 0, f2 = 0, m2 = 1, y2 = 1, g2 = 1, v2 = 0, S2 = "", b2 = o2, w2 = s2, x2 = r2, E2 = S2; y2; )
    switch (f2 = v2, v2 = W()) {
      case 40:
        if (108 != f2 && 58 == O(E2, p2 - 1)) {
          -1 != N(E2 += A(K(v2), "&", "&\f"), "&\f", k(l2 ? i2[l2 - 1] : 0)) && (g2 = -1);
          break;
        }
      case 34:
      case 39:
      case 91:
        E2 += K(v2);
        break;
      case 9:
      case 10:
      case 13:
      case 32:
        E2 += Z(f2);
        break;
      case 92:
        E2 += J(q() - 1, 7);
        continue;
      case 47:
        switch (Y()) {
          case 42:
          case 47:
            R(se(ee(W(), q()), t2, n2, c2), c2);
            break;
          default:
            E2 += "/";
        }
        break;
      case 123 * m2:
        i2[l2++] = _(E2) * g2;
      case 125 * m2:
      case 59:
      case 0:
        switch (v2) {
          case 0:
          case 125:
            y2 = 0;
          case 59 + u2:
            -1 == g2 && (E2 = A(E2, /\f/g, "")), h2 > 0 && _(E2) - p2 && R(h2 > 32 ? ae(E2 + ";", r2, n2, p2 - 1, c2) : ae(A(E2, " ", "") + ";", r2, n2, p2 - 2, c2), c2);
            break;
          case 59:
            E2 += ";";
          default:
            if (R(x2 = oe(E2, t2, n2, l2, u2, o2, i2, S2, b2 = [], w2 = [], p2, s2), s2), 123 === v2)
              if (0 === u2)
                re(E2, t2, x2, x2, b2, s2, p2, i2, w2);
              else
                switch (99 === d2 && 110 === O(E2, 3) ? 100 : d2) {
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    re(e2, x2, x2, r2 && R(oe(e2, x2, x2, 0, 0, o2, i2, S2, o2, b2 = [], p2, w2), w2), o2, w2, p2, i2, r2 ? b2 : w2);
                    break;
                  default:
                    re(E2, x2, x2, x2, [""], w2, 0, i2, w2);
                }
        }
        l2 = u2 = h2 = 0, m2 = g2 = 1, S2 = E2 = "", p2 = a2;
        break;
      case 58:
        p2 = 1 + _(E2), h2 = f2;
      default:
        if (m2 < 1) {
          if (123 == v2)
            --m2;
          else if (125 == v2 && 0 == m2++ && 125 == H())
            continue;
        }
        switch (E2 += C(v2), v2 * m2) {
          case 38:
            g2 = u2 > 0 ? 1 : (E2 += "\f", -1);
            break;
          case 44:
            i2[l2++] = (_(E2) - 1) * g2, g2 = 1;
            break;
          case 64:
            45 === Y() && (E2 += K(W())), d2 = Y(), u2 = p2 = _(S2 = E2 += te(q())), v2++;
            break;
          case 45:
            45 === f2 && 2 == _(E2) && (m2 = 0);
        }
    }
  return s2;
}
function oe(e2, t2, n2, r2, o2, s2, a2, i2, c2, l2, u2, p2) {
  for (var d2 = o2 - 1, h2 = 0 === o2 ? s2 : [""], f2 = T(h2), m2 = 0, y2 = 0, g2 = 0; m2 < r2; ++m2)
    for (var v2 = 0, b2 = I(e2, d2 + 1, d2 = k(y2 = a2[m2])), w2 = e2; v2 < f2; ++v2)
      (w2 = E(y2 > 0 ? h2[v2] + " " + b2 : A(b2, /&\f/g, h2[v2]))) && (c2[g2++] = w2);
  return V(e2, t2, n2, 0 === o2 ? S : i2, c2, l2, u2, p2);
}
function se(e2, t2, n2, r2) {
  return V(e2, t2, n2, v, C(L), I(e2, 2, -2), 0, r2);
}
function ae(e2, t2, n2, r2, o2) {
  return V(e2, t2, n2, b, I(e2, 0, r2), I(e2, r2 + 1, -1), r2, o2);
}
function ie(e2, t2, n2) {
  switch (function(e3, t3) {
    return 45 ^ O(e3, 0) ? (((t3 << 2 ^ O(e3, 0)) << 2 ^ O(e3, 1)) << 2 ^ O(e3, 2)) << 2 ^ O(e3, 3) : 0;
  }(e2, t2)) {
    case 5103:
      return g + "print-" + e2 + e2;
    case 5737:
    case 4201:
    case 3177:
    case 3433:
    case 1641:
    case 4457:
    case 2921:
    case 5572:
    case 6356:
    case 5844:
    case 3191:
    case 6645:
    case 3005:
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
    case 4855:
    case 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
      return g + e2 + e2;
    case 4789:
      return y + e2 + e2;
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return g + e2 + y + e2 + m + e2 + e2;
    case 5936:
      switch (O(e2, t2 + 11)) {
        case 114:
          return g + e2 + m + A(e2, /[svh]\w+-[tblr]{2}/, "tb") + e2;
        case 108:
          return g + e2 + m + A(e2, /[svh]\w+-[tblr]{2}/, "tb-rl") + e2;
        case 45:
          return g + e2 + m + A(e2, /[svh]\w+-[tblr]{2}/, "lr") + e2;
      }
    case 6828:
    case 4268:
    case 2903:
      return g + e2 + m + e2 + e2;
    case 6165:
      return g + e2 + m + "flex-" + e2 + e2;
    case 5187:
      return g + e2 + A(e2, /(\w+).+(:[^]+)/, g + "box-$1$2" + m + "flex-$1$2") + e2;
    case 5443:
      return g + e2 + m + "flex-item-" + A(e2, /flex-|-self/g, "") + (P(e2, /flex-|baseline/) ? "" : m + "grid-row-" + A(e2, /flex-|-self/g, "")) + e2;
    case 4675:
      return g + e2 + m + "flex-line-pack" + A(e2, /align-content|flex-|-self/g, "") + e2;
    case 5548:
      return g + e2 + m + A(e2, "shrink", "negative") + e2;
    case 5292:
      return g + e2 + m + A(e2, "basis", "preferred-size") + e2;
    case 6060:
      return g + "box-" + A(e2, "-grow", "") + g + e2 + m + A(e2, "grow", "positive") + e2;
    case 4554:
      return g + A(e2, /([^-])(transform)/g, "$1" + g + "$2") + e2;
    case 6187:
      return A(A(A(e2, /(zoom-|grab)/, g + "$1"), /(image-set)/, g + "$1"), e2, "") + e2;
    case 5495:
    case 3959:
      return A(e2, /(image-set\([^]*)/, g + "$1$`$1");
    case 4968:
      return A(A(e2, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" + m + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + g + e2 + e2;
    case 4200:
      if (!P(e2, /flex-|baseline/))
        return m + "grid-column-align" + I(e2, t2) + e2;
      break;
    case 2592:
    case 3360:
      return m + A(e2, "template-", "") + e2;
    case 4384:
    case 3616:
      return n2 && n2.some(function(e3, n3) {
        return t2 = n3, P(e3.props, /grid-\w+-end/);
      }) ? ~N(e2 + (n2 = n2[t2].value), "span", 0) ? e2 : m + A(e2, "-start", "") + e2 + m + "grid-row-span:" + (~N(n2, "span", 0) ? P(n2, /\d+/) : +P(n2, /\d+/) - +P(e2, /\d+/)) + ";" : m + A(e2, "-start", "") + e2;
    case 4896:
    case 4128:
      return n2 && n2.some(function(e3) {
        return P(e3.props, /grid-\w+-start/);
      }) ? e2 : m + A(A(e2, "-end", "-span"), "span ", "") + e2;
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return A(e2, /(.+)-inline(.+)/, g + "$1$2") + e2;
    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 (_(e2) - 1 - t2 > 6)
        switch (O(e2, t2 + 1)) {
          case 109:
            if (45 !== O(e2, t2 + 4))
              break;
          case 102:
            return A(e2, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" + y + (108 == O(e2, t2 + 3) ? "$3" : "$2-$3")) + e2;
          case 115:
            return ~N(e2, "stretch", 0) ? ie(A(e2, "stretch", "fill-available"), t2, n2) + e2 : e2;
        }
      break;
    case 5152:
    case 5920:
      return A(e2, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t3, n3, r2, o2, s2, a2, i2) {
        return m + n3 + ":" + r2 + i2 + (o2 ? m + n3 + "-span:" + (s2 ? a2 : +a2 - +r2) + i2 : "") + e2;
      });
    case 4949:
      if (121 === O(e2, t2 + 6))
        return A(e2, ":", ":" + g) + e2;
      break;
    case 6444:
      switch (O(e2, 45 === O(e2, 14) ? 18 : 11)) {
        case 120:
          return A(e2, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + g + (45 === O(e2, 14) ? "inline-" : "") + "box$3$1" + g + "$2$3$1" + m + "$2box$3") + e2;
        case 100:
          return A(e2, ":", ":" + m) + e2;
      }
      break;
    case 5719:
    case 2647:
    case 2135:
    case 3927:
    case 2391:
      return A(e2, "scroll-", "scroll-snap-") + e2;
  }
  return e2;
}
function ce(e2, t2) {
  for (var n2 = "", r2 = 0; r2 < e2.length; r2++)
    n2 += t2(e2[r2], r2, e2, t2) || "";
  return n2;
}
function le(e2, t2, n2, r2) {
  switch (e2.type) {
    case "@layer":
      if (e2.children.length)
        break;
    case "@import":
    case b:
      return e2.return = e2.return || e2.value;
    case v:
      return "";
    case w:
      return e2.return = e2.value + "{" + ce(e2.children, r2) + "}";
    case S:
      if (!_(e2.value = e2.props.join(",")))
        return "";
  }
  return _(n2 = ce(e2.children, r2)) ? e2.return = e2.value + "{" + n2 + "}" : "";
}
function ue(e2, t2, n2, r2) {
  if (e2.length > -1 && !e2.return)
    switch (e2.type) {
      case b:
        return void (e2.return = ie(e2.value, e2.length, n2));
      case w:
        return ce([B(e2, { value: A(e2.value, "@", "@" + g) })], r2);
      case S:
        if (e2.length)
          return function(e3, t3) {
            return e3.map(t3).join("");
          }(n2 = e2.props, function(t3) {
            switch (P(t3, r2 = /(::plac\w+|:read-\w+)/)) {
              case ":read-only":
              case ":read-write":
                G(B(e2, { props: [A(t3, /:(read-\w+)/, ":-moz-$1")] })), G(B(e2, { props: [t3] })), x(e2, { props: D(n2, r2) });
                break;
              case "::placeholder":
                G(B(e2, { props: [A(t3, /:(plac\w+)/, ":" + g + "input-$1")] })), G(B(e2, { props: [A(t3, /:(plac\w+)/, ":-moz-$1")] })), G(B(e2, { props: [A(t3, /:(plac\w+)/, m + "input-$1")] })), G(B(e2, { props: [t3] })), x(e2, { props: D(n2, r2) });
            }
            return "";
          });
    }
}
var pe = { 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, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, de = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", he = "active", fe = "data-styled-version", me = "6.1.18", ye = "/*!sc*/\n", ge = "undefined" != typeof window && "undefined" != typeof document, ve = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && 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.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), Se = {}, be = /invalid hook call/i, we = /* @__PURE__ */ new Set(), ke = function(e2, t2) {
  if ("production" !== process.env.NODE_ENV) {
    var n2 = t2 ? ' with the id of "'.concat(t2, '"') : "", r2 = "The component ".concat(e2).concat(n2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", o2 = console.error;
    try {
      var a2 = true;
      console.error = function(e3) {
        for (var t3 = [], n3 = 1; n3 < arguments.length; n3++)
          t3[n3 - 1] = arguments[n3];
        be.test(e3) ? (a2 = false, we.delete(r2)) : o2.apply(void 0, u([e3], t3, false));
      }, s(), a2 && !we.has(r2) && we.add(r2);
    } catch (e3) {
      be.test(e3.message) && we.delete(r2);
    } finally {
      console.error = o2;
    }
  }
}, Ce = Object.freeze([]), xe = Object.freeze({});
function Ee(e2, t2, n2) {
  return void 0 === n2 && (n2 = xe), e2.theme !== n2.theme && e2.theme || t2 || n2.theme;
}
var Pe = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ae = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ne = /(^-|-$)/g;
function Oe(e2) {
  return e2.replace(Ae, "-").replace(Ne, "");
}
var Ie = /(a)(d)/gi, _e = function(e2) {
  return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
};
function Te(e2) {
  var t2, n2 = "";
  for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0)
    n2 = _e(t2 % 52) + n2;
  return (_e(t2 % 52) + n2).replace(Ie, "$1-$2");
}
var Re, De = function(e2, t2) {
  for (var n2 = t2.length; n2; )
    e2 = 33 * e2 ^ t2.charCodeAt(--n2);
  return e2;
}, je = function(e2) {
  return De(5381, e2);
};
function $e(e2) {
  return Te(je(e2) >>> 0);
}
function ze(e2) {
  return "production" !== process.env.NODE_ENV && "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
}
function Me(e2) {
  return "string" == typeof e2 && ("production" === process.env.NODE_ENV || e2.charAt(0) === e2.charAt(0).toLowerCase());
}
var Le = "function" == typeof Symbol && Symbol.for, Fe = Le ? Symbol.for("react.memo") : 60115, Ve = Le ? Symbol.for("react.forward_ref") : 60112, Be = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true }, Ge = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }, He = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true }, We = ((Re = {})[Ve] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, Re[Fe] = He, Re);
function Ye(e2) {
  return ("type" in (t2 = e2) && t2.type.$$typeof) === Fe ? He : "$$typeof" in e2 ? We[e2.$$typeof] : Be;
  var t2;
}
var qe = Object.defineProperty, Ue = Object.getOwnPropertyNames, Xe = Object.getOwnPropertySymbols, Ke = Object.getOwnPropertyDescriptor, Ze = Object.getPrototypeOf, Je = Object.prototype;
function Qe(e2, t2, n2) {
  if ("string" != typeof t2) {
    if (Je) {
      var r2 = Ze(t2);
      r2 && r2 !== Je && Qe(e2, r2, n2);
    }
    var o2 = Ue(t2);
    Xe && (o2 = o2.concat(Xe(t2)));
    for (var s2 = Ye(e2), a2 = Ye(t2), i2 = 0; i2 < o2.length; ++i2) {
      var c2 = o2[i2];
      if (!(c2 in Ge || n2 && n2[c2] || a2 && c2 in a2 || s2 && c2 in s2)) {
        var l2 = Ke(t2, c2);
        try {
          qe(e2, c2, l2);
        } catch (e3) {
        }
      }
    }
  }
  return e2;
}
function et(e2) {
  return "function" == typeof e2;
}
function tt(e2) {
  return "object" == typeof e2 && "styledComponentId" in e2;
}
function nt(e2, t2) {
  return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
}
function rt(e2, t2) {
  if (0 === e2.length)
    return "";
  for (var n2 = e2[0], r2 = 1; r2 < e2.length; r2++)
    n2 += t2 ? t2 + e2[r2] : e2[r2];
  return n2;
}
function ot(e2) {
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
}
function st(e2, t2, n2) {
  if (void 0 === n2 && (n2 = false), !n2 && !ot(e2) && !Array.isArray(e2))
    return t2;
  if (Array.isArray(t2))
    for (var r2 = 0; r2 < t2.length; r2++)
      e2[r2] = st(e2[r2], t2[r2]);
  else if (ot(t2))
    for (var r2 in t2)
      e2[r2] = st(e2[r2], t2[r2]);
  return e2;
}
function at(e2, t2) {
  Object.defineProperty(e2, "toString", { value: t2 });
}
var it = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 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.\n\n', 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\n\n", 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.\n\n", 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.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 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.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
function ct() {
  for (var e2 = [], t2 = 0; t2 < arguments.length; t2++)
    e2[t2] = arguments[t2];
  for (var n2 = e2[0], r2 = [], o2 = 1, s2 = e2.length; o2 < s2; o2 += 1)
    r2.push(e2[o2]);
  return r2.forEach(function(e3) {
    n2 = n2.replace(/%[a-z]/, e3);
  }), n2;
}
function lt(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e2, " for more information.").concat(t2.length > 0 ? " Args: ".concat(t2.join(", ")) : "")) : new Error(ct.apply(void 0, u([it[e2]], t2, false)).trim());
}
var ut = function() {
  function e2(e3) {
    this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3;
  }
  return e2.prototype.indexOfGroup = function(e3) {
    for (var t2 = 0, n2 = 0; n2 < e3; n2++)
      t2 += this.groupSizes[n2];
    return t2;
  }, e2.prototype.insertRules = function(e3, t2) {
    if (e3 >= this.groupSizes.length) {
      for (var n2 = this.groupSizes, r2 = n2.length, o2 = r2; e3 >= o2; )
        if ((o2 <<= 1) < 0)
          throw lt(16, "".concat(e3));
      this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n2), this.length = o2;
      for (var s2 = r2; s2 < o2; s2++)
        this.groupSizes[s2] = 0;
    }
    for (var a2 = this.indexOfGroup(e3 + 1), i2 = (s2 = 0, t2.length); s2 < i2; s2++)
      this.tag.insertRule(a2, t2[s2]) && (this.groupSizes[e3]++, a2++);
  }, e2.prototype.clearGroup = function(e3) {
    if (e3 < this.length) {
      var t2 = this.groupSizes[e3], n2 = this.indexOfGroup(e3), r2 = n2 + t2;
      this.groupSizes[e3] = 0;
      for (var o2 = n2; o2 < r2; o2++)
        this.tag.deleteRule(n2);
    }
  }, e2.prototype.getGroup = function(e3) {
    var t2 = "";
    if (e3 >= this.length || 0 === this.groupSizes[e3])
      return t2;
    for (var n2 = this.groupSizes[e3], r2 = this.indexOfGroup(e3), o2 = r2 + n2, s2 = r2; s2 < o2; s2++)
      t2 += "".concat(this.tag.getRule(s2)).concat(ye);
    return t2;
  }, e2;
}(), pt = 1 << 30, dt = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), ft = 1, mt = function(e2) {
  if (dt.has(e2))
    return dt.get(e2);
  for (; ht.has(ft); )
    ft++;
  var t2 = ft++;
  if ("production" !== process.env.NODE_ENV && ((0 | t2) < 0 || t2 > pt))
    throw lt(16, "".concat(t2));
  return dt.set(e2, t2), ht.set(t2, e2), t2;
}, yt = function(e2, t2) {
  ft = t2 + 1, dt.set(e2, t2), ht.set(t2, e2);
}, gt = "style[".concat(de, "][").concat(fe, '="').concat(me, '"]'), vt = new RegExp("^".concat(de, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), St = function(e2, t2, n2) {
  for (var r2, o2 = n2.split(","), s2 = 0, a2 = o2.length; s2 < a2; s2++)
    (r2 = o2[s2]) && e2.registerName(t2, r2);
}, bt = function(e2, t2) {
  for (var n2, r2 = (null !== (n2 = t2.textContent) && void 0 !== n2 ? n2 : "").split(ye), o2 = [], s2 = 0, a2 = r2.length; s2 < a2; s2++) {
    var i2 = r2[s2].trim();
    if (i2) {
      var c2 = i2.match(vt);
      if (c2) {
        var l2 = 0 | parseInt(c2[1], 10), u2 = c2[2];
        0 !== l2 && (yt(u2, l2), St(e2, u2, c2[3]), e2.getTag().insertRules(l2, o2)), o2.length = 0;
      } else
        o2.push(i2);
    }
  }
}, wt = function(e2) {
  for (var t2 = document.querySelectorAll(gt), n2 = 0, r2 = t2.length; n2 < r2; n2++) {
    var o2 = t2[n2];
    o2 && o2.getAttribute(de) !== he && (bt(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
  }
};
function kt() {
  return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
}
var Ct = function(e2) {
  var t2 = document.head, n2 = e2 || t2, r2 = document.createElement("style"), o2 = function(e3) {
    var t3 = Array.from(e3.querySelectorAll("style[".concat(de, "]")));
    return t3[t3.length - 1];
  }(n2), s2 = void 0 !== o2 ? o2.nextSibling : null;
  r2.setAttribute(de, he), r2.setAttribute(fe, me);
  var a2 = kt();
  return a2 && r2.setAttribute("nonce", a2), n2.insertBefore(r2, s2), r2;
}, xt = function() {
  function e2(e3) {
    this.element = Ct(e3), this.element.appendChild(document.createTextNode("")), this.sheet = function(e4) {
      if (e4.sheet)
        return e4.sheet;
      for (var t2 = document.styleSheets, n2 = 0, r2 = t2.length; n2 < r2; n2++) {
        var o2 = t2[n2];
        if (o2.ownerNode === e4)
          return o2;
      }
      throw lt(17);
    }(this.element), this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    try {
      return this.sheet.insertRule(t2, e3), this.length++, true;
    } catch (e4) {
      return false;
    }
  }, e2.prototype.deleteRule = function(e3) {
    this.sheet.deleteRule(e3), this.length--;
  }, e2.prototype.getRule = function(e3) {
    var t2 = this.sheet.cssRules[e3];
    return t2 && t2.cssText ? t2.cssText : "";
  }, e2;
}(), Et = function() {
  function e2(e3) {
    this.element = Ct(e3), this.nodes = this.element.childNodes, this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    if (e3 <= this.length && e3 >= 0) {
      var n2 = document.createTextNode(t2);
      return this.element.insertBefore(n2, this.nodes[e3] || null), this.length++, true;
    }
    return false;
  }, e2.prototype.deleteRule = function(e3) {
    this.element.removeChild(this.nodes[e3]), this.length--;
  }, e2.prototype.getRule = function(e3) {
    return e3 < this.length ? this.nodes[e3].textContent : "";
  }, e2;
}(), Pt = function() {
  function e2(e3) {
    this.rules = [], this.length = 0;
  }
  return e2.prototype.insertRule = function(e3, t2) {
    return e3 <= this.length && (this.rules.splice(e3, 0, t2), this.length++, true);
  }, e2.prototype.deleteRule = function(e3) {
    this.rules.splice(e3, 1), this.length--;
  }, e2.prototype.getRule = function(e3) {
    return e3 < this.length ? this.rules[e3] : "";
  }, e2;
}(), At = ge, Nt = { isServer: !ge, useCSSOMInjection: !ve }, Ot = function() {
  function e2(e3, t2, n2) {
    void 0 === e3 && (e3 = xe), void 0 === t2 && (t2 = {});
    var r2 = this;
    this.options = l(l({}, Nt), e3), this.gs = t2, this.names = new Map(n2), this.server = !!e3.isServer, !this.server && ge && At && (At = false, wt(this)), at(this, function() {
      return function(e4) {
        for (var t3 = e4.getTag(), n3 = t3.length, r3 = "", o2 = function(n4) {
          var o3 = function(e5) {
            return ht.get(e5);
          }(n4);
          if (void 0 === o3)
            return "continue";
          var s3 = e4.names.get(o3), a2 = t3.getGroup(n4);
          if (void 0 === s3 || !s3.size || 0 === a2.length)
            return "continue";
          var i2 = "".concat(de, ".g").concat(n4, '[id="').concat(o3, '"]'), c2 = "";
          void 0 !== s3 && s3.forEach(function(e5) {
            e5.length > 0 && (c2 += "".concat(e5, ","));
          }), r3 += "".concat(a2).concat(i2, '{content:"').concat(c2, '"}').concat(ye);
        }, s2 = 0; s2 < n3; s2++)
          o2(s2);
        return r3;
      }(r2);
    });
  }
  return e2.registerId = function(e3) {
    return mt(e3);
  }, e2.prototype.rehydrate = function() {
    !this.server && ge && wt(this);
  }, e2.prototype.reconstructWithOptions = function(t2, n2) {
    return void 0 === n2 && (n2 = true), new e2(l(l({}, this.options), t2), this.gs, n2 && this.names || void 0);
  }, e2.prototype.allocateGSInstance = function(e3) {
    return this.gs[e3] = (this.gs[e3] || 0) + 1;
  }, e2.prototype.getTag = function() {
    return this.tag || (this.tag = (e3 = function(e4) {
      var t2 = e4.useCSSOMInjection, n2 = e4.target;
      return e4.isServer ? new Pt(n2) : t2 ? new xt(n2) : new Et(n2);
    }(this.options), new ut(e3)));
    var e3;
  }, e2.prototype.hasNameForId = function(e3, t2) {
    return this.names.has(e3) && this.names.get(e3).has(t2);
  }, e2.prototype.registerName = function(e3, t2) {
    if (mt(e3), this.names.has(e3))
      this.names.get(e3).add(t2);
    else {
      var n2 = /* @__PURE__ */ new Set();
      n2.add(t2), this.names.set(e3, n2);
    }
  }, e2.prototype.insertRules = function(e3, t2, n2) {
    this.registerName(e3, t2), this.getTag().insertRules(mt(e3), n2);
  }, e2.prototype.clearNames = function(e3) {
    this.names.has(e3) && this.names.get(e3).clear();
  }, e2.prototype.clearRules = function(e3) {
    this.getTag().clearGroup(mt(e3)), this.clearNames(e3);
  }, e2.prototype.clearTag = function() {
    this.tag = void 0;
  }, e2;
}(), It = /&/g, _t = /^\s*\/\/.*$/gm;
function Tt(e2, t2) {
  return e2.map(function(e3) {
    return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
      return "".concat(t2, " ").concat(e4);
    })), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Tt(e3.children, t2)), e3;
  });
}
function Rt(e2) {
  var t2, n2, r2, o2 = void 0 === e2 ? xe : e2, s2 = o2.options, a2 = void 0 === s2 ? xe : s2, i2 = o2.plugins, c2 = void 0 === i2 ? Ce : i2, l2 = function(e3, r3, o3) {
    return o3.startsWith(n2) && o3.endsWith(n2) && o3.replaceAll(n2, "").length > 0 ? ".".concat(t2) : e3;
  }, u2 = c2.slice();
  u2.push(function(e3) {
    e3.type === S && e3.value.includes("&") && (e3.props[0] = e3.props[0].replace(It, n2).replace(r2, l2));
  }), a2.prefix && u2.push(ue), u2.push(le);
  var p2 = function(e3, o3, s3, i3) {
    void 0 === o3 && (o3 = ""), void 0 === s3 && (s3 = ""), void 0 === i3 && (i3 = "&"), t2 = i3, n2 = o3, r2 = new RegExp("\\".concat(n2, "\\b"), "g");
    var c3 = e3.replace(_t, ""), l3 = ne(s3 || o3 ? "".concat(s3, " ").concat(o3, " { ").concat(c3, " }") : c3);
    a2.namespace && (l3 = Tt(l3, a2.namespace));
    var p3, d2 = [];
    return ce(l3, function(e4) {
      var t3 = T(e4);
      return function(n3, r3, o4, s4) {
        for (var a3 = "", i4 = 0; i4 < t3; i4++)
          a3 += e4[i4](n3, r3, o4, s4) || "";
        return a3;
      };
    }(u2.concat((p3 = function(e4) {
      return d2.push(e4);
    }, function(e4) {
      e4.root || (e4 = e4.return) && p3(e4);
    })))), d2;
  };
  return p2.hash = c2.length ? c2.reduce(function(e3, t3) {
    return t3.name || lt(15), De(e3, t3.name);
  }, 5381).toString() : "", p2;
}
var Dt = new Ot(), jt = Rt(), $t = e.createContext({ shouldForwardProp: void 0, styleSheet: Dt, stylis: jt }), zt = $t.Consumer, Mt = e.createContext(void 0);
function Lt() {
  return o($t);
}
function Ft(o2) {
  var s2 = t(o2.stylisPlugins), a2 = s2[0], i2 = s2[1], c2 = Lt().styleSheet, l2 = n(function() {
    var e2 = c2;
    return o2.sheet ? e2 = o2.sheet : o2.target && (e2 = e2.reconstructWithOptions({ target: o2.target }, false)), o2.disableCSSOMInjection && (e2 = e2.reconstructWithOptions({ useCSSOMInjection: false })), e2;
  }, [o2.disableCSSOMInjection, o2.sheet, o2.target, c2]), u2 = n(function() {
    return Rt({ options: { namespace: o2.namespace, prefix: o2.enableVendorPrefixes }, plugins: a2 });
  }, [o2.enableVendorPrefixes, o2.namespace, a2]);
  r(function() {
    f(a2, o2.stylisPlugins) || i2(o2.stylisPlugins);
  }, [o2.stylisPlugins]);
  var p2 = n(function() {
    return { shouldForwardProp: o2.shouldForwardProp, styleSheet: l2, stylis: u2 };
  }, [o2.shouldForwardProp, l2, u2]);
  return e.createElement($t.Provider, { value: p2 }, e.createElement(Mt.Provider, { value: u2 }, o2.children));
}
var Vt = function() {
  function e2(e3, t2) {
    var n2 = this;
    this.inject = function(e4, t3) {
      void 0 === t3 && (t3 = jt);
      var r2 = n2.name + t3.hash;
      e4.hasNameForId(n2.id, r2) || e4.insertRules(n2.id, r2, t3(n2.rules, r2, "@keyframes"));
    }, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, at(this, function() {
      throw lt(12, String(n2.name));
    });
  }
  return e2.prototype.getName = function(e3) {
    return void 0 === e3 && (e3 = jt), this.name + e3.hash;
  }, e2;
}(), Bt = function(e2) {
  return e2 >= "A" && e2 <= "Z";
};
function Gt(e2) {
  for (var t2 = "", n2 = 0; n2 < e2.length; n2++) {
    var r2 = e2[n2];
    if (1 === n2 && "-" === r2 && "-" === e2[0])
      return e2;
    Bt(r2) ? t2 += "-" + r2.toLowerCase() : t2 += r2;
  }
  return t2.startsWith("ms-") ? "-" + t2 : t2;
}
var Ht = function(e2) {
  return null == e2 || false === e2 || "" === e2;
}, Wt = function(e2) {
  var t2, n2, r2 = [];
  for (var o2 in e2) {
    var s2 = e2[o2];
    e2.hasOwnProperty(o2) && !Ht(s2) && (Array.isArray(s2) && s2.isCss || et(s2) ? r2.push("".concat(Gt(o2), ":"), s2, ";") : ot(s2) ? r2.push.apply(r2, u(u(["".concat(o2, " {")], Wt(s2), false), ["}"], false)) : r2.push("".concat(Gt(o2), ": ").concat((t2 = o2, null == (n2 = s2) || "boolean" == typeof n2 || "" === n2 ? "" : "number" != typeof n2 || 0 === n2 || t2 in pe || t2.startsWith("--") ? String(n2).trim() : "".concat(n2, "px")), ";")));
  }
  return r2;
};
function Yt(e2, t2, n2, r2) {
  return Ht(e2) ? [] : tt(e2) ? [".".concat(e2.styledComponentId)] : et(e2) ? !et(o2 = e2) || o2.prototype && o2.prototype.isReactComponent || !t2 ? [e2] : Yt(e2(t2), t2, n2, r2) : e2 instanceof Vt ? n2 ? (e2.inject(n2, r2), [e2.getName(r2)]) : [e2] : ot(e2) ? Wt(e2) : Array.isArray(e2) ? Array.prototype.concat.apply(Ce, e2.map(function(e3) {
    return Yt(e3, t2, n2, r2);
  })) : [e2.toString()];
  var o2;
}
function qt(e2) {
  for (var t2 = 0; t2 < e2.length; t2 += 1) {
    var n2 = e2[t2];
    if (et(n2) && !tt(n2))
      return false;
  }
  return true;
}
var Ut = je(me), Xt = function() {
  function e2(e3, t2, n2) {
    this.rules = e3, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n2 || n2.isStatic) && qt(e3), this.componentId = t2, this.baseHash = De(Ut, t2), this.baseStyle = n2, Ot.registerId(t2);
  }
  return e2.prototype.generateAndInjectStyles = function(e3, t2, n2) {
    var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n2) : "";
    if (this.isStatic && !n2.hash)
      if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId))
        r2 = nt(r2, this.staticRulesId);
      else {
        var o2 = rt(Yt(this.rules, e3, t2, n2)), s2 = Te(De(this.baseHash, o2) >>> 0);
        if (!t2.hasNameForId(this.componentId, s2)) {
          var a2 = n2(o2, ".".concat(s2), void 0, this.componentId);
          t2.insertRules(this.componentId, s2, a2);
        }
        r2 = nt(r2, s2), this.staticRulesId = s2;
      }
    else {
      for (var i2 = De(this.baseHash, n2.hash), c2 = "", l2 = 0; l2 < this.rules.length; l2++) {
        var u2 = this.rules[l2];
        if ("string" == typeof u2)
          c2 += u2, "production" !== process.env.NODE_ENV && (i2 = De(i2, u2));
        else if (u2) {
          var p2 = rt(Yt(u2, e3, t2, n2));
          i2 = De(i2, p2 + l2), c2 += p2;
        }
      }
      if (c2) {
        var d2 = Te(i2 >>> 0);
        t2.hasNameForId(this.componentId, d2) || t2.insertRules(this.componentId, d2, n2(c2, ".".concat(d2), void 0, this.componentId)), r2 = nt(r2, d2);
      }
    }
    return r2;
  }, e2;
}(), Kt = e.createContext(void 0), Zt = Kt.Consumer;
var Jt = {}, Qt = /* @__PURE__ */ new Set();
function en(t2, n2, r2) {
  var o2 = tt(t2), s2 = t2, c2 = !Me(t2), u2 = n2.attrs, p2 = void 0 === u2 ? Ce : u2, d2 = n2.componentId, f2 = void 0 === d2 ? function(e2, t3) {
    var n3 = "string" != typeof e2 ? "sc" : Oe(e2);
    Jt[n3] = (Jt[n3] || 0) + 1;
    var r3 = "".concat(n3, "-").concat($e(me + n3 + Jt[n3]));
    return t3 ? "".concat(t3, "-").concat(r3) : r3;
  }(n2.displayName, n2.parentComponentId) : d2, m2 = n2.displayName, y2 = void 0 === m2 ? function(e2) {
    return Me(e2) ? "styled.".concat(e2) : "Styled(".concat(ze(e2), ")");
  }(t2) : m2, g2 = n2.displayName && n2.componentId ? "".concat(Oe(n2.displayName), "-").concat(n2.componentId) : n2.componentId || f2, v2 = o2 && s2.attrs ? s2.attrs.concat(p2).filter(Boolean) : p2, S2 = n2.shouldForwardProp;
  if (o2 && s2.shouldForwardProp) {
    var b2 = s2.shouldForwardProp;
    if (n2.shouldForwardProp) {
      var w2 = n2.shouldForwardProp;
      S2 = function(e2, t3) {
        return b2(e2, t3) && w2(e2, t3);
      };
    } else
      S2 = b2;
  }
  var k2 = new Xt(r2, g2, o2 ? s2.componentStyle : void 0);
  function C2(t3, n3) {
    return function(t4, n4, r3) {
      var o3 = t4.attrs, s3 = t4.componentStyle, c3 = t4.defaultProps, u3 = t4.foldedComponentIds, p3 = t4.styledComponentId, d3 = t4.target, f3 = e.useContext(Kt), m3 = Lt(), y3 = t4.shouldForwardProp || m3.shouldForwardProp;
      "production" !== process.env.NODE_ENV && a(p3);
      var g3 = Ee(n4, f3, c3) || xe, v3 = function(e2, t5, n5) {
        for (var r4, o4 = l(l({}, t5), { className: void 0, theme: n5 }), s4 = 0; s4 < e2.length; s4 += 1) {
          var a2 = et(r4 = e2[s4]) ? r4(o4) : r4;
          for (var i2 in a2)
            o4[i2] = "className" === i2 ? nt(o4[i2], a2[i2]) : "style" === i2 ? l(l({}, o4[i2]), a2[i2]) : a2[i2];
        }
        return t5.className && (o4.className = nt(o4.className, t5.className)), o4;
      }(o3, n4, g3), S3 = v3.as || d3, b3 = {};
      for (var w3 in v3)
        void 0 === v3[w3] || "$" === w3[0] || "as" === w3 || "theme" === w3 && v3.theme === g3 || ("forwardedAs" === w3 ? b3.as = v3.forwardedAs : y3 && !y3(w3, S3) || (b3[w3] = v3[w3], y3 || "development" !== process.env.NODE_ENV || h(w3) || Qt.has(w3) || !Pe.has(S3) || Qt.add(w3)));
      var k3 = function(e2, t5) {
        var n5 = Lt(), r4 = e2.generateAndInjectStyles(t5, n5.styleSheet, n5.stylis);
        return "production" !== process.env.NODE_ENV && a(r4), r4;
      }(s3, v3);
      "production" !== process.env.NODE_ENV && t4.warnTooManyClasses && t4.warnTooManyClasses(k3);
      var C3 = nt(u3, p3);
      return k3 && (C3 += " " + k3), v3.className && (C3 += " " + v3.className), b3[Me(S3) && !Pe.has(S3) ? "class" : "className"] = C3, r3 && (b3.ref = r3), i(S3, b3);
    }(P2, t3, n3);
  }
  C2.displayName = y2;
  var x2, E2, P2 = e.forwardRef(C2);
  return P2.attrs = v2, P2.componentStyle = k2, P2.displayName = y2, P2.shouldForwardProp = S2, P2.foldedComponentIds = o2 ? nt(s2.foldedComponentIds, s2.styledComponentId) : "", P2.styledComponentId = g2, P2.target = o2 ? s2.target : t2, Object.defineProperty(P2, "defaultProps", { get: function() {
    return this._foldedDefaultProps;
  }, set: function(e2) {
    this._foldedDefaultProps = o2 ? function(e3) {
      for (var t3 = [], n3 = 1; n3 < arguments.length; n3++)
        t3[n3 - 1] = arguments[n3];
      for (var r3 = 0, o3 = t3; r3 < o3.length; r3++)
        st(e3, o3[r3], true);
      return e3;
    }({}, s2.defaultProps, e2) : e2;
  } }), "production" !== process.env.NODE_ENV && (ke(y2, g2), P2.warnTooManyClasses = (x2 = {}, E2 = false, function(e2) {
    !E2 && (x2[e2] = true, Object.keys(x2).length >= 200) && (E2 = true, x2 = {});
  })), at(P2, function() {
    return ".".concat(P2.styledComponentId);
  }), c2 && Qe(P2, t2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), P2;
}
function tn(e2, t2) {
  for (var n2 = [e2[0]], r2 = 0, o2 = t2.length; r2 < o2; r2 += 1)
    n2.push(t2[r2], e2[r2 + 1]);
  return n2;
}
var nn = function(e2) {
  return Object.assign(e2, { isCss: true });
};
function rn(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  if (et(e2) || ot(e2))
    return nn(Yt(tn(Ce, u([e2], t2, true))));
  var r2 = e2;
  return 0 === t2.length && 1 === r2.length && "string" == typeof r2[0] ? Yt(r2) : nn(Yt(tn(r2, t2)));
}
function on(e2, t2, n2) {
  if (void 0 === n2 && (n2 = xe), !t2)
    throw lt(1, t2);
  var r2 = function(r3) {
    for (var o2 = [], s2 = 1; s2 < arguments.length; s2++)
      o2[s2 - 1] = arguments[s2];
    return e2(t2, n2, rn.apply(void 0, u([r3], o2, false)));
  };
  return r2.attrs = function(r3) {
    return on(e2, t2, l(l({}, n2), { attrs: Array.prototype.concat(n2.attrs, r3).filter(Boolean) }));
  }, r2.withConfig = function(r3) {
    return on(e2, t2, l(l({}, n2), r3));
  }, r2;
}
var sn = function(e2) {
  return on(en, e2);
}, an = sn;
Pe.forEach(function(e2) {
  an[e2] = sn(e2);
});
var cn = function() {
  function e2(e3, t2) {
    this.rules = e3, this.componentId = t2, this.isStatic = qt(e3), Ot.registerId(this.componentId + 1);
  }
  return e2.prototype.createStyles = function(e3, t2, n2, r2) {
    var o2 = r2(rt(Yt(this.rules, t2, n2, r2)), ""), s2 = this.componentId + e3;
    n2.insertRules(s2, s2, o2);
  }, e2.prototype.removeStyles = function(e3, t2) {
    t2.clearRules(this.componentId + e3);
  }, e2.prototype.renderStyles = function(e3, t2, n2, r2) {
    e3 > 2 && Ot.registerId(this.componentId + e3), this.removeStyles(e3, n2), this.createStyles(e3, t2, n2, r2);
  }, e2;
}();
function ln(t2) {
  for (var n2 = [], r2 = 1; r2 < arguments.length; r2++)
    n2[r2 - 1] = arguments[r2];
  var o2 = rn.apply(void 0, u([t2], n2, false)), s2 = "sc-global-".concat($e(JSON.stringify(o2))), a2 = new cn(o2, s2);
  "production" !== process.env.NODE_ENV && ke(s2);
  var i2 = function(t3) {
    var n3 = Lt(), r3 = e.useContext(Kt), i3 = e.useRef(n3.styleSheet.allocateGSInstance(s2)).current;
    return "production" !== process.env.NODE_ENV && e.Children.count(t3.children), "production" !== process.env.NODE_ENV && o2.some(function(e2) {
      return "string" == typeof e2 && -1 !== e2.indexOf("@import");
    }), n3.styleSheet.server && c2(i3, t3, n3.styleSheet, r3, n3.stylis), e.useLayoutEffect(function() {
      if (!n3.styleSheet.server)
        return c2(i3, t3, n3.styleSheet, r3, n3.stylis), function() {
          return a2.removeStyles(i3, n3.styleSheet);
        };
    }, [i3, t3, n3.styleSheet, r3, n3.stylis]), null;
  };
  function c2(e2, t3, n3, r3, o3) {
    if (a2.isStatic)
      a2.renderStyles(e2, Se, n3, o3);
    else {
      var s3 = l(l({}, t3), { theme: Ee(t3, r3, i2.defaultProps) });
      a2.renderStyles(e2, s3, n3, o3);
    }
  }
  return e.memo(i2);
}
function un(e2) {
  for (var t2 = [], n2 = 1; n2 < arguments.length; n2++)
    t2[n2 - 1] = arguments[n2];
  var r2 = rt(rn.apply(void 0, u([e2], t2, false))), o2 = $e(r2);
  return new Vt(o2, r2);
}
var pn = function() {
  function t2() {
    var t3 = this;
    this._emitSheetCSS = function() {
      var e2 = t3.instance.toString();
      if (!e2)
        return "";
      var n2 = kt(), r2 = rt([n2 && 'nonce="'.concat(n2, '"'), "".concat(de, '="true"'), "".concat(fe, '="').concat(me, '"')].filter(Boolean), " ");
      return "<style ".concat(r2, ">").concat(e2, "</style>");
    }, this.getStyleTags = function() {
      if (t3.sealed)
        throw lt(2);
      return t3._emitSheetCSS();
    }, this.getStyleElement = function() {
      var n2;
      if (t3.sealed)
        throw lt(2);
      var r2 = t3.instance.toString();
      if (!r2)
        return [];
      var o2 = ((n2 = {})[de] = "", n2[fe] = me, n2.dangerouslySetInnerHTML = { __html: r2 }, n2), s2 = kt();
      return s2 && (o2.nonce = s2), [e.createElement("style", l({}, o2, { key: "sc-0-0" }))];
    }, this.seal = function() {
      t3.sealed = true;
    }, this.instance = new Ot({ isServer: true }), this.sealed = false;
  }
  return t2.prototype.collectStyles = function(t3) {
    if (this.sealed)
      throw lt(2);
    return e.createElement(Ft, { sheet: this.instance }, t3);
  }, t2.prototype.interleaveWithNodeStream = function(e2) {
    throw lt(3);
  }, t2;
}(), dn = { StyleSheet: Ot, mainSheet: Dt }, hn = "__sc-".concat(de, "__");
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[hn] || (window[hn] = 0), window[hn] += 1);
const fn = Object.freeze(Object.defineProperty({ __proto__: null, ServerStyleSheet: pn, StyleSheetConsumer: zt, StyleSheetContext: $t, StyleSheetManager: Ft, ThemeConsumer: Zt, ThemeContext: Kt, ThemeProvider: function(t2) {
  var r2 = e.useContext(Kt), o2 = n(function() {
    return function(e2, t3) {
      if (!e2)
        throw lt(14);
      if (et(e2)) {
        var n2 = e2(t3);
        if ("production" !== process.env.NODE_ENV && (null === n2 || Array.isArray(n2) || "object" != typeof n2))
          throw lt(7);
        return n2;
      }
      if (Array.isArray(e2) || "object" != typeof e2)
        throw lt(8);
      return t3 ? l(l({}, t3), e2) : e2;
    }(t2.theme, r2);
  }, [t2.theme, r2]);
  return t2.children ? e.createElement(Kt.Provider, { value: o2 }, t2.children) : null;
}, __PRIVATE__: dn, createGlobalStyle: ln, css: rn, default: an, isStyledComponent: tt, keyframes: un, styled: an, useTheme: function() {
  var e2 = o(Kt);
  if (!e2)
    throw lt(18);
  return e2;
}, version: me, withTheme: function(t2) {
  var n2 = e.forwardRef(function(n3, r2) {
    var o2 = Ee(n3, e.useContext(Kt), t2.defaultProps);
    return e.createElement(t2, l({}, n3, { theme: o2, ref: r2 }));
  });
  return n2.displayName = "WithTheme(".concat(ze(t2), ")"), Qe(n2, t2);
} }, Symbol.toStringTag, { value: "Module" }));
export {
  Ft as Y,
  an as d,
  ln as f,
  rn as l,
  un as m,
  fn as s
};
