import { aG as y, aI as b, aJ as w } from "./en_US-VXVFCG4S-BOE8Usaa.js";
import { n as l, m as W, a as L } from "./class-map-CUH3KxQZ.js";
import { r as S, c as I, e as D } from "./core-CR50UNx-.js";
const h = {
  getSpacingStyles(i, t) {
    if (Array.isArray(i))
      return i[t] ? `var(--wui-spacing-${i[t]})` : void 0;
    if (typeof i == "string")
      return `var(--wui-spacing-${i})`;
  },
  getFormattedDate(i) {
    return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(i);
  },
  getHostName(i) {
    try {
      return new URL(i).hostname;
    } catch {
      return "";
    }
  },
  getTruncateString({ string: i, charsStart: t, charsEnd: e, truncate: r }) {
    return i.length <= t + e ? i : r === "end" ? `${i.substring(0, t)}...` : r === "start" ? `...${i.substring(i.length - e)}` : `${i.substring(0, Math.floor(t))}...${i.substring(i.length - Math.floor(e))}`;
  },
  generateAvatarColors(i) {
    const e = i.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), r = this.hexToRgb(e), a = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), n = 100 - 3 * Number(a?.replace("px", "")), s = `${n}% ${n}% at 65% 40%`, g = [];
    for (let f = 0; f < 5; f += 1) {
      const _ = this.tintColor(r, 0.15 * f);
      g.push(`rgb(${_[0]}, ${_[1]}, ${_[2]})`);
    }
    return `
    --local-color-1: ${g[0]};
    --local-color-2: ${g[1]};
    --local-color-3: ${g[2]};
    --local-color-4: ${g[3]};
    --local-color-5: ${g[4]};
    --local-radial-circle: ${s}
   `;
  },
  hexToRgb(i) {
    const t = parseInt(i, 16), e = t >> 16 & 255, r = t >> 8 & 255, a = t & 255;
    return [e, r, a];
  },
  tintColor(i, t) {
    const [e, r, a] = i, o = Math.round(e + (255 - e) * t), n = Math.round(r + (255 - r) * t), s = Math.round(a + (255 - a) * t);
    return [o, n, s];
  },
  isNumber(i) {
    return {
      number: /^[0-9]+$/u
    }.number.test(i);
  },
  getColorTheme(i) {
    return i || (typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)")?.matches ? "dark" : "light" : "dark");
  },
  splitBalance(i) {
    const t = i.split(".");
    return t.length === 2 ? [t[0], t[1]] : ["0", "00"];
  },
  roundNumber(i, t, e) {
    return i.toString().length >= t ? Number(i).toFixed(e) : i;
  },
  formatNumberToLocalString(i, t = 2) {
    return i === void 0 ? "0.00" : typeof i == "number" ? i.toLocaleString("en-US", {
      maximumFractionDigits: t,
      minimumFractionDigits: t
    }) : parseFloat(i).toLocaleString("en-US", {
      maximumFractionDigits: t,
      minimumFractionDigits: t
    });
  }
};
function F(i, t) {
  const { kind: e, elements: r } = t;
  return {
    kind: e,
    elements: r,
    finisher(a) {
      customElements.get(i) || customElements.define(i, a);
    }
  };
}
function E(i, t) {
  return customElements.get(i) || customElements.define(i, t), t;
}
function x(i) {
  return function(e) {
    return typeof e == "function" ? E(i, e) : F(i, e);
  };
}
const H = y`
  :host {
    display: flex;
    width: inherit;
    height: inherit;
  }
`;
var p = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let c = class extends b {
  render() {
    return this.style.cssText = `
      flex-direction: ${this.flexDirection};
      flex-wrap: ${this.flexWrap};
      flex-basis: ${this.flexBasis};
      flex-grow: ${this.flexGrow};
      flex-shrink: ${this.flexShrink};
      align-items: ${this.alignItems};
      justify-content: ${this.justifyContent};
      column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
      row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
      gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
      padding-top: ${this.padding && h.getSpacingStyles(this.padding, 0)};
      padding-right: ${this.padding && h.getSpacingStyles(this.padding, 1)};
      padding-bottom: ${this.padding && h.getSpacingStyles(this.padding, 2)};
      padding-left: ${this.padding && h.getSpacingStyles(this.padding, 3)};
      margin-top: ${this.margin && h.getSpacingStyles(this.margin, 0)};
      margin-right: ${this.margin && h.getSpacingStyles(this.margin, 1)};
      margin-bottom: ${this.margin && h.getSpacingStyles(this.margin, 2)};
      margin-left: ${this.margin && h.getSpacingStyles(this.margin, 3)};
    `, w`<slot></slot>`;
  }
};
c.styles = [S, H];
p([
  l()
], c.prototype, "flexDirection", void 0);
p([
  l()
], c.prototype, "flexWrap", void 0);
p([
  l()
], c.prototype, "flexBasis", void 0);
p([
  l()
], c.prototype, "flexGrow", void 0);
p([
  l()
], c.prototype, "flexShrink", void 0);
p([
  l()
], c.prototype, "alignItems", void 0);
p([
  l()
], c.prototype, "justifyContent", void 0);
p([
  l()
], c.prototype, "columnGap", void 0);
p([
  l()
], c.prototype, "rowGap", void 0);
p([
  l()
], c.prototype, "gap", void 0);
p([
  l()
], c.prototype, "padding", void 0);
p([
  l()
], c.prototype, "margin", void 0);
c = p([
  x("wui-flex")
], c);
class G {
  constructor() {
    this.cache = /* @__PURE__ */ new Map();
  }
  set(t, e) {
    this.cache.set(t, e);
  }
  get(t) {
    return this.cache.get(t);
  }
  has(t) {
    return this.cache.has(t);
  }
  delete(t) {
    this.cache.delete(t);
  }
  clear() {
    this.cache.clear();
  }
}
const B = new G(), M = y`
  :host {
    display: flex;
    aspect-ratio: var(--local-aspect-ratio);
    color: var(--local-color);
    width: var(--local-width);
  }

  svg {
    width: inherit;
    height: inherit;
    object-fit: contain;
    object-position: center;
  }

  .fallback {
    width: var(--local-width);
    height: var(--local-height);
  }
`;
var k = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
const O = {
  add: async () => (await import("./add-Dc1aK85o.js")).addSvg,
  allWallets: async () => (await import("./all-wallets-DscylCU3.js")).allWalletsSvg,
  arrowBottomCircle: async () => (await import("./arrow-bottom-circle-DRm51FaG.js")).arrowBottomCircleSvg,
  appStore: async () => (await import("./app-store-OEh_ikPU.js")).appStoreSvg,
  apple: async () => (await import("./apple-CnBdB0O7.js")).appleSvg,
  arrowBottom: async () => (await import("./arrow-bottom-gT9p0TOU.js")).arrowBottomSvg,
  arrowLeft: async () => (await import("./arrow-left-DTPsc_E-.js")).arrowLeftSvg,
  arrowRight: async () => (await import("./arrow-right-WEidC4zH.js")).arrowRightSvg,
  arrowTop: async () => (await import("./arrow-top-DwRO53ZD.js")).arrowTopSvg,
  bank: async () => (await import("./bank-Cl4qOnyE.js")).bankSvg,
  browser: async () => (await import("./browser-DPh5MVD6.js")).browserSvg,
  card: async () => (await import("./card-C84-D4V-.js")).cardSvg,
  checkmark: async () => (await import("./checkmark-Ft0w2p4t.js")).checkmarkSvg,
  checkmarkBold: async () => (await import("./checkmark-bold-BFVHGpNv.js")).checkmarkBoldSvg,
  chevronBottom: async () => (await import("./chevron-bottom-BceMSeH_.js")).chevronBottomSvg,
  chevronLeft: async () => (await import("./chevron-left-D9gmKVqo.js")).chevronLeftSvg,
  chevronRight: async () => (await import("./chevron-right-BaLvVofY.js")).chevronRightSvg,
  chevronTop: async () => (await import("./chevron-top-DMaw5qLk.js")).chevronTopSvg,
  chromeStore: async () => (await import("./chrome-store-BBo4UQXm.js")).chromeStoreSvg,
  clock: async () => (await import("./clock-pafYNeky.js")).clockSvg,
  close: async () => (await import("./close-DlQuXY85.js")).closeSvg,
  compass: async () => (await import("./compass-EcPua9BY.js")).compassSvg,
  coinPlaceholder: async () => (await import("./coinPlaceholder-CW-yQMPq.js")).coinPlaceholderSvg,
  copy: async () => (await import("./copy-G-i7v_46.js")).copySvg,
  cursor: async () => (await import("./cursor-nXTABWop.js")).cursorSvg,
  cursorTransparent: async () => (await import("./cursor-transparent-CucuQXR9.js")).cursorTransparentSvg,
  desktop: async () => (await import("./desktop-CajvBRe7.js")).desktopSvg,
  disconnect: async () => (await import("./disconnect-Dyjun2m2.js")).disconnectSvg,
  discord: async () => (await import("./discord-C0olBl0r.js")).discordSvg,
  etherscan: async () => (await import("./etherscan-Bl4tSD87.js")).etherscanSvg,
  extension: async () => (await import("./extension-DhFkVCqr.js")).extensionSvg,
  externalLink: async () => (await import("./external-link-C7wAWotB.js")).externalLinkSvg,
  facebook: async () => (await import("./facebook-Bx48iZPv.js")).facebookSvg,
  farcaster: async () => (await import("./farcaster-IhYhI63t.js")).farcasterSvg,
  filters: async () => (await import("./filters-CG2gDxYr.js")).filtersSvg,
  github: async () => (await import("./github-CVs7Zm4m.js")).githubSvg,
  google: async () => (await import("./google-Dx9RDc87.js")).googleSvg,
  helpCircle: async () => (await import("./help-circle-BRA-9Uug.js")).helpCircleSvg,
  image: async () => (await import("./image-BS6gigx4.js")).imageSvg,
  id: async () => (await import("./id-Bn0YwE3t.js")).idSvg,
  infoCircle: async () => (await import("./info-circle-D5SrGteQ.js")).infoCircleSvg,
  lightbulb: async () => (await import("./lightbulb-DfLnZ-WF.js")).lightbulbSvg,
  mail: async () => (await import("./mail-qSbYUS6_.js")).mailSvg,
  mobile: async () => (await import("./mobile-Bez3-bVG.js")).mobileSvg,
  more: async () => (await import("./more-CLyBrL7S.js")).moreSvg,
  networkPlaceholder: async () => (await import("./network-placeholder-B_4S5Dm1.js")).networkPlaceholderSvg,
  nftPlaceholder: async () => (await import("./nftPlaceholder-8DM0kN9Y.js")).nftPlaceholderSvg,
  off: async () => (await import("./off-BCmZl7On.js")).offSvg,
  playStore: async () => (await import("./play-store-Db4GC4PQ.js")).playStoreSvg,
  plus: async () => (await import("./plus-CW9eK2F5.js")).plusSvg,
  qrCode: async () => (await import("./qr-code-49RNOfrL.js")).qrCodeIcon,
  recycleHorizontal: async () => (await import("./recycle-horizontal-CtnCErzA.js")).recycleHorizontalSvg,
  refresh: async () => (await import("./refresh-Bh6K2W70.js")).refreshSvg,
  search: async () => (await import("./search-DFXvkOMQ.js")).searchSvg,
  send: async () => (await import("./send-BsBrjYWf.js")).sendSvg,
  swapHorizontal: async () => (await import("./swapHorizontal-CUhWmpOA.js")).swapHorizontalSvg,
  swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CbHF7xzj.js")).swapHorizontalMediumSvg,
  swapHorizontalBold: async () => (await import("./swapHorizontalBold-BOdTbwMO.js")).swapHorizontalBoldSvg,
  swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-ZnumDgqJ.js")).swapHorizontalRoundedBoldSvg,
  swapVertical: async () => (await import("./swapVertical-BYZSAZod.js")).swapVerticalSvg,
  telegram: async () => (await import("./telegram-DJdzPVyB.js")).telegramSvg,
  threeDots: async () => (await import("./three-dots-BC3Rz5ee.js")).threeDotsSvg,
  twitch: async () => (await import("./twitch-DFJroMW0.js")).twitchSvg,
  twitter: async () => (await import("./x-fvupoaRi.js")).xSvg,
  twitterIcon: async () => (await import("./twitterIcon-CNZaAxX4.js")).twitterIconSvg,
  verify: async () => (await import("./verify-Dmsqm1dO.js")).verifySvg,
  verifyFilled: async () => (await import("./verify-filled-CU3KD2f9.js")).verifyFilledSvg,
  wallet: async () => (await import("./wallet-CxByQOq9.js")).walletSvg,
  walletConnect: async () => (await import("./walletconnect-CO7V7gyt.js")).walletConnectSvg,
  walletConnectLightBrown: async () => (await import("./walletconnect-CO7V7gyt.js")).walletConnectLightBrownSvg,
  walletConnectBrown: async () => (await import("./walletconnect-CO7V7gyt.js")).walletConnectBrownSvg,
  walletPlaceholder: async () => (await import("./wallet-placeholder-DPLcVR3i.js")).walletPlaceholderSvg,
  warningCircle: async () => (await import("./warning-circle-BOkNaV0J.js")).warningCircleSvg,
  x: async () => (await import("./x-fvupoaRi.js")).xSvg,
  info: async () => (await import("./info-BG7cs8pb.js")).infoSvg,
  exclamationTriangle: async () => (await import("./exclamation-triangle-CqbjHjZb.js")).exclamationTriangleSvg,
  reown: async () => (await import("./reown-logo-BXcUIfhP.js")).reownSvg
};
async function U(i) {
  if (B.has(i))
    return B.get(i);
  const e = (O[i] ?? O.copy)();
  return B.set(i, e), e;
}
let m = class extends b {
  constructor() {
    super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
  }
  render() {
    return this.style.cssText = `
      --local-color: ${`var(--wui-color-${this.color});`}
      --local-width: ${`var(--wui-icon-size-${this.size});`}
      --local-aspect-ratio: ${this.aspectRatio}
    `, w`${W(U(this.name), w`<div class="fallback"></div>`)}`;
  }
};
m.styles = [S, I, M];
k([
  l()
], m.prototype, "size", void 0);
k([
  l()
], m.prototype, "name", void 0);
k([
  l()
], m.prototype, "color", void 0);
k([
  l()
], m.prototype, "aspectRatio", void 0);
m = k([
  x("wui-icon")
], m);
const N = y`
  :host {
    display: inline-flex !important;
  }

  slot {
    width: 100%;
    display: inline-block;
    font-style: normal;
    font-family: var(--wui-font-family);
    font-feature-settings:
      'tnum' on,
      'lnum' on,
      'case' on;
    line-height: 130%;
    font-weight: var(--wui-font-weight-regular);
    overflow: inherit;
    text-overflow: inherit;
    text-align: var(--local-align);
    color: var(--local-color);
  }

  .wui-line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .wui-line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .wui-font-medium-400 {
    font-size: var(--wui-font-size-medium);
    font-weight: var(--wui-font-weight-light);
    letter-spacing: var(--wui-letter-spacing-medium);
  }

  .wui-font-medium-600 {
    font-size: var(--wui-font-size-medium);
    letter-spacing: var(--wui-letter-spacing-medium);
  }

  .wui-font-title-600 {
    font-size: var(--wui-font-size-title);
    letter-spacing: var(--wui-letter-spacing-title);
  }

  .wui-font-title-6-600 {
    font-size: var(--wui-font-size-title-6);
    letter-spacing: var(--wui-letter-spacing-title-6);
  }

  .wui-font-mini-700 {
    font-size: var(--wui-font-size-mini);
    letter-spacing: var(--wui-letter-spacing-mini);
    text-transform: uppercase;
  }

  .wui-font-large-500,
  .wui-font-large-600,
  .wui-font-large-700 {
    font-size: var(--wui-font-size-large);
    letter-spacing: var(--wui-letter-spacing-large);
  }

  .wui-font-2xl-500,
  .wui-font-2xl-600,
  .wui-font-2xl-700 {
    font-size: var(--wui-font-size-2xl);
    letter-spacing: var(--wui-letter-spacing-2xl);
  }

  .wui-font-paragraph-400,
  .wui-font-paragraph-500,
  .wui-font-paragraph-600,
  .wui-font-paragraph-700 {
    font-size: var(--wui-font-size-paragraph);
    letter-spacing: var(--wui-letter-spacing-paragraph);
  }

  .wui-font-small-400,
  .wui-font-small-500,
  .wui-font-small-600 {
    font-size: var(--wui-font-size-small);
    letter-spacing: var(--wui-letter-spacing-small);
  }

  .wui-font-tiny-400,
  .wui-font-tiny-500,
  .wui-font-tiny-600 {
    font-size: var(--wui-font-size-tiny);
    letter-spacing: var(--wui-letter-spacing-tiny);
  }

  .wui-font-micro-700,
  .wui-font-micro-600 {
    font-size: var(--wui-font-size-micro);
    letter-spacing: var(--wui-letter-spacing-micro);
    text-transform: uppercase;
  }

  .wui-font-tiny-400,
  .wui-font-small-400,
  .wui-font-medium-400,
  .wui-font-paragraph-400 {
    font-weight: var(--wui-font-weight-light);
  }

  .wui-font-large-700,
  .wui-font-paragraph-700,
  .wui-font-micro-700,
  .wui-font-mini-700 {
    font-weight: var(--wui-font-weight-bold);
  }

  .wui-font-medium-600,
  .wui-font-medium-title-600,
  .wui-font-title-6-600,
  .wui-font-large-600,
  .wui-font-paragraph-600,
  .wui-font-small-600,
  .wui-font-tiny-600,
  .wui-font-micro-600 {
    font-weight: var(--wui-font-weight-medium);
  }

  :host([disabled]) {
    opacity: 0.4;
  }
`;
var R = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let v = class extends b {
  constructor() {
    super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
  }
  render() {
    const t = {
      [`wui-font-${this.variant}`]: !0,
      [`wui-color-${this.color}`]: !0,
      [`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
    };
    return this.style.cssText = `
      --local-align: ${this.align};
      --local-color: var(--wui-color-${this.color});
    `, w`<slot class=${L(t)}></slot>`;
  }
};
v.styles = [S, N];
R([
  l()
], v.prototype, "variant", void 0);
R([
  l()
], v.prototype, "color", void 0);
R([
  l()
], v.prototype, "align", void 0);
R([
  l()
], v.prototype, "lineClamp", void 0);
v = R([
  x("wui-text")
], v);
const V = y`
  :host {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--wui-color-gray-glass-020);
    border-radius: var(--local-border-radius);
    border: var(--local-border);
    box-sizing: content-box;
    width: var(--local-size);
    height: var(--local-size);
    min-height: var(--local-size);
    min-width: var(--local-size);
  }

  @supports (background: color-mix(in srgb, white 50%, black)) {
    :host {
      background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
    }
  }
`;
var d = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let u = class extends b {
  constructor() {
    super(...arguments), this.size = "md", this.backgroundColor = "accent-100", this.iconColor = "accent-100", this.background = "transparent", this.border = !1, this.borderColor = "wui-color-bg-125", this.icon = "copy";
  }
  render() {
    const t = this.iconSize || this.size, e = this.size === "lg", r = this.size === "xl", a = e ? "12%" : "16%", o = e ? "xxs" : r ? "s" : "3xl", n = this.background === "gray", s = this.background === "opaque", g = this.backgroundColor === "accent-100" && s || this.backgroundColor === "success-100" && s || this.backgroundColor === "error-100" && s || this.backgroundColor === "inverse-100" && s;
    let f = `var(--wui-color-${this.backgroundColor})`;
    return g ? f = `var(--wui-icon-box-bg-${this.backgroundColor})` : n && (f = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
       --local-bg-value: ${f};
       --local-bg-mix: ${g || n ? "100%" : a};
       --local-border-radius: var(--wui-border-radius-${o});
       --local-size: var(--wui-icon-box-size-${this.size});
       --local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
   `, w` <wui-icon color=${this.iconColor} size=${t} name=${this.icon}></wui-icon> `;
  }
};
u.styles = [S, D, V];
d([
  l()
], u.prototype, "size", void 0);
d([
  l()
], u.prototype, "backgroundColor", void 0);
d([
  l()
], u.prototype, "iconColor", void 0);
d([
  l()
], u.prototype, "iconSize", void 0);
d([
  l()
], u.prototype, "background", void 0);
d([
  l({ type: Boolean })
], u.prototype, "border", void 0);
d([
  l()
], u.prototype, "borderColor", void 0);
d([
  l()
], u.prototype, "icon", void 0);
u = d([
  x("wui-icon-box")
], u);
const q = y`
  :host {
    display: block;
    width: var(--local-width);
    height: var(--local-height);
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
  }
`;
var j = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let $ = class extends b {
  constructor() {
    super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
  }
  render() {
    return this.style.cssText = `
      --local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
      --local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
      `, w`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
  }
  handleImageError() {
    this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
  }
};
$.styles = [S, I, q];
j([
  l()
], $.prototype, "src", void 0);
j([
  l()
], $.prototype, "alt", void 0);
j([
  l()
], $.prototype, "size", void 0);
$ = j([
  x("wui-image")
], $);
const A = y`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--wui-spacing-m);
    padding: 0 var(--wui-spacing-3xs) !important;
    border-radius: var(--wui-border-radius-5xs);
    transition:
      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
    will-change: border-radius, background-color;
  }

  :host > wui-text {
    transform: translateY(5%);
  }

  :host([data-variant='main']) {
    background-color: var(--wui-color-accent-glass-015);
    color: var(--wui-color-accent-100);
  }

  :host([data-variant='shade']) {
    background-color: var(--wui-color-gray-glass-010);
    color: var(--wui-color-fg-200);
  }

  :host([data-variant='success']) {
    background-color: var(--wui-icon-box-bg-success-100);
    color: var(--wui-color-success-100);
  }

  :host([data-variant='error']) {
    background-color: var(--wui-icon-box-bg-error-100);
    color: var(--wui-color-error-100);
  }

  :host([data-size='lg']) {
    padding: 11px 5px !important;
  }

  :host([data-size='lg']) > wui-text {
    transform: translateY(2%);
  }
`;
var P = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let z = class extends b {
  constructor() {
    super(...arguments), this.variant = "main", this.size = "lg";
  }
  render() {
    this.dataset.variant = this.variant, this.dataset.size = this.size;
    const t = this.size === "md" ? "mini-700" : "micro-700";
    return w`
      <wui-text data-variant=${this.variant} variant=${t} color="inherit">
        <slot></slot>
      </wui-text>
    `;
  }
};
z.styles = [S, A];
P([
  l()
], z.prototype, "variant", void 0);
P([
  l()
], z.prototype, "size", void 0);
z = P([
  x("wui-tag")
], z);
const Y = y`
  :host {
    display: flex;
  }

  :host([data-size='sm']) > svg {
    width: 12px;
    height: 12px;
  }

  :host([data-size='md']) > svg {
    width: 16px;
    height: 16px;
  }

  :host([data-size='lg']) > svg {
    width: 24px;
    height: 24px;
  }

  :host([data-size='xl']) > svg {
    width: 32px;
    height: 32px;
  }

  svg {
    animation: rotate 2s linear infinite;
  }

  circle {
    fill: none;
    stroke: var(--local-color);
    stroke-width: 4px;
    stroke-dasharray: 1, 124;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
  }

  :host([data-size='md']) > svg > circle {
    stroke-width: 6px;
  }

  :host([data-size='sm']) > svg > circle {
    stroke-width: 8px;
  }

  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes dash {
    0% {
      stroke-dasharray: 1, 124;
      stroke-dashoffset: 0;
    }

    50% {
      stroke-dasharray: 90, 124;
      stroke-dashoffset: -35;
    }

    100% {
      stroke-dashoffset: -125;
    }
  }
`;
var T = function(i, t, e, r) {
  var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, n;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(i, t, e, r);
  else for (var s = i.length - 1; s >= 0; s--) (n = i[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(t, e, o) : n(t, e)) || o);
  return a > 3 && o && Object.defineProperty(t, e, o), o;
};
let C = class extends b {
  constructor() {
    super(...arguments), this.color = "accent-100", this.size = "lg";
  }
  render() {
    return this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`, this.dataset.size = this.size, w`<svg viewBox="25 25 50 50">
      <circle r="20" cy="50" cx="50"></circle>
    </svg>`;
  }
};
C.styles = [S, Y];
T([
  l()
], C.prototype, "color", void 0);
T([
  l()
], C.prototype, "size", void 0);
C = T([
  x("wui-loading-spinner")
], C);
export {
  h as U,
  x as c
};
//# sourceMappingURL=index-DUqTYqb9.js.map
