import { y as Vt, z as Wt, q as Ft, E as Jt, A as Kt } from "./http-B666g_cC.mjs";
function Ce(e, t = {}) {
  const { key: s = "fallback", name: r = "Fallback", rank: i = !1, shouldThrow: n = Zt, retryCount: c, retryDelay: a } = t;
  return ({ chain: h, pollingInterval: o = 4e3, timeout: f, ...l }) => {
    let d = e, _ = () => {
    };
    const E = Vt({
      key: s,
      name: r,
      async request({ method: u, params: $ }) {
        let m;
        const P = async (w = 0) => {
          const b = d[w]({
            ...l,
            chain: h,
            retryCount: 0,
            timeout: f
          });
          try {
            const S = await b.request({
              method: u,
              params: $
            });
            return _({
              method: u,
              params: $,
              response: S,
              transport: b,
              status: "success"
            }), S;
          } catch (S) {
            if (_({
              error: S,
              method: u,
              params: $,
              transport: b,
              status: "error"
            }), n(S) || w === d.length - 1 || (m ?? (m = d.slice(w + 1).some((x) => {
              const { include: O, exclude: rt } = x({ chain: h }).config.methods || {};
              return O ? O.includes(u) : rt ? !rt.includes(u) : !0;
            })), !m))
              throw S;
            return P(w + 1);
          }
        };
        return P();
      },
      retryCount: c,
      retryDelay: a,
      type: "fallback"
    }, {
      onResponse: (u) => _ = u,
      transports: d.map((u) => u({ chain: h, retryCount: 0 }))
    });
    if (i) {
      const u = typeof i == "object" ? i : {};
      Xt({
        chain: h,
        interval: u.interval ?? o,
        onTransports: ($) => d = $,
        ping: u.ping,
        sampleCount: u.sampleCount,
        timeout: u.timeout,
        transports: d,
        weights: u.weights
      });
    }
    return E;
  };
}
function Zt(e) {
  return !!("code" in e && typeof e.code == "number" && (e.code === Wt.code || e.code === Ft.code || Jt.nodeMessage.test(e.message) || e.code === 5e3));
}
function Xt({ chain: e, interval: t = 4e3, onTransports: s, ping: r, sampleCount: i = 10, timeout: n = 1e3, transports: c, weights: a = {} }) {
  const { stability: h = 0.7, latency: o = 0.3 } = a, f = [], l = async () => {
    const d = await Promise.all(c.map(async (u) => {
      const $ = u({ chain: e, retryCount: 0, timeout: n }), m = Date.now();
      let P, w;
      try {
        await (r ? r({ transport: $ }) : $.request({ method: "net_listening" })), w = 1;
      } catch {
        w = 0;
      } finally {
        P = Date.now();
      }
      return { latency: P - m, success: w };
    }));
    f.push(d), f.length > i && f.shift();
    const _ = Math.max(...f.map((u) => Math.max(...u.map(({ latency: $ }) => $)))), E = c.map((u, $) => {
      const m = f.map((x) => x[$].latency), w = 1 - m.reduce((x, O) => x + O, 0) / m.length / _, b = f.map((x) => x[$].success), S = b.reduce((x, O) => x + O, 0) / b.length;
      return S === 0 ? [0, $] : [
        o * w + h * S,
        $
      ];
    }).sort((u, $) => $[0] - u[0]);
    s(E.map(([, u]) => c[u])), await Kt(t), l();
  };
  l();
}
var Yt = 20, Gt = 1, H = 1e6, wt = 1e6, Qt = -7, te = 21, ee = !1, et = "[big.js] ", B = et + "Invalid ", ht = B + "decimal places", se = B + "rounding mode", Dt = et + "Division by zero", v = {}, R = void 0, re = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
function jt() {
  function e(t) {
    var s = this;
    if (!(s instanceof e)) return t === R ? jt() : new e(t);
    if (t instanceof e)
      s.s = t.s, s.e = t.e, s.c = t.c.slice();
    else {
      if (typeof t != "string") {
        if (e.strict === !0 && typeof t != "bigint")
          throw TypeError(B + "value");
        t = t === 0 && 1 / t < 0 ? "-0" : String(t);
      }
      ie(s, t);
    }
    s.constructor = e;
  }
  return e.prototype = v, e.DP = Yt, e.RM = Gt, e.NE = Qt, e.PE = te, e.strict = ee, e.roundDown = 0, e.roundHalfUp = 1, e.roundHalfEven = 2, e.roundUp = 3, e;
}
function ie(e, t) {
  var s, r, i;
  if (!re.test(t))
    throw Error(B + "number");
  for (e.s = t.charAt(0) == "-" ? (t = t.slice(1), -1) : 1, (s = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (s < 0 && (s = r), s += +t.slice(r + 1), t = t.substring(0, r)) : s < 0 && (s = t.length), i = t.length, r = 0; r < i && t.charAt(r) == "0"; ) ++r;
  if (r == i)
    e.c = [e.e = 0];
  else {
    for (; i > 0 && t.charAt(--i) == "0"; ) ;
    for (e.e = s - r - 1, e.c = [], s = 0; r <= i; ) e.c[s++] = +t.charAt(r++);
  }
  return e;
}
function I(e, t, s, r) {
  var i = e.c;
  if (s === R && (s = e.constructor.RM), s !== 0 && s !== 1 && s !== 2 && s !== 3)
    throw Error(se);
  if (t < 1)
    r = s === 3 && (r || !!i[0]) || t === 0 && (s === 1 && i[0] >= 5 || s === 2 && (i[0] > 5 || i[0] === 5 && (r || i[1] !== R))), i.length = 1, r ? (e.e = e.e - t + 1, i[0] = 1) : i[0] = e.e = 0;
  else if (t < i.length) {
    if (r = s === 1 && i[t] >= 5 || s === 2 && (i[t] > 5 || i[t] === 5 && (r || i[t + 1] !== R || i[t - 1] & 1)) || s === 3 && (r || !!i[0]), i.length = t, r) {
      for (; ++i[--t] > 9; )
        if (i[t] = 0, t === 0) {
          ++e.e, i.unshift(1);
          break;
        }
    }
    for (t = i.length; !i[--t]; ) i.pop();
  }
  return e;
}
function z(e, t, s) {
  var r = e.e, i = e.c.join(""), n = i.length;
  if (t)
    i = i.charAt(0) + (n > 1 ? "." + i.slice(1) : "") + (r < 0 ? "e" : "e+") + r;
  else if (r < 0) {
    for (; ++r; ) i = "0" + i;
    i = "0." + i;
  } else if (r > 0)
    if (++r > n)
      for (r -= n; r--; ) i += "0";
    else r < n && (i = i.slice(0, r) + "." + i.slice(r));
  else n > 1 && (i = i.charAt(0) + "." + i.slice(1));
  return e.s < 0 && s ? "-" + i : i;
}
v.abs = function() {
  var e = new this.constructor(this);
  return e.s = 1, e;
};
v.cmp = function(e) {
  var t, s = this, r = s.c, i = (e = new s.constructor(e)).c, n = s.s, c = e.s, a = s.e, h = e.e;
  if (!r[0] || !i[0]) return r[0] ? n : i[0] ? -c : 0;
  if (n != c) return n;
  if (t = n < 0, a != h) return a > h ^ t ? 1 : -1;
  for (c = (a = r.length) < (h = i.length) ? a : h, n = -1; ++n < c; )
    if (r[n] != i[n]) return r[n] > i[n] ^ t ? 1 : -1;
  return a == h ? 0 : a > h ^ t ? 1 : -1;
};
v.div = function(e) {
  var t = this, s = t.constructor, r = t.c, i = (e = new s(e)).c, n = t.s == e.s ? 1 : -1, c = s.DP;
  if (c !== ~~c || c < 0 || c > H)
    throw Error(ht);
  if (!i[0])
    throw Error(Dt);
  if (!r[0])
    return e.s = n, e.c = [e.e = 0], e;
  var a, h, o, f, l, d = i.slice(), _ = a = i.length, E = r.length, u = r.slice(0, a), $ = u.length, m = e, P = m.c = [], w = 0, b = c + (m.e = t.e - e.e) + 1;
  for (m.s = n, n = b < 0 ? 0 : b, d.unshift(0); $++ < a; ) u.push(0);
  do {
    for (o = 0; o < 10; o++) {
      if (a != ($ = u.length))
        f = a > $ ? 1 : -1;
      else
        for (l = -1, f = 0; ++l < a; )
          if (i[l] != u[l]) {
            f = i[l] > u[l] ? 1 : -1;
            break;
          }
      if (f < 0) {
        for (h = $ == a ? i : d; $; ) {
          if (u[--$] < h[$]) {
            for (l = $; l && !u[--l]; ) u[l] = 9;
            --u[l], u[$] += 10;
          }
          u[$] -= h[$];
        }
        for (; !u[0]; ) u.shift();
      } else
        break;
    }
    P[w++] = f ? o : ++o, u[0] && f ? u[$] = r[_] || 0 : u = [r[_]];
  } while ((_++ < E || u[0] !== R) && n--);
  return !P[0] && w != 1 && (P.shift(), m.e--, b--), w > b && I(m, b, s.RM, u[0] !== R), m;
};
v.eq = function(e) {
  return this.cmp(e) === 0;
};
v.gt = function(e) {
  return this.cmp(e) > 0;
};
v.gte = function(e) {
  return this.cmp(e) > -1;
};
v.lt = function(e) {
  return this.cmp(e) < 0;
};
v.lte = function(e) {
  return this.cmp(e) < 1;
};
v.minus = v.sub = function(e) {
  var t, s, r, i, n = this, c = n.constructor, a = n.s, h = (e = new c(e)).s;
  if (a != h)
    return e.s = -h, n.plus(e);
  var o = n.c.slice(), f = n.e, l = e.c, d = e.e;
  if (!o[0] || !l[0])
    return l[0] ? e.s = -h : o[0] ? e = new c(n) : e.s = 1, e;
  if (a = f - d) {
    for ((i = a < 0) ? (a = -a, r = o) : (d = f, r = l), r.reverse(), h = a; h--; ) r.push(0);
    r.reverse();
  } else
    for (s = ((i = o.length < l.length) ? o : l).length, a = h = 0; h < s; h++)
      if (o[h] != l[h]) {
        i = o[h] < l[h];
        break;
      }
  if (i && (r = o, o = l, l = r, e.s = -e.s), (h = (s = l.length) - (t = o.length)) > 0) for (; h--; ) o[t++] = 0;
  for (h = t; s > a; ) {
    if (o[--s] < l[s]) {
      for (t = s; t && !o[--t]; ) o[t] = 9;
      --o[t], o[s] += 10;
    }
    o[s] -= l[s];
  }
  for (; o[--h] === 0; ) o.pop();
  for (; o[0] === 0; )
    o.shift(), --d;
  return o[0] || (e.s = 1, o = [d = 0]), e.c = o, e.e = d, e;
};
v.mod = function(e) {
  var t, s = this, r = s.constructor, i = s.s, n = (e = new r(e)).s;
  if (!e.c[0])
    throw Error(Dt);
  return s.s = e.s = 1, t = e.cmp(s) == 1, s.s = i, e.s = n, t ? new r(s) : (i = r.DP, n = r.RM, r.DP = r.RM = 0, s = s.div(e), r.DP = i, r.RM = n, this.minus(s.times(e)));
};
v.neg = function() {
  var e = new this.constructor(this);
  return e.s = -e.s, e;
};
v.plus = v.add = function(e) {
  var t, s, r, i = this, n = i.constructor;
  if (e = new n(e), i.s != e.s)
    return e.s = -e.s, i.minus(e);
  var c = i.e, a = i.c, h = e.e, o = e.c;
  if (!a[0] || !o[0])
    return o[0] || (a[0] ? e = new n(i) : e.s = i.s), e;
  if (a = a.slice(), t = c - h) {
    for (t > 0 ? (h = c, r = o) : (t = -t, r = a), r.reverse(); t--; ) r.push(0);
    r.reverse();
  }
  for (a.length - o.length < 0 && (r = o, o = a, a = r), t = o.length, s = 0; t; a[t] %= 10) s = (a[--t] = a[t] + o[t] + s) / 10 | 0;
  for (s && (a.unshift(s), ++h), t = a.length; a[--t] === 0; ) a.pop();
  return e.c = a, e.e = h, e;
};
v.pow = function(e) {
  var t = this, s = new t.constructor("1"), r = s, i = e < 0;
  if (e !== ~~e || e < -wt || e > wt)
    throw Error(B + "exponent");
  for (i && (e = -e); e & 1 && (r = r.times(t)), e >>= 1, !!e; )
    t = t.times(t);
  return i ? s.div(r) : r;
};
v.prec = function(e, t) {
  if (e !== ~~e || e < 1 || e > H)
    throw Error(B + "precision");
  return I(new this.constructor(this), e, t);
};
v.round = function(e, t) {
  if (e === R) e = 0;
  else if (e !== ~~e || e < -H || e > H)
    throw Error(ht);
  return I(new this.constructor(this), e + this.e + 1, t);
};
v.sqrt = function() {
  var e, t, s, r = this, i = r.constructor, n = r.s, c = r.e, a = new i("0.5");
  if (!r.c[0]) return new i(r);
  if (n < 0)
    throw Error(et + "No square root");
  n = Math.sqrt(+z(r, !0, !0)), n === 0 || n === 1 / 0 ? (t = r.c.join(""), t.length + c & 1 || (t += "0"), n = Math.sqrt(t), c = ((c + 1) / 2 | 0) - (c < 0 || c & 1), e = new i((n == 1 / 0 ? "5e" : (n = n.toExponential()).slice(0, n.indexOf("e") + 1)) + c)) : e = new i(n + ""), c = e.e + (i.DP += 4);
  do
    s = e, e = a.times(s.plus(r.div(s)));
  while (s.c.slice(0, c).join("") !== e.c.slice(0, c).join(""));
  return I(e, (i.DP -= 4) + e.e + 1, i.RM);
};
v.times = v.mul = function(e) {
  var t, s = this, r = s.constructor, i = s.c, n = (e = new r(e)).c, c = i.length, a = n.length, h = s.e, o = e.e;
  if (e.s = s.s == e.s ? 1 : -1, !i[0] || !n[0])
    return e.c = [e.e = 0], e;
  for (e.e = h + o, c < a && (t = i, i = n, n = t, o = c, c = a, a = o), t = new Array(o = c + a); o--; ) t[o] = 0;
  for (h = a; h--; ) {
    for (a = 0, o = c + h; o > h; )
      a = t[o] + n[h] * i[o - h - 1] + a, t[o--] = a % 10, a = a / 10 | 0;
    t[o] = a;
  }
  for (a ? ++e.e : t.shift(), h = t.length; !t[--h]; ) t.pop();
  return e.c = t, e;
};
v.toExponential = function(e, t) {
  var s = this, r = s.c[0];
  if (e !== R) {
    if (e !== ~~e || e < 0 || e > H)
      throw Error(ht);
    for (s = I(new s.constructor(s), ++e, t); s.c.length < e; ) s.c.push(0);
  }
  return z(s, !0, !!r);
};
v.toFixed = function(e, t) {
  var s = this, r = s.c[0];
  if (e !== R) {
    if (e !== ~~e || e < 0 || e > H)
      throw Error(ht);
    for (s = I(new s.constructor(s), e + s.e + 1, t), e = e + s.e + 1; s.c.length < e; ) s.c.push(0);
  }
  return z(s, !1, !!r);
};
v[Symbol.for("nodejs.util.inspect.custom")] = v.toJSON = v.toString = function() {
  var e = this, t = e.constructor;
  return z(e, e.e <= t.NE || e.e >= t.PE, !!e.c[0]);
};
v.toNumber = function() {
  var e = +z(this, !0, !0);
  if (this.constructor.strict === !0 && !this.eq(e.toString()))
    throw Error(et + "Imprecise conversion");
  return e;
};
v.toPrecision = function(e, t) {
  var s = this, r = s.constructor, i = s.c[0];
  if (e !== R) {
    if (e !== ~~e || e < 1 || e > H)
      throw Error(B + "precision");
    for (s = I(new r(s), e, t); s.c.length < e; ) s.c.push(0);
  }
  return z(s, e <= s.e || s.e <= r.NE || s.e >= r.PE, !!i);
};
v.valueOf = function() {
  var e = this, t = e.constructor;
  if (t.strict === !0)
    throw Error(et + "valueOf disallowed");
  return z(e, e.e <= t.NE || e.e >= t.PE, !0);
};
var Ne = jt();
const ne = Symbol(), Et = Object.getPrototypeOf, gt = /* @__PURE__ */ new WeakMap(), oe = (e) => e && (gt.has(e) ? gt.get(e) : Et(e) === Object.prototype || Et(e) === Array.prototype), ce = (e) => oe(e) && e[ne] || null, yt = (e, t = !0) => {
  gt.set(e, t);
}, ct = {}, ut = (e) => typeof e == "object" && e !== null, N = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), ae = (e = Object.is, t = (o, f) => new Proxy(o, f), s = (o) => ut(o) && !Z.has(o) && (Array.isArray(o) || !(Symbol.iterator in o)) && !(o instanceof WeakMap) && !(o instanceof WeakSet) && !(o instanceof Error) && !(o instanceof Number) && !(o instanceof Date) && !(o instanceof String) && !(o instanceof RegExp) && !(o instanceof ArrayBuffer), r = (o) => {
  switch (o.status) {
    case "fulfilled":
      return o.value;
    case "rejected":
      throw o.reason;
    default:
      throw o;
  }
}, i = /* @__PURE__ */ new WeakMap(), n = (o, f, l = r) => {
  const d = i.get(o);
  if ((d == null ? void 0 : d[0]) === f)
    return d[1];
  const _ = Array.isArray(o) ? [] : Object.create(Object.getPrototypeOf(o));
  return yt(_, !0), i.set(o, [f, _]), Reflect.ownKeys(o).forEach((E) => {
    if (Object.getOwnPropertyDescriptor(_, E))
      return;
    const u = Reflect.get(o, E), { enumerable: $ } = Reflect.getOwnPropertyDescriptor(
      o,
      E
    ), m = {
      value: u,
      enumerable: $,
      // This is intentional to avoid copying with proxy-compare.
      // It's still non-writable, so it avoids assigning a value.
      configurable: !0
    };
    if (Z.has(u))
      yt(u, !1);
    else if (u instanceof Promise)
      delete m.value, m.get = () => l(u);
    else if (N.has(u)) {
      const [P, w] = N.get(
        u
      );
      m.value = n(
        P,
        w(),
        l
      );
    }
    Object.defineProperty(_, E, m);
  }), Object.preventExtensions(_);
}, c = /* @__PURE__ */ new WeakMap(), a = [1, 1], h = (o) => {
  if (!ut(o))
    throw new Error("object required");
  const f = c.get(o);
  if (f)
    return f;
  let l = a[0];
  const d = /* @__PURE__ */ new Set(), _ = (A, g = ++a[0]) => {
    l !== g && (l = g, d.forEach((p) => p(A, g)));
  };
  let E = a[1];
  const u = (A = ++a[1]) => (E !== A && !d.size && (E = A, m.forEach(([g]) => {
    const p = g[1](A);
    p > l && (l = p);
  })), l), $ = (A) => (g, p) => {
    const M = [...g];
    M[1] = [A, ...M[1]], _(M, p);
  }, m = /* @__PURE__ */ new Map(), P = (A, g) => {
    if ((ct ? "production" : void 0) !== "production" && m.has(A))
      throw new Error("prop listener already exists");
    if (d.size) {
      const p = g[3]($(A));
      m.set(A, [g, p]);
    } else
      m.set(A, [g]);
  }, w = (A) => {
    var g;
    const p = m.get(A);
    p && (m.delete(A), (g = p[1]) == null || g.call(p));
  }, b = (A) => (d.add(A), d.size === 1 && m.forEach(([p, M], q) => {
    if ((ct ? "production" : void 0) !== "production" && M)
      throw new Error("remove already exists");
    const J = p[3]($(q));
    m.set(q, [p, J]);
  }), () => {
    d.delete(A), d.size === 0 && m.forEach(([p, M], q) => {
      M && (M(), m.set(q, [p]));
    });
  }), S = Array.isArray(o) ? [] : Object.create(Object.getPrototypeOf(o)), O = t(S, {
    deleteProperty(A, g) {
      const p = Reflect.get(A, g);
      w(g);
      const M = Reflect.deleteProperty(A, g);
      return M && _(["delete", [g], p]), M;
    },
    set(A, g, p, M) {
      const q = Reflect.has(A, g), J = Reflect.get(A, g, M);
      if (q && (e(J, p) || c.has(p) && e(J, c.get(p))))
        return !0;
      w(g), ut(p) && (p = ce(p) || p);
      let it = p;
      if (p instanceof Promise)
        p.then((C) => {
          p.status = "fulfilled", p.value = C, _(["resolve", [g], C]);
        }).catch((C) => {
          p.status = "rejected", p.reason = C, _(["reject", [g], C]);
        });
      else {
        !N.has(p) && s(p) && (it = h(p));
        const C = !Z.has(it) && N.get(it);
        C && P(g, C);
      }
      return Reflect.set(A, g, it, M), _(["set", [g], p, J]), !0;
    }
  });
  c.set(o, O);
  const rt = [
    S,
    u,
    n,
    b
  ];
  return N.set(O, rt), Reflect.ownKeys(o).forEach((A) => {
    const g = Object.getOwnPropertyDescriptor(
      o,
      A
    );
    "value" in g && (O[A] = o[A], delete g.value, delete g.writable), Object.defineProperty(S, A, g);
  }), O;
}) => [
  // public functions
  h,
  // shared state
  N,
  Z,
  // internal things
  e,
  t,
  s,
  r,
  i,
  n,
  c,
  a
], [he] = ae();
function le(e = {}) {
  return he(e);
}
function ue(e, t, s) {
  const r = N.get(e);
  (ct ? "production" : void 0) !== "production" && !r && console.warn("Please use proxy object");
  let i;
  const n = [], c = r[3];
  let a = !1;
  const o = c((f) => {
    n.push(f), i || (i = Promise.resolve().then(() => {
      i = void 0, a && t(n.splice(0));
    }));
  });
  return a = !0, () => {
    a = !1, o();
  };
}
function Ue(e, t) {
  const s = N.get(e);
  (ct ? "production" : void 0) !== "production" && !s && console.warn("Please use proxy object");
  const [r, i, n] = s;
  return n(r, i(), t);
}
function Te(e) {
  return Z.add(e), e;
}
function De(e, t, s, r) {
  let i = e[t];
  return ue(
    e,
    () => {
      const n = e[t];
      Object.is(i, n) || s(i = n);
    }
  );
}
function je(e) {
  const t = le({
    data: Array.from([]),
    has(s) {
      return this.data.some((r) => r[0] === s);
    },
    set(s, r) {
      const i = this.data.find((n) => n[0] === s);
      return i ? i[1] = r : this.data.push([s, r]), this;
    },
    get(s) {
      var r;
      return (r = this.data.find((i) => i[0] === s)) == null ? void 0 : r[1];
    },
    delete(s) {
      const r = this.data.findIndex((i) => i[0] === s);
      return r === -1 ? !1 : (this.data.splice(r, 1), !0);
    },
    clear() {
      this.data.splice(0);
    },
    get size() {
      return this.data.length;
    },
    toJSON() {
      return new Map(this.data);
    },
    forEach(s) {
      this.data.forEach((r) => {
        s(r[1], r[0], this);
      });
    },
    keys() {
      return this.data.map((s) => s[0]).values();
    },
    values() {
      return this.data.map((s) => s[1]).values();
    },
    entries() {
      return new Map(this.data).entries();
    },
    get [Symbol.toStringTag]() {
      return "Map";
    },
    [Symbol.iterator]() {
      return this.entries();
    }
  });
  return Object.defineProperties(t, {
    data: {
      enumerable: !1
    },
    size: {
      enumerable: !1
    },
    toJSON: {
      enumerable: !1
    }
  }), Object.seal(t), t;
}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const nt = globalThis, mt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, At = Symbol(), bt = /* @__PURE__ */ new WeakMap();
let kt = class {
  constructor(t, s, r) {
    if (this._$cssResult$ = !0, r !== At) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
    this.cssText = t, this.t = s;
  }
  get styleSheet() {
    let t = this.o;
    const s = this.t;
    if (mt && t === void 0) {
      const r = s !== void 0 && s.length === 1;
      r && (t = bt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && bt.set(s, t));
    }
    return t;
  }
  toString() {
    return this.cssText;
  }
};
const fe = (e) => new kt(typeof e == "string" ? e : e + "", void 0, At), He = (e, ...t) => {
  const s = e.length === 1 ? e[0] : t.reduce((r, i, n) => r + ((c) => {
    if (c._$cssResult$ === !0) return c.cssText;
    if (typeof c == "number") return c;
    throw Error("Value passed to 'css' function must be a 'css' function result: " + c + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
  })(i) + e[n + 1], e[0]);
  return new kt(s, e, At);
}, de = (e, t) => {
  if (mt) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
  else for (const s of t) {
    const r = document.createElement("style"), i = nt.litNonce;
    i !== void 0 && r.setAttribute("nonce", i), r.textContent = s.cssText, e.appendChild(r);
  }
}, St = mt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
  let s = "";
  for (const r of t.cssRules) s += r.cssText;
  return fe(s);
})(e) : e;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const { is: pe, defineProperty: $e, getOwnPropertyDescriptor: ge, getOwnPropertyNames: _e, getOwnPropertySymbols: me, getPrototypeOf: Ae } = Object, T = globalThis, Pt = T.trustedTypes, ve = Pt ? Pt.emptyScript : "", ft = T.reactiveElementPolyfillSupport, X = (e, t) => e, _t = { toAttribute(e, t) {
  switch (t) {
    case Boolean:
      e = e ? ve : null;
      break;
    case Object:
    case Array:
      e = e == null ? e : JSON.stringify(e);
  }
  return e;
}, fromAttribute(e, t) {
  let s = e;
  switch (t) {
    case Boolean:
      s = e !== null;
      break;
    case Number:
      s = e === null ? null : Number(e);
      break;
    case Object:
    case Array:
      try {
        s = JSON.parse(e);
      } catch {
        s = null;
      }
  }
  return s;
} }, Ht = (e, t) => !pe(e, t), Mt = { attribute: !0, type: String, converter: _t, reflect: !1, useDefault: !1, hasChanged: Ht };
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
let V = class extends HTMLElement {
  static addInitializer(t) {
    this._$Ei(), (this.l ?? (this.l = [])).push(t);
  }
  static get observedAttributes() {
    return this.finalize(), this._$Eh && [...this._$Eh.keys()];
  }
  static createProperty(t, s = Mt) {
    if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
      const r = Symbol(), i = this.getPropertyDescriptor(t, r, s);
      i !== void 0 && $e(this.prototype, t, i);
    }
  }
  static getPropertyDescriptor(t, s, r) {
    const { get: i, set: n } = ge(this.prototype, t) ?? { get() {
      return this[s];
    }, set(c) {
      this[s] = c;
    } };
    return { get: i, set(c) {
      const a = i == null ? void 0 : i.call(this);
      n == null || n.call(this, c), this.requestUpdate(t, a, r);
    }, configurable: !0, enumerable: !0 };
  }
  static getPropertyOptions(t) {
    return this.elementProperties.get(t) ?? Mt;
  }
  static _$Ei() {
    if (this.hasOwnProperty(X("elementProperties"))) return;
    const t = Ae(this);
    t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
  }
  static finalize() {
    if (this.hasOwnProperty(X("finalized"))) return;
    if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(X("properties"))) {
      const s = this.properties, r = [..._e(s), ...me(s)];
      for (const i of r) this.createProperty(i, s[i]);
    }
    const t = this[Symbol.metadata];
    if (t !== null) {
      const s = litPropertyMetadata.get(t);
      if (s !== void 0) for (const [r, i] of s) this.elementProperties.set(r, i);
    }
    this._$Eh = /* @__PURE__ */ new Map();
    for (const [s, r] of this.elementProperties) {
      const i = this._$Eu(s, r);
      i !== void 0 && this._$Eh.set(i, s);
    }
    this.elementStyles = this.finalizeStyles(this.styles);
  }
  static finalizeStyles(t) {
    const s = [];
    if (Array.isArray(t)) {
      const r = new Set(t.flat(1 / 0).reverse());
      for (const i of r) s.unshift(St(i));
    } else t !== void 0 && s.push(St(t));
    return s;
  }
  static _$Eu(t, s) {
    const r = s.attribute;
    return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
  }
  constructor() {
    super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
  }
  _$Ev() {
    var t;
    this._$ES = new Promise((s) => this.enableUpdating = s), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((s) => s(this));
  }
  addController(t) {
    var s;
    (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) == null || s.call(t));
  }
  removeController(t) {
    var s;
    (s = this._$EO) == null || s.delete(t);
  }
  _$E_() {
    const t = /* @__PURE__ */ new Map(), s = this.constructor.elementProperties;
    for (const r of s.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
    t.size > 0 && (this._$Ep = t);
  }
  createRenderRoot() {
    const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
    return de(t, this.constructor.elementStyles), t;
  }
  connectedCallback() {
    var t;
    this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((s) => {
      var r;
      return (r = s.hostConnected) == null ? void 0 : r.call(s);
    });
  }
  enableUpdating(t) {
  }
  disconnectedCallback() {
    var t;
    (t = this._$EO) == null || t.forEach((s) => {
      var r;
      return (r = s.hostDisconnected) == null ? void 0 : r.call(s);
    });
  }
  attributeChangedCallback(t, s, r) {
    this._$AK(t, r);
  }
  _$ET(t, s) {
    var n;
    const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
    if (i !== void 0 && r.reflect === !0) {
      const c = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : _t).toAttribute(s, r.type);
      this._$Em = t, c == null ? this.removeAttribute(i) : this.setAttribute(i, c), this._$Em = null;
    }
  }
  _$AK(t, s) {
    var n, c;
    const r = this.constructor, i = r._$Eh.get(t);
    if (i !== void 0 && this._$Em !== i) {
      const a = r.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : _t;
      this._$Em = i, this[i] = h.fromAttribute(s, a.type) ?? ((c = this._$Ej) == null ? void 0 : c.get(i)) ?? null, this._$Em = null;
    }
  }
  requestUpdate(t, s, r) {
    var i;
    if (t !== void 0) {
      const n = this.constructor, c = this[t];
      if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Ht)(c, s) || r.useDefault && r.reflect && c === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
      this.C(t, s, r);
    }
    this.isUpdatePending === !1 && (this._$ES = this._$EP());
  }
  C(t, s, { useDefault: r, reflect: i, wrapped: n }, c) {
    r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, c ?? s ?? this[t]), n !== !0 || c !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (s = void 0), this._$AL.set(t, s)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
  }
  async _$EP() {
    this.isUpdatePending = !0;
    try {
      await this._$ES;
    } catch (s) {
      Promise.reject(s);
    }
    const t = this.scheduleUpdate();
    return t != null && await t, !this.isUpdatePending;
  }
  scheduleUpdate() {
    return this.performUpdate();
  }
  performUpdate() {
    var r;
    if (!this.isUpdatePending) return;
    if (!this.hasUpdated) {
      if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
        for (const [n, c] of this._$Ep) this[n] = c;
        this._$Ep = void 0;
      }
      const i = this.constructor.elementProperties;
      if (i.size > 0) for (const [n, c] of i) {
        const { wrapped: a } = c, h = this[n];
        a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, c, h);
      }
    }
    let t = !1;
    const s = this._$AL;
    try {
      t = this.shouldUpdate(s), t ? (this.willUpdate(s), (r = this._$EO) == null || r.forEach((i) => {
        var n;
        return (n = i.hostUpdate) == null ? void 0 : n.call(i);
      }), this.update(s)) : this._$EM();
    } catch (i) {
      throw t = !1, this._$EM(), i;
    }
    t && this._$AE(s);
  }
  willUpdate(t) {
  }
  _$AE(t) {
    var s;
    (s = this._$EO) == null || s.forEach((r) => {
      var i;
      return (i = r.hostUpdated) == null ? void 0 : i.call(r);
    }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
  }
  _$EM() {
    this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
  }
  get updateComplete() {
    return this.getUpdateComplete();
  }
  getUpdateComplete() {
    return this._$ES;
  }
  shouldUpdate(t) {
    return !0;
  }
  update(t) {
    this._$Eq && (this._$Eq = this._$Eq.forEach((s) => this._$ET(s, this[s]))), this._$EM();
  }
  updated(t) {
  }
  firstUpdated(t) {
  }
};
V.elementStyles = [], V.shadowRootOptions = { mode: "open" }, V[X("elementProperties")] = /* @__PURE__ */ new Map(), V[X("finalized")] = /* @__PURE__ */ new Map(), ft == null || ft({ ReactiveElement: V }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.1.0");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const Y = globalThis, at = Y.trustedTypes, Ot = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Lt = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, Bt = "?" + U, we = `<${Bt}>`, L = document, G = () => L.createComment(""), Q = (e) => e === null || typeof e != "object" && typeof e != "function", vt = Array.isArray, Ee = (e) => vt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", dt = `[ 	
\f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xt = /-->/g, Rt = />/g, D = RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ct = /'/g, Nt = /"/g, It = /^(?:script|style|textarea|title)$/i, zt = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), Be = zt(1), Ie = zt(2), W = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), Ut = /* @__PURE__ */ new WeakMap(), j = L.createTreeWalker(L, 129);
function qt(e, t) {
  if (!vt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
  return Ot !== void 0 ? Ot.createHTML(t) : t;
}
const ye = (e, t) => {
  const s = e.length - 1, r = [];
  let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", c = K;
  for (let a = 0; a < s; a++) {
    const h = e[a];
    let o, f, l = -1, d = 0;
    for (; d < h.length && (c.lastIndex = d, f = c.exec(h), f !== null); ) d = c.lastIndex, c === K ? f[1] === "!--" ? c = xt : f[1] !== void 0 ? c = Rt : f[2] !== void 0 ? (It.test(f[2]) && (i = RegExp("</" + f[2], "g")), c = D) : f[3] !== void 0 && (c = D) : c === D ? f[0] === ">" ? (c = i ?? K, l = -1) : f[1] === void 0 ? l = -2 : (l = c.lastIndex - f[2].length, o = f[1], c = f[3] === void 0 ? D : f[3] === '"' ? Nt : Ct) : c === Nt || c === Ct ? c = D : c === xt || c === Rt ? c = K : (c = D, i = void 0);
    const _ = c === D && e[a + 1].startsWith("/>") ? " " : "";
    n += c === K ? h + we : l >= 0 ? (r.push(o), h.slice(0, l) + Lt + h.slice(l) + U + _) : h + U + (l === -2 ? a : _);
  }
  return [qt(e, n + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
};
class tt {
  constructor({ strings: t, _$litType$: s }, r) {
    let i;
    this.parts = [];
    let n = 0, c = 0;
    const a = t.length - 1, h = this.parts, [o, f] = ye(t, s);
    if (this.el = tt.createElement(o, r), j.currentNode = this.el.content, s === 2 || s === 3) {
      const l = this.el.content.firstChild;
      l.replaceWith(...l.childNodes);
    }
    for (; (i = j.nextNode()) !== null && h.length < a; ) {
      if (i.nodeType === 1) {
        if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(Lt)) {
          const d = f[c++], _ = i.getAttribute(l).split(U), E = /([.?@])?(.*)/.exec(d);
          h.push({ type: 1, index: n, name: E[2], strings: _, ctor: E[1] === "." ? Se : E[1] === "?" ? Pe : E[1] === "@" ? Me : lt }), i.removeAttribute(l);
        } else l.startsWith(U) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
        if (It.test(i.tagName)) {
          const l = i.textContent.split(U), d = l.length - 1;
          if (d > 0) {
            i.textContent = at ? at.emptyScript : "";
            for (let _ = 0; _ < d; _++) i.append(l[_], G()), j.nextNode(), h.push({ type: 2, index: ++n });
            i.append(l[d], G());
          }
        }
      } else if (i.nodeType === 8) if (i.data === Bt) h.push({ type: 2, index: n });
      else {
        let l = -1;
        for (; (l = i.data.indexOf(U, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += U.length - 1;
      }
      n++;
    }
  }
  static createElement(t, s) {
    const r = L.createElement("template");
    return r.innerHTML = t, r;
  }
}
function F(e, t, s = e, r) {
  var c, a;
  if (t === W) return t;
  let i = r !== void 0 ? (c = s._$Co) == null ? void 0 : c[r] : s._$Cl;
  const n = Q(t) ? void 0 : t._$litDirective$;
  return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(e), i._$AT(e, s, r)), r !== void 0 ? (s._$Co ?? (s._$Co = []))[r] = i : s._$Cl = i), i !== void 0 && (t = F(e, i._$AS(e, t.values), i, r)), t;
}
class be {
  constructor(t, s) {
    this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
  }
  get parentNode() {
    return this._$AM.parentNode;
  }
  get _$AU() {
    return this._$AM._$AU;
  }
  u(t) {
    const { el: { content: s }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? L).importNode(s, !0);
    j.currentNode = i;
    let n = j.nextNode(), c = 0, a = 0, h = r[0];
    for (; h !== void 0; ) {
      if (c === h.index) {
        let o;
        h.type === 2 ? o = new st(n, n.nextSibling, this, t) : h.type === 1 ? o = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (o = new Oe(n, this, t)), this._$AV.push(o), h = r[++a];
      }
      c !== (h == null ? void 0 : h.index) && (n = j.nextNode(), c++);
    }
    return j.currentNode = L, i;
  }
  p(t) {
    let s = 0;
    for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, s), s += r.strings.length - 2) : r._$AI(t[s])), s++;
  }
}
class st {
  get _$AU() {
    var t;
    return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
  }
  constructor(t, s, r, i) {
    this.type = 2, this._$AH = y, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = r, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
  }
  get parentNode() {
    let t = this._$AA.parentNode;
    const s = this._$AM;
    return s !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = s.parentNode), t;
  }
  get startNode() {
    return this._$AA;
  }
  get endNode() {
    return this._$AB;
  }
  _$AI(t, s = this) {
    t = F(this, t, s), Q(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ee(t) ? this.k(t) : this._(t);
  }
  O(t) {
    return this._$AA.parentNode.insertBefore(t, this._$AB);
  }
  T(t) {
    this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
  }
  _(t) {
    this._$AH !== y && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(L.createTextNode(t)), this._$AH = t;
  }
  $(t) {
    var n;
    const { values: s, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = tt.createElement(qt(r.h, r.h[0]), this.options)), r);
    if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(s);
    else {
      const c = new be(i, this), a = c.u(this.options);
      c.p(s), this.T(a), this._$AH = c;
    }
  }
  _$AC(t) {
    let s = Ut.get(t.strings);
    return s === void 0 && Ut.set(t.strings, s = new tt(t)), s;
  }
  k(t) {
    vt(this._$AH) || (this._$AH = [], this._$AR());
    const s = this._$AH;
    let r, i = 0;
    for (const n of t) i === s.length ? s.push(r = new st(this.O(G()), this.O(G()), this, this.options)) : r = s[i], r._$AI(n), i++;
    i < s.length && (this._$AR(r && r._$AB.nextSibling, i), s.length = i);
  }
  _$AR(t = this._$AA.nextSibling, s) {
    var r;
    for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, s); t && t !== this._$AB; ) {
      const i = t.nextSibling;
      t.remove(), t = i;
    }
  }
  setConnected(t) {
    var s;
    this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
  }
}
class lt {
  get tagName() {
    return this.element.tagName;
  }
  get _$AU() {
    return this._$AM._$AU;
  }
  constructor(t, s, r, i, n) {
    this.type = 1, this._$AH = y, this._$AN = void 0, this.element = t, this.name = s, this._$AM = i, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = y;
  }
  _$AI(t, s = this, r, i) {
    const n = this.strings;
    let c = !1;
    if (n === void 0) t = F(this, t, s, 0), c = !Q(t) || t !== this._$AH && t !== W, c && (this._$AH = t);
    else {
      const a = t;
      let h, o;
      for (t = n[0], h = 0; h < n.length - 1; h++) o = F(this, a[r + h], s, h), o === W && (o = this._$AH[h]), c || (c = !Q(o) || o !== this._$AH[h]), o === y ? t = y : t !== y && (t += (o ?? "") + n[h + 1]), this._$AH[h] = o;
    }
    c && !i && this.j(t);
  }
  j(t) {
    t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
  }
}
class Se extends lt {
  constructor() {
    super(...arguments), this.type = 3;
  }
  j(t) {
    this.element[this.name] = t === y ? void 0 : t;
  }
}
class Pe extends lt {
  constructor() {
    super(...arguments), this.type = 4;
  }
  j(t) {
    this.element.toggleAttribute(this.name, !!t && t !== y);
  }
}
class Me extends lt {
  constructor(t, s, r, i, n) {
    super(t, s, r, i, n), this.type = 5;
  }
  _$AI(t, s = this) {
    if ((t = F(this, t, s, 0) ?? y) === W) return;
    const r = this._$AH, i = t === y && r !== y || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== y && (r === y || i);
    i && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
  }
  handleEvent(t) {
    var s;
    typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
  }
}
class Oe {
  constructor(t, s, r) {
    this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = r;
  }
  get _$AU() {
    return this._$AM._$AU;
  }
  _$AI(t) {
    F(this, t);
  }
}
const pt = Y.litHtmlPolyfillSupport;
pt == null || pt(tt, st), (Y.litHtmlVersions ?? (Y.litHtmlVersions = [])).push("3.3.0");
const xe = (e, t, s) => {
  const r = (s == null ? void 0 : s.renderBefore) ?? t;
  let i = r._$litPart$;
  if (i === void 0) {
    const n = (s == null ? void 0 : s.renderBefore) ?? null;
    r._$litPart$ = i = new st(t.insertBefore(G(), n), n, void 0, s ?? {});
  }
  return i._$AI(e), i;
};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const k = globalThis;
class ot extends V {
  constructor() {
    super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
  }
  createRenderRoot() {
    var s;
    const t = super.createRenderRoot();
    return (s = this.renderOptions).renderBefore ?? (s.renderBefore = t.firstChild), t;
  }
  update(t) {
    const s = this.render();
    this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = xe(s, this.renderRoot, this.renderOptions);
  }
  connectedCallback() {
    var t;
    super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
  }
  disconnectedCallback() {
    var t;
    super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
  }
  render() {
    return W;
  }
}
var Tt;
ot._$litElement$ = !0, ot.finalized = !0, (Tt = k.litElementHydrateSupport) == null || Tt.call(k, { LitElement: ot });
const $t = k.litElementPolyfillSupport;
$t == null || $t({ LitElement: ot });
(k.litElementVersions ?? (k.litElementVersions = [])).push("4.2.0");
export {
  Ne as B,
  y as E,
  W as T,
  De as a,
  Ue as b,
  je as c,
  fe as d,
  ot as e,
  Ce as f,
  Ie as g,
  Ht as h,
  He as i,
  le as p,
  Te as r,
  ue as s,
  _t as u,
  Be as x
};
