import gt from "axios";
import A, { useRef as we, useDebugValue as En, createElement as zr, useContext as Wr, forwardRef as Vr, useEffect as Re, useReducer as Yr, useState as Wt, isValidElement as Fe, cloneElement as Vt, useLayoutEffect as Hr } from "react";
if (typeof Br > "u")
  var Br = window;
var Yt = { exports: {} }, Ge = {};
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Tn;
function qr() {
  if (Tn)
    return Ge;
  Tn = 1;
  var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
  function i(c, l, d) {
    var f, m = {}, T = null, p = null;
    d !== void 0 && (T = "" + d), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (p = l.ref);
    for (f in l)
      r.call(l, f) && !s.hasOwnProperty(f) && (m[f] = l[f]);
    if (c && c.defaultProps)
      for (f in l = c.defaultProps, l)
        m[f] === void 0 && (m[f] = l[f]);
    return { $$typeof: t, type: c, key: T, ref: p, props: m, _owner: a.current };
  }
  return Ge.Fragment = n, Ge.jsx = i, Ge.jsxs = i, Ge;
}
var Ke = {};
/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Cn;
function Ur() {
  return Cn || (Cn = 1, process.env.NODE_ENV !== "production" && function() {
    var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
    function v(o) {
      if (o === null || typeof o != "object")
        return null;
      var u = y && o[y] || o[w];
      return typeof u == "function" ? u : null;
    }
    var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
    function C(o) {
      {
        for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
          h[k - 1] = arguments[k];
        S("error", o, h);
      }
    }
    function S(o, u, h) {
      {
        var k = g.ReactDebugCurrentFrame, N = k.getStackAddendum();
        N !== "" && (u += "%s", h = h.concat([N]));
        var j = h.map(function(I) {
          return String(I);
        });
        j.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, j);
      }
    }
    var E = !1, _ = !1, R = !1, P = !1, b = !1, q;
    q = Symbol.for("react.module.reference");
    function le(o) {
      return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || b || o === a || o === d || o === f || P || o === p || E || _ || R || typeof o == "object" && o !== null && (o.$$typeof === T || o.$$typeof === m || o.$$typeof === i || o.$$typeof === c || o.$$typeof === l || // This needs to include all possible module reference object
      // types supported by any Flight configuration anywhere since
      // we don't know which Flight build this will end up being used
      // with.
      o.$$typeof === q || o.getModuleId !== void 0));
    }
    function se(o, u, h) {
      var k = o.displayName;
      if (k)
        return k;
      var N = u.displayName || u.name || "";
      return N !== "" ? h + "(" + N + ")" : h;
    }
    function U(o) {
      return o.displayName || "Context";
    }
    function M(o) {
      if (o == null)
        return null;
      if (typeof o.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
        return o.displayName || o.name || null;
      if (typeof o == "string")
        return o;
      switch (o) {
        case r:
          return "Fragment";
        case n:
          return "Portal";
        case s:
          return "Profiler";
        case a:
          return "StrictMode";
        case d:
          return "Suspense";
        case f:
          return "SuspenseList";
      }
      if (typeof o == "object")
        switch (o.$$typeof) {
          case c:
            var u = o;
            return U(u) + ".Consumer";
          case i:
            var h = o;
            return U(h._context) + ".Provider";
          case l:
            return se(o, o.render, "ForwardRef");
          case m:
            var k = o.displayName || null;
            return k !== null ? k : M(o.type) || "Memo";
          case T: {
            var N = o, j = N._payload, I = N._init;
            try {
              return M(I(j));
            } catch {
              return null;
            }
          }
        }
      return null;
    }
    var F = Object.assign, K = 0, H, G, V, te, me, X, Ne;
    function $e() {
    }
    $e.__reactDisabledLog = !0;
    function De() {
      {
        if (K === 0) {
          H = console.log, G = console.info, V = console.warn, te = console.error, me = console.group, X = console.groupCollapsed, Ne = console.groupEnd;
          var o = {
            configurable: !0,
            enumerable: !0,
            value: $e,
            writable: !0
          };
          Object.defineProperties(console, {
            info: o,
            log: o,
            warn: o,
            error: o,
            group: o,
            groupCollapsed: o,
            groupEnd: o
          });
        }
        K++;
      }
    }
    function Ee() {
      {
        if (K--, K === 0) {
          var o = {
            configurable: !0,
            enumerable: !0,
            writable: !0
          };
          Object.defineProperties(console, {
            log: F({}, o, {
              value: H
            }),
            info: F({}, o, {
              value: G
            }),
            warn: F({}, o, {
              value: V
            }),
            error: F({}, o, {
              value: te
            }),
            group: F({}, o, {
              value: me
            }),
            groupCollapsed: F({}, o, {
              value: X
            }),
            groupEnd: F({}, o, {
              value: Ne
            })
          });
        }
        K < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
      }
    }
    var ge = g.ReactCurrentDispatcher, ue;
    function ne(o, u, h) {
      {
        if (ue === void 0)
          try {
            throw Error();
          } catch (N) {
            var k = N.stack.trim().match(/\n( *(at )?)/);
            ue = k && k[1] || "";
          }
        return `
` + ue + o;
      }
    }
    var Te = !1, pe;
    {
      var de = typeof WeakMap == "function" ? WeakMap : Map;
      pe = new de();
    }
    function sn(o, u) {
      if (!o || Te)
        return "";
      {
        var h = pe.get(o);
        if (h !== void 0)
          return h;
      }
      var k;
      Te = !0;
      var N = Error.prepareStackTrace;
      Error.prepareStackTrace = void 0;
      var j;
      j = ge.current, ge.current = null, De();
      try {
        if (u) {
          var I = function() {
            throw Error();
          };
          if (Object.defineProperty(I.prototype, "props", {
            set: function() {
              throw Error();
            }
          }), typeof Reflect == "object" && Reflect.construct) {
            try {
              Reflect.construct(I, []);
            } catch (J) {
              k = J;
            }
            Reflect.construct(o, [], I);
          } else {
            try {
              I.call();
            } catch (J) {
              k = J;
            }
            o.call(I.prototype);
          }
        } else {
          try {
            throw Error();
          } catch (J) {
            k = J;
          }
          o();
        }
      } catch (J) {
        if (J && k && typeof J.stack == "string") {
          for (var O = J.stack.split(`
`), Q = k.stack.split(`
`), B = O.length - 1, z = Q.length - 1; B >= 1 && z >= 0 && O[B] !== Q[z]; )
            z--;
          for (; B >= 1 && z >= 0; B--, z--)
            if (O[B] !== Q[z]) {
              if (B !== 1 || z !== 1)
                do
                  if (B--, z--, z < 0 || O[B] !== Q[z]) {
                    var re = `
` + O[B].replace(" at new ", " at ");
                    return o.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", o.displayName)), typeof o == "function" && pe.set(o, re), re;
                  }
                while (B >= 1 && z >= 0);
              break;
            }
        }
      } finally {
        Te = !1, ge.current = j, Ee(), Error.prepareStackTrace = N;
      }
      var Le = o ? o.displayName || o.name : "", Ce = Le ? ne(Le) : "";
      return typeof o == "function" && pe.set(o, Ce), Ce;
    }
    function gr(o, u, h) {
      return sn(o, !1);
    }
    function yr(o) {
      var u = o.prototype;
      return !!(u && u.isReactComponent);
    }
    function ot(o, u, h) {
      if (o == null)
        return "";
      if (typeof o == "function")
        return sn(o, yr(o));
      if (typeof o == "string")
        return ne(o);
      switch (o) {
        case d:
          return ne("Suspense");
        case f:
          return ne("SuspenseList");
      }
      if (typeof o == "object")
        switch (o.$$typeof) {
          case l:
            return gr(o.render);
          case m:
            return ot(o.type, u, h);
          case T: {
            var k = o, N = k._payload, j = k._init;
            try {
              return ot(j(N), u, h);
            } catch {
            }
          }
        }
      return "";
    }
    var qe = Object.prototype.hasOwnProperty, cn = {}, ln = g.ReactDebugCurrentFrame;
    function at(o) {
      if (o) {
        var u = o._owner, h = ot(o.type, o._source, u ? u.type : null);
        ln.setExtraStackFrame(h);
      } else
        ln.setExtraStackFrame(null);
    }
    function vr(o, u, h, k, N) {
      {
        var j = Function.call.bind(qe);
        for (var I in o)
          if (j(o, I)) {
            var O = void 0;
            try {
              if (typeof o[I] != "function") {
                var Q = Error((k || "React class") + ": " + h + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
                throw Q.name = "Invariant Violation", Q;
              }
              O = o[I](u, I, k, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
            } catch (B) {
              O = B;
            }
            O && !(O instanceof Error) && (at(N), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", h, I, typeof O), at(null)), O instanceof Error && !(O.message in cn) && (cn[O.message] = !0, at(N), C("Failed %s type: %s", h, O.message), at(null));
          }
      }
    }
    var br = Array.isArray;
    function xt(o) {
      return br(o);
    }
    function wr(o) {
      {
        var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
        return h;
      }
    }
    function Er(o) {
      try {
        return un(o), !1;
      } catch {
        return !0;
      }
    }
    function un(o) {
      return "" + o;
    }
    function dn(o) {
      if (Er(o))
        return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(o)), un(o);
    }
    var Ue = g.ReactCurrentOwner, Tr = {
      key: !0,
      ref: !0,
      __self: !0,
      __source: !0
    }, fn, pn, Ot;
    Ot = {};
    function Cr(o) {
      if (qe.call(o, "ref")) {
        var u = Object.getOwnPropertyDescriptor(o, "ref").get;
        if (u && u.isReactWarning)
          return !1;
      }
      return o.ref !== void 0;
    }
    function Sr(o) {
      if (qe.call(o, "key")) {
        var u = Object.getOwnPropertyDescriptor(o, "key").get;
        if (u && u.isReactWarning)
          return !1;
      }
      return o.key !== void 0;
    }
    function _r(o, u) {
      if (typeof o.ref == "string" && Ue.current && u && Ue.current.stateNode !== u) {
        var h = M(Ue.current.type);
        Ot[h] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(Ue.current.type), o.ref), Ot[h] = !0);
      }
    }
    function kr(o, u) {
      {
        var h = function() {
          fn || (fn = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
        };
        h.isReactWarning = !0, Object.defineProperty(o, "key", {
          get: h,
          configurable: !0
        });
      }
    }
    function Rr(o, u) {
      {
        var h = function() {
          pn || (pn = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
        };
        h.isReactWarning = !0, Object.defineProperty(o, "ref", {
          get: h,
          configurable: !0
        });
      }
    }
    var xr = function(o, u, h, k, N, j, I) {
      var O = {
        // This tag allows us to uniquely identify this as a React Element
        $$typeof: t,
        // Built-in properties that belong on the element
        type: o,
        key: u,
        ref: h,
        props: I,
        // Record the component responsible for creating this element.
        _owner: j
      };
      return O._store = {}, Object.defineProperty(O._store, "validated", {
        configurable: !1,
        enumerable: !1,
        writable: !0,
        value: !1
      }), Object.defineProperty(O, "_self", {
        configurable: !1,
        enumerable: !1,
        writable: !1,
        value: k
      }), Object.defineProperty(O, "_source", {
        configurable: !1,
        enumerable: !1,
        writable: !1,
        value: N
      }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
    };
    function Or(o, u, h, k, N) {
      {
        var j, I = {}, O = null, Q = null;
        h !== void 0 && (dn(h), O = "" + h), Sr(u) && (dn(u.key), O = "" + u.key), Cr(u) && (Q = u.ref, _r(u, N));
        for (j in u)
          qe.call(u, j) && !Tr.hasOwnProperty(j) && (I[j] = u[j]);
        if (o && o.defaultProps) {
          var B = o.defaultProps;
          for (j in B)
            I[j] === void 0 && (I[j] = B[j]);
        }
        if (O || Q) {
          var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
          O && kr(I, z), Q && Rr(I, z);
        }
        return xr(o, O, Q, N, k, Ue.current, I);
      }
    }
    var Pt = g.ReactCurrentOwner, hn = g.ReactDebugCurrentFrame;
    function je(o) {
      if (o) {
        var u = o._owner, h = ot(o.type, o._source, u ? u.type : null);
        hn.setExtraStackFrame(h);
      } else
        hn.setExtraStackFrame(null);
    }
    var It;
    It = !1;
    function At(o) {
      return typeof o == "object" && o !== null && o.$$typeof === t;
    }
    function mn() {
      {
        if (Pt.current) {
          var o = M(Pt.current.type);
          if (o)
            return `

Check the render method of \`` + o + "`.";
        }
        return "";
      }
    }
    function Pr(o) {
      {
        if (o !== void 0) {
          var u = o.fileName.replace(/^.*[\\\/]/, ""), h = o.lineNumber;
          return `

Check your code at ` + u + ":" + h + ".";
        }
        return "";
      }
    }
    var gn = {};
    function Ir(o) {
      {
        var u = mn();
        if (!u) {
          var h = typeof o == "string" ? o : o.displayName || o.name;
          h && (u = `

Check the top-level render call using <` + h + ">.");
        }
        return u;
      }
    }
    function yn(o, u) {
      {
        if (!o._store || o._store.validated || o.key != null)
          return;
        o._store.validated = !0;
        var h = Ir(u);
        if (gn[h])
          return;
        gn[h] = !0;
        var k = "";
        o && o._owner && o._owner !== Pt.current && (k = " It was passed a child from " + M(o._owner.type) + "."), je(o), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, k), je(null);
      }
    }
    function vn(o, u) {
      {
        if (typeof o != "object")
          return;
        if (xt(o))
          for (var h = 0; h < o.length; h++) {
            var k = o[h];
            At(k) && yn(k, u);
          }
        else if (At(o))
          o._store && (o._store.validated = !0);
        else if (o) {
          var N = v(o);
          if (typeof N == "function" && N !== o.entries)
            for (var j = N.call(o), I; !(I = j.next()).done; )
              At(I.value) && yn(I.value, u);
        }
      }
    }
    function Ar(o) {
      {
        var u = o.type;
        if (u == null || typeof u == "string")
          return;
        var h;
        if (typeof u == "function")
          h = u.propTypes;
        else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
        // Inner props are checked in the reconciler.
        u.$$typeof === m))
          h = u.propTypes;
        else
          return;
        if (h) {
          var k = M(u);
          vr(h, o.props, "prop", k, o);
        } else if (u.PropTypes !== void 0 && !It) {
          It = !0;
          var N = M(u);
          C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
        }
        typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
      }
    }
    function Nr(o) {
      {
        for (var u = Object.keys(o.props), h = 0; h < u.length; h++) {
          var k = u[h];
          if (k !== "children" && k !== "key") {
            je(o), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), je(null);
            break;
          }
        }
        o.ref !== null && (je(o), C("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
      }
    }
    var bn = {};
    function wn(o, u, h, k, N, j) {
      {
        var I = le(o);
        if (!I) {
          var O = "";
          (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
          var Q = Pr(N);
          Q ? O += Q : O += mn();
          var B;
          o === null ? B = "null" : xt(o) ? B = "array" : o !== void 0 && o.$$typeof === t ? (B = "<" + (M(o.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : B = typeof o, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, O);
        }
        var z = Or(o, u, h, N, j);
        if (z == null)
          return z;
        if (I) {
          var re = u.children;
          if (re !== void 0)
            if (k)
              if (xt(re)) {
                for (var Le = 0; Le < re.length; Le++)
                  vn(re[Le], o);
                Object.freeze && Object.freeze(re);
              } else
                C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
            else
              vn(re, o);
        }
        if (qe.call(u, "key")) {
          var Ce = M(o), J = Object.keys(u).filter(function(Fr) {
            return Fr !== "key";
          }), Nt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
          if (!bn[Ce + Nt]) {
            var Mr = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
            C(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`, Nt, Ce, Mr, Ce), bn[Ce + Nt] = !0;
          }
        }
        return o === r ? Nr(z) : Ar(z), z;
      }
    }
    function $r(o, u, h) {
      return wn(o, u, h, !0);
    }
    function Dr(o, u, h) {
      return wn(o, u, h, !1);
    }
    var jr = Dr, Lr = $r;
    Ke.Fragment = r, Ke.jsx = jr, Ke.jsxs = Lr;
  }()), Ke;
}
process.env.NODE_ENV === "production" ? Yt.exports = qr() : Yt.exports = Ur();
var en = Yt.exports;
const Ta = en.Fragment, fe = en.jsx, Sn = en.jsxs;
var Z = function() {
  return Z = Object.assign || function(t) {
    for (var n, r = 1, a = arguments.length; r < a; r++) {
      n = arguments[r];
      for (var s in n)
        Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
    }
    return t;
  }, Z.apply(this, arguments);
};
function Ca(e, t, n, r) {
  function a(s) {
    return s instanceof n ? s : new n(function(i) {
      i(s);
    });
  }
  return new (n || (n = Promise))(function(s, i) {
    function c(f) {
      try {
        d(r.next(f));
      } catch (m) {
        i(m);
      }
    }
    function l(f) {
      try {
        d(r.throw(f));
      } catch (m) {
        i(m);
      }
    }
    function d(f) {
      f.done ? s(f.value) : a(f.value).then(c, l);
    }
    d((r = r.apply(e, t || [])).next());
  });
}
function Sa(e, t) {
  var n = { label: 0, sent: function() {
    if (s[0] & 1)
      throw s[1];
    return s[1];
  }, trys: [], ops: [] }, r, a, s, i = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
  return i.next = c(0), i.throw = c(1), i.return = c(2), typeof Symbol == "function" && (i[Symbol.iterator] = function() {
    return this;
  }), i;
  function c(d) {
    return function(f) {
      return l([d, f]);
    };
  }
  function l(d) {
    if (r)
      throw new TypeError("Generator is already executing.");
    for (; i && (i = 0, d[0] && (n = 0)), n; )
      try {
        if (r = 1, a && (s = d[0] & 2 ? a.return : d[0] ? a.throw || ((s = a.return) && s.call(a), 0) : a.next) && !(s = s.call(a, d[1])).done)
          return s;
        switch (a = 0, s && (d = [d[0] & 2, s.value]), d[0]) {
          case 0:
          case 1:
            s = d;
            break;
          case 4:
            return n.label++, { value: d[1], done: !1 };
          case 5:
            n.label++, a = d[1], d = [0];
            continue;
          case 7:
            d = n.ops.pop(), n.trys.pop();
            continue;
          default:
            if (s = n.trys, !(s = s.length > 0 && s[s.length - 1]) && (d[0] === 6 || d[0] === 2)) {
              n = 0;
              continue;
            }
            if (d[0] === 3 && (!s || d[1] > s[0] && d[1] < s[3])) {
              n.label = d[1];
              break;
            }
            if (d[0] === 6 && n.label < s[1]) {
              n.label = s[1], s = d;
              break;
            }
            if (s && n.label < s[2]) {
              n.label = s[2], n.ops.push(d);
              break;
            }
            s[2] && n.ops.pop(), n.trys.pop();
            continue;
        }
        d = t.call(e, n);
      } catch (f) {
        d = [6, f], a = 0;
      } finally {
        r = s = 0;
      }
    if (d[0] & 5)
      throw d[1];
    return { value: d[0] ? d[1] : void 0, done: !0 };
  }
}
function Oe(e, t, n) {
  if (n || arguments.length === 2)
    for (var r = 0, a = t.length, s; r < a; r++)
      (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
  return e.concat(s || Array.prototype.slice.call(t));
}
function Gr(e) {
  var t = /* @__PURE__ */ Object.create(null);
  return function(n) {
    return t[n] === void 0 && (t[n] = e(n)), t[n];
  };
}
var Kr = /^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, Xr = /* @__PURE__ */ Gr(
  function(e) {
    return Kr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
  }
  /* Z+1 */
), L = "-ms-", Je = "-moz-", $ = "-webkit-", Yn = "comm", Et = "rule", tn = "decl", Qr = "@import", Jr = "@namespace", Hn = "@keyframes", Zr = "@layer", eo = Math.abs, Ze = String.fromCharCode, Ht = Object.assign;
function to(e, t) {
  return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
}
function qn(e) {
  return e.trim();
}
function he(e, t) {
  return (e = t.exec(e)) ? e[0] : e;
}
function x(e, t, n) {
  return e.replace(t, n);
}
function $t(e, t) {
  return e.indexOf(t);
}
function Y(e, t) {
  return e.charCodeAt(t) | 0;
}
function Pe(e, t, n) {
  return e.slice(t, n);
}
function ie(e) {
  return e.length;
}
function Un(e) {
  return e.length;
}
function Xe(e, t) {
  return t.push(e), e;
}
function no(e, t) {
  return e.map(t).join("");
}
function _n(e, t) {
  return e.filter(function(n) {
    return !he(n, t);
  });
}
var Tt = 1, Be = 1, Gn = 0, ae = 0, W = 0, Ye = "";
function Ct(e, t, n, r, a, s, i, c) {
  return { value: e, root: t, parent: n, type: r, props: a, children: s, line: Tt, column: Be, length: i, return: "", siblings: c };
}
function ye(e, t) {
  return Ht(Ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function Me(e) {
  for (; e.root; )
    e = ye(e.root, { children: [e] });
  Xe(e, e.siblings);
}
function ro() {
  return W;
}
function oo() {
  return W = ae > 0 ? Y(Ye, --ae) : 0, Be--, W === 10 && (Be = 1, Tt--), W;
}
function ce() {
  return W = ae < Gn ? Y(Ye, ae++) : 0, Be++, W === 10 && (Be = 1, Tt++), W;
}
function ve() {
  return Y(Ye, ae);
}
function dt() {
  return ae;
}
function St(e, t) {
  return Pe(Ye, e, t);
}
function nt(e) {
  switch (e) {
    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 ao(e) {
  return Tt = Be = 1, Gn = ie(Ye = e), ae = 0, [];
}
function so(e) {
  return Ye = "", e;
}
function Dt(e) {
  return qn(St(ae - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function io(e) {
  for (; (W = ve()) && W < 33; )
    ce();
  return nt(e) > 2 || nt(W) > 3 ? "" : " ";
}
function co(e, t) {
  for (; --t && ce() && !(W < 48 || W > 102 || W > 57 && W < 65 || W > 70 && W < 97); )
    ;
  return St(e, dt() + (t < 6 && ve() == 32 && ce() == 32));
}
function qt(e) {
  for (; ce(); )
    switch (W) {
      case e:
        return ae;
      case 34:
      case 39:
        e !== 34 && e !== 39 && qt(W);
        break;
      case 40:
        e === 41 && qt(e);
        break;
      case 92:
        ce();
        break;
    }
  return ae;
}
function lo(e, t) {
  for (; ce() && e + W !== 47 + 10; )
    if (e + W === 42 + 42 && ve() === 47)
      break;
  return "/*" + St(t, ae - 1) + "*" + Ze(e === 47 ? e : ce());
}
function uo(e) {
  for (; !nt(ve()); )
    ce();
  return St(e, ae);
}
function fo(e) {
  return so(ft("", null, null, null, [""], e = ao(e), 0, [0], e));
}
function ft(e, t, n, r, a, s, i, c, l) {
  for (var d = 0, f = 0, m = i, T = 0, p = 0, y = 0, w = 1, v = 1, g = 1, C = 0, S = 0, E = "", _ = a, R = s, P = r, b = E; v; )
    switch (y = S, S = ce()) {
      case 40:
        y != 108 && Y(b, m - 1) == 58 ? (C++, b += "(") : b += Dt(S);
        break;
      case 41:
        C--, b += ")";
        break;
      case 34:
      case 39:
      case 91:
        b += Dt(S);
        break;
      case 9:
      case 10:
      case 13:
      case 32:
        if (C > 0) {
          b += Ze(S);
          break;
        }
        b += io(y);
        break;
      case 92:
        b += co(dt() - 1, 7);
        continue;
      case 47:
        switch (ve()) {
          case 42:
          case 47:
            Xe(po(lo(ce(), dt()), t, n, l), l), (nt(y || 1) == 5 || nt(ve() || 1) == 5) && ie(b) && Pe(b, -1, void 0) !== " " && (b += " ");
            break;
          default:
            b += "/";
        }
        break;
      case 123 * w:
        c[d++] = ie(b) * g;
      case 125 * w:
      case 59:
      case 0:
        if (C > 0 && S) {
          b += Ze(S);
          break;
        }
        switch (S) {
          case 0:
          case 125:
            v = 0;
          case 59 + f:
            g == -1 && (b = x(b, /\f/g, "")), p > 0 && (ie(b) - m || w === 0) && Xe(p > 32 ? Rn(b + ";", r, n, m - 1, l) : Rn(x(b, " ", "") + ";", r, n, m - 2, l), l);
            break;
          case 59:
            b += ";";
          default:
            if (Xe(P = kn(b, t, n, d, f, a, c, E, _ = [], R = [], m, s), s), S === 123)
              if (f === 0)
                ft(b, t, P, P, _, s, m, c, R);
              else {
                switch (T) {
                  case 99:
                    if (Y(b, 3) === 110)
                      break;
                  case 108:
                    if (Y(b, 2) === 97)
                      break;
                  default:
                    f = 0;
                  case 100:
                  case 109:
                  case 115:
                }
                f ? ft(e, P, P, r && Xe(kn(e, P, P, 0, 0, a, c, E, a, _ = [], m, R), R), a, R, m, c, r ? _ : R) : ft(b, P, P, P, [""], R, 0, c, R);
              }
        }
        d = f = p = 0, w = g = 1, E = b = "", m = i;
        break;
      case 58:
        m = 1 + ie(b), p = y;
      default:
        if (w < 1) {
          if (S == 123)
            --w;
          else if (S == 125 && w++ == 0 && oo() == 125)
            continue;
        }
        switch (b += Ze(S), S * w) {
          case 38:
            g = f > 0 ? 1 : (b += "\f", -1);
            break;
          case 44:
            if (C > 0)
              break;
            c[d++] = (ie(b) - 1) * g, g = 1;
            break;
          case 64:
            ve() === 45 && (b += Dt(ce())), T = ve(), f = m = ie(E = b += uo(dt())), S++;
            break;
          case 45:
            y === 45 && ie(b) == 2 && (w = 0);
        }
    }
  return s;
}
function kn(e, t, n, r, a, s, i, c, l, d, f, m) {
  for (var T = a - 1, p = a === 0 ? s : [""], y = Un(p), w = 0, v = 0, g = 0; w < r; ++w)
    for (var C = 0, S = Pe(e, T + 1, T = eo(v = i[w])), E = e; C < y; ++C)
      (E = qn(v > 0 ? p[C] + " " + S : x(S, /&\f/g, p[C]))) && (l[g++] = E);
  return Ct(e, t, n, a === 0 ? Et : c, l, d, f, m);
}
function po(e, t, n, r) {
  return Ct(e, t, n, Yn, Ze(ro()), Pe(e, 2, -2), 0, r);
}
function Rn(e, t, n, r, a) {
  return Ct(e, t, n, tn, Pe(e, 0, r), Pe(e, r + 1, -1), r, a);
}
function Kn(e, t, n) {
  switch (to(e, t)) {
    case 5103:
      return $ + "print-" + e + e;
    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 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
      return $ + e + e;
    case 4855:
      return $ + e.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + e;
    case 4789:
      return Je + e + e;
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return $ + e + Je + e + L + e + e;
    case 5936:
      switch (Y(e, t + 11)) {
        case 114:
          return $ + e + L + x(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
        case 108:
          return $ + e + L + x(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
        case 45:
          return $ + e + L + x(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
      }
    case 6828:
    case 4268:
    case 2903:
      return $ + e + L + e + e;
    case 6165:
      return $ + e + L + "flex-" + e + e;
    case 5187:
      return $ + e + x(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + L + "flex-$1$2") + e;
    case 5443:
      return $ + e + L + "flex-item-" + x(e, /flex-|-self/g, "") + (he(e, /flex-|baseline/) ? "" : L + "grid-row-" + x(e, /flex-|-self/g, "")) + e;
    case 4675:
      return $ + e + L + "flex-line-pack" + x(e, /align-content|flex-|-self/g, "") + e;
    case 5548:
      return $ + e + L + x(e, "shrink", "negative") + e;
    case 5292:
      return $ + e + L + x(e, "basis", "preferred-size") + e;
    case 6060:
      return $ + "box-" + x(e, "-grow", "") + $ + e + L + x(e, "grow", "positive") + e;
    case 4554:
      return $ + x(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
    case 6187:
      return x(x(x(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
    case 5495:
    case 3959:
      return x(e, /(image-set\([^]*)/, $ + "$1$`$1");
    case 4968:
      return x(x(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + L + "flex-pack:$3"), /space-between/, "justify") + $ + e + e;
    case 4200:
      if (!he(e, /flex-|baseline/))
        return L + "grid-column-align" + Pe(e, t) + e;
      break;
    case 2592:
    case 3360:
      return L + x(e, "template-", "") + e;
    case 4384:
    case 3616:
      return n && n.some(function(r, a) {
        return t = a, he(r.props, /grid-\w+-end/);
      }) ? ~$t(e + (n = n[t].value), "span") ? e : L + x(e, "-start", "") + e + L + "grid-row-span:" + (~$t(n, "span") ? he(n, /\d+/) : +he(n, /\d+/) - +he(e, /\d+/)) + ";" : L + x(e, "-start", "") + e;
    case 4896:
    case 4128:
      return n && n.some(function(r) {
        return he(r.props, /grid-\w+-start/);
      }) ? e : L + x(x(e, "-end", "-span"), "span ", "") + e;
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return x(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
    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 (ie(e) - 1 - t > 6)
        switch (Y(e, t + 1)) {
          case 109:
            if (Y(e, t + 4) !== 45)
              break;
          case 102:
            return x(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + Je + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
          case 115:
            return ~$t(e, "stretch") ? Kn(x(e, "stretch", "fill-available"), t, n) + e : e;
        }
      break;
    case 5152:
    case 5920:
      return x(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, a, s, i, c, l, d) {
        return L + a + ":" + s + d + (i ? L + a + "-span:" + (c ? l : +l - +s) + d : "") + e;
      });
    case 4949:
      if (Y(e, t + 6) === 121)
        return x(e, ":", ":" + $) + e;
      break;
    case 6444:
      switch (Y(e, Y(e, 14) === 45 ? 18 : 11)) {
        case 120:
          return x(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + L + "$2box$3") + e;
        case 100:
          return x(e, ":", ":" + L) + e;
      }
      break;
    case 5719:
    case 2647:
    case 2135:
    case 3927:
    case 2391:
      return x(e, "scroll-", "scroll-snap-") + e;
  }
  return e;
}
function yt(e, t) {
  for (var n = "", r = 0; r < e.length; r++)
    n += t(e[r], r, e, t) || "";
  return n;
}
function ho(e, t, n, r) {
  switch (e.type) {
    case Zr:
      if (e.children.length)
        break;
    case Qr:
    case Jr:
    case tn:
      return e.return = e.return || e.value;
    case Yn:
      return "";
    case Hn:
      return e.return = e.value + "{" + yt(e.children, r) + "}";
    case Et:
      if (!ie(e.value = e.props.join(",")))
        return "";
  }
  return ie(n = yt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
}
function mo(e) {
  var t = Un(e);
  return function(n, r, a, s) {
    for (var i = "", c = 0; c < t; c++)
      i += e[c](n, r, a, s) || "";
    return i;
  };
}
function go(e) {
  return function(t) {
    t.root || (t = t.return) && e(t);
  };
}
function yo(e, t, n, r) {
  if (e.length > -1 && !e.return)
    switch (e.type) {
      case tn:
        e.return = Kn(e.value, e.length, n);
        return;
      case Hn:
        return yt([ye(e, { value: x(e.value, "@", "@" + $) })], r);
      case Et:
        if (e.length)
          return no(n = e.props, function(a) {
            switch (he(a, r = /(::plac\w+|:read-\w+)/)) {
              case ":read-only":
              case ":read-write":
                Me(ye(e, { props: [x(a, /:(read-\w+)/, ":" + Je + "$1")] })), Me(ye(e, { props: [a] })), Ht(e, { props: _n(n, r) });
                break;
              case "::placeholder":
                Me(ye(e, { props: [x(a, /:(plac\w+)/, ":" + $ + "input-$1")] })), Me(ye(e, { props: [x(a, /:(plac\w+)/, ":" + Je + "$1")] })), Me(ye(e, { props: [x(a, /:(plac\w+)/, L + "input-$1")] })), Me(ye(e, { props: [a] })), Ht(e, { props: _n(n, r) });
                break;
            }
            return "";
          });
    }
}
var vo = {
  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,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
}, Ie = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", nn = typeof window < "u" && "HTMLElement" in window, bo = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), xn = /invalid hook call/i, st = /* @__PURE__ */ new Set(), wo = function(e, t) {
  if (process.env.NODE_ENV !== "production") {
    var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
`) + `You may see this warning because you've called styled inside another component.
To resolve this only create new StyledComponents outside of any render method and function component.`, a = console.error;
    try {
      var s = !0;
      console.error = function(i) {
        for (var c = [], l = 1; l < arguments.length; l++)
          c[l - 1] = arguments[l];
        xn.test(i) ? (s = !1, st.delete(r)) : a.apply(void 0, Oe([i], c, !1));
      }, we(), s && !st.has(r) && (console.warn(r), st.add(r));
    } catch (i) {
      xn.test(i.message) && st.delete(r);
    } finally {
      console.error = a;
    }
  }
}, _t = Object.freeze([]), ze = Object.freeze({});
function Eo(e, t, n) {
  return n === void 0 && (n = ze), e.theme !== n.theme && e.theme || t || n.theme;
}
var Ut = /* @__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"]), To = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Co = /(^-|-$)/g;
function On(e) {
  return e.replace(To, "-").replace(Co, "");
}
var So = /(a)(d)/gi, Pn = function(e) {
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
};
function Gt(e) {
  var t, n = "";
  for (t = Math.abs(e); t > 52; t = t / 52 | 0)
    n = Pn(t % 52) + n;
  return (Pn(t % 52) + n).replace(So, "$1-$2");
}
var jt, _e = function(e, t) {
  for (var n = t.length; n; )
    e = 33 * e ^ t.charCodeAt(--n);
  return e;
}, Xn = function(e) {
  return _e(5381, e);
};
function Qn(e) {
  return Gt(Xn(e) >>> 0);
}
function Jn(e) {
  return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
}
function Lt(e) {
  return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
}
var Zn = typeof Symbol == "function" && Symbol.for, er = Zn ? Symbol.for("react.memo") : 60115, _o = Zn ? Symbol.for("react.forward_ref") : 60112, ko = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ro = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, tr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, xo = ((jt = {})[_o] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, jt[er] = tr, jt);
function In(e) {
  return ("type" in (t = e) && t.type.$$typeof) === er ? tr : "$$typeof" in e ? xo[e.$$typeof] : ko;
  var t;
}
var Oo = Object.defineProperty, Po = Object.getOwnPropertyNames, An = Object.getOwnPropertySymbols, Io = Object.getOwnPropertyDescriptor, Ao = Object.getPrototypeOf, Nn = Object.prototype;
function nr(e, t, n) {
  if (typeof t != "string") {
    if (Nn) {
      var r = Ao(t);
      r && r !== Nn && nr(e, r, n);
    }
    var a = Po(t);
    An && (a = a.concat(An(t)));
    for (var s = In(e), i = In(t), c = 0; c < a.length; ++c) {
      var l = a[c];
      if (!(l in Ro || n && n[l] || i && l in i || s && l in s)) {
        var d = Io(t, l);
        try {
          Oo(e, l, d);
        } catch {
        }
      }
    }
  }
  return e;
}
function We(e) {
  return typeof e == "function";
}
function rn(e) {
  return typeof e == "object" && "styledComponentId" in e;
}
function ke(e, t) {
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
}
function Kt(e, t) {
  if (e.length === 0)
    return "";
  for (var n = e[0], r = 1; r < e.length; r++)
    n += t ? t + e[r] : e[r];
  return n;
}
function Ve(e) {
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
}
function Xt(e, t, n) {
  if (n === void 0 && (n = !1), !n && !Ve(e) && !Array.isArray(e))
    return t;
  if (Array.isArray(t))
    for (var r = 0; r < t.length; r++)
      e[r] = Xt(e[r], t[r]);
  else if (Ve(t))
    for (var r in t)
      e[r] = Xt(e[r], t[r]);
  return e;
}
function on(e, t) {
  Object.defineProperty(e, "toString", { value: t });
}
var No = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.

`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.

- Are you trying to reuse it across renders?
- Are you accidentally calling collectStyles twice?

`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.

`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!

- Does this error occur on the client and is your target falsy?
- Does this error occur on the server and is the sheet falsy?

`, 5: `The clone method cannot be used on the client!

- Are you running in a client-like environment on the server?
- Are you trying to run SSR on the client?

`, 6: `Trying to insert a new style tag, but the given Node is unmounted!

- Are you using a custom target that isn't mounted?
- Does your document not have a valid head element?
- Have you accidentally removed a style tag manually?

`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.

`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021

`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.

`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.

`, 14: `ThemeProvider: "theme" prop is required.

`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
as for instance in your render method then you may be running into this limitation.

`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
Has styled-components' style tag been unmounted or altered by another script?
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
function $o() {
  for (var e = [], t = 0; t < arguments.length; t++)
    e[t] = arguments[t];
  for (var n = e[0], r = [], a = 1, s = e.length; a < s; a += 1)
    r.push(e[a]);
  return r.forEach(function(i) {
    n = n.replace(/%[a-z]/, i);
  }), n;
}
function He(e) {
  for (var t = [], n = 1; n < arguments.length; n++)
    t[n - 1] = arguments[n];
  return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error($o.apply(void 0, Oe([No[e]], t, !1)).trim());
}
var Do = function() {
  function e(t) {
    this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
  }
  return e.prototype.indexOfGroup = function(t) {
    for (var n = 0, r = 0; r < t; r++)
      n += this.groupSizes[r];
    return n;
  }, e.prototype.insertRules = function(t, n) {
    if (t >= this.groupSizes.length) {
      for (var r = this.groupSizes, a = r.length, s = a; t >= s; )
        if ((s <<= 1) < 0)
          throw He(16, "".concat(t));
      this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s;
      for (var i = a; i < s; i++)
        this.groupSizes[i] = 0;
    }
    for (var c = this.indexOfGroup(t + 1), l = (i = 0, n.length); i < l; i++)
      this.tag.insertRule(c, n[i]) && (this.groupSizes[t]++, c++);
  }, e.prototype.clearGroup = function(t) {
    if (t < this.length) {
      var n = this.groupSizes[t], r = this.indexOfGroup(t), a = r + n;
      this.groupSizes[t] = 0;
      for (var s = r; s < a; s++)
        this.tag.deleteRule(r);
    }
  }, e.prototype.getGroup = function(t) {
    var n = "";
    if (t >= this.length || this.groupSizes[t] === 0)
      return n;
    for (var r = this.groupSizes[t], a = this.indexOfGroup(t), s = a + r, i = a; i < s; i++)
      n += "".concat(this.tag.getRule(i)).concat(`/*!sc*/
`);
    return n;
  }, e;
}(), pt = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new Map(), ht = 1, it = function(e) {
  if (pt.has(e))
    return pt.get(e);
  for (; vt.has(ht); )
    ht++;
  var t = ht++;
  if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824))
    throw He(16, "".concat(t));
  return pt.set(e, t), vt.set(t, e), t;
}, jo = function(e, t) {
  ht = t + 1, pt.set(e, t), vt.set(t, e);
}, Lo = "style[".concat(Ie, "][").concat("data-styled-version", '="').concat("6.1.1", '"]'), Mo = new RegExp("^".concat(Ie, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Fo = function(e, t, n) {
  for (var r, a = n.split(","), s = 0, i = a.length; s < i; s++)
    (r = a[s]) && e.registerName(t, r);
}, Bo = function(e, t) {
  for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(`/*!sc*/
`), a = [], s = 0, i = r.length; s < i; s++) {
    var c = r[s].trim();
    if (c) {
      var l = c.match(Mo);
      if (l) {
        var d = 0 | parseInt(l[1], 10), f = l[2];
        d !== 0 && (jo(f, d), Fo(e, f, l[3]), e.getTag().insertRules(d, a)), a.length = 0;
      } else
        a.push(c);
    }
  }
};
function zo() {
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
}
var rr = function(e) {
  var t = document.head, n = e || t, r = document.createElement("style"), a = function(c) {
    var l = Array.from(c.querySelectorAll("style[".concat(Ie, "]")));
    return l[l.length - 1];
  }(n), s = a !== void 0 ? a.nextSibling : null;
  r.setAttribute(Ie, "active"), r.setAttribute("data-styled-version", "6.1.1");
  var i = zo();
  return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
}, Wo = function() {
  function e(t) {
    this.element = rr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
      if (n.sheet)
        return n.sheet;
      for (var r = document.styleSheets, a = 0, s = r.length; a < s; a++) {
        var i = r[a];
        if (i.ownerNode === n)
          return i;
      }
      throw He(17);
    }(this.element), this.length = 0;
  }
  return e.prototype.insertRule = function(t, n) {
    try {
      return this.sheet.insertRule(n, t), this.length++, !0;
    } catch {
      return !1;
    }
  }, e.prototype.deleteRule = function(t) {
    this.sheet.deleteRule(t), this.length--;
  }, e.prototype.getRule = function(t) {
    var n = this.sheet.cssRules[t];
    return n && n.cssText ? n.cssText : "";
  }, e;
}(), Vo = function() {
  function e(t) {
    this.element = rr(t), this.nodes = this.element.childNodes, this.length = 0;
  }
  return e.prototype.insertRule = function(t, n) {
    if (t <= this.length && t >= 0) {
      var r = document.createTextNode(n);
      return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
    }
    return !1;
  }, e.prototype.deleteRule = function(t) {
    this.element.removeChild(this.nodes[t]), this.length--;
  }, e.prototype.getRule = function(t) {
    return t < this.length ? this.nodes[t].textContent : "";
  }, e;
}(), Yo = function() {
  function e(t) {
    this.rules = [], this.length = 0;
  }
  return e.prototype.insertRule = function(t, n) {
    return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
  }, e.prototype.deleteRule = function(t) {
    this.rules.splice(t, 1), this.length--;
  }, e.prototype.getRule = function(t) {
    return t < this.length ? this.rules[t] : "";
  }, e;
}(), $n = nn, Ho = { isServer: !nn, useCSSOMInjection: !bo }, or = function() {
  function e(t, n, r) {
    t === void 0 && (t = ze), n === void 0 && (n = {});
    var a = this;
    this.options = Z(Z({}, Ho), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && nn && $n && ($n = !1, function(s) {
      for (var i = document.querySelectorAll(Lo), c = 0, l = i.length; c < l; c++) {
        var d = i[c];
        d && d.getAttribute(Ie) !== "active" && (Bo(s, d), d.parentNode && d.parentNode.removeChild(d));
      }
    }(this)), on(this, function() {
      return function(s) {
        for (var i = s.getTag(), c = i.length, l = "", d = function(m) {
          var T = function(g) {
            return vt.get(g);
          }(m);
          if (T === void 0)
            return "continue";
          var p = s.names.get(T), y = i.getGroup(m);
          if (p === void 0 || y.length === 0)
            return "continue";
          var w = "".concat(Ie, ".g").concat(m, '[id="').concat(T, '"]'), v = "";
          p !== void 0 && p.forEach(function(g) {
            g.length > 0 && (v += "".concat(g, ","));
          }), l += "".concat(y).concat(w, '{content:"').concat(v, '"}').concat(`/*!sc*/
`);
        }, f = 0; f < c; f++)
          d(f);
        return l;
      }(a);
    });
  }
  return e.registerId = function(t) {
    return it(t);
  }, e.prototype.reconstructWithOptions = function(t, n) {
    return n === void 0 && (n = !0), new e(Z(Z({}, this.options), t), this.gs, n && this.names || void 0);
  }, e.prototype.allocateGSInstance = function(t) {
    return this.gs[t] = (this.gs[t] || 0) + 1;
  }, e.prototype.getTag = function() {
    return this.tag || (this.tag = (t = function(n) {
      var r = n.useCSSOMInjection, a = n.target;
      return n.isServer ? new Yo(a) : r ? new Wo(a) : new Vo(a);
    }(this.options), new Do(t)));
    var t;
  }, e.prototype.hasNameForId = function(t, n) {
    return this.names.has(t) && this.names.get(t).has(n);
  }, e.prototype.registerName = function(t, n) {
    if (it(t), this.names.has(t))
      this.names.get(t).add(n);
    else {
      var r = /* @__PURE__ */ new Set();
      r.add(n), this.names.set(t, r);
    }
  }, e.prototype.insertRules = function(t, n, r) {
    this.registerName(t, n), this.getTag().insertRules(it(t), r);
  }, e.prototype.clearNames = function(t) {
    this.names.has(t) && this.names.get(t).clear();
  }, e.prototype.clearRules = function(t) {
    this.getTag().clearGroup(it(t)), this.clearNames(t);
  }, e.prototype.clearTag = function() {
    this.tag = void 0;
  }, e;
}(), qo = /&/g, Uo = /^\s*\/\/.*$/gm;
function ar(e, t) {
  return e.map(function(n) {
    return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
      return "".concat(t, " ").concat(r);
    })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = ar(n.children, t)), n;
  });
}
function Go(e) {
  var t, n, r, a = e === void 0 ? ze : e, s = a.options, i = s === void 0 ? ze : s, c = a.plugins, l = c === void 0 ? _t : c, d = function(T, p, y) {
    return y === n || y.startsWith(n) && y.endsWith(n) && y.replaceAll(n, "").length > 0 ? ".".concat(t) : T;
  }, f = l.slice();
  f.push(function(T) {
    T.type === Et && T.value.includes("&") && (T.props[0] = T.props[0].replace(qo, n).replace(r, d));
  }), i.prefix && f.push(yo), f.push(ho);
  var m = function(T, p, y, w) {
    p === void 0 && (p = ""), y === void 0 && (y = ""), w === void 0 && (w = "&"), t = w, n = p, r = new RegExp("\\".concat(n, "\\b"), "g");
    var v = T.replace(Uo, ""), g = fo(y || p ? "".concat(y, " ").concat(p, " { ").concat(v, " }") : v);
    i.namespace && (g = ar(g, i.namespace));
    var C = [];
    return yt(g, mo(f.concat(go(function(S) {
      return C.push(S);
    })))), C;
  };
  return m.hash = l.length ? l.reduce(function(T, p) {
    return p.name || He(15), _e(T, p.name);
  }, 5381).toString() : "", m;
}
var Ko = new or(), Qt = Go(), sr = A.createContext({ shouldForwardProp: void 0, styleSheet: Ko, stylis: Qt });
sr.Consumer;
A.createContext(void 0);
function Dn() {
  return Wr(sr);
}
var Jt = function() {
  function e(t, n) {
    var r = this;
    this.inject = function(a, s) {
      s === void 0 && (s = Qt);
      var i = r.name + s.hash;
      a.hasNameForId(r.id, i) || a.insertRules(r.id, i, s(r.rules, i, "@keyframes"));
    }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, on(this, function() {
      throw He(12, String(r.name));
    });
  }
  return e.prototype.getName = function(t) {
    return t === void 0 && (t = Qt), this.name + t.hash;
  }, e;
}(), Xo = function(e) {
  return e >= "A" && e <= "Z";
};
function jn(e) {
  for (var t = "", n = 0; n < e.length; n++) {
    var r = e[n];
    if (n === 1 && r === "-" && e[0] === "-")
      return e;
    Xo(r) ? t += "-" + r.toLowerCase() : t += r;
  }
  return t.startsWith("ms-") ? "-" + t : t;
}
var ir = function(e) {
  return e == null || e === !1 || e === "";
}, cr = function(e) {
  var t, n, r = [];
  for (var a in e) {
    var s = e[a];
    e.hasOwnProperty(a) && !ir(s) && (Array.isArray(s) && s.isCss || We(s) ? r.push("".concat(jn(a), ":"), s, ";") : Ve(s) ? r.push.apply(r, Oe(Oe(["".concat(a, " {")], cr(s), !1), ["}"], !1)) : r.push("".concat(jn(a), ": ").concat((t = a, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in vo || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
  }
  return r;
};
function xe(e, t, n, r) {
  if (ir(e))
    return [];
  if (rn(e))
    return [".".concat(e.styledComponentId)];
  if (We(e)) {
    if (!We(s = e) || s.prototype && s.prototype.isReactComponent || !t)
      return [e];
    var a = e(t);
    return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof Jt || Ve(a) || a === null || console.error("".concat(Jn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), xe(a, t, n, r);
  }
  var s;
  return e instanceof Jt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Ve(e) ? cr(e) : Array.isArray(e) ? Array.prototype.concat.apply(_t, e.map(function(i) {
    return xe(i, t, n, r);
  })) : [e.toString()];
}
function Qo(e) {
  for (var t = 0; t < e.length; t += 1) {
    var n = e[t];
    if (We(n) && !rn(n))
      return !1;
  }
  return !0;
}
var Jo = Xn("6.1.1"), Zo = function() {
  function e(t, n, r) {
    this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Qo(t), this.componentId = n, this.baseHash = _e(Jo, n), this.baseStyle = r, or.registerId(n);
  }
  return e.prototype.generateAndInjectStyles = function(t, n, r) {
    var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
    if (this.isStatic && !r.hash)
      if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
        a = ke(a, this.staticRulesId);
      else {
        var s = Kt(xe(this.rules, t, n, r)), i = Gt(_e(this.baseHash, s) >>> 0);
        if (!n.hasNameForId(this.componentId, i)) {
          var c = r(s, ".".concat(i), void 0, this.componentId);
          n.insertRules(this.componentId, i, c);
        }
        a = ke(a, i), this.staticRulesId = i;
      }
    else {
      for (var l = _e(this.baseHash, r.hash), d = "", f = 0; f < this.rules.length; f++) {
        var m = this.rules[f];
        if (typeof m == "string")
          d += m, process.env.NODE_ENV !== "production" && (l = _e(l, m));
        else if (m) {
          var T = Kt(xe(m, t, n, r));
          l = _e(l, T + f), d += T;
        }
      }
      if (d) {
        var p = Gt(l >>> 0);
        n.hasNameForId(this.componentId, p) || n.insertRules(this.componentId, p, r(d, ".".concat(p), void 0, this.componentId)), a = ke(a, p);
      }
    }
    return a;
  }, e;
}(), lr = A.createContext(void 0);
lr.Consumer;
var Mt = {}, Ln = /* @__PURE__ */ new Set();
function ea(e, t, n) {
  var r = rn(e), a = e, s = !Lt(e), i = t.attrs, c = i === void 0 ? _t : i, l = t.componentId, d = l === void 0 ? function(E, _) {
    var R = typeof E != "string" ? "sc" : On(E);
    Mt[R] = (Mt[R] || 0) + 1;
    var P = "".concat(R, "-").concat(Qn("6.1.1" + R + Mt[R]));
    return _ ? "".concat(_, "-").concat(P) : P;
  }(t.displayName, t.parentComponentId) : l, f = t.displayName, m = f === void 0 ? function(E) {
    return Lt(E) ? "styled.".concat(E) : "Styled(".concat(Jn(E), ")");
  }(e) : f, T = t.displayName && t.componentId ? "".concat(On(t.displayName), "-").concat(t.componentId) : t.componentId || d, p = r && a.attrs ? a.attrs.concat(c).filter(Boolean) : c, y = t.shouldForwardProp;
  if (r && a.shouldForwardProp) {
    var w = a.shouldForwardProp;
    if (t.shouldForwardProp) {
      var v = t.shouldForwardProp;
      y = function(E, _) {
        return w(E, _) && v(E, _);
      };
    } else
      y = w;
  }
  var g = new Zo(n, T, r ? a.componentStyle : void 0);
  function C(E, _) {
    return function(R, P, b) {
      var q = R.attrs, le = R.componentStyle, se = R.defaultProps, U = R.foldedComponentIds, M = R.styledComponentId, F = R.target, K = A.useContext(lr), H = Dn(), G = R.shouldForwardProp || H.shouldForwardProp;
      process.env.NODE_ENV !== "production" && En(M);
      var V = function(De, Ee, ge) {
        for (var ue, ne = Z(Z({}, Ee), { className: void 0, theme: ge }), Te = 0; Te < De.length; Te += 1) {
          var pe = We(ue = De[Te]) ? ue(ne) : ue;
          for (var de in pe)
            ne[de] = de === "className" ? ke(ne[de], pe[de]) : de === "style" ? Z(Z({}, ne[de]), pe[de]) : pe[de];
        }
        return Ee.className && (ne.className = ke(ne.className, Ee.className)), ne;
      }(q, P, Eo(P, K, se) || ze), te = V.as || F, me = {};
      for (var X in V)
        V[X] === void 0 || X[0] === "$" || X === "as" || X === "theme" || (X === "forwardedAs" ? me.as = V.forwardedAs : G && !G(X, te) || (me[X] = V[X], G || process.env.NODE_ENV !== "development" || Xr(X) || Ln.has(X) || !Ut.has(te) || (Ln.add(X), console.warn('styled-components: it looks like an unknown prop "'.concat(X, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
      var Ne = function(De, Ee) {
        var ge = Dn(), ue = De.generateAndInjectStyles(Ee, ge.styleSheet, ge.stylis);
        return process.env.NODE_ENV !== "production" && En(ue), ue;
      }(le, V);
      process.env.NODE_ENV !== "production" && R.warnTooManyClasses && R.warnTooManyClasses(Ne);
      var $e = ke(U, M);
      return Ne && ($e += " " + Ne), V.className && ($e += " " + V.className), me[Lt(te) && !Ut.has(te) ? "class" : "className"] = $e, me.ref = b, zr(te, me);
    }(S, E, _);
  }
  C.displayName = m;
  var S = A.forwardRef(C);
  return S.attrs = p, S.componentStyle = g, S.displayName = m, S.shouldForwardProp = y, S.foldedComponentIds = r ? ke(a.foldedComponentIds, a.styledComponentId) : "", S.styledComponentId = T, S.target = r ? a.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
    return this._foldedDefaultProps;
  }, set: function(E) {
    this._foldedDefaultProps = r ? function(_) {
      for (var R = [], P = 1; P < arguments.length; P++)
        R[P - 1] = arguments[P];
      for (var b = 0, q = R; b < q.length; b++)
        Xt(_, q[b], !0);
      return _;
    }({}, a.defaultProps, E) : E;
  } }), process.env.NODE_ENV !== "production" && (wo(m, T), S.warnTooManyClasses = function(E, _) {
    var R = {}, P = !1;
    return function(b) {
      if (!P && (R[b] = !0, Object.keys(R).length >= 200)) {
        var q = _ ? ' with the id of "'.concat(_, '"') : "";
        console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(q, `.
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
Example:
  const Component = styled.div.attrs(props => ({
    style: {
      background: props.background,
    },
  }))\`width: 100%;\`

  <Component />`), P = !0, R = {};
      }
    };
  }(m, T)), on(S, function() {
    return ".".concat(S.styledComponentId);
  }), s && nr(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
}
function Mn(e, t) {
  for (var n = [e[0]], r = 0, a = t.length; r < a; r += 1)
    n.push(t[r], e[r + 1]);
  return n;
}
var Fn = function(e) {
  return Object.assign(e, { isCss: !0 });
};
function ur(e) {
  for (var t = [], n = 1; n < arguments.length; n++)
    t[n - 1] = arguments[n];
  if (We(e) || Ve(e)) {
    var r = e;
    return Fn(xe(Mn(_t, Oe([r], t, !0))));
  }
  var a = e;
  return t.length === 0 && a.length === 1 && typeof a[0] == "string" ? xe(a) : Fn(xe(Mn(a, t)));
}
function Zt(e, t, n) {
  if (n === void 0 && (n = ze), !t)
    throw He(1, t);
  var r = function(a) {
    for (var s = [], i = 1; i < arguments.length; i++)
      s[i - 1] = arguments[i];
    return e(t, n, ur.apply(void 0, Oe([a], s, !1)));
  };
  return r.attrs = function(a) {
    return Zt(e, t, Z(Z({}, n), { attrs: Array.prototype.concat(n.attrs, a).filter(Boolean) }));
  }, r.withConfig = function(a) {
    return Zt(e, t, Z(Z({}, n), a));
  }, r;
}
var dr = function(e) {
  return Zt(ea, e);
}, rt = dr;
Ut.forEach(function(e) {
  rt[e] = dr(e);
});
function _a(e) {
  for (var t = [], n = 1; n < arguments.length; n++)
    t[n - 1] = arguments[n];
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
  var r = Kt(ur.apply(void 0, Oe([e], t, !1))), a = Qn(r);
  return new Jt(a, r);
}
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
Perhaps you're looking to import 'styled-components/native'?
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
var ct = "__sc-".concat(Ie, "__");
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ct] || (window[ct] = 0), window[ct] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.

See https://s-c.sh/2BAXzed for more info.`), window[ct] += 1);
function fr(e) {
  var t, n, r = "";
  if (typeof e == "string" || typeof e == "number")
    r += e;
  else if (typeof e == "object")
    if (Array.isArray(e))
      for (t = 0; t < e.length; t++)
        e[t] && (n = fr(e[t])) && (r && (r += " "), r += n);
    else
      for (t in e)
        e[t] && (r && (r += " "), r += t);
  return r;
}
function be() {
  for (var e, t, n = 0, r = ""; n < arguments.length; )
    (e = arguments[n++]) && (t = fr(e)) && (r && (r += " "), r += t);
  return r;
}
const et = (e) => typeof e == "number" && !isNaN(e), Ae = (e) => typeof e == "string", ee = (e) => typeof e == "function", mt = (e) => Ae(e) || ee(e) ? e : null, Ft = (e) => Fe(e) || Ae(e) || ee(e) || et(e);
function ta(e, t, n) {
  n === void 0 && (n = 300);
  const { scrollHeight: r, style: a } = e;
  requestAnimationFrame(() => {
    a.minHeight = "initial", a.height = r + "px", a.transition = `all ${n}ms`, requestAnimationFrame(() => {
      a.height = "0", a.padding = "0", a.margin = "0", setTimeout(t, n);
    });
  });
}
function kt(e) {
  let { enter: t, exit: n, appendPosition: r = !1, collapse: a = !0, collapseDuration: s = 300 } = e;
  return function(i) {
    let { children: c, position: l, preventExitTransition: d, done: f, nodeRef: m, isIn: T } = i;
    const p = r ? `${t}--${l}` : t, y = r ? `${n}--${l}` : n, w = we(0);
    return Hr(() => {
      const v = m.current, g = p.split(" "), C = (S) => {
        S.target === m.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", C), v.removeEventListener("animationcancel", C), w.current === 0 && S.type !== "animationcancel" && v.classList.remove(...g));
      };
      v.classList.add(...g), v.addEventListener("animationend", C), v.addEventListener("animationcancel", C);
    }, []), Re(() => {
      const v = m.current, g = () => {
        v.removeEventListener("animationend", g), a ? ta(v, f, s) : f();
      };
      T || (d ? g() : (w.current = 1, v.className += ` ${y}`, v.addEventListener("animationend", g)));
    }, [T]), A.createElement(A.Fragment, null, c);
  };
}
function Bn(e, t) {
  return e != null ? { content: e.content, containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, status: t } : {};
}
const oe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map(), on(e, t) {
  return this.list.has(e) || this.list.set(e, []), this.list.get(e).push(t), this;
}, off(e, t) {
  if (t) {
    const n = this.list.get(e).filter((r) => r !== t);
    return this.list.set(e, n), this;
  }
  return this.list.delete(e), this;
}, cancelEmit(e) {
  const t = this.emitQueue.get(e);
  return t && (t.forEach(clearTimeout), this.emitQueue.delete(e)), this;
}, emit(e) {
  this.list.has(e) && this.list.get(e).forEach((t) => {
    const n = setTimeout(() => {
      t(...[].slice.call(arguments, 1));
    }, 0);
    this.emitQueue.has(e) || this.emitQueue.set(e, []), this.emitQueue.get(e).push(n);
  });
} }, lt = (e) => {
  let { theme: t, type: n, ...r } = e;
  return A.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...r });
}, Bt = { info: function(e) {
  return A.createElement(lt, { ...e }, A.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
}, warning: function(e) {
  return A.createElement(lt, { ...e }, A.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
}, success: function(e) {
  return A.createElement(lt, { ...e }, A.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
}, error: function(e) {
  return A.createElement(lt, { ...e }, A.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
}, spinner: function() {
  return A.createElement("div", { className: "Toastify__spinner" });
} };
function na(e) {
  const [, t] = Yr((p) => p + 1, 0), [n, r] = Wt([]), a = we(null), s = we(/* @__PURE__ */ new Map()).current, i = (p) => n.indexOf(p) !== -1, c = we({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: i, getToast: (p) => s.get(p) }).current;
  function l(p) {
    let { containerId: y } = p;
    const { limit: w } = c.props;
    !w || y && c.containerId !== y || (c.count -= c.queue.length, c.queue = []);
  }
  function d(p) {
    r((y) => p == null ? [] : y.filter((w) => w !== p));
  }
  function f() {
    const { toastContent: p, toastProps: y, staleId: w } = c.queue.shift();
    T(p, y, w);
  }
  function m(p, y) {
    let { delay: w, staleId: v, ...g } = y;
    if (!Ft(p) || function(U) {
      return !a.current || c.props.enableMultiContainer && U.containerId !== c.props.containerId || s.has(U.toastId) && U.updateId == null;
    }(g))
      return;
    const { toastId: C, updateId: S, data: E } = g, { props: _ } = c, R = () => d(C), P = S == null;
    P && c.count++;
    const b = { ..._, style: _.toastStyle, key: c.toastKey++, ...Object.fromEntries(Object.entries(g).filter((U) => {
      let [M, F] = U;
      return F != null;
    })), toastId: C, updateId: S, data: E, closeToast: R, isIn: !1, className: mt(g.className || _.toastClassName), bodyClassName: mt(g.bodyClassName || _.bodyClassName), progressClassName: mt(g.progressClassName || _.progressClassName), autoClose: !g.isLoading && (q = g.autoClose, le = _.autoClose, q === !1 || et(q) && q > 0 ? q : le), deleteToast() {
      const U = Bn(s.get(C), "removed");
      s.delete(C), oe.emit(4, U);
      const M = c.queue.length;
      if (c.count = C == null ? c.count - c.displayedToast : c.count - 1, c.count < 0 && (c.count = 0), M > 0) {
        const F = C == null ? c.props.limit : 1;
        if (M === 1 || F === 1)
          c.displayedToast++, f();
        else {
          const K = F > M ? M : F;
          c.displayedToast = K;
          for (let H = 0; H < K; H++)
            f();
        }
      } else
        t();
    } };
    var q, le;
    b.iconOut = function(U) {
      let { theme: M, type: F, isLoading: K, icon: H } = U, G = null;
      const V = { theme: M, type: F };
      return H === !1 || (ee(H) ? G = H(V) : Fe(H) ? G = Vt(H, V) : Ae(H) || et(H) ? G = H : K ? G = Bt.spinner() : ((te) => te in Bt)(F) && (G = Bt[F](V))), G;
    }(b), ee(g.onOpen) && (b.onOpen = g.onOpen), ee(g.onClose) && (b.onClose = g.onClose), b.closeButton = _.closeButton, g.closeButton === !1 || Ft(g.closeButton) ? b.closeButton = g.closeButton : g.closeButton === !0 && (b.closeButton = !Ft(_.closeButton) || _.closeButton);
    let se = p;
    Fe(p) && !Ae(p.type) ? se = Vt(p, { closeToast: R, toastProps: b, data: E }) : ee(p) && (se = p({ closeToast: R, toastProps: b, data: E })), _.limit && _.limit > 0 && c.count > _.limit && P ? c.queue.push({ toastContent: se, toastProps: b, staleId: v }) : et(w) ? setTimeout(() => {
      T(se, b, v);
    }, w) : T(se, b, v);
  }
  function T(p, y, w) {
    const { toastId: v } = y;
    w && s.delete(w);
    const g = { content: p, props: y };
    s.set(v, g), r((C) => [...C, v].filter((S) => S !== w)), oe.emit(4, Bn(g, g.props.updateId == null ? "added" : "updated"));
  }
  return Re(() => (c.containerId = e.containerId, oe.cancelEmit(3).on(0, m).on(1, (p) => a.current && d(p)).on(5, l).emit(2, c), () => {
    s.clear(), oe.emit(3, c);
  }), []), Re(() => {
    c.props = e, c.isToastActive = i, c.displayedToast = n.length;
  }), { getToastToRender: function(p) {
    const y = /* @__PURE__ */ new Map(), w = Array.from(s.values());
    return e.newestOnTop && w.reverse(), w.forEach((v) => {
      const { position: g } = v.props;
      y.has(g) || y.set(g, []), y.get(g).push(v);
    }), Array.from(y, (v) => p(v[0], v[1]));
  }, containerRef: a, isToastActive: i };
}
function zn(e) {
  return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientX : e.clientX;
}
function Wn(e) {
  return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
}
function ra(e) {
  const [t, n] = Wt(!1), [r, a] = Wt(!1), s = we(null), i = we({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, c = we(e), { autoClose: l, pauseOnHover: d, closeToast: f, onClick: m, closeOnClick: T } = e;
  function p(E) {
    if (e.draggable) {
      E.nativeEvent.type === "touchstart" && E.nativeEvent.preventDefault(), i.didMove = !1, document.addEventListener("mousemove", g), document.addEventListener("mouseup", C), document.addEventListener("touchmove", g), document.addEventListener("touchend", C);
      const _ = s.current;
      i.canCloseOnClick = !0, i.canDrag = !0, i.boundingRect = _.getBoundingClientRect(), _.style.transition = "", i.x = zn(E.nativeEvent), i.y = Wn(E.nativeEvent), e.draggableDirection === "x" ? (i.start = i.x, i.removalDistance = _.offsetWidth * (e.draggablePercent / 100)) : (i.start = i.y, i.removalDistance = _.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
    }
  }
  function y(E) {
    if (i.boundingRect) {
      const { top: _, bottom: R, left: P, right: b } = i.boundingRect;
      E.nativeEvent.type !== "touchend" && e.pauseOnHover && i.x >= P && i.x <= b && i.y >= _ && i.y <= R ? v() : w();
    }
  }
  function w() {
    n(!0);
  }
  function v() {
    n(!1);
  }
  function g(E) {
    const _ = s.current;
    i.canDrag && _ && (i.didMove = !0, t && v(), i.x = zn(E), i.y = Wn(E), i.delta = e.draggableDirection === "x" ? i.x - i.start : i.y - i.start, i.start !== i.x && (i.canCloseOnClick = !1), _.style.transform = `translate${e.draggableDirection}(${i.delta}px)`, _.style.opacity = "" + (1 - Math.abs(i.delta / i.removalDistance)));
  }
  function C() {
    document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", C), document.removeEventListener("touchmove", g), document.removeEventListener("touchend", C);
    const E = s.current;
    if (i.canDrag && i.didMove && E) {
      if (i.canDrag = !1, Math.abs(i.delta) > i.removalDistance)
        return a(!0), void e.closeToast();
      E.style.transition = "transform 0.2s, opacity 0.2s", E.style.transform = `translate${e.draggableDirection}(0)`, E.style.opacity = "1";
    }
  }
  Re(() => {
    c.current = e;
  }), Re(() => (s.current && s.current.addEventListener("d", w, { once: !0 }), ee(e.onOpen) && e.onOpen(Fe(e.children) && e.children.props), () => {
    const E = c.current;
    ee(E.onClose) && E.onClose(Fe(E.children) && E.children.props);
  }), []), Re(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", w), window.addEventListener("blur", v)), () => {
    e.pauseOnFocusLoss && (window.removeEventListener("focus", w), window.removeEventListener("blur", v));
  }), [e.pauseOnFocusLoss]);
  const S = { onMouseDown: p, onTouchStart: p, onMouseUp: y, onTouchEnd: y };
  return l && d && (S.onMouseEnter = v, S.onMouseLeave = w), T && (S.onClick = (E) => {
    m && m(E), i.canCloseOnClick && f();
  }), { playToast: w, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: s, eventHandlers: S };
}
function pr(e) {
  let { closeToast: t, theme: n, ariaLabel: r = "close" } = e;
  return A.createElement("button", { className: `Toastify__close-button Toastify__close-button--${n}`, type: "button", onClick: (a) => {
    a.stopPropagation(), t(a);
  }, "aria-label": r }, A.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, A.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
}
function oa(e) {
  let { delay: t, isRunning: n, closeToast: r, type: a = "default", hide: s, className: i, style: c, controlledProgress: l, progress: d, rtl: f, isIn: m, theme: T } = e;
  const p = s || l && d === 0, y = { ...c, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: p ? 0 : 1 };
  l && (y.transform = `scaleX(${d})`);
  const w = be("Toastify__progress-bar", l ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${T}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": f }), v = ee(i) ? i({ rtl: f, type: a, defaultClassName: w }) : be(w, i);
  return A.createElement("div", { role: "progressbar", "aria-hidden": p ? "true" : "false", "aria-label": "notification timer", className: v, style: y, [l && d >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: l && d < 1 ? null : () => {
    m && r();
  } });
}
const aa = (e) => {
  const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: a } = ra(e), { closeButton: s, children: i, autoClose: c, onClick: l, type: d, hideProgressBar: f, closeToast: m, transition: T, position: p, className: y, style: w, bodyClassName: v, bodyStyle: g, progressClassName: C, progressStyle: S, updateId: E, role: _, progress: R, rtl: P, toastId: b, deleteToast: q, isIn: le, isLoading: se, iconOut: U, closeOnClick: M, theme: F } = e, K = be("Toastify__toast", `Toastify__toast-theme--${F}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": P }, { "Toastify__toast--close-on-click": M }), H = ee(y) ? y({ rtl: P, position: p, type: d, defaultClassName: K }) : be(K, y), G = !!R || !c, V = { closeToast: m, type: d, theme: F };
  let te = null;
  return s === !1 || (te = ee(s) ? s(V) : Fe(s) ? Vt(s, V) : pr(V)), A.createElement(T, { isIn: le, done: q, position: p, preventExitTransition: n, nodeRef: r }, A.createElement("div", { id: b, onClick: l, className: H, ...a, style: w, ref: r }, A.createElement("div", { ...le && { role: _ }, className: ee(v) ? v({ type: d }) : be("Toastify__toast-body", v), style: g }, U != null && A.createElement("div", { className: be("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !se }) }, U), A.createElement("div", null, i)), te, A.createElement(oa, { ...E && !G ? { key: `pb-${E}` } : {}, rtl: P, theme: F, delay: c, isRunning: t, isIn: le, closeToast: m, hide: f, type: d, style: S, className: C, controlledProgress: G, progress: R || 0 })));
}, Rt = function(e, t) {
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
}, sa = kt(Rt("bounce", !0));
kt(Rt("slide", !0));
kt(Rt("zoom"));
kt(Rt("flip"));
const Vn = Vr((e, t) => {
  const { getToastToRender: n, containerRef: r, isToastActive: a } = na(e), { className: s, style: i, rtl: c, containerId: l } = e;
  function d(f) {
    const m = be("Toastify__toast-container", `Toastify__toast-container--${f}`, { "Toastify__toast-container--rtl": c });
    return ee(s) ? s({ position: f, rtl: c, defaultClassName: m }) : be(m, mt(s));
  }
  return Re(() => {
    t && (t.current = r.current);
  }, []), A.createElement("div", { ref: r, className: "Toastify", id: l }, n((f, m) => {
    const T = m.length ? { ...i } : { ...i, pointerEvents: "none" };
    return A.createElement("div", { className: d(f), style: T, key: `container-${f}` }, m.map((p, y) => {
      let { content: w, props: v } = p;
      return A.createElement(aa, { ...v, isIn: a(v.toastId), style: { ...v.style, "--nth": y + 1, "--len": m.length }, key: `toast-${v.key}` }, w);
    }));
  }));
});
Vn.displayName = "ToastContainer", Vn.defaultProps = { position: "top-right", transition: sa, autoClose: 5e3, closeButton: pr, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
let zt, Se = /* @__PURE__ */ new Map(), Qe = [], ia = 1;
function hr() {
  return "" + ia++;
}
function ca(e) {
  return e && (Ae(e.toastId) || et(e.toastId)) ? e.toastId : hr();
}
function tt(e, t) {
  return Se.size > 0 ? oe.emit(0, e, t) : Qe.push({ content: e, options: t }), t.toastId;
}
function bt(e, t) {
  return { ...t, type: t && t.type || e, toastId: ca(t) };
}
function ut(e) {
  return (t, n) => tt(t, bt(e, n));
}
function D(e, t) {
  return tt(e, bt("default", t));
}
D.loading = (e, t) => tt(e, bt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), D.promise = function(e, t, n) {
  let r, { pending: a, error: s, success: i } = t;
  a && (r = Ae(a) ? D.loading(a, n) : D.loading(a.render, { ...n, ...a }));
  const c = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l = (f, m, T) => {
    if (m == null)
      return void D.dismiss(r);
    const p = { type: f, ...c, ...n, data: T }, y = Ae(m) ? { render: m } : m;
    return r ? D.update(r, { ...p, ...y }) : D(y.render, { ...p, ...y }), T;
  }, d = ee(e) ? e() : e;
  return d.then((f) => l("success", i, f)).catch((f) => l("error", s, f)), d;
}, D.success = ut("success"), D.info = ut("info"), D.error = ut("error"), D.warning = ut("warning"), D.warn = D.warning, D.dark = (e, t) => tt(e, bt("default", { theme: "dark", ...t })), D.dismiss = (e) => {
  Se.size > 0 ? oe.emit(1, e) : Qe = Qe.filter((t) => e != null && t.options.toastId !== e);
}, D.clearWaitingQueue = function(e) {
  return e === void 0 && (e = {}), oe.emit(5, e);
}, D.isActive = (e) => {
  let t = !1;
  return Se.forEach((n) => {
    n.isToastActive && n.isToastActive(e) && (t = !0);
  }), t;
}, D.update = function(e, t) {
  t === void 0 && (t = {}), setTimeout(() => {
    const n = function(r, a) {
      let { containerId: s } = a;
      const i = Se.get(s || zt);
      return i && i.getToast(r);
    }(e, t);
    if (n) {
      const { props: r, content: a } = n, s = { delay: 100, ...r, ...t, toastId: t.toastId || e, updateId: hr() };
      s.toastId !== e && (s.staleId = e);
      const i = s.render || a;
      delete s.render, tt(i, s);
    }
  }, 0);
}, D.done = (e) => {
  D.update(e, { progress: 1 });
}, D.onChange = (e) => (oe.on(4, e), () => {
  oe.off(4, e);
}), D.POSITION = { TOP_LEFT: "top-left", TOP_RIGHT: "top-right", TOP_CENTER: "top-center", BOTTOM_LEFT: "bottom-left", BOTTOM_RIGHT: "bottom-right", BOTTOM_CENTER: "bottom-center" }, D.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, oe.on(2, (e) => {
  zt = e.containerId || e, Se.set(zt, e), Qe.forEach((t) => {
    oe.emit(0, t.content, t.options);
  }), Qe = [];
}).on(3, (e) => {
  Se.delete(e.containerId || e), Se.size === 0 && oe.off(0).off(1).off(5);
});
const la = () => /* @__PURE__ */ fe("svg", { width: "36", height: "42", viewBox: "0 0 36 42", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ fe(
  "path",
  {
    d: "M18 0C8.06 0 0 8.06 0 18C0 27.94 8.06 36 18 36C27.94 36 36 27.94 36 18C36 8.06 27.94 0 18 0ZM19.8 27H16.2V23.4H19.8V27ZM19.8 19.8H16.2V9H19.8V19.8Z",
    fill: "#F95454"
  }
) }), ua = () => /* @__PURE__ */ fe("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ fe(
  "path",
  {
    d: "M18 6L6 18M6 6L18 18",
    stroke: "#313333",
    strokeWidth: "2",
    strokeLinecap: "round",
    strokeLinejoin: "round"
  }
) }), da = ({ message: e, onClose: t }) => /* @__PURE__ */ Sn(fa, { children: [
  /* @__PURE__ */ fe(pa, { children: /* @__PURE__ */ fe(la, {}) }),
  /* @__PURE__ */ Sn(ha, { children: [
    /* @__PURE__ */ fe("p", { children: e }),
    /* @__PURE__ */ fe(ma, { onClick: t, children: /* @__PURE__ */ fe(ua, {}) })
  ] })
] }), fa = rt.div`
  height: 82px;
  width: 100%;
  border-radius: 9.245px;
  border: 0.5px solid #da1c5c;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
`, pa = rt.div`
  padding-left: 14px;
  height: 100%;
  position: relative;
  width: 90px;
  display: grid;
  place-items: center;
  background: rgba(249, 84, 84, 0.1);

  &::before {
    content: "";
    position: absolute;
    display: block;
    width: 14px;
    bottom: 0;
    top: 0;
    left: 0;
    background: #f95454;
  }
`, ha = rt.div`
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px 0 20px;

  p {
    color: #313333;
    font-size: 15.5px;
    font-weight: 400;
    flex: 1;
    margin: 0;
  }
`, ma = rt.button`
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  svg {
    transform: scale(1.2);
  }

  &:hover {
    opacity: 0.7;
  }
`, mr = (e) => D(
  /* @__PURE__ */ fe(
    da,
    {
      message: e,
      onClose: () => D.dismiss()
    }
  ),
  {
    position: "top-right",
    autoClose: 5e3,
    hideProgressBar: !0,
    closeOnClick: !1,
    pauseOnHover: !0,
    draggable: !0,
    closeButton: !1,
    className: "custom-error-toast",
    bodyClassName: "custom-error-toast-body",
    style: {
      background: "transparent",
      border: "none",
      borderRadius: 0,
      padding: 0,
      boxShadow: "none",
      width: "700px",
      maxWidth: "700px"
    },
    bodyStyle: {
      padding: 0,
      margin: 0
    }
  }
), ga = (e) => D.success(e, {
  position: "top-right",
  autoClose: 3e3,
  hideProgressBar: !1,
  closeOnClick: !0,
  pauseOnHover: !0,
  draggable: !0
}), ya = (e) => D.info(e, {
  position: "top-right",
  autoClose: 4e3,
  hideProgressBar: !1,
  closeOnClick: !0,
  pauseOnHover: !0,
  draggable: !0
}), va = (e) => D.warning(e, {
  position: "top-right",
  autoClose: 4e3,
  hideProgressBar: !1,
  closeOnClick: !0,
  pauseOnHover: !0,
  draggable: !0
}), ba = {
  error: mr,
  success: ga,
  info: ya,
  warning: va
}, ka = ba, wt = /* @__PURE__ */ new Map(), an = gt.create({
  baseURL: window.location.hostname.includes("staging") || window.location.hostname.includes("localhost") ? "https://dev-117782726-api.learngual.com" : "https://api.learngual.com"
});
an.interceptors.request.use(
  async (e) => {
    const t = e.url;
    if (wt.has(t))
      return console.log("preventing::", t), Promise.reject(new gt.Cancel("Duplicate request"));
    const n = gt.CancelToken.source();
    wt.set(t, n), e.cancelToken = n.token;
    const a = document.cookie.split(";");
    let s, i;
    for (let c = 0; c < a.length; c++) {
      const l = a[c].trim();
      if (l.startsWith("access=")) {
        s = l.substring(7, l.length);
        break;
      }
    }
    for (let c = 0; c < a.length; c++) {
      const l = a[c].trim();
      if (l.startsWith("defaultAccountID=")) {
        i = l.substring(
          17,
          l.length
        );
        break;
      }
    }
    if (s) {
      e.headers.Authorization = `Bearer ${s}`;
      const c = {
        // ...config.params,
        // // _tz: date.getTimezoneOffset() / 60,
        // _account: defaultAccountID,
        // //
        _account: i,
        ...e.params
      };
      e.params = c;
    }
    return e;
  },
  (e) => Promise.reject(e)
);
an.interceptors.response.use(
  (e) => (wt.delete(e.config.url), console.log("deleting", e.config.url), e.status === 207 && !window.location.host.includes("staging") && !window.location.host.includes("local") && (window.location.href = "/auth/account-type"), e),
  (e) => {
    var t, n, r;
    if (e)
      return e.config && wt.delete(e.config.url), gt.isCancel(e) ? {} : (((t = e.response) == null ? void 0 : t.status) === 400 && mr(((r = (n = e == null ? void 0 : e.response) == null ? void 0 : n.data) == null ? void 0 : r.detail) || "Bad request"), e);
  }
);
const Ra = an;
export {
  Ta as F,
  D as Q,
  Ca as _,
  fe as a,
  mr as b,
  _a as c,
  ga as d,
  Sa as e,
  ka as f,
  ya as g,
  va as h,
  Ra as i,
  Sn as j,
  ur as n,
  rt as s
};
//# sourceMappingURL=axiosConfig-89980232.js.map
