const ce = "ui-skeleton", U = (
  /* ui-skeleton */
  { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !1, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !1, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !1, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !1, vdomPropOrAttr: !1, vdomRef: !1, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
);
var $e = Object.defineProperty, fe = (e, t) => {
  for (var r in t)
    $e(e, r, { get: t[r], enumerable: !0 });
}, D = /* @__PURE__ */ new WeakMap(), b = (e) => D.get(e), Ke = (e, t) => D.set(t.$lazyInstance$ = e, t), ue = (e, t) => {
  const r = {
    $flags$: 0,
    $hostElement$: e,
    $cmpMeta$: t,
    $instanceValues$: /* @__PURE__ */ new Map()
  };
  return r.$onReadyPromise$ = new Promise((n) => r.$onReadyResolve$ = n), e["s-p"] = [], e["s-rc"] = [], D.set(e, r);
}, w = (e, t) => (0, console.error)(e, t), O = /* @__PURE__ */ new Map(), de = (e, t, r) => {
  const n = e.$tagName$.replace(/-/g, "_"), s = e.$lazyBundleId$;
  if (!s)
    return;
  const a = O.get(s);
  if (a)
    return a[n];
  {
    const l = (o) => (O.set(s, o), o[n]);
    switch (s) {
      case "ui-skeleton":
        return import(
          /* webpackMode: "lazy" */
          "./ui-skeleton-NZtdK490.js"
        ).then(l, w);
    }
  }
  return import(
    /* @vite-ignore */
    /* webpackInclude: /\.entry\.js$/ */
    /* webpackExclude: /\.system\.entry\.js$/ */
    /* webpackMode: "lazy" */
    `./${s}.entry.js`
  ).then((l) => (O.set(s, l), l[n]), w);
}, L = /* @__PURE__ */ new Map(), me = "{visibility:hidden}.hydrated{visibility:inherit}", G = "slot-fb{display:contents}slot-fb[hidden]{display:none}", B = typeof window < "u" ? window : {}, y = B.document || { head: {} }, p = {
  $flags$: 0,
  $resourcesUrl$: "",
  jmp: (e) => e(),
  raf: (e) => requestAnimationFrame(e),
  ael: (e, t, r, n) => e.addEventListener(t, r, n),
  rel: (e, t, r, n) => e.removeEventListener(t, r, n),
  ce: (e, t) => new CustomEvent(e, t)
}, ve = U.shadowDom, pe = (e) => Promise.resolve(e), he = /* @__PURE__ */ (() => {
  try {
    return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
  } catch {
  }
  return !1;
})(), _ = !1, z = [], J = [], ge = (e, t) => (r) => {
  e.push(r), _ || (_ = !0, p.$flags$ & 4 ? H(j) : p.raf(j));
}, F = (e) => {
  for (let t = 0; t < e.length; t++)
    try {
      e[t](performance.now());
    } catch (r) {
      w(r);
    }
  e.length = 0;
}, j = () => {
  F(z), F(J), (_ = z.length > 0) && p.raf(j);
}, H = (e) => pe().then(e), ye = /* @__PURE__ */ ge(J), q = {}, K = (e) => (e = typeof e, e === "object" || e === "function");
function R(e) {
  var t, r, n;
  return (n = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? n : void 0;
}
var Se = {};
fe(Se, {
  err: () => X,
  map: () => be,
  ok: () => N,
  unwrap: () => ke,
  unwrapErr: () => we
});
var N = (e) => ({
  isOk: !0,
  isErr: !1,
  value: e
}), X = (e) => ({
  isOk: !1,
  isErr: !0,
  value: e
});
function be(e, t) {
  if (e.isOk) {
    const r = t(e.value);
    return r instanceof Promise ? r.then((n) => N(n)) : N(r);
  }
  if (e.isErr) {
    const r = e.value;
    return X(r);
  }
  throw "should never get here";
}
var ke = (e) => {
  if (e.isOk)
    return e.value;
  throw e.value;
}, we = (e) => {
  if (e.isErr)
    return e.value;
  throw e.value;
}, S = (e, t = "") => () => {
}, Ee = (e, t) => () => {
}, xe = (e, t, ...r) => {
  let n = null, s = null, a = !1, l = !1;
  const o = [], i = ($) => {
    for (let f = 0; f < $.length; f++)
      n = $[f], Array.isArray(n) ? i(n) : n != null && typeof n != "boolean" && ((a = typeof e != "function" && !K(n)) && (n = String(n)), a && l ? o[o.length - 1].$text$ += n : o.push(a ? C(null, n) : n), l = a);
  };
  if (i(r), t) {
    t.key && (s = t.key);
    {
      const $ = t.className || t.class;
      $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
    }
  }
  const c = C(e, null);
  return c.$attrs$ = t, o.length > 0 && (c.$children$ = o), c.$key$ = s, c;
}, C = (e, t) => {
  const r = {
    $flags$: 0,
    $tag$: e,
    $text$: t,
    $elm$: null,
    $children$: null
  };
  return r.$attrs$ = null, r.$key$ = null, r;
}, Te = {}, Le = (e) => e && e.$tag$ === Te, Pe = (e, t) => e != null && !K(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Ae = (e, t, r) => {
  const n = p.ce(t, r);
  return e.dispatchEvent(n), n;
}, W = /* @__PURE__ */ new WeakMap(), Oe = (e, t, r) => {
  let n = L.get(e);
  he && r ? (n = n || new CSSStyleSheet(), typeof n == "string" ? n = t : n.replaceSync(t)) : n = t, L.set(e, n);
}, _e = (e, t, r) => {
  var n;
  const s = Z(t), a = L.get(s);
  if (e = e.nodeType === 11 ? e : y, a)
    if (typeof a == "string") {
      e = e.head || e;
      let l = W.get(e), o;
      if (l || W.set(e, l = /* @__PURE__ */ new Set()), !l.has(s)) {
        {
          o = y.createElement("style"), o.innerHTML = a;
          const i = (n = p.$nonce$) != null ? n : R(y);
          i != null && o.setAttribute("nonce", i), e.insertBefore(o, e.querySelector("link"));
        }
        t.$flags$ & 4 && (o.innerHTML += G), l && l.add(s);
      }
    } else
      e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
  return s;
}, je = (e) => {
  const t = e.$cmpMeta$, r = e.$hostElement$, n = S("attachStyles", t.$tagName$);
  _e(
    r.getRootNode(),
    t
  ), n();
}, Z = (e, t) => "sc-" + e.$tagName$, M = (e, t, r, n, s, a) => {
  if (r !== n && (t.toLowerCase(), t === "class")) {
    const l = e.classList, o = Q(r), i = Q(n);
    l.remove(...o.filter((c) => c && !i.includes(c))), l.add(...i.filter((c) => c && !o.includes(c)));
  }
}, Ne = /\s/, Q = (e) => e ? e.split(Ne) : [], V = (e, t, r) => {
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, s = e && e.$attrs$ || q, a = t.$attrs$ || q;
  for (const l of Y(Object.keys(s)))
    l in a || M(n, l, s[l], void 0);
  for (const l of Y(Object.keys(a)))
    M(n, l, s[l], a[l]);
};
function Y(e) {
  return e.includes("ref") ? (
    // we need to sort these to ensure that `'ref'` is the last attr
    [...e.filter((t) => t !== "ref"), "ref"]
  ) : (
    // no need to sort, return the original array
    e
  );
}
var ee, te = !1, P = (e, t, r, n) => {
  const s = t.$children$[r];
  let a = 0, l, o;
  if (s.$text$ !== null)
    l = s.$elm$ = y.createTextNode(s.$text$);
  else if (l = s.$elm$ = y.createElement(
    !te && U.slotRelocation && s.$flags$ & 2 ? "slot-fb" : s.$tag$
  ), V(null, s), s.$children$)
    for (a = 0; a < s.$children$.length; ++a)
      o = P(e, s, a), o && l.appendChild(o);
  return l["s-hn"] = ee, l;
}, se = (e, t, r, n, s, a) => {
  let l = e, o;
  for (; s <= a; ++s)
    n[s] && (o = P(null, r, s), o && (n[s].$elm$ = o, T(l, o, t)));
}, ne = (e, t, r) => {
  for (let n = t; n <= r; ++n) {
    const s = e[n];
    if (s) {
      const a = s.$elm$;
      a && a.remove();
    }
  }
}, Ce = (e, t, r, n, s = !1) => {
  let a = 0, l = 0, o = 0, i = 0, c = t.length - 1, $ = t[0], f = t[c], u = n.length - 1, d = n[0], m = n[u], v, h;
  for (; a <= c && l <= u; )
    if ($ == null)
      $ = t[++a];
    else if (f == null)
      f = t[--c];
    else if (d == null)
      d = n[++l];
    else if (m == null)
      m = n[--u];
    else if (x($, d, s))
      k($, d, s), $ = t[++a], d = n[++l];
    else if (x(f, m, s))
      k(f, m, s), f = t[--c], m = n[--u];
    else if (x($, m, s))
      k($, m, s), T(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], m = n[--u];
    else if (x(f, d, s))
      k(f, d, s), T(e, f.$elm$, $.$elm$), f = t[--c], d = n[++l];
    else {
      for (o = -1, i = a; i <= c; ++i)
        if (t[i] && t[i].$key$ !== null && t[i].$key$ === d.$key$) {
          o = i;
          break;
        }
      o >= 0 ? (h = t[o], h.$tag$ !== d.$tag$ ? v = P(t && t[l], r, o) : (k(h, d, s), t[o] = void 0, v = h.$elm$), d = n[++l]) : (v = P(t && t[l], r, l), d = n[++l]), v && T($.$elm$.parentNode, v, $.$elm$);
    }
  a > c ? se(
    e,
    n[u + 1] == null ? null : n[u + 1].$elm$,
    r,
    n,
    l,
    u
  ) : l > u && ne(t, a, c);
}, x = (e, t, r = !1) => e.$tag$ === t.$tag$ ? r ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, r = !1) => {
  const n = t.$elm$ = e.$elm$, s = e.$children$, a = t.$children$, l = t.$text$;
  l === null ? (V(e, t), s !== null && a !== null ? Ce(n, s, t, a, r) : a !== null ? (e.$text$ !== null && (n.textContent = ""), se(n, null, t, a, 0, a.length - 1)) : s !== null && ne(s, 0, s.length - 1)) : e.$text$ !== l && (n.data = l);
}, T = (e, t, r) => e?.insertBefore(t, r), Ue = (e, t, r = !1) => {
  const n = e.$hostElement$, s = e.$vnode$ || C(null, null), a = Le(t) ? t : xe(null, null, t);
  if (ee = n.tagName, r && a.$attrs$)
    for (const l of Object.keys(a.$attrs$))
      n.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = n[l]);
  a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = s.$elm$ = n, te = ve, k(s, a, r);
}, re = (e, t) => {
  t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
}, I = (e, t) => {
  if (e.$flags$ |= 16, e.$flags$ & 4) {
    e.$flags$ |= 512;
    return;
  }
  return re(e, e.$ancestorComponent$), ye(() => De(e, t));
}, De = (e, t) => {
  const r = e.$hostElement$, n = S("scheduleUpdate", e.$cmpMeta$.$tagName$), s = e.$lazyInstance$;
  if (!s)
    throw new Error(
      `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
    );
  let a;
  return n(), Be(a, () => Ie(e, s, t));
}, Be = (e, t) => He(e) ? e.then(t).catch((r) => {
  console.error(r), t();
}) : t(), He = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ie = async (e, t, r) => {
  var n;
  const s = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = s["s-rc"];
  r && je(e);
  const o = S("render", e.$cmpMeta$.$tagName$);
  ze(e, t, s, r), l && (l.map((i) => i()), s["s-rc"] = void 0), o(), a();
  {
    const i = (n = s["s-p"]) != null ? n : [], c = () => Fe(e);
    i.length === 0 ? c() : (Promise.all(i).then(c), e.$flags$ |= 4, i.length = 0);
  }
}, ze = (e, t, r, n) => {
  try {
    t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ue(e, t, n);
  } catch (s) {
    w(s, e.$hostElement$);
  }
  return null;
}, Fe = (e) => {
  const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, n = S("postUpdate", t), s = e.$ancestorComponent$;
  e.$flags$ & 64 ? n() : (e.$flags$ |= 64, ae(r), n(), e.$onReadyResolve$(r), s || le()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && H(() => I(e, !1)), e.$flags$ &= -517;
}, le = (e) => {
  ae(y.documentElement), H(() => Ae(B, "appload", { detail: { namespace: ce } }));
}, ae = (e) => {
  var t;
  return e.classList.add((t = U.hydratedSelectorName) != null ? t : "hydrated");
}, qe = (e, t) => b(e).$instanceValues$.get(t), We = (e, t, r, n) => {
  const s = b(e);
  if (!s)
    throw new Error(
      `Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
    );
  const a = s.$hostElement$, l = s.$instanceValues$.get(t), o = s.$flags$, i = s.$lazyInstance$;
  r = Pe(r, n.$members$[t][0]);
  const c = Number.isNaN(l) && Number.isNaN(r), $ = r !== l && !c;
  if ((!(o & 8) || l === void 0) && $ && (s.$instanceValues$.set(t, r), i)) {
    if (n.$watchers$ && o & 128) {
      const f = n.$watchers$[t];
      f && f.map((u) => {
        try {
          i[u](r, l, t);
        } catch (d) {
          w(d, a);
        }
      });
    }
    (o & 18) === 2 && I(s, !1);
  }
}, oe = (e, t, r) => {
  var n, s;
  const a = e.prototype;
  if (t.$members$ || t.$watchers$ || e.watchers) {
    e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
    const l = Object.entries((n = t.$members$) != null ? n : {});
    if (l.map(([o, [i]]) => {
      (i & 31 || r & 2 && i & 32) && Object.defineProperty(a, o, {
        get() {
          return qe(this, o);
        },
        set(c) {
          We(this, o, c, t);
        },
        configurable: !0,
        enumerable: !0
      });
    }), r & 1) {
      const o = /* @__PURE__ */ new Map();
      a.attributeChangedCallback = function(i, c, $) {
        p.jmp(() => {
          var f;
          const u = o.get(i);
          if (this.hasOwnProperty(u))
            $ = this[u], delete this[u];
          else {
            if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == $)
              return;
            if (u == null) {
              const d = b(this), m = d?.$flags$;
              if (m && !(m & 8) && m & 128 && $ !== c) {
                const v = d.$lazyInstance$, h = (f = t.$watchers$) == null ? void 0 : f[i];
                h?.forEach((g) => {
                  v[g] != null && v[g].call(v, $, c, i);
                });
              }
              return;
            }
          }
          this[u] = $ === null && typeof this[u] == "boolean" ? !1 : $;
        });
      }, e.observedAttributes = Array.from(
        /* @__PURE__ */ new Set([
          ...Object.keys((s = t.$watchers$) != null ? s : {}),
          ...l.filter(
            ([i, c]) => c[0] & 15
            /* HasAttribute */
          ).map(([i, c]) => {
            const $ = c[1] || i;
            return o.set($, i), $;
          })
        ])
      );
    }
  }
  return e;
}, Me = async (e, t, r, n) => {
  let s;
  if (!(t.$flags$ & 32)) {
    if (t.$flags$ |= 32, r.$lazyBundleId$) {
      const i = de(r);
      if (i && "then" in i) {
        const $ = Ee();
        s = await i, $();
      } else
        s = i;
      if (!s)
        throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);
      s.isProxied || (r.$watchers$ = s.watchers, oe(
        s,
        r,
        2
        /* proxyState */
      ), s.isProxied = !0);
      const c = S("createInstance", r.$tagName$);
      t.$flags$ |= 8;
      try {
        new s(t);
      } catch ($) {
        w($);
      }
      t.$flags$ &= -9, t.$flags$ |= 128, c();
    } else {
      s = e.constructor;
      const i = e.localName;
      customElements.whenDefined(i).then(
        () => t.$flags$ |= 128
        /* isWatchReady */
      );
    }
    if (s && s.style) {
      let i;
      typeof s.style == "string" && (i = s.style);
      const c = Z(r);
      if (!L.has(c)) {
        const $ = S("registerStyles", r.$tagName$);
        Oe(c, i, !!(r.$flags$ & 1)), $();
      }
    }
  }
  const a = t.$ancestorComponent$, l = () => I(t, !0);
  a && a["s-rc"] ? a["s-rc"].push(l) : l();
}, Qe = (e) => {
}, Ye = (e) => {
  if (!(p.$flags$ & 1)) {
    const t = b(e), r = t.$cmpMeta$, n = S("connectedCallback", r.$tagName$);
    if (t.$flags$ & 1)
      t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Qe());
    else {
      t.$flags$ |= 1;
      {
        let s = e;
        for (; s = s.parentNode || s.host; )
          if (s["s-p"]) {
            re(t, t.$ancestorComponent$ = s);
            break;
          }
      }
      r.$members$ && Object.entries(r.$members$).map(([s, [a]]) => {
        if (a & 31 && e.hasOwnProperty(s)) {
          const l = e[s];
          delete e[s], e[s] = l;
        }
      }), Me(e, t, r);
    }
    n();
  }
}, Ge = (e) => {
}, Je = async (e) => {
  if (!(p.$flags$ & 1)) {
    const t = b(e);
    t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ge());
  }
}, Re = (e, t = {}) => {
  var r;
  const n = S(), s = [], a = t.exclude || [], l = B.customElements, o = y.head, i = /* @__PURE__ */ o.querySelector("meta[charset]"), c = /* @__PURE__ */ y.createElement("style"), $ = [];
  let f, u = !0;
  Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", y.baseURI).href;
  let d = !1;
  if (e.map((m) => {
    m[1].map((v) => {
      var h;
      const g = {
        $flags$: v[0],
        $tagName$: v[1],
        $members$: v[2],
        $listeners$: v[3]
      };
      g.$flags$ & 4 && (d = !0), g.$members$ = v[2], g.$watchers$ = (h = v[4]) != null ? h : {};
      const E = g.$tagName$, ie = class extends HTMLElement {
        // StencilLazyHost
        constructor(A) {
          super(A), this.hasRegisteredEventListeners = !1, A = this, ue(A, g);
        }
        connectedCallback() {
          b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? $.push(this) : p.jmp(() => Ye(this));
        }
        disconnectedCallback() {
          p.jmp(() => Je(this));
        }
        componentOnReady() {
          return b(this).$onReadyPromise$;
        }
      };
      g.$lazyBundleId$ = m[0], !a.includes(E) && !l.get(E) && (s.push(E), l.define(
        E,
        oe(
          ie,
          g,
          1
          /* isElementConstructor */
        )
      ));
    });
  }), s.length > 0 && (d && (c.textContent += G), c.textContent += s.sort() + me, c.innerHTML.length)) {
    c.setAttribute("data-styles", "");
    const m = (r = p.$nonce$) != null ? r : R(y);
    m != null && c.setAttribute("nonce", m), o.insertBefore(c, i ? i.nextSibling : o.firstChild);
  }
  u = !1, $.length ? $.map((m) => m.connectedCallback()) : p.jmp(() => f = setTimeout(le, 30)), n();
};
export {
  Te as H,
  Re as b,
  xe as h,
  pe as p,
  Ke as r
};
