"use strict";
var In = Object.create;
var we = Object.defineProperty;
var kn = Object.getOwnPropertyDescriptor;
var Nn = Object.getOwnPropertyNames;
var Bn = Object.getPrototypeOf, Dn = Object.prototype.hasOwnProperty;
var a = (e, r) => we(e, "name", { value: r, configurable: !0 });
var q = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), $n = (e, r) => {
  for (var t in r)
    we(e, t, { get: r[t], enumerable: !0 });
}, Xr = (e, r, t, n) => {
  if (r && typeof r == "object" || typeof r == "function")
    for (let o of Nn(r))
      !Dn.call(e, o) && o !== t && we(e, o, { get: () => r[o], enumerable: !(n = kn(r, o)) || n.enumerable });
  return e;
};
var Y = (e, r, t) => (t = e != null ? In(Bn(e)) : {}, Xr(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  r || !e || !e.__esModule ? we(t, "default", { value: e, enumerable: !0 }) : t,
  e
)), zn = (e) => Xr(we({}, "__esModule", { value: !0 }), e);

// ../node_modules/react-is/cjs/react-is.production.min.js
var bt = q((C) => {
  "use strict";
  var I = typeof Symbol == "function" && Symbol.for, Sr = I ? Symbol.for("react.element") : 60103, Rr = I ? Symbol.for("react.portal") : 60106,
  qe = I ? Symbol.for("react.fragment") : 60107, Xe = I ? Symbol.for("react.strict_mode") : 60108, Ze = I ? Symbol.for("react.profiler") : 60114,
  Qe = I ? Symbol.for("react.provider") : 60109, er = I ? Symbol.for("react.context") : 60110, Ar = I ? Symbol.for("react.async_mode") : 60111,
  rr = I ? Symbol.for("react.concurrent_mode") : 60111, tr = I ? Symbol.for("react.forward_ref") : 60112, nr = I ? Symbol.for("react.suspens\
e") : 60113, Zn = I ? Symbol.for("react.suspense_list") : 60120, or = I ? Symbol.for("react.memo") : 60115, ar = I ? Symbol.for("react.lazy") :
  60116, Qn = I ? Symbol.for("react.block") : 60121, eo = I ? Symbol.for("react.fundamental") : 60117, ro = I ? Symbol.for("react.responder") :
  60118, to = I ? Symbol.for("react.scope") : 60119;
  function z(e) {
    if (typeof e == "object" && e !== null) {
      var r = e.$$typeof;
      switch (r) {
        case Sr:
          switch (e = e.type, e) {
            case Ar:
            case rr:
            case qe:
            case Ze:
            case Xe:
            case nr:
              return e;
            default:
              switch (e = e && e.$$typeof, e) {
                case er:
                case tr:
                case ar:
                case or:
                case Qe:
                  return e;
                default:
                  return r;
              }
          }
        case Rr:
          return r;
      }
    }
  }
  a(z, "z");
  function yt(e) {
    return z(e) === rr;
  }
  a(yt, "A");
  C.AsyncMode = Ar;
  C.ConcurrentMode = rr;
  C.ContextConsumer = er;
  C.ContextProvider = Qe;
  C.Element = Sr;
  C.ForwardRef = tr;
  C.Fragment = qe;
  C.Lazy = ar;
  C.Memo = or;
  C.Portal = Rr;
  C.Profiler = Ze;
  C.StrictMode = Xe;
  C.Suspense = nr;
  C.isAsyncMode = function(e) {
    return yt(e) || z(e) === Ar;
  };
  C.isConcurrentMode = yt;
  C.isContextConsumer = function(e) {
    return z(e) === er;
  };
  C.isContextProvider = function(e) {
    return z(e) === Qe;
  };
  C.isElement = function(e) {
    return typeof e == "object" && e !== null && e.$$typeof === Sr;
  };
  C.isForwardRef = function(e) {
    return z(e) === tr;
  };
  C.isFragment = function(e) {
    return z(e) === qe;
  };
  C.isLazy = function(e) {
    return z(e) === ar;
  };
  C.isMemo = function(e) {
    return z(e) === or;
  };
  C.isPortal = function(e) {
    return z(e) === Rr;
  };
  C.isProfiler = function(e) {
    return z(e) === Ze;
  };
  C.isStrictMode = function(e) {
    return z(e) === Xe;
  };
  C.isSuspense = function(e) {
    return z(e) === nr;
  };
  C.isValidElementType = function(e) {
    return typeof e == "string" || typeof e == "function" || e === qe || e === rr || e === Ze || e === Xe || e === nr || e === Zn || typeof e ==
    "object" && e !== null && (e.$$typeof === ar || e.$$typeof === or || e.$$typeof === Qe || e.$$typeof === er || e.$$typeof === tr || e.$$typeof ===
    eo || e.$$typeof === ro || e.$$typeof === to || e.$$typeof === Qn);
  };
  C.typeOf = z;
});

// ../node_modules/react-is/cjs/react-is.development.js
var Et = q((_) => {
  "use strict";
  process.env.NODE_ENV !== "production" && function() {
    "use strict";
    var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106,
    n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114,
    s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111,
    d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") :
    60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116,
    O = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118,
    A = e ? Symbol.for("react.scope") : 60119;
    function P(p) {
      return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
      p === n || p === d || p === i || p === o || p === l || p === y || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof ===
      w || p.$$typeof === s || p.$$typeof === c || p.$$typeof === u || p.$$typeof === R || p.$$typeof === S || p.$$typeof === A || p.$$typeof ===
      O);
    }
    a(P, "isValidElementType");
    function h(p) {
      if (typeof p == "object" && p !== null) {
        var br = p.$$typeof;
        switch (br) {
          case r:
            var Ve = p.type;
            switch (Ve) {
              case f:
              case d:
              case n:
              case i:
              case o:
              case l:
                return Ve;
              default:
                var qr = Ve && Ve.$$typeof;
                switch (qr) {
                  case c:
                  case u:
                  case T:
                  case w:
                  case s:
                    return qr;
                  default:
                    return br;
                }
            }
          case t:
            return br;
        }
      }
    }
    a(h, "typeOf");
    var v = f, b = d, g = c, W = s, K = r, U = u, Q = n, hr = T, gr = w, yr = t, En = i, vn = o, xn = l, Jr = !1;
    function Tn(p) {
      return Jr || (Jr = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\
r code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Kr(p) || h(p) === f;
    }
    a(Tn, "isAsyncMode");
    function Kr(p) {
      return h(p) === d;
    }
    a(Kr, "isConcurrentMode");
    function On(p) {
      return h(p) === c;
    }
    a(On, "isContextConsumer");
    function Cn(p) {
      return h(p) === s;
    }
    a(Cn, "isContextProvider");
    function _n(p) {
      return typeof p == "object" && p !== null && p.$$typeof === r;
    }
    a(_n, "isElement");
    function Sn(p) {
      return h(p) === u;
    }
    a(Sn, "isForwardRef");
    function Rn(p) {
      return h(p) === n;
    }
    a(Rn, "isFragment");
    function An(p) {
      return h(p) === T;
    }
    a(An, "isLazy");
    function wn(p) {
      return h(p) === w;
    }
    a(wn, "isMemo");
    function Pn(p) {
      return h(p) === t;
    }
    a(Pn, "isPortal");
    function Fn(p) {
      return h(p) === i;
    }
    a(Fn, "isProfiler");
    function Mn(p) {
      return h(p) === o;
    }
    a(Mn, "isStrictMode");
    function Ln(p) {
      return h(p) === l;
    }
    a(Ln, "isSuspense"), _.AsyncMode = v, _.ConcurrentMode = b, _.ContextConsumer = g, _.ContextProvider = W, _.Element = K, _.ForwardRef = U,
    _.Fragment = Q, _.Lazy = hr, _.Memo = gr, _.Portal = yr, _.Profiler = En, _.StrictMode = vn, _.Suspense = xn, _.isAsyncMode = Tn, _.isConcurrentMode =
    Kr, _.isContextConsumer = On, _.isContextProvider = Cn, _.isElement = _n, _.isForwardRef = Sn, _.isFragment = Rn, _.isLazy = An, _.isMemo =
    wn, _.isPortal = Pn, _.isProfiler = Fn, _.isStrictMode = Mn, _.isSuspense = Ln, _.isValidElementType = P, _.typeOf = h;
  }();
});

// ../node_modules/react-is/index.js
var vt = q(($a, wr) => {
  "use strict";
  process.env.NODE_ENV === "production" ? wr.exports = bt() : wr.exports = Et();
});

// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
var Mr = q((za, St) => {
  "use strict";
  var Pr = vt(), no = {
    childContextTypes: !0,
    contextType: !0,
    contextTypes: !0,
    defaultProps: !0,
    displayName: !0,
    getDefaultProps: !0,
    getDerivedStateFromError: !0,
    getDerivedStateFromProps: !0,
    mixins: !0,
    propTypes: !0,
    type: !0
  }, oo = {
    name: !0,
    length: !0,
    prototype: !0,
    caller: !0,
    callee: !0,
    arguments: !0,
    arity: !0
  }, ao = {
    $$typeof: !0,
    render: !0,
    defaultProps: !0,
    displayName: !0,
    propTypes: !0
  }, Ct = {
    $$typeof: !0,
    compare: !0,
    defaultProps: !0,
    displayName: !0,
    propTypes: !0,
    type: !0
  }, Fr = {};
  Fr[Pr.ForwardRef] = ao;
  Fr[Pr.Memo] = Ct;
  function xt(e) {
    return Pr.isMemo(e) ? Ct : Fr[e.$$typeof] || no;
  }
  a(xt, "getStatics");
  var io = Object.defineProperty, so = Object.getOwnPropertyNames, Tt = Object.getOwnPropertySymbols, co = Object.getOwnPropertyDescriptor, fo = Object.
  getPrototypeOf, Ot = Object.prototype;
  function _t(e, r, t) {
    if (typeof r != "string") {
      if (Ot) {
        var n = fo(r);
        n && n !== Ot && _t(e, n, t);
      }
      var o = so(r);
      Tt && (o = o.concat(Tt(r)));
      for (var i = xt(e), s = xt(r), c = 0; c < o.length; ++c) {
        var f = o[c];
        if (!oo[f] && !(t && t[f]) && !(s && s[f]) && !(i && i[f])) {
          var d = co(r, f);
          try {
            io(e, f, d);
          } catch {
          }
        }
      }
    }
    return e;
  }
  a(_t, "hoistNonReactStatics");
  St.exports = _t;
});

// ../node_modules/@babel/runtime/helpers/extends.js
var Vr = q((ui, X) => {
  function Ur() {
    return X.exports = Ur = Object.assign ? Object.assign.bind() : function(e) {
      for (var r = 1; r < arguments.length; r++) {
        var t = arguments[r];
        for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
      }
      return e;
    }, X.exports.__esModule = !0, X.exports.default = X.exports, Ur.apply(null, arguments);
  }
  a(Ur, "_extends");
  X.exports = Ur, X.exports.__esModule = !0, X.exports.default = X.exports;
});

// ../node_modules/map-or-similar/src/similar.js
var Gt = q((Wi, jt) => {
  function oe() {
    return this.list = [], this.lastItem = void 0, this.size = 0, this;
  }
  a(oe, "Similar");
  oe.prototype.get = function(e) {
    var r;
    if (this.lastItem && this.isEqual(this.lastItem.key, e))
      return this.lastItem.val;
    if (r = this.indexOf(e), r >= 0)
      return this.lastItem = this.list[r], this.list[r].val;
  };
  oe.prototype.set = function(e, r) {
    var t;
    return this.lastItem && this.isEqual(this.lastItem.key, e) ? (this.lastItem.val = r, this) : (t = this.indexOf(e), t >= 0 ? (this.lastItem =
    this.list[t], this.list[t].val = r, this) : (this.lastItem = { key: e, val: r }, this.list.push(this.lastItem), this.size++, this));
  };
  oe.prototype.delete = function(e) {
    var r;
    if (this.lastItem && this.isEqual(this.lastItem.key, e) && (this.lastItem = void 0), r = this.indexOf(e), r >= 0)
      return this.size--, this.list.splice(r, 1)[0];
  };
  oe.prototype.has = function(e) {
    var r;
    return this.lastItem && this.isEqual(this.lastItem.key, e) ? !0 : (r = this.indexOf(e), r >= 0 ? (this.lastItem = this.list[r], !0) : !1);
  };
  oe.prototype.forEach = function(e, r) {
    var t;
    for (t = 0; t < this.size; t++)
      e.call(r || this, this.list[t].val, this.list[t].key, this);
  };
  oe.prototype.indexOf = function(e) {
    var r;
    for (r = 0; r < this.size; r++)
      if (this.isEqual(this.list[r].key, e))
        return r;
    return -1;
  };
  oe.prototype.isEqual = function(e, r) {
    return e === r || e !== e && r !== r;
  };
  jt.exports = oe;
});

// ../node_modules/map-or-similar/src/map-or-similar.js
var Jt = q((Gi, Yt) => {
  Yt.exports = function(e) {
    if (typeof Map != "function" || e) {
      var r = Gt();
      return new r();
    } else
      return /* @__PURE__ */ new Map();
  };
});

// ../node_modules/memoizerific/src/memoizerific.js
var Xt = q((Yi, qt) => {
  var Kt = Jt();
  qt.exports = function(e) {
    var r = new Kt(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), t = [];
    return function(n) {
      var o = /* @__PURE__ */ a(function() {
        var i = r, s, c, f = arguments.length - 1, d = Array(f + 1), u = !0, l;
        if ((o.numArgs || o.numArgs === 0) && o.numArgs !== f + 1)
          throw new Error("Memoizerific functions should always be called with the same number of arguments");
        for (l = 0; l < f; l++) {
          if (d[l] = {
            cacheItem: i,
            arg: arguments[l]
          }, i.has(arguments[l])) {
            i = i.get(arguments[l]);
            continue;
          }
          u = !1, s = new Kt(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), i.set(arguments[l], s), i = s;
        }
        return u && (i.has(arguments[f]) ? c = i.get(arguments[f]) : u = !1), u || (c = n.apply(null, arguments), i.set(arguments[f], c)), e >
        0 && (d[f] = {
          cacheItem: i,
          arg: arguments[f]
        }, u ? Fo(t, d) : t.push(d), t.length > e && Mo(t.shift())), o.wasMemoized = u, o.numArgs = f + 1, c;
      }, "memoizerific");
      return o.limit = e, o.wasMemoized = !1, o.cache = r, o.lru = t, o;
    };
  };
  function Fo(e, r) {
    var t = e.length, n = r.length, o, i, s;
    for (i = 0; i < t; i++) {
      for (o = !0, s = 0; s < n; s++)
        if (!Lo(e[i][s].arg, r[s].arg)) {
          o = !1;
          break;
        }
      if (o)
        break;
    }
    e.push(e.splice(i, 1)[0]);
  }
  a(Fo, "moveToMostRecentLru");
  function Mo(e) {
    var r = e.length, t = e[r - 1], n, o;
    for (t.cacheItem.delete(t.arg), o = r - 2; o >= 0 && (t = e[o], n = t.cacheItem.get(t.arg), !n || !n.size); o--)
      t.cacheItem.delete(t.arg);
  }
  a(Mo, "removeCachedResult");
  function Lo(e, r) {
    return e === r || e !== e && r !== r;
  }
  a(Lo, "isEqual");
});

// ../node_modules/ts-dedent/dist/index.js
var gn = q((Ue) => {
  "use strict";
  Object.defineProperty(Ue, "__esModule", { value: !0 });
  Ue.dedent = void 0;
  function hn(e) {
    for (var r = [], t = 1; t < arguments.length; t++)
      r[t - 1] = arguments[t];
    var n = Array.from(typeof e == "string" ? [e] : e);
    n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
    var o = n.reduce(function(c, f) {
      var d = f.match(/\n([\t ]+|(?!\s).)/g);
      return d ? c.concat(d.map(function(u) {
        var l, y;
        return (y = (l = u.match(/[\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && y !== void 0 ? y : 0;
      })) : c;
    }, []);
    if (o.length) {
      var i = new RegExp(`
[	 ]{` + Math.min.apply(Math, o) + "}", "g");
      n = n.map(function(c) {
        return c.replace(i, `
`);
      });
    }
    n[0] = n[0].replace(/^\r?\n/, "");
    var s = n[0];
    return r.forEach(function(c, f) {
      var d = s.match(/(?:^|\n)( *)$/), u = d ? d[1] : "", l = c;
      typeof c == "string" && c.includes(`
`) && (l = String(c).split(`
`).map(function(y, w) {
        return w === 0 ? y : "" + u + y;
      }).join(`
`)), s += l + n[f + 1];
    }), s;
  }
  a(hn, "dedent");
  Ue.dedent = hn;
  Ue.default = hn;
});

// src/theming/index.ts
var ra = {};
$n(ra, {
  CacheProvider: () => Br,
  ClassNames: () => zt,
  Global: () => $t,
  ThemeProvider: () => $r,
  background: () => G,
  color: () => m,
  convert: () => mr,
  create: () => $o,
  createCache: () => ke,
  createGlobal: () => Zt,
  createReset: () => Wr,
  css: () => Se,
  darken: () => an,
  ensure: () => Qo,
  ignoreSsrWarning: () => ea,
  isPropValid: () => lr,
  jsx: () => fr,
  keyframes: () => le,
  lighten: () => on,
  styled: () => ur,
  themes: () => Ae,
  typography: () => H,
  useTheme: () => Dr,
  withTheme: () => zr
});
module.exports = zn(ra);

// ../node_modules/@babel/runtime/helpers/esm/extends.js
function ae() {
  return ae = Object.assign ? Object.assign.bind() : function(e) {
    for (var r = 1; r < arguments.length; r++) {
      var t = arguments[r];
      for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
    }
    return e;
  }, ae.apply(null, arguments);
}
a(ae, "_extends");

// ../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
var L = Y(require("react")), De = require("react");

// ../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
var Un = !1;
function Vn(e) {
  if (e.sheet)
    return e.sheet;
  for (var r = 0; r < document.styleSheets.length; r++)
    if (document.styleSheets[r].ownerNode === e)
      return document.styleSheets[r];
}
a(Vn, "sheetForTag");
function Hn(e) {
  var r = document.createElement("style");
  return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode(
  "")), r.setAttribute("data-s", ""), r;
}
a(Hn, "createStyleElement");
var Zr = /* @__PURE__ */ function() {
  function e(t) {
    var n = this;
    this._insertTag = function(o) {
      var i;
      n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i =
      n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, i), n.tags.push(o);
    }, this.isSpeedy = t.speedy === void 0 ? !Un : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container =
    t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
  }
  a(e, "StyleSheet");
  var r = e.prototype;
  return r.hydrate = /* @__PURE__ */ a(function(n) {
    n.forEach(this._insertTag);
  }, "hydrate"), r.insert = /* @__PURE__ */ a(function(n) {
    this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Hn(this));
    var o = this.tags[this.tags.length - 1];
    if (this.isSpeedy) {
      var i = Vn(o);
      try {
        i.insertRule(n, i.cssRules.length);
      } catch {
      }
    } else
      o.appendChild(document.createTextNode(n));
    this.ctr++;
  }, "insert"), r.flush = /* @__PURE__ */ a(function() {
    this.tags.forEach(function(n) {
      var o;
      return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
    }), this.tags = [], this.ctr = 0;
  }, "flush"), e;
}();

// ../node_modules/stylis/src/Enum.js
var k = "-ms-", Pe = "-moz-", x = "-webkit-", He = "comm", me = "rule", pe = "decl";
var Qr = "@import";
var We = "@keyframes";
var et = "@layer";

// ../node_modules/stylis/src/Utility.js
var rt = Math.abs, ie = String.fromCharCode, tt = Object.assign;
function nt(e, r) {
  return F(e, 0) ^ 45 ? (((r << 2 ^ F(e, 0)) << 2 ^ F(e, 1)) << 2 ^ F(e, 2)) << 2 ^ F(e, 3) : 0;
}
a(nt, "hash");
function je(e) {
  return e.trim();
}
a(je, "trim");
function Er(e, r) {
  return (e = r.exec(e)) ? e[0] : e;
}
a(Er, "match");
function E(e, r, t) {
  return e.replace(r, t);
}
a(E, "replace");
function Fe(e, r) {
  return e.indexOf(r);
}
a(Fe, "indexof");
function F(e, r) {
  return e.charCodeAt(r) | 0;
}
a(F, "charat");
function ee(e, r, t) {
  return e.slice(r, t);
}
a(ee, "substr");
function N(e) {
  return e.length;
}
a(N, "strlen");
function he(e) {
  return e.length;
}
a(he, "sizeof");
function ge(e, r) {
  return r.push(e), e;
}
a(ge, "append");
function vr(e, r) {
  return e.map(r).join("");
}
a(vr, "combine");

// ../node_modules/stylis/src/Tokenizer.js
var Ge = 1, ye = 1, ot = 0, B = 0, M = 0, Ee = "";
function Me(e, r, t, n, o, i, s) {
  return { value: e, root: r, parent: t, type: n, props: o, children: i, line: Ge, column: ye, length: s, return: "" };
}
a(Me, "node");
function ve(e, r) {
  return tt(Me("", null, null, "", null, null, 0), e, { length: -e.length }, r);
}
a(ve, "copy");
function at() {
  return M;
}
a(at, "char");
function it() {
  return M = B > 0 ? F(Ee, --B) : 0, ye--, M === 10 && (ye = 1, Ge--), M;
}
a(it, "prev");
function D() {
  return M = B < ot ? F(Ee, B++) : 0, ye++, M === 10 && (ye = 1, Ge++), M;
}
a(D, "next");
function V() {
  return F(Ee, B);
}
a(V, "peek");
function Le() {
  return B;
}
a(Le, "caret");
function xe(e, r) {
  return ee(Ee, e, r);
}
a(xe, "slice");
function be(e) {
  switch (e) {
    // \0 \t \n \r \s whitespace token
    case 0:
    case 9:
    case 10:
    case 13:
    case 32:
      return 5;
    // ! + , / > @ ~ isolate token
    case 33:
    case 43:
    case 44:
    case 47:
    case 62:
    case 64:
    case 126:
    // ; { } breakpoint token
    case 59:
    case 123:
    case 125:
      return 4;
    // : accompanied token
    case 58:
      return 3;
    // " ' ( [ opening delimit token
    case 34:
    case 39:
    case 40:
    case 91:
      return 2;
    // ) ] closing delimit token
    case 41:
    case 93:
      return 1;
  }
  return 0;
}
a(be, "token");
function Ye(e) {
  return Ge = ye = 1, ot = N(Ee = e), B = 0, [];
}
a(Ye, "alloc");
function Je(e) {
  return Ee = "", e;
}
a(Je, "dealloc");
function Te(e) {
  return je(xe(B - 1, xr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
a(Te, "delimit");
function st(e) {
  for (; (M = V()) && M < 33; )
    D();
  return be(e) > 2 || be(M) > 3 ? "" : " ";
}
a(st, "whitespace");
function ct(e, r) {
  for (; --r && D() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
    ;
  return xe(e, Le() + (r < 6 && V() == 32 && D() == 32));
}
a(ct, "escaping");
function xr(e) {
  for (; D(); )
    switch (M) {
      // ] ) " '
      case e:
        return B;
      // " '
      case 34:
      case 39:
        e !== 34 && e !== 39 && xr(M);
        break;
      // (
      case 40:
        e === 41 && xr(e);
        break;
      // \
      case 92:
        D();
        break;
    }
  return B;
}
a(xr, "delimiter");
function ft(e, r) {
  for (; D() && e + M !== 57; )
    if (e + M === 84 && V() === 47)
      break;
  return "/*" + xe(r, B - 1) + "*" + ie(e === 47 ? e : D());
}
a(ft, "commenter");
function lt(e) {
  for (; !be(V()); )
    D();
  return xe(e, B);
}
a(lt, "identifier");

// ../node_modules/stylis/src/Parser.js
function Tr(e) {
  return Je(Ke("", null, null, null, [""], e = Ye(e), 0, [0], e));
}
a(Tr, "compile");
function Ke(e, r, t, n, o, i, s, c, f) {
  for (var d = 0, u = 0, l = s, y = 0, w = 0, T = 0, O = 1, R = 1, S = 1, A = 0, P = "", h = o, v = i, b = n, g = P; R; )
    switch (T = A, A = D()) {
      // (
      case 40:
        if (T != 108 && F(g, l - 1) == 58) {
          Fe(g += E(Te(A), "&", "&\f"), "&\f") != -1 && (S = -1);
          break;
        }
      // " ' [
      case 34:
      case 39:
      case 91:
        g += Te(A);
        break;
      // \t \n \r \s
      case 9:
      case 10:
      case 13:
      case 32:
        g += st(T);
        break;
      // \
      case 92:
        g += ct(Le() - 1, 7);
        continue;
      // /
      case 47:
        switch (V()) {
          case 42:
          case 47:
            ge(Wn(ft(D(), Le()), r, t), f);
            break;
          default:
            g += "/";
        }
        break;
      // {
      case 123 * O:
        c[d++] = N(g) * S;
      // } ; \0
      case 125 * O:
      case 59:
      case 0:
        switch (A) {
          // \0 }
          case 0:
          case 125:
            R = 0;
          // ;
          case 59 + u:
            S == -1 && (g = E(g, /\f/g, "")), w > 0 && N(g) - l && ge(w > 32 ? dt(g + ";", n, t, l - 1) : dt(E(g, " ", "") + ";", n, t, l - 2),
            f);
            break;
          // @ ;
          case 59:
            g += ";";
          // { rule/at-rule
          default:
            if (ge(b = ut(g, r, t, d, u, o, c, P, h = [], v = [], l), i), A === 123)
              if (u === 0)
                Ke(g, r, b, b, h, i, l, c, v);
              else
                switch (y === 99 && F(g, 3) === 110 ? 100 : y) {
                  // d l m s
                  case 100:
                  case 108:
                  case 109:
                  case 115:
                    Ke(e, b, b, n && ge(ut(e, b, b, 0, 0, o, c, P, o, h = [], l), v), o, v, l, c, n ? h : v);
                    break;
                  default:
                    Ke(g, b, b, b, [""], v, 0, c, v);
                }
        }
        d = u = w = 0, O = S = 1, P = g = "", l = s;
        break;
      // :
      case 58:
        l = 1 + N(g), w = T;
      default:
        if (O < 1) {
          if (A == 123)
            --O;
          else if (A == 125 && O++ == 0 && it() == 125)
            continue;
        }
        switch (g += ie(A), A * O) {
          // &
          case 38:
            S = u > 0 ? 1 : (g += "\f", -1);
            break;
          // ,
          case 44:
            c[d++] = (N(g) - 1) * S, S = 1;
            break;
          // @
          case 64:
            V() === 45 && (g += Te(D())), y = V(), u = l = N(P = g += lt(Le())), A++;
            break;
          // -
          case 45:
            T === 45 && N(g) == 2 && (O = 0);
        }
    }
  return i;
}
a(Ke, "parse");
function ut(e, r, t, n, o, i, s, c, f, d, u) {
  for (var l = o - 1, y = o === 0 ? i : [""], w = he(y), T = 0, O = 0, R = 0; T < n; ++T)
    for (var S = 0, A = ee(e, l + 1, l = rt(O = s[T])), P = e; S < w; ++S)
      (P = je(O > 0 ? y[S] + " " + A : E(A, /&\f/g, y[S]))) && (f[R++] = P);
  return Me(e, r, t, o === 0 ? me : c, f, d, u);
}
a(ut, "ruleset");
function Wn(e, r, t) {
  return Me(e, r, t, He, ie(at()), ee(e, 2, -2), 0);
}
a(Wn, "comment");
function dt(e, r, t, n) {
  return Me(e, r, t, pe, ee(e, 0, n), ee(e, n + 1, -1), n);
}
a(dt, "declaration");

// ../node_modules/stylis/src/Serializer.js
function re(e, r) {
  for (var t = "", n = he(e), o = 0; o < n; o++)
    t += r(e[o], o, e, r) || "";
  return t;
}
a(re, "serialize");
function Or(e, r, t, n) {
  switch (e.type) {
    case et:
      if (e.children.length) break;
    case Qr:
    case pe:
      return e.return = e.return || e.value;
    case He:
      return "";
    case We:
      return e.return = e.value + "{" + re(e.children, n) + "}";
    case me:
      e.value = e.props.join(",");
  }
  return N(t = re(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
}
a(Or, "stringify");

// ../node_modules/stylis/src/Middleware.js
function Cr(e) {
  var r = he(e);
  return function(t, n, o, i) {
    for (var s = "", c = 0; c < r; c++)
      s += e[c](t, n, o, i) || "";
    return s;
  };
}
a(Cr, "middleware");
function mt(e) {
  return function(r) {
    r.root || (r = r.return) && e(r);
  };
}
a(mt, "rulesheet");

// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
var Ie = /* @__PURE__ */ a(function(r) {
  var t = /* @__PURE__ */ new WeakMap();
  return function(n) {
    if (t.has(n))
      return t.get(n);
    var o = r(n);
    return t.set(n, o), o;
  };
}, "weakMemoize");

// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
function Oe(e) {
  var r = /* @__PURE__ */ Object.create(null);
  return function(t) {
    return r[t] === void 0 && (r[t] = e(t)), r[t];
  };
}
a(Oe, "memoize");

// ../node_modules/@emotion/cache/dist/emotion-cache.esm.js
var _r = typeof document < "u", jn = /* @__PURE__ */ a(function(r, t, n) {
  for (var o = 0, i = 0; o = i, i = V(), o === 38 && i === 12 && (t[n] = 1), !be(i); )
    D();
  return xe(r, B);
}, "identifierWithPointTracking"), Gn = /* @__PURE__ */ a(function(r, t) {
  var n = -1, o = 44;
  do
    switch (be(o)) {
      case 0:
        o === 38 && V() === 12 && (t[n] = 1), r[n] += jn(B - 1, t, n);
        break;
      case 2:
        r[n] += Te(o);
        break;
      case 4:
        if (o === 44) {
          r[++n] = V() === 58 ? "&\f" : "", t[n] = r[n].length;
          break;
        }
      // fallthrough
      default:
        r[n] += ie(o);
    }
  while (o = D());
  return r;
}, "toRules"), Yn = /* @__PURE__ */ a(function(r, t) {
  return Je(Gn(Ye(r), t));
}, "getRules"), pt = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ a(function(r) {
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
  // negative .length indicates that this rule has been already prefixed
  r.length < 1)) {
    for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== "rule"; )
      if (n = n.parent, !n) return;
    if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !pt.get(n)) && !o) {
      pt.set(r, !0);
      for (var i = [], s = Yn(t, i), c = n.props, f = 0, d = 0; f < s.length; f++)
        for (var u = 0; u < c.length; u++, d++)
          r.props[d] = i[f] ? s[f].replace(/&\f/g, c[u]) : c[u] + " " + s[f];
    }
  }
}, "compat"), Kn = /* @__PURE__ */ a(function(r) {
  if (r.type === "decl") {
    var t = r.value;
    // charcode for l
    t.charCodeAt(0) === 108 && // charcode for b
    t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
  }
}, "removeLabel");
function gt(e, r) {
  switch (nt(e, r)) {
    // color-adjust
    case 5103:
      return x + "print-" + e + e;
    // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
    case 5737:
    case 4201:
    case 3177:
    case 3433:
    case 1641:
    case 4457:
    case 2921:
    // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
    case 5572:
    case 6356:
    case 5844:
    case 3191:
    case 6645:
    case 3005:
    // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
    case 6391:
    case 5879:
    case 5623:
    case 6135:
    case 4599:
    case 4855:
    // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
    case 4215:
    case 6389:
    case 5109:
    case 5365:
    case 5621:
    case 3829:
      return x + e + e;
    // appearance, user-select, transform, hyphens, text-size-adjust
    case 5349:
    case 4246:
    case 4810:
    case 6968:
    case 2756:
      return x + e + Pe + e + k + e + e;
    // flex, flex-direction
    case 6828:
    case 4268:
      return x + e + k + e + e;
    // order
    case 6165:
      return x + e + k + "flex-" + e + e;
    // align-items
    case 5187:
      return x + e + E(e, /(\w+).+(:[^]+)/, x + "box-$1$2" + k + "flex-$1$2") + e;
    // align-self
    case 5443:
      return x + e + k + "flex-item-" + E(e, /flex-|-self/, "") + e;
    // align-content
    case 4675:
      return x + e + k + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
    // flex-shrink
    case 5548:
      return x + e + k + E(e, "shrink", "negative") + e;
    // flex-basis
    case 5292:
      return x + e + k + E(e, "basis", "preferred-size") + e;
    // flex-grow
    case 6060:
      return x + "box-" + E(e, "-grow", "") + x + e + k + E(e, "grow", "positive") + e;
    // transition
    case 4554:
      return x + E(e, /([^-])(transform)/g, "$1" + x + "$2") + e;
    // cursor
    case 6187:
      return E(E(E(e, /(zoom-|grab)/, x + "$1"), /(image-set)/, x + "$1"), e, "") + e;
    // background, background-image
    case 5495:
    case 3959:
      return E(e, /(image-set\([^]*)/, x + "$1$`$1");
    // justify-content
    case 4968:
      return E(E(e, /(.+:)(flex-)?(.*)/, x + "box-pack:$3" + k + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + x + e + e;
    // (margin|padding)-inline-(start|end)
    case 4095:
    case 3583:
    case 4068:
    case 2532:
      return E(e, /(.+)-inline(.+)/, x + "$1$2") + e;
    // (min|max)?(width|height|inline-size|block-size)
    case 8116:
    case 7059:
    case 5753:
    case 5535:
    case 5445:
    case 5701:
    case 4933:
    case 4677:
    case 5533:
    case 5789:
    case 5021:
    case 4765:
      if (N(e) - 1 - r > 6) switch (F(e, r + 1)) {
        // (m)ax-content, (m)in-content
        case 109:
          if (F(e, r + 4) !== 45) break;
        // (f)ill-available, (f)it-content
        case 102:
          return E(e, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + Pe + (F(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
        // (s)tretch
        case 115:
          return ~Fe(e, "stretch") ? gt(E(e, "stretch", "fill-available"), r) + e : e;
      }
      break;
    // position: sticky
    case 4949:
      if (F(e, r + 1) !== 115) break;
    // display: (flex|inline-flex)
    case 6444:
      switch (F(e, N(e) - 3 - (~Fe(e, "!important") && 10))) {
        // stic(k)y
        case 107:
          return E(e, ":", ":" + x) + e;
        // (inline-)?fl(e)x
        case 101:
          return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + x + (F(e, 14) === 45 ? "inline-" : "") + "box$3$1" + x + "$2$3$1" + k + "$2box$3") + e;
      }
      break;
    // writing-mode
    case 5936:
      switch (F(e, r + 11)) {
        // vertical-l(r)
        case 114:
          return x + e + k + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
        // vertical-r(l)
        case 108:
          return x + e + k + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
        // horizontal(-)tb
        case 45:
          return x + e + k + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
      }
      return x + e + k + e + e;
  }
  return e;
}
a(gt, "prefix");
var qn = /* @__PURE__ */ a(function(r, t, n, o) {
  if (r.length > -1 && !r.return) switch (r.type) {
    case pe:
      r.return = gt(r.value, r.length);
      break;
    case We:
      return re([ve(r, {
        value: E(r.value, "@", "@" + x)
      })], o);
    case me:
      if (r.length) return vr(r.props, function(i) {
        switch (Er(i, /(::plac\w+|:read-\w+)/)) {
          // :read-(only|write)
          case ":read-only":
          case ":read-write":
            return re([ve(r, {
              props: [E(i, /:(read-\w+)/, ":" + Pe + "$1")]
            })], o);
          // :placeholder
          case "::placeholder":
            return re([ve(r, {
              props: [E(i, /:(plac\w+)/, ":" + x + "input-$1")]
            }), ve(r, {
              props: [E(i, /:(plac\w+)/, ":" + Pe + "$1")]
            }), ve(r, {
              props: [E(i, /:(plac\w+)/, k + "input-$1")]
            })], o);
        }
        return "";
      });
  }
}, "prefixer"), ht = _r ? void 0 : Ie(function() {
  return Oe(function() {
    return {};
  });
}), Xn = [qn], ke = /* @__PURE__ */ a(function(r) {
  var t = r.key;
  if (_r && t === "css") {
    var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
    Array.prototype.forEach.call(n, function(h) {
      var v = h.getAttribute("data-emotion");
      v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
    });
  }
  var o = r.stylisPlugins || Xn, i = {}, s, c = [];
  _r && (s = r.container || document.head, Array.prototype.forEach.call(
    // this means we will ignore elements which don't have a space in them which
    // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
    document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
    function(h) {
      for (var v = h.getAttribute("data-emotion").split(" "), b = 1; b < v.length; b++)
        i[v[b]] = !0;
      c.push(h);
    }
  ));
  var f, d = [Jn, Kn];
  if (ht) {
    var T = [Or], O = Cr(d.concat(o, T)), R = /* @__PURE__ */ a(function(v) {
      return re(Tr(v), O);
    }, "_stylis"), S = ht(o)(t), A = /* @__PURE__ */ a(function(v, b) {
      var g = b.name;
      return S[g] === void 0 && (S[g] = R(v ? v + "{" + b.styles + "}" : b.styles)), S[g];
    }, "getRules");
    f = /* @__PURE__ */ a(function(v, b, g, W) {
      var K = b.name, U = A(v, b);
      if (P.compat === void 0)
        return W && (P.inserted[K] = !0), U;
      if (W)
        P.inserted[K] = U;
      else
        return U;
    }, "_insert");
  } else {
    var u, l = [Or, mt(function(h) {
      u.insert(h);
    })], y = Cr(d.concat(o, l)), w = /* @__PURE__ */ a(function(v) {
      return re(Tr(v), y);
    }, "stylis");
    f = /* @__PURE__ */ a(function(v, b, g, W) {
      u = g, w(v ? v + "{" + b.styles + "}" : b.styles), W && (P.inserted[b.name] = !0);
    }, "insert");
  }
  var P = {
    key: t,
    sheet: new Zr({
      key: t,
      container: s,
      nonce: r.nonce,
      speedy: r.speedy,
      prepend: r.prepend,
      insertionPoint: r.insertionPoint
    }),
    nonce: r.nonce,
    inserted: i,
    registered: {},
    insert: f
  };
  return P.sheet.hydrate(c), P;
}, "createCache");

// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js
var Rt = Y(Mr());
var At = /* @__PURE__ */ a(function(e, r) {
  return (0, Rt.default)(e, r);
}, "hoistNonReactStatics");

// ../node_modules/@emotion/utils/dist/emotion-utils.esm.js
var Lr = typeof document < "u";
function Ce(e, r, t) {
  var n = "";
  return t.split(" ").forEach(function(o) {
    e[o] !== void 0 ? r.push(e[o] + ";") : o && (n += o + " ");
  }), n;
}
a(Ce, "getRegisteredStyles");
var se = /* @__PURE__ */ a(function(r, t, n) {
  var o = r.key + "-" + t.name;
  // we only need to add the styles to the registered cache if the
  // class name could be used further down
  // the tree but if it's a string tag, we know it won't
  // so we don't have to add it to registered cache.
  // this improves memory usage since we can avoid storing the whole style string
  (n === !1 || // we need to always store it if we're in compat mode and
  // in node since emotion-server relies on whether a style is in
  // the registered cache to know whether a style is global or not
  // also, note that this check will be dead code eliminated in the browser
  Lr === !1 && r.compat !== void 0) && r.registered[o] === void 0 && (r.registered[o] = t.styles);
}, "registerStyles"), ce = /* @__PURE__ */ a(function(r, t, n) {
  se(r, t, n);
  var o = r.key + "-" + t.name;
  if (r.inserted[t.name] === void 0) {
    var i = "", s = t;
    do {
      var c = r.insert(t === s ? "." + o : "", s, r.sheet, !0);
      !Lr && c !== void 0 && (i += c), s = s.next;
    } while (s !== void 0);
    if (!Lr && i.length !== 0)
      return i;
  }
}, "insertStyles");

// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
function wt(e) {
  for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
    t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
    (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
    t >>> 24, r = /* Math.imul(k, m): */
    (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
    (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
  switch (o) {
    case 3:
      r ^= (e.charCodeAt(n + 2) & 255) << 16;
    case 2:
      r ^= (e.charCodeAt(n + 1) & 255) << 8;
    case 1:
      r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
      (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
  }
  return r ^= r >>> 13, r = /* Math.imul(h, m): */
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
}
a(wt, "murmur2");

// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
var Pt = {
  animationIterationCount: 1,
  aspectRatio: 1,
  borderImageOutset: 1,
  borderImageSlice: 1,
  borderImageWidth: 1,
  boxFlex: 1,
  boxFlexGroup: 1,
  boxOrdinalGroup: 1,
  columnCount: 1,
  columns: 1,
  flex: 1,
  flexGrow: 1,
  flexPositive: 1,
  flexShrink: 1,
  flexNegative: 1,
  flexOrder: 1,
  gridRow: 1,
  gridRowEnd: 1,
  gridRowSpan: 1,
  gridRowStart: 1,
  gridColumn: 1,
  gridColumnEnd: 1,
  gridColumnSpan: 1,
  gridColumnStart: 1,
  msGridRow: 1,
  msGridRowSpan: 1,
  msGridColumn: 1,
  msGridColumnSpan: 1,
  fontWeight: 1,
  lineHeight: 1,
  opacity: 1,
  order: 1,
  orphans: 1,
  scale: 1,
  tabSize: 1,
  widows: 1,
  zIndex: 1,
  zoom: 1,
  WebkitLineClamp: 1,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
};

// ../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
var lo = !1, uo = /[A-Z]|^ms/g, mo = /_EMO_([^_]+?)_([^]*?)_EMO_/g, It = /* @__PURE__ */ a(function(r) {
  return r.charCodeAt(1) === 45;
}, "isCustomProperty"), Ft = /* @__PURE__ */ a(function(r) {
  return r != null && typeof r != "boolean";
}, "isProcessableValue"), Ir = /* @__PURE__ */ Oe(function(e) {
  return It(e) ? e : e.replace(uo, "-$&").toLowerCase();
}), Mt = /* @__PURE__ */ a(function(r, t) {
  switch (r) {
    case "animation":
    case "animationName":
      if (typeof t == "string")
        return t.replace(mo, function(n, o, i) {
          return J = {
            name: o,
            styles: i,
            next: J
          }, o;
        });
  }
  return Pt[r] !== 1 && !It(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
}, "processStyleValue"), po = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or an\
other Emotion-aware compiler transform.";
function Ne(e, r, t) {
  if (t == null)
    return "";
  var n = t;
  if (n.__emotion_styles !== void 0)
    return n;
  switch (typeof t) {
    case "boolean":
      return "";
    case "object": {
      var o = t;
      if (o.anim === 1)
        return J = {
          name: o.name,
          styles: o.styles,
          next: J
        }, o.name;
      var i = t;
      if (i.styles !== void 0) {
        var s = i.next;
        if (s !== void 0)
          for (; s !== void 0; )
            J = {
              name: s.name,
              styles: s.styles,
              next: J
            }, s = s.next;
        var c = i.styles + ";";
        return c;
      }
      return ho(e, r, t);
    }
    case "function": {
      if (e !== void 0) {
        var f = J, d = t(e);
        return J = f, Ne(e, r, d);
      }
      break;
    }
  }
  var u = t;
  if (r == null)
    return u;
  var l = r[u];
  return l !== void 0 ? l : u;
}
a(Ne, "handleInterpolation");
function ho(e, r, t) {
  var n = "";
  if (Array.isArray(t))
    for (var o = 0; o < t.length; o++)
      n += Ne(e, r, t[o]) + ";";
  else
    for (var i in t) {
      var s = t[i];
      if (typeof s != "object") {
        var c = s;
        r != null && r[c] !== void 0 ? n += i + "{" + r[c] + "}" : Ft(c) && (n += Ir(i) + ":" + Mt(i, c) + ";");
      } else {
        if (i === "NO_COMPONENT_SELECTOR" && lo)
          throw new Error(po);
        if (Array.isArray(s) && typeof s[0] == "string" && (r == null || r[s[0]] === void 0))
          for (var f = 0; f < s.length; f++)
            Ft(s[f]) && (n += Ir(i) + ":" + Mt(i, s[f]) + ";");
        else {
          var d = Ne(e, r, s);
          switch (i) {
            case "animation":
            case "animationName": {
              n += Ir(i) + ":" + d + ";";
              break;
            }
            default:
              n += i + "{" + d + "}";
          }
        }
      }
    }
  return n;
}
a(ho, "createStringFromObject");
var Lt = /label:\s*([^\s;{]+)\s*(;|$)/g, J;
function te(e, r, t) {
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
    return e[0];
  var n = !0, o = "";
  J = void 0;
  var i = e[0];
  if (i == null || i.raw === void 0)
    n = !1, o += Ne(t, r, i);
  else {
    var s = i;
    o += s[0];
  }
  for (var c = 1; c < e.length; c++)
    if (o += Ne(t, r, e[c]), n) {
      var f = i;
      o += f[c];
    }
  Lt.lastIndex = 0;
  for (var d = "", u; (u = Lt.exec(o)) !== null; )
    d += "-" + u[1];
  var l = wt(o) + d;
  return {
    name: l,
    styles: o,
    next: J
  };
}
a(te, "serializeStyles");

// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
var Be = Y(require("react"));
var go = typeof document < "u", kt = /* @__PURE__ */ a(function(r) {
  return r();
}, "syncFallback"), Nt = Be.useInsertionEffect ? Be.useInsertionEffect : !1, _e = go && Nt || kt, kr = Nt || Be.useLayoutEffect;

// ../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
var sr = !1, fe = typeof document < "u", ir = /* @__PURE__ */ L.createContext(
  // we're doing this to avoid preconstruct's dead code elimination in this one case
  // because this module is primarily intended for the browser and node
  // but it's also required in react native and similar environments sometimes
  // and we could have a special build just for that
  // but this is much easier and the native packages
  // might use a different theme context in the future anyway
  typeof HTMLElement < "u" ? /* @__PURE__ */ ke({
    key: "css"
  }) : null
), Br = ir.Provider;
var ne = /* @__PURE__ */ a(function(r) {
  return /* @__PURE__ */ (0, De.forwardRef)(function(t, n) {
    var o = (0, De.useContext)(ir);
    return r(t, o, n);
  });
}, "withEmotionCache");
fe || (ne = /* @__PURE__ */ a(function(r) {
  return function(t) {
    var n = (0, De.useContext)(ir);
    return n === null ? (n = ke({
      key: "css"
    }), /* @__PURE__ */ L.createElement(ir.Provider, {
      value: n
    }, r(t, n))) : r(t, n);
  };
}, "withEmotionCache"));
var j = /* @__PURE__ */ L.createContext({}), Dr = /* @__PURE__ */ a(function() {
  return L.useContext(j);
}, "useTheme"), yo = /* @__PURE__ */ a(function(r, t) {
  if (typeof t == "function") {
    var n = t(r);
    return n;
  }
  return ae({}, r, t);
}, "getTheme"), bo = /* @__PURE__ */ Ie(function(e) {
  return Ie(function(r) {
    return yo(e, r);
  });
}), $r = /* @__PURE__ */ a(function(r) {
  var t = L.useContext(j);
  return r.theme !== t && (t = bo(t)(r.theme)), /* @__PURE__ */ L.createElement(j.Provider, {
    value: t
  }, r.children);
}, "ThemeProvider");
function zr(e) {
  var r = e.displayName || e.name || "Component", t = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ a(function(o, i) {
    var s = L.useContext(j);
    return /* @__PURE__ */ L.createElement(e, ae({
      theme: s,
      ref: i
    }, o));
  }, "render"));
  return t.displayName = "WithTheme(" + r + ")", At(t, e);
}
a(zr, "withTheme");
var cr = {}.hasOwnProperty, Nr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Bt = /* @__PURE__ */ a(function(r, t) {
  var n = {};
  for (var o in t)
    cr.call(t, o) && (n[o] = t[o]);
  return n[Nr] = r, n;
}, "createEmotionProps"), Eo = /* @__PURE__ */ a(function(r) {
  var t = r.cache, n = r.serialized, o = r.isStringTag;
  se(t, n, o);
  var i = _e(function() {
    return ce(t, n, o);
  });
  if (!fe && i !== void 0) {
    for (var s, c = n.name, f = n.next; f !== void 0; )
      c += " " + f.name, f = f.next;
    return /* @__PURE__ */ L.createElement("style", (s = {}, s["data-emotion"] = t.key + " " + c, s.dangerouslySetInnerHTML = {
      __html: i
    }, s.nonce = t.sheet.nonce, s));
  }
  return null;
}, "Insertion"), vo = /* @__PURE__ */ ne(function(e, r, t) {
  var n = e.css;
  typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
  var o = e[Nr], i = [n], s = "";
  typeof e.className == "string" ? s = Ce(r.registered, i, e.className) : e.className != null && (s = e.className + " ");
  var c = te(i, void 0, L.useContext(j));
  s += r.key + "-" + c.name;
  var f = {};
  for (var d in e)
    cr.call(e, d) && d !== "css" && d !== Nr && !sr && (f[d] = e[d]);
  return f.className = s, t && (f.ref = t), /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(Eo, {
    cache: r,
    serialized: c,
    isStringTag: typeof o == "string"
  }), /* @__PURE__ */ L.createElement(o, f));
}), Dt = vo;

// ../node_modules/@emotion/react/dist/emotion-react.esm.js
var $ = Y(require("react"));
var Ei = Y(Vr());
var xi = Y(Mr());
var fr = /* @__PURE__ */ a(function(r, t) {
  var n = arguments;
  if (t == null || !cr.call(t, "css"))
    return $.createElement.apply(void 0, n);
  var o = n.length, i = new Array(o);
  i[0] = Dt, i[1] = Bt(r, t);
  for (var s = 2; s < o; s++)
    i[s] = n[s];
  return $.createElement.apply(null, i);
}, "jsx");
(function(e) {
  var r;
  r || (r = e.JSX || (e.JSX = {}));
})(fr || (fr = {}));
var $t = /* @__PURE__ */ ne(function(e, r) {
  var t = e.styles, n = te([t], void 0, $.useContext(j));
  if (!fe) {
    for (var o, i = n.name, s = n.styles, c = n.next; c !== void 0; )
      i += " " + c.name, s += c.styles, c = c.next;
    var f = r.compat === !0, d = r.insert("", {
      name: i,
      styles: s
    }, r.sheet, f);
    return f ? null : /* @__PURE__ */ $.createElement("style", (o = {}, o["data-emotion"] = r.key + "-global " + i, o.dangerouslySetInnerHTML =
    {
      __html: d
    }, o.nonce = r.sheet.nonce, o));
  }
  var u = $.useRef();
  return kr(function() {
    var l = r.key + "-global", y = new r.sheet.constructor({
      key: l,
      nonce: r.sheet.nonce,
      container: r.sheet.container,
      speedy: r.sheet.isSpeedy
    }), w = !1, T = document.querySelector('style[data-emotion="' + l + " " + n.name + '"]');
    return r.sheet.tags.length && (y.before = r.sheet.tags[0]), T !== null && (w = !0, T.setAttribute("data-emotion", l), y.hydrate([T])), u.
    current = [y, w], function() {
      y.flush();
    };
  }, [r]), kr(function() {
    var l = u.current, y = l[0], w = l[1];
    if (w) {
      l[1] = !1;
      return;
    }
    if (n.next !== void 0 && ce(r, n.next, !0), y.tags.length) {
      var T = y.tags[y.tags.length - 1].nextElementSibling;
      y.before = T, y.flush();
    }
    r.insert("", n, y, !1);
  }, [r, n.name]), null;
});
function Se() {
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
    r[t] = arguments[t];
  return te(r);
}
a(Se, "css");
function le() {
  var e = Se.apply(void 0, arguments), r = "animation-" + e.name;
  return {
    name: r,
    styles: "@keyframes " + r + "{" + e.styles + "}",
    anim: 1,
    toString: /* @__PURE__ */ a(function() {
      return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
    }, "toString")
  };
}
a(le, "keyframes");
var xo = /* @__PURE__ */ a(function e(r) {
  for (var t = r.length, n = 0, o = ""; n < t; n++) {
    var i = r[n];
    if (i != null) {
      var s = void 0;
      switch (typeof i) {
        case "boolean":
          break;
        case "object": {
          if (Array.isArray(i))
            s = e(i);
          else {
            s = "";
            for (var c in i)
              i[c] && c && (s && (s += " "), s += c);
          }
          break;
        }
        default:
          s = i;
      }
      s && (o && (o += " "), o += s);
    }
  }
  return o;
}, "classnames");
function To(e, r, t) {
  var n = [], o = Ce(e, n, t);
  return n.length < 2 ? t : o + r(n);
}
a(To, "merge");
var Oo = /* @__PURE__ */ a(function(r) {
  var t = r.cache, n = r.serializedArr, o = _e(function() {
    for (var s = "", c = 0; c < n.length; c++) {
      var f = ce(t, n[c], !1);
      !fe && f !== void 0 && (s += f);
    }
    if (!fe)
      return s;
  });
  if (!fe && o.length !== 0) {
    var i;
    return /* @__PURE__ */ $.createElement("style", (i = {}, i["data-emotion"] = t.key + " " + n.map(function(s) {
      return s.name;
    }).join(" "), i.dangerouslySetInnerHTML = {
      __html: o
    }, i.nonce = t.sheet.nonce, i));
  }
  return null;
}, "Insertion"), zt = /* @__PURE__ */ ne(function(e, r) {
  var t = !1, n = [], o = /* @__PURE__ */ a(function() {
    if (t && sr)
      throw new Error("css can only be used during render");
    for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
      u[l] = arguments[l];
    var y = te(u, r.registered);
    return n.push(y), se(r, y, !1), r.key + "-" + y.name;
  }, "css"), i = /* @__PURE__ */ a(function() {
    if (t && sr)
      throw new Error("cx can only be used during render");
    for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
      u[l] = arguments[l];
    return To(r.registered, o, xo(u));
  }, "cx"), s = {
    css: o,
    cx: i,
    theme: $.useContext(j)
  }, c = e.children(s);
  return t = !0, /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement(Oo, {
    cache: r,
    serializedArr: n
  }), c);
});

// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
var Z = Y(require("react"));

// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
var Co = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|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)-.*))$/,
lr = /* @__PURE__ */ Oe(
  function(e) {
    return Co.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
  }
  /* Z+1 */
);

// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
var _o = typeof document < "u", So = !1, Ro = lr, Ao = /* @__PURE__ */ a(function(r) {
  return r !== "theme";
}, "testOmitPropsOnComponent"), Ut = /* @__PURE__ */ a(function(r) {
  return typeof r == "string" && // 96 is one less than the char code
  // for "a" so this is checking that
  // it's a lowercase character
  r.charCodeAt(0) > 96 ? Ro : Ao;
}, "getDefaultShouldForwardProp"), Vt = /* @__PURE__ */ a(function(r, t, n) {
  var o;
  if (t) {
    var i = t.shouldForwardProp;
    o = r.__emotion_forwardProp && i ? function(s) {
      return r.__emotion_forwardProp(s) && i(s);
    } : i;
  }
  return typeof o != "function" && n && (o = r.__emotion_forwardProp), o;
}, "composeShouldForwardProps"), wo = /* @__PURE__ */ a(function(r) {
  var t = r.cache, n = r.serialized, o = r.isStringTag;
  se(t, n, o);
  var i = _e(function() {
    return ce(t, n, o);
  });
  if (!_o && i !== void 0) {
    for (var s, c = n.name, f = n.next; f !== void 0; )
      c += " " + f.name, f = f.next;
    return /* @__PURE__ */ Z.createElement("style", (s = {}, s["data-emotion"] = t.key + " " + c, s.dangerouslySetInnerHTML = {
      __html: i
    }, s.nonce = t.sheet.nonce, s));
  }
  return null;
}, "Insertion"), Ht = /* @__PURE__ */ a(function e(r, t) {
  var n = r.__emotion_real === r, o = n && r.__emotion_base || r, i, s;
  t !== void 0 && (i = t.label, s = t.target);
  var c = Vt(r, t, n), f = c || Ut(o), d = !f("as");
  return function() {
    var u = arguments, l = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
    if (i !== void 0 && l.push("label:" + i + ";"), u[0] == null || u[0].raw === void 0)
      l.push.apply(l, u);
    else {
      var y = u[0];
      l.push(y[0]);
      for (var w = u.length, T = 1; T < w; T++)
        l.push(u[T], y[T]);
    }
    var O = ne(function(R, S, A) {
      var P = d && R.as || o, h = "", v = [], b = R;
      if (R.theme == null) {
        b = {};
        for (var g in R)
          b[g] = R[g];
        b.theme = Z.useContext(j);
      }
      typeof R.className == "string" ? h = Ce(S.registered, v, R.className) : R.className != null && (h = R.className + " ");
      var W = te(l.concat(v), S.registered, b);
      h += S.key + "-" + W.name, s !== void 0 && (h += " " + s);
      var K = d && c === void 0 ? Ut(P) : f, U = {};
      for (var Q in R)
        d && Q === "as" || K(Q) && (U[Q] = R[Q]);
      return U.className = h, A && (U.ref = A), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(wo, {
        cache: S,
        serialized: W,
        isStringTag: typeof P == "string"
      }), /* @__PURE__ */ Z.createElement(P, U));
    });
    return O.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", O.defaultProps =
    r.defaultProps, O.__emotion_real = O, O.__emotion_base = o, O.__emotion_styles = l, O.__emotion_forwardProp = c, Object.defineProperty(O,
    "toString", {
      value: /* @__PURE__ */ a(function() {
        return s === void 0 && So ? "NO_COMPONENT_SELECTOR" : "." + s;
      }, "value")
    }), O.withComponent = function(R, S) {
      var A = e(R, ae({}, t, S, {
        shouldForwardProp: Vt(O, S, !0)
      }));
      return A.apply(void 0, l);
    }, O;
  };
}, "createStyled");

// ../node_modules/@emotion/styled/dist/emotion-styled.esm.js
var Ni = Y(Vr());
var zi = require("react");
var Po = [
  "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",
  "head",
  "header",
  "hgroup",
  "hr",
  "html",
  "i",
  "iframe",
  "img",
  "input",
  "ins",
  "kbd",
  "keygen",
  "label",
  "legend",
  "li",
  "link",
  "main",
  "map",
  "mark",
  "marquee",
  "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",
  "title",
  "tr",
  "track",
  "u",
  "ul",
  "var",
  "video",
  "wbr",
  // SVG
  "circle",
  "clipPath",
  "defs",
  "ellipse",
  "foreignObject",
  "g",
  "image",
  "line",
  "linearGradient",
  "mask",
  "path",
  "pattern",
  "polygon",
  "polyline",
  "radialGradient",
  "rect",
  "stop",
  "svg",
  "text",
  "tspan"
], ur = Ht.bind(null);
Po.forEach(function(e) {
  ur[e] = ur(e);
});

// src/theming/base.ts
var Wt = require("polished"), m = {
  // Official color palette
  primary: "#FF4785",
  // coral
  secondary: "#029CFD",
  // ocean
  tertiary: "#FAFBFC",
  ancillary: "#22a699",
  // Complimentary
  orange: "#FC521F",
  gold: "#FFAE00",
  green: "#66BF3C",
  seafoam: "#37D5D3",
  purple: "#6F2CAC",
  ultraviolet: "#2A0481",
  // Monochrome
  lightest: "#FFFFFF",
  lighter: "#F7FAFC",
  light: "#EEF3F6",
  mediumlight: "#ECF4F9",
  medium: "#D9E8F2",
  mediumdark: "#73828C",
  dark: "#5C6870",
  darker: "#454E54",
  darkest: "#2E3438",
  // For borders
  border: "hsla(203, 50%, 30%, 0.15)",
  // Status
  positive: "#66BF3C",
  negative: "#FF4400",
  warning: "#E69D00",
  critical: "#FFFFFF",
  // Text
  defaultText: "#2E3438",
  inverseText: "#FFFFFF",
  positiveText: "#448028",
  negativeText: "#D43900",
  warningText: "#A15C20"
}, G = {
  app: "#F6F9FC",
  bar: m.lightest,
  content: m.lightest,
  preview: m.lightest,
  gridCellSize: 10,
  hoverable: (0, Wt.transparentize)(0.9, m.secondary),
  // hover state for items in a list
  // Notification, error, and warning backgrounds
  positive: "#E1FFD4",
  negative: "#FEDED2",
  warning: "#FFF5CF",
  critical: "#FF4400"
}, H = {
  fonts: {
    base: [
      '"Nunito Sans"',
      "-apple-system",
      '".SFNSText-Regular"',
      '"San Francisco"',
      "BlinkMacSystemFont",
      '"Segoe UI"',
      '"Helvetica Neue"',
      "Helvetica",
      "Arial",
      "sans-serif"
    ].join(", "),
    mono: [
      "ui-monospace",
      "Menlo",
      "Monaco",
      '"Roboto Mono"',
      '"Oxygen Mono"',
      '"Ubuntu Monospace"',
      '"Source Code Pro"',
      '"Droid Sans Mono"',
      '"Courier New"',
      "monospace"
    ].join(", ")
  },
  weight: {
    regular: 400,
    bold: 700
  },
  size: {
    s1: 12,
    s2: 14,
    s3: 16,
    m1: 20,
    m2: 24,
    m3: 28,
    l1: 32,
    l2: 40,
    l3: 48,
    code: 90
  }
};

// src/theming/global.ts
var Hr = Y(Xt(), 1), Wr = (0, Hr.default)(1)(
  ({ typography: e }) => ({
    body: {
      fontFamily: e.fonts.base,
      fontSize: e.size.s3,
      margin: 0,
      WebkitFontSmoothing: "antialiased",
      MozOsxFontSmoothing: "grayscale",
      WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
      WebkitOverflowScrolling: "touch"
    },
    "*": {
      boxSizing: "border-box"
    },
    "h1, h2, h3, h4, h5, h6": {
      fontWeight: e.weight.regular,
      margin: 0,
      padding: 0
    },
    "button, input, textarea, select": {
      fontFamily: "inherit",
      fontSize: "inherit",
      boxSizing: "border-box"
    },
    sub: {
      fontSize: "0.8em",
      bottom: "-0.2em"
    },
    sup: {
      fontSize: "0.8em",
      top: "-0.2em"
    },
    "b, strong": {
      fontWeight: e.weight.bold
    },
    hr: {
      border: "none",
      borderTop: "1px solid silver",
      clear: "both",
      marginBottom: "1.25rem"
    },
    code: {
      fontFamily: e.fonts.mono,
      WebkitFontSmoothing: "antialiased",
      MozOsxFontSmoothing: "grayscale",
      display: "inline-block",
      paddingLeft: 2,
      paddingRight: 2,
      verticalAlign: "baseline",
      color: "inherit"
    },
    pre: {
      fontFamily: e.fonts.mono,
      WebkitFontSmoothing: "antialiased",
      MozOsxFontSmoothing: "grayscale",
      lineHeight: "18px",
      padding: "11px 1rem",
      whiteSpace: "pre-wrap",
      color: "inherit",
      borderRadius: 3,
      margin: "1rem 0"
    }
  })
), Zt = (0, Hr.default)(1)(({
  color: e,
  background: r,
  typography: t
}) => {
  let n = Wr({ typography: t });
  return {
    ...n,
    body: {
      ...n.body,
      color: e.defaultText,
      background: r.app,
      overflow: "hidden"
    },
    hr: {
      ...n.hr,
      borderTop: `1px solid ${e.border}`
    }
  };
});

// src/theming/themes/dark.ts
var Io = {
  base: "dark",
  // Storybook-specific color palette
  colorPrimary: "#FF4785",
  // coral
  colorSecondary: "#029CFD",
  // ocean
  // UI
  appBg: "#222425",
  appContentBg: "#1B1C1D",
  appPreviewBg: m.lightest,
  appBorderColor: "rgba(255,255,255,.1)",
  appBorderRadius: 4,
  // Fonts
  fontBase: H.fonts.base,
  fontCode: H.fonts.mono,
  // Text colors
  textColor: "#C9CDCF",
  textInverseColor: "#222425",
  textMutedColor: "#798186",
  // Toolbar default and active colors
  barTextColor: m.mediumdark,
  barHoverColor: m.secondary,
  barSelectedColor: m.secondary,
  barBg: "#292C2E",
  // Form colors
  buttonBg: "#222425",
  buttonBorder: "rgba(255,255,255,.1)",
  booleanBg: "#222425",
  booleanSelectedBg: "#2E3438",
  inputBg: "#1B1C1D",
  inputBorder: "rgba(255,255,255,.1)",
  inputTextColor: m.lightest,
  inputBorderRadius: 4
}, Qt = Io;

// src/theming/themes/light.ts
var ko = {
  base: "light",
  // Storybook-specific color palette
  colorPrimary: "#FF4785",
  // coral
  colorSecondary: "#029CFD",
  // ocean
  // UI
  appBg: G.app,
  appContentBg: m.lightest,
  appPreviewBg: m.lightest,
  appBorderColor: m.border,
  appBorderRadius: 4,
  // Fonts
  fontBase: H.fonts.base,
  fontCode: H.fonts.mono,
  // Text colors
  textColor: m.darkest,
  textInverseColor: m.lightest,
  textMutedColor: m.dark,
  // Toolbar default and active colors
  barTextColor: m.mediumdark,
  barHoverColor: m.secondary,
  barSelectedColor: m.secondary,
  barBg: m.lightest,
  // Form colors
  buttonBg: G.app,
  buttonBorder: m.medium,
  booleanBg: m.mediumlight,
  booleanSelectedBg: m.lightest,
  inputBg: m.lightest,
  inputBorder: m.border,
  inputTextColor: m.darkest,
  inputBorderRadius: 4
}, Re = ko;

// src/theming/utils.ts
var en = require("storybook/internal/client-logger"), rn = require("@storybook/global"), ue = require("polished");
var { window: jr } = rn.global, tn = /* @__PURE__ */ a((e) => ({ color: e }), "mkColor"), No = /* @__PURE__ */ a((e) => typeof e != "string" ?
(en.logger.warn(
  `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`
), !1) : !0, "isColorString"), Bo = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), Do = /* @__PURE__ */ a(
(e, r) => e === "darken" ? (0, ue.rgba)(`${(0, ue.darken)(1, r)}`, 0.95) : e === "lighten" ? (0, ue.rgba)(`${(0, ue.lighten)(1, r)}`, 0.95) :
r, "applyPolished"), nn = /* @__PURE__ */ a((e) => (r) => {
  if (!No(r) || !Bo(r))
    return r;
  try {
    return Do(e, r);
  } catch {
    return r;
  }
}, "colorFactory"), on = nn("lighten"), an = nn("darken"), dr = /* @__PURE__ */ a(() => !jr || !jr.matchMedia ? "light" : jr.matchMedia("(pr\
efers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");

// src/theming/create.ts
var Ae = {
  light: Re,
  dark: Qt,
  normal: Re
}, Gr = dr(), $o = /* @__PURE__ */ a((e = { base: Gr }, r) => {
  let t = {
    ...Ae[Gr],
    ...Ae[e.base] || {},
    ...e,
    base: Ae[e.base] ? e.base : Gr
  };
  return {
    ...r,
    ...t,
    barSelectedColor: e.barSelectedColor || t.colorSecondary
  };
}, "create");

// src/theming/convert.ts
var mn = require("polished");

// src/theming/animation.ts
var sn = {
  rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)"
}, zo = le`
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
`, cn = le`
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
`, Uo = le`
  0% { transform: translateY(1px); }
  25% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(1px); }
`, Vo = le`
  0%, 100% { transform:translate3d(0,0,0); }
  12.5%, 62.5% { transform:translate3d(-4px,0,0); }
  37.5%, 87.5% {  transform: translate3d(4px,0,0);  }
`, Ho = Se`
  animation: ${cn} 1.5s ease-in-out infinite;
  color: transparent;
  cursor: progress;
`, Wo = Se`
  transition: all 150ms ease-out;
  transform: translate3d(0, 0, 0);

  &:hover {
    transform: translate3d(0, -2px, 0);
  }

  &:active {
    transform: translate3d(0, 0, 0);
  }
`, fn = {
  rotate360: zo,
  glow: cn,
  float: Uo,
  jiggle: Vo,
  inlineGlow: Ho,
  hoverable: Wo
};

// src/theming/modules/syntax.ts
var ln = {
  BASE_FONT_FAMILY: "Menlo, monospace",
  BASE_FONT_SIZE: "11px",
  BASE_LINE_HEIGHT: 1.2,
  BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)",
  BASE_COLOR: "rgb(213, 213, 213)",
  OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  OBJECT_NAME_COLOR: "rgb(227, 110, 236)",
  OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)",
  OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)",
  OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)",
  OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)",
  OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)",
  OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)",
  OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)",
  OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)",
  HTML_TAG_COLOR: "rgb(93, 176, 215)",
  HTML_TAGNAME_COLOR: "rgb(93, 176, 215)",
  HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)",
  HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)",
  HTML_COMMENT_COLOR: "rgb(137, 137, 137)",
  HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  ARROW_COLOR: "rgb(145, 145, 145)",
  ARROW_MARGIN_RIGHT: 3,
  ARROW_FONT_SIZE: 12,
  ARROW_ANIMATION_DURATION: "0",
  TREENODE_FONT_FAMILY: "Menlo, monospace",
  TREENODE_FONT_SIZE: "11px",
  TREENODE_LINE_HEIGHT: 1.2,
  TREENODE_PADDING_LEFT: 12,
  TABLE_BORDER_COLOR: "rgb(85, 85, 85)",
  TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)",
  TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)",
  TABLE_SORT_ICON_COLOR: "black",
  // 'rgb(48, 57, 66)',
  TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(\
51, 139, 255, 0.0980392))",
  TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
}, un = {
  BASE_FONT_FAMILY: "Menlo, monospace",
  BASE_FONT_SIZE: "11px",
  BASE_LINE_HEIGHT: 1.2,
  BASE_BACKGROUND_COLOR: "white",
  BASE_COLOR: "black",
  OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,
  OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,
  OBJECT_NAME_COLOR: "rgb(136, 19, 145)",
  OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)",
  OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)",
  OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)",
  OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)",
  OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)",
  OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)",
  OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)",
  OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)",
  HTML_TAG_COLOR: "rgb(168, 148, 166)",
  HTML_TAGNAME_COLOR: "rgb(136, 18, 128)",
  HTML_TAGNAME_TEXT_TRANSFORM: "lowercase",
  HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)",
  HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)",
  HTML_COMMENT_COLOR: "rgb(35, 110, 37)",
  HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)",
  ARROW_COLOR: "#6e6e6e",
  ARROW_MARGIN_RIGHT: 3,
  ARROW_FONT_SIZE: 12,
  ARROW_ANIMATION_DURATION: "0",
  TREENODE_FONT_FAMILY: "Menlo, monospace",
  TREENODE_FONT_SIZE: "11px",
  TREENODE_LINE_HEIGHT: 1.2,
  TREENODE_PADDING_LEFT: 12,
  TABLE_BORDER_COLOR: "#aaa",
  TABLE_TH_BACKGROUND_COLOR: "#eee",
  TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)",
  TABLE_SORT_ICON_COLOR: "#6e6e6e",
  TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
  TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
}, jo = /* @__PURE__ */ a((e) => Object.entries(e).reduce((r, [t, n]) => ({ ...r, [t]: tn(n) }), {}), "convertColors"), dn = /* @__PURE__ */ a(
({ colors: e, mono: r }) => {
  let t = jo(e);
  return {
    token: {
      fontFamily: r,
      WebkitFontSmoothing: "antialiased",
      "&.tag": t.red3,
      "&.comment": { ...t.green1, fontStyle: "italic" },
      "&.prolog": { ...t.green1, fontStyle: "italic" },
      "&.doctype": { ...t.green1, fontStyle: "italic" },
      "&.cdata": { ...t.green1, fontStyle: "italic" },
      "&.string": t.red1,
      "&.url": t.cyan1,
      "&.symbol": t.cyan1,
      "&.number": t.cyan1,
      "&.boolean": t.cyan1,
      "&.variable": t.cyan1,
      "&.constant": t.cyan1,
      "&.inserted": t.cyan1,
      "&.atrule": t.blue1,
      "&.keyword": t.blue1,
      "&.attr-value": t.blue1,
      "&.punctuation": t.gray1,
      "&.operator": t.gray1,
      "&.function": t.gray1,
      "&.deleted": t.red2,
      "&.important": {
        fontWeight: "bold"
      },
      "&.bold": {
        fontWeight: "bold"
      },
      "&.italic": {
        fontStyle: "italic"
      },
      "&.class-name": t.cyan2,
      "&.selector": t.red3,
      "&.attr-name": t.red4,
      "&.property": t.red4,
      "&.regex": t.red4,
      "&.entity": t.red4,
      "&.directive.tag .tag": {
        background: "#ffff00",
        ...t.gray1
      }
    },
    "language-json .token.boolean": t.blue1,
    "language-json .token.number": t.blue1,
    "language-json .token.property": t.cyan2,
    namespace: {
      opacity: 0.7
    }
  };
}, "create");

// src/theming/convert.ts
var Go = {
  green1: "#008000",
  red1: "#A31515",
  red2: "#9a050f",
  red3: "#800000",
  red4: "#ff0000",
  gray1: "#393A34",
  cyan1: "#36acaa",
  cyan2: "#2B91AF",
  blue1: "#0000ff",
  blue2: "#00009f"
}, Yo = {
  green1: "#7C7C7C",
  red1: "#92C379",
  red2: "#9a050f",
  red3: "#A8FF60",
  red4: "#96CBFE",
  gray1: "#EDEDED",
  cyan1: "#C6C5FE",
  cyan2: "#FFFFB6",
  blue1: "#B474DD",
  blue2: "#00009f"
}, Jo = /* @__PURE__ */ a((e) => ({
  // Changeable colors
  primary: e.colorPrimary,
  secondary: e.colorSecondary,
  tertiary: m.tertiary,
  ancillary: m.ancillary,
  // Complimentary
  orange: m.orange,
  gold: m.gold,
  green: m.green,
  seafoam: m.seafoam,
  purple: m.purple,
  ultraviolet: m.ultraviolet,
  // Monochrome
  lightest: m.lightest,
  lighter: m.lighter,
  light: m.light,
  mediumlight: m.mediumlight,
  medium: m.medium,
  mediumdark: m.mediumdark,
  dark: m.dark,
  darker: m.darker,
  darkest: m.darkest,
  // For borders
  border: m.border,
  // Status
  positive: m.positive,
  negative: m.negative,
  warning: m.warning,
  critical: m.critical,
  defaultText: e.textColor || m.darkest,
  inverseText: e.textInverseColor || m.lightest,
  positiveText: m.positiveText,
  negativeText: m.negativeText,
  warningText: m.warningText
}), "createColors"), mr = /* @__PURE__ */ a((e = Ae[dr()]) => {
  let {
    base: r,
    colorPrimary: t,
    colorSecondary: n,
    appBg: o,
    appContentBg: i,
    appPreviewBg: s,
    appBorderColor: c,
    appBorderRadius: f,
    fontBase: d,
    fontCode: u,
    textColor: l,
    textInverseColor: y,
    barTextColor: w,
    barHoverColor: T,
    barSelectedColor: O,
    barBg: R,
    buttonBg: S,
    buttonBorder: A,
    booleanBg: P,
    booleanSelectedBg: h,
    inputBg: v,
    inputBorder: b,
    inputTextColor: g,
    inputBorderRadius: W,
    brandTitle: K,
    brandUrl: U,
    brandImage: Q,
    brandTarget: hr,
    gridCellSize: gr,
    ...yr
  } = e;
  return {
    ...yr,
    base: r,
    color: Jo(e),
    background: {
      app: o,
      bar: R,
      content: i,
      preview: s,
      gridCellSize: gr || G.gridCellSize,
      hoverable: G.hoverable,
      positive: G.positive,
      negative: G.negative,
      warning: G.warning,
      critical: G.critical
    },
    typography: {
      fonts: {
        base: d,
        mono: u
      },
      weight: H.weight,
      size: H.size
    },
    animation: fn,
    easing: sn,
    input: {
      background: v,
      border: b,
      borderRadius: W,
      color: g
    },
    button: {
      background: S || v,
      border: A || b
    },
    boolean: {
      background: P || b,
      selectedBackground: h || v
    },
    // UI
    layoutMargin: 10,
    appBorderColor: c,
    appBorderRadius: f,
    // Toolbar default/active colors
    barTextColor: w,
    barHoverColor: T || n,
    barSelectedColor: O || n,
    barBg: R,
    // Brand logo/text
    brand: {
      title: K,
      url: U,
      image: Q || (K ? null : void 0),
      target: hr
    },
    code: dn({
      colors: r === "light" ? Go : Yo,
      mono: u
    }),
    // Addon actions theme
    // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx
    addonActionsTheme: {
      ...r === "light" ? un : ln,
      BASE_FONT_FAMILY: u,
      BASE_FONT_SIZE: H.size.s2 - 1,
      BASE_LINE_HEIGHT: "18px",
      BASE_BACKGROUND_COLOR: "transparent",
      BASE_COLOR: l,
      ARROW_COLOR: (0, mn.opacify)(0.2, c),
      ARROW_MARGIN_RIGHT: 4,
      ARROW_FONT_SIZE: 8,
      TREENODE_FONT_FAMILY: u,
      TREENODE_FONT_SIZE: H.size.s2 - 1,
      TREENODE_LINE_HEIGHT: "18px",
      TREENODE_PADDING_LEFT: 12
    }
  };
}, "convert");

// src/theming/ensure.ts
var yn = require("storybook/internal/client-logger");

// ../node_modules/deep-object-diff/mjs/utils.js
var Yr = /* @__PURE__ */ a((e) => Object.keys(e).length === 0, "isEmpty"), de = /* @__PURE__ */ a((e) => e != null && typeof e == "object", "\
isObject"), $e = /* @__PURE__ */ a((e, ...r) => Object.prototype.hasOwnProperty.call(e, ...r), "hasOwnProperty");
var ze = /* @__PURE__ */ a(() => /* @__PURE__ */ Object.create(null), "makeObjectWithoutPrototype");

// ../node_modules/deep-object-diff/mjs/deleted.js
var pn = /* @__PURE__ */ a((e, r) => e === r || !de(e) || !de(r) ? {} : Object.keys(e).reduce((t, n) => {
  if ($e(r, n)) {
    let o = pn(e[n], r[n]);
    return de(o) && Yr(o) || (t[n] = o), t;
  }
  return t[n] = void 0, t;
}, ze()), "deletedDiff"), pr = pn;

// src/theming/ensure.ts
var bn = Y(gn(), 1);
var Qo = /* @__PURE__ */ a((e) => {
  if (!e)
    return mr(Re);
  let r = pr(Re, e);
  return Object.keys(r).length && yn.logger.warn(
    bn.dedent`
          Your theme is missing properties, you should update your theme!

          theme-data missing:
        `,
    r
  ), mr(e);
}, "ensure");

// src/theming/index.ts
var ea = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
