const fe = "ui-image", ue = (
  /* ui-image */
  { hydratedSelectorName: "hydrated" }
);
var de = Object.defineProperty, ve = (e, t) => {
  for (var n in t)
    de(e, n, { get: t[n], enumerable: !0 });
}, B = /* @__PURE__ */ new WeakMap(), E = (e) => B.get(e), Ve = (e, t) => B.set(t.$lazyInstance$ = e, t), ge = (e, t) => {
  const n = {
    $flags$: 0,
    $hostElement$: e,
    $cmpMeta$: t,
    $instanceValues$: /* @__PURE__ */ new Map()
  };
  return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], B.set(e, n);
}, F = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), O = /* @__PURE__ */ new Map(), pe = (e, t, n) => {
  const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
  if (!r)
    return;
  const a = O.get(r);
  if (a)
    return a[s];
  {
    const l = ($) => (O.set(r, $), $[s]);
    switch (r) {
      case "ui-image_2":
        return import(
          /* webpackMode: "lazy" */
          "./ui-image_2-BXgptLvl.js"
        ).then(l, k);
    }
  }
  return import(
    /* @vite-ignore */
    /* webpackInclude: /\.entry\.js$/ */
    /* webpackExclude: /\.system\.entry\.js$/ */
    /* webpackMode: "lazy" */
    `./${r}.entry.js`
  ).then((l) => (O.set(r, l), l[s]), k);
}, _ = /* @__PURE__ */ new Map(), he = "{visibility:hidden}.hydrated{visibility:inherit}", K = "slot-fb{display:contents}slot-fb[hidden]{display:none}", L = typeof window < "u" ? window : {}, m = L.document || { head: {} }, p = {
  $flags$: 0,
  $resourcesUrl$: "",
  jmp: (e) => e(),
  raf: (e) => requestAnimationFrame(e),
  ael: (e, t, n, s) => e.addEventListener(t, n, s),
  rel: (e, t, n, s) => e.removeEventListener(t, n, s),
  ce: (e, t) => new CustomEvent(e, t)
}, ye = (e) => Promise.resolve(e), me = /* @__PURE__ */ (() => {
  try {
    return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
  } catch {
  }
  return !1;
})(), w = !1, D = [], Q = [], Se = (e, t) => (n) => {
  e.push(n), w || (w = !0, p.$flags$ & 4 ? z(I) : p.raf(I));
}, W = (e) => {
  for (let t = 0; t < e.length; t++)
    try {
      e[t](performance.now());
    } catch (n) {
      k(n);
    }
  e.length = 0;
}, I = () => {
  W(D), W(Q), (w = D.length > 0) && p.raf(I);
}, z = (e) => ye().then(e), Ee = /* @__PURE__ */ Se(Q), M = {}, C = (e) => (e = typeof e, e === "object" || e === "function");
function Z(e) {
  var t, n, s;
  return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
}
var ke = {};
ve(ke, {
  err: () => R,
  map: () => be,
  ok: () => U,
  unwrap: () => xe,
  unwrapErr: () => Pe
});
var U = (e) => ({
  isOk: !0,
  isErr: !1,
  value: e
}), R = (e) => ({
  isOk: !1,
  isErr: !0,
  value: e
});
function be(e, t) {
  if (e.isOk) {
    const n = t(e.value);
    return n instanceof Promise ? n.then((s) => U(s)) : U(n);
  }
  if (e.isErr) {
    const n = e.value;
    return R(n);
  }
  throw "should never get here";
}
var xe = (e) => {
  if (e.isOk)
    return e.value;
  throw e.value;
}, Pe = (e) => {
  if (e.isErr)
    return e.value;
  throw e.value;
}, S = (e, t = "") => () => {
}, Te = (e, t) => () => {
}, _e = (e, t, ...n) => {
  let s = null, r = null, a = !1, l = !1;
  const $ = [], i = (c) => {
    for (let f = 0; f < c.length; f++)
      s = c[f], Array.isArray(s) ? i(s) : s != null && typeof s != "boolean" && ((a = typeof e != "function" && !C(s)) && (s = String(s)), a && l ? $[$.length - 1].$text$ += s : $.push(a ? H(null, s) : s), l = a);
  };
  if (i(n), t) {
    t.key && (r = t.key);
    {
      const c = t.className || t.class;
      c && (t.class = typeof c != "object" ? c : Object.keys(c).filter((f) => c[f]).join(" "));
    }
  }
  const o = H(e, null);
  return o.$attrs$ = t, $.length > 0 && (o.$children$ = $), o.$key$ = r, o;
}, H = (e, t) => {
  const n = {
    $flags$: 0,
    $tag$: e,
    $text$: t,
    $elm$: null,
    $children$: null
  };
  return n.$attrs$ = null, n.$key$ = null, n;
}, Ae = {}, Le = (e) => e && e.$tag$ === Ae, je = (e, t) => e != null && !C(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, et = (e) => E(e).$hostElement$, Oe = (e, t, n) => {
  const s = p.ce(t, n);
  return e.dispatchEvent(s), s;
}, G = /* @__PURE__ */ new WeakMap(), we = (e, t, n) => {
  let s = _.get(e);
  me && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, _.set(e, s);
}, Ie = (e, t, n) => {
  var s;
  const r = N(t), a = _.get(r);
  if (e = e.nodeType === 11 ? e : m, a)
    if (typeof a == "string") {
      e = e.head || e;
      let l = G.get(e), $;
      if (l || G.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
        {
          $ = m.createElement("style"), $.innerHTML = a;
          const i = (s = p.$nonce$) != null ? s : Z(m);
          i != null && $.setAttribute("nonce", i), e.insertBefore($, e.querySelector("link"));
        }
        t.$flags$ & 4 && ($.innerHTML += K), l && l.add(r);
      }
    } else
      e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
  return r;
}, Ue = (e) => {
  const t = e.$cmpMeta$, n = e.$hostElement$, s = S("attachStyles", t.$tagName$);
  Ie(
    n.getRootNode(),
    t
  ), s();
}, N = (e, t) => "sc-" + e.$tagName$, X = (e, t, n, s, r, a) => {
  if (n !== s) {
    let l = F(e, t), $ = t.toLowerCase();
    if (t === "class") {
      const i = e.classList, o = Y(n), c = Y(s);
      i.remove(...o.filter((f) => f && !c.includes(f))), i.add(...c.filter((f) => f && !o.includes(f)));
    } else if (t === "style") {
      for (const i in n)
        (!s || s[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
      for (const i in s)
        (!n || s[i] !== n[i]) && (i.includes("-") ? e.style.setProperty(i, s[i]) : e.style[i] = s[i]);
    } else if (t !== "key")
      if (t === "ref")
        s && s(e);
      else if (!l && t[0] === "o" && t[1] === "n") {
        if (t[2] === "-" ? t = t.slice(3) : F(L, $) ? t = $.slice(2) : t = $[2] + t.slice(3), n || s) {
          const i = t.endsWith(V);
          t = t.replace(Be, ""), n && p.rel(e, t, n, i), s && p.ael(e, t, s, i);
        }
      } else {
        const i = C(s);
        if (l || i && s !== null)
          try {
            if (e.tagName.includes("-"))
              e[t] = s;
            else {
              const o = s ?? "";
              t === "list" ? l = !1 : (n == null || e[t] != o) && (e[t] = o);
            }
          } catch {
          }
        s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || a & 4 || r) && !i && (s = s === !0 ? "" : s, e.setAttribute(t, s));
      }
  }
}, He = /\s/, Y = (e) => e ? e.split(He) : [], V = "Capture", Be = new RegExp(V + "$"), ee = (e, t, n) => {
  const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || M, a = t.$attrs$ || M;
  for (const l of J(Object.keys(r)))
    l in a || X(s, l, r[l], void 0, n, t.$flags$);
  for (const l of J(Object.keys(a)))
    X(s, l, r[l], a[l], n, t.$flags$);
};
function J(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 te, se = !1, A = (e, t, n, s) => {
  const r = t.$children$[n];
  let a = 0, l, $;
  if (r.$text$ !== null)
    l = r.$elm$ = m.createTextNode(r.$text$);
  else if (l = r.$elm$ = m.createElement(
    r.$tag$
  ), ee(null, r, se), r.$children$)
    for (a = 0; a < r.$children$.length; ++a)
      $ = A(e, r, a), $ && l.appendChild($);
  return l["s-hn"] = te, l;
}, ne = (e, t, n, s, r, a) => {
  let l = e, $;
  for (; r <= a; ++r)
    s[r] && ($ = A(null, n, r), $ && (s[r].$elm$ = $, T(l, $, t)));
}, re = (e, t, n) => {
  for (let s = t; s <= n; ++s) {
    const r = e[s];
    if (r) {
      const a = r.$elm$;
      le(r), a && a.remove();
    }
  }
}, ze = (e, t, n, s, r = !1) => {
  let a = 0, l = 0, $ = 0, i = 0, o = t.length - 1, c = t[0], f = t[o], u = s.length - 1, d = s[0], v = s[u], g, h;
  for (; a <= o && l <= u; )
    if (c == null)
      c = t[++a];
    else if (f == null)
      f = t[--o];
    else if (d == null)
      d = s[++l];
    else if (v == null)
      v = s[--u];
    else if (P(c, d, r))
      b(c, d, r), c = t[++a], d = s[++l];
    else if (P(f, v, r))
      b(f, v, r), f = t[--o], v = s[--u];
    else if (P(c, v, r))
      b(c, v, r), T(e, c.$elm$, f.$elm$.nextSibling), c = t[++a], v = s[--u];
    else if (P(f, d, r))
      b(f, d, r), T(e, f.$elm$, c.$elm$), f = t[--o], d = s[++l];
    else {
      for ($ = -1, i = a; i <= o; ++i)
        if (t[i] && t[i].$key$ !== null && t[i].$key$ === d.$key$) {
          $ = i;
          break;
        }
      $ >= 0 ? (h = t[$], h.$tag$ !== d.$tag$ ? g = A(t && t[l], n, $) : (b(h, d, r), t[$] = void 0, g = h.$elm$), d = s[++l]) : (g = A(t && t[l], n, l), d = s[++l]), g && T(c.$elm$.parentNode, g, c.$elm$);
    }
  a > o ? ne(
    e,
    s[u + 1] == null ? null : s[u + 1].$elm$,
    n,
    s,
    l,
    u
  ) : l > u && re(t, a, o);
}, P = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, b = (e, t, n = !1) => {
  const s = t.$elm$ = e.$elm$, r = e.$children$, a = t.$children$, l = t.$text$;
  l === null ? (ee(e, t, se), r !== null && a !== null ? ze(s, r, t, a, n) : a !== null ? (e.$text$ !== null && (s.textContent = ""), ne(s, null, t, a, 0, a.length - 1)) : r !== null && re(r, 0, r.length - 1)) : e.$text$ !== l && (s.data = l);
}, le = (e) => {
  e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(le);
}, T = (e, t, n) => e?.insertBefore(t, n), Ce = (e, t, n = !1) => {
  const s = e.$hostElement$, r = e.$vnode$ || H(null, null), a = Le(t) ? t : _e(null, null, t);
  if (te = s.tagName, n && a.$attrs$)
    for (const l of Object.keys(a.$attrs$))
      s.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (a.$attrs$[l] = s[l]);
  a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = r.$elm$ = s, b(r, a, n);
}, ae = (e, t) => {
  t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
}, q = (e, t) => {
  if (e.$flags$ |= 16, e.$flags$ & 4) {
    e.$flags$ |= 512;
    return;
  }
  return ae(e, e.$ancestorComponent$), Ee(() => qe(e, t));
}, qe = (e, t) => {
  const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
  if (!r)
    throw new Error(
      `Can't render component <${n.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 s(), Fe(a, () => We(e, r, t));
}, Fe = (e, t) => De(e) ? e.then(t).catch((n) => {
  console.error(n), t();
}) : t(), De = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", We = async (e, t, n) => {
  var s;
  const r = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
  n && Ue(e);
  const $ = S("render", e.$cmpMeta$.$tagName$);
  Me(e, t, r, n), l && (l.map((i) => i()), r["s-rc"] = void 0), $(), a();
  {
    const i = (s = r["s-p"]) != null ? s : [], o = () => Ge(e);
    i.length === 0 ? o() : (Promise.all(i).then(o), e.$flags$ |= 4, i.length = 0);
  }
}, Me = (e, t, n, s) => {
  try {
    t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ce(e, t, s);
  } catch (r) {
    k(r, e.$hostElement$);
  }
  return null;
}, Ge = (e) => {
  const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, a = e.$ancestorComponent$;
  e.$flags$ & 64 ? s() : (e.$flags$ |= 64, $e(n), Xe(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), a || ie()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && z(() => q(e, !1)), e.$flags$ &= -517;
}, ie = (e) => {
  $e(m.documentElement), z(() => Oe(L, "appload", { detail: { namespace: fe } }));
}, Xe = (e, t, n) => {
  if (e && e[t])
    try {
      return e[t](n);
    } catch (s) {
      k(s);
    }
}, $e = (e) => {
  var t;
  return e.classList.add((t = ue.hydratedSelectorName) != null ? t : "hydrated");
}, Ye = (e, t) => E(e).$instanceValues$.get(t), Je = (e, t, n, s) => {
  const r = E(e);
  if (!r)
    throw new Error(
      `Couldn't find host element for "${s.$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 = r.$hostElement$, l = r.$instanceValues$.get(t), $ = r.$flags$, i = r.$lazyInstance$;
  n = je(n, s.$members$[t][0]);
  const o = Number.isNaN(l) && Number.isNaN(n), c = n !== l && !o;
  if ((!($ & 8) || l === void 0) && c && (r.$instanceValues$.set(t, n), i)) {
    if (s.$watchers$ && $ & 128) {
      const f = s.$watchers$[t];
      f && f.map((u) => {
        try {
          i[u](n, l, t);
        } catch (d) {
          k(d, a);
        }
      });
    }
    ($ & 18) === 2 && q(r, !1);
  }
}, oe = (e, t, n) => {
  var s, r;
  const a = e.prototype;
  if (t.$members$ || t.$watchers$ || e.watchers) {
    e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
    const l = Object.entries((s = t.$members$) != null ? s : {});
    if (l.map(([$, [i]]) => {
      (i & 31 || n & 2 && i & 32) && Object.defineProperty(a, $, {
        get() {
          return Ye(this, $);
        },
        set(o) {
          Je(this, $, o, t);
        },
        configurable: !0,
        enumerable: !0
      });
    }), n & 1) {
      const $ = /* @__PURE__ */ new Map();
      a.attributeChangedCallback = function(i, o, c) {
        p.jmp(() => {
          var f;
          const u = $.get(i);
          if (this.hasOwnProperty(u))
            c = this[u], delete this[u];
          else {
            if (a.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == c)
              return;
            if (u == null) {
              const d = E(this), v = d?.$flags$;
              if (v && !(v & 8) && v & 128 && c !== o) {
                const g = d.$lazyInstance$, h = (f = t.$watchers$) == null ? void 0 : f[i];
                h?.forEach((y) => {
                  g[y] != null && g[y].call(g, c, o, i);
                });
              }
              return;
            }
          }
          this[u] = c === null && typeof this[u] == "boolean" ? !1 : c;
        });
      }, e.observedAttributes = Array.from(
        /* @__PURE__ */ new Set([
          ...Object.keys((r = t.$watchers$) != null ? r : {}),
          ...l.filter(
            ([i, o]) => o[0] & 15
            /* HasAttribute */
          ).map(([i, o]) => {
            const c = o[1] || i;
            return $.set(c, i), c;
          })
        ])
      );
    }
  }
  return e;
}, Ke = async (e, t, n, s) => {
  let r;
  if (!(t.$flags$ & 32)) {
    if (t.$flags$ |= 32, n.$lazyBundleId$) {
      const i = pe(n);
      if (i && "then" in i) {
        const c = Te();
        r = await i, c();
      } else
        r = i;
      if (!r)
        throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
      r.isProxied || (n.$watchers$ = r.watchers, oe(
        r,
        n,
        2
        /* proxyState */
      ), r.isProxied = !0);
      const o = S("createInstance", n.$tagName$);
      t.$flags$ |= 8;
      try {
        new r(t);
      } catch (c) {
        k(c);
      }
      t.$flags$ &= -9, t.$flags$ |= 128, o();
    } else {
      r = e.constructor;
      const i = e.localName;
      customElements.whenDefined(i).then(
        () => t.$flags$ |= 128
        /* isWatchReady */
      );
    }
    if (r && r.style) {
      let i;
      typeof r.style == "string" && (i = r.style);
      const o = N(n);
      if (!_.has(o)) {
        const c = S("registerStyles", n.$tagName$);
        we(o, i, !!(n.$flags$ & 1)), c();
      }
    }
  }
  const a = t.$ancestorComponent$, l = () => q(t, !0);
  a && a["s-rc"] ? a["s-rc"].push(l) : l();
}, Qe = (e) => {
}, Ze = (e) => {
  if (!(p.$flags$ & 1)) {
    const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
    if (t.$flags$ & 1)
      t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Qe());
    else {
      t.$flags$ |= 1;
      {
        let r = e;
        for (; r = r.parentNode || r.host; )
          if (r["s-p"]) {
            ae(t, t.$ancestorComponent$ = r);
            break;
          }
      }
      n.$members$ && Object.entries(n.$members$).map(([r, [a]]) => {
        if (a & 31 && e.hasOwnProperty(r)) {
          const l = e[r];
          delete e[r], e[r] = l;
        }
      }), Ke(e, t, n);
    }
    s();
  }
}, Re = (e) => {
}, Ne = async (e) => {
  if (!(p.$flags$ & 1)) {
    const t = E(e);
    t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => Re());
  }
}, tt = (e, t = {}) => {
  var n;
  const s = S(), r = [], a = t.exclude || [], l = L.customElements, $ = m.head, i = /* @__PURE__ */ $.querySelector("meta[charset]"), o = /* @__PURE__ */ m.createElement("style"), c = [];
  let f, u = !0;
  Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
  let d = !1;
  if (e.map((v) => {
    v[1].map((g) => {
      var h;
      const y = {
        $flags$: g[0],
        $tagName$: g[1],
        $members$: g[2],
        $listeners$: g[3]
      };
      y.$flags$ & 4 && (d = !0), y.$members$ = g[2], y.$watchers$ = (h = g[4]) != null ? h : {};
      const x = y.$tagName$, ce = class extends HTMLElement {
        // StencilLazyHost
        constructor(j) {
          super(j), this.hasRegisteredEventListeners = !1, j = this, ge(j, y);
        }
        connectedCallback() {
          E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? c.push(this) : p.jmp(() => Ze(this));
        }
        disconnectedCallback() {
          p.jmp(() => Ne(this));
        }
        componentOnReady() {
          return E(this).$onReadyPromise$;
        }
      };
      y.$lazyBundleId$ = v[0], !a.includes(x) && !l.get(x) && (r.push(x), l.define(
        x,
        oe(
          ce,
          y,
          1
          /* isElementConstructor */
        )
      ));
    });
  }), r.length > 0 && (d && (o.textContent += K), o.textContent += r.sort() + he, o.innerHTML.length)) {
    o.setAttribute("data-styles", "");
    const v = (n = p.$nonce$) != null ? n : Z(m);
    v != null && o.setAttribute("nonce", v), $.insertBefore(o, i ? i.nextSibling : $.firstChild);
  }
  u = !1, c.length ? c.map((v) => v.connectedCallback()) : p.jmp(() => f = setTimeout(ie, 30)), s();
};
export {
  Ae as H,
  tt as b,
  et as g,
  _e as h,
  ye as p,
  Ve as r
};
